react-semaphor 0.1.397 → 0.1.399
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics-protocol/index.cjs +1 -1
- package/dist/analytics-protocol/index.js +2 -2
- package/dist/brand-studio/index.cjs +1 -1
- package/dist/brand-studio/index.js +2 -2
- package/dist/chunks/analyze-result-contract-CUO5QmqV.js +1797 -0
- package/dist/chunks/analyze-result-contract-OqFtOCpZ.js +1 -0
- package/dist/chunks/{calendar-preferences-dialog-49fcEPXS.js → calendar-preferences-dialog-9SvYDLp6.js} +3 -3
- package/dist/chunks/{calendar-preferences-dialog-DwLeBLy2.js → calendar-preferences-dialog-B3fnFtJt.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-cgPKz1yX.js → dashboard-briefing-launcher-APVyc9al.js} +4 -4
- package/dist/chunks/{dashboard-briefing-launcher-CgkSKkZR.js → dashboard-briefing-launcher-D3R4R7ww.js} +1 -1
- package/dist/chunks/{dashboard-controls-VMFm3OP4.js → dashboard-controls-CHDQlMZ9.js} +5 -5
- package/dist/chunks/{dashboard-controls-D12ZSUP_.js → dashboard-controls-v7jslCXR.js} +1 -1
- package/dist/chunks/{dashboard-json-C-GG5yC7.js → dashboard-json-DF_syvRu.js} +3 -3
- package/dist/chunks/{dashboard-json-CvK0oI24.js → dashboard-json-L1Qo5xcX.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-B5KB7dx4.js → edit-dashboard-visual-DwfIWUe-.js} +4 -4
- package/dist/chunks/{edit-dashboard-visual-ql99faTz.js → edit-dashboard-visual-qdruQruO.js} +1 -1
- package/dist/chunks/{index-CQmKDEbe.js → index-BdVymLVq.js} +5 -5
- package/dist/chunks/{index-DXCBPLDu.js → index-DH7hOGQl.js} +2 -2
- package/dist/chunks/{switch-BXQAlSuW.js → switch-BiU6-YSY.js} +1 -1
- package/dist/chunks/{switch-B79Hn4Qh.js → switch-CYG3dY8r.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-Bw5LRkf9.js → use-create-flow-overlay-state-CwUkhLBL.js} +3 -3
- package/dist/chunks/{use-create-flow-overlay-state-7MFN3PWX.js → use-create-flow-overlay-state-qe7DHQKr.js} +1 -1
- package/dist/chunks/{validators-4EGCWWga.js → validators-B1Mgdr3T.js} +279 -242
- package/dist/chunks/{validators-CPtkrola.js → validators-DFOX0tYY.js} +1 -1
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.cjs +1 -1
- package/dist/dashboard-authoring/index.js +2 -2
- package/dist/data-app-builder/index.cjs +1 -1
- package/dist/data-app-builder/index.js +2 -2
- package/dist/data-app-sdk/index.cjs +20 -5
- package/dist/data-app-sdk/index.js +1182 -1085
- package/dist/data-app-sdk-adapters/index.cjs +1 -1
- package/dist/data-app-sdk-adapters/index.js +20 -12
- package/dist/data-app-sdk-validation/index.cjs +1 -1
- package/dist/data-app-sdk-validation/index.js +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +7 -7
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/analytics-protocol.d.ts +101 -2
- package/dist/types/dashboard-assistant.d.ts +14 -0
- package/dist/types/dashboard-authoring.d.ts +6 -0
- package/dist/types/data-app-builder.d.ts +6 -0
- package/dist/types/data-app-sdk-adapters.d.ts +7 -0
- package/dist/types/data-app-sdk-validation.d.ts +15 -0
- package/dist/types/data-app-sdk.d.ts +18 -0
- package/dist/types/main.d.ts +6 -0
- package/package.json +1 -1
- package/dist/chunks/analyze-result-contract-C9Gv2_qW.js +0 -1585
- package/dist/chunks/analyze-result-contract-Zgg-Bbpj.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("zod"),q={answerSummary:"string",responseDetail:"responseDetail",mode:"string",comparisonType:"string",executionResult:"executionResult",compiledQuery:"unknown",data:"unknown",resultSets:"record",analysisWarnings:"unknownArray",columns:"unknownArray",records:"recordArray",rowCount:"number",rowLimitExceeded:"boolean",output:"string",querySpec:"unknown",metadata:"record",validation:"validationResult",coverage:"coverage",diagnosticFeedback:"diagnosticFeedback",missingFields:"stringArray",warnings:"unknownArray",comparison:"unknown",population:"population",comparisons:"recordArray",fieldsUsed:"compactExecutionFieldArray",primary:"recordArray",contributors:"recordArray",segments:"recordArray",periodChanges:"recordArray",changes:"recordArray",largestNegativeChanges:"recordArray",largestPositiveChanges:"recordArray",drivers:"recordArray",absoluteDeltaDrivers:"recordArray",largestNegativeDrivers:"recordArray",largestPositiveDrivers:"recordArray",periodRows:"recordArray",sql:"unknown",omitted:"stringArray"},I="semaphor-data-app-codegen-summary/v1",_e="semaphor-data-app-codegen-summary-validator/v2",Ie=new Set(["metric","records","matrix","analysis","sql_fallback"]),je=new Set(["semaphor.metric","semaphor.records","semaphor.matrix","semaphor.analysis","semaphor.sql"]),Ce=new Set(["absolute_delta","largest_negative","largest_positive","positive_and_negative","all"]),te=new Set(["source","id","label","measures","primaryMeasure","dateField","timeGrain","dimensions","comparison","orderBy","filters","relationshipHint","limit","derivedFields"]),qe=new Set([...te,"analysis","timeWindow","filters","driverMode","includePopulation","calendarContext","chartTitle","chartType"]),xe=new Set(["source","id","label","fields","dateField","timeGrain","timeWindow","filters","orderBy","relationshipHint","limit","pagination","totals","derivedFields"]),Ee=new Set(["source","id","label","filters","relationshipHint","rows","columns","values","totals","sort","expansion","layout","displayLimits"]),Fe=new Set(["source","id","label","sql","defaultParameters","pythonCode","fields","limit","pagination","rationale"]),Te=new Set(["kpi","line_chart","bar_chart","stacked_bar_chart","pie_chart","donut_chart","area_chart","table","matrix","narrative","text_block","custom"]),De=new Set(["missing_measure","missing_dimension","missing_date","missing_relationship","missing_semantic_role","missing_current_app_state","unsupported_change_intent","ambiguous_field_grounding","invalid_ranker_output","latest_snapshot_selector_not_modeled","unsupported_grain","requires_sql_escape_hatch","unsupported_sdk_capability"]);function Ne(i){return P(i).ok}function P(i){const t=[];if(!i||typeof i!="object")return{ok:!1,issues:["Summary must be an object."]};const o=i;return o.schemaVersion!==I&&t.push(`schemaVersion must be ${I}.`),(typeof o.title!="string"||!o.title.trim())&&t.push("title is required."),Array.isArray(o.sources)||t.push("sources must be an array."),Array.isArray(o.inputs)||t.push("inputs must be an array."),Array.isArray(o.views)||t.push("views must be an array."),Array.isArray(o.filterContracts)||t.push("filterContracts must be an array."),(!o.implementationChecklist||typeof o.implementationChecklist!="object")&&t.push("implementationChecklist must be an object."),o.implementationChecklist&&typeof o.implementationChecklist=="object"&&t.push(...Me(o.implementationChecklist)),Array.isArray(o.sources)&&o.sources.forEach((s,r)=>{t.push(...$(s,`sources.${r}`))}),Array.isArray(o.inputs)&&o.inputs.forEach((s,r)=>{t.push(...Ke(s,`inputs.${r}`))}),Array.isArray(o.views)&&o.views.forEach((s,r)=>{t.push(...Pe(s,`views.${r}`))}),Array.isArray(o.filterContracts)&&o.filterContracts.forEach((s,r)=>{t.push(...Ge(s,`filterContracts.${r}`))}),o.unsupportedInsights!==void 0&&(Array.isArray(o.unsupportedInsights)?o.unsupportedInsights.forEach((s,r)=>{t.push(...po(s,`unsupportedInsights.${r}`))}):t.push("unsupportedInsights must be an array.")),t.push(...Oe(o)),{ok:t.length===0,issues:t}}function Oe(i){const t=Array.isArray(i.unsupportedInsights)&&i.unsupportedInsights.some(l=>{var u;return((u=a(l))==null?void 0:u.reason)==="missing_relationship"}),o=Array.isArray(i.views)&&i.views.some(l=>{var p;const u=a((p=a(l))==null?void 0:p.computation);return(u==null?void 0:u.kind)==="unsupported"&&u.reason==="missing_relationship"});if(!t&&!o)return[];const s=[],r=a(i.validation);(r==null?void 0:r.status)!=="blocked"&&s.push("validation.status must be blocked when missing_relationship gaps are present.");const n=a(i.nextRequiredTool);return(n==null?void 0:n.name)!=="semaphor_propose_semantic_model_change"&&s.push("nextRequiredTool.name must be semaphor_propose_semantic_model_change when missing_relationship gaps are present."),s}function $(i,t){const o=a(i);return o?o.kind==="semantic"?typeof o.domainId=="string"&&o.domainId.trim()&&typeof o.datasetName=="string"&&o.datasetName.trim()?[]:[`${t} must include sourceKey or a supported source identity.`]:typeof o.sourceKey=="string"&&o.sourceKey.trim()?[]:o.kind==="physical"&&typeof o.tableName=="string"&&o.tableName.trim()&&typeof o.connectionId=="string"&&o.connectionId.trim()?[]:o.kind==="sql"&&typeof o.connectionId=="string"&&o.connectionId.trim()?[]:[`${t} must include sourceKey or a supported source identity.`]:[`${t} must be an object.`]}function Me(i){const t=a(i);if(!t)return["implementationChecklist must be an object."];const o=[],s=["requiredDevtools","requiredInputOptions","filterScopeByInput","bindingsByView","validationCommands","browserSmokeChecks"];for(const n of s)n in t||o.push(`implementationChecklist.${n} is required.`);const r=a(t.requiredDevtools);return r?typeof r.mountRootDevtools!="boolean"&&o.push("implementationChecklist.requiredDevtools.mountRootDevtools must be a boolean."):o.push("implementationChecklist.requiredDevtools must be an object."),Array.isArray(t.requiredInputOptions)||o.push("implementationChecklist.requiredInputOptions must be an array."),Array.isArray(t.filterScopeByInput)||o.push("implementationChecklist.filterScopeByInput must be an array."),a(t.bindingsByView)||o.push("implementationChecklist.bindingsByView must be an object."),g(t.validationCommands)||o.push("implementationChecklist.validationCommands must be an array of strings."),g(t.browserSmokeChecks)||o.push("implementationChecklist.browserSmokeChecks must be an array of strings."),o}function Ke(i,t){const o=a(i);if(!o)return[`${t} must be an object.`];const s=[];return(typeof o.id!="string"||!o.id.trim())&&s.push(`${t}.id is required.`),o.fieldRef&&s.push(...d(o.fieldRef,`${t}.fieldRef`)),s.push(...se(o.optionQuery,`${t}.optionQuery`)),g(o.appliesToViewIds)||s.push(`${t}.appliesToViewIds must be an array of strings.`),o.bindings!==void 0&&!Array.isArray(o.bindings)&&s.push(`${t}.bindings must be an array.`),Array.isArray(o.bindings)&&o.bindings.forEach((r,n)=>{const l=a(r);if(!l){s.push(`${t}.bindings.${n} must be an object.`);return}g(l.appliesToViewIds)||s.push(`${t}.bindings.${n}.appliesToViewIds must be an array of strings.`),s.push(...d(l.fieldRef,`${t}.bindings.${n}.fieldRef`))}),s}function Pe(i,t){const o=a(i);if(!o)return[`${t} must be an object.`];const s=[];if((typeof o.id!="string"||!o.id.trim())&&s.push(`${t}.id is required.`),o.visualSpec!==void 0&&s.push(...io(o.visualSpec,`${t}.visualSpec`)),o.computation!==void 0&&s.push(...co(o.computation,`${t}.computation`)),so(o))return o.fields!==void 0&&(Array.isArray(o.fields)?o.fields.forEach((n,l)=>{s.push(...d(n,`${t}.fields.${l}`))}):s.push(`${t}.fields must be an array.`)),o.queryKind!==void 0&&s.push(`${t}.queryKind is not allowed for non-executable views.`),o.sdkBuilder!==void 0&&s.push(`${t}.sdkBuilder is not allowed for non-executable views.`),o.sdkSpec!==void 0&&s.push(`${t}.sdkSpec is not allowed for non-executable views.`),s;if(!Array.isArray(o.fields))return s.push(`${t}.fields must be an array.`),(o.sdkSpec!==void 0||o.sdkBuilder!==void 0)&&s.push(`${t}.fields must be an array for executable views.`),s;o.fields.forEach((n,l)=>{s.push(...d(n,`${t}.fields.${l}`))}),v(o.queryKind)||s.push(`${t}.queryKind must be a supported codegen query kind.`),o.sdkBuilder!==void 0&&!re(o.sdkBuilder)&&s.push(`${t}.sdkBuilder must be a supported SDK builder.`);const r=a(o.computation);return(r==null?void 0:r.kind)==="server_query"&&v(o.queryKind)&&v(r.queryKind)&&r.queryKind!==o.queryKind&&s.push(`${t}.computation.queryKind must match queryKind.`),s.push(...He({value:o.sdkSpec,path:`${t}.sdkSpec`,queryKind:typeof o.queryKind=="string"?o.queryKind:void 0,sdkBuilder:typeof o.sdkBuilder=="string"?o.sdkBuilder:void 0}),...Be(o,`${t}`)),s}function Be(i,t){var W,Z;const o=a((W=a(i.visualSpec))==null?void 0:W.tableBehavior);if(!o)return[];const s=a(o.totals);if(!s)return[];const r=a(i.sdkSpec),n=a(r==null?void 0:r.spec),l=a(n==null?void 0:n.totals),u=[],p=typeof(r==null?void 0:r.builder)=="string"?r.builder:void 0,Re=(Z=a(o.pagination))==null?void 0:Z.mode;return s.mode==="server"&&(p!=="semaphor.records"&&u.push(`${t}.visualSpec.tableBehavior.totals.mode server is only supported for semaphor.records views.`),!l||l.mode!=="server"?u.push(`${t}.sdkSpec.spec.totals.mode must be server when tableBehavior.totals.mode is server.`):u.push(...Ve({left:s.measures,right:l.measures,leftPath:`${t}.visualSpec.tableBehavior.totals.measures`,rightPath:`${t}.sdkSpec.spec.totals.measures`}))),s.mode!=="server"&&l&&u.push(`${t}.sdkSpec.spec.totals is only allowed when tableBehavior.totals.mode is server.`),s.mode==="local"&&Re==="server"&&u.push(`${t}.visualSpec.tableBehavior.totals.mode must not be local for server-paginated tables.`),p==="semaphor.sql"&&s.mode!=="none"&&u.push(`${t}.visualSpec.tableBehavior.totals.mode must be none for semaphor.sql views.`),p==="semaphor.sql"&&l&&u.push(`${t}.sdkSpec.spec.totals is not supported for semaphor.sql.`),u}function Ve({left:i,right:t,leftPath:o,rightPath:s}){if(!Array.isArray(i)||!Array.isArray(t))return[`${s} must match ${o}.`];const r=[];return i.length!==t.length?(r.push(`${s} must match ${o}.`),r):(i.forEach((n,l)=>{Le(a(n),a(t[l]))||r.push(`${s}.${l} must match ${o}.${l}.`)}),r)}function Le(i,t){return!i||!t?!1:i.name===t.name&&(i.role||"measure")===(t.role||"measure")&&X(i)===X(t)&&Ue(i,t)}function X(i){return typeof i.aggregate=="string"?i.aggregate.toUpperCase():"SUM"}function Ue(i,t){const o=typeof i.sourceKey=="string"?i.sourceKey:void 0,s=typeof t.sourceKey=="string"?t.sourceKey:void 0;if(o||s)return o===s;const r=a(i.source),n=a(t.source);return!r||!n||r.kind!==n.kind?!1:r.kind==="semantic"?r.domainId===n.domainId&&r.datasetName===n.datasetName&&(r.datasetId===void 0||n.datasetId===void 0||r.datasetId===n.datasetId):r.kind==="physical"?r.connectionId===n.connectionId&&r.tableName===n.tableName:r.kind==="sql"?r.connectionId===n.connectionId:!1}function Ge(i,t){const o=a(i);if(!o)return[`${t} must be an object.`];const s=[];if(o.fieldRef&&s.push(...d(o.fieldRef,`${t}.fieldRef`)),(typeof o.inputId!="string"||!o.inputId.trim())&&s.push(`${t}.inputId is required.`),s.push(...se(o.optionQuery,`${t}.optionQuery`)),g(o.appliesToViewIds)||s.push(`${t}.appliesToViewIds must be an array of strings.`),g(o.notAppliedToViewIds)||s.push(`${t}.notAppliedToViewIds must be an array of strings.`),!Array.isArray(o.bindings))s.push(`${t}.bindings must be an array.`);else{const r=g(o.appliesToViewIds)?new Set(o.appliesToViewIds):void 0,n=g(o.notAppliedToViewIds)?new Set(o.notAppliedToViewIds):void 0;o.bindings.forEach((l,u)=>{const p=a(l);if(!p){s.push(`${t}.bindings.${u} must be an object.`);return}typeof p.viewId!="string"||!p.viewId?s.push(`${t}.bindings.${u}.viewId is required.`):(r&&!r.has(p.viewId)&&s.push(`${t}.bindings.${u}.viewId must be included in appliesToViewIds.`),n!=null&&n.has(p.viewId)&&s.push(`${t}.bindings.${u}.viewId must not be listed in notAppliedToViewIds.`)),s.push(...d(p.fieldRef,`${t}.bindings.${u}.fieldRef`))})}return s}function se(i,t){if(i===void 0)return[];const o=a(i);if(!o)return[`${t} must be an object.`];const s=[...h(o.valueFieldRef,`${t}.valueFieldRef`),...h(o.labelFieldRef,`${t}.labelFieldRef`),...h(o.filterFieldRef,`${t}.filterFieldRef`)];return o.builder!=="semaphor.inputOptions"&&s.push(`${t}.builder must be semaphor.inputOptions.`),typeof o.sourceKey!="string"&&o.source===void 0&&s.push(`${t} must include source or sourceKey.`),o.source!==void 0&&s.push(...$(o.source,`${t}.source`)),a(o.valueFieldRef)||s.push(`${t}.valueFieldRef is required.`),a(o.labelFieldRef)||s.push(`${t}.labelFieldRef is required.`),o.limit!==void 0&&(typeof o.limit!="number"||!Number.isInteger(o.limit)||o.limit<=0)&&s.push(`${t}.limit must be a positive integer.`),s}function He(i){var r;const t=a(i.value);if(!t)return[`${i.path} is required for executable views.`];const o=[];if(!re(t.builder))return o.push(`${i.path}.builder must be a supported SDK builder.`),o;i.sdkBuilder&&t.builder!==i.sdkBuilder&&o.push(`${i.path}.builder must match sdkBuilder.`),i.queryKind&&v(i.queryKind)&&t.builder!==to(i.queryKind)&&o.push(`${i.path}.builder must match queryKind.`);const s=a(t.spec);if(!s)return o.push(`${i.path}.spec must be an object.`),o;switch(t.builder){case"semaphor.metric":o.push(...S(s,te,`${i.path}.spec`),...k(s,i.path),...N(s.measures,`${i.path}.spec.measures`),...h(s.primaryMeasure,`${i.path}.spec.primaryMeasure`),...h(s.dateField,`${i.path}.spec.dateField`),...O(s.dimensions,`${i.path}.spec.dimensions`),...M(s.orderBy,`${i.path}.spec.orderBy`),...R(s.filters,`${i.path}.spec.filters`));break;case"semaphor.analysis":o.push(...S(s,qe,`${i.path}.spec`),...k(s,i.path),...N(s.measures,`${i.path}.spec.measures`),...h(s.primaryMeasure,`${i.path}.spec.primaryMeasure`),...h(s.dateField,`${i.path}.spec.dateField`),...O(s.dimensions,`${i.path}.spec.dimensions`),...M(s.orderBy,`${i.path}.spec.orderBy`),...R(s.filters,`${i.path}.spec.filters`),...Qe(s,`${i.path}.spec`));break;case"semaphor.records":o.push(...S(s,xe,`${i.path}.spec`),...k(s,i.path),...N(s.fields,`${i.path}.spec.fields`),...h(s.dateField,`${i.path}.spec.dateField`),...M(s.orderBy,`${i.path}.spec.orderBy`),...R(s.filters,`${i.path}.spec.filters`),...Ye(s.totals,`${i.path}.spec.totals`));break;case"semaphor.matrix":o.push(...S(s,Ee,`${i.path}.spec`),...We(s,i.path),...Ze(s.rows,`${i.path}.spec.rows`),...Xe(s.columns,`${i.path}.spec.columns`),...Je(s.values,`${i.path}.spec.values`),...eo(s.sort,`${i.path}.spec.sort`),...R(s.filters,`${i.path}.spec.filters`));break;case"semaphor.sql":o.push(...S(s,Fe,`${i.path}.spec`),...k(s,i.path)),((r=a(s.source))==null?void 0:r.kind)!=="sql"&&o.push(`${i.path}.spec.source.kind must be sql.`),(typeof s.sql!="string"||!s.sql.trim())&&o.push(`${i.path}.spec.sql is required.`),o.push(...O(s.fields,`${i.path}.spec.fields`));break}return o}function Qe(i,t){const o=[];if(i.driverMode!==void 0&&!Ce.has(i.driverMode)&&o.push(`${t}.driverMode must be a supported analysis driver mode.`),i.includePopulation!==void 0&&typeof i.includePopulation!="boolean"&&o.push(`${t}.includePopulation must be a boolean.`),i.calendarContext!==void 0){const s=a(i.calendarContext);if(!s)o.push(`${t}.calendarContext must be an object.`);else{s.tz!==void 0&&typeof s.tz!="string"&&o.push(`${t}.calendarContext.tz must be a string.`),s.weekStart!==void 0&&(typeof s.weekStart!="number"||!Number.isInteger(s.weekStart)||s.weekStart<0||s.weekStart>6)&&o.push(`${t}.calendarContext.weekStart must be an integer between 0 and 6.`);const r=s.anchor;if(r!==void 0&&r!=="now"){const n=a(r);(!n||typeof n.iso!="string"||!n.iso.trim())&&o.push(`${t}.calendarContext.anchor must be now or { iso }.`)}}}return o}function Ye(i,t){if(i===void 0)return[];const o=a(i);if(!o)return[`${t} must be an object.`];const s=[];return o.mode!=="server"&&s.push(`${t}.mode must be server.`),!Array.isArray(o.measures)||o.measures.length===0?s.push(`${t}.measures must include at least one measure.`):o.measures.forEach((r,n)=>{var l;s.push(...ne(r,`${t}.measures.${n}`)),((l=a(r))==null?void 0:l.role)!=="measure"&&s.push(`${t}.measures.${n}.role must be measure.`)}),s}function S(i,t,o){const s=[];return Object.keys(i).forEach(r=>{t.has(r)||s.push(`${o}.${r} is not supported for this SDK builder.`)}),s}function k(i,t){return a(i.source)?$(i.source,`${t}.spec.source`):[`${t}.spec.source must be an object.`]}function We(i,t){const o=a(i.source);if(!o)return[`${t}.spec.source must be an object.`];const s=$(i.source,`${t}.spec.source`);return o.kind!=="semantic"&&o.kind!=="physical"&&s.push(`${t}.spec.source.kind must be semantic or physical.`),s}function N(i,t){const o=B(i,t);return Array.isArray(i)&&i.forEach((s,r)=>{o.push(...d(s,`${t}.${r}`))}),o}function O(i,t){if(i===void 0)return[];if(!Array.isArray(i))return[`${t} must be an array.`];const o=[];return i.forEach((s,r)=>{o.push(...d(s,`${t}.${r}`))}),o}function M(i,t){if(i===void 0)return[];const o=a(i);return o?[...d(o.field,`${t}.field`),...ie(o.direction,`${t}.direction`)]:[`${t} must be an object.`]}function Ze(i,t){const o=B(i,t);return Array.isArray(i)&&i.forEach((s,r)=>{const n=a(s);if(!n){o.push(`${t}.${r} must be an object.`);return}o.push(...d(n.field,`${t}.${r}.field`))}),o}function Xe(i,t){if(i===void 0)return[];const o=[];return Array.isArray(i)?(i.forEach((s,r)=>{const n=a(s);if(!n){o.push(`${t}.${r} must be an object.`);return}o.push(...d(n.field,`${t}.${r}.field`))}),o):[`${t} must be an array.`]}function Je(i,t){const o=B(i,t);return Array.isArray(i)&&i.forEach((s,r)=>{const n=a(s);if(!n){o.push(`${t}.${r} must be an object.`);return}o.push(...d(n.field,`${t}.${r}.field`))}),o}function eo(i,t){if(i===void 0)return[];if(!Array.isArray(i))return[`${t} must be an array.`];const o=[];return i.forEach((s,r)=>{const n=a(s);if(!n){o.push(`${t}.${r} must be an object.`);return}n.axis!=="row"&&n.axis!=="column"&&o.push(`${t}.${r}.axis must be row or column.`),o.push(...ie(n.direction,`${t}.${r}.direction`),...oo(n.by,`${t}.${r}.by`))}),o}function oo(i,t){const o=a(i);if(!o)return[`${t} must be an object.`];switch(o.kind){case"label":return[];case"field":return d(o.field,`${t}.field`);case"value":return typeof o.valueId!="string"||!o.valueId.trim()?[`${t}.valueId is required.`]:[];default:return[`${t}.kind must be label, field, or value.`]}}function ie(i,t){return i==="asc"||i==="desc"?[]:[`${t} must be asc or desc.`]}function R(i,t){if(i===void 0)return[];if(!Array.isArray(i))return[`${t} must be an array.`];const o=[];return i.forEach((s,r)=>{const n=a(s);if(!n){o.push(`${t}.${r} must be an object.`);return}o.push(...d(n.field,`${t}.${r}.field`))}),o}function B(i,t){return!Array.isArray(i)||i.length===0?[`${t} must be a non-empty array.`]:[]}function to(i){switch(i){case"metric":return"semaphor.metric";case"records":return"semaphor.records";case"matrix":return"semaphor.matrix";case"analysis":return"semaphor.analysis";case"sql_fallback":return"semaphor.sql"}}function so(i){const t=a(i.computation),o=a(i.visualSpec);return(t==null?void 0:t.kind)==="presentation_only"||(t==null?void 0:t.kind)==="derived"||(t==null?void 0:t.kind)==="unsupported"||i.visual==="text_block"||(o==null?void 0:o.visualType)==="text_block"}function io(i,t){const o=a(i);if(!o)return[`${t} must be an object.`];const s=[];return Te.has(o.visualType)||s.push(`${t}.visualType must be a supported visual type.`),o.limit!==void 0&&(typeof o.limit!="number"||!Number.isInteger(o.limit)||o.limit<=0)&&s.push(`${t}.limit must be a positive integer.`),o.tableBehavior!==void 0&&s.push(...ro(o.tableBehavior,`${t}.tableBehavior`)),s}function ro(i,t){const o=a(i);if(!o)return[`${t} must be an object.`];const s=[];return o.tableMode!=="bounded"&&o.tableMode!=="server_paginated"&&o.tableMode!=="server_windowed"&&s.push(`${t}.tableMode must be a supported table mode.`),s.push(...no(o.height,`${t}.height`),...ao(o.pagination,`${t}.pagination`),...lo(o.sorting,`${t}.sorting`),...uo(o.totals,`${t}.totals`)),typeof o.serverSideRequired!="boolean"&&s.push(`${t}.serverSideRequired must be a boolean.`),s}function no(i,t){const o=a(i);if(!o)return[`${t} must be an object.`];const s=[];return(typeof o.maxPx!="number"||!Number.isInteger(o.maxPx)||o.maxPx<=0)&&s.push(`${t}.maxPx must be a positive integer.`),o.scroll!=="vertical"&&o.scroll!=="both"&&s.push(`${t}.scroll must be vertical or both.`),typeof o.stickyHeader!="boolean"&&s.push(`${t}.stickyHeader must be a boolean.`),s}function ao(i,t){const o=a(i);if(!o)return[`${t} must be an object.`];const s=[];return o.mode!=="none"&&o.mode!=="server"&&o.mode!=="client_for_bounded_rows"&&s.push(`${t}.mode must be a supported pagination mode.`),o.pageSize!==void 0&&(typeof o.pageSize!="number"||!Number.isInteger(o.pageSize)||o.pageSize<=0)&&s.push(`${t}.pageSize must be a positive integer.`),o.readsFrom!==void 0&&o.readsFrom!=="result.pagination"&&s.push(`${t}.readsFrom must be result.pagination.`),s}function lo(i,t){const o=a(i);if(!o)return[`${t} must be an object.`];const s=[];return o.mode!=="server"&&o.mode!=="client_for_bounded_rows"&&s.push(`${t}.mode must be a supported sorting mode.`),o.defaultField!==void 0&&(typeof o.defaultField!="string"||!o.defaultField.trim())&&s.push(`${t}.defaultField must be a non-empty string.`),o.defaultDirection!==void 0&&o.defaultDirection!=="asc"&&o.defaultDirection!=="desc"&&s.push(`${t}.defaultDirection must be asc or desc.`),o.resetPageOnChange!==void 0&&typeof o.resetPageOnChange!="boolean"&&s.push(`${t}.resetPageOnChange must be a boolean.`),s}function uo(i,t){const o=a(i);if(!o)return[`${t} must be an object.`];const s=[];return o.mode!=="none"&&o.mode!=="server"&&o.mode!=="local"?(s.push(`${t}.mode must be none, server, or local.`),s):o.mode==="none"?(o.measures!==void 0&&s.push(`${t}.measures is not allowed when mode is none.`),o.label!==void 0&&s.push(`${t}.label is not allowed when mode is none.`),s):o.mode==="server"?(!Array.isArray(o.measures)||o.measures.length===0?s.push(`${t}.measures must include at least one measure when mode is server.`):o.measures.forEach((r,n)=>{var l;s.push(...ne(r,`${t}.measures.${n}`)),((l=a(r))==null?void 0:l.role)!=="measure"&&s.push(`${t}.measures.${n}.role must be measure.`)}),o.label!==void 0&&s.push(`${t}.label is not allowed when mode is server.`),s):(o.mode==="local"&&(o.label!=="Displayed rows"&&o.label!=="Current page"&&s.push(`${t}.label must be Displayed rows or Current page when mode is local.`),o.measures!==void 0&&s.push(`${t}.measures is not allowed when mode is local.`)),s)}function co(i,t){const o=a(i);if(!o)return[`${t} must be an object.`];const s=[];switch(o.kind){case"server_query":v(o.queryKind)||s.push(`${t}.queryKind must be a supported codegen query kind.`),o.queryOwnership!==void 0&&o.queryOwnership!=="view_owned"&&o.queryOwnership!=="shared_query"&&s.push(`${t}.queryOwnership must be view_owned or shared_query.`),o.sourceKeys!==void 0&&!g(o.sourceKeys)&&s.push(`${t}.sourceKeys must be an array of strings.`),o.fieldNames!==void 0&&!g(o.fieldNames)&&s.push(`${t}.fieldNames must be an array of strings.`);break;case"derived":(typeof o.upstreamViewId!="string"||!o.upstreamViewId.trim())&&s.push(`${t}.upstreamViewId is required.`),(typeof o.derivation!="string"||!o.derivation.trim())&&s.push(`${t}.derivation is required.`);break;case"presentation_only":break;case"unsupported":(typeof o.reason!="string"||!o.reason.trim())&&s.push(`${t}.reason is required.`),(typeof o.suggestedModelingFix!="string"||!o.suggestedModelingFix.trim())&&s.push(`${t}.suggestedModelingFix is required.`);break;default:s.push(`${t}.kind must be a supported computation kind.`)}return s}function po(i,t){const o=a(i);if(!o)return[`${t} must be an object.`];const s=[];for(const n of["title","requestedQuestion","suggestedModelingFix"])(typeof o[n]!="string"||!o[n].trim())&&s.push(`${t}.${n} is required.`);return De.has(o.reason)||s.push(`${t}.reason must be a supported unsupported insight reason.`),(o.relationshipCandidate!==void 0||o.nextRepairAction!==void 0)&&o.reason!=="missing_relationship"&&s.push(`${t} relationship repair metadata is only valid for missing_relationship unsupported insights.`),o.relationshipCandidate!==void 0&&s.push(...go(o.relationshipCandidate,`${t}.relationshipCandidate`)),o.nextRepairAction!==void 0&&s.push(...mo(o.nextRepairAction,`${t}.nextRepairAction`)),s}function mo(i,t){const o=a(i);if(!o)return[`${t} must be an object.`];const s=[],r=new Set(["tool","reason"]);return Object.keys(o).forEach(n=>{r.has(n)||s.push(`${t}.${n} is not supported; repair actions support only tool and reason.`)}),o.tool!=="semaphor_propose_semantic_model_change"&&s.push(`${t}.tool must be semaphor_propose_semantic_model_change.`),o.reason!=="missing_relationship"&&s.push(`${t}.reason must be missing_relationship.`),s}function go(i,t){const o=a(i);if(!o)return[`${t} must be an object.`];const s=[],r=new Set(["source","sourceFields","target","targetFields"]);Object.keys(o).forEach(n=>{r.has(n)||s.push(`${t}.${n} is not supported; relationship candidates support only source, sourceFields, target, and targetFields.`)}),s.push(...J(o.source,`${t}.source`)),s.push(...J(o.target,`${t}.target`));for(const n of["sourceFields","targetFields"]){const l=o[n];if(!Array.isArray(l)||l.length===0){s.push(`${t}.${n} must be a non-empty endpoint field array.`);continue}l.forEach((u,p)=>{s.push(...ho(u,`${t}.${n}.${p}`))})}return s}function ho(i,t){const o=a(i);if(!o)return[`${t} must be an object.`];const s=[],r=new Set(["name","label","role","dataType"]);return Object.keys(o).forEach(n=>{r.has(n)||s.push(`${t}.${n} is not supported; relationship candidate fields are scoped by their endpoint and support only name, label, role, and dataType.`)}),(typeof o.name!="string"||!o.name.trim())&&s.push(`${t}.name must be a non-empty string.`),o.role!==void 0&&(typeof o.role!="string"||!["dimension","measure","date","id","unknown"].includes(o.role))&&s.push(`${t}.role must be dimension, measure, date, id, or unknown.`),o.dataType!==void 0&&(typeof o.dataType!="string"||!["string","number","boolean","date","datetime","unknown"].includes(o.dataType))&&s.push(`${t}.dataType must be string, number, boolean, date, datetime, or unknown.`),s}function J(i,t){const o=a(i);if(!o)return[`${t} must be an object.`];const s=[],r=new Set(["kind","domainId","datasetName","datasetId","label","sourceKey"]);return Object.keys(o).forEach(n=>{r.has(n)||s.push(`${t}.${n} is not supported; relationship candidate sources support only semantic identity fields.`)}),o.kind!=="semantic"&&s.push(`${t} must use semantic source identity.`),(typeof o.domainId!="string"||!o.domainId.trim()||typeof o.datasetName!="string"||!o.datasetName.trim())&&s.push(`${t} must include semantic domainId and datasetName.`),s}function v(i){return Ie.has(i)}function re(i){return je.has(i)}function h(i,t){return i===void 0?[]:d(i,t)}function d(i,t){const o=a(i);if(!o)return[`${t} must be an object.`];const s=[];return(typeof o.name!="string"||!o.name.trim())&&s.push(`${t}.name is required.`),!o.source&&typeof o.sourceKey!="string"&&s.push(`${t} must include source or sourceKey.`),s}function ne(i,t){const o=a(i),s=d(i,t);if(!o||typeof o.sourceKey=="string"&&o.sourceKey.trim())return s;if(o.source!==void 0){const n=$(o.source,`${t}.source`);return n.length===0||s.push(...n),s}return s.includes(`${t} must include source or sourceKey.`)||s.push(`${t} must include source or sourceKey.`),s}function a(i){return i&&typeof i=="object"&&!Array.isArray(i)?i:void 0}function g(i){return Array.isArray(i)&&i.every(t=>typeof t=="string")}const m=e.z.record(e.z.string(),e.z.unknown()),x=e.z.array(m),c=e.z.enum(["SUM","COUNT","AVG","MIN","MAX","MEDIAN","DISTINCT"]),E=e.z.enum(["postgres","mysql","mssql","snowflake","clickhouse","bigquery","redshift","duckdb","sqlite","unknown"]),ae=e.z.enum(["hour","day","week","month","quarter","year"]),F=e.z.enum(["dimension","measure","date","id","unknown"]),T=e.z.enum(["string","number","boolean","date","datetime","unknown"]),le=e.z.enum(["semantic_model","caller_override","default_sum"]),_=e.z.union([e.z.number(),e.z.string(),e.z.null()]),K=e.z.enum(["millisecond","second","minute","hour","day"]),ue=e.z.union([e.z.object({type:e.z.enum(["number","currency","percent","percentage","scientific"]),locale:e.z.string().optional(),minimumFractionDigits:e.z.number().optional(),maximumFractionDigits:e.z.number().optional(),useGrouping:e.z.boolean().optional(),prefix:e.z.string().optional(),suffix:e.z.string().optional(),negativeStyle:e.z.enum(["minus","parentheses"]).optional(),compact:e.z.boolean().optional(),scale:e.z.number().optional(),currency:e.z.string().optional(),percentValueMode:e.z.enum(["fraction","whole"]).optional()}).passthrough(),e.z.object({type:e.z.enum(["date","datetime"]),locale:e.z.string().optional(),pattern:e.z.string().optional(),relative:e.z.boolean().optional(),timezone:e.z.string().optional(),sourceTimezone:e.z.string().optional(),prefix:e.z.string().optional(),suffix:e.z.string().optional()}).passthrough(),e.z.object({type:e.z.literal("duration"),inputUnit:K.optional(),outputStyle:e.z.enum(["compact","digital","long"]).optional(),largestUnit:K.optional(),smallestUnit:K.optional(),maxUnits:e.z.number().optional(),prefix:e.z.string().optional(),suffix:e.z.string().optional(),negativeStyle:e.z.enum(["minus","parentheses"]).optional()}).passthrough(),e.z.object({type:e.z.literal("string"),prefix:e.z.string().optional(),suffix:e.z.string().optional()}).passthrough()]),fo=e.z.union([e.z.object({kind:e.z.literal("defaultAggregate")}).passthrough(),e.z.object({kind:e.z.literal("blank")}).passthrough(),e.z.object({kind:e.z.literal("labelOnly"),label:e.z.string().optional()}).passthrough(),e.z.object({kind:e.z.literal("customAggregate"),aggregate:c}).passthrough(),e.z.object({kind:e.z.literal("percentOfParent")}).passthrough(),e.z.object({kind:e.z.literal("percentOfGrandTotal")}).passthrough(),e.z.object({kind:e.z.literal("customExpression"),expressionId:e.z.string()}).passthrough()]);function w(i,t){return e.z.object(i).passthrough().superRefine((o,s)=>{for(const r of t)Object.prototype.hasOwnProperty.call(o,r)||s.addIssue({code:"custom",path:[r],message:`Required field "${r}" is missing.`})})}const V=e.z.object({kind:e.z.literal("semantic"),domainId:e.z.string(),datasetName:e.z.string(),datasetId:e.z.string().optional(),label:e.z.string().optional(),connectionId:e.z.string().optional()}).passthrough(),ce=e.z.object({kind:e.z.literal("physical"),connectionId:e.z.string(),connectionType:e.z.string().optional(),tableName:e.z.string(),databaseName:e.z.string().optional(),schemaName:e.z.string().optional(),label:e.z.string().optional(),dialect:E.optional()}).passthrough(),de=e.z.object({kind:e.z.literal("sql"),connectionId:e.z.string(),dialect:E.optional(),label:e.z.string().optional()}).passthrough(),b=e.z.union([V,ce,de]),z=e.z.object({name:e.z.string(),label:e.z.string().optional(),role:F.optional(),dataType:T.optional(),source:b.optional(),aggregate:c.optional()}).passthrough(),zo=e.z.object({kind:e.z.literal("field"),field:z,aggregate:c.optional()}).passthrough(),L=e.z.object({kind:e.z.literal("derived_field"),name:e.z.string(),label:e.z.string(),description:e.z.string().optional(),resultRole:F,dataType:T,computeStage:e.z.enum(["row","aggregate"]),expression:e.z.string(),expressionLanguage:e.z.literal("semaphor_sql_template").optional(),inputs:e.z.record(zo),defaultAggregate:c.optional(),aggregationBehavior:e.z.enum(["additive","non_additive","ratio_of_sums","weighted","pre_aggregated","snapshot"]).optional(),aggregationStrategy:e.z.enum(["default","symmetric_aggregate","aggregate_then_join","weighted"]).optional(),format:ue.optional(),tags:e.z.array(e.z.string()).optional()}).passthrough(),D=z.and(e.z.object({semanticAggregate:c.optional(),effectiveAggregate:c.optional(),aggregateSource:le.optional(),derivedField:L.optional()}).passthrough()),bo=V,yo=e.z.object({kind:e.z.literal("physical"),connectionId:e.z.string().optional(),connectionType:e.z.string().optional(),tableName:e.z.string(),databaseName:e.z.string().optional(),schemaName:e.z.string().optional(),label:e.z.string().optional(),dialect:E.optional()}).passthrough(),So=e.z.object({kind:e.z.literal("sql"),connectionId:e.z.string().optional(),dialect:E.optional(),label:e.z.string().optional()}).passthrough(),vo=e.z.union([bo,yo,So]),$o=e.z.object({key:e.z.string().optional(),name:e.z.string(),label:e.z.string().optional(),role:F.optional(),dataType:T.optional(),source:vo.optional(),aggregate:c.optional(),semanticAggregate:c.optional(),effectiveAggregate:c.optional(),aggregateSource:le.optional(),derivedField:e.z.never().optional()}).passthrough(),j=e.z.object({key:e.z.string(),name:e.z.string(),label:e.z.string(),role:F.optional(),dataType:T.optional(),aggregate:c.optional(),source:b.optional(),derivedField:L.optional()}).passthrough(),pe=e.z.object({code:e.z.string(),message:e.z.string().optional(),invalidField:e.z.string().optional(),fieldRole:e.z.enum(["measure","date","dimension","input","source","sql"]).optional(),validMeasureCandidates:e.z.array(e.z.string()).optional(),validDateCandidates:e.z.array(e.z.string()).optional(),validDimensionCandidates:e.z.array(e.z.string()).optional(),recommendedNextStep:e.z.string()}).passthrough(),C=e.z.object({code:e.z.string(),message:e.z.string(),path:e.z.string().optional(),fieldRole:e.z.enum(["measure","date","dimension","input","source","sql"]).optional(),repairHint:pe.optional()}).passthrough(),U=e.z.object({ok:e.z.boolean(),errors:e.z.array(C),warnings:e.z.array(C),repairHints:e.z.array(pe)}).passthrough(),wo=e.z.object({page:e.z.number(),pageSize:e.z.number(),pageCount:e.z.number(),totalCount:e.z.number(),hasNextPage:e.z.boolean(),hasPrevPage:e.z.boolean()}).passthrough(),A={intentId:e.z.string().optional(),queryPath:e.z.enum(["query_spec","sql","sql_python"]),warnings:e.z.array(e.z.string()).optional(),rowCount:e.z.number().optional(),rowLimitExceeded:e.z.boolean().optional(),limit:e.z.number().optional(),pagination:wo.optional()},me=e.z.object({...A,kind:e.z.literal("metric"),value:_,measures:e.z.record(_).optional(),comparison:e.z.object({kind:e.z.enum(["previous_period","previous_year","target"]),value:_.optional(),delta:e.z.union([e.z.number(),e.z.null()]).optional(),deltaPercent:e.z.union([e.z.number(),e.z.null()]).optional()}).passthrough().optional(),records:x.optional()}).passthrough(),ge=e.z.object({...A,kind:e.z.literal("records"),columns:e.z.array(j),records:x,totals:e.z.object({mode:e.z.literal("server"),scope:e.z.literal("filtered_result"),row:e.z.record(e.z.string(),e.z.unknown()),columns:e.z.array(j).optional()}).passthrough().optional()}).passthrough(),he=e.z.object({...A,kind:e.z.literal("inputOptions"),options:e.z.array(w({label:e.z.string(),value:e.z.unknown(),count:e.z.number().optional(),disambiguation:e.z.array(e.z.string()).optional()},["value"]))}).passthrough(),fe=e.z.object({...A,kind:e.z.literal("sql"),columns:e.z.array(j),records:x,sqlShape:e.z.object({statementType:e.z.string().optional(),explicitLimit:e.z.number().optional(),hasPythonCode:e.z.boolean().optional()}).passthrough().optional()}).passthrough(),Ao=e.z.object({enabled:e.z.boolean().optional(),position:e.z.enum(["before","after"]).optional(),label:e.z.string().optional()}).passthrough(),ee=e.z.object({id:e.z.enum(["rows","columns"]),levels:e.z.array(e.z.object({instanceId:e.z.string(),fieldKey:e.z.string(),label:e.z.string(),field:z,grain:ae.optional(),subtotal:Ao.optional()}).passthrough()),nodeIds:e.z.array(e.z.string())}).passthrough(),y=w({instanceId:e.z.string(),fieldKey:e.z.string(),value:e.z.unknown(),label:e.z.string()},["value"]),ko=e.z.union([e.z.object({kind:e.z.literal("label")}).passthrough(),e.z.object({kind:e.z.literal("field"),field:z,aggregate:c.optional()}).passthrough(),e.z.object({kind:e.z.literal("value"),valueId:e.z.string(),rowPath:e.z.array(y).optional(),columnPath:e.z.array(y).optional()}).passthrough()]),Ro=e.z.enum(["present","presentNull","missing","densified"]),_o=e.z.enum(["value","rowSubtotal","columnSubtotal","subtotalIntersection","rowGrandTotal","columnGrandTotal","matrixGrandTotal"]),Io=e.z.object({instanceId:e.z.string(),fieldKey:e.z.string(),field:z,role:e.z.enum(["row","column","measure","sort","filter"]),label:e.z.string().optional()}).passthrough(),jo=e.z.union([e.z.object({kind:e.z.literal("additive"),aggregate:c.optional()}).passthrough(),e.z.object({kind:e.z.literal("semiAdditive"),aggregate:c.optional(),grain:ae.optional()}).passthrough(),e.z.object({kind:e.z.literal("nonAdditive"),aggregate:c.optional()}).passthrough(),e.z.object({kind:e.z.literal("ratio"),numeratorMeasureInstanceId:e.z.string().optional(),denominatorMeasureInstanceId:e.z.string().optional()}).passthrough(),e.z.object({kind:e.z.literal("custom"),expressionId:e.z.string().optional()}).passthrough()]),Co=e.z.object({instanceId:e.z.string(),fieldKey:e.z.string(),label:e.z.string(),field:z,aggregate:c.optional(),format:ue.optional(),totalBehavior:fo.optional(),semantics:jo}).passthrough(),qo=e.z.object({id:e.z.string(),measureId:e.z.string(),aggregate:c.optional(),label:e.z.string().optional(),source:e.z.enum(["measureDefault","rowSubtotal","columnSubtotal","subtotalIntersection","rowGrandTotal","columnGrandTotal","matrixGrandTotal","custom"]),scope:e.z.object({rowLevelId:e.z.string().optional(),columnLevelId:e.z.string().optional(),rowNodeId:e.z.string().optional(),columnNodeId:e.z.string().optional()}).passthrough().optional()}).passthrough(),xo=e.z.object({kind:e.z.string(),label:e.z.string().optional(),payload:e.z.record(e.z.string(),e.z.unknown()).optional()}).passthrough(),Eo=w({id:e.z.string(),axis:e.z.enum(["row","column"]),path:e.z.array(y),level:e.z.number(),label:e.z.string(),value:e.z.unknown(),parentId:e.z.string().optional(),hasChildren:e.z.boolean(),isExpanded:e.z.boolean().optional(),isSubtotal:e.z.boolean().optional(),isGrandTotal:e.z.boolean().optional(),subtotalFunction:c.optional(),childCount:e.z.number().optional(),actions:e.z.array(xo).optional()},["value"]),Fo=e.z.object({rowHeaderLevels:e.z.array(e.z.object({id:e.z.string(),label:e.z.string(),fieldInstanceId:e.z.string()}).passthrough()),columnHeaderRows:e.z.array(e.z.object({id:e.z.string(),cells:e.z.array(e.z.object({id:e.z.string(),label:e.z.string(),role:e.z.enum(["rowHeader","columnHeader","measureHeader","subtotal","grandTotal"]),colSpan:e.z.number(),rowSpan:e.z.number(),columnPath:e.z.array(y),measureInstanceId:e.z.string().optional()}).passthrough())}).passthrough()),columns:e.z.array(e.z.object({id:e.z.string(),label:e.z.string(),columnNodeId:e.z.string().optional(),columnPath:e.z.array(y),measureInstanceId:e.z.string(),role:e.z.enum(["value","columnSubtotal","columnGrandTotal"])}).passthrough())}).passthrough(),To=w({rowId:e.z.string(),columnId:e.z.string().optional(),measureId:e.z.string(),value:e.z.unknown(),formattedValue:e.z.string().optional(),presence:Ro,role:_o,calculationId:e.z.string().optional()},["value"]),Do=e.z.object({rows:e.z.boolean().optional(),columns:e.z.boolean().optional(),grandTotal:e.z.union([e.z.boolean(),e.z.object({rows:e.z.boolean().optional(),columns:e.z.boolean().optional()}).passthrough()]).optional()}).passthrough(),No=w({id:e.z.string(),axis:e.z.enum(["row","column"]),targetInstanceId:e.z.string().optional(),direction:e.z.enum(["asc","desc"]),nulls:e.z.enum(["warehouseDefault","first","last"]).optional(),scope:e.z.enum(["global","withinParent"]).optional(),by:ko},["by"]),Oo=e.z.object({rowOffset:e.z.number().optional(),rowLimit:e.z.number().optional(),columnOffset:e.z.number().optional(),columnLimit:e.z.number().optional(),hasMoreRows:e.z.boolean().optional(),hasMoreColumns:e.z.boolean().optional()}).passthrough(),Mo=e.z.object({axis:e.z.enum(["row","column"]),path:e.z.array(y),depth:e.z.number().optional()}).passthrough(),Ko=e.z.object({rowLazyLoading:e.z.boolean().optional(),columnLazyLoading:e.z.boolean().optional(),expandableRowNodeIds:e.z.array(e.z.string()).optional(),expandableColumnNodeIds:e.z.array(e.z.string()).optional(),nextRequests:e.z.array(Mo).optional()}).passthrough(),Po=e.z.object({domains:e.z.record(e.z.object({min:e.z.number().optional(),max:e.z.number().optional()}).passthrough()).optional(),rules:e.z.array(e.z.record(e.z.string(),e.z.unknown())).optional()}).passthrough(),ze=e.z.object({...A,kind:e.z.literal("matrix"),schemaVersion:e.z.literal(1),shape:e.z.enum(["hierarchical","pivot"]),capabilities:e.z.array(e.z.string()),executionMetadata:e.z.record(e.z.string(),e.z.unknown()),fieldsById:e.z.record(e.z.string(),Io),measuresById:e.z.record(e.z.string(),Co),calculationsById:e.z.record(e.z.string(),qo).optional(),axes:e.z.object({rows:ee,columns:ee}).passthrough(),nodesById:e.z.record(e.z.string(),Eo),layout:Fo,cells:e.z.array(To),totals:Do,sort:e.z.array(No),formattingContext:Po,pageInfo:Oo.optional(),expansion:Ko.optional()}).passthrough(),be=e.z.union([me,ge,he,fe,ze]),ye=e.z.object({status:e.z.enum(["not_required","resolved","missing","ambiguous","fanout_risk","unknown"]),requiredSources:e.z.array(b).optional(),relationshipsUsed:e.z.array(e.z.string()).optional(),missingSources:e.z.array(e.z.string()).optional(),warnings:e.z.array(e.z.string()).optional(),message:e.z.string().optional(),recommendedNextStep:e.z.string().optional(),joinPlanSummary:e.z.object({baseSource:b.optional(),joinedSources:e.z.array(b).optional(),joinCount:e.z.number().optional()}).passthrough().optional(),fanoutRisk:e.z.object({status:e.z.enum(["none","warning","error","unknown"]),message:e.z.string().optional()}).passthrough().optional()}).passthrough(),oe=e.z.enum(["ambiguous_fields","empty_result","missing_grounded_fields","missing_relationship","no_grounded_query","partial_result","presentation_incomplete","query_validation_failed","unsafe_join"]),G=e.z.object({version:e.z.literal(1),status:e.z.enum(["answered","partial","blocked"]),summary:e.z.string(),answered:e.z.array(e.z.object({slotId:e.z.string().optional(),queryId:e.z.string().optional(),summary:e.z.string(),evidenceIds:e.z.array(e.z.string()).optional(),fieldsUsed:e.z.array(D).optional()}).passthrough()),blocked:e.z.array(e.z.object({slotId:e.z.string().optional(),queryId:e.z.string().optional(),reasonCode:oe,message:e.z.string(),missingFields:e.z.array(e.z.string()).optional(),availableFields:e.z.array(e.z.string()).optional(),ambiguousFields:e.z.array(e.z.string()).optional(),missingRelationships:e.z.array(e.z.string()).optional(),evidenceIds:e.z.array(e.z.string()).optional(),neededFromUser:e.z.array(e.z.string()).optional(),recommendedNextStep:e.z.string().optional()}).passthrough()),semanticModelRecommendations:e.z.array(e.z.object({reasonCode:oe,message:e.z.string(),recommendedNextStep:e.z.string().optional()}).passthrough()).optional()}).passthrough(),H=e.z.object({scope:e.z.literal("filtered_query"),measures:e.z.record(_)}).passthrough(),Q=e.z.object({answeredObligations:e.z.array(e.z.string()),missingObligations:e.z.array(e.z.string()),warnings:e.z.array(C).optional()}).passthrough(),Se=e.z.object({intentId:e.z.string().optional(),queryId:e.z.string().optional(),status:e.z.enum(["answered","partial","failed"]),resultShape:e.z.enum(["metric","records","inputOptions","sql","matrix","period_change","analysis"]).optional(),intent:e.z.unknown().optional(),compiledQuery:e.z.unknown().optional(),fieldsUsed:e.z.array(D).optional(),result:be.optional(),validation:U,coverage:Q.optional(),missingFields:e.z.array(e.z.string()).optional(),warnings:e.z.array(e.z.string()).optional(),relationshipDiagnostics:ye.optional(),diagnosticFeedback:G.optional(),population:H.optional(),metadata:e.z.record(e.z.string(),e.z.unknown()).optional()}).passthrough();function Bo(i){switch(i){case"boolean":return e.z.boolean().optional();case"compactExecutionFieldArray":return e.z.array($o).optional();case"coverage":return Q.optional();case"diagnosticFeedback":return G.optional();case"executionFieldArray":return e.z.array(D).optional();case"executionResult":return Se.optional();case"number":return e.z.number().finite().optional();case"population":return H.optional();case"record":return m.optional();case"recordArray":return x.optional();case"responseDetail":return e.z.enum(["compact","standard","debug"]).optional();case"string":return e.z.string().optional();case"stringArray":return e.z.array(e.z.string()).optional();case"unknown":return e.z.unknown().optional();case"unknownArray":return e.z.array(e.z.unknown()).optional();case"validationResult":return U.optional()}}const ve=Object.fromEntries(Object.entries(q).map(([i,t])=>[i,Bo(t)])),$e=e.z.object(ve).strict(),Y=e.z.object({sourceKey:e.z.string().optional(),kind:e.z.enum(["semantic","physical","sql"]).optional(),domainId:e.z.string().optional(),datasetName:e.z.string().optional(),datasetId:e.z.string().optional(),connectionId:e.z.string().optional(),tableName:e.z.string().optional(),label:e.z.string().optional()}).passthrough(),f=e.z.object({name:e.z.string(),label:e.z.string().optional(),role:e.z.enum(["dimension","measure","date","id","unknown"]).optional(),dataType:e.z.enum(["string","number","boolean","date","datetime","unknown"]).optional(),aggregate:c.optional(),sourceKey:e.z.string().optional(),source:Y.optional()}).passthrough(),we=e.z.object({id:e.z.string().optional(),builder:e.z.literal("semaphor.inputOptions"),source:Y.optional(),sourceKey:e.z.string().optional(),valueFieldRef:f,labelFieldRef:f,filterFieldRef:f.optional(),population:e.z.unknown().optional(),dependencies:e.z.unknown().optional(),limit:e.z.number().int().positive().optional(),spec:m.optional()}).passthrough(),Ae=e.z.object({appliesToViewIds:e.z.array(e.z.string()).optional(),viewId:e.z.string().optional(),fieldRef:f,relationshipHint:e.z.unknown().optional(),relationshipsUsed:e.z.array(m).optional()}).passthrough(),Vo=e.z.object({id:e.z.string(),label:e.z.string().optional(),type:e.z.string().optional(),serverSide:e.z.boolean().optional(),fieldRef:f.optional(),optionQuery:we.optional(),bindings:e.z.array(Ae).optional(),appliesToViewIds:e.z.array(e.z.string()),relationshipHint:e.z.unknown().optional(),relationshipsUsed:e.z.array(m).optional()}).passthrough(),Lo=e.z.object({builder:e.z.enum(["semaphor.metric","semaphor.records","semaphor.matrix","semaphor.analysis","semaphor.sql"]),spec:m,fallbackReason:m.optional()}).passthrough(),Uo=e.z.object({id:e.z.string(),title:e.z.string().optional(),purpose:e.z.string().optional(),sourcePresentation:e.z.object({sourceKeys:e.z.array(e.z.string()).optional(),sourceLabels:e.z.array(e.z.string()).optional()}).passthrough().optional(),visual:e.z.string().optional(),visualSpec:m.optional(),queryKind:e.z.enum(["metric","records","matrix","analysis","sql_fallback"]).optional(),sdkBuilder:e.z.enum(["semaphor.metric","semaphor.records","semaphor.matrix","semaphor.analysis","semaphor.sql"]).optional(),sdkSpec:Lo.optional(),fields:e.z.array(f).optional(),computation:m.optional(),uxExpectations:e.z.array(e.z.string()).optional(),validation:m.optional()}).passthrough(),Go=e.z.object({inputId:e.z.string(),label:e.z.string().optional(),type:e.z.string().optional(),serverSide:e.z.boolean().optional(),fieldRef:f.optional(),optionQuery:we.optional(),bindings:e.z.array(Ae),appliesToViewIds:e.z.array(e.z.string()),notAppliedToViewIds:e.z.array(e.z.string())}).passthrough(),Ho=e.z.object({schemaVersion:e.z.literal(I),title:e.z.string(),purpose:e.z.string().optional(),userGoal:e.z.string().optional(),nextStep:e.z.string().optional(),sources:e.z.array(Y),inputs:e.z.array(Vo),views:e.z.array(Uo),filterContracts:e.z.array(Go),implementationChecklist:e.z.object({schemaVersion:e.z.string().optional(),requiredDevtools:e.z.object({mountRootDevtools:e.z.boolean(),providerDebugBridge:e.z.string().optional(),panelPosition:e.z.string().optional(),forbidden:e.z.array(e.z.string()).optional()}).passthrough(),requiredInputOptions:e.z.array(m),filterScopeByInput:e.z.array(m),bindingsByView:e.z.record(e.z.string(),e.z.array(m)),validationCommands:e.z.array(e.z.string()),browserSmokeChecks:e.z.array(e.z.string())}).passthrough(),nextRequiredTool:e.z.object({name:e.z.string(),reason:e.z.string().optional()}).optional(),unsupportedInsights:e.z.array(e.z.object({title:e.z.string(),requestedQuestion:e.z.string(),reason:e.z.string(),suggestedModelingFix:e.z.string()}).passthrough()).optional(),assumptions:e.z.array(e.z.string()).optional(),validation:m.optional()}).passthrough().superRefine((i,t)=>{const o=P(i);for(const s of o.issues)t.addIssue({code:e.z.ZodIssueCode.custom,message:s})}),Qo=new Set(Object.keys(q));function Yo(){return Object.keys(q)}function ke(i){return Qo.has(i)}function Wo(i){if(!i||typeof i!="object"||Array.isArray(i))throw new Error("Semaphor analyze result must be an object.");const o=Object.keys(i).filter(s=>!ke(s));if(o.length)throw new Error(`Semaphor analyze result contains unsupported top-level field(s): ${o.join(", ")}.`);return $e.parse(i)}exports.SEMAPHOR_ANALYZE_RESULT_FIELD_CONTRACT=q;exports.SEMAPHOR_DATA_APP_CODEGEN_SUMMARY_SCHEMA_VERSION=I;exports.SEMAPHOR_DATA_APP_CODEGEN_SUMMARY_VALIDATOR_VERSION=_e;exports.getSemaphorAnalyzeResultFieldNames=Yo;exports.isSemaphorAnalyzeResultFieldName=ke;exports.isSemaphorDataAppCodegenSummary=Ne;exports.parseSemaphorAnalyzeResult=Wo;exports.semaphorAnalyticsCoverageSchema=Q;exports.semaphorAnalyticsDiagnosticFeedbackSchema=G;exports.semaphorAnalyticsExecutionResultSchema=Se;exports.semaphorAnalyticsPopulationSchema=H;exports.semaphorAnalyticsResultSchema=be;exports.semaphorAnalyticsValidationIssueSchema=C;exports.semaphorAnalyticsValidationResultSchema=U;exports.semaphorAnalyzeResultSchema=$e;exports.semaphorAnalyzeResultShape=ve;exports.semaphorDataAppCodegenSummarySchema=Ho;exports.semaphorDerivedFieldDefinitionSchema=L;exports.semaphorExecutionFieldRefSchema=D;exports.semaphorFieldRefSchema=z;exports.semaphorInputOptionsResultSchema=he;exports.semaphorMatrixResultSchema=ze;exports.semaphorMetricResultSchema=me;exports.semaphorPhysicalSourceRefSchema=ce;exports.semaphorRecordsResultSchema=ge;exports.semaphorRelationshipDiagnosticsSchema=ye;exports.semaphorResultColumnSchema=j;exports.semaphorSemanticSourceRefSchema=V;exports.semaphorSourceRefSchema=b;exports.semaphorSqlResultSchema=fe;exports.semaphorSqlSourceRefSchema=de;exports.validateSemaphorDataAppCodegenSummary=P;
|
|
@@ -1,9 +1,9 @@
|
|
|
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 me, l as _, m as R, n as fe, o as he, p as N } from "./index-
|
|
4
|
-
import { c as S, L as G, P as pe, a as ge, B as j, b as ve, d as V, e as be } from "./switch-
|
|
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 me, l as _, m as R, n as fe, o as he, p as N } from "./index-BdVymLVq.js";
|
|
4
|
+
import { c as S, L as G, P as pe, a as ge, B as j, b as ve, d as V, e as be } from "./switch-BiU6-YSY.js";
|
|
5
5
|
import "./x-CXDkqdur.js";
|
|
6
|
-
import "./analyze-result-contract-
|
|
6
|
+
import "./analyze-result-contract-CUO5QmqV.js";
|
|
7
7
|
function we(n = {}) {
|
|
8
8
|
var C, A, E, L;
|
|
9
9
|
const { authToken: c, tokenProps: e } = re(), p = n.enabled ?? !0, d = (c == null ? void 0 : c.accessToken) ?? null, u = (e == null ? void 0 : e.apiServiceUrl) ?? null, [I, k] = h(!1), [y, b] = h(!1), [m, g] = h(!1), [T, o] = h(null), [v, w] = h(null), P = v || {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),l=require("react"),t=require("./index-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),l=require("react"),t=require("./index-DH7hOGQl.js"),o=require("./switch-CYG3dY8r.js");require("./x-B6ghREd2.js");require("./analyze-result-contract-OqFtOCpZ.js");function G(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 i=await fetch(`${f}/v1/user-preferences/calendar`,{method:"GET",headers:{Authorization:`Bearer ${m}`}});if(!i.ok){const u=await i.json().catch(()=>({}));throw new Error(u.error||"Failed to fetch preferences")}const r=await i.json();S({tz:r.tz,weekStart:r.weekStart,source:r.source,isInherited:r.isInherited,userHasPrefs:r.userHasPrefs,inherited:r.inherited})}catch(i){const r=i instanceof Error?i.message:"Unknown error";c(r)}finally{C(!1)}}},[m,f,x]);l.useEffect(()=>{x&&p()},[x,p]);const T=l.useCallback(async i=>{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(i)});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 i=await fetch(`${f}/v1/user-preferences/calendar`,{method:"DELETE",headers:{Authorization:`Bearer ${m}`}});if(!i.ok){const u=await i.json().catch(()=>({}));throw new Error(u.error||"Failed to clear preferences")}const r=await i.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(i){const r=i instanceof Error?i.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 W(){try{const n=Intl;if(n.supportedValuesOf)return n.supportedValuesOf("timeZone")}catch{}return E.map(n=>n.value)}function _(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 q(n){const d=M.find(a=>a.value===n);return d?d.label:String(n)}function V({open:n,onOpenChange:d}){var D,U,F;const{preferences:a,isLoading:x,isSaving:m,isClearing:f,updatePreferences:L,clearPreferences:C}=G({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(()=>W(),[]),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",i=a.inherited?q(a.inherited.weekStart):"Monday",r=_((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:o.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 ",i]})]})]}),e.jsxs("label",{htmlFor:"mode-custom",className:o.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:o.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(o.Label,{className:H,children:"Timezone"}),e.jsxs(o.Popover,{open:T,onOpenChange:w,modal:!0,children:[e.jsx(o.PopoverTrigger,{asChild:!0,children:e.jsxs(o.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(t.ChevronsUpDown,{className:"ml-2 h-3.5 w-3.5 shrink-0 opacity-50"})]})}),e.jsx(o.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(o.Check,{className:o.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(o.Check,{className:o.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(o.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:o.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(o.Button,{variant:"outline",size:"xs",onClick:$,disabled:I,children:"Cancel"}),e.jsx(o.Button,{size:"xs",onClick:u,disabled:B,children:I?e.jsxs(e.Fragment,{children:[e.jsx(o.LoaderCircle,{className:"h-3.5 w-3.5 animate-spin"}),"Saving…"]}):"Save"})]})]})})}exports.CalendarPreferencesDialog=V;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as t, jsxs as s, Fragment as le } from "react/jsx-runtime";
|
|
2
2
|
import bo, { useState as S, useEffect as fe, useMemo as O, useContext as xo, useRef as Me, useCallback as ye } from "react";
|
|
3
|
-
import { b as rt, c as at, e as st, aF as ka, bs as yo, bO as vo, bP as No, ar as Rt, bC as Sa, aW as gt, J as wo, A as Co, bQ as ko, ah as Jt, ak as Qt, al as Xt, am as Yt, an as Zt, ao as en, ap as tn, aq as Yn, aV as nn, p as be, bR as So, bS as Do, bT as In, bD as rn, bE as an, bU as Zn, bF as sn, bG as De, av as Eo, b8 as jt, bV as Da, br as $n, d as bt, f as xt, bW as Ao, o as Ea, aE as Io, aT as Aa, bX as To, aU as _n, y as Lo, ae as Fo, ax as Ro, u as Pt, a0 as mt, ab as er, a7 as Ia, a8 as tr, a1 as Ta, a6 as Po, ad as Bo, bJ as Mo, bY as Vo, b4 as Oo, a9 as qr, x as zt, a3 as Uo, bZ as $o, b_ as _o, b$ as jo, c0 as zo, c1 as Ko, c2 as qo, c3 as Ho, c4 as Go, c5 as La, c6 as Wo, c7 as Jo, c8 as Qo, c9 as Xo, ca as Yo, ay as yt, cb as Zo, bH as Fa, cc as ei, cd as ti, ce as ni, cf as ri, cg as ai, ch as si, ci as oi, cj as Ra, ck as ii, cl as li, cm as Pa, cn as Ba, co as Ma, cp as di, cq as ci, be as Va, bp as ui, bm as mi, cr as hi, aw as Oa, cs as pi, ct as fi, cu as gi, cv as bi, cw as jn, cx as xi, cy as yi, cz as Ua, cA as nr, cB as vi, cC as Ni, cD as $a, cE as wi, cF as Ci, cG as ki, cH as _a, as as Si, cI as Di, cJ as Ei, cK as Ai, cL as Ii, cM as Ti, cN as Li, cO as Fi } from "./index-
|
|
4
|
-
import { B as Z, L as Lt, Z as zn, e as se, N as ja, d as je, c as v, M as za, E as vt, u as Q, A as Nt, aF as Hr, a6 as Ka, F as qa, S as rr, P as $e, a as ot, b as it, aG as Ri, aH as Pi, aD as Ha, aI as Ga, _ as Ye, $ as Ze, a0 as et, a1 as tt, a2 as xe, aJ as Wa, aK as Ja, X as nt, T as Bi, G as Mi, H as Gr, aL as Vi } from "./switch-
|
|
3
|
+
import { b as rt, c as at, e as st, aF as ka, bs as yo, bO as vo, bP as No, ar as Rt, bC as Sa, aW as gt, J as wo, A as Co, bQ as ko, ah as Jt, ak as Qt, al as Xt, am as Yt, an as Zt, ao as en, ap as tn, aq as Yn, aV as nn, p as be, bR as So, bS as Do, bT as In, bD as rn, bE as an, bU as Zn, bF as sn, bG as De, av as Eo, b8 as jt, bV as Da, br as $n, d as bt, f as xt, bW as Ao, o as Ea, aE as Io, aT as Aa, bX as To, aU as _n, y as Lo, ae as Fo, ax as Ro, u as Pt, a0 as mt, ab as er, a7 as Ia, a8 as tr, a1 as Ta, a6 as Po, ad as Bo, bJ as Mo, bY as Vo, b4 as Oo, a9 as qr, x as zt, a3 as Uo, bZ as $o, b_ as _o, b$ as jo, c0 as zo, c1 as Ko, c2 as qo, c3 as Ho, c4 as Go, c5 as La, c6 as Wo, c7 as Jo, c8 as Qo, c9 as Xo, ca as Yo, ay as yt, cb as Zo, bH as Fa, cc as ei, cd as ti, ce as ni, cf as ri, cg as ai, ch as si, ci as oi, cj as Ra, ck as ii, cl as li, cm as Pa, cn as Ba, co as Ma, cp as di, cq as ci, be as Va, bp as ui, bm as mi, cr as hi, aw as Oa, cs as pi, ct as fi, cu as gi, cv as bi, cw as jn, cx as xi, cy as yi, cz as Ua, cA as nr, cB as vi, cC as Ni, cD as $a, cE as wi, cF as Ci, cG as ki, cH as _a, as as Si, cI as Di, cJ as Ei, cK as Ai, cL as Ii, cM as Ti, cN as Li, cO as Fi } from "./index-BdVymLVq.js";
|
|
4
|
+
import { B as Z, L as Lt, Z as zn, e as se, N as ja, d as je, c as v, M as za, E as vt, u as Q, A as Nt, aF as Hr, a6 as Ka, F as qa, S as rr, P as $e, a as ot, b as it, aG as Ri, aH as Pi, aD as Ha, aI as Ga, _ as Ye, $ as Ze, a0 as et, a1 as tt, a2 as xe, aJ as Wa, aK as Ja, X as nt, T as Bi, G as Mi, H as Gr, aL as Vi } from "./switch-BiU6-YSY.js";
|
|
5
5
|
import { L as ar } from "./layout-grid-CiubineE.js";
|
|
6
6
|
import { c as Pe, X as Ae, C as Ge } from "./x-CXDkqdur.js";
|
|
7
|
-
import { u as sr, V as Oi, E as Wr, a as Jr, b as Ui, c as $i, L as _i, d as ji, e as Qa, C as Xa, f as zi, R as Ki, S as qi } from "./use-create-flow-overlay-state-
|
|
8
|
-
import "./analyze-result-contract-
|
|
7
|
+
import { u as sr, V as Oi, E as Wr, a as Jr, b as Ui, c as $i, L as _i, d as ji, e as Qa, C as Xa, f as zi, R as Ki, S as qi } from "./use-create-flow-overlay-state-CwUkhLBL.js";
|
|
8
|
+
import "./analyze-result-contract-CUO5QmqV.js";
|
|
9
9
|
import { S as Hi, M as Gi, a as Bt, C as Kn } from "./search-BHsQIWBV.js";
|
|
10
10
|
import { l as Qr } from "./date-formatter-CzcPZx39.js";
|
|
11
11
|
import "./index-CJdxSyQq.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),h=require("react"),i=require("./index-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),h=require("react"),i=require("./index-DH7hOGQl.js"),o=require("./switch-CYG3dY8r.js"),ss=require("./layout-grid-C0OI-MRn.js"),K=require("./x-B6ghREd2.js"),me=require("./use-create-flow-overlay-state-qe7DHQKr.js");require("./analyze-result-contract-OqFtOCpZ.js");const Ae=require("./search-DNCejM7Z.js"),Gs=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,16 +1,16 @@
|
|
|
1
1
|
import { jsx as e, jsxs as o, Fragment as R } from "react/jsx-runtime";
|
|
2
|
-
import { u as D, B as O, av as dt, A as Wt, L as jr, Z as Kr, c as he, aw as Qr, ax as Wr, ay as rt, az as fe, aA as ct, aB as Jt, e as Ge, aC as Yt, aD as Jr, E as _t, Q as Yr, V as Xr, W as Zr, Y as en, i as tn, aE as rn } from "./switch-
|
|
3
|
-
import { b5 as nn, u as G, b as Xt, b6 as an, ar as j, c as Zt, d as sn, e as nt, f as at, o as on, b7 as pe, b8 as $e, b9 as dn, ba as Rt, bb as er, bc as tr, bd as cn, be as lt, bf as ln, bg as un, bh as mn, bi as pn, bj as hn, bk as fn, aC as ge, bl as be, p as E, bm as gn, bn as rr, aW as ut, bo as bn, bp as xn, bq as nr, br as ar, bs as vn, bt as yn, bu as wn, z as Nn, y as Te, K as Sn, A as Xe, bv as Dn, bw as Cn, bx as kn, $ as En, by as Ln, I as Ut, bz as An, bA as In, bB as Mn, bC as Pn, bD as Tt, bE as Ft, bF as $t, bG as T, bH as On, bI as _n, bJ as Rn, av as Gt, bK as Un, bL as Tn, bM as Fn, J as $n, bN as Gn, ah as Bn, ak as zn, al as qn, am as Hn, an as Vn, ao as jn, ap as Kn, aq as Bt, w as st } from "./index-
|
|
2
|
+
import { u as D, B as O, av as dt, A as Wt, L as jr, Z as Kr, c as he, aw as Qr, ax as Wr, ay as rt, az as fe, aA as ct, aB as Jt, e as Ge, aC as Yt, aD as Jr, E as _t, Q as Yr, V as Xr, W as Zr, Y as en, i as tn, aE as rn } from "./switch-BiU6-YSY.js";
|
|
3
|
+
import { b5 as nn, u as G, b as Xt, b6 as an, ar as j, c as Zt, d as sn, e as nt, f as at, o as on, b7 as pe, b8 as $e, b9 as dn, ba as Rt, bb as er, bc as tr, bd as cn, be as lt, bf as ln, bg as un, bh as mn, bi as pn, bj as hn, bk as fn, aC as ge, bl as be, p as E, bm as gn, bn as rr, aW as ut, bo as bn, bp as xn, bq as nr, br as ar, bs as vn, bt as yn, bu as wn, z as Nn, y as Te, K as Sn, A as Xe, bv as Dn, bw as Cn, bx as kn, $ as En, by as Ln, I as Ut, bz as An, bA as In, bB as Mn, bC as Pn, bD as Tt, bE as Ft, bF as $t, bG as T, bH as On, bI as _n, bJ as Rn, av as Gt, bK as Un, bL as Tn, bM as Fn, J as $n, bN as Gn, ah as Bn, ak as zn, al as qn, am as Hn, an as Vn, ao as jn, ap as Kn, aq as Bt, w as st } from "./index-BdVymLVq.js";
|
|
4
4
|
import { c as Q, X as sr, C as Qn } from "./x-CXDkqdur.js";
|
|
5
|
-
import "./analyze-result-contract-
|
|
5
|
+
import "./analyze-result-contract-CUO5QmqV.js";
|
|
6
6
|
import * as I from "react";
|
|
7
7
|
import or, { useState as w, useMemo as K, useEffect as Be, useRef as zt, useLayoutEffect as Wn, useCallback as Jn } from "react";
|
|
8
8
|
import "./index-CJdxSyQq.js";
|
|
9
9
|
import { createPortal as Yn } from "react-dom";
|
|
10
|
-
import { O as Xn, c as Zn, u as ea, A as ta, a as ra, M as na, f as aa, V as sa, P as oa, N as ia, U as da } from "./dashboard-briefing-launcher-
|
|
10
|
+
import { O as Xn, c as Zn, u as ea, A as ta, a as ra, M as na, f as aa, V as sa, P as oa, N as ia, U as da } from "./dashboard-briefing-launcher-APVyc9al.js";
|
|
11
11
|
import { S as ca, C as la } from "./search-BHsQIWBV.js";
|
|
12
12
|
import { d as ir } from "./index-DFOb_6HB.js";
|
|
13
|
-
import { C as ua } from "./calendar-preferences-dialog-
|
|
13
|
+
import { C as ua } from "./calendar-preferences-dialog-9SvYDLp6.js";
|
|
14
14
|
import { u as ma } from "./use-debounced-dirty-check-BwAbnX_5.js";
|
|
15
15
|
import { s as Ze } from "./normalize-dashboard-for-dirty-check-5KpZN8xr.js";
|
|
16
16
|
import { S as qt } from "./save-DgMfP0j8.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),p=require("./switch-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),p=require("./switch-CYG3dY8r.js"),s=require("./index-DH7hOGQl.js"),R=require("./x-B6ghREd2.js");require("./analyze-result-contract-OqFtOCpZ.js");const v=require("react");require("./index-DRlMUglg.js");const ss=require("react-dom"),P=require("./dashboard-briefing-launcher-D3R4R7ww.js"),ft=require("./search-DNCejM7Z.js"),gt=require("./index-D7KJindZ.js"),rs=require("./calendar-preferences-dialog-B3fnFtJt.js"),ns=require("./use-debounced-dirty-check-XHSwAefL.js"),Ue=require("./normalize-dashboard-for-dirty-check-BXRUMVb2.js"),lt=require("./save-C__QggEE.js"),as=require("./palette-C4KTXOug.js"),os=require("./braces-D2tStQjF.js");function is(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 L=is(v);/**
|
|
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 { jsxs as d, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo as m, useState as f, useRef as b, useEffect as p } from "react";
|
|
3
3
|
import { X as S } from "./x-CXDkqdur.js";
|
|
4
|
-
import { u as o, c as N, B as D, C as J } from "./switch-
|
|
5
|
-
import "./analyze-result-contract-
|
|
6
|
-
import "./index-
|
|
4
|
+
import { u as o, c as N, B as D, C as J } from "./switch-BiU6-YSY.js";
|
|
5
|
+
import "./analyze-result-contract-CUO5QmqV.js";
|
|
6
|
+
import "./index-BdVymLVq.js";
|
|
7
7
|
import "./index-CJdxSyQq.js";
|
|
8
8
|
import "react-dom";
|
|
9
9
|
function j() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),o=require("react"),b=require("./x-B6ghREd2.js"),s=require("./switch-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),o=require("react"),b=require("./x-B6ghREd2.js"),s=require("./switch-CYG3dY8r.js");require("./analyze-result-contract-OqFtOCpZ.js");require("./index-DH7hOGQl.js");require("./index-DRlMUglg.js");require("react-dom");function S(){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),r=o.useMemo(()=>t?JSON.stringify(t,null,2):"",[t]),[l,i]=o.useState(r),n=o.useRef(r);return o.useEffect(()=>{r!==n.current&&(i(r),n.current=r)},[r]),a.jsxs("div",{className:s.cn("relative p-2",{hidden:!u}),children:[a.jsxs(s.Button,{variant:"secondary",size:"sm",className:"absolute right-2 top-2 z-10 h-8",onClick:()=>h(!1),children:[a.jsx(b.X,{className:"mr-2 h-4 w-4"}),"Close"]}),a.jsx("div",{className:"h-[550px] overflow-hidden",children:a.jsx(s.CodeEditor,{value:l,onValueChange:e=>{i(e);try{const d=JSON.parse(e);n.current=JSON.stringify(d,null,2),c(d)}catch{}},language:"json"})})]})}exports.default=S;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as e, jsxs as a, Fragment as De } from "react/jsx-runtime";
|
|
2
2
|
import * as Sc from "react";
|
|
3
3
|
import ea, { useState as K, useEffect as Se, useRef as Me, useCallback as Ee, useMemo as de, useContext as wr, Suspense as Tc } from "react";
|
|
4
|
-
import { cP as Ei, b as Aa, c as Oa, d as Ma, e as Fa, f as Ya, o as hs, aQ as kt, aV as wt, cQ as Ai, cR as is, p as Ze, cS as Oi, cC as os, ay as In, ar as vt, bH as Sr, aw as nn, aW as qn, aR as Nt, cT as ps, cG as Tr, cU as kc, cV as Mi, cW as Dc, aC as Ns, cX as Ic, cY as Ec, cZ as mr, c_ as cs, u as xa, z as Fi, c$ as Ac, d0 as Oc, d1 as Ri, d2 as Li, d3 as Mc, d4 as Fc, d5 as Rc, aK as Va, aL as ba, aM as ya, aN as jn, aO as ta, aP as Qa, d6 as hr, bz as Sn, d7 as Pi, af as na, ag as ft, d8 as Lc, d9 as Vi, c5 as ma, cH as Bi, da as kr, db as _i, dc as Pc, dd as Vc, de as Bc, C as zi, df as _c, dg as zc, dh as $c, di as qc, dj as jc, dk as Kc, dl as zs, dm as Uc, dn as zl, dp as Gc, dq as $l, dr as Hc, ds as Wc, bD as sn, bE as rn, bF as ln, bG as ct, dt as En, az as $i, du as Qc, a_ as Qt, b0 as Jt, dv as Dr, be as Ir, ae as Er, dw as Jc, dx as Yc, dy as Ar, dz as Xc, dA as qi, dB as ji, dC as Ki, dD as Ht, dE as Zc, dF as ed, dG as td, dH as ad, dI as Ui, dJ as Gi, X as Hi, dK as Wi, dL as nd, dM as sd, dN as rd, dO as An, M as ld, dP as id, dQ as od, dR as ql, dS as cd, E as Cs, t as Or, dT as dd, dU as Mr, b6 as ud, dV as jl, I as gt, dW as md, dX as hd, dY as Qi, dZ as Ji, d_ as pd, d$ as Fr, e0 as Rr, e1 as Yi, e2 as Xi, e3 as Kl, e4 as Kn, e5 as fd, e6 as gd, e7 as xd, e8 as bd, e9 as yd, ea as fs, eb as vd, ec as Nd, ed as Zi, ee as eo, ef as Cd, eg as wd, bR as Sd, eh as Td, ei as to, ej as kd, ek as Dd, bS as ws, el as Ss, b7 as On, b8 as Wt, em as oa, en as Ra, eo as La, ep as ha, eq as Xa, er as Id, es as Ed, et as Ad, eu as Od, ev as Md, ew as Fd, ex as Rd, ey as Ld, ez as Ul, a$ as aa, eA as Pd, eB as Vd, eC as Bd, eD as _d, eE as ao, eF as zd, eG as $d, eH as qd, eI as jd, eJ as Kd, eK as pr, eL as Ud, eM as Gd, eN as fr, eO as Hd, eP as Wd, eQ as Qd, eR as Jd, eS as Gl, ax as gr, at as pa, ah as Yd, ai as Xd, ak as Zd, al as eu, am as tu, an as au, ao as nu, ap as su, aq as ru, bs as lu, eT as iu, eU as Za, eV as en, eW as tn, bI as Lr, bJ as ou, av as cu, eX as du, eY as uu, eZ as mu, e_ as Ts, e$ as st, f0 as rt, f1 as lt, cE as hu, cF as pu, f2 as no, f3 as so, cD as fu, f4 as gu, f5 as xu, f6 as bu, f7 as yu, f8 as vu, f9 as Nu, fa as Cu, fb as wu, fc as Su, fd as Tu, fe as ku, ff as Du, fg as Ta, fh as vn, fi as Ja, fj as Iu, fk as Hl, fl as Eu, fm as Au, fn as $s, fo as Wl, fp as Ou, fq as Mu, fr as Fu, fs as Ru, ft as Lu, R as Pr, g as Mn, fu as qs, fv as ro, aA as Pu, fw as gs, fx as Vu, fy as lo, fz as Bu, fA as io, co as _u, fB as zu, a4 as $u, fC as ns, fD as qu, fE as Ql, fF as ju, fG as Ku, fH as Jl, fI as Uu, fJ as Gu, fK as Hu, fL as Wu, fM as Qu, aj as oo, fN as Ju, fO as Yu, fP as Xu, fQ as Zu, fR as em, fS as tm, fT as am, fU as nm, fV as sm, fW as co, fX as rm, fY as ks, c6 as Ds, fZ as uo, f_ as lm, f$ as im, g0 as mo, g1 as om, g2 as cm, g3 as Is, g4 as js, g5 as dm, g6 as um, g7 as mm, g8 as hm, g9 as pm, ga as Yl, gb as an, gc as ho, gd as fm, bU as gm, ge as po, gf as fo, gg as ds, gh as go, gi as xo, gj as Xl, gk as xm, gl as bm, gm as us, gn as ym, go as Vr, gp as vm, gq as xs, h as Fn, i as Rn, k as Ln, j as Pn, l as Vn, m as Bn, gr as Nm, gs as _n, gt as ca, gu as xr, gv as br, gw as zn, gx as bo, gy as Cm, gz as Ks, gA as Us, gB as wm, gC as Gs, gD as Sm, gE as Zl, gF as ei, cJ as Tm, gG as km, cK as Dm, cM as Im, cN as Em, y as Am, gH as Om, gI as Mm, gJ as Fm, bK as Rm, bL as Lm, bM as Pm, br as Es, cA as As, gK as ti, gL as yo, cc as Hs, gM as Vm, gN as Bm, gO as _m, F as zm, aT as $m, gP as qm, gQ as jm, aU as Km } from "./index-
|
|
4
|
+
import { cP as Ei, b as Aa, c as Oa, d as Ma, e as Fa, f as Ya, o as hs, aQ as kt, aV as wt, cQ as Ai, cR as is, p as Ze, cS as Oi, cC as os, ay as In, ar as vt, bH as Sr, aw as nn, aW as qn, aR as Nt, cT as ps, cG as Tr, cU as kc, cV as Mi, cW as Dc, aC as Ns, cX as Ic, cY as Ec, cZ as mr, c_ as cs, u as xa, z as Fi, c$ as Ac, d0 as Oc, d1 as Ri, d2 as Li, d3 as Mc, d4 as Fc, d5 as Rc, aK as Va, aL as ba, aM as ya, aN as jn, aO as ta, aP as Qa, d6 as hr, bz as Sn, d7 as Pi, af as na, ag as ft, d8 as Lc, d9 as Vi, c5 as ma, cH as Bi, da as kr, db as _i, dc as Pc, dd as Vc, de as Bc, C as zi, df as _c, dg as zc, dh as $c, di as qc, dj as jc, dk as Kc, dl as zs, dm as Uc, dn as zl, dp as Gc, dq as $l, dr as Hc, ds as Wc, bD as sn, bE as rn, bF as ln, bG as ct, dt as En, az as $i, du as Qc, a_ as Qt, b0 as Jt, dv as Dr, be as Ir, ae as Er, dw as Jc, dx as Yc, dy as Ar, dz as Xc, dA as qi, dB as ji, dC as Ki, dD as Ht, dE as Zc, dF as ed, dG as td, dH as ad, dI as Ui, dJ as Gi, X as Hi, dK as Wi, dL as nd, dM as sd, dN as rd, dO as An, M as ld, dP as id, dQ as od, dR as ql, dS as cd, E as Cs, t as Or, dT as dd, dU as Mr, b6 as ud, dV as jl, I as gt, dW as md, dX as hd, dY as Qi, dZ as Ji, d_ as pd, d$ as Fr, e0 as Rr, e1 as Yi, e2 as Xi, e3 as Kl, e4 as Kn, e5 as fd, e6 as gd, e7 as xd, e8 as bd, e9 as yd, ea as fs, eb as vd, ec as Nd, ed as Zi, ee as eo, ef as Cd, eg as wd, bR as Sd, eh as Td, ei as to, ej as kd, ek as Dd, bS as ws, el as Ss, b7 as On, b8 as Wt, em as oa, en as Ra, eo as La, ep as ha, eq as Xa, er as Id, es as Ed, et as Ad, eu as Od, ev as Md, ew as Fd, ex as Rd, ey as Ld, ez as Ul, a$ as aa, eA as Pd, eB as Vd, eC as Bd, eD as _d, eE as ao, eF as zd, eG as $d, eH as qd, eI as jd, eJ as Kd, eK as pr, eL as Ud, eM as Gd, eN as fr, eO as Hd, eP as Wd, eQ as Qd, eR as Jd, eS as Gl, ax as gr, at as pa, ah as Yd, ai as Xd, ak as Zd, al as eu, am as tu, an as au, ao as nu, ap as su, aq as ru, bs as lu, eT as iu, eU as Za, eV as en, eW as tn, bI as Lr, bJ as ou, av as cu, eX as du, eY as uu, eZ as mu, e_ as Ts, e$ as st, f0 as rt, f1 as lt, cE as hu, cF as pu, f2 as no, f3 as so, cD as fu, f4 as gu, f5 as xu, f6 as bu, f7 as yu, f8 as vu, f9 as Nu, fa as Cu, fb as wu, fc as Su, fd as Tu, fe as ku, ff as Du, fg as Ta, fh as vn, fi as Ja, fj as Iu, fk as Hl, fl as Eu, fm as Au, fn as $s, fo as Wl, fp as Ou, fq as Mu, fr as Fu, fs as Ru, ft as Lu, R as Pr, g as Mn, fu as qs, fv as ro, aA as Pu, fw as gs, fx as Vu, fy as lo, fz as Bu, fA as io, co as _u, fB as zu, a4 as $u, fC as ns, fD as qu, fE as Ql, fF as ju, fG as Ku, fH as Jl, fI as Uu, fJ as Gu, fK as Hu, fL as Wu, fM as Qu, aj as oo, fN as Ju, fO as Yu, fP as Xu, fQ as Zu, fR as em, fS as tm, fT as am, fU as nm, fV as sm, fW as co, fX as rm, fY as ks, c6 as Ds, fZ as uo, f_ as lm, f$ as im, g0 as mo, g1 as om, g2 as cm, g3 as Is, g4 as js, g5 as dm, g6 as um, g7 as mm, g8 as hm, g9 as pm, ga as Yl, gb as an, gc as ho, gd as fm, bU as gm, ge as po, gf as fo, gg as ds, gh as go, gi as xo, gj as Xl, gk as xm, gl as bm, gm as us, gn as ym, go as Vr, gp as vm, gq as xs, h as Fn, i as Rn, k as Ln, j as Pn, l as Vn, m as Bn, gr as Nm, gs as _n, gt as ca, gu as xr, gv as br, gw as zn, gx as bo, gy as Cm, gz as Ks, gA as Us, gB as wm, gC as Gs, gD as Sm, gE as Zl, gF as ei, cJ as Tm, gG as km, cK as Dm, cM as Im, cN as Em, y as Am, gH as Om, gI as Mm, gJ as Fm, bK as Rm, bL as Lm, bM as Pm, br as Es, cA as As, gK as ti, gL as yo, cc as Hs, gM as Vm, gN as Bm, gO as _m, F as zm, aT as $m, gP as qm, gQ as jm, aU as Km } from "./index-BdVymLVq.js";
|
|
5
5
|
import { c as $e, C as At, X as et } from "./x-CXDkqdur.js";
|
|
6
|
-
import { F as Ne, B as Z, O as bs, I as Un, c as J, aM as Um, L as $, _ as ae, $ as ne, a0 as se, a1 as re, a2 as j, E as O, Y as Dt, Q as Vt, V as It, W as Et, P as Ot, a as Rt, b as Mt, C as fa, aN as Gm, aE as Tn, aO as Br, aP as vo, aB as _r, az as Hm, Z as Fe, aQ as Wm, e as ga, u as Ie, d as va, aR as zr, aS as Gn, X as Xt, A as No, T as Hn, G as Wn, H as Yt, J as Ia, N as Os, S as Pa, h as Qm, aF as Ea, aT as Jm, aU as Ym, aV as Co, ae as Xm, aH as Zm, aW as eh, aX as th, aY as ai, aZ as ah, a_ as nh, a$ as sh, b0 as rh, aL as lh, b1 as ih, b2 as ni, b3 as oh, b4 as si, R as yr, b5 as on, b6 as ch, a3 as Je, b7 as dh, b8 as $r, b9 as $n, ba as ys, bb as da, bc as ss, bd as ri, be as uh, bf as Pt, bg as mh, M as wo, bh as nt, bi as So, s as li, bj as hh, bk as ph, bl as fh, bm as gh, bn as xh, bo as bh, bp as yh, bq as vh, br as Nh, bs as Ch, bt as wh, bu as Sh, bv as ii, bw as Th, bx as kh, by as Dh, K as Ms } from "./switch-
|
|
7
|
-
import "./analyze-result-contract-
|
|
6
|
+
import { F as Ne, B as Z, O as bs, I as Un, c as J, aM as Um, L as $, _ as ae, $ as ne, a0 as se, a1 as re, a2 as j, E as O, Y as Dt, Q as Vt, V as It, W as Et, P as Ot, a as Rt, b as Mt, C as fa, aN as Gm, aE as Tn, aO as Br, aP as vo, aB as _r, az as Hm, Z as Fe, aQ as Wm, e as ga, u as Ie, d as va, aR as zr, aS as Gn, X as Xt, A as No, T as Hn, G as Wn, H as Yt, J as Ia, N as Os, S as Pa, h as Qm, aF as Ea, aT as Jm, aU as Ym, aV as Co, ae as Xm, aH as Zm, aW as eh, aX as th, aY as ai, aZ as ah, a_ as nh, a$ as sh, b0 as rh, aL as lh, b1 as ih, b2 as ni, b3 as oh, b4 as si, R as yr, b5 as on, b6 as ch, a3 as Je, b7 as dh, b8 as $r, b9 as $n, ba as ys, bb as da, bc as ss, bd as ri, be as uh, bf as Pt, bg as mh, M as wo, bh as nt, bi as So, s as li, bj as hh, bk as ph, bl as fh, bm as gh, bn as xh, bo as bh, bp as yh, bq as vh, br as Nh, bs as Ch, bt as wh, bu as Sh, bv as ii, bw as Th, bx as kh, by as Dh, K as Ms } from "./switch-BiU6-YSY.js";
|
|
7
|
+
import "./analyze-result-contract-CUO5QmqV.js";
|
|
8
8
|
import { C as $t, E as vr, S as Fs, M as Ih, a as Eh } from "./search-BHsQIWBV.js";
|
|
9
|
-
import { f as Ah, g as xt, r as To, h as Qn, S as Oh, i as ko, V as Do, e as Mh, C as Fh, R as Rs } from "./use-create-flow-overlay-state-
|
|
9
|
+
import { f as Ah, g as xt, r as To, h as Qn, S as Oh, i as ko, V as Do, e as Mh, C as Fh, R as Rs } from "./use-create-flow-overlay-state-CwUkhLBL.js";
|
|
10
10
|
import { createPortal as Rh } from "react-dom";
|
|
11
11
|
import "./index-CJdxSyQq.js";
|
|
12
12
|
import { P as Lh } from "./palette-Cp1hqZtm.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),v=require("react"),n=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),v=require("react"),n=require("./index-DH7hOGQl.js"),re=require("./x-B6ghREd2.js"),t=require("./switch-CYG3dY8r.js");require("./analyze-result-contract-OqFtOCpZ.js");const ze=require("./search-DNCejM7Z.js"),Ne=require("./use-create-flow-overlay-state-qe7DHQKr.js"),Ua=require("react-dom");require("./index-DRlMUglg.js");const Ga=require("./palette-C4KTXOug.js"),Ha=require("./common-types-C73-Ud1-.js");function Qa(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 Wa=Qa(v);/**
|
|
2
2
|
* @license lucide-react v0.453.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -19,9 +19,9 @@ import * as J from "react";
|
|
|
19
19
|
import ae, { createContext as Sr, useContext as Fn, useState as ee, useMemo as Q, useEffect as we, useCallback as pe, useRef as Pe, forwardRef as Ii, isValidElement as sg, memo as ds, useLayoutEffect as la, Component as LY, createElement as Lo, Suspense as rc, cloneElement as kO, Fragment as Qx, useId as Ic, useSyncExternalStore as _S, useTransition as Ppe, useReducer as Fpe, Children as Ope, startTransition as $Y, useImperativeHandle as zY, lazy as Vk } from "react";
|
|
20
20
|
import * as PA from "react-dom";
|
|
21
21
|
import Jx, { flushSync as au, createPortal as Bm, unstable_batchedUpdates as T1 } from "react-dom";
|
|
22
|
-
import { bz as su, bA as ew, bB as FA, A as Sn, bC as Bk, bD as VY, u as te, bE as Lpe, bh as Gn, b0 as Pa, bF as Yz, bG as $pe, bH as zpe, bI as Vpe, aC as Bpe, bJ as jpe, p as Is, c as X, bK as Tu, bL as _l, bM as en, bN as lo, bO as IO, bP as Hs, bQ as TO, bR as $n, bS as jk, bT as Hk, bU as BY, bV as jY, bW as HY, bX as UY, bY as EO, bZ as DO, b_ as qY, b$ as WY, c0 as YY, c1 as Hpe, ax as MO, c2 as Uk, c3 as AO, c4 as ca, c5 as GY, c6 as kl, c7 as bc, d as ur, B as Ae, e as Gr, c8 as RO, bv as Ou, c9 as tw, aA as qk, aB as si, ca as Qr, cb as Upe, N as Ja, az as Wd, cc as bN, P as dr, a as vr, b as xr, aJ as qpe, cd as Wpe, aK as Ype, ce as nw, L as ct, Z as Bt, aF as go, be as Gpe, cf as Kpe, cg as KY, ch as Zpe, ci as yN, cj as OA, ck as bb, cl as yb, cm as Gz, cn as Xpe, co as ZY, cp as XY, cq as Qpe, cr as Jpe, cs as ege, ct as tge, aS as Eu, aG as rw, bq as PO, E as ot, aL as or, av as FO, cu as LA, bg as QY, bo as Rs, bp as al, cv as nge, cw as rge, F as yo, cx as JY, cy as vN, cz as eG, cA as tG, aD as Wk, cB as Yk, cC as OO, cD as LO, bs as Lu, cE as nG, br as $u, cF as oge, cG as $O, bt as zO, cH as ige, bc as FE, aM as es, cI as bh, cJ as im, w as age, O as Ga, _ as qt, $ as Wt, a0 as Gt, a1 as Yt, a2 as Ye, cK as rG, cL as sge, aR as jm, cM as lge, cN as Di, bb as qo, b9 as cge, ba as uge, S as Lg, cO as VO, cP as oG, cQ as iG, cR as aG, cS as xN, Q as bo, V as kr, W as Ir, X as io, Y as qr, cT as dge, b1 as sG, cU as lG, cV as fge, cW as hge, cX as mge, T as zu, G as Vu, H as Ci, J as Od, I as Du, bx as xd, by as lu, cY as Y0, cZ as kS, c_ as IS, c$ as G0, d0 as Xf, d1 as Qf, d2 as Js, d3 as TS, d4 as ES, d5 as K0, d6 as $A, d7 as zA, d8 as VA, d9 as cG, l as yl, k as Yd, da as pge, db as m0, dc as gge, dd as uG, de as OE, df as LE, dg as bge, dh as yge, di as vge, dj as xge, dk as wge, dl as Cge, dm as BO, aI as Sge, dn as Nge, dp as _ge, dq as dG, dr as fG, C as Gk, aT as hG, ds as kge, dt as Ige, a$ as mG, du as Tge, ay as Ege, dv as Dge, dw as pG, b2 as gG, dx as Mge, b5 as wd, dy as Mv, b6 as jO, dz as bG, dA as Sy, bf as Kz, dB as yG, dC as Age, dD as Rge, dE as Pge, dF as vG, dG as Zz, dH as xG, dI as ld, dJ as wG, dK as CG, dL as HO, a3 as yc, dM as Fge, dN as Oge, bk as Kk, aE as Z0, aO as UO, K as qO, y as Lge, dO as $ge, dP as zge, M as BA, dQ as Vge, dR as Xz, dS as Qz, dT as SG, dU as Bge, dV as jge, dW as Hge, dX as Uge, dY as qge, dZ as Wge, d_ as Yge, d$ as Gge, e0 as Kge, t as jA, o as NG, n as _G, j as Zge, h as Jz, e1 as HA, e2 as Xge, e3 as Qge, e4 as Jge, e5 as ebe, e6 as tbe, e7 as Ld, e8 as WO, e9 as Xl, bu as nbe, ea as rbe, eb as kG, ec as obe, aj as YO, ed as GO, ae as Zk, af as ibe, ah as IG, ee as abe, ai as $E, ef as sbe, eg as lbe, eh as cbe, aW as ube, aX as dbe, ap as fbe, a7 as TG, ei as Pl, aa as hbe, ac as EG, ab as zE, ao as DG, ak as MG, aq as UA, at as e6, as as mbe, ad as AG, ej as qA, ek as Cd, R as t6, el as RG, em as E1, en as pbe, eo as KO, ep as WA, eq as gbe, er as Av, aP as bbe, es as ybe, a5 as vbe, aw as xbe, U as ZO, et as wbe, bl as vb, bm as PG, bn as FG, eu as OG, ev as XO, ew as QO, bj as LG, b3 as Cbe, ex as Sbe, ey as Nbe, ez as _be, eA as kbe, eB as Ibe, eC as $G } from "./switch-
|
|
22
|
+
import { bz as su, bA as ew, bB as FA, A as Sn, bC as Bk, bD as VY, u as te, bE as Lpe, bh as Gn, b0 as Pa, bF as Yz, bG as $pe, bH as zpe, bI as Vpe, aC as Bpe, bJ as jpe, p as Is, c as X, bK as Tu, bL as _l, bM as en, bN as lo, bO as IO, bP as Hs, bQ as TO, bR as $n, bS as jk, bT as Hk, bU as BY, bV as jY, bW as HY, bX as UY, bY as EO, bZ as DO, b_ as qY, b$ as WY, c0 as YY, c1 as Hpe, ax as MO, c2 as Uk, c3 as AO, c4 as ca, c5 as GY, c6 as kl, c7 as bc, d as ur, B as Ae, e as Gr, c8 as RO, bv as Ou, c9 as tw, aA as qk, aB as si, ca as Qr, cb as Upe, N as Ja, az as Wd, cc as bN, P as dr, a as vr, b as xr, aJ as qpe, cd as Wpe, aK as Ype, ce as nw, L as ct, Z as Bt, aF as go, be as Gpe, cf as Kpe, cg as KY, ch as Zpe, ci as yN, cj as OA, ck as bb, cl as yb, cm as Gz, cn as Xpe, co as ZY, cp as XY, cq as Qpe, cr as Jpe, cs as ege, ct as tge, aS as Eu, aG as rw, bq as PO, E as ot, aL as or, av as FO, cu as LA, bg as QY, bo as Rs, bp as al, cv as nge, cw as rge, F as yo, cx as JY, cy as vN, cz as eG, cA as tG, aD as Wk, cB as Yk, cC as OO, cD as LO, bs as Lu, cE as nG, br as $u, cF as oge, cG as $O, bt as zO, cH as ige, bc as FE, aM as es, cI as bh, cJ as im, w as age, O as Ga, _ as qt, $ as Wt, a0 as Gt, a1 as Yt, a2 as Ye, cK as rG, cL as sge, aR as jm, cM as lge, cN as Di, bb as qo, b9 as cge, ba as uge, S as Lg, cO as VO, cP as oG, cQ as iG, cR as aG, cS as xN, Q as bo, V as kr, W as Ir, X as io, Y as qr, cT as dge, b1 as sG, cU as lG, cV as fge, cW as hge, cX as mge, T as zu, G as Vu, H as Ci, J as Od, I as Du, bx as xd, by as lu, cY as Y0, cZ as kS, c_ as IS, c$ as G0, d0 as Xf, d1 as Qf, d2 as Js, d3 as TS, d4 as ES, d5 as K0, d6 as $A, d7 as zA, d8 as VA, d9 as cG, l as yl, k as Yd, da as pge, db as m0, dc as gge, dd as uG, de as OE, df as LE, dg as bge, dh as yge, di as vge, dj as xge, dk as wge, dl as Cge, dm as BO, aI as Sge, dn as Nge, dp as _ge, dq as dG, dr as fG, C as Gk, aT as hG, ds as kge, dt as Ige, a$ as mG, du as Tge, ay as Ege, dv as Dge, dw as pG, b2 as gG, dx as Mge, b5 as wd, dy as Mv, b6 as jO, dz as bG, dA as Sy, bf as Kz, dB as yG, dC as Age, dD as Rge, dE as Pge, dF as vG, dG as Zz, dH as xG, dI as ld, dJ as wG, dK as CG, dL as HO, a3 as yc, dM as Fge, dN as Oge, bk as Kk, aE as Z0, aO as UO, K as qO, y as Lge, dO as $ge, dP as zge, M as BA, dQ as Vge, dR as Xz, dS as Qz, dT as SG, dU as Bge, dV as jge, dW as Hge, dX as Uge, dY as qge, dZ as Wge, d_ as Yge, d$ as Gge, e0 as Kge, t as jA, o as NG, n as _G, j as Zge, h as Jz, e1 as HA, e2 as Xge, e3 as Qge, e4 as Jge, e5 as ebe, e6 as tbe, e7 as Ld, e8 as WO, e9 as Xl, bu as nbe, ea as rbe, eb as kG, ec as obe, aj as YO, ed as GO, ae as Zk, af as ibe, ah as IG, ee as abe, ai as $E, ef as sbe, eg as lbe, eh as cbe, aW as ube, aX as dbe, ap as fbe, a7 as TG, ei as Pl, aa as hbe, ac as EG, ab as zE, ao as DG, ak as MG, aq as UA, at as e6, as as mbe, ad as AG, ej as qA, ek as Cd, R as t6, el as RG, em as E1, en as pbe, eo as KO, ep as WA, eq as gbe, er as Av, aP as bbe, es as ybe, a5 as vbe, aw as xbe, U as ZO, et as wbe, bl as vb, bm as PG, bn as FG, eu as OG, ev as XO, ew as QO, bj as LG, b3 as Cbe, ex as Sbe, ey as Nbe, ez as _be, eA as kbe, eB as Ibe, eC as $G } from "./switch-BiU6-YSY.js";
|
|
23
23
|
import { j as Tbe, c as it, X as dn, C as fa } from "./x-CXDkqdur.js";
|
|
24
|
-
import "./analyze-result-contract-
|
|
24
|
+
import "./analyze-result-contract-CUO5QmqV.js";
|
|
25
25
|
import { c as ow, d as Ebe, A as Dbe, r as zG } from "./index-CJdxSyQq.js";
|
|
26
26
|
import { createRoot as Mbe } from "react-dom/client";
|
|
27
27
|
import { S as qi, C as wr, E as Xk, a as JO, M as VG } from "./search-BHsQIWBV.js";
|
|
@@ -142600,9 +142600,9 @@ function p_t() {
|
|
|
142600
142600
|
}
|
|
142601
142601
|
);
|
|
142602
142602
|
}
|
|
142603
|
-
const g_t = Vk(() => import("./dashboard-controls-
|
|
142604
|
-
() => import("./edit-dashboard-visual-
|
|
142605
|
-
), y_t = Vk(() => import("./dashboard-json-
|
|
142603
|
+
const g_t = Vk(() => import("./dashboard-controls-CHDQlMZ9.js")), b_t = Vk(
|
|
142604
|
+
() => import("./edit-dashboard-visual-DwfIWUe-.js")
|
|
142605
|
+
), y_t = Vk(() => import("./dashboard-json-DF_syvRu.js"));
|
|
142606
142606
|
function HIt({
|
|
142607
142607
|
showControls: e = !1,
|
|
142608
142608
|
showFooter: t = !0,
|