react-semaphor 0.1.370 → 0.1.372

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.
Files changed (52) hide show
  1. package/dist/analytics-protocol/index.cjs +1 -1
  2. package/dist/analytics-protocol/index.js +40 -38
  3. package/dist/chunks/{calendar-preferences-dialog-6q51A6XC.js → calendar-preferences-dialog-ClBAkMmF.js} +1 -1
  4. package/dist/chunks/{calendar-preferences-dialog-CUGzkNcE.js → calendar-preferences-dialog-Dn6o2r2Y.js} +1 -1
  5. package/dist/chunks/{dashboard-briefing-launcher-BEZnvIla.js → dashboard-briefing-launcher-BO-kXtEd.js} +1 -1
  6. package/dist/chunks/{dashboard-briefing-launcher-ptERmNJr.js → dashboard-briefing-launcher-D3Xfc_26.js} +3 -3
  7. package/dist/chunks/{dashboard-controls-CqKC5oEk.js → dashboard-controls-B3sdy_Zx.js} +3 -3
  8. package/dist/chunks/{dashboard-controls-CGt6_hMf.js → dashboard-controls-DcXMFgGR.js} +1 -1
  9. package/dist/chunks/{dashboard-json-6SgPm_QW.js → dashboard-json-BWfkEy48.js} +1 -1
  10. package/dist/chunks/{dashboard-json-CYSbOdmE.js → dashboard-json-CFURS_OR.js} +1 -1
  11. package/dist/chunks/{edit-dashboard-visual-w6hKbjlw.js → edit-dashboard-visual-BD2AJLiT.js} +1 -1
  12. package/dist/chunks/{edit-dashboard-visual-ByQx_M2i.js → edit-dashboard-visual-DjdhKiP2.js} +3 -3
  13. package/dist/chunks/{index-CPyEi9gS.js → index-C0Qnfr_7.js} +5 -4
  14. package/dist/chunks/{index-BtqYNH_S.js → index-DlLvzmJF.js} +2 -2
  15. package/dist/chunks/{resource-management-panel-Bf8-3eUf.js → resource-management-panel-DytUMSGA.js} +1 -1
  16. package/dist/chunks/{resource-management-panel-mJ84NxzC.js → resource-management-panel-YvIfaphX.js} +2 -2
  17. package/dist/chunks/{use-create-flow-overlay-state-BfoXDDrd.js → use-create-flow-overlay-state-BETXykC9.js} +2 -2
  18. package/dist/chunks/{use-create-flow-overlay-state-c6rCm36x.js → use-create-flow-overlay-state-CwIG1Ekp.js} +1 -1
  19. package/dist/chunks/{use-visual-utils-NN0e3fBP.js → use-visual-utils-Bk135OgA.js} +1 -1
  20. package/dist/chunks/{use-visual-utils-C_c-aiqi.js → use-visual-utils-BzFjIykb.js} +1 -1
  21. package/dist/chunks/{validation-PPSpYtVf.js → validation-CQFpcSSP.js} +295 -192
  22. package/dist/chunks/validation-D4Zz6WPD.js +1 -0
  23. package/dist/chunks/{validators-DBNa-eb1.js → validators-CuKnUZFO.js} +717 -345
  24. package/dist/chunks/validators-DHee9kM2.js +1 -0
  25. package/dist/dashboard/index.cjs +1 -1
  26. package/dist/dashboard/index.js +1 -1
  27. package/dist/dashboard-authoring/index.cjs +1 -1
  28. package/dist/dashboard-authoring/index.js +1 -1
  29. package/dist/data-app-builder/index.cjs +1 -1
  30. package/dist/data-app-builder/index.js +1 -1
  31. package/dist/data-app-sdk/index.cjs +1 -1
  32. package/dist/data-app-sdk/index.js +56 -49
  33. package/dist/data-app-sdk-validation/index.cjs +1 -1
  34. package/dist/data-app-sdk-validation/index.js +5 -4
  35. package/dist/index.cjs +1 -1
  36. package/dist/index.js +5 -5
  37. package/dist/surfboard/index.cjs +1 -1
  38. package/dist/surfboard/index.js +2 -2
  39. package/dist/types/analytics-protocol.d.ts +91 -0
  40. package/dist/types/dashboard-assistant.d.ts +60 -2
  41. package/dist/types/dashboard-authoring.d.ts +58 -2
  42. package/dist/types/dashboard.d.ts +67 -2
  43. package/dist/types/data-app-builder.d.ts +41 -0
  44. package/dist/types/data-app-sdk-validation.d.ts +50 -3
  45. package/dist/types/data-app-sdk.d.ts +53 -3
  46. package/dist/types/main.d.ts +59 -2
  47. package/dist/types/shared.d.ts +66 -2
  48. package/dist/types/surfboard.d.ts +67 -2
  49. package/dist/types/types.d.ts +67 -2
  50. package/package.json +1 -1
  51. package/dist/chunks/validation-DYL3ArlL.js +0 -1
  52. package/dist/chunks/validators-CgxWT8UX.js +0 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../chunks/validators-CgxWT8UX.js"),i=require("../chunks/catalog-field-grounding-Du6mKDcF.js"),l=require("../chunks/source-identity-C-xaeE_I.js");function c(e,a={}){const r=d(e),t={connectionId:a.connectionId,connectionType:e,path:["database","schema","table"],labels:{database:"Database",schema:"Schema",table:"Table"},prefixLevels:["database","schema","table"],dialect:"postgres",supportsFilterClause:!0};return r.includes("postgres")?{...t,prefixLevels:["schema","table"],dialect:"postgres"}:r.includes("mysql")?{...t,prefixLevels:["database","table"],dialect:"mysql",supportsFilterClause:!1}:r.includes("mssql")||r.includes("sqlserver")?{...t,dialect:"mssql",supportsFilterClause:!1}:r.includes("redshift")?{...t,prefixLevels:["schema","table"],dialect:"redshift"}:r.includes("snowflake")?{...t,dialect:"snowflake"}:r.includes("clickhouse")?{connectionId:a.connectionId,connectionType:e,path:["database","table"],labels:{database:"Database",table:"Table"},prefixLevels:["database","table"],dialect:"clickhouse",supportsFilterClause:!1}:r==="s3"||r==="api"?{connectionId:a.connectionId,connectionType:e,path:["table"],labels:{table:r==="api"?"API Table":"File Table"},prefixLevels:["table"],dialect:"duckdb",supportsFilterClause:!0}:r==="googlesheets"||r==="fileupload"?{connectionId:a.connectionId,connectionType:e,path:["table"],labels:{table:"Table"},prefixLevels:["table"],dialect:"postgres",supportsFilterClause:!0}:r==="s3tables"?{...t,labels:{database:"Database",schema:"Namespace",table:"Table"},dialect:"duckdb"}:r==="bigquery"?{...t,labels:{database:"Project",schema:"Dataset",table:"Table"},prefixLevels:["schema","table"],dialect:"bigquery",supportsFilterClause:!1}:t}function u(e){const a=d(e);switch(a){case"mysql":case"bigquery":case"redshift":case"snowflake":case"clickhouse":case"duckdb":case"sqlite":return a;case"mssql":case"sqlserver":return"mssql";case"postgres":case"postgresql":return"postgres";default:return"unknown"}}function m(e){return e.capabilities.prefixLevels.every(a=>!!o(e.source,a))}function p(e){const a=e.quoteIdentifier??b;return e.capabilities.prefixLevels.map(r=>o(e.source,r)).filter(r=>!!r).map(r=>a(r,e.capabilities.dialect)).join(".")}function o(e,a){return a==="database"?e.databaseName:a==="schema"?e.schemaName:e.tableName}function b(e,a){return a==="mysql"||a==="bigquery"||a==="clickhouse"||a==="duckdb"?`\`${e.replace(/`/g,"``")}\``:a==="mssql"?`[${e.replace(/]/g,"]]")}]`:`"${e.replace(/"/g,'""')}"`}function d(e){if(typeof e!="string")return"";const a=[];for(const r of e.trim().toLowerCase())f(r)&&a.push(r);return a.join("")}function f(e){const a=e.charCodeAt(0);return a>=48&&a<=57||a>=97&&a<=122}const s={kind:"semantic",domainId:"domain_sales",datasetName:"orders",connectionId:"conn_sales",label:"Orders"},h={revenueKpi:{version:1,kind:"metric",id:"revenue-kpi",label:"Revenue",source:s,metrics:[{name:"revenue",role:"measure"}],primaryMetric:{name:"revenue",role:"measure"},comparison:{kind:"previous_period"},limit:1},revenueTrend:{version:1,kind:"records",id:"revenue-trend",label:"Revenue trend",source:s,fields:[{name:"order_date",role:"date",dataType:"date",label:"Order Date"},{name:"revenue",role:"measure",dataType:"number"}],dateField:{name:"order_date",role:"date",dataType:"date"},timeGrain:"month",limit:100},topCustomersRecords:{version:1,kind:"records",id:"top-customers",label:"Top customers",source:s,fields:[{name:"customer_name",role:"dimension",dataType:"string"},{name:"segment",role:"dimension",dataType:"string"},{name:"revenue",role:"measure",dataType:"number"}],orderBy:{field:{name:"revenue",role:"measure"},direction:"desc"},limit:20},regionInputOptions:{version:1,kind:"inputOptions",id:"region-options",label:"Region options",source:s,field:{name:"region",role:"dimension",dataType:"string"},limit:100},previousPeriodRevenueComparison:{version:1,kind:"metric",id:"revenue-previous-period",label:"Revenue previous period comparison",source:s,metrics:[{name:"revenue",role:"measure"}],primaryMetric:{name:"revenue",role:"measure"},dateField:{name:"order_date",role:"date",dataType:"date"},timeGrain:"week",comparison:{kind:"previous_period"},limit:100},inboundSupplierConcentration:{version:1,kind:"metric",id:"inbound-supplier-concentration",label:"Inbound supplier concentration",source:s,metrics:[{name:"net_tons",role:"measure"},{name:"ticket_value",role:"measure"}],primaryMetric:{name:"net_tons",role:"measure"},dateField:{name:"ticket_date",role:"date",dataType:"date"},timeWindow:{unit:"month",value:6,anchor:"latest_available"},dimensions:[{name:"supplier_id",role:"dimension",dataType:"number"}],filters:[{field:{name:"direction",role:"dimension",dataType:"string"},operator:"=",values:["Inbound"]}],limit:15},boundedSqlRanking:{version:1,kind:"sql",id:"top-customer-ranking-sql",label:"Top customer ranking SQL",source:{kind:"sql",connectionId:"conn_sales",dialect:"postgres"},sql:"SELECT customer_name, SUM(revenue) AS revenue FROM public.orders GROUP BY customer_name ORDER BY revenue DESC LIMIT 20",limit:20,rationale:"Ranking is SQL-natural because it requires ordering grouped aggregate rows.",fields:[{name:"customer_name",role:"dimension",dataType:"string"},{name:"revenue",role:"measure",dataType:"number"}]}};exports.normalizeSemaphorAnalyticsFilterOperator=n.normalizeSemaphorAnalyticsFilterOperator;exports.normalizeSemaphorInputOperator=n.normalizeSemaphorInputOperator;exports.parseSemaphorIsoTimeWindowBoundary=n.parseSemaphorIsoTimeWindowBoundary;exports.validateSemaphorAnalyticsIntent=n.validateSemaphorAnalyticsIntent;exports.validateSemaphorAnalyticsRecoveryPlan=n.validateSemaphorAnalyticsRecoveryPlan;exports.validateSemaphorDashboardIntent=n.validateSemaphorDashboardIntent;exports.validateSemaphorOperationIntent=n.validateSemaphorOperationIntent;exports.buildAnalyticsCatalogFieldSummary=i.buildAnalyticsCatalogFieldSummary;exports.getAnalyticsCatalogFieldCandidates=i.getAnalyticsCatalogFieldCandidates;exports.getAnalyticsCatalogFieldName=i.getAnalyticsCatalogFieldName;exports.isAnalyticsCatalogDateField=i.isAnalyticsCatalogDateField;exports.isAnalyticsCatalogDimensionField=i.isAnalyticsCatalogDimensionField;exports.isAnalyticsCatalogMetricField=i.isAnalyticsCatalogMetricField;exports.isAnalyticsDateLikeDataType=i.isAnalyticsDateLikeDataType;exports.isAnalyticsMetricIdentifierField=i.isAnalyticsMetricIdentifierField;exports.isAnalyticsTechnicalIdentifierField=i.isAnalyticsTechnicalIdentifierField;exports.normalizeAnalyticsCatalogDataType=i.normalizeAnalyticsCatalogDataType;exports.normalizeAnalyticsCatalogName=i.normalizeAnalyticsCatalogName;exports.preferSemaphorFieldRefMetadata=l.preferSemaphorFieldRefMetadata;exports.preferSemaphorSourceMetadata=l.preferSemaphorSourceMetadata;exports.semaphorFieldRefsMatch=l.semaphorFieldRefsMatch;exports.semaphorSourceIdentityKey=l.semaphorSourceIdentityKey;exports.semaphorSourcesReferToSameDataset=l.semaphorSourcesReferToSameDataset;exports.SEMAPHOR_ANALYTICS_INTENT_FIXTURES=h;exports.buildSemaphorQualifiedSourcePath=p;exports.getSemaphorConnectionCapabilities=c;exports.normalizeSemaphorDialect=u;exports.semaphorSourceHasRequiredCoordinates=m;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../chunks/validators-DHee9kM2.js"),r=require("../chunks/catalog-field-grounding-Du6mKDcF.js"),l=require("../chunks/source-identity-C-xaeE_I.js");function c(e,a={}){const i=d(e),n={connectionId:a.connectionId,connectionType:e,path:["database","schema","table"],labels:{database:"Database",schema:"Schema",table:"Table"},prefixLevels:["database","schema","table"],dialect:"postgres",supportsFilterClause:!0};return i.includes("postgres")?{...n,prefixLevels:["schema","table"],dialect:"postgres"}:i.includes("mysql")?{...n,prefixLevels:["database","table"],dialect:"mysql",supportsFilterClause:!1}:i.includes("mssql")||i.includes("sqlserver")?{...n,dialect:"mssql",supportsFilterClause:!1}:i.includes("redshift")?{...n,prefixLevels:["schema","table"],dialect:"redshift"}:i.includes("snowflake")?{...n,dialect:"snowflake"}:i.includes("clickhouse")?{connectionId:a.connectionId,connectionType:e,path:["database","table"],labels:{database:"Database",table:"Table"},prefixLevels:["database","table"],dialect:"clickhouse",supportsFilterClause:!1}:i==="s3"||i==="api"?{connectionId:a.connectionId,connectionType:e,path:["table"],labels:{table:i==="api"?"API Table":"File Table"},prefixLevels:["table"],dialect:"duckdb",supportsFilterClause:!0}:i==="googlesheets"||i==="fileupload"?{connectionId:a.connectionId,connectionType:e,path:["table"],labels:{table:"Table"},prefixLevels:["table"],dialect:"postgres",supportsFilterClause:!0}:i==="s3tables"?{...n,labels:{database:"Database",schema:"Namespace",table:"Table"},dialect:"duckdb"}:i==="bigquery"?{...n,labels:{database:"Project",schema:"Dataset",table:"Table"},prefixLevels:["schema","table"],dialect:"bigquery",supportsFilterClause:!1}:n}function u(e){const a=d(e);switch(a){case"mysql":case"bigquery":case"redshift":case"snowflake":case"clickhouse":case"duckdb":case"sqlite":return a;case"mssql":case"sqlserver":return"mssql";case"postgres":case"postgresql":return"postgres";default:return"unknown"}}function m(e){return e.capabilities.prefixLevels.every(a=>!!o(e.source,a))}function p(e){const a=e.quoteIdentifier??b;return e.capabilities.prefixLevels.map(i=>o(e.source,i)).filter(i=>!!i).map(i=>a(i,e.capabilities.dialect)).join(".")}function o(e,a){return a==="database"?e.databaseName:a==="schema"?e.schemaName:e.tableName}function b(e,a){return a==="mysql"||a==="bigquery"||a==="clickhouse"||a==="duckdb"?`\`${e.replace(/`/g,"``")}\``:a==="mssql"?`[${e.replace(/]/g,"]]")}]`:`"${e.replace(/"/g,'""')}"`}function d(e){if(typeof e!="string")return"";const a=[];for(const i of e.trim().toLowerCase())f(i)&&a.push(i);return a.join("")}function f(e){const a=e.charCodeAt(0);return a>=48&&a<=57||a>=97&&a<=122}const s={kind:"semantic",domainId:"domain_sales",datasetName:"orders",connectionId:"conn_sales",label:"Orders"},h={revenueKpi:{version:1,kind:"metric",id:"revenue-kpi",label:"Revenue",source:s,metrics:[{name:"revenue",role:"measure"}],primaryMetric:{name:"revenue",role:"measure"},comparison:{kind:"previous_period"},limit:1},revenueTrend:{version:1,kind:"records",id:"revenue-trend",label:"Revenue trend",source:s,fields:[{name:"order_date",role:"date",dataType:"date",label:"Order Date"},{name:"revenue",role:"measure",dataType:"number"}],dateField:{name:"order_date",role:"date",dataType:"date"},timeGrain:"month",limit:100},topCustomersRecords:{version:1,kind:"records",id:"top-customers",label:"Top customers",source:s,fields:[{name:"customer_name",role:"dimension",dataType:"string"},{name:"segment",role:"dimension",dataType:"string"},{name:"revenue",role:"measure",dataType:"number"}],orderBy:{field:{name:"revenue",role:"measure"},direction:"desc"},limit:20},regionInputOptions:{version:1,kind:"inputOptions",id:"region-options",label:"Region options",source:s,field:{name:"region",role:"dimension",dataType:"string"},limit:100},previousPeriodRevenueComparison:{version:1,kind:"metric",id:"revenue-previous-period",label:"Revenue previous period comparison",source:s,metrics:[{name:"revenue",role:"measure"}],primaryMetric:{name:"revenue",role:"measure"},dateField:{name:"order_date",role:"date",dataType:"date"},timeGrain:"week",comparison:{kind:"previous_period"},limit:100},inboundSupplierConcentration:{version:1,kind:"metric",id:"inbound-supplier-concentration",label:"Inbound supplier concentration",source:s,metrics:[{name:"net_tons",role:"measure"},{name:"ticket_value",role:"measure"}],primaryMetric:{name:"net_tons",role:"measure"},dateField:{name:"ticket_date",role:"date",dataType:"date"},timeWindow:{unit:"month",value:6,anchor:"latest_available"},dimensions:[{name:"supplier_id",role:"dimension",dataType:"number"}],filters:[{field:{name:"direction",role:"dimension",dataType:"string"},operator:"=",values:["Inbound"]}],limit:15},boundedSqlRanking:{version:1,kind:"sql",id:"top-customer-ranking-sql",label:"Top customer ranking SQL",source:{kind:"sql",connectionId:"conn_sales",dialect:"postgres"},sql:"SELECT customer_name, SUM(revenue) AS revenue FROM public.orders GROUP BY customer_name ORDER BY revenue DESC LIMIT 20",limit:20,rationale:"Ranking is SQL-natural because it requires ordering grouped aggregate rows.",fields:[{name:"customer_name",role:"dimension",dataType:"string"},{name:"revenue",role:"measure",dataType:"number"}]}};exports.normalizeSemaphorAnalyticsFilterOperator=t.normalizeSemaphorAnalyticsFilterOperator;exports.normalizeSemaphorInputOperator=t.normalizeSemaphorInputOperator;exports.parseSemaphorIsoTimeWindowBoundary=t.parseSemaphorIsoTimeWindowBoundary;exports.validateSemaphorAnalyticsIntent=t.validateSemaphorAnalyticsIntent;exports.validateSemaphorAnalyticsRecoveryPlan=t.validateSemaphorAnalyticsRecoveryPlan;exports.validateSemaphorDashboardIntent=t.validateSemaphorDashboardIntent;exports.validateSemaphorDerivedFieldDefinition=t.validateSemaphorDerivedFieldDefinition;exports.validateSemaphorOperationIntent=t.validateSemaphorOperationIntent;exports.validateSemaphorResultCalculation=t.validateSemaphorResultCalculation;exports.buildAnalyticsCatalogFieldSummary=r.buildAnalyticsCatalogFieldSummary;exports.getAnalyticsCatalogFieldCandidates=r.getAnalyticsCatalogFieldCandidates;exports.getAnalyticsCatalogFieldName=r.getAnalyticsCatalogFieldName;exports.isAnalyticsCatalogDateField=r.isAnalyticsCatalogDateField;exports.isAnalyticsCatalogDimensionField=r.isAnalyticsCatalogDimensionField;exports.isAnalyticsCatalogMetricField=r.isAnalyticsCatalogMetricField;exports.isAnalyticsDateLikeDataType=r.isAnalyticsDateLikeDataType;exports.isAnalyticsMetricIdentifierField=r.isAnalyticsMetricIdentifierField;exports.isAnalyticsTechnicalIdentifierField=r.isAnalyticsTechnicalIdentifierField;exports.normalizeAnalyticsCatalogDataType=r.normalizeAnalyticsCatalogDataType;exports.normalizeAnalyticsCatalogName=r.normalizeAnalyticsCatalogName;exports.preferSemaphorFieldRefMetadata=l.preferSemaphorFieldRefMetadata;exports.preferSemaphorSourceMetadata=l.preferSemaphorSourceMetadata;exports.semaphorFieldRefsMatch=l.semaphorFieldRefsMatch;exports.semaphorSourceIdentityKey=l.semaphorSourceIdentityKey;exports.semaphorSourcesReferToSameDataset=l.semaphorSourcesReferToSameDataset;exports.SEMAPHOR_ANALYTICS_INTENT_FIXTURES=h;exports.buildSemaphorQualifiedSourcePath=p;exports.getSemaphorConnectionCapabilities=c;exports.normalizeSemaphorDialect=u;exports.semaphorSourceHasRequiredCoordinates=m;
