sqlmesh 0.213.1.dev1__py3-none-any.whl → 0.227.2.dev4__py3-none-any.whl
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.
- sqlmesh/__init__.py +12 -2
- sqlmesh/_version.py +2 -2
- sqlmesh/cli/main.py +0 -44
- sqlmesh/cli/project_init.py +11 -2
- sqlmesh/core/_typing.py +1 -0
- sqlmesh/core/audit/definition.py +8 -2
- sqlmesh/core/config/__init__.py +1 -1
- sqlmesh/core/config/connection.py +17 -5
- sqlmesh/core/config/dbt.py +13 -0
- sqlmesh/core/config/janitor.py +12 -0
- sqlmesh/core/config/loader.py +7 -0
- sqlmesh/core/config/model.py +2 -0
- sqlmesh/core/config/root.py +3 -0
- sqlmesh/core/console.py +81 -3
- sqlmesh/core/constants.py +1 -1
- sqlmesh/core/context.py +69 -26
- sqlmesh/core/dialect.py +3 -0
- sqlmesh/core/engine_adapter/_typing.py +2 -0
- sqlmesh/core/engine_adapter/base.py +322 -22
- sqlmesh/core/engine_adapter/base_postgres.py +17 -1
- sqlmesh/core/engine_adapter/bigquery.py +146 -7
- sqlmesh/core/engine_adapter/clickhouse.py +17 -13
- sqlmesh/core/engine_adapter/databricks.py +33 -2
- sqlmesh/core/engine_adapter/fabric.py +10 -29
- sqlmesh/core/engine_adapter/mixins.py +142 -48
- sqlmesh/core/engine_adapter/mssql.py +15 -4
- sqlmesh/core/engine_adapter/mysql.py +2 -2
- sqlmesh/core/engine_adapter/postgres.py +9 -3
- sqlmesh/core/engine_adapter/redshift.py +4 -0
- sqlmesh/core/engine_adapter/risingwave.py +1 -0
- sqlmesh/core/engine_adapter/shared.py +6 -0
- sqlmesh/core/engine_adapter/snowflake.py +82 -11
- sqlmesh/core/engine_adapter/spark.py +14 -10
- sqlmesh/core/engine_adapter/trino.py +4 -2
- sqlmesh/core/environment.py +2 -0
- sqlmesh/core/janitor.py +181 -0
- sqlmesh/core/lineage.py +1 -0
- sqlmesh/core/linter/definition.py +13 -13
- sqlmesh/core/linter/rules/builtin.py +29 -0
- sqlmesh/core/macros.py +35 -13
- sqlmesh/core/model/common.py +2 -0
- sqlmesh/core/model/definition.py +82 -28
- sqlmesh/core/model/kind.py +66 -2
- sqlmesh/core/model/meta.py +108 -4
- sqlmesh/core/node.py +101 -1
- sqlmesh/core/plan/builder.py +18 -10
- sqlmesh/core/plan/common.py +199 -2
- sqlmesh/core/plan/definition.py +25 -6
- sqlmesh/core/plan/evaluator.py +75 -113
- sqlmesh/core/plan/explainer.py +90 -8
- sqlmesh/core/plan/stages.py +42 -21
- sqlmesh/core/renderer.py +78 -32
- sqlmesh/core/scheduler.py +102 -22
- sqlmesh/core/selector.py +137 -9
- sqlmesh/core/signal.py +64 -1
- sqlmesh/core/snapshot/__init__.py +2 -0
- sqlmesh/core/snapshot/definition.py +146 -34
- sqlmesh/core/snapshot/evaluator.py +689 -124
- sqlmesh/core/state_sync/__init__.py +0 -1
- sqlmesh/core/state_sync/base.py +55 -33
- sqlmesh/core/state_sync/cache.py +12 -7
- sqlmesh/core/state_sync/common.py +216 -111
- sqlmesh/core/state_sync/db/environment.py +6 -4
- sqlmesh/core/state_sync/db/facade.py +42 -24
- sqlmesh/core/state_sync/db/interval.py +27 -7
- sqlmesh/core/state_sync/db/migrator.py +34 -16
- sqlmesh/core/state_sync/db/snapshot.py +177 -169
- sqlmesh/core/table_diff.py +2 -2
- sqlmesh/core/test/context.py +2 -0
- sqlmesh/core/test/definition.py +14 -9
- sqlmesh/dbt/adapter.py +22 -16
- sqlmesh/dbt/basemodel.py +75 -56
- sqlmesh/dbt/builtin.py +116 -12
- sqlmesh/dbt/column.py +17 -5
- sqlmesh/dbt/common.py +19 -5
- sqlmesh/dbt/context.py +14 -1
- sqlmesh/dbt/loader.py +61 -9
- sqlmesh/dbt/manifest.py +174 -16
- sqlmesh/dbt/model.py +183 -85
- sqlmesh/dbt/package.py +16 -1
- sqlmesh/dbt/profile.py +3 -3
- sqlmesh/dbt/project.py +12 -7
- sqlmesh/dbt/seed.py +6 -1
- sqlmesh/dbt/source.py +13 -1
- sqlmesh/dbt/target.py +25 -6
- sqlmesh/dbt/test.py +36 -5
- sqlmesh/migrations/v0000_baseline.py +95 -0
- sqlmesh/migrations/v0061_mysql_fix_blob_text_type.py +5 -7
- sqlmesh/migrations/v0062_add_model_gateway.py +5 -1
- sqlmesh/migrations/v0063_change_signals.py +5 -3
- sqlmesh/migrations/v0064_join_when_matched_strings.py +5 -3
- sqlmesh/migrations/v0065_add_model_optimize.py +5 -1
- sqlmesh/migrations/v0066_add_auto_restatements.py +8 -3
- sqlmesh/migrations/v0067_add_tsql_date_full_precision.py +5 -1
- sqlmesh/migrations/v0068_include_unrendered_query_in_metadata_hash.py +5 -1
- sqlmesh/migrations/v0069_update_dev_table_suffix.py +5 -3
- sqlmesh/migrations/v0070_include_grains_in_metadata_hash.py +5 -1
- sqlmesh/migrations/v0071_add_dev_version_to_intervals.py +9 -5
- sqlmesh/migrations/v0072_add_environment_statements.py +5 -3
- sqlmesh/migrations/v0073_remove_symbolic_disable_restatement.py +5 -3
- sqlmesh/migrations/v0074_add_partition_by_time_column_property.py +5 -1
- sqlmesh/migrations/v0075_remove_validate_query.py +5 -3
- sqlmesh/migrations/v0076_add_cron_tz.py +5 -1
- sqlmesh/migrations/v0077_fix_column_type_hash_calculation.py +5 -1
- sqlmesh/migrations/v0078_warn_if_non_migratable_python_env.py +5 -3
- sqlmesh/migrations/v0079_add_gateway_managed_property.py +10 -5
- sqlmesh/migrations/v0080_add_batch_size_to_scd_type_2_models.py +5 -1
- sqlmesh/migrations/v0081_update_partitioned_by.py +5 -3
- sqlmesh/migrations/v0082_warn_if_incorrectly_duplicated_statements.py +5 -3
- sqlmesh/migrations/v0083_use_sql_for_scd_time_data_type_data_hash.py +5 -1
- sqlmesh/migrations/v0084_normalize_quote_when_matched_and_merge_filter.py +5 -1
- sqlmesh/migrations/v0085_deterministic_repr.py +5 -3
- sqlmesh/migrations/v0086_check_deterministic_bug.py +5 -3
- sqlmesh/migrations/v0087_normalize_blueprint_variables.py +5 -3
- sqlmesh/migrations/v0088_warn_about_variable_python_env_diffs.py +5 -3
- sqlmesh/migrations/v0089_add_virtual_environment_mode.py +5 -1
- sqlmesh/migrations/v0090_add_forward_only_column.py +9 -5
- sqlmesh/migrations/v0091_on_additive_change.py +5 -1
- sqlmesh/migrations/v0092_warn_about_dbt_data_type_diff.py +5 -3
- sqlmesh/migrations/v0093_use_raw_sql_in_fingerprint.py +5 -1
- sqlmesh/migrations/v0094_add_dev_version_and_fingerprint_columns.py +123 -0
- sqlmesh/migrations/v0095_warn_about_dbt_raw_sql_diff.py +49 -0
- sqlmesh/migrations/v0096_remove_plan_dags_table.py +13 -0
- sqlmesh/migrations/v0097_add_dbt_name_in_node.py +9 -0
- sqlmesh/migrations/{v0060_move_audits_to_model.py → v0098_add_dbt_node_info_in_node.py} +33 -16
- sqlmesh/migrations/v0099_add_last_altered_to_intervals.py +25 -0
- sqlmesh/migrations/v0100_add_grants_and_grants_target_layer.py +9 -0
- sqlmesh/utils/__init__.py +8 -1
- sqlmesh/utils/cache.py +5 -1
- sqlmesh/utils/connection_pool.py +2 -1
- sqlmesh/utils/dag.py +65 -10
- sqlmesh/utils/date.py +8 -1
- sqlmesh/utils/errors.py +8 -0
- sqlmesh/utils/jinja.py +54 -4
- sqlmesh/utils/pydantic.py +6 -6
- sqlmesh/utils/windows.py +13 -3
- {sqlmesh-0.213.1.dev1.dist-info → sqlmesh-0.227.2.dev4.dist-info}/METADATA +7 -10
- sqlmesh-0.227.2.dev4.dist-info/RECORD +370 -0
- sqlmesh_dbt/cli.py +70 -7
- sqlmesh_dbt/console.py +14 -6
- sqlmesh_dbt/operations.py +103 -24
- sqlmesh_dbt/selectors.py +39 -1
- web/client/dist/assets/{Audits-Ucsx1GzF.js → Audits-CBiYyyx-.js} +1 -1
- web/client/dist/assets/{Banner-BWDzvavM.js → Banner-DSRbUlO5.js} +1 -1
- web/client/dist/assets/{ChevronDownIcon-D2VL13Ah.js → ChevronDownIcon-MK_nrjD_.js} +1 -1
- web/client/dist/assets/{ChevronRightIcon-DWGYbf1l.js → ChevronRightIcon-CLWtT22Q.js} +1 -1
- web/client/dist/assets/{Content-DdHDZM3I.js → Content-BNuGZN5l.js} +1 -1
- web/client/dist/assets/{Content-Bikfy8fh.js → Content-CSHJyW0n.js} +1 -1
- web/client/dist/assets/{Data-CzAJH7rW.js → Data-C1oRDbLx.js} +1 -1
- web/client/dist/assets/{DataCatalog-BJF11g8f.js → DataCatalog-HXyX2-_j.js} +1 -1
- web/client/dist/assets/{Editor-s0SBpV2y.js → Editor-BDyfpUuw.js} +1 -1
- web/client/dist/assets/{Editor-DgLhgKnm.js → Editor-D0jNItwC.js} +1 -1
- web/client/dist/assets/{Errors-D0m0O1d3.js → Errors-BfuFLcPi.js} +1 -1
- web/client/dist/assets/{FileExplorer-CEv0vXkt.js → FileExplorer-BR9IE3he.js} +1 -1
- web/client/dist/assets/{Footer-BwzXn8Ew.js → Footer-CgBEtiAh.js} +1 -1
- web/client/dist/assets/{Header-6heDkEqG.js → Header-DSqR6nSO.js} +1 -1
- web/client/dist/assets/{Input-obuJsD6k.js → Input-B-oZ6fGO.js} +1 -1
- web/client/dist/assets/Lineage-DYQVwDbD.js +1 -0
- web/client/dist/assets/{ListboxShow-HM9_qyrt.js → ListboxShow-BE5-xevs.js} +1 -1
- web/client/dist/assets/{ModelLineage-zWdKo0U2.js → ModelLineage-DkIFAYo4.js} +1 -1
- web/client/dist/assets/{Models-Bcu66SRz.js → Models-D5dWr8RB.js} +1 -1
- web/client/dist/assets/{Page-BWEEQfIt.js → Page-C-XfU5BR.js} +1 -1
- web/client/dist/assets/{Plan-C4gXCqlf.js → Plan-ZEuTINBq.js} +1 -1
- web/client/dist/assets/{PlusCircleIcon-CVDO651q.js → PlusCircleIcon-DVXAHG8_.js} +1 -1
- web/client/dist/assets/{ReportErrors-BT6xFwAr.js → ReportErrors-B7FEPzMB.js} +1 -1
- web/client/dist/assets/{Root-ryJoBK4h.js → Root-8aZyhPxF.js} +1 -1
- web/client/dist/assets/{SearchList-DB04sPb9.js → SearchList-W_iT2G82.js} +1 -1
- web/client/dist/assets/{SelectEnvironment-CUYcXUu6.js → SelectEnvironment-C65jALmO.js} +1 -1
- web/client/dist/assets/{SourceList-Doo_9ZGp.js → SourceList-DSLO6nVJ.js} +1 -1
- web/client/dist/assets/{SourceListItem-D5Mj7Dly.js → SourceListItem-BHt8d9-I.js} +1 -1
- web/client/dist/assets/{SplitPane-qHmkD1qy.js → SplitPane-CViaZmw6.js} +1 -1
- web/client/dist/assets/{Tests-DH1Z74ML.js → Tests-DhaVt5t1.js} +1 -1
- web/client/dist/assets/{Welcome-DqUJUNMF.js → Welcome-DvpjH-_4.js} +1 -1
- web/client/dist/assets/context-BctCsyGb.js +71 -0
- web/client/dist/assets/{context-Dr54UHLi.js → context-DFNeGsFF.js} +1 -1
- web/client/dist/assets/{editor-DYIP1yQ4.js → editor-CcO28cqd.js} +1 -1
- web/client/dist/assets/{file-DarlIDVi.js → file-CvJN3aZO.js} +1 -1
- web/client/dist/assets/{floating-ui.react-dom-BH3TFvkM.js → floating-ui.react-dom-CjE-JNW1.js} +1 -1
- web/client/dist/assets/{help-Bl8wqaQc.js → help-DuPhjipa.js} +1 -1
- web/client/dist/assets/{index-D1sR7wpN.js → index-C-dJH7yZ.js} +1 -1
- web/client/dist/assets/{index-O3mjYpnE.js → index-Dj0i1-CA.js} +2 -2
- web/client/dist/assets/{plan-CehRrJUG.js → plan-BTRSbjKn.js} +1 -1
- web/client/dist/assets/{popover-CqgMRE0G.js → popover-_Sf0yvOI.js} +1 -1
- web/client/dist/assets/{project-6gxepOhm.js → project-BvSOI8MY.js} +1 -1
- web/client/dist/index.html +1 -1
- sqlmesh/integrations/llm.py +0 -56
- sqlmesh/migrations/v0001_init.py +0 -60
- sqlmesh/migrations/v0002_remove_identify.py +0 -5
- sqlmesh/migrations/v0003_move_batch_size.py +0 -34
- sqlmesh/migrations/v0004_environmnent_add_finalized_at.py +0 -23
- sqlmesh/migrations/v0005_create_seed_table.py +0 -24
- sqlmesh/migrations/v0006_change_seed_hash.py +0 -5
- sqlmesh/migrations/v0007_env_table_info_to_kind.py +0 -99
- sqlmesh/migrations/v0008_create_intervals_table.py +0 -38
- sqlmesh/migrations/v0009_remove_pre_post_hooks.py +0 -62
- sqlmesh/migrations/v0010_seed_hash_batch_size.py +0 -5
- sqlmesh/migrations/v0011_add_model_kind_name.py +0 -63
- sqlmesh/migrations/v0012_update_jinja_expressions.py +0 -86
- sqlmesh/migrations/v0013_serde_using_model_dialects.py +0 -87
- sqlmesh/migrations/v0014_fix_dev_intervals.py +0 -14
- sqlmesh/migrations/v0015_environment_add_promoted_snapshot_ids.py +0 -26
- sqlmesh/migrations/v0016_fix_windows_path.py +0 -59
- sqlmesh/migrations/v0017_fix_windows_seed_path.py +0 -55
- sqlmesh/migrations/v0018_rename_snapshot_model_to_node.py +0 -53
- sqlmesh/migrations/v0019_add_env_suffix_target.py +0 -28
- sqlmesh/migrations/v0020_remove_redundant_attributes_from_dbt_models.py +0 -80
- sqlmesh/migrations/v0021_fix_table_properties.py +0 -62
- sqlmesh/migrations/v0022_move_project_to_model.py +0 -54
- sqlmesh/migrations/v0023_fix_added_models_with_forward_only_parents.py +0 -65
- sqlmesh/migrations/v0024_replace_model_kind_name_enum_with_value.py +0 -55
- sqlmesh/migrations/v0025_fix_intervals_and_missing_change_category.py +0 -117
- sqlmesh/migrations/v0026_remove_dialect_from_seed.py +0 -55
- sqlmesh/migrations/v0027_minute_interval_to_five.py +0 -57
- sqlmesh/migrations/v0028_add_plan_dags_table.py +0 -29
- sqlmesh/migrations/v0029_generate_schema_types_using_dialect.py +0 -69
- sqlmesh/migrations/v0030_update_unrestorable_snapshots.py +0 -65
- sqlmesh/migrations/v0031_remove_dbt_target_fields.py +0 -65
- sqlmesh/migrations/v0032_add_sqlmesh_version.py +0 -25
- sqlmesh/migrations/v0033_mysql_fix_blob_text_type.py +0 -45
- sqlmesh/migrations/v0034_add_default_catalog.py +0 -367
- sqlmesh/migrations/v0035_add_catalog_name_override.py +0 -22
- sqlmesh/migrations/v0036_delete_plan_dags_bug_fix.py +0 -14
- sqlmesh/migrations/v0037_remove_dbt_is_incremental_macro.py +0 -61
- sqlmesh/migrations/v0038_add_expiration_ts_to_snapshot.py +0 -73
- sqlmesh/migrations/v0039_include_environment_in_plan_dag_spec.py +0 -68
- sqlmesh/migrations/v0040_add_previous_finalized_snapshots.py +0 -26
- sqlmesh/migrations/v0041_remove_hash_raw_query_attribute.py +0 -59
- sqlmesh/migrations/v0042_trim_indirect_versions.py +0 -66
- sqlmesh/migrations/v0043_fix_remove_obsolete_attributes_in_plan_dags.py +0 -61
- sqlmesh/migrations/v0044_quote_identifiers_in_model_attributes.py +0 -5
- sqlmesh/migrations/v0045_move_gateway_variable.py +0 -70
- sqlmesh/migrations/v0046_add_batch_concurrency.py +0 -8
- sqlmesh/migrations/v0047_change_scd_string_to_column.py +0 -5
- sqlmesh/migrations/v0048_drop_indirect_versions.py +0 -59
- sqlmesh/migrations/v0049_replace_identifier_with_version_in_seeds_table.py +0 -57
- sqlmesh/migrations/v0050_drop_seeds_table.py +0 -11
- sqlmesh/migrations/v0051_rename_column_descriptions.py +0 -65
- sqlmesh/migrations/v0052_add_normalize_name_in_environment_naming_info.py +0 -28
- sqlmesh/migrations/v0053_custom_model_kind_extra_attributes.py +0 -5
- sqlmesh/migrations/v0054_fix_trailing_comments.py +0 -5
- sqlmesh/migrations/v0055_add_updated_ts_unpaused_ts_ttl_ms_unrestorable_to_snapshot.py +0 -132
- sqlmesh/migrations/v0056_restore_table_indexes.py +0 -118
- sqlmesh/migrations/v0057_add_table_format.py +0 -5
- sqlmesh/migrations/v0058_add_requirements.py +0 -26
- sqlmesh/migrations/v0059_add_physical_version.py +0 -5
- sqlmesh-0.213.1.dev1.dist-info/RECORD +0 -421
- web/client/dist/assets/Lineage-D0Hgdz2v.js +0 -1
- web/client/dist/assets/context-DgX0fp2E.js +0 -68
- {sqlmesh-0.213.1.dev1.dist-info → sqlmesh-0.227.2.dev4.dist-info}/WHEEL +0 -0
- {sqlmesh-0.213.1.dev1.dist-info → sqlmesh-0.227.2.dev4.dist-info}/entry_points.txt +0 -0
- {sqlmesh-0.213.1.dev1.dist-info → sqlmesh-0.227.2.dev4.dist-info}/licenses/LICENSE +0 -0
- {sqlmesh-0.213.1.dev1.dist-info → sqlmesh-0.227.2.dev4.dist-info}/top_level.txt +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
var Kt=Object.defineProperty;var Jt=(t,e,r)=>e in t?Kt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var se=(t,e,r)=>Jt(t,typeof e!="symbol"?e+"":e,r);import{r as s,j as o,N as Qt,c as B,b as z,d as yt,a as E,e as q,R as b,f as je,g as oe,h as Ye,k as Ue,B as Be,l as jt,m as ze,n as kt,L as Xt,S as _e,o as en,p as tn,q as nn,s as Ct,t as Ft,v as $,w as rn,i as D,x as an,y as sn,z as on,A as Oe,C as ln,D as cn,F as lt,G as un,H as it,O as dn}from"./index-O3mjYpnE.js";import{R as mn}from"./ReportErrors-BT6xFwAr.js";import{u as j,M as fn,a as Ve,E as ie}from"./plan-CehRrJUG.js";import{E as Z,P as ct,S as pn}from"./SelectEnvironment-CUYcXUu6.js";import{o as ee,i as qe,f as vn,I as Ge,E as Nt,a as hn,n as At,K as ce,y as Fe,l as Rt,b as Pt,u as gn,c as ke,d as We,e as Ee,g as ve,T as Q,p as xn,L as he,h as ut,s as dt,j as wn,k as Y,m as Tt,t as bn,q as Mt,r as mt,v as $t,P as ft,z as Ce,F as Dt,w as ye,x as En,A as yn,H as jn,B as kn,S as Cn,C as Fn,D as Nn,G as An,J as Rn,M as pt,N as Pn,O as Tn,Q as Mn,R as vt,U as ht}from"./popover-CqgMRE0G.js";import{F as $n}from"./ChevronRightIcon-DWGYbf1l.js";import{u as J,M as Ze}from"./project-6gxepOhm.js";import{H as Dn,y as Ln,w as Sn}from"./ListboxShow-HM9_qyrt.js";import{M as gt}from"./file-DarlIDVi.js";import{u as ne,c as On}from"./editor-DYIP1yQ4.js";import{EnumFileExplorerChange as He}from"./context-Dr54UHLi.js";import"./PlusCircleIcon-CVDO651q.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./SplitPane-qHmkD1qy.js";import"./context-DgX0fp2E.js";import"./floating-ui.react-dom-BH3TFvkM.js";import"./help-B59vE3aE.js";import"./SourceList-Doo_9ZGp.js";import"./Input-obuJsD6k.js";import"./index-D1sR7wpN.js";import"./ModelLineage-zWdKo0U2.js";import"./SearchList-DB04sPb9.js";import"./ChevronDownIcon-D2VL13Ah.js";function Zn({title:t,titleId:e,...r},a){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?s.createElement("title",{id:e},t):null,s.createElement("path",{fillRule:"evenodd",d:"M15.312 11.424a5.5 5.5 0 0 1-9.201 2.466l-.312-.311h2.433a.75.75 0 0 0 0-1.5H3.989a.75.75 0 0 0-.75.75v4.242a.75.75 0 0 0 1.5 0v-2.43l.31.31a7 7 0 0 0 11.712-3.138.75.75 0 0 0-1.449-.39Zm1.23-3.723a.75.75 0 0 0 .219-.53V2.929a.75.75 0 0 0-1.5 0V5.36l-.31-.31A7 7 0 0 0 3.239 8.188a.75.75 0 1 0 1.448.389A5.5 5.5 0 0 1 13.89 6.11l.311.31h-2.432a.75.75 0 0 0 0 1.5h4.243a.75.75 0 0 0 .53-.219Z",clipRule:"evenodd"}))}const Hn=s.forwardRef(Zn);function In({title:t,titleId:e,...r},a){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?s.createElement("title",{id:e},t):null,s.createElement("path",{fillRule:"evenodd",d:"M11.78 5.22a.75.75 0 0 1 0 1.06L8.06 10l3.72 3.72a.75.75 0 1 1-1.06 1.06l-4.25-4.25a.75.75 0 0 1 0-1.06l4.25-4.25a.75.75 0 0 1 1.06 0Z",clipRule:"evenodd"}))}const Bn=s.forwardRef(In);function zn({title:t,titleId:e,...r},a){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?s.createElement("title",{id:e},t):null,s.createElement("path",{fillRule:"evenodd",d:"M3 3.5A1.5 1.5 0 0 1 4.5 2h6.879a1.5 1.5 0 0 1 1.06.44l4.122 4.12A1.5 1.5 0 0 1 17 7.622V16.5a1.5 1.5 0 0 1-1.5 1.5h-11A1.5 1.5 0 0 1 3 16.5v-13Zm10.857 5.691a.75.75 0 0 0-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 0 0-1.06 1.061l2.5 2.5a.75.75 0 0 0 1.137-.089l4-5.5Z",clipRule:"evenodd"}))}const _n=s.forwardRef(zn);function Vn({title:t,titleId:e,...r},a){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?s.createElement("title",{id:e},t):null,s.createElement("path",{fillRule:"evenodd",d:"M4.5 2A1.5 1.5 0 0 0 3 3.5v13A1.5 1.5 0 0 0 4.5 18h11a1.5 1.5 0 0 0 1.5-1.5V7.621a1.5 1.5 0 0 0-.44-1.06l-4.12-4.122A1.5 1.5 0 0 0 11.378 2H4.5Zm2.25 8.5a.75.75 0 0 0 0 1.5h6.5a.75.75 0 0 0 0-1.5h-6.5Zm0 3a.75.75 0 0 0 0 1.5h6.5a.75.75 0 0 0 0-1.5h-6.5Z",clipRule:"evenodd"}))}const qn=s.forwardRef(Vn);function Wn({title:t,titleId:e,...r},a){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?s.createElement("title",{id:e},t):null,s.createElement("path",{fillRule:"evenodd",d:"M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495ZM10 5a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 10 5Zm0 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z",clipRule:"evenodd"}))}const Yn=s.forwardRef(Wn);function Un({title:t,titleId:e,...r},a){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?s.createElement("title",{id:e},t):null,s.createElement("path",{d:"M3.75 3A1.75 1.75 0 0 0 2 4.75v3.26a3.235 3.235 0 0 1 1.75-.51h12.5c.644 0 1.245.188 1.75.51V6.75A1.75 1.75 0 0 0 16.25 5h-4.836a.25.25 0 0 1-.177-.073L9.823 3.513A1.75 1.75 0 0 0 8.586 3H3.75ZM3.75 9A1.75 1.75 0 0 0 2 10.75v4.5c0 .966.784 1.75 1.75 1.75h12.5A1.75 1.75 0 0 0 18 15.25v-4.5A1.75 1.75 0 0 0 16.25 9H3.75Z"}))}const Gn=s.forwardRef(Un);function Kn({title:t,titleId:e,...r},a){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?s.createElement("title",{id:e},t):null,s.createElement("path",{fillRule:"evenodd",d:"M2 10a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm6.39-2.908a.75.75 0 0 1 .766.027l3.5 2.25a.75.75 0 0 1 0 1.262l-3.5 2.25A.75.75 0 0 1 8 12.25v-4.5a.75.75 0 0 1 .39-.658Z",clipRule:"evenodd"}))}const Lt=s.forwardRef(Kn);function Jn({title:t,titleId:e,...r},a){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?s.createElement("title",{id:e},t):null,s.createElement("path",{fillRule:"evenodd",d:"M9.661 2.237a.531.531 0 0 1 .678 0 11.947 11.947 0 0 0 7.078 2.749.5.5 0 0 1 .479.425c.069.52.104 1.05.104 1.59 0 5.162-3.26 9.563-7.834 11.256a.48.48 0 0 1-.332 0C5.26 16.564 2 12.163 2 7c0-.538.035-1.069.104-1.589a.5.5 0 0 1 .48-.425 11.947 11.947 0 0 0 7.077-2.75Zm4.196 5.954a.75.75 0 0 0-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 1 0-1.06 1.061l2.5 2.5a.75.75 0 0 0 1.137-.089l4-5.5Z",clipRule:"evenodd"}))}const Qn=s.forwardRef(Jn);function Xn({title:t,titleId:e,...r},a){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?s.createElement("title",{id:e},t):null,s.createElement("path",{d:"M15.98 1.804a1 1 0 0 0-1.96 0l-.24 1.192a1 1 0 0 1-.784.785l-1.192.238a1 1 0 0 0 0 1.962l1.192.238a1 1 0 0 1 .785.785l.238 1.192a1 1 0 0 0 1.962 0l.238-1.192a1 1 0 0 1 .785-.785l1.192-.238a1 1 0 0 0 0-1.962l-1.192-.238a1 1 0 0 1-.785-.785l-.238-1.192ZM6.949 5.684a1 1 0 0 0-1.898 0l-.683 2.051a1 1 0 0 1-.633.633l-2.051.683a1 1 0 0 0 0 1.898l2.051.684a1 1 0 0 1 .633.632l.683 2.051a1 1 0 0 0 1.898 0l.683-2.051a1 1 0 0 1 .633-.633l2.051-.683a1 1 0 0 0 0-1.898l-2.051-.683a1 1 0 0 1-.633-.633L6.95 5.684ZM13.949 13.684a1 1 0 0 0-1.898 0l-.184.551a1 1 0 0 1-.632.633l-.551.183a1 1 0 0 0 0 1.898l.551.183a1 1 0 0 1 .633.633l.183.551a1 1 0 0 0 1.898 0l.184-.551a1 1 0 0 1 .632-.633l.551-.183a1 1 0 0 0 0-1.898l-.551-.184a1 1 0 0 1-.633-.632l-.183-.551Z"}))}const xt=s.forwardRef(Xn);function er({title:t,titleId:e,...r},a){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?s.createElement("title",{id:e},t):null,s.createElement("path",{fillRule:"evenodd",d:"M.99 5.24A2.25 2.25 0 0 1 3.25 3h13.5A2.25 2.25 0 0 1 19 5.25l.01 9.5A2.25 2.25 0 0 1 16.76 17H3.26A2.267 2.267 0 0 1 1 14.74l-.01-9.5Zm8.26 9.52v-.625a.75.75 0 0 0-.75-.75H3.25a.75.75 0 0 0-.75.75v.615c0 .414.336.75.75.75h5.373a.75.75 0 0 0 .627-.74Zm1.5 0a.75.75 0 0 0 .627.74h5.373a.75.75 0 0 0 .75-.75v-.615a.75.75 0 0 0-.75-.75H11.5a.75.75 0 0 0-.75.75v.625Zm6.75-3.63v-.625a.75.75 0 0 0-.75-.75H11.5a.75.75 0 0 0-.75.75v.625c0 .414.336.75.75.75h5.25a.75.75 0 0 0 .75-.75Zm-8.25 0v-.625a.75.75 0 0 0-.75-.75H3.25a.75.75 0 0 0-.75.75v.625c0 .414.336.75.75.75H8.5a.75.75 0 0 0 .75-.75ZM17.5 7.5v-.625a.75.75 0 0 0-.75-.75H11.5a.75.75 0 0 0-.75.75V7.5c0 .414.336.75.75.75h5.25a.75.75 0 0 0 .75-.75Zm-8.25 0v-.625a.75.75 0 0 0-.75-.75H3.25a.75.75 0 0 0-.75.75V7.5c0 .414.336.75.75.75H8.5a.75.75 0 0 0 .75-.75Z",clipRule:"evenodd"}))}const wt=s.forwardRef(er);function tr({title:t,titleId:e,...r},a){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?s.createElement("title",{id:e},t):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.125 2.25h-4.5c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125v-9M10.125 2.25h.375a9 9 0 0 1 9 9v.375M10.125 2.25A3.375 3.375 0 0 1 13.5 5.625v1.5c0 .621.504 1.125 1.125 1.125h1.5a3.375 3.375 0 0 1 3.375 3.375M9 15l2.25 2.25L15 12"}))}const nr=s.forwardRef(tr);function rr({title:t,titleId:e,...r},a){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?s.createElement("title",{id:e},t):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"}))}const ar=s.forwardRef(rr);function sr({title:t,titleId:e,...r},a){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?s.createElement("title",{id:e},t):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"}))}const or=s.forwardRef(sr);function lr({title:t,titleId:e,...r},a){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?s.createElement("title",{id:e},t):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z"}))}const ir=s.forwardRef(lr);function cr({title:t,titleId:e,...r},a){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?s.createElement("title",{id:e},t):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.91 11.672a.375.375 0 0 1 0 .656l-5.603 3.113a.375.375 0 0 1-.557-.328V8.887c0-.286.307-.466.557-.327l5.603 3.112Z"}))}const St=s.forwardRef(cr);function ur({title:t,titleId:e,...r},a){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?s.createElement("title",{id:e},t):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75m-3-7.036A11.959 11.959 0 0 1 3.598 6 11.99 11.99 0 0 0 3 9.749c0 5.592 3.824 10.29 9 11.623 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.571-.598-3.751h-.152c-3.196 0-6.1-1.248-8.25-3.285Z"}))}const dr=s.forwardRef(ur);function W({title:t,to:e,icon:r,iconActive:a,classActive:i="px-2 bg-neutral-10",disabled:l=!1,children:m,before:p,className:h}){return o.jsx(Qt,{title:t,to:e,className:({isActive:f})=>B("flex items-center",l&&"opacity-50 cursor-not-allowed",f&&z(l)&&i,h),style:({isActive:f})=>f||l?{pointerEvents:"none"}:{},children:({isActive:f})=>o.jsxs("span",{className:B("flex items-center",f?"font-bold":"font-normal"),children:[p,f?a:r,m]})})}function mr({className:t}){const{errors:e}=yt(),r=E(l=>l.models),a=E(l=>l.modules),i=Array.from(new Set(r.values())).length;return o.jsxs("div",{className:t,children:[a.hasEditor&&o.jsx(W,{title:"File Explorer",to:q.Editor,className:"px-2 py-1 h-10 hover:bg-neutral-5 dark:hover:bg-neutral-10 text-primary-500 rounded-xl my-1",classActive:"bg-primary-10 text-primary-500",icon:o.jsx(ir,{className:"min-w-6 w-6"}),iconActive:o.jsx(Gn,{className:"min-w-6 w-6"})}),a.hasDataCatalog&&o.jsx(W,{title:"Data Catalog",to:q.DataCatalog,icon:o.jsx(ar,{className:"min-w-6 w-6"}),iconActive:o.jsx(qn,{className:"min-w-6 w-6"}),className:"relative rounded-xl my-1 px-2 py-1 h-10 hover:bg-neutral-5 dark:hover:bg-neutral-10 text-neutral-600 dark:text-neutral-300",children:o.jsx("span",{className:"min-w-[1rem] px-1 h-4 py-0.5 text-center text-[9px] absolute bottom-0 right-0 font-black rounded-full bg-primary-500 text-primary-100",children:i})}),a.hasErrors&&o.jsx(W,{title:"Errors",to:q.Errors,className:B("relative px-2 py-1 rounded-xl my-1 h-10 hover:bg-neutral-5 dark:hover:bg-neutral-10",e.size>0?"text-danger-500":"text-neutral-600"),classActive:"px-2 bg-danger-10 text-danger-500",icon:o.jsx(or,{className:"w-6"}),iconActive:o.jsx(Yn,{className:"w-6"}),disabled:e.size===0,children:e.size>0&&o.jsx("span",{className:"min-w-[1rem] px-1 h-4 py-0.5 text-center text-[9px] absolute bottom-0 right-0 font-black rounded-full bg-danger-500 text-danger-100",children:e.size})}),a.hasPlans&&o.jsx(W,{title:"Plan",to:q.Plan,className:"px-2 py-1 h-10 hover:bg-neutral-5 dark:hover:bg-neutral-10 text-success-500 rounded-xl my-1",classActive:"bg-success-10 text-success-500",icon:o.jsx(St,{className:"w-6"}),iconActive:o.jsx(Lt,{className:"w-6"})}),a.hasTests&&o.jsx(W,{title:"Tests",to:q.Tests,icon:o.jsx(nr,{className:"w-6"}),iconActive:o.jsx(_n,{className:"w-6"}),className:"rounded-xl my-1 px-2 py-1 h-10 hover:bg-neutral-5 dark:hover:bg-neutral-10"}),a.hasAudits&&o.jsx(W,{title:"Audits",to:q.Audits,icon:o.jsx(dr,{className:"w-6"}),iconActive:o.jsx(Qn,{className:"w-6"}),className:"rounded-xl my-1 px-2 py-1 h-10 hover:bg-neutral-5 dark:hover:bg-neutral-10"}),a.hasData&&o.jsx(W,{title:"Data",to:q.Data,icon:o.jsx(wt,{className:"w-6"}),iconActive:o.jsx(wt,{className:"w-6"}),className:"rounded-xl my-1 px-2 py-1 h-10 hover:bg-neutral-5 dark:hover:bg-neutral-10 text-neutral-500 dark:text-neutral-300"}),a.hasLineage&&o.jsx(W,{title:"Lineage",to:q.Lineage,icon:o.jsx(xt,{className:"w-6"}),iconActive:o.jsx(xt,{className:"w-6"}),className:"rounded-xl my-1 px-2 py-1 h-10 hover:bg-neutral-5 dark:hover:bg-neutral-10 text-neutral-500 dark:text-neutral-300"})]})}function Ke(t,e){let r=s.useRef([]),a=ee(t);s.useEffect(()=>{let i=[...r.current];for(let[l,m]of e.entries())if(r.current[l]!==m){let p=a(e,i);return r.current=e,p}},[a,...e])}function fr(t){function e(){document.readyState!=="loading"&&(t(),document.removeEventListener("DOMContentLoaded",e))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",e),e())}let X=[];fr(()=>{function t(e){if(!qe(e.target)||e.target===document.body||X[0]===e.target)return;let r=e.target;r=r.closest(vn),X.unshift(r??e.target),X=X.filter(a=>a!=null&&a.isConnected),X.splice(10)}window.addEventListener("click",t,{capture:!0}),window.addEventListener("mousedown",t,{capture:!0}),window.addEventListener("focus",t,{capture:!0}),document.body.addEventListener("click",t,{capture:!0}),document.body.addEventListener("mousedown",t,{capture:!0}),document.body.addEventListener("focus",t,{capture:!0})});function pr(t,e=typeof document<"u"?document.defaultView:null,r){let a=Ge(t,"escape");Nt(e,"keydown",i=>{a&&(i.defaultPrevented||i.key===hn.Escape&&r(i))})}function vr(){var t;let[e]=s.useState(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[r,a]=s.useState((t=e==null?void 0:e.matches)!=null?t:!1);return At(()=>{if(!e)return;function i(l){a(l.matches)}return e.addEventListener("change",i),()=>e.removeEventListener("change",i)},[e]),r}function Ot(t){if(!t)return new Set;if(typeof t=="function")return new Set(t());let e=new Set;for(let r of t.current)bn(r.current)&&e.add(r.current);return e}let hr="div";var re=(t=>(t[t.None=0]="None",t[t.InitialFocus=1]="InitialFocus",t[t.TabLock=2]="TabLock",t[t.FocusLock=4]="FocusLock",t[t.RestoreFocus=8]="RestoreFocus",t[t.AutoFocus=16]="AutoFocus",t))(re||{});function gr(t,e){let r=s.useRef(null),a=Fe(r,e),{initialFocus:i,initialFocusFallback:l,containers:m,features:p=15,...h}=t;Rt()||(p=0);let f=Pt(r);Er(p,{ownerDocument:f});let w=yr(p,{ownerDocument:f,container:r,initialFocus:i,initialFocusFallback:l});jr(p,{ownerDocument:f,container:r,containers:m,previousActiveElement:w});let S=gn(),H=ee(c=>{if(!ke(r.current))return;let T=r.current;(A=>A())(()=>{We(S.current,{[Ee.Forwards]:()=>{ve(T,Q.First,{skipElements:[c.relatedTarget,l]})},[Ee.Backwards]:()=>{ve(T,Q.Last,{skipElements:[c.relatedTarget,l]})}})})}),N=Ge(!!(p&2),"focus-trap#tab-lock"),k=xn(),I=s.useRef(!1),v={ref:a,onKeyDown(c){c.key=="Tab"&&(I.current=!0,k.requestAnimationFrame(()=>{I.current=!1}))},onBlur(c){if(!(p&4))return;let T=Ot(m);ke(r.current)&&T.add(r.current);let A=c.relatedTarget;qe(A)&&A.dataset.headlessuiFocusGuard!=="true"&&(Zt(T,A)||(I.current?ve(r.current,We(S.current,{[Ee.Forwards]:()=>Q.Next,[Ee.Backwards]:()=>Q.Previous})|Q.WrapAround,{relativeTo:c.target}):qe(c.target)&&Y(c.target)))}},C=he();return b.createElement(b.Fragment,null,N&&b.createElement(ut,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:H,features:dt.Focusable}),C({ourProps:v,theirProps:h,defaultTag:hr,name:"FocusTrap"}),N&&b.createElement(ut,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:H,features:dt.Focusable}))}let xr=ce(gr),wr=Object.assign(xr,{features:re});function br(t=!0){let e=s.useRef(X.slice());return Ke(([r],[a])=>{a===!0&&r===!1&&Mt(()=>{e.current.splice(0)}),a===!1&&r===!0&&(e.current=X.slice())},[t,X,e]),ee(()=>{var r;return(r=e.current.find(a=>a!=null&&a.isConnected))!=null?r:null})}function Er(t,{ownerDocument:e}){let r=!!(t&8),a=br(r);Ke(()=>{r||(e==null?void 0:e.activeElement)===(e==null?void 0:e.body)&&Y(a())},[r]),wn(()=>{r&&Y(a())})}function yr(t,{ownerDocument:e,container:r,initialFocus:a,initialFocusFallback:i}){let l=s.useRef(null),m=Ge(!!(t&1),"focus-trap#initial-focus"),p=Tt();return Ke(()=>{if(t===0)return;if(!m){i!=null&&i.current&&Y(i.current);return}let h=r.current;h&&Mt(()=>{if(!p.current)return;let f=e==null?void 0:e.activeElement;if(a!=null&&a.current){if((a==null?void 0:a.current)===f){l.current=f;return}}else if(h.contains(f)){l.current=f;return}if(a!=null&&a.current)Y(a.current);else{if(t&16){if(ve(h,Q.First|Q.AutoFocus)!==mt.Error)return}else if(ve(h,Q.First)!==mt.Error)return;if(i!=null&&i.current&&(Y(i.current),(e==null?void 0:e.activeElement)===i.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}l.current=e==null?void 0:e.activeElement})},[i,m,t]),l}function jr(t,{ownerDocument:e,container:r,containers:a,previousActiveElement:i}){let l=Tt(),m=!!(t&4);Nt(e==null?void 0:e.defaultView,"focus",p=>{if(!m||!l.current)return;let h=Ot(a);ke(r.current)&&h.add(r.current);let f=i.current;if(!f)return;let w=p.target;ke(w)?Zt(h,w)?(i.current=w,Y(w)):(p.preventDefault(),p.stopPropagation(),Y(f)):Y(i.current)},!0)}function Zt(t,e){for(let r of t)if(r.contains(e))return!0;return!1}var kr=(t=>(t[t.Open=0]="Open",t[t.Closed=1]="Closed",t))(kr||{}),Cr=(t=>(t[t.SetTitleId=0]="SetTitleId",t))(Cr||{});let Fr={0(t,e){return t.titleId===e.id?t:{...t,titleId:e.id}}},Je=s.createContext(null);Je.displayName="DialogContext";function Ne(t){let e=s.useContext(Je);if(e===null){let r=new Error(`<${t} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Ne),r}return e}function Nr(t,e){return We(e.type,Fr,t,e)}let bt=ce(function(t,e){let r=s.useId(),{id:a=`headlessui-dialog-${r}`,open:i,onClose:l,initialFocus:m,role:p="dialog",autoFocus:h=!0,__demoMode:f=!1,unmount:w=!1,...S}=t,H=s.useRef(!1);p=function(){return p==="dialog"||p==="alertdialog"?p:(H.current||(H.current=!0,console.warn(`Invalid role [${p}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let N=$t();i===void 0&&N!==null&&(i=(N&ye.Open)===ye.Open);let k=s.useRef(null),I=Fe(k,e),v=Pt(k),C=i?0:1,[c,T]=s.useReducer(Nr,{titleId:null,descriptionId:null,panelRef:s.createRef()}),A=ee(()=>l(!1)),ge=ee(y=>T({type:0,id:y})),U=Rt()?C===0:!1,[Ae,G]=En(),Re={get current(){var y;return(y=c.panelRef.current)!=null?y:k.current}},ue=yn(),{resolveContainers:de}=jn({mainTreeNode:ue,portals:Ae,defaultContainers:[Re]}),me=N!==null?(N&ye.Closing)===ye.Closing:!1;Ln(f||me?!1:U,{allowed:ee(()=>{var y,be;return[(be=(y=k.current)==null?void 0:y.closest("[data-headlessui-portal]"))!=null?be:null]}),disallowed:ee(()=>{var y;return[(y=ue==null?void 0:ue.closest("body > *:not(#headlessui-portal-root)"))!=null?y:null]})});let _=kn.get(null);At(()=>{if(U)return _.actions.push(a),()=>_.actions.pop(a)},[_,a,U]);let xe=Cn(_,s.useCallback(y=>_.selectors.isTop(y,a),[_,a]));Fn(xe,de,y=>{y.preventDefault(),A()}),pr(xe,v==null?void 0:v.defaultView,y=>{y.preventDefault(),y.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),A()}),Nn(f||me?!1:U,v,de),An(U,k,A);let[Pe,we]=Sn(),Te=s.useMemo(()=>[{dialogState:C,close:A,setTitleId:ge,unmount:w},c],[C,c,A,ge,w]),fe=s.useMemo(()=>({open:C===0}),[C]),Me={ref:I,id:a,role:p,tabIndex:-1,"aria-modal":f?void 0:C===0?!0:void 0,"aria-labelledby":c.titleId,"aria-describedby":Pe,unmount:w},$e=!vr(),te=re.None;U&&!f&&(te|=re.RestoreFocus,te|=re.TabLock,h&&(te|=re.AutoFocus),$e&&(te|=re.InitialFocus));let De=he();return b.createElement(Rn,null,b.createElement(pt,{force:!0},b.createElement(Pn,null,b.createElement(Je.Provider,{value:Te},b.createElement(Tn,{target:k},b.createElement(pt,{force:!1},b.createElement(we,{slot:fe},b.createElement(G,null,b.createElement(wr,{initialFocus:m,initialFocusFallback:k,containers:de,features:te},b.createElement(Mn,{value:A},De({ourProps:Me,theirProps:S,slot:fe,defaultTag:Ar,features:Rr,visible:C===0,name:"Dialog"})))))))))))}),Ar="div",Rr=vt.RenderStrategy|vt.Static;function Pr(t,e){let{transition:r=!1,open:a,...i}=t,l=$t(),m=t.hasOwnProperty("open")||l!==null,p=t.hasOwnProperty("onClose");if(!m&&!p)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!m)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!p)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!l&&typeof t.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${t.open}`);if(typeof t.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${t.onClose}`);return(a!==void 0||r)&&!i.static?b.createElement(ft,null,b.createElement(Ce,{show:a,transition:r,unmount:i.unmount},b.createElement(bt,{ref:e,...i}))):b.createElement(ft,null,b.createElement(bt,{ref:e,open:a,...i}))}let Tr="div";function Mr(t,e){let r=s.useId(),{id:a=`headlessui-dialog-panel-${r}`,transition:i=!1,...l}=t,[{dialogState:m,unmount:p},h]=Ne("Dialog.Panel"),f=Fe(e,h.panelRef),w=s.useMemo(()=>({open:m===0}),[m]),S=ee(v=>{v.stopPropagation()}),H={ref:f,id:a,onClick:S},N=i?Dt:s.Fragment,k=i?{unmount:p}:{},I=he();return b.createElement(N,{...k},I({ourProps:H,theirProps:l,slot:w,defaultTag:Tr,name:"Dialog.Panel"}))}let $r="div";function Dr(t,e){let{transition:r=!1,...a}=t,[{dialogState:i,unmount:l}]=Ne("Dialog.Backdrop"),m=s.useMemo(()=>({open:i===0}),[i]),p={ref:e,"aria-hidden":!0},h=r?Dt:s.Fragment,f=r?{unmount:l}:{},w=he();return b.createElement(h,{...f},w({ourProps:p,theirProps:a,slot:m,defaultTag:$r,name:"Dialog.Backdrop"}))}let Lr="h2";function Sr(t,e){let r=s.useId(),{id:a=`headlessui-dialog-title-${r}`,...i}=t,[{dialogState:l,setTitleId:m}]=Ne("Dialog.Title"),p=Fe(e);s.useEffect(()=>(m(a),()=>m(null)),[a,m]);let h=s.useMemo(()=>({open:l===0}),[l]),f={ref:p,id:a};return he()({ourProps:f,theirProps:i,slot:h,defaultTag:Lr,name:"Dialog.Title"})}let Or=ce(Pr),Zr=ce(Mr);ce(Dr);let Hr=ce(Sr),Ht=Object.assign(Or,{Panel:Zr,Title:Hr,Description:Dn});function le({headline:t,type:e,changes:r,className:a}){const[i,l]=s.useState(!1);return o.jsx(ht,{onMouseEnter:()=>{l(!0)},onMouseLeave:()=>{l(!1)},className:"relative flex",children:()=>o.jsxs(o.Fragment,{children:[o.jsx("span",{className:B("transition-all flex min-w-[1rem] h-4 text-center mx-0.5 px-1 rounded-full text-[10px] font-black text-neutral-100 cursor-default border border-inherit",e===Z.Add&&"bg-success-500 border-success-500",e===Z.Remove&&"bg-danger-500 border-danger-500",e===Z.Direct&&"bg-secondary-500 border-secondary-500",e===Z.Indirect&&"bg-warning-500 border-warning-500",e===Z.Metadata&&"bg-neutral-400 border-neutral-400",e===Z.Default&&"bg-neutral-600 border-neutral-600",a),children:r.length}),o.jsx(Ce,{show:i,as:s.Fragment,enter:"transition ease-out duration-200",enterFrom:"opacity-0 translate-y-1",enterTo:"opacity-100 translate-y-0",leave:"transition ease-in duration-150",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 translate-y-1",children:o.jsx(ht.Panel,{className:"absolute top-6 right-0 z-10 transform flex p-2 bg-theme-lighter shadow-xl focus:ring-2 ring-opacity-5 rounded-lg ",children:o.jsx(ct,{headline:t,type:e,className:"w-full h-full max-w-[50vw] max-h-[40vh] overflow-hidden overflow-y-auto hover:scrollbar scrollbar--vertical",children:o.jsx(ct.Default,{type:e,changes:r})})})})]})})}function Ir(){const t=j(i=>i.planOverview),[e,r]=s.useState(t);return s.useEffect(()=>{z(t.isEmpty)&&t.isFinished&&r(new fn(t))},[t]),(z(t.isLatest)||t.isFetching)&&e.hasUpdates?o.jsxs("span",{className:"flex group items-center bg-neutral-5 dark:bg-neutral-20 px-1 py-1 rounded-full",children:[(je(e.hasChanges)||je(e.hasBackfills))&&o.jsx(Et,{className:"mr-2",children:"Changes"}),oe(e.added)&&o.jsx(le,{headline:"Added",type:Z.Add,changes:e.added,className:"-mr-2 group-hover:mr-0 z-[5]"}),oe(e.direct)&&o.jsx(le,{headline:"Directly Modified",type:Z.Direct,changes:e.direct,className:"-mr-2 group-hover:mr-0 z-[4]"}),oe(e.indirect)&&o.jsx(le,{headline:"Indirectly Modified",type:Z.Indirect,changes:e.indirect,className:"-mr-2 group-hover:mr-0 z-[3]"}),oe(e.metadata)&&o.jsx(le,{headline:"Metadata",type:Z.Metadata,changes:e.metadata,className:"-mr-2 group-hover:mr-0 z-[2]"}),oe(e.removed)&&o.jsx(le,{headline:"Removed",type:Z.Remove,changes:e.removed,className:"-mr-2 group-hover:mr-0 z-[1]"}),oe(e.backfills)?o.jsx(le,{headline:"Backfills",type:Z.Default,changes:e.backfills,className:"ml-4 group-hover:ml-2 z-[6]"}):o.jsx("div",{className:"ml-2 group-hover:ml-2 z-[6]"})]}):o.jsx(Et,{className:"pr-2 pl-0.5 py-1 rounded-full bg-neutral-5 dark:bg-neutral-20 text-neutral-500 dark:text-neutral-300",children:"No Changes"})}function Et({className:t,children:e}){const r=E(h=>h.environment),a=E(h=>h.addRemoteEnvironments),i=j(h=>h.planAction),{refetch:l}=Ye(),{refetch:m}=Ue(r.name,{planOptions:{skip_tests:!0,include_unmodified:!0}});function p(h){const{environments:f,default_target_environment:w,pinned_environments:S}=h??{};kt(f)&&a(Object.values(f),w,S)}return o.jsxs("p",{className:B("flex items-center text-xs text-neutral-600 dark:text-neutral-300 font-bold text-center whitespace-nowrap",t),children:[o.jsx(Be,{className:"w-5 h-5 !p-0 !m-0 !ml-0.5 !mr-1 border-none !rounded-full bg-neutral-10 dark:bg-neutral-20",variant:ze.Info,size:jt.sm,disabled:i.isProcessing,onClick:h=>{h.stopPropagation(),l().then(({data:f})=>{m(),p(f)})},children:o.jsx(Hn,{className:"text-neutral-500 dark:text-neutral-300 w-4 h-4"})}),e]})}function It({children:t}){return o.jsxs(Xt,{className:"inline-block",children:[o.jsx(_e,{className:"w-3 h-3 border border-neutral-10 mr-2"}),o.jsx("span",{className:"inline-block text-xs whitespace-nowrap",children:t})]})}let Ie;function Br(){const t=E(c=>c.modules),e=E(c=>c.environment),r=E(c=>c.models),a=j(c=>c.planAction),i=j(c=>c.planApply),l=j(c=>c.planOverview),m=j(c=>c.planCancel),p=j(c=>c.setPlanApply),h=j(c=>c.setPlanOverview),f=j(c=>c.setPlanCancel),w=j(c=>c.setPlanAction),S=j(c=>c.resetPlanTrackers),H=j(c=>c.clearPlanApply),{isFetching:N}=en(e.name),{isFetching:k}=tn(),{isFetching:I}=Ye(),{refetch:v,isFetching:C}=Ue(e.name,{planOptions:{skip_tests:!0,include_unmodified:!0}});return s.useEffect(()=>{r.size>0&&z(a.isProcessing)&&z(a.isRunningTask)&&(S(),H(),v())},[r,e]),s.useEffect(()=>{C&&(l.isFetching=!0,h(l)),N&&(i.isFetching=!0,p(i)),k&&(m.isFetching=!0,f(m))},[C,N,k]),s.useEffect(()=>{clearTimeout(Ie);const c=Ve.getPlanAction({planOverview:l,planApply:i,planCancel:m});c===ie.Done&&a.isRunningTask||c===a.value||(Ie=setTimeout(()=>{w(new Ve({value:c})),Ie=void 0},nn([ie.Running,ie.RunningTask,ie.Cancelling,ie.Applying],c)?0:500))},[l,i,m]),o.jsx("div",{className:"min-h-8 max-h-8 flex w-full items-center justify-end text-neutral-500",children:I?o.jsx(It,{children:"Loading Environments..."}):o.jsxs(o.Fragment,{children:[z(t.hasOnlyPlans)&&z(t.hasOnlyPlansAndErrors)&&o.jsx(W,{title:a.isProcessing?a.displayStatus(l):"Plan",to:q.Plan,icon:a.isProcessing?o.jsx(_e,{variant:ze.Success,className:"w-3 py-1"}):o.jsx(St,{className:B("w-5",l.isFailed?"text-danger-500 dark:text-danger-100":"text-success-100")}),iconActive:a.isProcessing?o.jsx(_e,{variant:ze.Success,className:"w-3 py-1"}):o.jsx(Lt,{className:B("w-5",l.isFailed?"text-danger-500 dark:text-danger-100":"text-success-100")}),before:o.jsx("p",{className:B("block mx-1 text-xs font-bold whitespace-nowrap",l.isFailed?"text-danger-500 dark:text-danger-100":"text-success-100"),children:a.isProcessing?a.displayStatus(l):"Plan"}),className:B("px-2 rounded-full py-0.5 mr-1",l.isFailed?"bg-danger-10 dark:bg-danger-500":"bg-success-500"),classActive:B(l.isFailed?"bg-danger-10 dark:bg-danger-500":"bg-success-500")}),o.jsx("div",{className:"flex justify-center items-center min-w-[6rem] max-w-full",children:o.jsx(pn,{className:"border-none mx-2 w-full",size:jt.sm,showAddEnvironment:!0,disabled:C||a.isProcessing||e.isInitialProd})}),o.jsx(Ir,{})]})})}function zr(){const t=Ct();return o.jsxs("div",{className:"flex",children:[o.jsx("button",{onClick:()=>t(-1),className:"inline-block text-neutral-700 dark:text-neutral-300 text-xs hover:bg-neutral-5 dark:hover:bg-neutral-10 px-1 py-1 rounded-full",children:o.jsx(Bn,{className:"min-w-4 h-4"})}),o.jsx("button",{onClick:()=>t(1),className:"inline-block text-neutral-700 dark:text-neutral-300 text-xs hover:bg-neutral-5 dark:hover:bg-neutral-10 px-1 py-1 rounded-full",children:o.jsx($n,{className:"min-w-4 h-4"})})]})}function _r(){const t=E(r=>r.modules),{isFetching:e}=Ft();return o.jsxs("div",{className:B("relative min-w-[10rem] px-2 min-h-[2rem] max-h-[2rem] w-full flex items-center",t.showHistoryNavigation?"justify-between":"justify-end",e&&"overflow-hidden"),children:[t.showHistoryNavigation&&o.jsx(zr,{}),e&&o.jsx("div",{className:"absolute w-full h-full flex justify-center items-center z-10 bg-transparent-20 backdrop-blur-lg",children:o.jsx(It,{children:"Loading Models..."})}),t.hasPlans&&o.jsx(Br,{}),t.hasErrors&&o.jsx(mn,{})]})}function Vr({show:t,children:e,afterLeave:r,onClose:a=()=>{}}){return o.jsx(Ce,{appear:!0,show:t,as:s.Fragment,afterLeave:r,children:o.jsxs(Ht,{as:"div",className:"relative z-50",onClose:a,children:[o.jsx("div",{className:"fixed inset-0 bg-overlay opacity-90"}),o.jsx("div",{className:"fixed inset-0 overflow-y-auto",children:o.jsx("div",{className:"flex min-h-full items-center justify-center p-4 text-center",children:o.jsx(Ce.Child,{as:s.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:e})})})]})})}function L({show:t,children:e,onClose:r,afterLeave:a}){return o.jsx(Vr,{show:t,onClose:r,afterLeave:a,children:o.jsx(Ht.Panel,{className:"min-w-[20rem] max-w-[50rem] transform rounded-xl bg-theme text-left align-middle shadow-xl transition-all overflow-hidden",children:e})})}function qr({children:t}){return o.jsx("div",{className:"py-4 px-5 m-2",children:t})}function Wr({children:t}){return o.jsx("h2",{className:"font-bold text-xl mb-2",children:t})}function Yr({children:t}){return o.jsx("h4",{className:"font-bold",children:t})}function Ur({children:t}){return o.jsx("p",{className:"text-sm",children:t})}function Gr({children:t}){return o.jsx("div",{className:"flex justify-end items-center py-3 px-3",children:t})}function Kr({details:t}){return o.jsx("ul",{className:"my-2 p-4 bg-warning-10 rounded-md max-h-[20vh] overflow-y-auto hover:scrollbar scrollbar--vertical",children:t.map(e=>o.jsx("li",{className:"text-sm",children:e},e))})}L.Headline=Wr;L.Tagline=Yr;L.Description=Ur;L.Actions=Gr;L.Main=qr;L.Details=Kr;const Jr=2e4,Qr=3e3;class Xr{constructor(e,r){se(this,"channels",new Map);se(this,"eventSource");se(this,"timerId");se(this,"source");se(this,"delay",Jr);this.source=e,this.delay=r??this.delay,this.setEventSource()}listen(e){e.addEventListener("error",r=>{this.reconnect(Qr)}),e.addEventListener("ping",r=>{this.reconnect(this.delay)})}cleanup(){var e;this.channels.forEach((r,a)=>{var i;D(r)&&((i=this.eventSource)==null||i.removeEventListener(a,r))}),(e=this.eventSource)==null||e.close(),this.eventSource=void 0}resubscribe(){this.channels.forEach((e,r)=>{var a;D(e)&&((a=this.eventSource)==null||a.addEventListener(r,e))})}reconnect(e){clearTimeout(this.timerId),this.timerId=setTimeout(()=>{console.log(`Reconnecting Event Source ${this.source}`),this.cleanup(),this.setEventSource(),this.resubscribe()},e)}getEventSource(){return new EventSource(this.source,{withCredentials:!0})}setEventSource(){this.eventSource=this.getEventSource(),this.listen(this.eventSource)}addChannel(e,r){var i;const a=this.getChannelHandler(e,r);(i=this.eventSource)==null||i.addEventListener(e,a),this.channels.set(e,a)}removeChannel(e){var a;const r=this.getChannel(e);D(r)&&((a=this.eventSource)==null||a.removeEventListener(e,r),this.channels.delete(e))}hasChannel(e){return D(this.getChannel(e))}getChannel(e){return this.channels.get(e)}getChannelHandler(e,r){return a=>{if(this.reconnect(this.delay),!($(e)||$(r)||$(a.data)))try{r(JSON.parse(a.data))}catch(i){console.warn(i)}}}}let pe;function ea(){return $(pe)&&(pe=new Xr(rn("/api/events"))),(t,e)=>({subscribe(){D(t)&&D(e)&&z(pe.hasChannel(t))&&pe.addChannel(t,e)},unsubscribe(){pe.removeChannel(t)}})}function Ca({content:t}){const e=an(),r=Ct(),{removeError:a,addError:i}=yt(),l=E(n=>n.modules),m=E(n=>n.environment),p=E(n=>n.environments),h=E(n=>n.showConfirmation),f=E(n=>n.confirmations),w=E(n=>n.setShowConfirmation),S=E(n=>n.removeConfirmation),H=E(n=>n.setModels),N=E(n=>n.addRemoteEnvironments),k=E(n=>n.addLocalEnvironment),I=E(n=>n.setEnvironment);let v;z(l.hasOnlyDataCatalog)&&(v=ea());const C=j(n=>n.planApply),c=j(n=>n.planOverview),T=j(n=>n.planCancel),A=j(n=>n.setPlanApply),ge=j(n=>n.setPlanOverview),U=j(n=>n.setPlanCancel),Ae=j(n=>n.setPlanAction),G=J(n=>n.files),Re=J(n=>n.selectedFile),ue=J(n=>n.setProject),de=J(n=>n.setFiles),me=J(n=>n.refreshFiles),_=J(n=>n.findArtifactByPath),xe=J(n=>n.setTests),Pe=J(n=>n.setActiveRange),we=ne(n=>n.storedTabs),Te=ne(n=>n.storedTabId),fe=ne(n=>n.selectTab),Me=ne(n=>n.createTab),$e=ne(n=>n.addTabs),te=ne(n=>n.closeTab),De=ne(n=>n.inTabs),y=E(n=>n.setVersion),{refetch:be,cancel:Bt}=sn(),{refetch:Qe,cancel:zt}=Ft(),{refetch:_t,cancel:Vt}=on(),{refetch:Xe,cancel:qt}=Ye(),{refetch:et,cancel:Wt}=Ue(m.name,{planOptions:{skip_tests:!0,include_unmodified:!0}}),ae=s.useCallback(function(u){const x=Array.from(p).find(g=>g.name===u);$(x)?k(u):I(x)},[p]),tt=s.useCallback(function(u){c.update(u),u.environment!==m.name&&ae(u.environment),ge(c)},[ae,m]),nt=s.useCallback(function(u){var g,M;C.update(u,c),u.environment!==m.name&&ae(u.environment),A(C);const x=je((g=u.meta)==null?void 0:g.done)&&((M=u.meta)==null?void 0:M.status)!==Oe.init;T.isFinished||T.isRunning||z(x)||Xe().then(({data:F})=>{et(),ot(F)})},[T,c,ae,m]),rt=s.useCallback(function(u){var x,g;T.update(u),u.environment!==m.name&&ae(u.environment),U(T),!(ln((x=u.meta)==null?void 0:x.done)||((g=u.meta)==null?void 0:g.status)===Oe.init)&&et()},[ae,m]),at=s.useCallback(function({changes:u,directories:x}){var g,M;u.sort(F=>F.change===He.Deleted?-1:1),u.forEach(({change:F,path:K,file:R})=>{var P,V;if(F===He.Modified){const O=G.get(K);if($(O)||$(R))return;O.update(R)}if(F===He.Deleted){const O=_(K)??G.get(K);if($(O))return;O instanceof Ze&&((P=O.parent)==null||P.removeDirectory(O)),O instanceof gt&&((V=O.parent)==null||V.removeFile(O),De(O)&&te(O))}});for(const F in x){const K=x[F],R=_(F);$(R)||((g=K.directories)==null||g.forEach(P=>{const V=_(P.path);$(V)&&R.addDirectory(new Ze(P,R))}),(M=K.files)==null||M.forEach(P=>{const V=G.get(P.path);$(V)&&R.addFile(new gt(P,R))}),R.directories.sort((P,V)=>P.name>V.name?1:-1),R.files.sort((P,V)=>P.name>V.name?1:-1))}me(),Pe(),Qe().then(({data:F})=>Le(F))},[G]),st=s.useCallback(function(u){const x=G.get(u.path);D(x)&&(x.isFormatted=u.status===Oe.success,me())},[G]),Yt=s.useCallback(function(u){if(cn(we))return;const x=we.map(({id:M,content:F})=>{const K=u.find(P=>P.id===M)??On(M),R=Me(K);return R.file.content=F??R.file.content??"",R}),g=x.find(M=>M.file.id===Te);$e(x),D(g)&&$(Re)&&fe(g)},[fe]);s.useEffect(()=>{be().then(({data:g})=>{y(g==null?void 0:g.version),je(g==null?void 0:g.has_running_task)&&Ae(new Ve({value:ie.RunningTask}))}),Qe().then(({data:g})=>Le(g));const n=v==null?void 0:v("errors",Ut),u=v==null?void 0:v("tests",Gt),x=v==null?void 0:v("models",Le);return x==null||x.subscribe(),l.hasPlans&&(u==null||u.subscribe(),Xe().then(({data:g})=>ot(g))),l.hasErrors&&(n==null||n.subscribe()),l.hasFiles&&_t().then(({data:g})=>{if($(g))return;const M=new Ze(g),F=M.allFiles;Yt(F),de(F),ue(M)}),()=>{Bt(),zt(),x==null||x.unsubscribe(),l.hasPlans&&(qt(),Wt()),l.hasErrors&&(n==null||n.unsubscribe()),l.hasTests&&(u==null||u.unsubscribe()),l.hasFiles&&Vt()}},[l]),s.useEffect(()=>{const n=v==null?void 0:v("plan-apply",nt);return l.hasPlans&&(n==null||n.subscribe()),()=>{l.hasPlans&&(n==null||n.unsubscribe())}},[nt,l]),s.useEffect(()=>{const n=v==null?void 0:v("plan-overview",tt);return l.hasPlans&&(n==null||n.subscribe()),()=>{l.hasPlans&&(n==null||n.unsubscribe())}},[tt,l]),s.useEffect(()=>{const n=v==null?void 0:v("plan-cancel",rt);return l.hasPlans&&(n==null||n.subscribe()),()=>{l.hasPlans&&(n==null||n.unsubscribe())}},[rt,l]),s.useEffect(()=>{const n=v==null?void 0:v("file",at);return n==null||n.subscribe(),()=>{n==null||n.unsubscribe()}},[at]),s.useEffect(()=>{const n=v==null?void 0:v("format-file",st);return n==null||n.subscribe(),()=>{n==null||n.unsubscribe()}},[st]),s.useEffect(()=>{(z(l.isEmpty)&&e.pathname===q.Home||e.pathname==="")&&r(l.defaultNavigationRoute(),{replace:!0})},[e,l]),s.useEffect(()=>{w(f.length>0)},[f]);function Le(n){D(n)&&(a(lt.Models),H(n))}function Ut(n){i(lt.General,n)}function Gt(n){xe(n)}function ot(n){const{environments:u,default_target_environment:x,pinned_environments:g}=n??{};kt(u)&&N(Object.values(u),x,g)}function Se(n){var u;(u=n==null?void 0:n.cancel)==null||u.call(n),w(!1)}const d=f[0];return o.jsxs(un.Page,{layout:"horizontal",children:[l.showModuleNavigation&&o.jsxs(o.Fragment,{children:[o.jsx(mr,{className:"overflow-hidden py-1 px-2 flex flex-col items-center"}),o.jsx(it,{orientation:"vertical"})]}),o.jsxs("div",{className:"flex flex-col overflow-hidden w-full h-full",children:[l.showNavigation&&o.jsxs(o.Fragment,{children:[o.jsx(_r,{}),o.jsx(it,{})]}),t??o.jsx(dn,{}),o.jsxs(L,{show:h,onClose:()=>{Se(d)},afterLeave:()=>{S()},onKeyDown:n=>{n.key==="Escape"&&Se(d)},children:[o.jsxs(L.Main,{children:[D(d==null?void 0:d.headline)&&o.jsx(L.Headline,{children:d==null?void 0:d.headline}),D(d==null?void 0:d.tagline)&&o.jsx(L.Tagline,{children:d==null?void 0:d.tagline}),D(d==null?void 0:d.details)&&o.jsx(L.Details,{details:d==null?void 0:d.details}),D(d==null?void 0:d.description)&&o.jsx(L.Description,{children:d==null?void 0:d.description}),d==null?void 0:d.children]}),o.jsxs(L.Actions,{children:[o.jsx(Be,{className:"font-bold",size:"md",variant:"danger",onClick:n=>{var u;n.stopPropagation(),(u=d==null?void 0:d.action)==null||u.call(d),w(!1)},children:(d==null?void 0:d.yesText)??"Confirm"}),o.jsx(Be,{size:"md",variant:"alternative",onClick:n=>{n.stopPropagation(),Se(d)},children:(d==null?void 0:d.noText)??"Cancel"})]})]})]})]})}export{Ca as default};
|
|
1
|
+
var Kt=Object.defineProperty;var Jt=(t,e,r)=>e in t?Kt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var se=(t,e,r)=>Jt(t,typeof e!="symbol"?e+"":e,r);import{r as s,j as o,N as Qt,c as B,b as z,d as yt,a as E,e as q,R as b,f as je,g as oe,h as Ye,k as Ue,B as Be,l as jt,m as ze,n as kt,L as Xt,S as _e,o as en,p as tn,q as nn,s as Ct,t as Ft,v as $,w as rn,i as D,x as an,y as sn,z as on,A as Oe,C as ln,D as cn,F as lt,G as un,H as it,O as dn}from"./index-Dj0i1-CA.js";import{R as mn}from"./ReportErrors-B7FEPzMB.js";import{u as j,M as fn,a as Ve,E as ie}from"./plan-BTRSbjKn.js";import{E as Z,P as ct,S as pn}from"./SelectEnvironment-C65jALmO.js";import{o as ee,i as qe,f as vn,I as Ge,E as Nt,a as hn,n as At,K as ce,y as Fe,l as Rt,b as Pt,u as gn,c as ke,d as We,e as Ee,g as ve,T as Q,p as xn,L as he,h as ut,s as dt,j as wn,k as Y,m as Tt,t as bn,q as Mt,r as mt,v as $t,P as ft,z as Ce,F as Dt,w as ye,x as En,A as yn,H as jn,B as kn,S as Cn,C as Fn,D as Nn,G as An,J as Rn,M as pt,N as Pn,O as Tn,Q as Mn,R as vt,U as ht}from"./popover-_Sf0yvOI.js";import{F as $n}from"./ChevronRightIcon-CLWtT22Q.js";import{u as J,M as Ze}from"./project-BvSOI8MY.js";import{H as Dn,y as Ln,w as Sn}from"./ListboxShow-BE5-xevs.js";import{M as gt}from"./file-CvJN3aZO.js";import{u as ne,c as On}from"./editor-CcO28cqd.js";import{EnumFileExplorerChange as He}from"./context-DFNeGsFF.js";import"./PlusCircleIcon-DVXAHG8_.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./SplitPane-CViaZmw6.js";import"./context-BctCsyGb.js";import"./floating-ui.react-dom-CjE-JNW1.js";import"./help-B59vE3aE.js";import"./SourceList-DSLO6nVJ.js";import"./Input-B-oZ6fGO.js";import"./index-C-dJH7yZ.js";import"./ModelLineage-DkIFAYo4.js";import"./SearchList-W_iT2G82.js";import"./ChevronDownIcon-MK_nrjD_.js";function Zn({title:t,titleId:e,...r},a){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?s.createElement("title",{id:e},t):null,s.createElement("path",{fillRule:"evenodd",d:"M15.312 11.424a5.5 5.5 0 0 1-9.201 2.466l-.312-.311h2.433a.75.75 0 0 0 0-1.5H3.989a.75.75 0 0 0-.75.75v4.242a.75.75 0 0 0 1.5 0v-2.43l.31.31a7 7 0 0 0 11.712-3.138.75.75 0 0 0-1.449-.39Zm1.23-3.723a.75.75 0 0 0 .219-.53V2.929a.75.75 0 0 0-1.5 0V5.36l-.31-.31A7 7 0 0 0 3.239 8.188a.75.75 0 1 0 1.448.389A5.5 5.5 0 0 1 13.89 6.11l.311.31h-2.432a.75.75 0 0 0 0 1.5h4.243a.75.75 0 0 0 .53-.219Z",clipRule:"evenodd"}))}const Hn=s.forwardRef(Zn);function In({title:t,titleId:e,...r},a){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?s.createElement("title",{id:e},t):null,s.createElement("path",{fillRule:"evenodd",d:"M11.78 5.22a.75.75 0 0 1 0 1.06L8.06 10l3.72 3.72a.75.75 0 1 1-1.06 1.06l-4.25-4.25a.75.75 0 0 1 0-1.06l4.25-4.25a.75.75 0 0 1 1.06 0Z",clipRule:"evenodd"}))}const Bn=s.forwardRef(In);function zn({title:t,titleId:e,...r},a){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?s.createElement("title",{id:e},t):null,s.createElement("path",{fillRule:"evenodd",d:"M3 3.5A1.5 1.5 0 0 1 4.5 2h6.879a1.5 1.5 0 0 1 1.06.44l4.122 4.12A1.5 1.5 0 0 1 17 7.622V16.5a1.5 1.5 0 0 1-1.5 1.5h-11A1.5 1.5 0 0 1 3 16.5v-13Zm10.857 5.691a.75.75 0 0 0-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 0 0-1.06 1.061l2.5 2.5a.75.75 0 0 0 1.137-.089l4-5.5Z",clipRule:"evenodd"}))}const _n=s.forwardRef(zn);function Vn({title:t,titleId:e,...r},a){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?s.createElement("title",{id:e},t):null,s.createElement("path",{fillRule:"evenodd",d:"M4.5 2A1.5 1.5 0 0 0 3 3.5v13A1.5 1.5 0 0 0 4.5 18h11a1.5 1.5 0 0 0 1.5-1.5V7.621a1.5 1.5 0 0 0-.44-1.06l-4.12-4.122A1.5 1.5 0 0 0 11.378 2H4.5Zm2.25 8.5a.75.75 0 0 0 0 1.5h6.5a.75.75 0 0 0 0-1.5h-6.5Zm0 3a.75.75 0 0 0 0 1.5h6.5a.75.75 0 0 0 0-1.5h-6.5Z",clipRule:"evenodd"}))}const qn=s.forwardRef(Vn);function Wn({title:t,titleId:e,...r},a){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?s.createElement("title",{id:e},t):null,s.createElement("path",{fillRule:"evenodd",d:"M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495ZM10 5a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 10 5Zm0 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z",clipRule:"evenodd"}))}const Yn=s.forwardRef(Wn);function Un({title:t,titleId:e,...r},a){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?s.createElement("title",{id:e},t):null,s.createElement("path",{d:"M3.75 3A1.75 1.75 0 0 0 2 4.75v3.26a3.235 3.235 0 0 1 1.75-.51h12.5c.644 0 1.245.188 1.75.51V6.75A1.75 1.75 0 0 0 16.25 5h-4.836a.25.25 0 0 1-.177-.073L9.823 3.513A1.75 1.75 0 0 0 8.586 3H3.75ZM3.75 9A1.75 1.75 0 0 0 2 10.75v4.5c0 .966.784 1.75 1.75 1.75h12.5A1.75 1.75 0 0 0 18 15.25v-4.5A1.75 1.75 0 0 0 16.25 9H3.75Z"}))}const Gn=s.forwardRef(Un);function Kn({title:t,titleId:e,...r},a){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?s.createElement("title",{id:e},t):null,s.createElement("path",{fillRule:"evenodd",d:"M2 10a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm6.39-2.908a.75.75 0 0 1 .766.027l3.5 2.25a.75.75 0 0 1 0 1.262l-3.5 2.25A.75.75 0 0 1 8 12.25v-4.5a.75.75 0 0 1 .39-.658Z",clipRule:"evenodd"}))}const Lt=s.forwardRef(Kn);function Jn({title:t,titleId:e,...r},a){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?s.createElement("title",{id:e},t):null,s.createElement("path",{fillRule:"evenodd",d:"M9.661 2.237a.531.531 0 0 1 .678 0 11.947 11.947 0 0 0 7.078 2.749.5.5 0 0 1 .479.425c.069.52.104 1.05.104 1.59 0 5.162-3.26 9.563-7.834 11.256a.48.48 0 0 1-.332 0C5.26 16.564 2 12.163 2 7c0-.538.035-1.069.104-1.589a.5.5 0 0 1 .48-.425 11.947 11.947 0 0 0 7.077-2.75Zm4.196 5.954a.75.75 0 0 0-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 1 0-1.06 1.061l2.5 2.5a.75.75 0 0 0 1.137-.089l4-5.5Z",clipRule:"evenodd"}))}const Qn=s.forwardRef(Jn);function Xn({title:t,titleId:e,...r},a){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?s.createElement("title",{id:e},t):null,s.createElement("path",{d:"M15.98 1.804a1 1 0 0 0-1.96 0l-.24 1.192a1 1 0 0 1-.784.785l-1.192.238a1 1 0 0 0 0 1.962l1.192.238a1 1 0 0 1 .785.785l.238 1.192a1 1 0 0 0 1.962 0l.238-1.192a1 1 0 0 1 .785-.785l1.192-.238a1 1 0 0 0 0-1.962l-1.192-.238a1 1 0 0 1-.785-.785l-.238-1.192ZM6.949 5.684a1 1 0 0 0-1.898 0l-.683 2.051a1 1 0 0 1-.633.633l-2.051.683a1 1 0 0 0 0 1.898l2.051.684a1 1 0 0 1 .633.632l.683 2.051a1 1 0 0 0 1.898 0l.683-2.051a1 1 0 0 1 .633-.633l2.051-.683a1 1 0 0 0 0-1.898l-2.051-.683a1 1 0 0 1-.633-.633L6.95 5.684ZM13.949 13.684a1 1 0 0 0-1.898 0l-.184.551a1 1 0 0 1-.632.633l-.551.183a1 1 0 0 0 0 1.898l.551.183a1 1 0 0 1 .633.633l.183.551a1 1 0 0 0 1.898 0l.184-.551a1 1 0 0 1 .632-.633l.551-.183a1 1 0 0 0 0-1.898l-.551-.184a1 1 0 0 1-.633-.632l-.183-.551Z"}))}const xt=s.forwardRef(Xn);function er({title:t,titleId:e,...r},a){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?s.createElement("title",{id:e},t):null,s.createElement("path",{fillRule:"evenodd",d:"M.99 5.24A2.25 2.25 0 0 1 3.25 3h13.5A2.25 2.25 0 0 1 19 5.25l.01 9.5A2.25 2.25 0 0 1 16.76 17H3.26A2.267 2.267 0 0 1 1 14.74l-.01-9.5Zm8.26 9.52v-.625a.75.75 0 0 0-.75-.75H3.25a.75.75 0 0 0-.75.75v.615c0 .414.336.75.75.75h5.373a.75.75 0 0 0 .627-.74Zm1.5 0a.75.75 0 0 0 .627.74h5.373a.75.75 0 0 0 .75-.75v-.615a.75.75 0 0 0-.75-.75H11.5a.75.75 0 0 0-.75.75v.625Zm6.75-3.63v-.625a.75.75 0 0 0-.75-.75H11.5a.75.75 0 0 0-.75.75v.625c0 .414.336.75.75.75h5.25a.75.75 0 0 0 .75-.75Zm-8.25 0v-.625a.75.75 0 0 0-.75-.75H3.25a.75.75 0 0 0-.75.75v.625c0 .414.336.75.75.75H8.5a.75.75 0 0 0 .75-.75ZM17.5 7.5v-.625a.75.75 0 0 0-.75-.75H11.5a.75.75 0 0 0-.75.75V7.5c0 .414.336.75.75.75h5.25a.75.75 0 0 0 .75-.75Zm-8.25 0v-.625a.75.75 0 0 0-.75-.75H3.25a.75.75 0 0 0-.75.75V7.5c0 .414.336.75.75.75H8.5a.75.75 0 0 0 .75-.75Z",clipRule:"evenodd"}))}const wt=s.forwardRef(er);function tr({title:t,titleId:e,...r},a){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?s.createElement("title",{id:e},t):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.125 2.25h-4.5c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125v-9M10.125 2.25h.375a9 9 0 0 1 9 9v.375M10.125 2.25A3.375 3.375 0 0 1 13.5 5.625v1.5c0 .621.504 1.125 1.125 1.125h1.5a3.375 3.375 0 0 1 3.375 3.375M9 15l2.25 2.25L15 12"}))}const nr=s.forwardRef(tr);function rr({title:t,titleId:e,...r},a){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?s.createElement("title",{id:e},t):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"}))}const ar=s.forwardRef(rr);function sr({title:t,titleId:e,...r},a){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?s.createElement("title",{id:e},t):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"}))}const or=s.forwardRef(sr);function lr({title:t,titleId:e,...r},a){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?s.createElement("title",{id:e},t):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z"}))}const ir=s.forwardRef(lr);function cr({title:t,titleId:e,...r},a){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?s.createElement("title",{id:e},t):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.91 11.672a.375.375 0 0 1 0 .656l-5.603 3.113a.375.375 0 0 1-.557-.328V8.887c0-.286.307-.466.557-.327l5.603 3.112Z"}))}const St=s.forwardRef(cr);function ur({title:t,titleId:e,...r},a){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":e},r),t?s.createElement("title",{id:e},t):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75m-3-7.036A11.959 11.959 0 0 1 3.598 6 11.99 11.99 0 0 0 3 9.749c0 5.592 3.824 10.29 9 11.623 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.571-.598-3.751h-.152c-3.196 0-6.1-1.248-8.25-3.285Z"}))}const dr=s.forwardRef(ur);function W({title:t,to:e,icon:r,iconActive:a,classActive:i="px-2 bg-neutral-10",disabled:l=!1,children:m,before:p,className:h}){return o.jsx(Qt,{title:t,to:e,className:({isActive:f})=>B("flex items-center",l&&"opacity-50 cursor-not-allowed",f&&z(l)&&i,h),style:({isActive:f})=>f||l?{pointerEvents:"none"}:{},children:({isActive:f})=>o.jsxs("span",{className:B("flex items-center",f?"font-bold":"font-normal"),children:[p,f?a:r,m]})})}function mr({className:t}){const{errors:e}=yt(),r=E(l=>l.models),a=E(l=>l.modules),i=Array.from(new Set(r.values())).length;return o.jsxs("div",{className:t,children:[a.hasEditor&&o.jsx(W,{title:"File Explorer",to:q.Editor,className:"px-2 py-1 h-10 hover:bg-neutral-5 dark:hover:bg-neutral-10 text-primary-500 rounded-xl my-1",classActive:"bg-primary-10 text-primary-500",icon:o.jsx(ir,{className:"min-w-6 w-6"}),iconActive:o.jsx(Gn,{className:"min-w-6 w-6"})}),a.hasDataCatalog&&o.jsx(W,{title:"Data Catalog",to:q.DataCatalog,icon:o.jsx(ar,{className:"min-w-6 w-6"}),iconActive:o.jsx(qn,{className:"min-w-6 w-6"}),className:"relative rounded-xl my-1 px-2 py-1 h-10 hover:bg-neutral-5 dark:hover:bg-neutral-10 text-neutral-600 dark:text-neutral-300",children:o.jsx("span",{className:"min-w-[1rem] px-1 h-4 py-0.5 text-center text-[9px] absolute bottom-0 right-0 font-black rounded-full bg-primary-500 text-primary-100",children:i})}),a.hasErrors&&o.jsx(W,{title:"Errors",to:q.Errors,className:B("relative px-2 py-1 rounded-xl my-1 h-10 hover:bg-neutral-5 dark:hover:bg-neutral-10",e.size>0?"text-danger-500":"text-neutral-600"),classActive:"px-2 bg-danger-10 text-danger-500",icon:o.jsx(or,{className:"w-6"}),iconActive:o.jsx(Yn,{className:"w-6"}),disabled:e.size===0,children:e.size>0&&o.jsx("span",{className:"min-w-[1rem] px-1 h-4 py-0.5 text-center text-[9px] absolute bottom-0 right-0 font-black rounded-full bg-danger-500 text-danger-100",children:e.size})}),a.hasPlans&&o.jsx(W,{title:"Plan",to:q.Plan,className:"px-2 py-1 h-10 hover:bg-neutral-5 dark:hover:bg-neutral-10 text-success-500 rounded-xl my-1",classActive:"bg-success-10 text-success-500",icon:o.jsx(St,{className:"w-6"}),iconActive:o.jsx(Lt,{className:"w-6"})}),a.hasTests&&o.jsx(W,{title:"Tests",to:q.Tests,icon:o.jsx(nr,{className:"w-6"}),iconActive:o.jsx(_n,{className:"w-6"}),className:"rounded-xl my-1 px-2 py-1 h-10 hover:bg-neutral-5 dark:hover:bg-neutral-10"}),a.hasAudits&&o.jsx(W,{title:"Audits",to:q.Audits,icon:o.jsx(dr,{className:"w-6"}),iconActive:o.jsx(Qn,{className:"w-6"}),className:"rounded-xl my-1 px-2 py-1 h-10 hover:bg-neutral-5 dark:hover:bg-neutral-10"}),a.hasData&&o.jsx(W,{title:"Data",to:q.Data,icon:o.jsx(wt,{className:"w-6"}),iconActive:o.jsx(wt,{className:"w-6"}),className:"rounded-xl my-1 px-2 py-1 h-10 hover:bg-neutral-5 dark:hover:bg-neutral-10 text-neutral-500 dark:text-neutral-300"}),a.hasLineage&&o.jsx(W,{title:"Lineage",to:q.Lineage,icon:o.jsx(xt,{className:"w-6"}),iconActive:o.jsx(xt,{className:"w-6"}),className:"rounded-xl my-1 px-2 py-1 h-10 hover:bg-neutral-5 dark:hover:bg-neutral-10 text-neutral-500 dark:text-neutral-300"})]})}function Ke(t,e){let r=s.useRef([]),a=ee(t);s.useEffect(()=>{let i=[...r.current];for(let[l,m]of e.entries())if(r.current[l]!==m){let p=a(e,i);return r.current=e,p}},[a,...e])}function fr(t){function e(){document.readyState!=="loading"&&(t(),document.removeEventListener("DOMContentLoaded",e))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",e),e())}let X=[];fr(()=>{function t(e){if(!qe(e.target)||e.target===document.body||X[0]===e.target)return;let r=e.target;r=r.closest(vn),X.unshift(r??e.target),X=X.filter(a=>a!=null&&a.isConnected),X.splice(10)}window.addEventListener("click",t,{capture:!0}),window.addEventListener("mousedown",t,{capture:!0}),window.addEventListener("focus",t,{capture:!0}),document.body.addEventListener("click",t,{capture:!0}),document.body.addEventListener("mousedown",t,{capture:!0}),document.body.addEventListener("focus",t,{capture:!0})});function pr(t,e=typeof document<"u"?document.defaultView:null,r){let a=Ge(t,"escape");Nt(e,"keydown",i=>{a&&(i.defaultPrevented||i.key===hn.Escape&&r(i))})}function vr(){var t;let[e]=s.useState(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[r,a]=s.useState((t=e==null?void 0:e.matches)!=null?t:!1);return At(()=>{if(!e)return;function i(l){a(l.matches)}return e.addEventListener("change",i),()=>e.removeEventListener("change",i)},[e]),r}function Ot(t){if(!t)return new Set;if(typeof t=="function")return new Set(t());let e=new Set;for(let r of t.current)bn(r.current)&&e.add(r.current);return e}let hr="div";var re=(t=>(t[t.None=0]="None",t[t.InitialFocus=1]="InitialFocus",t[t.TabLock=2]="TabLock",t[t.FocusLock=4]="FocusLock",t[t.RestoreFocus=8]="RestoreFocus",t[t.AutoFocus=16]="AutoFocus",t))(re||{});function gr(t,e){let r=s.useRef(null),a=Fe(r,e),{initialFocus:i,initialFocusFallback:l,containers:m,features:p=15,...h}=t;Rt()||(p=0);let f=Pt(r);Er(p,{ownerDocument:f});let w=yr(p,{ownerDocument:f,container:r,initialFocus:i,initialFocusFallback:l});jr(p,{ownerDocument:f,container:r,containers:m,previousActiveElement:w});let S=gn(),H=ee(c=>{if(!ke(r.current))return;let T=r.current;(A=>A())(()=>{We(S.current,{[Ee.Forwards]:()=>{ve(T,Q.First,{skipElements:[c.relatedTarget,l]})},[Ee.Backwards]:()=>{ve(T,Q.Last,{skipElements:[c.relatedTarget,l]})}})})}),N=Ge(!!(p&2),"focus-trap#tab-lock"),k=xn(),I=s.useRef(!1),v={ref:a,onKeyDown(c){c.key=="Tab"&&(I.current=!0,k.requestAnimationFrame(()=>{I.current=!1}))},onBlur(c){if(!(p&4))return;let T=Ot(m);ke(r.current)&&T.add(r.current);let A=c.relatedTarget;qe(A)&&A.dataset.headlessuiFocusGuard!=="true"&&(Zt(T,A)||(I.current?ve(r.current,We(S.current,{[Ee.Forwards]:()=>Q.Next,[Ee.Backwards]:()=>Q.Previous})|Q.WrapAround,{relativeTo:c.target}):qe(c.target)&&Y(c.target)))}},C=he();return b.createElement(b.Fragment,null,N&&b.createElement(ut,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:H,features:dt.Focusable}),C({ourProps:v,theirProps:h,defaultTag:hr,name:"FocusTrap"}),N&&b.createElement(ut,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:H,features:dt.Focusable}))}let xr=ce(gr),wr=Object.assign(xr,{features:re});function br(t=!0){let e=s.useRef(X.slice());return Ke(([r],[a])=>{a===!0&&r===!1&&Mt(()=>{e.current.splice(0)}),a===!1&&r===!0&&(e.current=X.slice())},[t,X,e]),ee(()=>{var r;return(r=e.current.find(a=>a!=null&&a.isConnected))!=null?r:null})}function Er(t,{ownerDocument:e}){let r=!!(t&8),a=br(r);Ke(()=>{r||(e==null?void 0:e.activeElement)===(e==null?void 0:e.body)&&Y(a())},[r]),wn(()=>{r&&Y(a())})}function yr(t,{ownerDocument:e,container:r,initialFocus:a,initialFocusFallback:i}){let l=s.useRef(null),m=Ge(!!(t&1),"focus-trap#initial-focus"),p=Tt();return Ke(()=>{if(t===0)return;if(!m){i!=null&&i.current&&Y(i.current);return}let h=r.current;h&&Mt(()=>{if(!p.current)return;let f=e==null?void 0:e.activeElement;if(a!=null&&a.current){if((a==null?void 0:a.current)===f){l.current=f;return}}else if(h.contains(f)){l.current=f;return}if(a!=null&&a.current)Y(a.current);else{if(t&16){if(ve(h,Q.First|Q.AutoFocus)!==mt.Error)return}else if(ve(h,Q.First)!==mt.Error)return;if(i!=null&&i.current&&(Y(i.current),(e==null?void 0:e.activeElement)===i.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}l.current=e==null?void 0:e.activeElement})},[i,m,t]),l}function jr(t,{ownerDocument:e,container:r,containers:a,previousActiveElement:i}){let l=Tt(),m=!!(t&4);Nt(e==null?void 0:e.defaultView,"focus",p=>{if(!m||!l.current)return;let h=Ot(a);ke(r.current)&&h.add(r.current);let f=i.current;if(!f)return;let w=p.target;ke(w)?Zt(h,w)?(i.current=w,Y(w)):(p.preventDefault(),p.stopPropagation(),Y(f)):Y(i.current)},!0)}function Zt(t,e){for(let r of t)if(r.contains(e))return!0;return!1}var kr=(t=>(t[t.Open=0]="Open",t[t.Closed=1]="Closed",t))(kr||{}),Cr=(t=>(t[t.SetTitleId=0]="SetTitleId",t))(Cr||{});let Fr={0(t,e){return t.titleId===e.id?t:{...t,titleId:e.id}}},Je=s.createContext(null);Je.displayName="DialogContext";function Ne(t){let e=s.useContext(Je);if(e===null){let r=new Error(`<${t} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Ne),r}return e}function Nr(t,e){return We(e.type,Fr,t,e)}let bt=ce(function(t,e){let r=s.useId(),{id:a=`headlessui-dialog-${r}`,open:i,onClose:l,initialFocus:m,role:p="dialog",autoFocus:h=!0,__demoMode:f=!1,unmount:w=!1,...S}=t,H=s.useRef(!1);p=function(){return p==="dialog"||p==="alertdialog"?p:(H.current||(H.current=!0,console.warn(`Invalid role [${p}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let N=$t();i===void 0&&N!==null&&(i=(N&ye.Open)===ye.Open);let k=s.useRef(null),I=Fe(k,e),v=Pt(k),C=i?0:1,[c,T]=s.useReducer(Nr,{titleId:null,descriptionId:null,panelRef:s.createRef()}),A=ee(()=>l(!1)),ge=ee(y=>T({type:0,id:y})),U=Rt()?C===0:!1,[Ae,G]=En(),Re={get current(){var y;return(y=c.panelRef.current)!=null?y:k.current}},ue=yn(),{resolveContainers:de}=jn({mainTreeNode:ue,portals:Ae,defaultContainers:[Re]}),me=N!==null?(N&ye.Closing)===ye.Closing:!1;Ln(f||me?!1:U,{allowed:ee(()=>{var y,be;return[(be=(y=k.current)==null?void 0:y.closest("[data-headlessui-portal]"))!=null?be:null]}),disallowed:ee(()=>{var y;return[(y=ue==null?void 0:ue.closest("body > *:not(#headlessui-portal-root)"))!=null?y:null]})});let _=kn.get(null);At(()=>{if(U)return _.actions.push(a),()=>_.actions.pop(a)},[_,a,U]);let xe=Cn(_,s.useCallback(y=>_.selectors.isTop(y,a),[_,a]));Fn(xe,de,y=>{y.preventDefault(),A()}),pr(xe,v==null?void 0:v.defaultView,y=>{y.preventDefault(),y.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),A()}),Nn(f||me?!1:U,v,de),An(U,k,A);let[Pe,we]=Sn(),Te=s.useMemo(()=>[{dialogState:C,close:A,setTitleId:ge,unmount:w},c],[C,c,A,ge,w]),fe=s.useMemo(()=>({open:C===0}),[C]),Me={ref:I,id:a,role:p,tabIndex:-1,"aria-modal":f?void 0:C===0?!0:void 0,"aria-labelledby":c.titleId,"aria-describedby":Pe,unmount:w},$e=!vr(),te=re.None;U&&!f&&(te|=re.RestoreFocus,te|=re.TabLock,h&&(te|=re.AutoFocus),$e&&(te|=re.InitialFocus));let De=he();return b.createElement(Rn,null,b.createElement(pt,{force:!0},b.createElement(Pn,null,b.createElement(Je.Provider,{value:Te},b.createElement(Tn,{target:k},b.createElement(pt,{force:!1},b.createElement(we,{slot:fe},b.createElement(G,null,b.createElement(wr,{initialFocus:m,initialFocusFallback:k,containers:de,features:te},b.createElement(Mn,{value:A},De({ourProps:Me,theirProps:S,slot:fe,defaultTag:Ar,features:Rr,visible:C===0,name:"Dialog"})))))))))))}),Ar="div",Rr=vt.RenderStrategy|vt.Static;function Pr(t,e){let{transition:r=!1,open:a,...i}=t,l=$t(),m=t.hasOwnProperty("open")||l!==null,p=t.hasOwnProperty("onClose");if(!m&&!p)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!m)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!p)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!l&&typeof t.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${t.open}`);if(typeof t.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${t.onClose}`);return(a!==void 0||r)&&!i.static?b.createElement(ft,null,b.createElement(Ce,{show:a,transition:r,unmount:i.unmount},b.createElement(bt,{ref:e,...i}))):b.createElement(ft,null,b.createElement(bt,{ref:e,open:a,...i}))}let Tr="div";function Mr(t,e){let r=s.useId(),{id:a=`headlessui-dialog-panel-${r}`,transition:i=!1,...l}=t,[{dialogState:m,unmount:p},h]=Ne("Dialog.Panel"),f=Fe(e,h.panelRef),w=s.useMemo(()=>({open:m===0}),[m]),S=ee(v=>{v.stopPropagation()}),H={ref:f,id:a,onClick:S},N=i?Dt:s.Fragment,k=i?{unmount:p}:{},I=he();return b.createElement(N,{...k},I({ourProps:H,theirProps:l,slot:w,defaultTag:Tr,name:"Dialog.Panel"}))}let $r="div";function Dr(t,e){let{transition:r=!1,...a}=t,[{dialogState:i,unmount:l}]=Ne("Dialog.Backdrop"),m=s.useMemo(()=>({open:i===0}),[i]),p={ref:e,"aria-hidden":!0},h=r?Dt:s.Fragment,f=r?{unmount:l}:{},w=he();return b.createElement(h,{...f},w({ourProps:p,theirProps:a,slot:m,defaultTag:$r,name:"Dialog.Backdrop"}))}let Lr="h2";function Sr(t,e){let r=s.useId(),{id:a=`headlessui-dialog-title-${r}`,...i}=t,[{dialogState:l,setTitleId:m}]=Ne("Dialog.Title"),p=Fe(e);s.useEffect(()=>(m(a),()=>m(null)),[a,m]);let h=s.useMemo(()=>({open:l===0}),[l]),f={ref:p,id:a};return he()({ourProps:f,theirProps:i,slot:h,defaultTag:Lr,name:"Dialog.Title"})}let Or=ce(Pr),Zr=ce(Mr);ce(Dr);let Hr=ce(Sr),Ht=Object.assign(Or,{Panel:Zr,Title:Hr,Description:Dn});function le({headline:t,type:e,changes:r,className:a}){const[i,l]=s.useState(!1);return o.jsx(ht,{onMouseEnter:()=>{l(!0)},onMouseLeave:()=>{l(!1)},className:"relative flex",children:()=>o.jsxs(o.Fragment,{children:[o.jsx("span",{className:B("transition-all flex min-w-[1rem] h-4 text-center mx-0.5 px-1 rounded-full text-[10px] font-black text-neutral-100 cursor-default border border-inherit",e===Z.Add&&"bg-success-500 border-success-500",e===Z.Remove&&"bg-danger-500 border-danger-500",e===Z.Direct&&"bg-secondary-500 border-secondary-500",e===Z.Indirect&&"bg-warning-500 border-warning-500",e===Z.Metadata&&"bg-neutral-400 border-neutral-400",e===Z.Default&&"bg-neutral-600 border-neutral-600",a),children:r.length}),o.jsx(Ce,{show:i,as:s.Fragment,enter:"transition ease-out duration-200",enterFrom:"opacity-0 translate-y-1",enterTo:"opacity-100 translate-y-0",leave:"transition ease-in duration-150",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 translate-y-1",children:o.jsx(ht.Panel,{className:"absolute top-6 right-0 z-10 transform flex p-2 bg-theme-lighter shadow-xl focus:ring-2 ring-opacity-5 rounded-lg ",children:o.jsx(ct,{headline:t,type:e,className:"w-full h-full max-w-[50vw] max-h-[40vh] overflow-hidden overflow-y-auto hover:scrollbar scrollbar--vertical",children:o.jsx(ct.Default,{type:e,changes:r})})})})]})})}function Ir(){const t=j(i=>i.planOverview),[e,r]=s.useState(t);return s.useEffect(()=>{z(t.isEmpty)&&t.isFinished&&r(new fn(t))},[t]),(z(t.isLatest)||t.isFetching)&&e.hasUpdates?o.jsxs("span",{className:"flex group items-center bg-neutral-5 dark:bg-neutral-20 px-1 py-1 rounded-full",children:[(je(e.hasChanges)||je(e.hasBackfills))&&o.jsx(Et,{className:"mr-2",children:"Changes"}),oe(e.added)&&o.jsx(le,{headline:"Added",type:Z.Add,changes:e.added,className:"-mr-2 group-hover:mr-0 z-[5]"}),oe(e.direct)&&o.jsx(le,{headline:"Directly Modified",type:Z.Direct,changes:e.direct,className:"-mr-2 group-hover:mr-0 z-[4]"}),oe(e.indirect)&&o.jsx(le,{headline:"Indirectly Modified",type:Z.Indirect,changes:e.indirect,className:"-mr-2 group-hover:mr-0 z-[3]"}),oe(e.metadata)&&o.jsx(le,{headline:"Metadata",type:Z.Metadata,changes:e.metadata,className:"-mr-2 group-hover:mr-0 z-[2]"}),oe(e.removed)&&o.jsx(le,{headline:"Removed",type:Z.Remove,changes:e.removed,className:"-mr-2 group-hover:mr-0 z-[1]"}),oe(e.backfills)?o.jsx(le,{headline:"Backfills",type:Z.Default,changes:e.backfills,className:"ml-4 group-hover:ml-2 z-[6]"}):o.jsx("div",{className:"ml-2 group-hover:ml-2 z-[6]"})]}):o.jsx(Et,{className:"pr-2 pl-0.5 py-1 rounded-full bg-neutral-5 dark:bg-neutral-20 text-neutral-500 dark:text-neutral-300",children:"No Changes"})}function Et({className:t,children:e}){const r=E(h=>h.environment),a=E(h=>h.addRemoteEnvironments),i=j(h=>h.planAction),{refetch:l}=Ye(),{refetch:m}=Ue(r.name,{planOptions:{skip_tests:!0,include_unmodified:!0}});function p(h){const{environments:f,default_target_environment:w,pinned_environments:S}=h??{};kt(f)&&a(Object.values(f),w,S)}return o.jsxs("p",{className:B("flex items-center text-xs text-neutral-600 dark:text-neutral-300 font-bold text-center whitespace-nowrap",t),children:[o.jsx(Be,{className:"w-5 h-5 !p-0 !m-0 !ml-0.5 !mr-1 border-none !rounded-full bg-neutral-10 dark:bg-neutral-20",variant:ze.Info,size:jt.sm,disabled:i.isProcessing,onClick:h=>{h.stopPropagation(),l().then(({data:f})=>{m(),p(f)})},children:o.jsx(Hn,{className:"text-neutral-500 dark:text-neutral-300 w-4 h-4"})}),e]})}function It({children:t}){return o.jsxs(Xt,{className:"inline-block",children:[o.jsx(_e,{className:"w-3 h-3 border border-neutral-10 mr-2"}),o.jsx("span",{className:"inline-block text-xs whitespace-nowrap",children:t})]})}let Ie;function Br(){const t=E(c=>c.modules),e=E(c=>c.environment),r=E(c=>c.models),a=j(c=>c.planAction),i=j(c=>c.planApply),l=j(c=>c.planOverview),m=j(c=>c.planCancel),p=j(c=>c.setPlanApply),h=j(c=>c.setPlanOverview),f=j(c=>c.setPlanCancel),w=j(c=>c.setPlanAction),S=j(c=>c.resetPlanTrackers),H=j(c=>c.clearPlanApply),{isFetching:N}=en(e.name),{isFetching:k}=tn(),{isFetching:I}=Ye(),{refetch:v,isFetching:C}=Ue(e.name,{planOptions:{skip_tests:!0,include_unmodified:!0}});return s.useEffect(()=>{r.size>0&&z(a.isProcessing)&&z(a.isRunningTask)&&(S(),H(),v())},[r,e]),s.useEffect(()=>{C&&(l.isFetching=!0,h(l)),N&&(i.isFetching=!0,p(i)),k&&(m.isFetching=!0,f(m))},[C,N,k]),s.useEffect(()=>{clearTimeout(Ie);const c=Ve.getPlanAction({planOverview:l,planApply:i,planCancel:m});c===ie.Done&&a.isRunningTask||c===a.value||(Ie=setTimeout(()=>{w(new Ve({value:c})),Ie=void 0},nn([ie.Running,ie.RunningTask,ie.Cancelling,ie.Applying],c)?0:500))},[l,i,m]),o.jsx("div",{className:"min-h-8 max-h-8 flex w-full items-center justify-end text-neutral-500",children:I?o.jsx(It,{children:"Loading Environments..."}):o.jsxs(o.Fragment,{children:[z(t.hasOnlyPlans)&&z(t.hasOnlyPlansAndErrors)&&o.jsx(W,{title:a.isProcessing?a.displayStatus(l):"Plan",to:q.Plan,icon:a.isProcessing?o.jsx(_e,{variant:ze.Success,className:"w-3 py-1"}):o.jsx(St,{className:B("w-5",l.isFailed?"text-danger-500 dark:text-danger-100":"text-success-100")}),iconActive:a.isProcessing?o.jsx(_e,{variant:ze.Success,className:"w-3 py-1"}):o.jsx(Lt,{className:B("w-5",l.isFailed?"text-danger-500 dark:text-danger-100":"text-success-100")}),before:o.jsx("p",{className:B("block mx-1 text-xs font-bold whitespace-nowrap",l.isFailed?"text-danger-500 dark:text-danger-100":"text-success-100"),children:a.isProcessing?a.displayStatus(l):"Plan"}),className:B("px-2 rounded-full py-0.5 mr-1",l.isFailed?"bg-danger-10 dark:bg-danger-500":"bg-success-500"),classActive:B(l.isFailed?"bg-danger-10 dark:bg-danger-500":"bg-success-500")}),o.jsx("div",{className:"flex justify-center items-center min-w-[6rem] max-w-full",children:o.jsx(pn,{className:"border-none mx-2 w-full",size:jt.sm,showAddEnvironment:!0,disabled:C||a.isProcessing||e.isInitialProd})}),o.jsx(Ir,{})]})})}function zr(){const t=Ct();return o.jsxs("div",{className:"flex",children:[o.jsx("button",{onClick:()=>t(-1),className:"inline-block text-neutral-700 dark:text-neutral-300 text-xs hover:bg-neutral-5 dark:hover:bg-neutral-10 px-1 py-1 rounded-full",children:o.jsx(Bn,{className:"min-w-4 h-4"})}),o.jsx("button",{onClick:()=>t(1),className:"inline-block text-neutral-700 dark:text-neutral-300 text-xs hover:bg-neutral-5 dark:hover:bg-neutral-10 px-1 py-1 rounded-full",children:o.jsx($n,{className:"min-w-4 h-4"})})]})}function _r(){const t=E(r=>r.modules),{isFetching:e}=Ft();return o.jsxs("div",{className:B("relative min-w-[10rem] px-2 min-h-[2rem] max-h-[2rem] w-full flex items-center",t.showHistoryNavigation?"justify-between":"justify-end",e&&"overflow-hidden"),children:[t.showHistoryNavigation&&o.jsx(zr,{}),e&&o.jsx("div",{className:"absolute w-full h-full flex justify-center items-center z-10 bg-transparent-20 backdrop-blur-lg",children:o.jsx(It,{children:"Loading Models..."})}),t.hasPlans&&o.jsx(Br,{}),t.hasErrors&&o.jsx(mn,{})]})}function Vr({show:t,children:e,afterLeave:r,onClose:a=()=>{}}){return o.jsx(Ce,{appear:!0,show:t,as:s.Fragment,afterLeave:r,children:o.jsxs(Ht,{as:"div",className:"relative z-50",onClose:a,children:[o.jsx("div",{className:"fixed inset-0 bg-overlay opacity-90"}),o.jsx("div",{className:"fixed inset-0 overflow-y-auto",children:o.jsx("div",{className:"flex min-h-full items-center justify-center p-4 text-center",children:o.jsx(Ce.Child,{as:s.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:e})})})]})})}function L({show:t,children:e,onClose:r,afterLeave:a}){return o.jsx(Vr,{show:t,onClose:r,afterLeave:a,children:o.jsx(Ht.Panel,{className:"min-w-[20rem] max-w-[50rem] transform rounded-xl bg-theme text-left align-middle shadow-xl transition-all overflow-hidden",children:e})})}function qr({children:t}){return o.jsx("div",{className:"py-4 px-5 m-2",children:t})}function Wr({children:t}){return o.jsx("h2",{className:"font-bold text-xl mb-2",children:t})}function Yr({children:t}){return o.jsx("h4",{className:"font-bold",children:t})}function Ur({children:t}){return o.jsx("p",{className:"text-sm",children:t})}function Gr({children:t}){return o.jsx("div",{className:"flex justify-end items-center py-3 px-3",children:t})}function Kr({details:t}){return o.jsx("ul",{className:"my-2 p-4 bg-warning-10 rounded-md max-h-[20vh] overflow-y-auto hover:scrollbar scrollbar--vertical",children:t.map(e=>o.jsx("li",{className:"text-sm",children:e},e))})}L.Headline=Wr;L.Tagline=Yr;L.Description=Ur;L.Actions=Gr;L.Main=qr;L.Details=Kr;const Jr=2e4,Qr=3e3;class Xr{constructor(e,r){se(this,"channels",new Map);se(this,"eventSource");se(this,"timerId");se(this,"source");se(this,"delay",Jr);this.source=e,this.delay=r??this.delay,this.setEventSource()}listen(e){e.addEventListener("error",r=>{this.reconnect(Qr)}),e.addEventListener("ping",r=>{this.reconnect(this.delay)})}cleanup(){var e;this.channels.forEach((r,a)=>{var i;D(r)&&((i=this.eventSource)==null||i.removeEventListener(a,r))}),(e=this.eventSource)==null||e.close(),this.eventSource=void 0}resubscribe(){this.channels.forEach((e,r)=>{var a;D(e)&&((a=this.eventSource)==null||a.addEventListener(r,e))})}reconnect(e){clearTimeout(this.timerId),this.timerId=setTimeout(()=>{console.log(`Reconnecting Event Source ${this.source}`),this.cleanup(),this.setEventSource(),this.resubscribe()},e)}getEventSource(){return new EventSource(this.source,{withCredentials:!0})}setEventSource(){this.eventSource=this.getEventSource(),this.listen(this.eventSource)}addChannel(e,r){var i;const a=this.getChannelHandler(e,r);(i=this.eventSource)==null||i.addEventListener(e,a),this.channels.set(e,a)}removeChannel(e){var a;const r=this.getChannel(e);D(r)&&((a=this.eventSource)==null||a.removeEventListener(e,r),this.channels.delete(e))}hasChannel(e){return D(this.getChannel(e))}getChannel(e){return this.channels.get(e)}getChannelHandler(e,r){return a=>{if(this.reconnect(this.delay),!($(e)||$(r)||$(a.data)))try{r(JSON.parse(a.data))}catch(i){console.warn(i)}}}}let pe;function ea(){return $(pe)&&(pe=new Xr(rn("/api/events"))),(t,e)=>({subscribe(){D(t)&&D(e)&&z(pe.hasChannel(t))&&pe.addChannel(t,e)},unsubscribe(){pe.removeChannel(t)}})}function Ca({content:t}){const e=an(),r=Ct(),{removeError:a,addError:i}=yt(),l=E(n=>n.modules),m=E(n=>n.environment),p=E(n=>n.environments),h=E(n=>n.showConfirmation),f=E(n=>n.confirmations),w=E(n=>n.setShowConfirmation),S=E(n=>n.removeConfirmation),H=E(n=>n.setModels),N=E(n=>n.addRemoteEnvironments),k=E(n=>n.addLocalEnvironment),I=E(n=>n.setEnvironment);let v;z(l.hasOnlyDataCatalog)&&(v=ea());const C=j(n=>n.planApply),c=j(n=>n.planOverview),T=j(n=>n.planCancel),A=j(n=>n.setPlanApply),ge=j(n=>n.setPlanOverview),U=j(n=>n.setPlanCancel),Ae=j(n=>n.setPlanAction),G=J(n=>n.files),Re=J(n=>n.selectedFile),ue=J(n=>n.setProject),de=J(n=>n.setFiles),me=J(n=>n.refreshFiles),_=J(n=>n.findArtifactByPath),xe=J(n=>n.setTests),Pe=J(n=>n.setActiveRange),we=ne(n=>n.storedTabs),Te=ne(n=>n.storedTabId),fe=ne(n=>n.selectTab),Me=ne(n=>n.createTab),$e=ne(n=>n.addTabs),te=ne(n=>n.closeTab),De=ne(n=>n.inTabs),y=E(n=>n.setVersion),{refetch:be,cancel:Bt}=sn(),{refetch:Qe,cancel:zt}=Ft(),{refetch:_t,cancel:Vt}=on(),{refetch:Xe,cancel:qt}=Ye(),{refetch:et,cancel:Wt}=Ue(m.name,{planOptions:{skip_tests:!0,include_unmodified:!0}}),ae=s.useCallback(function(u){const x=Array.from(p).find(g=>g.name===u);$(x)?k(u):I(x)},[p]),tt=s.useCallback(function(u){c.update(u),u.environment!==m.name&&ae(u.environment),ge(c)},[ae,m]),nt=s.useCallback(function(u){var g,M;C.update(u,c),u.environment!==m.name&&ae(u.environment),A(C);const x=je((g=u.meta)==null?void 0:g.done)&&((M=u.meta)==null?void 0:M.status)!==Oe.init;T.isFinished||T.isRunning||z(x)||Xe().then(({data:F})=>{et(),ot(F)})},[T,c,ae,m]),rt=s.useCallback(function(u){var x,g;T.update(u),u.environment!==m.name&&ae(u.environment),U(T),!(ln((x=u.meta)==null?void 0:x.done)||((g=u.meta)==null?void 0:g.status)===Oe.init)&&et()},[ae,m]),at=s.useCallback(function({changes:u,directories:x}){var g,M;u.sort(F=>F.change===He.Deleted?-1:1),u.forEach(({change:F,path:K,file:R})=>{var P,V;if(F===He.Modified){const O=G.get(K);if($(O)||$(R))return;O.update(R)}if(F===He.Deleted){const O=_(K)??G.get(K);if($(O))return;O instanceof Ze&&((P=O.parent)==null||P.removeDirectory(O)),O instanceof gt&&((V=O.parent)==null||V.removeFile(O),De(O)&&te(O))}});for(const F in x){const K=x[F],R=_(F);$(R)||((g=K.directories)==null||g.forEach(P=>{const V=_(P.path);$(V)&&R.addDirectory(new Ze(P,R))}),(M=K.files)==null||M.forEach(P=>{const V=G.get(P.path);$(V)&&R.addFile(new gt(P,R))}),R.directories.sort((P,V)=>P.name>V.name?1:-1),R.files.sort((P,V)=>P.name>V.name?1:-1))}me(),Pe(),Qe().then(({data:F})=>Le(F))},[G]),st=s.useCallback(function(u){const x=G.get(u.path);D(x)&&(x.isFormatted=u.status===Oe.success,me())},[G]),Yt=s.useCallback(function(u){if(cn(we))return;const x=we.map(({id:M,content:F})=>{const K=u.find(P=>P.id===M)??On(M),R=Me(K);return R.file.content=F??R.file.content??"",R}),g=x.find(M=>M.file.id===Te);$e(x),D(g)&&$(Re)&&fe(g)},[fe]);s.useEffect(()=>{be().then(({data:g})=>{y(g==null?void 0:g.version),je(g==null?void 0:g.has_running_task)&&Ae(new Ve({value:ie.RunningTask}))}),Qe().then(({data:g})=>Le(g));const n=v==null?void 0:v("errors",Ut),u=v==null?void 0:v("tests",Gt),x=v==null?void 0:v("models",Le);return x==null||x.subscribe(),l.hasPlans&&(u==null||u.subscribe(),Xe().then(({data:g})=>ot(g))),l.hasErrors&&(n==null||n.subscribe()),l.hasFiles&&_t().then(({data:g})=>{if($(g))return;const M=new Ze(g),F=M.allFiles;Yt(F),de(F),ue(M)}),()=>{Bt(),zt(),x==null||x.unsubscribe(),l.hasPlans&&(qt(),Wt()),l.hasErrors&&(n==null||n.unsubscribe()),l.hasTests&&(u==null||u.unsubscribe()),l.hasFiles&&Vt()}},[l]),s.useEffect(()=>{const n=v==null?void 0:v("plan-apply",nt);return l.hasPlans&&(n==null||n.subscribe()),()=>{l.hasPlans&&(n==null||n.unsubscribe())}},[nt,l]),s.useEffect(()=>{const n=v==null?void 0:v("plan-overview",tt);return l.hasPlans&&(n==null||n.subscribe()),()=>{l.hasPlans&&(n==null||n.unsubscribe())}},[tt,l]),s.useEffect(()=>{const n=v==null?void 0:v("plan-cancel",rt);return l.hasPlans&&(n==null||n.subscribe()),()=>{l.hasPlans&&(n==null||n.unsubscribe())}},[rt,l]),s.useEffect(()=>{const n=v==null?void 0:v("file",at);return n==null||n.subscribe(),()=>{n==null||n.unsubscribe()}},[at]),s.useEffect(()=>{const n=v==null?void 0:v("format-file",st);return n==null||n.subscribe(),()=>{n==null||n.unsubscribe()}},[st]),s.useEffect(()=>{(z(l.isEmpty)&&e.pathname===q.Home||e.pathname==="")&&r(l.defaultNavigationRoute(),{replace:!0})},[e,l]),s.useEffect(()=>{w(f.length>0)},[f]);function Le(n){D(n)&&(a(lt.Models),H(n))}function Ut(n){i(lt.General,n)}function Gt(n){xe(n)}function ot(n){const{environments:u,default_target_environment:x,pinned_environments:g}=n??{};kt(u)&&N(Object.values(u),x,g)}function Se(n){var u;(u=n==null?void 0:n.cancel)==null||u.call(n),w(!1)}const d=f[0];return o.jsxs(un.Page,{layout:"horizontal",children:[l.showModuleNavigation&&o.jsxs(o.Fragment,{children:[o.jsx(mr,{className:"overflow-hidden py-1 px-2 flex flex-col items-center"}),o.jsx(it,{orientation:"vertical"})]}),o.jsxs("div",{className:"flex flex-col overflow-hidden w-full h-full",children:[l.showNavigation&&o.jsxs(o.Fragment,{children:[o.jsx(_r,{}),o.jsx(it,{})]}),t??o.jsx(dn,{}),o.jsxs(L,{show:h,onClose:()=>{Se(d)},afterLeave:()=>{S()},onKeyDown:n=>{n.key==="Escape"&&Se(d)},children:[o.jsxs(L.Main,{children:[D(d==null?void 0:d.headline)&&o.jsx(L.Headline,{children:d==null?void 0:d.headline}),D(d==null?void 0:d.tagline)&&o.jsx(L.Tagline,{children:d==null?void 0:d.tagline}),D(d==null?void 0:d.details)&&o.jsx(L.Details,{details:d==null?void 0:d.details}),D(d==null?void 0:d.description)&&o.jsx(L.Description,{children:d==null?void 0:d.description}),d==null?void 0:d.children]}),o.jsxs(L.Actions,{children:[o.jsx(Be,{className:"font-bold",size:"md",variant:"danger",onClick:n=>{var u;n.stopPropagation(),(u=d==null?void 0:d.action)==null||u.call(d),w(!1)},children:(d==null?void 0:d.yesText)??"Confirm"}),o.jsx(Be,{size:"md",variant:"alternative",onClick:n=>{n.stopPropagation(),Se(d)},children:(d==null?void 0:d.noText)??"Cancel"})]})]})]})]})}export{Ca as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as ue,R as Rt,s as ty,j as Ht,c as Xr,l as Ze,D as ey,v as ks,i as ry,V as ny,C as iy}from"./index-
|
|
1
|
+
import{r as ue,R as Rt,s as ty,j as Ht,c as Xr,l as Ze,D as ey,v as ks,i as ry,V as ny,C as iy}from"./index-Dj0i1-CA.js";import{I as Pu}from"./Input-B-oZ6fGO.js";import{E as co,f as oy,h as Mu}from"./help-B59vE3aE.js";import{U as Ss,z as ay}from"./popover-_Sf0yvOI.js";function Ou({nativeEvent:r}){return window.TouchEvent?r instanceof TouchEvent:"touches"in r}function Ru(r){return r.nativeEvent instanceof MouseEvent}function sy(r){const n=ue.useRef(null),i=ue.useRef(r);return ue.useLayoutEffect(()=>{i.current=r}),ue.useEffect(()=>{const s=c=>{const u=n.current;u&&!u.contains(c.target)&&i.current(c)};return document.addEventListener("mousedown",s),document.addEventListener("touchstart",s),()=>{document.removeEventListener("mousedown",s),document.removeEventListener("touchstart",s)}},[]),n}function nk(r,n={}){const{threshold:i=400,onStart:s,onFinish:c,onCancel:u}=n,f=ue.useRef(!1),m=ue.useRef(!1),g=ue.useRef();return ue.useMemo(()=>{if(typeof r!="function")return{};const w=x=>{!Ru(x)&&!Ou(x)||(s&&s(x),m.current=!0,g.current=setTimeout(()=>{r(x),f.current=!0},i))},S=x=>{!Ru(x)&&!Ou(x)||(f.current?c&&c(x):m.current&&u&&u(x),f.current=!1,m.current=!1,g.current&&window.clearTimeout(g.current))};return{...{onMouseDown:w,onMouseUp:S,onMouseLeave:S},...{onTouchStart:w,onTouchEnd:S}}},[r,i,u,c,s])}/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2018 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as l,R as _,j as n,J as ye,i as pe,c as D,V as pt,a as W,g as Le,H as Ie,W as ft,v as Je,I as vt,l as de,B as Re,m as ce,d as gt,X as xt,b as Ge,Y as ht,Z as bt,F as yt}from"./index-O3mjYpnE.js";import{L as wt}from"./context-DgX0fp2E.js";import Et from"./ModelLineage-zWdKo0U2.js";import{n as J,a0 as Xe,a1 as It,a2 as Ve,B as Ye,a3 as Rt,d as ke,a4 as et,j as jt,K as z,S as Q,y as X,C as kt,o as $,L as H,a5 as Pt,a6 as Nt,a7 as Ct,a8 as $t,a9 as Mt,b as Ue,v as St,aa as Ot,G as Dt,D as Tt,p as Ft,_ as fe,ab as _t,ac as At,N as Bt,ad as Lt,ae as Gt,c as Vt,$ as Pe,W as Ne,X as Ut,Y as zt,w as ue,R as ze,a as j,af as Ht,T as Y,ag as tt,Z as Ce,ah as Zt,ai as Qt,aj as Wt,g as He,r as Ze,ak as rt,z as Kt}from"./popover-CqgMRE0G.js";import{c as N,f as se,C as qt,Q as ve,s as Jt,b as Xt,w as $e,y as Yt,d as er,k as tr,g as oe,H as rr,V as ar,a as at,e as nr,l as sr,T as or,p as lr,j as ir,u as dr,N as cr,U as ur}from"./ListboxShow-HM9_qyrt.js";import{V as we}from"./PlusCircleIcon-CVDO651q.js";import{I as Qe}from"./Input-obuJsD6k.js";import{r as je}from"./floating-ui.react-dom-BH3TFvkM.js";import{F as mr}from"./ChevronDownIcon-D2VL13Ah.js";function pr({title:e,titleId:r,...t},a){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},t),e?l.createElement("title",{id:r},e):null,l.createElement("path",{fillRule:"evenodd",d:"M10 4.5c1.215 0 2.417.055 3.604.162a.68.68 0 0 1 .615.597c.124 1.038.208 2.088.25 3.15l-1.689-1.69a.75.75 0 0 0-1.06 1.061l2.999 3a.75.75 0 0 0 1.06 0l3.001-3a.75.75 0 1 0-1.06-1.06l-1.748 1.747a41.31 41.31 0 0 0-.264-3.386 2.18 2.18 0 0 0-1.97-1.913 41.512 41.512 0 0 0-7.477 0 2.18 2.18 0 0 0-1.969 1.913 41.16 41.16 0 0 0-.16 1.61.75.75 0 1 0 1.495.12c.041-.52.093-1.038.154-1.552a.68.68 0 0 1 .615-.597A40.012 40.012 0 0 1 10 4.5ZM5.281 9.22a.75.75 0 0 0-1.06 0l-3.001 3a.75.75 0 1 0 1.06 1.06l1.748-1.747c.042 1.141.13 2.27.264 3.386a2.18 2.18 0 0 0 1.97 1.913 41.533 41.533 0 0 0 7.477 0 2.18 2.18 0 0 0 1.969-1.913c.064-.534.117-1.071.16-1.61a.75.75 0 1 0-1.495-.12c-.041.52-.093 1.037-.154 1.552a.68.68 0 0 1-.615.597 40.013 40.013 0 0 1-7.208 0 .68.68 0 0 1-.615-.597 39.785 39.785 0 0 1-.25-3.15l1.689 1.69a.75.75 0 0 0 1.06-1.061l-2.999-3Z",clipRule:"evenodd"}))}const nt=l.forwardRef(pr);function fr({title:e,titleId:r,...t},a){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},t),e?l.createElement("title",{id:r},e):null,l.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm3.857-9.809a.75.75 0 0 0-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 1 0-1.06 1.061l2.5 2.5a.75.75 0 0 0 1.137-.089l4-5.5Z",clipRule:"evenodd"}))}const vr=l.forwardRef(fr);function gr({title:e,titleId:r,...t},a){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},t),e?l.createElement("title",{id:r},e):null,l.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16ZM6.75 9.25a.75.75 0 0 0 0 1.5h6.5a.75.75 0 0 0 0-1.5h-6.5Z",clipRule:"evenodd"}))}const st=l.forwardRef(gr);function xr({title:e,titleId:r,...t},a){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},t),e?l.createElement("title",{id:r},e):null,l.createElement("path",{fillRule:"evenodd",d:"M4 10a.75.75 0 0 1 .75-.75h10.5a.75.75 0 0 1 0 1.5H4.75A.75.75 0 0 1 4 10Z",clipRule:"evenodd"}))}const hr=l.forwardRef(xr);function br({title:e,titleId:r,...t},a){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},t),e?l.createElement("title",{id:r},e):null,l.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm.75-11.25a.75.75 0 0 0-1.5 0v2.5h-2.5a.75.75 0 0 0 0 1.5h2.5v2.5a.75.75 0 0 0 1.5 0v-2.5h2.5a.75.75 0 0 0 0-1.5h-2.5v-2.5Z",clipRule:"evenodd"}))}const yr=l.forwardRef(br);function wr({title:e,titleId:r,...t},a){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},t),e?l.createElement("title",{id:r},e):null,l.createElement("path",{d:"M10.75 4.75a.75.75 0 0 0-1.5 0v4.5h-4.5a.75.75 0 0 0 0 1.5h4.5v4.5a.75.75 0 0 0 1.5 0v-4.5h4.5a.75.75 0 0 0 0-1.5h-4.5v-4.5Z"}))}const Er=l.forwardRef(wr);function Ir({title:e,titleId:r,...t},a){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},t),e?l.createElement("title",{id:r},e):null,l.createElement("path",{fillRule:"evenodd",d:"M10.868 2.884c-.321-.772-1.415-.772-1.736 0l-1.83 4.401-4.753.381c-.833.067-1.171 1.107-.536 1.651l3.62 3.102-1.106 4.637c-.194.813.691 1.456 1.405 1.02L10 15.591l4.069 2.485c.713.436 1.598-.207 1.404-1.02l-1.106-4.637 3.62-3.102c.635-.544.297-1.584-.536-1.65l-4.752-.382-1.831-4.401Z",clipRule:"evenodd"}))}const Rr=l.forwardRef(Ir);function jr(e,{container:r,accept:t,walk:a}){let s=l.useRef(t),o=l.useRef(a);l.useEffect(()=>{s.current=t,o.current=a},[t,a]),J(()=>{if(!r||!e)return;let i=Xe(r);if(!i)return;let u=s.current,m=o.current,h=Object.assign(w=>u(w),{acceptNode:u}),d=i.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,h,!1);for(;d.nextNode();)m(d.currentNode)},[r,e,s,o])}var kr=Object.defineProperty,Pr=(e,r,t)=>r in e?kr(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,We=(e,r,t)=>(Pr(e,typeof r!="symbol"?r+"":r,t),t),O=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(O||{}),me=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(me||{}),E=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItems=5]="RegisterItems",e[e.UnregisterItems=6]="UnregisterItems",e[e.SetButtonElement=7]="SetButtonElement",e[e.SetItemsElement=8]="SetItemsElement",e[e.SortItems=9]="SortItems",e))(E||{});function Ke(e,r=t=>t){let t=e.activeItemIndex!==null?e.items[e.activeItemIndex]:null,a=et(r(e.items.slice()),o=>o.dataRef.current.domRef.current),s=t?a.indexOf(t):null;return s===-1&&(s=null),{items:a,activeItemIndex:s}}let Nr={1(e){return e.menuState===1?e:{...e,activeItemIndex:null,pendingFocus:{focus:N.Nothing},menuState:1}},0(e,r){return e.menuState===0?e:{...e,__demoMode:!1,pendingFocus:r.focus,menuState:0}},2:(e,r)=>{var t,a,s,o,i;if(e.menuState===1)return e;let u={...e,searchQuery:"",activationTrigger:(t=r.trigger)!=null?t:1,__demoMode:!1};if(r.focus===N.Nothing)return{...u,activeItemIndex:null};if(r.focus===N.Specific)return{...u,activeItemIndex:e.items.findIndex(d=>d.id===r.id)};if(r.focus===N.Previous){let d=e.activeItemIndex;if(d!==null){let w=e.items[d].dataRef.current.domRef,y=se(r,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:v=>v.id,resolveDisabled:v=>v.dataRef.current.disabled});if(y!==null){let v=e.items[y].dataRef.current.domRef;if(((a=w.current)==null?void 0:a.previousElementSibling)===v.current||((s=v.current)==null?void 0:s.previousElementSibling)===null)return{...u,activeItemIndex:y}}}}else if(r.focus===N.Next){let d=e.activeItemIndex;if(d!==null){let w=e.items[d].dataRef.current.domRef,y=se(r,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:v=>v.id,resolveDisabled:v=>v.dataRef.current.disabled});if(y!==null){let v=e.items[y].dataRef.current.domRef;if(((o=w.current)==null?void 0:o.nextElementSibling)===v.current||((i=v.current)==null?void 0:i.nextElementSibling)===null)return{...u,activeItemIndex:y}}}}let m=Ke(e),h=se(r,{resolveItems:()=>m.items,resolveActiveIndex:()=>m.activeItemIndex,resolveId:d=>d.id,resolveDisabled:d=>d.dataRef.current.disabled});return{...u,...m,activeItemIndex:h}},3:(e,r)=>{let t=e.searchQuery!==""?0:1,a=e.searchQuery+r.value.toLowerCase(),s=(e.activeItemIndex!==null?e.items.slice(e.activeItemIndex+t).concat(e.items.slice(0,e.activeItemIndex+t)):e.items).find(i=>{var u;return((u=i.dataRef.current.textValue)==null?void 0:u.startsWith(a))&&!i.dataRef.current.disabled}),o=s?e.items.indexOf(s):-1;return o===-1||o===e.activeItemIndex?{...e,searchQuery:a}:{...e,searchQuery:a,activeItemIndex:o,activationTrigger:1}},4(e){return e.searchQuery===""?e:{...e,searchQuery:"",searchActiveItemIndex:null}},5:(e,r)=>{let t=e.items.concat(r.items.map(s=>s)),a=e.activeItemIndex;return e.pendingFocus.focus!==N.Nothing&&(a=se(e.pendingFocus,{resolveItems:()=>t,resolveActiveIndex:()=>e.activeItemIndex,resolveId:s=>s.id,resolveDisabled:s=>s.dataRef.current.disabled})),{...e,items:t,activeItemIndex:a,pendingFocus:{focus:N.Nothing},pendingShouldSort:!0}},6:(e,r)=>{let t=e.items,a=[],s=new Set(r.items);for(let[o,i]of t.entries())if(s.has(i.id)&&(a.push(o),s.delete(i.id),s.size===0))break;if(a.length>0){t=t.slice();for(let o of a.reverse())t.splice(o,1)}return{...e,items:t,activationTrigger:1}},7:(e,r)=>e.buttonElement===r.element?e:{...e,buttonElement:r.element},8:(e,r)=>e.itemsElement===r.element?e:{...e,itemsElement:r.element},9:e=>e.pendingShouldSort?{...e,...Ke(e),pendingShouldSort:!1}:e};class Me extends It{constructor(r){super(r),We(this,"actions",{registerItem:Ve(()=>{let t=[],a=new Set;return[(s,o)=>{a.has(o)||(a.add(o),t.push({id:s,dataRef:o}))},()=>(a.clear(),this.send({type:5,items:t.splice(0)}))]}),unregisterItem:Ve(()=>{let t=[];return[a=>t.push(a),()=>this.send({type:6,items:t.splice(0)})]})}),We(this,"selectors",{activeDescendantId(t){var a;let s=t.activeItemIndex,o=t.items;return s===null||(a=o[s])==null?void 0:a.id},isActive(t,a){var s;let o=t.activeItemIndex,i=t.items;return o!==null?((s=i[o])==null?void 0:s.id)===a:!1},shouldScrollIntoView(t,a){return t.__demoMode||t.menuState!==0||t.activationTrigger===0?!1:this.isActive(t,a)}}),this.on(5,()=>{this.disposables.requestAnimationFrame(()=>{this.send({type:9})})});{let t=this.state.id,a=Ye.get(null);this.disposables.add(a.on(Rt.Push,s=>{!a.selectors.isTop(s,t)&&this.state.menuState===0&&this.send({type:1})})),this.on(0,()=>a.actions.push(t)),this.on(1,()=>a.actions.pop(t))}}static new({id:r,__demoMode:t=!1}){return new Me({id:r,__demoMode:t,menuState:t?0:1,buttonElement:null,itemsElement:null,items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1,pendingShouldSort:!1,pendingFocus:{focus:N.Nothing}})}reduce(r,t){return ke(t.type,Nr,r,t)}}const ot=l.createContext(null);function Se(e){let r=l.useContext(ot);if(r===null){let t=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,lt),t}return r}function lt({id:e,__demoMode:r=!1}){let t=l.useMemo(()=>Me.new({id:e,__demoMode:r}),[]);return jt(()=>t.dispose()),t}let Cr=l.Fragment;function $r(e,r){let t=l.useId(),{__demoMode:a=!1,...s}=e,o=lt({id:t,__demoMode:a}),[i,u,m]=Q(o,I=>[I.menuState,I.itemsElement,I.buttonElement]),h=X(r),d=Ye.get(null),w=Q(d,l.useCallback(I=>d.selectors.isTop(I,t),[d,t]));kt(w,[m,u],(I,g)=>{var k;o.send({type:E.CloseMenu}),Zt(g,Qt.Loose)||(I.preventDefault(),(k=o.state.buttonElement)==null||k.focus())});let y=$(()=>{o.send({type:E.CloseMenu})}),v=l.useMemo(()=>({open:i===O.Open,close:y}),[i,y]),c={ref:h},p=H();return _.createElement(Pt,null,_.createElement(ot.Provider,{value:o},_.createElement(Nt,{value:ke(i,{[O.Open]:ue.Open,[O.Closed]:ue.Closed})},p({ourProps:c,theirProps:s,slot:v,defaultTag:Cr,name:"Menu"}))))}let Mr="button";function Sr(e,r){let t=Se("Menu.Button"),a=l.useId(),{id:s=`headlessui-menu-button-${a}`,disabled:o=!1,autoFocus:i=!1,...u}=e,m=l.useRef(null),h=Lt(),d=X(r,m,Gt(),$(x=>t.send({type:E.SetButtonElement,element:x}))),w=$(x=>{switch(x.key){case j.Space:case j.Enter:case j.ArrowDown:x.preventDefault(),x.stopPropagation(),t.send({type:E.OpenMenu,focus:{focus:N.First}});break;case j.ArrowUp:x.preventDefault(),x.stopPropagation(),t.send({type:E.OpenMenu,focus:{focus:N.Last}});break}}),y=$(x=>{switch(x.key){case j.Space:x.preventDefault();break}}),[v,c,p]=Q(t,x=>[x.menuState,x.buttonElement,x.itemsElement]),I=v===O.Open;tr(I,{trigger:c,action:l.useCallback(x=>{if(c!=null&&c.contains(x.target))return oe.Ignore;let b=x.target.closest('[role="menuitem"]:not([data-disabled])');return Vt(b)?oe.Select(b):p!=null&&p.contains(x.target)?oe.Ignore:oe.Close},[c,p]),close:l.useCallback(()=>t.send({type:E.CloseMenu}),[]),select:l.useCallback(x=>x.click(),[])});let g=$(x=>{var b;if(x.button===0){if(Ce(x.currentTarget))return x.preventDefault();o||(v===O.Open?(je.flushSync(()=>t.send({type:E.CloseMenu})),(b=m.current)==null||b.focus({preventScroll:!0})):(x.preventDefault(),t.send({type:E.OpenMenu,focus:{focus:N.Nothing},trigger:me.Pointer})))}}),{isFocusVisible:k,focusProps:A}=Pe({autoFocus:i}),{isHovered:M,hoverProps:B}=Ne({isDisabled:o}),{pressed:T,pressProps:U}=Ut({disabled:o}),P=l.useMemo(()=>({open:v===O.Open,active:T||v===O.Open,disabled:o,hover:M,focus:k,autofocus:i}),[v,M,k,T,o,i]),C=fe(h(),{ref:d,id:s,type:zt(e,m.current),"aria-haspopup":"menu","aria-controls":p==null?void 0:p.id,"aria-expanded":v===O.Open,disabled:o||void 0,autoFocus:i,onKeyDown:w,onKeyUp:y,onPointerDown:g},A,B,U);return H()({ourProps:C,theirProps:u,slot:P,defaultTag:Mr,name:"Menu.Button"})}let Or="div",Dr=ze.RenderStrategy|ze.Static;function Tr(e,r){let t=l.useId(),{id:a=`headlessui-menu-items-${t}`,anchor:s,portal:o=!1,modal:i=!0,transition:u=!1,...m}=e,h=Ct(s),d=Se("Menu.Items"),[w,y]=$t(h),v=Mt(),[c,p]=l.useState(null),I=X(r,h?w:null,$(f=>d.send({type:E.SetItemsElement,element:f})),p),[g,k]=Q(d,f=>[f.menuState,f.buttonElement]),A=Ue(k),M=Ue(c);h&&(o=!0);let B=St(),[T,U]=Ot(u,c,B!==null?(B&ue.Open)===ue.Open:g===O.Open);Dt(T,k,()=>{d.send({type:E.CloseMenu})});let P=Q(d,f=>f.__demoMode),C=P?!1:i&&g===O.Open;Tt(C,M);let x=P?!1:i&&g===O.Open;Yt(x,{allowed:l.useCallback(()=>[k,c],[k,c])});let b=g!==O.Open,L=er(b,k)?!1:T;l.useEffect(()=>{let f=c;f&&g===O.Open&&f!==(M==null?void 0:M.activeElement)&&f.focus({preventScroll:!0})},[g,c,M]),jr(g===O.Open,{container:c,accept(f){return f.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:f.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(f){f.setAttribute("role","none")}});let G=Ft(),ge=$(f=>{var K,ae,R;switch(G.dispose(),f.key){case j.Space:if(d.state.searchQuery!=="")return f.preventDefault(),f.stopPropagation(),d.send({type:E.Search,value:f.key});case j.Enter:if(f.preventDefault(),f.stopPropagation(),d.state.activeItemIndex!==null){let{dataRef:q}=d.state.items[d.state.activeItemIndex];(ae=(K=q.current)==null?void 0:K.domRef.current)==null||ae.click()}d.send({type:E.CloseMenu}),tt(d.state.buttonElement);break;case j.ArrowDown:return f.preventDefault(),f.stopPropagation(),d.send({type:E.GoToItem,focus:N.Next});case j.ArrowUp:return f.preventDefault(),f.stopPropagation(),d.send({type:E.GoToItem,focus:N.Previous});case j.Home:case j.PageUp:return f.preventDefault(),f.stopPropagation(),d.send({type:E.GoToItem,focus:N.First});case j.End:case j.PageDown:return f.preventDefault(),f.stopPropagation(),d.send({type:E.GoToItem,focus:N.Last});case j.Escape:f.preventDefault(),f.stopPropagation(),je.flushSync(()=>d.send({type:E.CloseMenu})),(R=d.state.buttonElement)==null||R.focus({preventScroll:!0});break;case j.Tab:f.preventDefault(),f.stopPropagation(),je.flushSync(()=>d.send({type:E.CloseMenu})),Ht(d.state.buttonElement,f.shiftKey?Y.Previous:Y.Next);break;default:f.key.length===1&&(d.send({type:E.Search,value:f.key}),G.setTimeout(()=>d.send({type:E.ClearSearch}),350));break}}),re=$(f=>{switch(f.key){case j.Space:f.preventDefault();break}}),xe=l.useMemo(()=>({open:g===O.Open}),[g]),he=fe(h?v():{},{"aria-activedescendant":Q(d,d.selectors.activeDescendantId),"aria-labelledby":Q(d,f=>{var K;return(K=f.buttonElement)==null?void 0:K.id}),id:a,onKeyDown:ge,onKeyUp:re,role:"menu",tabIndex:g===O.Open?0:void 0,ref:I,style:{...m.style,...y,"--button-width":At(k,!0).width},..._t(U)}),be=H();return _.createElement(Bt,{enabled:o?e.static||T:!1,ownerDocument:A},be({ourProps:he,theirProps:m,slot:xe,defaultTag:Or,features:Dr,visible:L,name:"Menu.Items"}))}let Fr=l.Fragment;function _r(e,r){let t=l.useId(),{id:a=`headlessui-menu-item-${t}`,disabled:s=!1,...o}=e,i=Se("Menu.Item"),u=Q(i,b=>i.selectors.isActive(b,a)),m=l.useRef(null),h=X(r,m),d=Q(i,b=>i.selectors.shouldScrollIntoView(b,a));J(()=>{if(d)return Wt().requestAnimationFrame(()=>{var b,L;(L=(b=m.current)==null?void 0:b.scrollIntoView)==null||L.call(b,{block:"nearest"})})},[d,m]);let w=Jt(m),y=l.useRef({disabled:s,domRef:m,get textValue(){return w()}});J(()=>{y.current.disabled=s},[y,s]),J(()=>(i.actions.registerItem(a,y),()=>i.actions.unregisterItem(a)),[y,a]);let v=$(()=>{i.send({type:E.CloseMenu})}),c=$(b=>{if(s)return b.preventDefault();i.send({type:E.CloseMenu}),tt(i.state.buttonElement)}),p=$(()=>{if(s)return i.send({type:E.GoToItem,focus:N.Nothing});i.send({type:E.GoToItem,focus:N.Specific,id:a})}),I=Xt(),g=$(b=>{I.update(b),!s&&(u||i.send({type:E.GoToItem,focus:N.Specific,id:a,trigger:me.Pointer}))}),k=$(b=>{I.wasMoved(b)&&(s||u||i.send({type:E.GoToItem,focus:N.Specific,id:a,trigger:me.Pointer}))}),A=$(b=>{I.wasMoved(b)&&(s||u&&i.send({type:E.GoToItem,focus:N.Nothing}))}),[M,B]=ve(),[T,U]=$e(),P=l.useMemo(()=>({active:u,focus:u,disabled:s,close:v}),[u,s,v]),C={id:a,ref:h,role:"menuitem",tabIndex:s===!0?void 0:-1,"aria-disabled":s===!0?!0:void 0,"aria-labelledby":M,"aria-describedby":T,disabled:void 0,onClick:c,onFocus:p,onPointerEnter:g,onMouseEnter:g,onPointerMove:k,onMouseMove:k,onPointerLeave:A,onMouseLeave:A},x=H();return _.createElement(B,null,_.createElement(U,null,x({ourProps:C,theirProps:o,slot:P,defaultTag:Fr,name:"Menu.Item"})))}let Ar="div";function Br(e,r){let[t,a]=ve(),s=e,o={ref:r,"aria-labelledby":t,role:"group"},i=H();return _.createElement(a,null,i({ourProps:o,theirProps:s,slot:{},defaultTag:Ar,name:"Menu.Section"}))}let Lr="header";function Gr(e,r){let t=l.useId(),{id:a=`headlessui-menu-heading-${t}`,...s}=e,o=qt();J(()=>o.register(a),[a,o.register]);let i={id:a,ref:r,role:"presentation",...o.props};return H()({ourProps:i,theirProps:s,slot:{},defaultTag:Lr,name:"Menu.Heading"})}let Vr="div";function Ur(e,r){let t=e,a={ref:r,role:"separator"};return H()({ourProps:a,theirProps:t,slot:{},defaultTag:Vr,name:"Menu.Separator"})}let zr=z($r),Hr=z(Sr),Zr=z(Tr),Qr=z(_r),Wr=z(Br),Kr=z(Gr),qr=z(Ur),le=Object.assign(zr,{Button:Hr,Items:Zr,Item:Qr,Section:Wr,Heading:Kr,Separator:qr});var Jr=(e=>(e[e.RegisterOption=0]="RegisterOption",e[e.UnregisterOption=1]="UnregisterOption",e))(Jr||{});let Xr={0(e,r){let t=[...e.options,{id:r.id,element:r.element,propsRef:r.propsRef}];return{...e,options:et(t,a=>a.element.current)}},1(e,r){let t=e.options.slice(),a=e.options.findIndex(s=>s.id===r.id);return a===-1?e:(t.splice(a,1),{...e,options:t})}},Oe=l.createContext(null);Oe.displayName="RadioGroupDataContext";function De(e){let r=l.useContext(Oe);if(r===null){let t=new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,De),t}return r}let Te=l.createContext(null);Te.displayName="RadioGroupActionsContext";function Fe(e){let r=l.useContext(Te);if(r===null){let t=new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Fe),t}return r}function Yr(e,r){return ke(r.type,Xr,e,r)}let ea="div";function ta(e,r){let t=l.useId(),a=at(),{id:s=`headlessui-radiogroup-${t}`,value:o,form:i,name:u,onChange:m,by:h,disabled:d=a||!1,defaultValue:w,tabIndex:y=0,...v}=e,c=nr(h),[p,I]=l.useReducer(Yr,{options:[]}),g=p.options,[k,A]=ve(),[M,B]=$e(),T=l.useRef(null),U=X(T,r),P=sr(w),[C,x]=or(o,m,P),b=l.useMemo(()=>g.find(R=>!R.propsRef.current.disabled),[g]),L=l.useMemo(()=>g.some(R=>c(R.propsRef.current.value,C)),[g,C]),G=$(R=>{var q;if(d||c(R,C))return!1;let Z=(q=g.find(ne=>c(ne.propsRef.current.value,R)))==null?void 0:q.propsRef.current;return Z!=null&&Z.disabled?!1:(x==null||x(R),!0)}),ge=$(R=>{let q=T.current;if(!q)return;let Z=Xe(q),ne=g.filter(V=>V.propsRef.current.disabled===!1).map(V=>V.element.current);switch(R.key){case j.Enter:lr(R.currentTarget);break;case j.ArrowLeft:case j.ArrowUp:if(R.preventDefault(),R.stopPropagation(),He(ne,Y.Previous|Y.WrapAround)===Ze.Success){let V=g.find(ee=>ee.element.current===(Z==null?void 0:Z.activeElement));V&&G(V.propsRef.current.value)}break;case j.ArrowRight:case j.ArrowDown:if(R.preventDefault(),R.stopPropagation(),He(ne,Y.Next|Y.WrapAround)===Ze.Success){let V=g.find(ee=>ee.element.current===(Z==null?void 0:Z.activeElement));V&&G(V.propsRef.current.value)}break;case j.Space:{R.preventDefault(),R.stopPropagation();let V=g.find(ee=>ee.element.current===(Z==null?void 0:Z.activeElement));V&&G(V.propsRef.current.value)}break}}),re=$(R=>(I({type:0,...R}),()=>I({type:1,id:R.id}))),xe=l.useMemo(()=>({value:C,firstOption:b,containsCheckedOption:L,disabled:d,compare:c,tabIndex:y,...p}),[C,b,L,d,c,y,p]),he=l.useMemo(()=>({registerOption:re,change:G}),[re,G]),be={ref:U,id:s,role:"radiogroup","aria-labelledby":k,"aria-describedby":M,onKeyDown:ge},f=l.useMemo(()=>({value:C}),[C]),K=l.useCallback(()=>{if(P!==void 0)return G(P)},[G,P]),ae=H();return _.createElement(B,{name:"RadioGroup.Description"},_.createElement(A,{name:"RadioGroup.Label"},_.createElement(Te.Provider,{value:he},_.createElement(Oe.Provider,{value:xe},u!=null&&_.createElement(ir,{disabled:d,data:{[u]:C||"on"},overrides:{type:"radio",checked:C!=null},form:i,onReset:K}),ae({ourProps:be,theirProps:v,slot:f,defaultTag:ea,name:"RadioGroup"})))))}let ra="div";function aa(e,r){var t;let a=De("RadioGroup.Option"),s=Fe("RadioGroup.Option"),o=l.useId(),{id:i=`headlessui-radiogroup-option-${o}`,value:u,disabled:m=a.disabled||!1,autoFocus:h=!1,...d}=e,w=l.useRef(null),y=X(w,r),[v,c]=ve(),[p,I]=$e(),g=rt({value:u,disabled:m});J(()=>s.registerOption({id:i,element:w,propsRef:g}),[i,s,w,g]);let k=$(L=>{var G;if(Ce(L.currentTarget))return L.preventDefault();s.change(u)&&((G=w.current)==null||G.focus())}),A=((t=a.firstOption)==null?void 0:t.id)===i,{isFocusVisible:M,focusProps:B}=Pe({autoFocus:h}),{isHovered:T,hoverProps:U}=Ne({isDisabled:m}),P=a.compare(a.value,u),C=fe({ref:y,id:i,role:"radio","aria-checked":P?"true":"false","aria-labelledby":v,"aria-describedby":p,"aria-disabled":m?!0:void 0,tabIndex:m?-1:P||!a.containsCheckedOption&&A?a.tabIndex:-1,onClick:m?void 0:k,autoFocus:h},B,U),x=l.useMemo(()=>({checked:P,disabled:m,active:M,hover:T,focus:M,autofocus:h}),[P,m,T,M,h]),b=H();return _.createElement(I,{name:"RadioGroup.Description"},_.createElement(c,{name:"RadioGroup.Label"},b({ourProps:C,theirProps:d,slot:x,defaultTag:ra,name:"RadioGroup.Option"})))}let na="span";function sa(e,r){var t;let a=De("Radio"),s=Fe("Radio"),o=l.useId(),i=dr(),u=at(),{id:m=i||`headlessui-radio-${o}`,value:h,disabled:d=a.disabled||u||!1,autoFocus:w=!1,...y}=e,v=l.useRef(null),c=X(v,r),p=cr(),I=ur(),g=rt({value:h,disabled:d});J(()=>s.registerOption({id:m,element:v,propsRef:g}),[m,s,v,g]);let k=$(b=>{var L;if(Ce(b.currentTarget))return b.preventDefault();s.change(h)&&((L=v.current)==null||L.focus())}),{isFocusVisible:A,focusProps:M}=Pe({autoFocus:w}),{isHovered:B,hoverProps:T}=Ne({isDisabled:d}),U=((t=a.firstOption)==null?void 0:t.id)===m,P=a.compare(a.value,h),C=fe({ref:c,id:m,role:"radio","aria-checked":P?"true":"false","aria-labelledby":p,"aria-describedby":I,"aria-disabled":d?!0:void 0,tabIndex:d?-1:P||!a.containsCheckedOption&&U?a.tabIndex:-1,autoFocus:w,onClick:d?void 0:k},M,T),x=l.useMemo(()=>({checked:P,disabled:d,hover:B,focus:A,autofocus:w}),[P,d,B,A,w]);return H()({ourProps:C,theirProps:y,slot:x,defaultTag:na,name:"Radio"})}let oa=z(ta),la=z(aa),ia=z(sa),da=ar,ca=rr,ie=Object.assign(oa,{Option:la,Radio:ia,Label:da,Description:ca});const F={ResetPlanOptions:"reset-plan-options",ResetPlanDates:"reset-plan-dates",ResetCategories:"reset-categories",PlanOptions:"plan-options",Dates:"dates",DateStart:"date-start",DateEnd:"date-end",Category:"category",External:"external",ResetTestsReport:"reset-tests-report",TestsReportErrors:"tests-report-errors",TestsReportMessages:"tests-report-messages"},S={Add:"add",Remove:"remove",Direct:"direct",Indirect:"indirect",Metadata:"metadata",Default:"default"},Ee={Breaking:"breaking",NonBreaking:"non-breaking",ForwardOnly:"forward-only"},[ua,ma]=ga(),it={skip_tests:!1,no_gaps:!1,skip_backfill:!1,forward_only:!1,auto_apply:!1,no_auto_categorization:!1,include_unmodified:!0,restate_models:void 0,create_from:"prod"},dt={start:void 0,end:void 0},_e={...dt,...it,categories:ma,defaultCategory:ua,change_categorization:new Map,virtualUpdateDescription:"All changes and their downstream dependencies can be fully previewed before they get promoted. If during plan creation no data gaps have been detected and only references to new model versions need to be updated, then such an update is referred to as a Virtual Update. Virtual Updates impose no additional runtime overhead or cost.",isInitialPlanRun:!1,errors:[],testsReportErrors:void 0,testsReportMessages:void 0},ct=l.createContext(_e),ut=l.createContext(()=>{});function Ma({children:e}){const[r,t]=l.useReducer(fa,Object.assign(_e));return n.jsx(ct.Provider,{value:Object.assign(r),children:n.jsx(ut.Provider,{value:t,children:e})})}function Ae(){return l.useContext(ct)}function pa(){return l.useContext(ut)}function fa(e,r){return r=Array.isArray(r)?r:[r],r.reduce(va,e)}function va(e=_e,{type:r,...t}){switch(r){case F.ResetCategories:return Object.assign({},e,{change_categorization:new Map});case F.ResetPlanDates:return Object.assign({},e,dt);case F.ResetPlanOptions:return Object.assign({},e,it);case F.ResetTestsReport:return Object.assign({},e,{testsReportErrors:void 0,testsReportMessages:void 0});case F.PlanOptions:return Object.assign({},e,t);case F.Dates:return Object.assign({},e,{start:t.start,end:t.end});case F.External:return Object.assign({},e,{isInitialPlanRun:t.isInitialPlanRun??!1});case F.DateStart:return Object.assign({},e,{start:t.start});case F.DateEnd:return Object.assign({},e,{end:t.end});case F.TestsReportErrors:return Object.assign({},e,{testsReportErrors:t.testsReportErrors});case F.TestsReportMessages:return Object.assign({},e,{testsReportMessages:t.testsReportMessages});case F.Category:{const{change:a,category:s}=t;return pe(a==null?void 0:a.name)&&e.change_categorization.set(a.name,{category:s,change:a}),Object.assign({},e,{change_categorization:new Map(e.change_categorization)})}default:return Object.assign({},e)}}function ga(){const e={id:Ee.Breaking,name:"Breaking Change",description:"It will rebuild all models",value:ye.NUMBER_1},r=[e,{id:Ee.NonBreaking,name:"Non-Breaking Change",description:"It will exclude all indirect models caused by this change",value:ye.NUMBER_2},{id:Ee.ForwardOnly,name:"Forward-Only Change",description:"The change requires no rebuilding",value:ye.NUMBER_3}];return[e,r]}function te({children:e,headline:r,type:t,className:a}){return n.jsxs("div",{className:D("flex flex-col rounded-md p-4 text-xs",t===S.Add&&"bg-success-5",t===S.Remove&&"bg-danger-5",t===S.Direct&&"bg-secondary-5",t===S.Indirect&&"bg-warning-5",t===S.Default&&"bg-neutral-5",a),children:[pe(r)&&n.jsx("h4",{className:D("mb-2 font-bold whitespace-nowrap",t===S.Add&&"text-success-600 dark:text-success-300",t===S.Remove&&"text-danger-600 dark:text-danger-300",t===S.Direct&&"text-secondary-600 dark:text-secondary-300",t===S.Indirect&&"text-warning-600 dark:text-warning-300",t===S.Default&&"text-neutral-600 dark:text-neutral-300"),children:r}),e]})}function xa({changes:e=[],type:r}){return n.jsx("ul",{children:e.map(t=>n.jsxs("li",{className:D("flex items-center",r===S.Add&&"text-success-600 dark:text-success-300",r===S.Remove&&"text-danger-600 dark:text-danger-300",r===S.Direct&&"text-secondary-600 dark:text-secondary-300",r===S.Indirect&&"text-warning-600 dark:text-warning-300",r===S.Default&&"text-neutral-600 dark:text-neutral-300"),children:[r===S.Add?n.jsx(Er,{className:"h-3 mr-2"}):r===S.Remove?n.jsx(hr,{className:"h-3 mr-2"}):n.jsx(nt,{className:"h-4 mr-2"}),n.jsx("span",{title:t.displayViewName,className:"w-full whitespace-nowrap text-ellipsis overflow-hidden",children:pt(t.displayViewName,50,25)})]},t.name))})}function ha({changes:e=[],disabled:r=!1}){const t=pa(),{categories:a}=Ae(),s=W(o=>o.models);return l.useEffect(()=>{t(e.map(o=>({type:F.Category,category:a.find(({value:i})=>i===o.change_category),change:o})))},[e]),n.jsx("ul",{children:e.map(o=>n.jsx("li",{className:"text-secondary-500 dark:text-primary-500 mt-1",children:n.jsx(we,{children:({open:i})=>n.jsxs(n.Fragment,{children:[n.jsxs(we.Button,{className:"flex items-center w-full justify-between rounded-lg text-left",children:[n.jsx(Be,{className:"w-full",change:o}),(()=>{const u=i?st:yr;return n.jsx(u,{className:"max-h-[1rem] min-w-[1rem] dark:text-primary-500"})})()]}),n.jsxs(we.Panel,{className:"px-4 mb-4 overflow-hidden",children:[Le(o.direct)&&n.jsx(qe,{type:"direct",models:o.direct,className:"mt-2 ml-4"}),Le(o.indirect)&&n.jsx(qe,{type:"indirect",models:o.indirect,className:"ml-4"}),n.jsx(Ie,{className:"border-secondary-20 mt-2"}),n.jsx(ba,{change:o,disabled:r,onChange:u=>{t({type:F.Category,category:a.find(({value:m})=>m===u),change:o})}}),n.jsx(Ie,{className:"border-secondary-20 mt-2"}),n.jsxs("div",{className:"flex flex-col w-full h-full overflow-hidden overflow-y-auto hover:scrollbar scrollbar--vertical scrollbar--horizontal",children:[pe(o)&&ft(o.diff)&&n.jsx(mt,{diff:o.diff}),(()=>{var m,h;const u=s.get(o.name);return Je(u)?n.jsx(n.Fragment,{}):n.jsx("div",{className:"h-[16rem] bg-theme-lighter rounded-2xl overflow-hidden my-4",children:n.jsx(wt,{showColumns:!1,showConnected:!1,showControls:!1,children:n.jsx(Et,{model:u,highlightedNodes:{"border-4 border-warning-500 bg-warning-500 text-warning-500":((m=o.indirect)==null?void 0:m.map(d=>d.name))??[],"border-4 border-secondary-500 dark:border-primary-500 bg-secondary-500 dark:bg-primary-500 text-bg-secondary-500 dark:bg-primary-500 ring-8 ring-brand-50":[o.name],"border-4 border-secondary-500 dark:border-primary-500 bg-secondary-500 dark:bg-primary-500 text-bg-secondary-500 dark:bg-primary-500":((h=o.direct)==null?void 0:h.map(d=>d.name))??[],"*":["border-4 border-neutral-500 bg-neutral-500 text-neutral-600 dark:text-light"]}})})})})()]})]})]})})},o.name))})}function ba({change:e,disabled:r=!1,onChange:t}){var o,i;const{change_categorization:a,categories:s}=Ae();return n.jsx(ie,{className:D("flex flex-col mt-2",r&&"pointer-events-none opacity-50 cursor-not-allowed"),disabled:r,defaultValue:((i=(o=a.get(e.name))==null?void 0:o.category)==null?void 0:i.value)??e.change_category,onChange:t,children:s.map(u=>n.jsx(ie.Option,{value:u.value,className:()=>D("relative flex rounded-md"),children:({checked:m})=>n.jsxs("div",{className:D("text-sm flex items-center px-2 py-1 w-full rounded-lg",m?"text-secondary-500 dark:text-primary-300":"text-prose"),children:[n.jsx("div",{className:"mt-[0.125rem] mr-2 border-2 border-neutral-400 min-w-[1rem] h-4 rounded-full flex justify-center items-center",children:m&&n.jsx("span",{className:"inline-block w-2 h-2 bg-secondary-500 dark:bg-primary-300 rounded-full"})}),n.jsxs("div",{children:[n.jsx(ie.Label,{as:"p",children:u.name}),n.jsx(ie.Description,{as:"span",className:"text-xs text-neutral-500",children:u.description})]})]})},u.name))})}function ya({changes:e=[]}){return n.jsx("ul",{children:e.map(r=>n.jsx("li",{className:"text-warning-700 dark:text-warning-500",children:n.jsx(Be,{change:r})},r.name))})}function Be({change:e,className:r}){var s;const{change_categorization:t}=Ae(),a=(s=t.get(e.name))==null?void 0:s.category;return n.jsxs("div",{className:D("flex items-center font-bold",r),children:[n.jsxs("span",{className:"flex w-full whitespace-nowrap text-ellipsis overflow-hidden",children:[n.jsx(nt,{className:"h-4 mr-2"}),e.displayViewName]}),Je(a)?pe(e.indirect)&&n.jsx("span",{className:"ml-2 px-1 bg-warning-500 text-warning-100 dark:bg-warning-400 dark:text-warning-800 rounded whitespace-nowrap mr-2",children:"Categorize Manually"}):n.jsx("span",{className:"ml-2 px-1 bg-neutral-400 text-neutral-100 dark:bg-neutral-400 dark:text-neutral-800 rounded whitespace-nowrap mr-2",children:a.name})]})}function qe({type:e,models:r,className:t}){return n.jsx("ul",{className:D(e==="indirect"&&"text-warning-700 dark:text-warning-500",e==="direct"&&"text-secondary-500 dark:text-primary-500",t),children:r.map(a=>n.jsxs("li",{className:"flex",children:[n.jsx("span",{className:"h-3 w-3 border-l-2 border-b-2 inline-block mr-2"}),a.displayViewName]},a.name))})}function mt({diff:e}){return n.jsx("div",{className:"my-4 bg-dark-lighter rounded-2xl overflow-hidden",children:n.jsx("pre",{className:"p-4 text-primary-100 max-h-[30vh] text-xs overflow-auto hover:scrollbar scrollbar--vertical scrollbar--horizontal",children:e.split(`
|
|
1
|
+
import{r as l,R as _,j as n,J as ye,i as pe,c as D,V as pt,a as W,g as Le,H as Ie,W as ft,v as Je,I as vt,l as de,B as Re,m as ce,d as gt,X as xt,b as Ge,Y as ht,Z as bt,F as yt}from"./index-Dj0i1-CA.js";import{L as wt}from"./context-BctCsyGb.js";import Et from"./ModelLineage-DkIFAYo4.js";import{n as J,a0 as Xe,a1 as It,a2 as Ve,B as Ye,a3 as Rt,d as ke,a4 as et,j as jt,K as z,S as Q,y as X,C as kt,o as $,L as H,a5 as Pt,a6 as Nt,a7 as Ct,a8 as $t,a9 as Mt,b as Ue,v as St,aa as Ot,G as Dt,D as Tt,p as Ft,_ as fe,ab as _t,ac as At,N as Bt,ad as Lt,ae as Gt,c as Vt,$ as Pe,W as Ne,X as Ut,Y as zt,w as ue,R as ze,a as j,af as Ht,T as Y,ag as tt,Z as Ce,ah as Zt,ai as Qt,aj as Wt,g as He,r as Ze,ak as rt,z as Kt}from"./popover-_Sf0yvOI.js";import{c as N,f as se,C as qt,Q as ve,s as Jt,b as Xt,w as $e,y as Yt,d as er,k as tr,g as oe,H as rr,V as ar,a as at,e as nr,l as sr,T as or,p as lr,j as ir,u as dr,N as cr,U as ur}from"./ListboxShow-BE5-xevs.js";import{V as we}from"./PlusCircleIcon-DVXAHG8_.js";import{I as Qe}from"./Input-B-oZ6fGO.js";import{r as je}from"./floating-ui.react-dom-CjE-JNW1.js";import{F as mr}from"./ChevronDownIcon-MK_nrjD_.js";function pr({title:e,titleId:r,...t},a){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},t),e?l.createElement("title",{id:r},e):null,l.createElement("path",{fillRule:"evenodd",d:"M10 4.5c1.215 0 2.417.055 3.604.162a.68.68 0 0 1 .615.597c.124 1.038.208 2.088.25 3.15l-1.689-1.69a.75.75 0 0 0-1.06 1.061l2.999 3a.75.75 0 0 0 1.06 0l3.001-3a.75.75 0 1 0-1.06-1.06l-1.748 1.747a41.31 41.31 0 0 0-.264-3.386 2.18 2.18 0 0 0-1.97-1.913 41.512 41.512 0 0 0-7.477 0 2.18 2.18 0 0 0-1.969 1.913 41.16 41.16 0 0 0-.16 1.61.75.75 0 1 0 1.495.12c.041-.52.093-1.038.154-1.552a.68.68 0 0 1 .615-.597A40.012 40.012 0 0 1 10 4.5ZM5.281 9.22a.75.75 0 0 0-1.06 0l-3.001 3a.75.75 0 1 0 1.06 1.06l1.748-1.747c.042 1.141.13 2.27.264 3.386a2.18 2.18 0 0 0 1.97 1.913 41.533 41.533 0 0 0 7.477 0 2.18 2.18 0 0 0 1.969-1.913c.064-.534.117-1.071.16-1.61a.75.75 0 1 0-1.495-.12c-.041.52-.093 1.037-.154 1.552a.68.68 0 0 1-.615.597 40.013 40.013 0 0 1-7.208 0 .68.68 0 0 1-.615-.597 39.785 39.785 0 0 1-.25-3.15l1.689 1.69a.75.75 0 0 0 1.06-1.061l-2.999-3Z",clipRule:"evenodd"}))}const nt=l.forwardRef(pr);function fr({title:e,titleId:r,...t},a){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},t),e?l.createElement("title",{id:r},e):null,l.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm3.857-9.809a.75.75 0 0 0-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 1 0-1.06 1.061l2.5 2.5a.75.75 0 0 0 1.137-.089l4-5.5Z",clipRule:"evenodd"}))}const vr=l.forwardRef(fr);function gr({title:e,titleId:r,...t},a){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},t),e?l.createElement("title",{id:r},e):null,l.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16ZM6.75 9.25a.75.75 0 0 0 0 1.5h6.5a.75.75 0 0 0 0-1.5h-6.5Z",clipRule:"evenodd"}))}const st=l.forwardRef(gr);function xr({title:e,titleId:r,...t},a){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},t),e?l.createElement("title",{id:r},e):null,l.createElement("path",{fillRule:"evenodd",d:"M4 10a.75.75 0 0 1 .75-.75h10.5a.75.75 0 0 1 0 1.5H4.75A.75.75 0 0 1 4 10Z",clipRule:"evenodd"}))}const hr=l.forwardRef(xr);function br({title:e,titleId:r,...t},a){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},t),e?l.createElement("title",{id:r},e):null,l.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm.75-11.25a.75.75 0 0 0-1.5 0v2.5h-2.5a.75.75 0 0 0 0 1.5h2.5v2.5a.75.75 0 0 0 1.5 0v-2.5h2.5a.75.75 0 0 0 0-1.5h-2.5v-2.5Z",clipRule:"evenodd"}))}const yr=l.forwardRef(br);function wr({title:e,titleId:r,...t},a){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},t),e?l.createElement("title",{id:r},e):null,l.createElement("path",{d:"M10.75 4.75a.75.75 0 0 0-1.5 0v4.5h-4.5a.75.75 0 0 0 0 1.5h4.5v4.5a.75.75 0 0 0 1.5 0v-4.5h4.5a.75.75 0 0 0 0-1.5h-4.5v-4.5Z"}))}const Er=l.forwardRef(wr);function Ir({title:e,titleId:r,...t},a){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},t),e?l.createElement("title",{id:r},e):null,l.createElement("path",{fillRule:"evenodd",d:"M10.868 2.884c-.321-.772-1.415-.772-1.736 0l-1.83 4.401-4.753.381c-.833.067-1.171 1.107-.536 1.651l3.62 3.102-1.106 4.637c-.194.813.691 1.456 1.405 1.02L10 15.591l4.069 2.485c.713.436 1.598-.207 1.404-1.02l-1.106-4.637 3.62-3.102c.635-.544.297-1.584-.536-1.65l-4.752-.382-1.831-4.401Z",clipRule:"evenodd"}))}const Rr=l.forwardRef(Ir);function jr(e,{container:r,accept:t,walk:a}){let s=l.useRef(t),o=l.useRef(a);l.useEffect(()=>{s.current=t,o.current=a},[t,a]),J(()=>{if(!r||!e)return;let i=Xe(r);if(!i)return;let u=s.current,m=o.current,h=Object.assign(w=>u(w),{acceptNode:u}),d=i.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,h,!1);for(;d.nextNode();)m(d.currentNode)},[r,e,s,o])}var kr=Object.defineProperty,Pr=(e,r,t)=>r in e?kr(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,We=(e,r,t)=>(Pr(e,typeof r!="symbol"?r+"":r,t),t),O=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(O||{}),me=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(me||{}),E=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItems=5]="RegisterItems",e[e.UnregisterItems=6]="UnregisterItems",e[e.SetButtonElement=7]="SetButtonElement",e[e.SetItemsElement=8]="SetItemsElement",e[e.SortItems=9]="SortItems",e))(E||{});function Ke(e,r=t=>t){let t=e.activeItemIndex!==null?e.items[e.activeItemIndex]:null,a=et(r(e.items.slice()),o=>o.dataRef.current.domRef.current),s=t?a.indexOf(t):null;return s===-1&&(s=null),{items:a,activeItemIndex:s}}let Nr={1(e){return e.menuState===1?e:{...e,activeItemIndex:null,pendingFocus:{focus:N.Nothing},menuState:1}},0(e,r){return e.menuState===0?e:{...e,__demoMode:!1,pendingFocus:r.focus,menuState:0}},2:(e,r)=>{var t,a,s,o,i;if(e.menuState===1)return e;let u={...e,searchQuery:"",activationTrigger:(t=r.trigger)!=null?t:1,__demoMode:!1};if(r.focus===N.Nothing)return{...u,activeItemIndex:null};if(r.focus===N.Specific)return{...u,activeItemIndex:e.items.findIndex(d=>d.id===r.id)};if(r.focus===N.Previous){let d=e.activeItemIndex;if(d!==null){let w=e.items[d].dataRef.current.domRef,y=se(r,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:v=>v.id,resolveDisabled:v=>v.dataRef.current.disabled});if(y!==null){let v=e.items[y].dataRef.current.domRef;if(((a=w.current)==null?void 0:a.previousElementSibling)===v.current||((s=v.current)==null?void 0:s.previousElementSibling)===null)return{...u,activeItemIndex:y}}}}else if(r.focus===N.Next){let d=e.activeItemIndex;if(d!==null){let w=e.items[d].dataRef.current.domRef,y=se(r,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:v=>v.id,resolveDisabled:v=>v.dataRef.current.disabled});if(y!==null){let v=e.items[y].dataRef.current.domRef;if(((o=w.current)==null?void 0:o.nextElementSibling)===v.current||((i=v.current)==null?void 0:i.nextElementSibling)===null)return{...u,activeItemIndex:y}}}}let m=Ke(e),h=se(r,{resolveItems:()=>m.items,resolveActiveIndex:()=>m.activeItemIndex,resolveId:d=>d.id,resolveDisabled:d=>d.dataRef.current.disabled});return{...u,...m,activeItemIndex:h}},3:(e,r)=>{let t=e.searchQuery!==""?0:1,a=e.searchQuery+r.value.toLowerCase(),s=(e.activeItemIndex!==null?e.items.slice(e.activeItemIndex+t).concat(e.items.slice(0,e.activeItemIndex+t)):e.items).find(i=>{var u;return((u=i.dataRef.current.textValue)==null?void 0:u.startsWith(a))&&!i.dataRef.current.disabled}),o=s?e.items.indexOf(s):-1;return o===-1||o===e.activeItemIndex?{...e,searchQuery:a}:{...e,searchQuery:a,activeItemIndex:o,activationTrigger:1}},4(e){return e.searchQuery===""?e:{...e,searchQuery:"",searchActiveItemIndex:null}},5:(e,r)=>{let t=e.items.concat(r.items.map(s=>s)),a=e.activeItemIndex;return e.pendingFocus.focus!==N.Nothing&&(a=se(e.pendingFocus,{resolveItems:()=>t,resolveActiveIndex:()=>e.activeItemIndex,resolveId:s=>s.id,resolveDisabled:s=>s.dataRef.current.disabled})),{...e,items:t,activeItemIndex:a,pendingFocus:{focus:N.Nothing},pendingShouldSort:!0}},6:(e,r)=>{let t=e.items,a=[],s=new Set(r.items);for(let[o,i]of t.entries())if(s.has(i.id)&&(a.push(o),s.delete(i.id),s.size===0))break;if(a.length>0){t=t.slice();for(let o of a.reverse())t.splice(o,1)}return{...e,items:t,activationTrigger:1}},7:(e,r)=>e.buttonElement===r.element?e:{...e,buttonElement:r.element},8:(e,r)=>e.itemsElement===r.element?e:{...e,itemsElement:r.element},9:e=>e.pendingShouldSort?{...e,...Ke(e),pendingShouldSort:!1}:e};class Me extends It{constructor(r){super(r),We(this,"actions",{registerItem:Ve(()=>{let t=[],a=new Set;return[(s,o)=>{a.has(o)||(a.add(o),t.push({id:s,dataRef:o}))},()=>(a.clear(),this.send({type:5,items:t.splice(0)}))]}),unregisterItem:Ve(()=>{let t=[];return[a=>t.push(a),()=>this.send({type:6,items:t.splice(0)})]})}),We(this,"selectors",{activeDescendantId(t){var a;let s=t.activeItemIndex,o=t.items;return s===null||(a=o[s])==null?void 0:a.id},isActive(t,a){var s;let o=t.activeItemIndex,i=t.items;return o!==null?((s=i[o])==null?void 0:s.id)===a:!1},shouldScrollIntoView(t,a){return t.__demoMode||t.menuState!==0||t.activationTrigger===0?!1:this.isActive(t,a)}}),this.on(5,()=>{this.disposables.requestAnimationFrame(()=>{this.send({type:9})})});{let t=this.state.id,a=Ye.get(null);this.disposables.add(a.on(Rt.Push,s=>{!a.selectors.isTop(s,t)&&this.state.menuState===0&&this.send({type:1})})),this.on(0,()=>a.actions.push(t)),this.on(1,()=>a.actions.pop(t))}}static new({id:r,__demoMode:t=!1}){return new Me({id:r,__demoMode:t,menuState:t?0:1,buttonElement:null,itemsElement:null,items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1,pendingShouldSort:!1,pendingFocus:{focus:N.Nothing}})}reduce(r,t){return ke(t.type,Nr,r,t)}}const ot=l.createContext(null);function Se(e){let r=l.useContext(ot);if(r===null){let t=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,lt),t}return r}function lt({id:e,__demoMode:r=!1}){let t=l.useMemo(()=>Me.new({id:e,__demoMode:r}),[]);return jt(()=>t.dispose()),t}let Cr=l.Fragment;function $r(e,r){let t=l.useId(),{__demoMode:a=!1,...s}=e,o=lt({id:t,__demoMode:a}),[i,u,m]=Q(o,I=>[I.menuState,I.itemsElement,I.buttonElement]),h=X(r),d=Ye.get(null),w=Q(d,l.useCallback(I=>d.selectors.isTop(I,t),[d,t]));kt(w,[m,u],(I,g)=>{var k;o.send({type:E.CloseMenu}),Zt(g,Qt.Loose)||(I.preventDefault(),(k=o.state.buttonElement)==null||k.focus())});let y=$(()=>{o.send({type:E.CloseMenu})}),v=l.useMemo(()=>({open:i===O.Open,close:y}),[i,y]),c={ref:h},p=H();return _.createElement(Pt,null,_.createElement(ot.Provider,{value:o},_.createElement(Nt,{value:ke(i,{[O.Open]:ue.Open,[O.Closed]:ue.Closed})},p({ourProps:c,theirProps:s,slot:v,defaultTag:Cr,name:"Menu"}))))}let Mr="button";function Sr(e,r){let t=Se("Menu.Button"),a=l.useId(),{id:s=`headlessui-menu-button-${a}`,disabled:o=!1,autoFocus:i=!1,...u}=e,m=l.useRef(null),h=Lt(),d=X(r,m,Gt(),$(x=>t.send({type:E.SetButtonElement,element:x}))),w=$(x=>{switch(x.key){case j.Space:case j.Enter:case j.ArrowDown:x.preventDefault(),x.stopPropagation(),t.send({type:E.OpenMenu,focus:{focus:N.First}});break;case j.ArrowUp:x.preventDefault(),x.stopPropagation(),t.send({type:E.OpenMenu,focus:{focus:N.Last}});break}}),y=$(x=>{switch(x.key){case j.Space:x.preventDefault();break}}),[v,c,p]=Q(t,x=>[x.menuState,x.buttonElement,x.itemsElement]),I=v===O.Open;tr(I,{trigger:c,action:l.useCallback(x=>{if(c!=null&&c.contains(x.target))return oe.Ignore;let b=x.target.closest('[role="menuitem"]:not([data-disabled])');return Vt(b)?oe.Select(b):p!=null&&p.contains(x.target)?oe.Ignore:oe.Close},[c,p]),close:l.useCallback(()=>t.send({type:E.CloseMenu}),[]),select:l.useCallback(x=>x.click(),[])});let g=$(x=>{var b;if(x.button===0){if(Ce(x.currentTarget))return x.preventDefault();o||(v===O.Open?(je.flushSync(()=>t.send({type:E.CloseMenu})),(b=m.current)==null||b.focus({preventScroll:!0})):(x.preventDefault(),t.send({type:E.OpenMenu,focus:{focus:N.Nothing},trigger:me.Pointer})))}}),{isFocusVisible:k,focusProps:A}=Pe({autoFocus:i}),{isHovered:M,hoverProps:B}=Ne({isDisabled:o}),{pressed:T,pressProps:U}=Ut({disabled:o}),P=l.useMemo(()=>({open:v===O.Open,active:T||v===O.Open,disabled:o,hover:M,focus:k,autofocus:i}),[v,M,k,T,o,i]),C=fe(h(),{ref:d,id:s,type:zt(e,m.current),"aria-haspopup":"menu","aria-controls":p==null?void 0:p.id,"aria-expanded":v===O.Open,disabled:o||void 0,autoFocus:i,onKeyDown:w,onKeyUp:y,onPointerDown:g},A,B,U);return H()({ourProps:C,theirProps:u,slot:P,defaultTag:Mr,name:"Menu.Button"})}let Or="div",Dr=ze.RenderStrategy|ze.Static;function Tr(e,r){let t=l.useId(),{id:a=`headlessui-menu-items-${t}`,anchor:s,portal:o=!1,modal:i=!0,transition:u=!1,...m}=e,h=Ct(s),d=Se("Menu.Items"),[w,y]=$t(h),v=Mt(),[c,p]=l.useState(null),I=X(r,h?w:null,$(f=>d.send({type:E.SetItemsElement,element:f})),p),[g,k]=Q(d,f=>[f.menuState,f.buttonElement]),A=Ue(k),M=Ue(c);h&&(o=!0);let B=St(),[T,U]=Ot(u,c,B!==null?(B&ue.Open)===ue.Open:g===O.Open);Dt(T,k,()=>{d.send({type:E.CloseMenu})});let P=Q(d,f=>f.__demoMode),C=P?!1:i&&g===O.Open;Tt(C,M);let x=P?!1:i&&g===O.Open;Yt(x,{allowed:l.useCallback(()=>[k,c],[k,c])});let b=g!==O.Open,L=er(b,k)?!1:T;l.useEffect(()=>{let f=c;f&&g===O.Open&&f!==(M==null?void 0:M.activeElement)&&f.focus({preventScroll:!0})},[g,c,M]),jr(g===O.Open,{container:c,accept(f){return f.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:f.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(f){f.setAttribute("role","none")}});let G=Ft(),ge=$(f=>{var K,ae,R;switch(G.dispose(),f.key){case j.Space:if(d.state.searchQuery!=="")return f.preventDefault(),f.stopPropagation(),d.send({type:E.Search,value:f.key});case j.Enter:if(f.preventDefault(),f.stopPropagation(),d.state.activeItemIndex!==null){let{dataRef:q}=d.state.items[d.state.activeItemIndex];(ae=(K=q.current)==null?void 0:K.domRef.current)==null||ae.click()}d.send({type:E.CloseMenu}),tt(d.state.buttonElement);break;case j.ArrowDown:return f.preventDefault(),f.stopPropagation(),d.send({type:E.GoToItem,focus:N.Next});case j.ArrowUp:return f.preventDefault(),f.stopPropagation(),d.send({type:E.GoToItem,focus:N.Previous});case j.Home:case j.PageUp:return f.preventDefault(),f.stopPropagation(),d.send({type:E.GoToItem,focus:N.First});case j.End:case j.PageDown:return f.preventDefault(),f.stopPropagation(),d.send({type:E.GoToItem,focus:N.Last});case j.Escape:f.preventDefault(),f.stopPropagation(),je.flushSync(()=>d.send({type:E.CloseMenu})),(R=d.state.buttonElement)==null||R.focus({preventScroll:!0});break;case j.Tab:f.preventDefault(),f.stopPropagation(),je.flushSync(()=>d.send({type:E.CloseMenu})),Ht(d.state.buttonElement,f.shiftKey?Y.Previous:Y.Next);break;default:f.key.length===1&&(d.send({type:E.Search,value:f.key}),G.setTimeout(()=>d.send({type:E.ClearSearch}),350));break}}),re=$(f=>{switch(f.key){case j.Space:f.preventDefault();break}}),xe=l.useMemo(()=>({open:g===O.Open}),[g]),he=fe(h?v():{},{"aria-activedescendant":Q(d,d.selectors.activeDescendantId),"aria-labelledby":Q(d,f=>{var K;return(K=f.buttonElement)==null?void 0:K.id}),id:a,onKeyDown:ge,onKeyUp:re,role:"menu",tabIndex:g===O.Open?0:void 0,ref:I,style:{...m.style,...y,"--button-width":At(k,!0).width},..._t(U)}),be=H();return _.createElement(Bt,{enabled:o?e.static||T:!1,ownerDocument:A},be({ourProps:he,theirProps:m,slot:xe,defaultTag:Or,features:Dr,visible:L,name:"Menu.Items"}))}let Fr=l.Fragment;function _r(e,r){let t=l.useId(),{id:a=`headlessui-menu-item-${t}`,disabled:s=!1,...o}=e,i=Se("Menu.Item"),u=Q(i,b=>i.selectors.isActive(b,a)),m=l.useRef(null),h=X(r,m),d=Q(i,b=>i.selectors.shouldScrollIntoView(b,a));J(()=>{if(d)return Wt().requestAnimationFrame(()=>{var b,L;(L=(b=m.current)==null?void 0:b.scrollIntoView)==null||L.call(b,{block:"nearest"})})},[d,m]);let w=Jt(m),y=l.useRef({disabled:s,domRef:m,get textValue(){return w()}});J(()=>{y.current.disabled=s},[y,s]),J(()=>(i.actions.registerItem(a,y),()=>i.actions.unregisterItem(a)),[y,a]);let v=$(()=>{i.send({type:E.CloseMenu})}),c=$(b=>{if(s)return b.preventDefault();i.send({type:E.CloseMenu}),tt(i.state.buttonElement)}),p=$(()=>{if(s)return i.send({type:E.GoToItem,focus:N.Nothing});i.send({type:E.GoToItem,focus:N.Specific,id:a})}),I=Xt(),g=$(b=>{I.update(b),!s&&(u||i.send({type:E.GoToItem,focus:N.Specific,id:a,trigger:me.Pointer}))}),k=$(b=>{I.wasMoved(b)&&(s||u||i.send({type:E.GoToItem,focus:N.Specific,id:a,trigger:me.Pointer}))}),A=$(b=>{I.wasMoved(b)&&(s||u&&i.send({type:E.GoToItem,focus:N.Nothing}))}),[M,B]=ve(),[T,U]=$e(),P=l.useMemo(()=>({active:u,focus:u,disabled:s,close:v}),[u,s,v]),C={id:a,ref:h,role:"menuitem",tabIndex:s===!0?void 0:-1,"aria-disabled":s===!0?!0:void 0,"aria-labelledby":M,"aria-describedby":T,disabled:void 0,onClick:c,onFocus:p,onPointerEnter:g,onMouseEnter:g,onPointerMove:k,onMouseMove:k,onPointerLeave:A,onMouseLeave:A},x=H();return _.createElement(B,null,_.createElement(U,null,x({ourProps:C,theirProps:o,slot:P,defaultTag:Fr,name:"Menu.Item"})))}let Ar="div";function Br(e,r){let[t,a]=ve(),s=e,o={ref:r,"aria-labelledby":t,role:"group"},i=H();return _.createElement(a,null,i({ourProps:o,theirProps:s,slot:{},defaultTag:Ar,name:"Menu.Section"}))}let Lr="header";function Gr(e,r){let t=l.useId(),{id:a=`headlessui-menu-heading-${t}`,...s}=e,o=qt();J(()=>o.register(a),[a,o.register]);let i={id:a,ref:r,role:"presentation",...o.props};return H()({ourProps:i,theirProps:s,slot:{},defaultTag:Lr,name:"Menu.Heading"})}let Vr="div";function Ur(e,r){let t=e,a={ref:r,role:"separator"};return H()({ourProps:a,theirProps:t,slot:{},defaultTag:Vr,name:"Menu.Separator"})}let zr=z($r),Hr=z(Sr),Zr=z(Tr),Qr=z(_r),Wr=z(Br),Kr=z(Gr),qr=z(Ur),le=Object.assign(zr,{Button:Hr,Items:Zr,Item:Qr,Section:Wr,Heading:Kr,Separator:qr});var Jr=(e=>(e[e.RegisterOption=0]="RegisterOption",e[e.UnregisterOption=1]="UnregisterOption",e))(Jr||{});let Xr={0(e,r){let t=[...e.options,{id:r.id,element:r.element,propsRef:r.propsRef}];return{...e,options:et(t,a=>a.element.current)}},1(e,r){let t=e.options.slice(),a=e.options.findIndex(s=>s.id===r.id);return a===-1?e:(t.splice(a,1),{...e,options:t})}},Oe=l.createContext(null);Oe.displayName="RadioGroupDataContext";function De(e){let r=l.useContext(Oe);if(r===null){let t=new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,De),t}return r}let Te=l.createContext(null);Te.displayName="RadioGroupActionsContext";function Fe(e){let r=l.useContext(Te);if(r===null){let t=new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Fe),t}return r}function Yr(e,r){return ke(r.type,Xr,e,r)}let ea="div";function ta(e,r){let t=l.useId(),a=at(),{id:s=`headlessui-radiogroup-${t}`,value:o,form:i,name:u,onChange:m,by:h,disabled:d=a||!1,defaultValue:w,tabIndex:y=0,...v}=e,c=nr(h),[p,I]=l.useReducer(Yr,{options:[]}),g=p.options,[k,A]=ve(),[M,B]=$e(),T=l.useRef(null),U=X(T,r),P=sr(w),[C,x]=or(o,m,P),b=l.useMemo(()=>g.find(R=>!R.propsRef.current.disabled),[g]),L=l.useMemo(()=>g.some(R=>c(R.propsRef.current.value,C)),[g,C]),G=$(R=>{var q;if(d||c(R,C))return!1;let Z=(q=g.find(ne=>c(ne.propsRef.current.value,R)))==null?void 0:q.propsRef.current;return Z!=null&&Z.disabled?!1:(x==null||x(R),!0)}),ge=$(R=>{let q=T.current;if(!q)return;let Z=Xe(q),ne=g.filter(V=>V.propsRef.current.disabled===!1).map(V=>V.element.current);switch(R.key){case j.Enter:lr(R.currentTarget);break;case j.ArrowLeft:case j.ArrowUp:if(R.preventDefault(),R.stopPropagation(),He(ne,Y.Previous|Y.WrapAround)===Ze.Success){let V=g.find(ee=>ee.element.current===(Z==null?void 0:Z.activeElement));V&&G(V.propsRef.current.value)}break;case j.ArrowRight:case j.ArrowDown:if(R.preventDefault(),R.stopPropagation(),He(ne,Y.Next|Y.WrapAround)===Ze.Success){let V=g.find(ee=>ee.element.current===(Z==null?void 0:Z.activeElement));V&&G(V.propsRef.current.value)}break;case j.Space:{R.preventDefault(),R.stopPropagation();let V=g.find(ee=>ee.element.current===(Z==null?void 0:Z.activeElement));V&&G(V.propsRef.current.value)}break}}),re=$(R=>(I({type:0,...R}),()=>I({type:1,id:R.id}))),xe=l.useMemo(()=>({value:C,firstOption:b,containsCheckedOption:L,disabled:d,compare:c,tabIndex:y,...p}),[C,b,L,d,c,y,p]),he=l.useMemo(()=>({registerOption:re,change:G}),[re,G]),be={ref:U,id:s,role:"radiogroup","aria-labelledby":k,"aria-describedby":M,onKeyDown:ge},f=l.useMemo(()=>({value:C}),[C]),K=l.useCallback(()=>{if(P!==void 0)return G(P)},[G,P]),ae=H();return _.createElement(B,{name:"RadioGroup.Description"},_.createElement(A,{name:"RadioGroup.Label"},_.createElement(Te.Provider,{value:he},_.createElement(Oe.Provider,{value:xe},u!=null&&_.createElement(ir,{disabled:d,data:{[u]:C||"on"},overrides:{type:"radio",checked:C!=null},form:i,onReset:K}),ae({ourProps:be,theirProps:v,slot:f,defaultTag:ea,name:"RadioGroup"})))))}let ra="div";function aa(e,r){var t;let a=De("RadioGroup.Option"),s=Fe("RadioGroup.Option"),o=l.useId(),{id:i=`headlessui-radiogroup-option-${o}`,value:u,disabled:m=a.disabled||!1,autoFocus:h=!1,...d}=e,w=l.useRef(null),y=X(w,r),[v,c]=ve(),[p,I]=$e(),g=rt({value:u,disabled:m});J(()=>s.registerOption({id:i,element:w,propsRef:g}),[i,s,w,g]);let k=$(L=>{var G;if(Ce(L.currentTarget))return L.preventDefault();s.change(u)&&((G=w.current)==null||G.focus())}),A=((t=a.firstOption)==null?void 0:t.id)===i,{isFocusVisible:M,focusProps:B}=Pe({autoFocus:h}),{isHovered:T,hoverProps:U}=Ne({isDisabled:m}),P=a.compare(a.value,u),C=fe({ref:y,id:i,role:"radio","aria-checked":P?"true":"false","aria-labelledby":v,"aria-describedby":p,"aria-disabled":m?!0:void 0,tabIndex:m?-1:P||!a.containsCheckedOption&&A?a.tabIndex:-1,onClick:m?void 0:k,autoFocus:h},B,U),x=l.useMemo(()=>({checked:P,disabled:m,active:M,hover:T,focus:M,autofocus:h}),[P,m,T,M,h]),b=H();return _.createElement(I,{name:"RadioGroup.Description"},_.createElement(c,{name:"RadioGroup.Label"},b({ourProps:C,theirProps:d,slot:x,defaultTag:ra,name:"RadioGroup.Option"})))}let na="span";function sa(e,r){var t;let a=De("Radio"),s=Fe("Radio"),o=l.useId(),i=dr(),u=at(),{id:m=i||`headlessui-radio-${o}`,value:h,disabled:d=a.disabled||u||!1,autoFocus:w=!1,...y}=e,v=l.useRef(null),c=X(v,r),p=cr(),I=ur(),g=rt({value:h,disabled:d});J(()=>s.registerOption({id:m,element:v,propsRef:g}),[m,s,v,g]);let k=$(b=>{var L;if(Ce(b.currentTarget))return b.preventDefault();s.change(h)&&((L=v.current)==null||L.focus())}),{isFocusVisible:A,focusProps:M}=Pe({autoFocus:w}),{isHovered:B,hoverProps:T}=Ne({isDisabled:d}),U=((t=a.firstOption)==null?void 0:t.id)===m,P=a.compare(a.value,h),C=fe({ref:c,id:m,role:"radio","aria-checked":P?"true":"false","aria-labelledby":p,"aria-describedby":I,"aria-disabled":d?!0:void 0,tabIndex:d?-1:P||!a.containsCheckedOption&&U?a.tabIndex:-1,autoFocus:w,onClick:d?void 0:k},M,T),x=l.useMemo(()=>({checked:P,disabled:d,hover:B,focus:A,autofocus:w}),[P,d,B,A,w]);return H()({ourProps:C,theirProps:y,slot:x,defaultTag:na,name:"Radio"})}let oa=z(ta),la=z(aa),ia=z(sa),da=ar,ca=rr,ie=Object.assign(oa,{Option:la,Radio:ia,Label:da,Description:ca});const F={ResetPlanOptions:"reset-plan-options",ResetPlanDates:"reset-plan-dates",ResetCategories:"reset-categories",PlanOptions:"plan-options",Dates:"dates",DateStart:"date-start",DateEnd:"date-end",Category:"category",External:"external",ResetTestsReport:"reset-tests-report",TestsReportErrors:"tests-report-errors",TestsReportMessages:"tests-report-messages"},S={Add:"add",Remove:"remove",Direct:"direct",Indirect:"indirect",Metadata:"metadata",Default:"default"},Ee={Breaking:"breaking",NonBreaking:"non-breaking",ForwardOnly:"forward-only"},[ua,ma]=ga(),it={skip_tests:!1,no_gaps:!1,skip_backfill:!1,forward_only:!1,auto_apply:!1,no_auto_categorization:!1,include_unmodified:!0,restate_models:void 0,create_from:"prod"},dt={start:void 0,end:void 0},_e={...dt,...it,categories:ma,defaultCategory:ua,change_categorization:new Map,virtualUpdateDescription:"All changes and their downstream dependencies can be fully previewed before they get promoted. If during plan creation no data gaps have been detected and only references to new model versions need to be updated, then such an update is referred to as a Virtual Update. Virtual Updates impose no additional runtime overhead or cost.",isInitialPlanRun:!1,errors:[],testsReportErrors:void 0,testsReportMessages:void 0},ct=l.createContext(_e),ut=l.createContext(()=>{});function Ma({children:e}){const[r,t]=l.useReducer(fa,Object.assign(_e));return n.jsx(ct.Provider,{value:Object.assign(r),children:n.jsx(ut.Provider,{value:t,children:e})})}function Ae(){return l.useContext(ct)}function pa(){return l.useContext(ut)}function fa(e,r){return r=Array.isArray(r)?r:[r],r.reduce(va,e)}function va(e=_e,{type:r,...t}){switch(r){case F.ResetCategories:return Object.assign({},e,{change_categorization:new Map});case F.ResetPlanDates:return Object.assign({},e,dt);case F.ResetPlanOptions:return Object.assign({},e,it);case F.ResetTestsReport:return Object.assign({},e,{testsReportErrors:void 0,testsReportMessages:void 0});case F.PlanOptions:return Object.assign({},e,t);case F.Dates:return Object.assign({},e,{start:t.start,end:t.end});case F.External:return Object.assign({},e,{isInitialPlanRun:t.isInitialPlanRun??!1});case F.DateStart:return Object.assign({},e,{start:t.start});case F.DateEnd:return Object.assign({},e,{end:t.end});case F.TestsReportErrors:return Object.assign({},e,{testsReportErrors:t.testsReportErrors});case F.TestsReportMessages:return Object.assign({},e,{testsReportMessages:t.testsReportMessages});case F.Category:{const{change:a,category:s}=t;return pe(a==null?void 0:a.name)&&e.change_categorization.set(a.name,{category:s,change:a}),Object.assign({},e,{change_categorization:new Map(e.change_categorization)})}default:return Object.assign({},e)}}function ga(){const e={id:Ee.Breaking,name:"Breaking Change",description:"It will rebuild all models",value:ye.NUMBER_1},r=[e,{id:Ee.NonBreaking,name:"Non-Breaking Change",description:"It will exclude all indirect models caused by this change",value:ye.NUMBER_2},{id:Ee.ForwardOnly,name:"Forward-Only Change",description:"The change requires no rebuilding",value:ye.NUMBER_3}];return[e,r]}function te({children:e,headline:r,type:t,className:a}){return n.jsxs("div",{className:D("flex flex-col rounded-md p-4 text-xs",t===S.Add&&"bg-success-5",t===S.Remove&&"bg-danger-5",t===S.Direct&&"bg-secondary-5",t===S.Indirect&&"bg-warning-5",t===S.Default&&"bg-neutral-5",a),children:[pe(r)&&n.jsx("h4",{className:D("mb-2 font-bold whitespace-nowrap",t===S.Add&&"text-success-600 dark:text-success-300",t===S.Remove&&"text-danger-600 dark:text-danger-300",t===S.Direct&&"text-secondary-600 dark:text-secondary-300",t===S.Indirect&&"text-warning-600 dark:text-warning-300",t===S.Default&&"text-neutral-600 dark:text-neutral-300"),children:r}),e]})}function xa({changes:e=[],type:r}){return n.jsx("ul",{children:e.map(t=>n.jsxs("li",{className:D("flex items-center",r===S.Add&&"text-success-600 dark:text-success-300",r===S.Remove&&"text-danger-600 dark:text-danger-300",r===S.Direct&&"text-secondary-600 dark:text-secondary-300",r===S.Indirect&&"text-warning-600 dark:text-warning-300",r===S.Default&&"text-neutral-600 dark:text-neutral-300"),children:[r===S.Add?n.jsx(Er,{className:"h-3 mr-2"}):r===S.Remove?n.jsx(hr,{className:"h-3 mr-2"}):n.jsx(nt,{className:"h-4 mr-2"}),n.jsx("span",{title:t.displayViewName,className:"w-full whitespace-nowrap text-ellipsis overflow-hidden",children:pt(t.displayViewName,50,25)})]},t.name))})}function ha({changes:e=[],disabled:r=!1}){const t=pa(),{categories:a}=Ae(),s=W(o=>o.models);return l.useEffect(()=>{t(e.map(o=>({type:F.Category,category:a.find(({value:i})=>i===o.change_category),change:o})))},[e]),n.jsx("ul",{children:e.map(o=>n.jsx("li",{className:"text-secondary-500 dark:text-primary-500 mt-1",children:n.jsx(we,{children:({open:i})=>n.jsxs(n.Fragment,{children:[n.jsxs(we.Button,{className:"flex items-center w-full justify-between rounded-lg text-left",children:[n.jsx(Be,{className:"w-full",change:o}),(()=>{const u=i?st:yr;return n.jsx(u,{className:"max-h-[1rem] min-w-[1rem] dark:text-primary-500"})})()]}),n.jsxs(we.Panel,{className:"px-4 mb-4 overflow-hidden",children:[Le(o.direct)&&n.jsx(qe,{type:"direct",models:o.direct,className:"mt-2 ml-4"}),Le(o.indirect)&&n.jsx(qe,{type:"indirect",models:o.indirect,className:"ml-4"}),n.jsx(Ie,{className:"border-secondary-20 mt-2"}),n.jsx(ba,{change:o,disabled:r,onChange:u=>{t({type:F.Category,category:a.find(({value:m})=>m===u),change:o})}}),n.jsx(Ie,{className:"border-secondary-20 mt-2"}),n.jsxs("div",{className:"flex flex-col w-full h-full overflow-hidden overflow-y-auto hover:scrollbar scrollbar--vertical scrollbar--horizontal",children:[pe(o)&&ft(o.diff)&&n.jsx(mt,{diff:o.diff}),(()=>{var m,h;const u=s.get(o.name);return Je(u)?n.jsx(n.Fragment,{}):n.jsx("div",{className:"h-[16rem] bg-theme-lighter rounded-2xl overflow-hidden my-4",children:n.jsx(wt,{showColumns:!1,showConnected:!1,showControls:!1,children:n.jsx(Et,{model:u,highlightedNodes:{"border-4 border-warning-500 bg-warning-500 text-warning-500":((m=o.indirect)==null?void 0:m.map(d=>d.name))??[],"border-4 border-secondary-500 dark:border-primary-500 bg-secondary-500 dark:bg-primary-500 text-bg-secondary-500 dark:bg-primary-500 ring-8 ring-brand-50":[o.name],"border-4 border-secondary-500 dark:border-primary-500 bg-secondary-500 dark:bg-primary-500 text-bg-secondary-500 dark:bg-primary-500":((h=o.direct)==null?void 0:h.map(d=>d.name))??[],"*":["border-4 border-neutral-500 bg-neutral-500 text-neutral-600 dark:text-light"]}})})})})()]})]})]})})},o.name))})}function ba({change:e,disabled:r=!1,onChange:t}){var o,i;const{change_categorization:a,categories:s}=Ae();return n.jsx(ie,{className:D("flex flex-col mt-2",r&&"pointer-events-none opacity-50 cursor-not-allowed"),disabled:r,defaultValue:((i=(o=a.get(e.name))==null?void 0:o.category)==null?void 0:i.value)??e.change_category,onChange:t,children:s.map(u=>n.jsx(ie.Option,{value:u.value,className:()=>D("relative flex rounded-md"),children:({checked:m})=>n.jsxs("div",{className:D("text-sm flex items-center px-2 py-1 w-full rounded-lg",m?"text-secondary-500 dark:text-primary-300":"text-prose"),children:[n.jsx("div",{className:"mt-[0.125rem] mr-2 border-2 border-neutral-400 min-w-[1rem] h-4 rounded-full flex justify-center items-center",children:m&&n.jsx("span",{className:"inline-block w-2 h-2 bg-secondary-500 dark:bg-primary-300 rounded-full"})}),n.jsxs("div",{children:[n.jsx(ie.Label,{as:"p",children:u.name}),n.jsx(ie.Description,{as:"span",className:"text-xs text-neutral-500",children:u.description})]})]})},u.name))})}function ya({changes:e=[]}){return n.jsx("ul",{children:e.map(r=>n.jsx("li",{className:"text-warning-700 dark:text-warning-500",children:n.jsx(Be,{change:r})},r.name))})}function Be({change:e,className:r}){var s;const{change_categorization:t}=Ae(),a=(s=t.get(e.name))==null?void 0:s.category;return n.jsxs("div",{className:D("flex items-center font-bold",r),children:[n.jsxs("span",{className:"flex w-full whitespace-nowrap text-ellipsis overflow-hidden",children:[n.jsx(nt,{className:"h-4 mr-2"}),e.displayViewName]}),Je(a)?pe(e.indirect)&&n.jsx("span",{className:"ml-2 px-1 bg-warning-500 text-warning-100 dark:bg-warning-400 dark:text-warning-800 rounded whitespace-nowrap mr-2",children:"Categorize Manually"}):n.jsx("span",{className:"ml-2 px-1 bg-neutral-400 text-neutral-100 dark:bg-neutral-400 dark:text-neutral-800 rounded whitespace-nowrap mr-2",children:a.name})]})}function qe({type:e,models:r,className:t}){return n.jsx("ul",{className:D(e==="indirect"&&"text-warning-700 dark:text-warning-500",e==="direct"&&"text-secondary-500 dark:text-primary-500",t),children:r.map(a=>n.jsxs("li",{className:"flex",children:[n.jsx("span",{className:"h-3 w-3 border-l-2 border-b-2 inline-block mr-2"}),a.displayViewName]},a.name))})}function mt({diff:e}){return n.jsx("div",{className:"my-4 bg-dark-lighter rounded-2xl overflow-hidden",children:n.jsx("pre",{className:"p-4 text-primary-100 max-h-[30vh] text-xs overflow-auto hover:scrollbar scrollbar--vertical scrollbar--horizontal",children:e.split(`
|
|
2
2
|
`).map((r,t)=>n.jsx("p",{className:D(r.startsWith("+")&&"text-success-500 bg-success-500/10 px-2",r.startsWith("-")&&"text-danger-500 bg-danger-500/10 px-2",r.startsWith("@@")&&"text-primary-300 my-5 px-2"),children:r},`${r}-${t}`))})})}te.Default=xa;te.Direct=ha;te.Indirect=ya;te.Diff=mt;te.Title=Be;function wa({onAdd:e,className:r,label:t="Add",size:a=de.sm}){const s=W(c=>c.getNextEnvironment),o=W(c=>c.isExistingEnvironment),i=W(c=>c.addLocalEnvironment),[u,m]=l.useState(""),[h,d]=l.useState(s().name);function w(c){c.stopPropagation(),i(u,h),m(""),d(s().name),e==null||e()}function y(c){c.stopPropagation(),m(c.target.value)}const v=vt(u)||o(u);return n.jsxs("div",{className:D("flex w-full items-center bg-secondary-5",r),children:[n.jsx(Qe,{className:"my-0 mx-0 mr-4 min-w-[10rem] w-full",size:a,children:({className:c})=>n.jsx(Qe.Textfield,{className:D(c,"w-full"),placeholder:"Environment",value:u,onInput:y})}),n.jsx(Re,{className:"my-0 mx-0 font-bold",variant:ce.Secondary,size:a,disabled:v,onClick:w,children:t})]})}function Sa({disabled:e=!1,className:r,showAddEnvironment:t=!0,size:a=de.sm,onSelect:s}){const{addError:o}=gt(),i=W(c=>c.environment),u=W(c=>c.environments),m=W(c=>c.setEnvironment),h=W(c=>c.removeLocalEnvironment),d=xt(le.Button);function w(c,p){c.stopPropagation(),m(p),s==null||s()}function y(c,p){c.stopPropagation(),h(p)}function v(c,p){c.stopPropagation(),bt(p.name).then(()=>{h(p)}).catch(I=>{o(yt.Environments,I)})}return n.jsx(le,{as:"div",className:D("flex relative",r),children:({close:c})=>n.jsxs(n.Fragment,{children:[n.jsxs(d,{variant:ce.Info,size:a,disabled:e,className:"flex justify-between w-full mx-0 pr-1",children:[n.jsxs("span",{className:D("block overflow-hidden truncate",(i.isLocal||e)&&"text-neutral-500",i.isRemote?"text-primary-600 dark:text-primary-300":"text-neutral-600 dark:text-neutral-200"),children:[n.jsx("span",{className:"text-xs text-neutral-300 dark:text-neutral-500 mr-1",children:"Environment:"}),n.jsx("span",{children:i.name})]}),n.jsx("span",{className:"pointer-events-none inset-y-0 right-0 flex items-center pl-1",children:n.jsx(mr,{className:D("w-4",e?"text-neutral-400 dark:text-neutral-200":"text-neutral-800 dark:text-neutral-200"),"aria-hidden":"true"})})]}),n.jsx(Kt,{as:l.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:n.jsx("div",{className:"!mx-0 absolute top-10 right-0 min-w-[16rem] max-w-[100%] overflow-hidden shadow-2xl bg-theme border-0 border-neutral-100 dark:border-neutral-800 rounded-md flex flex-col z-50",children:n.jsxs(le.Items,{className:"mx-0 overflow-auto max-h-80 hover:scrollbar scrollbar--vertical",children:[Array.from(u).map(p=>n.jsx(le.Item,{disabled:p===i,children:({active:I})=>n.jsxs("div",{onClick:g=>w(g,p),className:D("flex justify-between items-center pl-2 pr-1 py-1 overflow-auto",I?"text-neutral-600 bg-neutral-10":"text-neutral-400",p===i?"cursor-default bg-neutral-5":"cursor-pointer"),children:[n.jsxs("div",{className:"flex items-start",children:[n.jsx(vr,{className:D("w-4 h-4 mt-[6px]",p===i?"opacity-100 text-primary-500":"opacity-0")}),n.jsxs("span",{className:"block",children:[n.jsxs("span",{className:"flex items-baseline",children:[n.jsx("span",{className:D("block truncate ml-2",p.isRemote&&"text-primary-500"),children:p.name}),n.jsxs("small",{className:"block ml-2",children:["(",p.type,")"]})]}),p.isProd&&n.jsx("span",{className:"flex ml-2",children:n.jsx("small",{className:"text-xs text-neutral-500",children:"Production Environment"})}),p.isDefault&&n.jsx("span",{className:"flex ml-2",children:n.jsx("small",{className:"text-xs text-neutral-500",children:"Default Environment"})})]})]}),n.jsxs("div",{className:"flex items-center",children:[p.isPinned&&n.jsx(Rr,{title:"Pinned",className:"w-4 text-primary-500 dark:text-primary-100 mx-1"}),Ge(p.isPinned)&&p.isLocal&&p!==i&&n.jsx(Re,{className:"!m-0 !px-1 bg-transparent hover:bg-transparent border-none",size:de.xs,format:ht.Ghost,variant:ce.Neutral,onClick:g=>y(g,p),children:n.jsx(st,{className:"w-4 text-neutral-500 dark:text-neutral-100"})}),Ge(p.isPinned)&&p.isRemote&&p!==i&&n.jsx(Re,{className:"!px-2 !my-0",size:de.xs,variant:ce.Danger,onClick:g=>v(g,p),children:"Delete"})]})]})},p.name)),t&&n.jsxs(n.Fragment,{children:[n.jsx(Ie,{}),n.jsx(wa,{onAdd:c,className:"p-2 pb-2"})]})]})})})]})})}export{wa as A,S as E,te as P,Sa as S,pa as a,F as b,Ma as c,Ae as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as f,i as V,I as q,j as s,c as v,l as y,B as A,m as G,D as H,v as J}from"./index-
|
|
1
|
+
import{r as f,i as V,I as q,j as s,c as v,l as y,B as A,m as G,D as H,v as J}from"./index-Dj0i1-CA.js";import{I as L}from"./Input-B-oZ6fGO.js";import{u as K}from"./index-C-dJH7yZ.js";function W({items:c=[],keyId:d="id",keyName:N="",keyDescription:x="",to:T="",disabled:S=!1,withCounter:$=!0,withFilter:B=!0,types:a,className:F,isActive:m,listItem:h}){var R;const O=f.useRef(null),[r,C]=f.useState(""),j=f.useRef(null),[o,u]=f.useMemo(()=>{let t=-1;const e=[];return c.forEach((l,p)=>{const w=n(l[d]),g=n(l[x]),Y=n(l[N]),k=n(a==null?void 0:a[w]);(Y.includes(r)||g.includes(r)||k.includes(r))&&e.push(l),V(m)&&m(l[d])&&(t=p)}),[t,e]},[c,r,m]),i=K({count:u.length,getScrollElement:()=>j.current,estimateSize:()=>32+(x.length>0?16:0)}),b=({itemIndex:t,isSmoothScroll:e=!0})=>{i.scrollToIndex(t,{align:"center",behavior:e?"smooth":"auto"})},E=({itemIndex:t,range:e})=>V(e)&&(e.startIndex>t||(e==null?void 0:e.endIndex)<t),M=q(r)&&o>-1&&E({range:i.range,itemIndex:o});f.useEffect(()=>{o>-1&&E({range:i.range,itemIndex:o})&&b({itemIndex:o,isSmoothScroll:!1})},[o]);const z=i.getVirtualItems(),I=i.getTotalSize();return s.jsxs("div",{ref:O,className:v("flex flex-col w-full h-full text-sm text-neutral-600 dark:text-neutral-300",F),style:{contain:"strict"},children:[B&&s.jsxs("div",{className:"p-1 w-full flex justify-between",children:[s.jsx(L,{className:"w-full !m-0",size:y.sm,children:({className:t})=>s.jsx(L.Textfield,{className:v(t,"w-full"),value:r,placeholder:"Filter items",type:"search",onInput:e=>{C(e.target.value)}})}),$&&s.jsx("div",{className:"ml-1 px-3 bg-primary-10 text-primary-500 rounded-full text-xs flex items-center",children:u.length})]}),s.jsxs("div",{className:"w-full h-full relative p-1",children:[M&&s.jsx(A,{className:"absolute left-[50%] translate-x-[-50%] -top-2 z-10 text-ellipsis !block overflow-hidden no-wrap max-w-[90%] !border-neutral-20 shadow-md !bg-theme !hover:bg-theme text-neutral-500 dark:text-neutral-300 !focus:ring-2 !focus:ring-theme-500 !focus:ring-offset-2 !focus:ring-offset-theme-50 !focus:ring-opacity-50 !focus:outline-none !focus:ring-offset-transparent !focus:ring-offset-0 !focus:ring",onClick:()=>b({itemIndex:o}),size:y.sm,variant:G.Secondary,children:"Scroll to selected"}),s.jsx("div",{ref:j,className:"w-full h-full relative overflow-hidden overflow-y-auto hover:scrollbar scrollbar--horizontal scrollbar--vertical",style:{contain:"strict"},children:s.jsx("div",{className:"relative w-full",style:{height:I>0?`${I}px`:"100%"},children:s.jsxs("ul",{className:"w-full absolute top-0 left-0",style:{transform:`translateY(${((R=z[0])==null?void 0:R.start)??0}px)`},children:[H(u)&&s.jsx("li",{className:"px-2 py-0.5 text-center whitespace-nowrap overflow-ellipsis overflow-hidden",children:r.length>0?"No Results Found":"Empty List"},"not-found"),z.map(t=>{const e=u[t.index],l=n(e[d]),p=n(e[x]),w=n(e[N]),g=n(a==null?void 0:a[l]);return s.jsx("li",{"data-index":t.index,ref:i.measureElement,className:v("font-normal w-full",S&&"cursor-not-allowed"),tabIndex:l===r?-1:0,children:h==null?void 0:h({id:l,to:`${T}/${l}`,name:w,description:p,text:g,disabled:S,item:u[t.index]})},t.key)})]})})})]})]})}function n(c){return J(c)?"":String(c)}export{W as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as t,N as c,i as l,c as m,m as i}from"./index-
|
|
1
|
+
import{j as t,N as c,i as l,c as m,m as i}from"./index-Dj0i1-CA.js";function f({name:o,description:a,to:p,text:n,variant:s,disabled:x=!1,handleDelete:r}){function d(e){(e.key==="Delete"||e.key==="Backspace")&&(e.preventDefault(),e.stopPropagation(),r==null||r())}return t.jsxs(c,{onKeyUp:d,to:p,className:({isActive:e})=>m("block overflow-hidden px-2 py-1.5 rounded-md w-full font-semibold",x&&"opacity-50 pointer-events-none",e?s===i.Primary?"text-primary-500 bg-primary-10":s===i.Danger?"text-danger-500 bg-danger-5":"text-neutral-600 dark:text-neutral-100 bg-neutral-10":"hover:bg-neutral-5 text-neutral-500 dark:text-neutral-400"),children:[t.jsxs("div",{className:"flex items-center",children:[t.jsx("span",{className:"whitespace-nowrap overflow-ellipsis overflow-hidden min-w-10",children:o}),l(n)&&t.jsx("span",{className:" ml-2 px-2 rounded-md leading-0 text-[0.5rem] bg-neutral-10 text-neutral-700 dark:text-neutral-200",children:n})]}),l(a)&&t.jsx("p",{className:"text-xs overflow-hidden whitespace-nowrap overflow-ellipsis text-neutral-300 dark:text-neutral-500",children:a})]})}export{f as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a1 as Ae,R as le,r as we,j as Re}from"./index-O3mjYpnE.js";var Z={exports:{}},J,ce;function De(){if(ce)return J;ce=1;var s="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return J=s,J}var K,fe;function Me(){if(fe)return K;fe=1;var s=De();function i(){}function u(){}return u.resetWarningCache=i,K=function(){function n(d,y,l,h,g,S){if(S!==s){var E=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw E.name="Invariant Violation",E}}n.isRequired=n;function o(){return n}var p={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:u,resetWarningCache:i};return p.PropTypes=p,p},K}var pe;function _e(){return pe||(pe=1,Z.exports=Me()()),Z.exports}var Pe=_e();const c=Ae(Pe);var x=typeof window<"u"?window:null,te=x===null,L=te?void 0:x.document,A="addEventListener",w="removeEventListener",Q="getBoundingClientRect",G="_a",R="_b",M="_c",$="horizontal",D=function(){return!1},Fe=te?"calc":["","-webkit-","-moz-","-o-"].filter(function(s){var i=L.createElement("div");return i.style.cssText="width:"+s+"calc(9px)",!!i.style.length}).shift()+"calc",me=function(s){return typeof s=="string"||s instanceof String},de=function(s){if(me(s)){var i=L.querySelector(s);if(!i)throw new Error("Selector "+s+" did not match a DOM element");return i}return s},m=function(s,i,u){var n=s[i];return n!==void 0?n:u},H=function(s,i,u,n){if(i){if(n==="end")return 0;if(n==="center")return s/2}else if(u){if(n==="start")return 0;if(n==="center")return s/2}return s},je=function(s,i){var u=L.createElement("div");return u.className="gutter gutter-"+i,u},Ie=function(s,i,u){var n={};return me(i)?n[s]=i:n[s]=Fe+"("+i+"% - "+u+"px)",n},Ue=function(s,i){var u;return u={},u[s]=i+"px",u},ve=function(s,i){if(i===void 0&&(i={}),te)return{};var u=s,n,o,p,d,y,l;Array.from&&(u=Array.from(u));var h=de(u[0]),g=h.parentNode,S=getComputedStyle?getComputedStyle(g):null,E=S?S.flexDirection:null,U=m(i,"sizes")||u.map(function(){return 100/u.length}),W=m(i,"minSize",100),T=Array.isArray(W)?W:u.map(function(){return W}),_=m(i,"maxSize",1/0),C=Array.isArray(_)?_:u.map(function(){return _}),z=m(i,"expandToMin",!1),O=m(i,"gutterSize",10),j=m(i,"gutterAlign","center"),Y=m(i,"snapOffset",30),ge=Array.isArray(Y)?Y:u.map(function(){return Y}),V=m(i,"dragInterval",1),I=m(i,"direction",$),X=m(i,"cursor",I===$?"col-resize":"row-resize"),ye=m(i,"gutter",je),ne=m(i,"elementStyle",Ie),he=m(i,"gutterStyle",Ue);I===$?(n="width",o="clientX",p="left",d="right",y="clientWidth"):I==="vertical"&&(n="height",o="clientY",p="top",d="bottom",y="clientHeight");function N(r,e,t,a){var v=ne(n,e,t,a);Object.keys(v).forEach(function(f){r.style[f]=v[f]})}function Se(r,e,t){var a=he(n,e,t);Object.keys(a).forEach(function(v){r.style[v]=a[v]})}function k(){return l.map(function(r){return r.size})}function ie(r){return"touches"in r?r.touches[0][o]:r[o]}function ae(r){var e=l[this.a],t=l[this.b],a=e.size+t.size;e.size=r/this.size*a,t.size=a-r/this.size*a,N(e.element,e.size,this[R],e.i),N(t.element,t.size,this[M],t.i)}function ze(r){var e,t=l[this.a],a=l[this.b];this.dragging&&(e=ie(r)-this.start+(this[R]-this.dragOffset),V>1&&(e=Math.round(e/V)*V),e<=t.minSize+t.snapOffset+this[R]?e=t.minSize+this[R]:e>=this.size-(a.minSize+a.snapOffset+this[M])&&(e=this.size-(a.minSize+this[M])),e>=t.maxSize-t.snapOffset+this[R]?e=t.maxSize+this[R]:e<=this.size-(a.maxSize-a.snapOffset+this[M])&&(e=this.size-(a.maxSize+this[M])),ae.call(this,e),m(i,"onDrag",D)(k()))}function se(){var r=l[this.a].element,e=l[this.b].element,t=r[Q](),a=e[Q]();this.size=t[n]+a[n]+this[R]+this[M],this.start=t[p],this.end=t[d]}function be(r){if(!getComputedStyle)return null;var e=getComputedStyle(r);if(!e)return null;var t=r[y];return t===0?null:(I===$?t-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight):t-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom),t)}function oe(r){var e=be(g);if(e===null||T.reduce(function(f,b){return f+b},0)>e)return r;var t=0,a=[],v=r.map(function(f,b){var F=e*f/100,q=H(O,b===0,b===r.length-1,j),B=T[b]+q;return F<B?(t+=B-F,a.push(0),B):(a.push(F-B),F)});return t===0?r:v.map(function(f,b){var F=f;if(t>0&&a[b]-t>0){var q=Math.min(t,a[b]-t);t-=q,F=f-q}return F/e*100})}function Oe(){var r=this,e=l[r.a].element,t=l[r.b].element;r.dragging&&m(i,"onDragEnd",D)(k()),r.dragging=!1,x[w]("mouseup",r.stop),x[w]("touchend",r.stop),x[w]("touchcancel",r.stop),x[w]("mousemove",r.move),x[w]("touchmove",r.move),r.stop=null,r.move=null,e[w]("selectstart",D),e[w]("dragstart",D),t[w]("selectstart",D),t[w]("dragstart",D),e.style.userSelect="",e.style.webkitUserSelect="",e.style.MozUserSelect="",e.style.pointerEvents="",t.style.userSelect="",t.style.webkitUserSelect="",t.style.MozUserSelect="",t.style.pointerEvents="",r.gutter.style.cursor="",r.parent.style.cursor="",L.body.style.cursor=""}function xe(r){if(!("button"in r&&r.button!==0)){var e=this,t=l[e.a].element,a=l[e.b].element;e.dragging||m(i,"onDragStart",D)(k()),r.preventDefault(),e.dragging=!0,e.move=ze.bind(e),e.stop=Oe.bind(e),x[A]("mouseup",e.stop),x[A]("touchend",e.stop),x[A]("touchcancel",e.stop),x[A]("mousemove",e.move),x[A]("touchmove",e.move),t[A]("selectstart",D),t[A]("dragstart",D),a[A]("selectstart",D),a[A]("dragstart",D),t.style.userSelect="none",t.style.webkitUserSelect="none",t.style.MozUserSelect="none",t.style.pointerEvents="none",a.style.userSelect="none",a.style.webkitUserSelect="none",a.style.MozUserSelect="none",a.style.pointerEvents="none",e.gutter.style.cursor=X,e.parent.style.cursor=X,L.body.style.cursor=X,se.call(e),e.dragOffset=ie(r)-e.end}}U=oe(U);var P=[];l=u.map(function(r,e){var t={element:de(r),size:U[e],minSize:T[e],maxSize:C[e],snapOffset:ge[e],i:e},a;if(e>0&&(a={a:e-1,b:e,dragging:!1,direction:I,parent:g},a[R]=H(O,e-1===0,!1,j),a[M]=H(O,!1,e===u.length-1,j),E==="row-reverse"||E==="column-reverse")){var v=a.a;a.a=a.b,a.b=v}if(e>0){var f=ye(e,I,t.element);Se(f,O,e),a[G]=xe.bind(a),f[A]("mousedown",a[G]),f[A]("touchstart",a[G]),g.insertBefore(f,t.element),a.gutter=f}return N(t.element,t.size,H(O,e===0,e===u.length-1,j),e),e>0&&P.push(a),t});function ue(r){var e=r.i===P.length,t=e?P[r.i-1]:P[r.i];se.call(t);var a=e?t.size-r.minSize-t[M]:r.minSize+t[R];ae.call(t,a)}l.forEach(function(r){var e=r.element[Q]()[n];e<r.minSize&&(z?ue(r):r.minSize=e)});function Ee(r){var e=oe(r);e.forEach(function(t,a){if(a>0){var v=P[a-1],f=l[v.a],b=l[v.b];f.size=e[a-1],b.size=t,N(f.element,f.size,v[R],f.i),N(b.element,b.size,v[M],b.i)}})}function Te(r,e){P.forEach(function(t){if(e!==!0?t.parent.removeChild(t.gutter):(t.gutter[w]("mousedown",t[G]),t.gutter[w]("touchstart",t[G])),r!==!0){var a=ne(n,t.a.size,t[R]);Object.keys(a).forEach(function(v){l[t.a].element.style[v]="",l[t.b].element.style[v]=""})}})}return{setSizes:Ee,getSizes:k,collapse:function(e){ue(l[e])},destroy:Te,parent:g,pairs:P}};function ee(s,i){var u={};for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&i.indexOf(n)===-1&&(u[n]=s[n]);return u}var re=function(s){function i(){s.apply(this,arguments)}return s&&(i.__proto__=s),i.prototype=Object.create(s&&s.prototype),i.prototype.constructor=i,i.prototype.componentDidMount=function(){var n=this.props;n.children;var o=n.gutter,p=ee(n,["children","gutter"]),d=p;d.gutter=function(y,l){var h;return o?h=o(y,l):(h=document.createElement("div"),h.className="gutter gutter-"+l),h.__isSplitGutter=!0,h},this.split=ve(this.parent.children,d)},i.prototype.componentDidUpdate=function(n){var o=this,p=this.props;p.children;var d=p.minSize,y=p.sizes,l=p.collapsed,h=ee(p,["children","minSize","sizes","collapsed"]),g=h,S=n.minSize,E=n.sizes,U=n.collapsed,W=["maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor"],T=W.map(function(z){return o.props[z]!==n[z]}).reduce(function(z,O){return z||O},!1);if(Array.isArray(d)&&Array.isArray(S)){var _=!1;d.forEach(function(z,O){_=_||z!==S[O]}),T=T||_}else Array.isArray(d)||Array.isArray(S)?T=!0:T=T||d!==S;if(T)g.minSize=d,g.sizes=y||this.split.getSizes(),this.split.destroy(!0,!0),g.gutter=function(z,O,j){return j.previousSibling},this.split=ve(Array.from(this.parent.children).filter(function(z){return!z.__isSplitGutter}),g);else if(y){var C=!1;y.forEach(function(z,O){C=C||z!==E[O]}),C&&this.split.setSizes(this.props.sizes)}Number.isInteger(l)&&(l!==U||T)&&this.split.collapse(l)},i.prototype.componentWillUnmount=function(){this.split.destroy(),delete this.split},i.prototype.render=function(){var n=this,o=this.props;o.sizes,o.minSize,o.maxSize,o.expandToMin,o.gutterSize,o.gutterAlign,o.snapOffset,o.dragInterval,o.direction,o.cursor,o.gutter,o.elementStyle,o.gutterStyle,o.onDrag,o.onDragStart,o.onDragEnd,o.collapsed;var p=o.children,d=ee(o,["sizes","minSize","maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor","gutter","elementStyle","gutterStyle","onDrag","onDragStart","onDragEnd","collapsed","children"]),y=d;return le.createElement("div",Object.assign({},{ref:function(l){n.parent=l}},y),p)},i}(le.Component);re.propTypes={sizes:c.arrayOf(c.number),minSize:c.oneOfType([c.number,c.arrayOf(c.number)]),maxSize:c.oneOfType([c.number,c.arrayOf(c.number)]),expandToMin:c.bool,gutterSize:c.number,gutterAlign:c.string,snapOffset:c.oneOfType([c.number,c.arrayOf(c.number)]),dragInterval:c.number,direction:c.string,cursor:c.string,gutter:c.func,elementStyle:c.func,gutterStyle:c.func,onDrag:c.func,onDragStart:c.func,onDragEnd:c.func,collapsed:c.number,children:c.arrayOf(c.element)};re.defaultProps={sizes:void 0,minSize:void 0,maxSize:void 0,expandToMin:void 0,gutterSize:void 0,gutterAlign:void 0,snapOffset:void 0,dragInterval:void 0,direction:void 0,cursor:void 0,gutter:void 0,elementStyle:void 0,gutterStyle:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0,collapsed:void 0,children:void 0};function Ce({className:s,children:i,sizes:u,minSize:n,maxSize:o,direction:p,expandToMin:d=!1,snapOffset:y,cursor:l,handleDrag:h,onDragEnd:g}){const S=we.useRef(null);return Re.jsx(re,{ref:S,className:s,sizes:u,cursor:l,expandToMin:d,gutterAlign:"center",gutterSize:2,direction:p,minSize:n,maxSize:o,snapOffset:y,onDrag:E=>h==null?void 0:h(E,S.current),onDragEnd:E=>g==null?void 0:g(E,S.current),children:i})}export{Ce as S};
|
|
1
|
+
import{a1 as Ae,R as le,r as we,j as Re}from"./index-Dj0i1-CA.js";var Z={exports:{}},J,ce;function De(){if(ce)return J;ce=1;var s="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return J=s,J}var K,fe;function Me(){if(fe)return K;fe=1;var s=De();function i(){}function u(){}return u.resetWarningCache=i,K=function(){function n(d,y,l,h,g,S){if(S!==s){var E=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw E.name="Invariant Violation",E}}n.isRequired=n;function o(){return n}var p={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:u,resetWarningCache:i};return p.PropTypes=p,p},K}var pe;function _e(){return pe||(pe=1,Z.exports=Me()()),Z.exports}var Pe=_e();const c=Ae(Pe);var x=typeof window<"u"?window:null,te=x===null,L=te?void 0:x.document,A="addEventListener",w="removeEventListener",Q="getBoundingClientRect",G="_a",R="_b",M="_c",$="horizontal",D=function(){return!1},Fe=te?"calc":["","-webkit-","-moz-","-o-"].filter(function(s){var i=L.createElement("div");return i.style.cssText="width:"+s+"calc(9px)",!!i.style.length}).shift()+"calc",me=function(s){return typeof s=="string"||s instanceof String},de=function(s){if(me(s)){var i=L.querySelector(s);if(!i)throw new Error("Selector "+s+" did not match a DOM element");return i}return s},m=function(s,i,u){var n=s[i];return n!==void 0?n:u},H=function(s,i,u,n){if(i){if(n==="end")return 0;if(n==="center")return s/2}else if(u){if(n==="start")return 0;if(n==="center")return s/2}return s},je=function(s,i){var u=L.createElement("div");return u.className="gutter gutter-"+i,u},Ie=function(s,i,u){var n={};return me(i)?n[s]=i:n[s]=Fe+"("+i+"% - "+u+"px)",n},Ue=function(s,i){var u;return u={},u[s]=i+"px",u},ve=function(s,i){if(i===void 0&&(i={}),te)return{};var u=s,n,o,p,d,y,l;Array.from&&(u=Array.from(u));var h=de(u[0]),g=h.parentNode,S=getComputedStyle?getComputedStyle(g):null,E=S?S.flexDirection:null,U=m(i,"sizes")||u.map(function(){return 100/u.length}),W=m(i,"minSize",100),T=Array.isArray(W)?W:u.map(function(){return W}),_=m(i,"maxSize",1/0),C=Array.isArray(_)?_:u.map(function(){return _}),z=m(i,"expandToMin",!1),O=m(i,"gutterSize",10),j=m(i,"gutterAlign","center"),Y=m(i,"snapOffset",30),ge=Array.isArray(Y)?Y:u.map(function(){return Y}),V=m(i,"dragInterval",1),I=m(i,"direction",$),X=m(i,"cursor",I===$?"col-resize":"row-resize"),ye=m(i,"gutter",je),ne=m(i,"elementStyle",Ie),he=m(i,"gutterStyle",Ue);I===$?(n="width",o="clientX",p="left",d="right",y="clientWidth"):I==="vertical"&&(n="height",o="clientY",p="top",d="bottom",y="clientHeight");function N(r,e,t,a){var v=ne(n,e,t,a);Object.keys(v).forEach(function(f){r.style[f]=v[f]})}function Se(r,e,t){var a=he(n,e,t);Object.keys(a).forEach(function(v){r.style[v]=a[v]})}function k(){return l.map(function(r){return r.size})}function ie(r){return"touches"in r?r.touches[0][o]:r[o]}function ae(r){var e=l[this.a],t=l[this.b],a=e.size+t.size;e.size=r/this.size*a,t.size=a-r/this.size*a,N(e.element,e.size,this[R],e.i),N(t.element,t.size,this[M],t.i)}function ze(r){var e,t=l[this.a],a=l[this.b];this.dragging&&(e=ie(r)-this.start+(this[R]-this.dragOffset),V>1&&(e=Math.round(e/V)*V),e<=t.minSize+t.snapOffset+this[R]?e=t.minSize+this[R]:e>=this.size-(a.minSize+a.snapOffset+this[M])&&(e=this.size-(a.minSize+this[M])),e>=t.maxSize-t.snapOffset+this[R]?e=t.maxSize+this[R]:e<=this.size-(a.maxSize-a.snapOffset+this[M])&&(e=this.size-(a.maxSize+this[M])),ae.call(this,e),m(i,"onDrag",D)(k()))}function se(){var r=l[this.a].element,e=l[this.b].element,t=r[Q](),a=e[Q]();this.size=t[n]+a[n]+this[R]+this[M],this.start=t[p],this.end=t[d]}function be(r){if(!getComputedStyle)return null;var e=getComputedStyle(r);if(!e)return null;var t=r[y];return t===0?null:(I===$?t-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight):t-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom),t)}function oe(r){var e=be(g);if(e===null||T.reduce(function(f,b){return f+b},0)>e)return r;var t=0,a=[],v=r.map(function(f,b){var F=e*f/100,q=H(O,b===0,b===r.length-1,j),B=T[b]+q;return F<B?(t+=B-F,a.push(0),B):(a.push(F-B),F)});return t===0?r:v.map(function(f,b){var F=f;if(t>0&&a[b]-t>0){var q=Math.min(t,a[b]-t);t-=q,F=f-q}return F/e*100})}function Oe(){var r=this,e=l[r.a].element,t=l[r.b].element;r.dragging&&m(i,"onDragEnd",D)(k()),r.dragging=!1,x[w]("mouseup",r.stop),x[w]("touchend",r.stop),x[w]("touchcancel",r.stop),x[w]("mousemove",r.move),x[w]("touchmove",r.move),r.stop=null,r.move=null,e[w]("selectstart",D),e[w]("dragstart",D),t[w]("selectstart",D),t[w]("dragstart",D),e.style.userSelect="",e.style.webkitUserSelect="",e.style.MozUserSelect="",e.style.pointerEvents="",t.style.userSelect="",t.style.webkitUserSelect="",t.style.MozUserSelect="",t.style.pointerEvents="",r.gutter.style.cursor="",r.parent.style.cursor="",L.body.style.cursor=""}function xe(r){if(!("button"in r&&r.button!==0)){var e=this,t=l[e.a].element,a=l[e.b].element;e.dragging||m(i,"onDragStart",D)(k()),r.preventDefault(),e.dragging=!0,e.move=ze.bind(e),e.stop=Oe.bind(e),x[A]("mouseup",e.stop),x[A]("touchend",e.stop),x[A]("touchcancel",e.stop),x[A]("mousemove",e.move),x[A]("touchmove",e.move),t[A]("selectstart",D),t[A]("dragstart",D),a[A]("selectstart",D),a[A]("dragstart",D),t.style.userSelect="none",t.style.webkitUserSelect="none",t.style.MozUserSelect="none",t.style.pointerEvents="none",a.style.userSelect="none",a.style.webkitUserSelect="none",a.style.MozUserSelect="none",a.style.pointerEvents="none",e.gutter.style.cursor=X,e.parent.style.cursor=X,L.body.style.cursor=X,se.call(e),e.dragOffset=ie(r)-e.end}}U=oe(U);var P=[];l=u.map(function(r,e){var t={element:de(r),size:U[e],minSize:T[e],maxSize:C[e],snapOffset:ge[e],i:e},a;if(e>0&&(a={a:e-1,b:e,dragging:!1,direction:I,parent:g},a[R]=H(O,e-1===0,!1,j),a[M]=H(O,!1,e===u.length-1,j),E==="row-reverse"||E==="column-reverse")){var v=a.a;a.a=a.b,a.b=v}if(e>0){var f=ye(e,I,t.element);Se(f,O,e),a[G]=xe.bind(a),f[A]("mousedown",a[G]),f[A]("touchstart",a[G]),g.insertBefore(f,t.element),a.gutter=f}return N(t.element,t.size,H(O,e===0,e===u.length-1,j),e),e>0&&P.push(a),t});function ue(r){var e=r.i===P.length,t=e?P[r.i-1]:P[r.i];se.call(t);var a=e?t.size-r.minSize-t[M]:r.minSize+t[R];ae.call(t,a)}l.forEach(function(r){var e=r.element[Q]()[n];e<r.minSize&&(z?ue(r):r.minSize=e)});function Ee(r){var e=oe(r);e.forEach(function(t,a){if(a>0){var v=P[a-1],f=l[v.a],b=l[v.b];f.size=e[a-1],b.size=t,N(f.element,f.size,v[R],f.i),N(b.element,b.size,v[M],b.i)}})}function Te(r,e){P.forEach(function(t){if(e!==!0?t.parent.removeChild(t.gutter):(t.gutter[w]("mousedown",t[G]),t.gutter[w]("touchstart",t[G])),r!==!0){var a=ne(n,t.a.size,t[R]);Object.keys(a).forEach(function(v){l[t.a].element.style[v]="",l[t.b].element.style[v]=""})}})}return{setSizes:Ee,getSizes:k,collapse:function(e){ue(l[e])},destroy:Te,parent:g,pairs:P}};function ee(s,i){var u={};for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&i.indexOf(n)===-1&&(u[n]=s[n]);return u}var re=function(s){function i(){s.apply(this,arguments)}return s&&(i.__proto__=s),i.prototype=Object.create(s&&s.prototype),i.prototype.constructor=i,i.prototype.componentDidMount=function(){var n=this.props;n.children;var o=n.gutter,p=ee(n,["children","gutter"]),d=p;d.gutter=function(y,l){var h;return o?h=o(y,l):(h=document.createElement("div"),h.className="gutter gutter-"+l),h.__isSplitGutter=!0,h},this.split=ve(this.parent.children,d)},i.prototype.componentDidUpdate=function(n){var o=this,p=this.props;p.children;var d=p.minSize,y=p.sizes,l=p.collapsed,h=ee(p,["children","minSize","sizes","collapsed"]),g=h,S=n.minSize,E=n.sizes,U=n.collapsed,W=["maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor"],T=W.map(function(z){return o.props[z]!==n[z]}).reduce(function(z,O){return z||O},!1);if(Array.isArray(d)&&Array.isArray(S)){var _=!1;d.forEach(function(z,O){_=_||z!==S[O]}),T=T||_}else Array.isArray(d)||Array.isArray(S)?T=!0:T=T||d!==S;if(T)g.minSize=d,g.sizes=y||this.split.getSizes(),this.split.destroy(!0,!0),g.gutter=function(z,O,j){return j.previousSibling},this.split=ve(Array.from(this.parent.children).filter(function(z){return!z.__isSplitGutter}),g);else if(y){var C=!1;y.forEach(function(z,O){C=C||z!==E[O]}),C&&this.split.setSizes(this.props.sizes)}Number.isInteger(l)&&(l!==U||T)&&this.split.collapse(l)},i.prototype.componentWillUnmount=function(){this.split.destroy(),delete this.split},i.prototype.render=function(){var n=this,o=this.props;o.sizes,o.minSize,o.maxSize,o.expandToMin,o.gutterSize,o.gutterAlign,o.snapOffset,o.dragInterval,o.direction,o.cursor,o.gutter,o.elementStyle,o.gutterStyle,o.onDrag,o.onDragStart,o.onDragEnd,o.collapsed;var p=o.children,d=ee(o,["sizes","minSize","maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor","gutter","elementStyle","gutterStyle","onDrag","onDragStart","onDragEnd","collapsed","children"]),y=d;return le.createElement("div",Object.assign({},{ref:function(l){n.parent=l}},y),p)},i}(le.Component);re.propTypes={sizes:c.arrayOf(c.number),minSize:c.oneOfType([c.number,c.arrayOf(c.number)]),maxSize:c.oneOfType([c.number,c.arrayOf(c.number)]),expandToMin:c.bool,gutterSize:c.number,gutterAlign:c.string,snapOffset:c.oneOfType([c.number,c.arrayOf(c.number)]),dragInterval:c.number,direction:c.string,cursor:c.string,gutter:c.func,elementStyle:c.func,gutterStyle:c.func,onDrag:c.func,onDragStart:c.func,onDragEnd:c.func,collapsed:c.number,children:c.arrayOf(c.element)};re.defaultProps={sizes:void 0,minSize:void 0,maxSize:void 0,expandToMin:void 0,gutterSize:void 0,gutterAlign:void 0,snapOffset:void 0,dragInterval:void 0,direction:void 0,cursor:void 0,gutter:void 0,elementStyle:void 0,gutterStyle:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0,collapsed:void 0,children:void 0};function Ce({className:s,children:i,sizes:u,minSize:n,maxSize:o,direction:p,expandToMin:d=!1,snapOffset:y,cursor:l,handleDrag:h,onDragEnd:g}){const S=we.useRef(null);return Re.jsx(re,{ref:S,className:s,sizes:u,cursor:l,expandToMin:d,gutterAlign:"center",gutterSize:2,direction:p,minSize:n,maxSize:o,snapOffset:y,onDrag:E=>h==null?void 0:h(E,S.current),onDragEnd:E=>g==null?void 0:g(E,S.current),children:i})}export{Ce as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{x as u,j as s,O as f,e as t,H as c,B as p,m as x,l as j}from"./index-
|
|
1
|
+
import{x as u,j as s,O as f,e as t,H as c,B as p,m as x,l as j}from"./index-Dj0i1-CA.js";import{P as d}from"./Page-C-XfU5BR.js";import{u as h}from"./project-BvSOI8MY.js";import{S as v}from"./SourceList-DSLO6nVJ.js";import{S}from"./SourceListItem-BHt8d9-I.js";import"./SplitPane-CViaZmw6.js";import"./file-CvJN3aZO.js";import"./Input-B-oZ6fGO.js";import"./floating-ui.react-dom-CjE-JNW1.js";import"./index-C-dJH7yZ.js";function g(){const{pathname:a}=u(),i=h(e=>e.files),r=Array.from(i.values()).filter(e=>e.path.endsWith("tests"));return s.jsx(d,{sidebar:s.jsxs("div",{className:"flex flex-col w-full h-full",children:[s.jsx(v,{keyId:"basename",keyName:"basename",to:t.Tests,items:r,isActive:e=>`${t.Tests}/${e}`===a,listItem:({to:e,name:o,description:m,text:l,disabled:n=!1})=>s.jsx(S,{to:e,name:o,text:l,description:m,disabled:n})}),s.jsx(c,{}),s.jsx("div",{className:"py-1 px-1 flex justify-end",children:s.jsx(p,{size:j.sm,variant:x.Neutral,children:"Run All"})})]}),content:s.jsx(f,{})})}export{g as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as s,i as t}from"./index-
|
|
1
|
+
import{j as s,i as t}from"./index-Dj0i1-CA.js";function i({headline:e,tagline:l}){return s.jsx("div",{className:"w-full h-full flex justify-center items-center",children:s.jsxs("div",{className:"p-4",children:[t(e)&&s.jsx("h1",{className:"text-2xl font-bold",children:e}),t(l)&&s.jsx("p",{className:"text-lg mt-4",children:l})]})})}export{i as default};
|