@eric-emg/symphiq-components 1.2.269 → 1.2.271

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
- i0.ɵɵadvance();
55527
- i0.ɵɵconditional(stage_r2.stageMetric.originalTargetValue !== undefined ? 19 : -1);
55528
55549
  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);
@@ -59103,57 +59142,109 @@ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional
59103
59142
  const ctx_r1 = i0.ɵɵnextContext(3);
59104
59143
  i0.ɵɵproperty("ngClass", ctx_r1.originalValueClasses());
59105
59144
  i0.ɵɵadvance();
59106
- i0.ɵɵtextInterpolate1(" ", ctx_r1.formatMetricValue(ctx_r1.initialTargetValue()), " ");
59145
+ i0.ɵɵtextInterpolate1(" ", ctx_r1.formatMetricValue(ctx_r1.initialTargetValue(), false), " ");
59107
59146
  } }
59108
- function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_19_Template(rf, ctx) { if (rf & 1) {
59147
+ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_20_Template(rf, ctx) { if (rf & 1) {
59109
59148
  i0.ɵɵtext(0);
59110
59149
  } if (rf & 2) {
59111
59150
  const ctx_r1 = i0.ɵɵnextContext(3);
59112
59151
  i0.ɵɵtextInterpolate1(" ", ctx_r1.formatMetricValue(ctx_r1.animatedIncreaseAmount()), " ");
59113
59152
  } }
59114
- function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_20_Template(rf, ctx) { if (rf & 1) {
59153
+ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_21_Template(rf, ctx) { if (rf & 1) {
59115
59154
  i0.ɵɵtext(0, " -- ");
59116
59155
  } }
59117
- function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_25_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) {
59118
59167
  i0.ɵɵtext(0);
59119
59168
  } if (rf & 2) {
59120
59169
  const ctx_r1 = i0.ɵɵnextContext(3);
59121
59170
  i0.ɵɵtextInterpolate2(" ", ctx_r1.animatedPercentageGrowth() >= 0 ? "+" : "", "", ctx_r1.formatPercentage(ctx_r1.animatedPercentageGrowth(), 1), " ");
59122
59171
  } }
59123
- function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_26_Template(rf, ctx) { if (rf & 1) {
59172
+ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_29_Template(rf, ctx) { if (rf & 1) {
59124
59173
  i0.ɵɵtext(0, " -- ");
59125
59174
  } }
59126
- function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_27_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) {
59127
59186
  i0.ɵɵtext(0);
59128
59187
  } if (rf & 2) {
59129
59188
  const ctx_r1 = i0.ɵɵnextContext(4);
59130
59189
  i0.ɵɵtextInterpolate1(" ", ctx_r1.formatMetricValue(ctx_r1.animatedGapAmount()), " ");
59131
59190
  } }
59132
- function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_27_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) {
59133
59192
  i0.ɵɵtext(0, " -- ");
59134
59193
  } }
59135
- function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_27_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) {
59136
59205
  i0.ɵɵtext(0);
59137
59206
  } if (rf & 2) {
59138
59207
  const ctx_r1 = i0.ɵɵnextContext(5);
59139
59208
  i0.ɵɵtextInterpolate1(" +", ctx_r1.formatPercentage(ctx_r1.Math.abs(ctx_r1.animatedGapPercentage()), 1), " ");
59140
59209
  } }
59141
- function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_27_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) {
59142
59211
  i0.ɵɵtext(0);
59143
59212
  } if (rf & 2) {
59144
59213
  const ctx_r1 = i0.ɵɵnextContext(5);
59145
59214
  i0.ɵɵtextInterpolate2(" ", ctx_r1.animatedGapPercentage() > 0 ? "+" : "", "", ctx_r1.formatPercentage(ctx_r1.animatedGapPercentage(), 1), " ");
59146
59215
  } }
59147
- function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_27_Conditional_21_Template(rf, ctx) { if (rf & 1) {
59148
- i0.ɵɵconditionalCreate(0, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_27_Conditional_21_Conditional_0_Template, 1, 1)(1, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_27_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);
59149
59218
  } if (rf & 2) {
59150
59219
  const ctx_r1 = i0.ɵɵnextContext(4);
59151
59220
  i0.ɵɵconditional(ctx_r1.isPaceAhead() ? 0 : 1);
59152
59221
  } }
59153
- function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_27_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) {
59154
59223
  i0.ɵɵtext(0, " -- ");
59155
59224
  } }
59156
- function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_27_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) {
59157
59248
  const _r8 = i0.ɵɵgetCurrentView();
59158
59249
  i0.ɵɵelementStart(0, "div", 47)(1, "div", 48);
59159
59250
  i0.ɵɵelement(2, "div", 49);
@@ -59165,21 +59256,25 @@ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional
59165
59256
  i0.ɵɵelementStart(6, "div", 51)(7, "div")(8, "p", 52);
59166
59257
  i0.ɵɵtext(9);
59167
59258
  i0.ɵɵelementEnd();
59168
- i0.ɵɵelementStart(10, "p", 53);
59169
- i0.ɵɵconditionalCreate(11, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_27_Conditional_11_Template, 1, 1)(12, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_27_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);
59170
59263
  i0.ɵɵelementEnd()();
59171
- i0.ɵɵelementStart(13, "div")(14, "div", 54)(15, "p", 21);
59172
- i0.ɵɵtext(16);
59264
+ i0.ɵɵelementStart(15, "div")(16, "div", 56)(17, "p", 21);
59265
+ i0.ɵɵtext(18);
59173
59266
  i0.ɵɵelementEnd();
59174
- i0.ɵɵelementStart(17, "button", 34);
59175
- i0.ɵɵlistener("click", function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_27_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()); });
59176
59269
  i0.ɵɵnamespaceSVG();
59177
- i0.ɵɵelementStart(18, "svg", 35);
59178
- i0.ɵɵelement(19, "path", 36);
59270
+ i0.ɵɵelementStart(20, "svg", 35);
59271
+ i0.ɵɵelement(21, "path", 36);
59179
59272
  i0.ɵɵelementEnd()()();
