@eric-emg/symphiq-components 1.2.277 → 1.2.279

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.
@@ -55604,9 +55604,6 @@ class FunnelMetricsVisualizationComponent {
55604
55604
  });
55605
55605
  return result;
55606
55606
  }, ...(ngDevMode ? [{ debugName: "funnelStages" }] : []));
55607
- effect(() => {
55608
- console.log('[FunnelMetricsVisualization] isCalculatingTargets changed to:', this.isCalculatingTargets());
55609
- });
55610
55607
  }
55611
55608
  stageCardClasses() {
55612
55609
  return this.viewMode() === ViewModeEnum.DARK
@@ -55999,7 +55996,7 @@ class FunnelMetricsVisualizationComponent {
55999
55996
  </div>
56000
55997
  `
56001
55998
  }]
56002
- }], () => [], { viewMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewMode", required: false }] }], calculations: [{ type: i0.Input, args: [{ isSignal: true, alias: "calculations", required: false }] }], pacingMetrics: [{ type: i0.Input, args: [{ isSignal: true, alias: "pacingMetrics", required: false }] }], isCalculatingTargets: [{ type: i0.Input, args: [{ isSignal: true, alias: "isCalculatingTargets", required: false }] }], hasExistingTargets: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasExistingTargets", required: false }] }], viewStageReport: [{ type: i0.Output, args: ["viewStageReport"] }], viewRelatedMetricReport: [{ type: i0.Output, args: ["viewRelatedMetricReport"] }], editRelatedMetricTarget: [{ type: i0.Output, args: ["editRelatedMetricTarget"] }] }); })();
55999
+ }], null, { viewMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewMode", required: false }] }], calculations: [{ type: i0.Input, args: [{ isSignal: true, alias: "calculations", required: false }] }], pacingMetrics: [{ type: i0.Input, args: [{ isSignal: true, alias: "pacingMetrics", required: false }] }], isCalculatingTargets: [{ type: i0.Input, args: [{ isSignal: true, alias: "isCalculatingTargets", required: false }] }], hasExistingTargets: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasExistingTargets", required: false }] }], viewStageReport: [{ type: i0.Output, args: ["viewStageReport"] }], viewRelatedMetricReport: [{ type: i0.Output, args: ["viewRelatedMetricReport"] }], editRelatedMetricTarget: [{ type: i0.Output, args: ["editRelatedMetricTarget"] }] }); })();
56003
56000
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FunnelMetricsVisualizationComponent, { className: "FunnelMetricsVisualizationComponent", filePath: "lib/components/revenue-calculator-dashboard/funnel-metrics-visualization.component.ts", lineNumber: 232 }); })();
56004
56001
 
56005
56002
  function StickySubmitBarComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
@@ -59504,7 +59501,7 @@ function EditMetricTargetModalComponent_Conditional_0_Template(rf, ctx) { if (rf
59504
59501
  i0.ɵɵadvance(2);
59505
59502
  i0.ɵɵconditional(ctx_r1.hasChangedFromInitial() ? 40 : -1);
59506
59503
  i0.ɵɵadvance();
59507
- i0.ɵɵproperty("disabled", !ctx_r1.isTargetValid())("ngClass", ctx_r1.applyButtonClasses());
59504
+ i0.ɵɵproperty("disabled", !ctx_r1.isTargetValid() || !ctx_r1.hasChangedFromInitial())("ngClass", ctx_r1.applyButtonClasses());
59508
59505
  } }
59509
59506
  class EditMetricTargetModalComponent {
59510
59507
  constructor(injector_) {
@@ -60434,7 +60431,7 @@ class EditMetricTargetModalComponent {
60434
60431
  <button
60435
60432
  type="button"
60436
60433
  (click)="applyTarget()"
60437
- [disabled]="!isTargetValid()"
60434
+ [disabled]="!isTargetValid() || !hasChangedFromInitial()"
60438
60435
  [ngClass]="applyButtonClasses()"
60439
60436
  class="px-4 py-2.5 rounded-lg font-medium text-sm transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed">
60440
60437
  Apply Target
@@ -60724,7 +60721,7 @@ function InitialTargetSettingComponent_Conditional_36_Conditional_30_Template(rf
60724
60721
  i0.ɵɵadvance(2);
60725
60722
  i0.ɵɵproperty("ngClass", ctx_r0.calculatedSecondaryClasses());
60726
60723
  i0.ɵɵadvance();
60727
- i0.ɵɵconditional(ctx_r0.isTargetValid() ? 11 : 12);
60724
+ i0.ɵɵconditional(ctx_r0.isTargetValid() && !ctx_r0.isCalculating() ? 11 : 12);
60728
60725
  i0.ɵɵadvance(4);
60729
60726
  i0.ɵɵproperty("ngClass", ctx_r0.calculatedLabelClasses());
60730
60727
  i0.ɵɵadvance(2);
@@ -60732,7 +60729,7 @@ function InitialTargetSettingComponent_Conditional_36_Conditional_30_Template(rf
60732
60729
  i0.ɵɵadvance(3);
60733
60730
  i0.ɵɵproperty("ngClass", ctx_r0.calculatedSecondaryClasses());
60734
60731
  i0.ɵɵadvance();
60735
- i0.ɵɵconditional(ctx_r0.isTargetValid() ? 21 : 22);
60732
+ i0.ɵɵconditional(ctx_r0.isTargetValid() && !ctx_r0.isCalculating() ? 21 : 22);
60736
60733
  } }
60737
60734
  function InitialTargetSettingComponent_Conditional_36_Template(rf, ctx) { if (rf & 1) {
60738
60735
  i0.ɵɵelementStart(0, "div", 53)(1, "div")(2, "div", 54)(3, "div")(4, "p", 14);
@@ -60790,13 +60787,13 @@ function InitialTargetSettingComponent_Conditional_36_Template(rf, ctx) { if (rf
60790
60787
  i0.ɵɵadvance(2);
60791
60788
  i0.ɵɵproperty("ngClass", ctx_r0.calculatedSecondaryClasses());
60792
60789
  i0.ɵɵadvance();
60793
- i0.ɵɵconditional(ctx_r0.isTargetValid() ? 22 : 23);
60790
+ i0.ɵɵconditional(ctx_r0.isTargetValid() && !ctx_r0.isCalculating() ? 22 : 23);
60794
60791
  i0.ɵɵadvance(3);
60795
60792
  i0.ɵɵproperty("ngClass", ctx_r0.calculatedLabelClasses());
60796
60793
  i0.ɵɵadvance(2);
60797
60794
  i0.ɵɵproperty("ngClass", ctx_r0.calculatedSecondaryClasses());
60798
60795
  i0.ɵɵadvance();
60799
- i0.ɵɵconditional(ctx_r0.isTargetValid() ? 28 : 29);
60796
+ i0.ɵɵconditional(ctx_r0.isTargetValid() && !ctx_r0.isCalculating() ? 28 : 29);
60800
60797
  i0.ɵɵadvance(2);
60801
60798
  i0.ɵɵconditional(ctx_r0.currentPaceProjection() > 0 ? 30 : -1);
60802
60799
  } }
@@ -61197,9 +61194,6 @@ class InitialTargetSettingComponent {
61197
61194
  this.internalIsCalculating.set(false);
61198
61195
  }
61199
61196
  }, { allowSignalWrites: true });
61200
- effect(() => {
61201
- console.log('[InitialTargetSetting] isCalculating changed to:', this.isCalculating());
61202
- });
61203
61197
  effect(() => {
61204
61198
  const targetRevenue = this.displayedTargetRevenue();
61205
61199
  const priorRevenue = this.priorYearRevenue();
@@ -61627,7 +61621,6 @@ class InitialTargetSettingComponent {
61627
61621
  funnelType: FunnelMetricTypeEnum.REVENUE,
61628
61622
  proposedTargets
61629
61623
  };
61630
- console.log('[InitialTargetSetting] Emitting calculateRevenueRequest');
61631
61624
  this.internalIsCalculating.set(true);
61632
61625
  this.calculateRevenueRequest.emit(request);
61633
61626
  this.closeEditMetricModal();
@@ -61681,7 +61674,7 @@ class InitialTargetSettingComponent {
61681
61674
  let _t;
61682
61675
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.absoluteInputRef = _t.first);
61683
61676
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.percentageInputRef = _t.first);
61684
- } }, inputs: { viewMode: [1, "viewMode"], funnelMetrics: [1, "funnelMetrics"], mainUiData: [1, "mainUiData"], trendUiData: [1, "trendUiData"], shopId: [1, "shopId"], pacingMetrics: [1, "pacingMetrics"], dataResults: [1, "dataResults"], calculateRevenueReverseResponse: [1, "calculateRevenueReverseResponse"], calculateRevenueResponse: [1, "calculateRevenueResponse"], isCalculatingTargets: [1, "isCalculatingTargets"], targets: [1, "targets"] }, outputs: { targetsCreated: "targetsCreated", calculateRevenueReverseRequest: "calculateRevenueReverseRequest", calculateRevenueRequest: "calculateRevenueRequest", editRelatedMetricTarget: "editRelatedMetricTarget", saveTargetsClick: "saveTargetsClick", discardChangesClick: "discardChangesClick", targetsUpdated: "targetsUpdated" }, decls: 45, vars: 51, consts: [["absoluteInputRef", ""], ["percentageInputRef", ""], [1, "space-y-8", "pb-32"], [1, "rounded-2xl", "border", "shadow-lg", "p-8", 3, "click", "ngClass"], [1, "flex", "items-center", "justify-between", "mb-6"], [1, "text-2xl", "font-bold", 3, "ngClass"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-6", "h-6", "chevron-rotate", 3, "chevron-rotate-expanded", "ngClass"], [1, "flex", "flex-col", "gap-4"], [1, "grid", "lg:grid-cols-2", "gap-4"], [1, "p-6", "rounded-xl", "border-2", 3, "click", "ngClass"], [1, "flex", "flex-wrap", "gap-4", "place-content-between"], [1, "flex", "items-center", "gap-2"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-4", "h-4", 3, "ngClass"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"], [1, "text-xs", "font-medium", "uppercase", "tracking-wider", 3, "ngClass"], [1, "text-lg", "font-bold", 3, "ngClass"], [1, "form-area-collapse"], [1, "form-area-content"], [1, "space-y-6"], [1, "chart-in-column"], [1, "chart-in-column-content"], [1, "text-sm", "font-semibold", "mb-3", 3, "ngClass"], [1, "rounded-xl", "border", "p-4", 3, "ngClass"], [3, "chart", "showAxisLabels", "viewMode", "currencySymbol", "height"], [1, "h-64", "flex", "items-center", "justify-center"], [1, "calculated-card-enter", "order-first", "lg:order-last"], [1, "calculated-card-content"], [1, "p-6", "rounded-xl", "border-2", 3, "ngClass", "h-full"], [1, "w-full"], [1, "metrics-section-enter"], [1, "metrics-section-content"], [1, "rounded-2xl", "border", "shadow-lg", "p-8", 3, "ngClass"], [3, "viewMode", "isValid", "isSubmitting", "validationMessage", "buttonText", "showCancelButton"], [1, "fixed", "bottom-0", "left-0", "right-0", "p-4", "border-t", "shadow-lg", "z-50", "flex", "flex-col", "sm:flex-row", "items-center", "justify-center", "gap-4", 3, "ngClass"], [3, "closed", "viewMode", "metricEnum", "metricData", "contributingMetrics", "pacingMetrics", "trendChartData", "isOpen"], [3, "closed", "targetApplied", "viewMode", "metricData", "pacingMetrics", "isOpen"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-6", "h-6", "chevron-rotate", 3, "ngClass"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M19 9l-7 7-7-7"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M13 7h8m0 0v8m0-8l-8 8-4-4-6 6"], [1, "flex", "items-center", "gap-1"], ["type", "button", "tooltipType", "markdown", "tooltipPosition", "top", 1, "flex-shrink-0", "w-4", "h-4", "rounded-full", "inline-flex", "items-center", "justify-center", "transition-colors", 3, "click", "ngClass", "libSymphiqTooltip"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-3", "h-3"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"], [1, "flex", "gap-2"], [1, "flex-1", "py-2", "px-4", "rounded-lg", "text-sm", "font-semibold", "transition-all", 3, "click", "ngClass"], [1, "relative"], [1, "flex", "justify-end"], [1, "absolute", "left-4", "top-1/2", "-translate-y-1/2", "text-xl", "font-bold", 3, "ngClass"], ["type", "number", "placeholder", "0", "min", "0", "step", "1000", 1, "w-full", "pl-10", "pr-4", "py-4", "rounded-xl", "text-2xl", "font-bold", "border-2", "transition-all", 3, "ngModelChange", "ngModel", "ngClass"], ["type", "number", "placeholder", "0", "min", "0", "max", "1000", "step", "0.1", 1, "w-full", "pr-10", "pl-4", "py-4", "rounded-xl", "text-2xl", "font-bold", "border-2", "transition-all", 3, "ngModelChange", "ngModel", "ngClass"], [1, "absolute", "right-4", "top-1/2", "-translate-y-1/2", "text-xl", "font-bold", 3, "ngClass"], [1, "px-4", "py-2", "rounded-lg", "text-sm", "font-semibold", "transition-all", 3, "click", "ngClass"], [1, "text-sm", 3, "ngClass"], [1, "p-6", "rounded-xl", "border-2", 3, "ngClass"], [1, "flex", "items-center", "justify-between"], [1, "font-bold", "transition-all", "duration-300", "text-lg", 3, "ngClass", "lg:text-3xl"], [1, "px-4", "py-2", "rounded-lg", "text-sm", "font-semibold", "transition-all", "whitespace-nowrap", 3, "ngClass"], [1, "details-collapse"], [1, "details-collapse-content"], [1, "relative", "pt-6", "mt-6"], [1, "absolute", "top-0", "left-0", "right-0", "flex", "items-center", "-translate-y-1/2"], [1, "flex-1", "h-px", 3, "ngClass"], [1, "px-3", "py-1", "rounded-full", "text-xs", "font-semibold", "whitespace-nowrap", 3, "ngClass"], [1, "grid", "grid-cols-2", "gap-4", "pt-2"], [1, "text-xs", "font-medium", "uppercase", "tracking-wider", "mb-1", 3, "ngClass"], [1, "text-xl", "font-bold", 3, "ngClass"], [1, "w-5", "h-5", "border-2", "border-t-transparent", "rounded-full", "animate-spin", 3, "ngClass"], [1, "text-lg", "font-medium", 3, "ngClass"], [1, "font-bold", "transition-all", "duration-300", "text-lg", 3, "ngClass"], [1, "px-4", "py-2", "rounded-lg", "text-sm", "font-semibold", "transition-all", "whitespace-nowrap", 3, "click", "ngClass"], [1, "flex", "items-center", "gap-1", "mb-1"], [1, "mb-6"], [1, "text-2xl", "font-bold", "mb-2", 3, "ngClass"], [3, "viewStageReport", "viewRelatedMetricReport", "editRelatedMetricTarget", "viewMode", "calculations", "pacingMetrics", "hasExistingTargets", "isCalculatingTargets"], [3, "submitClick", "cancelClick", "viewMode", "isValid", "isSubmitting", "validationMessage", "buttonText", "showCancelButton"], [1, "flex", "items-center", "gap-3"], ["type", "button", 1, "px-4", "py-2.5", "rounded-lg", "font-medium", "text-sm", "transition-all", "duration-200", 3, "click", "ngClass"]], template: function InitialTargetSettingComponent_Template(rf, ctx) { if (rf & 1) {
61677
+ } }, inputs: { viewMode: [1, "viewMode"], funnelMetrics: [1, "funnelMetrics"], mainUiData: [1, "mainUiData"], trendUiData: [1, "trendUiData"], shopId: [1, "shopId"], pacingMetrics: [1, "pacingMetrics"], dataResults: [1, "dataResults"], calculateRevenueReverseResponse: [1, "calculateRevenueReverseResponse"], calculateRevenueResponse: [1, "calculateRevenueResponse"], isCalculatingTargets: [1, "isCalculatingTargets"], targets: [1, "targets"] }, outputs: { targetsCreated: "targetsCreated", calculateRevenueReverseRequest: "calculateRevenueReverseRequest", calculateRevenueRequest: "calculateRevenueRequest", editRelatedMetricTarget: "editRelatedMetricTarget", saveTargetsClick: "saveTargetsClick", discardChangesClick: "discardChangesClick", targetsUpdated: "targetsUpdated" }, decls: 45, vars: 51, consts: [["absoluteInputRef", ""], ["percentageInputRef", ""], [1, "space-y-8", "pb-32"], [1, "rounded-2xl", "border", "shadow-lg", "p-8", 3, "click", "ngClass"], [1, "flex", "items-center", "justify-between", "mb-6"], [1, "text-2xl", "font-bold", 3, "ngClass"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-6", "h-6", "chevron-rotate", 3, "chevron-rotate-expanded", "ngClass"], [1, "flex", "flex-col", "gap-4"], [1, "grid", "lg:grid-cols-2", "gap-4"], [1, "p-6", "rounded-xl", "border-2", 3, "click", "ngClass"], [1, "flex", "flex-wrap", "gap-4", "place-content-between"], [1, "flex", "items-center", "gap-2"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-4", "h-4", 3, "ngClass"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"], [1, "text-xs", "font-medium", "uppercase", "tracking-wider", 3, "ngClass"], [1, "text-lg", "font-bold", 3, "ngClass"], [1, "form-area-collapse"], [1, "form-area-content"], [1, "space-y-6"], [1, "chart-in-column"], [1, "chart-in-column-content"], [1, "text-sm", "font-semibold", "mb-3", 3, "ngClass"], [1, "rounded-xl", "border", "p-4", 3, "ngClass"], [3, "chart", "showAxisLabels", "viewMode", "currencySymbol", "height"], [1, "h-64", "flex", "items-center", "justify-center"], [1, "calculated-card-enter", "order-first", "lg:order-last"], [1, "calculated-card-content"], [1, "p-6", "rounded-xl", "border-2", 3, "ngClass", "h-full"], [1, "w-full"], [1, "metrics-section-enter"], [1, "metrics-section-content"], [1, "rounded-2xl", "border", "shadow-lg", "p-8", 3, "ngClass"], [3, "viewMode", "isValid", "isSubmitting", "validationMessage", "buttonText", "showCancelButton"], [1, "fixed", "bottom-0", "left-0", "right-0", "p-4", "border-t", "shadow-lg", "z-50", "flex", "flex-col", "sm:flex-row", "items-center", "justify-center", "gap-4", "!mb-0", 3, "ngClass"], [3, "closed", "viewMode", "metricEnum", "metricData", "contributingMetrics", "pacingMetrics", "trendChartData", "isOpen"], [3, "closed", "targetApplied", "viewMode", "metricData", "pacingMetrics", "isOpen"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-6", "h-6", "chevron-rotate", 3, "ngClass"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M19 9l-7 7-7-7"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M13 7h8m0 0v8m0-8l-8 8-4-4-6 6"], [1, "flex", "items-center", "gap-1"], ["type", "button", "tooltipType", "markdown", "tooltipPosition", "top", 1, "flex-shrink-0", "w-4", "h-4", "rounded-full", "inline-flex", "items-center", "justify-center", "transition-colors", 3, "click", "ngClass", "libSymphiqTooltip"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-3", "h-3"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"], [1, "flex", "gap-2"], [1, "flex-1", "py-2", "px-4", "rounded-lg", "text-sm", "font-semibold", "transition-all", 3, "click", "ngClass"], [1, "relative"], [1, "flex", "justify-end"], [1, "absolute", "left-4", "top-1/2", "-translate-y-1/2", "text-xl", "font-bold", 3, "ngClass"], ["type", "number", "placeholder", "0", "min", "0", "step", "1000", 1, "w-full", "pl-10", "pr-4", "py-4", "rounded-xl", "text-2xl", "font-bold", "border-2", "transition-all", 3, "ngModelChange", "ngModel", "ngClass"], ["type", "number", "placeholder", "0", "min", "0", "max", "1000", "step", "0.1", 1, "w-full", "pr-10", "pl-4", "py-4", "rounded-xl", "text-2xl", "font-bold", "border-2", "transition-all", 3, "ngModelChange", "ngModel", "ngClass"], [1, "absolute", "right-4", "top-1/2", "-translate-y-1/2", "text-xl", "font-bold", 3, "ngClass"], [1, "px-4", "py-2", "rounded-lg", "text-sm", "font-semibold", "transition-all", 3, "click", "ngClass"], [1, "text-sm", 3, "ngClass"], [1, "p-6", "rounded-xl", "border-2", 3, "ngClass"], [1, "flex", "items-center", "justify-between"], [1, "font-bold", "transition-all", "duration-300", "text-lg", 3, "ngClass", "lg:text-3xl"], [1, "px-4", "py-2", "rounded-lg", "text-sm", "font-semibold", "transition-all", "whitespace-nowrap", 3, "ngClass"], [1, "details-collapse"], [1, "details-collapse-content"], [1, "relative", "pt-6", "mt-6"], [1, "absolute", "top-0", "left-0", "right-0", "flex", "items-center", "-translate-y-1/2"], [1, "flex-1", "h-px", 3, "ngClass"], [1, "px-3", "py-1", "rounded-full", "text-xs", "font-semibold", "whitespace-nowrap", 3, "ngClass"], [1, "grid", "grid-cols-2", "gap-4", "pt-2"], [1, "text-xs", "font-medium", "uppercase", "tracking-wider", "mb-1", 3, "ngClass"], [1, "text-xl", "font-bold", 3, "ngClass"], [1, "w-5", "h-5", "border-2", "border-t-transparent", "rounded-full", "animate-spin", 3, "ngClass"], [1, "text-lg", "font-medium", 3, "ngClass"], [1, "font-bold", "transition-all", "duration-300", "text-lg", 3, "ngClass"], [1, "px-4", "py-2", "rounded-lg", "text-sm", "font-semibold", "transition-all", "whitespace-nowrap", 3, "click", "ngClass"], [1, "flex", "items-center", "gap-1", "mb-1"], [1, "mb-6"], [1, "text-2xl", "font-bold", "mb-2", 3, "ngClass"], [3, "viewStageReport", "viewRelatedMetricReport", "editRelatedMetricTarget", "viewMode", "calculations", "pacingMetrics", "hasExistingTargets", "isCalculatingTargets"], [3, "submitClick", "cancelClick", "viewMode", "isValid", "isSubmitting", "validationMessage", "buttonText", "showCancelButton"], [1, "flex", "items-center", "gap-3"], ["type", "button", 1, "px-4", "py-2.5", "rounded-lg", "font-medium", "text-sm", "transition-all", "duration-200", 3, "click", "ngClass"]], template: function InitialTargetSettingComponent_Template(rf, ctx) { if (rf & 1) {
61685
61678
  i0.ɵɵelementStart(0, "div", 2);
61686
61679
  i0.ɵɵelement(1, "symphiq-tooltip-container");
61687
61680
  i0.ɵɵelementStart(2, "div", 3);
@@ -62038,7 +62031,7 @@ class InitialTargetSettingComponent {
62038
62031
  Increase Amount
62039
62032
  </p>
62040
62033
  <p [ngClass]="calculatedSecondaryClasses()" class="text-xl font-bold">
62041
- @if (isTargetValid()) {
62034
+ @if (isTargetValid() && !isCalculating()) {
62042
62035
  {{ formatCurrency(animatedIncreaseAmount()) }}
62043
62036
  } @else {
62044
62037
  --
@@ -62050,7 +62043,7 @@ class InitialTargetSettingComponent {
62050
62043
  % Growth
62051
62044
  </p>
62052
62045
  <p [ngClass]="calculatedSecondaryClasses()" class="text-xl font-bold">
62053
- @if (isTargetValid()) {
62046
+ @if (isTargetValid() && !isCalculating()) {
62054
62047
  +{{ formatPercentage(animatedPercentageGrowth(), 1) }}
62055
62048
  } @else {
62056
62049
  --
@@ -62075,7 +62068,7 @@ class InitialTargetSettingComponent {
62075
62068
  Gap to Close
62076
62069
  </p>
62077
62070
  <p [ngClass]="calculatedSecondaryClasses()" class="text-xl font-bold">
62078
- @if (isTargetValid()) {
62071
+ @if (isTargetValid() && !isCalculating()) {
62079
62072
  {{ formatCurrency(animatedGapAmount()) }}
62080
62073
  } @else {
62081
62074
  --
@@ -62101,7 +62094,7 @@ class InitialTargetSettingComponent {
62101
62094
  </button>
62102
62095
  </div>
62103
62096
  <p [ngClass]="calculatedSecondaryClasses()" class="text-xl font-bold">
62104
- @if (isTargetValid()) {
62097
+ @if (isTargetValid() && !isCalculating()) {
62105
62098
  {{ gapToClose().amount > 0 ? '+' : '' }}{{ formatPercentage(animatedGapPercentage(), 1) }}
62106
62099
  } @else {
62107
62100
  --
@@ -62194,7 +62187,7 @@ class InitialTargetSettingComponent {
62194
62187
  }
62195
62188
 
62196
62189
  @if (hasPendingChanges()) {
62197
- <div [ngClass]="saveFooterClasses()" class="fixed bottom-0 left-0 right-0 p-4 border-t shadow-lg z-50 flex flex-col sm:flex-row items-center justify-center gap-4">
62190
+ <div [ngClass]="saveFooterClasses()" class="fixed bottom-0 left-0 right-0 p-4 border-t shadow-lg z-50 flex flex-col sm:flex-row items-center justify-center gap-4 !mb-0">
62198
62191
  <p [ngClass]="saveFooterTextClasses()" class="text-sm">
62199
62192
  You have unsaved target changes.
62200
62193
  </p>
@@ -62594,15 +62587,7 @@ class SymphiqRevenueCalculatorDashboardComponent {
62594
62587
  this.targetsCreated.emit(targetsWithDates);
62595
62588
  }
62596
62589
  onCalculateRevenueRequest(request) {
62597
- console.log('[Dashboard] onCalculateRevenueRequest received, re-emitting');
62598
- console.log('[Dashboard] calculateRevenueRequest output:', this.calculateRevenueRequest);
62599
- try {
62600
- this.calculateRevenueRequest.emit(request);
62601
- console.log('[Dashboard] emit completed');
62602
- }
62603
- catch (e) {
62604
- console.error('[Dashboard] emit error:', e);
62605
- }
62590
+ this.calculateRevenueRequest.emit(request);
62606
62591
  }
62607
62592
  static { this.ɵfac = function SymphiqRevenueCalculatorDashboardComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SymphiqRevenueCalculatorDashboardComponent)(); }; }
62608
62593
  static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SymphiqRevenueCalculatorDashboardComponent, selectors: [["symphiq-revenue-calculator-dashboard"]], hostBindings: function SymphiqRevenueCalculatorDashboardComponent_HostBindings(rf, ctx) { if (rf & 1) {