@eric-emg/symphiq-components 1.2.383 → 1.2.384

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.
@@ -88781,6 +88781,7 @@ class ShopProfileQuestionAnswerComponent {
88781
88781
  this.isCountAnimating = signal(false, ...(ngDevMode ? [{ debugName: "isCountAnimating" }] : []));
88782
88782
  this.previousAnsweredCount = signal(null, ...(ngDevMode ? [{ debugName: "previousAnsweredCount" }] : []));
88783
88783
  this.saveStartTime = signal(0, ...(ngDevMode ? [{ debugName: "saveStartTime" }] : []));
88784
+ this.lastLoadedQuestionId = signal(null, ...(ngDevMode ? [{ debugName: "lastLoadedQuestionId" }] : []));
88784
88785
  this.answerOptions = computed(() => {
88785
88786
  const q = this.question();
88786
88787
  const potentialAnswers = q.potentialAnswers || [];
@@ -88859,8 +88860,12 @@ class ShopProfileQuestionAnswerComponent {
88859
88860
  this.stickyState = false;
88860
88861
  this.lastStickyChange = 0;
88861
88862
  effect(() => {
88862
- const questionId = this.question().id;
88863
- const existingAnswers = this.profileShopAnswers()
88863
+ const questionId = this.question().id ?? null;
88864
+ const lastId = untracked(() => this.lastLoadedQuestionId());
88865
+ if (questionId === lastId)
88866
+ return;
88867
+ this.lastLoadedQuestionId.set(questionId);
88868
+ const existingAnswers = untracked(() => this.profileShopAnswers())
88864
88869
  .filter(a => a.profileQuestionId === questionId)
88865
88870
  .map(a => a.answer || '');
88866
88871
  this.selectedAnswerTexts.set(existingAnswers);
@@ -89491,7 +89496,7 @@ class ShopProfileQuestionAnswerComponent {
89491
89496
  type: ViewChild,
89492
89497
  args: ['questionTitle']
89493
89498
  }] }); })();
89494
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ShopProfileQuestionAnswerComponent, { className: "ShopProfileQuestionAnswerComponent", filePath: "lib/components/profile-analysis-dashboard/cards/shop-profile-question-answer.component.ts", lineNumber: 259 }); })();
89499
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ShopProfileQuestionAnswerComponent, { className: "ShopProfileQuestionAnswerComponent", filePath: "lib/components/profile-analysis-dashboard/cards/shop-profile-question-answer.component.ts", lineNumber: 260 }); })();
89495
89500
 
89496
89501
  const _c0$4 = ["modalContent"];
89497
89502
  const _c1$1 = ["modalWrapper"];