59180
59273
  i0.ɵɵnamespaceHTML();
59181
- i0.ɵɵelementStart(20, "p", 53);
59182
- i0.ɵɵconditionalCreate(21, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_27_Conditional_21_Template, 2, 1)(22, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_27_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);
59183
59278
  i0.ɵɵelementEnd()()()();
59184
59279
  } if (rf & 2) {
59185
59280
  const ctx_r1 = i0.ɵɵnextContext(3);
@@ -59195,20 +59290,24 @@ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional
59195
59290
  i0.ɵɵproperty("ngClass", ctx_r1.calculatedLabelClasses());
59196
59291
  i0.ɵɵadvance();
59197
59292
  i0.ɵɵtextInterpolate1(" ", ctx_r1.gapLabel(), " ");
59198
- i0.ɵɵadvance();
59293
+ i0.ɵɵadvance(2);
59199
59294
  i0.ɵɵproperty("ngClass", ctx_r1.calculatedSecondaryClasses());
59200
59295
  i0.ɵɵadvance();
59201
- i0.ɵɵconditional(ctx_r1.isTargetValid() ? 11 : 12);
59202
- 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);
59203
59300
  i0.ɵɵproperty("ngClass", ctx_r1.calculatedLabelClasses());
59204
59301
  i0.ɵɵadvance();
59205
59302
  i0.ɵɵtextInterpolate1(" ", ctx_r1.gapPercentageLabel(), " ");
59206
59303
  i0.ɵɵadvance();
59207
59304
  i0.ɵɵproperty("ngClass", ctx_r1.infoIconClasses())("libSymphiqTooltip", ctx_r1.gapTooltip());
59208
- i0.ɵɵadvance(3);
59305
+ i0.ɵɵadvance(4);
59209
59306
  i0.ɵɵproperty("ngClass", ctx_r1.calculatedSecondaryClasses());
59210
59307
  i0.ɵɵadvance();
59211
- 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);
59212
59311
  } }
59213
59312
  function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Template(rf, ctx) { if (rf & 1) {
59214
59313
  i0.ɵɵelementStart(0, "div", 27)(1, "div")(2, "p", 21);
@@ -59229,16 +59328,20 @@ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Template(rf
59229
59328
  i0.ɵɵelementStart(14, "div", 51)(15, "div")(16, "p", 52);
59230
59329
  i0.ɵɵtext(17);
59231
59330
  i0.ɵɵelementEnd();
59232
- i0.ɵɵelementStart(18, "p", 53);
59233
- i0.ɵɵconditionalCreate(19, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_19_Template, 1, 1)(20, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_20_Template, 1, 0);
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);
59333
+ i0.ɵɵelementEnd();
59334
+ i0.ɵɵconditionalCreate(22, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_22_Template, 2, 2, "p", 55);
59234
59335
  i0.ɵɵelementEnd()();
59235
- i0.ɵɵelementStart(21, "div")(22, "p", 52);
59236
- i0.ɵɵtext(23);
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);
59237
59341
  i0.ɵɵelementEnd();
59238
- i0.ɵɵelementStart(24, "p", 53);
59239
- i0.ɵɵconditionalCreate(25, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_25_Template, 1, 2)(26, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_26_Template, 1, 0);
59342
+ i0.ɵɵconditionalCreate(30, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_30_Template, 2, 3, "p", 55);
59240
59343
  i0.ɵɵelementEnd()()()();
59241
- i0.ɵɵconditionalCreate(27, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_27_Template, 23, 14, "div", 47);
59344
+ i0.ɵɵconditionalCreate(31, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_31_Template, 27, 16, "div", 47);
59242
59345
  i0.ɵɵelementEnd();
59243
59346
  } if (rf & 2) {
59244
59347
  const ctx_r1 = i0.ɵɵnextContext(2);
@@ -59265,20 +59368,24 @@ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Template(rf
59265
59368
  i0.ɵɵproperty("ngClass", ctx_r1.calculatedLabelClasses());
59266
59369
  i0.ɵɵadvance();
59267
59370
  i0.ɵɵtextInterpolate1(" ", ctx_r1.isIncreaseBad() ? "Decrease" : "Increase", " Amount ");
59268
- i0.ɵɵadvance();
59371
+ i0.ɵɵadvance(2);
59269
59372
  i0.ɵɵproperty("ngClass", ctx_r1.calculatedSecondaryClasses());
59270
59373
  i0.ɵɵadvance();
59271
- i0.ɵɵconditional(ctx_r1.isTargetValid() ? 19 : 20);
59272
- 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);
59273
59378
  i0.ɵɵproperty("ngClass", ctx_r1.calculatedLabelClasses());
59274
59379
  i0.ɵɵadvance();
59275
59380
  i0.ɵɵtextInterpolate1(" % ", ctx_r1.isIncreaseBad() ? "Change" : "Growth", " ");
59276
- i0.ɵɵadvance();
59381
+ i0.ɵɵadvance(2);
59277
59382
  i0.ɵɵproperty("ngClass", ctx_r1.calculatedSecondaryClasses());
59278
59383
  i0.ɵɵadvance();
59279
- i0.ɵɵconditional(ctx_r1.isTargetValid() ? 25 : 26);
59384
+ i0.ɵɵconditional(ctx_r1.isTargetValid() ? 28 : 29);
59280
59385
  i0.ɵɵadvance(2);
59281
- i0.ɵɵconditional(ctx_r1.currentPaceProjectionRaw() > 0 ? 27 : -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);
59282
59389
  } }
