@eric-emg/symphiq-components 1.2.433 → 1.2.434

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.
@@ -94489,41 +94489,62 @@ function SymphiqProfileFocusAreasAnalysesDashboardComponent_For_54_Conditional_1
94489
94489
  i0.ɵɵrepeater(focusArea_r4.tools);
94490
94490
  } }
94491
94491
  function SymphiqProfileFocusAreasAnalysesDashboardComponent_For_54_Conditional_13_Template(rf, ctx) { if (rf & 1) {
94492
- i0.ɵɵelementStart(0, "div", 39);
94493
- i0.ɵɵelement(1, "div", 45);
94494
- i0.ɵɵelementStart(2, "span", 46);
94495
- i0.ɵɵtext(3, "Profile Generation Pending");
94492
+ i0.ɵɵelementStart(0, "div", 39)(1, "div", 41);
94493
+ i0.ɵɵelement(2, "div", 45);
94494
+ i0.ɵɵelementStart(3, "span", 46);
94495
+ i0.ɵɵtext(4);
94496
+ i0.ɵɵelementEnd()();
94497
+ i0.ɵɵelementStart(5, "div", 47);
94498
+ i0.ɵɵelement(6, "div", 48);
94499
+ i0.ɵɵelementEnd();
94500
+ i0.ɵɵelementStart(7, "div", 49);
94501
+ i0.ɵɵtext(8);
94496
94502
  i0.ɵɵelementEnd()();
94503
+ } if (rf & 2) {
94504
+ const focusArea_r4 = i0.ɵɵnextContext().$implicit;
94505
+ const ctx_r1 = i0.ɵɵnextContext();
94506
+ i0.ɵɵadvance(3);
94507
+ i0.ɵɵclassMap(ctx_r1.isLightMode() ? "text-blue-600" : "text-blue-400");
94508
+ i0.ɵɵadvance();
94509
+ i0.ɵɵtextInterpolate1(" ", (focusArea_r4.itemStatus == null ? null : focusArea_r4.itemStatus.message) || "Generating Profile...", " ");
94510
+ i0.ɵɵadvance();
94511
+ i0.ɵɵclassMap(ctx_r1.isLightMode() ? "bg-slate-200" : "bg-slate-700");
94512
+ i0.ɵɵadvance();
94513
+ i0.ɵɵstyleProp("width", (focusArea_r4.itemStatus == null ? null : focusArea_r4.itemStatus.percentageComplete) ?? 0, "%");
94514
+ i0.ɵɵadvance();
94515
+ i0.ɵɵclassMap(ctx_r1.isLightMode() ? "text-slate-500" : "text-slate-400");
94516
+ i0.ɵɵadvance();
94517
+ i0.ɵɵtextInterpolate1(" ", (focusArea_r4.itemStatus == null ? null : focusArea_r4.itemStatus.percentageComplete) ?? 0, "% complete ");
94497
94518
  } }
94498
94519
  function SymphiqProfileFocusAreasAnalysesDashboardComponent_For_54_Conditional_14_Conditional_8_Template(rf, ctx) { if (rf & 1) {
94499
- i0.ɵɵelementStart(0, "div", 49);
94520
+ i0.ɵɵelementStart(0, "div", 51);
94500
94521
  i0.ɵɵnamespaceSVG();
94501
- i0.ɵɵelementStart(1, "svg", 52);
94522
+ i0.ɵɵelementStart(1, "svg", 54);
94502
94523
  i0.ɵɵelement(2, "path", 26);
94503
94524
  i0.ɵɵelementEnd();
94504
94525
  i0.ɵɵtext(3, " Complete ");
94505
94526
  i0.ɵɵelementEnd();
94506
94527
  } }
94507
94528
  function SymphiqProfileFocusAreasAnalysesDashboardComponent_For_54_Conditional_14_Conditional_9_Template(rf, ctx) { if (rf & 1) {
94508
- i0.ɵɵelementStart(0, "div", 50);
94529
+ i0.ɵɵelementStart(0, "div", 52);
94509
94530
  i0.ɵɵnamespaceSVG();
94510
- i0.ɵɵelementStart(1, "svg", 52);
94511
- i0.ɵɵelement(2, "path", 53);
94531
+ i0.ɵɵelementStart(1, "svg", 54);
94532
+ i0.ɵɵelement(2, "path", 55);
94512
94533
  i0.ɵɵelementEnd();
94513
94534
  i0.ɵɵtext(3, " In Progress ");
94514
94535
  i0.ɵɵelementEnd();
94515
94536
  } }
94516
94537
  function SymphiqProfileFocusAreasAnalysesDashboardComponent_For_54_Conditional_14_Conditional_10_Template(rf, ctx) { if (rf & 1) {
94517
- i0.ɵɵelementStart(0, "div", 51);
94538
+ i0.ɵɵelementStart(0, "div", 53);
94518
94539
  i0.ɵɵnamespaceSVG();
94519
- i0.ɵɵelementStart(1, "svg", 52);
94520
- i0.ɵɵelement(2, "path", 54);
94540
+ i0.ɵɵelementStart(1, "svg", 54);
94541
+ i0.ɵɵelement(2, "path", 56);
94521
94542
  i0.ɵɵelementEnd();
94522
94543
  i0.ɵɵtext(3, " Not Started ");
94523
94544
  i0.ɵɵelementEnd();
94524
94545
  } }
