@eric-emg/symphiq-components 1.2.205 → 1.2.207
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/symphiq-components.mjs +392 -325
- package/fesm2022/symphiq-components.mjs.map +1 -1
- package/package.json +1 -1
- package/styles.css +3 -0
|
@@ -56226,17 +56226,17 @@ var areaChart_component = /*#__PURE__*/Object.freeze({
|
|
|
56226
56226
|
|
|
56227
56227
|
const _c0$r = ["absoluteInputRef"];
|
|
56228
56228
|
const _c1$b = ["percentageInputRef"];
|
|
56229
|
-
function
|
|
56230
|
-
i0.ɵɵelementStart(0, "div",
|
|
56229
|
+
function InitialTargetSettingComponent_Conditional_17_Template(rf, ctx) { if (rf & 1) {
|
|
56230
|
+
i0.ɵɵelementStart(0, "div", 10);
|
|
56231
56231
|
i0.ɵɵnamespaceSVG();
|
|
56232
|
-
i0.ɵɵelementStart(1, "svg",
|
|
56233
|
-
i0.ɵɵelement(2, "path",
|
|
56232
|
+
i0.ɵɵelementStart(1, "svg", 11);
|
|
56233
|
+
i0.ɵɵelement(2, "path", 33);
|
|
56234
56234
|
i0.ɵɵelementEnd();
|
|
56235
56235
|
i0.ɵɵnamespaceHTML();
|
|
56236
|
-
i0.ɵɵelementStart(3, "div")(4, "p",
|
|
56236
|
+
i0.ɵɵelementStart(3, "div")(4, "p", 13);
|
|
56237
56237
|
i0.ɵɵtext(5, " Current Pace Projection ");
|
|
56238
56238
|
i0.ɵɵelementEnd();
|
|
56239
|
-
i0.ɵɵelementStart(6, "p",
|
|
56239
|
+
i0.ɵɵelementStart(6, "p", 14);
|
|
56240
56240
|
i0.ɵɵtext(7);
|
|
56241
56241
|
i0.ɵɵelementEnd()()();
|
|
56242
56242
|
} if (rf & 2) {
|
|
@@ -56250,14 +56250,14 @@ function InitialTargetSettingComponent_Conditional_18_Template(rf, ctx) { if (rf
|
|
|
56250
56250
|
i0.ɵɵadvance();
|
|
56251
56251
|
i0.ɵɵtextInterpolate1(" ", ctx_r0.formatCurrency(ctx_r0.currentPaceProjection()), " ");
|
|
56252
56252
|
} }
|
|
56253
|
-
function
|
|
56253
|
+
function InitialTargetSettingComponent_Conditional_21_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
56254
56254
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
56255
|
-
i0.ɵɵelementStart(0, "div",
|
|
56255
|
+
i0.ɵɵelementStart(0, "div", 36)(1, "span", 37);
|
|
56256
56256
|
i0.ɵɵtext(2, " $ ");
|
|
56257
56257
|
i0.ɵɵelementEnd();
|
|
56258
|
-
i0.ɵɵelementStart(3, "input",
|
|
56259
|
-
i0.ɵɵtwoWayListener("ngModelChange", function
|
|
56260
|
-
i0.ɵɵlistener("ngModelChange", function
|
|
56258
|
+
i0.ɵɵelementStart(3, "input", 38, 0);
|
|
56259
|
+
i0.ɵɵtwoWayListener("ngModelChange", function InitialTargetSettingComponent_Conditional_21_Conditional_5_Template_input_ngModelChange_3_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r0 = i0.ɵɵnextContext(2); i0.ɵɵtwoWayBindingSet(ctx_r0.absoluteInput, $event) || (ctx_r0.absoluteInput = $event); return i0.ɵɵresetView($event); });
|
|
56260
|
+
i0.ɵɵlistener("ngModelChange", function InitialTargetSettingComponent_Conditional_21_Conditional_5_Template_input_ngModelChange_3_listener() { i0.ɵɵrestoreView(_r3); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.onAbsoluteInputChange()); });
|
|
56261
56261
|
i0.ɵɵelementEnd()();
|
|
56262
56262
|
} if (rf & 2) {
|
|
56263
56263
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
@@ -56267,13 +56267,13 @@ function InitialTargetSettingComponent_Conditional_19_Conditional_5_Template(rf,
|
|
|
56267
56267
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r0.absoluteInput);
|
|
56268
56268
|
i0.ɵɵproperty("ngClass", ctx_r0.inputClasses());
|
|
56269
56269
|
} }
|
|
56270
|
-
function
|
|
56270
|
+
function InitialTargetSettingComponent_Conditional_21_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
56271
56271
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
56272
|
-
i0.ɵɵelementStart(0, "div",
|
|
56273
|
-
i0.ɵɵtwoWayListener("ngModelChange", function
|
|
56274
|
-
i0.ɵɵlistener("ngModelChange", function
|
|
56272
|
+
i0.ɵɵelementStart(0, "div", 36)(1, "input", 39, 1);
|
|
56273
|
+
i0.ɵɵtwoWayListener("ngModelChange", function InitialTargetSettingComponent_Conditional_21_Conditional_6_Template_input_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r0 = i0.ɵɵnextContext(2); i0.ɵɵtwoWayBindingSet(ctx_r0.percentageInput, $event) || (ctx_r0.percentageInput = $event); return i0.ɵɵresetView($event); });
|
|
56274
|
+
i0.ɵɵlistener("ngModelChange", function InitialTargetSettingComponent_Conditional_21_Conditional_6_Template_input_ngModelChange_1_listener() { i0.ɵɵrestoreView(_r4); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.onPercentageInputChange()); });
|
|
56275
56275
|
i0.ɵɵelementEnd();
|
|
56276
|
-
i0.ɵɵelementStart(3, "span",
|
|
56276
|
+
i0.ɵɵelementStart(3, "span", 40);
|
|
56277
56277
|
i0.ɵɵtext(4, " % ");
|
|
56278
56278
|
i0.ɵɵelementEnd()();
|
|
56279
56279
|
} if (rf & 2) {
|
|
@@ -56284,17 +56284,17 @@ function InitialTargetSettingComponent_Conditional_19_Conditional_6_Template(rf,
|
|
|
56284
56284
|
i0.ɵɵadvance(2);
|
|
56285
56285
|
i0.ɵɵproperty("ngClass", ctx_r0.inputSuffixClasses());
|
|
56286
56286
|
} }
|
|
56287
|
-
function
|
|
56287
|
+
function InitialTargetSettingComponent_Conditional_21_Template(rf, ctx) { if (rf & 1) {
|
|
56288
56288
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
56289
|
-
i0.ɵɵelementStart(0, "div",
|
|
56290
|
-
i0.ɵɵlistener("click", function
|
|
56289
|
+
i0.ɵɵelementStart(0, "div", 34)(1, "button", 35);
|
|
56290
|
+
i0.ɵɵlistener("click", function InitialTargetSettingComponent_Conditional_21_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.setInputMode("absolute")); });
|
|
56291
56291
|
i0.ɵɵtext(2, " Absolute Amount ");
|
|
56292
56292
|
i0.ɵɵelementEnd();
|
|
56293
|
-
i0.ɵɵelementStart(3, "button",
|
|
56294
|
-
i0.ɵɵlistener("click", function
|
|
56293
|
+
i0.ɵɵelementStart(3, "button", 35);
|
|
56294
|
+
i0.ɵɵlistener("click", function InitialTargetSettingComponent_Conditional_21_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.setInputMode("percentage")); });
|
|
56295
56295
|
i0.ɵɵtext(4, " % Increase ");
|
|
56296
56296
|
i0.ɵɵelementEnd()();
|
|
56297
|
-
i0.ɵɵconditionalCreate(5,
|
|
56297
|
+
i0.ɵɵconditionalCreate(5, InitialTargetSettingComponent_Conditional_21_Conditional_5_Template, 5, 3, "div", 36)(6, InitialTargetSettingComponent_Conditional_21_Conditional_6_Template, 5, 3, "div", 36);
|
|
56298
56298
|
} if (rf & 2) {
|
|
56299
56299
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
56300
56300
|
i0.ɵɵadvance();
|
|
@@ -56304,30 +56304,45 @@ function InitialTargetSettingComponent_Conditional_19_Template(rf, ctx) { if (rf
|
|
|
56304
56304
|
i0.ɵɵadvance(2);
|
|
56305
56305
|
i0.ɵɵconditional(ctx_r0.inputMode() === "absolute" ? 5 : 6);
|
|
56306
56306
|
} }
|
|
56307
|
-
function
|
|
56307
|
+
function InitialTargetSettingComponent_Conditional_28_Template(rf, ctx) { if (rf & 1) {
|
|
56308
|
+
i0.ɵɵelement(0, "symphiq-area-chart", 22);
|
|
56309
|
+
} if (rf & 2) {
|
|
56310
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
56311
|
+
i0.ɵɵproperty("chart", ctx_r0.revenueChartData())("showAxisLabels", true)("viewMode", ctx_r0.viewMode())("currencySymbol", "$")("height", "320px");
|
|
56312
|
+
} }
|
|
56313
|
+
function InitialTargetSettingComponent_Conditional_29_Template(rf, ctx) { if (rf & 1) {
|
|
56314
|
+
i0.ɵɵelementStart(0, "div", 23)(1, "p", 41);
|
|
56315
|
+
i0.ɵɵtext(2, " No revenue data available ");
|
|
56316
|
+
i0.ɵɵelementEnd()();
|
|
56317
|
+
} if (rf & 2) {
|
|
56318
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
56319
|
+
i0.ɵɵadvance();
|
|
56320
|
+
i0.ɵɵproperty("ngClass", ctx_r0.noDataClasses());
|
|
56321
|
+
} }
|
|
56322
|
+
function InitialTargetSettingComponent_Conditional_32_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
56308
56323
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
56309
|
-
i0.ɵɵelementStart(0, "button",
|
|
56310
|
-
i0.ɵɵlistener("click", function
|
|
56324
|
+
i0.ɵɵelementStart(0, "button", 51);
|
|
56325
|
+
i0.ɵɵlistener("click", function InitialTargetSettingComponent_Conditional_32_Conditional_8_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.handleAdjustTarget()); });
|
|
56311
56326
|
i0.ɵɵtext(1, " Adjust Revenue Target ");
|
|
56312
56327
|
i0.ɵɵelementEnd();
|
|
56313
56328
|
} if (rf & 2) {
|
|
56314
56329
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
56315
56330
|
i0.ɵɵproperty("ngClass", ctx_r0.secondaryButtonClasses());
|
|
56316
56331
|
} }
|
|
56317
|
-
function
|
|
56318
|
-
i0.ɵɵelementStart(0, "div",
|
|
56332
|
+
function InitialTargetSettingComponent_Conditional_32_Conditional_24_Template(rf, ctx) { if (rf & 1) {
|
|
56333
|
+
i0.ɵɵelementStart(0, "div", 46)(1, "div", 47)(2, "span", 48);
|
|
56319
56334
|
i0.ɵɵtext(3);
|
|
56320
56335
|
i0.ɵɵelementEnd()();
|
|
56321
|
-
i0.ɵɵelementStart(4, "div",
|
|
56336
|
+
i0.ɵɵelementStart(4, "div", 49)(5, "div")(6, "p", 43);
|
|
56322
56337
|
i0.ɵɵtext(7, " Gap to Close ");
|
|
56323
56338
|
i0.ɵɵelementEnd();
|
|
56324
|
-
i0.ɵɵelementStart(8, "p",
|
|
56339
|
+
i0.ɵɵelementStart(8, "p", 50);
|
|
56325
56340
|
i0.ɵɵtext(9);
|
|
56326
56341
|
i0.ɵɵelementEnd()();
|
|
56327
|
-
i0.ɵɵelementStart(10, "div")(11, "p",
|
|
56342
|
+
i0.ɵɵelementStart(10, "div")(11, "p", 43);
|
|
56328
56343
|
i0.ɵɵtext(12, " Additional Growth Needed ");
|
|
56329
56344
|
i0.ɵɵelementEnd();
|
|
56330
|
-
i0.ɵɵelementStart(13, "p",
|
|
56345
|
+
i0.ɵɵelementStart(13, "p", 50);
|
|
56331
56346
|
i0.ɵɵtext(14);
|
|
56332
56347
|
i0.ɵɵelementEnd()()()();
|
|
56333
56348
|
} if (rf & 2) {
|
|
@@ -56350,31 +56365,31 @@ function InitialTargetSettingComponent_Conditional_22_Conditional_24_Template(rf
|
|
|
56350
56365
|
i0.ɵɵadvance();
|
|
56351
56366
|
i0.ɵɵtextInterpolate2(" ", ctx_r0.gapToClose().amount > 0 ? "+" : "", "", ctx_r0.formatPercentage(ctx_r0.gapToClose().percentage, 1), " ");
|
|
56352
56367
|
} }
|
|
56353
|
-
function
|
|
56354
|
-
i0.ɵɵelementStart(0, "div",
|
|
56368
|
+
function InitialTargetSettingComponent_Conditional_32_Template(rf, ctx) { if (rf & 1) {
|
|
56369
|
+
i0.ɵɵelementStart(0, "div", 26)(1, "div", 17)(2, "div", 42)(3, "div")(4, "p", 43);
|
|
56355
56370
|
i0.ɵɵtext(5);
|
|
56356
56371
|
i0.ɵɵelementEnd();
|
|
56357
|
-
i0.ɵɵelementStart(6, "p",
|
|
56372
|
+
i0.ɵɵelementStart(6, "p", 44);
|
|
56358
56373
|
i0.ɵɵtext(7);
|
|
56359
56374
|
i0.ɵɵelementEnd()();
|
|
56360
|
-
i0.ɵɵconditionalCreate(8,
|
|
56375
|
+
i0.ɵɵconditionalCreate(8, InitialTargetSettingComponent_Conditional_32_Conditional_8_Template, 2, 1, "button", 45);
|
|
56361
56376
|
i0.ɵɵelementEnd();
|
|
56362
|
-
i0.ɵɵelementStart(9, "div",
|
|
56377
|
+
i0.ɵɵelementStart(9, "div", 46)(10, "div", 47)(11, "span", 48);
|
|
56363
56378
|
i0.ɵɵtext(12);
|
|
56364
56379
|
i0.ɵɵelementEnd()();
|
|
56365
|
-
i0.ɵɵelementStart(13, "div",
|
|
56380
|
+
i0.ɵɵelementStart(13, "div", 49)(14, "div")(15, "p", 43);
|
|
56366
56381
|
i0.ɵɵtext(16, " Increase Amount ");
|
|
56367
56382
|
i0.ɵɵelementEnd();
|
|
56368
|
-
i0.ɵɵelementStart(17, "p",
|
|
56383
|
+
i0.ɵɵelementStart(17, "p", 50);
|
|
56369
56384
|
i0.ɵɵtext(18);
|
|
56370
56385
|
i0.ɵɵelementEnd()();
|
|
56371
|
-
i0.ɵɵelementStart(19, "div")(20, "p",
|
|
56386
|
+
i0.ɵɵelementStart(19, "div")(20, "p", 43);
|
|
56372
56387
|
i0.ɵɵtext(21, " % Growth ");
|
|
56373
56388
|
i0.ɵɵelementEnd();
|
|
56374
|
-
i0.ɵɵelementStart(22, "p",
|
|
56389
|
+
i0.ɵɵelementStart(22, "p", 50);
|
|
56375
56390
|
i0.ɵɵtext(23);
|
|
56376
56391
|
i0.ɵɵelementEnd()()()();
|
|
56377
|
-
i0.ɵɵconditionalCreate(24,
|
|
56392
|
+
i0.ɵɵconditionalCreate(24, InitialTargetSettingComponent_Conditional_32_Conditional_24_Template, 15, 10, "div", 46);
|
|
56378
56393
|
i0.ɵɵelementEnd()();
|
|
56379
56394
|
} if (rf & 2) {
|
|
56380
56395
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -56410,14 +56425,14 @@ function InitialTargetSettingComponent_Conditional_22_Template(rf, ctx) { if (rf
|
|
|
56410
56425
|
i0.ɵɵadvance();
|
|
56411
56426
|
i0.ɵɵconditional(ctx_r0.currentPaceProjection() > 0 && ctx_r0.gapToClose().amount !== 0 ? 24 : -1);
|
|
56412
56427
|
} }
|
|
56413
|
-
function
|
|
56428
|
+
function InitialTargetSettingComponent_Conditional_39_Template(rf, ctx) { if (rf & 1) {
|
|
56414
56429
|
i0.ɵɵelement(0, "symphiq-area-chart", 22);
|
|
56415
56430
|
} if (rf & 2) {
|
|
56416
56431
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
56417
56432
|
i0.ɵɵproperty("chart", ctx_r0.revenueChartData())("showAxisLabels", true)("viewMode", ctx_r0.viewMode())("currencySymbol", "$")("height", "320px");
|
|
56418
56433
|
} }
|
|
56419
|
-
function
|
|
56420
|
-
i0.ɵɵelementStart(0, "div", 23)(1, "p",
|
|
56434
|
+
function InitialTargetSettingComponent_Conditional_40_Template(rf, ctx) { if (rf & 1) {
|
|
56435
|
+
i0.ɵɵelementStart(0, "div", 23)(1, "p", 41);
|
|
56421
56436
|
i0.ɵɵtext(2, " No revenue data available ");
|
|
56422
56437
|
i0.ɵɵelementEnd()();
|
|
56423
56438
|
} if (rf & 2) {
|
|
@@ -56425,14 +56440,14 @@ function InitialTargetSettingComponent_Conditional_28_Template(rf, ctx) { if (rf
|
|
|
56425
56440
|
i0.ɵɵadvance();
|
|
56426
56441
|
i0.ɵɵproperty("ngClass", ctx_r0.noDataClasses());
|
|
56427
56442
|
} }
|
|
56428
|
-
function
|
|
56429
|
-
i0.ɵɵelementStart(0, "div", 3)(1, "div",
|
|
56443
|
+
function InitialTargetSettingComponent_Conditional_43_Template(rf, ctx) { if (rf & 1) {
|
|
56444
|
+
i0.ɵɵelementStart(0, "div", 3)(1, "div", 52)(2, "h2", 53);
|
|
56430
56445
|
i0.ɵɵtext(3, " Contributing Metrics ");
|
|
56431
56446
|
i0.ɵɵelementEnd();
|
|
56432
|
-
i0.ɵɵelementStart(4, "p",
|
|
56447
|
+
i0.ɵɵelementStart(4, "p", 41);
|
|
56433
56448
|
i0.ɵɵtext(5);
|
|
56434
56449
|
i0.ɵɵelementEnd()();
|
|
56435
|
-
i0.ɵɵelement(6, "symphiq-funnel-metrics-visualization",
|
|
56450
|
+
i0.ɵɵelement(6, "symphiq-funnel-metrics-visualization", 54);
|
|
56436
56451
|
i0.ɵɵelementEnd();
|
|
56437
56452
|
} if (rf & 2) {
|
|
56438
56453
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -56875,40 +56890,47 @@ class InitialTargetSettingComponent {
|
|
|
56875
56890
|
let _t;
|
|
56876
56891
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.absoluteInputRef = _t.first);
|
|
56877
56892
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.percentageInputRef = _t.first);
|
|
56878
|
-
} }, 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"] }, outputs: { targetsCreated: "targetsCreated", calculateRevenueRequest: "calculateRevenueRequest" }, decls:
|
|
56893
|
+
} }, 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"] }, outputs: { targetsCreated: "targetsCreated", calculateRevenueRequest: "calculateRevenueRequest" }, decls: 45, vars: 37, consts: [["absoluteInputRef", ""], ["percentageInputRef", ""], [1, "space-y-8", "pb-32"], [1, "rounded-2xl", "border", "shadow-lg", "p-8", 3, "ngClass"], [1, "text-2xl", "font-bold", "mb-6", 3, "ngClass"], [1, "flex", "flex-col", "gap-8"], [1, "grid", "lg:grid-cols-2", "gap-8"], [1, "flex", "flex-col", "gap-4"], [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, "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", "h-full", 3, "ngClass"], [1, "chart-section-collapse"], [1, "chart-section-content"], [1, "w-full"], [1, "metrics-section-enter"], [1, "metrics-section-content"], [3, "submitClick", "cancelClick", "viewMode", "isValid", "isSubmitting", "validationMessage", "buttonText", "showCancelButton"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M13 7h8m0 0v8m0-8l-8 8-4-4-6 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, "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, "text-sm", 3, "ngClass"], [1, "flex", "items-center", "justify-between"], [1, "text-xs", "font-medium", "uppercase", "tracking-wider", "mb-1", 3, "ngClass"], [1, "text-3xl", "font-bold", 3, "ngClass"], [1, "px-4", "py-2", "rounded-lg", "text-sm", "font-semibold", "transition-all", "whitespace-nowrap", 3, "ngClass"], [1, "relative", "pt-6", "mt-6", 3, "ngClass"], [1, "absolute", "top-0", "left-1/2", "-translate-x-1/2", "-translate-y-1/2"], [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-xl", "font-bold", 3, "ngClass"], [1, "px-4", "py-2", "rounded-lg", "text-sm", "font-semibold", "transition-all", "whitespace-nowrap", 3, "click", "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) {
|
|
56879
56894
|
i0.ɵɵelementStart(0, "div", 2)(1, "div", 3)(2, "h2", 4);
|
|
56880
56895
|
i0.ɵɵtext(3);
|
|
56881
56896
|
i0.ɵɵelementEnd();
|
|
56882
|
-
i0.ɵɵelementStart(4, "div", 5)(5, "div", 6)(6, "div", 7)(7, "div", 8)(8, "div", 9)(9, "div", 10)
|
|
56897
|
+
i0.ɵɵelementStart(4, "div", 5)(5, "div", 6)(6, "div", 7)(7, "div", 8)(8, "div", 9)(9, "div", 10);
|
|
56883
56898
|
i0.ɵɵnamespaceSVG();
|
|
56884
|
-
i0.ɵɵelementStart(
|
|
56885
|
-
i0.ɵɵelement(
|
|
56899
|
+
i0.ɵɵelementStart(10, "svg", 11);
|
|
56900
|
+
i0.ɵɵelement(11, "path", 12);
|
|
56886
56901
|
i0.ɵɵelementEnd();
|
|
56887
56902
|
i0.ɵɵnamespaceHTML();
|
|
56888
|
-
i0.ɵɵelementStart(
|
|
56889
|
-
i0.ɵɵtext(
|
|
56903
|
+
i0.ɵɵelementStart(12, "div")(13, "p", 13);
|
|
56904
|
+
i0.ɵɵtext(14);
|
|
56890
56905
|
i0.ɵɵelementEnd();
|
|
56891
|
-
i0.ɵɵelementStart(
|
|
56892
|
-
i0.ɵɵtext(
|
|
56906
|
+
i0.ɵɵelementStart(15, "p", 14);
|
|
56907
|
+
i0.ɵɵtext(16);
|
|
56893
56908
|
i0.ɵɵelementEnd()()();
|
|
56894
|
-
i0.ɵɵconditionalCreate(
|
|
56909
|
+
i0.ɵɵconditionalCreate(17, InitialTargetSettingComponent_Conditional_17_Template, 8, 4, "div", 10);
|
|
56895
56910
|
i0.ɵɵelementEnd();
|
|
56896
|
-
i0.ɵɵ
|
|
56897
|
-
i0.ɵɵ
|
|
56898
|
-
i0.ɵɵ
|
|
56899
|
-
i0.ɵɵ
|
|
56911
|
+
i0.ɵɵelementStart(18, "div", 15)(19, "div", 16)(20, "div", 17);
|
|
56912
|
+
i0.ɵɵconditionalCreate(21, InitialTargetSettingComponent_Conditional_21_Template, 7, 3);
|
|
56913
|
+
i0.ɵɵelementEnd()()()();
|
|
56914
|
+
i0.ɵɵelementStart(22, "div", 18)(23, "div", 19)(24, "div")(25, "p", 20);
|
|
56915
|
+
i0.ɵɵtext(26, " Year-over-Year Revenue Trend ");
|
|
56916
|
+
i0.ɵɵelementEnd();
|
|
56917
|
+
i0.ɵɵelementStart(27, "div", 21);
|
|
56918
|
+
i0.ɵɵconditionalCreate(28, InitialTargetSettingComponent_Conditional_28_Template, 1, 5, "symphiq-area-chart", 22)(29, InitialTargetSettingComponent_Conditional_29_Template, 3, 1, "div", 23);
|
|
56919
|
+
i0.ɵɵelementEnd()()()()();
|
|
56920
|
+
i0.ɵɵelementStart(30, "div", 24)(31, "div", 25);
|
|
56921
|
+
i0.ɵɵconditionalCreate(32, InitialTargetSettingComponent_Conditional_32_Template, 25, 16, "div", 26);
|
|
56900
56922
|
i0.ɵɵelementEnd()()();
|
|
56901
|
-
i0.ɵɵelementStart(
|
|
56902
|
-
i0.ɵɵtext(
|
|
56923
|
+
i0.ɵɵelementStart(33, "div", 27)(34, "div", 28)(35, "div", 29)(36, "p", 20);
|
|
56924
|
+
i0.ɵɵtext(37, " Year-over-Year Revenue Trend ");
|
|
56903
56925
|
i0.ɵɵelementEnd();
|
|
56904
|
-
i0.ɵɵelementStart(
|
|
56905
|
-
i0.ɵɵconditionalCreate(
|
|
56906
|
-
i0.ɵɵelementEnd()()()();
|
|
56907
|
-
i0.ɵɵelementStart(
|
|
56908
|
-
i0.ɵɵconditionalCreate(
|
|
56926
|
+
i0.ɵɵelementStart(38, "div", 21);
|
|
56927
|
+
i0.ɵɵconditionalCreate(39, InitialTargetSettingComponent_Conditional_39_Template, 1, 5, "symphiq-area-chart", 22)(40, InitialTargetSettingComponent_Conditional_40_Template, 3, 1, "div", 23);
|
|
56928
|
+
i0.ɵɵelementEnd()()()()()();
|
|
56929
|
+
i0.ɵɵelementStart(41, "div", 30)(42, "div", 31);
|
|
56930
|
+
i0.ɵɵconditionalCreate(43, InitialTargetSettingComponent_Conditional_43_Template, 7, 7, "div", 3);
|
|
56909
56931
|
i0.ɵɵelementEnd()();
|
|
56910
|
-
i0.ɵɵelementStart(
|
|
56911
|
-
i0.ɵɵlistener("submitClick", function
|
|
56932
|
+
i0.ɵɵelementStart(44, "symphiq-sticky-submit-bar", 32);
|
|
56933
|
+
i0.ɵɵlistener("submitClick", function InitialTargetSettingComponent_Template_symphiq_sticky_submit_bar_submitClick_44_listener() { return ctx.handleSubmitClick(); })("cancelClick", function InitialTargetSettingComponent_Template_symphiq_sticky_submit_bar_cancelClick_44_listener() { return ctx.handleCancel(); });
|
|
56912
56934
|
i0.ɵɵelementEnd()();
|
|
56913
56935
|
} if (rf & 2) {
|
|
56914
56936
|
i0.ɵɵadvance();
|
|
@@ -56917,11 +56939,11 @@ class InitialTargetSettingComponent {
|
|
|
56917
56939
|
i0.ɵɵproperty("ngClass", ctx.sectionTitleClasses());
|
|
56918
56940
|
i0.ɵɵadvance();
|
|
56919
56941
|
i0.ɵɵtextInterpolate1(" Calculate Your ", ctx.currentYear(), " Revenue Target ");
|
|
56920
|
-
i0.ɵɵadvance(
|
|
56921
|
-
i0.ɵɵclassProp("form-area-collapse-hidden", ctx.calculationState() === "results");
|
|
56922
|
-
i0.ɵɵadvance(2);
|
|
56942
|
+
i0.ɵɵadvance(4);
|
|
56923
56943
|
i0.ɵɵproperty("ngClass", ctx.formAreaClasses());
|
|
56924
|
-
i0.ɵɵadvance(
|
|
56944
|
+
i0.ɵɵadvance();
|
|
56945
|
+
i0.ɵɵclassProp("mb-0", ctx.calculationState() === "results");
|
|
56946
|
+
i0.ɵɵadvance(2);
|
|
56925
56947
|
i0.ɵɵproperty("ngClass", ctx.baselineIconClasses());
|
|
56926
56948
|
i0.ɵɵadvance(3);
|
|
56927
56949
|
i0.ɵɵproperty("ngClass", ctx.baselineLabelClasses());
|
|
@@ -56932,30 +56954,40 @@ class InitialTargetSettingComponent {
|
|
|
56932
56954
|
i0.ɵɵadvance();
|
|
56933
56955
|
i0.ɵɵtextInterpolate1(" ", ctx.formatCurrency(ctx.priorYearRevenue()), " ");
|
|
56934
56956
|
i0.ɵɵadvance();
|
|
56935
|
-
i0.ɵɵconditional(ctx.currentPaceProjection() > 0 ?
|
|
56957
|
+
i0.ɵɵconditional(ctx.currentPaceProjection() > 0 ? 17 : -1);
|
|
56936
56958
|
i0.ɵɵadvance();
|
|
56937
|
-
i0.ɵɵ
|
|
56959
|
+
i0.ɵɵclassProp("form-area-collapse-hidden", ctx.calculationState() === "results");
|
|
56960
|
+
i0.ɵɵadvance(3);
|
|
56961
|
+
i0.ɵɵconditional(ctx.calculationState() !== "results" ? 21 : -1);
|
|
56938
56962
|
i0.ɵɵadvance();
|
|
56939
|
-
i0.ɵɵclassProp("
|
|
56963
|
+
i0.ɵɵclassProp("chart-in-column-active", ctx.calculationState() === "results");
|
|
56964
|
+
i0.ɵɵadvance(3);
|
|
56965
|
+
i0.ɵɵproperty("ngClass", ctx.chartTitleClasses());
|
|
56940
56966
|
i0.ɵɵadvance(2);
|
|
56941
|
-
i0.ɵɵ
|
|
56967
|
+
i0.ɵɵproperty("ngClass", ctx.chartContainerClasses());
|
|
56942
56968
|
i0.ɵɵadvance();
|
|
56943
|
-
i0.ɵɵ
|
|
56969
|
+
i0.ɵɵconditional(ctx.revenueChartData() ? 28 : 29);
|
|
56970
|
+
i0.ɵɵadvance(2);
|
|
56971
|
+
i0.ɵɵclassProp("calculated-card-enter-active", ctx.calculatedRevenue() > 0);
|
|
56972
|
+
i0.ɵɵadvance(2);
|
|
56973
|
+
i0.ɵɵconditional(ctx.calculatedRevenue() > 0 ? 32 : -1);
|
|
56944
56974
|
i0.ɵɵadvance();
|
|
56975
|
+
i0.ɵɵclassProp("chart-section-collapse-hidden", ctx.calculationState() === "results");
|
|
56976
|
+
i0.ɵɵadvance(3);
|
|
56945
56977
|
i0.ɵɵproperty("ngClass", ctx.chartTitleClasses());
|
|
56946
56978
|
i0.ɵɵadvance(2);
|
|
56947
56979
|
i0.ɵɵproperty("ngClass", ctx.chartContainerClasses());
|
|
56948
56980
|
i0.ɵɵadvance();
|
|
56949
|
-
i0.ɵɵconditional(ctx.revenueChartData() ?
|
|
56981
|
+
i0.ɵɵconditional(ctx.revenueChartData() ? 39 : 40);
|
|
56950
56982
|
i0.ɵɵadvance(2);
|
|
56951
56983
|
i0.ɵɵclassProp("metrics-section-enter-active", ctx.showMetricsVisualization());
|
|
56952
56984
|
i0.ɵɵadvance(2);
|
|
56953
|
-
i0.ɵɵconditional(ctx.showMetricsVisualization() ?
|
|
56985
|
+
i0.ɵɵconditional(ctx.showMetricsVisualization() ? 43 : -1);
|
|
56954
56986
|
i0.ɵɵadvance();
|
|
56955
56987
|
i0.ɵɵproperty("viewMode", ctx.viewMode())("isValid", ctx.isValid())("isSubmitting", ctx.isCalculating())("validationMessage", ctx.validationMessage())("buttonText", ctx.submitButtonText())("showCancelButton", ctx.calculationState() === "input" && ctx.hasStoredResponse());
|
|
56956
56988
|
} }, 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,
|
|
56957
56989
|
StickySubmitBarComponent,
|
|
56958
|
-
AreaChartComponent], 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[_ngcontent-%COMP%]{transition:
|
|
56990
|
+
AreaChartComponent], 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}"], changeDetection: 0 }); }
|
|
56959
56991
|
}
|
|
56960
56992
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InitialTargetSettingComponent, [{
|
|
56961
56993
|
type: Component,
|
|
@@ -56965,248 +56997,283 @@ class InitialTargetSettingComponent {
|
|
|
56965
56997
|
FunnelMetricsVisualizationComponent,
|
|
56966
56998
|
StickySubmitBarComponent,
|
|
56967
56999
|
AreaChartComponent
|
|
56968
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
56969
|
-
<div class="space-y-8 pb-32">
|
|
56970
|
-
<div [ngClass]="sectionCardClasses()" class="rounded-2xl border shadow-lg p-8">
|
|
56971
|
-
<h2 [ngClass]="sectionTitleClasses()" class="text-2xl font-bold mb-6">
|
|
56972
|
-
Calculate Your {{ currentYear() }} Revenue Target
|
|
56973
|
-
</h2>
|
|
56974
|
-
|
|
56975
|
-
<div class="flex flex-col gap-8">
|
|
56976
|
-
<div class="grid lg:grid-cols-2 gap-8">
|
|
56977
|
-
<div class="
|
|
56978
|
-
<div class="
|
|
56979
|
-
<div
|
|
56980
|
-
<div class="flex
|
|
56981
|
-
<
|
|
56982
|
-
<
|
|
56983
|
-
|
|
56984
|
-
|
|
56985
|
-
<
|
|
56986
|
-
|
|
56987
|
-
|
|
56988
|
-
|
|
56989
|
-
|
|
56990
|
-
|
|
56991
|
-
|
|
56992
|
-
|
|
56993
|
-
|
|
56994
|
-
|
|
56995
|
-
<
|
|
56996
|
-
<
|
|
56997
|
-
|
|
56998
|
-
|
|
56999
|
-
<
|
|
57000
|
-
|
|
57001
|
-
|
|
57002
|
-
|
|
57003
|
-
|
|
57004
|
-
|
|
57005
|
-
|
|
57006
|
-
|
|
57007
|
-
|
|
57008
|
-
|
|
57009
|
-
|
|
57010
|
-
|
|
57011
|
-
|
|
57012
|
-
<div class="
|
|
57013
|
-
|
|
57014
|
-
|
|
57015
|
-
|
|
57016
|
-
|
|
57017
|
-
|
|
57018
|
-
|
|
57019
|
-
|
|
57020
|
-
|
|
57021
|
-
|
|
57022
|
-
|
|
57023
|
-
|
|
57024
|
-
|
|
57025
|
-
|
|
57026
|
-
|
|
57027
|
-
|
|
57028
|
-
|
|
57029
|
-
|
|
57030
|
-
|
|
57031
|
-
|
|
57032
|
-
|
|
57033
|
-
|
|
57034
|
-
|
|
57035
|
-
|
|
57036
|
-
|
|
57037
|
-
|
|
57038
|
-
|
|
57039
|
-
|
|
57040
|
-
|
|
57041
|
-
|
|
57042
|
-
|
|
57043
|
-
|
|
57044
|
-
|
|
57045
|
-
|
|
57046
|
-
|
|
57047
|
-
|
|
57048
|
-
|
|
57049
|
-
|
|
57050
|
-
|
|
57051
|
-
|
|
57052
|
-
|
|
57053
|
-
|
|
57054
|
-
|
|
57055
|
-
|
|
57056
|
-
|
|
57057
|
-
|
|
57058
|
-
|
|
57059
|
-
|
|
57060
|
-
|
|
57061
|
-
|
|
57062
|
-
|
|
57063
|
-
|
|
57064
|
-
|
|
57065
|
-
|
|
57066
|
-
|
|
57067
|
-
|
|
57068
|
-
|
|
57069
|
-
|
|
57070
|
-
|
|
57071
|
-
|
|
57072
|
-
|
|
57073
|
-
|
|
57074
|
-
|
|
57075
|
-
|
|
57076
|
-
|
|
57077
|
-
|
|
57078
|
-
|
|
57079
|
-
|
|
57080
|
-
|
|
57081
|
-
|
|
57082
|
-
|
|
57083
|
-
|
|
57084
|
-
|
|
57085
|
-
|
|
57086
|
-
|
|
57087
|
-
|
|
57088
|
-
|
|
57089
|
-
|
|
57090
|
-
|
|
57091
|
-
|
|
57092
|
-
|
|
57093
|
-
|
|
57094
|
-
|
|
57095
|
-
|
|
57096
|
-
|
|
57097
|
-
|
|
57098
|
-
|
|
57099
|
-
|
|
57100
|
-
|
|
57101
|
-
|
|
57102
|
-
|
|
57103
|
-
|
|
57104
|
-
|
|
57105
|
-
|
|
57106
|
-
|
|
57107
|
-
|
|
57108
|
-
|
|
57109
|
-
|
|
57110
|
-
|
|
57111
|
-
|
|
57112
|
-
|
|
57113
|
-
|
|
57114
|
-
|
|
57115
|
-
|
|
57116
|
-
|
|
57117
|
-
|
|
57118
|
-
|
|
57119
|
-
|
|
57120
|
-
|
|
57121
|
-
|
|
57122
|
-
|
|
57123
|
-
<
|
|
57124
|
-
|
|
57125
|
-
|
|
57126
|
-
|
|
57127
|
-
|
|
57128
|
-
|
|
57129
|
-
|
|
57130
|
-
|
|
57131
|
-
</
|
|
57132
|
-
<
|
|
57133
|
-
|
|
57134
|
-
|
|
57135
|
-
|
|
57136
|
-
|
|
57137
|
-
|
|
57138
|
-
|
|
57139
|
-
</
|
|
57140
|
-
|
|
57141
|
-
|
|
57142
|
-
|
|
57143
|
-
|
|
57144
|
-
|
|
57145
|
-
|
|
57146
|
-
|
|
57147
|
-
|
|
57148
|
-
|
|
57149
|
-
|
|
57150
|
-
|
|
57151
|
-
|
|
57152
|
-
|
|
57153
|
-
|
|
57154
|
-
|
|
57155
|
-
|
|
57156
|
-
|
|
57157
|
-
|
|
57158
|
-
|
|
57159
|
-
|
|
57160
|
-
|
|
57161
|
-
|
|
57162
|
-
|
|
57163
|
-
|
|
57164
|
-
|
|
57165
|
-
|
|
57166
|
-
|
|
57167
|
-
|
|
57168
|
-
|
|
57169
|
-
|
|
57170
|
-
|
|
57171
|
-
|
|
57172
|
-
|
|
57173
|
-
|
|
57174
|
-
|
|
57175
|
-
|
|
57176
|
-
|
|
57177
|
-
|
|
57178
|
-
|
|
57179
|
-
|
|
57180
|
-
|
|
57181
|
-
|
|
57182
|
-
|
|
57183
|
-
|
|
57184
|
-
|
|
57185
|
-
|
|
57186
|
-
|
|
57187
|
-
|
|
57188
|
-
|
|
57189
|
-
|
|
57190
|
-
|
|
57191
|
-
|
|
57192
|
-
|
|
57193
|
-
|
|
57194
|
-
|
|
57195
|
-
|
|
57196
|
-
|
|
57197
|
-
|
|
57198
|
-
|
|
57199
|
-
|
|
57200
|
-
|
|
57201
|
-
|
|
57202
|
-
|
|
57203
|
-
|
|
57204
|
-
|
|
57205
|
-
|
|
57206
|
-
|
|
57207
|
-
|
|
57208
|
-
|
|
57209
|
-
|
|
57000
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
57001
|
+
<div class="space-y-8 pb-32">
|
|
57002
|
+
<div [ngClass]="sectionCardClasses()" class="rounded-2xl border shadow-lg p-8">
|
|
57003
|
+
<h2 [ngClass]="sectionTitleClasses()" class="text-2xl font-bold mb-6">
|
|
57004
|
+
Calculate Your {{ currentYear() }} Revenue Target
|
|
57005
|
+
</h2>
|
|
57006
|
+
|
|
57007
|
+
<div class="flex flex-col gap-8">
|
|
57008
|
+
<div class="grid lg:grid-cols-2 gap-8">
|
|
57009
|
+
<div class="flex flex-col gap-4">
|
|
57010
|
+
<div [ngClass]="formAreaClasses()" class="p-6 rounded-xl border-2">
|
|
57011
|
+
<div class="flex flex-wrap gap-4 place-content-between mb-6" [class.mb-0]="calculationState() === 'results'">
|
|
57012
|
+
<div class="flex items-center gap-2">
|
|
57013
|
+
<svg class="w-4 h-4" [ngClass]="baselineIconClasses()" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
57014
|
+
<path 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"></path>
|
|
57015
|
+
</svg>
|
|
57016
|
+
<div>
|
|
57017
|
+
<p [ngClass]="baselineLabelClasses()" class="text-xs font-medium uppercase tracking-wider">
|
|
57018
|
+
{{ priorYear() }} Revenue
|
|
57019
|
+
</p>
|
|
57020
|
+
<p [ngClass]="baselineValueClasses()" class="text-lg font-bold">
|
|
57021
|
+
{{ formatCurrency(priorYearRevenue()) }}
|
|
57022
|
+
</p>
|
|
57023
|
+
</div>
|
|
57024
|
+
</div>
|
|
57025
|
+
@if (currentPaceProjection() > 0) {
|
|
57026
|
+
<div class="flex items-center gap-2">
|
|
57027
|
+
<svg class="w-4 h-4" [ngClass]="projectionIconClasses()" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
57028
|
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 7h8m0 0v8m0-8l-8 8-4-4-6 6"></path>
|
|
57029
|
+
</svg>
|
|
57030
|
+
<div>
|
|
57031
|
+
<p [ngClass]="projectionLabelClasses()" class="text-xs font-medium uppercase tracking-wider">
|
|
57032
|
+
Current Pace Projection
|
|
57033
|
+
</p>
|
|
57034
|
+
<p [ngClass]="projectionValueClasses()" class="text-lg font-bold">
|
|
57035
|
+
{{ formatCurrency(currentPaceProjection()) }}
|
|
57036
|
+
</p>
|
|
57037
|
+
</div>
|
|
57038
|
+
</div>
|
|
57039
|
+
}
|
|
57040
|
+
</div>
|
|
57041
|
+
|
|
57042
|
+
<div class="form-area-collapse" [class.form-area-collapse-hidden]="calculationState() === 'results'">
|
|
57043
|
+
<div class="form-area-content">
|
|
57044
|
+
<div class="space-y-6">
|
|
57045
|
+
@if (calculationState() !== 'results') {
|
|
57046
|
+
<div class="flex gap-2">
|
|
57047
|
+
<button
|
|
57048
|
+
(click)="setInputMode('absolute')"
|
|
57049
|
+
[ngClass]="inputModeButtonClasses('absolute')"
|
|
57050
|
+
class="flex-1 py-2 px-4 rounded-lg text-sm font-semibold transition-all">
|
|
57051
|
+
Absolute Amount
|
|
57052
|
+
</button>
|
|
57053
|
+
<button
|
|
57054
|
+
(click)="setInputMode('percentage')"
|
|
57055
|
+
[ngClass]="inputModeButtonClasses('percentage')"
|
|
57056
|
+
class="flex-1 py-2 px-4 rounded-lg text-sm font-semibold transition-all">
|
|
57057
|
+
% Increase
|
|
57058
|
+
</button>
|
|
57059
|
+
</div>
|
|
57060
|
+
|
|
57061
|
+
@if (inputMode() === 'absolute') {
|
|
57062
|
+
<div class="relative">
|
|
57063
|
+
<span [ngClass]="inputPrefixClasses()" class="absolute left-4 top-1/2 -translate-y-1/2 text-xl font-bold">
|
|
57064
|
+
$
|
|
57065
|
+
</span>
|
|
57066
|
+
<input
|
|
57067
|
+
#absoluteInputRef
|
|
57068
|
+
type="number"
|
|
57069
|
+
[(ngModel)]="absoluteInput"
|
|
57070
|
+
(ngModelChange)="onAbsoluteInputChange()"
|
|
57071
|
+
[ngClass]="inputClasses()"
|
|
57072
|
+
class="w-full pl-10 pr-4 py-4 rounded-xl text-2xl font-bold border-2 transition-all"
|
|
57073
|
+
placeholder="0"
|
|
57074
|
+
min="0"
|
|
57075
|
+
step="1000">
|
|
57076
|
+
</div>
|
|
57077
|
+
} @else {
|
|
57078
|
+
<div class="relative">
|
|
57079
|
+
<input
|
|
57080
|
+
#percentageInputRef
|
|
57081
|
+
type="number"
|
|
57082
|
+
[(ngModel)]="percentageInput"
|
|
57083
|
+
(ngModelChange)="onPercentageInputChange()"
|
|
57084
|
+
[ngClass]="inputClasses()"
|
|
57085
|
+
class="w-full pr-10 pl-4 py-4 rounded-xl text-2xl font-bold border-2 transition-all"
|
|
57086
|
+
placeholder="0"
|
|
57087
|
+
min="0"
|
|
57088
|
+
max="1000"
|
|
57089
|
+
step="0.1">
|
|
57090
|
+
<span [ngClass]="inputSuffixClasses()" class="absolute right-4 top-1/2 -translate-y-1/2 text-xl font-bold">
|
|
57091
|
+
%
|
|
57092
|
+
</span>
|
|
57093
|
+
</div>
|
|
57094
|
+
}
|
|
57095
|
+
}
|
|
57096
|
+
</div>
|
|
57097
|
+
</div>
|
|
57098
|
+
</div>
|
|
57099
|
+
</div>
|
|
57100
|
+
|
|
57101
|
+
<div class="chart-in-column" [class.chart-in-column-active]="calculationState() === 'results'">
|
|
57102
|
+
<div class="chart-in-column-content">
|
|
57103
|
+
<div>
|
|
57104
|
+
<p [ngClass]="chartTitleClasses()" class="text-sm font-semibold mb-3">
|
|
57105
|
+
Year-over-Year Revenue Trend
|
|
57106
|
+
</p>
|
|
57107
|
+
<div [ngClass]="chartContainerClasses()" class="rounded-xl border p-4">
|
|
57108
|
+
@if (revenueChartData()) {
|
|
57109
|
+
<symphiq-area-chart
|
|
57110
|
+
[chart]="revenueChartData()!"
|
|
57111
|
+
[showAxisLabels]="true"
|
|
57112
|
+
[viewMode]="viewMode()"
|
|
57113
|
+
[currencySymbol]="'$'"
|
|
57114
|
+
[height]="'320px'"
|
|
57115
|
+
/>
|
|
57116
|
+
} @else {
|
|
57117
|
+
<div class="h-64 flex items-center justify-center">
|
|
57118
|
+
<p [ngClass]="noDataClasses()" class="text-sm">
|
|
57119
|
+
No revenue data available
|
|
57120
|
+
</p>
|
|
57121
|
+
</div>
|
|
57122
|
+
}
|
|
57123
|
+
</div>
|
|
57124
|
+
</div>
|
|
57125
|
+
</div>
|
|
57126
|
+
</div>
|
|
57127
|
+
</div>
|
|
57128
|
+
|
|
57129
|
+
<div class="calculated-card-enter order-first lg:order-last" [class.calculated-card-enter-active]="calculatedRevenue() > 0">
|
|
57130
|
+
<div class="calculated-card-content">
|
|
57131
|
+
@if (calculatedRevenue() > 0) {
|
|
57132
|
+
<div [ngClass]="calculatedValuesCardClasses()" class="p-6 rounded-xl border-2 h-full">
|
|
57133
|
+
<div class="space-y-6">
|
|
57134
|
+
<div class="flex items-center justify-between">
|
|
57135
|
+
<div>
|
|
57136
|
+
<p [ngClass]="calculatedLabelClasses()" class="text-xs font-medium uppercase tracking-wider mb-1">
|
|
57137
|
+
{{ currentYear() }} Revenue Target
|
|
57138
|
+
</p>
|
|
57139
|
+
<p [ngClass]="calculatedValueClasses()" class="text-3xl font-bold">
|
|
57140
|
+
{{ formatCurrency(displayedTargetRevenue()) }}
|
|
57141
|
+
</p>
|
|
57142
|
+
</div>
|
|
57143
|
+
@if (calculationState() === 'results') {
|
|
57144
|
+
<button
|
|
57145
|
+
(click)="handleAdjustTarget()"
|
|
57146
|
+
[ngClass]="secondaryButtonClasses()"
|
|
57147
|
+
class="px-4 py-2 rounded-lg text-sm font-semibold transition-all whitespace-nowrap">
|
|
57148
|
+
Adjust Revenue Target
|
|
57149
|
+
</button>
|
|
57150
|
+
}
|
|
57151
|
+
</div>
|
|
57152
|
+
|
|
57153
|
+
<div class="relative pt-6 mt-6" [ngClass]="calculatedDividerClasses()">
|
|
57154
|
+
<div class="absolute top-0 left-1/2 -translate-x-1/2 -translate-y-1/2">
|
|
57155
|
+
<span [ngClass]="dividerLabelClasses()" class="px-3 py-1 rounded-full text-xs font-semibold whitespace-nowrap">
|
|
57156
|
+
vs. {{ priorYear() }}
|
|
57157
|
+
</span>
|
|
57158
|
+
</div>
|
|
57159
|
+
<div class="grid grid-cols-2 gap-4 pt-2">
|
|
57160
|
+
<div>
|
|
57161
|
+
<p [ngClass]="calculatedLabelClasses()" class="text-xs font-medium uppercase tracking-wider mb-1">
|
|
57162
|
+
Increase Amount
|
|
57163
|
+
</p>
|
|
57164
|
+
<p [ngClass]="calculatedSecondaryClasses()" class="text-xl font-bold">
|
|
57165
|
+
{{ formatCurrency(calculatedRevenue() - priorYearRevenue()) }}
|
|
57166
|
+
</p>
|
|
57167
|
+
</div>
|
|
57168
|
+
<div>
|
|
57169
|
+
<p [ngClass]="calculatedLabelClasses()" class="text-xs font-medium uppercase tracking-wider mb-1">
|
|
57170
|
+
% Growth
|
|
57171
|
+
</p>
|
|
57172
|
+
<p [ngClass]="calculatedSecondaryClasses()" class="text-xl font-bold">
|
|
57173
|
+
+{{ formatPercentage(percentageIncrease(), 1) }}
|
|
57174
|
+
</p>
|
|
57175
|
+
</div>
|
|
57176
|
+
</div>
|
|
57177
|
+
</div>
|
|
57178
|
+
|
|
57179
|
+
@if (currentPaceProjection() > 0 && gapToClose().amount !== 0) {
|
|
57180
|
+
<div class="relative pt-6 mt-6" [ngClass]="calculatedDividerClasses()">
|
|
57181
|
+
<div class="absolute top-0 left-1/2 -translate-x-1/2 -translate-y-1/2">
|
|
57182
|
+
<span [ngClass]="dividerLabelClasses()" class="px-3 py-1 rounded-full text-xs font-semibold whitespace-nowrap">
|
|
57183
|
+
{{ currentYear() }} YTD Gap
|
|
57184
|
+
</span>
|
|
57185
|
+
</div>
|
|
57186
|
+
<div class="grid grid-cols-2 gap-4 pt-2">
|
|
57187
|
+
<div>
|
|
57188
|
+
<p [ngClass]="calculatedLabelClasses()" class="text-xs font-medium uppercase tracking-wider mb-1">
|
|
57189
|
+
Gap to Close
|
|
57190
|
+
</p>
|
|
57191
|
+
<p [ngClass]="calculatedSecondaryClasses()" class="text-xl font-bold">
|
|
57192
|
+
{{ formatCurrency(absValue(gapToClose().amount)) }}
|
|
57193
|
+
</p>
|
|
57194
|
+
</div>
|
|
57195
|
+
<div>
|
|
57196
|
+
<p [ngClass]="calculatedLabelClasses()" class="text-xs font-medium uppercase tracking-wider mb-1">
|
|
57197
|
+
Additional Growth Needed
|
|
57198
|
+
</p>
|
|
57199
|
+
<p [ngClass]="calculatedSecondaryClasses()" class="text-xl font-bold">
|
|
57200
|
+
{{ gapToClose().amount > 0 ? '+' : '' }}{{ formatPercentage(gapToClose().percentage, 1) }}
|
|
57201
|
+
</p>
|
|
57202
|
+
</div>
|
|
57203
|
+
</div>
|
|
57204
|
+
</div>
|
|
57205
|
+
}
|
|
57206
|
+
</div>
|
|
57207
|
+
</div>
|
|
57208
|
+
}
|
|
57209
|
+
</div>
|
|
57210
|
+
</div>
|
|
57211
|
+
</div>
|
|
57212
|
+
|
|
57213
|
+
<div class="chart-section-collapse" [class.chart-section-collapse-hidden]="calculationState() === 'results'">
|
|
57214
|
+
<div class="chart-section-content">
|
|
57215
|
+
<div class="w-full">
|
|
57216
|
+
<p [ngClass]="chartTitleClasses()" class="text-sm font-semibold mb-3">
|
|
57217
|
+
Year-over-Year Revenue Trend
|
|
57218
|
+
</p>
|
|
57219
|
+
<div [ngClass]="chartContainerClasses()" class="rounded-xl border p-4">
|
|
57220
|
+
@if (revenueChartData()) {
|
|
57221
|
+
<symphiq-area-chart
|
|
57222
|
+
[chart]="revenueChartData()!"
|
|
57223
|
+
[showAxisLabels]="true"
|
|
57224
|
+
[viewMode]="viewMode()"
|
|
57225
|
+
[currencySymbol]="'$'"
|
|
57226
|
+
[height]="'320px'"
|
|
57227
|
+
/>
|
|
57228
|
+
} @else {
|
|
57229
|
+
<div class="h-64 flex items-center justify-center">
|
|
57230
|
+
<p [ngClass]="noDataClasses()" class="text-sm">
|
|
57231
|
+
No revenue data available
|
|
57232
|
+
</p>
|
|
57233
|
+
</div>
|
|
57234
|
+
}
|
|
57235
|
+
</div>
|
|
57236
|
+
</div>
|
|
57237
|
+
</div>
|
|
57238
|
+
</div>
|
|
57239
|
+
</div>
|
|
57240
|
+
</div>
|
|
57241
|
+
|
|
57242
|
+
<div class="metrics-section-enter" [class.metrics-section-enter-active]="showMetricsVisualization()">
|
|
57243
|
+
<div class="metrics-section-content">
|
|
57244
|
+
@if (showMetricsVisualization()) {
|
|
57245
|
+
<div [ngClass]="sectionCardClasses()" class="rounded-2xl border shadow-lg p-8">
|
|
57246
|
+
<div class="mb-6">
|
|
57247
|
+
<h2 [ngClass]="sectionTitleClasses()" class="text-2xl font-bold mb-2">
|
|
57248
|
+
Contributing Metrics
|
|
57249
|
+
</h2>
|
|
57250
|
+
<p [ngClass]="sectionDescriptionClasses()" class="text-sm">
|
|
57251
|
+
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.
|
|
57252
|
+
</p>
|
|
57253
|
+
</div>
|
|
57254
|
+
|
|
57255
|
+
<symphiq-funnel-metrics-visualization
|
|
57256
|
+
[viewMode]="viewMode()"
|
|
57257
|
+
[calculations]="displayedMetricCalculations()"
|
|
57258
|
+
[pacingMetrics]="pacingMetrics()"
|
|
57259
|
+
/>
|
|
57260
|
+
</div>
|
|
57261
|
+
}
|
|
57262
|
+
</div>
|
|
57263
|
+
</div>
|
|
57264
|
+
|
|
57265
|
+
<symphiq-sticky-submit-bar
|
|
57266
|
+
[viewMode]="viewMode()"
|
|
57267
|
+
[isValid]="isValid()"
|
|
57268
|
+
[isSubmitting]="isCalculating()"
|
|
57269
|
+
[validationMessage]="validationMessage()"
|
|
57270
|
+
[buttonText]="submitButtonText()"
|
|
57271
|
+
[showCancelButton]="calculationState() === 'input' && hasStoredResponse()"
|
|
57272
|
+
(submitClick)="handleSubmitClick()"
|
|
57273
|
+
(cancelClick)="handleCancel()"
|
|
57274
|
+
/>
|
|
57275
|
+
</div>
|
|
57276
|
+
`, 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}\n"] }]
|
|
57210
57277
|
}], () => [], { absoluteInputRef: [{
|
|
57211
57278
|
type: ViewChild,
|
|
57212
57279
|
args: ['absoluteInputRef']
|
|
@@ -57214,7 +57281,7 @@ class InitialTargetSettingComponent {
|
|
|
57214
57281
|
type: ViewChild,
|
|
57215
57282
|
args: ['percentageInputRef']
|
|
57216
57283
|
}], 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 }] }], targetsCreated: [{ type: i0.Output, args: ["targetsCreated"] }], calculateRevenueRequest: [{ type: i0.Output, args: ["calculateRevenueRequest"] }] }); })();
|
|
57217
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(InitialTargetSettingComponent, { className: "InitialTargetSettingComponent", filePath: "lib/components/revenue-calculator-dashboard/initial-target-setting.component.ts", lineNumber:
|
|
57284
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(InitialTargetSettingComponent, { className: "InitialTargetSettingComponent", filePath: "lib/components/revenue-calculator-dashboard/initial-target-setting.component.ts", lineNumber: 398 }); })();
|
|
57218
57285
|
|
|
57219
57286
|
function IndeterminateSpinnerComponent_For_5_Template(rf, ctx) { if (rf & 1) {
|
|
57220
57287
|
i0.ɵɵelement(0, "div", 5);
|