59283
59390
  function EditMetricTargetModalComponent_Conditional_0_Conditional_40_Template(rf, ctx) { if (rf & 1) {
59284
59391
  const _r9 = i0.ɵɵgetCurrentView();
@@ -59336,7 +59443,7 @@ function EditMetricTargetModalComponent_Conditional_0_Template(rf, ctx) { if (rf
59336
59443
  i0.ɵɵelementEnd()();
59337
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);
59338
59445
  i0.ɵɵelementEnd()();
59339
- i0.ɵɵconditionalCreate(36, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Template, 28, 20, "div", 27);
59446
+ i0.ɵɵconditionalCreate(36, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Template, 32, 22, "div", 27);
59340
59447
  i0.ɵɵelementEnd()();
59341
59448
  i0.ɵɵelementStart(37, "div", 28)(38, "button", 29);
59342
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()); });
@@ -59421,6 +59528,38 @@ class EditMetricTargetModalComponent {
59421
59528
  const initial = this.initialTargetValue();
59422
59529
  return initial > 0 && Math.abs(current - initial) > 0.001;
59423
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" }] : []));
59424
59563
  this.currentYear = computed(() => new Date().getFullYear(), ...(ngDevMode ? [{ debugName: "currentYear" }] : []));
59425
59564
  this.priorYear = computed(() => new Date().getFullYear() - 1, ...(ngDevMode ? [{ debugName: "priorYear" }] : []));
59426
59565
  this.metricTitle = computed(() => {
@@ -59914,7 +60053,7 @@ class EditMetricTargetModalComponent {
59914
60053
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.percentageInputRef = _t.first);
59915
60054
  } }, hostBindings: function EditMetricTargetModalComponent_HostBindings(rf, ctx) { if (rf & 1) {
59916
60055
  i0.ɵɵlistener("keydown.escape", function EditMetricTargetModalComponent_keydown_escape_HostBindingHandler() { return ctx.onEscape(); }, i0.ɵɵresolveDocument);
59917
- } }, 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, "text-xl", "font-bold", 3, "ngClass"], [1, "flex", "items-center", "gap-1", "mb-1"]], template: function EditMetricTargetModalComponent_Template(rf, ctx) { if (rf & 1) {
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) {
59918
60057
  i0.ɵɵconditionalCreate(0, EditMetricTargetModalComponent_Conditional_0_Template, 43, 28);
59919
60058
  } if (rf & 2) {
59920
60059
  i0.ɵɵconditional(ctx.isOpen() ? 0 : -1);
@@ -60134,7 +60273,7 @@ class EditMetricTargetModalComponent {
60134
60273
  </p>
60135
60274
  @if (hasChangedFromInitial()) {
60136
60275
  <p [ngClass]="originalValueClasses()" class="text-xl line-through opacity-60">
60137
- {{ formatMetricValue(initialTargetValue()) }}
60276
+ {{ formatMetricValue(initialTargetValue(), false) }}
60138
60277
  </p>
60139
60278
  }
60140
60279
  </div>
@@ -60153,25 +60292,39 @@ class EditMetricTargetModalComponent {
60153
60292
  <p [ngClass]="calculatedLabelClasses()" class="text-xs font-medium uppercase tracking-wider mb-1">
60154
60293
  {{ isIncreaseBad() ? 'Decrease' : 'Increase' }} Amount
60155
60294
  </p>
60156
- <p [ngClass]="calculatedSecondaryClasses()" class="text-xl font-bold">
60157
- @if (isTargetValid()) {
60158
- {{ formatMetricValue(animatedIncreaseAmount()) }}
60159
- } @else {
60160
- --
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>
60161
60307
  }
60162
- </p>
60308
+ </div>
60163
60309
  </div>
60164
60310
  <div>
60165
60311
  <p [ngClass]="calculatedLabelClasses()" class="text-xs font-medium uppercase tracking-wider mb-1">
60166
60312
  % {{ isIncreaseBad() ? 'Change' : 'Growth' }}
60167
60313
  </p>
60168
- <p [ngClass]="calculatedSecondaryClasses()" class="text-xl font-bold">
60169
- @if (isTargetValid()) {
60170
- {{ animatedPercentageGrowth() >= 0 ? '+' : '' }}{{ formatPercentage(animatedPercentageGrowth(), 1) }}
60171
- } @else {
60172
- --
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>
60173
60326
  }
60174
- </p>
60327
+ </div>
60175
60328
  </div>
60176
60329
  </div>
60177
60330
  </div>
@@ -60190,13 +60343,20 @@ class EditMetricTargetModalComponent {
60190
60343
  <p [ngClass]="calculatedLabelClasses()" class="text-xs font-medium uppercase tracking-wider mb-1">
60191
60344
  {{ gapLabel() }}
60192
60345
  </p>
60193
- <p [ngClass]="calculatedSecondaryClasses()" class="text-xl font-bold">
60194
- @if (isTargetValid()) {
60195
- {{ formatMetricValue(animatedGapAmount()) }}
60196
- } @else {
60197
- --
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>
60198
60358
  }
60199
- </p>
60359
+ </div>
60200
60360
  </div>
60201
60361
  <div>
60202
60362
  <div class="flex items-center gap-1 mb-1">
@@ -60216,17 +60376,28 @@ class EditMetricTargetModalComponent {
60216
60376
  </svg>
60217
60377
  </button>
60218
60378
  </div>
60219
- <p [ngClass]="calculatedSecondaryClasses()" class="text-xl font-bold">
60220
- @if (isTargetValid()) {
60221
- @if (isPaceAhead()) {
60222
- +{{ 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
+ }
60223
60387
  } @else {
60224
- {{ animatedGapPercentage() > 0 ? '+' : '' }}{{ formatPercentage(animatedGapPercentage(), 1) }}
60388
+ --
60225
60389
  }
60226
- } @else {
60227
- --
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>
60228
60399
  }
60229
- </p>
60400
+ </div>
60230
60401
  </div>
60231
60402
  </div>
60232
60403
  </div>
@@ -60278,7 +60449,7 @@ class EditMetricTargetModalComponent {
60278
60449
  type: HostListener,
60279
60450
  args: ['document:keydown.escape']
60280
60451
  }] }); })();
60281
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(EditMetricTargetModalComponent, { className: "EditMetricTargetModalComponent", filePath: "lib/components/revenue-calculator-dashboard/edit-metric-target-modal.component.ts", lineNumber: 347 }); })();
60452
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(EditMetricTargetModalComponent, { className: "EditMetricTargetModalComponent", filePath: "lib/components/revenue-calculator-dashboard/edit-metric-target-modal.component.ts", lineNumber: 379 }); })();
60282
60453
 