94525
94546
  function SymphiqProfileFocusAreasAnalysesDashboardComponent_For_54_Conditional_14_Template(rf, ctx) { if (rf & 1) {
94526
- i0.ɵɵelementStart(0, "div", 40)(1, "div", 47)(2, "span");
94547
+ i0.ɵɵelementStart(0, "div", 40)(1, "div", 50)(2, "span");
94527
94548
  i0.ɵɵtext(3, "Progress");
94528
94549
  i0.ɵɵelementEnd();
94529
94550
  i0.ɵɵelementStart(4, "span");
@@ -94532,7 +94553,7 @@ function SymphiqProfileFocusAreasAnalysesDashboardComponent_For_54_Conditional_1
94532
94553
  i0.ɵɵelementStart(6, "div");
94533
94554
  i0.ɵɵelement(7, "div", 48);
94534
94555
  i0.ɵɵelementEnd();
94535
- i0.ɵɵconditionalCreate(8, SymphiqProfileFocusAreasAnalysesDashboardComponent_For_54_Conditional_14_Conditional_8_Template, 4, 0, "div", 49)(9, SymphiqProfileFocusAreasAnalysesDashboardComponent_For_54_Conditional_14_Conditional_9_Template, 4, 0, "div", 50)(10, SymphiqProfileFocusAreasAnalysesDashboardComponent_For_54_Conditional_14_Conditional_10_Template, 4, 0, "div", 51);
94556
+ i0.ɵɵconditionalCreate(8, SymphiqProfileFocusAreasAnalysesDashboardComponent_For_54_Conditional_14_Conditional_8_Template, 4, 0, "div", 51)(9, SymphiqProfileFocusAreasAnalysesDashboardComponent_For_54_Conditional_14_Conditional_9_Template, 4, 0, "div", 52)(10, SymphiqProfileFocusAreasAnalysesDashboardComponent_For_54_Conditional_14_Conditional_10_Template, 4, 0, "div", 53);
94536
94557
  i0.ɵɵelementEnd();
94537
94558
  } if (rf & 2) {
94538
94559
  const focusArea_r4 = i0.ɵɵnextContext().$implicit;
@@ -94551,12 +94572,12 @@ function SymphiqProfileFocusAreasAnalysesDashboardComponent_For_54_Conditional_1
94551
94572
  i0.ɵɵconditional(focusArea_r4.status === "complete" ? 8 : focusArea_r4.status === "in-progress" ? 9 : 10);
94552
94573
  } }
94553
94574
  function SymphiqProfileFocusAreasAnalysesDashboardComponent_For_54_Conditional_15_Template(rf, ctx) { if (rf & 1) {
94554
- i0.ɵɵelementStart(0, "div")(1, "div", 55)(2, "span", 56);
94575
+ i0.ɵɵelementStart(0, "div")(1, "div", 57)(2, "span", 58);
94555
94576
  i0.ɵɵtext(3, "View Details");
94556
94577
  i0.ɵɵelementEnd();
94557
94578
  i0.ɵɵnamespaceSVG();
94558
- i0.ɵɵelementStart(4, "svg", 57);
94559
- i0.ɵɵelement(5, "path", 58);
94579
+ i0.ɵɵelementStart(4, "svg", 59);
94580
+ i0.ɵɵelement(5, "path", 60);
94560
94581
  i0.ɵɵelementEnd()()();
94561
94582
  } if (rf & 2) {
94562
94583
  const ctx_r1 = i0.ɵɵnextContext(2);
@@ -94580,7 +94601,7 @@ function SymphiqProfileFocusAreasAnalysesDashboardComponent_For_54_Template(rf,
94580
94601
  i0.ɵɵtext(11);
94581
94602
  i0.ɵɵelementEnd();
94582
94603
  i0.ɵɵconditionalCreate(12, SymphiqProfileFocusAreasAnalysesDashboardComponent_For_54_Conditional_12_Template, 7, 1, "div", 38);
94583
- i0.ɵɵconditionalCreate(13, SymphiqProfileFocusAreasAnalysesDashboardComponent_For_54_Conditional_13_Template, 4, 0, "div", 39)(14, SymphiqProfileFocusAreasAnalysesDashboardComponent_For_54_Conditional_14_Template, 11, 11, "div", 40);
94604
+ i0.ɵɵconditionalCreate(13, SymphiqProfileFocusAreasAnalysesDashboardComponent_For_54_Conditional_13_Template, 9, 10, "div", 39)(14, SymphiqProfileFocusAreasAnalysesDashboardComponent_For_54_Conditional_14_Template, 11, 11, "div", 40);
94584
94605
  i0.ɵɵelementEnd();
94585
94606
  i0.ɵɵconditionalCreate(15, SymphiqProfileFocusAreasAnalysesDashboardComponent_For_54_Conditional_15_Template, 6, 2, "div", 28);
94586
94607
  i0.ɵɵelementEnd();
@@ -94605,7 +94626,7 @@ function SymphiqProfileFocusAreasAnalysesDashboardComponent_For_54_Template(rf,
94605
94626
  i0.ɵɵadvance();
94606
94627
  i0.ɵɵconditional(focusArea_r4.engagementStatus === ctx_r1.FocusAreaDetailStatusEnum.ENGAGED && focusArea_r4.tools.length > 0 ? 12 : -1);
94607
94628
  i0.ɵɵadvance();
94608
- i0.ɵɵconditional(focusArea_r4.status === "pending" ? 13 : 14);
94629
+ i0.ɵɵconditional(focusArea_r4.selfContentStatus !== null && focusArea_r4.selfContentStatus !== ctx_r1.AiDynamicContentStatusEnum.GENERATED && focusArea_r4.engagementStatus !== ctx_r1.FocusAreaDetailStatusEnum.NOT_ENGAGED_AND_NO_INTEREST ? 13 : focusArea_r4.selfContentStatus === ctx_r1.AiDynamicContentStatusEnum.GENERATED || focusArea_r4.status !== "pending" ? 14 : -1);
94609
94630
  i0.ɵɵadvance(2);
94610
94631
  i0.ɵɵconditional(focusArea_r4.canViewDetails ? 15 : -1);
94611
94632
  } }
@@ -94621,19 +94642,12 @@ function SymphiqProfileFocusAreasAnalysesDashboardComponent_Conditional_55_For_8
94621
94642
  i0.ɵɵtextInterpolate1(" ", ctx_r1.getEngagementStatusLabel(focusArea_r7.engagementStatus), " ");
94622
94643
  } }
