@outmarket-ai/react-sdk 0.1.0-alpha.9 → 0.2.0-alpha.0
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 +61 -1
- package/dist/index.d.ts +8 -2
- package/dist/index.js +1 -1
- package/dist/pdf.worker.min.mjs +2 -21
- package/dist/styles.css +1 -11
- package/package.json +11 -5
- package/dist/AddNoteDialog-DhseSUVW.js +0 -1
- package/dist/AlertDialog-Dx1Z4OrM.js +0 -1
- package/dist/ApproveWorkflowsList-Cx2xNqu9.js +0 -5
- package/dist/BORLetterEditor-CpXL7MT-.js +0 -119
- package/dist/BillDetailModal-Cj9d5gIA.js +0 -1
- package/dist/CoiIssueHolderModal-CE854JKK.js +0 -1
- package/dist/DeletePromptDialog-C3Shx90V.js +0 -1
- package/dist/EmailFormatSelectionDialog-Bo3-G8L0.js +0 -1
- package/dist/ExcelExportPreviewDialog-NvbX8KK1.js +0 -1
- package/dist/ExplainPanel-BQwsIk-9.js +0 -1
- package/dist/ExportDialog-CGnw6GPb.js +0 -30
- package/dist/ExportToAmsDialog-CuW-XMnY.js +0 -1
- package/dist/ExportToDriveDialog-oEm9wL-h.js +0 -1
- package/dist/FeedbackTool-la43Nk0I.js +0 -30
- package/dist/LayerDetailModal-B-gtAIMb.js +0 -1
- package/dist/LogoEditor-CiD5nrq_.js +0 -1
- package/dist/MarkdownExportPreviewDialog-CVlZsnV-.js +0 -5
- package/dist/NotificationDrawer-DkiU4k1-.js +0 -7
- package/dist/PhoneNumbersDisplay-BcKFVIhh.js +0 -1
- package/dist/PlanSelector-CbuGEmUO.js +0 -26
- package/dist/PlanSettingsModal-CYLAXbUO.js +0 -1
- package/dist/PlanWizardModal-D9GRljeC.js +0 -1
- package/dist/RenameAssetDialog-Rx-mnefu.js +0 -1
- package/dist/SaveBlockDialog-T9mHc5hu.js +0 -1
- package/dist/SaveOutlineDialog-Ce0eEWTR.js +0 -1
- package/dist/SavePromptDialog-D3lm7H51.js +0 -1
- package/dist/ShareResourceDialog-ACYRf6LZ.js +0 -1
- package/dist/TermsNoticeModal-AgvfPy5K.js +0 -1
- package/dist/TowerAlertModal-sRGrwqdf.js +0 -1
- package/dist/TowerSummaryModal-4Dk1iV4z.js +0 -1
- package/dist/VaultSettingsDialog-DddN5Jq6.js +0 -1
- package/dist/ViewNoteDialog-D0V651HA.js +0 -1
- package/dist/WhatsNewProvider-CcmOzaKL.js +0 -36
- package/dist/WidgetRawDataView-DUzIDMuO.js +0 -1
- package/dist/abap-V7zjtt5B.js +0 -1
- package/dist/abnf-Cs8-oUtO.js +0 -1
- package/dist/actionscript-T2YELVMS.js +0 -1
- package/dist/activityLog-Dh4AWnxR.js +0 -1
- package/dist/ada-DnnX8eVy.js +0 -1
- package/dist/agda-B11duiie.js +0 -1
- package/dist/al-CQYsuVVM.js +0 -1
- package/dist/antlr4-4B1Sc4kw.js +0 -1
- package/dist/apacheconf-CEWWS0Xl.js +0 -1
- package/dist/apex-Bw9Gtufo.js +0 -1
- package/dist/apl-GPUaXahd.js +0 -1
- package/dist/applescript-ClGuMaSV.js +0 -1
- package/dist/aql-B0NbAClI.js +0 -1
- package/dist/arduino-ClbHu-uo.js +0 -1
- package/dist/arff-DuOU54aX.js +0 -1
- package/dist/asciidoc-BhtWnAkY.js +0 -1
- package/dist/asm6502-DQTasU9k.js +0 -1
- package/dist/asmatmel-DTAwUCm0.js +0 -1
- package/dist/aspnet-By_Uv-R2.js +0 -1
- package/dist/autohotkey--_I21FCo.js +0 -1
- package/dist/autoit-CvH4ufrU.js +0 -1
- package/dist/avisynth-DFZaFA4R.js +0 -1
- package/dist/avro-idl-BSSj5FmU.js +0 -1
- package/dist/bash-Dq5JElW2.js +0 -1
- package/dist/bash-Jzmc6JlP.js +0 -1
- package/dist/basic-CC56mfFq.js +0 -1
- package/dist/basic-CJsDLcso.js +0 -1
- package/dist/batch-BYpJ9kPS.js +0 -1
- package/dist/bbcode-UXb4O2FT.js +0 -1
- package/dist/bell-B4nDPvYM.js +0 -7
- package/dist/bicep-ha95m6NM.js +0 -1
- package/dist/birb-BM8QRfSV.js +0 -1
- package/dist/bison-BaRrGKdN.js +0 -1
- package/dist/blockEditorContent-BL5d7zzw.js +0 -166
- package/dist/bnf-bWLwOaU4.js +0 -1
- package/dist/brainfuck-COJQXt-t.js +0 -1
- package/dist/brightscript-BsJBKxjD.js +0 -1
- package/dist/bro-Bp53uiUK.js +0 -1
- package/dist/bsl-tLrmQ80l.js +0 -1
- package/dist/c-C4WJRAOR.js +0 -1
- package/dist/c-DA5TVlGb.js +0 -1
- package/dist/calendar-CCDvKYJL.js +0 -7
- package/dist/cfscript-iUOvrdw6.js +0 -1
- package/dist/chaiscript-Bdsn6xqe.js +0 -1
- package/dist/cil-Bg4_FSZp.js +0 -1
- package/dist/clike-CStN-Ul5.js +0 -1
- package/dist/clike-fTAcdHbS.js +0 -1
- package/dist/clojure-CP23saqo.js +0 -1
- package/dist/cmake-CUC1Yn75.js +0 -1
- package/dist/cobol-DRCg5sRL.js +0 -1
- package/dist/coffeescript-c3ArqojV.js +0 -1
- package/dist/concurnas-BkGymU0R.js +0 -1
- package/dist/confetti.module-gccwWOTG.js +0 -2
- package/dist/contactsList-CSPk7SYS.js +0 -18
- package/dist/copyPreviewToClipboard-CrY57HL-.js +0 -170
- package/dist/coq-DfqiQwQs.js +0 -1
- package/dist/core-DnSu5wN6.js +0 -9
- package/dist/cpp-C2xoosyb.js +0 -1
- package/dist/cpp-DBmYs6pK.js +0 -1
- package/dist/crystal-_Ltdvkfv.js +0 -1
- package/dist/csharp-CzFXtKq-.js +0 -1
- package/dist/csharp-DhrYzyQg.js +0 -1
- package/dist/cshtml-CPggulxs.js +0 -1
- package/dist/csp-C5jhDYKS.js +0 -1
- package/dist/css-CHGm_5Ug.js +0 -1
- package/dist/css-Dr8mrUZQ.js +0 -1
- package/dist/css-extras-CR_At87f.js +0 -1
- package/dist/csv-BjMjkdsd.js +0 -1
- package/dist/cypher-Cz3MYOsR.js +0 -1
- package/dist/d-U3DXoBKs.js +0 -1
- package/dist/dart-nkmISAms.js +0 -1
- package/dist/dataweave-Bqffbm3l.js +0 -1
- package/dist/dax-BUmQo96b.js +0 -1
- package/dist/dhall-tqKETJ5N.js +0 -1
- package/dist/diff-BN3mhZNK.js +0 -3
- package/dist/django-XpzvhI3_.js +0 -1
- package/dist/dns-zone-file-BvWpwvpy.js +0 -1
- package/dist/docker-8-TsERHq.js +0 -1
- package/dist/dot-Bedmh4He.js +0 -1
- package/dist/ebnf-CQ1Owm1r.js +0 -1
- package/dist/editCarrierDialog-qiULFMcT.js +0 -1
- package/dist/editorconfig-D11MkCqN.js +0 -1
- package/dist/eiffel-5RW8i1s_.js +0 -1
- package/dist/ejs-CnXtml3v.js +0 -1
- package/dist/elixir-C65-GKuK.js +0 -1
- package/dist/elm-DzDSmMCu.js +0 -1
- package/dist/erb-v570YtNg.js +0 -1
- package/dist/erlang-COVM6kne.js +0 -1
- package/dist/etlua-CYTkdOD8.js +0 -1
- package/dist/excel-formula-CVF6JFUc.js +0 -1
- package/dist/exportFileGeneration-BryemPIm.js +0 -1
- package/dist/exportImageReadiness-BIPaS2Oz.js +0 -1
- package/dist/exportImageReadinessNotifier-CDPE8TMc.js +0 -1
- package/dist/exportPageHtml-BnFgCZsS.js +0 -5
- package/dist/exportPreviewToDocx-CNUCdnzi.js +0 -11
- package/dist/exportPreviewToPdf-CVhRJw77.js +0 -1
- package/dist/factor-BYWyb9mM.js +0 -1
- package/dist/false-PO5fTmEz.js +0 -1
- package/dist/firestore-security-rules-Dhmp_MBi.js +0 -1
- package/dist/flask-conical-DfeNzqKY.js +0 -7
- package/dist/flow-Jw0KAy-j.js +0 -1
- package/dist/fortran-DOu6I6CX.js +0 -1
- package/dist/fsharp-Bg82wKKC.js +0 -1
- package/dist/ftl-B4QashNa.js +0 -1
- package/dist/gap-B-C4phMB.js +0 -1
- package/dist/gcode-C7cgkMxN.js +0 -1
- package/dist/gdscript-BZGfyeaC.js +0 -1
- package/dist/gedcom-hWBLXHFN.js +0 -1
- package/dist/gherkin-C0cPQhL5.js +0 -1
- package/dist/git-CvbRDRuD.js +0 -1
- package/dist/glsl-Dio579_l.js +0 -1
- package/dist/gml-DMy1gp8J.js +0 -1
- package/dist/gn-CXmdkSGX.js +0 -1
- package/dist/go-BK7Ey8q8.js +0 -1
- package/dist/go-module-DGHMlQxT.js +0 -1
- package/dist/graphql-C3tOz3S9.js +0 -1
- package/dist/groovy-BWSmsMKq.js +0 -1
- package/dist/haml-D761Lwkw.js +0 -1
- package/dist/handlebars-CFzuNVeU.js +0 -1
- package/dist/haskell-D2HwqYTs.js +0 -1
- package/dist/haskell-fKcSYgFk.js +0 -1
- package/dist/haxe-BsTBOPWq.js +0 -1
- package/dist/hcl-CjEa7mhm.js +0 -1
- package/dist/highlighter-Bi2kuv8f.js +0 -7
- package/dist/hlsl-B3Bf2Jd1.js +0 -1
- package/dist/hoon-DdoFvX8i.js +0 -1
- package/dist/hpkp-BPcGR8EQ.js +0 -1
- package/dist/hsts-oLeDVYg4.js +0 -1
- package/dist/http-C65ao8FS.js +0 -1
- package/dist/ichigojam-NdH0fggR.js +0 -1
- package/dist/icon-CjpIDepR.js +0 -1
- package/dist/icu-message-format-A3pDj87f.js +0 -1
- package/dist/idris-CRHPBU_F.js +0 -1
- package/dist/iecst-DitcXByQ.js +0 -1
- package/dist/ignore-CmXNr-En.js +0 -1
- package/dist/image-plus-B3MMgEPL.js +0 -7
- package/dist/index-BYll8ylX.js +0 -2
- package/dist/index-BtR975tI.js +0 -1
- package/dist/index-CVaFIPrZ.js +0 -13
- package/dist/index-CkWdb2Ws.js +0 -1
- package/dist/index-Ct2s_UPb.js +0 -1
- package/dist/index-OBC-S4JF.js +0 -3
- package/dist/index-pjV8dzev.js +0 -1
- package/dist/index-s1LikHjO.js +0 -1
- package/dist/index.client-D86od2fV.js +0 -501
- package/dist/inform7-sEqx2-7g.js +0 -1
- package/dist/ini-DfvMWacy.js +0 -1
- package/dist/io-CfaIzWvO.js +0 -1
- package/dist/j-D_qDpCvj.js +0 -1
- package/dist/java-CZIvhO6U.js +0 -1
- package/dist/java-D5YF95hZ.js +0 -1
- package/dist/javadoc-4Rdti3Lf.js +0 -1
- package/dist/javadoclike-gz6ZNgII.js +0 -1
- package/dist/javadoclike-odLU89VS.js +0 -1
- package/dist/javascript-BHdRPnNL.js +0 -1
- package/dist/javascript-CEunhhi4.js +0 -1
- package/dist/javastacktrace-DTySuujE.js +0 -1
- package/dist/jexl-B-55AiTX.js +0 -1
- package/dist/jolie-Cerm6rPa.js +0 -1
- package/dist/jq-CxYM2bpe.js +0 -1
- package/dist/js-extras-B96Xzdzr.js +0 -1
- package/dist/js-templates-BJfSNsZD.js +0 -1
- package/dist/jsdoc-oC7vbq5i.js +0 -1
- package/dist/json-D4kK7Ph_.js +0 -1
- package/dist/json-DROiTAr2.js +0 -1
- package/dist/json5-DxXL3eT7.js +0 -1
- package/dist/jsonp-ar2fV8fZ.js +0 -1
- package/dist/jsstacktrace-BINMgU-E.js +0 -1
- package/dist/jsx-CqAdGZ8z.js +0 -1
- package/dist/jsx-DjXnni8N.js +0 -1
- package/dist/julia-DqnOG3a3.js +0 -1
- package/dist/keepalived-ByxR9AfG.js +0 -1
- package/dist/keyman-B0WzsmDf.js +0 -1
- package/dist/kotlin-cdNFHPRk.js +0 -1
- package/dist/kumir-dCYrmqEc.js +0 -1
- package/dist/kusto-BiAufrSD.js +0 -1
- package/dist/latex-Clo76c6g.js +0 -1
- package/dist/latte-BClgsIsm.js +0 -1
- package/dist/less-D0ZziKfg.js +0 -1
- package/dist/lilypond-D-j7r1t-.js +0 -1
- package/dist/link-2-off-B6MiQbkR.js +0 -7
- package/dist/liquid-B6DAEC2l.js +0 -1
- package/dist/lisp-CEcGfDXG.js +0 -1
- package/dist/livescript-Tz5wJNbl.js +0 -1
- package/dist/llvm-Dv3C4y-V.js +0 -1
- package/dist/lock-keyhole-p1wVc-9Y.js +0 -7
- package/dist/log-NVPAjhVz.js +0 -1
- package/dist/lolcode-De45ux4z.js +0 -1
- package/dist/lua-BeIBSVZf.js +0 -1
- package/dist/lua-CSN67GiU.js +0 -1
- package/dist/lucide-react-Dwxi-V4B.js +0 -7
- package/dist/luckyexcel.umd-JVs96sZB.js +0 -12
- package/dist/magma-CaUgW-If.js +0 -1
- package/dist/makefile-C_Q-8hQ9.js +0 -1
- package/dist/markdown-BSGp8L4I.js +0 -1
- package/dist/markup-C46YaeBf.js +0 -1
- package/dist/markup-D_Wa_fyo.js +0 -1
- package/dist/markup-templating-D-FRJF7C.js +0 -1
- package/dist/markup-templating-RD0xxf_6.js +0 -1
- package/dist/matlab-BaDneZBA.js +0 -1
- package/dist/maxscript-fnWefuCx.js +0 -1
- package/dist/mel-BfRfAwlY.js +0 -1
- package/dist/mermaid-BQn_FD9x.js +0 -1
- package/dist/mizar-DEGTGWko.js +0 -1
- package/dist/mongodb-BfLZtkrZ.js +0 -1
- package/dist/monkey-B64xijTv.js +0 -1
- package/dist/moonscript-DB17HjmC.js +0 -1
- package/dist/n1ql-hqkhi-L2.js +0 -1
- package/dist/n4js-BYUcZZDj.js +0 -1
- package/dist/nand2tetris-hdl-Deux5UAx.js +0 -1
- package/dist/naniscript-jeJO_Cwe.js +0 -1
- package/dist/nasm-DO__GDMC.js +0 -1
- package/dist/neon-k-XmqJK1.js +0 -1
- package/dist/nevod-CVbTPaTU.js +0 -1
- package/dist/nginx-Tr7fUd5Q.js +0 -1
- package/dist/nim-DoVTJHY6.js +0 -1
- package/dist/nix-D3dcpYSM.js +0 -1
- package/dist/nsis-Dg9SRrGb.js +0 -1
- package/dist/objectivec-DR-DvLAX.js +0 -1
- package/dist/ocaml-F3JoCAcv.js +0 -1
- package/dist/opencl-7oQl32PR.js +0 -1
- package/dist/openqasm-CKAaKI3L.js +0 -1
- package/dist/oz-BRgcnbzh.js +0 -1
- package/dist/paintbrush-CTOxtIk9.js +0 -7
- package/dist/parigp-bc7o-JYX.js +0 -1
- package/dist/parser-Dh9T84aa.js +0 -1
- package/dist/pascal-Mc9TrqVN.js +0 -1
- package/dist/pascaligo-Bu5Nfubu.js +0 -1
- package/dist/pcaxis-CeA8o0Aa.js +0 -1
- package/dist/pen-tool-BG-0jVP8.js +0 -7
- package/dist/peoplecode-DMMP6xme.js +0 -1
- package/dist/perl-pjwABpJK.js +0 -1
- package/dist/php-B9N6PoaM.js +0 -1
- package/dist/php-D0A5Cwxv.js +0 -1
- package/dist/php-extras-WT2OUkhI.js +0 -1
- package/dist/phpdoc-BXRRdQyT.js +0 -1
- package/dist/plsql-BhY3w0-9.js +0 -1
- package/dist/plyr-DCr4Ncz4.js +0 -2
- package/dist/powerquery-DF59uGya.js +0 -1
- package/dist/powershell-BNMQ_G2y.js +0 -1
- package/dist/processing-JexFWMaq.js +0 -1
- package/dist/prolog--bkGGaUb.js +0 -1
- package/dist/promql-BguTah4b.js +0 -1
- package/dist/properties-21I9dpC7.js +0 -1
- package/dist/protobuf-C0LuKyr-.js +0 -1
- package/dist/psl-_DpEFNrY.js +0 -1
- package/dist/pug-C-A1gqPF.js +0 -1
- package/dist/puppet-ChOfG5zw.js +0 -1
- package/dist/pure-Bix-aADQ.js +0 -1
- package/dist/purebasic-DOms9tc7.js +0 -1
- package/dist/purescript-L-AGCGHP.js +0 -1
- package/dist/python-ChreXwvT.js +0 -1
- package/dist/q-w16v1aiR.js +0 -1
- package/dist/qml-DiMezLXL.js +0 -1
- package/dist/qore-DR2g9gsH.js +0 -1
- package/dist/qsharp-C0P6--Sc.js +0 -1
- package/dist/quill-C2A8QePO.js +0 -49
- package/dist/r-HQDwuLXo.js +0 -1
- package/dist/racket-Gz0Tynq_.js +0 -1
- package/dist/react-sdk.css +0 -7
- package/dist/reason-DBZ2sbZf.js +0 -1
- package/dist/regex-lCxC2f-X.js +0 -1
- package/dist/rego-CK6sX92A.js +0 -1
- package/dist/renpy-DtMBoTkk.js +0 -1
- package/dist/rest-DT-jpd1T.js +0 -1
- package/dist/rip-BeCJeoFQ.js +0 -1
- package/dist/roboconf-DQznEGKV.js +0 -1
- package/dist/robotframework-DXfgQqPU.js +0 -1
- package/dist/ruby-3lCor9Ik.js +0 -1
- package/dist/ruby-DPvt_xbw.js +0 -1
- package/dist/runtime-Dn4RiA4k.js +0 -6691
- package/dist/rust-BMc_Yoiv.js +0 -1
- package/dist/sas-0PXWaOIL.js +0 -1
- package/dist/sass-eNYNq8W7.js +0 -1
- package/dist/scala-CyhPM_cs.js +0 -1
- package/dist/scheme-CdQ15Dry.js +0 -1
- package/dist/scheme-DkN0sF0_.js +0 -1
- package/dist/scss-Dy6G_PiM.js +0 -1
- package/dist/shell-session-1NCwql3m.js +0 -1
- package/dist/smali-j9qYXhoq.js +0 -1
- package/dist/smalltalk-D8MDc5CV.js +0 -1
- package/dist/smarty-Bc1ihKhR.js +0 -1
- package/dist/sml-C6hRyyWz.js +0 -1
- package/dist/solidity-BQQmiGFI.js +0 -1
- package/dist/solution-file-MWLYI-NZ.js +0 -1
- package/dist/soy-CXN6tOb4.js +0 -1
- package/dist/sparql-C-R8Gias.js +0 -1
- package/dist/splunk-spl-B_ygCXaC.js +0 -1
- package/dist/sqf-Zq41ozXt.js +0 -1
- package/dist/sql-BxmFV8oZ.js +0 -1
- package/dist/sql-aYT6xcy6.js +0 -1
- package/dist/squirrel-go-JCyyj.js +0 -1
- package/dist/stan-DgTU6nBX.js +0 -1
- package/dist/stylus-D8xMSxFz.js +0 -1
- package/dist/swift-DDKLVbtw.js +0 -1
- package/dist/systemd-CVI591rs.js +0 -2
- package/dist/t4-cs-D4CxVwOS.js +0 -1
- package/dist/t4-templating-BzJ2F4We.js +0 -1
- package/dist/t4-templating-DCXEabnB.js +0 -1
- package/dist/t4-vb-Bxs17kz4.js +0 -1
- package/dist/table-C4pYCXjv.js +0 -7
- package/dist/tableToMarkdown-CNmfuY27.js +0 -3
- package/dist/tap-qeDv6-X-.js +0 -1
- package/dist/tcl-B4LiNtEH.js +0 -1
- package/dist/templateSelectorDialog-DkOR3EVS.js +0 -2
- package/dist/textile-fSaG4-pZ.js +0 -1
- package/dist/toml-Dkmu12eX.js +0 -1
- package/dist/tremor-DdjJs31u.js +0 -1
- package/dist/tsx-Do1jr-aP.js +0 -1
- package/dist/tt2-BlqLFdd5.js +0 -1
- package/dist/turtle-BfhtjCXi.js +0 -1
- package/dist/turtle-UC3jR8N2.js +0 -1
- package/dist/twig-Dfr2sL0m.js +0 -1
- package/dist/typescript-fgz3QQiH.js +0 -1
- package/dist/typescript-y5LBWDhp.js +0 -1
- package/dist/typoscript-DqDEKl5c.js +0 -1
- package/dist/unrealscript-e9RCjvlz.js +0 -1
- package/dist/uorazor-CoHM_uv6.js +0 -1
- package/dist/uri-B4z44HxE.js +0 -1
- package/dist/usePromptLibraryMutations-DK7AzgzY.js +0 -1
- package/dist/useSupabaseBlobUrl-D9O3nyTh.js +0 -1
- package/dist/useTermsNotice-BJqwp7Hj.js +0 -1
- package/dist/user-plus-DXpUkE2I.js +0 -7
- package/dist/user-round-plus-DE6UUMZ6.js +0 -7
- package/dist/v-49Lixibt.js +0 -1
- package/dist/vala-BkpQ1izY.js +0 -1
- package/dist/vbnet-DUoEkDlO.js +0 -1
- package/dist/vbnet-LHlE90my.js +0 -1
- package/dist/velocity-c4kJdiwm.js +0 -1
- package/dist/verilog-CJyeWxAh.js +0 -1
- package/dist/vhdl-LArWr_il.js +0 -1
- package/dist/vim-Dv7JUrwn.js +0 -1
- package/dist/visual-basic-7MKQqLwe.js +0 -1
- package/dist/warpscript-_8Izrgfd.js +0 -1
- package/dist/wasm-znUgjSxD.js +0 -1
- package/dist/web-idl-jFkNLO1i.js +0 -1
- package/dist/wiki-CFXfbO63.js +0 -1
- package/dist/wolfram-Ch26p3vt.js +0 -1
- package/dist/wren-ChmtUIOJ.js +0 -1
- package/dist/xeora-C44TNzQZ.js +0 -1
- package/dist/xlsx-uaO0TYvF.js +0 -142
- package/dist/xml-doc-CbcCzx5D.js +0 -1
- package/dist/xojo-BgNHj7YG.js +0 -1
- package/dist/xquery-y_0Tk4Bz.js +0 -1
- package/dist/yaml-DbYRgcYc.js +0 -1
- package/dist/yaml-GRhlHhYd.js +0 -1
- package/dist/yang-BLo0KhOp.js +0 -1
- package/dist/zig-DLqaTzcX.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsxs as c,jsx as a,Fragment as $e}from"react/jsx-runtime";import re,{useState as b,useMemo as J,useRef as ye,useEffect as se}from"react";import{dK as _e,dd as He,dL as je,bD as Fe,bC as Be,ch as ze,bB as qe,cj as Ke,ck as We,c3 as Qe,c4 as Ve,ca as Ye,c5 as Ze,aZ as Je,bQ as X,d1 as Xe,bP as Ee,dG as et,j as ie,dD as tt,cc as at,bG as Re,dM as Ne}from"./runtime-Dn4RiA4k.js";import{u as rt,i as st}from"./usePromptLibraryMutations-DK7AzgzY.js";import"react-dom";import"react-dom/client";const it=({onCurrentTypingChange:d,tags:i,setTags:n,disabled:m=!1,placeholder:S="Type tags",maxTags:A=1/0,className:g="",compact:I=!1,onBlur:E,tagPrefix:v="",suggestions:u=[],maxSuggestions:T=10,testId:R})=>{const[w,y]=b(""),$=J(()=>{if(!u.length)return[];const s=w.trim(),p=v&&s.startsWith(v)?s.slice(v.length):s,H=u.filter(f=>!i.some(L=>L.toLowerCase()===f.toLowerCase()));return p?H.filter(f=>f.toLowerCase().includes(p.toLowerCase())).slice(0,T):H.slice(0,T)},[u,w,i,v,T]),O=i.length>=A,_=s=>{if(!s.trim())return;const p=s.split(",").map(f=>{const L=f.trim();return v&&L.startsWith(v)?L.slice(v.length):L}).filter(f=>f),H=[...new Set([...i,...p.filter(f=>!i.some(L=>L.toLowerCase()===f.toLowerCase()))])].slice(0,A);n(H),y("")},B=s=>{y(s.target.value),d&&d(s.target.value,!0)},q=s=>{const p=s.clipboardData.getData("text");p.includes(",")&&(s.preventDefault(),_(p))},U=s=>{s.key===","||s.key==="Enter"?(s.preventDefault(),_(w)):s.key==="Backspace"&&!w&&i.length>0&&n(i.slice(0,-1))},K=()=>{_(w),E&&E()},W=s=>{m||n(i.filter(p=>p!==s))},Q=s=>{if(m)return;const p=[...new Set([...i,s])].slice(0,A);n(p),y("")};return c("div",{className:`ui-border ui-border-border-primary ui-rounded-md ui-p-2 ${I?"ui-min-h-[40px]":"ui-min-h-[100px]"} ui-flex ui-flex-col ui-gap-2 ${g}`,children:[c("div",{className:"ui-flex ui-flex-wrap ui-gap-2","data-testid":R,children:[i.map(s=>c("div",{className:"ui-flex ui-items-center ui-gap-1 ui-px-2 ui-py-1 ui-rounded-md ui-bg-primary05 ui-text-primary",children:[c("span",{className:"ui-text-xs",children:[v,s]}),a("button",{onClick:()=>W(s),className:"ui-text-neutral03 ui-hover:ui-text-neutral01 disabled:ui-cursor-not-allowed disabled:ui-opacity-50",type:"button",disabled:m,"aria-label":`Remove ${s}`,children:a(_e,{className:"ui-h-3 ui-w-3"})})]},s)),a(He,{variant:"borderless",value:w,onChange:B,onPaste:q,onKeyDown:U,onBlur:K,placeholder:O?`Maximum of ${A} tags reached`:S,className:"ui-flex-1 ui-min-w-[150px] ui-border-none ui-outline-none ui-shadow-none ui-h-8 ui-py-1.5 ui-px-2 focus-visible:ui-outline-none focus-visible:ui-ring-0",disabled:m||O,expandable:!1})]}),$.length>0&&a("div",{className:"ui-pt-2 ui-mt-2",children:c("div",{className:"ui-flex ui-flex-wrap ui-gap-1 ui-items-center",children:[a("span",{className:"ui-text-xs ui-text-neutral04",children:"Suggestions:"}),$.map(s=>a("button",{type:"button",onClick:()=>Q(s),disabled:m,className:"ui-inline-flex ui-items-center ui-gap-1 ui-px-2 ui-py-1 ui-rounded-md ui-bg-neutral07 ui-text-neutral02 ui-hover:ui-bg-neutral04 ui-transition-colors ui-cursor-pointer disabled:ui-cursor-not-allowed disabled:ui-opacity-50",children:c("span",{className:"ui-text-xs",children:[v,s]})},s))]})})]})},ee=d=>{const i=d.map(n=>`"${n}"`);return i.length<=1?i[0]??"":i.length===2?`${i[0]} and ${i[1]}`:`${i.slice(0,-1).join(", ")}, and ${i[i.length-1]}`},nt=100,lt=({teams:d,isLoadingTeams:i,hasSearch:n,checkedLocations:m,onToggle:S,disabled:A})=>i?a("p",{className:"text-xs text-muted-foreground ml-6",children:"Loading teams..."}):d.length===0?n?a("p",{className:"text-xs text-muted-foreground",children:"No teams match your search."}):a("p",{className:"text-xs text-muted-foreground",children:"No teams available. You can share with the organization."}):a($e,{children:d.map(g=>a(Ee,{label:g.teamName,checked:m.has(g.teamId),onChange:I=>S(g.teamId,!!I),disabled:A},g.teamId))}),Te=({label:d,isSelected:i,onClick:n})=>c("div",{onClick:n,className:ie("flex items-center gap-1.5 px-2 py-1.5 rounded-md border cursor-pointer select-none transition-colors text-sm",i?"border-primary text-primary":"border-border text-neutral-600"),children:[a("div",{className:ie("w-1.5 h-1.5 rounded-full",i?"bg-primary":"bg-neutral-400")}),d]}),ot=({isOpen:d,setIsOpen:i,item:n,isAdd:m,savedItems:S,moduleNameOverride:A})=>{const[g,I]=b((n==null?void 0:n.promptText)||""),[E,v]=b(""),[u,T]=b("USER"),[R,w]=b("org"),[y,$]=b([]),[O,_]=b([]),[B,q]=b(!1),[U,K]=b(""),[W,Q]=b(null),[s,p]=b(!1),H=je(U),f=ye(new Map),{modulesForLibrary:L,currentModule:ne,savedPrompts:le}=Fe(),oe=L.filter(e=>e.value!=="all_use_cases"),{isAdmin:M,user:te}=Be(),{captureException:de}=ze(),{toast:me}=qe(),z=ye(null),{isFeatureEnabled:Le}=Ke(),Ce=Le(We.SHARED_PROMPTS_ALL_MEMBERS),k=M||Ce,{createPromptAsync:ce,updatePromptAsync:Ae,deletePromptAsync:Ue,isCreating:ue,isUpdating:pe,isDeleting:he}=rt(),D=k&&m,[G,ge]=b(new Set),P=re.useMemo(()=>{const e=new Set;if(!S)return e;for(const t of S)t.promptLevel==="USER"&&e.add("USER"),t.promptLevel==="ORG"&&e.add("ORG"),t.promptLevel==="TEAM"&&t.teamId&&e.add(t.teamId);return e},[S]),Pe=re.useMemo(()=>{const e=le.flatMap(t=>t.tags||[]).filter(t=>t&&t.trim().length>0);return Array.from(new Set(e)).sort()},[le]),fe=e=>{const t=e||A||(ne==null?void 0:ne.name)||"",r=oe.find(l=>l.value===t);v((r==null?void 0:r.value)||"")},xe=M&&U.trim()?H.trim():"";se(()=>{if(!d||!k)return;let e=!1;return(async()=>{q(!0);try{const t=M?await Ne.getTeams(nt,0,!1,xe||void 0):await Ne.getUserTeams(te.id);if(e)return;const r=t.data;if(r!=null&&r.success&&r.teams){const l=r.teams.filter(h=>!(h.is_system_team||h.isSystemTeam)).map(h=>({teamId:h.team_id||h.teamId||"",teamName:h.team_name||h.teamName||""})).filter(h=>!!h.teamId);l.forEach(h=>f.current.set(h.teamId,h.teamName));const F=r.totalCount??r.total_count;_(l),Q(typeof F=="number"?F:null),p((r.hasMore??r.has_more)===!0)}else _([]),Q(null),p(!1)}catch(t){if(e)return;de({error:t,extra:{context:"fetch_teams"}})}finally{e||q(!1)}})(),()=>{e=!0}},[d,k,M,te==null?void 0:te.id,xe]);const V=J(()=>{if(M)return O;const e=U.trim().toLowerCase();return e?O.filter(t=>t.teamName.toLowerCase().includes(e)):O},[M,O,U]),Y=U.trim().length>0,Ie=Y||B||f.current.size>0,ve=s&&W!==null?`Showing ${V.length} of ${W} teams \u2014 search to narrow`:null,ae=J(()=>{if(!Y)return 0;const e=new Set(V.map(t=>t.teamId));return[...G].filter(t=>t!=="ORG"&&t!=="USER"&&!e.has(t)).length},[Y,V,G]),Oe=J(()=>[...P].sort().join("|"),[P]);se(()=>{if(!d){K("");return}n?(I(n.promptText),fe(n.moduleName),$(n.tags||[]),n.promptLevel==="USER"?T("USER"):(n.promptLevel==="ORG"||n.promptLevel==="TEAM")&&(T("SHARED"),n.promptLevel==="TEAM"&&n.teamId?w(n.teamId):w("org"))):(I(""),fe(),T("USER"),w("org"),$([])),D&&(ge(new Set(P)),S!=null&&S.some(e=>e.promptLevel==="ORG"||e.promptLevel==="TEAM")&&T("SHARED"))},[n,d,D,Oe]),se(()=>{if(d){let e=null;const t=requestAnimationFrame(()=>{e=setTimeout(()=>{if(z.current){z.current.focus();const r=z.current.value.length;z.current.setSelectionRange(r,r)}},400)});return()=>{cancelAnimationFrame(t),e&&clearTimeout(e)}}},[d]);const j=e=>f.current.get(e),be=e=>{T(e),e==="SHARED"&&(R==="org"||j(R)||w("org"))},Se=(e,t)=>{ge(r=>{const l=new Set(r);return t?l.add(e):l.delete(e),l})},Z=e=>e==="USER"?"My Prompts":e==="ORG"?"Shared Prompts":j(e)||"Team",Me=async e=>{e.preventDefault();try{if(D){const t=new Set;u==="USER"?t.add("USER"):G.forEach(o=>t.add(o));const r=[...t].filter(o=>!P.has(o)),l=[...P].filter(o=>!t.has(o)),F=r.map(o=>{let x,C;return o==="USER"?x="USER":o==="ORG"?x="ORG":(x="TEAM",C=o),ce({moduleName:E,promptText:g,promptLevel:x,tags:y.length>0?y:void 0,teamId:C,teamName:C?j(C):void 0,suppressToast:!0})}),h=l.map(o=>{const x=S==null?void 0:S.find(C=>o==="USER"?C.promptLevel==="USER":o==="ORG"?C.promptLevel==="ORG":C.promptLevel==="TEAM"&&C.teamId===o);return x!=null&&x.id?Ue({promptId:x.id,suppressToast:!0}):Promise.resolve()});await Promise.all([...F,...h]);const De=r.length>0&&l.length===0,Ge=l.length>0&&r.length===0;if(r.length>0||l.length>0){let o,x;De?(o="Added new prompt",x=`Successfully added new prompt to ${ee(r.map(Z))}`):Ge?(o="Deleted prompt",x=`Successfully deleted prompt from ${ee(l.map(Z))}`):(o="Updated prompt",x=`Successfully added to ${ee(r.map(Z))} and removed from ${ee(l.map(Z))}`),me({title:o,description:x,variant:"success"})}}else if(m){let t,r,l;u==="USER"||!k?(t="USER",l="My Prompts"):R==="org"?(t="ORG",l="Shared Prompts"):(t="TEAM",r=R,l=j(R)||"Team");const F=`Successfully added new prompt to "${l}"`;await ce({moduleName:E,promptText:g,promptLevel:t,tags:y.length>0?y:void 0,teamId:r,teamName:r?j(r):void 0,suppressToast:!0}),me({title:"Added new prompt",description:F,variant:"success"})}else if(n){let t,r;u==="USER"||!k?t="USER":R==="org"?t="ORG":(t="TEAM",r=R),await Ae({originalItem:n,newModuleName:E,newPromptText:g,newPromptLevels:[t],newTags:y,newTeamId:r,newTeamName:r?j(r):void 0,suppressToast:!1})}i(!1)}catch(t){st(t)||de({error:t,extra:{module:E,query:g,saveLocation:u,sharedTarget:R,tags:y,isAdmin:M,isAdd:m,originalItem:n}})}},we=()=>{!ue&&!pe&&!he&&i(!1)},N=ue||pe||he,ke=re.useMemo(()=>{if(!D)return!0;const e=new Set;if(u==="USER"?e.add("USER"):G.forEach(l=>e.add(l)),u==="SHARED"&&e.size===0)return!1;const t=[...e].filter(l=>!P.has(l)),r=[...P].filter(l=>!e.has(l));return t.length>0||r.length>0},[D,G,P,u]);return a(Qe,{open:d,onOpenChange:we,children:a(Ve,{className:"sm:max-w-[600px]",closeOnOutsideClick:!1,children:c("form",{onSubmit:Me,children:[a(Ye,{children:a(Ze,{children:m?"Add Prompt":"Edit Prompt"})}),c("div",{className:"grid gap-4 p-4 max-h-[calc(85vh-8rem)] overflow-y-auto",children:[a("div",{className:"grid gap-2",children:a(Je,{ref:z,id:"save-prompt-title",name:"save-prompt-title",required:!0,placeholder:"Enter prompt",value:g,onChange:e=>I(e.target.value),disabled:N,label:"Prompt",rows:5,expandable:!1})}),(m||!E)&&c("div",{className:"grid gap-2",children:[a(X,{htmlFor:"module",children:"Use case"}),a(Xe,{options:oe,value:E,onChange:v,disabled:N,popoverProps:{avoidCollisions:!0,sideOffset:3,align:"center",collisionPadding:10},placeholder:"Select module",className:"text-sm h-10 w-full",id:"save-prompt-module-select"})]}),c("div",{className:"grid gap-2",children:[a(X,{htmlFor:"tags",children:"Tags (optional)"}),a(it,{tags:y,setTags:$,placeholder:"Type and press Enter or comma to add tags...",disabled:N,maxTags:10,tagPrefix:"#",suggestions:Pe,testId:"prompt-library-tags-container"}),a("p",{className:"text-xs text-muted-foreground",children:"Add tags to help organize and search your prompts"})]}),k&&m&&c("div",{className:"grid gap-3",children:[a(X,{children:"Save to"}),c("div",{className:"flex items-center gap-2",children:[a(Te,{label:"My Prompts",isSelected:u==="USER",onClick:()=>be("USER")}),a(Te,{label:"Shared Prompts",isSelected:u==="SHARED",onClick:()=>be("SHARED")})]}),u==="SHARED"&&D&&c("div",{className:"ml-4 grid gap-2",children:[a(X,{children:"Share with"}),a(Ee,{label:"Organization",checked:G.has("ORG"),onChange:e=>Se("ORG",!!e),disabled:N}),Ie&&c("div",{className:ie("flex items-center gap-1.5 rounded-md border border-neutral05 bg-card px-3 py-2 text-sm","focus-within:border-primary"),children:[a(et,{className:"h-4 w-4 text-neutral04 shrink-0"}),a("input",{type:"text",name:"save-prompt-team-search",autoComplete:"off",value:U,onChange:e=>K(e.target.value),placeholder:"Search teams...",disabled:N,"aria-label":"Search teams","data-testid":"save-prompt-team-search",className:"flex-1 min-w-0 bg-transparent outline-none text-sm text-neutral01 placeholder:text-neutral04"})]}),a("div",{"data-testid":"save-prompt-team-list",className:"grid gap-2 max-h-[64px] overflow-y-auto overscroll-contain pr-2",children:a(lt,{teams:V,isLoadingTeams:B,hasSearch:Y,checkedLocations:G,onToggle:Se,disabled:N})}),ae>0&&c("p",{className:"text-xs text-muted-foreground",children:[ae," selected ",ae===1?"team is":"teams are"," hidden by this search"]}),ve&&a("p",{className:"text-xs text-muted-foreground",children:ve})]})]}),!k&&m&&a(tt,{variant:"info",message:"This prompt will be saved to your private library. Please contact your admin to add prompts to the shared library."})]}),c(at,{children:[a(Re,{variant:"outline",type:"button",onClick:we,disabled:N,children:"Cancel"}),a(Re,{type:"submit",isLoading:N,disabled:N||!g.trim()||!E||u==="SHARED"&&B||D&&!ke,children:N?m?"Creating...":"Updating...":m?"Create":"Update"})]})]})})})};export{ot as SavePromptDialog};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsxs as r,Fragment as W,jsx as s}from"react/jsx-runtime";import{useState as E,useMemo as I,useEffect as ie}from"react";import{bB as Ne,dD as Se,dE as _e,dF as Ce,dG as Te,j as O,dH as We,dI as Ee,bG as L,bK as se,bL as te,bM as ae,bN as re,bO as f,dJ as ne,c3 as Ie,c4 as Oe,ca as Me,c5 as Ve}from"./runtime-Dn4RiA4k.js";import{U as Ue}from"./user-round-plus-DE6UUMZ6.js";const ke={sharing_not_enabled_for_module:"Sharing is not enabled for this module",permission_not_allowed:"The requested permission is not allowed for this module",single_editor_violation:"Only one user can have edit access at a time",Conflict:"Only one user can have edit access at a time",sharing_not_allowed_policy_check_in_progress:"You can share this policy checking run once the analysis is complete."},le=o=>o&&ke[o]||"Failed to update sharing",de=o=>o==null?void 0:o.data,je=o=>de(o==null?void 0:o.response),oe=({resourceId:o,emptyStateDescription:M,shareOptionsData:w,isLoadingOptions:$,existingSharesData:b,syncSharesMutation:N,isSaving:y,searchText:F,onSearchTextChange:S,teamsViewOnly:me=!1,allowedPermissions:x=["view","edit"],singleEditConstraint:h=!1,saveLabel:he="Save",savingLabel:ue="Saving...",onClose:R,showFooter:pe=!0})=>{const z=x.length===1&&x[0]==="view",[V,_]=E(!1),[u,p]=E([]),[d,C]=E(new Set),[m,g]=E(new Map),{toast:U}=Ne(),c=I(()=>{const e=b==null?void 0:b.data;return(e==null?void 0:e.shares)??[]},[b]),ve=I(()=>c.filter(e=>!d.has(e.id)),[c,d]),T=I(()=>{if(!h)return null;for(const e of c)if(!(e.shareType!=="user"||d.has(e.id))&&(m.get(e.id)||e.permission)==="edit")return{id:e.sharedWithUserId,name:e.sharedWithName,source:"existing",shareId:e.id};for(const e of u)if(e.type==="user"&&e.permission==="edit")return{id:e.id,name:e.name,source:"new"};return null},[h,c,u,d,m]),v=I(()=>{const e=w==null?void 0:w.data,a=(e==null?void 0:e.users)??[],t=(e==null?void 0:e.teams)??[],i=new Set([...u.map(l=>l.id),...c.map(l=>l.sharedWithUserId||l.sharedWithTeamId)]),n=a.filter(l=>!i.has(l.id)).map(l=>({id:l.id,name:l.name,email:l.email,type:"user",permission:"view"})),D=t.filter(l=>!i.has(l.id)).map(l=>({id:l.id,name:l.name,type:"team",permission:"view"}));return{users:n,teams:D}},[w,u,c]),xe=v.teams.length>0||v.users.length>0,P=e=>{p(a=>[...a,e]),S(""),_(!1)},ge=e=>{p(a=>a.filter(t=>t.id!==e))},G=(e,a)=>{if(a==="remove")ge(e);else if(h&&a==="edit"){for(const t of c)t.shareType!=="user"||d.has(t.id)||(m.get(t.id)||t.permission)==="edit"&&g(i=>new Map([...i,[t.id,"view"]]));p(t=>t.map(i=>i.id===e?{...i,permission:a}:i.type==="user"&&i.permission==="edit"?{...i,permission:"view"}:i))}else p(t=>t.map(i=>i.id===e?{...i,permission:a}:i))},q=(e,a)=>{if(a==="remove")C(t=>new Set([...t,e]));else if(C(t=>{const i=new Set(t);return i.delete(e),i}),h&&a==="edit"){const t=new Map(m);t.set(e,a);for(const i of c)i.id===e||i.shareType!=="user"||d.has(i.id)||(t.get(i.id)||i.permission)==="edit"&&t.set(i.id,"view");g(t),p(i=>i.map(n=>n.type==="user"&&n.permission==="edit"?{...n,permission:"view"}:n))}else g(t=>new Map([...t,[e,a]]))},fe=async()=>{var e,a;const t=[];ve.forEach(i=>{const n=m.get(i.id)||i.permission||"view";i.shareType==="user"&&i.sharedWithUserId?t.push({user_id:i.sharedWithUserId,permission:n}):i.shareType==="team"&&i.sharedWithTeamId&&t.push({team_id:i.sharedWithTeamId,permission:n})}),u.forEach(i=>{i.type==="user"?t.push({user_id:i.id,permission:i.permission}):t.push({team_id:i.id,permission:i.permission})});try{const i=de(await N({resourceId:o,shares:t}));if((i==null?void 0:i.message)==="Error"||((i==null?void 0:i.code)??0)>=400||i!=null&&i.error){const n=((e=i==null?void 0:i.errorDetails)==null?void 0:e.message)||(i==null?void 0:i.message);U({title:le(n),description:"",variant:"destructive"})}else U({title:"Sharing updated",description:"",variant:"success"}),A(),R()}catch(i){const n=je(i),D=((a=n==null?void 0:n.errorDetails)==null?void 0:a.message)||(n==null?void 0:n.message);U({title:le(D),description:"",variant:"destructive"})}},A=()=>{p([]),C(new Set),g(new Map),S("")},B=()=>{A(),R()};ie(()=>{p([]),C(new Set),g(new Map),S("")},[o]),ie(()=>{if(!h||c.length===0)return;const e=c.filter(t=>t.shareType==="user"&&t.permission==="edit");if(e.length<=1)return;const a=new Map;e.slice(1).forEach(t=>a.set(t.id,"view")),g(t=>new Map([...t,...a]))},[h,c]);const we=u.length>0||d.size>0||m.size>0,H=u.filter(e=>e.type==="user"),J=u.filter(e=>e.type==="team"),K=c.filter(e=>e.shareType==="user"),Y=c.filter(e=>e.shareType==="team"),k=H.length+K.length,j=J.length+Y.length,Q=e=>({view:"View",edit:"Edit",remove:"Remove"})[e]||"View",X=e=>T?T.id!==e:!1,be=T?`Edit access already assigned to ${T.name}`:void 0,ye=me||z,Z=(e,a,t,i)=>z?s("span",{className:"h-8 text-sm px-2 flex items-center text-neutral03",children:"View"}):r(se,{value:e,onValueChange:a,children:[s(te,{className:"h-8 text-sm px-2 w-[110px]",displayValue:i,children:s(ae,{})}),r(re,{children:[x.includes("view")&&s(f,{value:"view",children:"View"}),x.includes("edit")&&s(f,{value:"edit",disabled:h&&X(t),tooltip:h&&X(t)?be:void 0,children:"Edit"}),s(ne,{}),s(f,{value:"remove",children:"Remove Access"})]})]}),ee=(e,a,t)=>r(se,{value:e,onValueChange:a,children:[s(te,{className:"h-8 text-sm px-2 w-[110px]",displayValue:t,children:s(ae,{})}),r(re,{children:[x.includes("view")&&s(f,{value:"view",children:"View"}),!ye&&x.includes("edit")&&s(f,{value:"edit",children:"Edit"}),s(ne,{}),s(f,{value:"remove",children:"Remove Access"})]})]});return r(W,{children:[r("div",{className:"px-6 pt-4 pb-6 space-y-5 min-h-[280px]",children:[h&&s(Se,{variant:"warning",title:"Only one editor is allowed at a time",message:"To assign Edit access to someone else, first change the current editor's permission to View."}),r(_e,{open:V,onOpenChange:_,children:[s(Ce,{asChild:!0,children:r("div",{className:O("flex flex-wrap gap-1.5 min-h-[42px] rounded-md border border-neutral05 bg-card px-3 py-2 text-sm cursor-text","focus-within:outline-none focus-within:border-primary",V&&"border-primary"),onClick:()=>_(!0),children:[s(Te,{className:"h-4 w-4 text-neutral04 shrink-0 mt-0.5"}),s("input",{type:"text",name:"share-search-input",autoComplete:"off",value:F,onChange:e=>{S(e.target.value),V||_(!0)},placeholder:"Search teams or users...",className:"flex-1 min-w-[120px] bg-transparent outline-none text-sm text-neutral01 placeholder:text-neutral04"})]})}),s(We,{children:s(Ee,{className:"w-[var(--radix-popover-trigger-width)] bg-popover border border-neutral06 rounded-md shadow-lg mt-1 z-50",sideOffset:4,align:"start",onOpenAutoFocus:e=>e.preventDefault(),onWheel:e=>e.stopPropagation(),children:s("div",{className:"max-h-[240px] overflow-y-auto overscroll-contain",children:$?s("div",{className:"p-3 text-sm text-neutral04 text-center",children:"Loading..."}):xe?r(W,{children:[v.teams.length>0&&r(W,{children:[s("div",{className:"px-3 pt-2 pb-1 text-xs font-medium text-neutral04",children:"Teams"}),v.teams.slice(0,5).map(e=>s("div",{onClick:()=>P(e),className:"px-3 py-2 cursor-pointer hover:bg-neutral08 transition-colors",children:s("span",{className:"text-sm text-neutral01 truncate",children:e.name})},e.id))]}),v.users.length>0&&r(W,{children:[v.teams.length>0&&s("div",{className:"border-t border-neutral06 my-1"}),s("div",{className:"px-3 pt-2 pb-1 text-xs font-medium text-neutral04",children:"Users"}),v.users.slice(0,5).map(e=>r("div",{"data-testid":`share-user-option-${e.id}`,onClick:()=>P(e),className:"flex flex-col min-w-0 px-3 py-2 cursor-pointer hover:bg-neutral08 transition-colors",children:[s("span",{className:"text-sm text-neutral01 truncate",children:e.name}),e.email&&s("span",{className:"text-xs text-neutral03 truncate",children:e.email})]},e.id))]})]}):s("div",{className:"p-3 text-sm text-neutral04 text-center",children:F?"No results found":"Type to search..."})})})})]}),j===0&&k===0&&r("div",{className:"flex flex-col items-center justify-center py-6 text-center",children:[s("div",{className:"h-12 w-12 rounded-full bg-primary/10 flex items-center justify-center mb-3",children:s(Ue,{className:"h-6 w-6 text-primary"})}),s("h3",{className:"text-base font-semibold text-neutral01 mb-1",children:"Share with your team"}),s("p",{className:"text-sm text-neutral03 max-w-[340px]",children:M})]}),j>0&&r("div",{children:[s("div",{className:"mb-2",children:s("span",{className:"text-xs font-medium text-neutral04",children:"Teams with access"})}),s("div",{className:"border rounded-lg bg-muted/50 flex flex-col max-h-[160px]",children:r("div",{className:"overflow-y-auto",children:[J.map(e=>r("div",{className:"grid grid-cols-[1fr_auto] gap-2 px-3 py-2 border-b last:border-b-0 hover:bg-card transition-colors items-center",children:[s("div",{className:"text-sm text-neutral01 truncate",children:e.name}),ee(e.permission,a=>G(e.id,a))]},`new-${e.id}`)),Y.map(e=>r("div",{className:"grid grid-cols-[1fr_auto] gap-2 px-3 py-2 border-b last:border-b-0 hover:bg-card transition-colors items-center",children:[s("div",{className:O("text-sm text-neutral01 truncate",d.has(e.id)&&"line-through text-neutral04"),children:e.sharedWithName}),ee(d.has(e.id)?"remove":m.get(e.id)||e.permission||"view",a=>q(e.id,a),Q(d.has(e.id)?"remove":m.get(e.id)||e.permission||"view"))]},`existing-${e.id}`))]})})]}),k>0&&r("div",{children:[s("div",{className:"mb-2",children:s("span",{className:"text-xs font-medium text-neutral04",children:"Users with access"})}),s("div",{className:"border rounded-lg bg-muted/50 flex flex-col max-h-[160px]",children:r("div",{className:"overflow-y-auto",children:[H.map(e=>r("div",{"data-testid":"share-user-row","data-user-id":e.id,className:"grid grid-cols-[1fr_auto] gap-2 px-3 py-2 border-b last:border-b-0 hover:bg-card transition-colors items-center",children:[r("div",{className:"min-w-0",children:[s("div",{className:"text-sm text-neutral01 truncate",children:e.name}),e.email&&s("div",{className:"text-xs text-neutral03 truncate",children:e.email})]}),Z(e.permission,a=>G(e.id,a),e.id)]},`new-${e.id}`)),K.map(e=>r("div",{"data-testid":"share-user-row","data-user-id":e.sharedWithUserId??"",className:"grid grid-cols-[1fr_auto] gap-2 px-3 py-2 border-b last:border-b-0 hover:bg-card transition-colors items-center",children:[r("div",{className:"min-w-0",children:[s("div",{className:O("text-sm text-neutral01 truncate",d.has(e.id)&&"line-through text-neutral04"),children:e.sharedWithName}),e.sharedWithEmail&&s("div",{className:O("text-xs text-neutral03 truncate",d.has(e.id)&&"text-neutral04"),children:e.sharedWithEmail})]}),Z(d.has(e.id)?"remove":m.get(e.id)||e.permission||"view",a=>q(e.id,a),e.sharedWithUserId,Q(d.has(e.id)?"remove":m.get(e.id)||e.permission||"view"))]},`existing-${e.id}`))]})})]})]}),pe&&r("div",{className:"flex justify-end gap-2 px-6 pb-6",children:[s(L,{variant:"outline",onClick:B,children:"Cancel"}),j===0&&k===0?s(L,{"data-testid":"share-done-button",onClick:B,children:"Done"}):s(L,{"data-testid":"share-save-button",onClick:fe,disabled:!we||y,isLoading:y,children:y?ue:he})]})]})},ce=({isOpen:o,setIsOpen:M,title:w,resourceName:$,...b})=>{const N=()=>M(!1);return s(Ie,{open:o,onOpenChange:y=>{y||N()},children:r(Oe,{"data-testid":"sharing-dialog",className:"sm:max-w-[580px] overflow-visible",children:[s(Me,{children:s(Ve,{children:w})}),s(oe,{...b,onClose:N})]})})},De=Object.freeze(Object.defineProperty({__proto__:null,ShareResourceDialog:ce},Symbol.toStringTag,{value:"Module"}));export{oe as S,ce as a,De as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as e,jsxs as o}from"react/jsx-runtime";import{useState as h,useEffect as g}from"react";import{c3 as p,c4 as b,c5 as N,c6 as v,bP as w,bG as d,j as c,c7 as k,c8 as C}from"./runtime-Dn4RiA4k.js";import{u as y}from"./useTermsNotice-BJqwp7Hj.js";const L=t=>t.preventDefault(),j=({title:t,abbreviation:r,href:a})=>o("a",{href:a,target:"_blank",rel:"noreferrer",className:"flex items-center gap-3 rounded-xl border border-border bg-card p-3 transition-colors hover:bg-muted/50","data-testid":`terms-update-doc-${r.toLowerCase()}`,children:[e("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground",children:e(k,{className:"h-4 w-4"})}),o("span",{className:"flex flex-1 flex-col",children:[e("span",{className:"text-sm font-medium text-foreground",children:t}),e("span",{className:"text-xs text-muted-foreground",children:r})]}),e(C,{className:"h-4 w-4 shrink-0 text-muted-foreground"})]}),z=({notice:t})=>{const{shouldShow:r,dismissible:a,isAcknowledging:m,acknowledge:f,isSnoozing:u,snooze:i}=y(t),[n,l]=h(!1);if(g(()=>{l(!1)},[r,t.id]),!r)return null;const x=()=>{n&&f()};return e(p,{open:!0,onOpenChange:a?s=>{s||i()}:void 0,children:o(b,{closeOnOutsideClick:a,hideCloseButton:!a,onEscapeKeyDown:a?void 0:L,className:"!w-[560px] max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)] gap-0 overflow-y-auto p-6","data-testid":"terms-update-modal",children:[e(N,{className:"sr-only",children:t.heading}),e("div",{className:"mb-5 flex h-12 w-12 items-center justify-center rounded-2xl bg-orange-50 dark:bg-orange-500/10",children:e(v,{className:"h-6 w-6 text-orange-500"})}),e("p",{className:"mb-2 text-xs font-medium uppercase tracking-wide text-muted-foreground",children:t.eyebrow}),e("h2",{className:"text-xl font-semibold text-foreground",children:t.heading}),e("p",{className:"mt-1 text-sm text-muted-foreground",children:t.effectiveLabel}),e("p",{className:"mt-4 text-sm leading-relaxed text-muted-foreground",children:t.body}),e("div",{className:"mt-5 flex flex-col gap-2",children:t.documents.map(s=>e(j,{title:s.title,abbreviation:s.abbreviation,href:s.href},s.abbreviation))}),e("p",{className:"mt-5 text-xs text-muted-foreground",children:t.agreementNote}),e(w,{checked:n,onChange:s=>l(!!s),label:t.agreeLabel,containerClassName:"mt-5 items-center","data-testid":"terms-update-agree-checkbox"}),o("div",{className:c("mt-4 flex gap-3",a?"flex-row":"flex-col"),children:[a&&e(d,{variant:"outline",size:"lg",className:"flex-1",isLoading:u,onClick:()=>void i(),"data-testid":"terms-update-dismiss",children:t.dismissCta}),e(d,{variant:"primary",size:"lg",className:c(a?"flex-1":"w-full"),isLoading:m,disabled:!n,onClick:x,"data-testid":"terms-update-agree",children:t.confirmCta})]})]})})};export{z as TermsNoticeModal};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as a,jsxs as e}from"react/jsx-runtime";import{c3 as N,c4 as u,ca as v,c5 as w,bY as $,dz as d,dA as k}from"./runtime-Dn4RiA4k.js";function A(l,c,x){const o=l.find(n=>n.attachmentPoint+n.limit===c)??null,h=l.find(n=>n.attachmentPoint===x)??null;return{layerBelow:o,layerAbove:h}}function g(l,c){return l.carrier||l.layerName||c}function P({open:l,onClose:c,analysis:x,overlapZones:o,layers:h}){const n=x.gaps.length>0,b=o.length>0;return a(N,{open:l,onOpenChange:t=>{t||c()},children:e(u,{style:{width:"min(640px, 95vw)",maxWidth:"min(640px, 95vw)",maxHeight:"85vh",display:"flex",flexDirection:"column",padding:0,borderRadius:12},children:[a(v,{className:"border-b border-border-primary pl-5 pr-3 py-5",children:a(w,{className:"text-[20px] font-semibold leading-[30px] text-primary-text",children:"Tower Alert"})}),e("div",{className:"flex flex-col gap-4 overflow-y-auto p-5",children:[!n&&!b&&a("p",{className:"text-sm text-secondary-text leading-5",children:"No coverage issues detected."}),n&&e("div",{className:"rounded-lg border border-[#fecdca] bg-[#fef3f2] dark:border-red01/40 dark:bg-red01/15",children:[e("div",{className:"flex items-center gap-2 px-4 py-3",children:[a($,{className:"h-5 w-5 text-[#dc2626] dark:text-red02"}),a("span",{className:"text-[16px] font-semibold leading-6 text-primary-text",children:"Uninsured Gap"})]}),a("div",{className:"flex flex-col rounded-lg bg-white dark:bg-neutral-900",children:x.gaps.map((t,i)=>{const{layerBelow:m,layerAbove:p}=A(h,t.start,t.end),r=d(t.start),s=d(t.end),f=m&&p?`No coverage detected between ${r} - ${s}. ${g(m,"the layer below")} exhausted at ${r}, but ${g(p,"the layer above")} does not attach until ${s}.`:`No coverage detected between ${r} - ${s}.`;return a("div",{className:i===0?"flex items-center p-4":"flex items-center p-4 border-t border-border-primary",children:e("div",{className:"flex flex-col gap-2",children:[e("span",{className:"text-[14px] font-semibold leading-5 text-primary-text",children:["Gap: ",r," - ",s]}),a("span",{className:"text-sm text-secondary-text leading-5",children:f})]})},`gap-${i}`)})})]}),b&&e("div",{className:"rounded-lg border border-[#ffca66] bg-[#fff9f5] dark:border-yellow-700 dark:bg-yellow-900/15",children:[e("div",{className:"flex items-center gap-2 px-4 py-3",children:[a(k,{className:"h-5 w-5 text-[#d97706] dark:text-yellow-400"}),e("span",{className:"text-[16px] font-semibold leading-6 text-primary-text",children:["Coverage overlap (",o.length,")"]})]}),a("div",{className:"flex flex-col gap-4 rounded-lg bg-white p-4 dark:bg-neutral-900",children:o.map((t,i)=>{const m=d(t.start),p=d(t.end);return e("div",{className:i===0?"flex flex-col gap-2":"flex flex-col gap-2 border-t border-border-primary pt-4",children:[e("span",{className:"text-[14px] font-semibold leading-5 text-primary-text",children:["Overlap: ",m," - ",p]}),t.layers.length===0?e("span",{className:"text-sm text-secondary-text leading-5",children:["Overlap detected between ",m," and ",p,"."]}):a("ul",{className:"flex flex-col gap-1",children:t.layers.map((r,s)=>{const f=d(r.attachmentPoint),y=d(r.attachmentPoint+r.limit);return e("li",{className:"flex items-baseline justify-between gap-3 text-sm leading-5",children:[e("span",{className:"text-primary-text break-words min-w-0",children:[a("span",{className:"font-semibold",children:g(r,`Layer ${s+1}`)}),e("span",{className:"text-secondary-text",children:[" (",f," - ",y,")"]})]}),e("span",{className:"text-secondary-text whitespace-nowrap shrink-0",children:["Limit: ",d(r.limit)]})]},`zone-${i}-layer-${s}`)})})]},`zone-${i}`)})})]})]})]})})}export{P as TowerAlertModal};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as e,jsxs as a}from"react/jsx-runtime";import p from"react";import{c3 as x,c4 as h,ca as y,c5 as w,dz as l}from"./runtime-Dn4RiA4k.js";function u(r){return r==="excess-follow-form"?"Excess Follow-Form":r}function g(r){const s=r.attachmentPoint+r.limit;return`${l(r.attachmentPoint)} - ${l(s)}`}function f({open:r,onClose:s,layers:n}){const m=p.useMemo(()=>[...n].sort((t,i)=>t.attachmentPoint-i.attachmentPoint),[n]),o=m.reduce((t,i)=>t+i.limit,0),d=m.some(t=>t.premium!=null),c=m.reduce((t,i)=>t+(i.premium??0),0);return e(x,{open:r,onOpenChange:t=>{t||s()},children:a(h,{style:{width:"min(840px, 95vw)",maxWidth:"min(840px, 95vw)",maxHeight:"85vh",display:"flex",flexDirection:"column",padding:0},children:[e(y,{className:"border-b border-border-primary px-5 py-5",children:e(w,{className:"text-[20px] font-semibold leading-[30px] text-primary-text",children:"Tower Summary"})}),e("div",{className:"flex flex-col gap-5 overflow-y-auto p-5",children:e("div",{className:"overflow-hidden rounded-xl border border-border-primary",children:a("table",{className:"w-full border-collapse text-sm",style:{tableLayout:"fixed"},children:[a("colgroup",{children:[e("col",{style:{width:"auto"}}),e("col",{style:{width:130}}),e("col",{style:{width:90}}),e("col",{style:{width:110}})]}),e("thead",{children:a("tr",{className:"bg-neutral08 text-left",children:[e("th",{className:"px-3 py-3 text-sm font-medium leading-[18px] text-primary-text",children:"Carrier & Layer"}),e("th",{className:"px-3 py-3 text-sm font-medium leading-[18px] text-primary-text text-right whitespace-nowrap",children:"Coverage Range"}),e("th",{className:"px-3 py-3 text-sm font-medium leading-[18px] text-primary-text text-right whitespace-nowrap",children:"Limit"}),e("th",{className:"px-3 py-3 text-sm font-medium leading-[18px] text-primary-text text-right whitespace-nowrap",children:"Premium"})]})}),a("tbody",{children:[m.map((t,i)=>a("tr",{className:"border-t border-border-primary align-middle",children:[e("td",{className:"px-3 py-3",children:a("div",{className:"flex flex-col gap-0.5 min-w-0",children:[e("span",{className:"text-sm font-semibold leading-5 text-primary-text break-words",children:t.carrier||t.layerName||"Unknown carrier"}),e("span",{className:"text-sm leading-5 text-secondary-text break-words",children:[u(t.coverageType),t.layerName].filter(Boolean).join(" \xB7 ")})]})}),e("td",{className:"px-3 py-3 text-sm text-primary-text text-right whitespace-nowrap",children:g(t)}),e("td",{className:"px-3 py-3 text-sm text-primary-text text-right whitespace-nowrap",children:l(t.limit)}),e("td",{className:"px-3 py-3 text-sm text-primary-text text-right whitespace-nowrap",children:t.premium!=null?l(t.premium):"\u2014"})]},`${t.carrier}-${t.layerName}-${i}`)),a("tr",{className:"border-t border-border-primary bg-neutral07",children:[e("td",{className:"px-3 py-3 text-sm font-semibold leading-5 text-primary-text",children:"Total"}),e("td",{className:"px-3 py-3"}),e("td",{className:"px-3 py-3 text-sm font-semibold leading-5 text-primary-text text-right whitespace-nowrap",children:l(o)}),e("td",{className:"px-3 py-3 text-sm font-semibold leading-5 text-primary-text text-right whitespace-nowrap",children:d?l(c):"\u2014"})]})]})]})})})]})})}export{f as TowerSummaryModal};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as t,jsxs as h,Fragment as K}from"react/jsx-runtime";import se,{useState as w,useMemo as I,useCallback as b,useRef as oe,useEffect as R}from"react";import{bw as U,bR as me,bS as ce,bT as pe,cb as X,bV as ue,j as P,eB as he,d2 as fe,eC as ve,eD as xe,bF as V,eE as H,eF as Y,eG as ge,bB as Z,bQ as ye,bG as k,eH as Q,eI as Ne,eJ as ee,eK as we,c3 as be,c4 as Ce,ca as Te,c5 as Ae,aA as te,dB as Se,eL as Ie}from"./runtime-Dn4RiA4k.js";import"react-dom";import"react-dom/client";const De=({value:e,onChange:a,disabled:l=!1,ariaLabel:o,placeholder:m="Folder name",containerClassName:c="w-64",testId:r})=>{const n=e.trim().length===0?"Name is required":U(e),u=n!==null;return t("div",{className:P(c),children:t(me,{children:h(ce,{open:u||void 0,children:[t(pe,{asChild:!0,children:t(X,{size:"sm",variant:"outlined",value:e,disabled:l,placeholder:m,"aria-label":o,"aria-invalid":u||void 0,error:u,"data-testid":r,onChange:s=>a(s.target.value)})}),u&&t(ue,{side:"right",align:"center",className:"bg-error text-white","data-testid":r?`${r}-error`:void 0,children:n})]})})})},$e=e=>e.trim().length===0?!1:U(e)===null,F=200;let ae=0;const le=()=>(ae+=1,`local-${Date.now()}-${ae}`),ke=e=>e.startsWith("local-"),W=e=>e.reduce((a,l)=>a+1+W(l.children),0),Fe=(e,a,l)=>{const o=m=>m.map(c=>c.id===a?{...c,name:l}:{...c,children:o(c.children)});return o(e)},je=(e,a)=>{const l=o=>o.filter(m=>m.id!==a).map(m=>({...m,children:l(m.children)}));return l(e)},ze=e=>e.slice().sort((a,l)=>a.name.localeCompare(l.name)),Ee=e=>{const a=new Set,l=o=>{const m=new Map;for(const c of o){const r=c.name.trim().toLowerCase();if(!r)continue;const n=m.get(r)??[];n.push(c.id),m.set(r,n)}for(const c of m.values())c.length>1&&c.forEach(r=>a.add(r));for(const c of o)l(c.children)};return l(e),a},O=e=>e.map(a=>({...ke(a.id)?{}:{id:a.id},name:a.name,children:O(a.children)})),ne=e=>e.map(a=>({id:a.id,name:a.name,children:ne(a.children)})),ie=(e,a)=>W(e)+1>F?`Templates are limited to ${F} folders.`:null,Le=16,Re=8,Oe=({node:e,depth:a,expanded:l,onToggleExpand:o,onAddChild:m,onRename:c,onDelete:r})=>{const n=l.has(e.id),u=e.children.length>0;return t("div",{style:{paddingLeft:Math.min(a,Re)*Le},"data-testid":`template-tree-node-${e.id}`,children:h(he,{open:n,onOpenChange:()=>o(e.id),children:[h("div",{className:"flex items-start gap-2 py-1 group",children:[t("span",{className:"text-neutral03 mt-2",children:t(fe,{size:18,className:"text-neutral02 shrink-0"})}),t(ve,{asChild:!0,children:t("button",{type:"button","aria-label":n?"Collapse":"Expand",className:P("text-neutral03 hover:text-neutral01 transition-transform mt-2",!u&&"invisible",n?"rotate-0":"-rotate-90"),"data-testid":`template-tree-toggle-${e.id}`,children:t(xe,{className:"w-4 h-4"})})}),t(De,{value:e.name,onChange:s=>c(e.id,s),ariaLabel:`Folder name: ${e.name}`,testId:`template-tree-name-${e.id}`,containerClassName:"w-64"}),h("div",{className:"ml-auto flex items-center gap-1 mt-1 opacity-0 group-hover:opacity-100 focus-within:opacity-100",children:[t(V,{variant:"ghost",size:"sm",tooltip:"Add folder","aria-label":"Add folder",onClick:()=>m(e.id),"data-testid":`template-tree-add-child-${e.id}`,className:"text-neutral03 hover:text-neutral01",children:t(H,{size:16})}),t(V,{variant:"ghost",size:"sm",tooltip:"Delete folder","aria-label":"Delete folder",onClick:()=>r(e.id),"data-testid":`template-tree-delete-${e.id}`,className:"hover:text-red01/70 text-red01",children:t(Y,{size:16})})]})]}),u&&t(ge,{children:t(de,{nodes:e.children,depth:a+1,expanded:l,onToggleExpand:o,onAddChild:m,onRename:c,onDelete:r})})]})})},de=({nodes:e,depth:a,expanded:l,onToggleExpand:o,onAddChild:m,onRename:c,onDelete:r})=>t(K,{children:ze(e).map(n=>t(Oe,{node:n,depth:a,expanded:l,onToggleExpand:o,onAddChild:m,onRename:c,onDelete:r},n.id))}),M=e=>e.flatMap(a=>[a.id,...M(a.children)]),Me=({templateId:e,initialName:a,initialNodes:l,existingTemplateNames:o,isSaving:m,onSave:c})=>{const{toast:r}=Z(),[n,u]=w(a),[s,x]=w(l),[_,C]=w(()=>new Set(M(l)));se.useEffect(()=>{u(a),x(l),C(new Set(M(l)))},[e,a,l]);const A=I(()=>W(s),[s]),D=I(()=>{const d=f=>f.some(p=>!$e(p.name)||d(p.children));return d(s)},[s]),y=I(()=>Ee(s),[s]).size>0,S=I(()=>{const d=n.trim().toLowerCase();return d?o.some(f=>f.trim().toLowerCase()===d):!1},[n,o]),j=I(()=>JSON.stringify({name:a,nodes:O(l)}),[e,a,l]),T=I(()=>JSON.stringify({name:n,nodes:O(s)}),[n,s])!==j,z=b(()=>{const d=ie(s);if(d){r({title:"Cannot add folder",description:d,variant:"destructive"});return}const f=le();x(p=>[...p,{id:f,name:"New folder",children:[]}])},[s,r]),B=b(d=>{const f=ie(s);if(f){r({title:"Cannot add folder",description:f,variant:"destructive"});return}const p=le(),$=N=>N.map(g=>g.id===d?{...g,children:[...g.children,{id:p,name:"New folder",children:[]}]}:{...g,children:$(g.children)});x(N=>$(N)),C(N=>new Set([...N,d,p]))},[s,r]),G=b((d,f)=>{x(p=>Fe(p,d,f))},[]),J=b(d=>{x(f=>je(f,d))},[]),q=b(d=>{C(f=>{const p=new Set(f);return p.has(d)?p.delete(d):p.add(d),p})},[]),i=b(()=>{u(a),x(l),C(new Set(M(l)))},[a,l]),v=async()=>{if(!n.trim()){r({title:"Name required",description:"Give the template a name before saving.",variant:"destructive"});return}if(A===0){r({title:"Template is empty",description:"Add at least one folder before saving the template.",variant:"destructive"});return}if(A>F){r({title:"Too many folders",description:`Templates are limited to ${F} folders.`,variant:"destructive"});return}if(D){r({title:"Fix folder names",description:"One or more folder names are empty or contain unsupported characters.",variant:"destructive"});return}if(S){r({title:"Name already in use",description:`A template named "${n.trim()}" already exists. Choose a different name.`,variant:"destructive"});return}if(y){r({title:"Duplicate folder names",description:"Folders under the same parent must have different names \u2014 they would merge into one folder at apply time.",variant:"destructive"});return}await c({templateId:e,name:n.trim(),nodes:O(s)})};return h("div",{className:"flex flex-col h-full","data-testid":"template-tree-editor",children:[t("div",{className:"flex items-start justify-between gap-4",children:t("div",{className:"flex flex-col gap-3 flex-1 min-w-0",children:h("div",{className:"flex flex-col gap-2",children:[t(ye,{htmlFor:"template-name",children:"Template Name"}),t(X,{id:"template-name",value:n,onChange:d=>u(d.target.value),placeholder:"e.g. Standard Client",error:S,"data-testid":"template-name-input"}),S&&h("p",{className:"text-xs text-red01","data-testid":"template-name-duplicate-error",children:['A template named "',n.trim(),'" already exists. Choose a different name.']})]})})}),t("div",{className:"flex-1 overflow-y-auto py-4",children:s.length===0?t("div",{className:"flex flex-col items-center justify-center gap-3 h-full text-neutral03","data-testid":"template-tree-empty-state",children:t(k,{variant:"outline",leftIcon:t(Q,{className:"w-4 h-4"}),onClick:z,"data-testid":"template-add-first-root",children:"Add top-level folder"})}):h(K,{children:[t(de,{nodes:s,depth:0,expanded:_,onToggleExpand:q,onAddChild:B,onRename:G,onDelete:J}),t("div",{className:"pt-2",children:t(k,{variant:"ghost",size:"sm",leftIcon:t(Q,{className:"w-4 h-4"}),onClick:z,disabled:A>=F,"data-testid":"template-add-root",children:"Add top-level folder"})})]})}),h("div",{className:"flex items-center justify-between gap-4 pt-3 border-t border-neutral06",children:[h("div",{className:"flex flex-col gap-0.5",children:[h("div",{className:"text-sm text-neutral03","data-testid":"template-tree-counter",children:[A," / ",F," folders"]}),y&&t("div",{className:"text-xs text-red01","data-testid":"template-tree-duplicate-warning",children:"Folders under the same parent must have different names."})]}),h("div",{className:"flex items-center gap-2",children:[t(k,{variant:"outline",size:"sm",onClick:i,disabled:m||!T,"data-testid":"template-reset",children:"Reset"}),t(k,{variant:"primary",size:"sm",onClick:v,isLoading:m,disabled:m||!n.trim()||A===0||D||S||y||!T,"data-testid":"template-save",children:"Save"})]})]})]})},L="__new__",_e=()=>({templateId:null,name:"",nodes:[]}),re=e=>({templateId:e.id,name:e.name,nodes:ne(e.nodes??[])});function Be({isOpen:e,onClose:a}){const{toast:l}=Z(),[o,m]=w([]),[c,r]=w(!1),[n,u]=w(null),[s,x]=w(null),[_,C]=w(!1),[A,D]=w(!1),[y,S]=w(null),j=oe(l);R(()=>{j.current=l},[l]);const T=b(async()=>{r(!0);try{const i=await Ne();i.statusCode>=200&&i.statusCode<300&&Array.isArray(i.data)?m(i.data):j.current({title:"Failed to load templates",description:"Try refreshing the page.",variant:"destructive"})}finally{r(!1)}},[]);R(()=>{if(!e){m([]),u(null),x(null),C(!1),D(!1);return}T()},[e,T]),R(()=>{e&&(n||o.length===0||u(o[0].id))},[e,o,n]),R(()=>{if(!e)return;if(!n){x(null);return}if(n===L){x(_e());return}let i=!1;return x(null),C(!0),ee(n).then(v=>{i||(v.statusCode>=200&&v.statusCode<300&&v.data?x(re(v.data)):(u(null),j.current({title:"Failed to load template",description:"Try selecting it again.",variant:"destructive"})))}).finally(()=>{i||C(!1)}),()=>{i=!0}},[e,n]);const z=()=>u(L),B=b((i,v)=>{S({id:i,name:v})},[]),G=b(async()=>{if(!y)return;const{id:i}=y,v=await we(i);v.statusCode>=200&&v.statusCode<300?(l({title:"Template deleted",variant:"success"}),n===i&&u(null),await T()):l({title:"Failed to delete template",description:"Try again in a moment.",variant:"destructive"})},[y,T,n,l]),J=async i=>{var v;D(!0);try{const d=await Ie({templateId:i.templateId,name:i.name,nodes:i.nodes}),f=typeof d.data=="string"?d.data:(v=d.data)==null?void 0:v.id;if(d.statusCode>=200&&d.statusCode<300&&f){l({title:"Template saved",variant:"success"});const p=await ee(f);p.statusCode>=200&&p.statusCode<300&&p.data&&x(re(p.data)),u(f),await T()}else{const p=(d==null?void 0:d.data)??null,$=(p==null?void 0:p.message)??"",N=$.toLowerCase();let g="Failed to save template",E=$||"Try again in a moment.";N.includes("already exists")?(g="Name already in use",E=`A template named "${i.name}" already exists. Choose a different name.`):N.includes("exactly one top-level folder")?(g="Too many top-level folders",E="A template can only have one top-level folder. Nest everything under it."):N.includes("must contain at least one folder")?(g="Template is empty",E="Add at least one folder before saving the template."):N.includes("exceeds maximum of")&&(g="Template too large",E=$),l({title:g,description:E,variant:"destructive"})}}finally{D(!1)}},q=I(()=>(s==null?void 0:s.templateId)??L,[s]);return h(be,{open:e,onOpenChange:i=>{i||a()},children:[h(Ce,{className:"!w-full md:!w-[1024px] max-w-[95vw] h-[95dvh] md:h-[80vh] p-0 gap-0 overflow-hidden flex flex-col","data-testid":"vault-settings-dialog",children:[t(Te,{className:"px-4 py-3 md:px-6 md:py-4 border-b border-neutral06 shrink-0 pr-12",children:t(Ae,{className:"text-lg font-semibold",children:"Folder Templates"})}),h("div",{className:"flex flex-col md:flex-row flex-1 min-h-0",children:[h("aside",{className:"md:w-[240px] border-b md:border-b-0 md:border-r border-neutral06 bg-neutral08 flex flex-col shrink-0","data-testid":"vault-settings-templates-rail",children:[t("div",{className:"px-3 py-3 border-b border-neutral06",children:t(k,{size:"sm",variant:"outline",leftIcon:t(H,{className:"w-4 h-4"}),onClick:z,"data-testid":"folder-templates-new",className:"w-full justify-center",children:"New Template"})}),t("div",{className:"flex-1 overflow-y-auto px-2 py-2 flex flex-col gap-1",children:c?t("div",{className:"flex items-center justify-center py-8",children:t(te,{size:8})}):o.length===0&&n!==L?t("div",{className:"text-xs text-neutral03 px-2 py-4",children:"No templates yet. Create one to get started."}):h(K,{children:[n===L&&t("div",{className:"flex items-center justify-between gap-2 px-3 py-2 rounded-md text-sm bg-purple05 text-primary02 font-medium","data-testid":"folder-templates-row-new",children:t("span",{className:"truncate",children:"New Template"})}),o.map(i=>h("div",{className:P("group flex items-center justify-between gap-2 px-3 py-2 rounded-md text-sm cursor-pointer",n===i.id?"bg-purple05 text-primary02 font-medium":"hover:bg-neutral07 text-neutral01"),onClick:()=>u(i.id),"data-testid":`folder-templates-row-${i.id}`,children:[t("span",{className:"truncate min-w-0",children:i.name}),t(V,{variant:"ghost",size:"sm",tooltip:"Delete template","aria-label":"Delete template",onClick:v=>{v.stopPropagation(),B(i.id,i.name)},className:"opacity-0 group-hover:opacity-100 focus-within:opacity-100 hover:text-red01/70 text-red01","data-testid":`folder-templates-row-delete-${i.id}`,children:t(Y,{size:16})})]},i.id))]})})]}),t("main",{className:"flex-1 min-h-0 flex flex-col px-4 py-4 md:px-6 overflow-y-auto","data-testid":"vault-settings-editor",children:n?_||!s?t("div",{className:"flex items-center justify-center h-full",children:t(te,{size:10})}):t(Me,{templateId:s.templateId,initialName:s.name,initialNodes:s.nodes,existingTemplateNames:o.filter(i=>i.id!==s.templateId).map(i=>i.name),isSaving:A,onSave:J},q):h("div",{className:"flex flex-col items-center justify-center h-full gap-3 text-neutral03",children:[t(Q,{className:"w-10 h-10"}),t("p",{className:"text-sm",children:"Select a template on the left or create a new one."}),t(k,{variant:"primary",leftIcon:t(H,{className:"w-4 h-4"}),onClick:z,"data-testid":"folder-templates-empty-new",children:"New Template"})]})})]})]}),t(Se,{isOpen:y!==null,onClose:()=>S(null),onConfirm:G,title:"Delete template",description:`Delete "${(y==null?void 0:y.name)??""}"? This cannot be undone.`,confirmText:"Delete"})]})}export{Be as VaultSettingsDialog};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as e,jsxs as s}from"react/jsx-runtime";import{c3 as c,c4 as n,ca as o,c5 as d,bQ as l,cc as r,bG as m}from"./runtime-Dn4RiA4k.js";const p=({isOpen:t,onOpenChange:i,assetDetails:a})=>e(c,{open:t,onOpenChange:i,children:s(n,{className:"sm:max-w-[425px]","data-testid":"view-note-dialog",children:[e(o,{children:e(d,{children:"View Note"})}),s("div",{className:"grid gap-4 py-4 px-4",children:[s("div",{className:"flex flex-col gap-2",children:[e(l,{className:"text-xs font-semibold",children:"Title"}),e("p",{className:"text-sm",children:(a==null?void 0:a.title)||"Note title"})]}),s("div",{className:"flex flex-col gap-2",children:[e(l,{className:"text-xs font-semibold",children:"Description"}),e("div",{className:"overflow-y-auto max-h-40",children:e("p",{className:"text-sm",children:(a==null?void 0:a.data)||"Note description"})})]})]}),e(r,{children:e(m,{onClick:()=>i(!1),variant:"outline","data-testid":"close-note-button",children:"Close"})})]})});export{p as ViewNoteDialog};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
var ke=Object.defineProperty,Re=(t,e,n)=>e in t?ke(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,U=(t,e,n)=>Re(t,typeof e!="symbol"?e+"":e,n);import{jsx as Kt}from"react/jsx-runtime";import{dy as wt,jW as Le,jX as Yt,jY as Fe,jZ as _e,j_ as Vt,j$ as qt,k0 as Be,k1 as je,k2 as Zt,bD as De,cN as Me,v as ze,df as $e,dp as Ue,cw as We,k3 as He,cj as Ge,ck as Ke,k4 as Ye}from"./runtime-Dn4RiA4k.js";import S,{useRef as A,useMemo as q,useEffect as z,useState as tt,useCallback as X,isValidElement as Ct,cloneElement as Xt}from"react";import{createPortal as Ve}from"react-dom";function Jt(t){return e=>typeof e===t}var qe=Jt("function"),Ze=t=>t===null,Qt=t=>Object.prototype.toString.call(t).slice(8,-1)==="RegExp",te=t=>!Xe(t)&&!Ze(t)&&(qe(t)||typeof t=="object"),Xe=Jt("undefined");function Je(t,e,n){return sn(n,t,e)?!0:(an(n,t,e),t.constructor!==e.constructor?!1:Array.isArray(t)&&Array.isArray(e)?Qe(t,e,n):t instanceof Map&&e instanceof Map?nn(t,e,n):t instanceof Set&&e instanceof Set?on(t,e):t instanceof WeakMap||t instanceof WeakSet?!1:ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)?tn(t,e):Qt(t)&&Qt(e)?t.source===e.source&&t.flags===e.flags:t instanceof Error&&e instanceof Error?en(t,e,n):t.valueOf!==Object.prototype.valueOf?t.valueOf()===e.valueOf():t.toString!==Object.prototype.toString?t.toString()===e.toString():rn(t,e,n))}function gt(t,e,n){return t===e||Number.isNaN(t)&&Number.isNaN(e)?!0:!t||!te(t)||!e||!te(e)?!1:Je(t,e,n)}function Qe(t,e,n){const{length:r}=t;if(r!==e.length)return!1;for(let o=r;o--!==0;)if(!gt(t[o],e[o],n))return!1;return!0}function tn(t,e){if(t.byteLength!==e.byteLength)return!1;const n=new DataView(t.buffer),r=new DataView(e.buffer);let o=t.byteLength;for(;o--;)if(n.getUint8(o)!==r.getUint8(o))return!1;return!0}function en(t,e,n){return t.message===e.message&&t.name===e.name&>(t.cause,e.cause,n)}function nn(t,e,n){if(t.size!==e.size)return!1;for(const r of t.entries())if(!e.has(r[0]))return!1;for(const r of t.entries())if(!gt(r[1],e.get(r[0]),n))return!1;return!0}function rn(t,e,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!1;for(let o=r.length;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,r[o]))return!1;for(let o=r.length;o--!==0;){const i=r[o];if(!(i==="_owner"&&t.$$typeof)&&!gt(t[i],e[i],n))return!1}return!0}function on(t,e){if(t.size!==e.size)return!1;for(const n of t.entries())if(!e.has(n[0]))return!1;return!0}function sn(t,e,n){var r;return((r=t.get(e))==null?void 0:r.has(n))??!1}function an(t,e,n){let r=t.get(e);r||(r=new WeakSet,t.set(e,r)),r.add(n)}function It(t,e){return gt(t,e,new WeakMap)}function At(){var t;return!!(typeof window<"u"&&(t=window==null?void 0:window.document)!=null&&t.createElement)}function cn(t,...e){t&&t.removeEventListener&&t.removeEventListener(...e)}function ln(t,...e){t&&t.addEventListener&&t.addEventListener(...e)}function un(){const t=A(!0);return t.current?(t.current=!1,!0):t.current}function dn(t,e){const n=un();z(()=>{if(!n)return t()},e)}function ee(t){const e=A(void 0);return z(()=>{e.current=t}),e.current}function pn(t,e){const n=A(e);return It(e,n.current)||(n.current=e),q(t,n.current)}function fn(t){z(()=>{t()},[])}function gn(t=0){const[e,n]=tt({height:At()?window.innerHeight:0,width:At()?window.innerWidth:0}),r=A(0),o=A(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(()=>{n({width:window.innerWidth,height:window.innerHeight})},t)});return z(()=>{if(!At())return()=>{};const i=o.current;return n({height:window.innerHeight,width:window.innerWidth}),ln(window,"resize",i),()=>{cn(window,"resize",i)}},[]),e}var hn=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","URL","WeakMap","WeakSet"],yn=["bigint","boolean","null","number","string","symbol","undefined"];function ht(t){const e=Object.prototype.toString.call(t).slice(8,-1);if(/HTML\w+Element/.test(e))return"HTMLElement";if(mn(e))return e}function Q(t){return e=>ht(e)===t}function mn(t){return hn.includes(t)}function lt(t){return e=>typeof e===t}function bn(t){return yn.includes(t)}var En=["innerHTML","ownerDocument","style","attributes","nodeValue"],yt=t=>Array.isArray(t),wn=t=>ht(t)==="AsyncGeneratorFunction",Tn=Q("AsyncFunction"),Sn=lt("bigint"),On=t=>t===!0||t===!1,vn=Q("Date"),xn=Q("Error"),it=lt("function"),Pn=Q("GeneratorFunction"),Cn=t=>typeof t=="number"&&Number.isInteger(t),Nt=Q("Map"),ne=t=>Number.isNaN(t),kt=t=>t===null,re=Q("Function"),In=Q("Promise"),An=Q("RegExp"),Rt=Q("Set"),mt=lt("string"),Nn=lt("symbol"),Lt=lt("undefined"),kn=Q("WeakMap"),Rn=Q("WeakSet"),Ft=t=>kt(t)||Lt(t),oe=t=>!Lt(t),Ln=t=>lt("number")(t)&&!ne(t),Fn=t=>mt(t)&&t.trim().length>0,_n=t=>{if(!mt(t)||t.length===0)return!1;const e=t.trim();return e.length>0&&Number.isFinite(Number(e))},Tt=t=>!Ft(t)&&(it(t)||typeof t=="object"),ie=t=>{if(ht(t)!=="Object")return!1;const e=Object.getPrototypeOf(t);return e===null||e===Object.getPrototypeOf({})},Bn=t=>kt(t)||bn(typeof t),jn=t=>ht(t)==="URL",se=t=>!Ft(t)&&it(t[Symbol.iterator]),Dn=t=>se(t)&&it(t.next)&&it(t.throw),Mn=t=>it(t)&&/^class\s/.test(t.toString()),zn=(t,e)=>!yt(t)||!it(e)?!1:t.every(n=>e(n)),$n=t=>Tt(t)&&!ie(t)&&t.nodeType===1&&mt(t.nodeName)&&En.every(e=>e in t),Un=t=>mt(t)&&t.length===0||yt(t)&&t.length===0||Tt(t)&&!Nt(t)&&!Rt(t)&&Object.keys(t).length===0||Rt(t)&&t.size===0||Nt(t)&&t.size===0,Wn=(t,e)=>!t||!e?!1:Object.getPrototypeOf(t)===e.prototype,Hn=(t,e)=>yt(t)?t.indexOf(e)>-1:!1,Gn=(t,e,n)=>{if(!Tt(t)||!e)return!1;const r=t[e];return it(n)?n(r):oe(r)};function k(t){if(t===null)return"null";switch(typeof t){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}return yt(t)?"Array":re(t)?"Function":ht(t)||"Object"}k.array=yt,k.arrayOf=zn,k.asyncGeneratorFunction=wn,k.asyncFunction=Tn,k.bigint=Sn,k.boolean=On,k.class=Mn,k.date=vn,k.defined=oe,k.domElement=$n,k.empty=Un,k.error=xn,k.function=it,k.generator=Dn,k.generatorFunction=Pn,k.instanceOf=Wn,k.integer=Cn,k.iterable=se,k.map=Nt,k.nan=ne,k.null=kt,k.nullOrUndefined=Ft,k.nonEmptyString=Fn,k.number=Ln,k.numericString=_n,k.object=Tt,k.oneOf=Hn,k.plainFunction=re,k.plainObject=ie,k.primitive=Bn,k.promise=In,k.propertyOf=Gn,k.regexp=An,k.set=Rt,k.string=mt,k.symbol=Nn,k.undefined=Lt,k.url=jn,k.weakMap=kn,k.weakSet=Rn;var V=k;var _t,ae;function Kn(){if(ae)return _t;ae=1;var t=function(r){return Object.prototype.hasOwnProperty.call(r,"props")},e=function(r,o){return r+n(o)},n=function(r){return r===null||typeof r=="boolean"||typeof r>"u"?"":typeof r=="number"?r.toString():typeof r=="string"?r:Array.isArray(r)?r.reduce(e,""):t(r)&&Object.prototype.hasOwnProperty.call(r.props,"children")?n(r.props.children):""};return n.default=n,_t=n,_t}var Yn=Kn();const Bt=wt(Yn);var ce={exports:{}},le;function Vn(){return le||(le=1,(function(t){const e=Object.getPrototypeOf({});function n(){return function(o){return typeof o=="object"&&o!==null&&!(o instanceof RegExp)&&!(o instanceof Date)}}function r(o){function i(y){return y!=="constructor"&&y!=="prototype"&&y!=="__proto__"}function s(y){let E=0;const O=y.length,T=new Array(O);for(E;E<O;++E)T[E]=l(y[E]);return T}function c(y){const E={};if(f&&Object.getPrototypeOf(y)!==e)return f(y);const O=d(y);let T,B,L;for(T=0,B=O.length;T<B;++T)i(L=O[T])&&(E[L]=l(y[L]));return E}function a(y,E){const O=y.length,T=E.length;let B=0;const L=new Array(O+T);for(B;B<O;++B)L[B]=l(y[B]);for(B=0;B<T;++B)L[B+O]=l(E[B]);return L}const u=Object.prototype.propertyIsEnumerable;function g(y){const E=Object.keys(y),O=Object.getOwnPropertySymbols(y);for(let T=0,B=O.length;T<B;++T)u.call(y,O[T])&&E.push(O[T]);return E}const d=o!=null&&o.symbols?g:Object.keys,f=typeof(o==null?void 0:o.cloneProtoObject)=="function"?o.cloneProtoObject:void 0,p=typeof(o==null?void 0:o.isMergeableObject)=="function"?o.isMergeableObject:n(),h=(o==null?void 0:o.onlyDefinedProperties)===!0;function w(y){return typeof y!="object"||y===null}const N=o&&typeof o.mergeArray=="function"?o.mergeArray({clone:l,deepmerge:P,getKeys:d,isMergeableObject:p}):a;function l(y){return p(y)?Array.isArray(y)?s(y):c(y):y}function b(y,E){const O={},T=d(y),B=d(E);let L,$,v;for(L=0,$=T.length;L<$;++L)i(v=T[L])&&B.indexOf(v)===-1&&(O[v]=l(y[v]));for(L=0,$=B.length;L<$;++L)if(i(v=B[L]))if(v in y)T.indexOf(v)!==-1&&(f&&p(E[v])&&Object.getPrototypeOf(E[v])!==e?O[v]=f(E[v]):O[v]=P(y[v],E[v]));else{if(h&&typeof E[v]>"u")continue;O[v]=l(E[v])}return O}function P(y,E){if(h&&typeof E>"u")return l(y);const O=Array.isArray(E),T=Array.isArray(y);return w(E)?E:p(y)?O&&T?N(y,E):O!==T?l(E):b(y,E):l(E)}function R(){switch(arguments.length){case 0:return{};case 1:return l(arguments[0]);case 2:return P(arguments[0],arguments[1])}let y;for(let E=0,O=arguments.length;E<O;++E)y=P(y,arguments[E]);return y}return o!=null&&o.all?R:P}t.exports=r,t.exports.default=r,t.exports.deepmerge=r,Object.defineProperty(t.exports,"isMergeableObject",{get:n})})(ce)),ce.exports}var qn=Vn();const Zn=wt(qn);var jt,ue;function Xn(){if(ue)return jt;ue=1;var t=new Error("Element already at target scroll position"),e=new Error("Scroll cancelled"),n=Math.min,r=Date.now;jt={left:o("scrollLeft"),top:o("scrollTop")};function o(c){return function(a,u,g,d){g=g||{},typeof g=="function"&&(d=g,g={}),typeof d!="function"&&(d=s);var f=r(),p=a[c],h=g.ease||i,w=isNaN(g.duration)?350:+g.duration,N=!1;return p===u?d(t,a[c]):requestAnimationFrame(b),l;function l(){N=!0}function b(P){if(N)return d(e,a[c]);var R=r(),y=n(1,(R-f)/w),E=h(y);a[c]=E*(u-p)+p,y<1?requestAnimationFrame(b):requestAnimationFrame(function(){d(null,a[c])})}}}function i(c){return .5*(1-Math.cos(Math.PI*c))}function s(){}return jt}var Jn=Xn();const Qn=wt(Jn);var Dt={exports:{}},tr=Dt.exports,de;function er(){return de||(de=1,(function(t){(function(e,n){t.exports?t.exports=n():e.Scrollparent=n()})(tr,function(){function e(r){var o=getComputedStyle(r,null).getPropertyValue("overflow");return o.indexOf("scroll")>-1||o.indexOf("auto")>-1}function n(r){if(r instanceof HTMLElement||r instanceof SVGElement){for(var o=r.parentNode;o.parentNode;){if(e(o))return o;o=o.parentNode}return document.scrollingElement||document.documentElement}}return n})})(Dt)),Dt.exports}var nr=er();const pe=wt(nr),rr={arrowBase:32,arrowColor:"#ffffff",arrowSize:16,arrowSpacing:12,backgroundColor:"#ffffff",beaconSize:36,beaconTrigger:"click",beforeTimeout:5e3,blockTargetInteraction:!1,buttons:["back","close","primary"],closeButtonAction:"close",disableFocusTrap:!1,dismissKeyAction:"close",hideOverlay:!1,loaderDelay:300,offset:10,overlayClickAction:"close",overlayColor:"#00000080",primaryColor:"#000000",scrollDuration:300,scrollOffset:20,showProgress:!1,skipBeacon:!1,skipScroll:!1,spotlightPadding:10,spotlightRadius:4,targetWaitTimeout:1e3,textColor:"#000000",width:380,zIndex:100},or={beaconOptions:{offset:-18}},fe={back:"Back",close:"Close",last:"Last",next:"Next",nextWithProgress:"Next ({current} of {total})",open:"Open the dialog",skip:"Skip"},ir={isFixed:!1,locale:fe,placement:"bottom"},sr={continuous:!1,debug:!1,run:!1,scrollToFirstStep:!1,steps:[]},_={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update",COMPLETE:"complete"},H={TOUR_START:"tour:start",STEP_BEFORE_HOOK:"step:before_hook",STEP_BEFORE:"step:before",SCROLL_START:"scroll:start",SCROLL_END:"scroll:end",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",STEP_AFTER_HOOK:"step:after_hook",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found",ERROR:"error"},m={INIT:"init",READY:"ready",BEACON_BEFORE:"beacon_before",BEACON:"beacon",TOOLTIP_BEFORE:"tooltip_before",TOOLTIP:"tooltip",COMPLETE:"complete"},et={BUTTON_BACK:"button_back",BUTTON_CLOSE:"button_close",BUTTON_PRIMARY:"button_primary",BUTTON_SKIP:"button_skip",KEYBOARD:"keyboard",OVERLAY:"overlay"},F={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished"},ar="react-joyride-portal";function cr(t){const e={};for(const n in t)t[n]!==void 0&&(e[n]=t[n]);return e}function ut(...t){return Zn({all:!0,isMergeableObject:e=>!(!V.plainObject(e)||Ct(e))})(...t)}function ge(t){return Object.prototype.toString.call(t).slice(8,-1).toLowerCase()}function nt(t,e={}){const{defaultValue:n,step:r,steps:o}=e;let i=Bt(t);if(i)(i.includes("{current}")||i.includes("{total}"))&&r&&o&&(i=i.replace("{current}",r.toString()).replace("{total}",o.toString()));else if(Ct(t)&&!Object.values(t.props).length&&ge(t.type)==="function")try{i=nt(t.type({}),e)}catch{i=Bt(n)}else i=Bt(n);return i}function G(t,e,n,...r){if(!t)return;const o=new Date,i=`${String(o.getHours()).padStart(2,"0")}:${String(o.getMinutes()).padStart(2,"0")}:${String(o.getSeconds()).padStart(2,"0")}.${String(o.getMilliseconds()).padStart(3,"0")}`;console.log(`${e} %c${n}%c ${i}`,"font-weight: bold","color: gray; font-weight: normal",...r)}function lr(t,e){const n=cr(e);return{...t,...n}}function Mt(){}function ur(t){return Object.keys(t)}function St(t,...e){if(!V.plainObject(t))throw new TypeError("Expected an object");const n={};for(const r in t)({}).hasOwnProperty.call(t,r)&&(e.includes(r)||(n[r]=t[r]));return n}function he(t,...e){if(!V.plainObject(t))throw new TypeError("Expected an object");if(!e.length)return t;const n={};for(const r in t)({}).hasOwnProperty.call(t,r)&&e.includes(r)&&(n[r]=t[r]);return n}function zt(t,e,n){const r=i=>i.replace("{current}",String(e)).replace("{total}",String(n));if(ge(t)==="string")return r(t);if(!Ct(t))return t;const{children:o}=t.props;if(V.string(o)&&o.includes("{current}"))return Xt(t,{children:r(o)});if(Array.isArray(o))return Xt(t,{children:o.map(i=>typeof i=="string"?r(i):zt(i,e,n))});if(V.function(t.type)&&!Object.values(t.props).length)try{return zt(t.type({}),e,n)}catch{return t}return t}function ye(t){return ur(t).sort().reduce((e,n)=>(e[n]=t[n],e),{})}function $t(){var t;return!!(typeof window<"u"&&(t=window.document)!=null&&t.createElement)}function me(t){let e=0,n=0,r=t;for(;r;)e+=r.offsetTop,n+=r.offsetLeft,r=r.offsetParent;return{left:n,top:e}}function Ut(t){return t?t.getBoundingClientRect():null}function dr(t=!1){const{body:e,documentElement:n}=document;if(!e||!n)return 0;if(t){const r=[e.scrollHeight,e.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight].sort((i,s)=>i-s),o=Math.floor(r.length/2);return r.length%2===0?(r[o-1]+r[o])/2:r[o]}return Math.max(e.scrollHeight,e.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)}function J(t){if(!t)return null;if(typeof t=="function")try{return t()}catch{return null}if(typeof t=="object"&&"current"in t)return t.current;if(typeof t=="string")try{return document.querySelector(t)}catch{return null}return t}function pr(t,e,n){const r=Ut(t),o=dt(t),i=o?!o.isSameNode(Z()):!1,s=n??pt(t);let c=0,a=(r==null?void 0:r.top)??0;return i&&s?a=(r==null?void 0:r.top)??0:o instanceof HTMLElement&&(c=o.scrollTop,!i&&!s&&(a+=c),o.isSameNode(Z())||(a+=Z().scrollTop)),Math.floor(a-e)}function dt(t,e){if(!t)return Z();const n=pe(t);if(n){if(n.isSameNode(Z()))return e?document:Z();if(!(n.scrollHeight>n.offsetHeight))return Z()}return n}function fr(t){const e=t.getBoundingClientRect(),n=Z(),r=e.top+e.height/2,o=window.innerHeight/2;return Math.max(0,n.scrollTop+r-o)}function gr(t,e){if(!t)return 0;const n=pe(t)??Z(),r=parseFloat(getComputedStyle(t).scrollMarginTop)||0,o=Ut(n),i=n.scrollTop??0,{offsetTop:s=0,scrollTop:c=0}=n;let a=t.getBoundingClientRect().top+c;if(s&&(be(t)||hr(t))){const g=t.getBoundingClientRect(),d=g.top-((o==null?void 0:o.top)??0),f=d+g.height,p=n.clientHeight,h=p*.2;d>=h&&f<=p-h?a=i:a=d+i}const u=Math.floor(a-e-r);return u<0?0:u}function hr(t){return t.offsetParent!==document.body}function be(t){if(!t)return!1;const e=dt(t);return e?!e.isSameNode(Z()):!1}function pt(t,e="fixed"){if(!t||!(t instanceof Element))return!1;const{nodeName:n}=t;return n==="BODY"||n==="HTML"?!1:getComputedStyle(t).position===e?!0:t.parentNode?pt(t.parentNode,e):!1}function Ot(t){if(!t)return!1;let e=t;for(;e&&e!==document.body;){if(e instanceof HTMLElement){const{display:n,visibility:r}=getComputedStyle(e);if(n==="none"||r==="hidden")return!1}e=e.parentElement??null}return!0}function Ee(t){const{isFirstStep:e,scrollToFirstStep:n,step:r,target:o,targetLifecycle:i}=t;if(r.skipScroll||e&&!n&&i!==m.TOOLTIP||r.placement==="center")return!1;const s=o!=null&&o.isConnected?dt(o):Z(),c=s?!s.isSameNode(Z()):!1;return(r.isFixed||pt(o))&&!c?!1:s.scrollHeight>s.clientHeight}function Z(){return document.scrollingElement??document.documentElement}function we(t,e){const{duration:n,element:r}=e;let o=()=>{};const i=new Promise(s=>{const{scrollTop:c}=r,a=t>c?t-c:c-t;o=Qn.top(r,t,{duration:a<100?50:n},()=>{s()})});return{cancel:o,promise:i}}function yr(t){const e=t.replace(/^#?([\da-f])([\da-f])([\da-f])$/i,(r,o,i,s)=>o+o+i+i+s+s),n=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})/i.exec(e);return n?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]:[]}const Te={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555555",cursor:"pointer",fontSize:16,lineHeight:1,padding:0,WebkitAppearance:"none"},vt={...Te,borderRadius:4,padding:8};function mr(t,e){const{styles:n}=t,r=ut(n??{},e.styles??{});let{width:o}=e;$t()&&(o=typeof o=="number"&&window.innerWidth<o?window.innerWidth-30:o);const i={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:e.zIndex};return ut({arrow:{alignItems:"center",color:e.arrowColor,display:"inline-flex",justifyContent:"center",position:"absolute"},beaconWrapper:{...Te,display:"inline-flex",borderRadius:"50%",position:"relative"},beacon:{height:e.beaconSize,width:e.beaconSize},beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:e.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:`rgba(${yr(e.primaryColor).join(",")}, 0.2)`,border:`2px solid ${e.primaryColor}`,borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},buttonBack:{...vt,color:e.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...vt,color:e.textColor,height:12,padding:8,position:"absolute",right:0,top:0,width:12},buttonPrimary:{...vt,backgroundColor:e.primaryColor,color:e.backgroundColor},buttonSkip:{...vt,color:e.textColor,fontSize:14},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:"100%",transition:"opacity 0.3s"},loader:{alignItems:"center",display:"flex",height:48,inset:0,justifyContent:"center",pointerEvents:"none",position:"fixed",width:48,zIndex:e.zIndex+1},overlay:{...i,backgroundColor:e.overlayColor},spotlight:{},tooltip:{backgroundColor:e.backgroundColor,borderRadius:5,boxSizing:"border-box",color:e.textColor,fontSize:16,maxWidth:"100%",padding:12,position:"relative",width:o},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{paddingBottom:12,paddingTop:12},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end"},tooltipFooterSpacer:{flex:1}},r)}const br=["after","arrowBase","arrowColor","arrowSize","arrowSpacing","backgroundColor","beaconSize","beaconTrigger","before","beforeTimeout","buttons","closeButtonAction","skipBeacon","dismissKeyAction","disableFocusTrap","hideOverlay","skipScroll","blockTargetInteraction","loaderDelay","offset","overlayClickAction","overlayColor","primaryColor","scrollDuration","scrollOffset","showProgress","spotlightPadding","spotlightRadius","targetWaitTimeout","textColor","width","zIndex"];function Wt(t,e){if(!e)return null;const n=ut(ir,he(t,"arrowComponent","beaconComponent","floatingOptions","loaderComponent","locale","styles","tooltipComponent"),e),r=ut(rr,t.options??{},he(e,...br)),o=mr(t,{...n,...r}),i=ut(or,t.floatingOptions??{},n.floatingOptions??{});return{...n,...r,locale:ut(fe,t.locale??{},n.locale||{}),floatingOptions:i,spotlightPadding:Er(r.spotlightPadding),styles:o}}function Er(t){return typeof t=="number"?{top:t,right:t,bottom:t,left:t}:{top:(t==null?void 0:t.top)??0,right:(t==null?void 0:t.right)??0,bottom:(t==null?void 0:t.bottom)??0,left:(t==null?void 0:t.left)??0}}function wr(t,e,n){const{action:r}=e,o=n&&[_.PREV,_.NEXT].includes(r);return t.skipBeacon||t.placement==="center"||o}function Se(t,e=!1){return V.plainObject(t)?t.target?!0:(G(e,"tour","target is missing from the step"),!1):(G(e,"tour","step must be an object"),!1)}function Oe(t,e=!1){return V.array(t)?t.every(n=>Se(n,e)):(G(e,"tour","steps must be an array"),!1)}var Tr=class{constructor(t){U(this,"beaconPosition",null),U(this,"debug"),U(this,"eventListeners",new Map),U(this,"listeners",new Set),U(this,"props"),U(this,"snapshot"),U(this,"state"),U(this,"steps"),U(this,"tooltipPosition",null),U(this,"cleanupPositionData",()=>{this.beaconPosition=null,this.tooltipPosition=null}),U(this,"getPositionData",s=>s==="beacon"?this.beaconPosition:this.tooltipPosition),U(this,"getServerSnapshot",()=>this.snapshot),U(this,"getSnapshot",()=>this.snapshot),U(this,"getEventState",()=>St(this.snapshot,"positioned")),U(this,"getState",()=>St(this.snapshot,"positioned")),U(this,"setPositionData",(s,c)=>{var a,u,g;((a=s==="beacon"?this.beaconPosition:this.tooltipPosition)==null?void 0:a.placement)!==c.placement&&G(this.debug,`step:${this.state.index}`,"positioned",`${s} ${c.placement}`),s==="beacon"?this.beaconPosition=c:this.tooltipPosition=c,(this.state.lifecycle===m.BEACON_BEFORE||this.state.lifecycle===m.TOOLTIP_BEFORE)&&!this.state.positioned&&this.updateState({positioned:!0});const d=(g=(u=this.getStep())==null?void 0:u.floatingOptions)==null?void 0:g.onPosition;d&&d(c)}),U(this,"setSteps",s=>{this.steps=s,this.updateState({size:s.length})}),U(this,"dispatch",(s,c)=>{const a=this.eventListeners.get(s.type);if(a)for(const u of a)try{u(s,c)}catch{}}),U(this,"on",(s,c)=>{let a=this.eventListeners.get(s);return a||(a=new Set,this.eventListeners.set(s,a)),a.add(c),()=>{a.delete(c)}}),U(this,"subscribe",s=>(this.listeners.add(s),()=>{this.listeners.delete(s)})),U(this,"updateState",(s,c=!1)=>{const{controlled:a,index:u}=this.state,g=this.snapshot,d=a&&!c&&s.index!==void 0?u:s.index??u,f={action:s.action??this.state.action,controlled:a,index:d,lifecycle:s.lifecycle??this.state.lifecycle,origin:s.origin??null,positioned:s.positioned??this.state.positioned,scrolling:s.scrolling??this.state.scrolling,size:s.size??this.state.size,status:s.status??this.state.status,waiting:s.waiting??this.state.waiting},p=this.applyTransitions(f);if(this.state=p,!It(g,p)){this.snapshot=Object.freeze({...p});for(const h of this.listeners)h(this.snapshot)}});const{initialStepIndex:e,stepIndex:n,steps:r=[]}=t??{},o=V.number(n);let i=0;this.debug=(t==null?void 0:t.debug)??!1,o?(i=n,V.number(e)&&G(this.debug,"tour","initialStepIndex is ignored in controlled mode")):V.number(e)&&(e>=0&&e<r.length?i=e:r.length>0&&G(this.debug,"tour","initialStepIndex is out of bounds")),this.props=t??{steps:[]},this.steps=r,this.state={action:_.INIT,controlled:o,index:i,lifecycle:m.INIT,origin:null,positioned:!1,scrolling:!1,size:r.length,status:r.length?F.READY:F.IDLE,waiting:!1},this.snapshot=Object.freeze({...this.state})}applyTransitions(t){return t.status===F.WAITING&&t.size>0?{...t,status:F.RUNNING}:t}getStep(t){return Wt(this.props,this.steps[t??this.state.index])}};function Sr(t){return new Tr(t)}function ve(t,e){return Math.min(Math.max(t,0),e)}function Or(t,e,n){const r=A(e),o=A(n);return r.current=e,o.current=n,q(()=>{const i=()=>t.current.getSnapshot();return{close:(s=null)=>{const{index:c,status:a}=i();a===F.RUNNING&&t.current.updateState({action:_.CLOSE,index:c+1,origin:s,lifecycle:m.COMPLETE,positioned:!1,scrolling:!1,waiting:!1})},go:s=>{const{controlled:c,size:a,status:u}=i();if(c){G(r.current,"tour","go() is not supported in controlled mode");return}u===F.RUNNING&&t.current.updateState({action:_.GO,index:s,lifecycle:m.COMPLETE,positioned:!1,scrolling:!1,status:s<a?u:F.FINISHED,waiting:!1})},info:()=>St(t.current.getSnapshot(),"positioned"),next:s=>{const{index:c,size:a,status:u}=i();u===F.RUNNING&&t.current.updateState({action:_.NEXT,index:ve(c+1,a),lifecycle:m.COMPLETE,origin:s,positioned:!1,scrolling:!1,waiting:!1})},open:()=>{const{status:s}=i();s===F.RUNNING&&t.current.updateState({action:_.UPDATE,lifecycle:m.TOOLTIP_BEFORE,positioned:!1,scrolling:!1,waiting:!1})},prev:s=>{const{index:c,size:a,status:u}=i();u===F.RUNNING&&t.current.updateState({action:_.PREV,index:ve(c-1,a),lifecycle:m.COMPLETE,origin:s,positioned:!1,scrolling:!1,waiting:!1})},reset:(s=!1)=>{const{controlled:c}=i();if(c){G(r.current,"tour","reset() is not supported in controlled mode");return}o.current(),t.current.updateState({action:_.RESET,index:0,lifecycle:m.INIT,positioned:!1,scrolling:!1,status:s?F.RUNNING:F.READY,waiting:!1})},skip:s=>{const{status:c}=i();c===F.RUNNING&&t.current.updateState({action:_.SKIP,lifecycle:m.COMPLETE,origin:s,positioned:!1,scrolling:!1,status:F.SKIPPED,waiting:!1})},start:s=>{const{index:c,size:a}=i();o.current(),t.current.updateState({action:_.START,index:V.number(s)?s:c,lifecycle:m.INIT,positioned:!1,scrolling:!1,status:a?F.RUNNING:F.WAITING,waiting:!1},!0)},stop:(s=!1)=>{const{index:c,status:a}=i();[F.FINISHED,F.SKIPPED].includes(a)||t.current.updateState({action:_.STOP,index:c+(s?1:0),lifecycle:m.COMPLETE,positioned:!1,scrolling:!1,status:F.PAUSED,waiting:!1})}}},[t])}const vr=new Set(["origin","positioned"]);function xr(t,e){const n=A(null);z(()=>{if(!e)return;const r=t.current.getSnapshot();return G(!0,"tour","init",r),n.current=r,t.current.subscribe(o=>{const i=n.current;if(n.current=o,!i)return;const s={};let c=!1;for(const a of Object.keys(o))o[a]!==i[a]&&!vr.has(a)&&(s[a]={from:i[a],to:o[a]},(a==="status"||a==="size")&&(c=!0));Object.keys(s).length&&(!c&&o.index>=o.size||G(!0,c?"tour":`step:${o.index}`,"state",s))})},[e,t])}function Pr(t,e,n){const r=A(t),o=A(e);return r.current=t,o.current=e,X((i,s,c)=>{var a;const u={...n.current.getEventState(),error:null,scroll:null,step:s,type:i,...c};(a=r.current)==null||a.call(r,u,o.current),n.current.dispatch(u,o.current)},[n])}function st(t,e){return{hasChanged(n){return t[n]!==e[n]},hasChangedTo(n,r){const o=t[n],i=e[n];return Array.isArray(r)?r.includes(o)&&!r.includes(i):o===r&&i!==r},previous:e}}function Cr(t){const{addFailure:e,controls:n,emitEvent:r,previousState:o,props:i,state:s,step:c,store:a}=t,{action:u,index:g,lifecycle:d,positioned:f,scrolling:p,size:h,status:w}=s,N=ee(c)??null,l=A(null),b=A(i),P=A(s),R=A(o),y=A(c),E=A(N),O=A(n),T=A(null),B=A(null),L=A(null);b.current=i,P.current=s,R.current=o,y.current=c,E.current=N,O.current=n;const $=()=>{T.current&&(clearInterval(T.current),T.current=null),B.current=null,L.current&&(L.current.cancel(),L.current=null)};z(()=>{if(!R.current)return;const{hasChangedTo:v}=st(P.current,R.current);(v("action",[_.NEXT,_.PREV,_.SKIP,_.CLOSE])||l.current===_.CLOSE&&u===_.START)&&(l.current=u)},[u]),z(()=>{if(!R.current)return()=>{$()};const{hasChanged:v}=st(P.current,R.current),C=y.current;if(v("index")&&$(),w!==F.RUNNING||!C||d!==m.INIT)return()=>{$()};const{hasChangedTo:j}=st(P.current,R.current);j("status",F.RUNNING)&&[F.IDLE,F.READY,F.PAUSED].includes(R.current.status)&&r(H.TOUR_START,C),a.current.cleanupPositionData();const{debug:D}=b.current;if(C.before&&!L.current){G(D,`step:${g}`,"before()",C),L.current={cancel:()=>{}},a.current.updateState({waiting:!0}),r(H.STEP_BEFORE_HOOK,C,{action:l.current??P.current.action});const x=()=>{L.current=null,a.current.updateState({action:l.current??P.current.action,waiting:!1,lifecycle:m.READY})},I=new AbortController,M=C.beforeTimeout;L.current={cancel:()=>I.abort()};const W=M?setTimeout(()=>{I.signal.aborted||(G(D,`step:${g}`,"before()","timed out",`${M}ms`),I.abort(),e(C,"before_hook"),r(H.ERROR,C,{error:new Error("Step before hook timed out")}),x())},M):null;C.before({...a.current.getState(),action:l.current??a.current.getState().action,step:C}).then(()=>{I.signal.aborted||(W&&clearTimeout(W),x())}).catch(K=>{I.signal.aborted||(W&&clearTimeout(W),e(C,"before_hook"),r(H.ERROR,C,{error:K instanceof Error?K:new Error(String(K))}),x())})}else if(!L.current){T.current&&B.current!==C.target&&$();const x=J(C.target);if(x&&Ot(x))$(),a.current.updateState({action:l.current??_.UPDATE,lifecycle:m.READY,waiting:!1});else if(C.targetWaitTimeout===0)a.current.updateState({action:l.current??_.UPDATE,lifecycle:m.READY,waiting:!1});else if(!T.current){const{targetWaitTimeout:I}=C,M=Date.now();B.current=C.target,G(D,`step:${g}`,"polling","started",`${I}ms`),a.current.updateState({waiting:!0}),T.current=setInterval(()=>{const W=J(C.target),K=Date.now()-M,at=K>=I;(W&&Ot(W)||at)&&(G(D,`step:${g}`,"polling",W&&Ot(W)?"found":"timed out",`${K}ms`),$(),a.current.updateState({action:l.current??_.UPDATE,lifecycle:m.READY,waiting:!1}))},100)}}return()=>{$()}},[e,r,g,d,w,a]),z(()=>{if(!R.current)return;const{hasChanged:v,hasChangedTo:C,previous:j}=st(P.current,R.current),D=y.current;if(!D)return;const x=J(D.target),I=!!x;if(I&&Ot(x)){if(C("lifecycle",m.READY)&&j.lifecycle===m.INIT&&r(H.STEP_BEFORE,D,{action:l.current??P.current.action}),C("lifecycle",m.READY)){const M=P.current,W=wr(D,M,b.current.continuous)?m.TOOLTIP:m.BEACON,K=J(D.scrollTarget??D.spotlightTarget??D.target),at=Ee({isFirstStep:M.index===0,scrollToFirstStep:b.current.scrollToFirstStep,step:D,target:K,targetLifecycle:W}),xt=W===m.TOOLTIP?m.TOOLTIP_BEFORE:m.BEACON_BEFORE;G(b.current.debug,`step:${g}`,"scroll",at?"needed":"skipped"),a.current.updateState({action:_.UPDATE,lifecycle:xt,scrolling:at})}}else if(P.current.status===F.RUNNING&&d!==m.INIT&&d!==m.COMPLETE&&v("lifecycle")){G(b.current.debug,`step:${g}`,I?"Target not visible":"Target not mounted",D),e(D,"target_not_found"),r(H.TARGET_NOT_FOUND,D);const M=P.current;M.controlled||a.current.updateState({action:_.UPDATE,index:M.index+(M.action===_.PREV?-1:1),lifecycle:m.INIT})}},[e,r,g,d,a]),z(()=>{if(!R.current)return;const{hasChangedTo:v,previous:C}=st(P.current,R.current),j=y.current,D=E.current;if(j&&v("lifecycle",m.TOOLTIP_BEFORE)&&C.lifecycle===m.BEACON){const M=J(j.scrollTarget??j.spotlightTarget??j.target);if(Ee({isFirstStep:P.current.index===0,scrollToFirstStep:b.current.scrollToFirstStep,step:j,target:M,targetLifecycle:m.TOOLTIP})){a.current.updateState({scrolling:!0,positioned:!1});return}}const x=d===m.BEACON_BEFORE||d===m.TOOLTIP_BEFORE;if(j&&x&&!p){const M=d===m.TOOLTIP_BEFORE?m.TOOLTIP:m.BEACON;a.current.updateState({action:_.UPDATE,lifecycle:M})}j&&v("lifecycle",m.BEACON)&&r(H.BEACON,j),j&&v("lifecycle",m.TOOLTIP)&&r(H.TOOLTIP,j);const I=P.current;if((I.status===F.RUNNING||I.controlled&&I.status===F.PAUSED&&j)&&D&&v("lifecycle",m.COMPLETE)&&C.lifecycle===m.TOOLTIP&&(r(H.STEP_AFTER,D,{action:l.current??_.UPDATE,index:C.index??I.index,lifecycle:I.lifecycle}),D.after)){r(H.STEP_AFTER_HOOK,D,{action:l.current??_.UPDATE,index:C.index??I.index,lifecycle:I.lifecycle});try{D.after({...a.current.getState(),action:l.current??_.UPDATE,index:C.index??I.index,lifecycle:I.lifecycle,step:D})}catch{}}},[r,d,f,p,a]),z(()=>{if(!R.current)return;const{hasChangedTo:v,previous:C}=st(P.current,R.current),j=y.current,D=E.current;h&&!j&&d===m.INIT&&a.current.updateState({action:_.UPDATE,lifecycle:m.COMPLETE,status:F.FINISHED}),!P.current.controlled&&w===F.RUNNING&&v("lifecycle",m.COMPLETE)&&g<h&&a.current.updateState({action:_.UPDATE,lifecycle:m.INIT}),v("lifecycle",m.COMPLETE)&&g>=h&&a.current.updateState({action:_.UPDATE,lifecycle:m.COMPLETE,status:F.FINISHED});const x=j??D??Wt(b.current,b.current.steps[g-1]);if(x&&v("status",[F.FINISHED,F.SKIPPED])){let I;j?I=g:D?I=C.index??g:I=g-1,r(H.TOUR_END,x,{index:I}),P.current.controlled||O.current.reset(),l.current=null}j&&v("action",_.STOP)&&(l.current=null,r(H.TOUR_STATUS,j)),j&&v("action",_.RESET)&&(r(H.TOUR_STATUS,j),l.current=null)},[u,r,g,d,h,w,a])}function Ir({controls:t,emitEvent:e,props:n,state:r,store:o}){const{debug:i,initialStepIndex:s,run:c,stepIndex:a,steps:u}=n,g=A(void 0),d=A(r),f=A(t);d.current=r,f.current=t,z(()=>{const p=g.current;if(g.current=n,!p||n===p)return;const{hasChanged:h}=st(n,p);if(It(p.steps,u)||(Oe(u,i)?o.current.setSteps(u):(G(i,"tour","Steps are not valid",u),e(H.ERROR,u[0]??{target:"",content:""},{error:new Error("Steps are not valid")}))),h("run"))c?o.current.getState().size&&f.current.start(a??s):f.current.stop();else if(V.number(a)&&h("stepIndex")){const w=V.number(p.stepIndex)&&p.stepIndex<a?_.NEXT:_.PREV;[F.FINISHED,F.SKIPPED].includes(d.current.status)||o.current.updateState({action:w,index:a,lifecycle:m.INIT,positioned:!1},!0)}},[i,e,s,n,c,a,u,o])}function Ar(t,e){var n,r,o,i;const{beaconPosition:s,lifecycle:c,scrollOffset:a,step:u}=e;if(u.scrollTarget||u.spotlightTarget)return Math.max(0,t);let g=t-u.spotlightPadding.top;if(c===m.BEACON_BEFORE&&s!=null&&s.placement){const d=Nr(s);["bottom"].includes(s.placement)||(g+=Math.floor(d-a))}else if(c===m.TOOLTIP_BEFORE){const{placement:d}=u;if(d==="top"){const f=((n=document.querySelector(".react-joyride__floater"))==null?void 0:n.getBoundingClientRect().height)??0,p=(r=u.floatingOptions)!=null&&r.hideArrow?0:u.arrowSize,h=u.offset+u.spotlightPadding.top+p;g-=f+h}else if(d==="left"||d==="right"){const f=((o=document.querySelector(".react-joyride__floater"))==null?void 0:o.getBoundingClientRect().height)??0,p=((i=J(u.target))==null?void 0:i.getBoundingClientRect().height)??0,h=a+u.spotlightPadding.top+p/2-f/2;h<a&&(g-=a-h)}}return Math.max(0,g)}function Nr(t){var e;const n=(e=t.middlewareData)==null?void 0:e.offset;return n?["left","right"].some(r=>t.placement.startsWith(r))?n.x:n.y:0}function kr({emitEvent:t,previousState:e,props:n,state:r,step:o,store:i}){const{index:s,lifecycle:c,positioned:a,scrolling:u,status:g}=r,d=A(null),f=A(r),p=A(e),h=A(n),w=A(o);f.current=r,p.current=e,h.current=n,w.current=o,z(()=>()=>{var N;(N=d.current)==null||N.call(d)},[]),z(()=>{var N;if(!p.current||!w.current)return;const{hasChangedTo:l}=st(f.current,p.current),b=w.current,{debug:P}=h.current,{scrollDuration:R}=b,y=c===m.BEACON_BEFORE||c===m.TOOLTIP_BEFORE;if(g===F.RUNNING&&y&&u&&l("positioned",!0)){const E=J(b.scrollTarget??b.spotlightTarget??b.target),O=i.current.getPositionData("beacon"),T=dt(E),B=T?!T.isSameNode(Z()):!1;(N=d.current)==null||N.call(d),(async()=>{if(B&&!pt(T)){const x=Z(),I=fr(T),M={initial:x.scrollTop,target:I,element:x,duration:R};t(H.SCROLL_START,b,{scroll:M});const{cancel:W,promise:K}=we(I,{element:x,duration:R});d.current=W,await K,t(H.SCROLL_END,b,{scroll:M})}const L=Math.floor(gr(E,b.scrollOffset))||0,$=B?L:Ar(L,{beaconPosition:O,lifecycle:c,scrollOffset:b.scrollOffset,step:b});G(P,`step:${s}`,"scroll",B?"custom":"document",`${L} \u2192 ${$}`);const v=T,C={initial:v.scrollTop,target:$,element:v,duration:R};t(H.SCROLL_START,b,{scroll:C});const{cancel:j,promise:D}=we($,{element:v,duration:R});d.current=j,await D,t(H.SCROLL_END,b,{scroll:C}),i.current.updateState({scrolling:!1})})().catch(()=>{i.current.updateState({scrolling:!1})})}},[t,s,c,a,u,g,i])}function Rr(t){const e=pn(()=>lr(sr,t),[t]),{debug:n,initialStepIndex:r,onEvent:o,run:i,stepIndex:s,steps:c}=e,a=A(Sr(e)),u=Le.useSyncExternalStore(a.current.subscribe,a.current.getSnapshot,a.current.getServerSnapshot),[g,d]=tt([]),f=X((y,E)=>{d(O=>[...O,{reason:E,step:y}])},[]),p=X(()=>{d([])},[]);xr(a,n);const h=Or(a,n,p),w=Pr(o,h,a),{index:N,size:l,status:b}=u,P=ee(u),R=q(()=>Wt(e,c[N]),[N,e,c]);return fn(()=>{i&&l&&Oe(c,n)&&h.start(s??r)}),dn(()=>{i&&l&&b===F.IDLE&&a.current.updateState({status:F.READY})},[i,l,b]),Ir({controls:h,emitEvent:w,props:e,state:u,store:a}),Cr({addFailure:f,controls:h,emitEvent:w,previousState:P,props:e,state:u,step:R,store:a}),kr({emitEvent:w,previousState:P,props:e,state:u,step:R,store:a}),{controls:h,failures:g,mergedProps:e,state:u,step:R,store:a}}function Lr(t){const[e,n]=tt(null);return z(()=>{let r=null,o=!1;if(t)if(V.domElement(t))r=t,o=!0;else{const i=document.querySelector(t);i&&(r=i)}else{const i=document.createElement("div");i.id=ar,document.body.appendChild(i),r=i}return n(r),()=>{!r||o||r.parentNode===document.body&&document.body.removeChild(r)}},[t]),e}const Fr={animation:"joyride-loader-spin 1s linear infinite",border:"5px solid rgba(0, 0, 0, 0.1)",borderRadius:"50%",borderTopColor:"#555"};function _r({nonce:t,step:e}){const{loaderComponent:n}=e,r=!!n;if(z(()=>{if(r||document.getElementById("joyride-loader-animation"))return Mt;const a=document.createElement("style");return a.id="joyride-loader-animation",t&&a.setAttribute("nonce",t),a.appendChild(document.createTextNode(`
|
|
2
|
-
@keyframes joyride-loader-spin {
|
|
3
|
-
to { transform: rotate(360deg); }
|
|
4
|
-
}
|
|
5
|
-
`)),document.head.appendChild(a),()=>{const u=document.getElementById("joyride-loader-animation");u!=null&&u.parentNode&&u.parentNode.removeChild(u)}},[r,t]),n===null)return null;const{height:o,width:i,...s}=e.styles.loader;let c;if(n){const a=n;c=S.createElement(a,{step:e})}else c=S.createElement("div",{style:{...Fr,height:o,width:i,borderTopColor:e.primaryColor}});return S.createElement("div",{className:"react-joyride__loader","data-testid":"loader",style:s},c)}const Br={height:0,isFixed:!1,left:0,top:0,width:0};function bt(t,e){const n=J(t);if(!n)return Br;const r=Ut(n),o=pt(n),i=pr(n,e.top,o);return{height:Math.round(((r==null?void 0:r.height)??0)+e.top+e.bottom),isFixed:o,left:Math.round(((r==null?void 0:r.left)??0)-e.left),top:i,width:Math.round(((r==null?void 0:r.width)??0)+e.left+e.right)}}function jr(t,e,n){const[r,o]=tt(()=>bt(t,e)),i=A(void 0),s=A(null),c=A(n),a=A(null),u=X(()=>{clearTimeout(i.current),i.current=window.setTimeout(()=>{o(d=>{const f=bt(t,e);return d.top===f.top&&d.left===f.left&&d.width===f.width&&d.height===f.height&&d.isFixed===f.isFixed?d:f})},100)},[t,e]);z(()=>{let d=null;const f=h=>{s.current=dt(h,!0),s.current&&s.current.addEventListener("scroll",u,{passive:!0}),window.addEventListener("scroll",u,{passive:!0}),window.addEventListener("resize",u),typeof ResizeObserver<"u"&&(a.current=new ResizeObserver(u),a.current.observe(h)),o(bt(t,e))},p=J(t);return p?f(p):(d=new MutationObserver(()=>{const h=J(t);h&&(d==null||d.disconnect(),d=null,f(h))}),d.observe(document.body,{childList:!0,subtree:!0})),()=>{var h;d==null||d.disconnect(),s.current&&s.current.removeEventListener("scroll",u),window.removeEventListener("scroll",u),window.removeEventListener("resize",u),(h=a.current)==null||h.disconnect(),clearTimeout(i.current)}},[t,e,u]),z(()=>{c.current&&!n&&o(bt(t,e)),c.current=n},[n,t,e]);let g=r;return c.current&&!n&&(g=bt(t,e)),g}function Dr(t,e,n){let r=`M0 0H${t}V${e}H0Z`;return n&&(r+=` ${n}`),r}function xe(t,e,n,r,o){if(n<=0||r<=0)return"";const i=Math.max(0,Math.min(o,n/2,r/2));let s=`M${t+i} ${e}`;return s+=`H${t+n-i}`,s+=`A${i} ${i} 0 0 1 ${t+n} ${e+i}`,s+=`V${e+r-i}`,s+=`A${i} ${i} 0 0 1 ${t+n-i} ${e+r}`,s+=`H${t+i}`,s+=`A${i} ${i} 0 0 1 ${t} ${e+r-i}`,s+=`V${e+i}`,s+=`A${i} ${i} 0 0 1 ${t+i} ${e}Z`,s}const Mr=[m.BEACON_BEFORE,m.BEACON];function zr(t){var e,n;const{blockTargetInteraction:r,continuous:o,hideOverlay:i,lifecycle:s,onClickOverlay:c,overlayClickAction:a,placement:u,portalElement:g,scrolling:d,spotlightPadding:f,spotlightRadius:p,spotlightTarget:h,styles:w,target:N,waiting:l}=t,b=gn(),P=jr(h??N,f,d||l),R=A(null),y=(s===m.TOOLTIP||s===m.TOOLTIP_BEFORE)&&u!=="center",[E,O]=tt(!1),T=g?(e=R.current)==null?void 0:e.offsetParent:null,B=(T==null?void 0:T.clientWidth)??b.width,L=(T==null?void 0:T.clientHeight)??dr()??b.height,$=((n=w.overlay)==null?void 0:n.backgroundColor)??"rgba(0, 0, 0, 0.5)",v=q(()=>{const{backgroundColor:M,mixBlendMode:W,...K}=w.overlay;return{height:L,pointerEvents:"none",...K}},[L,w.overlay]),C=y&&!d&&!l;z(()=>{C?requestAnimationFrame(()=>O(!0)):O(!1)},[C]);const j=o&&Mr.includes(s),D=!o&&s!==m.TOOLTIP;if(i||!l&&(j||D))return null;let x="";if(C)if(g&&T){const M=J(h??N);if(M){const W=me(M),K=me(T);x=xe(W.left-K.left-f.left,W.top-K.top-f.top,M.offsetWidth+f.left+f.right,M.offsetHeight+f.top+f.bottom,p)}}else x=xe(P.left,P.top,P.width,P.height,p);const I=Dr(B,L,x);return S.createElement("div",{ref:R,"aria-hidden":"true",className:"react-joyride__overlay","data-testid":"overlay",style:v},S.createElement("svg",{className:"react-joyride__spotlight","data-testid":"spotlight",style:{height:L,left:0,position:P.isFixed?"fixed":"absolute",top:0,width:B}},S.createElement("path",{d:I,fill:$,fillRule:"evenodd",onClick:c,style:{cursor:a?"pointer":"default",pointerEvents:"auto"}}),x&&S.createElement("path",{d:x,fill:$,style:{opacity:E?0:1,pointerEvents:r?"auto":"none",transition:"opacity 0.2s"}}),x&&Object.keys(w.spotlight).length>0&&S.createElement("path",{d:x,fill:"none",style:{pointerEvents:"none"},...w.spotlight})))}function Pe(t){const{children:e,element:n}=t;return n?Ve(e,n):null}const $r='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), area[href], [tabindex]:not([tabindex="-1"]), [contenteditable]';function Ur(t,e){const n=A(null);z(()=>{if(!t)return Mt;n.current=document.activeElement;const r=i=>{if(i.key!=="Tab")return;const s=[...t.querySelectorAll($r)],{shiftKey:c}=i;if(!s.length)return;i.preventDefault();let a=document.activeElement?s.indexOf(document.activeElement):0;a===-1||!c&&a+1===s.length?a=0:c&&a===0?a=s.length-1:a+=c?-1:1,s[a].focus()};t.addEventListener("keydown",r,!1);let o;{const i=t.querySelector(e);i&&(o=setTimeout(()=>{i.focus({preventScroll:!0})},100))}return()=>{var i;t.removeEventListener("keydown",r),o!==void 0&&clearTimeout(o),(i=n.current)==null||i.focus({preventScroll:!0})}},[t,e])}function rt(t,e,n){const[r]=t.split("-");switch(r){case"top":case"bottom":return{width:e,height:n};case"left":case"right":return{width:n,height:e};default:return null}}function Wr(t,e,n){const[r]=t.split("-");switch(r){case"top":return{points:`0,0 ${e/2},${n} ${e},0`,...rt(t,e,n)};case"bottom":return{points:`${e},${n} ${e/2},0 0,${n}`,...rt(t,e,n)};case"left":return{points:`0,0 ${n},${e/2} 0,${e}`,...rt(t,e,n)};case"right":return{points:`${n},${e} ${n},0 0,${e/2}`,...rt(t,e,n)};default:return null}}function Hr(t,e,n,r){if(!e)return{};const[o]=t.split("-");switch(o){case"top":return{bottom:-n,left:e.x??0,...rt(t,r,n)};case"bottom":return{top:-n,left:e.x??0,...rt(t,r,n)};case"left":return{right:-n,top:e.y??0,...rt(t,r,n)};case"right":return{left:-n,top:e.y??0,...rt(t,r,n)};default:return{}}}function Gr({arrowComponent:t,arrowRef:e,base:n,placement:r,position:o,size:i,styles:s}){const c=t;let a=null;if(c){if(!rt(r,n,i))return null;a=S.createElement("span",{style:{flexShrink:0}},S.createElement(c,{base:n,placement:r,size:i}))}else{const u=Wr(r,n,i);if(!u)return null;a=S.createElement("svg",{height:u.height,width:u.width,xmlns:"http://www.w3.org/2000/svg"},S.createElement("polygon",{fill:"currentColor",points:u.points}))}return S.createElement("span",{ref:e,className:"react-joyride__arrow","data-testid":"arrow",style:{...s,...Hr(r,o,i,n),...o?{}:{visibility:"hidden"}}},a)}function Kr(t){const{beaconComponent:e,continuous:n,index:r,isLastStep:o,locale:i,nonce:s,onInteract:c,shouldFocus:a,size:u,step:g,styles:d}=t,f=A(null),p=!!e;z(()=>{if(p||document.getElementById("joyride-beacon-animation"))return Mt;const N=document.createElement("style");N.id="joyride-beacon-animation",s&&N.setAttribute("nonce",s),N.appendChild(document.createTextNode(`
|
|
6
|
-
@keyframes joyride-beacon-inner {
|
|
7
|
-
20% {
|
|
8
|
-
opacity: 0.9;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
90% {
|
|
12
|
-
opacity: 0.7;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
@keyframes joyride-beacon-outer {
|
|
17
|
-
0% {
|
|
18
|
-
transform: scale(1);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
45% {
|
|
22
|
-
opacity: 0.7;
|
|
23
|
-
transform: scale(0.75);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
100% {
|
|
27
|
-
opacity: 0.9;
|
|
28
|
-
transform: scale(1);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
`)),document.head.appendChild(N);const l=setTimeout(()=>{V.domElement(f.current)&&a&&f.current.focus()},0);return()=>{clearTimeout(l);const b=document.getElementById("joyride-beacon-animation");b!=null&&b.parentNode&&b.parentNode.removeChild(b)}},[p,s,a]);const h=nt(i.open);let w;if(e){const N=e;w=S.createElement(N,{continuous:n,index:r,isLastStep:o,size:u,step:g})}else w=S.createElement("span",{style:d.beacon},S.createElement("span",{style:d.beaconOuter}),S.createElement("span",{style:d.beaconInner}));return S.createElement("button",{ref:f,"aria-label":h,className:"react-joyride__beacon","data-testid":"button-beacon",onClick:c,onMouseEnter:c,style:d.beaconWrapper,title:h,type:"button"},w)}function Yr({styles:t,...e}){const{color:n,height:r,width:o,...i}=t;return S.createElement("button",{style:i,type:"button",...e},S.createElement("svg",{height:typeof r=="number"?`${r}px`:r,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:typeof o=="number"?`${o}px`:o,xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",null,S.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:n}))))}function Vr(t){const{backProps:e,closeProps:n,index:r,isLastStep:o,primaryProps:i,skipProps:s,step:c,tooltipProps:a}=t,{buttons:u,content:g,styles:d,title:f}=c,p={};u.includes("primary")&&(p.primary=S.createElement("button",{"data-testid":"button-primary",style:d.buttonPrimary,type:"button",...i})),u.includes("skip")&&!o&&(p.skip=S.createElement("button",{"aria-live":"off","data-testid":"button-skip",style:d.buttonSkip,type:"button",...s})),u.includes("back")&&r>0&&(p.back=S.createElement("button",{"data-testid":"button-back",style:d.buttonBack,type:"button",...e})),p.close=u.includes("close")&&S.createElement(Yr,{"data-testid":"button-close",styles:d.buttonClose,...n});const h=f?{"aria-labelledby":"joyride-tooltip-title","aria-describedby":"joyride-tooltip-content"}:{"aria-label":nt(g),"aria-describedby":"joyride-tooltip-content"};return S.createElement("div",{key:"JoyrideTooltip",className:"react-joyride__tooltip","data-joyride-step":r,...c.id&&{"data-joyride-id":c.id},style:d.tooltip,...a,...h},S.createElement("div",{style:d.tooltipContainer},f&&S.createElement("h4",{id:"joyride-tooltip-title",style:d.tooltipTitle},f),S.createElement("div",{id:"joyride-tooltip-content",style:d.tooltipContent},g)),u.some(w=>w==="back"||w==="primary"||w==="skip")&&S.createElement("div",{style:d.tooltipFooter},S.createElement("div",{style:d.tooltipFooterSpacer},p.skip),p.back,p.primary),p.close)}function qr(t){const{continuous:e,controls:n,index:r,isLastStep:o,size:i,step:s}=t,c=l=>{l.preventDefault(),n.prev(et.BUTTON_BACK)},a=l=>{l.preventDefault(),s.closeButtonAction==="skip"?n.skip(et.BUTTON_CLOSE):n.close(et.BUTTON_CLOSE)},u=l=>{if(l.preventDefault(),!e){n.close(et.BUTTON_PRIMARY);return}n.next(et.BUTTON_PRIMARY)},g=l=>{l.preventDefault(),n.skip(et.BUTTON_SKIP)},d=()=>{const{back:l,close:b,last:P,next:R,nextWithProgress:y,skip:E}=s.locale,O=nt(l),T=nt(b),B=nt(P),L=nt(R),$=nt(E);let v=b,C=T;if(e){if(v=R,C=L,s.showProgress&&!o){const j=nt(y,{step:r+1,steps:i});v=zt(y,r+1,i),C=j}o&&(v=P,C=B)}return{backProps:{"aria-label":O,children:l,"data-action":"back",onClick:c,role:"button",title:O},closeProps:{"aria-label":T,children:b,"data-action":"close",onClick:a,role:"button",title:T},primaryProps:{"aria-label":C,children:v,"data-action":"primary",onClick:u,role:"button",title:C},skipProps:{"aria-label":$,children:E,"data-action":"skip",onClick:g,role:"button",title:$},tooltipProps:{"aria-modal":!0,role:"alertdialog"}}},{arrowComponent:f,beaconComponent:p,tooltipComponent:h,...w}=s;let N;if(h){const l=h;N=S.createElement(l,{...d(),continuous:e,controls:n,index:r,isLastStep:o,size:i,step:w})}else N=S.createElement(Vr,{...d(),continuous:e,controls:n,index:r,isLastStep:o,size:i,step:w});return N}function Zr(t){if(t.startsWith("left"))return["top","bottom"];if(t.startsWith("right"))return["bottom","top"]}function Xr(t,e,n){var r,o;return t?[Be()]:((r=e.floatingOptions)==null?void 0:r.flipOptions)===!1?[]:[je({crossAxis:!1,fallbackPlacements:Zr(n),padding:20,...(o=e.floatingOptions)==null?void 0:o.flipOptions})]}function Jr(t){var e,n,r,o,i;const{continuous:s,controls:c,index:a,lifecycle:u,nonce:g,open:d,portalElement:f,setPositionData:p,setTooltipRef:h,shouldScroll:w,size:N,step:l,target:b,updateState:P}=t,R=A(null),y=A({}),E=A({}),O=l.placement==="center",T=l.placement==="auto",B=q(()=>({getBoundingClientRect:()=>({x:window.innerWidth/2,y:window.innerHeight/2,top:window.innerHeight/2,left:window.innerWidth/2,bottom:window.innerHeight/2,right:window.innerWidth/2,width:0,height:0})}),[]),L=q(()=>be(b)?dt(b):void 0,[b]),$=q(()=>pt(b),[b]),v=q(()=>L?{boundary:L,rootBoundary:"viewport"}:{},[L]),C=O||T?"bottom":l.placement,j=O?"fixed":((e=l.floatingOptions)==null?void 0:e.strategy)??(l.isFixed||$?"fixed":"absolute"),D=q(()=>{var Y,ot,ft,Ht;return O?[{name:"center",fn:({rects:ct})=>({x:(window.innerWidth-ct.floating.width)/2,y:(window.innerHeight-ct.floating.height)/2})}]:[Yt(({placement:ct})=>{var Gt;let Et="right";ct.startsWith("top")?Et="top":ct.startsWith("bottom")?Et="bottom":ct.startsWith("left")&&(Et="left");const Ne=l.spotlightTarget?0:l.spotlightPadding[Et];return l.offset+Ne+((Gt=l.floatingOptions)!=null&&Gt.hideArrow?0:l.arrowSize)},[l.offset,l.spotlightPadding,l.spotlightTarget,l.arrowSize,(Y=l.floatingOptions)==null?void 0:Y.hideArrow]),...Xr(T,l,C),Fe({padding:10,...v,...(ot=l.floatingOptions)==null?void 0:ot.shiftOptions}),...(ft=l.floatingOptions)!=null&&ft.hideArrow?[]:[_e({element:R,padding:l.arrowSpacing},[l.arrowSpacing,l.arrowBase])],...((Ht=l.floatingOptions)==null?void 0:Ht.middleware)??[]]},[O,l,T,C,v]),x=Vt({...O?{elements:{reference:B}}:{},placement:C,strategy:j,middleware:D}),I=Vt({strategy:j,placement:l.beaconPlacement??(T||O?"bottom":l.placement),middleware:q(()=>{var Y,ot;return[Yt(((ot=(Y=l.floatingOptions)==null?void 0:Y.beaconOptions)==null?void 0:ot.offset)??-18)]},[(r=(n=l.floatingOptions)==null?void 0:n.beaconOptions)==null?void 0:r.offset]),whileElementsMounted:qt});E.current=x.middlewareData,y.current=I.middlewareData,z(()=>{var Y;const{floating:ot,reference:ft}=x.elements;if(!(!ft||!ot||u!==m.TOOLTIP))return qt(ft,ot,x.update,(Y=l.floatingOptions)==null?void 0:Y.autoUpdate)},[u,x.update,(o=l.floatingOptions)==null?void 0:o.autoUpdate,l.target,x.elements]),z(()=>{!O&&b&&x.refs.setReference(b),b&&I.refs.setReference(b)},[I.refs,O,b,x.refs]),z(()=>{x.isPositioned&&p("tooltip",{placement:x.placement,x:x.x??0,y:x.y??0,middlewareData:E.current})},[p,x.isPositioned,x.placement,x.x,x.y]),z(()=>{I.isPositioned&&p("beacon",{placement:I.placement,x:I.x??0,y:I.y??0,middlewareData:y.current})},[p,I.isPositioned,I.placement,I.x,I.y]);const M=l.zIndex+100,W=X(Y=>{Y.type==="mouseenter"&&l.beaconTrigger!=="hover"||P({lifecycle:m.TOOLTIP_BEFORE,positioned:!1})},[l.beaconTrigger,P]),K=X(Y=>{Y&&(x.refs.setFloating(Y),h(Y))},[x.refs,h]),{arrow:at,floater:xt}=l.styles;let Pt=null;if(u===m.TOOLTIP||u===m.TOOLTIP_BEFORE){const Y=ye({...xt,...x.floatingStyles,zIndex:M,opacity:d&&x.isPositioned?1:0,...!d&&{transition:"none"}});Pt=S.createElement("div",{ref:K,className:"react-joyride__floater","data-testid":"floater",id:`react-joyride-step-${a}`,style:Y},S.createElement(qr,{continuous:s,controls:c,index:a,isLastStep:a+1===N,size:N,step:l}),!O&&!((i=l.floatingOptions)!=null&&i.hideArrow)&&S.createElement(Gr,{arrowComponent:l.arrowComponent,arrowRef:R,base:l.arrowBase,placement:x.placement,position:x.middlewareData.arrow,size:l.arrowSize,styles:at}))}else(u===m.BEACON||u===m.BEACON_BEFORE)&&(Pt=S.createElement("div",{ref:I.refs.setFloating,className:"react-joyride__floater","data-testid":"floater-beacon",id:`react-joyride-step-${a}-beacon`,style:ye({...I.floatingStyles,zIndex:M})},S.createElement(Kr,{beaconComponent:l.beaconComponent,continuous:s,index:a,isLastStep:a+1===N,locale:l.locale,nonce:g,onInteract:W,shouldFocus:w,size:N,step:l,styles:l.styles})));return S.createElement(Pe,{element:f},Pt)}function Qr(t){const{continuous:e,controls:n,index:r,lifecycle:o,nonce:i,portalElement:s,setPositionData:c,shouldScroll:a,size:u,step:g,updateState:d}=t,[f,p]=tt(null);Ur(g.disableFocusTrap?null:f,"[data-action=primary]");const h=J(g.target),w=o===m.TOOLTIP;return!Se(g)||!V.domElement(h)?null:S.createElement(Jr,{key:`JoyrideStep-${r}`,continuous:e,controls:n,index:r,lifecycle:o,nonce:i,open:w,portalElement:s,setPositionData:c,setTooltipRef:p,shouldScroll:a,size:u,step:g,target:h,updateState:d})}function to({controls:t,mergedProps:e,state:n,step:r,store:o}){const{continuous:i,debug:s,nonce:c,portalElement:a,scrollToFirstStep:u}=e,g=Lr(a),{index:d,lifecycle:f,status:p}=n,h=p===F.RUNNING,[w,N]=tt(!1),l=A(null),b=(r==null?void 0:r.loaderDelay)??0;z(()=>(n.waiting?b===0?N(!0):l.current=setTimeout(()=>{N(!0)},b):N(!1),()=>{l.current&&(clearTimeout(l.current),l.current=null)}),[b,n.waiting]),z(()=>{if(!h)return;const y=E=>{!r||f!==m.TOOLTIP||E.key==="Escape"&&r.dismissKeyAction&&(r.dismissKeyAction==="next"?t.next(et.KEYBOARD):t.close(et.KEYBOARD))};return document.body.addEventListener("keydown",y,{passive:!0}),()=>{document.body.removeEventListener("keydown",y)}},[t,h,f,r]);const P=X(()=>{(r==null?void 0:r.overlayClickAction)==="close"?t.close(et.OVERLAY):(r==null?void 0:r.overlayClickAction)==="next"&&t.next(et.OVERLAY)},[t,r==null?void 0:r.overlayClickAction]);if(!r||!h)return null;const R=n.action===_.START&&!r.skipBeacon&&r.placement!=="center";return S.createElement(S.Fragment,null,f!==m.INIT&&S.createElement(Qr,{...n,continuous:i,controls:t,debug:s,nonce:c,portalElement:g,setPositionData:o.current.setPositionData,shouldScroll:!r.skipScroll&&(d!==0||u),step:r,updateState:o.current.updateState}),S.createElement(Pe,{element:g},S.createElement(S.Fragment,null,w&&S.createElement(_r,{nonce:c,step:r}),!R&&S.createElement(zr,{...r,continuous:i,lifecycle:f,onClickOverlay:P,portalElement:a?g:null,scrolling:n.scrolling,waiting:n.waiting}))))}function eo(t){const{controls:e,failures:n,mergedProps:r,state:o,step:i,store:s}=Rr(t);return{controls:e,failures:n,on:X((c,a)=>s.current.on(c,a),[s]),state:q(()=>St(o,"positioned"),[o]),step:i,Tour:$t()?S.createElement(to,{controls:e,mergedProps:r,state:o,step:i,store:s}):null}}function no(t){const{Tour:e}=eo(t);return e}function ro(t){return $t()?S.createElement(no,t):null}const Ce="amazon-ses-integration-v1",oo=[{id:"sov-comparison-fields-v1",target:'[data-whatsnew="sov-comparison-fields-v1"]',route:"/workflows",title:"Choose the fields you see",content:"Pick which details show for this asset type.",priority:0,expiresAt:"2026-08-20T00:00:00Z"},{id:"sov-export-matches-view-v1",target:'[data-whatsnew="sov-export-matches-view-v1"]',route:"/workflows",title:"Your export matches your view",content:"The file now contains exactly the fields you selected.",priority:1,expiresAt:"2026-08-20T00:00:00Z"},{id:Ce,target:`[data-whatsnew="${Ce}"]`,route:"/integrations",title:"Send email with Amazon SES",content:`Connect your own Amazon SES account to send email from your automations.
|
|
32
|
-
Click here to set it up.`,priority:0},{id:"dashboard-ai-proposal-detail-v1",target:'[data-whatsnew="dashboard-ai-proposal-detail-v1"]',title:"See what changed",content:"Expand any proposed widget to review exactly what will be added or updated before you apply.",priority:2,expiresAt:"2026-08-23T00:00:00Z"},{id:"bill-recon-census-pay-frequency-v1",target:'[data-whatsnew="bill-recon-census-pay-frequency-v1"]',route:"/benefits",title:"Match your census to the bill",content:`Bills are monthly, but a census often lists costs per paycheck.
|
|
33
|
-
Set your payroll frequency here and we convert census costs to monthly so the two line up.`,priority:0,expiresAt:"2026-08-31T00:00:00Z"},{id:"renewal-modeling-wizard-v1",target:'[data-whatsnew="renewal-modeling-wizard-v1"]',title:"Renewal Modeling is now guided",content:`Work through a renewal step by step \u2014 confirm plans and rates, check contributions, compare carrier quotes, then finalize.
|
|
34
|
-
Your progress is saved, so you can pick up where you left off.`,priority:0,expiresAt:"2026-08-20T00:00:00Z"},{id:"vault-start-workflow-v1",target:'[data-whatsnew="vault-start-workflow-v1"]',route:"/vault",title:"Start a workflow from your files",content:"Select files, then launch a recommended workflow with them already attached \u2014 no re-uploading.",priority:0,expiresAt:"2026-10-31T00:00:00Z"},{id:"benchmarking-epic-folder-view-v1",target:'[data-whatsnew="benchmarking-epic-folder-view-v1"]',route:"/benchmarking-extractions",title:"Browse Epic by folder",content:"Switch to Folders to navigate a client\u2019s Epic folders and pick files by location \u2014 not just the recent list.",priority:0,expiresAt:"2026-09-07T00:00:00Z"},{id:"benchmarking-epic-policy-view-v1",target:'[data-whatsnew="benchmarking-epic-policy-view-v1"]',route:"/benchmarking-extractions",title:"Browse Epic by policy",content:"Switch to Policy View to see a client\u2019s policies and pick the documents filed under each one.",priority:1,expiresAt:"2026-10-31T00:00:00Z"},{id:"bill-recon-comparison-settings-v1",target:'[data-whatsnew="bill-recon-comparison-settings-v1"]',route:"/benefits",title:"Line up census and bill",content:`Your census pay frequency is set here now, along with a volume percentage for any plan whose bill reports covered payroll instead of the benefit.
|
|
35
|
-
Set them once and every row compares on the same basis.`,priority:1,blockTargetInteraction:!0,expiresAt:"2026-11-15T00:00:00Z"},{id:Zt,target:`[data-whatsnew="${Zt}"]`,route:"/workflows",title:"Stop a workflow anytime",content:"Changed your mind? Click Stop while a workflow is running to cancel it.",priority:2,expiresAt:"2026-11-05T00:00:00Z"}],Ie=(t,e,n)=>{const r=(t==null?void 0:t[e])??(t==null?void 0:t[n]);return Array.isArray(r)?r.filter(o=>typeof o=="string"):[]};function io(){const{preferences:t,setPreferences:e}=De(),n=Me(),r=$e.GLOBAL.WHATS_NEW_SEEN,o=ze(r),i=A(new Set);Ie(t,r,o).forEach(g=>i.current.add(g));const s=A(Promise.resolve()),c=q(()=>new Set(i.current),[t]),a=X(g=>c.has(g),[c]),u=X(g=>{if(i.current.has(g))return Promise.resolve(!0);i.current.add(g);const d=s.current.then(async()=>{const f=Array.from(i.current),p=await Ue(r,f,"USER");if((p==null?void 0:p.statusCode)!==200)throw new Error("Failed to save whats-new seen state");return e(h=>({...h,[r]:Array.from(new Set([...Ie(h,r,o),...f]))})),n.invalidateQueries({queryKey:["bootstrapAppData"]}),!0}).catch(f=>(i.current.delete(g),console.error("Failed to mark whats-new seen",g,f),We({title:"Something went wrong",description:"We could not save your preference. Please try again.",variant:"destructive"}),!1));return s.current=d.then(()=>{}),d},[r,o,e,n]);return{seenIds:c,hasSeen:a,markSeen:u}}function so(t){const[e,n]=tt(()=>new Set),r=t.map(i=>`${i.id}::${i.target}`).sort().join("|"),o=A(t);return o.current=t,z(()=>{if(n(new Set),typeof window>"u"||o.current.length===0)return;const i=new Map,s=new Map,c=()=>{n(f=>{const p=new Set;return s.forEach((h,w)=>{h.size>0&&p.add(w)}),p.size===f.size&&[...p].every(h=>f.has(h))?f:p})},a=new IntersectionObserver(f=>{f.forEach(p=>{const h=i.get(p.target);if(!h)return;let w=s.get(h);w||(w=new Set,s.set(h,w)),p.isIntersecting?w.add(p.target):w.delete(p.target)}),c()},{threshold:.5}),u=f=>{var p;const h=i.get(f);a.unobserve(f),i.delete(f),h&&((p=s.get(h))==null||p.delete(f))},g=()=>{i.forEach((f,p)=>{p.isConnected||u(p)}),o.current.forEach(f=>{let p=null;try{p=document.querySelector(f.target)}catch{return}!p||i.has(p)||(i.set(p,f.id),a.observe(p))}),c()};g();const d=new MutationObserver(()=>g());return d.observe(document.body,{childList:!0,subtree:!0}),()=>{d.disconnect(),a.disconnect(),i.clear(),s.clear()}},[r]),e}const ao=3,co=(t,e)=>{const n=t.priority??Number.POSITIVE_INFINITY,r=e.priority??Number.POSITIVE_INFINITY;return n-r},lo=(t,e)=>!t.route||e.startsWith(t.route),uo=t=>{if(!t.expiresAt)return!1;const e=new Date(t.expiresAt).getTime();return!Number.isNaN(e)&&Date.now()>e},po=t=>{const e={target:t.target,title:t.title,content:t.content,skipBeacon:!0};return t.blockTargetInteraction!==void 0&&(e.blockTargetInteraction=t.blockTargetInteraction),e};function fo(){const t=He(),{hasSeen:e,markSeen:n}=io(),[r,o]=tt(0),[i,s]=tt(!1),c=A([]),a=A(t);z(()=>{a.current!==t&&(a.current=t,c.current=[],s(!1),o(0))},[t]);const u=q(()=>oo.filter(l=>!e(l.id)&&!uo(l)&&lo(l,t)),[e,t]),g=so(i?[]:u),d=q(()=>u.filter(l=>g.has(l.id)).sort(co),[u,g]);c.current.length===0&&d.length>0&&!i&&(c.current=d.slice(0,ao));const f=c.current,p=q(()=>f.map(po),[f]),h=!i&&p.length>0,w=X(()=>{s(!0),c.current=[]},[]),N=X(l=>{const{status:b,type:P,action:R,index:y}=l,E=f[y];if(P===H.STEP_BEFORE&&E&&n(E.id),R===_.CLOSE||b===F.SKIPPED){w();return}if(P===H.STEP_AFTER&&R===_.NEXT){const O=y+1;O>=f.length?w():o(O);return}b===F.FINISHED&&w()},[f,n,w]);return{run:h,steps:p,stepIndex:r,handleEvent:N}}const Ae="#6A56F0";function go(t){const e=t?"#1F2127":"#ffffff",n=t?"#E7E9EE":"#343839",r=t?"#B9BEC9":"#525965",o=t?"rgba(0, 0, 0, 0.65)":"rgba(0, 0, 0, 0.45)",i=t?"0 8px 30px rgba(0, 0, 0, 0.5)":"0 8px 30px rgba(0, 0, 0, 0.12)",s=t?"#8A93A6":"#97A0B4",c=t?"#8A93A6":"#6A758A";return{options:{primaryColor:Ae,textColor:n,backgroundColor:e,overlayColor:o,arrowColor:e,zIndex:1e4,showProgress:!0,overlayClickAction:!1,spotlightRadius:8,offset:8,arrowSize:10,arrowBase:16},styles:{tooltip:{borderRadius:12,padding:12,fontFamily:"Inter, sans-serif",boxShadow:i,border:"none",maxWidth:360,backgroundColor:e},tooltipTitle:{fontSize:15,fontWeight:600,color:n,margin:0,padding:"0 0 4px"},tooltipContent:{fontSize:14,lineHeight:"22px",color:r,padding:"0 0 8px",whiteSpace:"pre-line",textAlign:"left"},tooltipFooter:{marginTop:0},buttonPrimary:{backgroundColor:Ae,borderRadius:8,padding:"8px 16px",fontSize:13,fontWeight:500,fontFamily:"Inter, sans-serif"},buttonBack:{color:c,fontSize:13,fontWeight:500,fontFamily:"Inter, sans-serif",marginRight:8},buttonSkip:{color:s,fontSize:12,fontFamily:"Inter, sans-serif"},buttonClose:{top:-8,right:-8,backgroundColor:e,border:"none",borderRadius:"50%",width:12,height:12,padding:5,boxSizing:"content-box",color:c,zIndex:1,filter:"drop-shadow(0 1px 2px rgba(0, 0, 0, 0.06))"}}}}const ho=()=>{const{resolvedTheme:t}=Ye(),{run:e,steps:n,stepIndex:r,handleEvent:o}=fo(),{options:i,styles:s}=go(t==="dark");return e?Kt(ro,{steps:n,run:e,stepIndex:r,continuous:!0,scrollToFirstStep:!0,hideBackButton:!0,onEvent:o,options:i,styles:s,loaderComponent:null,locale:{last:"OK"}}):null},yo=()=>{const{isFeatureEnabled:t}=Ge();return t(Ke.WHATS_NEW_HINTS)?Kt(ho,{}):null};export{yo as WhatsNewProvider};
|
|
36
|
-
/* v8 ignore next -- @preserve */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as a,jsxs as A}from"react/jsx-runtime";import{useState as y,useMemo as C,useRef as X,useCallback as q,useEffect as V}from"react";import{v as z,bB as H,ch as Y,em as K,en as Z,eo as ee,ep as te,eq as k,er as ae,bF as re,j as L,es as oe,et as se,eu as ne,bY as ie,ah as le,aA as W,bD as de,ev as me,ew as ce,ex as ue,ey as pe,ez as he,eA as we,aF as ge,aN as fe}from"./runtime-Dn4RiA4k.js";import"react-dom";import"react-dom/client";const b=5e4,xe=e=>e==null?"":e instanceof Date?e.toISOString():typeof e=="number"?e:String(e),Ce=(e,s,t)=>{if(s.length===0)return[];const m=new Map((t??[]).map(r=>[r.columnName,r.columnLabel])),c=s.map(r=>m.get(r)??r),i=e.map(r=>s.map(p=>xe(r[z(p)])));return[c,...i]},ve=({exportQueryParams:e,columns:s,datasetColumns:t,fileName:m,dashboardId:c,widgetId:i,widgetType:r})=>{const[p,f]=y(!1),{toast:u}=H(),{captureException:v}=Y(),{logInsightsEvent:n}=K();return{isExporting:p,exportCsv:async()=>{var h;if(s.length===0){u({title:"No columns selected",description:"Select at least one column to export.",variant:"warning"});return}f(!0);try{const o=await Z({...e,rowLimit:b,rowOffset:0}),l=o==null?void 0:o.statusCode;if(l!==void 0&&(l<200||l>=300))throw new Error(`Raw data request failed with status ${l}`);const d=o==null?void 0:o.data,w=(d==null?void 0:d.data)??[],g=((h=d==null?void 0:d.metadata)==null?void 0:h.totalCount)??w.length;if(w.length===0){u({title:"No data to export",description:"This widget has no raw data to export.",variant:"warning"});return}const S=Ce(w,s,t);ee(S,te(m||"raw-data")),c&&n(k.INSIGHTS_V2.EXPORT_DOCUMENT_ACTIONS.VALUE,k.INSIGHTS_V2.EXPORT_DOCUMENT_ACTIONS.ACTIONS.EXPORT_WIDGET_RAW_DATA_CSV,{dashboard_id:c,widget_id:i,widget_type:r}),g>b&&u({title:`Export limited to ${b.toLocaleString()} rows`,description:`Exported the first ${b.toLocaleString()} of ${g.toLocaleString()} rows in the table's default order \u2014 sorting isn't applied to exports, so these may differ from a sorted view. Refine the filters to export a narrower set.`,variant:"warning"})}catch(o){v({error:o instanceof Error?o:new Error(String(o)),contexts:{payload:{datasetName:e.datasetName,fileName:m}}}),u({title:"Export failed",description:"Could not export the raw data as CSV. Please try again.",variant:"destructive"})}finally{f(!1)}}}},De=({isExporting:e,onExport:s,disabled:t})=>{const m=ae()?"border-[var(--dash-card-border)] bg-[var(--dash-card-bg)] text-[color:var(--dash-text-secondary)]":"border-gray-300 bg-white text-gray-500 dark:border-neutral-700 dark:bg-neutral-900 dark:text-neutral-400";return a("span",{className:"inline-flex shrink-0",children:a(re,{type:"button",variant:"ghost",size:"iconSm",onClick:s,disabled:t||e,icon:e?a(oe,{className:"animate-spin"}):a(se,{}),tooltip:e?"Preparing CSV":"Download CSV","data-testid":"widget-raw-data-export-csv","aria-label":"Download raw data as CSV",className:L("border shadow-sm",m)})})},be=({rawDataQueryParams:e,exportFileName:s,isActive:t,showDateFilter:m=!1,seedDateFilters:c,dashboardId:i,widgetId:r,widgetType:p,compact:f,showExportCapWarning:u=!0,onExportControllerChange:v,hideToolbarExportButton:n=!1})=>{const h=e.datasetName,{datasetColumns:o,availableDateColumns:l,defaultDateColumn:d,isLoading:w}=ne(h,!!h&&t);return A("div",{className:"flex h-full min-h-0 flex-col",children:[u&&A("p",{className:"flex shrink-0 items-center gap-1.5 px-4 text-xs text-warning",children:[a(ie,{className:"h-3 w-3 shrink-0"}),A("span",{children:["CSV export is limited to the first ",b.toLocaleString()," rows."]})]}),t&&a("div",{className:L("min-h-0 flex-1 overflow-y-auto px-4 pt-2"),children:a(le,{children:w?a("div",{className:"flex h-64 items-center justify-center",children:a(W,{})}):a(Ne,{rawDataQueryParams:e,exportFileName:s,showDateFilter:m,seedDateFilters:c,datasetColumns:o,availableDateColumns:l,defaultDateColumn:d,dashboardId:i,widgetId:r,widgetType:p,compact:f,onExportControllerChange:v,hideToolbarExportButton:n})})})]})},Ne=({rawDataQueryParams:e,exportFileName:s,showDateFilter:t,seedDateFilters:m,datasetColumns:c,availableDateColumns:i,defaultDateColumn:r,dashboardId:p,widgetId:f,widgetType:u,compact:v,onExportControllerChange:n,hideToolbarExportButton:h})=>{const o=e.datasetName,{timeWindowDescriptors:l}=de(),d=C(()=>new Set(t?i.map(x=>x.columnName):[]),[t,i]),w=C(()=>me([...e.rawDataFilterJson||[],...e.filterJson||[]]),[e.rawDataFilterJson,e.filterJson]),{permanentNonDateRows:g,panelFilters:S}=C(()=>ce(e.rawDataFilterJson,e.filterJson,x=>d.has(x)),[e.rawDataFilterJson,e.filterJson,d]),[N,M]=y(()=>{if(!t)return[];const x=(m??[]).filter(_=>d.has(_.columnName));return x.length>0?x:ue(w.filter(_=>d.has(_.filterColumn)),i,r)}),[T,Q]=y(()=>S),[D,j]=y(e.columnsToSelect??[]),E=C(()=>t?pe(N,l):[],[t,N,l]),F=t&&l.length===0&&he(N),B=C(()=>({...e,filterJson:null,rawDataFilterJson:[...E,...g]}),[e,E,g]),$=C(()=>({...e,columnsToSelect:D,filterJson:null,rawDataFilterJson:[...E,...g,...T],kpiComparisonPeriod:we.None}),[e,D,E,g,T]),G=s||o||"Raw Data",{isExporting:I,exportCsv:R}=ve({exportQueryParams:$,columns:D,datasetColumns:c,fileName:G,dashboardId:p,widgetId:f,widgetType:u}),J=X(R);J.current=R;const O=q(()=>{J.current()},[]),P=D.length===0;V(()=>{if(F){n==null||n(null);return}n==null||n({exportCsv:O,isExporting:I,disabled:P})},[n,O,I,P,F]),V(()=>()=>n==null?void 0:n(null),[n]);const U=t&&i.length>0&&o?a(ge,{layout:"dropdowns",availableDateColumns:i,defaultDateColumn:r,dateFilters:N,onDateFiltersChange:M,timeWindowDescriptors:l,datasetName:o,allowRemovePrimary:!0,allowFutureDates:!0,lastRemovalDescription:"Removing the last date filter shows all dates in this raw data."}):void 0;return F?a("div",{className:"flex h-64 items-center justify-center",children:a(W,{})}):a(fe,{rawDataQueryParams:B,selectedColumns:D,onColumnsChange:j,filterMenuItems:T,onFilterMenuChange:Q,timeWindowSelector:U,toolbarActions:h?void 0:a(De,{isExporting:I,onExport:R,disabled:P}),compact:v})};export{be as WidgetRawDataView};
|
package/dist/abap-V7zjtt5B.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dy as L}from"./runtime-Dn4RiA4k.js";function D(E,I){for(var O=0;O<I.length;O++){const N=I[O];if(typeof N!="string"&&!Array.isArray(N)){for(const T in N)if(T!=="default"&&!(T in E)){const A=Object.getOwnPropertyDescriptor(N,T);A&&Object.defineProperty(E,T,A.get?A:{enumerable:!0,get:()=>N[T]})}}}return Object.freeze(Object.defineProperty(E,Symbol.toStringTag,{value:"Module"}))}var S,R;function P(){if(R)return S;R=1,S=E,E.displayName="abap",E.aliases=[];function E(I){I.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:SCIENTIFIC_WITH_LEADING_ZERO|SCALE_PRESERVING_SCIENTIFIC|RMC_COMMUNICATION_FAILURE|END-ENHANCEMENT-SECTION|MULTIPLY-CORRESPONDING|SUBTRACT-CORRESPONDING|VERIFICATION-MESSAGE|DIVIDE-CORRESPONDING|ENHANCEMENT-SECTION|CURRENCY_CONVERSION|RMC_SYSTEM_FAILURE|START-OF-SELECTION|MOVE-CORRESPONDING|RMC_INVALID_STATUS|CUSTOMER-FUNCTION|END-OF-DEFINITION|ENHANCEMENT-POINT|SYSTEM-EXCEPTIONS|ADD-CORRESPONDING|SCALE_PRESERVING|SELECTION-SCREEN|CURSOR-SELECTION|END-OF-SELECTION|LOAD-OF-PROGRAM|SCROLL-BOUNDARY|SELECTION-TABLE|EXCEPTION-TABLE|IMPLEMENTATIONS|PARAMETER-TABLE|RIGHT-JUSTIFIED|UNIT_CONVERSION|AUTHORITY-CHECK|LIST-PROCESSING|SIGN_AS_POSTFIX|COL_BACKGROUND|IMPLEMENTATION|INTERFACE-POOL|TRANSFORMATION|IDENTIFICATION|ENDENHANCEMENT|LINE-SELECTION|INITIALIZATION|LEFT-JUSTIFIED|SELECT-OPTIONS|SELECTION-SETS|COMMUNICATION|CORRESPONDING|DECIMAL_SHIFT|PRINT-CONTROL|VALUE-REQUEST|CHAIN-REQUEST|FUNCTION-POOL|FIELD-SYMBOLS|FUNCTIONALITY|INVERTED-DATE|SELECTION-SET|CLASS-METHODS|OUTPUT-LENGTH|CLASS-CODING|COL_NEGATIVE|ERRORMESSAGE|FIELD-GROUPS|HELP-REQUEST|NO-EXTENSION|NO-TOPOFPAGE|REDEFINITION|DISPLAY-MODE|ENDINTERFACE|EXIT-COMMAND|FIELD-SYMBOL|NO-SCROLLING|SHORTDUMP-ID|ACCESSPOLICY|CLASS-EVENTS|COL_POSITIVE|DECLARATIONS|ENHANCEMENTS|FILTER-TABLE|SWITCHSTATES|SYNTAX-CHECK|TRANSPORTING|ASYNCHRONOUS|SYNTAX-TRACE|TOKENIZATION|USER-COMMAND|WITH-HEADING|ABAP-SOURCE|BREAK-POINT|CHAIN-INPUT|COMPRESSION|FIXED-POINT|NEW-SECTION|NON-UNICODE|OCCURRENCES|RESPONSIBLE|SYSTEM-CALL|TRACE-TABLE|ABBREVIATED|CHAR-TO-HEX|END-OF-FILE|ENDFUNCTION|ENVIRONMENT|ASSOCIATION|COL_HEADING|EDITOR-CALL|END-OF-PAGE|ENGINEERING|IMPLEMENTED|INTENSIFIED|RADIOBUTTON|SYSTEM-EXIT|TOP-OF-PAGE|TRANSACTION|APPLICATION|CONCATENATE|DESTINATION|ENHANCEMENT|IMMEDIATELY|NO-GROUPING|PRECOMPILED|REPLACEMENT|TITLE-LINES|ACTIVATION|BYTE-ORDER|CLASS-POOL|CONNECTION|CONVERSION|DEFINITION|DEPARTMENT|EXPIRATION|INHERITING|MESSAGE-ID|NO-HEADING|PERFORMING|QUEUE-ONLY|RIGHTSPACE|SCIENTIFIC|STATUSINFO|STRUCTURES|SYNCPOINTS|WITH-TITLE|ATTRIBUTES|BOUNDARIES|CLASS-DATA|COL_NORMAL|DD\/MM\/YYYY|DESCENDING|INTERFACES|LINE-COUNT|MM\/DD\/YYYY|NON-UNIQUE|PRESERVING|SELECTIONS|STATEMENTS|SUBROUTINE|TRUNCATION|TYPE-POOLS|ARITHMETIC|BACKGROUND|ENDPROVIDE|EXCEPTIONS|IDENTIFIER|INDEX-LINE|OBLIGATORY|PARAMETERS|PERCENTAGE|PUSHBUTTON|RESOLUTION|COMPONENTS|DEALLOCATE|DISCONNECT|DUPLICATES|FIRST-LINE|HEAD-LINES|NO-DISPLAY|OCCURRENCE|RESPECTING|RETURNCODE|SUBMATCHES|TRACE-FILE|ASCENDING|BYPASSING|ENDMODULE|EXCEPTION|EXCLUDING|EXPORTING|INCREMENT|MATCHCODE|PARAMETER|PARTIALLY|PREFERRED|REFERENCE|REPLACING|RETURNING|SELECTION|SEPARATED|SPECIFIED|STATEMENT|TIMESTAMP|TYPE-POOL|ACCEPTING|APPENDAGE|ASSIGNING|COL_GROUP|COMPARING|CONSTANTS|DANGEROUS|IMPORTING|INSTANCES|LEFTSPACE|LOG-POINT|QUICKINFO|READ-ONLY|SCROLLING|SQLSCRIPT|STEP-LOOP|TOP-LINES|TRANSLATE|APPENDING|AUTHORITY|CHARACTER|COMPONENT|CONDITION|DIRECTORY|DUPLICATE|MESSAGING|RECEIVING|SUBSCREEN|ACCORDING|COL_TOTAL|END-LINES|ENDMETHOD|ENDSELECT|EXPANDING|EXTENSION|INCLUDING|INFOTYPES|INTERFACE|INTERVALS|LINE-SIZE|PF-STATUS|PROCEDURE|PROTECTED|REQUESTED|RESUMABLE|RIGHTPLUS|SAP-SPOOL|SECONDARY|STRUCTURE|SUBSTRING|TABLEVIEW|NUMOFCHAR|ADJACENT|ANALYSIS|ASSIGNED|BACKWARD|CHANNELS|CHECKBOX|CONTINUE|CRITICAL|DATAINFO|DD\/MM\/YY|DURATION|ENCODING|ENDCLASS|FUNCTION|LEFTPLUS|LINEFEED|MM\/DD\/YY|OVERFLOW|RECEIVED|SKIPPING|SORTABLE|STANDARD|SUBTRACT|SUPPRESS|TABSTRIP|TITLEBAR|TRUNCATE|UNASSIGN|WHENEVER|ANALYZER|COALESCE|COMMENTS|CONDENSE|DECIMALS|DEFERRED|ENDWHILE|EXPLICIT|KEYWORDS|MESSAGES|POSITION|PRIORITY|RECEIVER|RENAMING|TIMEZONE|TRAILING|ALLOCATE|CENTERED|CIRCULAR|CONTROLS|CURRENCY|DELETING|DESCRIBE|DISTANCE|ENDCATCH|EXPONENT|EXTENDED|GENERATE|IGNORING|INCLUDES|INTERNAL|MAJOR-ID|MODIFIER|NEW-LINE|OPTIONAL|PROPERTY|ROLLBACK|STARTING|SUPPLIED|ABSTRACT|CHANGING|CONTEXTS|CREATING|CUSTOMER|DATABASE|DAYLIGHT|DEFINING|DISTINCT|DIVISION|ENABLING|ENDCHAIN|ESCAPING|HARMLESS|IMPLICIT|INACTIVE|LANGUAGE|MINOR-ID|MULTIPLY|NEW-PAGE|NO-TITLE|POS_HIGH|SEPARATE|TEXTPOOL|TRANSFER|SELECTOR|DBMAXLEN|ITERATOR|ARCHIVE|BIT-XOR|BYTE-CO|COLLECT|COMMENT|CURRENT|DEFAULT|DISPLAY|ENDFORM|EXTRACT|LEADING|LISTBOX|LOCATOR|MEMBERS|METHODS|NESTING|POS_LOW|PROCESS|PROVIDE|RAISING|RESERVE|SECONDS|SUMMARY|VISIBLE|BETWEEN|BIT-AND|BYTE-CS|CLEANUP|COMPUTE|CONTROL|CONVERT|DATASET|ENDCASE|FORWARD|HEADERS|HOTSPOT|INCLUDE|INVERSE|KEEPING|NO-ZERO|OBJECTS|OVERLAY|PADDING|PATTERN|PROGRAM|REFRESH|SECTION|SUMMING|TESTING|VERSION|WINDOWS|WITHOUT|BIT-NOT|BYTE-CA|BYTE-NA|CASTING|CONTEXT|COUNTRY|DYNAMIC|ENABLED|ENDLOOP|EXECUTE|FRIENDS|HANDLER|HEADING|INITIAL|\*-INPUT|LOGFILE|MAXIMUM|MINIMUM|NO-GAPS|NO-SIGN|PRAGMAS|PRIMARY|PRIVATE|REDUCED|REPLACE|REQUEST|RESULTS|UNICODE|WARNING|ALIASES|BYTE-CN|BYTE-NS|CALLING|COL_KEY|COLUMNS|CONNECT|ENDEXEC|ENTRIES|EXCLUDE|FILTERS|FURTHER|HELP-ID|LOGICAL|MAPPING|MESSAGE|NAMETAB|OPTIONS|PACKAGE|PERFORM|RECEIVE|STATICS|VARYING|BINDING|CHARLEN|GREATER|XSTRLEN|ACCEPT|APPEND|DETAIL|ELSEIF|ENDING|ENDTRY|FORMAT|FRAMES|GIVING|HASHED|HEADER|IMPORT|INSERT|MARGIN|MODULE|NATIVE|OBJECT|OFFSET|REMOTE|RESUME|SAVING|SIMPLE|SUBMIT|TABBED|TOKENS|UNIQUE|UNPACK|UPDATE|WINDOW|YELLOW|ACTUAL|ASPECT|CENTER|CURSOR|DELETE|DIALOG|DIVIDE|DURING|ERRORS|EVENTS|EXTEND|FILTER|HANDLE|HAVING|IGNORE|LITTLE|MEMORY|NO-GAP|OCCURS|OPTION|PERSON|PLACES|PUBLIC|REDUCE|REPORT|RESULT|SINGLE|SORTED|SWITCH|SYNTAX|TARGET|VALUES|WRITER|ASSERT|BLOCKS|BOUNDS|BUFFER|CHANGE|COLUMN|COMMIT|CONCAT|COPIES|CREATE|DDMMYY|DEFINE|ENDIAN|ESCAPE|EXPAND|KERNEL|LAYOUT|LEGACY|LEVELS|MMDDYY|NUMBER|OUTPUT|RANGES|READER|RETURN|SCREEN|SEARCH|SELECT|SHARED|SOURCE|STABLE|STATIC|SUBKEY|SUFFIX|TABLES|UNWIND|YYMMDD|ASSIGN|BACKUP|BEFORE|BINARY|BIT-OR|BLANKS|CLIENT|CODING|COMMON|DEMAND|DYNPRO|EXCEPT|EXISTS|EXPORT|FIELDS|GLOBAL|GROUPS|LENGTH|LOCALE|MEDIUM|METHOD|MODIFY|NESTED|OTHERS|REJECT|SCROLL|SUPPLY|SYMBOL|ENDFOR|STRLEN|ALIGN|BEGIN|BOUND|ENDAT|ENTRY|EVENT|FINAL|FLUSH|GRANT|INNER|SHORT|USING|WRITE|AFTER|BLACK|BLOCK|CLOCK|COLOR|COUNT|DUMMY|EMPTY|ENDDO|ENDON|GREEN|INDEX|INOUT|LEAVE|LEVEL|LINES|MODIF|ORDER|OUTER|RANGE|RESET|RETRY|RIGHT|SMART|SPLIT|STYLE|TABLE|THROW|UNDER|UNTIL|UPPER|UTF-8|WHERE|ALIAS|BLANK|CLEAR|CLOSE|EXACT|FETCH|FIRST|FOUND|GROUP|LLANG|LOCAL|OTHER|REGEX|SPOOL|TITLE|TYPES|VALID|WHILE|ALPHA|BOXED|CATCH|CHAIN|CHECK|CLASS|COVER|ENDIF|EQUIV|FIELD|FLOOR|FRAME|INPUT|LOWER|MATCH|NODES|PAGES|PRINT|RAISE|ROUND|SHIFT|SPACE|SPOTS|STAMP|STATE|TASKS|TIMES|TRMAC|ULINE|UNION|VALUE|WIDTH|EQUAL|LOG10|TRUNC|BLOB|CASE|CEIL|CLOB|COND|EXIT|FILE|GAPS|HOLD|INCL|INTO|KEEP|KEYS|LAST|LINE|LONG|LPAD|MAIL|MODE|OPEN|PINK|READ|ROWS|TEST|THEN|ZERO|AREA|BACK|BADI|BYTE|CAST|EDIT|EXEC|FAIL|FIND|FKEQ|FONT|FREE|GKEQ|HIDE|INIT|ITNO|LATE|LOOP|MAIN|MARK|MOVE|NEXT|NULL|RISK|ROLE|UNIT|WAIT|ZONE|BASE|CALL|CODE|DATA|DATE|FKGE|GKGE|HIGH|KIND|LEFT|LIST|MASK|MESH|NAME|NODE|PACK|PAGE|POOL|SEND|SIGN|SIZE|SOME|STOP|TASK|TEXT|TIME|USER|VARY|WITH|WORD|BLUE|CONV|COPY|DEEP|ELSE|FORM|FROM|HINT|ICON|JOIN|LIKE|LOAD|ONLY|PART|SCAN|SKIP|SORT|TYPE|UNIX|VIEW|WHEN|WORK|ACOS|ASIN|ATAN|COSH|EACH|FRAC|LESS|RTTI|SINH|SQRT|TANH|AVG|BIT|DIV|ISO|LET|OUT|PAD|SQL|ALL|CI_|CPI|END|LOB|LPI|MAX|MIN|NEW|OLE|RUN|SET|\?TO|YES|ABS|ADD|AND|BIG|FOR|HDB|JOB|LOW|NOT|SAP|TRY|VIA|XML|ANY|GET|IDS|KEY|MOD|OFF|PUT|RAW|RED|REF|SUM|TAB|XSD|CNT|COS|EXP|LOG|SIN|TAN|XOR|AT|CO|CP|DO|GT|ID|IF|NS|OR|BT|CA|CS|GE|NA|NB|EQ|IN|LT|NE|NO|OF|ON|PF|TO|AS|BY|CN|IS|LE|NP|UP|E|I|M|O|Z|C|X)\b/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}return S}var C=P();const M=L(C),U=D({__proto__:null,default:M},[C]);export{U as a};
|
package/dist/abnf-Cs8-oUtO.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dy as s}from"./runtime-Dn4RiA4k.js";function l(t,i){for(var n=0;n<i.length;n++){const e=i[n];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const a=Object.getOwnPropertyDescriptor(e,r);a&&Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var o,d;function p(){if(d)return o;d=1,o=t,t.displayName="abnf",t.aliases=[];function t(i){(function(n){var e="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";n.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+e+"|<"+e+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(i)}return o}var u=p();const c=s(u),f=l({__proto__:null,default:c},[u]);export{f as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dy as l}from"./runtime-Dn4RiA4k.js";function p(t,e){for(var n=0;n<e.length;n++){const a=e[n];if(typeof a!="string"&&!Array.isArray(a)){for(const r in a)if(r!=="default"&&!(r in t)){const i=Object.getOwnPropertyDescriptor(a,r);i&&Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>a[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var s,o;function u(){if(o)return s;o=1,s=t,t.displayName="actionscript",t.aliases=[];function t(e){e.languages.actionscript=e.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),e.languages.actionscript["class-name"].alias="function",delete e.languages.actionscript.parameter,delete e.languages.actionscript["literal-property"],e.languages.markup&&e.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:e.languages.markup}})}return s}var c=u();const f=l(c),g=p({__proto__:null,default:f},[c]);export{g as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as a,jsxs as s,Fragment as pe}from"react/jsx-runtime";import Oe,{useState as C,useRef as ae,useMemo as M,useEffect as O}from"react";import{fi as he,fj as fe,fk as ye,fl as Y,fm as Re,fn as ge,fo as ve,fp as q,fq as Be,fr as Ke,eV as Ye,fs as qe,ft as Ge,cA as re,cB as ne,bG as U,fu as We,cC as ie,fv as Ve,fw as He,dK as Je,fx as Xe,fy as Ze,aT as Qe,eD as et,j as R,fz as tt,fA as G,fB as se,fC as W,cr as le,fD as L,O as at,fE as rt,cY as j,fF as nt,fG as it,fH as V,fI as be,bR as Ne,bS as xe,bT as we,bV as Te,e3 as Ce,fJ as H,bW as st,eE as lt,bU as ot}from"./runtime-Dn4RiA4k.js";import"react-dom";import"react-dom/client";import{A as ct,S as dt,U as ut}from"./user-plus-DXpUkE2I.js";function mt(e,t){return he(ye(e,e),fe(e))}function pt(e,t){return he(ye(e,e),Y(fe(e),1))}function ht(e,t,n){return Re(e,-1,n)}const ft=new Set(["carrier_created","carrier_updated","contact_created","contact_updated","note_created","note_updated","asset_uploaded"]),Ie=new Set(["today","yesterday","last_7_days","last_30_days","this_month","last_month","custom"]),yt=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,oe=/^\d{4}-\d{2}-\d{2}$/,_e=e=>e.length>0?e:null,gt=e=>e??"";function ke(e){return e.length===0?null:[...e].sort().join(",")}function vt(e){if(!e)return[];const t=[];for(const n of e.split(",")){const r=n.trim();ft.has(r)&&t.push(r)}return t}function Fe(e){return e.length===0?null:[...e].sort().join(",")}function bt(e){return e?e.split(",").map(t=>t.trim()).filter(t=>yt.test(t)):[]}function Pe(e){return e.length===0?null:[...e].sort((t,n)=>t-n).join(",")}function Nt(e){if(!e)return[];const t=[];for(const n of e.split(",")){const r=Number.parseInt(n.trim(),10);Number.isFinite(r)&&r>0&&t.push(r)}return t}function Se(e){return e&&Ie.has(e)?e:null}function xt(e){if(e)return Ie.has(e)?e:void 0}function J(e){return e&&oe.test(e)?e:null}function Me(e){if(e)return oe.test(e)?e:void 0}const b={search:"mal_q",actionTypes:"mal_action",userIds:"mal_user",carrierIds:"mal_carrier",period:"mal_period",dateFrom:"mal_from",dateTo:"mal_to"},wt=new Date(2026,2,14),Tt="Mar 14, 2026",Ae={today:"Today",yesterday:"Yesterday",last_7_days:"Last 7 days",last_30_days:"Last 30 days",this_month:"This month",last_month:"Last month",custom:"Custom"},Ct=["today","last_7_days","last_30_days","custom"];function It(e,t=new Date){const n=i=>Le(i),r=i=>_t(i);switch(e){case"today":return{from:n(q(t)),to:r(t)};case"yesterday":{const i=Y(t,1);return{from:n(q(i)),to:r(i)}}case"last_7_days":return{from:n(q(Y(t,6))),to:r(t)};case"last_30_days":return{from:n(q(Y(t,29))),to:r(t)};case"this_month":return{from:n(ve(t)),to:r(ge(t))};case"last_month":{const i=ht(t);return{from:n(ve(i)),to:r(ge(i))}}case"custom":return}}function Le(e){const t=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),r=String(e.getDate()).padStart(2,"0");return`${t}-${n}-${r}`}function _t(e){return $e(Le(e))}function $e(e){return oe.test(e)?`${e}T23:59:59.999`:e}function kt(e){return!!(e.search&&e.search.length>0||e.actionTypes&&e.actionTypes.length>0||e.userIds&&e.userIds.length>0||e.carrierIds&&e.carrierIds.length>0||e.period||e.dateFrom||e.dateTo)}function Ft(e){if(!e)return;if(!e.period)return e;if(e.period==="custom"){const{period:i,...l}=e;return{...l,dateTo:l.dateTo?$e(l.dateTo):l.dateTo}}const t=It(e.period),{period:n,...r}=e;return{...r,dateFrom:t==null?void 0:t.from,dateTo:t==null?void 0:t.to}}function Pt(e){if(!e)return;const t={};return e.search&&e.search.length>0&&(t.search=e.search),e.actionTypes&&e.actionTypes.length>0&&(t.actionTypes=[...e.actionTypes].sort()),e.userIds&&e.userIds.length>0&&(t.userIds=[...e.userIds].sort()),e.carrierIds&&e.carrierIds.length>0&&(t.carrierIds=[...e.carrierIds].sort((n,r)=>n-r)),e.dateFrom&&(t.dateFrom=e.dateFrom),e.dateTo&&(t.dateTo=e.dateTo),Object.keys(t).length>0?t:void 0}const St=({pageSize:e=50,carrierId:t,enabled:n=!0,filters:r}={})=>{var i,l,o,g;const u=Ft(r),p=Pt(u),y=Be({queryKey:["market-activity-log",e,t,p],queryFn:({pageParam:x=0})=>Ke({limit:e,offset:x*e,carrierId:t,filters:u}),getNextPageParam:(x,T)=>{var I;const m=x.data,c=((I=m==null?void 0:m.metadata)==null?void 0:I.totalCount)??0;return T.length*e<c?T.length:void 0},initialPageParam:0,retry:!1,enabled:n,staleTime:3e4,refetchOnWindowFocus:!1}),_=((i=y.data)==null?void 0:i.pages.flatMap(x=>{var T;return((T=x.data)==null?void 0:T.data)??[]}))??[],N=(g=(o=(l=y.data)==null?void 0:l.pages[0])==null?void 0:o.data)==null?void 0:g.metadata;return{data:_,metadata:N,isLoading:y.isLoading,isFetched:y.isFetched,isFetchingNextPage:y.isFetchingNextPage,hasNextPage:y.hasNextPage,fetchNextPage:y.fetchNextPage,refetch:y.refetch}},Mt=({enabled:e=!0}={})=>{var t,n,r,i;const l=Ye({queryKey:["market-activity-log-filter-options"],queryFn:qe,staleTime:6e4,refetchOnWindowFocus:!1,retry:!1,enabled:e}),o=(t=l.data)==null?void 0:t.data;return{actionTypes:((n=o==null?void 0:o.data)==null?void 0:n.actionTypes)??[],users:((r=o==null?void 0:o.data)==null?void 0:r.users)??[],carriers:((i=o==null?void 0:o.data)==null?void 0:i.carriers)??[],isLoading:l.isLoading,isError:l.isError,isFetched:l.isFetched}},P={action:"action_types",user:"user_ids",carrier:"carrier_ids"};function At(e){if(!(e!=null&&e.length))return[];const t=new Set(e);return je.filter(n=>ce[n].some(r=>t.has(r)))}function Lt(e){const t=[];for(const n of e){const r=ce[n];r&&t.push(...r)}return t}function Ue(e){var t,n;const r={},i=At(e.actionTypes);return i.length&&(r[P.action]=i),(t=e.userIds)!=null&&t.length&&(r[P.user]=[...e.userIds]),(n=e.carrierIds)!=null&&n.length&&(r[P.carrier]=e.carrierIds.map(String)),r}function $t(e){const t=[{columnName:P.action,columnLabel:"Type",datatype:"categorical",supportsMultiple:!0},{columnName:P.user,columnLabel:"User",datatype:"categorical",supportsMultiple:!0}];return e&&t.push({columnName:P.carrier,columnLabel:"Market",datatype:"categorical",supportsMultiple:!0}),t}function Ut(e){const t=Lt(e[P.action]??[]),n=e[P.user]??[],r=e[P.carrier]??[];return{actionTypes:t.length?t:void 0,userIds:n.length?n:void 0,carrierIds:r.length?r.map(Number).filter(Number.isFinite):void 0}}function jt({filters:e,onFiltersChange:t,availableActionTypes:n,availableUsers:r,availableCarriers:i,carrierScopedTo:l}){const o=l===void 0,[g,u]=C(!1),[p,y]=C(()=>Ue(e)),[_,N]=C(P.action),x=ae({}),T=M(()=>$t(o),[o]),I=M(()=>{const d=n?new Set(n):null;return je.filter(f=>!d||ce[f].some($=>d.has($))).map(f=>({value:f,label:zt[f]}))},[n]),m=M(()=>r.map(d=>{var f;return{value:d.id,label:((f=d.name)==null?void 0:f.trim())||d.email||"Unknown user"}}),[r]),c=M(()=>{const d=new Map;for(const f of r)d.set(f.id,f);return d},[r]),h=M(()=>i.map(d=>({value:String(d.id),label:d.name+(d.isActive?"":" (deleted)")})),[i]),w=M(()=>{const d=new Map;for(const f of i)d.set(f.id,f);return d},[i]),k=M(()=>T.map(d=>d.columnName===P.action?{...d,options:I}:d.columnName===P.user?{...d,options:m,renderRow:f=>a(Et,{user:c.get(f.value),fallbackLabel:f.label,isChecked:!1})}:d.columnName===P.carrier?{...d,options:h,renderRow:f=>a(Ot,{carrier:w.get(Number(f.value)),fallbackLabel:f.label,isChecked:!1})}:d),[T,I,m,h,c,w]),F=M(()=>k.find(d=>d.columnName===_),[k,_]),A=Ge(p),Z=M(()=>l===void 0?{}:{carrier_id:l},[l]),B=d=>{var f;if(d){const $=Ue(e);x.current=$,y($),N(((f=k[0])==null?void 0:f.columnName)??P.action)}u(d)},Q=()=>y({}),ee=()=>{y(x.current),u(!1)},K=()=>{t({...e,...Ut(p)}),u(!1)},te=d=>{y(f=>{const{selections:$,firstGeneratedColumn:z}=Ze(f,d);return z&&N(z),$})};return s(re,{open:g,onOpenChange:B,children:[a(ne,{asChild:!0,children:a(U,{variant:"outline",size:"default",className:"font-normal",leftIcon:a(We,{size:15}),"aria-haspopup":"dialog","aria-expanded":g,"data-testid":"mal-filter-button",children:s("span",{className:"inline-flex items-center gap-2",children:["Filter",A>0&&a("span",{className:"inline-flex items-center justify-center min-w-[20px] h-5 px-1.5 rounded-full bg-primary text-white text-[11px] font-semibold tabular-nums",children:A})]})})}),a(ie,{className:"w-[560px] max-w-[calc(100vw-32px)] h-[420px] max-h-[calc(100vh-140px)] p-0 rounded-2xl border border-border-primary shadow-lg overflow-hidden",align:"start",side:"bottom",sideOffset:8,collisionPadding:16,"data-testid":"mal-filter-panel",children:s("div",{className:"dark:bg-neutral-900 flex flex-col h-full bg-white",children:[s("div",{className:"flex flex-1 min-h-0",children:[a("aside",{className:"w-[180px] shrink-0 border-r border-border-primary bg-neutral08 flex flex-col",children:a("div",{className:"flex-1 overflow-y-auto pt-3",children:a(Ve,{columns:k,selections:p,activeColumnName:_,onPick:N})})}),a("section",{className:"dark:bg-neutral-900 flex-1 min-w-0 bg-white",children:F&&a(He,{column:F,selections:p,onChange:y},F.columnName)})]}),s("div",{className:"dark:bg-neutral-900 relative h-[56px] shrink-0 px-4 flex items-center gap-2 border-t border-border-primary bg-white",children:[a(U,{variant:"outline",size:"sm",onClick:Q,leftIcon:a(Je,{size:14}),disabled:A===0,"data-testid":"mal-filter-clear",className:"shrink-0",children:"Clear filters"}),a(Xe,{usecase:"market_activity_log",params:Z,onGenerated:te,className:"flex-1 min-w-0"}),a(U,{variant:"ghost",size:"sm",onClick:ee,"data-testid":"mal-filter-cancel",className:"shrink-0",children:"Cancel"}),a(U,{variant:"primary",size:"sm",onClick:K,"data-testid":"mal-filter-apply",className:"shrink-0",children:s("span",{className:"inline-flex items-center gap-1.5",children:["Apply Filters",A>0&&a("span",{className:"inline-flex items-center justify-center min-w-[22px] h-[22px] px-1.5 rounded-full bg-white dark:bg-neutral-800 text-primary01 text-[11.5px] font-semibold tabular-nums",children:A})]})})]})]})})]})}const je=["market","contact","note","asset"],zt={market:"Market",contact:"Contact",note:"Note",asset:"Asset"},ce={market:["carrier_created","carrier_updated"],contact:["contact_created","contact_updated"],note:["note_created","note_updated"],asset:["asset_uploaded"]};function Dt({filters:e,onFiltersChange:t,searchInput:n,onSearchInputChange:r,availableActionTypes:i,availableUsers:l,availableCarriers:o,carrierScopedTo:g}){const u=p=>{t({...e,...p})};return s("div",{className:"mb-3 flex flex-nowrap items-center gap-2",children:[a("div",{className:"shrink-0",children:a(jt,{filters:e,onFiltersChange:t,availableActionTypes:i,availableUsers:l,availableCarriers:o,carrierScopedTo:g})}),a("div",{className:"min-w-0 flex-1"}),a("div",{className:"h-10 w-56 min-w-0 shrink",children:a(Qe,{placeholder:"Search activity...",value:n,onChange:p=>r(p.target.value),showClear:!0,onClear:()=>r("")})}),a("div",{className:"shrink-0",children:a(Rt,{period:e.period,dateFrom:e.dateFrom,dateTo:e.dateTo,onChange:p=>u(p)})})]})}function Et({user:e,fallbackLabel:t,isChecked:n}){var r;const i=((r=e==null?void 0:e.name)==null?void 0:r.trim())||(e==null?void 0:e.email)||t,l=i.split(" ").map(o=>o[0]).filter(Boolean).join("").slice(0,2).toUpperCase();return s("div",{className:"flex w-full items-center gap-2 min-w-0",children:[s(G,{size:"xs",children:[(e==null?void 0:e.avatar)&&a(se,{src:e.avatar,alt:i}),a(W,{children:l})]}),a("span",{className:"flex-1 truncate text-sm",children:i}),n&&a(le,{className:"h-4 w-4 shrink-0 text-primary"})]})}function Ot({carrier:e,fallbackLabel:t,isChecked:n}){const r=(e==null?void 0:e.name)??t,i=r.split(" ").map(o=>o[0]).filter(Boolean).join("").slice(0,2).toUpperCase(),l=e&&!e.isActive;return s("div",{className:"flex w-full items-center gap-2 min-w-0",children:[s(G,{size:"xs",className:"border border-neutral06",children:[(e==null?void 0:e.logoUrl)&&a(se,{src:e.logoUrl,alt:r}),a(W,{className:"text-[10px]",children:i})]}),a("span",{className:R("flex-1 truncate text-sm",l&&"italic text-tertiary-gray-fg"),children:r}),l&&a("span",{className:"text-[10px] text-tertiary-gray-fg shrink-0",children:"deleted"}),n&&a(le,{className:"h-4 w-4 shrink-0 text-primary"})]})}function Rt({period:e,dateFrom:t,dateTo:n,onChange:r}){const[i,l]=C(!1),[o,g]=C(()=>ue(t,n)),[u,p]=C(e==="custom");Oe.useEffect(()=>{g(ue(t,n)),e==="custom"&&p(!0)},[t,n,e]);const y=Bt(e,t,n),_=!!e,N=c=>{if(c===void 0){r({period:void 0,dateFrom:void 0,dateTo:void 0}),p(!1),l(!1);return}if(c==="custom"){p(!0);return}r({period:c,dateFrom:void 0,dateTo:void 0}),p(!1),l(!1)},x=()=>{const c=o==null?void 0:o.from,h=o==null?void 0:o.to;!c||!h||(r({period:"custom",dateFrom:L(c,"yyyy-MM-dd"),dateTo:L(h,"yyyy-MM-dd")}),l(!1))},T=!!(o!=null&&o.from&&o!=null&&o.to),I=s(pe,{children:[a(de,{label:"Custom\u2026",checked:e==="custom",onSelect:()=>N("custom")}),a(de,{label:"Lifetime",checked:e===void 0,onSelect:()=>N(void 0)}),Ct.filter(c=>c!=="custom").map(c=>a(de,{label:Ae[c],checked:e===c,onSelect:()=>N(c)},c))]}),m=()=>{p(e==="custom"),g(ue(t,n)),l(!1)};return s(re,{open:i,onOpenChange:l,children:[a(ne,{asChild:!0,children:a(U,{variant:"outline",size:"default","aria-haspopup":"dialog","aria-expanded":i,className:R("max-w-[16rem] justify-between font-normal",_&&"border-primary04 bg-primary05 text-primary01"),rightIcon:a(et,{className:"h-3.5 w-3.5 shrink-0 opacity-60","aria-hidden":!0}),"data-testid":"mal-chip-date",children:a("span",{className:"truncate",children:y})})}),a(ie,{className:R("p-0",u?"w-auto":"w-56"),align:"end",sideOffset:4,collisionPadding:16,children:u?s("div",{className:"flex",children:[s("div",{className:"flex flex-col border-r border-neutral06 p-3",children:[a(tt,{mode:"range",selected:o,onSelect:g,classNames:{day_outside:"ui-invisible"},disabled:[{before:wt},{after:new Date}]}),s("div",{className:"mt-2 flex items-center justify-end gap-2 border-t border-neutral06 px-1 pt-2",children:[a(U,{variant:"ghost",size:"sm",onClick:m,children:"Cancel"}),a(U,{variant:"primary",size:"sm",disabled:!T,onClick:x,children:"Apply"})]})]}),s("div",{className:"flex w-56 shrink-0 flex-col p-1",children:[I,a(ze,{})]})]}):s("div",{className:"p-1",children:[I,a(ze,{})]})})]})}function ze(){return s("div",{className:"mt-1 border-t border-neutral06 px-2 pt-2 text-[11px] leading-snug text-tertiary-gray-fg",children:["Activity tracked since ",Tt]})}function de({label:e,checked:t,onSelect:n}){return s("button",{type:"button",onClick:n,className:R("flex w-full items-center justify-between rounded-md px-2 py-1.5 text-left text-sm transition-colors cursor-pointer",t?"bg-primary05 text-primary01":"hover:bg-neutral08 text-foreground"),children:[a("span",{children:e}),t&&a(le,{className:"h-4 w-4 shrink-0 text-primary"})]})}function Bt(e,t,n){if(!e)return"Lifetime";if(e==="custom"){const r=X(t),i=X(n);return r&&i?r.getFullYear()===i.getFullYear()?`${L(r,"MMM d")} \u2013 ${L(i,"MMM d, yyyy")}`:`${L(r,"MMM d, yyyy")} \u2013 ${L(i,"MMM d, yyyy")}`:"Custom"}return Ae[e]}function X(e){if(!e)return;if(/^\d{4}-\d{2}-\d{2}$/.test(e)){const n=at(e);return Number.isNaN(n.getTime())?void 0:n}const t=new Date(e);return Number.isNaN(t.getTime())?void 0:t}function ue(e,t){const n=X(e),r=X(t);if(!(!n&&!r))return{from:n,to:r}}const Kt={carrier_created:lt,carrier_updated:H,contact_created:ut,contact_updated:H,asset_uploaded:st,note_created:dt,note_updated:H},Yt=320;function qt(e){return mt(e)?"Today":pt(e)?"Yesterday":it(e,new Date)?L(e,"MMMM d"):L(e,"MMMM d, yyyy")}function Gt(e){switch(e.actionType){case"carrier_created":return{verb:"added",entity:"a new market",entityIsPii:!1};case"carrier_updated":return{verb:"updated",entity:"market",entityIsPii:!1};case"contact_created":return{verb:"added contact",entity:e.entityName,entityIsPii:!0};case"contact_updated":return{verb:"updated contact",entity:e.entityName,entityIsPii:!0};case"note_created":return e.entityName?{verb:"added note",entity:`"${e.entityName}"`,entityIsPii:!1}:{verb:"added",entity:"a note",entityIsPii:!1};case"note_updated":return e.entityName?{verb:"updated note",entity:`"${e.entityName}"`,entityIsPii:!1}:{verb:"updated",entity:"a note",entityIsPii:!1};case"asset_uploaded":return{verb:"uploaded document",entity:`"${e.entityName}"`,entityIsPii:!1};default:return{verb:e.actionType,entity:e.entityName,entityIsPii:!1}}}function De(e){if(!e)return null;const{newCoveragesCount:t,updatedCoveragesCount:n,newContactsCount:r}=e,i=[];return n>0&&i.push(`Updated ${n} coverages`),t>0&&i.push(`Added ${t} new coverages`),r>0&&i.push(`Added ${r} new ${r===1?"contact":"contacts"}`),i.length===0?null:i.join(" \u2022 ")}const Wt=300,Vt=({carrierId:e,isActive:t=!0})=>{const[n,r]=C(""),[i,l]=C(""),[o,g]=C([]),[u,p]=C([]),[y,_]=C([]),[N,x]=C(void 0),[T,I]=C(void 0),[m,c]=C(void 0);O(()=>{const v=setTimeout(()=>r(i),Wt);return()=>clearTimeout(v)},[i]);const h=M(()=>({search:n||void 0,actionTypes:o.length>0?o:void 0,userIds:u.length>0?u:void 0,carrierIds:y.length>0?y:void 0,period:N,dateFrom:N==="custom"?T:void 0,dateTo:N==="custom"?m:void 0}),[n,o,u,y,N,T,m]),w=kt(h),k=v=>{r(v.search??""),l(v.search??""),g(v.actionTypes??[]),p(v.userIds??[]),_(v.carrierIds??[]),x(v.period),I(v.dateFrom),c(v.dateTo)},{data:F,isLoading:A,isFetched:Z,isFetchingNextPage:B,hasNextPage:Q,fetchNextPage:ee}=St({carrierId:e,enabled:t,filters:h}),{actionTypes:K,users:te,carriers:d}=Mt({enabled:t}),f=rt({hasNextPage:Q,isFetchingNextPage:B,fetchNextPage:ee}),$=M(()=>{const v=[];let S="";for(const D of F){const E=qt(new Date(D.actionTimestamp));E!==S&&(v.push({label:E,entries:[]}),S=E),v[v.length-1].entries.push(D)}return v},[F]),z=s(pe,{children:[t&&a(Ht,{search:n,setSearch:v=>{r(v),l(v)},actionTypes:o,setActionTypes:g,userIds:u,setUserIds:p,carrierIds:y,setCarrierIds:_,carrierSyncEnabled:e===void 0,period:N,setPeriod:x,dateFrom:T,setDateFrom:I,dateTo:m,setDateTo:c}),a(Dt,{filters:h,onFiltersChange:k,searchInput:i,onSearchInputChange:l,availableActionTypes:K.length>0?K:void 0,availableUsers:te,availableCarriers:d,carrierScopedTo:e})]});return A||!Z?s("div",{className:"pt-1 pb-4",children:[z,a("div",{className:"space-y-6",children:Array.from({length:3}).map((v,S)=>s("div",{children:[a(j,{className:"h-3 w-24 mb-3"}),a("div",{className:"space-y-1",children:Array.from({length:3}).map((D,E)=>s("div",{className:"flex gap-3 py-3 px-4",children:[a(j,{className:"h-9 w-9 rounded-full shrink-0"}),s("div",{className:"flex-1 space-y-2",children:[a(j,{className:"h-3.5 w-1/3"}),a(j,{className:"h-4 w-2/3"})]})]},E))})]},S))})]}):F.length===0?s("div",{className:"pt-1 pb-4",children:[z,a("div",{className:"flex items-center justify-center py-20",children:a(nt,{title:w?"No activity matches these filters":"No activity yet",description:w?"No activity matches these filters. Adjust or clear the filters above to see more.":"Actions like adding markets, uploading documents, and updating contacts will appear here."})})]}):s("div",{className:"pt-1 pb-4",children:[z,a("div",{className:"space-y-6",children:$.map(v=>s("div",{children:[a("div",{className:"px-3 pb-2",children:a("span",{className:"text-xs font-semibold text-tertiary-gray-fg uppercase tracking-wider",children:v.label})}),a("div",{className:"rounded-lg border border-neutral06 divide-y divide-neutral06 bg-card",children:v.entries.map((S,D)=>a(Jt,{entry:S,showCarrier:!e},`${S.entityType}-${S.entityId}-${S.actionType}-${D}`))})]},v.label))}),B&&a("div",{className:"mt-4 rounded-lg border border-neutral06 divide-y divide-neutral06 bg-card",children:Array.from({length:3}).map((v,S)=>s("div",{className:"flex gap-3 py-3 px-4",children:[a(j,{className:"h-9 w-9 rounded-full shrink-0"}),s("div",{className:"flex-1 space-y-2",children:[a(j,{className:"h-3.5 w-1/3"}),a(j,{className:"h-4 w-2/3"})]})]},S))}),a("div",{ref:f,"aria-hidden":!0,className:"h-px"})]})};function Ht({search:e,setSearch:t,actionTypes:n,setActionTypes:r,userIds:i,setUserIds:l,carrierIds:o,setCarrierIds:g,carrierSyncEnabled:u,period:p,setPeriod:y,dateFrom:_,setDateFrom:N,dateTo:x,setDateTo:T}){O(()=>{if(typeof window>"u")return;const m=[[b.search,_e(e)],[b.actionTypes,ke(n)],[b.userIds,Fe(i)],...u?[[b.carrierIds,Pe(o)]]:[],[b.period,Se(p)],[b.dateFrom,J(_)],[b.dateTo,J(x)]];if(m.every(([,w])=>w===null))return;const c=new URLSearchParams(window.location.search);let h=!1;for(const[w,k]of m){const F=c.get(w);k===null?F!==null&&(c.delete(w),h=!0):F!==k&&(c.set(w,k),h=!0)}if(h){const w=c.toString();window.history.replaceState(window.history.state,"",`${window.location.pathname}${w?`?${w}`:""}`)}},[]),V({paramKey:b.search,value:e,onChange:t,serialize:_e,parse:gt}),V({paramKey:b.actionTypes,value:n,onChange:r,serialize:ke,parse:vt}),V({paramKey:b.userIds,value:i,onChange:l,serialize:Fe,parse:bt}),V({paramKey:b.carrierIds,value:o,onChange:g,serialize:Pe,parse:Nt,enabled:u});const I=ae(!1);return O(()=>{if(typeof window>"u")return;const m=()=>{const h=new URLSearchParams(window.location.search);I.current=!0,y(xt(h.get(b.period))),N(Me(h.get(b.dateFrom))),T(Me(h.get(b.dateTo))),setTimeout(()=>{I.current=!1},100)},c=new URLSearchParams(window.location.search);return(c.has(b.period)||c.has(b.dateFrom)||c.has(b.dateTo))&&m(),window.addEventListener("popstate",m),window.addEventListener(be,m),()=>{window.removeEventListener("popstate",m),window.removeEventListener(be,m)}},[]),O(()=>{if(typeof window>"u"||I.current)return;const m=new URLSearchParams(window.location.search),c=[[b.period,Se(p)],[b.dateFrom,J(_)],[b.dateTo,J(x)]];let h=!1;for(const[k,F]of c){const A=m.get(k);F===null?A!==null&&(m.delete(k),h=!0):A!==F&&(m.set(k,F),h=!0)}if(!h)return;const w=m.toString();window.history.replaceState(window.history.state,"",`${window.location.pathname}${w?`?${w}`:""}`)},[p,_,x]),O(()=>()=>{if(typeof window>"u")return;const m=new URLSearchParams(window.location.search);let c=!1;for(const h of Object.values(b))m.has(h)&&(m.delete(h),c=!0);if(c){const h=m.toString();window.history.replaceState(window.history.state,"",`${window.location.pathname}${h?`?${h}`:""}`)}},[]),null}function Jt({entry:e,showCarrier:t}){const n=e.userName||e.userEmail||"System",r=n.split(" ").map(y=>y[0]).filter(Boolean).join("").slice(0,2).toUpperCase(),i=new Date(e.actionTimestamp),l=L(i,"h:mm a"),o=i.toLocaleString(),g=De(e.metadata),u=Gt(e),p=e.carrierIsActive===!1;return a("div",{className:"hover:bg-neutral08/40 transition-colors",children:s("div",{className:"flex items-center gap-3 px-4 py-3",children:[a(Xt,{userAvatar:e.userAvatar,displayName:n,initials:r,actionType:e.actionType}),s("div",{className:"flex-1 min-w-0",children:[s("div",{className:"text-sm leading-tight",children:[a("span",{className:"font-medium text-neutral01",children:n}),s("span",{className:"text-tertiary-gray-fg",children:[" ",u.verb," "]}),u.entity&&a("span",{className:"font-medium text-neutral01","data-pii":u.entityIsPii?"true":void 0,children:u.entity})]}),(e.actionType==="asset_uploaded"||e.actionType==="note_created"||e.actionType==="note_updated")&&g&&e.metadata&&a("div",{className:"mt-1.5",children:a(ea,{impact:g,metadata:e.metadata})})]}),s("div",{className:"shrink-0 grid items-center gap-4 border-l border-neutral06 pl-4",style:{width:Yt,gridTemplateColumns:"minmax(0, 1fr) auto auto"},children:[t&&e.carrierName?a(Zt,{carrierId:e.carrierId,carrierName:e.carrierName,carrierLogoUrl:e.carrierLogoUrl,isDeleted:p}):a("span",{"aria-hidden":!0}),a(Ne,{children:s(xe,{children:[a(we,{asChild:!0,children:a("span",{className:"text-xs text-tertiary-gray-fg whitespace-nowrap",children:l})}),a(Te,{children:a("p",{children:o})})]})}),t&&e.carrierName&&!p?a(Ce,{href:`/market/carriers/${e.carrierId}`,className:"text-tertiary-gray-fg hover:text-primary-600",title:`Open ${e.carrierName}`,children:a(ct,{className:"h-4 w-4"})}):a("span",{"aria-hidden":!0,className:"w-4"})]})]})})}function Xt({userAvatar:e,displayName:t,initials:n,actionType:r}){const i=Kt[r]??H;return s("div",{className:"relative shrink-0",children:[s(G,{size:"md",children:[e&&a(se,{src:e,alt:t}),a(W,{children:n})]}),a("span",{className:"absolute -bottom-0.5 -right-0.5 flex h-4 w-4 items-center justify-center rounded-full bg-card border border-neutral06","aria-hidden":!0,children:a(i,{className:"h-2.5 w-2.5 text-neutral02"})})]})}function Ee({carrierName:e,carrierLogoUrl:t}){const[n,r]=C(!1),i=!!t&&!n,l=e.split(" ").map(o=>o[0]).filter(Boolean).join("").slice(0,2).toUpperCase();return s("div",{className:"relative shrink-0",children:[a(G,{size:"xs",className:R("border border-neutral06",{"!bg-transparent":i}),name:e,children:!i&&a(W,{className:"text-[10px]",children:l})}),i&&a("img",{src:t,alt:"",className:"absolute inset-0 w-full h-full object-cover rounded-full",onError:()=>r(!0)})]})}function Zt({carrierId:e,carrierName:t,carrierLogoUrl:n,isDeleted:r}){return r?s("span",{className:"flex items-center gap-2 min-w-0 text-sm text-neutral01",children:[a(Ee,{carrierName:t,carrierLogoUrl:n}),a("span",{className:"truncate",title:t,children:t}),a(Qt,{})]}):s(Ce,{href:`/market/carriers/${e}`,className:"flex items-center gap-2 min-w-0 text-sm font-medium text-neutral01 hover:text-primary-600 transition-colors",title:`Open ${t}`,children:[a(Ee,{carrierName:t,carrierLogoUrl:n}),a("span",{className:"truncate",children:t})]})}function Qt(){return a(Ne,{children:s(xe,{children:[a(we,{asChild:!0,children:s("span",{className:"inline-flex items-center gap-0.5 text-xs text-tertiary-gray-fg italic shrink-0",children:[a(ot,{className:"h-3 w-3"}),"deleted"]})}),a(Te,{children:a("p",{children:"This market has been deleted. The link is unavailable."})})]})})}function ea({impact:e,metadata:t}){const[n,r]=C(!1),i=ae(null),l=()=>{i.current&&(clearTimeout(i.current),i.current=null)},o=()=>{l(),i.current=setTimeout(()=>r(!1),200)},g=t.updatedCoverageNames.length+t.newCoverageNames.length+t.newContactNames.length>0;return s(re,{open:n&&g,onOpenChange:u=>{u||(l(),r(!1))},children:[a(ne,{asChild:!0,children:a("button",{type:"button",className:"inline-flex items-center px-2 py-0.5 text-xs bg-neutral07 border border-neutral06 rounded text-neutral01 hover:bg-neutral06 focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 cursor-default",disabled:!g,onMouseEnter:()=>{l(),g&&r(!0)},onMouseLeave:o,onFocus:()=>{l(),g&&r(!0)},onBlur:o,children:e})}),s(ie,{side:"bottom",align:"start",sideOffset:6,className:"w-[28rem] max-h-80 overflow-y-auto p-3 divide-y divide-neutral06",onMouseEnter:l,onMouseLeave:o,onCloseAutoFocus:u=>u.preventDefault(),onOpenAutoFocus:u=>u.preventDefault(),children:[t.updatedCoverageNames.length>0&&a(me,{label:"Updated",labelClass:"text-blue-700 bg-blue-50 border-blue-100",names:t.updatedCoverageNames}),t.newCoverageNames.length>0&&a(me,{label:"New",labelClass:"text-green-700 bg-green-50 border-green-100",names:t.newCoverageNames}),t.newContactsCount>0&&a(me,{label:"Contacts",labelClass:"text-neutral02 bg-neutral07 border-neutral06",names:t.newContactNames,isPii:!0})]})]})}function me({label:e,labelClass:t,names:n,isPii:r=!1}){return s("div",{className:"flex flex-col gap-2 py-3 first:pt-0 last:pb-0",children:[s("span",{className:`self-start text-xs font-medium px-1.5 py-0.5 rounded-md border ${t}`,children:[e," \xB7 ",n.length]}),a("div",{className:"flex flex-wrap gap-1",children:n.map(i=>a("span",{className:"text-xs px-1.5 py-0.5 rounded-md border border-neutral06 bg-card text-neutral01","data-pii":r?"true":void 0,children:i},i))})]})}export{Vt as ActivityLog,De as buildImpactSummary};
|
package/dist/ada-DnnX8eVy.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dy as c}from"./runtime-Dn4RiA4k.js";function l(e,a){for(var n=0;n<a.length;n++){const r=a[n];if(typeof r!="string"&&!Array.isArray(r)){for(const t in r)if(t!=="default"&&!(t in e)){const o=Object.getOwnPropertyDescriptor(r,t);o&&Object.defineProperty(e,t,o.get?o:{enumerable:!0,get:()=>r[t]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var i,d;function u(){if(d)return i;d=1,i=e,e.displayName="ada",e.aliases=[];function e(a){a.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],"attr-name":/\b'\w+/,keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}return i}var s=u();const b=c(s),p=l({__proto__:null,default:b},[s]);export{p as a};
|
package/dist/agda-B11duiie.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dy as c}from"./runtime-Dn4RiA4k.js";function s(e,o){for(var t=0;t<o.length;t++){const r=o[t];if(typeof r!="string"&&!Array.isArray(r)){for(const n in r)if(n!=="default"&&!(n in e)){const a=Object.getOwnPropertyDescriptor(r,n);a&&Object.defineProperty(e,n,a.get?a:{enumerable:!0,get:()=>r[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var i,u;function p(){if(u)return i;u=1,i=e,e.displayName="agda",e.aliases=[];function e(o){(function(t){t.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(o)}return i}var l=p();const d=c(l),f=s({__proto__:null,default:d},[l]);export{f as a};
|
package/dist/al-CQYsuVVM.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dy as d}from"./runtime-Dn4RiA4k.js";function c(e,o){for(var n=0;n<o.length;n++){const t=o[n];if(typeof t!="string"&&!Array.isArray(t)){for(const r in t)if(r!=="default"&&!(r in e)){const i=Object.getOwnPropertyDescriptor(t,r);i&&Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:()=>t[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var a,s;function m(){if(s)return a;s=1,a=e,e.displayName="al",e.aliases=[];function e(o){o.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}return a}var l=m();const p=d(l),u=c({__proto__:null,default:p},[l]);export{u as a};
|
package/dist/antlr4-4B1Sc4kw.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dy as c}from"./runtime-Dn4RiA4k.js";function p(n,t){for(var r=0;r<t.length;r++){const a=t[r];if(typeof a!="string"&&!Array.isArray(a)){for(const e in a)if(e!=="default"&&!(e in n)){const o=Object.getOwnPropertyDescriptor(a,e);o&&Object.defineProperty(n,e,o.get?o:{enumerable:!0,get:()=>a[e]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var s,i;function u(){if(i)return s;i=1,s=n,n.displayName="antlr4",n.aliases=["g4"];function n(t){t.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},t.languages.g4=t.languages.antlr4}return s}var l=u();const d=c(l),g=p({__proto__:null,default:d},[l]);export{g as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dy as c}from"./runtime-Dn4RiA4k.js";function u(e,i){for(var a=0;a<i.length;a++){const r=i[a];if(typeof r!="string"&&!Array.isArray(r)){for(const t in r)if(t!=="default"&&!(t in e)){const o=Object.getOwnPropertyDescriptor(r,t);o&&Object.defineProperty(e,t,o.get?o:{enumerable:!0,get:()=>r[t]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var n,s;function d(){if(s)return n;s=1,n=e,e.displayName="apacheconf",e.aliases=[];function e(i){i.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}return n}var l=d();const p=c(l),S=u({__proto__:null,default:p},[l]);export{S as a};
|
package/dist/apex-Bw9Gtufo.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dy as b}from"./runtime-Dn4RiA4k.js";import{r as d}from"./sql-aYT6xcy6.js";function p(i,n){for(var r=0;r<n.length;r++){const e=n[r];if(typeof e!="string"&&!Array.isArray(e)){for(const t in e)if(t!=="default"&&!(t in i)){const a=Object.getOwnPropertyDescriptor(e,t);a&&Object.defineProperty(i,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}var l,c;function f(){if(c)return l;c=1;var i=d();l=n,n.displayName="apex",n.aliases=[];function n(r){r.register(i),(function(e){var t=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,a=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!<keyword>))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(/<keyword>/g,function(){return t.source});function o(g){return RegExp(g.replace(/<CLASS-NAME>/g,function(){return a}),"i")}var s={keyword:t,punctuation:/[()\[\]{};,:.<>]/};e.languages.apex={comment:e.languages.clike.comment,string:e.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:e.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:o(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)<CLASS-NAME>/.source),lookbehind:!0,inside:s},{pattern:o(/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:s},{pattern:o(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),inside:s}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:t,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<<?=?|>{1,3}=?/,punctuation:/[()\[\]{};,.]/}})(r)}return l}var u=f();const m=b(u),w=p({__proto__:null,default:m},[u]);export{w as a};
|
package/dist/apl-GPUaXahd.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dy as c}from"./runtime-Dn4RiA4k.js";function d(t,a){for(var n=0;n<a.length;n++){const e=a[n];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const o=Object.getOwnPropertyDescriptor(e,r);o&&Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var i,s;function l(){if(s)return i;s=1,i=t,t.displayName="apl",t.aliases=[];function t(a){a.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}return i}var p=l();const u=c(p),f=d({__proto__:null,default:u},[p]);export{f as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dy as l}from"./runtime-Dn4RiA4k.js";function u(e,n){for(var s=0;s<n.length;s++){const t=n[s];if(typeof t!="string"&&!Array.isArray(t)){for(const r in t)if(r!=="default"&&!(r in e)){const o=Object.getOwnPropertyDescriptor(t,r);o&&Object.defineProperty(e,r,o.get?o:{enumerable:!0,get:()=>t[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var i,a;function d(){if(a)return i;a=1,i=e,e.displayName="applescript",e.aliases=[];function e(n){n.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}return i}var c=d();const f=l(c),m=u({__proto__:null,default:f},[c]);export{m as a};
|
package/dist/aql-B0NbAClI.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dy as O}from"./runtime-Dn4RiA4k.js";function E(e,n){for(var o=0;o<n.length;o++){const r=n[o];if(typeof r!="string"&&!Array.isArray(r)){for(const t in r)if(t!=="default"&&!(t in e)){const a=Object.getOwnPropertyDescriptor(r,t);a&&Object.defineProperty(e,t,a.get?a:{enumerable:!0,get:()=>r[t]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var i,T;function s(){if(T)return i;T=1,i=e,e.displayName="aql",e.aliases=[];function e(n){n.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}return i}var b=s();const l=O(b),d=E({__proto__:null,default:l},[b]);export{d as a};
|