60283
60454
  const _c0$q = ["absoluteInputRef"];
60284
60455
  const _c1$b = ["percentageInputRef"];
@@ -60421,65 +60592,89 @@ function InitialTargetSettingComponent_Conditional_33_Template(rf, ctx) { if (rf
60421
60592
  i0.ɵɵadvance();
60422
60593
  i0.ɵɵproperty("ngClass", ctx_r0.noDataClasses());
60423
60594
  } }
60424
- function InitialTargetSettingComponent_Conditional_36_Conditional_7_Template(rf, ctx) { if (rf & 1) {
60425
- 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()();
60426
60601
  } if (rf & 2) {
60427
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);
60428
60612
  i0.ɵɵtextInterpolate1(" > ", ctx_r0.formatCurrency(ctx_r0.submittedAbsoluteInput()), " ");
60429
60613
  } }
60430
- 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) {
60431
60615
  i0.ɵɵtext(0);
60432
60616
  } if (rf & 2) {
60433
- const ctx_r0 = i0.ɵɵnextContext(2);
60617
+ const ctx_r0 = i0.ɵɵnextContext(3);
60434
60618
  i0.ɵɵtextInterpolate1(" ", ctx_r0.formatCurrency(ctx_r0.displayedTargetRevenue()), " ");
60435
60619
  } }
60436
- 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) {
60437
60632
  const _r7 = i0.ɵɵgetCurrentView();
60438
- i0.ɵɵelementStart(0, "button", 66);
60439
- 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()); });
60440
60635
  i0.ɵɵtext(1, " Adjust Revenue Target ");
60441
60636
  i0.ɵɵelementEnd();
60442
60637
  } if (rf & 2) {
60443
60638
  const ctx_r0 = i0.ɵɵnextContext(2);
60444
60639
  i0.ɵɵproperty("ngClass", ctx_r0.secondaryButtonClasses());
60445
60640
  } }
60446
- 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) {
60447
60642
  i0.ɵɵtext(0);
60448
60643
  } if (rf & 2) {
60449
60644
  const ctx_r0 = i0.ɵɵnextContext(2);
60450
60645
  i0.ɵɵtextInterpolate1(" ", ctx_r0.formatCurrency(ctx_r0.animatedIncreaseAmount()), " ");
60451
60646
  } }
60452
- 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) {
60453
60648
  i0.ɵɵtext(0, " -- ");
60454
60649
  } }
60455
- 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) {
60456
60651
  i0.ɵɵtext(0);
60457
60652
  } if (rf & 2) {
60458
60653
  const ctx_r0 = i0.ɵɵnextContext(2);
60459
60654
  i0.ɵɵtextInterpolate1(" +", ctx_r0.formatPercentage(ctx_r0.animatedPercentageGrowth(), 1), " ");
60460
60655
  } }
60461
- 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) {
60462
60657
  i0.ɵɵtext(0, " -- ");
60463
60658
  } }
60464
- 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) {
60465
60660
  i0.ɵɵtext(0);
60466
60661
  } if (rf & 2) {
60467
60662
  const ctx_r0 = i0.ɵɵnextContext(3);
60468
60663
  i0.ɵɵtextInterpolate1(" ", ctx_r0.formatCurrency(ctx_r0.animatedGapAmount()), " ");
60469
60664
  } }
60470
- 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) {
60471
60666
  i0.ɵɵtext(0, " -- ");
60472
60667
  } }
60473
- 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) {
60474
60669
  i0.ɵɵtext(0);
60475
60670
  } if (rf & 2) {
60476
60671
  const ctx_r0 = i0.ɵɵnextContext(3);
60477
60672
  i0.ɵɵtextInterpolate2(" ", ctx_r0.gapToClose().amount > 0 ? "+" : "", "", ctx_r0.formatPercentage(ctx_r0.animatedGapPercentage(), 1), " ");
60478
60673
  } }
60479
- 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) {
60480
60675
  i0.ɵɵtext(0, " -- ");
60481
60676
  } }
60482
- 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) {
60483
60678
  const _r8 = i0.ɵɵgetCurrentView();
60484
60679
  i0.ɵɵelementStart(0, "div", 59)(1, "div", 60);
60485
60680
  i0.ɵɵelement(2, "div", 61);
@@ -60492,20 +60687,20 @@ function InitialTargetSettingComponent_Conditional_36_Conditional_31_Template(rf
60492
60687
  i0.ɵɵtext(9, " Gap to Close ");
60493
60688
  i0.ɵɵelementEnd();
60494
60689
  i0.ɵɵelementStart(10, "p", 65);
60495
- 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);
60496
60691
  i0.ɵɵelementEnd()();
60497
- i0.ɵɵelementStart(13, "div")(14, "div", 67)(15, "p", 14);
60692
+ i0.ɵɵelementStart(13, "div")(14, "div", 70)(15, "p", 14);
60498
60693
  i0.ɵɵtext(16, " Additional Growth Needed ");
60499
60694
  i0.ɵɵelementEnd();
60500
60695
  i0.ɵɵelementStart(17, "button", 40);
60501
- 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()); });
60502
60697
  i0.ɵɵnamespaceSVG();
60503
60698
  i0.ɵɵelementStart(18, "svg", 41);
60504
60699
  i0.ɵɵelement(19, "path", 42);
60505
60700
  i0.ɵɵelementEnd()()();
60506
60701
  i0.ɵɵnamespaceHTML();
60507
60702
  i0.ɵɵelementStart(20, "p", 65);
60508
- 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);
60509
60704
  i0.ɵɵelementEnd()()()();