94623
94644
  function SymphiqProfileFocusAreasAnalysesDashboardComponent_Conditional_55_For_8_Conditional_11_Template(rf, ctx) { if (rf & 1) {
94624
- i0.ɵɵelementStart(0, "div", 39);
94625
- i0.ɵɵelement(1, "div", 45);
94626
- i0.ɵɵelementStart(2, "span", 46);
94627
- i0.ɵɵtext(3, "Profile Generation Pending");
94628
- i0.ɵɵelementEnd()();
94629
- } }
94630
- function SymphiqProfileFocusAreasAnalysesDashboardComponent_Conditional_55_For_8_Conditional_12_Template(rf, ctx) { if (rf & 1) {
94631
- i0.ɵɵelementStart(0, "div")(1, "div", 55)(2, "span", 56);
94645
+ i0.ɵɵelementStart(0, "div")(1, "div", 57)(2, "span", 58);
94632
94646
  i0.ɵɵtext(3, "View Details");
94633
94647
  i0.ɵɵelementEnd();
94634
94648
  i0.ɵɵnamespaceSVG();
94635
- i0.ɵɵelementStart(4, "svg", 57);
94636
- i0.ɵɵelement(5, "path", 58);
94649
+ i0.ɵɵelementStart(4, "svg", 59);
94650
+ i0.ɵɵelement(5, "path", 60);
94637
94651
  i0.ɵɵelementEnd()()();
94638
94652
  } if (rf & 2) {
94639
94653
  const ctx_r1 = i0.ɵɵnextContext(3);
@@ -94654,10 +94668,8 @@ function SymphiqProfileFocusAreasAnalysesDashboardComponent_Conditional_55_For_8
94654
94668
  i0.ɵɵelementEnd();
94655
94669
  i0.ɵɵelementStart(9, "p");
94656
94670
  i0.ɵɵtext(10);
94657
- i0.ɵɵelementEnd();
94658
- i0.ɵɵconditionalCreate(11, SymphiqProfileFocusAreasAnalysesDashboardComponent_Conditional_55_For_8_Conditional_11_Template, 4, 0, "div", 39);
94659
- i0.ɵɵelementEnd();
94660
- i0.ɵɵconditionalCreate(12, SymphiqProfileFocusAreasAnalysesDashboardComponent_Conditional_55_For_8_Conditional_12_Template, 6, 2, "div", 28);
94671
+ i0.ɵɵelementEnd()();
94672
+ i0.ɵɵconditionalCreate(11, SymphiqProfileFocusAreasAnalysesDashboardComponent_Conditional_55_For_8_Conditional_11_Template, 6, 2, "div", 28);
94661
94673
  i0.ɵɵelementEnd();
94662
94674
  } if (rf & 2) {
94663
94675
  const focusArea_r7 = ctx.$implicit;
@@ -94676,20 +94688,18 @@ function SymphiqProfileFocusAreasAnalysesDashboardComponent_Conditional_55_For_8
94676
94688
  i0.ɵɵadvance();
94677
94689
  i0.ɵɵtextInterpolate1(" ", focusArea_r7.description, " ");
94678
94690
  i0.ɵɵadvance();
94679
- i0.ɵɵconditional(focusArea_r7.status === "pending" ? 11 : -1);
94680
- i0.ɵɵadvance();
94681
- i0.ɵɵconditional(focusArea_r7.canViewDetails ? 12 : -1);
94691
+ i0.ɵɵconditional(focusArea_r7.canViewDetails ? 11 : -1);
94682
94692
  } }
94683
94693
  function SymphiqProfileFocusAreasAnalysesDashboardComponent_Conditional_55_Template(rf, ctx) { if (rf & 1) {
94684
- i0.ɵɵelementStart(0, "div", 29)(1, "div", 59);
94685
- i0.ɵɵelement(2, "div", 60);
94686
- i0.ɵɵelementStart(3, "span", 61);
94694
+ i0.ɵɵelementStart(0, "div", 29)(1, "div", 61);
94695
+ i0.ɵɵelement(2, "div", 62);
94696
+ i0.ɵɵelementStart(3, "span", 63);
94687
94697
  i0.ɵɵtext(4, "Not Interested");
94688
94698
  i0.ɵɵelementEnd();
94689
- i0.ɵɵelement(5, "div", 60);
94699
+ i0.ɵɵelement(5, "div", 62);
94690
94700
  i0.ɵɵelementEnd();
94691
- i0.ɵɵelementStart(6, "div", 62);
94692
- i0.ɵɵrepeaterCreate(7, SymphiqProfileFocusAreasAnalysesDashboardComponent_Conditional_55_For_8_Template, 13, 12, "div", 28, _forTrack0);
94701
+ i0.ɵɵelementStart(6, "div", 64);
94702
+ i0.ɵɵrepeaterCreate(7, SymphiqProfileFocusAreasAnalysesDashboardComponent_Conditional_55_For_8_Template, 12, 11, "div", 28, _forTrack0);
94693
94703
  i0.ɵɵelementEnd()();
94694
94704
  } if (rf & 2) {
94695
94705
  const ctx_r1 = i0.ɵɵnextContext();
@@ -94704,7 +94714,7 @@ function SymphiqProfileFocusAreasAnalysesDashboardComponent_Conditional_55_Templ
94704
94714
  } }