@@ -1,8 +1,8 @@
1
- import { a as h, n as v, p as g, v as y, c as k, d as S, b as I } from "../chunks/validators-DBNa-eb1.js";
2
- import { j as T, a as q, g as F, c as A, h as _, f as R, i as L, e as D, d as x, b as M, n as N } from "../chunks/catalog-field-grounding-DoEBOXQd.js";
3
- import { c as w, p as z, b as E, s as P, a as B } from "../chunks/source-identity-Dj3dryN9.js";
1
+ import { a as h, n as v, p as g, c as y, e as S, f as k, v as C, d as I, b as T } from "../chunks/validators-CuKnUZFO.js";
2
+ import { j as F, a as A, g as _, c as R, h as L, f as D, i as x, e as M, d as N, b as O, n as w } from "../chunks/catalog-field-grounding-DoEBOXQd.js";
3
+ import { c as E, p as P, b as B, s as j, a as Q } from "../chunks/source-identity-Dj3dryN9.js";
4
4
  function d(e, a = {}) {
5
- const r = n(e), t = {
5
+ const r = n(e), i = {
6
6
  connectionId: a.connectionId,
7
7
  connectionType: e,
8
8
  path: ["database", "schema", "table"],
@@ -16,24 +16,24 @@ function d(e, a = {}) {
16
16
  supportsFilterClause: !0
17
17
  };
18
18
  return r.includes("postgres") ? {
19
- ...t,
19
+ ...i,
20
20
  prefixLevels: ["schema", "table"],
21
21
  dialect: "postgres"
22
22
  } : r.includes("mysql") ? {
23
- ...t,
23
+ ...i,
24
24
  prefixLevels: ["database", "table"],
25
25
  dialect: "mysql",
26
26
  supportsFilterClause: !1
27
27
  } : r.includes("mssql") || r.includes("sqlserver") ? {
28
- ...t,
28
+ ...i,
29
29
  dialect: "mssql",
30
30
  supportsFilterClause: !1
31
31
  } : r.includes("redshift") ? {
32
- ...t,
32
+ ...i,
33
33
  prefixLevels: ["schema", "table"],
34
34
  dialect: "redshift"
35
35
  } : r.includes("snowflake") ? {
36
- ...t,
36
+ ...i,
37
37
  dialect: "snowflake"
38
38
  } : r.includes("clickhouse") ? {
39
39
  connectionId: a.connectionId,
@@ -67,7 +67,7 @@ function d(e, a = {}) {
67
67
  dialect: "postgres",
68
68
  supportsFilterClause: !0
69
69
  } : r === "s3tables" ? {
70
- ...t,
70
+ ...i,
71
71
  labels: {
72
72
  database: "Database",
73
73
  schema: "Namespace",
@@ -75,7 +75,7 @@ function d(e, a = {}) {
75
75
  },
76
76
  dialect: "duckdb"
77
77
  } : r === "bigquery" ? {
78
- ...t,
78
+ ...i,
79
79
  labels: {
80
80
  database: "Project",
81
81
  schema: "Dataset",
@@ -84,7 +84,7 @@ function d(e, a = {}) {
84
84
  prefixLevels: ["schema", "table"],
85
85
  dialect: "bigquery",
86
86
  supportsFilterClause: !1
87
- } : t;
87
+ } : i;
88
88
  }
89
89
  function c(e) {
90
90
  const a = n(e);
@@ -134,7 +134,7 @@ function l(e) {
134
134
  const a = e.charCodeAt(0);
135
135
  return a >= 48 && a <= 57 || a >= 97 && a <= 122;
136
136
  }
137
- const i = {
137
+ const t = {
138
138
  kind: "semantic",
139
139
  domainId: "domain_sales",
140
140
  datasetName: "orders",
@@ -146,7 +146,7 @@ const i = {
146
146
  kind: "metric",
147
147
  id: "revenue-kpi",
148
148
  label: "Revenue",
149
- source: i,
149
+ source: t,
150
150
  metrics: [{ name: "revenue", role: "measure" }],
151
151
  primaryMetric: { name: "revenue", role: "measure" },
152
152
  comparison: { kind: "previous_period" },
@@ -157,7 +157,7 @@ const i = {
157
157
  kind: "records",
158
158
  id: "revenue-trend",
159
159
  label: "Revenue trend",
160
- source: i,
160
+ source: t,
161
161
  fields: [
162
162
  { name: "order_date", role: "date", dataType: "date", label: "Order Date" },
163
163
  { name: "revenue", role: "measure", dataType: "number" }
@@ -171,7 +171,7 @@ const i = {
171
171
  kind: "records",
172
172
  id: "top-customers",
173
173
  label: "Top customers",
174
- source: i,
174
+ source: t,
175
175
  fields: [
176
176
  { name: "customer_name", role: "dimension", dataType: "string" },
177
177
  { name: "segment", role: "dimension", dataType: "string" },
@@ -185,7 +185,7 @@ const i = {
185
185
  kind: "inputOptions",
186
186
  id: "region-options",
187
187
  label: "Region options",
188
- source: i,
188
+ source: t,
189
189
  field: { name: "region", role: "dimension", dataType: "string" },
190
190
  limit: 100
191
191
  },
@@ -194,7 +194,7 @@ const i = {
194
194
  kind: "metric",
195
195
  id: "revenue-previous-period",
196
196
  label: "Revenue previous period comparison",
197
- source: i,
197
+ source: t,
198
198
  metrics: [{ name: "revenue", role: "measure" }],
199
199
  primaryMetric: { name: "revenue", role: "measure" },
200
200
  dateField: { name: "order_date", role: "date", dataType: "date" },
@@ -207,7 +207,7 @@ const i = {
207
207
  kind: "metric",
208
208
  id: "inbound-supplier-concentration",
209
209
  label: "Inbound supplier concentration",
210
- source: i,
210
+ source: t,
211
211
  metrics: [
212
212
  { name: "net_tons", role: "measure" },
213
213
  { name: "ticket_value", role: "measure" }
@@ -246,31 +246,33 @@ const i = {
246
246
  };
247
247
  export {
248
248
  p as SEMAPHOR_ANALYTICS_INTENT_FIXTURES,
249
- T as buildAnalyticsCatalogFieldSummary,
249
+ F as buildAnalyticsCatalogFieldSummary,
250
250
  m as buildSemaphorQualifiedSourcePath,
251
- q as getAnalyticsCatalogFieldCandidates,
252
- F as getAnalyticsCatalogFieldName,
251
+ A as getAnalyticsCatalogFieldCandidates,
252
+ _ as getAnalyticsCatalogFieldName,
253
253
  d as getSemaphorConnectionCapabilities,
254
- A as isAnalyticsCatalogDateField,
255
- _ as isAnalyticsCatalogDimensionField,
256
- R as isAnalyticsCatalogMetricField,
257
- L as isAnalyticsDateLikeDataType,
258
- D as isAnalyticsMetricIdentifierField,
259
- x as isAnalyticsTechnicalIdentifierField,
260
- M as normalizeAnalyticsCatalogDataType,
261
- N as normalizeAnalyticsCatalogName,
254
+ R as isAnalyticsCatalogDateField,
255
+ L as isAnalyticsCatalogDimensionField,
256
+ D as isAnalyticsCatalogMetricField,
257
+ x as isAnalyticsDateLikeDataType,
258
+ M as isAnalyticsMetricIdentifierField,
259
+ N as isAnalyticsTechnicalIdentifierField,
260
+ O as normalizeAnalyticsCatalogDataType,
261
+ w as normalizeAnalyticsCatalogName,
262
262
  h as normalizeSemaphorAnalyticsFilterOperator,
263
263
  c as normalizeSemaphorDialect,
264
264
  v as normalizeSemaphorInputOperator,
265
265
  g as parseSemaphorIsoTimeWindowBoundary,
266
- w as preferSemaphorFieldRefMetadata,
267
- z as preferSemaphorSourceMetadata,
268
- E as semaphorFieldRefsMatch,
266
+ E as preferSemaphorFieldRefMetadata,
267
+ P as preferSemaphorSourceMetadata,
268
+ B as semaphorFieldRefsMatch,
269
269
  u as semaphorSourceHasRequiredCoordinates,
270
- P as semaphorSourceIdentityKey,
271
- B as semaphorSourcesReferToSameDataset,
270
+ j as semaphorSourceIdentityKey,
271
+ Q as semaphorSourcesReferToSameDataset,
272
272
  y as validateSemaphorAnalyticsIntent,
273
- k as validateSemaphorAnalyticsRecoveryPlan,
274
- S as validateSemaphorDashboardIntent,
275
- I as validateSemaphorOperationIntent
273
+ S as validateSemaphorAnalyticsRecoveryPlan,
274
+ k as validateSemaphorDashboardIntent,
275
+ C as validateSemaphorDerivedFieldDefinition,
276
+ I as validateSemaphorOperationIntent,
277
+ T as validateSemaphorResultCalculation
276
278
  };
@@ -1,6 +1,6 @@
1
1
  import { jsx as r, jsxs as s, Fragment as X } from "react/jsx-runtime";
2
2
  import ee, { useState as h, useCallback as F, useEffect as ae, useMemo as H } from "react";
3
- import { u as re, b as te, c as se, d as ne, e as le, f as oe, R as W, g as O, C as ie, h as ce, i as de, j as ue, k as _, l as R, m as me, n as fe, o as N } from "./index-CPyEi9gS.js";
3
+ import { u as re, b as te, c as se, d as ne, e as le, f as oe, R as W, g as O, C as ie, h as ce, i as de, j as ue, k as _, l as R, m as me, n as fe, o as N } from "./index-C0Qnfr_7.js";
4
4
  import { a as S, L as G, P as he, b as pe, B as j, d as ge, e as V, f as ve } from "./switch-Dkx2qEOr.js";
5
5
  import "./index-CuHybtft.js";
6
6
  import { C as be } from "./chevrons-up-down-DSvLu4Ye.js";
@@ -1 +1 @@
1
- "use strict";const e=require("react/jsx-runtime"),l=require("react"),t=require("./index-BtqYNH_S.js"),i=require("./switch-fIkmwzUt.js");require("./index-BxM99sFL.js");const G=require("./chevrons-up-down-CnCSGY02.js");function W(n={}){var y,P,z,A;const{authToken:d,tokenProps:a}=t.useSemaphorContext(),x=n.enabled??!0,m=(d==null?void 0:d.accessToken)??null,f=(a==null?void 0:a.apiServiceUrl)??null,[L,C]=l.useState(!1),[j,b]=l.useState(!1),[h,g]=l.useState(!1),[N,c]=l.useState(null),[v,S]=l.useState(null),k=v||{tz:((P=(y=a==null?void 0:a.params)==null?void 0:y.calendarContext)==null?void 0:P.tz)||null,weekStart:((A=(z=a==null?void 0:a.params)==null?void 0:z.calendarContext)==null?void 0:A.weekStart)??null},p=l.useCallback(async()=>{if(!(!x||!m||!f)){C(!0),c(null);try{const o=await fetch(`${f}/v1/user-preferences/calendar`,{method:"GET",headers:{Authorization:`Bearer ${m}`}});if(!o.ok){const u=await o.json().catch(()=>({}));throw new Error(u.error||"Failed to fetch preferences")}const r=await o.json();S({tz:r.tz,weekStart:r.weekStart,source:r.source,isInherited:r.isInherited,userHasPrefs:r.userHasPrefs,inherited:r.inherited})}catch(o){const r=o instanceof Error?o.message:"Unknown error";c(r)}finally{C(!1)}}},[m,f,x]);l.useEffect(()=>{x&&p()},[x,p]);const T=l.useCallback(async o=>{if(!m||!f)return c("Not authenticated"),!1;b(!0),c(null);try{const r=await fetch(`${f}/v1/user-preferences/calendar`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${m}`},body:JSON.stringify(o)});if(!r.ok){const u=await r.json().catch(()=>({}));throw new Error(u.error||"Failed to update preferences")}return await p(),!0}catch(r){const u=r instanceof Error?r.message:"Unknown error";return c(u),!1}finally{b(!1)}},[m,f,p]),w=l.useCallback(async()=>{if(!m||!f)return c("Not authenticated"),!1;g(!0),c(null);try{const o=await fetch(`${f}/v1/user-preferences/calendar`,{method:"DELETE",headers:{Authorization:`Bearer ${m}`}});if(!o.ok){const u=await o.json().catch(()=>({}));throw new Error(u.error||"Failed to clear preferences")}const r=await o.text();if(r)try{const u=JSON.parse(r);return S({tz:u.tz,weekStart:u.weekStart,source:u.source,isInherited:u.isInherited??!0,userHasPrefs:!1,inherited:u.inherited}),!0}catch{}return await p(),!0}catch(o){const r=o instanceof Error?o.message:"Unknown error";return c(r),!1}finally{g(!1)}},[m,f,p]);return{preferences:k,isLoading:L,isSaving:j,isClearing:h,error:N,updatePreferences:T,clearPreferences:w,refetch:p}}const E=[{value:"America/New_York",label:"Eastern Time (US & Canada)"},{value:"America/Chicago",label:"Central Time (US & Canada)"},{value:"America/Denver",label:"Mountain Time (US & Canada)"},{value:"America/Los_Angeles",label:"Pacific Time (US & Canada)"},{value:"America/Phoenix",label:"Arizona"},{value:"America/Anchorage",label:"Alaska"},{value:"Pacific/Honolulu",label:"Hawaii"},{value:"Europe/London",label:"London"},{value:"Europe/Paris",label:"Paris, Berlin, Rome"},{value:"Asia/Tokyo",label:"Tokyo"},{value:"Asia/Shanghai",label:"Beijing, Shanghai"},{value:"Asia/Kolkata",label:"Mumbai, New Delhi"},{value:"Australia/Sydney",label:"Sydney"},{value:"UTC",label:"UTC"}],M=[{value:0,label:"Sunday"},{value:1,label:"Monday"},{value:6,label:"Saturday"}],H="text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground";function _(){try{const n=Intl;if(n.supportedValuesOf)return n.supportedValuesOf("timeZone")}catch{}return E.map(n=>n.value)}function q(n){switch(n){case"tenant":return"tenant";case"organization":return"organization";case"system":return"system";default:return"default"}}function O(n){const d=E.find(a=>a.value===n);return d?d.label:n}function V(n){const d=M.find(a=>a.value===n);return d?d.label:String(n)}function Z({open:n,onOpenChange:d}){var D,U,F;const{preferences:a,isLoading:x,isSaving:m,isClearing:f,updatePreferences:L,clearPreferences:C}=W({enabled:n}),j=a.tz||((D=a.inherited)==null?void 0:D.tz)||Intl.DateTimeFormat().resolvedOptions().timeZone,b=a.weekStart??((U=a.inherited)==null?void 0:U.weekStart)??1,[h,g]=l.useState(!a.userHasPrefs),[N,c]=l.useState(!1),[v,S]=l.useState(j),[k,p]=l.useState(b),[T,w]=l.useState(!1),y=l.useMemo(()=>_(),[]),P=l.useMemo(()=>y.filter(s=>!E.some(R=>R.value===s)),[y]),z=l.useMemo(()=>O(v),[v]),A=a.inherited?O(a.inherited.tz):"UTC",o=a.inherited?V(a.inherited.weekStart):"Monday",r=q((F=a.inherited)==null?void 0:F.source);l.useEffect(()=>{if(!n){c(!1);return}N||(a.userHasPrefs!==void 0&&g(!a.userHasPrefs),S(j),p(b))},[n,N,a.userHasPrefs,j,b]);const u=async()=>{if(x){t.ue.error("Preferences are still loading. Please try again.");return}h?await C()?(t.ue.success("Now using default settings. Please refresh the page to apply changes.",{duration:5e3}),d(!1)):t.ue.error("Failed to save preferences. Please try again."):await L({tz:v,weekStart:k})?(t.ue.success("Preferences saved. Please refresh the page to apply changes.",{duration:5e3}),d(!1)):t.ue.error("Failed to save preferences. Please try again.")},$=()=>{d(!1)},I=m||f,B=I||x;return e.jsx(t.Dialog,{open:n,onOpenChange:d,children:e.jsxs(t.DialogContent,{className:"rounded-control border-border/60 sm:max-w-[440px] sm:rounded-control",children:[e.jsxs(t.DialogHeader,{children:[e.jsx(t.DialogTitle,{className:"text-[15px]",children:"Calendar preferences"}),e.jsx(t.DialogDescription,{className:"text-[13px] leading-5",children:"Set your timezone and week-start for date calculations and displays."})]}),e.jsxs("div",{className:"space-y-4 py-1",children:[e.jsxs(t.RadioGroup,{value:h?"defaults":"custom",onValueChange:s=>{c(!0),g(s==="defaults")},className:"space-y-0.5",children:[e.jsxs("label",{htmlFor:"mode-defaults",className:i.cn("flex cursor-pointer items-start gap-2 rounded-control px-2 py-1.5 hover:bg-muted/50",h&&"bg-muted/50"),onClick:()=>{c(!0),g(!0)},children:[e.jsx(t.RadioGroupItem,{value:"defaults",id:"mode-defaults",className:"mt-0.5"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("p",{className:"text-[13px] font-medium text-foreground",children:["Use ",r," defaults"]}),e.jsxs("p",{className:"text-[12px] text-muted-foreground",children:[A,", week starts ",o]})]})]}),e.jsxs("label",{htmlFor:"mode-custom",className:i.cn("flex cursor-pointer items-start gap-2 rounded-control px-2 py-1.5 hover:bg-muted/50",!h&&"bg-muted/50"),onClick:()=>{c(!0),g(!1)},children:[e.jsx(t.RadioGroupItem,{value:"custom",id:"mode-custom",className:"mt-0.5"}),e.jsx("p",{className:"flex-1 text-[13px] font-medium text-foreground",children:"Use custom settings"})]})]}),e.jsxs("div",{className:i.cn("space-y-4 border-t border-border/60 pt-4 transition-opacity",h&&"pointer-events-none opacity-50"),children:[e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(i.Label,{className:H,children:"Timezone"}),e.jsxs(i.Popover,{open:T,onOpenChange:w,modal:!0,children:[e.jsx(i.PopoverTrigger,{asChild:!0,children:e.jsxs(i.Button,{variant:"outline",size:"xs",role:"combobox","aria-expanded":T,className:"w-full justify-between text-[12px] font-normal",disabled:h,children:[e.jsx("span",{className:"truncate",children:z}),e.jsx(G.ChevronsUpDown,{className:"ml-2 h-3.5 w-3.5 shrink-0 opacity-50"})]})}),e.jsx(i.PopoverContent,{className:"z-50 w-[--radix-popover-trigger-width] p-0",align:"start",children:e.jsxs(t.Command,{className:"overflow-visible",children:[e.jsx(t.CommandInput,{placeholder:"Search timezones…"}),e.jsxs(t.CommandList,{children:[e.jsx(t.CommandEmpty,{children:"No timezone found."}),e.jsx(t.CommandGroup,{heading:"Common",children:E.map(s=>e.jsxs(t.CommandItem,{value:`${s.value} ${s.label}`,onSelect:()=>{c(!0),S(s.value),w(!1)},children:[e.jsx(i.Check,{className:i.cn("h-3.5 w-3.5",v===s.value?"opacity-100":"opacity-0")}),e.jsx("span",{className:"flex-1",children:s.label}),e.jsx("span",{className:"text-[11px] text-muted-foreground",children:s.value})]},s.value))}),e.jsx(t.CommandSeparator,{}),e.jsx(t.CommandGroup,{heading:"All timezones",children:P.map(s=>e.jsxs(t.CommandItem,{value:s,onSelect:()=>{c(!0),S(s),w(!1)},children:[e.jsx(i.Check,{className:i.cn("h-3.5 w-3.5",v===s?"opacity-100":"opacity-0")}),s]},s))})]})]})})]})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(i.Label,{className:H,children:"Week starts on"}),e.jsx(t.RadioGroup,{value:String(k),onValueChange:s=>{c(!0),p(Number(s))},className:"flex gap-4",disabled:h,children:M.map(s=>e.jsxs("label",{htmlFor:`week-start-${s.value}`,className:i.cn("flex cursor-pointer items-center gap-2 text-[13px]",h&&"cursor-not-allowed"),children:[e.jsx(t.RadioGroupItem,{value:String(s.value),id:`week-start-${s.value}`,disabled:h}),s.label]},s.value))})]})]})]}),e.jsxs(t.DialogFooter,{children:[e.jsx(i.Button,{variant:"outline",size:"xs",onClick:$,disabled:I,children:"Cancel"}),e.jsx(i.Button,{size:"xs",onClick:u,disabled:B,children:I?e.jsxs(e.Fragment,{children:[e.jsx(i.LoaderCircle,{className:"h-3.5 w-3.5 animate-spin"}),"Saving…"]}):"Save"})]})]})})}exports.CalendarPreferencesDialog=Z;
1
+ "use strict";const e=require("react/jsx-runtime"),l=require("react"),t=require("./index-DlLvzmJF.js"),i=require("./switch-fIkmwzUt.js");require("./index-BxM99sFL.js");const G=require("./chevrons-up-down-CnCSGY02.js");function W(n={}){var y,P,z,A;const{authToken:d,tokenProps:a}=t.useSemaphorContext(),x=n.enabled??!0,m=(d==null?void 0:d.accessToken)??null,f=(a==null?void 0:a.apiServiceUrl)??null,[L,C]=l.useState(!1),[j,b]=l.useState(!1),[h,g]=l.useState(!1),[N,c]=l.useState(null),[v,S]=l.useState(null),k=v||{tz:((P=(y=a==null?void 0:a.params)==null?void 0:y.calendarContext)==null?void 0:P.tz)||null,weekStart:((A=(z=a==null?void 0:a.params)==null?void 0:z.calendarContext)==null?void 0:A.weekStart)??null},p=l.useCallback(async()=>{if(!(!x||!m||!f)){C(!0),c(null);try{const o=await fetch(`${f}/v1/user-preferences/calendar`,{method:"GET",headers:{Authorization:`Bearer ${m}`}});if(!o.ok){const u=await o.json().catch(()=>({}));throw new Error(u.error||"Failed to fetch preferences")}const r=await o.json();S({tz:r.tz,weekStart:r.weekStart,source:r.source,isInherited:r.isInherited,userHasPrefs:r.userHasPrefs,inherited:r.inherited})}catch(o){const r=o instanceof Error?o.message:"Unknown error";c(r)}finally{C(!1)}}},[m,f,x]);l.useEffect(()=>{x&&p()},[x,p]);const T=l.useCallback(async o=>{if(!m||!f)return c("Not authenticated"),!1;b(!0),c(null);try{const r=await fetch(`${f}/v1/user-preferences/calendar`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${m}`},body:JSON.stringify(o)});if(!r.ok){const u=await r.json().catch(()=>({}));throw new Error(u.error||"Failed to update preferences")}return await p(),!0}catch(r){const u=r instanceof Error?r.message:"Unknown error";return c(u),!1}finally{b(!1)}},[m,f,p]),w=l.useCallback(async()=>{if(!m||!f)return c("Not authenticated"),!1;g(!0),c(null);try{const o=await fetch(`${f}/v1/user-preferences/calendar`,{method:"DELETE",headers:{Authorization:`Bearer ${m}`}});if(!o.ok){const u=await o.json().catch(()=>({}));throw new Error(u.error||"Failed to clear preferences")}const r=await o.text();if(r)try{const u=JSON.parse(r);return S({tz:u.tz,weekStart:u.weekStart,source:u.source,isInherited:u.isInherited??!0,userHasPrefs:!1,inherited:u.inherited}),!0}catch{}return await p(),!0}catch(o){const r=o instanceof Error?o.message:"Unknown error";return c(r),!1}finally{g(!1)}},[m,f,p]);return{preferences:k,isLoading:L,isSaving:j,isClearing:h,error:N,updatePreferences:T,clearPreferences:w,refetch:p}}const E=[{value:"America/New_York",label:"Eastern Time (US & Canada)"},{value:"America/Chicago",label:"Central Time (US & Canada)"},{value:"America/Denver",label:"Mountain Time (US & Canada)"},{value:"America/Los_Angeles",label:"Pacific Time (US & Canada)"},{value:"America/Phoenix",label:"Arizona"},{value:"America/Anchorage",label:"Alaska"},{value:"Pacific/Honolulu",label:"Hawaii"},{value:"Europe/London",label:"London"},{value:"Europe/Paris",label:"Paris, Berlin, Rome"},{value:"Asia/Tokyo",label:"Tokyo"},{value:"Asia/Shanghai",label:"Beijing, Shanghai"},{value:"Asia/Kolkata",label:"Mumbai, New Delhi"},{value:"Australia/Sydney",label:"Sydney"},{value:"UTC",label:"UTC"}],M=[{value:0,label:"Sunday"},{value:1,label:"Monday"},{value:6,label:"Saturday"}],H="text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground";function _(){try{const n=Intl;if(n.supportedValuesOf)return n.supportedValuesOf("timeZone")}catch{}return E.map(n=>n.value)}function q(n){switch(n){case"tenant":return"tenant";case"organization":return"organization";case"system":return"system";default:return"default"}}function O(n){const d=E.find(a=>a.value===n);return d?d.label:n}function V(n){const d=M.find(a=>a.value===n);return d?d.label:String(n)}function Z({open:n,onOpenChange:d}){var D,U,F;const{preferences:a,isLoading:x,isSaving:m,isClearing:f,updatePreferences:L,clearPreferences:C}=W({enabled:n}),j=a.tz||((D=a.inherited)==null?void 0:D.tz)||Intl.DateTimeFormat().resolvedOptions().timeZone,b=a.weekStart??((U=a.inherited)==null?void 0:U.weekStart)??1,[h,g]=l.useState(!a.userHasPrefs),[N,c]=l.useState(!1),[v,S]=l.useState(j),[k,p]=l.useState(b),[T,w]=l.useState(!1),y=l.useMemo(()=>_(),[]),P=l.useMemo(()=>y.filter(s=>!E.some(R=>R.value===s)),[y]),z=l.useMemo(()=>O(v),[v]),A=a.inherited?O(a.inherited.tz):"UTC",o=a.inherited?V(a.inherited.weekStart):"Monday",r=q((F=a.inherited)==null?void 0:F.source);l.useEffect(()=>{if(!n){c(!1);return}N||(a.userHasPrefs!==void 0&&g(!a.userHasPrefs),S(j),p(b))},[n,N,a.userHasPrefs,j,b]);const u=async()=>{if(x){t.ue.error("Preferences are still loading. Please try again.");return}h?await C()?(t.ue.success("Now using default settings. Please refresh the page to apply changes.",{duration:5e3}),d(!1)):t.ue.error("Failed to save preferences. Please try again."):await L({tz:v,weekStart:k})?(t.ue.success("Preferences saved. Please refresh the page to apply changes.",{duration:5e3}),d(!1)):t.ue.error("Failed to save preferences. Please try again.")},$=()=>{d(!1)},I=m||f,B=I||x;return e.jsx(t.Dialog,{open:n,onOpenChange:d,children:e.jsxs(t.DialogContent,{className:"rounded-control border-border/60 sm:max-w-[440px] sm:rounded-control",children:[e.jsxs(t.DialogHeader,{children:[e.jsx(t.DialogTitle,{className:"text-[15px]",children:"Calendar preferences"}),e.jsx(t.DialogDescription,{className:"text-[13px] leading-5",children:"Set your timezone and week-start for date calculations and displays."})]}),e.jsxs("div",{className:"space-y-4 py-1",children:[e.jsxs(t.RadioGroup,{value:h?"defaults":"custom",onValueChange:s=>{c(!0),g(s==="defaults")},className:"space-y-0.5",children:[e.jsxs("label",{htmlFor:"mode-defaults",className:i.cn("flex cursor-pointer items-start gap-2 rounded-control px-2 py-1.5 hover:bg-muted/50",h&&"bg-muted/50"),onClick:()=>{c(!0),g(!0)},children:[e.jsx(t.RadioGroupItem,{value:"defaults",id:"mode-defaults",className:"mt-0.5"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("p",{className:"text-[13px] font-medium text-foreground",children:["Use ",r," defaults"]}),e.jsxs("p",{className:"text-[12px] text-muted-foreground",children:[A,", week starts ",o]})]})]}),e.jsxs("label",{htmlFor:"mode-custom",className:i.cn("flex cursor-pointer items-start gap-2 rounded-control px-2 py-1.5 hover:bg-muted/50",!h&&"bg-muted/50"),onClick:()=>{c(!0),g(!1)},children:[e.jsx(t.RadioGroupItem,{value:"custom",id:"mode-custom",className:"mt-0.5"}),e.jsx("p",{className:"flex-1 text-[13px] font-medium text-foreground",children:"Use custom settings"})]})]}),e.jsxs("div",{className:i.cn("space-y-4 border-t border-border/60 pt-4 transition-opacity",h&&"pointer-events-none opacity-50"),children:[e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(i.Label,{className:H,children:"Timezone"}),e.jsxs(i.Popover,{open:T,onOpenChange:w,modal:!0,children:[e.jsx(i.PopoverTrigger,{asChild:!0,children:e.jsxs(i.Button,{variant:"outline",size:"xs",role:"combobox","aria-expanded":T,className:"w-full justify-between text-[12px] font-normal",disabled:h,children:[e.jsx("span",{className:"truncate",children:z}),e.jsx(G.ChevronsUpDown,{className:"ml-2 h-3.5 w-3.5 shrink-0 opacity-50"})]})}),e.jsx(i.PopoverContent,{className:"z-50 w-[--radix-popover-trigger-width] p-0",align:"start",children:e.jsxs(t.Command,{className:"overflow-visible",children:[e.jsx(t.CommandInput,{placeholder:"Search timezones…"}),e.jsxs(t.CommandList,{children:[e.jsx(t.CommandEmpty,{children:"No timezone found."}),e.jsx(t.CommandGroup,{heading:"Common",children:E.map(s=>e.jsxs(t.CommandItem,{value:`${s.value} ${s.label}`,onSelect:()=>{c(!0),S(s.value),w(!1)},children:[e.jsx(i.Check,{className:i.cn("h-3.5 w-3.5",v===s.value?"opacity-100":"opacity-0")}),e.jsx("span",{className:"flex-1",children:s.label}),e.jsx("span",{className:"text-[11px] text-muted-foreground",children:s.value})]},s.value))}),e.jsx(t.CommandSeparator,{}),e.jsx(t.CommandGroup,{heading:"All timezones",children:P.map(s=>e.jsxs(t.CommandItem,{value:s,onSelect:()=>{c(!0),S(s),w(!1)},children:[e.jsx(i.Check,{className:i.cn("h-3.5 w-3.5",v===s?"opacity-100":"opacity-0")}),s]},s))})]})]})})]})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(i.Label,{className:H,children:"Week starts on"}),e.jsx(t.RadioGroup,{value:String(k),onValueChange:s=>{c(!0),p(Number(s))},className:"flex gap-4",disabled:h,children:M.map(s=>e.jsxs("label",{htmlFor:`week-start-${s.value}`,className:i.cn("flex cursor-pointer items-center gap-2 text-[13px]",h&&"cursor-not-allowed"),children:[e.jsx(t.RadioGroupItem,{value:String(s.value),id:`week-start-${s.value}`,disabled:h}),s.label]},s.value))})]})]})]}),e.jsxs(t.DialogFooter,{children:[e.jsx(i.Button,{variant:"outline",size:"xs",onClick:$,disabled:I,children:"Cancel"}),e.jsx(i.Button,{size:"xs",onClick:u,disabled:B,children:I?e.jsxs(e.Fragment,{children:[e.jsx(i.LoaderCircle,{className:"h-3.5 w-3.5 animate-spin"}),"Saving…"]}):"Save"})]})]})})}exports.CalendarPreferencesDialog=Z;
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("react/jsx-runtime"),a=require("./switch-fIkmwzUt.js"),l=require("./index-BtqYNH_S.js"),le=require("./use-create-flow-overlay-state-c6rCm36x.js"),h=require("react"),bn=require("./use-visual-utils-C_c-aiqi.js");require("./index-BxM99sFL.js");const $s=require("./date-formatter-B4EBSe9C.js");require("./index-DRlMUglg.js");require("react-dom");/**
1
+ "use strict";const e=require("react/jsx-runtime"),a=require("./switch-fIkmwzUt.js"),l=require("./index-DlLvzmJF.js"),le=require("./use-create-flow-overlay-state-CwIG1Ekp.js"),h=require("react"),bn=require("./use-visual-utils-BzFjIykb.js");require("./index-BxM99sFL.js");const $s=require("./date-formatter-B4EBSe9C.js");require("./index-DRlMUglg.js");require("react-dom");/**
2
2
  * @license lucide-react v0.453.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,9 +1,9 @@
1
1
  import { jsx as t, jsxs as s, Fragment as se } from "react/jsx-runtime";
2
2
  import { c as Ie, L as wn, a1 as io, B as ge, f as ne, G as ct, u as q, E as bt, aJ as Fr, a9 as ba, g as ze, e as He, H as xa, a as v, S as Fn, X as Ce, P as Re, b as tt, d as nt, aK as lo, aL as co, aH as ya, aM as va, a2 as Qe, a3 as Ye, a4 as Xe, a5 as Ze, a6 as he, Q as uo, aN as Na, aO as wa, $ as et, T as mo, J as ho, K as Pr, aP as po } from "./switch-Dkx2qEOr.js";
3
- import { b as ut, c as mt, d as ht, e as pt, f as ft, bq as fo, n as Ca, af as go, ag as bo, aU as ka, b_ as xo, o as fe, aV as Cn, x as yo, b8 as Pn, b9 as Mn, bb as Bn, bc as je, bf as Sa, ax as Ht, ak as vo, aE as No, an as On, aq as Vn, ar as $n, as as Un, at as _n, au as jn, av as zn, u as It, _ as ot, a9 as Hn, a5 as Aa, a6 as qn, $ as Ea, a4 as wo, ab as Co, bV as ko, b$ as So, b5 as Ao, a7 as Mr, w as Vt, a1 as Eo, c0 as Io, c1 as Do, c2 as To, c3 as Lo, c4 as Ro, c5 as Fo, c6 as Po, c7 as Mo, c8 as Ia, c9 as Bo, ca as Oo, cb as Vo, cc as $o, cd as Uo, aG as gt, ce as _o, bU as Da, aW as Ta, cf as jo, cg as zo, ch as Ho, ci as qo, cj as Ko, ck as Wo, cl as Go, cm as La, cn as Jo, co as Qo, cp as Ra, cq as Fa, cr as Pa, cs as Yo, ct as Xo, bn as Ma, bK as Zo, bH as ei, cu as ti, bg as ni, aD as Ba, cv as ri, cw as ai, bh as Br, cx as si, cy as oi, cz as kn, cA as ii, cB as li, cC as Oa, cD as Kn, cE as di, cF as ci, cG as ui, cH as Va, cI as Dt, cJ as $a, aX as Sn, aw as Ua, cK as mi, cL as hi, aF as An, cM as pi, cN as _a, ay as fi, cO as gi, cP as bi, cQ as xi, cR as yi, cS as vi, cT as Ni, cU as wi } from "./index-CPyEi9gS.js";
4
- import { V as Ci, E as Or, a as Vr, b as ki, c as Si, L as Ai, d as Ei, C as Ii, u as ja, e as za, f as Di, R as Ti, S as Li } from "./use-create-flow-overlay-state-BfoXDDrd.js";
3
+ import { b as ut, c as mt, d as ht, e as pt, f as ft, bq as fo, n as Ca, af as go, ag as bo, aU as ka, b_ as xo, o as fe, aV as Cn, x as yo, b8 as Pn, b9 as Mn, bb as Bn, bc as je, bf as Sa, ax as Ht, ak as vo, aE as No, an as On, aq as Vn, ar as $n, as as Un, at as _n, au as jn, av as zn, u as It, _ as ot, a9 as Hn, a5 as Aa, a6 as qn, $ as Ea, a4 as wo, ab as Co, bV as ko, b$ as So, b5 as Ao, a7 as Mr, w as Vt, a1 as Eo, c0 as Io, c1 as Do, c2 as To, c3 as Lo, c4 as Ro, c5 as Fo, c6 as Po, c7 as Mo, c8 as Ia, c9 as Bo, ca as Oo, cb as Vo, cc as $o, cd as Uo, aG as gt, ce as _o, bU as Da, aW as Ta, cf as jo, cg as zo, ch as Ho, ci as qo, cj as Ko, ck as Wo, cl as Go, cm as La, cn as Jo, co as Qo, cp as Ra, cq as Fa, cr as Pa, cs as Yo, ct as Xo, bn as Ma, bK as Zo, bH as ei, cu as ti, bg as ni, aD as Ba, cv as ri, cw as ai, bh as Br, cx as si, cy as oi, cz as kn, cA as ii, cB as li, cC as Oa, cD as Kn, cE as di, cF as ci, cG as ui, cH as Va, cI as Dt, cJ as $a, aX as Sn, aw as Ua, cK as mi, cL as hi, aF as An, cM as pi, cN as _a, ay as fi, cO as gi, cP as bi, cQ as xi, cR as yi, cS as vi, cT as Ni, cU as wi } from "./index-C0Qnfr_7.js";
4
+ import { V as Ci, E as Or, a as Vr, b as ki, c as Si, L as Ai, d as Ei, C as Ii, u as ja, e as za, f as Di, R as Ti, S as Li } from "./use-create-flow-overlay-state-BETXykC9.js";
5
5
  import Ri, { useState as A, useContext as Fi, useRef as Ee, useCallback as pe, useEffect as ue, useMemo as O } from "react";
6
- import { u as Ha } from "./use-visual-utils-NN0e3fBP.js";
6
+ import { u as Ha } from "./use-visual-utils-Bk135OgA.js";
7
7
  import "./index-CuHybtft.js";
8
8
  import { l as $r } from "./date-formatter-CzcPZx39.js";
9
9
  import "./index-CJdxSyQq.js";
@@ -1,14 +1,14 @@
1
1
  import { jsx as t, jsxs as i, Fragment as R } from "react/jsx-runtime";
2
2
  import { c as B, u as N, B as _, az as dt, E as Vt, L as Hr, a1 as qr, a as te, aA as jr, aB as Vr, aC as rt, aD as me, aE as ct, aF as Kt, f as $e, X as Qt, aG as Wt, aH as Kr, G as Rt, Y as Qr, Z as Wr, _ as Jr, a0 as Yr, j as Xr, aI as Zr } from "./switch-Dkx2qEOr.js";
3
- import { bs as ea, u as G, b as Jt, bt as ta, ax as re, c as Yt, d as ra, e as at, f as nt, n as aa, bu as ue, bf as Fe, bv as na, bw as Ut, bx as Xt, by as Zt, bz as sa, bn as lt, bA as oa, bB as ia, bC as da, bD as ca, bE as la, bF as ua, ad as pe, bG as he, o as C, bH as ma, bI as er, aX as ut, aH as pa, bJ as ha, bK as fa, be as tr, bh as rr, aF as ga, b7 as ba, bL as xa, bM as va, y as ya, x as Ue, J as wa, z as Ye, bN as Na, bO as Sa, bP as Da, Z as ka, bQ as Ca, I as Xe, bR as Ea, bS as La, bT as Ia, bU as Aa, b8 as Ma, b9 as Pa, ba as Oa, bb as _a, bc as $, bV as Ra, aC as Tt, bW as Ua, bX as Ta, bY as Fa, H as $a, bZ as Ga, an as Ba, aq as za, ar as Ha, as as qa, at as ja, au as Va, av as Ka, aw as Ft, v as st } from "./index-CPyEi9gS.js";
3
+ import { bs as ea, u as G, b as Jt, bt as ta, ax as re, c as Yt, d as ra, e as at, f as nt, n as aa, bu as ue, bf as Fe, bv as na, bw as Ut, bx as Xt, by as Zt, bz as sa, bn as lt, bA as oa, bB as ia, bC as da, bD as ca, bE as la, bF as ua, ad as pe, bG as he, o as C, bH as ma, bI as er, aX as ut, aH as pa, bJ as ha, bK as fa, be as tr, bh as rr, aF as ga, b7 as ba, bL as xa, bM as va, y as ya, x as Ue, J as wa, z as Ye, bN as Na, bO as Sa, bP as Da, Z as ka, bQ as Ca, I as Xe, bR as Ea, bS as La, bT as Ia, bU as Aa, b8 as Ma, b9 as Pa, ba as Oa, bb as _a, bc as $, bV as Ra, aC as Tt, bW as Ua, bX as Ta, bY as Fa, H as $a, bZ as Ga, an as Ba, aq as za, ar as Ha, as as qa, at as ja, au as Va, av as Ka, aw as Ft, v as st } from "./index-C0Qnfr_7.js";
4
4
  import "./index-CuHybtft.js";
5
5
  import * as I from "react";
6
6
  import ar, { useState as w, useMemo as K, useEffect as Ge, useRef as $t, useLayoutEffect as Qa, useCallback as Wa } from "react";
7
7
  import "./index-CJdxSyQq.js";
8
8
  import { createPortal as Ja } from "react-dom";
9
- import { L as Ya, b as Xa, u as Za, A as en, V as tn, K as rn, e as an, M as nn, N as sn, U as on } from "./dashboard-briefing-launcher-ptERmNJr.js";
9
+ import { L as Ya, b as Xa, u as Za, A as en, V as tn, K as rn, e as an, M as nn, N as sn, U as on } from "./dashboard-briefing-launcher-D3Xfc_26.js";
10
10
  import { d as nr } from "./index-DFOb_6HB.js";
11
- import { C as dn } from "./calendar-preferences-dialog-6q51A6XC.js";
11
+ import { C as dn } from "./calendar-preferences-dialog-ClBAkMmF.js";
12
12
  import { u as cn } from "./use-debounced-dirty-check-BwAbnX_5.js";
13
13
  import { s as Ze } from "./normalize-dashboard-for-dirty-check-5KpZN8xr.js";
14
14
  import { S as Gt } from "./save-kkBEBeLg.js";
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("./switch-fIkmwzUt.js"),s=require("./index-BtqYNH_S.js");require("./index-BxM99sFL.js");const v=require("react");require("./index-DRlMUglg.js");const es=require("react-dom"),O=require("./dashboard-briefing-launcher-BEZnvIla.js"),xt=require("./index-D7KJindZ.js"),ts=require("./calendar-preferences-dialog-CUGzkNcE.js"),ss=require("./use-debounced-dirty-check-XHSwAefL.js"),Re=require("./normalize-dashboard-for-dirty-check-BXRUMVb2.js"),dt=require("./save-D3YYinDz.js"),rs=require("./palette-DUGktM-M.js"),ns=require("./braces-C3-w6xDL.js");function as(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(a,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return a.default=t,Object.freeze(a)}const E=as(v);/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("./switch-fIkmwzUt.js"),s=require("./index-DlLvzmJF.js");require("./index-BxM99sFL.js");const v=require("react");require("./index-DRlMUglg.js");const es=require("react-dom"),O=require("./dashboard-briefing-launcher-BO-kXtEd.js"),xt=require("./index-D7KJindZ.js"),ts=require("./calendar-preferences-dialog-Dn6o2r2Y.js"),ss=require("./use-debounced-dirty-check-XHSwAefL.js"),Re=require("./normalize-dashboard-for-dirty-check-BXRUMVb2.js"),dt=require("./save-D3YYinDz.js"),rs=require("./palette-DUGktM-M.js"),ns=require("./braces-C3-w6xDL.js");function as(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(a,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return a.default=t,Object.freeze(a)}const E=as(v);/**
2
2
  * @license lucide-react v0.453.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -2,7 +2,7 @@ import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
2
  import { useMemo as m, useState as b, useRef as f, useEffect as S } from "react";
3
3
  import "./index-CuHybtft.js";
4
4
  import { u as o, a as p, B as N, X as D, C as J } from "./switch-Dkx2qEOr.js";
5
- import "./index-CPyEi9gS.js";
5
+ import "./index-C0Qnfr_7.js";
6
6
  import "./index-CJdxSyQq.js";
7
7
  import "react-dom";
8
8
  function V() {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),o=require("react");require("./index-BxM99sFL.js");const s=require("./switch-fIkmwzUt.js");require("./index-BtqYNH_S.js");require("./index-DRlMUglg.js");require("react-dom");function b(){const t=s.useDashboardStore(e=>e.dashboard),c=s.useDashboardStore(e=>e.actions.setDashboard),u=s.useDashboardStore(e=>e.showDashboardJSON),h=s.useDashboardStore(e=>e.actions.setShowDashboardJSON),a=o.useMemo(()=>t?JSON.stringify(t,null,2):"",[t]),[l,d]=o.useState(a),n=o.useRef(a);return o.useEffect(()=>{a!==n.current&&(d(a),n.current=a)},[a]),r.jsxs("div",{className:s.cn("relative p-2",{hidden:!u}),children:[r.jsxs(s.Button,{variant:"secondary",size:"sm",className:"absolute right-2 top-2 z-10 h-8",onClick:()=>h(!1),children:[r.jsx(s.X,{className:"mr-2 h-4 w-4"}),"Close"]}),r.jsx("div",{className:"h-[550px] overflow-hidden",children:r.jsx(s.CodeEditor,{value:l,onValueChange:e=>{d(e);try{const i=JSON.parse(e);n.current=JSON.stringify(i,null,2),c(i)}catch{}},language:"json"})})]})}exports.default=b;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),o=require("react");require("./index-BxM99sFL.js");const s=require("./switch-fIkmwzUt.js");require("./index-DlLvzmJF.js");require("./index-DRlMUglg.js");require("react-dom");function b(){const t=s.useDashboardStore(e=>e.dashboard),c=s.useDashboardStore(e=>e.actions.setDashboard),u=s.useDashboardStore(e=>e.showDashboardJSON),h=s.useDashboardStore(e=>e.actions.setShowDashboardJSON),a=o.useMemo(()=>t?JSON.stringify(t,null,2):"",[t]),[l,d]=o.useState(a),n=o.useRef(a);return o.useEffect(()=>{a!==n.current&&(d(a),n.current=a)},[a]),r.jsxs("div",{className:s.cn("relative p-2",{hidden:!u}),children:[r.jsxs(s.Button,{variant:"secondary",size:"sm",className:"absolute right-2 top-2 z-10 h-8",onClick:()=>h(!1),children:[r.jsx(s.X,{className:"mr-2 h-4 w-4"}),"Close"]}),r.jsx("div",{className:"h-[550px] overflow-hidden",children:r.jsx(s.CodeEditor,{value:l,onValueChange:e=>{d(e);try{const i=JSON.parse(e);n.current=JSON.stringify(i,null,2),c(i)}catch{}},language:"json"})})]})}exports.default=b;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),N=require("react"),n=require("./index-BtqYNH_S.js");require("./index-BxM99sFL.js");const t=require("./switch-fIkmwzUt.js"),Ne=require("./use-create-flow-overlay-state-c6rCm36x.js"),bt=require("./use-visual-utils-C_c-aiqi.js"),Hn=require("./chevrons-up-down-CnCSGY02.js"),za=require("react-dom");require("./index-DRlMUglg.js");const qa=require("./palette-DUGktM-M.js"),$a=require("./common-types-C73-Ud1-.js");function Ka(s){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const r in s)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(a,r,o.get?o:{enumerable:!0,get:()=>s[r]})}}return a.default=s,Object.freeze(a)}const Ua=Ka(N);/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),N=require("react"),n=require("./index-DlLvzmJF.js");require("./index-BxM99sFL.js");const t=require("./switch-fIkmwzUt.js"),Ne=require("./use-create-flow-overlay-state-CwIG1Ekp.js"),bt=require("./use-visual-utils-BzFjIykb.js"),Hn=require("./chevrons-up-down-CnCSGY02.js"),za=require("react-dom");require("./index-DRlMUglg.js");const qa=require("./palette-DUGktM-M.js"),$a=require("./common-types-C73-Ud1-.js");function Ka(s){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const r in s)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(a,r,o.get?o:{enumerable:!0,get:()=>s[r]})}}return a.default=s,Object.freeze(a)}const Ua=Ka(N);/**
2
2
  * @license lucide-react v0.453.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,11 +1,11 @@
1
1
  import { jsx as e, jsxs as n, Fragment as De } from "react/jsx-runtime";
2
2
  import * as vc from "react";
3
3
  import en, { useState as K, useEffect as Se, useRef as Fe, useCallback as Oe, useMemo as ce, useContext as Nr, Suspense as yc } from "react";
4
- import { cV as Di, b as On, c as Mn, d as Fn, e as Rn, f as Zn, n as ms, aR as St, aW as Ct, cW as Ei, cX as ls, o as nt, cY as Ai, cF as is, aG as Da, ax as bt, aF as $t, bU as Cr, aD as ra, aX as $a, aS as vt, cZ as hs, cM as wr, c_ as Nc, c$ as Oi, d0 as Cc, ad as vs, d1 as wc, d2 as Sc, d3 as dr, d4 as os, u as bn, y as Mi, d5 as Tc, d6 as kc, d7 as Fi, d8 as Ri, d9 as Ic, da as Dc, db as Ec, aL as Bn, aM as vn, aN as yn, aO as qa, aP as tn, aQ as Jn, dc as ur, bR as Ta, dd as Li, al as an, am as ht, de as Ac, df as Pi, c8 as hn, cN as Vi, dg as Sr, dh as Bi, di as Oc, dj as Mc, dk as Fc, dl as Rc, dm as Lc, dn as Pc, dp as Vc, dq as Bc, dr as _c, ds as Bs, dt as zc, du as Bl, dv as $c, dw as _l, dx as qc, dy as jc, dz as Kc, dA as Yn, a$ as Qt, b1 as Jt, aI as _i, dB as Tr, bn as kr, ak as Ir, dC as Dr, dD as Uc, dE as zi, dF as $i, dG as qi, dH as Ht, dI as Gc, dJ as Hc, dK as Wc, dL as Qc, dM as ji, dN as Ki, V as Ui, dO as Gi, dP as Jc, dQ as Yc, dR as Xc, dS as Ea, dT as Zc, dU as ed, dV as zl, dW as td, E as ys, s as Er, dX as nd, dY as Ar, bt as ad, dZ as $l, I as pt, d_ as sd, d$ as rd, e0 as Hi, e1 as Wi, bS as ld, e2 as Or, e3 as Mr, aH as Ns, e4 as Qi, e5 as Ji, e6 as ql, e7 as ja, e8 as id, e9 as od, ea as cd, eb as dd, ec as ud, bk as Fr, ed as md, ee as hd, ef as Yi, eg as Xi, eh as pd, ei as fd, ej as gd, ek as xd, el as Zi, em as bd, en as vd, eo as Cs, ep as ws, b8 as la, b9 as ia, bb as oa, bu as Aa, bf as Wt, eq as cn, er as Ln, es as Pn, et as pn, eu as ea, ev as yd, ew as Nd, ex as Cd, ey as wd, ez as Sd, eA as Td, eB as kd, eC as Id, eD as jl, b0 as nn, eE as Dd, eF as Ed, eG as Ad, eH as Od, eI as eo, eJ as Md, eK as Fd, eL as Rd, eM as Ld, eN as Pd, eO as mr, eP as Vd, eQ as Bd, eR as hr, eS as pr, eT as _d, eU as zd, eV as $d, eW as qd, eX as Kl, aE as fr, az as fn, an as jd, ao as Kd, aq as Ud, ar as Gd, as as Hd, at as Wd, au as Qd, av as Jd, aw as Yd, bc as ct, b7 as Xd, eY as Zd, eZ as ta, e_ as na, e$ as aa, ba as Rr, bV as eu, aC as tu, f0 as nu, f1 as au, f2 as su, f3 as Ss, f4 as st, f5 as rt, f6 as lt, cK as ru, cL as lu, f7 as to, f8 as no, cH as iu, f9 as ou, fa as cu, fb as du, fc as uu, fd as mu, fe as hu, ff as pu, fg as fu, fh as gu, fi as xu, fj as bu, fk as vu, fl as kn, fm as Na, fn as Xn, fo as yu, fp as Ul, fq as Nu, fr as Cu, fs as _s, ft as Gl, fu as wu, fv as Su, fw as Tu, fx as ku, fy as Iu, R as Lr, g as Oa, fz as zs, fA as ao, aJ as Du, fB as ps, fC as Eu, fD as so, fE as Au, fF as ro, cr as Ou, fG as Mu, a2 as Fu, fH as ns, fI as Ru, fJ as Hl, fK as Lu, fL as Pu, fM as Wl, fN as Vu, fO as Bu, fP as _u, fQ as zu, fR as $u, cG as qu, cI as ju, ap as lo, fS as Ku, fT as Uu, fU as Gu, fV as Hu, fW as Wu, fX as Qu, fY as Ju, fZ as Yu, f_ as Xu, f$ as io, g0 as Zu, g1 as Ts, c9 as ks, g2 as oo, g3 as em, g4 as tm, g5 as co, g6 as nm, g7 as am, g8 as Is, g9 as $s, ga as sm, gb as rm, gc as lm, gd as im, ge as om, gf as Ql, gg as sa, gh as uo, gi as cm, cJ as dm, gj as mo, gk as ho, gl as cs, gm as po, gn as fo, go as Jl, gp as um, gq as mm, gr as ds, gs as hm, gt as Pr, gu as pm, gv as fs, C as Ma, h as Fa, j as Ra, i as La, k as Pa, l as Va, gw as fm, gx as Ba, gy as dn, gz as gr, gA as xr, gB as _a, gC as go, gD as gm, gE as qs, gF as js, gG as xm, gH as Ks, gI as bm, gJ as Yl, gK as Xl, cP as vm, gL as ym, cQ as Nm, cS as Cm, cT as wm, x as Sm, gM as Tm, gN as km, gO as Im, bW as Dm, bX as Em, bY as Am, bh as Ds, cD as Es, gP as Zl, gQ as xo, cf as Us, gR as Om, gS as Mm, gT as Fm, F as Rm, aU as Lm, gU as Pm, gV as Vm, aV as Bm } from "./index-CPyEi9gS.js";
4
+ import { cV as Di, b as On, c as Mn, d as Fn, e as Rn, f as Zn, n as ms, aR as St, aW as Ct, cW as Ei, cX as ls, o as nt, cY as Ai, cF as is, aG as Da, ax as bt, aF as $t, bU as Cr, aD as ra, aX as $a, aS as vt, cZ as hs, cM as wr, c_ as Nc, c$ as Oi, d0 as Cc, ad as vs, d1 as wc, d2 as Sc, d3 as dr, d4 as os, u as bn, y as Mi, d5 as Tc, d6 as kc, d7 as Fi, d8 as Ri, d9 as Ic, da as Dc, db as Ec, aL as Bn, aM as vn, aN as yn, aO as qa, aP as tn, aQ as Jn, dc as ur, bR as Ta, dd as Li, al as an, am as ht, de as Ac, df as Pi, c8 as hn, cN as Vi, dg as Sr, dh as Bi, di as Oc, dj as Mc, dk as Fc, dl as Rc, dm as Lc, dn as Pc, dp as Vc, dq as Bc, dr as _c, ds as Bs, dt as zc, du as Bl, dv as $c, dw as _l, dx as qc, dy as jc, dz as Kc, dA as Yn, a$ as Qt, b1 as Jt, aI as _i, dB as Tr, bn as kr, ak as Ir, dC as Dr, dD as Uc, dE as zi, dF as $i, dG as qi, dH as Ht, dI as Gc, dJ as Hc, dK as Wc, dL as Qc, dM as ji, dN as Ki, V as Ui, dO as Gi, dP as Jc, dQ as Yc, dR as Xc, dS as Ea, dT as Zc, dU as ed, dV as zl, dW as td, E as ys, s as Er, dX as nd, dY as Ar, bt as ad, dZ as $l, I as pt, d_ as sd, d$ as rd, e0 as Hi, e1 as Wi, bS as ld, e2 as Or, e3 as Mr, aH as Ns, e4 as Qi, e5 as Ji, e6 as ql, e7 as ja, e8 as id, e9 as od, ea as cd, eb as dd, ec as ud, bk as Fr, ed as md, ee as hd, ef as Yi, eg as Xi, eh as pd, ei as fd, ej as gd, ek as xd, el as Zi, em as bd, en as vd, eo as Cs, ep as ws, b8 as la, b9 as ia, bb as oa, bu as Aa, bf as Wt, eq as cn, er as Ln, es as Pn, et as pn, eu as ea, ev as yd, ew as Nd, ex as Cd, ey as wd, ez as Sd, eA as Td, eB as kd, eC as Id, eD as jl, b0 as nn, eE as Dd, eF as Ed, eG as Ad, eH as Od, eI as eo, eJ as Md, eK as Fd, eL as Rd, eM as Ld, eN as Pd, eO as mr, eP as Vd, eQ as Bd, eR as hr, eS as pr, eT as _d, eU as zd, eV as $d, eW as qd, eX as Kl, aE as fr, az as fn, an as jd, ao as Kd, aq as Ud, ar as Gd, as as Hd, at as Wd, au as Qd, av as Jd, aw as Yd, bc as ct, b7 as Xd, eY as Zd, eZ as ta, e_ as na, e$ as aa, ba as Rr, bV as eu, aC as tu, f0 as nu, f1 as au, f2 as su, f3 as Ss, f4 as st, f5 as rt, f6 as lt, cK as ru, cL as lu, f7 as to, f8 as no, cH as iu, f9 as ou, fa as cu, fb as du, fc as uu, fd as mu, fe as hu, ff as pu, fg as fu, fh as gu, fi as xu, fj as bu, fk as vu, fl as kn, fm as Na, fn as Xn, fo as yu, fp as Ul, fq as Nu, fr as Cu, fs as _s, ft as Gl, fu as wu, fv as Su, fw as Tu, fx as ku, fy as Iu, R as Lr, g as Oa, fz as zs, fA as ao, aJ as Du, fB as ps, fC as Eu, fD as so, fE as Au, fF as ro, cr as Ou, fG as Mu, a2 as Fu, fH as ns, fI as Ru, fJ as Hl, fK as Lu, fL as Pu, fM as Wl, fN as Vu, fO as Bu, fP as _u, fQ as zu, fR as $u, cG as qu, cI as ju, ap as lo, fS as Ku, fT as Uu, fU as Gu, fV as Hu, fW as Wu, fX as Qu, fY as Ju, fZ as Yu, f_ as Xu, f$ as io, g0 as Zu, g1 as Ts, c9 as ks, g2 as oo, g3 as em, g4 as tm, g5 as co, g6 as nm, g7 as am, g8 as Is, g9 as $s, ga as sm, gb as rm, gc as lm, gd as im, ge as om, gf as Ql, gg as sa, gh as uo, gi as cm, cJ as dm, gj as mo, gk as ho, gl as cs, gm as po, gn as fo, go as Jl, gp as um, gq as mm, gr as ds, gs as hm, gt as Pr, gu as pm, gv as fs, C as Ma, h as Fa, j as Ra, i as La, k as Pa, l as Va, gw as fm, gx as Ba, gy as dn, gz as gr, gA as xr, gB as _a, gC as go, gD as gm, gE as qs, gF as js, gG as xm, gH as Ks, gI as bm, gJ as Yl, gK as Xl, cP as vm, gL as ym, cQ as Nm, cS as Cm, cT as wm, x as Sm, gM as Tm, gN as km, gO as Im, bW as Dm, bX as Em, bY as Am, bh as Ds, cD as Es, gP as Zl, gQ as xo, cf as Us, gR as Om, gS as Mm, gT as Fm, F as Rm, aU as Lm, gU as Pm, gV as Vm, aV as Bm } from "./index-C0Qnfr_7.js";
5
5
  import "./index-CuHybtft.js";
6
6
  import { c as ze, H as Ne, B as ee, W as gs, M as Ka, a as Y, aQ as _m, L as $, a2 as ne, a3 as ae, a4 as se, a5 as re, a6 as j, g as Dt, X as et, G as O, a0 as Tt, Y as Pt, Z as kt, _ as It, P as Et, b as Ft, d as At, C as gn, aR as zm, aI as ka, aS as Vr, aT as bo, aF as Br, aD as $m, a1 as Re, aU as qm, f as xn, u as Ee, e as Nn, aV as _r, aW as Ua, E as vo, T as Ga, J as Ha, K as Yt, N as En, $ as Xt, V as As, S as Vn, k as jm, aJ as An, aX as Km, aY as Um, aZ as yo, ah as Gm, aL as Hm, a_ as Wm, a$ as Qm, b0 as ei, b1 as Jm, b2 as Ym, b3 as Xm, b4 as Zm, aP as eh, b5 as th, b6 as ti, b7 as nh, b8 as ni, R as br, b9 as ca, ba as ah, a7 as Je, bb as sh, bc as za, bd as xs, be as un, bf as as, bg as ai, bh as rh, bi as Lt, bj as lh, Q as No, bk as at, v as si, bl as ih, bm as oh, bn as ch, bo as dh, bp as uh, bq as mh, br as hh, bs as ph, bt as fh, bu as gh, bv as xh, bw as bh, ay as ri, bx as vh, by as yh, bz as Nh, O as Os } from "./switch-Dkx2qEOr.js";
7
- import { f as Ch, g as ft, S as wh, h as Co, V as wo, u as Sh, e as Th, R as Ms, C as li } from "./use-create-flow-overlay-state-BfoXDDrd.js";
8
- import { r as So, f as Wa } from "./use-visual-utils-NN0e3fBP.js";
7
+ import { f as Ch, g as ft, S as wh, h as Co, V as wo, u as Sh, e as Th, R as Ms, C as li } from "./use-create-flow-overlay-state-BETXykC9.js";
8
+ import { r as So, f as Wa } from "./use-visual-utils-Bk135OgA.js";
9
9
  import { C as To } from "./chevrons-up-down-DSvLu4Ye.js";
10
10
  import { createPortal as kh } from "react-dom";
11
11
  import "./index-CJdxSyQq.js";
@@ -94440,6 +94440,7 @@ function sce(e) {
94440
94440
  role: F.role,
94441
94441
  expression: F.expression,
94442
94442
  calculatedFormula: F.calculatedFormula,
94443
+ derivedField: F.derivedField,
94443
94444
  format: ku(F.format),
94444
94445
  aggregate: F.aggregate
94445
94446
  };
@@ -140461,10 +140462,10 @@ function pSt() {
140461
140462
  }
140462
140463
  );
140463
140464
  }
140464
- const mSt = Ox(() => import("./dashboard-controls-CqKC5oEk.js")), gSt = Ox(
140465
- () => import("./edit-dashboard-visual-ByQx_M2i.js")
140466
- ), bSt = Ox(() => import("./dashboard-json-6SgPm_QW.js")), ySt = Ox(
140467
- () => import("./resource-management-panel-mJ84NxzC.js").then(
140465
+ const mSt = Ox(() => import("./dashboard-controls-B3sdy_Zx.js")), gSt = Ox(
140466
+ () => import("./edit-dashboard-visual-DjdhKiP2.js")
140467
+ ), bSt = Ox(() => import("./dashboard-json-BWfkEy48.js")), ySt = Ox(
140468
+ () => import("./resource-management-panel-YvIfaphX.js").then(
140468
140469
  (e) => ({ default: e.ResourceManagementPanel })
140469
140470
  )
140470
140471
  );