60510
60705
  } if (rf & 2) {
60511
60706
  const ctx_r0 = i0.ɵɵnextContext(2);
@@ -60536,31 +60731,30 @@ function InitialTargetSettingComponent_Conditional_36_Template(rf, ctx) { if (rf
60536
60731
  i0.ɵɵelementStart(0, "div", 53)(1, "div")(2, "div", 54)(3, "div")(4, "p", 14);
60537
60732
  i0.ɵɵtext(5);
60538
60733
  i0.ɵɵelementEnd();
60539
- i0.ɵɵelementStart(6, "p", 55);
60540
- i0.ɵɵconditionalCreate(7, InitialTargetSettingComponent_Conditional_36_Conditional_7_Template, 1, 1)(8, InitialTargetSettingComponent_Conditional_36_Conditional_8_Template, 1, 1);
60541
- i0.ɵɵelementEnd()();
60542
- 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);
60543
60735
  i0.ɵɵelementEnd();
60544
- i0.ɵɵelementStart(10, "div", 57)(11, "div", 58)(12, "div", 59)(13, "div", 60);
60545
- i0.ɵɵelement(14, "div", 61);
60546
- i0.ɵɵelementStart(15, "span", 62);
60547
- i0.ɵɵtext(16);
60736
+ i0.ɵɵconditionalCreate(8, InitialTargetSettingComponent_Conditional_36_Conditional_8_Template, 2, 1, "button", 56);
60737
+ i0.ɵɵelementEnd();
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);
60548
60742
  i0.ɵɵelementEnd();
60549
- i0.ɵɵelement(17, "div", 61);
60743
+ i0.ɵɵelement(16, "div", 61);
60550
60744
  i0.ɵɵelementEnd();
60551
- i0.ɵɵelementStart(18, "div", 63)(19, "div")(20, "p", 64);
60552
- i0.ɵɵtext(21, " Increase Amount ");
60745
+ i0.ɵɵelementStart(17, "div", 63)(18, "div")(19, "p", 64);
60746
+ i0.ɵɵtext(20, " Increase Amount ");
60553
60747
  i0.ɵɵelementEnd();
60554
- i0.ɵɵelementStart(22, "p", 65);
60555
- 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);
60556
60750
  i0.ɵɵelementEnd()();
60557
- i0.ɵɵelementStart(25, "div")(26, "p", 64);
60558
- i0.ɵɵtext(27, " % Growth ");
60751
+ i0.ɵɵelementStart(24, "div")(25, "p", 64);
60752
+ i0.ɵɵtext(26, " % Growth ");
60559
60753
  i0.ɵɵelementEnd();
60560
- i0.ɵɵelementStart(28, "p", 65);
60561
- 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);
60562
60756
  i0.ɵɵelementEnd()()()();
60563
- 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);
60564
60758
  i0.ɵɵelementEnd()()()();
60565
60759
  } if (rf & 2) {
60566
60760
  const ctx_r0 = i0.ɵɵnextContext();
@@ -60571,12 +60765,9 @@ function InitialTargetSettingComponent_Conditional_36_Template(rf, ctx) { if (rf
60571
60765
  i0.ɵɵadvance();
60572
60766
  i0.ɵɵtextInterpolate1(" ", ctx_r0.currentYear(), " Revenue Target ");
60573
60767
  i0.ɵɵadvance();
60574
- i0.ɵɵclassProp("lg:text-3xl", ctx_r0.calculationState() !== "results" || ctx_r0.detailsExpanded());
60575
- i0.ɵɵproperty("ngClass", ctx_r0.calculatedValueClasses());
60576
- i0.ɵɵadvance();
60577
- i0.ɵɵconditional(ctx_r0.calculationState() === "results" && !ctx_r0.hasExistingTargets() && ctx_r0.submittedAbsoluteInput() !== null ? 7 : 8);
60768
+ i0.ɵɵconditional(ctx_r0.isCalculatingTargets() ? 6 : 7);
60578
60769
  i0.ɵɵadvance(2);
60579
- i0.ɵɵconditional(ctx_r0.calculationState() === "results" && !ctx_r0.hasExistingTargets() ? 9 : -1);
60770
+ i0.ɵɵconditional(ctx_r0.calculationState() === "results" && !ctx_r0.hasExistingTargets() ? 8 : -1);
60580
60771
  i0.ɵɵadvance();
60581
60772
  i0.ɵɵclassProp("details-collapse-expanded", ctx_r0.calculationState() !== "results" || ctx_r0.detailsExpanded());
60582
60773
  i0.ɵɵadvance(4);
@@ -60592,15 +60783,15 @@ function InitialTargetSettingComponent_Conditional_36_Template(rf, ctx) { if (rf
60592
60783
  i0.ɵɵadvance(2);
60593
60784
  i0.ɵɵproperty("ngClass", ctx_r0.calculatedSecondaryClasses());
60594
60785
  i0.ɵɵadvance();
60595
- i0.ɵɵconditional(ctx_r0.isTargetValid() ? 23 : 24);
60786
+ i0.ɵɵconditional(ctx_r0.isTargetValid() ? 22 : 23);
60596
60787
  i0.ɵɵadvance(3);
60597
60788
  i0.ɵɵproperty("ngClass", ctx_r0.calculatedLabelClasses());
60598
60789
  i0.ɵɵadvance(2);
60599
60790
  i0.ɵɵproperty("ngClass", ctx_r0.calculatedSecondaryClasses());
60600
60791
  i0.ɵɵadvance();
60601
- i0.ɵɵconditional(ctx_r0.isTargetValid() ? 29 : 30);
60792
+ i0.ɵɵconditional(ctx_r0.isTargetValid() ? 28 : 29);
60602
60793
  i0.ɵɵadvance(2);
60603
- i0.ɵɵconditional(ctx_r0.currentPaceProjection() > 0 ? 31 : -1);
60794
+ i0.ɵɵconditional(ctx_r0.currentPaceProjection() > 0 ? 30 : -1);
60604
60795
  } }
60605
60796
  function InitialTargetSettingComponent_Conditional_37_Conditional_4_Template(rf, ctx) { if (rf & 1) {
60606
60797
  i0.ɵɵelement(0, "symphiq-area-chart", 23);
@@ -60647,13 +60838,13 @@ function InitialTargetSettingComponent_Conditional_40_Conditional_6_Template(rf,
60647
60838
  } }
60648
60839
  function InitialTargetSettingComponent_Conditional_40_Template(rf, ctx) { if (rf & 1) {
60649
60840
  const _r9 = i0.ɵɵgetCurrentView();
60650
- i0.ɵɵelementStart(0, "div", 31)(1, "div", 68)(2, "h2", 69);
60841
+ i0.ɵɵelementStart(0, "div", 31)(1, "div", 71)(2, "h2", 72);
60651
60842
  i0.ɵɵtext(3, " Contributing Metrics ");
60652
60843
  i0.ɵɵelementEnd();
60653
60844
  i0.ɵɵelementStart(4, "p", 52);
60654
60845
  i0.ɵɵconditionalCreate(5, InitialTargetSettingComponent_Conditional_40_Conditional_5_Template, 1, 1)(6, InitialTargetSettingComponent_Conditional_40_Conditional_6_Template, 1, 1);
60655
60846
  i0.ɵɵelementEnd()();
60656
- i0.ɵɵelementStart(7, "symphiq-funnel-metrics-visualization", 70);
60847
+ i0.ɵɵelementStart(7, "symphiq-funnel-metrics-visualization", 73);
60657
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)); });
60658
60849
  i0.ɵɵelementEnd()();
60659
60850
  } if (rf & 2) {
@@ -60666,11 +60857,11 @@ function InitialTargetSettingComponent_Conditional_40_Template(rf, ctx) { if (rf
60666
60857
  i0.ɵɵadvance();
60667
60858
  i0.ɵɵconditional(!ctx_r0.hasExistingTargets() && ctx_r0.submittedAbsoluteInput() !== null ? 5 : 6);
60668
60859
  i0.ɵɵadvance(2);
60669
- 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());
60670
60861
  } }
60671
60862
  function InitialTargetSettingComponent_Conditional_41_Template(rf, ctx) { if (rf & 1) {
60672
60863
  const _r10 = i0.ɵɵgetCurrentView();
60673
- i0.ɵɵelementStart(0, "symphiq-sticky-submit-bar", 71);
60864
+ i0.ɵɵelementStart(0, "symphiq-sticky-submit-bar", 74);
60674
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()); });
60675
60866
  i0.ɵɵelementEnd();
