@eric-emg/symphiq-components 1.2.268 → 1.2.270

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.
@@ -55256,33 +55256,65 @@ const _forTrack1$3 = ($index, $item) => $item.calc.metric;
55256
55256
  function FunnelMetricsVisualizationComponent_For_4_Conditional_6_Template(rf, ctx) { if (rf & 1) {
55257
55257
  i0.ɵɵelementStart(0, "button", 7);
55258
55258
  i0.ɵɵnamespaceSVG();
55259
- i0.ɵɵelementStart(1, "svg", 16);
55260
- i0.ɵɵelement(2, "path", 20);
55259
+ i0.ɵɵelementStart(1, "svg", 14);
55260
+ i0.ɵɵelement(2, "path", 18);
55261
55261
  i0.ɵɵelementEnd()();
55262
55262
  } if (rf & 2) {
55263
55263
  const stage_r2 = i0.ɵɵnextContext().$implicit;
55264
55264
  const ctx_r2 = i0.ɵɵnextContext();
55265
55265
  i0.ɵɵproperty("ngClass", ctx_r2.infoIconClasses())("libSymphiqTooltip", ctx_r2.getMarkdownTooltipContent(stage_r2.stageMetric.description, ctx_r2.getMetricTitle(stage_r2.stageMetric)));
55266
55266
  } }
