@eric-emg/symphiq-components 1.2.223 → 1.2.224

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.
@@ -56190,8 +56190,8 @@ function InitialTargetSettingComponent_Conditional_6_Template(rf, ctx) { if (rf
56190
56190
  } }
56191
56191
  function InitialTargetSettingComponent_Conditional_7_Template(rf, ctx) { if (rf & 1) {
56192
56192
  i0.ɵɵnamespaceSVG();
56193
- i0.ɵɵelementStart(0, "svg", 34);
56194
- i0.ɵɵelement(1, "path", 35);
56193
+ i0.ɵɵelementStart(0, "svg", 33);
56194
+ i0.ɵɵelement(1, "path", 34);
56195
56195
  i0.ɵɵelementEnd();
56196
56196
  } if (rf & 2) {
56197
56197
  const ctx_r0 = i0.ɵɵnextContext();
@@ -56203,17 +56203,17 @@ function InitialTargetSettingComponent_Conditional_21_Template(rf, ctx) { if (rf
56203
56203
  i0.ɵɵelementStart(0, "div", 11);
56204
56204
  i0.ɵɵnamespaceSVG();
56205
56205
  i0.ɵɵelementStart(1, "svg", 12);
56206
- i0.ɵɵelement(2, "path", 36);
56206
+ i0.ɵɵelement(2, "path", 35);
56207
56207
  i0.ɵɵelementEnd();
56208
56208
  i0.ɵɵnamespaceHTML();
56209
- i0.ɵɵelementStart(3, "div")(4, "div", 37)(5, "p", 14);
56209
+ i0.ɵɵelementStart(3, "div")(4, "div", 36)(5, "p", 14);
56210
56210
  i0.ɵɵtext(6, " Current Pace Projection ");
56211
56211
  i0.ɵɵelementEnd();
56212
- i0.ɵɵelementStart(7, "button", 38);
56212
+ i0.ɵɵelementStart(7, "button", 37);
56213
56213
  i0.ɵɵlistener("click", function InitialTargetSettingComponent_Conditional_21_Template_button_click_7_listener($event) { i0.ɵɵrestoreView(_r2); return i0.ɵɵresetView($event.stopPropagation()); });
56214
56214
  i0.ɵɵnamespaceSVG();
56215
- i0.ɵɵelementStart(8, "svg", 39);
56216
- i0.ɵɵelement(9, "path", 40);
56215
+ i0.ɵɵelementStart(8, "svg", 38);
56216
+ i0.ɵɵelement(9, "path", 39);
56217
56217
  i0.ɵɵelementEnd()()();
56218
56218
  i0.ɵɵnamespaceHTML();
56219
56219
  i0.ɵɵelementStart(10, "p", 15);
@@ -56234,10 +56234,10 @@ function InitialTargetSettingComponent_Conditional_21_Template(rf, ctx) { if (rf
56234
56234
  } }
56235
56235
  function InitialTargetSettingComponent_Conditional_25_Conditional_5_Template(rf, ctx) { if (rf & 1) {
56236
56236
  const _r4 = i0.ɵɵgetCurrentView();
56237
- i0.ɵɵelementStart(0, "div", 43)(1, "span", 45);
56237
+ i0.ɵɵelementStart(0, "div", 42)(1, "span", 44);
56238
56238
  i0.ɵɵtext(2, " $ ");
56239
56239
  i0.ɵɵelementEnd();
56240
- i0.ɵɵelementStart(3, "input", 46, 0);
56240
+ i0.ɵɵelementStart(3, "input", 45, 0);
56241
56241
  i0.ɵɵtwoWayListener("ngModelChange", function InitialTargetSettingComponent_Conditional_25_Conditional_5_Template_input_ngModelChange_3_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r0 = i0.ɵɵnextContext(2); i0.ɵɵtwoWayBindingSet(ctx_r0.absoluteInput, $event) || (ctx_r0.absoluteInput = $event); return i0.ɵɵresetView($event); });
56242
56242
  i0.ɵɵlistener("ngModelChange", function InitialTargetSettingComponent_Conditional_25_Conditional_5_Template_input_ngModelChange_3_listener() { i0.ɵɵrestoreView(_r4); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.onAbsoluteInputChange()); });
56243
56243
  i0.ɵɵelementEnd()();
@@ -56251,11 +56251,11 @@ function InitialTargetSettingComponent_Conditional_25_Conditional_5_Template(rf,
56251
56251
  } }
56252
56252
  function InitialTargetSettingComponent_Conditional_25_Conditional_6_Template(rf, ctx) { if (rf & 1) {
56253
56253
  const _r5 = i0.ɵɵgetCurrentView();
56254
- i0.ɵɵelementStart(0, "div", 43)(1, "input", 47, 1);
56254
+ i0.ɵɵelementStart(0, "div", 42)(1, "input", 46, 1);
56255
56255
  i0.ɵɵtwoWayListener("ngModelChange", function InitialTargetSettingComponent_Conditional_25_Conditional_6_Template_input_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r0 = i0.ɵɵnextContext(2); i0.ɵɵtwoWayBindingSet(ctx_r0.percentageInput, $event) || (ctx_r0.percentageInput = $event); return i0.ɵɵresetView($event); });
56256
56256
  i0.ɵɵlistener("ngModelChange", function InitialTargetSettingComponent_Conditional_25_Conditional_6_Template_input_ngModelChange_1_listener() { i0.ɵɵrestoreView(_r5); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.onPercentageInputChange()); });
56257
56257
  i0.ɵɵelementEnd();
56258
- i0.ɵɵelementStart(3, "span", 48);
56258
+ i0.ɵɵelementStart(3, "span", 47);
56259
56259
  i0.ɵɵtext(4, " % ");
56260
56260
  i0.ɵɵelementEnd()();
56261
56261
  } if (rf & 2) {
@@ -56268,7 +56268,7 @@ function InitialTargetSettingComponent_Conditional_25_Conditional_6_Template(rf,
56268
56268
  } }
56269
56269
  function InitialTargetSettingComponent_Conditional_25_Conditional_7_Template(rf, ctx) { if (rf & 1) {
56270
56270
  const _r6 = i0.ɵɵgetCurrentView();
56271
- i0.ɵɵelementStart(0, "div", 44)(1, "button", 49);
56271
+ i0.ɵɵelementStart(0, "div", 43)(1, "button", 48);
56272
56272
  i0.ɵɵlistener("click", function InitialTargetSettingComponent_Conditional_25_Conditional_7_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r6); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.handleCancel()); });
56273
56273
  i0.ɵɵtext(2, " Cancel ");
56274
56274
  i0.ɵɵelementEnd()();
@@ -56279,16 +56279,16 @@ function InitialTargetSettingComponent_Conditional_25_Conditional_7_Template(rf,
56279
56279
  } }
56280
56280
  function InitialTargetSettingComponent_Conditional_25_Template(rf, ctx) { if (rf & 1) {
56281
56281
  const _r3 = i0.ɵɵgetCurrentView();
56282
- i0.ɵɵelementStart(0, "div", 41)(1, "button", 42);
56282
+ i0.ɵɵelementStart(0, "div", 40)(1, "button", 41);
56283
56283
  i0.ɵɵlistener("click", function InitialTargetSettingComponent_Conditional_25_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r3); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.setInputMode("absolute")); });