60676
60867
  } if (rf & 2) {
@@ -60682,11 +60873,11 @@ function InitialTargetSettingComponent_Conditional_42_Template(rf, ctx) { if (rf
60682
60873
  i0.ɵɵelementStart(0, "div", 33)(1, "p", 52);
60683
60874
  i0.ɵɵtext(2, " You have unsaved target changes. ");
60684
60875
  i0.ɵɵelementEnd();
60685
- i0.ɵɵelementStart(3, "div", 72)(4, "button", 73);
60876
+ i0.ɵɵelementStart(3, "div", 75)(4, "button", 76);
60686
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()); });
60687
60878
  i0.ɵɵtext(5, " Reset ");
60688
60879
  i0.ɵɵelementEnd();
60689
- i0.ɵɵelementStart(6, "button", 73);
60880
+ i0.ɵɵelementStart(6, "button", 76);
60690
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()); });
60691
60882
  i0.ɵɵtext(7, " Save Targets ");
60692
60883
  i0.ɵɵelementEnd()()();
@@ -60709,9 +60900,12 @@ class InitialTargetSettingComponent {
60709
60900
  this.shopId = input(undefined, ...(ngDevMode ? [{ debugName: "shopId" }] : []));
60710
60901
  this.pacingMetrics = input(undefined, ...(ngDevMode ? [{ debugName: "pacingMetrics" }] : []));
60711
60902
  this.dataResults = input([], ...(ngDevMode ? [{ debugName: "dataResults" }] : []));
60712
- 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" }] : []));
60713
60906
  this.targets = input(undefined, ...(ngDevMode ? [{ debugName: "targets" }] : []));
60714
60907
  this.targetsCreated = output();
60908
+ this.calculateRevenueReverseRequest = output();
60715
60909
  this.calculateRevenueRequest = output();
60716
60910
  this.editRelatedMetricTarget = output();
60717
60911
  this.saveTargetsClick = output();
@@ -60726,6 +60920,7 @@ class InitialTargetSettingComponent {
60726
60920
  this.percentageInput = signal(null, ...(ngDevMode ? [{ debugName: "percentageInput" }] : []));
60727
60921
  this.calculationState = signal('input', ...(ngDevMode ? [{ debugName: "calculationState" }] : []));
60728
60922
  this.storedResponse = signal(null, ...(ngDevMode ? [{ debugName: "storedResponse" }] : []));
60923
+ this.storedCalculateResponse = signal(null, ...(ngDevMode ? [{ debugName: "storedCalculateResponse" }] : []));
60729
60924
  this.submittedAbsoluteInput = signal(null, ...(ngDevMode ? [{ debugName: "submittedAbsoluteInput" }] : []));
60730
60925
  this.detailsExpanded = signal(false, ...(ngDevMode ? [{ debugName: "detailsExpanded" }] : []));
60731
60926
  this.isMetricReportOpen = signal(false, ...(ngDevMode ? [{ debugName: "isMetricReportOpen" }] : []));
@@ -60854,17 +61049,35 @@ class InitialTargetSettingComponent {
60854
61049
  });
60855
61050
  }
60856
61051
  }
60857
- if (pendingChanges.size === 0) {
60858
- 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
+ });
61066
+ }
61067
+ const calculateResponse = this.storedCalculateResponse();
61068
+ if (!calculateResponse || !calculateResponse.metricValues || calculateResponse.metricValues.length === 0) {
61069
+ return resultsWithPending;
60859
61070
  }