94705
94715
  function SymphiqProfileFocusAreasAnalysesDashboardComponent_Conditional_56_Template(rf, ctx) { if (rf & 1) {
94706
94716
  const _r8 = i0.ɵɵgetCurrentView();
94707
- i0.ɵɵelementStart(0, "symphiq-search-modal", 63);
94717
+ i0.ɵɵelementStart(0, "symphiq-search-modal", 65);
94708
94718
  i0.ɵɵlistener("closeModal", function SymphiqProfileFocusAreasAnalysesDashboardComponent_Conditional_56_Template_symphiq_search_modal_closeModal_0_listener() { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.handleCloseSearchModal()); });
94709
94719
  i0.ɵɵelementEnd();
94710
94720
  } }
@@ -94745,11 +94755,47 @@ class SymphiqProfileFocusAreasAnalysesDashboardComponent {
94745
94755
  this.isLightMode = computed(() => this.viewMode() === ViewModeEnum.LIGHT, ...(ngDevMode ? [{ debugName: "isLightMode" }] : []));
94746
94756
  this.isSimplifiedView = computed(() => this.displayMode() === DisplayModeEnum.SIMPLIFIED, ...(ngDevMode ? [{ debugName: "isSimplifiedView" }] : []));
94747
94757
  this.FocusAreaDetailStatusEnum = FocusAreaDetailStatusEnum;
94758
+ this.AiDynamicContentStatusEnum = AiDynamicContentStatusEnum;
94759
+ this.COLLAPSE_THRESHOLD = 50;
94760
+ this.EXPAND_THRESHOLD = 30;
94761
+ this.embeddedScrollEffect = effect(() => {
94762
+ const scrollEvent = this.scrollEvent();
94763
+ const isEmbedded = this.embedded();
94764
+ if (isEmbedded && !scrollEvent) {
94765
+ return;
94766
+ }
94767
+ if (!scrollEvent || !isEmbedded) {
94768
+ return;
94769
+ }
94770
+ const detail = scrollEvent.detail;
94771
+ if (!detail) {
94772
+ return;
94773
+ }
94774
+ const scrollTop = detail.scrollTop || 0;
94775
+ const currentState = this.headerScrollService.isScrolled();
94776
+ if (!currentState && scrollTop > this.COLLAPSE_THRESHOLD) {
94777
+ this.headerScrollService.isScrolled.set(true);
94778
+ }
94779
+ else if (currentState && scrollTop < this.EXPAND_THRESHOLD) {
94780
+ this.headerScrollService.isScrolled.set(false);
94781
+ }
94782
+ const scrollElement = this.scrollElement();
94783
+ if (scrollElement) {
94784
+ const scrollHeight = scrollElement.scrollHeight || 0;
94785
+ const clientHeight = scrollElement.clientHeight || 0;
94786
+ const maxScroll = scrollHeight - clientHeight;
94787
+ if (maxScroll > 0) {
94788
+ const progress = (scrollTop / maxScroll) * 100;
94789
+ this.scrollProgress.set(Math.min(100, Math.max(0, progress)));
94790
+ }
94791
+ }
94792
+ }, ...(ngDevMode ? [{ debugName: "embeddedScrollEffect" }] : []));
94748
94793
  this.focusAreaCards = computed(() => {
94749
94794
  const allDomains = FocusAreaDomainEnumUtil.sorted();
94750
94795
  const focusAreaDetailsData = this.focusAreaDetails();
94751
94796
  const profileFocusAreasData = this.profileFocusAreas();
94752
94797
  const profileAnalysesData = this.profileAnalyses();
94798
+ const itemStatusesData = this.itemStatusesProfileFocusArea();
94753
94799
  const isDemo = this.forDemo();
94754
94800
  const mockProgressData = {
94755
94801
  [FocusAreaDomainEnum.AFFILIATE_AND_REFERRAL_PROGRAMS]: { answered: 8, total: 12, hasAnalysis: true },
@@ -94772,18 +94818,22 @@ class SymphiqProfileFocusAreasAnalysesDashboardComponent {
94772
94818
  const focusAreaDetailsMap = new Map(focusAreaDetailsData?.map(fad => [fad.focusAreaDomain, fad]));
94773
94819
  const profileFocusAreasMap = new Map(profileFocusAreasData?.map(pfa => [pfa.focusAreaDomain, pfa]));
94774
94820
  const profileAnalysesMap = new Map(profileAnalysesData?.map(pa => [pa.focusAreaDomain, pa]));
94821
+ const itemStatusesMap = new Map(itemStatusesData?.map(is => [is.itemId, is]));
94775
94822
  return allDomains.map(domain => {
94776
94823
  let questionsAnswered = 0;
94777
94824
  let totalQuestions = 0;
94778
94825
  let hasAnalysis = false;
94779
94826
  let status = 'pending';
94780
94827
  let canViewDetails = false;
94828
+ let selfContentStatus = null;
94829
+ let itemStatus = null;
94781
94830
  if (isDemo) {
94782
94831
  const mockData = mockProgressData[domain];
94783
94832
  questionsAnswered = mockData.answered;
94784
94833
  totalQuestions = mockData.total;
94785
94834
  hasAnalysis = mockData.hasAnalysis;
94786
94835
  canViewDetails = true;
94836
+ selfContentStatus = AiDynamicContentStatusEnum.GENERATED;
94787
94837
  if (questionsAnswered === totalQuestions && totalQuestions > 0) {
94788
94838
  status = 'complete';
94789
94839
  }
@@ -94801,8 +94851,12 @@ class SymphiqProfileFocusAreasAnalysesDashboardComponent {
94801
94851
  if (profileFocusArea) {
94802
94852
  questionsAnswered = profileFocusArea.questionsAnswered ?? 0;
94803
94853
  totalQuestions = profileFocusArea.totalQuestions ?? 0;
94804
- const selfContentStatus = profileFocusArea.selfContentStatus;
94854
+ selfContentStatus = profileFocusArea.selfContentStatus ?? null;
94805
94855
  canViewDetails = selfContentStatus === AiDynamicContentStatusEnum.GENERATED;
94856
+ const profileFocusAreaId = profileFocusArea.id;
94857
+ if (profileFocusAreaId) {
94858
+ itemStatus = itemStatusesMap.get(profileFocusAreaId) ?? null;
94859
+ }
94806
94860
  if (questionsAnswered === totalQuestions && totalQuestions > 0) {
94807
94861
  status = 'complete';
94808
94862
  }
@@ -94830,7 +94884,9 @@ class SymphiqProfileFocusAreasAnalysesDashboardComponent {
94830
94884
  status,
94831
94885
  engagementStatus,
94832
94886
  tools,
94833
- canViewDetails
94887
+ canViewDetails,
94888
+ selfContentStatus,
94889
+ itemStatus
94834
94890
  };
94835
94891
  });
94836
94892
  }, ...(ngDevMode ? [{ debugName: "focusAreaCards" }] : []));
@@ -94988,7 +95044,7 @@ class SymphiqProfileFocusAreasAnalysesDashboardComponent {
94988
95044
  static { this.ɵfac = function SymphiqProfileFocusAreasAnalysesDashboardComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SymphiqProfileFocusAreasAnalysesDashboardComponent)(); }; }
94989
95045
  static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SymphiqProfileFocusAreasAnalysesDashboardComponent, selectors: [["symphiq-profile-focus-areas-analyses-dashboard"]], hostBindings: function SymphiqProfileFocusAreasAnalysesDashboardComponent_HostBindings(rf, ctx) { if (rf & 1) {
94990
95046
  i0.ɵɵlistener("scroll", function SymphiqProfileFocusAreasAnalysesDashboardComponent_scroll_HostBindingHandler($event) { return ctx.onScroll($event); }, i0.ɵɵresolveWindow);
94991
- } }, inputs: { requestedByUser: [1, "requestedByUser"], createdDate: [1, "createdDate"], embedded: [1, "embedded"], profileAnalyses: [1, "profileAnalyses"], profile: [1, "profile"], funnelAnalysis: [1, "funnelAnalysis"], focusAreaDetails: [1, "focusAreaDetails"], account: [1, "account"], profileFocusAreas: [1, "profileFocusAreas"], itemStatusesProfileFocusArea: [1, "itemStatusesProfileFocusArea"], itemStatusesProfileAnalysis: [1, "itemStatusesProfileAnalysis"], isOnboarded: [1, "isOnboarded"], scrollEvent: [1, "scrollEvent"], scrollElement: [1, "scrollElement"], users: [1, "users"], isLoading: [1, "isLoading"], forDemo: [1, "forDemo"], currentUser: [1, "currentUser"], maxAccessibleStepId: [1, "maxAccessibleStepId"], viewMode: [1, "viewMode"], displayMode: [1, "displayMode"], currentStepId: [1, "currentStepId"] }, outputs: { focusAreaClicked: "focusAreaClicked", stepClick: "stepClick", nextStepClick: "nextStepClick", answerFocusAreaProfileQuestions: "answerFocusAreaProfileQuestions", continueFocusAreaProfileQuestions: "continueFocusAreaProfileQuestions", profileQuestionAnswerSave: "profileQuestionAnswerSave", focusAreaProfileAdminAnswerAction: "focusAreaProfileAdminAnswerAction" }, decls: 57, vars: 23, consts: [[1, "min-h-screen", "relative"], [1, "animated-bubbles", 2, "position", "fixed", "top", "0", "left", "0", "right", "0", "bottom", "0", "width", "100vw", "height", "100vh", "z-index", "1", "pointer-events", "none"], [1, "fixed", "top-0", "left-0", "right-0", "h-1", "z-[60]", "bg-slate-200/30"], [1, "h-full", "transition-all", "duration-200", "ease-out", 3, "ngClass"], [1, "relative", "z-[51]"], [3, "title", "subtitle", "viewMode", "showControls"], [3, "viewMode", "currentStepId", "showNextStepAction", "forDemo", "maxAccessibleStepId"], [1, "container", "mx-auto", "px-4", "sm:px-6", "lg:px-8", "py-8", "md:py-12", "relative", "z-10"], [1, "rounded-2xl", "border", "shadow-lg", "overflow-hidden", "mb-8", 3, "ngClass"], [1, "px-8", "py-8"], [1, "flex", "items-start", "gap-6"], [1, "flex-shrink-0", "w-16", "h-16", "rounded-2xl", "flex", "items-center", "justify-center", 3, "ngClass"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-8", "h-8"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"], [1, "flex-1"], [1, "text-2xl", "sm:text-3xl", "font-bold", "mb-3", 3, "ngClass"], [1, "space-y-3", "mb-6"], [1, "text-base", "leading-relaxed", 3, "ngClass"], [1, "font-semibold"], [1, "mt-6", "p-5", "rounded-xl", "border-l-4", "flex", "items-start", "gap-4", 3, "ngClass"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-6", "h-6", "flex-shrink-0", "mt-0.5", 3, "ngClass"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"], [1, "font-bold", "text-lg", "mb-2", 3, "ngClass"], [1, "space-y-2", "text-sm", 3, "ngClass"], [1, "flex", "items-start", "gap-2"], ["fill", "currentColor", "viewBox", "0 0 20 20", 1, "w-5", "h-5", "flex-shrink-0", "mt-0.5"], ["fill-rule", "evenodd", "d", "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z", "clip-rule", "evenodd"], [1, "grid", "grid-cols-1", "md:grid-cols-2", "lg:grid-cols-3", "gap-6"], [3, "class"], [1, "mt-12"], [3, "nextStepClick", "stepClick", "viewMode", "currentStepId", "showNextStepAction", "forDemo", "maxAccessibleStepId"], [3, "click"], [1, "p-6"], [1, "flex", "items-start", "justify-between", "mb-4"], [1, "text-4xl"], [1, "flex", "flex-col", "items-end", "gap-2"], [3, "ngClass"], [1, "px-3", "py-1", "bg-green-100", "dark:bg-green-900/30", "text-green-700", "dark:text-green-400", "text-xs", "font-semibold", "rounded-full"], [1, "mt-3", "mb-2"], [1, "flex", "items-center", "gap-2", "py-2"], [1, "space-y-2"], [1, "flex", "items-center", "gap-2"], [1, "text-xs", "font-medium", 3, "ngClass"], [1, "flex", "flex-wrap", "gap-1.5"], [1, "px-2", "py-0.5", "rounded", "text-xs", 3, "ngClass"], [1, "animate-spin", "w-4", "h-4", "border-2", "border-amber-500/30", "border-t-amber-500", "rounded-full"], [1, "text-xs", "text-amber-600", "dark:text-amber-400", "font-medium"], [1, "flex", "items-center", "justify-between", "text-sm"], [1, "h-full", "bg-gradient-to-r", "from-blue-500", "to-cyan-500", "rounded-full", "transition-all", "duration-500"], [1, "flex", "items-center", "gap-1", "text-xs", "text-green-600", "dark:text-green-400", "font-medium"], [1, "flex", "items-center", "gap-1", "text-xs", "text-blue-600", "dark:text-blue-400", "font-medium"], [1, "flex", "items-center", "gap-1", "text-xs", "text-slate-500", "dark:text-slate-400", "font-medium"], ["fill", "currentColor", "viewBox", "0 0 20 20", 1, "w-4", "h-4"], ["fill-rule", "evenodd", "d", "M10 18a8 8 0 100-16 8 8 0 000 16zm1-12a1 1 0 10-2 0v4a1 1 0 00.293.707l2.828 2.829a1 1 0 101.415-1.415L11 9.586V6z", "clip-rule", "evenodd"], ["fill-rule", "evenodd", "d", "M10 18a8 8 0 100-16 8 8 0 000 16zM9.555 7.168A1 1 0 008 8v4a1 1 0 001.555.832l3-2a1 1 0 000-1.664l-3-2z", "clip-rule", "evenodd"], [1, "flex", "items-center", "justify-between"], [1, "text-sm", "font-medium", "text-slate-600", "dark:text-slate-400"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-5", "h-5", "text-slate-400", "dark:text-slate-500", "group-hover:text-blue-500", "dark:group-hover:text-blue-400", "group-hover:translate-x-1", "transition-all"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M9 5l7 7-7 7"], [1, "flex", "items-center", "gap-4", "mb-6"], [1, "flex-1", "h-px", 3, "ngClass"], [1, "text-sm", "font-medium", "px-3", 3, "ngClass"], [1, "grid", "grid-cols-1", "md:grid-cols-2", "lg:grid-cols-3", "gap-6", "opacity-60"], [3, "closeModal"]], template: function SymphiqProfileFocusAreasAnalysesDashboardComponent_Template(rf, ctx) { if (rf & 1) {
95047
+ } }, inputs: { requestedByUser: [1, "requestedByUser"], createdDate: [1, "createdDate"], embedded: [1, "embedded"], profileAnalyses: [1, "profileAnalyses"], profile: [1, "profile"], funnelAnalysis: [1, "funnelAnalysis"], focusAreaDetails: [1, "focusAreaDetails"], account: [1, "account"], profileFocusAreas: [1, "profileFocusAreas"], itemStatusesProfileFocusArea: [1, "itemStatusesProfileFocusArea"], itemStatusesProfileAnalysis: [1, "itemStatusesProfileAnalysis"], isOnboarded: [1, "isOnboarded"], scrollEvent: [1, "scrollEvent"], scrollElement: [1, "scrollElement"], users: [1, "users"], isLoading: [1, "isLoading"], forDemo: [1, "forDemo"], currentUser: [1, "currentUser"], maxAccessibleStepId: [1, "maxAccessibleStepId"], viewMode: [1, "viewMode"], displayMode: [1, "displayMode"], currentStepId: [1, "currentStepId"] }, outputs: { focusAreaClicked: "focusAreaClicked", stepClick: "stepClick", nextStepClick: "nextStepClick", answerFocusAreaProfileQuestions: "answerFocusAreaProfileQuestions", continueFocusAreaProfileQuestions: "continueFocusAreaProfileQuestions", profileQuestionAnswerSave: "profileQuestionAnswerSave", focusAreaProfileAdminAnswerAction: "focusAreaProfileAdminAnswerAction" }, decls: 57, vars: 23, consts: [[1, "min-h-screen", "relative"], [1, "animated-bubbles", 2, "position", "fixed", "top", "0", "left", "0", "right", "0", "bottom", "0", "width", "100vw", "height", "100vh", "z-index", "1", "pointer-events", "none"], [1, "fixed", "top-0", "left-0", "right-0", "h-1", "z-[60]", "bg-slate-200/30"], [1, "h-full", "transition-all", "duration-200", "ease-out", 3, "ngClass"], [1, "relative", "z-[51]"], [3, "title", "subtitle", "viewMode", "showControls"], [3, "viewMode", "currentStepId", "showNextStepAction", "forDemo", "maxAccessibleStepId"], [1, "container", "mx-auto", "px-4", "sm:px-6", "lg:px-8", "py-8", "md:py-12", "relative", "z-10"], [1, "rounded-2xl", "border", "shadow-lg", "overflow-hidden", "mb-8", 3, "ngClass"], [1, "px-8", "py-8"], [1, "flex", "items-start", "gap-6"], [1, "flex-shrink-0", "w-16", "h-16", "rounded-2xl", "flex", "items-center", "justify-center", 3, "ngClass"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-8", "h-8"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"], [1, "flex-1"], [1, "text-2xl", "sm:text-3xl", "font-bold", "mb-3", 3, "ngClass"], [1, "space-y-3", "mb-6"], [1, "text-base", "leading-relaxed", 3, "ngClass"], [1, "font-semibold"], [1, "mt-6", "p-5", "rounded-xl", "border-l-4", "flex", "items-start", "gap-4", 3, "ngClass"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-6", "h-6", "flex-shrink-0", "mt-0.5", 3, "ngClass"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"], [1, "font-bold", "text-lg", "mb-2", 3, "ngClass"], [1, "space-y-2", "text-sm", 3, "ngClass"], [1, "flex", "items-start", "gap-2"], ["fill", "currentColor", "viewBox", "0 0 20 20", 1, "w-5", "h-5", "flex-shrink-0", "mt-0.5"], ["fill-rule", "evenodd", "d", "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z", "clip-rule", "evenodd"], [1, "grid", "grid-cols-1", "md:grid-cols-2", "lg:grid-cols-3", "gap-6"], [3, "class"], [1, "mt-12"], [3, "nextStepClick", "stepClick", "viewMode", "currentStepId", "showNextStepAction", "forDemo", "maxAccessibleStepId"], [3, "click"], [1, "p-6"], [1, "flex", "items-start", "justify-between", "mb-4"], [1, "text-4xl"], [1, "flex", "flex-col", "items-end", "gap-2"], [3, "ngClass"], [1, "px-3", "py-1", "bg-green-100", "dark:bg-green-900/30", "text-green-700", "dark:text-green-400", "text-xs", "font-semibold", "rounded-full"], [1, "mt-3", "mb-2"], [1, "w-full", "space-y-2", "py-2"], [1, "space-y-2"], [1, "flex", "items-center", "gap-2"], [1, "text-xs", "font-medium", 3, "ngClass"], [1, "flex", "flex-wrap", "gap-1.5"], [1, "px-2", "py-0.5", "rounded", "text-xs", 3, "ngClass"], [1, "animate-spin", "w-4", "h-4", "border-2", "border-blue-500/30", "border-t-blue-500", "rounded-full"], [1, "text-xs", "font-medium"], [1, "w-full", "h-2", "rounded-full"], [1, "h-full", "bg-gradient-to-r", "from-blue-500", "to-cyan-500", "rounded-full", "transition-all", "duration-500"], [1, "text-xs", "tabular-nums"], [1, "flex", "items-center", "justify-between", "text-sm"], [1, "flex", "items-center", "gap-1", "text-xs", "text-green-600", "dark:text-green-400", "font-medium"], [1, "flex", "items-center", "gap-1", "text-xs", "text-blue-600", "dark:text-blue-400", "font-medium"], [1, "flex", "items-center", "gap-1", "text-xs", "text-slate-500", "dark:text-slate-400", "font-medium"], ["fill", "currentColor", "viewBox", "0 0 20 20", 1, "w-4", "h-4"], ["fill-rule", "evenodd", "d", "M10 18a8 8 0 100-16 8 8 0 000 16zm1-12a1 1 0 10-2 0v4a1 1 0 00.293.707l2.828 2.829a1 1 0 101.415-1.415L11 9.586V6z", "clip-rule", "evenodd"], ["fill-rule", "evenodd", "d", "M10 18a8 8 0 100-16 8 8 0 000 16zM9.555 7.168A1 1 0 008 8v4a1 1 0 001.555.832l3-2a1 1 0 000-1.664l-3-2z", "clip-rule", "evenodd"], [1, "flex", "items-center", "justify-between"], [1, "text-sm", "font-medium", "text-slate-600", "dark:text-slate-400"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-5", "h-5", "text-slate-400", "dark:text-slate-500", "group-hover:text-blue-500", "dark:group-hover:text-blue-400", "group-hover:translate-x-1", "transition-all"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M9 5l7 7-7 7"], [1, "flex", "items-center", "gap-4", "mb-6"], [1, "flex-1", "h-px", 3, "ngClass"], [1, "text-sm", "font-medium", "px-3", 3, "ngClass"], [1, "grid", "grid-cols-1", "md:grid-cols-2", "lg:grid-cols-3", "gap-6", "opacity-60"], [3, "closeModal"]], template: function SymphiqProfileFocusAreasAnalysesDashboardComponent_Template(rf, ctx) { if (rf & 1) {
94992
95048
  i0.ɵɵelementStart(0, "div", 0);
94993
95049
  i0.ɵɵelement(1, "div", 1);
94994
95050
  i0.ɵɵelementStart(2, "div", 2);
@@ -95246,12 +95302,25 @@ class SymphiqProfileFocusAreasAnalysesDashboardComponent {
95246
95302
  </div>
95247
95303
  }
95248
95304
 
95249
- @if (focusArea.status === 'pending') {
95250
- <div class="flex items-center gap-2 py-2">
95251
- <div class="animate-spin w-4 h-4 border-2 border-amber-500/30 border-t-amber-500 rounded-full"></div>
95252
- <span class="text-xs text-amber-600 dark:text-amber-400 font-medium">Profile Generation Pending</span>
95305
+ @if (focusArea.selfContentStatus !== null && focusArea.selfContentStatus !== AiDynamicContentStatusEnum.GENERATED && focusArea.engagementStatus !== FocusAreaDetailStatusEnum.NOT_ENGAGED_AND_NO_INTEREST) {
95306
+ <div class="w-full space-y-2 py-2">
95307
+ <div class="flex items-center gap-2">
95308
+ <div class="animate-spin w-4 h-4 border-2 border-blue-500/30 border-t-blue-500 rounded-full"></div>
95309
+ <span class="text-xs font-medium" [class]="isLightMode() ? 'text-blue-600' : 'text-blue-400'">
95310
+ {{ focusArea.itemStatus?.message || 'Generating Profile...' }}
95311
+ </span>
95312
+ </div>
95313
+ <div class="w-full h-2 rounded-full" [class]="isLightMode() ? 'bg-slate-200' : 'bg-slate-700'">
95314
+ <div
95315
+ class="h-full bg-gradient-to-r from-blue-500 to-cyan-500 rounded-full transition-all duration-500"
95316
+ [style.width.%]="focusArea.itemStatus?.percentageComplete ?? 0"
95317
+ ></div>
95318
+ </div>
95319
+ <div class="text-xs tabular-nums" [class]="isLightMode() ? 'text-slate-500' : 'text-slate-400'">
95320
+ {{ focusArea.itemStatus?.percentageComplete ?? 0 }}% complete
95321
+ </div>
95253
95322
  </div>
95254
- } @else {
95323
+ } @else if (focusArea.selfContentStatus === AiDynamicContentStatusEnum.GENERATED || focusArea.status !== 'pending') {
95255
95324
  <div class="space-y-2">
95256
95325
  <div class="flex items-center justify-between text-sm">
95257
95326
  <span [class]="getLabelClasses()">Progress</span>
@@ -95341,13 +95410,6 @@ class SymphiqProfileFocusAreasAnalysesDashboardComponent {
95341
95410
  <p [class]="getDescriptionClasses()">
95342
95411
  {{ focusArea.description }}
95343
95412
  </p>
95344
-
95345
- @if (focusArea.status === 'pending') {
95346
- <div class="flex items-center gap-2 py-2">
95347
- <div class="animate-spin w-4 h-4 border-2 border-amber-500/30 border-t-amber-500 rounded-full"></div>
95348
- <span class="text-xs text-amber-600 dark:text-amber-400 font-medium">Profile Generation Pending</span>
95349
- </div>
95350
- }
95351
95413
  </div>
95352
95414
 
95353
95415
  @if (focusArea.canViewDetails) {
@@ -95380,7 +95442,7 @@ class SymphiqProfileFocusAreasAnalysesDashboardComponent {
95380
95442
  type: HostListener,
95381
95443
  args: ['window:scroll', ['$event']]
95382
95444
  }] }); })();
95383
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SymphiqProfileFocusAreasAnalysesDashboardComponent, { className: "SymphiqProfileFocusAreasAnalysesDashboardComponent", filePath: "lib/components/profile-analyses-focus-areas-dashboard/symphiq-profile-focus-areas-analyses-dashboard.component.ts", lineNumber: 383 }); })();
95445
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SymphiqProfileFocusAreasAnalysesDashboardComponent, { className: "SymphiqProfileFocusAreasAnalysesDashboardComponent", filePath: "lib/components/profile-analyses-focus-areas-dashboard/symphiq-profile-focus-areas-analyses-dashboard.component.ts", lineNumber: 392 }); })();
95384
95446
 
95385
95447
  function FocusAreaStatusCardComponent_Conditional_9_Template(rf, ctx) { if (rf & 1) {
95386
95448
  i0.ɵɵelementStart(0, "div", 7)(1, "div", 8)(2, "div", 9);