56284
56284
  i0.ɵɵtext(2, " Absolute Amount ");
56285
56285
  i0.ɵɵelementEnd();
56286
- i0.ɵɵelementStart(3, "button", 42);
56286
+ i0.ɵɵelementStart(3, "button", 41);
56287
56287
  i0.ɵɵlistener("click", function InitialTargetSettingComponent_Conditional_25_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r3); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.setInputMode("percentage")); });
56288
56288
  i0.ɵɵtext(4, " % Increase ");
56289
56289
  i0.ɵɵelementEnd()();
56290
- i0.ɵɵconditionalCreate(5, InitialTargetSettingComponent_Conditional_25_Conditional_5_Template, 5, 3, "div", 43)(6, InitialTargetSettingComponent_Conditional_25_Conditional_6_Template, 5, 3, "div", 43);
56291
- i0.ɵɵconditionalCreate(7, InitialTargetSettingComponent_Conditional_25_Conditional_7_Template, 3, 1, "div", 44);
56290
+ i0.ɵɵconditionalCreate(5, InitialTargetSettingComponent_Conditional_25_Conditional_5_Template, 5, 3, "div", 42)(6, InitialTargetSettingComponent_Conditional_25_Conditional_6_Template, 5, 3, "div", 42);
56291
+ i0.ɵɵconditionalCreate(7, InitialTargetSettingComponent_Conditional_25_Conditional_7_Template, 3, 1, "div", 43);
56292
56292
  } if (rf & 2) {
56293
56293
  const ctx_r0 = i0.ɵɵnextContext();
56294
56294
  i0.ɵɵadvance();
@@ -56307,7 +56307,7 @@ function InitialTargetSettingComponent_Conditional_32_Template(rf, ctx) { if (rf
56307
56307
  i0.ɵɵproperty("chart", ctx_r0.revenueChartData())("showAxisLabels", true)("viewMode", ctx_r0.viewMode())("currencySymbol", "$")("height", "108px");
56308
56308
  } }
56309
56309
  function InitialTargetSettingComponent_Conditional_33_Template(rf, ctx) { if (rf & 1) {
56310
- i0.ɵɵelementStart(0, "div", 24)(1, "p", 50);
56310
+ i0.ɵɵelementStart(0, "div", 24)(1, "p", 49);
56311
56311
  i0.ɵɵtext(2, " No revenue data available ");
56312
56312
  i0.ɵɵelementEnd()();
56313
56313
  } if (rf & 2) {
@@ -56329,7 +56329,7 @@ function InitialTargetSettingComponent_Conditional_36_Conditional_8_Template(rf,
56329
56329
  } }
56330
56330
  function InitialTargetSettingComponent_Conditional_36_Conditional_9_Template(rf, ctx) { if (rf & 1) {
56331
56331
  const _r7 = i0.ɵɵgetCurrentView();
56332
- i0.ɵɵelementStart(0, "button", 64);
56332
+ i0.ɵɵelementStart(0, "button", 63);
56333
56333
  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()); });
56334
56334
  i0.ɵɵtext(1, " Adjust Revenue Target ");
56335
56335
  i0.ɵɵelementEnd();
@@ -56357,30 +56357,30 @@ function InitialTargetSettingComponent_Conditional_36_Conditional_30_Template(rf
56357
56357
  } }