60860
- return baseResults.map(calc => {
60861
- const pending = pendingChanges.get(calc.metric);
60862
- if (pending) {
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;
60863
61076
  return {
60864
61077
  ...calc,
60865
- originalTargetValue: pending.originalValue,
60866
- targetValue: pending.newValue,
60867
- percentageIncrease: pending.percentageChange
61078
+ originalTargetValue: originalValue,
61079
+ targetValue: newTargetValue,
61080
+ percentageIncrease: newPercentageIncrease
60868
61081
  };
60869
61082
  }
60870
61083
  return calc;
@@ -60963,12 +61176,18 @@ class InitialTargetSettingComponent {
60963
61176
  }
60964
61177
  }, { allowSignalWrites: true });
60965
61178
  effect(() => {
60966
- const response = this.reverseCalculationResponse();
61179
+ const response = this.calculateRevenueReverseResponse();
60967
61180
  if (response) {
60968
61181
  this.storedResponse.set(response);
60969
61182
  this.calculationState.set('results');
60970
61183
  }
60971
61184
  }, { allowSignalWrites: true });
61185
+ effect(() => {
61186
+ const response = this.calculateRevenueResponse();
61187
+ if (response) {
61188
+ this.storedCalculateResponse.set(response);
61189
+ }
61190
+ }, { allowSignalWrites: true });
60972
61191
  effect(() => {
60973
61192
  const targetRevenue = this.displayedTargetRevenue();
60974
61193
  const priorRevenue = this.priorYearRevenue();
@@ -61141,7 +61360,7 @@ class InitialTargetSettingComponent {
61141
61360
  targetRevenue: this.calculatedRevenue(),
61142
61361
  funnelType: FunnelMetricTypeEnum.REVENUE,
61143
61362
  };
61144
- this.calculateRevenueRequest.emit(request);
61363
+ this.calculateRevenueReverseRequest.emit(request);
61145
61364
  }
61146
61365
  handleSetTargets() {
61147
61366
  const response = this.storedResponse();
@@ -61251,6 +61470,16 @@ class InitialTargetSettingComponent {
61251
61470
  ? 'text-purple-300'
61252
61471
  : 'text-purple-700';
61253
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
+ }
61254
61483
  calculatedSecondaryClasses() {
61255
61484
  return this.viewMode() === ViewModeEnum.DARK
61256
61485
  ? 'text-purple-200'
@@ -61379,6 +61608,14 @@ class InitialTargetSettingComponent {
61379
61608
  percentageChange: event.percentageChange
61380
61609
  });
61381
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);
61382
61619
  this.closeEditMetricModal();
61383
61620
  }
61384
61621
  onSaveTargets() {
@@ -61430,7 +61667,7 @@ class InitialTargetSettingComponent {
61430
61667
  let _t;
61431
61668
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.absoluteInputRef = _t.first);
61432
61669
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.percentageInputRef = _t.first);
61433
- } }, 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) {
61434
61671
  i0.ɵɵelementStart(0, "div", 2);
61435
61672
  i0.ɵɵelement(1, "symphiq-tooltip-container");
61436
61673
  i0.ɵɵelementStart(2, "div", 3);
@@ -61466,12 +61703,12 @@ class InitialTargetSettingComponent {
61466
61703
  i0.ɵɵconditionalCreate(32, InitialTargetSettingComponent_Conditional_32_Template, 1, 5, "symphiq-area-chart", 23)(33, InitialTargetSettingComponent_Conditional_33_Template, 3, 1, "div", 24);
61467
61704
  i0.ɵɵelementEnd()()()()();
61468
61705
  i0.ɵɵelementStart(34, "div", 25)(35, "div", 26);
61469
- i0.ɵɵconditionalCreate(36, InitialTargetSettingComponent_Conditional_36_Template, 32, 23, "div", 27);
61706
+ i0.ɵɵconditionalCreate(36, InitialTargetSettingComponent_Conditional_36_Template, 31, 20, "div", 27);
61470
61707
  i0.ɵɵelementEnd()()();
61471
61708
  i0.ɵɵconditionalCreate(37, InitialTargetSettingComponent_Conditional_37_Template, 6, 3, "div", 28);
61472
61709
  i0.ɵɵelementEnd()();
61473
61710
  i0.ɵɵelementStart(38, "div", 29)(39, "div", 30);
61474
- i0.ɵɵconditionalCreate(40, InitialTargetSettingComponent_Conditional_40_Template, 8, 8, "div", 31);
61711
+ i0.ɵɵconditionalCreate(40, InitialTargetSettingComponent_Conditional_40_Template, 8, 9, "div", 31);
61475
61712
  i0.ɵɵelementEnd()();
61476
61713
  i0.ɵɵconditionalCreate(41, InitialTargetSettingComponent_Conditional_41_Template, 1, 6, "symphiq-sticky-submit-bar", 32);
61477
61714
  i0.ɵɵconditionalCreate(42, InitialTargetSettingComponent_Conditional_42_Template, 8, 4, "div", 33);
@@ -61745,14 +61982,21 @@ class InitialTargetSettingComponent {
61745
61982
  <p [ngClass]="calculatedLabelClasses()" class="text-xs font-medium uppercase tracking-wider">
61746
61983
  {{ currentYear() }} Revenue Target
61747
61984
  </p>
61748
- <p [ngClass]="calculatedValueClasses()" class="font-bold transition-all duration-300 text-lg"
61749
- [class.lg:text-3xl]="calculationState() !== 'results' || detailsExpanded()">
61750
- @if (calculationState() === 'results' && !hasExistingTargets() && submittedAbsoluteInput() !== null) {
61751
- > {{ formatCurrency(submittedAbsoluteInput()!) }}
61752
- } @else {
61753
- {{ formatCurrency(displayedTargetRevenue()) }}
61754
- }
61755
- </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
+ }
61756
62000
  </div>
61757
62001
  @if (calculationState() === 'results' && !hasExistingTargets()) {
61758
62002
  <button
@@ -61912,6 +62156,7 @@ class InitialTargetSettingComponent {
61912
62156
  [calculations]="displayedMetricCalculations()"
61913
62157
  [pacingMetrics]="pacingMetrics()"
61914
62158
  [hasExistingTargets]="hasExistingTargets()"
62159
+ [isCalculatingTargets]="isCalculatingTargets()"
61915
62160
  (viewStageReport)="openMetricReport($event)"
61916
62161
  (viewRelatedMetricReport)="openMetricReport($event)"
61917
62162
  (editRelatedMetricTarget)="onEditRelatedMetricTarget($event)"
@@ -61987,8 +62232,8 @@ class InitialTargetSettingComponent {
61987
62232
  }], percentageInputRef: [{
61988
62233
  type: ViewChild,
61989
62234
  args: ['percentageInputRef']
61990
- }], 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"] }] }); })();
61991
- (() => { (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 }); })();
61992
62237
 
61993
62238
  function IndeterminateSpinnerComponent_For_5_Template(rf, ctx) { if (rf & 1) {
61994
62239
  i0.ɵɵelement(0, "div", 5);
@@ -62162,13 +62407,13 @@ function SymphiqRevenueCalculatorDashboardComponent_Conditional_25_Template(rf,
62162
62407
  const _r2 = i0.ɵɵgetCurrentView();
62163
62408
  i0.ɵɵelement(0, "symphiq-revenue-calculator-welcome-banner", 14);
62164
62409
  i0.ɵɵelementStart(1, "div", 21)(2, "symphiq-initial-target-setting", 22);
62165
- 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()); });
62166
62411
  i0.ɵɵelementEnd()();
62167
62412
  } if (rf & 2) {
62168
62413
  const ctx_r0 = i0.ɵɵnextContext();
62169
62414
  i0.ɵɵproperty("viewMode", ctx_r0.viewMode())("dataLoadStatus", ctx_r0.dataLoadStatus() ?? ctx_r0.ShopDataLoadStatusEnum.NOT_LOADED)("hasTargets", ctx_r0.hasCurrentYearTargets());
62170
62415
  i0.ɵɵadvance(2);
62171
- 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());
62172
62417
  } }
