@ironsource/shared-ui-e2e 2.1.12-rc.53 → 2.1.12-rc.55

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.
@@ -1,39 +1,39 @@
1
- var j = Object.defineProperty;
2
- var q = (a, t, e) => t in a ? j(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e;
3
- var r = (a, t, e) => (q(a, typeof t != "symbol" ? t + "" : t, e), e);
4
- var T = /* @__PURE__ */ ((a) => (a.TRIGGER = "ie-trigger", a.CONTENT = "ie-content", a.SEARCH = "ie-search", a.LIST = "ie-list", a.LIST_SELECTED = "ie-list-selected", a.ACTION_CANCEL = "ie-action-cancel", a.ACTION_APPLY = "ie-action-apply", a.SELECT_ALL = "ie-select-all", a.CLEAR_ALL = "ie-clear-all", a))(T || {}), i = /* @__PURE__ */ ((a) => (a.TRIGGER = "dd-trigger", a.WRAPPER = "dd-wrapper", a.BUTTON = "dd-button", a.BUTTON_WRAPPER = "dd-button-wrapper", a.BUTTON_CONTENT = "dd-button-content", a.BUTTON_CONTENT_SUFFIX = "dd-button-content-suffix", a.BUTTON_CLEAR = "dd-button-clear", a.LABEL = "dd-label", a.LIST_CONTAINER = "dd-list-container", a.SEARCH = "dd-search", a.TITLE = "dd-title", a.ACTION_CANCEL = "dd-action-cancel", a.ACTION_APPLY = "dd-action-apply", a.ACTION_CLEAR_ALL = "dd-action-clear-all", a.HELPER_TEXT = "dd-helper-text", a.HELPER_TEXT_ERROR = "dd-helper-text-error", a.SELECT_ALL = "dd-select-all", a.NO_RESULT = "dd-no-result", a))(i || {}), S = /* @__PURE__ */ ((a) => (a.WRAPPER = "banner-wrapper", a.CONTENT = "banner-content", a))(S || {}), d = /* @__PURE__ */ ((a) => (a.WRAPPER = "alert-wrapper", a.TITLE = "alert-title", a.MESSAGE = "alert-message", a.ACTION_BUTTON = "alert-action-button", a.CLOSE_BUTTON = "alert-close-button", a))(d || {}), u = /* @__PURE__ */ ((a) => (a.WRAPPER = "dialog-wrapper", a.HEADER = "dialog-header", a.ACTION_CLOSE = "dialog-action-close", a.HEADER_SECONDARY = "dialog-header-secondary", a.CONTENT = "dialog-content", a.ACTION_BUTTONS_WRAPPER = "dialog-action-buttons-wrapper", a.BACKDROP = "dialog-backdrop", a.SAVE_BUTTON = "dialog-save-button", a.CANCEL_BUTTON = "dialog-cancel-button", a))(u || {}), l = /* @__PURE__ */ ((a) => (a.WRAPPER = "input-wrapper", a.TOOLTIP = "input-tooltip", a.TOOLTIP_WITHOUT_ICON = "input-tooltip-without-icon", a.MANDATORY = "input-mandatory", a.LABEL_CONTAINER = "input-label-container", a.LABEL_TEXT = "input-label-text", a.FIELD = "input-field", a.EXTRA_TEXT = "input-extra-text", a.TOGGLE_PASSWORD = "input-toggle-password-icon", a.CLEAR_BUTTON = "input-clear-button", a.LOADING = "input-loading", a))(l || {}), v = /* @__PURE__ */ ((a) => (a.WRAPPER = "swicth-wrapper", a.BUTTON = "swicth-button", a.TEXT = "swicth-text", a))(v || {}), C = /* @__PURE__ */ ((a) => (a.WRAPPER = "ta-wrapper", a.LABEL = "ta-label", a.FIELD = "ta-field", a.TEXT = "ta-text", a))(C || {}), D = /* @__PURE__ */ ((a) => (a.CONTAINER = "search-container", a.FIELD = "search-field", a.CLOSE = "search-close", a.CLEAR = "search-clear", a))(D || {}), g = /* @__PURE__ */ ((a) => (a.CONTAINER = "tbl-container", a.TABLE = "tbl-table", a.HEADER = "tbl-header", a.TITLE = "tbl-title", a.HEADER_RIGHT = "tbl-header-right", a.ACTIONS = "tbl-actions", a.SECTIONS = "tbl-sections", a.BODY_WRAPPER = "tbl-body-wrapper", a.EMPTY_STATE = "tbl-empty-state", a.PRE_SEARCH_HEADER = "tbl-pre-search-header", a))(g || {}), P = /* @__PURE__ */ ((a) => (a.TEXT = "tt-text", a.TRIGGER = "tt-trigger", a.HEADER = "tt-header", a))(P || {}), m = /* @__PURE__ */ ((a) => (a.WRAPPER = "dr-wrapper", a.FIELD = "dr-field", a.TRIGGER = "dr-trigger", a.CONTAINER = "dr-container", a.MENU = "dr-menu", a.MESSAGE = "dr-message", a.ACTION_APPLY = "dr-action-apply", a.ACTION_CANCEL = "dr-action-cancel", a))(m || {}), A = /* @__PURE__ */ ((a) => (a.WRAPPER = "tabs-wrapper", a.TAB = "tabs-tab", a))(A || {}), R = /* @__PURE__ */ ((a) => (a.CONTAINER = "field-label-container", a.TEXT = "field-label-text", a.MANDATORY = "field-label-mandatory", a.TOOLTIP = "field-label-help-tooltip", a))(R || {}), E = /* @__PURE__ */ ((a) => (a.CONTAINER = "field-help-text-container", a.TEXT = "field-help-text-text", a.ICON = "field-help-text-icon", a))(E || {}), w = /* @__PURE__ */ ((a) => (a.CONTAINER = "sb-container", a.TITLE = "sb-title", a.MESSAGE = "sb-message", a.CLOSE = "sb-close", a.ICON = "sb-icon", a.ACTION_BUTTON = "sb-action-button", a))(w || {}), I = /* @__PURE__ */ ((a) => (a.TITLE = "form-card-title", a.CONTENT = "form-card-content", a.ACTIONS = "form-card-actions", a.SAVE_BUTTON = "form-card-save-btn", a.CANCEL_BUTTON = "form-card-cancel-btn", a))(I || {}), _ = /* @__PURE__ */ ((a) => (a.TITLE = "ah-title", a.APP_KEY = "ah-app-key", a.APP_PLATFORM = "ah-app-platform", a.AB_ICON = "ah-ab-icon", a))(_ || {}), G = /* @__PURE__ */ ((a) => (a.TEXT = "ic-text", a.COPY_BTN = "ic-copy-btn", a))(G || {}), L = /* @__PURE__ */ ((a) => (a.WRAPPER = "multibar-wrapper", a.CLOSE_BTN = "multibar-close-button", a.MENU = "multibar-menu", a.ACTION = "multibar-action", a))(L || {}), h = /* @__PURE__ */ ((a) => (a.CONTAINER = "sortable-list-container", a.DRAGGABLE_LIST = "sortable-list-draggable-list", a.LOCKED_LIST = "sortable-list-locked-list", a))(h || {});
5
- const z = (a, t) => {
1
+ var ot = Object.defineProperty;
2
+ var st = (a, t, e) => t in a ? ot(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e;
3
+ var r = (a, t, e) => (st(a, typeof t != "symbol" ? t + "" : t, e), e);
4
+ var T = /* @__PURE__ */ ((a) => (a.TRIGGER = "ie-trigger", a.CONTENT = "ie-content", a.SEARCH = "ie-search", a.LIST = "ie-list", a.LIST_SELECTED = "ie-list-selected", a.ACTION_CANCEL = "ie-action-cancel", a.ACTION_APPLY = "ie-action-apply", a.SELECT_ALL = "ie-select-all", a.CLEAR_ALL = "ie-clear-all", a))(T || {}), c = /* @__PURE__ */ ((a) => (a.TRIGGER = "dd-trigger", a.WRAPPER = "dd-wrapper", a.BUTTON = "dd-button", a.BUTTON_WRAPPER = "dd-button-wrapper", a.BUTTON_CONTENT = "dd-button-content", a.BUTTON_CONTENT_SUFFIX = "dd-button-content-suffix", a.BUTTON_CLEAR = "dd-button-clear", a.LABEL = "dd-label", a.LIST_CONTAINER = "dd-list-container", a.SEARCH = "dd-search", a.TITLE = "dd-title", a.ACTION_CANCEL = "dd-action-cancel", a.ACTION_APPLY = "dd-action-apply", a.ACTION_CLEAR_ALL = "dd-action-clear-all", a.HELPER_TEXT = "dd-helper-text", a.HELPER_TEXT_ERROR = "dd-helper-text-error", a.SELECT_ALL = "dd-select-all", a.NO_RESULT = "dd-no-result", a))(c || {}), F = /* @__PURE__ */ ((a) => (a.WRAPPER = "banner-wrapper", a.CONTENT = "banner-content", a))(F || {}), w = /* @__PURE__ */ ((a) => (a.WRAPPER = "alert-wrapper", a.TITLE = "alert-title", a.MESSAGE = "alert-message", a.ACTION_BUTTON = "alert-action-button", a.CLOSE_BUTTON = "alert-close-button", a))(w || {}), E = /* @__PURE__ */ ((a) => (a.WRAPPER = "dialog-wrapper", a.HEADER = "dialog-header", a.ACTION_CLOSE = "dialog-action-close", a.HEADER_SECONDARY = "dialog-header-secondary", a.CONTENT = "dialog-content", a.ACTION_BUTTONS_WRAPPER = "dialog-action-buttons-wrapper", a.BACKDROP = "dialog-backdrop", a.SAVE_BUTTON = "dialog-save-button", a.CANCEL_BUTTON = "dialog-cancel-button", a))(E || {}), l = /* @__PURE__ */ ((a) => (a.WRAPPER = "input-wrapper", a.TOOLTIP = "input-tooltip", a.TOOLTIP_WITHOUT_ICON = "input-tooltip-without-icon", a.MANDATORY = "input-mandatory", a.LABEL_CONTAINER = "input-label-container", a.LABEL_TEXT = "input-label-text", a.FIELD = "input-field", a.EXTRA_TEXT = "input-extra-text", a.TOGGLE_PASSWORD = "input-toggle-password-icon", a.CLEAR_BUTTON = "input-clear-button", a.LOADING = "input-loading", a))(l || {}), V = /* @__PURE__ */ ((a) => (a.WRAPPER = "swicth-wrapper", a.BUTTON = "swicth-button", a.TEXT = "swicth-text", a))(V || {}), B = /* @__PURE__ */ ((a) => (a.WRAPPER = "ta-wrapper", a.LABEL = "ta-label", a.FIELD = "ta-field", a.TEXT = "ta-text", a))(B || {}), G = /* @__PURE__ */ ((a) => (a.CONTAINER = "search-container", a.FIELD = "search-field", a.CLOSE = "search-close", a.CLEAR = "search-clear", a))(G || {}), g = /* @__PURE__ */ ((a) => (a.CONTAINER = "tbl-container", a.TABLE = "tbl-table", a.HEADER = "tbl-header", a.TITLE = "tbl-title", a.HEADER_RIGHT = "tbl-header-right", a.ACTIONS = "tbl-actions", a.SECTIONS = "tbl-sections", a.BODY_WRAPPER = "tbl-body-wrapper", a.EMPTY_STATE = "tbl-empty-state", a.PRE_SEARCH_HEADER = "tbl-pre-search-header", a))(g || {}), $ = /* @__PURE__ */ ((a) => (a.TEXT = "tt-text", a.TRIGGER = "tt-trigger", a.HEADER = "tt-header", a))($ || {}), L = /* @__PURE__ */ ((a) => (a.WRAPPER = "dr-wrapper", a.FIELD = "dr-field", a.TRIGGER = "dr-trigger", a.CONTAINER = "dr-container", a.MENU = "dr-menu", a.MESSAGE = "dr-message", a.ACTION_APPLY = "dr-action-apply", a.ACTION_CANCEL = "dr-action-cancel", a))(L || {}), R = /* @__PURE__ */ ((a) => (a.WRAPPER = "tabs-wrapper", a.TAB = "tabs-tab", a))(R || {}), b = /* @__PURE__ */ ((a) => (a.CONTAINER = "field-label-container", a.TEXT = "field-label-text", a.MANDATORY = "field-label-mandatory", a.TOOLTIP = "field-label-help-tooltip", a))(b || {}), I = /* @__PURE__ */ ((a) => (a.CONTAINER = "field-help-text-container", a.TEXT = "field-help-text-text", a.ICON = "field-help-text-icon", a))(I || {}), m = /* @__PURE__ */ ((a) => (a.CONTAINER = "sb-container", a.TITLE = "sb-title", a.MESSAGE = "sb-message", a.CLOSE = "sb-close", a.ICON = "sb-icon", a.ACTION_BUTTON = "sb-action-button", a))(m || {}), A = /* @__PURE__ */ ((a) => (a.TITLE = "form-card-title", a.CONTENT = "form-card-content", a.ACTIONS = "form-card-actions", a.SAVE_BUTTON = "form-card-save-btn", a.CANCEL_BUTTON = "form-card-cancel-btn", a))(A || {}), f = /* @__PURE__ */ ((a) => (a.TITLE = "ah-title", a.APP_KEY = "ah-app-key", a.APP_PLATFORM = "ah-app-platform", a.AB_ICON = "ah-ab-icon", a))(f || {}), X = /* @__PURE__ */ ((a) => (a.TEXT = "ic-text", a.COPY_BTN = "ic-copy-btn", a))(X || {}), O = /* @__PURE__ */ ((a) => (a.WRAPPER = "multibar-wrapper", a.CLOSE_BTN = "multibar-close-button", a.MENU = "multibar-menu", a.ACTION = "multibar-action", a))(O || {}), h = /* @__PURE__ */ ((a) => (a.CONTAINER = "sortable-list-container", a.DRAGGABLE_LIST = "sortable-list-draggable-list", a.LOCKED_LIST = "sortable-list-locked-list", a))(h || {}), d = /* @__PURE__ */ ((a) => (a.CONTAINER = "chart-container", a.HEADER = "chart-header", a.TREND = "chart-trend", a.TYPE_SWITCHER = "chart-type-switcher", a.LEGEND = "chart-legend", a.LEGEND_CONTAINER = "chart-legend-container", a.LEGEND_SORT = "chart-legend-sort", a.EXTRA_CHART = "chart-extra-chart", a.LOADER = "chart-loader", a))(d || {});
5
+ const it = (a, t) => {
6
6
  const e = new URLSearchParams(a).toString();
7
7
  return t.includes("?") ? `${t}${e}` : `${t}?${e}`;
8
- }, Q = (a, t = {}) => {
8
+ }, ct = (a, t = {}) => {
9
9
  const e = [];
10
- Object.entries(t).forEach(([c, p]) => {
11
- e.push(`${c}:${p}`);
10
+ Object.entries(t).forEach(([i, p]) => {
11
+ e.push(`${i}:${p}`);
12
12
  });
13
13
  const o = {
14
14
  id: a,
15
15
  viewMode: "story",
16
16
  args: e.join(";")
17
17
  };
18
- return z(o, "iframe.html");
18
+ return it(o, "iframe.html");
19
19
  }, n = (a, t) => `${a}-${t}`;
20
- class it {
20
+ class Et {
21
21
  constructor(t) {
22
22
  r(this, "page");
23
23
  this.page = t;
24
24
  }
25
25
  async waitForComponent({ testId: t }) {
26
- const e = `[data-testid='${t}-${S.WRAPPER}']`;
26
+ const e = `[data-testid='${t}-${F.WRAPPER}']`;
27
27
  await this.page.waitForSelector(e);
28
28
  }
29
29
  getBannerText({ testId: t }) {
30
- return this.page.getByTestId(n(t, S.CONTENT)).textContent();
30
+ return this.page.getByTestId(n(t, F.CONTENT)).textContent();
31
31
  }
32
32
  hasBannerType({ testId: t, type: e }) {
33
- return this.page.getByTestId(n(t, S.WRAPPER)).locator(`.icon.icon-name--${e}`) !== null;
33
+ return this.page.getByTestId(n(t, F.WRAPPER)).locator(`.icon.icon-name--${e}`) !== null;
34
34
  }
35
35
  }
36
- class ct {
36
+ class wt {
37
37
  constructor(t) {
38
38
  r(this, "page");
39
39
  r(this, "testId");
@@ -47,101 +47,101 @@ class ct {
47
47
  ...t.additionalComponentParams
48
48
  };
49
49
  await this.page.goto(
50
- Q(
50
+ ct(
51
51
  t.storyId || this.componentId,
52
52
  e
53
53
  )
54
54
  ), await this.page.waitForSelector(this.loadedPageSelector);
55
55
  }
56
56
  }
57
- class rt {
57
+ class Ct {
58
58
  constructor(t) {
59
59
  r(this, "page");
60
60
  this.page = t;
61
61
  }
62
62
  async waitForComponent({ testId: t }) {
63
- const e = `[data-testid='${t}-${u.WRAPPER}']`;
63
+ const e = `[data-testid='${t}-${E.WRAPPER}']`;
64
64
  await this.page.waitForSelector(e);
65
65
  }
66
66
  getDialogTitle({ testId: t }) {
67
- return this.page.getByTestId(n(t, u.HEADER)).textContent();
67
+ return this.page.getByTestId(n(t, E.HEADER)).textContent();
68
68
  }
69
69
  getDialogText({ testId: t }) {
70
- return this.page.getByTestId(n(t, u.CONTENT)).textContent();
70
+ return this.page.getByTestId(n(t, E.CONTENT)).textContent();
71
71
  }
72
72
  async closeDialog({ testId: t }) {
73
73
  await (await this.page.getByTestId(
74
- n(t, u.ACTION_CLOSE)
74
+ n(t, E.ACTION_CLOSE)
75
75
  )).click();
76
76
  }
77
77
  async clickOnPrimaryButton({ testId: t }) {
78
78
  await this.page.getByTestId(
79
- n(t, u.SAVE_BUTTON)
79
+ n(t, E.SAVE_BUTTON)
80
80
  ).click();
81
81
  }
82
82
  async clickOnDefaultButton({ testId: t }) {
83
83
  await this.page.getByTestId(
84
- n(t, u.CANCEL_BUTTON)
84
+ n(t, E.CANCEL_BUTTON)
85
85
  ).click();
86
86
  }
87
87
  async clickOnDeleteButton({ testId: t }) {
88
88
  await (await this.page.getByTestId(
89
- n(t, u.ACTION_BUTTONS_WRAPPER)
89
+ n(t, E.ACTION_BUTTONS_WRAPPER)
90
90
  ).locator(".danger")).click();
91
91
  }
92
92
  getDialogSubtitle({ testId: t }) {
93
- return this.page.getByTestId(n(t, u.HEADER_SECONDARY)).locator(".subtitle").textContent();
93
+ return this.page.getByTestId(n(t, E.HEADER_SECONDARY)).locator(".subtitle").textContent();
94
94
  }
95
95
  async isDialogVisible({ testId: t }) {
96
96
  return await this.page.waitForTimeout(1e3), (await this.page.getByTestId(
97
- n(t, u.WRAPPER)
97
+ n(t, E.WRAPPER)
98
98
  )).isVisible();
99
99
  }
100
100
  async waitForDialogToClose(t) {
101
101
  await this.page.waitForSelector(
102
- n(t, u.WRAPPER),
102
+ n(t, E.WRAPPER),
103
103
  { state: "hidden" }
104
104
  );
105
105
  }
106
106
  }
107
- class Y {
107
+ class Q {
108
108
  constructor(t) {
109
109
  r(this, "page");
110
110
  this.page = t;
111
111
  }
112
112
  async waitForComponent({ testId: t }) {
113
113
  await this.page.getByTestId(
114
- n(t, i.WRAPPER)
114
+ n(t, c.WRAPPER)
115
115
  );
116
116
  }
117
117
  async selectDropdownOptionByIndex({
118
118
  testId: t,
119
119
  index: e
120
120
  }) {
121
- await this.openDropdownComponent({ testId: t }), await this.page.getByTestId(n(t, i.LIST_CONTAINER)).locator("ul > li").nth(e).click();
121
+ await this.openDropdownComponent({ testId: t }), await this.page.getByTestId(n(t, c.LIST_CONTAINER)).locator("ul > li").nth(e).click();
122
122
  }
123
123
  getDropdownButtonContent(t) {
124
- return this.page.getByTestId(n(t, i.BUTTON_CONTENT)).textContent();
124
+ return this.page.getByTestId(n(t, c.BUTTON_CONTENT)).textContent();
125
125
  }
126
126
  async openDropdownComponent({ testId: t }) {
127
- await this.page.getByTestId(n(t, i.TRIGGER)).click({ position: { x: 15, y: 15 } });
127
+ await this.page.getByTestId(n(t, c.TRIGGER)).click({ position: { x: 15, y: 15 } });
128
128
  }
129
129
  async selectDropdownOptionByName({
130
130
  testId: t,
131
131
  name: e,
132
132
  shouldOpen: o = !0
133
133
  }) {
134
- o && await this.openDropdownComponent({ testId: t }), await this.page.getByTestId(n(t, i.LIST_CONTAINER)).locator("ul > li div.text-container", { hasText: e }).click();
134
+ o && await this.openDropdownComponent({ testId: t }), await this.page.getByTestId(n(t, c.LIST_CONTAINER)).locator("ul > li div.text-container", { hasText: e }).click();
135
135
  }
136
136
  async selectDropdownOptionByNameV2({
137
137
  testId: t,
138
138
  name: e,
139
139
  shouldOpen: o = !0
140
140
  }) {
141
- o && await this.openDropdownComponent({ testId: t }), await (await this.page.getByTestId(n(t, i.LIST_CONTAINER)).locator(`li div.option-content:has-text("${e}")`)).click();
141
+ o && await this.openDropdownComponent({ testId: t }), await (await this.page.getByTestId(n(t, c.LIST_CONTAINER)).locator(`li div.option-content:has-text("${e}")`)).click();
142
142
  }
143
143
  async clearAllOptions({ testId: t }) {
144
- await this.page.getByTestId(n(t, i.ACTION_CLEAR_ALL)).click();
144
+ await this.page.getByTestId(n(t, c.ACTION_CLEAR_ALL)).click();
145
145
  }
146
146
  async selectMultipleItemsByIndex({
147
147
  testId: t,
@@ -150,7 +150,7 @@ class Y {
150
150
  }) {
151
151
  o && await this.openDropdownComponent({ testId: t }), await this.clearAllOptions({ testId: t });
152
152
  for (const s of e)
153
- await this.page.getByTestId(n(t, i.LIST_CONTAINER)).locator("ul > li").nth(s).click();
153
+ await this.page.getByTestId(n(t, c.LIST_CONTAINER)).locator("ul > li").nth(s).click();
154
154
  }
155
155
  async selectMultipleItemsByName({
156
156
  testId: t,
@@ -161,57 +161,57 @@ class Y {
161
161
  testId: t
162
162
  });
163
163
  for (const s of e)
164
- await this.page.getByTestId(n(t, i.LIST_CONTAINER)).locator("ul > li span", { hasText: s }).first().click();
164
+ await this.page.getByTestId(n(t, c.LIST_CONTAINER)).locator("ul > li span", { hasText: s }).first().click();
165
165
  }
166
166
  async clickOnApply({ testId: t }) {
167
- await this.page.getByTestId(n(t, i.ACTION_APPLY)).click();
167
+ await this.page.getByTestId(n(t, c.ACTION_APPLY)).click();
168
168
  }
169
169
  async clickOnCancel({ testId: t }) {
170
- await this.page.getByTestId(n(t, i.ACTION_CANCEL)).click();
170
+ await this.page.getByTestId(n(t, c.ACTION_CANCEL)).click();
171
171
  }
172
172
  async isValidationAppear({ testId: t }) {
173
- return (await this.page.getByTestId(n(t, i.BUTTON_WRAPPER)).getAttribute("class")).includes("state-error");
173
+ return (await this.page.getByTestId(n(t, c.BUTTON_WRAPPER)).getAttribute("class")).includes("state-error");
174
174
  }
175
175
  }
176
- class b {
176
+ class D {
177
177
  constructor(t) {
178
178
  r(this, "page");
179
179
  this.page = t;
180
180
  }
181
181
  getLabelText({ testId: t }) {
182
- return this.page.getByTestId(n(t, R.TEXT)).textContent();
182
+ return this.page.getByTestId(n(t, b.TEXT)).textContent();
183
183
  }
184
184
  isMandatory({ testId: t }) {
185
- return this.page.getByTestId(n(t, R.MANDATORY)).isVisible();
185
+ return this.page.getByTestId(n(t, b.MANDATORY)).isVisible();
186
186
  }
187
187
  async getHelpIconText({ testId: t }) {
188
188
  const e = await this.page.getByTestId(
189
- n(t, R.TOOLTIP)
189
+ n(t, b.TOOLTIP)
190
190
  );
191
191
  return await e.hover(), e.getAttribute("text");
192
192
  }
193
193
  }
194
- class H {
194
+ class Y {
195
195
  constructor(t) {
196
196
  r(this, "page");
197
197
  this.page = t;
198
198
  }
199
199
  hasExtraText({ testId: t }) {
200
- return this.page.getByTestId(n(t, E.TEXT)).isVisible();
200
+ return this.page.getByTestId(n(t, I.TEXT)).isVisible();
201
201
  }
202
202
  getExtraText({ testId: t }) {
203
- return this.page.getByTestId(n(t, E.TEXT)).textContent();
203
+ return this.page.getByTestId(n(t, I.TEXT)).textContent();
204
204
  }
205
205
  async hasExtraTextIconType({ testId: t, type: e }) {
206
- return await (await this.page.getByTestId(n(t, E.CONTAINER)).locator(`.icon.icon-name--${e}`)).count() !== 0;
206
+ return await (await this.page.getByTestId(n(t, I.CONTAINER)).locator(`.icon.icon-name--${e}`)).count() !== 0;
207
207
  }
208
208
  }
209
- class Z extends Y {
209
+ class Z extends Q {
210
210
  constructor(e) {
211
211
  super(e);
212
212
  r(this, "fieldLabelComponent");
213
213
  r(this, "fieldHelpTextComponent");
214
- this.fieldLabelComponent = new b(e), this.fieldHelpTextComponent = new H(e);
214
+ this.fieldLabelComponent = new D(e), this.fieldHelpTextComponent = new Y(e);
215
215
  }
216
216
  getDropdownTitle({ testId: e }) {
217
217
  return this.fieldLabelComponent.getLabelText({ testId: e });
@@ -232,62 +232,62 @@ class Z extends Y {
232
232
  return this.fieldHelpTextComponent.hasExtraTextIconType({ testId: e, type: o });
233
233
  }
234
234
  async getSelectedLabel({ testId: e }) {
235
- let s = await this.page.getByTestId(n(e, i.BUTTON_CONTENT)).textContent();
235
+ let s = await this.page.getByTestId(n(e, c.BUTTON_CONTENT)).textContent();
236
236
  if (await this.page.getByTestId(
237
- n(e, i.BUTTON_CONTENT_SUFFIX)
237
+ n(e, c.BUTTON_CONTENT_SUFFIX)
238
238
  ).isVisible({ timeout: 1e3 })) {
239
239
  const p = await this.page.getByTestId(
240
- n(e, i.BUTTON_CONTENT_SUFFIX)
240
+ n(e, c.BUTTON_CONTENT_SUFFIX)
241
241
  ).textContent();
242
242
  s = `${s}${p}`;
243
243
  }
244
244
  return s;
245
245
  }
246
246
  async searchForItem({ testId: e, searchTerm: o }) {
247
- return await this.openDropdownComponent({ testId: e }), await this.page.getByTestId(n(e, l.FIELD)).fill(o), this.page.getByTestId(n(e, i.LIST_CONTAINER)).locator("ul > li span").first().textContent();
247
+ return await this.openDropdownComponent({ testId: e }), await this.page.getByTestId(n(e, l.FIELD)).fill(o), this.page.getByTestId(n(e, c.LIST_CONTAINER)).locator("ul > li span").first().textContent();
248
248
  }
249
249
  async isErrorText({ testId: e }) {
250
- return await this.page.getByTestId(n(e, E.TEXT)).count() > 0;
250
+ return await this.page.getByTestId(n(e, I.TEXT)).count() > 0;
251
251
  }
252
252
  async isDisabled({ testId: e }) {
253
- return (await this.page.getByTestId(n(e, i.TRIGGER)).locator(".button__container--disabled")).isVisible();
253
+ return (await this.page.getByTestId(n(e, c.TRIGGER)).locator(".button__container--disabled")).isVisible();
254
254
  }
255
255
  isSelectAllChecked({ testId: e }) {
256
- return this.page.getByTestId(n(e, i.SELECT_ALL)).locator(".checkbox.input").isChecked();
256
+ return this.page.getByTestId(n(e, c.SELECT_ALL)).locator(".checkbox.input").isChecked();
257
257
  }
258
258
  isSelectAllIndeterminate({ testId: e }) {
259
- return this.page.getByTestId(n(e, i.SELECT_ALL)).locator(".icon.indeterminate").isVisible();
259
+ return this.page.getByTestId(n(e, c.SELECT_ALL)).locator(".icon.indeterminate").isVisible();
260
260
  }
261
261
  async removeChipSelection({ testId: e }) {
262
- await this.page.getByTestId(n(e, i.BUTTON_CLEAR)).click();
262
+ await this.page.getByTestId(n(e, c.BUTTON_CLEAR)).click();
263
263
  }
264
264
  getDropdownOptions({ testId: e }) {
265
- return this.page.getByTestId(n(e, i.LIST_CONTAINER)).locator(".list").allTextContents();
265
+ return this.page.getByTestId(n(e, c.LIST_CONTAINER)).locator(".list").allTextContents();
266
266
  }
267
267
  async getDropdownOptionsV2({ testId: e }) {
268
- const o = [], s = await this.page.getByTestId(n(e, i.LIST_CONTAINER)).locator(".list li").all();
269
- for (const c of s) {
270
- const p = await c.textContent();
268
+ const o = [], s = await this.page.getByTestId(n(e, c.LIST_CONTAINER)).locator(".list li").all();
269
+ for (const i of s) {
270
+ const p = await i.textContent();
271
271
  o.push(p);
272
272
  }
273
273
  return o;
274
274
  }
275
275
  }
276
- class lt extends Y {
276
+ class mt extends Q {
277
277
  constructor(t) {
278
278
  super(t);
279
279
  }
280
280
  getDropdownTitle({ testId: t }) {
281
- return this.page.getByTestId(n(t, i.WRAPPER)).locator("label > span").textContent();
281
+ return this.page.getByTestId(n(t, c.WRAPPER)).locator("label > span").textContent();
282
282
  }
283
283
  getSelectedItem({ testId: t }) {
284
- return this.page.getByTestId(n(t, i.TRIGGER)).locator("button > span").textContent();
284
+ return this.page.getByTestId(n(t, c.TRIGGER)).locator("button > span").textContent();
285
285
  }
286
286
  async searchForItem({ testId: t, searchTerm: e }) {
287
- return await this.openDropdownComponent({ testId: t }), await this.page.getByTestId(n(t, D.FIELD)).fill(e), this.page.getByTestId(n(t, i.LIST_CONTAINER)).locator("ul > li span").first().textContent();
287
+ return await this.openDropdownComponent({ testId: t }), await this.page.getByTestId(n(t, G.FIELD)).fill(e), this.page.getByTestId(n(t, c.LIST_CONTAINER)).locator("ul > li span").first().textContent();
288
288
  }
289
289
  }
290
- class pt {
290
+ class It {
291
291
  constructor(t) {
292
292
  r(this, "page");
293
293
  this.page = t;
@@ -353,7 +353,7 @@ class pt {
353
353
  await this.openIncludeExcludeComponent(t), await this.page.getByTestId(n(t, T.SELECT_ALL)).click(), await this.clickOnApply(t);
354
354
  }
355
355
  }
356
- class J {
356
+ class M {
357
357
  constructor(t) {
358
358
  r(this, "page");
359
359
  this.page = t;
@@ -377,12 +377,12 @@ class J {
377
377
  return this.page.getByTestId(n(t, l.FIELD)).isDisabled();
378
378
  }
379
379
  }
380
- class gt extends J {
380
+ class Bt extends M {
381
381
  constructor(e) {
382
382
  super(e);
383
383
  r(this, "fieldLabelComponent");
384
384
  r(this, "fieldHelpTextComponent");
385
- this.fieldLabelComponent = new b(e), this.fieldHelpTextComponent = new H(e);
385
+ this.fieldLabelComponent = new D(e), this.fieldHelpTextComponent = new Y(e);
386
386
  }
387
387
  getInputsLabelText({ testId: e }) {
388
388
  return this.fieldLabelComponent.getLabelText({ testId: e });
@@ -462,50 +462,50 @@ class gt extends J {
462
462
  return (await this.page.getByTestId(n(e, l.WRAPPER)).getAttribute("class")).includes("variant-error");
463
463
  }
464
464
  }
465
- class Tt {
465
+ class Lt {
466
466
  constructor(t) {
467
467
  r(this, "page");
468
468
  this.page = t;
469
469
  }
470
470
  async waitForComponent({ testId: t }) {
471
- const e = `[data-testid='${t}-${A.WRAPPER}']`;
471
+ const e = `[data-testid='${t}-${R.WRAPPER}']`;
472
472
  await this.page.waitForSelector(e);
473
473
  }
474
474
  getSelectedTabText({ testId: t }) {
475
- return this.page.getByTestId(n(t, A.WRAPPER)).locator(".tab-item--active").textContent();
475
+ return this.page.getByTestId(n(t, R.WRAPPER)).locator(".tab-item--active").textContent();
476
476
  }
477
477
  async selectTab({ testId: t, tabName: e }) {
478
478
  const o = await this.getTabIndex({ testId: t, tabName: e });
479
479
  await this.page.getByTestId(
480
- n(t, `${A.TAB}-${o + 1}`)
480
+ n(t, `${R.TAB}-${o + 1}`)
481
481
  ).click();
482
482
  }
483
483
  async getTabIndex({ testId: t, tabName: e }) {
484
- return (await this.page.getByTestId(n(t, A.WRAPPER)).locator(".tab-item").allTextContents()).indexOf(e);
484
+ return (await this.page.getByTestId(n(t, R.WRAPPER)).locator(".tab-item").allTextContents()).indexOf(e);
485
485
  }
486
486
  async isTabDisabled({ testId: t, tabName: e }) {
487
487
  const o = await this.getTabIndex({ testId: t, tabName: e });
488
- return this.page.getByTestId(n(t, `${A.TAB}-${o}`)).locator(".tab-item--disabled").isVisible();
488
+ return this.page.getByTestId(n(t, `${R.TAB}-${o}`)).locator(".tab-item--disabled").isVisible();
489
489
  }
490
490
  }
491
- class ht {
491
+ class At {
492
492
  constructor(t) {
493
493
  r(this, "page");
494
494
  this.page = t;
495
495
  }
496
496
  async waitForComponent({ testId: t }) {
497
- const e = `[data-testid='${t}-${P.TRIGGER}']`;
497
+ const e = `[data-testid='${t}-${$.TRIGGER}']`;
498
498
  await this.page.waitForSelector(e);
499
499
  }
500
500
  getTooltipText({ testId: t }) {
501
- return this.page.getByTestId(`${t}-${P.TRIGGER}`).getAttribute("text");
501
+ return this.page.getByTestId(`${t}-${$.TRIGGER}`).getAttribute("text");
502
502
  }
503
503
  getTooltipHeaderText({ testId: t }) {
504
- return this.page.getByTestId(`${t}-${P.TRIGGER}`).getAttribute("header");
504
+ return this.page.getByTestId(`${t}-${$.TRIGGER}`).getAttribute("header");
505
505
  }
506
506
  }
507
- const x = ".table-row", $ = ".icon-wrapper", V = ".states", f = ".table-head-container", X = ".table-row.loading", M = 1e3;
508
- class ut {
507
+ const x = ".table-row", W = ".icon-wrapper", K = ".states", U = ".table-head-container", j = ".table-row.loading", rt = 1e3;
508
+ class xt {
509
509
  constructor(t) {
510
510
  r(this, "page");
511
511
  this.page = t;
@@ -518,7 +518,7 @@ class ut {
518
518
  return this.page.getByTestId(n(t, g.BODY_WRAPPER)).locator(x).count();
519
519
  }
520
520
  async getColumnHeaders({ testId: t }) {
521
- return this.page.getByTestId(n(t, g.TABLE)).locator(f).allTextContents();
521
+ return this.page.getByTestId(n(t, g.TABLE)).locator(U).allTextContents();
522
522
  }
523
523
  getTableLabel({ testId: t }) {
524
524
  return this.page.getByTestId(n(t, g.HEADER)).innerText();
@@ -527,7 +527,7 @@ class ut {
527
527
  return this.page.getByTestId(n(t, g.CONTAINER)).locator(".table-footer").innerText();
528
528
  }
529
529
  async clickOnHeaderByName(t) {
530
- await this.page.locator(f, {
530
+ await this.page.locator(U, {
531
531
  hasText: t
532
532
  }).click();
533
533
  }
@@ -538,7 +538,7 @@ class ut {
538
538
  await this.page.getByTestId(n(t, l.FIELD)).clear(), await this.waitForTableToLoad();
539
539
  }
540
540
  isArrowVisible({ testId: t, headerName: e }) {
541
- return this.page.getByTestId(n(t, g.TABLE)).locator(f, { hasText: e }).locator(".table-sort-icon").isVisible();
541
+ return this.page.getByTestId(n(t, g.TABLE)).locator(U, { hasText: e }).locator(".table-sort-icon").isVisible();
542
542
  }
543
543
  async scrollDownTableRows({ testId: t }) {
544
544
  const e = `[data-testid=${n(
@@ -548,27 +548,27 @@ class ut {
548
548
  await this.page.focus(e), await this.page.evaluate((o) => {
549
549
  const s = document.querySelector(o);
550
550
  s && (s.scrollTop = s.scrollHeight);
551
- }, e), await this.page.waitForTimeout(M);
551
+ }, e), await this.page.waitForTimeout(rt);
552
552
  }
553
553
  async waitForTableToLoad() {
554
- await this.page.waitForSelector(X, {
554
+ await this.page.waitForSelector(j, {
555
555
  state: "hidden"
556
556
  });
557
557
  }
558
558
  async waitingForTableLoadingToAppear() {
559
- await this.page.waitForSelector(X);
559
+ await this.page.waitForSelector(j);
560
560
  }
561
561
  async expandRow({ testId: t, rowValue: e }) {
562
- await this.page.getByTestId(n(t, g.BODY_WRAPPER)).locator(x, { hasText: e }).locator($).click();
562
+ await this.page.getByTestId(n(t, g.BODY_WRAPPER)).locator(x, { hasText: e }).locator(W).click();
563
563
  }
564
564
  isRowExpanded({ testId: t, rowValue: e }) {
565
- return this.page.getByTestId(n(t, g.BODY_WRAPPER)).locator(x, { hasText: e }).locator($).isVisible();
565
+ return this.page.getByTestId(n(t, g.BODY_WRAPPER)).locator(x, { hasText: e }).locator(W).isVisible();
566
566
  }
567
567
  async getExpandedRowContent({ testId: t, rowValue: e }) {
568
568
  return await this.isRowExpanded({
569
569
  testId: t,
570
570
  rowValue: e
571
- }) || await this.expandRow({ testId: t, rowValue: e }), this.page.getByTestId(n(t, g.BODY_WRAPPER)).locator(x, { hasText: e }).locator($).textContent();
571
+ }) || await this.expandRow({ testId: t, rowValue: e }), this.page.getByTestId(n(t, g.BODY_WRAPPER)).locator(x, { hasText: e }).locator(W).textContent();
572
572
  }
573
573
  isEmptyStateVisible({ testId: t }) {
574
574
  return this.page.getByTestId(n(t, g.TABLE)).locator(".empty-state").isVisible();
@@ -582,13 +582,13 @@ class ut {
582
582
  async clickOnRowCheckboxByRowValue({ testId: t, rowValue: e }) {
583
583
  await this.page.getByTestId(n(t, g.TABLE)).locator(x, {
584
584
  hasText: e
585
- }).locator(V).click();
585
+ }).locator(K).click();
586
586
  }
587
587
  getCheckedRowsNumber({ testId: t }) {
588
588
  return this.page.getByTestId(n(t, g.TABLE)).locator(x).locator(".icon.checked").count();
589
589
  }
590
590
  async clickOnSelectAllCheckbox({ testId: t }) {
591
- await this.page.getByTestId(n(t, g.TABLE)).locator(V).nth(0).click();
591
+ await this.page.getByTestId(n(t, g.TABLE)).locator(K).nth(0).click();
592
592
  }
593
593
  getTableLocator({ testId: t }) {
594
594
  return this.page.getByTestId(
@@ -599,7 +599,7 @@ class ut {
599
599
  return this.getTableLocator({ testId: t }).locator(e).allTextContents();
600
600
  }
601
601
  }
602
- class tt {
602
+ class lt {
603
603
  constructor(t) {
604
604
  r(this, "page");
605
605
  this.page = t;
@@ -621,125 +621,125 @@ class tt {
621
621
  return this.page.getByTestId(t).isDisabled();
622
622
  }
623
623
  }
624
- class dt {
624
+ class Rt {
625
625
  constructor(t) {
626
626
  r(this, "page");
627
627
  this.page = t;
628
628
  }
629
629
  async waitForComponent({ testId: t }) {
630
- const e = `[data-testid='${t}-${w.CONTAINER}']`;
630
+ const e = `[data-testid='${t}-${m.CONTAINER}']`;
631
631
  await this.page.waitForSelector(e);
632
632
  }
633
633
  getSnackbarTitle({ testId: t }) {
634
- return this.page.getByTestId(n(t, w.TITLE)).textContent();
634
+ return this.page.getByTestId(n(t, m.TITLE)).textContent();
635
635
  }
636
636
  async closeSnackbar({ testId: t }) {
637
- await this.page.getByTestId(n(t, w.CLOSE)).locator(".icon-name--x").click();
637
+ await this.page.getByTestId(n(t, m.CLOSE)).locator(".icon-name--x").click();
638
638
  }
639
639
  async waitForSnackbarToBeClosed({ testId: t }) {
640
- const e = `[data-testid='${t}-${w.CONTAINER}']`;
640
+ const e = `[data-testid='${t}-${m.CONTAINER}']`;
641
641
  await this.page.waitForSelector(e, { state: "detached" });
642
642
  }
643
643
  getSnackbarDescription({ testId: t }) {
644
- return this.page.getByTestId(n(t, w.MESSAGE)).textContent();
644
+ return this.page.getByTestId(n(t, m.MESSAGE)).textContent();
645
645
  }
646
646
  async clickOnActionButton({ testId: t, buttonName: e }) {
647
647
  const o = await this.getActionButtonIndex({
648
648
  testId: t,
649
649
  buttonName: e
650
- }), s = `[data-testid='${t}-${w.ACTION_BUTTON}-${o}']`;
650
+ }), s = `[data-testid='${t}-${m.ACTION_BUTTON}-${o}']`;
651
651
  await this.page.click(s);
652
652
  }
653
653
  async getActionButtonIndex({
654
654
  testId: t,
655
655
  buttonName: e
656
656
  }) {
657
- return (await this.page.getByTestId(n(t, w.CONTAINER)).locator(".font-button").allTextContents()).indexOf(e);
657
+ return (await this.page.getByTestId(n(t, m.CONTAINER)).locator(".font-button").allTextContents()).indexOf(e);
658
658
  }
659
659
  }
660
- class yt {
660
+ class Ot {
661
661
  constructor(t) {
662
662
  r(this, "page");
663
663
  this.page = t;
664
664
  }
665
665
  async waitForComponent({ testId: t }) {
666
- const e = `[data-testid='${t}-${L.WRAPPER}']`;
666
+ const e = `[data-testid='${t}-${O.WRAPPER}']`;
667
667
  await this.page.waitForSelector(e);
668
668
  }
669
669
  async closeMultiBar({ testId: t }) {
670
- await this.page.getByTestId(n(t, L.CLOSE_BTN)).locator(".icon-wrapper").click();
670
+ await this.page.getByTestId(n(t, O.CLOSE_BTN)).locator(".icon-wrapper").click();
671
671
  }
672
672
  getMultiBarCountText({ testId: t }) {
673
- return this.page.getByTestId(n(t, L.WRAPPER)).locator(".count-text").textContent();
673
+ return this.page.getByTestId(n(t, O.WRAPPER)).locator(".count-text").textContent();
674
674
  }
675
675
  async isMultiBarVisible({ testId: t }) {
676
- return await this.page.waitForTimeout(1e3), this.page.getByTestId(n(t, L.WRAPPER)).locator(".multi-bar-panel").isVisible();
676
+ return await this.page.waitForTimeout(1e3), this.page.getByTestId(n(t, O.WRAPPER)).locator(".multi-bar-panel").isVisible();
677
677
  }
678
678
  async clickOnActionButton({ testId: t, actionButtonId: e }) {
679
679
  await this.page.getByTestId(
680
680
  n(
681
681
  t,
682
- `${L.ACTION}-${e}`
682
+ `${O.ACTION}-${e}`
683
683
  )
684
684
  ).locator(".start-icon").click();
685
685
  }
686
686
  }
687
- class wt {
687
+ class Nt {
688
688
  constructor(t) {
689
689
  r(this, "page");
690
690
  this.page = t;
691
691
  }
692
692
  async waitForComponent({ testId: t }) {
693
- const e = `[data-testid='${t}-${R.TEXT}']`;
693
+ const e = `[data-testid='${t}-${b.TEXT}']`;
694
694
  await this.page.waitForSelector(e);
695
695
  }
696
696
  getFormRowTitle({ testId: t }) {
697
- return new b(this.page).getLabelText({ testId: t });
697
+ return new D(this.page).getLabelText({ testId: t });
698
698
  }
699
699
  isFormRowMandatory({ testId: t }) {
700
- return new b(this.page).isMandatory({ testId: t });
700
+ return new D(this.page).isMandatory({ testId: t });
701
701
  }
702
702
  getIconText({ testId: t }) {
703
- return new H(this.page).getExtraText({ testId: t });
703
+ return new Y(this.page).getExtraText({ testId: t });
704
704
  }
705
705
  }
706
- class Et {
706
+ class bt {
707
707
  constructor(t) {
708
708
  r(this, "page");
709
709
  this.page = t;
710
710
  }
711
711
  async waitForComponent({ testId: t }) {
712
- const e = `[data-testid='${t}-${I.CONTENT}']`;
712
+ const e = `[data-testid='${t}-${A.CONTENT}']`;
713
713
  await this.page.waitForSelector(e);
714
714
  }
715
715
  getCardTitle({ testId: t }) {
716
- return this.page.getByTestId(n(t, I.TITLE)).textContent();
716
+ return this.page.getByTestId(n(t, A.TITLE)).textContent();
717
717
  }
718
718
  getCardContentText({ testId: t }) {
719
- return this.page.getByTestId(n(t, I.CONTENT)).textContent();
719
+ return this.page.getByTestId(n(t, A.CONTENT)).textContent();
720
720
  }
721
721
  getCardLabelText({ testId: t }) {
722
- return new b(this.page).getLabelText({ testId: t });
722
+ return new D(this.page).getLabelText({ testId: t });
723
723
  }
724
724
  async clickOnSaveButton({ testId: t }) {
725
- await this.page.getByTestId(n(t, I.SAVE_BUTTON)).click();
725
+ await this.page.getByTestId(n(t, A.SAVE_BUTTON)).click();
726
726
  }
727
727
  async clickOnCancelButton({ testId: t }) {
728
- await this.page.getByTestId(n(t, I.CANCEL_BUTTON)).click();
728
+ await this.page.getByTestId(n(t, A.CANCEL_BUTTON)).click();
729
729
  }
730
730
  isSaveButtonLoading({ testId: t }) {
731
- return new tt(this.page).isButtonLoading({ testId: t });
731
+ return new lt(this.page).isButtonLoading({ testId: t });
732
732
  }
733
733
  async clearForm({
734
734
  testId: t,
735
735
  inputType: e
736
736
  }) {
737
- (await this.page.getByTestId(n(t, I.CONTENT)).locator(
737
+ (await this.page.getByTestId(n(t, A.CONTENT)).locator(
738
738
  `[data-testid='ad-units-form-card-form-card-content'] input[type='${e}']`
739
739
  ).all()).forEach((s) => s.clear());
740
740
  }
741
741
  }
742
- class O extends J {
742
+ class N extends M {
743
743
  constructor(t) {
744
744
  super(t);
745
745
  }
@@ -779,61 +779,61 @@ class O extends J {
779
779
  await (await this.page.getByTestId(n(t, l.WRAPPER)).locator(".password-visibility")).click();
780
780
  }
781
781
  }
782
- class Ct {
782
+ class St {
783
783
  constructor(t) {
784
784
  r(this, "page");
785
785
  this.page = t;
786
786
  }
787
787
  async waitForComponent({ testId: t }) {
788
- const e = `[data-testid='${t}-${D.CONTAINER}']`;
788
+ const e = `[data-testid='${t}-${G.CONTAINER}']`;
789
789
  await this.page.waitForSelector(e);
790
790
  }
791
791
  async searchInput({ testId: t, searchTerm: e }) {
792
- await new O(this.page).addInput({ testId: t, text: e });
792
+ await new N(this.page).addInput({ testId: t, text: e });
793
793
  }
794
794
  async clearInput({ testId: t }) {
795
- await new O(this.page).clearInput({ testId: t });
795
+ await new N(this.page).clearInput({ testId: t });
796
796
  }
797
797
  async clickOnXButton({ testId: t }) {
798
- await this.page.getByTestId(n(t, D.CLEAR)).locator(".icon-name--x-circle").click();
798
+ await this.page.getByTestId(n(t, G.CLEAR)).locator(".icon-name--x-circle").click();
799
799
  }
800
800
  isDisabled({ testId: t }) {
801
- return new O(this.page).isDisabled({ testId: t });
801
+ return new N(this.page).isDisabled({ testId: t });
802
802
  }
803
803
  getSearchPlaceholder({ testId: t }) {
804
- return new O(this.page).getPlaceholderText({ testId: t });
804
+ return new N(this.page).getPlaceholderText({ testId: t });
805
805
  }
806
806
  getSearchInputValue({ testId: t }) {
807
- return new O(this.page).getInputsFieldText({ testId: t });
807
+ return new N(this.page).getInputsFieldText({ testId: t });
808
808
  }
809
809
  }
810
- class et {
810
+ class pt {
811
811
  constructor(t) {
812
812
  r(this, "page");
813
813
  this.page = t;
814
814
  }
815
815
  async waitForComponent({ testId: t }) {
816
- const e = `[data-testid='${t}-${G.TEXT}']`;
816
+ const e = `[data-testid='${t}-${X.TEXT}']`;
817
817
  await this.page.waitForSelector(e);
818
818
  }
819
819
  getInlineCopyText({ testId: t }) {
820
- return this.page.getByTestId(`${t}-${G.TEXT}`).textContent();
820
+ return this.page.getByTestId(`${t}-${X.TEXT}`).textContent();
821
821
  }
822
822
  }
823
- class mt {
823
+ class Pt {
824
824
  constructor(t) {
825
825
  r(this, "page");
826
826
  this.page = t;
827
827
  }
828
828
  async waitForComponent({ testId: t }) {
829
- const e = `[data-testid='${t}-${_.TITLE}']`;
829
+ const e = `[data-testid='${t}-${f.TITLE}']`;
830
830
  await this.page.waitForSelector(e);
831
831
  }
832
832
  getHeaderTitle({ testId: t }) {
833
- return this.page.getByTestId(`${t}-${_.TITLE}`).textContent();
833
+ return this.page.getByTestId(`${t}-${f.TITLE}`).textContent();
834
834
  }
835
835
  getInlineCopyText({ testId: t }) {
836
- return new et(this.page).getInlineCopyText({
836
+ return new pt(this.page).getInlineCopyText({
837
837
  testId: t
838
838
  });
839
839
  }
@@ -841,79 +841,79 @@ class mt {
841
841
  testId: t,
842
842
  iconName: e
843
843
  }) {
844
- return await this.page.getByTestId(`${t}-${_.APP_PLATFORM}`).getAttribute("data-platform") === e;
844
+ return await this.page.getByTestId(`${t}-${f.APP_PLATFORM}`).getAttribute("data-platform") === e;
845
845
  }
846
846
  }
847
- class It {
847
+ class _t {
848
848
  constructor(t) {
849
849
  r(this, "page");
850
850
  this.page = t;
851
851
  }
852
852
  async waitForComponent({ testId: t }) {
853
- const e = `[data-testid='${t}-${d.WRAPPER}']`;
853
+ const e = `[data-testid='${t}-${w.WRAPPER}']`;
854
854
  await this.page.waitForSelector(e);
855
855
  }
856
856
  getAlertText({ testId: t }) {
857
- return this.page.getByTestId(n(t, d.MESSAGE)).textContent();
857
+ return this.page.getByTestId(n(t, w.MESSAGE)).textContent();
858
858
  }
859
859
  getAlertTitle({ testId: t }) {
860
- return this.page.getByTestId(n(t, d.TITLE)).textContent();
860
+ return this.page.getByTestId(n(t, w.TITLE)).textContent();
861
861
  }
862
862
  async clickOnActionButton({ testId: t }) {
863
863
  await this.page.click(
864
- n(t, d.ACTION_BUTTON)
864
+ n(t, w.ACTION_BUTTON)
865
865
  );
866
866
  }
867
867
  getActionButtonText({ testId: t }) {
868
- return this.page.getByTestId(n(t, d.ACTION_BUTTON)).textContent();
868
+ return this.page.getByTestId(n(t, w.ACTION_BUTTON)).textContent();
869
869
  }
870
870
  async closeAlert({ testId: t }) {
871
- await this.page.getByTestId(n(t, d.CLOSE_BUTTON)).click();
871
+ await this.page.getByTestId(n(t, w.CLOSE_BUTTON)).click();
872
872
  }
873
873
  async isAlertVisible({ testId: t }) {
874
- return await this.page.getByTestId(n(t, d.WRAPPER)).count() > 0;
874
+ return await this.page.getByTestId(n(t, w.WRAPPER)).count() > 0;
875
875
  }
876
876
  getAlertIconType({ testId: t }) {
877
- return this.page.getByTestId(n(t, d.WRAPPER)).getAttribute("class");
877
+ return this.page.getByTestId(n(t, w.WRAPPER)).getAttribute("class");
878
878
  }
879
879
  }
880
- class at {
880
+ class gt {
881
881
  constructor(t) {
882
882
  r(this, "page");
883
883
  this.page = t;
884
884
  }
885
885
  async waitForComponent({ testId: t }) {
886
- const e = `[data-testid='${t}-${C.FIELD}']`;
886
+ const e = `[data-testid='${t}-${B.FIELD}']`;
887
887
  await this.page.waitForSelector(e);
888
888
  }
889
889
  async addInput({ testId: t, text: e }) {
890
- await this.page.getByTestId(n(t, C.FIELD)).type(e);
890
+ await this.page.getByTestId(n(t, B.FIELD)).type(e);
891
891
  }
892
892
  async clearInput({ testId: t }) {
893
- await this.page.getByTestId(n(t, C.FIELD)).clear();
893
+ await this.page.getByTestId(n(t, B.FIELD)).clear();
894
894
  }
895
895
  getInput({ testId: t }) {
896
- return this.page.getByTestId(n(t, C.FIELD)).inputValue();
896
+ return this.page.getByTestId(n(t, B.FIELD)).inputValue();
897
897
  }
898
898
  getPlaceholderText({ testId: t }) {
899
- return this.page.getByTestId(n(t, C.FIELD)).getAttribute("placeholder");
899
+ return this.page.getByTestId(n(t, B.FIELD)).getAttribute("placeholder");
900
900
  }
901
901
  isDisabled({ testId: t }) {
902
- return this.page.getByTestId(n(t, C.FIELD)).isDisabled();
902
+ return this.page.getByTestId(n(t, B.FIELD)).isDisabled();
903
903
  }
904
904
  }
905
- class Bt extends at {
905
+ class Dt extends gt {
906
906
  getLabelText({ testId: t }) {
907
- return this.page.getByTestId(n(t, R.TEXT)).textContent();
907
+ return this.page.getByTestId(n(t, b.TEXT)).textContent();
908
908
  }
909
909
  hasFieldHelpText({ testId: t }) {
910
- return this.page.getByTestId(n(t, E.CONTAINER)).isVisible();
910
+ return this.page.getByTestId(n(t, I.CONTAINER)).isVisible();
911
911
  }
912
912
  getFieldHelpText({ testId: t }) {
913
- return this.page.getByTestId(n(t, E.CONTAINER)).textContent();
913
+ return this.page.getByTestId(n(t, I.CONTAINER)).textContent();
914
914
  }
915
915
  }
916
- class xt extends Z {
916
+ class kt extends Z {
917
917
  constructor(t) {
918
918
  super(t);
919
919
  }
@@ -936,37 +936,37 @@ class xt extends Z {
936
936
  return this.fieldHelpTextComponent.hasExtraTextIconType({ testId: t, type: e });
937
937
  }
938
938
  getSelectedLabel({ testId: t }) {
939
- return this.page.getByTestId(n(t, i.BUTTON_CONTENT)).textContent();
939
+ return this.page.getByTestId(n(t, c.BUTTON_CONTENT)).textContent();
940
940
  }
941
941
  async searchForItem({ testId: t, searchTerm: e }) {
942
- return await this.openDropdownComponent({ testId: t }), await this.page.getByTestId(n(t, l.FIELD)).fill(e), this.page.getByTestId(n(t, i.LIST_CONTAINER)).locator("ul > li span").first().textContent();
942
+ return await this.openDropdownComponent({ testId: t }), await this.page.getByTestId(n(t, l.FIELD)).fill(e), this.page.getByTestId(n(t, c.LIST_CONTAINER)).locator("ul > li span").first().textContent();
943
943
  }
944
944
  async isErrorText({ testId: t }) {
945
- return await this.page.getByTestId(n(t, E.TEXT)).count() > 0;
945
+ return await this.page.getByTestId(n(t, I.TEXT)).count() > 0;
946
946
  }
947
947
  async isDisabled({ testId: t }) {
948
- return (await this.page.getByTestId(n(t, i.TRIGGER)).locator(".button__container--disabled")).isVisible();
948
+ return (await this.page.getByTestId(n(t, c.TRIGGER)).locator(".button__container--disabled")).isVisible();
949
949
  }
950
950
  async clearAllOptions({ testId: t }) {
951
- await this.page.getByTestId(n(t, i.ACTION_CLEAR_ALL)).click();
951
+ await this.page.getByTestId(n(t, c.ACTION_CLEAR_ALL)).click();
952
952
  }
953
953
  isSelectAllChecked({ testId: t }) {
954
- return this.page.getByTestId(n(t, i.SELECT_ALL)).locator(".checkbox.input").isChecked();
954
+ return this.page.getByTestId(n(t, c.SELECT_ALL)).locator(".checkbox.input").isChecked();
955
955
  }
956
956
  isSelectAllIndeterminate({ testId: t }) {
957
- return this.page.getByTestId(n(t, i.SELECT_ALL)).locator(".icon.indeterminate").isVisible();
957
+ return this.page.getByTestId(n(t, c.SELECT_ALL)).locator(".icon.indeterminate").isVisible();
958
958
  }
959
959
  async removeChipSelection({ testId: t }) {
960
- await this.page.getByTestId(n(t, i.BUTTON_CLEAR)).click();
960
+ await this.page.getByTestId(n(t, c.BUTTON_CLEAR)).click();
961
961
  }
962
962
  getDropdownOptions({ testId: t }) {
963
- return this.page.getByTestId(n(t, i.LIST_CONTAINER)).locator(".list").allTextContents();
963
+ return this.page.getByTestId(n(t, c.LIST_CONTAINER)).locator(".list").allTextContents();
964
964
  }
965
965
  async expandTreeNode({
966
966
  testId: t,
967
967
  nodeName: e
968
968
  }) {
969
- const o = this.page.getByTestId(n(t, i.LIST_CONTAINER)).locator(".item--multi", { hasText: e }).locator(".tree-main-arrow-wrapper");
969
+ const o = this.page.getByTestId(n(t, c.LIST_CONTAINER)).locator(".item--multi", { hasText: e }).locator(".tree-main-arrow-wrapper");
970
970
  if (await o.isVisible())
971
971
  await o.click();
972
972
  else
@@ -979,9 +979,9 @@ class xt extends Z {
979
979
  shouldExpand: s = !1
980
980
  }) {
981
981
  await this.openDropdownComponent({ testId: t }), s && await this.expandTreeNode({ testId: t, nodeName: e });
982
- const c = this.page.getByTestId(n(t, i.LIST_CONTAINER)).locator(`text=${o}`);
983
- if (await c.isVisible())
984
- await c.click();
982
+ const i = this.page.getByTestId(n(t, c.LIST_CONTAINER)).locator(`text=${o}`);
983
+ if (await i.isVisible())
984
+ await i.click();
985
985
  else
986
986
  throw new Error(`Option with text "${o}" not found in the dropdown.`);
987
987
  }
@@ -1001,8 +1001,8 @@ class xt extends Z {
1001
1001
  await this.clickOnApply({ testId: t });
1002
1002
  }
1003
1003
  }
1004
- const nt = ".sortable-item";
1005
- class At {
1004
+ const Tt = ".sortable-item";
1005
+ class Ft {
1006
1006
  constructor(t) {
1007
1007
  r(this, "page");
1008
1008
  this.page = t;
@@ -1021,14 +1021,14 @@ class At {
1021
1021
  async sortItem(t, e, o) {
1022
1022
  const s = await this.page.getByTestId(
1023
1023
  n(t, "sortable-list-item")
1024
- ), c = s.nth(e), p = s.nth(o);
1025
- await c.dragTo(p);
1024
+ ), i = s.nth(e), p = s.nth(o);
1025
+ await i.dragTo(p);
1026
1026
  }
1027
1027
  async verifyOrder(t, e) {
1028
- return (await this.getItems(t)).every((s, c) => s === e[c]);
1028
+ return (await this.getItems(t)).every((s, i) => s === e[i]);
1029
1029
  }
1030
1030
  async getListItemLocator({ testId: t, item: e, modifier: o }) {
1031
- return this.page.getByTestId(n(t, o)).locator(nt, {
1031
+ return this.page.getByTestId(n(t, o)).locator(Tt, {
1032
1032
  hasText: e
1033
1033
  });
1034
1034
  }
@@ -1095,8 +1095,8 @@ class At {
1095
1095
  item: e,
1096
1096
  isLockedItem: o
1097
1097
  });
1098
- const c = this.page.locator(".dropdown-list-wrapper");
1099
- await c.locator("ul.list li", { hasText: s }).click(), await c.waitFor({ state: "detached" });
1098
+ const i = this.page.locator(".dropdown-list-wrapper");
1099
+ await i.locator("ul.list li", { hasText: s }).click(), await i.waitFor({ state: "detached" });
1100
1100
  }
1101
1101
  async isMenuOpened() {
1102
1102
  return await this.page.locator(".dropdown-list-wrapper").count() > 0;
@@ -1108,8 +1108,8 @@ class At {
1108
1108
  modifier: s
1109
1109
  })).locator(".item.drag-allowed").first().boundingBox();
1110
1110
  if (p) {
1111
- const B = p.x, y = p.y;
1112
- await this.page.mouse.move(B, y), await this.page.mouse.down(), await this.page.mouse.move(B + 20, y - 20), await this.page.mouse.up();
1111
+ const u = p.x, y = p.y;
1112
+ await this.page.mouse.move(u, y), await this.page.mouse.down(), await this.page.mouse.move(u + 20, y - 20), await this.page.mouse.up();
1113
1113
  }
1114
1114
  }
1115
1115
  async getListOrder() {
@@ -1121,40 +1121,40 @@ class At {
1121
1121
  // returns array of booleans according to the search results in each group
1122
1122
  async verifySearchResultDisplayed({ testId: t, item: e }) {
1123
1123
  const o = [], s = await this.page.getByTestId(n(t, h.CONTAINER)).all();
1124
- let c;
1124
+ let i;
1125
1125
  for (const p of s)
1126
- c = await p.locator(".child-list span", { hasText: e }).count(), o.push(c > 0);
1126
+ i = await p.locator(".child-list span", { hasText: e }).count(), o.push(i > 0);
1127
1127
  return o;
1128
1128
  }
1129
1129
  async getSelectedItem(t) {
1130
1130
  return this.page.getByTestId(n(t, h.CONTAINER)).locator(".sortable-item--selected").textContent();
1131
1131
  }
1132
1132
  }
1133
- class Lt {
1133
+ class $t {
1134
1134
  constructor(t) {
1135
1135
  r(this, "page");
1136
1136
  this.page = t;
1137
1137
  }
1138
1138
  async waitForComponent({ testId: t }) {
1139
- const e = n(t, v.WRAPPER);
1139
+ const e = n(t, V.WRAPPER);
1140
1140
  await this.page.getByTestId(e).waitFor({ state: "visible" });
1141
1141
  }
1142
1142
  async selectView({ view: t, testId: e }) {
1143
- const o = `[text="${t}"]`, s = n(e, v.WRAPPER);
1143
+ const o = `[text="${t}"]`, s = n(e, V.WRAPPER);
1144
1144
  await (await this.page.getByTestId(s).locator(o)).click();
1145
1145
  }
1146
1146
  }
1147
- class Rt {
1147
+ class ft {
1148
1148
  constructor(t) {
1149
1149
  r(this, "page");
1150
1150
  this.page = t;
1151
1151
  }
1152
1152
  async waitForComponent({ testId: t }) {
1153
- const e = n(t, m.WRAPPER);
1153
+ const e = n(t, L.WRAPPER);
1154
1154
  await this.page.getByTestId(e).waitFor({ state: "visible" });
1155
1155
  }
1156
1156
  async openDateRangeComponent(t) {
1157
- const e = n(t, m.TRIGGER);
1157
+ const e = n(t, L.TRIGGER);
1158
1158
  await (await this.page.getByTestId(e)).click();
1159
1159
  }
1160
1160
  async selectDateRangeMenu({
@@ -1162,7 +1162,7 @@ class Rt {
1162
1162
  option: e
1163
1163
  }) {
1164
1164
  await this.openDateRangeComponent(t);
1165
- const o = n(t, m.MENU);
1165
+ const o = n(t, L.MENU);
1166
1166
  await (await this.page.getByTestId(
1167
1167
  `${o}-${e}`
1168
1168
  )).click();
@@ -1173,7 +1173,7 @@ class Rt {
1173
1173
  startMonthYear: e,
1174
1174
  startDate: o,
1175
1175
  endMonthYear: s,
1176
- endDate: c
1176
+ endDate: i
1177
1177
  }) {
1178
1178
  await this.openDateRangeComponent(t);
1179
1179
  const p = await this.goToStartMonthYear(e);
@@ -1182,7 +1182,7 @@ class Rt {
1182
1182
  o
1183
1183
  )).click();
1184
1184
  const y = await this.goToEndMonthYear(s);
1185
- await (await this.getDayElement(y, c)).click();
1185
+ await (await this.getDayElement(y, i)).click();
1186
1186
  }
1187
1187
  async getDayElement(t, e) {
1188
1188
  const o = await t.locator(".date-wrapper").all();
@@ -1222,19 +1222,19 @@ class Rt {
1222
1222
  async clickOnApply(t) {
1223
1223
  const e = n(
1224
1224
  t,
1225
- m.ACTION_APPLY
1225
+ L.ACTION_APPLY
1226
1226
  );
1227
1227
  await (await this.page.getByTestId(e)).click();
1228
1228
  }
1229
1229
  async clickOnCancel(t) {
1230
1230
  const e = n(
1231
1231
  t,
1232
- m.ACTION_CANCEL
1232
+ L.ACTION_CANCEL
1233
1233
  );
1234
1234
  await (await this.page.getByTestId(e)).click();
1235
1235
  }
1236
1236
  async getDateRangeLabel(t) {
1237
- const e = n(t, m.TRIGGER);
1237
+ const e = n(t, L.TRIGGER);
1238
1238
  return (await this.page.getByTestId(e)).textContent();
1239
1239
  }
1240
1240
  createRangeLabel({
@@ -1243,7 +1243,7 @@ class Rt {
1243
1243
  endMonthYear: o,
1244
1244
  endDate: s
1245
1245
  }) {
1246
- const c = {
1246
+ const i = {
1247
1247
  January: "Jan",
1248
1248
  February: "Feb",
1249
1249
  March: "Mar",
@@ -1256,13 +1256,13 @@ class Rt {
1256
1256
  October: "Oct",
1257
1257
  November: "Nov",
1258
1258
  December: "Dec"
1259
- }, [p, B] = t.split(" "), y = c[p], [N, F] = o.split(" "), k = c[N];
1260
- return `${y} ${e}, ${B} - ${k} ${s}, ${F}`;
1259
+ }, [p, u] = t.split(" "), y = i[p], [C, S] = o.split(" "), P = i[C];
1260
+ return `${y} ${e}, ${u} - ${P} ${s}, ${S}`;
1261
1261
  }
1262
1262
  calculateDaysBetweenDates(t) {
1263
1263
  const [e, o] = t.split(" - ");
1264
- function s(N) {
1265
- const [F, k] = N.split(", "), [W, K] = F.split(" "), U = {
1264
+ function s(C) {
1265
+ const [S, P] = C.split(", "), [_, v] = S.split(" "), k = {
1266
1266
  Jan: 0,
1267
1267
  Feb: 1,
1268
1268
  Mar: 2,
@@ -1275,40 +1275,158 @@ class Rt {
1275
1275
  Oct: 9,
1276
1276
  Nov: 10,
1277
1277
  Dec: 11
1278
- }[W];
1279
- if (U === void 0)
1280
- throw new Error(`Invalid month: ${W}`);
1281
- return new Date(parseInt(k), U, parseInt(K));
1278
+ }[_];
1279
+ if (k === void 0)
1280
+ throw new Error(`Invalid month: ${_}`);
1281
+ return new Date(parseInt(P), k, parseInt(v));
1282
1282
  }
1283
- const c = s(e), y = (s(o).getTime() - c.getTime()) / (1e3 * 60 * 60 * 24);
1283
+ const i = s(e), y = (s(o).getTime() - i.getTime()) / (1e3 * 60 * 60 * 24);
1284
1284
  return Math.floor(y + 1);
1285
1285
  }
1286
1286
  }
1287
+ const q = ".header-texts .header-row", tt = ".container .font-body-2", ht = ".font-caption", et = ".legend__list li", z = `${et} ${tt}`, dt = "chart-legend-search-clear", ut = ".checkboxes svg.checked";
1288
+ class Gt {
1289
+ constructor(t) {
1290
+ r(this, "page");
1291
+ r(this, "inputComponent");
1292
+ r(this, "dropdownComponent");
1293
+ this.page = t, this.inputComponent = new N(t), this.dropdownComponent = new Z(t);
1294
+ }
1295
+ async waitForComponent(t) {
1296
+ const e = n(t, d.CONTAINER);
1297
+ await this.page.getByTestId(e).waitFor({ state: "visible" });
1298
+ }
1299
+ async getChartHeaderData({
1300
+ testId: t,
1301
+ chartTitle: e,
1302
+ extraChartIndex: o
1303
+ }) {
1304
+ var s, i, p;
1305
+ try {
1306
+ const u = o !== "" ? `${n(
1307
+ t,
1308
+ d.EXTRA_CHART
1309
+ )}-${o}-${d.HEADER}` : n(t, d.HEADER), y = o !== "" ? `${n(
1310
+ t,
1311
+ d.EXTRA_CHART
1312
+ )}-${o}-${d.TREND}` : n(t, d.TREND), C = await this.page.getByTestId(u), S = C.locator(q, {
1313
+ hasText: e
1314
+ }), P = C.locator(q).nth(1), _ = C.getByTestId(y), v = ((s = await S.textContent()) == null ? void 0 : s.trim().replace(":", "")) || null, J = ((i = await P.textContent()) == null ? void 0 : i.trim()) || null, k = ((p = await _.textContent()) == null ? void 0 : p.trim()) || null, at = await _.evaluate((nt) => {
1315
+ const H = nt.className;
1316
+ return H.includes("up") ? "up" : H.includes("down") ? "down" : H.includes("neutral") ? "neutral" : "unknown";
1317
+ });
1318
+ return {
1319
+ title: v,
1320
+ value: J,
1321
+ trend: k,
1322
+ trendDirection: at
1323
+ };
1324
+ } catch (u) {
1325
+ return console.error(
1326
+ `Failed to retrieve chart header data for testId: ${t}, chartTitle: ${e}`,
1327
+ u
1328
+ ), null;
1329
+ }
1330
+ }
1331
+ async getLegend(t) {
1332
+ return this.page.getByTestId(
1333
+ `${n(t, d.LEGEND)}-${d.LEGEND_CONTAINER}`
1334
+ );
1335
+ }
1336
+ async selectLegendItem({
1337
+ testId: t,
1338
+ itemToSelect: e
1339
+ }) {
1340
+ const s = await (await this.getLegend(t)).locator(z).all();
1341
+ for (const i of s)
1342
+ await i.textContent() === e && await i.click();
1343
+ }
1344
+ async clearLegendSearch(t) {
1345
+ const e = n(t, dt);
1346
+ await this.page.getByTestId(e).click();
1347
+ }
1348
+ async searchAndSelectLegendItems({
1349
+ testId: t,
1350
+ itemsToSelect: e
1351
+ }) {
1352
+ const o = n(t, d.LEGEND);
1353
+ for (const s of e)
1354
+ await this.inputComponent.addInput({
1355
+ testId: o,
1356
+ text: s
1357
+ }), await this.selectLegendItem({
1358
+ testId: t,
1359
+ itemToSelect: s
1360
+ }), await this.clearLegendSearch(t);
1361
+ }
1362
+ async getLegendItems(t) {
1363
+ const e = [], s = await (await this.getLegend(t)).locator(z).all();
1364
+ for (const i of s) {
1365
+ const p = await i.textContent();
1366
+ e.push(p);
1367
+ }
1368
+ return e;
1369
+ }
1370
+ async getSelectedItems(t) {
1371
+ const e = [], s = await (await this.getLegend(t)).locator(et).all();
1372
+ for (const i of s)
1373
+ if (await i.locator(ut).count() > 0) {
1374
+ const u = await i.locator(tt).textContent(), y = await i.locator(ht).textContent();
1375
+ e.push({ itemLabel: u, subLabel: y });
1376
+ }
1377
+ return e;
1378
+ }
1379
+ async sortBy({ testId: t, sortType: e }) {
1380
+ const o = `${n(
1381
+ t,
1382
+ d.LEGEND
1383
+ )}-chart-legend-sort`;
1384
+ await this.page.getByTestId(o).click(), await this.dropdownComponent.selectDropdownOptionByName({
1385
+ testId: o,
1386
+ name: e,
1387
+ shouldOpen: !1
1388
+ });
1389
+ }
1390
+ async getSortOptions(t) {
1391
+ const e = `${n(
1392
+ t,
1393
+ d.LEGEND
1394
+ )}-chart-legend-sort`, o = {
1395
+ testId: e
1396
+ };
1397
+ await this.page.getByTestId(e).click();
1398
+ const s = await this.dropdownComponent.getDropdownOptionsV2(
1399
+ o
1400
+ );
1401
+ return await this.page.getByTestId(e).click(), s;
1402
+ }
1403
+ }
1287
1404
  export {
1288
- It as AlertComponent,
1289
- mt as AppHeaderComponent,
1290
- it as BannerComponent,
1291
- tt as ButtonComponent,
1292
- ct as ComponentBasePage,
1293
- Rt as DateRangeComponent,
1294
- rt as DialogComponent,
1405
+ _t as AlertComponent,
1406
+ Pt as AppHeaderComponent,
1407
+ Et as BannerComponent,
1408
+ lt as ButtonComponent,
1409
+ wt as ComponentBasePage,
1410
+ ft as DateRangeComponent,
1411
+ Ct as DialogComponent,
1295
1412
  Z as DropdownComponent,
1296
- lt as DropdownComponentV3,
1297
- H as FieldHelpTextComponent,
1298
- b as FieldLabelComponent,
1299
- Et as FormCardComponent,
1300
- wt as FormRowComponent,
1301
- pt as IncludeExcludeComponent,
1302
- et as InlineCopyComponent,
1303
- gt as InputsComponent,
1304
- yt as MultiBarComponent,
1305
- Ct as SearchComponent,
1306
- dt as SnackbarComponent,
1307
- At as SortableListComponent,
1308
- Lt as SwitchComponent,
1309
- ut as TableComponent,
1310
- Tt as TabsComponent,
1311
- Bt as TextAreaComponent,
1312
- ht as TooltipComponent,
1313
- xt as TreeDropdownComponent
1413
+ mt as DropdownComponentV3,
1414
+ Y as FieldHelpTextComponent,
1415
+ D as FieldLabelComponent,
1416
+ bt as FormCardComponent,
1417
+ Nt as FormRowComponent,
1418
+ It as IncludeExcludeComponent,
1419
+ pt as InlineCopyComponent,
1420
+ Bt as InputsComponent,
1421
+ Ot as MultiBarComponent,
1422
+ Gt as MultiChartComponent,
1423
+ St as SearchComponent,
1424
+ Rt as SnackbarComponent,
1425
+ Ft as SortableListComponent,
1426
+ $t as SwitchComponent,
1427
+ xt as TableComponent,
1428
+ Lt as TabsComponent,
1429
+ Dt as TextAreaComponent,
1430
+ At as TooltipComponent,
1431
+ kt as TreeDropdownComponent
1314
1432
  };