56358
56358
  function InitialTargetSettingComponent_Conditional_36_Conditional_31_Template(rf, ctx) { if (rf & 1) {
56359
56359
  const _r8 = i0.ɵɵgetCurrentView();
56360
- i0.ɵɵelementStart(0, "div", 57)(1, "div", 58);
56361
- i0.ɵɵelement(2, "div", 59);
56362
- i0.ɵɵelementStart(3, "span", 60);
56360
+ i0.ɵɵelementStart(0, "div", 56)(1, "div", 57);
56361
+ i0.ɵɵelement(2, "div", 58);
56362
+ i0.ɵɵelementStart(3, "span", 59);
56363
56363
  i0.ɵɵtext(4);
56364
56364
  i0.ɵɵelementEnd();
56365
- i0.ɵɵelement(5, "div", 59);
56365
+ i0.ɵɵelement(5, "div", 58);
56366
56366
  i0.ɵɵelementEnd();
56367
- i0.ɵɵelementStart(6, "div", 61)(7, "div")(8, "p", 62);
56367
+ i0.ɵɵelementStart(6, "div", 60)(7, "div")(8, "p", 61);
56368
56368
  i0.ɵɵtext(9, " Gap to Close ");
56369
56369
  i0.ɵɵelementEnd();
56370
- i0.ɵɵelementStart(10, "p", 63);
56370
+ i0.ɵɵelementStart(10, "p", 62);
56371
56371
  i0.ɵɵtext(11);
56372
56372
  i0.ɵɵelementEnd()();
56373
- i0.ɵɵelementStart(12, "div")(13, "div", 65)(14, "p", 14);
56373
+ i0.ɵɵelementStart(12, "div")(13, "div", 64)(14, "p", 14);
56374
56374
  i0.ɵɵtext(15, " Additional Growth Needed ");
56375
56375
  i0.ɵɵelementEnd();
56376
- i0.ɵɵelementStart(16, "button", 38);
56376
+ i0.ɵɵelementStart(16, "button", 37);
56377
56377
  i0.ɵɵlistener("click", function InitialTargetSettingComponent_Conditional_36_Conditional_31_Template_button_click_16_listener($event) { i0.ɵɵrestoreView(_r8); return i0.ɵɵresetView($event.stopPropagation()); });
56378
56378
  i0.ɵɵnamespaceSVG();
56379
- i0.ɵɵelementStart(17, "svg", 39);
56380
- i0.ɵɵelement(18, "path", 40);
56379
+ i0.ɵɵelementStart(17, "svg", 38);
56380
+ i0.ɵɵelement(18, "path", 39);
56381
56381
  i0.ɵɵelementEnd()()();
56382
56382
  i0.ɵɵnamespaceHTML();
56383
- i0.ɵɵelementStart(19, "p", 63);
56383
+ i0.ɵɵelementStart(19, "p", 62);
56384
56384
  i0.ɵɵtext(20);
56385
56385
  i0.ɵɵelementEnd()()()();
56386
56386
  } if (rf & 2) {
@@ -56398,7 +56398,7 @@ function InitialTargetSettingComponent_Conditional_36_Conditional_31_Template(rf
56398
56398
  i0.ɵɵadvance(2);
56399
56399
  i0.ɵɵproperty("ngClass", ctx_r0.calculatedSecondaryClasses());
56400
56400
  i0.ɵɵadvance();
56401
- i0.ɵɵtextInterpolate1(" ", ctx_r0.formatCurrency(ctx_r0.absValue(ctx_r0.gapToClose().amount)), " ");
56401
+ i0.ɵɵtextInterpolate1(" ", ctx_r0.formatCurrency(ctx_r0.animatedGapAmount()), " ");
56402
56402
  i0.ɵɵadvance(3);
56403
56403
  i0.ɵɵproperty("ngClass", ctx_r0.calculatedLabelClasses());
56404
56404
  i0.ɵɵadvance(2);
@@ -56406,37 +56406,37 @@ function InitialTargetSettingComponent_Conditional_36_Conditional_31_Template(rf
56406
56406
  i0.ɵɵadvance(3);
56407
56407
  i0.ɵɵproperty("ngClass", ctx_r0.calculatedSecondaryClasses());
56408
56408
  i0.ɵɵadvance();
56409
- i0.ɵɵtextInterpolate2(" ", ctx_r0.gapToClose().amount > 0 ? "+" : "", "", ctx_r0.formatPercentage(ctx_r0.gapToClose().percentage, 1), " ");
56409
+ i0.ɵɵtextInterpolate2(" ", ctx_r0.gapToClose().amount > 0 ? "+" : "", "", ctx_r0.formatPercentage(ctx_r0.animatedGapPercentage(), 1), " ");
56410
56410
  } }
56411
56411
  function InitialTargetSettingComponent_Conditional_36_Template(rf, ctx) { if (rf & 1) {
56412
- i0.ɵɵelementStart(0, "div", 51)(1, "div")(2, "div", 52)(3, "div")(4, "p", 14);
56412
+ i0.ɵɵelementStart(0, "div", 50)(1, "div")(2, "div", 51)(3, "div")(4, "p", 14);
56413
56413
  i0.ɵɵtext(5);
56414
56414
  i0.ɵɵelementEnd();
56415
- i0.ɵɵelementStart(6, "p", 53);
56415
+ i0.ɵɵelementStart(6, "p", 52);
56416
56416
  i0.ɵɵconditionalCreate(7, InitialTargetSettingComponent_Conditional_36_Conditional_7_Template, 1, 1)(8, InitialTargetSettingComponent_Conditional_36_Conditional_8_Template, 1, 1);
56417
56417
  i0.ɵɵelementEnd()();
56418
- i0.ɵɵconditionalCreate(9, InitialTargetSettingComponent_Conditional_36_Conditional_9_Template, 2, 1, "button", 54);
56418
+ i0.ɵɵconditionalCreate(9, InitialTargetSettingComponent_Conditional_36_Conditional_9_Template, 2, 1, "button", 53);
56419
56419
  i0.ɵɵelementEnd();
56420
- i0.ɵɵelementStart(10, "div", 55)(11, "div", 56)(12, "div", 57)(13, "div", 58);
56421
- i0.ɵɵelement(14, "div", 59);
56422
- i0.ɵɵelementStart(15, "span", 60);
56420
+ i0.ɵɵelementStart(10, "div", 54)(11, "div", 55)(12, "div", 56)(13, "div", 57);
56421
+ i0.ɵɵelement(14, "div", 58);
56422
+ i0.ɵɵelementStart(15, "span", 59);
56423
56423
  i0.ɵɵtext(16);
56424
56424
  i0.ɵɵelementEnd();
56425
- i0.ɵɵelement(17, "div", 59);
56425
+ i0.ɵɵelement(17, "div", 58);
56426
56426
  i0.ɵɵelementEnd();
56427
- i0.ɵɵelementStart(18, "div", 61)(19, "div")(20, "p", 62);
56427
+ i0.ɵɵelementStart(18, "div", 60)(19, "div")(20, "p", 61);
56428
56428
  i0.ɵɵtext(21, " Increase Amount ");
56429
56429
  i0.ɵɵelementEnd();
56430
- i0.ɵɵelementStart(22, "p", 63);
56430
+ i0.ɵɵelementStart(22, "p", 62);
56431
56431
  i0.ɵɵconditionalCreate(23, InitialTargetSettingComponent_Conditional_36_Conditional_23_Template, 1, 1)(24, InitialTargetSettingComponent_Conditional_36_Conditional_24_Template, 1, 0);
56432
56432
  i0.ɵɵelementEnd()();
56433
- i0.ɵɵelementStart(25, "div")(26, "p", 62);
56433
+ i0.ɵɵelementStart(25, "div")(26, "p", 61);
56434
56434
  i0.ɵɵtext(27, " % Growth ");
56435
56435
  i0.ɵɵelementEnd();
56436
- i0.ɵɵelementStart(28, "p", 63);
56436
+ i0.ɵɵelementStart(28, "p", 62);
56437
56437
  i0.ɵɵconditionalCreate(29, InitialTargetSettingComponent_Conditional_36_Conditional_29_Template, 1, 1)(30, InitialTargetSettingComponent_Conditional_36_Conditional_30_Template, 1, 0);
56438
56438
  i0.ɵɵelementEnd()()()();
56439
- i0.ɵɵconditionalCreate(31, InitialTargetSettingComponent_Conditional_36_Conditional_31_Template, 21, 13, "div", 57);
56439
+ i0.ɵɵconditionalCreate(31, InitialTargetSettingComponent_Conditional_36_Conditional_31_Template, 21, 13, "div", 56);
56440
56440
  i0.ɵɵelementEnd()()()();
56441
56441
  } if (rf & 2) {
56442
56442
  const ctx_r0 = i0.ɵɵnextContext();
@@ -56478,32 +56478,14 @@ function InitialTargetSettingComponent_Conditional_36_Template(rf, ctx) { if (rf
56478
56478
  i0.ɵɵadvance(2);
56479
56479
  i0.ɵɵconditional(ctx_r0.currentPaceProjection() > 0 && ctx_r0.gapToClose().amount !== 0 && ctx_r0.isTargetValid() ? 31 : -1);
56480
56480
  } }
56481
- function InitialTargetSettingComponent_Conditional_37_Template(rf, ctx) { if (rf & 1) {
56482
- const _r9 = i0.ɵɵgetCurrentView();
56483
- i0.ɵɵelementStart(0, "div", 28)(1, "button", 66);
56484
- i0.ɵɵlistener("click", function InitialTargetSettingComponent_Conditional_37_Template_button_click_1_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r0 = i0.ɵɵnextContext(); ctx_r0.toggleDetails(); return i0.ɵɵresetView($event.stopPropagation()); });
56485
- i0.ɵɵtext(2);
56486
- i0.ɵɵnamespaceSVG();
56487
- i0.ɵɵelementStart(3, "svg", 67);
56488
- i0.ɵɵelement(4, "path", 35);
56489
- i0.ɵɵelementEnd()()();
56490
- } if (rf & 2) {
56491
- const ctx_r0 = i0.ɵɵnextContext();
56492
- i0.ɵɵadvance();
56493
- i0.ɵɵproperty("ngClass", ctx_r0.learnMoreButtonClasses());
56494
- i0.ɵɵadvance();
56495
- i0.ɵɵtextInterpolate1(" ", ctx_r0.detailsExpanded() ? "Show Less" : "Learn More", " ");
56496
- i0.ɵɵadvance();
56497
- i0.ɵɵclassProp("chevron-rotate-expanded", ctx_r0.detailsExpanded());
56498
- } }
56499
- function InitialTargetSettingComponent_Conditional_38_Conditional_4_Template(rf, ctx) { if (rf & 1) {
56481
+ function InitialTargetSettingComponent_Conditional_37_Conditional_4_Template(rf, ctx) { if (rf & 1) {
56500
56482
  i0.ɵɵelement(0, "symphiq-area-chart", 23);
56501
56483
  } if (rf & 2) {
56502
56484
  const ctx_r0 = i0.ɵɵnextContext(2);
56503
56485
  i0.ɵɵproperty("chart", ctx_r0.revenueChartData())("showAxisLabels", true)("viewMode", ctx_r0.viewMode())("currencySymbol", "$")("height", "320px");
56504
56486
  } }
56505
- function InitialTargetSettingComponent_Conditional_38_Conditional_5_Template(rf, ctx) { if (rf & 1) {
56506
- i0.ɵɵelementStart(0, "div", 24)(1, "p", 50);
56487
+ function InitialTargetSettingComponent_Conditional_37_Conditional_5_Template(rf, ctx) { if (rf & 1) {
56488
+ i0.ɵɵelementStart(0, "div", 24)(1, "p", 49);
56507
56489
  i0.ɵɵtext(2, " No revenue data available ");
56508
56490
  i0.ɵɵelementEnd()();
56509
56491
  } if (rf & 2) {
@@ -56511,12 +56493,12 @@ function InitialTargetSettingComponent_Conditional_38_Conditional_5_Template(rf,
56511
56493
  i0.ɵɵadvance();
56512
56494
  i0.ɵɵproperty("ngClass", ctx_r0.noDataClasses());
56513
56495
  } }
56514
- function InitialTargetSettingComponent_Conditional_38_Template(rf, ctx) { if (rf & 1) {
56515
- i0.ɵɵelementStart(0, "div", 29)(1, "p", 21);
56496
+ function InitialTargetSettingComponent_Conditional_37_Template(rf, ctx) { if (rf & 1) {
56497
+ i0.ɵɵelementStart(0, "div", 28)(1, "p", 21);
56516
56498
  i0.ɵɵtext(2, " Year-over-Year Revenue Trend ");
56517
56499
  i0.ɵɵelementEnd();
56518
56500
  i0.ɵɵelementStart(3, "div", 22);
56519
- i0.ɵɵconditionalCreate(4, InitialTargetSettingComponent_Conditional_38_Conditional_4_Template, 1, 5, "symphiq-area-chart", 23)(5, InitialTargetSettingComponent_Conditional_38_Conditional_5_Template, 3, 1, "div", 24);
56501
+ i0.ɵɵconditionalCreate(4, InitialTargetSettingComponent_Conditional_37_Conditional_4_Template, 1, 5, "symphiq-area-chart", 23)(5, InitialTargetSettingComponent_Conditional_37_Conditional_5_Template, 3, 1, "div", 24);
56520
56502
  i0.ɵɵelementEnd()();
56521
56503
  } if (rf & 2) {
56522
56504
  const ctx_r0 = i0.ɵɵnextContext();
@@ -56527,26 +56509,37 @@ function InitialTargetSettingComponent_Conditional_38_Template(rf, ctx) { if (rf
56527
56509
  i0.ɵɵadvance();
56528
56510
  i0.ɵɵconditional(ctx_r0.revenueChartData() ? 4 : 5);
56529
56511
  } }
56530
- function InitialTargetSettingComponent_Conditional_41_Template(rf, ctx) { if (rf & 1) {
56531
- i0.ɵɵelementStart(0, "div", 68)(1, "div", 69)(2, "h2", 70);
56512
+ function InitialTargetSettingComponent_Conditional_40_Conditional_5_Template(rf, ctx) { if (rf & 1) {
56513
+ i0.ɵɵtext(0);
56514
+ } if (rf & 2) {
56515
+ const ctx_r0 = i0.ɵɵnextContext(2);
56516
+ i0.ɵɵtextInterpolate1(" To achieve your revenue target of over ", ctx_r0.formatCurrency(ctx_r0.submittedAbsoluteInput()), ", the following metrics need to improve by these amounts. These improvements compound through your funnel to drive revenue growth. ");
56517
+ } }
56518
+ function InitialTargetSettingComponent_Conditional_40_Conditional_6_Template(rf, ctx) { if (rf & 1) {
56519
+ i0.ɵɵtext(0);
56520
+ } if (rf & 2) {
56521
+ const ctx_r0 = i0.ɵɵnextContext(2);
56522
+ i0.ɵɵtextInterpolate1(" To achieve your revenue target of ", ctx_r0.formatCurrency(ctx_r0.displayedTargetRevenue()), ", the following metrics need to improve by these amounts. These improvements compound through your funnel to drive revenue growth. ");
56523
+ } }
56524
+ function InitialTargetSettingComponent_Conditional_40_Template(rf, ctx) { if (rf & 1) {
56525
+ i0.ɵɵelementStart(0, "div", 31)(1, "div", 65)(2, "h2", 66);
56532
56526
  i0.ɵɵtext(3, " Contributing Metrics ");
56533
56527
  i0.ɵɵelementEnd();
56534
- i0.ɵɵelementStart(4, "p", 50);
56535
- i0.ɵɵtext(5);
56528
+ i0.ɵɵelementStart(4, "p", 49);
56529
+ i0.ɵɵconditionalCreate(5, InitialTargetSettingComponent_Conditional_40_Conditional_5_Template, 1, 1)(6, InitialTargetSettingComponent_Conditional_40_Conditional_6_Template, 1, 1);
56536
56530
  i0.ɵɵelementEnd()();
56537
- i0.ɵɵelement(6, "symphiq-funnel-metrics-visualization", 71);
56531
+ i0.ɵɵelement(7, "symphiq-funnel-metrics-visualization", 67);
56538
56532
  i0.ɵɵelementEnd();
56539
56533
  } if (rf & 2) {
56540
56534
  const ctx_r0 = i0.ɵɵnextContext();
56541
- i0.ɵɵclassProp("metrics-highlight-pulse", ctx_r0.showMetricsHighlight());
56542
56535
  i0.ɵɵproperty("ngClass", ctx_r0.sectionCardClasses());
56543
56536
  i0.ɵɵadvance(2);
56544
56537
  i0.ɵɵproperty("ngClass", ctx_r0.sectionTitleClasses());
56545
56538
  i0.ɵɵadvance(2);
56546
56539
  i0.ɵɵproperty("ngClass", ctx_r0.sectionDescriptionClasses());
56547
56540
  i0.ɵɵadvance();
56548
- i0.ɵɵtextInterpolate1(" To achieve your revenue target of ", ctx_r0.formatCurrency(ctx_r0.displayedTargetRevenue()), ", the following metrics need to improve by these amounts. These improvements compound through your funnel to drive revenue growth. ");
56549
- i0.ɵɵadvance();
56541
+ i0.ɵɵconditional(ctx_r0.targets() === undefined && ctx_r0.submittedAbsoluteInput() !== null ? 5 : 6);
56542
+ i0.ɵɵadvance(2);
56550
56543
  i0.ɵɵproperty("viewMode", ctx_r0.viewMode())("calculations", ctx_r0.displayedMetricCalculations())("pacingMetrics", ctx_r0.pacingMetrics());
56551
56544
  } }
56552
56545
  class InitialTargetSettingComponent {
@@ -56569,10 +56562,10 @@ class InitialTargetSettingComponent {
56569
56562
  this.storedResponse = signal(null, ...(ngDevMode ? [{ debugName: "storedResponse" }] : []));
56570
56563
  this.submittedAbsoluteInput = signal(null, ...(ngDevMode ? [{ debugName: "submittedAbsoluteInput" }] : []));
56571
56564
  this.detailsExpanded = signal(false, ...(ngDevMode ? [{ debugName: "detailsExpanded" }] : []));
56572
- this.showMetricsHighlight = signal(false, ...(ngDevMode ? [{ debugName: "showMetricsHighlight" }] : []));
56573
- this.hasShownMetricsHighlight = false;
56574
56565
  this.animatedIncreaseAmount = signal(0, ...(ngDevMode ? [{ debugName: "animatedIncreaseAmount" }] : []));
56575
56566
  this.animatedPercentageGrowth = signal(0, ...(ngDevMode ? [{ debugName: "animatedPercentageGrowth" }] : []));
56567
+ this.animatedGapAmount = signal(0, ...(ngDevMode ? [{ debugName: "animatedGapAmount" }] : []));
56568
+ this.animatedGapPercentage = signal(0, ...(ngDevMode ? [{ debugName: "animatedGapPercentage" }] : []));
56576
56569
  this.animationFrameId = null;
56577
56570
  this.priorYearRevenue = computed(() => {
56578
56571
  return sumMetricFromUiData(this.mainUiData(), MetricEnum.PURCHASE_REVENUE, 'priorYear');
@@ -56633,7 +56626,7 @@ class InitialTargetSettingComponent {
56633
56626
  funnelMetric: metric,
56634
56627
  currentValue,
56635
56628
  targetValue,
56636
- percentageIncrease,
56629
+ percentageIncrease: metric === MetricEnum.PURCHASE_REVENUE ? this.percentageIncrease() : percentageIncrease,
56637
56630
  isFunnelStage: true,
56638
56631
  funnelInd: funnelMetric?.funnelInd,
56639
56632
  relatedInd: 0,
@@ -56747,50 +56740,44 @@ class InitialTargetSettingComponent {
56747
56740
  this.calculationState.set('results');
56748
56741
  }
56749
56742
  }, { allowSignalWrites: true });
56750
- effect(() => {
56751
- const showMetrics = this.showMetricsVisualization();
56752
- const targetsUndefined = this.targets() === undefined;
56753
- if (showMetrics && targetsUndefined && !this.hasShownMetricsHighlight) {
56754
- this.hasShownMetricsHighlight = true;
56755
- this.showMetricsHighlight.set(true);
56756
- setTimeout(() => {
56757
- this.showMetricsHighlight.set(false);
56758
- }, 2000);
56759
- }
56760
- }, { allowSignalWrites: true });
56761
56743
  effect(() => {
56762
56744
  const isValid = this.calculatedRevenue() > this.priorYearRevenue();
56763
56745
  const increaseAmount = this.calculatedRevenue() - this.priorYearRevenue();
56764
56746
  const percentageGrowth = this.percentageIncrease();
56747
+ const gap = this.gapToClose();
56765
56748
  if (isValid && increaseAmount > 0) {
56766
- this.animateCountUp(increaseAmount, percentageGrowth);
56749
+ this.animateCountUp(increaseAmount, percentageGrowth, Math.abs(gap.amount), gap.percentage);
56767
56750
  }
56768
56751
  else {
56769
56752
  this.animatedIncreaseAmount.set(0);
56770
56753
  this.animatedPercentageGrowth.set(0);
56754
+ this.animatedGapAmount.set(0);
56755
+ this.animatedGapPercentage.set(0);
56771
56756
  }
56772
56757
  }, { allowSignalWrites: true });
56773
56758
  }
56774
- animateCountUp(targetAmount, targetPercentage) {
56759
+ animateCountUp(targetAmount, targetPercentage, targetGapAmount, targetGapPercentage) {
56775
56760
  if (this.animationFrameId) {
56776
56761
  cancelAnimationFrame(this.animationFrameId);
56777
56762
  }
56778
56763
  const duration = 400;
56779
56764
  const startTime = performance.now();
56780
- const startAmount = 0;
56781
- const startPercentage = 0;
56782
56765
  const animate = (currentTime) => {
56783
56766
  const elapsed = currentTime - startTime;
56784
56767
  const progress = Math.min(elapsed / duration, 1);
56785
56768
  const easeProgress = 1 - Math.pow(1 - progress, 3);
56786
- this.animatedIncreaseAmount.set(startAmount + (targetAmount - startAmount) * easeProgress);
56787
- this.animatedPercentageGrowth.set(startPercentage + (targetPercentage - startPercentage) * easeProgress);
56769
+ this.animatedIncreaseAmount.set(targetAmount * easeProgress);
56770
+ this.animatedPercentageGrowth.set(targetPercentage * easeProgress);
56771
+ this.animatedGapAmount.set(targetGapAmount * easeProgress);
56772
+ this.animatedGapPercentage.set(targetGapPercentage * easeProgress);
56788
56773
  if (progress < 1) {
56789
56774
  this.animationFrameId = requestAnimationFrame(animate);
56790
56775
  }
56791
56776
  else {
56792
56777
  this.animatedIncreaseAmount.set(targetAmount);
56793
56778
  this.animatedPercentageGrowth.set(targetPercentage);
56779
+ this.animatedGapAmount.set(targetGapAmount);
56780
+ this.animatedGapPercentage.set(targetGapPercentage);
56794
56781
  }
56795
56782
  };
56796
56783
  this.animationFrameId = requestAnimationFrame(animate);
@@ -57088,7 +57075,7 @@ class InitialTargetSettingComponent {
57088
57075
  let _t;
57089
57076
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.absoluteInputRef = _t.first);
57090
57077
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.percentageInputRef = _t.first);
57091
- } }, 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" }, decls: 43, vars: 37, 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, "flex", "justify-center"], [1, "w-full"], [1, "metrics-section-enter"], [1, "metrics-section-content"], [1, "rounded-2xl", "border", "shadow-lg", "p-8", 3, "ngClass", "metrics-highlight-pulse"], [3, "submitClick", "cancelClick", "viewMode", "isValid", "isSubmitting", "validationMessage", "buttonText", "showCancelButton"], ["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", 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, "text-sm", "font-semibold", "transition-all", "inline-flex", "items-center", "gap-1", 3, "click", "ngClass"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-4", "h-4", "chevron-rotate"], [1, "rounded-2xl", "border", "shadow-lg", "p-8", 3, "ngClass"], [1, "mb-6"], [1, "text-2xl", "font-bold", "mb-2", 3, "ngClass"], [3, "viewMode", "calculations", "pacingMetrics"]], template: function InitialTargetSettingComponent_Template(rf, ctx) { if (rf & 1) {
57078
+ } }, 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" }, decls: 42, vars: 44, 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, "submitClick", "cancelClick", "viewMode", "isValid", "isSubmitting", "validationMessage", "buttonText", "showCancelButton"], ["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", 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, "viewMode", "calculations", "pacingMetrics"]], template: function InitialTargetSettingComponent_Template(rf, ctx) { if (rf & 1) {
57092
57079
  i0.ɵɵelementStart(0, "div", 2);
57093
57080
  i0.ɵɵelement(1, "symphiq-tooltip-container");
57094
57081
  i0.ɵɵelementStart(2, "div", 3);
@@ -57099,7 +57086,7 @@ class InitialTargetSettingComponent {
57099
57086
  i0.ɵɵconditionalCreate(7, InitialTargetSettingComponent_Conditional_7_Template, 2, 3, ":svg:svg", 6);
57100
57087
  i0.ɵɵelementEnd();
57101
57088
  i0.ɵɵelementStart(8, "div", 7)(9, "div", 8)(10, "div", 7)(11, "div", 9);
57102
- i0.ɵɵlistener("click", function InitialTargetSettingComponent_Template_div_click_11_listener($event) { return $event.stopPropagation(); });
57089
+ i0.ɵɵlistener("click", function InitialTargetSettingComponent_Template_div_click_11_listener() { return ctx.onCardClick(); });
57103
57090
  i0.ɵɵelementStart(12, "div", 10)(13, "div", 11);
57104
57091
  i0.ɵɵnamespaceSVG();
57105
57092
  i0.ɵɵelementStart(14, "svg", 12);
@@ -57126,18 +57113,17 @@ class InitialTargetSettingComponent {
57126
57113
  i0.ɵɵelementStart(34, "div", 25)(35, "div", 26);
57127
57114
  i0.ɵɵconditionalCreate(36, InitialTargetSettingComponent_Conditional_36_Template, 32, 25, "div", 27);
57128
57115
  i0.ɵɵelementEnd()()();
57129
- i0.ɵɵconditionalCreate(37, InitialTargetSettingComponent_Conditional_37_Template, 5, 4, "div", 28);
57130
- i0.ɵɵconditionalCreate(38, InitialTargetSettingComponent_Conditional_38_Template, 6, 3, "div", 29);
57116
+ i0.ɵɵconditionalCreate(37, InitialTargetSettingComponent_Conditional_37_Template, 6, 3, "div", 28);
57131
57117
  i0.ɵɵelementEnd()();
57132
- i0.ɵɵelementStart(39, "div", 30)(40, "div", 31);
57133
- i0.ɵɵconditionalCreate(41, InitialTargetSettingComponent_Conditional_41_Template, 7, 9, "div", 32);
57118
+ i0.ɵɵelementStart(38, "div", 29)(39, "div", 30);
57119
+ i0.ɵɵconditionalCreate(40, InitialTargetSettingComponent_Conditional_40_Template, 8, 7, "div", 31);
57134
57120
  i0.ɵɵelementEnd()();
57135
- i0.ɵɵelementStart(42, "symphiq-sticky-submit-bar", 33);
57136
- i0.ɵɵlistener("submitClick", function InitialTargetSettingComponent_Template_symphiq_sticky_submit_bar_submitClick_42_listener() { return ctx.handleSubmitClick(); })("cancelClick", function InitialTargetSettingComponent_Template_symphiq_sticky_submit_bar_cancelClick_42_listener() { return ctx.handleCancel(); });
57121
+ i0.ɵɵelementStart(41, "symphiq-sticky-submit-bar", 32);
57122
+ i0.ɵɵlistener("submitClick", function InitialTargetSettingComponent_Template_symphiq_sticky_submit_bar_submitClick_41_listener() { return ctx.handleSubmitClick(); })("cancelClick", function InitialTargetSettingComponent_Template_symphiq_sticky_submit_bar_cancelClick_41_listener() { return ctx.handleCancel(); });
57137
57123
  i0.ɵɵelementEnd()();
57138
57124
  } if (rf & 2) {
57139
57125
  i0.ɵɵadvance(2);
57140
- i0.ɵɵclassProp("cursor-pointer", ctx.calculationState() === "results");
57126
+ i0.ɵɵclassProp("cursor-pointer", ctx.calculationState() === "results")("sticky", ctx.calculationState() === "results")("top-32", ctx.calculationState() === "results")("z-30", ctx.calculationState() === "results");
57141
57127
  i0.ɵɵproperty("ngClass", ctx.sectionCardClasses());
57142
57128
  i0.ɵɵadvance(2);
57143
57129
  i0.ɵɵproperty("ngClass", ctx.sectionTitleClasses());
@@ -57146,6 +57132,7 @@ class InitialTargetSettingComponent {
57146
57132
  i0.ɵɵadvance(2);
57147
57133
  i0.ɵɵconditional(ctx.calculationState() === "results" ? 7 : -1);
57148
57134
  i0.ɵɵadvance(4);
57135
+ i0.ɵɵclassProp("cursor-pointer", ctx.calculationState() === "results");
57149
57136
  i0.ɵɵproperty("ngClass", ctx.formAreaClasses());
57150
57137
  i0.ɵɵadvance(3);
57151
57138
  i0.ɵɵproperty("ngClass", ctx.baselineIconClasses());
@@ -57176,20 +57163,18 @@ class InitialTargetSettingComponent {
57176
57163
  i0.ɵɵadvance(2);
57177
57164
  i0.ɵɵconditional(ctx.calculatedRevenue() > 0 ? 36 : -1);
57178
57165
  i0.ɵɵadvance();
57179
- i0.ɵɵconditional(ctx.calculationState() === "results" ? 37 : -1);
57180
- i0.ɵɵadvance();
57181
- i0.ɵɵconditional(ctx.calculationState() !== "results" ? 38 : -1);
57166
+ i0.ɵɵconditional(ctx.calculationState() !== "results" ? 37 : -1);
57182
57167
  i0.ɵɵadvance();
57183
57168
  i0.ɵɵclassProp("metrics-section-enter-active", ctx.showMetricsVisualization());
57184
57169
  i0.ɵɵadvance(2);
57185
- i0.ɵɵconditional(ctx.showMetricsVisualization() ? 41 : -1);
57170
+ i0.ɵɵconditional(ctx.showMetricsVisualization() ? 40 : -1);
57186
57171
  i0.ɵɵadvance();
57187
57172
  i0.ɵɵproperty("viewMode", ctx.viewMode())("isValid", ctx.isValid())("isSubmitting", ctx.isCalculating())("validationMessage", ctx.validationMessage())("buttonText", ctx.submitButtonText())("showCancelButton", ctx.calculationState() === "input" && ctx.hasStoredResponse());
57188
57173
  } }, dependencies: [CommonModule, i1$1.NgClass, FormsModule, i2$1.DefaultValueAccessor, i2$1.NumberValueAccessor, i2$1.NgControlStatus, i2$1.MinValidator, i2$1.MaxValidator, i2$1.NgModel, FunnelMetricsVisualizationComponent,
57189
57174
  StickySubmitBarComponent,
57190
57175
  AreaChartComponent,
57191
57176
  TooltipDirective,
57192
- TooltipContainerComponent], styles: [".calculated-card-enter[_ngcontent-%COMP%]{display:grid;grid-template-rows:0fr;transition:grid-template-rows .3s ease-out}.calculated-card-enter-active[_ngcontent-%COMP%]{grid-template-rows:1fr}.calculated-card-content[_ngcontent-%COMP%]{overflow:hidden}.form-area-collapse[_ngcontent-%COMP%]{display:grid;grid-template-rows:1fr;transition:grid-template-rows .4s ease-out}.form-area-collapse-hidden[_ngcontent-%COMP%]{grid-template-rows:0fr}.form-area-content[_ngcontent-%COMP%]{overflow:hidden}.chart-section-collapse[_ngcontent-%COMP%]{display:grid;grid-template-rows:1fr;transition:grid-template-rows .4s ease-out}.chart-section-collapse-hidden[_ngcontent-%COMP%]{grid-template-rows:0fr}.chart-section-content[_ngcontent-%COMP%]{overflow:hidden}.chart-in-column[_ngcontent-%COMP%]{display:grid;grid-template-rows:0fr;transition:grid-template-rows .4s ease-out}.chart-in-column-active[_ngcontent-%COMP%]{grid-template-rows:1fr}.chart-in-column-content[_ngcontent-%COMP%]{overflow:hidden}.metrics-section-enter[_ngcontent-%COMP%]{display:grid;grid-template-rows:0fr;transition:grid-template-rows .5s ease-out}.metrics-section-enter-active[_ngcontent-%COMP%]{grid-template-rows:1fr}.metrics-section-content[_ngcontent-%COMP%]{overflow:hidden}.details-collapse[_ngcontent-%COMP%]{display:grid;grid-template-rows:0fr;transition:grid-template-rows .4s ease-out}.details-collapse-expanded[_ngcontent-%COMP%]{grid-template-rows:1fr}.details-collapse-content[_ngcontent-%COMP%]{overflow:hidden}.chevron-rotate[_ngcontent-%COMP%]{transition:transform .3s ease-out}.chevron-rotate-expanded[_ngcontent-%COMP%]{transform:rotate(180deg)}@keyframes _ngcontent-%COMP%_pulse-highlight{0%,to{box-shadow:0 0 #8b5cf600}50%{box-shadow:0 0 12px 6px #8b5cf680}}.metrics-highlight-pulse[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_pulse-highlight 1s ease-in-out 2;border-color:#8b5cf6!important}"], changeDetection: 0 }); }
57177
+ TooltipContainerComponent], styles: [".calculated-card-enter[_ngcontent-%COMP%]{display:grid;grid-template-rows:0fr;transition:grid-template-rows .3s ease-out}.calculated-card-enter-active[_ngcontent-%COMP%]{grid-template-rows:1fr}.calculated-card-content[_ngcontent-%COMP%]{overflow:hidden}.form-area-collapse[_ngcontent-%COMP%]{display:grid;grid-template-rows:1fr;transition:grid-template-rows .4s ease-out}.form-area-collapse-hidden[_ngcontent-%COMP%]{grid-template-rows:0fr}.form-area-content[_ngcontent-%COMP%]{overflow:hidden}.chart-section-collapse[_ngcontent-%COMP%]{display:grid;grid-template-rows:1fr;transition:grid-template-rows .4s ease-out}.chart-section-collapse-hidden[_ngcontent-%COMP%]{grid-template-rows:0fr}.chart-section-content[_ngcontent-%COMP%]{overflow:hidden}.chart-in-column[_ngcontent-%COMP%]{display:grid;grid-template-rows:0fr;transition:grid-template-rows .4s ease-out}.chart-in-column-active[_ngcontent-%COMP%]{grid-template-rows:1fr}.chart-in-column-content[_ngcontent-%COMP%]{overflow:hidden}.metrics-section-enter[_ngcontent-%COMP%]{display:grid;grid-template-rows:0fr;transition:grid-template-rows .5s ease-out}.metrics-section-enter-active[_ngcontent-%COMP%]{grid-template-rows:1fr}.metrics-section-content[_ngcontent-%COMP%]{overflow:hidden}.details-collapse[_ngcontent-%COMP%]{display:grid;grid-template-rows:0fr;transition:grid-template-rows .4s ease-out}.details-collapse-expanded[_ngcontent-%COMP%]{grid-template-rows:1fr}.details-collapse-content[_ngcontent-%COMP%]{overflow:hidden}.chevron-rotate[_ngcontent-%COMP%]{transition:transform .3s ease-out}.chevron-rotate-expanded[_ngcontent-%COMP%]{transform:rotate(180deg)}"], changeDetection: 0 }); }
57193
57178
  }
57194
57179
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InitialTargetSettingComponent, [{
57195
57180
  type: Component,
@@ -57206,6 +57191,9 @@ class InitialTargetSettingComponent {
57206
57191
  <symphiq-tooltip-container />
57207
57192
  <div [ngClass]="sectionCardClasses()" class="rounded-2xl border shadow-lg p-8"
57208
57193
  [class.cursor-pointer]="calculationState() === 'results'"
57194
+ [class.sticky]="calculationState() === 'results'"
57195
+ [class.top-32]="calculationState() === 'results'"
57196
+ [class.z-30]="calculationState() === 'results'"
57209
57197
  (click)="onCardClick()">
57210
57198
  <div class="flex items-center justify-between mb-6">
57211
57199
  <h2 [ngClass]="sectionTitleClasses()" class="text-2xl font-bold">
@@ -57231,7 +57219,7 @@ class InitialTargetSettingComponent {
57231
57219
  <div class="flex flex-col gap-4">
57232
57220
  <div class="grid lg:grid-cols-2 gap-4">
57233
57221
  <div class="flex flex-col gap-4">
57234
- <div [ngClass]="formAreaClasses()" class="p-6 rounded-xl border-2" (click)="$event.stopPropagation()">
57222
+ <div [ngClass]="formAreaClasses()" class="p-6 rounded-xl border-2" [class.cursor-pointer]="calculationState() === 'results'" (click)="onCardClick()">
57235
57223
  <div class="flex flex-wrap gap-4 place-content-between">
57236
57224
  <div class="flex items-center gap-2">
57237
57225
  <svg class="w-4 h-4" [ngClass]="baselineIconClasses()" fill="none" stroke="currentColor" viewBox="0 0 24 24">
@@ -57459,7 +57447,7 @@ class InitialTargetSettingComponent {
57459
57447
  Gap to Close
57460
57448
  </p>
57461
57449
  <p [ngClass]="calculatedSecondaryClasses()" class="text-xl font-bold">
57462
- {{ formatCurrency(absValue(gapToClose().amount)) }}
57450
+ {{ formatCurrency(animatedGapAmount()) }}
57463
57451
  </p>
57464
57452
  </div>
57465
57453
  <div>
@@ -57481,7 +57469,7 @@ class InitialTargetSettingComponent {
57481
57469
  </button>
57482
57470
  </div>
57483
57471
  <p [ngClass]="calculatedSecondaryClasses()" class="text-xl font-bold">
57484
- {{ gapToClose().amount > 0 ? '+' : '' }}{{ formatPercentage(gapToClose().percentage, 1) }}
57472
+ {{ gapToClose().amount > 0 ? '+' : '' }}{{ formatPercentage(animatedGapPercentage(), 1) }}
57485
57473
  </p>
57486
57474
  </div>
57487
57475
  </div>
@@ -57497,25 +57485,6 @@ class InitialTargetSettingComponent {
57497
57485
  </div>
57498
57486
  </div>
57499
57487
 
57500
- @if (calculationState() === 'results') {
57501
- <div class="flex justify-center">
57502
- <button
57503
- (click)="toggleDetails(); $event.stopPropagation()"
57504
- [ngClass]="learnMoreButtonClasses()"
57505
- class="text-sm font-semibold transition-all inline-flex items-center gap-1">
57506
- {{ detailsExpanded() ? 'Show Less' : 'Learn More' }}
57507
- <svg
57508
- class="w-4 h-4 chevron-rotate"
57509
- [class.chevron-rotate-expanded]="detailsExpanded()"
57510
- fill="none"
57511
- stroke="currentColor"
57512
- viewBox="0 0 24 24">
57513
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7" />
57514
- </svg>
57515
- </button>
57516
- </div>
57517
- }
57518
-
57519
57488
  @if (calculationState() !== 'results') {
57520
57489
  <div class="w-full">
57521
57490
  <p [ngClass]="chartTitleClasses()" class="text-sm font-semibold mb-3">
@@ -57546,14 +57515,17 @@ class InitialTargetSettingComponent {
57546
57515
  <div class="metrics-section-enter" [class.metrics-section-enter-active]="showMetricsVisualization()">
57547
57516
  <div class="metrics-section-content">
57548
57517
  @if (showMetricsVisualization()) {
57549
- <div [ngClass]="sectionCardClasses()" class="rounded-2xl border shadow-lg p-8"
57550
- [class.metrics-highlight-pulse]="showMetricsHighlight()">
57518
+ <div [ngClass]="sectionCardClasses()" class="rounded-2xl border shadow-lg p-8">
57551
57519
  <div class="mb-6">
57552
57520
  <h2 [ngClass]="sectionTitleClasses()" class="text-2xl font-bold mb-2">
57553
57521
  Contributing Metrics
57554
57522
  </h2>
57555
57523
  <p [ngClass]="sectionDescriptionClasses()" class="text-sm">
57556
- To achieve your revenue target of {{ formatCurrency(displayedTargetRevenue()) }}, the following metrics need to improve by these amounts. These improvements compound through your funnel to drive revenue growth.
57524
+ @if (targets() === undefined && submittedAbsoluteInput() !== null) {
57525
+ To achieve your revenue target of over {{ formatCurrency(submittedAbsoluteInput()!) }}, the following metrics need to improve by these amounts. These improvements compound through your funnel to drive revenue growth.
57526
+ } @else {
57527
+ To achieve your revenue target of {{ formatCurrency(displayedTargetRevenue()) }}, the following metrics need to improve by these amounts. These improvements compound through your funnel to drive revenue growth.
57528
+ }
57557
57529
  </p>
57558
57530
  </div>
57559
57531
 
@@ -57578,7 +57550,7 @@ class InitialTargetSettingComponent {
57578
57550
  (cancelClick)="handleCancel()"
57579
57551
  />
57580
57552
  </div>
57581
- `, styles: [".calculated-card-enter{display:grid;grid-template-rows:0fr;transition:grid-template-rows .3s ease-out}.calculated-card-enter-active{grid-template-rows:1fr}.calculated-card-content{overflow:hidden}.form-area-collapse{display:grid;grid-template-rows:1fr;transition:grid-template-rows .4s ease-out}.form-area-collapse-hidden{grid-template-rows:0fr}.form-area-content{overflow:hidden}.chart-section-collapse{display:grid;grid-template-rows:1fr;transition:grid-template-rows .4s ease-out}.chart-section-collapse-hidden{grid-template-rows:0fr}.chart-section-content{overflow:hidden}.chart-in-column{display:grid;grid-template-rows:0fr;transition:grid-template-rows .4s ease-out}.chart-in-column-active{grid-template-rows:1fr}.chart-in-column-content{overflow:hidden}.metrics-section-enter{display:grid;grid-template-rows:0fr;transition:grid-template-rows .5s ease-out}.metrics-section-enter-active{grid-template-rows:1fr}.metrics-section-content{overflow:hidden}.details-collapse{display:grid;grid-template-rows:0fr;transition:grid-template-rows .4s ease-out}.details-collapse-expanded{grid-template-rows:1fr}.details-collapse-content{overflow:hidden}.chevron-rotate{transition:transform .3s ease-out}.chevron-rotate-expanded{transform:rotate(180deg)}@keyframes pulse-highlight{0%,to{box-shadow:0 0 #8b5cf600}50%{box-shadow:0 0 12px 6px #8b5cf680}}.metrics-highlight-pulse{animation:pulse-highlight 1s ease-in-out 2;border-color:#8b5cf6!important}\n"] }]
57553
+ `, styles: [".calculated-card-enter{display:grid;grid-template-rows:0fr;transition:grid-template-rows .3s ease-out}.calculated-card-enter-active{grid-template-rows:1fr}.calculated-card-content{overflow:hidden}.form-area-collapse{display:grid;grid-template-rows:1fr;transition:grid-template-rows .4s ease-out}.form-area-collapse-hidden{grid-template-rows:0fr}.form-area-content{overflow:hidden}.chart-section-collapse{display:grid;grid-template-rows:1fr;transition:grid-template-rows .4s ease-out}.chart-section-collapse-hidden{grid-template-rows:0fr}.chart-section-content{overflow:hidden}.chart-in-column{display:grid;grid-template-rows:0fr;transition:grid-template-rows .4s ease-out}.chart-in-column-active{grid-template-rows:1fr}.chart-in-column-content{overflow:hidden}.metrics-section-enter{display:grid;grid-template-rows:0fr;transition:grid-template-rows .5s ease-out}.metrics-section-enter-active{grid-template-rows:1fr}.metrics-section-content{overflow:hidden}.details-collapse{display:grid;grid-template-rows:0fr;transition:grid-template-rows .4s ease-out}.details-collapse-expanded{grid-template-rows:1fr}.details-collapse-content{overflow:hidden}.chevron-rotate{transition:transform .3s ease-out}.chevron-rotate-expanded{transform:rotate(180deg)}\n"] }]
57582
57554
  }], () => [], { absoluteInputRef: [{
57583
57555
  type: ViewChild,
57584
57556
  args: ['absoluteInputRef']
@@ -57586,7 +57558,7 @@ class InitialTargetSettingComponent {
57586
57558
  type: ViewChild,
57587
57559
  args: ['percentageInputRef']
57588
57560
  }], 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"] }] }); })();
57589
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(InitialTargetSettingComponent, { className: "InitialTargetSettingComponent", filePath: "lib/components/revenue-calculator-dashboard/initial-target-setting.component.ts", lineNumber: 539 }); })();
57561
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(InitialTargetSettingComponent, { className: "InitialTargetSettingComponent", filePath: "lib/components/revenue-calculator-dashboard/initial-target-setting.component.ts", lineNumber: 513 }); })();
57590
57562
 
57591
57563
  function IndeterminateSpinnerComponent_For_5_Template(rf, ctx) { if (rf & 1) {
57592
57564
  i0.ɵɵelement(0, "div", 5);