62173
62418
  dayjs.extend(utc);
62174
62419
  class SymphiqRevenueCalculatorDashboardComponent {
@@ -62189,11 +62434,14 @@ class SymphiqRevenueCalculatorDashboardComponent {
62189
62434
  this.scrollElement = input(...(ngDevMode ? [undefined, { debugName: "scrollElement" }] : []));
62190
62435
  this.forDemo = input(false, ...(ngDevMode ? [{ debugName: "forDemo" }] : []));
62191
62436
  this.maxAccessibleStepId = input(undefined, ...(ngDevMode ? [{ debugName: "maxAccessibleStepId" }] : []));
62192
- 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" }] : []));
62193
62440
  this.stepClick = output();
62194
62441
  this.nextStepClick = output();
62195
62442
  this.targetsCreated = output();
62196
62443
  this.calculateRevenueRequest = output();
62444
+ this.calculateRevenueReverseRequest = output();
62197
62445
  this.editRelatedMetricTarget = output();
62198
62446
  this.saveTargetsClick = output();
62199
62447
  this.discardChangesClick = output();
@@ -62334,7 +62582,7 @@ class SymphiqRevenueCalculatorDashboardComponent {
62334
62582
  static { this.ɵfac = function SymphiqRevenueCalculatorDashboardComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SymphiqRevenueCalculatorDashboardComponent)(); }; }
62335
62583
  static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SymphiqRevenueCalculatorDashboardComponent, selectors: [["symphiq-revenue-calculator-dashboard"]], hostBindings: function SymphiqRevenueCalculatorDashboardComponent_HostBindings(rf, ctx) { if (rf & 1) {
62336
62584
  i0.ɵɵlistener("scroll", function SymphiqRevenueCalculatorDashboardComponent_scroll_HostBindingHandler($event) { return ctx.onWindowScroll($event); }, i0.ɵɵresolveWindow);
62337
- } }, 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) {
62338
62586
  i0.ɵɵelementStart(0, "div", 0)(1, "div");
62339
62587
  i0.ɵɵelement(2, "div", 1);
62340
62588
  i0.ɵɵelementEnd();
@@ -62352,7 +62600,7 @@ class SymphiqRevenueCalculatorDashboardComponent {
62352
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(); });
62353
62601
  i0.ɵɵelementEnd();
62354
62602
  i0.ɵɵelementStart(21, "main", 11)(22, "div", 6);
62355
- 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);
62356
62604
  i0.ɵɵelementEnd()()()();
62357
62605
  } if (rf & 2) {
62358
62606
  i0.ɵɵproperty("ngClass", ctx.getContainerClasses());
@@ -62537,9 +62785,12 @@ class SymphiqRevenueCalculatorDashboardComponent {
62537
62785
  [shopId]="shopId()"
62538
62786
  [pacingMetrics]="pacingResponse()"
62539
62787
  [dataResults]="dataResults()"
62540
- [reverseCalculationResponse]="reverseCalculationResponse()"
62788
+ [calculateRevenueReverseResponse]="calculateRevenueReverseResponse()"
62789
+ [calculateRevenueResponse]="calculateRevenueResponse()"
62790
+ [isCalculatingTargets]="isCalculatingTargets()"
62541
62791
  [targets]="targets()"
62542
62792
  (targetsCreated)="onTargetsCreated($event)"
62793
+ (calculateRevenueReverseRequest)="calculateRevenueReverseRequest.emit($event)"
62543
62794
  (calculateRevenueRequest)="calculateRevenueRequest.emit($event)"
62544
62795
  (editRelatedMetricTarget)="editRelatedMetricTarget.emit($event)"
62545
62796
  (saveTargetsClick)="saveTargetsClick.emit()"
@@ -62554,11 +62805,11 @@ class SymphiqRevenueCalculatorDashboardComponent {
62554
62805
  </div>
62555
62806
  `
62556
62807
  }]
62557
- }], () => [], { 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: [{
62558
62809
  type: HostListener,
62559
62810
  args: ['window:scroll', ['$event']]
62560
62811
  }] }); })();
62561
- (() => { (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 }); })();
62562
62813
 
62563
62814
  function HierarchyDisplayComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
62564
62815
  i0.ɵɵelementStart(0, "div", 1)(1, "div", 1);