55267
- function FunnelMetricsVisualizationComponent_For_4_Conditional_19_Template(rf, ctx) { if (rf & 1) {
55268
- i0.ɵɵelementStart(0, "p", 12);
55267
+ function FunnelMetricsVisualizationComponent_For_4_Conditional_16_Template(rf, ctx) { if (rf & 1) {
55268
+ i0.ɵɵelementStart(0, "div", 11);
55269
+ i0.ɵɵelement(1, "div", 19);
55270
+ i0.ɵɵelementStart(2, "p", 20);
55271
+ i0.ɵɵtext(3, "Calculating...");
55272
+ i0.ɵɵelementEnd()();
55273
+ } if (rf & 2) {
55274
+ const ctx_r2 = i0.ɵɵnextContext(2);
55275
+ i0.ɵɵadvance();
55276
+ i0.ɵɵproperty("ngClass", ctx_r2.loadingSpinnerClasses());
55277
+ i0.ɵɵadvance();
55278
+ i0.ɵɵproperty("ngClass", ctx_r2.calculatingTextClasses());
55279
+ } }
55280
+ function FunnelMetricsVisualizationComponent_For_4_Conditional_17_Conditional_3_Template(rf, ctx) { if (rf & 1) {
55281
+ i0.ɵɵelementStart(0, "p", 22);
55269
55282
  i0.ɵɵtext(1);
55270
55283
  i0.ɵɵelementEnd();
55271
55284
  } if (rf & 2) {
55272
- const stage_r2 = i0.ɵɵnextContext().$implicit;
55285
+ const stage_r2 = i0.ɵɵnextContext(2).$implicit;
55273
55286
  const ctx_r2 = i0.ɵɵnextContext();
55274
55287
  i0.ɵɵproperty("ngClass", ctx_r2.originalValueClasses());
55275
55288
  i0.ɵɵadvance();
55276
55289
  i0.ɵɵtextInterpolate1(" ", ctx_r2.formatMetricValue(stage_r2.stageMetric.originalTargetValue, stage_r2.stageMetric.metric, false), " ");
55277
55290
  } }
55278
- function FunnelMetricsVisualizationComponent_For_4_Conditional_21_Template(rf, ctx) { if (rf & 1) {
55291
+ function FunnelMetricsVisualizationComponent_For_4_Conditional_17_Template(rf, ctx) { if (rf & 1) {
55292
+ i0.ɵɵelementStart(0, "div", 21)(1, "p", 10);
55293
+ i0.ɵɵtext(2);
55294
+ i0.ɵɵelementEnd();
55295
+ i0.ɵɵconditionalCreate(3, FunnelMetricsVisualizationComponent_For_4_Conditional_17_Conditional_3_Template, 2, 2, "p", 22);
55296
+ i0.ɵɵelementEnd();
55297
+ i0.ɵɵelement(4, "symphiq-target-change-badge", 23);
55298
+ } if (rf & 2) {
55299
+ const stage_r2 = i0.ɵɵnextContext().$implicit;
55300
+ const ctx_r2 = i0.ɵɵnextContext();
55301
+ i0.ɵɵadvance();
55302
+ i0.ɵɵproperty("ngClass", ctx_r2.targetValueClasses());
55303
+ i0.ɵɵadvance();
55304
+ i0.ɵɵtextInterpolate1(" ", ctx_r2.formatMetricValue(stage_r2.stageMetric.targetValue, stage_r2.stageMetric.metric, false), " ");
55305
+ i0.ɵɵadvance();
55306
+ i0.ɵɵconditional(stage_r2.stageMetric.originalTargetValue !== undefined ? 3 : -1);
55307
+ i0.ɵɵadvance();
55308
+ i0.ɵɵproperty("viewMode", ctx_r2.viewMode())("percentageChange", stage_r2.stageMetric.percentageIncrease)("metric", stage_r2.stageMetric.metric)("priorYear", ctx_r2.priorYear());
55309
+ } }
55310
+ function FunnelMetricsVisualizationComponent_For_4_Conditional_18_Template(rf, ctx) { if (rf & 1) {
55279
55311
  i0.ɵɵelementStart(0, "div")(1, "p", 9);
55280
55312
  i0.ɵɵtext(2);
55281
55313
  i0.ɵɵelementEnd();
55282
- i0.ɵɵelementStart(3, "p", 21);
55314
+ i0.ɵɵelementStart(3, "p", 24);
55283
55315
  i0.ɵɵtext(4);
55284
55316
  i0.ɵɵelementEnd();
55285
- i0.ɵɵelement(5, "symphiq-pacing-status-badge", 22);
55317
+ i0.ɵɵelement(5, "symphiq-pacing-status-badge", 25);
55286
55318
  i0.ɵɵelementEnd();
55287
55319
  } if (rf & 2) {
55288
55320
  const stage_r2 = i0.ɵɵnextContext().$implicit;
@@ -55298,19 +55330,19 @@ function FunnelMetricsVisualizationComponent_For_4_Conditional_21_Template(rf, c
55298
55330
  i0.ɵɵadvance();
55299
55331
  i0.ɵɵproperty("viewMode", ctx_r2.viewMode())("pacingPercentage", stage_r2.pacingInfo.pacingPercentage)("status", stage_r2.pacingInfo.status)("showAsFullText", true)("showEmphasizedPercentage", true);
55300
55332
  } }
55301
- function FunnelMetricsVisualizationComponent_For_4_Conditional_30_For_6_Conditional_4_Template(rf, ctx) { if (rf & 1) {
55302
- i0.ɵɵelementStart(0, "button", 30);
55333
+ function FunnelMetricsVisualizationComponent_For_4_Conditional_27_For_6_Conditional_4_Template(rf, ctx) { if (rf & 1) {
55334
+ i0.ɵɵelementStart(0, "button", 33);
55303
55335
  i0.ɵɵnamespaceSVG();
55304
- i0.ɵɵelementStart(1, "svg", 40);
55305
- i0.ɵɵelement(2, "path", 20);
55336
+ i0.ɵɵelementStart(1, "svg", 43);
55337
+ i0.ɵɵelement(2, "path", 18);
55306
55338
  i0.ɵɵelementEnd()();
55307
55339
  } if (rf & 2) {
55308
55340
  const metric_r5 = i0.ɵɵnextContext().$implicit;
55309
55341
  const ctx_r2 = i0.ɵɵnextContext(3);
55310
55342
  i0.ɵɵproperty("ngClass", ctx_r2.infoIconClasses())("libSymphiqTooltip", ctx_r2.getMarkdownTooltipContent(metric_r5.calc.description, ctx_r2.getMetricTitle(metric_r5.calc)));
55311
55343
  } }
55312
- function FunnelMetricsVisualizationComponent_For_4_Conditional_30_For_6_Conditional_17_Template(rf, ctx) { if (rf & 1) {
55313
- i0.ɵɵelementStart(0, "p", 35);
55344
+ function FunnelMetricsVisualizationComponent_For_4_Conditional_27_For_6_Conditional_17_Template(rf, ctx) { if (rf & 1) {
55345
+ i0.ɵɵelementStart(0, "p", 38);
55314
55346
  i0.ɵɵtext(1);
55315
55347
  i0.ɵɵelementEnd();
55316
55348
  } if (rf & 2) {
@@ -55320,14 +55352,14 @@ function FunnelMetricsVisualizationComponent_For_4_Conditional_30_For_6_Conditio
55320
55352
  i0.ɵɵadvance();
55321
55353
  i0.ɵɵtextInterpolate1(" ", ctx_r2.formatMetricValue(metric_r5.calc.originalTargetValue, metric_r5.calc.metric, false), " ");
55322
55354
  } }
55323
- function FunnelMetricsVisualizationComponent_For_4_Conditional_30_For_6_Conditional_19_Template(rf, ctx) { if (rf & 1) {
55324
- i0.ɵɵelementStart(0, "div")(1, "p", 32);
55355
+ function FunnelMetricsVisualizationComponent_For_4_Conditional_27_For_6_Conditional_19_Template(rf, ctx) { if (rf & 1) {
55356
+ i0.ɵɵelementStart(0, "div")(1, "p", 35);
55325
55357
  i0.ɵɵtext(2);
55326
55358
  i0.ɵɵelementEnd();
55327
- i0.ɵɵelementStart(3, "p", 41);
55359
+ i0.ɵɵelementStart(3, "p", 44);
55328
55360
  i0.ɵɵtext(4);
55329
55361
  i0.ɵɵelementEnd();
55330
- i0.ɵɵelement(5, "symphiq-pacing-status-badge", 42);
55362
+ i0.ɵɵelement(5, "symphiq-pacing-status-badge", 45);
55331
55363
  i0.ɵɵelementEnd();
55332
55364
  } if (rf & 2) {
55333
55365
  const metric_r5 = i0.ɵɵnextContext().$implicit;
@@ -55343,64 +55375,64 @@ function FunnelMetricsVisualizationComponent_For_4_Conditional_30_For_6_Conditio
55343
55375
  i0.ɵɵadvance();
55344
55376
  i0.ɵɵproperty("viewMode", ctx_r2.viewMode())("pacingPercentage", metric_r5.pacingInfo.pacingPercentage)("status", metric_r5.pacingInfo.status)("showAsFullText", true)("isCompact", true)("showEmphasizedPercentage", true);
55345
55377
  } }
55346
- function FunnelMetricsVisualizationComponent_For_4_Conditional_30_For_6_Conditional_28_Template(rf, ctx) { if (rf & 1) {
55378
+ function FunnelMetricsVisualizationComponent_For_4_Conditional_27_For_6_Conditional_28_Template(rf, ctx) { if (rf & 1) {
55347
55379
  const _r6 = i0.ɵɵgetCurrentView();
55348
- i0.ɵɵelementStart(0, "button", 38);
55349
- i0.ɵɵlistener("click", function FunnelMetricsVisualizationComponent_For_4_Conditional_30_For_6_Conditional_28_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r6); const metric_r5 = i0.ɵɵnextContext().$implicit; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.onEditRelatedMetricTarget(metric_r5.calc.metric)); });
55380
+ i0.ɵɵelementStart(0, "button", 41);
55381
+ i0.ɵɵlistener("click", function FunnelMetricsVisualizationComponent_For_4_Conditional_27_For_6_Conditional_28_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r6); const metric_r5 = i0.ɵɵnextContext().$implicit; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.onEditRelatedMetricTarget(metric_r5.calc.metric)); });
55350
55382
  i0.ɵɵnamespaceSVG();
55351
- i0.ɵɵelementStart(1, "svg", 16);
55352
- i0.ɵɵelement(2, "path", 43);
55383
+ i0.ɵɵelementStart(1, "svg", 14);
55384
+ i0.ɵɵelement(2, "path", 46);
55353
55385
  i0.ɵɵelementEnd();
55354
55386
  i0.ɵɵnamespaceHTML();
55355
- i0.ɵɵelementStart(3, "span", 18);
55387
+ i0.ɵɵelementStart(3, "span", 16);
55356
55388
  i0.ɵɵtext(4, "Edit Target");
55357
55389
  i0.ɵɵelementEnd();
55358
- i0.ɵɵelementStart(5, "span", 19);
55390
+ i0.ɵɵelementStart(5, "span", 17);
55359
55391
  i0.ɵɵtext(6, "Edit");
55360
55392
  i0.ɵɵelementEnd()();
55361
55393
  } if (rf & 2) {
55362
55394
  const ctx_r2 = i0.ɵɵnextContext(4);
55363
55395
  i0.ɵɵproperty("ngClass", ctx_r2.editTargetButtonClasses());
55364
55396
  } }
55365
- function FunnelMetricsVisualizationComponent_For_4_Conditional_30_For_6_Template(rf, ctx) { if (rf & 1) {
55397
+ function FunnelMetricsVisualizationComponent_For_4_Conditional_27_For_6_Template(rf, ctx) { if (rf & 1) {
55366
55398
  const _r4 = i0.ɵɵgetCurrentView();
55367
- i0.ɵɵelementStart(0, "div", 27)(1, "div", 28)(2, "p", 29);
55399
+ i0.ɵɵelementStart(0, "div", 30)(1, "div", 31)(2, "p", 32);
55368
55400
  i0.ɵɵtext(3);
55369
55401
  i0.ɵɵelementEnd();
55370
- i0.ɵɵconditionalCreate(4, FunnelMetricsVisualizationComponent_For_4_Conditional_30_For_6_Conditional_4_Template, 3, 2, "button", 30);
55402
+ i0.ɵɵconditionalCreate(4, FunnelMetricsVisualizationComponent_For_4_Conditional_27_For_6_Conditional_4_Template, 3, 2, "button", 33);
55371
55403
  i0.ɵɵelementEnd();
55372
- i0.ɵɵelementStart(5, "div", 31)(6, "div")(7, "p", 32);
55404
+ i0.ɵɵelementStart(5, "div", 34)(6, "div")(7, "p", 35);
55373
55405
  i0.ɵɵtext(8);
55374
55406
  i0.ɵɵelementEnd();
55375
- i0.ɵɵelementStart(9, "p", 33);
55407
+ i0.ɵɵelementStart(9, "p", 36);
55376
55408
  i0.ɵɵtext(10);
55377
55409
  i0.ɵɵelementEnd()();
55378
- i0.ɵɵelementStart(11, "div")(12, "p", 32);
55410
+ i0.ɵɵelementStart(11, "div")(12, "p", 35);
55379
55411
  i0.ɵɵtext(13);
55380
55412
  i0.ɵɵelementEnd();
55381
- i0.ɵɵelementStart(14, "div", 34)(15, "p", 33);
55413
+ i0.ɵɵelementStart(14, "div", 37)(15, "p", 36);
55382
55414
  i0.ɵɵtext(16);
55383
55415
  i0.ɵɵelementEnd();
55384
- i0.ɵɵconditionalCreate(17, FunnelMetricsVisualizationComponent_For_4_Conditional_30_For_6_Conditional_17_Template, 2, 2, "p", 35);
55416
+ i0.ɵɵconditionalCreate(17, FunnelMetricsVisualizationComponent_For_4_Conditional_27_For_6_Conditional_17_Template, 2, 2, "p", 38);
55385
55417
  i0.ɵɵelementEnd();
55386
- i0.ɵɵelement(18, "symphiq-target-change-badge", 36);
55418
+ i0.ɵɵelement(18, "symphiq-target-change-badge", 39);
55387
55419
  i0.ɵɵelementEnd();
55388
- i0.ɵɵconditionalCreate(19, FunnelMetricsVisualizationComponent_For_4_Conditional_30_For_6_Conditional_19_Template, 6, 10, "div");
55420
+ i0.ɵɵconditionalCreate(19, FunnelMetricsVisualizationComponent_For_4_Conditional_27_For_6_Conditional_19_Template, 6, 10, "div");
55389
55421
  i0.ɵɵelementEnd();
55390
- i0.ɵɵelementStart(20, "div", 37)(21, "button", 38);
55391
- i0.ɵɵlistener("click", function FunnelMetricsVisualizationComponent_For_4_Conditional_30_For_6_Template_button_click_21_listener() { const metric_r5 = i0.ɵɵrestoreView(_r4).$implicit; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.onViewRelatedMetricReport(metric_r5.calc.metric)); });
55422
+ i0.ɵɵelementStart(20, "div", 40)(21, "button", 41);
55423
+ i0.ɵɵlistener("click", function FunnelMetricsVisualizationComponent_For_4_Conditional_27_For_6_Template_button_click_21_listener() { const metric_r5 = i0.ɵɵrestoreView(_r4).$implicit; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.onViewRelatedMetricReport(metric_r5.calc.metric)); });
55392
55424
  i0.ɵɵnamespaceSVG();
55393
- i0.ɵɵelementStart(22, "svg", 16);
55394
- i0.ɵɵelement(23, "path", 17);
55425
+ i0.ɵɵelementStart(22, "svg", 14);
55426
+ i0.ɵɵelement(23, "path", 15);
55395
55427
  i0.ɵɵelementEnd();
55396
55428
  i0.ɵɵnamespaceHTML();
55397
- i0.ɵɵelementStart(24, "span", 18);
55429
+ i0.ɵɵelementStart(24, "span", 16);
55398
55430
  i0.ɵɵtext(25, "View Report");
55399
55431
  i0.ɵɵelementEnd();
55400
- i0.ɵɵelementStart(26, "span", 19);
55432
+ i0.ɵɵelementStart(26, "span", 17);
55401
55433
  i0.ɵɵtext(27, "Report");
55402
55434
  i0.ɵɵelementEnd()();
55403
- i0.ɵɵconditionalCreate(28, FunnelMetricsVisualizationComponent_For_4_Conditional_30_For_6_Conditional_28_Template, 7, 1, "button", 39);
55435
+ i0.ɵɵconditionalCreate(28, FunnelMetricsVisualizationComponent_For_4_Conditional_27_For_6_Conditional_28_Template, 7, 1, "button", 42);
55404
55436
  i0.ɵɵelementEnd()();
55405
55437
  } if (rf & 2) {
55406
55438
  const metric_r5 = ctx.$implicit;
@@ -55441,13 +55473,13 @@ function FunnelMetricsVisualizationComponent_For_4_Conditional_30_For_6_Template
55441
55473
  i0.ɵɵadvance(7);
55442
55474
  i0.ɵɵconditional(ctx_r2.hasExistingTargets() ? 28 : -1);
55443
55475
  } }
55444
- function FunnelMetricsVisualizationComponent_For_4_Conditional_30_Template(rf, ctx) { if (rf & 1) {
55445
- i0.ɵɵelement(0, "div", 23);
55446
- i0.ɵɵelementStart(1, "div", 24)(2, "p", 25);
55476
+ function FunnelMetricsVisualizationComponent_For_4_Conditional_27_Template(rf, ctx) { if (rf & 1) {
55477
+ i0.ɵɵelement(0, "div", 26);
55478
+ i0.ɵɵelementStart(1, "div", 27)(2, "p", 28);
55447
55479
  i0.ɵɵtext(3, " Related Metrics ");
55448
55480
  i0.ɵɵelementEnd();
55449
- i0.ɵɵelementStart(4, "div", 26);
55450
- i0.ɵɵrepeaterCreate(5, FunnelMetricsVisualizationComponent_For_4_Conditional_30_For_6_Template, 29, 22, "div", 27, _forTrack1$3);
55481
+ i0.ɵɵelementStart(4, "div", 29);
55482
+ i0.ɵɵrepeaterCreate(5, FunnelMetricsVisualizationComponent_For_4_Conditional_27_For_6_Template, 29, 22, "div", 30, _forTrack1$3);
55451
55483
  i0.ɵɵelementEnd()();
55452
55484
  } if (rf & 2) {
55453
55485
  const stage_r2 = i0.ɵɵnextContext().$implicit;
@@ -55473,29 +55505,24 @@ function FunnelMetricsVisualizationComponent_For_4_Template(rf, ctx) { if (rf &
55473
55505
  i0.ɵɵelementStart(13, "div")(14, "p", 9);
55474
55506
  i0.ɵɵtext(15);
55475
55507
  i0.ɵɵelementEnd();
55476
- i0.ɵɵelementStart(16, "div", 11)(17, "p", 10);
55477
- i0.ɵɵtext(18);
55478
- i0.ɵɵelementEnd();
55479
- i0.ɵɵconditionalCreate(19, FunnelMetricsVisualizationComponent_For_4_Conditional_19_Template, 2, 2, "p", 12);
55508
+ i0.ɵɵconditionalCreate(16, FunnelMetricsVisualizationComponent_For_4_Conditional_16_Template, 4, 2, "div", 11)(17, FunnelMetricsVisualizationComponent_For_4_Conditional_17_Template, 5, 7);
55480
55509
  i0.ɵɵelementEnd();
55481
- i0.ɵɵelement(20, "symphiq-target-change-badge", 13);
55510
+ i0.ɵɵconditionalCreate(18, FunnelMetricsVisualizationComponent_For_4_Conditional_18_Template, 6, 9, "div");
55482
55511
  i0.ɵɵelementEnd();
55483
- i0.ɵɵconditionalCreate(21, FunnelMetricsVisualizationComponent_For_4_Conditional_21_Template, 6, 9, "div");
55484
- i0.ɵɵelementEnd();
55485
- i0.ɵɵelementStart(22, "div", 14)(23, "button", 15);
55486
- i0.ɵɵlistener("click", function FunnelMetricsVisualizationComponent_For_4_Template_button_click_23_listener() { const stage_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onViewStageReport(stage_r2.stageMetric.metric)); });
55512
+ i0.ɵɵelementStart(19, "div", 12)(20, "button", 13);
55513
+ i0.ɵɵlistener("click", function FunnelMetricsVisualizationComponent_For_4_Template_button_click_20_listener() { const stage_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onViewStageReport(stage_r2.stageMetric.metric)); });
55487
55514
  i0.ɵɵnamespaceSVG();
55488
- i0.ɵɵelementStart(24, "svg", 16);
55489
- i0.ɵɵelement(25, "path", 17);
55515
+ i0.ɵɵelementStart(21, "svg", 14);
55516
+ i0.ɵɵelement(22, "path", 15);
55490
55517
  i0.ɵɵelementEnd();
55491
55518
  i0.ɵɵnamespaceHTML();
55492
- i0.ɵɵelementStart(26, "span", 18);
55493
- i0.ɵɵtext(27, "View Report");
55519
+ i0.ɵɵelementStart(23, "span", 16);
55520
+ i0.ɵɵtext(24, "View Report");
55494
55521
  i0.ɵɵelementEnd();
55495
- i0.ɵɵelementStart(28, "span", 19);
55496
- i0.ɵɵtext(29, "Report");
55522
+ i0.ɵɵelementStart(25, "span", 17);
55523
+ i0.ɵɵtext(26, "Report");
55497
55524
  i0.ɵɵelementEnd()()();
55498
- i0.ɵɵconditionalCreate(30, FunnelMetricsVisualizationComponent_For_4_Conditional_30_Template, 7, 1);
55525
+ i0.ɵɵconditionalCreate(27, FunnelMetricsVisualizationComponent_For_4_Conditional_27_Template, 7, 1);
55499
55526
  i0.ɵɵelementEnd();
55500
55527
  } if (rf & 2) {
55501
55528
  const stage_r2 = ctx.$implicit;
@@ -55519,28 +55546,23 @@ function FunnelMetricsVisualizationComponent_For_4_Template(rf, ctx) { if (rf &
55519
55546
  i0.ɵɵproperty("ngClass", ctx_r2.labelClasses());
55520
55547
  i0.ɵɵadvance();
55521
55548
  i0.ɵɵtextInterpolate1(" ", ctx_r2.currentYear(), " Target ");
55522
- i0.ɵɵadvance(2);
55523
- i0.ɵɵproperty("ngClass", ctx_r2.targetValueClasses());
55524
- i0.ɵɵadvance();
55525
- i0.ɵɵtextInterpolate1(" ", ctx_r2.formatMetricValue(stage_r2.stageMetric.targetValue, stage_r2.stageMetric.metric, false), " ");
55526
55549
  i0.ɵɵadvance();
55527
- i0.ɵɵconditional(stage_r2.stageMetric.originalTargetValue !== undefined ? 19 : -1);
55528
- i0.ɵɵadvance();
55529
- i0.ɵɵproperty("viewMode", ctx_r2.viewMode())("percentageChange", stage_r2.stageMetric.percentageIncrease)("metric", stage_r2.stageMetric.metric)("priorYear", ctx_r2.priorYear());
55530
- i0.ɵɵadvance();
55531
- i0.ɵɵconditional(stage_r2.pacingInfo ? 21 : -1);
55550
+ i0.ɵɵconditional(ctx_r2.isCalculatingTargets() ? 16 : 17);
55551
+ i0.ɵɵadvance(2);
55552
+ i0.ɵɵconditional(stage_r2.pacingInfo ? 18 : -1);
55532
55553
  i0.ɵɵadvance();
55533
55554
  i0.ɵɵproperty("ngClass", ctx_r2.stageActionBarClasses());
55534
55555
  i0.ɵɵadvance();
55535
55556
  i0.ɵɵproperty("ngClass", ctx_r2.actionButtonClasses());
55536
55557
  i0.ɵɵadvance(7);
55537
- i0.ɵɵconditional(stage_r2.relatedMetrics.length > 0 ? 30 : -1);
55558
+ i0.ɵɵconditional(stage_r2.relatedMetrics.length > 0 ? 27 : -1);
55538
55559
  } }
55539
55560
  class FunnelMetricsVisualizationComponent {
55540
55561
  constructor() {
55541
55562
  this.viewMode = input(ViewModeEnum.LIGHT, ...(ngDevMode ? [{ debugName: "viewMode" }] : []));
55542
55563
  this.calculations = input([], ...(ngDevMode ? [{ debugName: "calculations" }] : []));
55543
55564
  this.pacingMetrics = input(undefined, ...(ngDevMode ? [{ debugName: "pacingMetrics" }] : []));
55565
+ this.isCalculatingTargets = input(false, ...(ngDevMode ? [{ debugName: "isCalculatingTargets" }] : []));
55544
55566
  this.hasExistingTargets = input(false, ...(ngDevMode ? [{ debugName: "hasExistingTargets" }] : []));
55545
55567
  this.viewStageReport = output();
55546
55568
  this.viewRelatedMetricReport = output();
@@ -55730,12 +55752,22 @@ class FunnelMetricsVisualizationComponent {
55730
55752
  onEditRelatedMetricTarget(metric) {
55731
55753
  this.editRelatedMetricTarget.emit(metric);
55732
55754
  }
55755
+ loadingSpinnerClasses() {
55756
+ return this.viewMode() === ViewModeEnum.DARK
55757
+ ? 'border-purple-400'
55758
+ : 'border-purple-600';
55759
+ }
55760
+ calculatingTextClasses() {
55761
+ return this.viewMode() === ViewModeEnum.DARK
55762
+ ? 'text-purple-300'
55763
+ : 'text-purple-600';
55764
+ }
55733
55765
  static { this.ɵfac = function FunnelMetricsVisualizationComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || FunnelMetricsVisualizationComponent)(); }; }
55734
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FunnelMetricsVisualizationComponent, selectors: [["symphiq-funnel-metrics-visualization"]], inputs: { viewMode: [1, "viewMode"], calculations: [1, "calculations"], pacingMetrics: [1, "pacingMetrics"], hasExistingTargets: [1, "hasExistingTargets"] }, outputs: { viewStageReport: "viewStageReport", viewRelatedMetricReport: "viewRelatedMetricReport", editRelatedMetricTarget: "editRelatedMetricTarget" }, decls: 5, vars: 0, consts: [[1, "space-y-6"], [1, "space-y-8"], [1, "rounded-xl", "p-6", "border-2", "transition-all", "duration-200", 3, "ngClass"], [1, "flex", "items-start", "justify-between", "mb-6"], [1, "flex-1"], [1, "flex", "items-center", "gap-2", "mb-1"], [1, "text-lg", "sm:text-xl", "font-bold", "leading-tight", "m-0", 3, "ngClass"], ["type", "button", "tooltipType", "markdown", "tooltipPosition", "right", 1, "flex-shrink-0", "w-6", "h-6", "rounded-full", "inline-flex", "items-center", "justify-center", "transition-colors", 3, "ngClass", "libSymphiqTooltip"], [1, "grid", "grid-cols-1", "sm:grid-cols-2", "lg:grid-cols-3", "gap-6", "mb-4"], [1, "text-xs", "font-medium", "uppercase", "tracking-wider", "mb-2", 3, "ngClass"], [1, "text-2xl", "font-bold", 3, "ngClass"], [1, "flex", "items-baseline", "gap-2", "mb-3"], [1, "text-base", "line-through", "opacity-60", 3, "ngClass"], [3, "viewMode", "percentageChange", "metric", "priorYear"], [1, "mt-6", "pt-4", "border-t", "flex", "justify-start", 3, "ngClass"], ["type", "button", 1, "inline-flex", "items-center", "gap-2", "px-4", "py-2.5", "rounded-lg", "font-medium", "text-sm", "transition-all", "duration-200", 3, "click", "ngClass"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-4", "h-4"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"], [1, "hidden", "sm:inline"], [1, "sm:hidden"], ["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, "text-2xl", "font-bold", "mb-3", 3, "ngClass"], [3, "viewMode", "pacingPercentage", "status", "showAsFullText", "showEmphasizedPercentage"], [1, "my-8"], [1, "space-y-3"], [1, "text-xs", "font-semibold", "uppercase", "tracking-wider", "mb-3", 3, "ngClass"], [1, "grid", "gap-3"], [1, "p-4", "rounded-lg", 3, "ngClass"], [1, "flex", "items-center", "gap-2", "mb-4"], [1, "text-sm", "sm:text-base", "font-semibold", "leading-tight", 3, "ngClass"], ["type", "button", "tooltipType", "markdown", "tooltipPosition", "right", 1, "flex-shrink-0", "w-5", "h-5", "rounded-full", "inline-flex", "items-center", "justify-center", "transition-colors", 3, "ngClass", "libSymphiqTooltip"], [1, "grid", "grid-cols-1", "sm:grid-cols-2", "lg:grid-cols-3", "gap-4"], [1, "text-xs", "font-medium", "uppercase", "tracking-wider", "mb-1.5", 3, "ngClass"], [1, "text-lg", "font-bold", 3, "ngClass"], [1, "flex", "items-baseline", "gap-2", "mb-2"], [1, "text-sm", "line-through", "opacity-60", 3, "ngClass"], [3, "viewMode", "percentageChange", "metric", "priorYear", "isCompact"], [1, "mt-6", "pt-4", "border-t", "flex", "justify-between", "items-center", 3, "ngClass"], ["type", "button", 1, "inline-flex", "items-center", "gap-2", "px-3", "py-2", "rounded-lg", "font-medium", "text-sm", "transition-all", "duration-200", 3, "click", "ngClass"], ["type", "button", 1, "inline-flex", "items-center", "gap-2", "px-3", "py-2", "rounded-lg", "font-medium", "text-sm", "transition-all", "duration-200", 3, "ngClass"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-3.5", "h-3.5"], [1, "text-lg", "font-bold", "mb-2", 3, "ngClass"], [3, "viewMode", "pacingPercentage", "status", "showAsFullText", "isCompact", "showEmphasizedPercentage"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"]], template: function FunnelMetricsVisualizationComponent_Template(rf, ctx) { if (rf & 1) {
55766
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FunnelMetricsVisualizationComponent, selectors: [["symphiq-funnel-metrics-visualization"]], inputs: { viewMode: [1, "viewMode"], calculations: [1, "calculations"], pacingMetrics: [1, "pacingMetrics"], isCalculatingTargets: [1, "isCalculatingTargets"], hasExistingTargets: [1, "hasExistingTargets"] }, outputs: { viewStageReport: "viewStageReport", viewRelatedMetricReport: "viewRelatedMetricReport", editRelatedMetricTarget: "editRelatedMetricTarget" }, decls: 5, vars: 0, consts: [[1, "space-y-6"], [1, "space-y-8"], [1, "rounded-xl", "p-6", "border-2", "transition-all", "duration-200", 3, "ngClass"], [1, "flex", "items-start", "justify-between", "mb-6"], [1, "flex-1"], [1, "flex", "items-center", "gap-2", "mb-1"], [1, "text-lg", "sm:text-xl", "font-bold", "leading-tight", "m-0", 3, "ngClass"], ["type", "button", "tooltipType", "markdown", "tooltipPosition", "right", 1, "flex-shrink-0", "w-6", "h-6", "rounded-full", "inline-flex", "items-center", "justify-center", "transition-colors", 3, "ngClass", "libSymphiqTooltip"], [1, "grid", "grid-cols-1", "sm:grid-cols-2", "lg:grid-cols-3", "gap-6", "mb-4"], [1, "text-xs", "font-medium", "uppercase", "tracking-wider", "mb-2", 3, "ngClass"], [1, "text-2xl", "font-bold", 3, "ngClass"], [1, "flex", "items-center", "gap-2", "mb-3"], [1, "mt-6", "pt-4", "border-t", "flex", "justify-start", 3, "ngClass"], ["type", "button", 1, "inline-flex", "items-center", "gap-2", "px-4", "py-2.5", "rounded-lg", "font-medium", "text-sm", "transition-all", "duration-200", 3, "click", "ngClass"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-4", "h-4"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"], [1, "hidden", "sm:inline"], [1, "sm:hidden"], ["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, "w-5", "h-5", "border-2", "border-t-transparent", "rounded-full", "animate-spin", 3, "ngClass"], [1, "text-lg", "font-medium", 3, "ngClass"], [1, "flex", "items-baseline", "gap-2", "mb-3"], [1, "text-base", "line-through", "opacity-60", 3, "ngClass"], [3, "viewMode", "percentageChange", "metric", "priorYear"], [1, "text-2xl", "font-bold", "mb-3", 3, "ngClass"], [3, "viewMode", "pacingPercentage", "status", "showAsFullText", "showEmphasizedPercentage"], [1, "my-8"], [1, "space-y-3"], [1, "text-xs", "font-semibold", "uppercase", "tracking-wider", "mb-3", 3, "ngClass"], [1, "grid", "gap-3"], [1, "p-4", "rounded-lg", 3, "ngClass"], [1, "flex", "items-center", "gap-2", "mb-4"], [1, "text-sm", "sm:text-base", "font-semibold", "leading-tight", 3, "ngClass"], ["type", "button", "tooltipType", "markdown", "tooltipPosition", "right", 1, "flex-shrink-0", "w-5", "h-5", "rounded-full", "inline-flex", "items-center", "justify-center", "transition-colors", 3, "ngClass", "libSymphiqTooltip"], [1, "grid", "grid-cols-1", "sm:grid-cols-2", "lg:grid-cols-3", "gap-4"], [1, "text-xs", "font-medium", "uppercase", "tracking-wider", "mb-1.5", 3, "ngClass"], [1, "text-lg", "font-bold", 3, "ngClass"], [1, "flex", "items-baseline", "gap-2", "mb-2"], [1, "text-sm", "line-through", "opacity-60", 3, "ngClass"], [3, "viewMode", "percentageChange", "metric", "priorYear", "isCompact"], [1, "mt-6", "pt-4", "border-t", "flex", "justify-between", "items-center", 3, "ngClass"], ["type", "button", 1, "inline-flex", "items-center", "gap-2", "px-3", "py-2", "rounded-lg", "font-medium", "text-sm", "transition-all", "duration-200", 3, "click", "ngClass"], ["type", "button", 1, "inline-flex", "items-center", "gap-2", "px-3", "py-2", "rounded-lg", "font-medium", "text-sm", "transition-all", "duration-200", 3, "ngClass"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-3.5", "h-3.5"], [1, "text-lg", "font-bold", "mb-2", 3, "ngClass"], [3, "viewMode", "pacingPercentage", "status", "showAsFullText", "isCompact", "showEmphasizedPercentage"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"]], template: function FunnelMetricsVisualizationComponent_Template(rf, ctx) { if (rf & 1) {
55735
55767
  i0.ɵɵelementStart(0, "div", 0);
55736
55768
  i0.ɵɵelement(1, "symphiq-tooltip-container");
55737
55769
  i0.ɵɵelementStart(2, "div", 1);
55738
- i0.ɵɵrepeaterCreate(3, FunnelMetricsVisualizationComponent_For_4_Template, 31, 21, "div", 2, _forTrack0$j);
55770
+ i0.ɵɵrepeaterCreate(3, FunnelMetricsVisualizationComponent_For_4_Template, 28, 15, "div", 2, _forTrack0$j);
55739
55771
  i0.ɵɵelementEnd()();
55740
55772
  } if (rf & 2) {
55741
55773
  i0.ɵɵadvance(3);
@@ -55791,22 +55823,29 @@ class FunnelMetricsVisualizationComponent {
55791
55823
  <p [ngClass]="labelClasses()" class="text-xs font-medium uppercase tracking-wider mb-2">
55792
55824
  {{ currentYear() }} Target
55793
55825
  </p>
55794
- <div class="flex items-baseline gap-2 mb-3">
55795
- <p [ngClass]="targetValueClasses()" class="text-2xl font-bold">
55796
- {{ formatMetricValue(stage.stageMetric.targetValue, stage.stageMetric.metric, false) }}
55797
- </p>
55798
- @if (stage.stageMetric.originalTargetValue !== undefined) {
55799
- <p [ngClass]="originalValueClasses()" class="text-base line-through opacity-60">
55800
- {{ formatMetricValue(stage.stageMetric.originalTargetValue, stage.stageMetric.metric, false) }}
55826
+ @if (isCalculatingTargets()) {
55827
+ <div class="flex items-center gap-2 mb-3">
55828
+ <div [ngClass]="loadingSpinnerClasses()" class="w-5 h-5 border-2 border-t-transparent rounded-full animate-spin"></div>
55829
+ <p [ngClass]="calculatingTextClasses()" class="text-lg font-medium">Calculating...</p>
55830
+ </div>
55831
+ } @else {
55832
+ <div class="flex items-baseline gap-2 mb-3">
55833
+ <p [ngClass]="targetValueClasses()" class="text-2xl font-bold">
55834
+ {{ formatMetricValue(stage.stageMetric.targetValue, stage.stageMetric.metric, false) }}
55801
55835
  </p>
55802
- }
55803
- </div>
55804
- <symphiq-target-change-badge
55805
- [viewMode]="viewMode()"
55806
- [percentageChange]="stage.stageMetric.percentageIncrease"
55807
- [metric]="stage.stageMetric.metric"
55808
- [priorYear]="priorYear()"
55809
- />
55836
+ @if (stage.stageMetric.originalTargetValue !== undefined) {
55837
+ <p [ngClass]="originalValueClasses()" class="text-base line-through opacity-60">
55838
+ {{ formatMetricValue(stage.stageMetric.originalTargetValue, stage.stageMetric.metric, false) }}
55839
+ </p>
55840
+ }
55841
+ </div>
55842
+ <symphiq-target-change-badge
55843
+ [viewMode]="viewMode()"
55844
+ [percentageChange]="stage.stageMetric.percentageIncrease"
55845
+ [metric]="stage.stageMetric.metric"
55846
+ [priorYear]="priorYear()"
55847
+ />
55848
+ }
55810
55849
  </div>
55811
55850
  @if (stage.pacingInfo) {
55812
55851
  <div>
@@ -55957,8 +55996,8 @@ class FunnelMetricsVisualizationComponent {
55957
55996
  </div>
55958
55997
  `
55959
55998
  }]
55960
- }], 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 }] }], 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"] }] }); })();
55961
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FunnelMetricsVisualizationComponent, { className: "FunnelMetricsVisualizationComponent", filePath: "lib/components/revenue-calculator-dashboard/funnel-metrics-visualization.component.ts", lineNumber: 225 }); })();
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"] }] }); })();
56000
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FunnelMetricsVisualizationComponent, { className: "FunnelMetricsVisualizationComponent", filePath: "lib/components/revenue-calculator-dashboard/funnel-metrics-visualization.component.ts", lineNumber: 232 }); })();
55962
56001
 
55963
56002
  function StickySubmitBarComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
55964
56003
  i0.ɵɵelementStart(0, "div", 4);
@@ -58997,17 +59036,17 @@ function EditMetricTargetModalComponent_Conditional_0_Conditional_27_Template(rf
58997
59036
  i0.ɵɵelementStart(0, "div", 18);
58998
59037
  i0.ɵɵnamespaceSVG();
58999
59038
  i0.ɵɵelementStart(1, "svg", 19);
59000
- i0.ɵɵelement(2, "path", 31);
59039
+ i0.ɵɵelement(2, "path", 32);
59001
59040
  i0.ɵɵelementEnd();
59002
59041
  i0.ɵɵnamespaceHTML();
59003
- i0.ɵɵelementStart(3, "div")(4, "div", 32)(5, "p", 21);
59042
+ i0.ɵɵelementStart(3, "div")(4, "div", 33)(5, "p", 21);
59004
59043
  i0.ɵɵtext(6, " Current Pace Projection ");
59005
59044
  i0.ɵɵelementEnd();
59006
- i0.ɵɵelementStart(7, "button", 33);
59045
+ i0.ɵɵelementStart(7, "button", 34);
59007
59046
  i0.ɵɵlistener("click", function EditMetricTargetModalComponent_Conditional_0_Conditional_27_Template_button_click_7_listener($event) { i0.ɵɵrestoreView(_r3); return i0.ɵɵresetView($event.stopPropagation()); });
59008
59047
  i0.ɵɵnamespaceSVG();
59009
- i0.ɵɵelementStart(8, "svg", 34);
59010
- i0.ɵɵelement(9, "path", 35);
59048
+ i0.ɵɵelementStart(8, "svg", 35);
59049
+ i0.ɵɵelement(9, "path", 36);
59011
59050
  i0.ɵɵelementEnd()()();
59012
59051
  i0.ɵɵnamespaceHTML();
59013
59052
  i0.ɵɵelementStart(10, "p", 22);
@@ -59028,11 +59067,11 @@ function EditMetricTargetModalComponent_Conditional_0_Conditional_27_Template(rf
59028
59067
  } }
59029
59068
  function EditMetricTargetModalComponent_Conditional_0_Conditional_34_Conditional_1_Template(rf, ctx) { if (rf & 1) {
59030
59069
  const _r4 = i0.ɵɵgetCurrentView();
59031
- i0.ɵɵelementStart(0, "input", 37, 0);
59070
+ i0.ɵɵelementStart(0, "input", 38, 0);
59032
59071
  i0.ɵɵtwoWayListener("ngModelChange", function EditMetricTargetModalComponent_Conditional_0_Conditional_34_Conditional_1_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.absoluteInput, $event) || (ctx_r1.absoluteInput = $event); return i0.ɵɵresetView($event); });
59033
59072
  i0.ɵɵlistener("ngModelChange", function EditMetricTargetModalComponent_Conditional_0_Conditional_34_Conditional_1_Template_input_ngModelChange_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.onAbsoluteInputChange()); });
59034
59073
  i0.ɵɵelementEnd();
59035
- i0.ɵɵelementStart(2, "span", 38);
59074
+ i0.ɵɵelementStart(2, "span", 39);
59036
59075
  i0.ɵɵtext(3, " % ");
59037
59076
  i0.ɵɵelementEnd();
59038
59077
  } if (rf & 2) {
@@ -59044,10 +59083,10 @@ function EditMetricTargetModalComponent_Conditional_0_Conditional_34_Conditional
59044
59083
  } }
59045
59084
  function EditMetricTargetModalComponent_Conditional_0_Conditional_34_Conditional_2_Template(rf, ctx) { if (rf & 1) {
59046
59085
  const _r5 = i0.ɵɵgetCurrentView();
59047
- i0.ɵɵelementStart(0, "span", 39);
59086
+ i0.ɵɵelementStart(0, "span", 40);
59048
59087
  i0.ɵɵtext(1, " $ ");
59049
59088
  i0.ɵɵelementEnd();
59050
- i0.ɵɵelementStart(2, "input", 40, 0);
59089
+ i0.ɵɵelementStart(2, "input", 41, 0);
59051
59090
  i0.ɵɵtwoWayListener("ngModelChange", function EditMetricTargetModalComponent_Conditional_0_Conditional_34_Conditional_2_Template_input_ngModelChange_2_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.absoluteInput, $event) || (ctx_r1.absoluteInput = $event); return i0.ɵɵresetView($event); });
59052
59091
  i0.ɵɵlistener("ngModelChange", function EditMetricTargetModalComponent_Conditional_0_Conditional_34_Conditional_2_Template_input_ngModelChange_2_listener() { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.onAbsoluteInputChange()); });
59053
59092
  i0.ɵɵelementEnd();
@@ -59060,7 +59099,7 @@ function EditMetricTargetModalComponent_Conditional_0_Conditional_34_Conditional
59060
59099
  } }
59061
59100
  function EditMetricTargetModalComponent_Conditional_0_Conditional_34_Conditional_3_Template(rf, ctx) { if (rf & 1) {
59062
59101
  const _r6 = i0.ɵɵgetCurrentView();
59063
- i0.ɵɵelementStart(0, "input", 41, 0);
59102
+ i0.ɵɵelementStart(0, "input", 42, 0);
59064
59103
  i0.ɵɵtwoWayListener("ngModelChange", function EditMetricTargetModalComponent_Conditional_0_Conditional_34_Conditional_3_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.absoluteInput, $event) || (ctx_r1.absoluteInput = $event); return i0.ɵɵresetView($event); });
59065
59104
  i0.ɵɵlistener("ngModelChange", function EditMetricTargetModalComponent_Conditional_0_Conditional_34_Conditional_3_Template_input_ngModelChange_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.onAbsoluteInputChange()); })("keydown", function EditMetricTargetModalComponent_Conditional_0_Conditional_34_Conditional_3_Template_input_keydown_0_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.onIntegerKeyDown($event)); });
59066
59105
  i0.ɵɵelementEnd();
@@ -59071,7 +59110,7 @@ function EditMetricTargetModalComponent_Conditional_0_Conditional_34_Conditional
59071
59110
  } }
59072
59111
  function EditMetricTargetModalComponent_Conditional_0_Conditional_34_Template(rf, ctx) { if (rf & 1) {
59073
59112
  i0.ɵɵelementStart(0, "div", 26);
59074
- i0.ɵɵconditionalCreate(1, EditMetricTargetModalComponent_Conditional_0_Conditional_34_Conditional_1_Template, 4, 3)(2, EditMetricTargetModalComponent_Conditional_0_Conditional_34_Conditional_2_Template, 4, 3)(3, EditMetricTargetModalComponent_Conditional_0_Conditional_34_Conditional_3_Template, 2, 2, "input", 36);
59113
+ i0.ɵɵconditionalCreate(1, EditMetricTargetModalComponent_Conditional_0_Conditional_34_Conditional_1_Template, 4, 3)(2, EditMetricTargetModalComponent_Conditional_0_Conditional_34_Conditional_2_Template, 4, 3)(3, EditMetricTargetModalComponent_Conditional_0_Conditional_34_Conditional_3_Template, 2, 2, "input", 37);
59075
59114
  i0.ɵɵelementEnd();
59076
59115
  } if (rf & 2) {
59077
59116
  const ctx_r1 = i0.ɵɵnextContext(2);
@@ -59080,11 +59119,11 @@ function EditMetricTargetModalComponent_Conditional_0_Conditional_34_Template(rf
59080
59119
  } }
59081
59120
  function EditMetricTargetModalComponent_Conditional_0_Conditional_35_Template(rf, ctx) { if (rf & 1) {
59082
59121
  const _r7 = i0.ɵɵgetCurrentView();
59083
- i0.ɵɵelementStart(0, "div", 26)(1, "input", 42, 1);
59122
+ i0.ɵɵelementStart(0, "div", 26)(1, "input", 43, 1);
59084
59123
  i0.ɵɵtwoWayListener("ngModelChange", function EditMetricTargetModalComponent_Conditional_0_Conditional_35_Template_input_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(2); i0.ɵɵtwoWayBindingSet(ctx_r1.percentageInput, $event) || (ctx_r1.percentageInput = $event); return i0.ɵɵresetView($event); });
59085
59124
  i0.ɵɵlistener("ngModelChange", function EditMetricTargetModalComponent_Conditional_0_Conditional_35_Template_input_ngModelChange_1_listener() { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onPercentageInputChange()); });
59086
59125
  i0.ɵɵelementEnd();
59087
- i0.ɵɵelementStart(3, "span", 38);
59126
+ i0.ɵɵelementStart(3, "span", 39);
59088
59127
  i0.ɵɵtext(4, " % ");
59089
59128
  i0.ɵɵelementEnd()();
59090
59129
  } if (rf & 2) {
@@ -59095,81 +59134,147 @@ function EditMetricTargetModalComponent_Conditional_0_Conditional_35_Template(rf
59095
59134
  i0.ɵɵadvance(2);
59096
59135
  i0.ɵɵproperty("ngClass", ctx_r1.inputSuffixClasses());
59097
59136
  } }
59098
- function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_17_Template(rf, ctx) { if (rf & 1) {
59137
+ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_7_Template(rf, ctx) { if (rf & 1) {
59138
+ i0.ɵɵelementStart(0, "p", 46);
59139
+ i0.ɵɵtext(1);
59140
+ i0.ɵɵelementEnd();
59141
+ } if (rf & 2) {
59142
+ const ctx_r1 = i0.ɵɵnextContext(3);
59143
+ i0.ɵɵproperty("ngClass", ctx_r1.originalValueClasses());
59144
+ i0.ɵɵadvance();
59145
+ i0.ɵɵtextInterpolate1(" ", ctx_r1.formatMetricValue(ctx_r1.initialTargetValue(), false), " ");
59146
+ } }
59147
+ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_20_Template(rf, ctx) { if (rf & 1) {
59099
59148
  i0.ɵɵtext(0);
59100
59149
  } if (rf & 2) {
59101
59150
  const ctx_r1 = i0.ɵɵnextContext(3);
59102
59151
  i0.ɵɵtextInterpolate1(" ", ctx_r1.formatMetricValue(ctx_r1.animatedIncreaseAmount()), " ");
59103
59152
  } }
59104
- function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_18_Template(rf, ctx) { if (rf & 1) {
59153
+ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_21_Template(rf, ctx) { if (rf & 1) {
59105
59154
  i0.ɵɵtext(0, " -- ");
59106
59155
  } }
59107
- function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_23_Template(rf, ctx) { if (rf & 1) {
59156
+ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_22_Template(rf, ctx) { if (rf & 1) {
59157
+ i0.ɵɵelementStart(0, "p", 55);
59158
+ i0.ɵɵtext(1);
59159
+ i0.ɵɵelementEnd();
59160
+ } if (rf & 2) {
59161
+ const ctx_r1 = i0.ɵɵnextContext(3);
59162
+ i0.ɵɵproperty("ngClass", ctx_r1.originalValueClasses());
59163
+ i0.ɵɵadvance();
59164
+ i0.ɵɵtextInterpolate1(" ", ctx_r1.formatMetricValue(ctx_r1.Math.abs(ctx_r1.initialIncreaseAmount())), " ");
59165
+ } }
59166
+ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_28_Template(rf, ctx) { if (rf & 1) {
59108
59167
  i0.ɵɵtext(0);
59109
59168
  } if (rf & 2) {
59110
59169
  const ctx_r1 = i0.ɵɵnextContext(3);
59111
59170
  i0.ɵɵtextInterpolate2(" ", ctx_r1.animatedPercentageGrowth() >= 0 ? "+" : "", "", ctx_r1.formatPercentage(ctx_r1.animatedPercentageGrowth(), 1), " ");
59112
59171
  } }
59113
- function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_24_Template(rf, ctx) { if (rf & 1) {
59172
+ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_29_Template(rf, ctx) { if (rf & 1) {
59114
59173
  i0.ɵɵtext(0, " -- ");
59115
59174
  } }
59116
- function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_25_Conditional_11_Template(rf, ctx) { if (rf & 1) {
59175
+ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_30_Template(rf, ctx) { if (rf & 1) {
59176
+ i0.ɵɵelementStart(0, "p", 55);
59177
+ i0.ɵɵtext(1);
59178
+ i0.ɵɵelementEnd();
59179
+ } if (rf & 2) {
59180
+ const ctx_r1 = i0.ɵɵnextContext(3);
59181
+ i0.ɵɵproperty("ngClass", ctx_r1.originalValueClasses());
59182
+ i0.ɵɵadvance();
59183
+ i0.ɵɵtextInterpolate2(" ", ctx_r1.initialPercentageGrowth() >= 0 ? "+" : "", "", ctx_r1.formatPercentage(ctx_r1.initialPercentageGrowth(), 1), " ");
59184
+ } }
59185
+ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_31_Conditional_12_Template(rf, ctx) { if (rf & 1) {
59117
59186
  i0.ɵɵtext(0);
59118
59187
  } if (rf & 2) {
59119
59188
  const ctx_r1 = i0.ɵɵnextContext(4);
59120
59189
  i0.ɵɵtextInterpolate1(" ", ctx_r1.formatMetricValue(ctx_r1.animatedGapAmount()), " ");
59121
59190
  } }
59122
- function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_25_Conditional_12_Template(rf, ctx) { if (rf & 1) {
59191
+ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_31_Conditional_13_Template(rf, ctx) { if (rf & 1) {
59123
59192
  i0.ɵɵtext(0, " -- ");
59124
59193
  } }
59125
- function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_25_Conditional_21_Conditional_0_Template(rf, ctx) { if (rf & 1) {
59194
+ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_31_Conditional_14_Template(rf, ctx) { if (rf & 1) {
59195
+ i0.ɵɵelementStart(0, "p", 55);
59196
+ i0.ɵɵtext(1);
59197
+ i0.ɵɵelementEnd();
59198
+ } if (rf & 2) {
59199
+ const ctx_r1 = i0.ɵɵnextContext(4);
59200
+ i0.ɵɵproperty("ngClass", ctx_r1.originalValueClasses());
59201
+ i0.ɵɵadvance();
59202
+ i0.ɵɵtextInterpolate1(" ", ctx_r1.formatMetricValue(ctx_r1.Math.abs(ctx_r1.initialGapToClose().amount)), " ");
59203
+ } }
59204
+ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_31_Conditional_24_Conditional_0_Template(rf, ctx) { if (rf & 1) {
59126
59205
  i0.ɵɵtext(0);
59127
59206
  } if (rf & 2) {
59128
59207
  const ctx_r1 = i0.ɵɵnextContext(5);
59129
59208
  i0.ɵɵtextInterpolate1(" +", ctx_r1.formatPercentage(ctx_r1.Math.abs(ctx_r1.animatedGapPercentage()), 1), " ");
59130
59209
  } }
59131
- function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_25_Conditional_21_Conditional_1_Template(rf, ctx) { if (rf & 1) {
59210
+ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_31_Conditional_24_Conditional_1_Template(rf, ctx) { if (rf & 1) {
59132
59211
  i0.ɵɵtext(0);
59133
59212
  } if (rf & 2) {
59134
59213
  const ctx_r1 = i0.ɵɵnextContext(5);
59135
59214
  i0.ɵɵtextInterpolate2(" ", ctx_r1.animatedGapPercentage() > 0 ? "+" : "", "", ctx_r1.formatPercentage(ctx_r1.animatedGapPercentage(), 1), " ");
59136
59215
  } }
59137
- function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_25_Conditional_21_Template(rf, ctx) { if (rf & 1) {
59138
- i0.ɵɵconditionalCreate(0, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_25_Conditional_21_Conditional_0_Template, 1, 1)(1, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_25_Conditional_21_Conditional_1_Template, 1, 2);
59216
+ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_31_Conditional_24_Template(rf, ctx) { if (rf & 1) {
59217
+ i0.ɵɵconditionalCreate(0, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_31_Conditional_24_Conditional_0_Template, 1, 1)(1, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_31_Conditional_24_Conditional_1_Template, 1, 2);
59139
59218
  } if (rf & 2) {
59140
59219
  const ctx_r1 = i0.ɵɵnextContext(4);
59141
59220
  i0.ɵɵconditional(ctx_r1.isPaceAhead() ? 0 : 1);
59142
59221
  } }
59143
- function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_25_Conditional_22_Template(rf, ctx) { if (rf & 1) {
59222
+ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_31_Conditional_25_Template(rf, ctx) { if (rf & 1) {
59144
59223
  i0.ɵɵtext(0, " -- ");
59145
59224
  } }
59146
- function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_25_Template(rf, ctx) { if (rf & 1) {
59225
+ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_31_Conditional_26_Conditional_1_Template(rf, ctx) { if (rf & 1) {
59226
+ i0.ɵɵtext(0);
59227
+ } if (rf & 2) {
59228
+ const ctx_r1 = i0.ɵɵnextContext(5);
59229
+ i0.ɵɵtextInterpolate1(" +", ctx_r1.formatPercentage(ctx_r1.Math.abs(ctx_r1.initialGapToClose().percentage), 1), " ");
59230
+ } }
59231
+ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_31_Conditional_26_Conditional_2_Template(rf, ctx) { if (rf & 1) {
59232
+ i0.ɵɵtext(0);
59233
+ } if (rf & 2) {
59234
+ const ctx_r1 = i0.ɵɵnextContext(5);
59235
+ i0.ɵɵtextInterpolate2(" ", ctx_r1.initialGapToClose().percentage > 0 ? "+" : "", "", ctx_r1.formatPercentage(ctx_r1.initialGapToClose().percentage, 1), " ");
59236
+ } }
59237
+ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_31_Conditional_26_Template(rf, ctx) { if (rf & 1) {
59238
+ i0.ɵɵelementStart(0, "p", 55);
59239
+ i0.ɵɵconditionalCreate(1, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_31_Conditional_26_Conditional_1_Template, 1, 1)(2, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_31_Conditional_26_Conditional_2_Template, 1, 2);
59240
+ i0.ɵɵelementEnd();
59241
+ } if (rf & 2) {
59242
+ const ctx_r1 = i0.ɵɵnextContext(4);
59243
+ i0.ɵɵproperty("ngClass", ctx_r1.originalValueClasses());
59244
+ i0.ɵɵadvance();
59245
+ i0.ɵɵconditional(ctx_r1.initialIsPaceAhead() ? 1 : 2);
59246
+ } }
59247
+ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_31_Template(rf, ctx) { if (rf & 1) {
59147
59248
  const _r8 = i0.ɵɵgetCurrentView();
59148
- i0.ɵɵelementStart(0, "div", 44)(1, "div", 45);
59149
- i0.ɵɵelement(2, "div", 46);
59150
- i0.ɵɵelementStart(3, "span", 47);
59249
+ i0.ɵɵelementStart(0, "div", 47)(1, "div", 48);
59250
+ i0.ɵɵelement(2, "div", 49);
59251
+ i0.ɵɵelementStart(3, "span", 50);
59151
59252
  i0.ɵɵtext(4);
59152
59253
  i0.ɵɵelementEnd();
59153
- i0.ɵɵelement(5, "div", 46);
59254
+ i0.ɵɵelement(5, "div", 49);
59154
59255
  i0.ɵɵelementEnd();
59155
- i0.ɵɵelementStart(6, "div", 48)(7, "div")(8, "p", 49);
59256
+ i0.ɵɵelementStart(6, "div", 51)(7, "div")(8, "p", 52);
59156
59257
  i0.ɵɵtext(9);
59157
59258
  i0.ɵɵelementEnd();
59158
- i0.ɵɵelementStart(10, "p", 50);
59159
- i0.ɵɵconditionalCreate(11, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_25_Conditional_11_Template, 1, 1)(12, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_25_Conditional_12_Template, 1, 0);
59259
+ i0.ɵɵelementStart(10, "div", 53)(11, "p", 54);
59260
+ i0.ɵɵconditionalCreate(12, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_31_Conditional_12_Template, 1, 1)(13, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_31_Conditional_13_Template, 1, 0);
59261
+ i0.ɵɵelementEnd();
59262
+ i0.ɵɵconditionalCreate(14, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_31_Conditional_14_Template, 2, 2, "p", 55);
59160
59263
  i0.ɵɵelementEnd()();
59161
- i0.ɵɵelementStart(13, "div")(14, "div", 51)(15, "p", 21);
59162
- i0.ɵɵtext(16);
59264
+ i0.ɵɵelementStart(15, "div")(16, "div", 56)(17, "p", 21);
59265
+ i0.ɵɵtext(18);
59163
59266
  i0.ɵɵelementEnd();
59164
- i0.ɵɵelementStart(17, "button", 33);
59165
- i0.ɵɵlistener("click", function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_25_Template_button_click_17_listener($event) { i0.ɵɵrestoreView(_r8); return i0.ɵɵresetView($event.stopPropagation()); });
59267
+ i0.ɵɵelementStart(19, "button", 34);
59268
+ i0.ɵɵlistener("click", function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_31_Template_button_click_19_listener($event) { i0.ɵɵrestoreView(_r8); return i0.ɵɵresetView($event.stopPropagation()); });
59166
59269
  i0.ɵɵnamespaceSVG();
59167
- i0.ɵɵelementStart(18, "svg", 34);
59168
- i0.ɵɵelement(19, "path", 35);
59270
+ i0.ɵɵelementStart(20, "svg", 35);
59271
+ i0.ɵɵelement(21, "path", 36);
59169
59272
  i0.ɵɵelementEnd()()();
59170
59273
  i0.ɵɵnamespaceHTML();
59171
- i0.ɵɵelementStart(20, "p", 50);
59172
- i0.ɵɵconditionalCreate(21, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_25_Conditional_21_Template, 2, 1)(22, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_25_Conditional_22_Template, 1, 0);
59274
+ i0.ɵɵelementStart(22, "div", 53)(23, "p", 54);
59275
+ i0.ɵɵconditionalCreate(24, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_31_Conditional_24_Template, 2, 1)(25, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_31_Conditional_25_Template, 1, 0);
59276
+ i0.ɵɵelementEnd();
59277
+ i0.ɵɵconditionalCreate(26, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_31_Conditional_26_Template, 3, 2, "p", 55);
59173
59278
  i0.ɵɵelementEnd()()()();
59174
59279
  } if (rf & 2) {
59175
59280
  const ctx_r1 = i0.ɵɵnextContext(3);
@@ -59185,48 +59290,58 @@ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional
59185
59290
  i0.ɵɵproperty("ngClass", ctx_r1.calculatedLabelClasses());
59186
59291
  i0.ɵɵadvance();
59187
59292
  i0.ɵɵtextInterpolate1(" ", ctx_r1.gapLabel(), " ");
59188
- i0.ɵɵadvance();
59293
+ i0.ɵɵadvance(2);
59189
59294
  i0.ɵɵproperty("ngClass", ctx_r1.calculatedSecondaryClasses());
59190
59295
  i0.ɵɵadvance();
59191
- i0.ɵɵconditional(ctx_r1.isTargetValid() ? 11 : 12);
59192
- i0.ɵɵadvance(4);
59296
+ i0.ɵɵconditional(ctx_r1.isTargetValid() ? 12 : 13);
59297
+ i0.ɵɵadvance(2);
59298
+ i0.ɵɵconditional(ctx_r1.hasChangedFromInitial() && ctx_r1.initialGapToClose().amount !== 0 ? 14 : -1);
59299
+ i0.ɵɵadvance(3);
59193
59300
  i0.ɵɵproperty("ngClass", ctx_r1.calculatedLabelClasses());
59194
59301
  i0.ɵɵadvance();
59195
59302
  i0.ɵɵtextInterpolate1(" ", ctx_r1.gapPercentageLabel(), " ");
59196
59303
  i0.ɵɵadvance();
59197
59304
  i0.ɵɵproperty("ngClass", ctx_r1.infoIconClasses())("libSymphiqTooltip", ctx_r1.gapTooltip());
59198
- i0.ɵɵadvance(3);
59305
+ i0.ɵɵadvance(4);
59199
59306
  i0.ɵɵproperty("ngClass", ctx_r1.calculatedSecondaryClasses());
59200
59307
  i0.ɵɵadvance();
59201
- i0.ɵɵconditional(ctx_r1.isTargetValid() ? 21 : 22);
59308
+ i0.ɵɵconditional(ctx_r1.isTargetValid() ? 24 : 25);
59309
+ i0.ɵɵadvance(2);
59310
+ i0.ɵɵconditional(ctx_r1.hasChangedFromInitial() && ctx_r1.initialGapToClose().percentage !== 0 ? 26 : -1);
59202
59311
  } }
59203
59312
  function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Template(rf, ctx) { if (rf & 1) {
59204
59313
  i0.ɵɵelementStart(0, "div", 27)(1, "div")(2, "p", 21);
59205
59314
  i0.ɵɵtext(3);
59206
59315
  i0.ɵɵelementEnd();
59207
- i0.ɵɵelementStart(4, "p", 43);
59208
- i0.ɵɵtext(5);
59316
+ i0.ɵɵelementStart(4, "div", 44)(5, "p", 45);
59317
+ i0.ɵɵtext(6);
59318
+ i0.ɵɵelementEnd();
59319
+ i0.ɵɵconditionalCreate(7, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_7_Template, 2, 2, "p", 46);
59209
59320
  i0.ɵɵelementEnd()();
59210
- i0.ɵɵelementStart(6, "div", 44)(7, "div", 45);
59211
- i0.ɵɵelement(8, "div", 46);
59212
- i0.ɵɵelementStart(9, "span", 47);
59213
- i0.ɵɵtext(10);
59321
+ i0.ɵɵelementStart(8, "div", 47)(9, "div", 48);
59322
+ i0.ɵɵelement(10, "div", 49);
59323
+ i0.ɵɵelementStart(11, "span", 50);
59324
+ i0.ɵɵtext(12);
59214
59325
  i0.ɵɵelementEnd();
59215
- i0.ɵɵelement(11, "div", 46);
59326
+ i0.ɵɵelement(13, "div", 49);
59216
59327
  i0.ɵɵelementEnd();
59217
- i0.ɵɵelementStart(12, "div", 48)(13, "div")(14, "p", 49);
59218
- i0.ɵɵtext(15);
59328
+ i0.ɵɵelementStart(14, "div", 51)(15, "div")(16, "p", 52);
59329
+ i0.ɵɵtext(17);
59330
+ i0.ɵɵelementEnd();
59331
+ i0.ɵɵelementStart(18, "div", 53)(19, "p", 54);
59332
+ i0.ɵɵconditionalCreate(20, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_20_Template, 1, 1)(21, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_21_Template, 1, 0);
59219
59333
  i0.ɵɵelementEnd();
59220
- i0.ɵɵelementStart(16, "p", 50);
59221
- i0.ɵɵconditionalCreate(17, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_17_Template, 1, 1)(18, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_18_Template, 1, 0);
59334
+ i0.ɵɵconditionalCreate(22, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_22_Template, 2, 2, "p", 55);
59222
59335
  i0.ɵɵelementEnd()();
59223
- i0.ɵɵelementStart(19, "div")(20, "p", 49);
59224
- i0.ɵɵtext(21);
59336
+ i0.ɵɵelementStart(23, "div")(24, "p", 52);
59337
+ i0.ɵɵtext(25);
59338
+ i0.ɵɵelementEnd();
59339
+ i0.ɵɵelementStart(26, "div", 53)(27, "p", 54);
59340
+ i0.ɵɵconditionalCreate(28, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_28_Template, 1, 2)(29, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_29_Template, 1, 0);
59225
59341
  i0.ɵɵelementEnd();
59226
- i0.ɵɵelementStart(22, "p", 50);
59227
- i0.ɵɵconditionalCreate(23, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_23_Template, 1, 2)(24, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_24_Template, 1, 0);
59342
+ i0.ɵɵconditionalCreate(30, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_30_Template, 2, 3, "p", 55);
59228
59343
  i0.ɵɵelementEnd()()()();
59229
- i0.ɵɵconditionalCreate(25, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_25_Template, 23, 14, "div", 44);
59344
+ i0.ɵɵconditionalCreate(31, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_31_Template, 27, 16, "div", 47);
59230
59345
  i0.ɵɵelementEnd();
59231
59346
  } if (rf & 2) {
59232
59347
  const ctx_r1 = i0.ɵɵnextContext(2);
@@ -59235,10 +59350,12 @@ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Template(rf
59235
59350
  i0.ɵɵproperty("ngClass", ctx_r1.calculatedLabelClasses());
59236
59351
  i0.ɵɵadvance();
59237
59352
  i0.ɵɵtextInterpolate2(" ", ctx_r1.currentYear(), " ", ctx_r1.metricTitle(), " Target ");
59238
- i0.ɵɵadvance();
59353
+ i0.ɵɵadvance(2);
59239
59354
  i0.ɵɵproperty("ngClass", ctx_r1.calculatedValueClasses());
59240
59355
  i0.ɵɵadvance();
59241
59356
  i0.ɵɵtextInterpolate1(" ", ctx_r1.formatMetricValue(ctx_r1.animatedTarget()), " ");
59357
+ i0.ɵɵadvance();
59358
+ i0.ɵɵconditional(ctx_r1.hasChangedFromInitial() ? 7 : -1);
59242
59359
  i0.ɵɵadvance(3);
59243
59360
  i0.ɵɵproperty("ngClass", ctx_r1.dividerBorderClasses());
59244
59361
  i0.ɵɵadvance();
@@ -59251,20 +59368,34 @@ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Template(rf
59251
59368
  i0.ɵɵproperty("ngClass", ctx_r1.calculatedLabelClasses());
59252
59369
  i0.ɵɵadvance();
59253
59370
  i0.ɵɵtextInterpolate1(" ", ctx_r1.isIncreaseBad() ? "Decrease" : "Increase", " Amount ");
59254
- i0.ɵɵadvance();
59371
+ i0.ɵɵadvance(2);
59255
59372
  i0.ɵɵproperty("ngClass", ctx_r1.calculatedSecondaryClasses());
59256
59373
  i0.ɵɵadvance();
59257
- i0.ɵɵconditional(ctx_r1.isTargetValid() ? 17 : 18);
59258
- i0.ɵɵadvance(3);
59374
+ i0.ɵɵconditional(ctx_r1.isTargetValid() ? 20 : 21);
59375
+ i0.ɵɵadvance(2);
59376
+ i0.ɵɵconditional(ctx_r1.hasChangedFromInitial() && ctx_r1.initialIncreaseAmount() !== 0 ? 22 : -1);
59377
+ i0.ɵɵadvance(2);
59259
59378
  i0.ɵɵproperty("ngClass", ctx_r1.calculatedLabelClasses());
59260
59379
  i0.ɵɵadvance();
59261
59380
  i0.ɵɵtextInterpolate1(" % ", ctx_r1.isIncreaseBad() ? "Change" : "Growth", " ");
59262
- i0.ɵɵadvance();
59381
+ i0.ɵɵadvance(2);
59263
59382
  i0.ɵɵproperty("ngClass", ctx_r1.calculatedSecondaryClasses());
59264
59383
  i0.ɵɵadvance();
59265
- i0.ɵɵconditional(ctx_r1.isTargetValid() ? 23 : 24);
59384
+ i0.ɵɵconditional(ctx_r1.isTargetValid() ? 28 : 29);
59266
59385
  i0.ɵɵadvance(2);
59267
- i0.ɵɵconditional(ctx_r1.currentPaceProjectionRaw() > 0 ? 25 : -1);
59386
+ i0.ɵɵconditional(ctx_r1.hasChangedFromInitial() && ctx_r1.initialPercentageGrowth() !== 0 ? 30 : -1);
59387
+ i0.ɵɵadvance();
59388
+ i0.ɵɵconditional(ctx_r1.currentPaceProjectionRaw() > 0 ? 31 : -1);
59389
+ } }
59390
+ function EditMetricTargetModalComponent_Conditional_0_Conditional_40_Template(rf, ctx) { if (rf & 1) {
59391
+ const _r9 = i0.ɵɵgetCurrentView();
59392
+ i0.ɵɵelementStart(0, "button", 29);
59393
+ i0.ɵɵlistener("click", function EditMetricTargetModalComponent_Conditional_0_Conditional_40_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r9); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.resetToInitial()); });
59394
+ i0.ɵɵtext(1, " Reset ");
59395
+ i0.ɵɵelementEnd();
59396
+ } if (rf & 2) {
59397
+ const ctx_r1 = i0.ɵɵnextContext(2);
59398
+ i0.ɵɵproperty("ngClass", ctx_r1.resetButtonClasses());
59268
59399
  } }
59269
59400
  function EditMetricTargetModalComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
59270
59401
  const _r1 = i0.ɵɵgetCurrentView();
@@ -59312,15 +59443,16 @@ function EditMetricTargetModalComponent_Conditional_0_Template(rf, ctx) { if (rf
59312
59443
  i0.ɵɵelementEnd()();
59313
59444
  i0.ɵɵconditionalCreate(34, EditMetricTargetModalComponent_Conditional_0_Conditional_34_Template, 4, 1, "div", 26)(35, EditMetricTargetModalComponent_Conditional_0_Conditional_35_Template, 5, 3, "div", 26);
59314
59445
  i0.ɵɵelementEnd()();
59315
- i0.ɵɵconditionalCreate(36, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Template, 26, 19, "div", 27);
59446
+ i0.ɵɵconditionalCreate(36, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Template, 32, 22, "div", 27);
59316
59447
  i0.ɵɵelementEnd()();
59317
59448
  i0.ɵɵelementStart(37, "div", 28)(38, "button", 29);
59318
59449
  i0.ɵɵlistener("click", function EditMetricTargetModalComponent_Conditional_0_Template_button_click_38_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.close()); });
59319
59450
  i0.ɵɵtext(39, " Cancel ");
59320
59451
  i0.ɵɵelementEnd();
59321
- i0.ɵɵelementStart(40, "button", 30);
59322
- i0.ɵɵlistener("click", function EditMetricTargetModalComponent_Conditional_0_Template_button_click_40_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.applyTarget()); });
59323
- i0.ɵɵtext(41, " Apply Target ");
59452
+ i0.ɵɵconditionalCreate(40, EditMetricTargetModalComponent_Conditional_0_Conditional_40_Template, 2, 1, "button", 30);
59453
+ i0.ɵɵelementStart(41, "button", 31);
59454
+ i0.ɵɵlistener("click", function EditMetricTargetModalComponent_Conditional_0_Template_button_click_41_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.applyTarget()); });
59455
+ i0.ɵɵtext(42, " Apply Target ");
59324
59456
  i0.ɵɵelementEnd()()()()();
59325
59457
  } if (rf & 2) {
59326
59458
  const ctx_r1 = i0.ɵɵnextContext();
@@ -59367,6 +59499,8 @@ function EditMetricTargetModalComponent_Conditional_0_Template(rf, ctx) { if (rf
59367
59499
  i0.ɵɵadvance();
59368
59500
  i0.ɵɵproperty("ngClass", ctx_r1.cancelButtonClasses());
59369
59501
  i0.ɵɵadvance(2);
59502
+ i0.ɵɵconditional(ctx_r1.hasChangedFromInitial() ? 40 : -1);
59503
+ i0.ɵɵadvance();
59370
59504
  i0.ɵɵproperty("disabled", !ctx_r1.isTargetValid())("ngClass", ctx_r1.applyButtonClasses());
59371
59505
  } }
59372
59506
  class EditMetricTargetModalComponent {
@@ -59382,12 +59516,50 @@ class EditMetricTargetModalComponent {
59382
59516
  this.inputMode = signal('absolute', ...(ngDevMode ? [{ debugName: "inputMode" }] : []));
59383
59517
  this.absoluteInput = signal(null, ...(ngDevMode ? [{ debugName: "absoluteInput" }] : []));
59384
59518
  this.percentageInput = signal(null, ...(ngDevMode ? [{ debugName: "percentageInput" }] : []));
59519
+ this.initialTargetValue = signal(0, ...(ngDevMode ? [{ debugName: "initialTargetValue" }] : []));
59385
59520
  this.animatedTarget = signal(0, ...(ngDevMode ? [{ debugName: "animatedTarget" }] : []));
59386
59521
  this.animatedIncreaseAmount = signal(0, ...(ngDevMode ? [{ debugName: "animatedIncreaseAmount" }] : []));
59387
59522
  this.animatedPercentageGrowth = signal(0, ...(ngDevMode ? [{ debugName: "animatedPercentageGrowth" }] : []));
59388
59523
  this.animatedGapAmount = signal(0, ...(ngDevMode ? [{ debugName: "animatedGapAmount" }] : []));
59389
59524
  this.animatedGapPercentage = signal(0, ...(ngDevMode ? [{ debugName: "animatedGapPercentage" }] : []));
59390
59525
  this.animationFrameId = null;
59526
+ this.hasChangedFromInitial = computed(() => {
59527
+ const current = this.calculatedTarget();
59528
+ const initial = this.initialTargetValue();
59529
+ return initial > 0 && Math.abs(current - initial) > 0.001;
59530
+ }, ...(ngDevMode ? [{ debugName: "hasChangedFromInitial" }] : []));
59531
+ this.initialIncreaseAmount = computed(() => {
59532
+ const initial = this.initialTargetValue();
59533
+ if (initial <= 0)
59534
+ return 0;
59535
+ return initial - this.priorYearValue();
59536
+ }, ...(ngDevMode ? [{ debugName: "initialIncreaseAmount" }] : []));
59537
+ this.initialPercentageGrowth = computed(() => {
59538
+ const initial = this.initialTargetValue();
59539
+ const prior = this.priorYearValue();
59540
+ if (initial <= 0 || prior === 0)
59541
+ return 0;
59542
+ return ((initial - prior) / prior) * 100;
59543
+ }, ...(ngDevMode ? [{ debugName: "initialPercentageGrowth" }] : []));
59544
+ this.initialGapToClose = computed(() => {
59545
+ const initial = this.initialTargetValue();
59546
+ const projection = this.currentPaceProjection();
59547
+ if (initial <= 0 || projection === 0)
59548
+ return { amount: 0, percentage: 0 };
59549
+ const amount = initial - projection;
59550
+ const percentage = (amount / projection) * 100;
59551
+ return { amount, percentage };
59552
+ }, ...(ngDevMode ? [{ debugName: "initialGapToClose" }] : []));
59553
+ this.initialIsPaceAhead = computed(() => {
59554
+ const initial = this.initialTargetValue();
59555
+ const projection = this.currentPaceProjection();
59556
+ if (initial <= 0 || projection === 0)
59557
+ return false;
59558
+ if (this.isIncreaseBad()) {
59559
+ return projection < initial;
59560
+ }
59561
+ return projection > initial;
59562
+ }, ...(ngDevMode ? [{ debugName: "initialIsPaceAhead" }] : []));
59391
59563
  this.currentYear = computed(() => new Date().getFullYear(), ...(ngDevMode ? [{ debugName: "currentYear" }] : []));
59392
59564
  this.priorYear = computed(() => new Date().getFullYear() - 1, ...(ngDevMode ? [{ debugName: "priorYear" }] : []));
59393
59565
  this.metricTitle = computed(() => {
@@ -59535,6 +59707,7 @@ class EditMetricTargetModalComponent {
59535
59707
  ? Math.round(metricData.targetValue)
59536
59708
  : metricData.targetValue;
59537
59709
  this.absoluteInput.set(value);
59710
+ this.initialTargetValue.set(value);
59538
59711
  }
59539
59712
  afterNextRender(() => {
59540
59713
  this.focusCurrentInput();
@@ -59543,6 +59716,15 @@ class EditMetricTargetModalComponent {
59543
59716
  }
59544
59717
  });
59545
59718
  }
59719
+ resetToInitial() {
59720
+ const initial = this.initialTargetValue();
59721
+ if (initial > 0) {
59722
+ this.inputMode.set('absolute');
59723
+ this.absoluteInput.set(initial);
59724
+ this.percentageInput.set(null);
59725
+ this.updateAnimatedValuesImmediate();
59726
+ }
59727
+ }
59546
59728
  triggerAnimation() {
59547
59729
  const target = this.calculatedTarget();
59548
59730
  const increaseAmt = Math.abs(this.increaseAmount());
@@ -59851,6 +60033,16 @@ class EditMetricTargetModalComponent {
59851
60033
  ? 'bg-purple-600 text-white hover:bg-purple-500 border border-purple-500 hover:border-purple-400'
59852
60034
  : 'bg-purple-600 text-white hover:bg-purple-700 border border-purple-600 hover:border-purple-700';
59853
60035
  }
60036
+ resetButtonClasses() {
60037
+ return this.viewMode() === ViewModeEnum.DARK
60038
+ ? 'bg-transparent text-amber-400 hover:bg-amber-900/30 hover:text-amber-300 border border-amber-600/50 hover:border-amber-500/50'
60039
+ : 'bg-transparent text-amber-600 hover:bg-amber-50 hover:text-amber-700 border border-amber-400 hover:border-amber-500';
60040
+ }
60041
+ originalValueClasses() {
60042
+ return this.viewMode() === ViewModeEnum.DARK
60043
+ ? 'text-purple-400/70'
60044
+ : 'text-purple-500/70';
60045
+ }
59854
60046
  static { this.ɵfac = function EditMetricTargetModalComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || EditMetricTargetModalComponent)(i0.ɵɵdirectiveInject(i0.Injector)); }; }
59855
60047
  static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EditMetricTargetModalComponent, selectors: [["symphiq-edit-metric-target-modal"]], viewQuery: function EditMetricTargetModalComponent_Query(rf, ctx) { if (rf & 1) {
59856
60048
  i0.ɵɵviewQuery(_c0$r, 5);
@@ -59861,8 +60053,8 @@ class EditMetricTargetModalComponent {
59861
60053
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.percentageInputRef = _t.first);
59862
60054
  } }, hostBindings: function EditMetricTargetModalComponent_HostBindings(rf, ctx) { if (rf & 1) {
59863
60055
  i0.ɵɵlistener("keydown.escape", function EditMetricTargetModalComponent_keydown_escape_HostBindingHandler() { return ctx.onEscape(); }, i0.ɵɵresolveDocument);
59864
- } }, inputs: { viewMode: [1, "viewMode"], isOpen: [1, "isOpen"], metricData: [1, "metricData"], pacingMetrics: [1, "pacingMetrics"] }, outputs: { closed: "closed", targetApplied: "targetApplied" }, decls: 1, vars: 1, consts: [["absoluteInputRef", ""], ["percentageInputRef", ""], [1, "fixed", "inset-0", "overflow-y-auto", "z-50", 3, "click"], [1, "flex", "items-center", "justify-center", "min-h-screen", "px-4", "pt-4", "pb-20", "text-center", "sm:block", "sm:p-0"], ["aria-hidden", "true", 1, "fixed", "inset-0", "backdrop-blur-md", 3, "ngClass"], ["aria-hidden", "true", 1, "hidden", "sm:inline-block", "sm:align-middle", "sm:h-screen"], [1, "relative", "inline-block", "align-bottom", "rounded-2xl", "text-left", "overflow-hidden", "shadow-xl", "sm:my-8", "sm:align-middle", "sm:w-full", "sm:max-w-4xl", "border", "backdrop-blur-xl", 3, "click", "ngClass"], [1, "px-6", "py-5", "border-b", "backdrop-blur-sm", "sticky", "top-0", "z-10", 3, "ngClass"], [1, "flex", "items-start", "justify-between"], [1, "flex-1"], [1, "text-xl", "font-bold", "mb-0", 3, "ngClass"], [1, "ml-4", "transition-all", "rounded-lg", "p-1", "hover:scale-110", "active:scale-90", 3, "click", "ngClass"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-6", "h-6"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M6 18L18 6M6 6l12 12"], [1, "px-6", "py-6", "max-h-[70vh]", "overflow-y-auto", "backdrop-blur-sm", 3, "ngClass"], [1, "grid", "lg:grid-cols-2", "gap-6"], [1, "p-6", "rounded-xl", "border-2", 3, "ngClass"], [1, "flex", "flex-wrap", "gap-4", "place-content-between", "mb-6"], [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, "space-y-6"], [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, "p-6", "rounded-xl", "border-2", "h-full", 3, "ngClass"], [1, "px-6", "py-4", "border-t", "flex", "justify-end", "gap-3", 3, "ngClass"], ["type", "button", 1, "px-4", "py-2.5", "rounded-lg", "font-medium", "text-sm", "transition-all", "duration-200", 3, "click", "ngClass"], ["type", "button", 1, "px-4", "py-2.5", "rounded-lg", "font-medium", "text-sm", "transition-all", "duration-200", "disabled:opacity-50", "disabled:cursor-not-allowed", 3, "click", "disabled", "ngClass"], ["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"], ["type", "number", "placeholder", "0", "min", "0", "step", "1", 1, "w-full", "px-4", "py-4", "rounded-xl", "text-2xl", "font-bold", "border-2", "transition-all", 3, "ngModel", "ngClass"], ["type", "number", "placeholder", "0", "min", "0", "max", "100", "step", "0.01", 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, "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", "step", "1", 1, "w-full", "px-4", "py-4", "rounded-xl", "text-2xl", "font-bold", "border-2", "transition-all", 3, "ngModelChange", "keydown", "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, "text-3xl", "font-bold", "transition-all", "duration-300", 3, "ngClass"], [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, "flex", "items-center", "gap-1", "mb-1"]], template: function EditMetricTargetModalComponent_Template(rf, ctx) { if (rf & 1) {
59865
- i0.ɵɵconditionalCreate(0, EditMetricTargetModalComponent_Conditional_0_Template, 42, 27);
60056
+ } }, inputs: { viewMode: [1, "viewMode"], isOpen: [1, "isOpen"], metricData: [1, "metricData"], pacingMetrics: [1, "pacingMetrics"] }, outputs: { closed: "closed", targetApplied: "targetApplied" }, decls: 1, vars: 1, consts: [["absoluteInputRef", ""], ["percentageInputRef", ""], [1, "fixed", "inset-0", "overflow-y-auto", "z-50", 3, "click"], [1, "flex", "items-center", "justify-center", "min-h-screen", "px-4", "pt-4", "pb-20", "text-center", "sm:block", "sm:p-0"], ["aria-hidden", "true", 1, "fixed", "inset-0", "backdrop-blur-md", 3, "ngClass"], ["aria-hidden", "true", 1, "hidden", "sm:inline-block", "sm:align-middle", "sm:h-screen"], [1, "relative", "inline-block", "align-bottom", "rounded-2xl", "text-left", "overflow-hidden", "shadow-xl", "sm:my-8", "sm:align-middle", "sm:w-full", "sm:max-w-4xl", "border", "backdrop-blur-xl", 3, "click", "ngClass"], [1, "px-6", "py-5", "border-b", "backdrop-blur-sm", "sticky", "top-0", "z-10", 3, "ngClass"], [1, "flex", "items-start", "justify-between"], [1, "flex-1"], [1, "text-xl", "font-bold", "mb-0", 3, "ngClass"], [1, "ml-4", "transition-all", "rounded-lg", "p-1", "hover:scale-110", "active:scale-90", 3, "click", "ngClass"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-6", "h-6"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M6 18L18 6M6 6l12 12"], [1, "px-6", "py-6", "max-h-[70vh]", "overflow-y-auto", "backdrop-blur-sm", 3, "ngClass"], [1, "grid", "lg:grid-cols-2", "gap-6"], [1, "p-6", "rounded-xl", "border-2", 3, "ngClass"], [1, "flex", "flex-wrap", "gap-4", "place-content-between", "mb-6"], [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, "space-y-6"], [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, "p-6", "rounded-xl", "border-2", "h-full", 3, "ngClass"], [1, "px-6", "py-4", "border-t", "flex", "justify-end", "gap-3", 3, "ngClass"], ["type", "button", 1, "px-4", "py-2.5", "rounded-lg", "font-medium", "text-sm", "transition-all", "duration-200", 3, "click", "ngClass"], ["type", "button", 1, "px-4", "py-2.5", "rounded-lg", "font-medium", "text-sm", "transition-all", "duration-200", 3, "ngClass"], ["type", "button", 1, "px-4", "py-2.5", "rounded-lg", "font-medium", "text-sm", "transition-all", "duration-200", "disabled:opacity-50", "disabled:cursor-not-allowed", 3, "click", "disabled", "ngClass"], ["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"], ["type", "number", "placeholder", "0", "min", "0", "step", "1", 1, "w-full", "px-4", "py-4", "rounded-xl", "text-2xl", "font-bold", "border-2", "transition-all", 3, "ngModel", "ngClass"], ["type", "number", "placeholder", "0", "min", "0", "max", "100", "step", "0.01", 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, "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", "step", "1", 1, "w-full", "px-4", "py-4", "rounded-xl", "text-2xl", "font-bold", "border-2", "transition-all", 3, "ngModelChange", "keydown", "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, "flex", "items-baseline", "gap-3"], [1, "text-3xl", "font-bold", "transition-all", "duration-300", 3, "ngClass"], [1, "text-xl", "line-through", "opacity-60", 3, "ngClass"], [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, "flex", "items-baseline", "gap-2"], [1, "text-xl", "font-bold", 3, "ngClass"], [1, "text-base", "line-through", "opacity-60", 3, "ngClass"], [1, "flex", "items-center", "gap-1", "mb-1"]], template: function EditMetricTargetModalComponent_Template(rf, ctx) { if (rf & 1) {
60057
+ i0.ɵɵconditionalCreate(0, EditMetricTargetModalComponent_Conditional_0_Template, 43, 28);
59866
60058
  } if (rf & 2) {
59867
60059
  i0.ɵɵconditional(ctx.isOpen() ? 0 : -1);
59868
60060
  } }, dependencies: [CommonModule, i1$1.NgClass, FormsModule, i2$1.DefaultValueAccessor, i2$1.NumberValueAccessor, i2$1.NgControlStatus, i2$1.MinValidator, i2$1.MaxValidator, i2$1.NgModel, TooltipDirective, TooltipContainerComponent], encapsulation: 2, data: { animation: [
@@ -60075,9 +60267,16 @@ class EditMetricTargetModalComponent {
60075
60267
  <p [ngClass]="calculatedLabelClasses()" class="text-xs font-medium uppercase tracking-wider">
60076
60268
  {{ currentYear() }} {{ metricTitle() }} Target
60077
60269
  </p>
60078
- <p [ngClass]="calculatedValueClasses()" class="text-3xl font-bold transition-all duration-300">
60079
- {{ formatMetricValue(animatedTarget()) }}
60080
- </p>
60270
+ <div class="flex items-baseline gap-3">
60271
+ <p [ngClass]="calculatedValueClasses()" class="text-3xl font-bold transition-all duration-300">
60272
+ {{ formatMetricValue(animatedTarget()) }}
60273
+ </p>
60274
+ @if (hasChangedFromInitial()) {
60275
+ <p [ngClass]="originalValueClasses()" class="text-xl line-through opacity-60">
60276
+ {{ formatMetricValue(initialTargetValue(), false) }}
60277
+ </p>
60278
+ }
60279
+ </div>
60081
60280
  </div>
60082
60281
 
60083
60282
  <div class="relative pt-6 mt-6">
@@ -60093,25 +60292,39 @@ class EditMetricTargetModalComponent {
60093
60292
  <p [ngClass]="calculatedLabelClasses()" class="text-xs font-medium uppercase tracking-wider mb-1">
60094
60293
  {{ isIncreaseBad() ? 'Decrease' : 'Increase' }} Amount
60095
60294
  </p>
60096
- <p [ngClass]="calculatedSecondaryClasses()" class="text-xl font-bold">
60097
- @if (isTargetValid()) {
60098
- {{ formatMetricValue(animatedIncreaseAmount()) }}
60099
- } @else {
60100
- --
60295
+ <div class="flex items-baseline gap-2">
60296
+ <p [ngClass]="calculatedSecondaryClasses()" class="text-xl font-bold">
60297
+ @if (isTargetValid()) {
60298
+ {{ formatMetricValue(animatedIncreaseAmount()) }}
60299
+ } @else {
60300
+ --
60301
+ }
60302
+ </p>
60303
+ @if (hasChangedFromInitial() && initialIncreaseAmount() !== 0) {
60304
+ <p [ngClass]="originalValueClasses()" class="text-base line-through opacity-60">
60305
+ {{ formatMetricValue(Math.abs(initialIncreaseAmount())) }}
60306
+ </p>
60101
60307
  }
60102
- </p>
60308
+ </div>
60103
60309
  </div>
60104
60310
  <div>
60105
60311
  <p [ngClass]="calculatedLabelClasses()" class="text-xs font-medium uppercase tracking-wider mb-1">
60106
60312
  % {{ isIncreaseBad() ? 'Change' : 'Growth' }}
60107
60313
  </p>
60108
- <p [ngClass]="calculatedSecondaryClasses()" class="text-xl font-bold">
60109
- @if (isTargetValid()) {
60110
- {{ animatedPercentageGrowth() >= 0 ? '+' : '' }}{{ formatPercentage(animatedPercentageGrowth(), 1) }}
60111
- } @else {
60112
- --
60314
+ <div class="flex items-baseline gap-2">
60315
+ <p [ngClass]="calculatedSecondaryClasses()" class="text-xl font-bold">
60316
+ @if (isTargetValid()) {
60317
+ {{ animatedPercentageGrowth() >= 0 ? '+' : '' }}{{ formatPercentage(animatedPercentageGrowth(), 1) }}
60318
+ } @else {
60319
+ --
60320
+ }
60321
+ </p>
60322
+ @if (hasChangedFromInitial() && initialPercentageGrowth() !== 0) {
60323
+ <p [ngClass]="originalValueClasses()" class="text-base line-through opacity-60">
60324
+ {{ initialPercentageGrowth() >= 0 ? '+' : '' }}{{ formatPercentage(initialPercentageGrowth(), 1) }}
60325
+ </p>
60113
60326
  }
60114
- </p>
60327
+ </div>
60115
60328
  </div>
60116
60329
  </div>
60117
60330
  </div>
@@ -60130,13 +60343,20 @@ class EditMetricTargetModalComponent {
60130
60343
  <p [ngClass]="calculatedLabelClasses()" class="text-xs font-medium uppercase tracking-wider mb-1">
60131
60344
  {{ gapLabel() }}
60132
60345
  </p>
60133
- <p [ngClass]="calculatedSecondaryClasses()" class="text-xl font-bold">
60134
- @if (isTargetValid()) {
60135
- {{ formatMetricValue(animatedGapAmount()) }}
60136
- } @else {
60137
- --
60346
+ <div class="flex items-baseline gap-2">
60347
+ <p [ngClass]="calculatedSecondaryClasses()" class="text-xl font-bold">
60348
+ @if (isTargetValid()) {
60349
+ {{ formatMetricValue(animatedGapAmount()) }}
60350
+ } @else {
60351
+ --
60352
+ }
60353
+ </p>
60354
+ @if (hasChangedFromInitial() && initialGapToClose().amount !== 0) {
60355
+ <p [ngClass]="originalValueClasses()" class="text-base line-through opacity-60">
60356
+ {{ formatMetricValue(Math.abs(initialGapToClose().amount)) }}
60357
+ </p>
60138
60358
  }
60139
- </p>
60359
+ </div>
60140
60360
  </div>
60141
60361
  <div>
60142
60362
  <div class="flex items-center gap-1 mb-1">
@@ -60156,17 +60376,28 @@ class EditMetricTargetModalComponent {
60156
60376
  </svg>
60157
60377
  </button>
60158
60378
  </div>
60159
- <p [ngClass]="calculatedSecondaryClasses()" class="text-xl font-bold">
60160
- @if (isTargetValid()) {
60161
- @if (isPaceAhead()) {
60162
- +{{ formatPercentage(Math.abs(animatedGapPercentage()), 1) }}
60379
+ <div class="flex items-baseline gap-2">
60380
+ <p [ngClass]="calculatedSecondaryClasses()" class="text-xl font-bold">
60381
+ @if (isTargetValid()) {
60382
+ @if (isPaceAhead()) {
60383
+ +{{ formatPercentage(Math.abs(animatedGapPercentage()), 1) }}
60384
+ } @else {
60385
+ {{ animatedGapPercentage() > 0 ? '+' : '' }}{{ formatPercentage(animatedGapPercentage(), 1) }}
60386
+ }
60163
60387
  } @else {
60164
- {{ animatedGapPercentage() > 0 ? '+' : '' }}{{ formatPercentage(animatedGapPercentage(), 1) }}
60388
+ --
60165
60389
  }
60166
- } @else {
60167
- --
60390
+ </p>
60391
+ @if (hasChangedFromInitial() && initialGapToClose().percentage !== 0) {
60392
+ <p [ngClass]="originalValueClasses()" class="text-base line-through opacity-60">
60393
+ @if (initialIsPaceAhead()) {
60394
+ +{{ formatPercentage(Math.abs(initialGapToClose().percentage), 1) }}
60395
+ } @else {
60396
+ {{ initialGapToClose().percentage > 0 ? '+' : '' }}{{ formatPercentage(initialGapToClose().percentage, 1) }}
60397
+ }
60398
+ </p>
60168
60399
  }
60169
- </p>
60400
+ </div>
60170
60401
  </div>
60171
60402
  </div>
60172
60403
  </div>
@@ -60184,6 +60415,15 @@ class EditMetricTargetModalComponent {
60184
60415
  class="px-4 py-2.5 rounded-lg font-medium text-sm transition-all duration-200">
60185
60416
  Cancel
60186
60417
  </button>
60418
+ @if (hasChangedFromInitial()) {
60419
+ <button
60420
+ type="button"
60421
+ (click)="resetToInitial()"
60422
+ [ngClass]="resetButtonClasses()"
60423
+ class="px-4 py-2.5 rounded-lg font-medium text-sm transition-all duration-200">
60424
+ Reset
60425
+ </button>
60426
+ }
60187
60427
  <button
60188
60428
  type="button"
60189
60429
  (click)="applyTarget()"
@@ -60209,7 +60449,7 @@ class EditMetricTargetModalComponent {
60209
60449
  type: HostListener,
60210
60450
  args: ['document:keydown.escape']
60211
60451
  }] }); })();
60212
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(EditMetricTargetModalComponent, { className: "EditMetricTargetModalComponent", filePath: "lib/components/revenue-calculator-dashboard/edit-metric-target-modal.component.ts", lineNumber: 331 }); })();
60452
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(EditMetricTargetModalComponent, { className: "EditMetricTargetModalComponent", filePath: "lib/components/revenue-calculator-dashboard/edit-metric-target-modal.component.ts", lineNumber: 379 }); })();
60213
60453
 
60214
60454
  const _c0$q = ["absoluteInputRef"];
60215
60455
  const _c1$b = ["percentageInputRef"];
@@ -60352,65 +60592,89 @@ function InitialTargetSettingComponent_Conditional_33_Template(rf, ctx) { if (rf
60352
60592
  i0.ɵɵadvance();
60353
60593
  i0.ɵɵproperty("ngClass", ctx_r0.noDataClasses());
60354
60594
  } }
60355
- function InitialTargetSettingComponent_Conditional_36_Conditional_7_Template(rf, ctx) { if (rf & 1) {
60356
- i0.ɵɵtext(0);
60595
+ function InitialTargetSettingComponent_Conditional_36_Conditional_6_Template(rf, ctx) { if (rf & 1) {
60596
+ i0.ɵɵelementStart(0, "div", 11);
60597
+ i0.ɵɵelement(1, "div", 66);
60598
+ i0.ɵɵelementStart(2, "p", 67);
60599
+ i0.ɵɵtext(3, "Calculating...");
60600
+ i0.ɵɵelementEnd()();
60357
60601
  } if (rf & 2) {
60358
60602
  const ctx_r0 = i0.ɵɵnextContext(2);
60603
+ i0.ɵɵadvance();
60604
+ i0.ɵɵproperty("ngClass", ctx_r0.loadingSpinnerClasses());
60605
+ i0.ɵɵadvance();
60606
+ i0.ɵɵproperty("ngClass", ctx_r0.calculatingTextClasses());
60607
+ } }
60608
+ function InitialTargetSettingComponent_Conditional_36_Conditional_7_Conditional_1_Template(rf, ctx) { if (rf & 1) {
60609
+ i0.ɵɵtext(0);
60610
+ } if (rf & 2) {
60611
+ const ctx_r0 = i0.ɵɵnextContext(3);
60359
60612
  i0.ɵɵtextInterpolate1(" > ", ctx_r0.formatCurrency(ctx_r0.submittedAbsoluteInput()), " ");
60360
60613
  } }
60361
- function InitialTargetSettingComponent_Conditional_36_Conditional_8_Template(rf, ctx) { if (rf & 1) {
60614
+ function InitialTargetSettingComponent_Conditional_36_Conditional_7_Conditional_2_Template(rf, ctx) { if (rf & 1) {
60362
60615
  i0.ɵɵtext(0);
60363
60616
  } if (rf & 2) {
60364
- const ctx_r0 = i0.ɵɵnextContext(2);
60617
+ const ctx_r0 = i0.ɵɵnextContext(3);
60365
60618
  i0.ɵɵtextInterpolate1(" ", ctx_r0.formatCurrency(ctx_r0.displayedTargetRevenue()), " ");
60366
60619
  } }
60367
- function InitialTargetSettingComponent_Conditional_36_Conditional_9_Template(rf, ctx) { if (rf & 1) {
60620
+ function InitialTargetSettingComponent_Conditional_36_Conditional_7_Template(rf, ctx) { if (rf & 1) {
60621
+ i0.ɵɵelementStart(0, "p", 68);
60622
+ i0.ɵɵconditionalCreate(1, InitialTargetSettingComponent_Conditional_36_Conditional_7_Conditional_1_Template, 1, 1)(2, InitialTargetSettingComponent_Conditional_36_Conditional_7_Conditional_2_Template, 1, 1);
60623
+ i0.ɵɵelementEnd();
60624
+ } if (rf & 2) {
60625
+ const ctx_r0 = i0.ɵɵnextContext(2);
60626
+ i0.ɵɵclassProp("lg:text-3xl", ctx_r0.calculationState() !== "results" || ctx_r0.detailsExpanded());
60627
+ i0.ɵɵproperty("ngClass", ctx_r0.calculatedValueClasses());
60628
+ i0.ɵɵadvance();
60629
+ i0.ɵɵconditional(ctx_r0.calculationState() === "results" && !ctx_r0.hasExistingTargets() && ctx_r0.submittedAbsoluteInput() !== null ? 1 : 2);
60630
+ } }
60631
+ function InitialTargetSettingComponent_Conditional_36_Conditional_8_Template(rf, ctx) { if (rf & 1) {
60368
60632
  const _r7 = i0.ɵɵgetCurrentView();
60369
- i0.ɵɵelementStart(0, "button", 66);
60370
- i0.ɵɵlistener("click", function InitialTargetSettingComponent_Conditional_36_Conditional_9_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r0 = i0.ɵɵnextContext(2); ctx_r0.handleAdjustTarget(); return i0.ɵɵresetView($event.stopPropagation()); });
60633
+ i0.ɵɵelementStart(0, "button", 69);
60634
+ i0.ɵɵlistener("click", function InitialTargetSettingComponent_Conditional_36_Conditional_8_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r0 = i0.ɵɵnextContext(2); ctx_r0.handleAdjustTarget(); return i0.ɵɵresetView($event.stopPropagation()); });
60371
60635
  i0.ɵɵtext(1, " Adjust Revenue Target ");
60372
60636
  i0.ɵɵelementEnd();
60373
60637
  } if (rf & 2) {
60374
60638
  const ctx_r0 = i0.ɵɵnextContext(2);
60375
60639
  i0.ɵɵproperty("ngClass", ctx_r0.secondaryButtonClasses());
60376
60640
  } }
60377
- function InitialTargetSettingComponent_Conditional_36_Conditional_23_Template(rf, ctx) { if (rf & 1) {
60641
+ function InitialTargetSettingComponent_Conditional_36_Conditional_22_Template(rf, ctx) { if (rf & 1) {
60378
60642
  i0.ɵɵtext(0);
60379
60643
  } if (rf & 2) {
60380
60644
  const ctx_r0 = i0.ɵɵnextContext(2);
60381
60645
  i0.ɵɵtextInterpolate1(" ", ctx_r0.formatCurrency(ctx_r0.animatedIncreaseAmount()), " ");
60382
60646
  } }
60383
- function InitialTargetSettingComponent_Conditional_36_Conditional_24_Template(rf, ctx) { if (rf & 1) {
60647
+ function InitialTargetSettingComponent_Conditional_36_Conditional_23_Template(rf, ctx) { if (rf & 1) {
60384
60648
  i0.ɵɵtext(0, " -- ");
60385
60649
  } }
60386
- function InitialTargetSettingComponent_Conditional_36_Conditional_29_Template(rf, ctx) { if (rf & 1) {
60650
+ function InitialTargetSettingComponent_Conditional_36_Conditional_28_Template(rf, ctx) { if (rf & 1) {
60387
60651
  i0.ɵɵtext(0);
60388
60652
  } if (rf & 2) {
60389
60653
  const ctx_r0 = i0.ɵɵnextContext(2);
60390
60654
  i0.ɵɵtextInterpolate1(" +", ctx_r0.formatPercentage(ctx_r0.animatedPercentageGrowth(), 1), " ");
60391
60655
  } }
60392
- function InitialTargetSettingComponent_Conditional_36_Conditional_30_Template(rf, ctx) { if (rf & 1) {
60656
+ function InitialTargetSettingComponent_Conditional_36_Conditional_29_Template(rf, ctx) { if (rf & 1) {
60393
60657
  i0.ɵɵtext(0, " -- ");
60394
60658
  } }
60395
- function InitialTargetSettingComponent_Conditional_36_Conditional_31_Conditional_11_Template(rf, ctx) { if (rf & 1) {
60659
+ function InitialTargetSettingComponent_Conditional_36_Conditional_30_Conditional_11_Template(rf, ctx) { if (rf & 1) {
60396
60660
  i0.ɵɵtext(0);
60397
60661
  } if (rf & 2) {
60398
60662
  const ctx_r0 = i0.ɵɵnextContext(3);
60399
60663
  i0.ɵɵtextInterpolate1(" ", ctx_r0.formatCurrency(ctx_r0.animatedGapAmount()), " ");
60400
60664
  } }
60401
- function InitialTargetSettingComponent_Conditional_36_Conditional_31_Conditional_12_Template(rf, ctx) { if (rf & 1) {
60665
+ function InitialTargetSettingComponent_Conditional_36_Conditional_30_Conditional_12_Template(rf, ctx) { if (rf & 1) {
60402
60666
  i0.ɵɵtext(0, " -- ");
60403
60667
  } }
60404
- function InitialTargetSettingComponent_Conditional_36_Conditional_31_Conditional_21_Template(rf, ctx) { if (rf & 1) {
60668
+ function InitialTargetSettingComponent_Conditional_36_Conditional_30_Conditional_21_Template(rf, ctx) { if (rf & 1) {
60405
60669
  i0.ɵɵtext(0);
60406
60670
  } if (rf & 2) {
60407
60671
  const ctx_r0 = i0.ɵɵnextContext(3);
60408
60672
  i0.ɵɵtextInterpolate2(" ", ctx_r0.gapToClose().amount > 0 ? "+" : "", "", ctx_r0.formatPercentage(ctx_r0.animatedGapPercentage(), 1), " ");
60409
60673
  } }
60410
- function InitialTargetSettingComponent_Conditional_36_Conditional_31_Conditional_22_Template(rf, ctx) { if (rf & 1) {
60674
+ function InitialTargetSettingComponent_Conditional_36_Conditional_30_Conditional_22_Template(rf, ctx) { if (rf & 1) {
60411
60675
  i0.ɵɵtext(0, " -- ");
60412
60676
  } }
60413
- function InitialTargetSettingComponent_Conditional_36_Conditional_31_Template(rf, ctx) { if (rf & 1) {
60677
+ function InitialTargetSettingComponent_Conditional_36_Conditional_30_Template(rf, ctx) { if (rf & 1) {
60414
60678
  const _r8 = i0.ɵɵgetCurrentView();
60415
60679
  i0.ɵɵelementStart(0, "div", 59)(1, "div", 60);
60416
60680
  i0.ɵɵelement(2, "div", 61);
@@ -60423,20 +60687,20 @@ function InitialTargetSettingComponent_Conditional_36_Conditional_31_Template(rf
60423
60687
  i0.ɵɵtext(9, " Gap to Close ");
60424
60688
  i0.ɵɵelementEnd();
60425
60689
  i0.ɵɵelementStart(10, "p", 65);
60426
- i0.ɵɵconditionalCreate(11, InitialTargetSettingComponent_Conditional_36_Conditional_31_Conditional_11_Template, 1, 1)(12, InitialTargetSettingComponent_Conditional_36_Conditional_31_Conditional_12_Template, 1, 0);
60690
+ i0.ɵɵconditionalCreate(11, InitialTargetSettingComponent_Conditional_36_Conditional_30_Conditional_11_Template, 1, 1)(12, InitialTargetSettingComponent_Conditional_36_Conditional_30_Conditional_12_Template, 1, 0);
60427
60691
  i0.ɵɵelementEnd()();
60428
- i0.ɵɵelementStart(13, "div")(14, "div", 67)(15, "p", 14);
60692
+ i0.ɵɵelementStart(13, "div")(14, "div", 70)(15, "p", 14);
60429
60693
  i0.ɵɵtext(16, " Additional Growth Needed ");
60430
60694
  i0.ɵɵelementEnd();
60431
60695
  i0.ɵɵelementStart(17, "button", 40);
60432
- i0.ɵɵlistener("click", function InitialTargetSettingComponent_Conditional_36_Conditional_31_Template_button_click_17_listener($event) { i0.ɵɵrestoreView(_r8); return i0.ɵɵresetView($event.stopPropagation()); });
60696
+ i0.ɵɵlistener("click", function InitialTargetSettingComponent_Conditional_36_Conditional_30_Template_button_click_17_listener($event) { i0.ɵɵrestoreView(_r8); return i0.ɵɵresetView($event.stopPropagation()); });
60433
60697
  i0.ɵɵnamespaceSVG();
60434
60698
  i0.ɵɵelementStart(18, "svg", 41);
60435
60699
  i0.ɵɵelement(19, "path", 42);
60436
60700
  i0.ɵɵelementEnd()()();
60437
60701
  i0.ɵɵnamespaceHTML();
60438
60702
  i0.ɵɵelementStart(20, "p", 65);
60439
- i0.ɵɵconditionalCreate(21, InitialTargetSettingComponent_Conditional_36_Conditional_31_Conditional_21_Template, 1, 2)(22, InitialTargetSettingComponent_Conditional_36_Conditional_31_Conditional_22_Template, 1, 0);
60703
+ i0.ɵɵconditionalCreate(21, InitialTargetSettingComponent_Conditional_36_Conditional_30_Conditional_21_Template, 1, 2)(22, InitialTargetSettingComponent_Conditional_36_Conditional_30_Conditional_22_Template, 1, 0);
60440
60704
  i0.ɵɵelementEnd()()()();
60441
60705
  } if (rf & 2) {
60442
60706
  const ctx_r0 = i0.ɵɵnextContext(2);
@@ -60467,31 +60731,30 @@ function InitialTargetSettingComponent_Conditional_36_Template(rf, ctx) { if (rf
60467
60731
  i0.ɵɵelementStart(0, "div", 53)(1, "div")(2, "div", 54)(3, "div")(4, "p", 14);
60468
60732
  i0.ɵɵtext(5);
60469
60733
  i0.ɵɵelementEnd();
60470
- i0.ɵɵelementStart(6, "p", 55);
60471
- i0.ɵɵconditionalCreate(7, InitialTargetSettingComponent_Conditional_36_Conditional_7_Template, 1, 1)(8, InitialTargetSettingComponent_Conditional_36_Conditional_8_Template, 1, 1);
60472
- i0.ɵɵelementEnd()();
60473
- i0.ɵɵconditionalCreate(9, InitialTargetSettingComponent_Conditional_36_Conditional_9_Template, 2, 1, "button", 56);
60734
+ i0.ɵɵconditionalCreate(6, InitialTargetSettingComponent_Conditional_36_Conditional_6_Template, 4, 2, "div", 11)(7, InitialTargetSettingComponent_Conditional_36_Conditional_7_Template, 3, 4, "p", 55);
60474
60735
  i0.ɵɵelementEnd();
60475
- i0.ɵɵelementStart(10, "div", 57)(11, "div", 58)(12, "div", 59)(13, "div", 60);
60476
- i0.ɵɵelement(14, "div", 61);
60477
- i0.ɵɵelementStart(15, "span", 62);
60478
- i0.ɵɵtext(16);
60736
+ i0.ɵɵconditionalCreate(8, InitialTargetSettingComponent_Conditional_36_Conditional_8_Template, 2, 1, "button", 56);
60479
60737
  i0.ɵɵelementEnd();
60480
- i0.ɵɵelement(17, "div", 61);
60738
+ i0.ɵɵelementStart(9, "div", 57)(10, "div", 58)(11, "div", 59)(12, "div", 60);
60739
+ i0.ɵɵelement(13, "div", 61);
60740
+ i0.ɵɵelementStart(14, "span", 62);
60741
+ i0.ɵɵtext(15);
60742
+ i0.ɵɵelementEnd();
60743
+ i0.ɵɵelement(16, "div", 61);
60481
60744
  i0.ɵɵelementEnd();
60482
- i0.ɵɵelementStart(18, "div", 63)(19, "div")(20, "p", 64);
60483
- i0.ɵɵtext(21, " Increase Amount ");
60745
+ i0.ɵɵelementStart(17, "div", 63)(18, "div")(19, "p", 64);
60746
+ i0.ɵɵtext(20, " Increase Amount ");
60484
60747
  i0.ɵɵelementEnd();
60485
- i0.ɵɵelementStart(22, "p", 65);
60486
- i0.ɵɵconditionalCreate(23, InitialTargetSettingComponent_Conditional_36_Conditional_23_Template, 1, 1)(24, InitialTargetSettingComponent_Conditional_36_Conditional_24_Template, 1, 0);
60748
+ i0.ɵɵelementStart(21, "p", 65);
60749
+ i0.ɵɵconditionalCreate(22, InitialTargetSettingComponent_Conditional_36_Conditional_22_Template, 1, 1)(23, InitialTargetSettingComponent_Conditional_36_Conditional_23_Template, 1, 0);
60487
60750
  i0.ɵɵelementEnd()();
60488
- i0.ɵɵelementStart(25, "div")(26, "p", 64);
60489
- i0.ɵɵtext(27, " % Growth ");
60751
+ i0.ɵɵelementStart(24, "div")(25, "p", 64);
60752
+ i0.ɵɵtext(26, " % Growth ");
60490
60753
  i0.ɵɵelementEnd();
60491
- i0.ɵɵelementStart(28, "p", 65);
60492
- i0.ɵɵconditionalCreate(29, InitialTargetSettingComponent_Conditional_36_Conditional_29_Template, 1, 1)(30, InitialTargetSettingComponent_Conditional_36_Conditional_30_Template, 1, 0);
60754
+ i0.ɵɵelementStart(27, "p", 65);
60755
+ i0.ɵɵconditionalCreate(28, InitialTargetSettingComponent_Conditional_36_Conditional_28_Template, 1, 1)(29, InitialTargetSettingComponent_Conditional_36_Conditional_29_Template, 1, 0);
60493
60756
  i0.ɵɵelementEnd()()()();
60494
- i0.ɵɵconditionalCreate(31, InitialTargetSettingComponent_Conditional_36_Conditional_31_Template, 23, 12, "div", 59);
60757
+ i0.ɵɵconditionalCreate(30, InitialTargetSettingComponent_Conditional_36_Conditional_30_Template, 23, 12, "div", 59);
60495
60758
  i0.ɵɵelementEnd()()()();
60496
60759
  } if (rf & 2) {
60497
60760
  const ctx_r0 = i0.ɵɵnextContext();
@@ -60502,12 +60765,9 @@ function InitialTargetSettingComponent_Conditional_36_Template(rf, ctx) { if (rf
60502
60765
  i0.ɵɵadvance();
60503
60766
  i0.ɵɵtextInterpolate1(" ", ctx_r0.currentYear(), " Revenue Target ");
60504
60767
  i0.ɵɵadvance();
60505
- i0.ɵɵclassProp("lg:text-3xl", ctx_r0.calculationState() !== "results" || ctx_r0.detailsExpanded());
60506
- i0.ɵɵproperty("ngClass", ctx_r0.calculatedValueClasses());
60507
- i0.ɵɵadvance();
60508
- i0.ɵɵconditional(ctx_r0.calculationState() === "results" && !ctx_r0.hasExistingTargets() && ctx_r0.submittedAbsoluteInput() !== null ? 7 : 8);
60768
+ i0.ɵɵconditional(ctx_r0.isCalculatingTargets() ? 6 : 7);
60509
60769
  i0.ɵɵadvance(2);
60510
- i0.ɵɵconditional(ctx_r0.calculationState() === "results" && !ctx_r0.hasExistingTargets() ? 9 : -1);
60770
+ i0.ɵɵconditional(ctx_r0.calculationState() === "results" && !ctx_r0.hasExistingTargets() ? 8 : -1);
60511
60771
  i0.ɵɵadvance();
60512
60772
  i0.ɵɵclassProp("details-collapse-expanded", ctx_r0.calculationState() !== "results" || ctx_r0.detailsExpanded());
60513
60773
  i0.ɵɵadvance(4);
@@ -60523,15 +60783,15 @@ function InitialTargetSettingComponent_Conditional_36_Template(rf, ctx) { if (rf
60523
60783
  i0.ɵɵadvance(2);
60524
60784
  i0.ɵɵproperty("ngClass", ctx_r0.calculatedSecondaryClasses());
60525
60785
  i0.ɵɵadvance();
60526
- i0.ɵɵconditional(ctx_r0.isTargetValid() ? 23 : 24);
60786
+ i0.ɵɵconditional(ctx_r0.isTargetValid() ? 22 : 23);
60527
60787
  i0.ɵɵadvance(3);
60528
60788
  i0.ɵɵproperty("ngClass", ctx_r0.calculatedLabelClasses());
60529
60789
  i0.ɵɵadvance(2);
60530
60790
  i0.ɵɵproperty("ngClass", ctx_r0.calculatedSecondaryClasses());
60531
60791
  i0.ɵɵadvance();
60532
- i0.ɵɵconditional(ctx_r0.isTargetValid() ? 29 : 30);
60792
+ i0.ɵɵconditional(ctx_r0.isTargetValid() ? 28 : 29);
60533
60793
  i0.ɵɵadvance(2);
60534
- i0.ɵɵconditional(ctx_r0.currentPaceProjection() > 0 ? 31 : -1);
60794
+ i0.ɵɵconditional(ctx_r0.currentPaceProjection() > 0 ? 30 : -1);
60535
60795
  } }
60536
60796
  function InitialTargetSettingComponent_Conditional_37_Conditional_4_Template(rf, ctx) { if (rf & 1) {
60537
60797
  i0.ɵɵelement(0, "symphiq-area-chart", 23);
@@ -60578,13 +60838,13 @@ function InitialTargetSettingComponent_Conditional_40_Conditional_6_Template(rf,
60578
60838
  } }
60579
60839
  function InitialTargetSettingComponent_Conditional_40_Template(rf, ctx) { if (rf & 1) {
60580
60840
  const _r9 = i0.ɵɵgetCurrentView();
60581
- i0.ɵɵelementStart(0, "div", 31)(1, "div", 68)(2, "h2", 69);
60841
+ i0.ɵɵelementStart(0, "div", 31)(1, "div", 71)(2, "h2", 72);
60582
60842
  i0.ɵɵtext(3, " Contributing Metrics ");
60583
60843
  i0.ɵɵelementEnd();
60584
60844
  i0.ɵɵelementStart(4, "p", 52);
60585
60845
  i0.ɵɵconditionalCreate(5, InitialTargetSettingComponent_Conditional_40_Conditional_5_Template, 1, 1)(6, InitialTargetSettingComponent_Conditional_40_Conditional_6_Template, 1, 1);
60586
60846
  i0.ɵɵelementEnd()();
60587
- i0.ɵɵelementStart(7, "symphiq-funnel-metrics-visualization", 70);
60847
+ i0.ɵɵelementStart(7, "symphiq-funnel-metrics-visualization", 73);
60588
60848
  i0.ɵɵlistener("viewStageReport", function InitialTargetSettingComponent_Conditional_40_Template_symphiq_funnel_metrics_visualization_viewStageReport_7_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.openMetricReport($event)); })("viewRelatedMetricReport", function InitialTargetSettingComponent_Conditional_40_Template_symphiq_funnel_metrics_visualization_viewRelatedMetricReport_7_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.openMetricReport($event)); })("editRelatedMetricTarget", function InitialTargetSettingComponent_Conditional_40_Template_symphiq_funnel_metrics_visualization_editRelatedMetricTarget_7_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.onEditRelatedMetricTarget($event)); });
60589
60849
  i0.ɵɵelementEnd()();
60590
60850
  } if (rf & 2) {
@@ -60597,11 +60857,11 @@ function InitialTargetSettingComponent_Conditional_40_Template(rf, ctx) { if (rf
60597
60857
  i0.ɵɵadvance();
60598
60858
  i0.ɵɵconditional(!ctx_r0.hasExistingTargets() && ctx_r0.submittedAbsoluteInput() !== null ? 5 : 6);
60599
60859
  i0.ɵɵadvance(2);
60600
- i0.ɵɵproperty("viewMode", ctx_r0.viewMode())("calculations", ctx_r0.displayedMetricCalculations())("pacingMetrics", ctx_r0.pacingMetrics())("hasExistingTargets", ctx_r0.hasExistingTargets());
60860
+ i0.ɵɵproperty("viewMode", ctx_r0.viewMode())("calculations", ctx_r0.displayedMetricCalculations())("pacingMetrics", ctx_r0.pacingMetrics())("hasExistingTargets", ctx_r0.hasExistingTargets())("isCalculatingTargets", ctx_r0.isCalculatingTargets());
60601
60861
  } }
60602
60862
  function InitialTargetSettingComponent_Conditional_41_Template(rf, ctx) { if (rf & 1) {
60603
60863
  const _r10 = i0.ɵɵgetCurrentView();
60604
- i0.ɵɵelementStart(0, "symphiq-sticky-submit-bar", 71);
60864
+ i0.ɵɵelementStart(0, "symphiq-sticky-submit-bar", 74);
60605
60865
  i0.ɵɵlistener("submitClick", function InitialTargetSettingComponent_Conditional_41_Template_symphiq_sticky_submit_bar_submitClick_0_listener() { i0.ɵɵrestoreView(_r10); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.handleSubmitClick()); })("cancelClick", function InitialTargetSettingComponent_Conditional_41_Template_symphiq_sticky_submit_bar_cancelClick_0_listener() { i0.ɵɵrestoreView(_r10); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.handleCancel()); });
60606
60866
  i0.ɵɵelementEnd();
60607
60867
  } if (rf & 2) {
@@ -60613,11 +60873,11 @@ function InitialTargetSettingComponent_Conditional_42_Template(rf, ctx) { if (rf
60613
60873
  i0.ɵɵelementStart(0, "div", 33)(1, "p", 52);
60614
60874
  i0.ɵɵtext(2, " You have unsaved target changes. ");
60615
60875
  i0.ɵɵelementEnd();
60616
- i0.ɵɵelementStart(3, "div", 72)(4, "button", 73);
60876
+ i0.ɵɵelementStart(3, "div", 75)(4, "button", 76);
60617
60877
  i0.ɵɵlistener("click", function InitialTargetSettingComponent_Conditional_42_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r11); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.onDiscardChanges()); });
60618
60878
  i0.ɵɵtext(5, " Reset ");
60619
60879
  i0.ɵɵelementEnd();
60620
- i0.ɵɵelementStart(6, "button", 73);
60880
+ i0.ɵɵelementStart(6, "button", 76);
60621
60881
  i0.ɵɵlistener("click", function InitialTargetSettingComponent_Conditional_42_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r11); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.onSaveTargets()); });
60622
60882
  i0.ɵɵtext(7, " Save Targets ");
60623
60883
  i0.ɵɵelementEnd()()();
@@ -60640,9 +60900,12 @@ class InitialTargetSettingComponent {
60640
60900
  this.shopId = input(undefined, ...(ngDevMode ? [{ debugName: "shopId" }] : []));
60641
60901
  this.pacingMetrics = input(undefined, ...(ngDevMode ? [{ debugName: "pacingMetrics" }] : []));
60642
60902
  this.dataResults = input([], ...(ngDevMode ? [{ debugName: "dataResults" }] : []));
60643
- this.reverseCalculationResponse = input(undefined, ...(ngDevMode ? [{ debugName: "reverseCalculationResponse" }] : []));
60903
+ this.calculateRevenueReverseResponse = input(undefined, ...(ngDevMode ? [{ debugName: "calculateRevenueReverseResponse" }] : []));
60904
+ this.calculateRevenueResponse = input(undefined, ...(ngDevMode ? [{ debugName: "calculateRevenueResponse" }] : []));
60905
+ this.isCalculatingTargets = input(false, ...(ngDevMode ? [{ debugName: "isCalculatingTargets" }] : []));
60644
60906
  this.targets = input(undefined, ...(ngDevMode ? [{ debugName: "targets" }] : []));
60645
60907
  this.targetsCreated = output();
60908
+ this.calculateRevenueReverseRequest = output();
60646
60909
  this.calculateRevenueRequest = output();
60647
60910
  this.editRelatedMetricTarget = output();
60648
60911
  this.saveTargetsClick = output();
@@ -60657,6 +60920,7 @@ class InitialTargetSettingComponent {
60657
60920
  this.percentageInput = signal(null, ...(ngDevMode ? [{ debugName: "percentageInput" }] : []));
60658
60921
  this.calculationState = signal('input', ...(ngDevMode ? [{ debugName: "calculationState" }] : []));
60659
60922
  this.storedResponse = signal(null, ...(ngDevMode ? [{ debugName: "storedResponse" }] : []));
60923
+ this.storedCalculateResponse = signal(null, ...(ngDevMode ? [{ debugName: "storedCalculateResponse" }] : []));
60660
60924
  this.submittedAbsoluteInput = signal(null, ...(ngDevMode ? [{ debugName: "submittedAbsoluteInput" }] : []));
60661
60925
  this.detailsExpanded = signal(false, ...(ngDevMode ? [{ debugName: "detailsExpanded" }] : []));
60662
60926
  this.isMetricReportOpen = signal(false, ...(ngDevMode ? [{ debugName: "isMetricReportOpen" }] : []));
@@ -60785,17 +61049,35 @@ class InitialTargetSettingComponent {
60785
61049
  });
60786
61050
  }
60787
61051
  }
60788
- if (pendingChanges.size === 0) {
60789
- return baseResults;
61052
+ let resultsWithPending = baseResults;
61053
+ if (pendingChanges.size > 0) {
61054
+ resultsWithPending = baseResults.map(calc => {
61055
+ const pending = pendingChanges.get(calc.metric);
61056
+ if (pending) {
61057
+ return {
61058
+ ...calc,
61059
+ originalTargetValue: pending.originalValue,
61060
+ targetValue: pending.newValue,
61061
+ percentageIncrease: pending.percentageChange
61062
+ };
61063
+ }
61064
+ return calc;
61065
+ });
60790
61066
  }
60791
- return baseResults.map(calc => {
60792
- const pending = pendingChanges.get(calc.metric);
60793
- if (pending) {
61067
+ const calculateResponse = this.storedCalculateResponse();
61068
+ if (!calculateResponse || !calculateResponse.metricValues || calculateResponse.metricValues.length === 0) {
61069
+ return resultsWithPending;
61070
+ }
61071
+ return resultsWithPending.map(calc => {
61072
+ const responseMetric = calculateResponse.metricValues.find(mv => mv.metric === calc.metric);
61073
+ if (responseMetric) {
61074
+ const { targetValue: newTargetValue, percentageIncrease: newPercentageIncrease } = this.parseMetricValue(responseMetric.value);
61075
+ const originalValue = calc.originalTargetValue !== undefined ? calc.originalTargetValue : calc.targetValue;
60794
61076
  return {
60795
61077
  ...calc,
60796
- originalTargetValue: pending.originalValue,
60797
- targetValue: pending.newValue,
60798
- percentageIncrease: pending.percentageChange
61078
+ originalTargetValue: originalValue,
61079
+ targetValue: newTargetValue,
61080
+ percentageIncrease: newPercentageIncrease
60799
61081
  };
60800
61082
  }
60801
61083
  return calc;
@@ -60894,12 +61176,18 @@ class InitialTargetSettingComponent {
60894
61176
  }
60895
61177
  }, { allowSignalWrites: true });
60896
61178
  effect(() => {
60897
- const response = this.reverseCalculationResponse();
61179
+ const response = this.calculateRevenueReverseResponse();
60898
61180
  if (response) {
60899
61181
  this.storedResponse.set(response);
60900
61182
  this.calculationState.set('results');
60901
61183
  }
60902
61184
  }, { allowSignalWrites: true });
61185
+ effect(() => {
61186
+ const response = this.calculateRevenueResponse();
61187
+ if (response) {
61188
+ this.storedCalculateResponse.set(response);
61189
+ }
61190
+ }, { allowSignalWrites: true });
60903
61191
  effect(() => {
60904
61192
  const targetRevenue = this.displayedTargetRevenue();
60905
61193
  const priorRevenue = this.priorYearRevenue();
@@ -61072,7 +61360,7 @@ class InitialTargetSettingComponent {
61072
61360
  targetRevenue: this.calculatedRevenue(),
61073
61361
  funnelType: FunnelMetricTypeEnum.REVENUE,
61074
61362
  };
61075
- this.calculateRevenueRequest.emit(request);
61363
+ this.calculateRevenueReverseRequest.emit(request);
61076
61364
  }
61077
61365
  handleSetTargets() {
61078
61366
  const response = this.storedResponse();
@@ -61182,6 +61470,16 @@ class InitialTargetSettingComponent {
61182
61470
  ? 'text-purple-300'
61183
61471
  : 'text-purple-700';
61184
61472
  }
61473
+ loadingSpinnerClasses() {
61474
+ return this.viewMode() === ViewModeEnum.DARK
61475
+ ? 'border-purple-400'
61476
+ : 'border-purple-600';
61477
+ }
61478
+ calculatingTextClasses() {
61479
+ return this.viewMode() === ViewModeEnum.DARK
61480
+ ? 'text-purple-300'
61481
+ : 'text-purple-600';
61482
+ }
61185
61483
  calculatedSecondaryClasses() {
61186
61484
  return this.viewMode() === ViewModeEnum.DARK
61187
61485
  ? 'text-purple-200'
@@ -61310,6 +61608,14 @@ class InitialTargetSettingComponent {
61310
61608
  percentageChange: event.percentageChange
61311
61609
  });
61312
61610
  this.pendingTargetChanges.set(pendingChanges);
61611
+ const calculations = this.displayedMetricCalculations();
61612
+ const proposedTargets = generateTargetsFromCalculations(this.shopId(), calculations);
61613
+ const request = {
61614
+ shopId: this.shopId(),
61615
+ funnelType: FunnelMetricTypeEnum.REVENUE,
61616
+ proposedTargets
61617
+ };
61618
+ this.calculateRevenueRequest.emit(request);
61313
61619
  this.closeEditMetricModal();
61314
61620
  }
61315
61621
  onSaveTargets() {
@@ -61335,8 +61641,8 @@ class InitialTargetSettingComponent {
61335
61641
  }
61336
61642
  saveFooterClasses() {
61337
61643
  return this.viewMode() === ViewModeEnum.DARK
61338
- ? 'bg-slate-800/50 border-slate-700/50'
61339
- : 'bg-slate-50 border-slate-200';
61644
+ ? 'bg-slate-900 border-slate-700'
61645
+ : 'bg-white border-slate-200';
61340
61646
  }
61341
61647
  saveFooterTextClasses() {
61342
61648
  return this.viewMode() === ViewModeEnum.DARK
@@ -61361,7 +61667,7 @@ class InitialTargetSettingComponent {
61361
61667
  let _t;
61362
61668
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.absoluteInputRef = _t.first);
61363
61669
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.percentageInputRef = _t.first);
61364
- } }, inputs: { viewMode: [1, "viewMode"], funnelMetrics: [1, "funnelMetrics"], mainUiData: [1, "mainUiData"], trendUiData: [1, "trendUiData"], shopId: [1, "shopId"], pacingMetrics: [1, "pacingMetrics"], dataResults: [1, "dataResults"], reverseCalculationResponse: [1, "reverseCalculationResponse"], targets: [1, "targets"] }, outputs: { targetsCreated: "targetsCreated", 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"], [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, "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"], [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) {
61670
+ } }, 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) {
61365
61671
  i0.ɵɵelementStart(0, "div", 2);
61366
61672
  i0.ɵɵelement(1, "symphiq-tooltip-container");
61367
61673
  i0.ɵɵelementStart(2, "div", 3);
@@ -61397,12 +61703,12 @@ class InitialTargetSettingComponent {
61397
61703
  i0.ɵɵconditionalCreate(32, InitialTargetSettingComponent_Conditional_32_Template, 1, 5, "symphiq-area-chart", 23)(33, InitialTargetSettingComponent_Conditional_33_Template, 3, 1, "div", 24);
61398
61704
  i0.ɵɵelementEnd()()()()();
61399
61705
  i0.ɵɵelementStart(34, "div", 25)(35, "div", 26);
61400
- i0.ɵɵconditionalCreate(36, InitialTargetSettingComponent_Conditional_36_Template, 32, 23, "div", 27);
61706
+ i0.ɵɵconditionalCreate(36, InitialTargetSettingComponent_Conditional_36_Template, 31, 20, "div", 27);
61401
61707
  i0.ɵɵelementEnd()()();
61402
61708
  i0.ɵɵconditionalCreate(37, InitialTargetSettingComponent_Conditional_37_Template, 6, 3, "div", 28);
61403
61709
  i0.ɵɵelementEnd()();
61404
61710
  i0.ɵɵelementStart(38, "div", 29)(39, "div", 30);
61405
- i0.ɵɵconditionalCreate(40, InitialTargetSettingComponent_Conditional_40_Template, 8, 8, "div", 31);
61711
+ i0.ɵɵconditionalCreate(40, InitialTargetSettingComponent_Conditional_40_Template, 8, 9, "div", 31);
61406
61712
  i0.ɵɵelementEnd()();
61407
61713
  i0.ɵɵconditionalCreate(41, InitialTargetSettingComponent_Conditional_41_Template, 1, 6, "symphiq-sticky-submit-bar", 32);
61408
61714
  i0.ɵɵconditionalCreate(42, InitialTargetSettingComponent_Conditional_42_Template, 8, 4, "div", 33);
@@ -61676,14 +61982,21 @@ class InitialTargetSettingComponent {
61676
61982
  <p [ngClass]="calculatedLabelClasses()" class="text-xs font-medium uppercase tracking-wider">
61677
61983
  {{ currentYear() }} Revenue Target
61678
61984
  </p>
61679
- <p [ngClass]="calculatedValueClasses()" class="font-bold transition-all duration-300 text-lg"
61680
- [class.lg:text-3xl]="calculationState() !== 'results' || detailsExpanded()">
61681
- @if (calculationState() === 'results' && !hasExistingTargets() && submittedAbsoluteInput() !== null) {
61682
- > {{ formatCurrency(submittedAbsoluteInput()!) }}
61683
- } @else {
61684
- {{ formatCurrency(displayedTargetRevenue()) }}
61685
- }
61686
- </p>
61985
+ @if (isCalculatingTargets()) {
61986
+ <div class="flex items-center gap-2">
61987
+ <div [ngClass]="loadingSpinnerClasses()" class="w-5 h-5 border-2 border-t-transparent rounded-full animate-spin"></div>
61988
+ <p [ngClass]="calculatingTextClasses()" class="text-lg font-medium">Calculating...</p>
61989
+ </div>
61990
+ } @else {
61991
+ <p [ngClass]="calculatedValueClasses()" class="font-bold transition-all duration-300 text-lg"
61992
+ [class.lg:text-3xl]="calculationState() !== 'results' || detailsExpanded()">
61993
+ @if (calculationState() === 'results' && !hasExistingTargets() && submittedAbsoluteInput() !== null) {
61994
+ > {{ formatCurrency(submittedAbsoluteInput()!) }}
61995
+ } @else {
61996
+ {{ formatCurrency(displayedTargetRevenue()) }}
61997
+ }
61998
+ </p>
61999
+ }
61687
62000
  </div>
61688
62001
  @if (calculationState() === 'results' && !hasExistingTargets()) {
61689
62002
  <button
@@ -61843,6 +62156,7 @@ class InitialTargetSettingComponent {
61843
62156
  [calculations]="displayedMetricCalculations()"
61844
62157
  [pacingMetrics]="pacingMetrics()"
61845
62158
  [hasExistingTargets]="hasExistingTargets()"
62159
+ [isCalculatingTargets]="isCalculatingTargets()"
61846
62160
  (viewStageReport)="openMetricReport($event)"
61847
62161
  (viewRelatedMetricReport)="openMetricReport($event)"
61848
62162
  (editRelatedMetricTarget)="onEditRelatedMetricTarget($event)"
@@ -61918,8 +62232,8 @@ class InitialTargetSettingComponent {
61918
62232
  }], percentageInputRef: [{
61919
62233
  type: ViewChild,
61920
62234
  args: ['percentageInputRef']
61921
- }], viewMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewMode", required: false }] }], funnelMetrics: [{ type: i0.Input, args: [{ isSignal: true, alias: "funnelMetrics", required: false }] }], mainUiData: [{ type: i0.Input, args: [{ isSignal: true, alias: "mainUiData", required: false }] }], trendUiData: [{ type: i0.Input, args: [{ isSignal: true, alias: "trendUiData", required: false }] }], shopId: [{ type: i0.Input, args: [{ isSignal: true, alias: "shopId", required: false }] }], pacingMetrics: [{ type: i0.Input, args: [{ isSignal: true, alias: "pacingMetrics", required: false }] }], dataResults: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataResults", required: false }] }], reverseCalculationResponse: [{ type: i0.Input, args: [{ isSignal: true, alias: "reverseCalculationResponse", required: false }] }], targets: [{ type: i0.Input, args: [{ isSignal: true, alias: "targets", required: false }] }], targetsCreated: [{ type: i0.Output, args: ["targetsCreated"] }], calculateRevenueRequest: [{ type: i0.Output, args: ["calculateRevenueRequest"] }], editRelatedMetricTarget: [{ type: i0.Output, args: ["editRelatedMetricTarget"] }], saveTargetsClick: [{ type: i0.Output, args: ["saveTargetsClick"] }], discardChangesClick: [{ type: i0.Output, args: ["discardChangesClick"] }], targetsUpdated: [{ type: i0.Output, args: ["targetsUpdated"] }] }); })();
61922
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(InitialTargetSettingComponent, { className: "InitialTargetSettingComponent", filePath: "lib/components/revenue-calculator-dashboard/initial-target-setting.component.ts", lineNumber: 578 }); })();
62235
+ }], viewMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewMode", required: false }] }], funnelMetrics: [{ type: i0.Input, args: [{ isSignal: true, alias: "funnelMetrics", required: false }] }], mainUiData: [{ type: i0.Input, args: [{ isSignal: true, alias: "mainUiData", required: false }] }], trendUiData: [{ type: i0.Input, args: [{ isSignal: true, alias: "trendUiData", required: false }] }], shopId: [{ type: i0.Input, args: [{ isSignal: true, alias: "shopId", required: false }] }], pacingMetrics: [{ type: i0.Input, args: [{ isSignal: true, alias: "pacingMetrics", required: false }] }], dataResults: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataResults", required: false }] }], calculateRevenueReverseResponse: [{ type: i0.Input, args: [{ isSignal: true, alias: "calculateRevenueReverseResponse", required: false }] }], calculateRevenueResponse: [{ type: i0.Input, args: [{ isSignal: true, alias: "calculateRevenueResponse", required: false }] }], isCalculatingTargets: [{ type: i0.Input, args: [{ isSignal: true, alias: "isCalculatingTargets", required: false }] }], targets: [{ type: i0.Input, args: [{ isSignal: true, alias: "targets", required: false }] }], targetsCreated: [{ type: i0.Output, args: ["targetsCreated"] }], calculateRevenueReverseRequest: [{ type: i0.Output, args: ["calculateRevenueReverseRequest"] }], calculateRevenueRequest: [{ type: i0.Output, args: ["calculateRevenueRequest"] }], editRelatedMetricTarget: [{ type: i0.Output, args: ["editRelatedMetricTarget"] }], saveTargetsClick: [{ type: i0.Output, args: ["saveTargetsClick"] }], discardChangesClick: [{ type: i0.Output, args: ["discardChangesClick"] }], targetsUpdated: [{ type: i0.Output, args: ["targetsUpdated"] }] }); })();
62236
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(InitialTargetSettingComponent, { className: "InitialTargetSettingComponent", filePath: "lib/components/revenue-calculator-dashboard/initial-target-setting.component.ts", lineNumber: 588 }); })();
61923
62237
 
61924
62238
  function IndeterminateSpinnerComponent_For_5_Template(rf, ctx) { if (rf & 1) {
61925
62239
  i0.ɵɵelement(0, "div", 5);
@@ -62093,13 +62407,13 @@ function SymphiqRevenueCalculatorDashboardComponent_Conditional_25_Template(rf,
62093
62407
  const _r2 = i0.ɵɵgetCurrentView();
62094
62408
  i0.ɵɵelement(0, "symphiq-revenue-calculator-welcome-banner", 14);
62095
62409
  i0.ɵɵelementStart(1, "div", 21)(2, "symphiq-initial-target-setting", 22);
62096
- i0.ɵɵlistener("targetsCreated", function SymphiqRevenueCalculatorDashboardComponent_Conditional_25_Template_symphiq_initial_target_setting_targetsCreated_2_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.onTargetsCreated($event)); })("calculateRevenueRequest", function SymphiqRevenueCalculatorDashboardComponent_Conditional_25_Template_symphiq_initial_target_setting_calculateRevenueRequest_2_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.calculateRevenueRequest.emit($event)); })("editRelatedMetricTarget", function SymphiqRevenueCalculatorDashboardComponent_Conditional_25_Template_symphiq_initial_target_setting_editRelatedMetricTarget_2_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.editRelatedMetricTarget.emit($event)); })("saveTargetsClick", function SymphiqRevenueCalculatorDashboardComponent_Conditional_25_Template_symphiq_initial_target_setting_saveTargetsClick_2_listener() { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.saveTargetsClick.emit()); })("discardChangesClick", function SymphiqRevenueCalculatorDashboardComponent_Conditional_25_Template_symphiq_initial_target_setting_discardChangesClick_2_listener() { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.discardChangesClick.emit()); });
62410
+ i0.ɵɵlistener("targetsCreated", function SymphiqRevenueCalculatorDashboardComponent_Conditional_25_Template_symphiq_initial_target_setting_targetsCreated_2_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.onTargetsCreated($event)); })("calculateRevenueReverseRequest", function SymphiqRevenueCalculatorDashboardComponent_Conditional_25_Template_symphiq_initial_target_setting_calculateRevenueReverseRequest_2_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.calculateRevenueReverseRequest.emit($event)); })("calculateRevenueRequest", function SymphiqRevenueCalculatorDashboardComponent_Conditional_25_Template_symphiq_initial_target_setting_calculateRevenueRequest_2_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.calculateRevenueRequest.emit($event)); })("editRelatedMetricTarget", function SymphiqRevenueCalculatorDashboardComponent_Conditional_25_Template_symphiq_initial_target_setting_editRelatedMetricTarget_2_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.editRelatedMetricTarget.emit($event)); })("saveTargetsClick", function SymphiqRevenueCalculatorDashboardComponent_Conditional_25_Template_symphiq_initial_target_setting_saveTargetsClick_2_listener() { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.saveTargetsClick.emit()); })("discardChangesClick", function SymphiqRevenueCalculatorDashboardComponent_Conditional_25_Template_symphiq_initial_target_setting_discardChangesClick_2_listener() { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.discardChangesClick.emit()); });
62097
62411
  i0.ɵɵelementEnd()();
62098
62412
  } if (rf & 2) {
62099
62413
  const ctx_r0 = i0.ɵɵnextContext();
62100
62414
  i0.ɵɵproperty("viewMode", ctx_r0.viewMode())("dataLoadStatus", ctx_r0.dataLoadStatus() ?? ctx_r0.ShopDataLoadStatusEnum.NOT_LOADED)("hasTargets", ctx_r0.hasCurrentYearTargets());
62101
62415
  i0.ɵɵadvance(2);
62102
- i0.ɵɵproperty("viewMode", ctx_r0.viewMode())("funnelMetrics", ctx_r0.funnelMetrics() ?? i0.ɵɵpureFunction0(12, _c0$p))("mainUiData", ctx_r0.mainUiData())("trendUiData", ctx_r0.trendUiData())("shopId", ctx_r0.shopId())("pacingMetrics", ctx_r0.pacingResponse())("dataResults", ctx_r0.dataResults())("reverseCalculationResponse", ctx_r0.reverseCalculationResponse())("targets", ctx_r0.targets());
62416
+ i0.ɵɵproperty("viewMode", ctx_r0.viewMode())("funnelMetrics", ctx_r0.funnelMetrics() ?? i0.ɵɵpureFunction0(14, _c0$p))("mainUiData", ctx_r0.mainUiData())("trendUiData", ctx_r0.trendUiData())("shopId", ctx_r0.shopId())("pacingMetrics", ctx_r0.pacingResponse())("dataResults", ctx_r0.dataResults())("calculateRevenueReverseResponse", ctx_r0.calculateRevenueReverseResponse())("calculateRevenueResponse", ctx_r0.calculateRevenueResponse())("isCalculatingTargets", ctx_r0.isCalculatingTargets())("targets", ctx_r0.targets());
62103
62417
  } }
62104
62418
  dayjs.extend(utc);
62105
62419
  class SymphiqRevenueCalculatorDashboardComponent {
@@ -62120,11 +62434,14 @@ class SymphiqRevenueCalculatorDashboardComponent {
62120
62434
  this.scrollElement = input(...(ngDevMode ? [undefined, { debugName: "scrollElement" }] : []));
62121
62435
  this.forDemo = input(false, ...(ngDevMode ? [{ debugName: "forDemo" }] : []));
62122
62436
  this.maxAccessibleStepId = input(undefined, ...(ngDevMode ? [{ debugName: "maxAccessibleStepId" }] : []));
62123
- this.reverseCalculationResponse = input(undefined, ...(ngDevMode ? [{ debugName: "reverseCalculationResponse" }] : []));
62437
+ this.calculateRevenueReverseResponse = input(undefined, ...(ngDevMode ? [{ debugName: "calculateRevenueReverseResponse" }] : []));
62438
+ this.calculateRevenueResponse = input(undefined, ...(ngDevMode ? [{ debugName: "calculateRevenueResponse" }] : []));
62439
+ this.isCalculatingTargets = input(false, ...(ngDevMode ? [{ debugName: "isCalculatingTargets" }] : []));
62124
62440
  this.stepClick = output();
62125
62441
  this.nextStepClick = output();
62126
62442
  this.targetsCreated = output();
62127
62443
  this.calculateRevenueRequest = output();
62444
+ this.calculateRevenueReverseRequest = output();
62128
62445
  this.editRelatedMetricTarget = output();
62129
62446
  this.saveTargetsClick = output();
62130
62447
  this.discardChangesClick = output();
@@ -62265,7 +62582,7 @@ class SymphiqRevenueCalculatorDashboardComponent {
62265
62582
  static { this.ɵfac = function SymphiqRevenueCalculatorDashboardComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SymphiqRevenueCalculatorDashboardComponent)(); }; }
62266
62583
  static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SymphiqRevenueCalculatorDashboardComponent, selectors: [["symphiq-revenue-calculator-dashboard"]], hostBindings: function SymphiqRevenueCalculatorDashboardComponent_HostBindings(rf, ctx) { if (rf & 1) {
62267
62584
  i0.ɵɵlistener("scroll", function SymphiqRevenueCalculatorDashboardComponent_scroll_HostBindingHandler($event) { return ctx.onWindowScroll($event); }, i0.ɵɵresolveWindow);
62268
- } }, inputs: { viewMode: [1, "viewMode"], isLoading: [1, "isLoading"], dataLoadStatus: [1, "dataLoadStatus"], targets: [1, "targets"], funnelMetrics: [1, "funnelMetrics"], mainUiData: [1, "mainUiData"], ytdComparisonUiData: [1, "ytdComparisonUiData"], trendUiData: [1, "trendUiData"], pacingResponse: [1, "pacingResponse"], dataResults: [1, "dataResults"], shopId: [1, "shopId"], embedded: [1, "embedded"], scrollEvent: [1, "scrollEvent"], scrollElement: [1, "scrollElement"], forDemo: [1, "forDemo"], maxAccessibleStepId: [1, "maxAccessibleStepId"], reverseCalculationResponse: [1, "reverseCalculationResponse"] }, outputs: { stepClick: "stepClick", nextStepClick: "nextStepClick", targetsCreated: "targetsCreated", calculateRevenueRequest: "calculateRevenueRequest", editRelatedMetricTarget: "editRelatedMetricTarget", saveTargetsClick: "saveTargetsClick", discardChangesClick: "discardChangesClick" }, decls: 26, vars: 42, consts: [[3, "ngClass"], [1, "h-full", "transition-all", "duration-200", "ease-out", 3, "ngClass"], [1, "animated-bubbles", 2, "position", "fixed", "top", "0", "left", "0", "right", "0", "bottom", "0", "width", "100vw", "height", "100vh", "z-index", "1", "pointer-events", "none"], [1, "relative", "z-[51]"], [1, "sticky", "top-0", "z-50", 3, "ngClass"], [1, "transition-all", "duration-300", "ease-in-out", "overflow-hidden"], [1, "max-w-7xl", "mx-auto", "px-4", "sm:px-6", "lg:px-8", "py-8"], [1, "flex", "items-center", "justify-between"], [1, "max-w-7xl", "mx-auto", "px-4", "sm:px-6", "lg:px-8", "py-3"], [1, "flex-1", "min-w-0", "mr-4"], [3, "stepClick", "nextStepClick", "viewMode", "currentStepId", "showNextStepAction", "forDemo", "maxAccessibleStepId"], [1, "relative"], [1, "flex", "items-center", "justify-center", "min-h-[400px]"], ["size", "large", 3, "viewMode"], [3, "viewMode", "dataLoadStatus", "hasTargets"], [1, "mt-8", "rounded-2xl", "border", "shadow-lg", "overflow-hidden", 3, "ngClass"], [1, "px-8", "py-12", 3, "ngClass"], [1, "flex", "flex-col", "items-center", "text-center", "space-y-6"], [1, "space-y-2"], [1, "text-xl", "font-bold", 3, "ngClass"], [1, "text-sm", "max-w-md", 3, "ngClass"], [1, "mt-8"], [3, "targetsCreated", "calculateRevenueRequest", "editRelatedMetricTarget", "saveTargetsClick", "discardChangesClick", "viewMode", "funnelMetrics", "mainUiData", "trendUiData", "shopId", "pacingMetrics", "dataResults", "reverseCalculationResponse", "targets"]], template: function SymphiqRevenueCalculatorDashboardComponent_Template(rf, ctx) { if (rf & 1) {
62585
+ } }, inputs: { viewMode: [1, "viewMode"], isLoading: [1, "isLoading"], dataLoadStatus: [1, "dataLoadStatus"], targets: [1, "targets"], funnelMetrics: [1, "funnelMetrics"], mainUiData: [1, "mainUiData"], ytdComparisonUiData: [1, "ytdComparisonUiData"], trendUiData: [1, "trendUiData"], pacingResponse: [1, "pacingResponse"], dataResults: [1, "dataResults"], shopId: [1, "shopId"], embedded: [1, "embedded"], scrollEvent: [1, "scrollEvent"], scrollElement: [1, "scrollElement"], forDemo: [1, "forDemo"], maxAccessibleStepId: [1, "maxAccessibleStepId"], calculateRevenueReverseResponse: [1, "calculateRevenueReverseResponse"], calculateRevenueResponse: [1, "calculateRevenueResponse"], isCalculatingTargets: [1, "isCalculatingTargets"] }, outputs: { stepClick: "stepClick", nextStepClick: "nextStepClick", targetsCreated: "targetsCreated", calculateRevenueRequest: "calculateRevenueRequest", calculateRevenueReverseRequest: "calculateRevenueReverseRequest", editRelatedMetricTarget: "editRelatedMetricTarget", saveTargetsClick: "saveTargetsClick", discardChangesClick: "discardChangesClick" }, decls: 26, vars: 42, consts: [[3, "ngClass"], [1, "h-full", "transition-all", "duration-200", "ease-out", 3, "ngClass"], [1, "animated-bubbles", 2, "position", "fixed", "top", "0", "left", "0", "right", "0", "bottom", "0", "width", "100vw", "height", "100vh", "z-index", "1", "pointer-events", "none"], [1, "relative", "z-[51]"], [1, "sticky", "top-0", "z-50", 3, "ngClass"], [1, "transition-all", "duration-300", "ease-in-out", "overflow-hidden"], [1, "max-w-7xl", "mx-auto", "px-4", "sm:px-6", "lg:px-8", "py-8"], [1, "flex", "items-center", "justify-between"], [1, "max-w-7xl", "mx-auto", "px-4", "sm:px-6", "lg:px-8", "py-3"], [1, "flex-1", "min-w-0", "mr-4"], [3, "stepClick", "nextStepClick", "viewMode", "currentStepId", "showNextStepAction", "forDemo", "maxAccessibleStepId"], [1, "relative"], [1, "flex", "items-center", "justify-center", "min-h-[400px]"], ["size", "large", 3, "viewMode"], [3, "viewMode", "dataLoadStatus", "hasTargets"], [1, "mt-8", "rounded-2xl", "border", "shadow-lg", "overflow-hidden", 3, "ngClass"], [1, "px-8", "py-12", 3, "ngClass"], [1, "flex", "flex-col", "items-center", "text-center", "space-y-6"], [1, "space-y-2"], [1, "text-xl", "font-bold", 3, "ngClass"], [1, "text-sm", "max-w-md", 3, "ngClass"], [1, "mt-8"], [3, "targetsCreated", "calculateRevenueReverseRequest", "calculateRevenueRequest", "editRelatedMetricTarget", "saveTargetsClick", "discardChangesClick", "viewMode", "funnelMetrics", "mainUiData", "trendUiData", "shopId", "pacingMetrics", "dataResults", "calculateRevenueReverseResponse", "calculateRevenueResponse", "isCalculatingTargets", "targets"]], template: function SymphiqRevenueCalculatorDashboardComponent_Template(rf, ctx) { if (rf & 1) {
62269
62586
  i0.ɵɵelementStart(0, "div", 0)(1, "div");
62270
62587
  i0.ɵɵelement(2, "div", 1);
62271
62588
  i0.ɵɵelementEnd();
@@ -62283,7 +62600,7 @@ class SymphiqRevenueCalculatorDashboardComponent {
62283
62600
  i0.ɵɵlistener("stepClick", function SymphiqRevenueCalculatorDashboardComponent_Template_symphiq_journey_progress_indicator_stepClick_20_listener($event) { return ctx.stepClick.emit($event); })("nextStepClick", function SymphiqRevenueCalculatorDashboardComponent_Template_symphiq_journey_progress_indicator_nextStepClick_20_listener() { return ctx.nextStepClick.emit(); });
62284
62601
  i0.ɵɵelementEnd();
62285
62602
  i0.ɵɵelementStart(21, "main", 11)(22, "div", 6);
62286
- i0.ɵɵconditionalCreate(23, SymphiqRevenueCalculatorDashboardComponent_Conditional_23_Template, 2, 1, "div", 12)(24, SymphiqRevenueCalculatorDashboardComponent_Conditional_24_Template, 10, 8)(25, SymphiqRevenueCalculatorDashboardComponent_Conditional_25_Template, 3, 13);
62603
+ i0.ɵɵconditionalCreate(23, SymphiqRevenueCalculatorDashboardComponent_Conditional_23_Template, 2, 1, "div", 12)(24, SymphiqRevenueCalculatorDashboardComponent_Conditional_24_Template, 10, 8)(25, SymphiqRevenueCalculatorDashboardComponent_Conditional_25_Template, 3, 15);
62287
62604
  i0.ɵɵelementEnd()()()();
62288
62605
  } if (rf & 2) {
62289
62606
  i0.ɵɵproperty("ngClass", ctx.getContainerClasses());
@@ -62468,9 +62785,12 @@ class SymphiqRevenueCalculatorDashboardComponent {
62468
62785
  [shopId]="shopId()"
62469
62786
  [pacingMetrics]="pacingResponse()"
62470
62787
  [dataResults]="dataResults()"
62471
- [reverseCalculationResponse]="reverseCalculationResponse()"
62788
+ [calculateRevenueReverseResponse]="calculateRevenueReverseResponse()"
62789
+ [calculateRevenueResponse]="calculateRevenueResponse()"
62790
+ [isCalculatingTargets]="isCalculatingTargets()"
62472
62791
  [targets]="targets()"
62473
62792
  (targetsCreated)="onTargetsCreated($event)"
62793
+ (calculateRevenueReverseRequest)="calculateRevenueReverseRequest.emit($event)"
62474
62794
  (calculateRevenueRequest)="calculateRevenueRequest.emit($event)"
62475
62795
  (editRelatedMetricTarget)="editRelatedMetricTarget.emit($event)"
62476
62796
  (saveTargetsClick)="saveTargetsClick.emit()"
@@ -62485,11 +62805,11 @@ class SymphiqRevenueCalculatorDashboardComponent {
62485
62805
  </div>
62486
62806
  `
62487
62807
  }]
62488
- }], () => [], { viewMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewMode", required: false }] }], isLoading: [{ type: i0.Input, args: [{ isSignal: true, alias: "isLoading", required: false }] }], dataLoadStatus: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataLoadStatus", required: false }] }], targets: [{ type: i0.Input, args: [{ isSignal: true, alias: "targets", required: false }] }], funnelMetrics: [{ type: i0.Input, args: [{ isSignal: true, alias: "funnelMetrics", required: false }] }], mainUiData: [{ type: i0.Input, args: [{ isSignal: true, alias: "mainUiData", required: false }] }], ytdComparisonUiData: [{ type: i0.Input, args: [{ isSignal: true, alias: "ytdComparisonUiData", required: false }] }], trendUiData: [{ type: i0.Input, args: [{ isSignal: true, alias: "trendUiData", required: false }] }], pacingResponse: [{ type: i0.Input, args: [{ isSignal: true, alias: "pacingResponse", required: false }] }], dataResults: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataResults", required: false }] }], shopId: [{ type: i0.Input, args: [{ isSignal: true, alias: "shopId", required: false }] }], embedded: [{ type: i0.Input, args: [{ isSignal: true, alias: "embedded", required: false }] }], scrollEvent: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollEvent", required: false }] }], scrollElement: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollElement", required: false }] }], forDemo: [{ type: i0.Input, args: [{ isSignal: true, alias: "forDemo", required: false }] }], maxAccessibleStepId: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxAccessibleStepId", required: false }] }], reverseCalculationResponse: [{ type: i0.Input, args: [{ isSignal: true, alias: "reverseCalculationResponse", required: false }] }], stepClick: [{ type: i0.Output, args: ["stepClick"] }], nextStepClick: [{ type: i0.Output, args: ["nextStepClick"] }], targetsCreated: [{ type: i0.Output, args: ["targetsCreated"] }], calculateRevenueRequest: [{ type: i0.Output, args: ["calculateRevenueRequest"] }], editRelatedMetricTarget: [{ type: i0.Output, args: ["editRelatedMetricTarget"] }], saveTargetsClick: [{ type: i0.Output, args: ["saveTargetsClick"] }], discardChangesClick: [{ type: i0.Output, args: ["discardChangesClick"] }], onWindowScroll: [{
62808
+ }], () => [], { viewMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewMode", required: false }] }], isLoading: [{ type: i0.Input, args: [{ isSignal: true, alias: "isLoading", required: false }] }], dataLoadStatus: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataLoadStatus", required: false }] }], targets: [{ type: i0.Input, args: [{ isSignal: true, alias: "targets", required: false }] }], funnelMetrics: [{ type: i0.Input, args: [{ isSignal: true, alias: "funnelMetrics", required: false }] }], mainUiData: [{ type: i0.Input, args: [{ isSignal: true, alias: "mainUiData", required: false }] }], ytdComparisonUiData: [{ type: i0.Input, args: [{ isSignal: true, alias: "ytdComparisonUiData", required: false }] }], trendUiData: [{ type: i0.Input, args: [{ isSignal: true, alias: "trendUiData", required: false }] }], pacingResponse: [{ type: i0.Input, args: [{ isSignal: true, alias: "pacingResponse", required: false }] }], dataResults: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataResults", required: false }] }], shopId: [{ type: i0.Input, args: [{ isSignal: true, alias: "shopId", required: false }] }], embedded: [{ type: i0.Input, args: [{ isSignal: true, alias: "embedded", required: false }] }], scrollEvent: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollEvent", required: false }] }], scrollElement: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollElement", required: false }] }], forDemo: [{ type: i0.Input, args: [{ isSignal: true, alias: "forDemo", required: false }] }], maxAccessibleStepId: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxAccessibleStepId", required: false }] }], calculateRevenueReverseResponse: [{ type: i0.Input, args: [{ isSignal: true, alias: "calculateRevenueReverseResponse", required: false }] }], calculateRevenueResponse: [{ type: i0.Input, args: [{ isSignal: true, alias: "calculateRevenueResponse", required: false }] }], isCalculatingTargets: [{ type: i0.Input, args: [{ isSignal: true, alias: "isCalculatingTargets", required: false }] }], stepClick: [{ type: i0.Output, args: ["stepClick"] }], nextStepClick: [{ type: i0.Output, args: ["nextStepClick"] }], targetsCreated: [{ type: i0.Output, args: ["targetsCreated"] }], calculateRevenueRequest: [{ type: i0.Output, args: ["calculateRevenueRequest"] }], calculateRevenueReverseRequest: [{ type: i0.Output, args: ["calculateRevenueReverseRequest"] }], editRelatedMetricTarget: [{ type: i0.Output, args: ["editRelatedMetricTarget"] }], saveTargetsClick: [{ type: i0.Output, args: ["saveTargetsClick"] }], discardChangesClick: [{ type: i0.Output, args: ["discardChangesClick"] }], onWindowScroll: [{
62489
62809
  type: HostListener,
62490
62810
  args: ['window:scroll', ['$event']]
62491
62811
  }] }); })();
62492
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SymphiqRevenueCalculatorDashboardComponent, { className: "SymphiqRevenueCalculatorDashboardComponent", filePath: "lib/components/revenue-calculator-dashboard/symphiq-revenue-calculator-dashboard.component.ts", lineNumber: 201 }); })();
62812
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SymphiqRevenueCalculatorDashboardComponent, { className: "SymphiqRevenueCalculatorDashboardComponent", filePath: "lib/components/revenue-calculator-dashboard/symphiq-revenue-calculator-dashboard.component.ts", lineNumber: 206 }); })();
62493
62813
 
62494
62814
  function HierarchyDisplayComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
62495
62815
  i0.ɵɵelementStart(0, "div", 1)(1, "div", 1);