@ironsource/shared-ui-e2e 2.1.12-test.53 → 2.1.12-test.54

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 || {}), G = /* @__PURE__ */ ((a) => (a.WRAPPER = "swicth-wrapper", a.BUTTON = "swicth-button", a.TEXT = "swicth-text", a))(G || {}), 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))(_ || {}), v = /* @__PURE__ */ ((a) => (a.TEXT = "ic-text", a.COPY_BTN = "ic-copy-btn", a))(v || {}), 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,94 +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
+ }
136
+ async selectDropdownOptionByNameV2({
137
+ testId: t,
138
+ name: e,
139
+ shouldOpen: o = !0
140
+ }) {
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();
135
142
  }
136
143
  async clearAllOptions({ testId: t }) {
137
- await this.page.getByTestId(n(t, i.ACTION_CLEAR_ALL)).click();
144
+ await this.page.getByTestId(n(t, c.ACTION_CLEAR_ALL)).click();
138
145
  }
139
146
  async selectMultipleItemsByIndex({
140
147
  testId: t,
@@ -143,7 +150,7 @@ class Y {
143
150
  }) {
144
151
  o && await this.openDropdownComponent({ testId: t }), await this.clearAllOptions({ testId: t });
145
152
  for (const s of e)
146
- 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();
147
154
  }
148
155
  async selectMultipleItemsByName({
149
156
  testId: t,
@@ -154,57 +161,57 @@ class Y {
154
161
  testId: t
155
162
  });
156
163
  for (const s of e)
157
- 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();
158
165
  }
159
166
  async clickOnApply({ testId: t }) {
160
- await this.page.getByTestId(n(t, i.ACTION_APPLY)).click();
167
+ await this.page.getByTestId(n(t, c.ACTION_APPLY)).click();
161
168
  }
162
169
  async clickOnCancel({ testId: t }) {
163
- await this.page.getByTestId(n(t, i.ACTION_CANCEL)).click();
170
+ await this.page.getByTestId(n(t, c.ACTION_CANCEL)).click();
164
171
  }
165
172
  async isValidationAppear({ testId: t }) {
166
- 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");
167
174
  }
168
175
  }
169
- class b {
176
+ class D {
170
177
  constructor(t) {
171
178
  r(this, "page");
172
179
  this.page = t;
173
180
  }
174
181
  getLabelText({ testId: t }) {
175
- return this.page.getByTestId(n(t, R.TEXT)).textContent();
182
+ return this.page.getByTestId(n(t, b.TEXT)).textContent();
176
183
  }
177
184
  isMandatory({ testId: t }) {
178
- return this.page.getByTestId(n(t, R.MANDATORY)).isVisible();
185
+ return this.page.getByTestId(n(t, b.MANDATORY)).isVisible();
179
186
  }
180
187
  async getHelpIconText({ testId: t }) {
181
188
  const e = await this.page.getByTestId(
182
- n(t, R.TOOLTIP)
189
+ n(t, b.TOOLTIP)
183
190
  );
184
191
  return await e.hover(), e.getAttribute("text");
185
192
  }
186
193
  }
187
- class H {
194
+ class Y {
188
195
  constructor(t) {
189
196
  r(this, "page");
190
197
  this.page = t;
191
198
  }
192
199
  hasExtraText({ testId: t }) {
193
- return this.page.getByTestId(n(t, E.TEXT)).isVisible();
200
+ return this.page.getByTestId(n(t, I.TEXT)).isVisible();
194
201
  }
195
202
  getExtraText({ testId: t }) {
196
- return this.page.getByTestId(n(t, E.TEXT)).textContent();
203
+ return this.page.getByTestId(n(t, I.TEXT)).textContent();
197
204
  }
198
205
  async hasExtraTextIconType({ testId: t, type: e }) {
199
- 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;
200
207
  }
201
208
  }
202
- class Z extends Y {
209
+ class Z extends Q {
203
210
  constructor(e) {
204
211
  super(e);
205
212
  r(this, "fieldLabelComponent");
206
213
  r(this, "fieldHelpTextComponent");
207
- this.fieldLabelComponent = new b(e), this.fieldHelpTextComponent = new H(e);
214
+ this.fieldLabelComponent = new D(e), this.fieldHelpTextComponent = new Y(e);
208
215
  }
209
216
  getDropdownTitle({ testId: e }) {
210
217
  return this.fieldLabelComponent.getLabelText({ testId: e });
@@ -225,54 +232,62 @@ class Z extends Y {
225
232
  return this.fieldHelpTextComponent.hasExtraTextIconType({ testId: e, type: o });
226
233
  }
227
234
  async getSelectedLabel({ testId: e }) {
228
- 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();
229
236
  if (await this.page.getByTestId(
230
- n(e, i.BUTTON_CONTENT_SUFFIX)
237
+ n(e, c.BUTTON_CONTENT_SUFFIX)
231
238
  ).isVisible({ timeout: 1e3 })) {
232
239
  const p = await this.page.getByTestId(
233
- n(e, i.BUTTON_CONTENT_SUFFIX)
240
+ n(e, c.BUTTON_CONTENT_SUFFIX)
234
241
  ).textContent();
235
242
  s = `${s}${p}`;
236
243
  }
237
244
  return s;
238
245
  }
239
246
  async searchForItem({ testId: e, searchTerm: o }) {
240
- 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();
241
248
  }
242
249
  async isErrorText({ testId: e }) {
243
- return await this.page.getByTestId(n(e, E.TEXT)).count() > 0;
250
+ return await this.page.getByTestId(n(e, I.TEXT)).count() > 0;
244
251
  }
245
252
  async isDisabled({ testId: e }) {
246
- 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();
247
254
  }
248
255
  isSelectAllChecked({ testId: e }) {
249
- 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();
250
257
  }
251
258
  isSelectAllIndeterminate({ testId: e }) {
252
- 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();
253
260
  }
254
261
  async removeChipSelection({ testId: e }) {
255
- await this.page.getByTestId(n(e, i.BUTTON_CLEAR)).click();
262
+ await this.page.getByTestId(n(e, c.BUTTON_CLEAR)).click();
256
263
  }
257
264
  getDropdownOptions({ testId: e }) {
258
- 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
+ }
267
+ async getDropdownOptionsV2({ testId: e }) {
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
+ o.push(p);
272
+ }
273
+ return o;
259
274
  }
260
275
  }
261
- class lt extends Y {
276
+ class mt extends Q {
262
277
  constructor(t) {
263
278
  super(t);
264
279
  }
265
280
  getDropdownTitle({ testId: t }) {
266
- 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();
267
282
  }
268
283
  getSelectedItem({ testId: t }) {
269
- 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();
270
285
  }
271
286
  async searchForItem({ testId: t, searchTerm: e }) {
272
- 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();
273
288
  }
274
289
  }
275
- class pt {
290
+ class It {
276
291
  constructor(t) {
277
292
  r(this, "page");
278
293
  this.page = t;
@@ -338,7 +353,7 @@ class pt {
338
353
  await this.openIncludeExcludeComponent(t), await this.page.getByTestId(n(t, T.SELECT_ALL)).click(), await this.clickOnApply(t);
339
354
  }
340
355
  }
341
- class J {
356
+ class M {
342
357
  constructor(t) {
343
358
  r(this, "page");
344
359
  this.page = t;
@@ -362,12 +377,12 @@ class J {
362
377
  return this.page.getByTestId(n(t, l.FIELD)).isDisabled();
363
378
  }
364
379
  }
365
- class gt extends J {
380
+ class Bt extends M {
366
381
  constructor(e) {
367
382
  super(e);
368
383
  r(this, "fieldLabelComponent");
369
384
  r(this, "fieldHelpTextComponent");
370
- this.fieldLabelComponent = new b(e), this.fieldHelpTextComponent = new H(e);
385
+ this.fieldLabelComponent = new D(e), this.fieldHelpTextComponent = new Y(e);
371
386
  }
372
387
  getInputsLabelText({ testId: e }) {
373
388
  return this.fieldLabelComponent.getLabelText({ testId: e });
@@ -447,50 +462,50 @@ class gt extends J {
447
462
  return (await this.page.getByTestId(n(e, l.WRAPPER)).getAttribute("class")).includes("variant-error");
448
463
  }
449
464
  }
450
- class Tt {
465
+ class Lt {
451
466
  constructor(t) {
452
467
  r(this, "page");
453
468
  this.page = t;
454
469
  }
455
470
  async waitForComponent({ testId: t }) {
456
- const e = `[data-testid='${t}-${A.WRAPPER}']`;
471
+ const e = `[data-testid='${t}-${R.WRAPPER}']`;
457
472
  await this.page.waitForSelector(e);
458
473
  }
459
474
  getSelectedTabText({ testId: t }) {
460
- 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();
461
476
  }
462
477
  async selectTab({ testId: t, tabName: e }) {
463
478
  const o = await this.getTabIndex({ testId: t, tabName: e });
464
479
  await this.page.getByTestId(
465
- n(t, `${A.TAB}-${o + 1}`)
480
+ n(t, `${R.TAB}-${o + 1}`)
466
481
  ).click();
467
482
  }
468
483
  async getTabIndex({ testId: t, tabName: e }) {
469
- 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);
470
485
  }
471
486
  async isTabDisabled({ testId: t, tabName: e }) {
472
487
  const o = await this.getTabIndex({ testId: t, tabName: e });
473
- 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();
474
489
  }
475
490
  }
476
- class ht {
491
+ class At {
477
492
  constructor(t) {
478
493
  r(this, "page");
479
494
  this.page = t;
480
495
  }
481
496
  async waitForComponent({ testId: t }) {
482
- const e = `[data-testid='${t}-${P.TRIGGER}']`;
497
+ const e = `[data-testid='${t}-${$.TRIGGER}']`;
483
498
  await this.page.waitForSelector(e);
484
499
  }
485
500
  getTooltipText({ testId: t }) {
486
- return this.page.getByTestId(`${t}-${P.TRIGGER}`).getAttribute("text");
501
+ return this.page.getByTestId(`${t}-${$.TRIGGER}`).getAttribute("text");
487
502
  }
488
503
  getTooltipHeaderText({ testId: t }) {
489
- return this.page.getByTestId(`${t}-${P.TRIGGER}`).getAttribute("header");
504
+ return this.page.getByTestId(`${t}-${$.TRIGGER}`).getAttribute("header");
490
505
  }
491
506
  }
492
- const x = ".table-row", $ = ".icon-wrapper", V = ".states", f = ".table-head-container", X = ".table-row.loading", M = 1e3;
493
- 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 {
494
509
  constructor(t) {
495
510
  r(this, "page");
496
511
  this.page = t;
@@ -503,7 +518,7 @@ class ut {
503
518
  return this.page.getByTestId(n(t, g.BODY_WRAPPER)).locator(x).count();
504
519
  }
505
520
  async getColumnHeaders({ testId: t }) {
506
- return this.page.getByTestId(n(t, g.TABLE)).locator(f).allTextContents();
521
+ return this.page.getByTestId(n(t, g.TABLE)).locator(U).allTextContents();
507
522
  }
508
523
  getTableLabel({ testId: t }) {
509
524
  return this.page.getByTestId(n(t, g.HEADER)).innerText();
@@ -512,7 +527,7 @@ class ut {
512
527
  return this.page.getByTestId(n(t, g.CONTAINER)).locator(".table-footer").innerText();
513
528
  }
514
529
  async clickOnHeaderByName(t) {
515
- await this.page.locator(f, {
530
+ await this.page.locator(U, {
516
531
  hasText: t
517
532
  }).click();
518
533
  }
@@ -523,7 +538,7 @@ class ut {
523
538
  await this.page.getByTestId(n(t, l.FIELD)).clear(), await this.waitForTableToLoad();
524
539
  }
525
540
  isArrowVisible({ testId: t, headerName: e }) {
526
- 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();
527
542
  }
528
543
  async scrollDownTableRows({ testId: t }) {
529
544
  const e = `[data-testid=${n(
@@ -533,27 +548,27 @@ class ut {
533
548
  await this.page.focus(e), await this.page.evaluate((o) => {
534
549
  const s = document.querySelector(o);
535
550
  s && (s.scrollTop = s.scrollHeight);
536
- }, e), await this.page.waitForTimeout(M);
551
+ }, e), await this.page.waitForTimeout(rt);
537
552
  }
538
553
  async waitForTableToLoad() {
539
- await this.page.waitForSelector(X, {
554
+ await this.page.waitForSelector(j, {
540
555
  state: "hidden"
541
556
  });
542
557
  }
543
558
  async waitingForTableLoadingToAppear() {
544
- await this.page.waitForSelector(X);
559
+ await this.page.waitForSelector(j);
545
560
  }
546
561
  async expandRow({ testId: t, rowValue: e }) {
547
- 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();
548
563
  }
549
564
  isRowExpanded({ testId: t, rowValue: e }) {
550
- 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();
551
566
  }
552
567
  async getExpandedRowContent({ testId: t, rowValue: e }) {
553
568
  return await this.isRowExpanded({
554
569
  testId: t,
555
570
  rowValue: e
556
- }) || 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();
557
572
  }
558
573
  isEmptyStateVisible({ testId: t }) {
559
574
  return this.page.getByTestId(n(t, g.TABLE)).locator(".empty-state").isVisible();
@@ -567,13 +582,13 @@ class ut {
567
582
  async clickOnRowCheckboxByRowValue({ testId: t, rowValue: e }) {
568
583
  await this.page.getByTestId(n(t, g.TABLE)).locator(x, {
569
584
  hasText: e
570
- }).locator(V).click();
585
+ }).locator(K).click();
571
586
  }
572
587
  getCheckedRowsNumber({ testId: t }) {
573
588
  return this.page.getByTestId(n(t, g.TABLE)).locator(x).locator(".icon.checked").count();
574
589
  }
575
590
  async clickOnSelectAllCheckbox({ testId: t }) {
576
- 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();
577
592
  }
578
593
  getTableLocator({ testId: t }) {
579
594
  return this.page.getByTestId(
@@ -584,7 +599,7 @@ class ut {
584
599
  return this.getTableLocator({ testId: t }).locator(e).allTextContents();
585
600
  }
586
601
  }
587
- class tt {
602
+ class lt {
588
603
  constructor(t) {
589
604
  r(this, "page");
590
605
  this.page = t;
@@ -606,125 +621,125 @@ class tt {
606
621
  return this.page.getByTestId(t).isDisabled();
607
622
  }
608
623
  }
609
- class dt {
624
+ class Rt {
610
625
  constructor(t) {
611
626
  r(this, "page");
612
627
  this.page = t;
613
628
  }
614
629
  async waitForComponent({ testId: t }) {
615
- const e = `[data-testid='${t}-${w.CONTAINER}']`;
630
+ const e = `[data-testid='${t}-${m.CONTAINER}']`;
616
631
  await this.page.waitForSelector(e);
617
632
  }
618
633
  getSnackbarTitle({ testId: t }) {
619
- return this.page.getByTestId(n(t, w.TITLE)).textContent();
634
+ return this.page.getByTestId(n(t, m.TITLE)).textContent();
620
635
  }
621
636
  async closeSnackbar({ testId: t }) {
622
- 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();
623
638
  }
624
639
  async waitForSnackbarToBeClosed({ testId: t }) {
625
- const e = `[data-testid='${t}-${w.CONTAINER}']`;
640
+ const e = `[data-testid='${t}-${m.CONTAINER}']`;
626
641
  await this.page.waitForSelector(e, { state: "detached" });
627
642
  }
628
643
  getSnackbarDescription({ testId: t }) {
629
- return this.page.getByTestId(n(t, w.MESSAGE)).textContent();
644
+ return this.page.getByTestId(n(t, m.MESSAGE)).textContent();
630
645
  }
631
646
  async clickOnActionButton({ testId: t, buttonName: e }) {
632
647
  const o = await this.getActionButtonIndex({
633
648
  testId: t,
634
649
  buttonName: e
635
- }), s = `[data-testid='${t}-${w.ACTION_BUTTON}-${o}']`;
650
+ }), s = `[data-testid='${t}-${m.ACTION_BUTTON}-${o}']`;
636
651
  await this.page.click(s);
637
652
  }
638
653
  async getActionButtonIndex({
639
654
  testId: t,
640
655
  buttonName: e
641
656
  }) {
642
- 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);
643
658
  }
644
659
  }
645
- class yt {
660
+ class Ot {
646
661
  constructor(t) {
647
662
  r(this, "page");
648
663
  this.page = t;
649
664
  }
650
665
  async waitForComponent({ testId: t }) {
651
- const e = `[data-testid='${t}-${L.WRAPPER}']`;
666
+ const e = `[data-testid='${t}-${O.WRAPPER}']`;
652
667
  await this.page.waitForSelector(e);
653
668
  }
654
669
  async closeMultiBar({ testId: t }) {
655
- 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();
656
671
  }
657
672
  getMultiBarCountText({ testId: t }) {
658
- 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();
659
674
  }
660
675
  async isMultiBarVisible({ testId: t }) {
661
- 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();
662
677
  }
663
678
  async clickOnActionButton({ testId: t, actionButtonId: e }) {
664
679
  await this.page.getByTestId(
665
680
  n(
666
681
  t,
667
- `${L.ACTION}-${e}`
682
+ `${O.ACTION}-${e}`
668
683
  )
669
684
  ).locator(".start-icon").click();
670
685
  }
671
686
  }
672
- class wt {
687
+ class Nt {
673
688
  constructor(t) {
674
689
  r(this, "page");
675
690
  this.page = t;
676
691
  }
677
692
  async waitForComponent({ testId: t }) {
678
- const e = `[data-testid='${t}-${R.TEXT}']`;
693
+ const e = `[data-testid='${t}-${b.TEXT}']`;
679
694
  await this.page.waitForSelector(e);
680
695
  }
681
696
  getFormRowTitle({ testId: t }) {
682
- return new b(this.page).getLabelText({ testId: t });
697
+ return new D(this.page).getLabelText({ testId: t });
683
698
  }
684
699
  isFormRowMandatory({ testId: t }) {
685
- return new b(this.page).isMandatory({ testId: t });
700
+ return new D(this.page).isMandatory({ testId: t });
686
701
  }
687
702
  getIconText({ testId: t }) {
688
- return new H(this.page).getExtraText({ testId: t });
703
+ return new Y(this.page).getExtraText({ testId: t });
689
704
  }
690
705
  }
691
- class Et {
706
+ class bt {
692
707
  constructor(t) {
693
708
  r(this, "page");
694
709
  this.page = t;
695
710
  }
696
711
  async waitForComponent({ testId: t }) {
697
- const e = `[data-testid='${t}-${I.CONTENT}']`;
712
+ const e = `[data-testid='${t}-${A.CONTENT}']`;
698
713
  await this.page.waitForSelector(e);
699
714
  }
700
715
  getCardTitle({ testId: t }) {
701
- return this.page.getByTestId(n(t, I.TITLE)).textContent();
716
+ return this.page.getByTestId(n(t, A.TITLE)).textContent();
702
717
  }
703
718
  getCardContentText({ testId: t }) {
704
- return this.page.getByTestId(n(t, I.CONTENT)).textContent();
719
+ return this.page.getByTestId(n(t, A.CONTENT)).textContent();
705
720
  }
706
721
  getCardLabelText({ testId: t }) {
707
- return new b(this.page).getLabelText({ testId: t });
722
+ return new D(this.page).getLabelText({ testId: t });
708
723
  }
709
724
  async clickOnSaveButton({ testId: t }) {
710
- await this.page.getByTestId(n(t, I.SAVE_BUTTON)).click();
725
+ await this.page.getByTestId(n(t, A.SAVE_BUTTON)).click();
711
726
  }
712
727
  async clickOnCancelButton({ testId: t }) {
713
- await this.page.getByTestId(n(t, I.CANCEL_BUTTON)).click();
728
+ await this.page.getByTestId(n(t, A.CANCEL_BUTTON)).click();
714
729
  }
715
730
  isSaveButtonLoading({ testId: t }) {
716
- return new tt(this.page).isButtonLoading({ testId: t });
731
+ return new lt(this.page).isButtonLoading({ testId: t });
717
732
  }
718
733
  async clearForm({
719
734
  testId: t,
720
735
  inputType: e
721
736
  }) {
722
- (await this.page.getByTestId(n(t, I.CONTENT)).locator(
737
+ (await this.page.getByTestId(n(t, A.CONTENT)).locator(
723
738
  `[data-testid='ad-units-form-card-form-card-content'] input[type='${e}']`
724
739
  ).all()).forEach((s) => s.clear());
725
740
  }
726
741
  }
727
- class O extends J {
742
+ class N extends M {
728
743
  constructor(t) {
729
744
  super(t);
730
745
  }
@@ -764,61 +779,61 @@ class O extends J {
764
779
  await (await this.page.getByTestId(n(t, l.WRAPPER)).locator(".password-visibility")).click();
765
780
  }
766
781
  }
767
- class Ct {
782
+ class St {
768
783
  constructor(t) {
769
784
  r(this, "page");
770
785
  this.page = t;
771
786
  }
772
787
  async waitForComponent({ testId: t }) {
773
- const e = `[data-testid='${t}-${D.CONTAINER}']`;
788
+ const e = `[data-testid='${t}-${G.CONTAINER}']`;
774
789
  await this.page.waitForSelector(e);
775
790
  }
776
791
  async searchInput({ testId: t, searchTerm: e }) {
777
- await new O(this.page).addInput({ testId: t, text: e });
792
+ await new N(this.page).addInput({ testId: t, text: e });
778
793
  }
779
794
  async clearInput({ testId: t }) {
780
- await new O(this.page).clearInput({ testId: t });
795
+ await new N(this.page).clearInput({ testId: t });
781
796
  }
782
797
  async clickOnXButton({ testId: t }) {
783
- 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();
784
799
  }
785
800
  isDisabled({ testId: t }) {
786
- return new O(this.page).isDisabled({ testId: t });
801
+ return new N(this.page).isDisabled({ testId: t });
787
802
  }
788
803
  getSearchPlaceholder({ testId: t }) {
789
- return new O(this.page).getPlaceholderText({ testId: t });
804
+ return new N(this.page).getPlaceholderText({ testId: t });
790
805
  }
791
806
  getSearchInputValue({ testId: t }) {
792
- return new O(this.page).getInputsFieldText({ testId: t });
807
+ return new N(this.page).getInputsFieldText({ testId: t });
793
808
  }
794
809
  }
795
- class et {
810
+ class pt {
796
811
  constructor(t) {
797
812
  r(this, "page");
798
813
  this.page = t;
799
814
  }
800
815
  async waitForComponent({ testId: t }) {
801
- const e = `[data-testid='${t}-${v.TEXT}']`;
816
+ const e = `[data-testid='${t}-${X.TEXT}']`;
802
817
  await this.page.waitForSelector(e);
803
818
  }
804
819
  getInlineCopyText({ testId: t }) {
805
- return this.page.getByTestId(`${t}-${v.TEXT}`).textContent();
820
+ return this.page.getByTestId(`${t}-${X.TEXT}`).textContent();
806
821
  }
807
822
  }
808
- class mt {
823
+ class Pt {
809
824
  constructor(t) {
810
825
  r(this, "page");
811
826
  this.page = t;
812
827
  }
813
828
  async waitForComponent({ testId: t }) {
814
- const e = `[data-testid='${t}-${_.TITLE}']`;
829
+ const e = `[data-testid='${t}-${f.TITLE}']`;
815
830
  await this.page.waitForSelector(e);
816
831
  }
817
832
  getHeaderTitle({ testId: t }) {
818
- return this.page.getByTestId(`${t}-${_.TITLE}`).textContent();
833
+ return this.page.getByTestId(`${t}-${f.TITLE}`).textContent();
819
834
  }
820
835
  getInlineCopyText({ testId: t }) {
821
- return new et(this.page).getInlineCopyText({
836
+ return new pt(this.page).getInlineCopyText({
822
837
  testId: t
823
838
  });
824
839
  }
@@ -826,79 +841,79 @@ class mt {
826
841
  testId: t,
827
842
  iconName: e
828
843
  }) {
829
- 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;
830
845
  }
831
846
  }
832
- class It {
847
+ class _t {
833
848
  constructor(t) {
834
849
  r(this, "page");
835
850
  this.page = t;
836
851
  }
837
852
  async waitForComponent({ testId: t }) {
838
- const e = `[data-testid='${t}-${d.WRAPPER}']`;
853
+ const e = `[data-testid='${t}-${w.WRAPPER}']`;
839
854
  await this.page.waitForSelector(e);
840
855
  }
841
856
  getAlertText({ testId: t }) {
842
- return this.page.getByTestId(n(t, d.MESSAGE)).textContent();
857
+ return this.page.getByTestId(n(t, w.MESSAGE)).textContent();
843
858
  }
844
859
  getAlertTitle({ testId: t }) {
845
- return this.page.getByTestId(n(t, d.TITLE)).textContent();
860
+ return this.page.getByTestId(n(t, w.TITLE)).textContent();
846
861
  }
847
862
  async clickOnActionButton({ testId: t }) {
848
863
  await this.page.click(
849
- n(t, d.ACTION_BUTTON)
864
+ n(t, w.ACTION_BUTTON)
850
865
  );
851
866
  }
852
867
  getActionButtonText({ testId: t }) {
853
- return this.page.getByTestId(n(t, d.ACTION_BUTTON)).textContent();
868
+ return this.page.getByTestId(n(t, w.ACTION_BUTTON)).textContent();
854
869
  }
855
870
  async closeAlert({ testId: t }) {
856
- await this.page.getByTestId(n(t, d.CLOSE_BUTTON)).click();
871
+ await this.page.getByTestId(n(t, w.CLOSE_BUTTON)).click();
857
872
  }
858
873
  async isAlertVisible({ testId: t }) {
859
- return await this.page.getByTestId(n(t, d.WRAPPER)).count() > 0;
874
+ return await this.page.getByTestId(n(t, w.WRAPPER)).count() > 0;
860
875
  }
861
876
  getAlertIconType({ testId: t }) {
862
- return this.page.getByTestId(n(t, d.WRAPPER)).getAttribute("class");
877
+ return this.page.getByTestId(n(t, w.WRAPPER)).getAttribute("class");
863
878
  }
864
879
  }
865
- class at {
880
+ class gt {
866
881
  constructor(t) {
867
882
  r(this, "page");
868
883
  this.page = t;
869
884
  }
870
885
  async waitForComponent({ testId: t }) {
871
- const e = `[data-testid='${t}-${C.FIELD}']`;
886
+ const e = `[data-testid='${t}-${B.FIELD}']`;
872
887
  await this.page.waitForSelector(e);
873
888
  }
874
889
  async addInput({ testId: t, text: e }) {
875
- await this.page.getByTestId(n(t, C.FIELD)).type(e);
890
+ await this.page.getByTestId(n(t, B.FIELD)).type(e);
876
891
  }
877
892
  async clearInput({ testId: t }) {
878
- await this.page.getByTestId(n(t, C.FIELD)).clear();
893
+ await this.page.getByTestId(n(t, B.FIELD)).clear();
879
894
  }
880
895
  getInput({ testId: t }) {
881
- return this.page.getByTestId(n(t, C.FIELD)).inputValue();
896
+ return this.page.getByTestId(n(t, B.FIELD)).inputValue();
882
897
  }
883
898
  getPlaceholderText({ testId: t }) {
884
- return this.page.getByTestId(n(t, C.FIELD)).getAttribute("placeholder");
899
+ return this.page.getByTestId(n(t, B.FIELD)).getAttribute("placeholder");
885
900
  }
886
901
  isDisabled({ testId: t }) {
887
- return this.page.getByTestId(n(t, C.FIELD)).isDisabled();
902
+ return this.page.getByTestId(n(t, B.FIELD)).isDisabled();
888
903
  }
889
904
  }
890
- class Bt extends at {
905
+ class Dt extends gt {
891
906
  getLabelText({ testId: t }) {
892
- return this.page.getByTestId(n(t, R.TEXT)).textContent();
907
+ return this.page.getByTestId(n(t, b.TEXT)).textContent();
893
908
  }
894
909
  hasFieldHelpText({ testId: t }) {
895
- return this.page.getByTestId(n(t, E.CONTAINER)).isVisible();
910
+ return this.page.getByTestId(n(t, I.CONTAINER)).isVisible();
896
911
  }
897
912
  getFieldHelpText({ testId: t }) {
898
- return this.page.getByTestId(n(t, E.CONTAINER)).textContent();
913
+ return this.page.getByTestId(n(t, I.CONTAINER)).textContent();
899
914
  }
900
915
  }
901
- class xt extends Z {
916
+ class kt extends Z {
902
917
  constructor(t) {
903
918
  super(t);
904
919
  }
@@ -921,37 +936,37 @@ class xt extends Z {
921
936
  return this.fieldHelpTextComponent.hasExtraTextIconType({ testId: t, type: e });
922
937
  }
923
938
  getSelectedLabel({ testId: t }) {
924
- return this.page.getByTestId(n(t, i.BUTTON_CONTENT)).textContent();
939
+ return this.page.getByTestId(n(t, c.BUTTON_CONTENT)).textContent();
925
940
  }
926
941
  async searchForItem({ testId: t, searchTerm: e }) {
927
- 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();
928
943
  }
929
944
  async isErrorText({ testId: t }) {
930
- return await this.page.getByTestId(n(t, E.TEXT)).count() > 0;
945
+ return await this.page.getByTestId(n(t, I.TEXT)).count() > 0;
931
946
  }
932
947
  async isDisabled({ testId: t }) {
933
- 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();
934
949
  }
935
950
  async clearAllOptions({ testId: t }) {
936
- await this.page.getByTestId(n(t, i.ACTION_CLEAR_ALL)).click();
951
+ await this.page.getByTestId(n(t, c.ACTION_CLEAR_ALL)).click();
937
952
  }
938
953
  isSelectAllChecked({ testId: t }) {
939
- 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();
940
955
  }
941
956
  isSelectAllIndeterminate({ testId: t }) {
942
- 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();
943
958
  }
944
959
  async removeChipSelection({ testId: t }) {
945
- await this.page.getByTestId(n(t, i.BUTTON_CLEAR)).click();
960
+ await this.page.getByTestId(n(t, c.BUTTON_CLEAR)).click();
946
961
  }
947
962
  getDropdownOptions({ testId: t }) {
948
- 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();
949
964
  }
950
965
  async expandTreeNode({
951
966
  testId: t,
952
967
  nodeName: e
953
968
  }) {
954
- 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");
955
970
  if (await o.isVisible())
956
971
  await o.click();
957
972
  else
@@ -964,9 +979,9 @@ class xt extends Z {
964
979
  shouldExpand: s = !1
965
980
  }) {
966
981
  await this.openDropdownComponent({ testId: t }), s && await this.expandTreeNode({ testId: t, nodeName: e });
967
- const c = this.page.getByTestId(n(t, i.LIST_CONTAINER)).locator(`text=${o}`);
968
- if (await c.isVisible())
969
- 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();
970
985
  else
971
986
  throw new Error(`Option with text "${o}" not found in the dropdown.`);
972
987
  }
@@ -986,8 +1001,8 @@ class xt extends Z {
986
1001
  await this.clickOnApply({ testId: t });
987
1002
  }
988
1003
  }
989
- const nt = ".sortable-item";
990
- class At {
1004
+ const Tt = ".sortable-item";
1005
+ class Ft {
991
1006
  constructor(t) {
992
1007
  r(this, "page");
993
1008
  this.page = t;
@@ -1006,14 +1021,14 @@ class At {
1006
1021
  async sortItem(t, e, o) {
1007
1022
  const s = await this.page.getByTestId(
1008
1023
  n(t, "sortable-list-item")
1009
- ), c = s.nth(e), p = s.nth(o);
1010
- await c.dragTo(p);
1024
+ ), i = s.nth(e), p = s.nth(o);
1025
+ await i.dragTo(p);
1011
1026
  }
1012
1027
  async verifyOrder(t, e) {
1013
- return (await this.getItems(t)).every((s, c) => s === e[c]);
1028
+ return (await this.getItems(t)).every((s, i) => s === e[i]);
1014
1029
  }
1015
1030
  async getListItemLocator({ testId: t, item: e, modifier: o }) {
1016
- return this.page.getByTestId(n(t, o)).locator(nt, {
1031
+ return this.page.getByTestId(n(t, o)).locator(Tt, {
1017
1032
  hasText: e
1018
1033
  });
1019
1034
  }
@@ -1080,8 +1095,8 @@ class At {
1080
1095
  item: e,
1081
1096
  isLockedItem: o
1082
1097
  });
1083
- const c = this.page.locator(".dropdown-list-wrapper");
1084
- 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" });
1085
1100
  }
1086
1101
  async isMenuOpened() {
1087
1102
  return await this.page.locator(".dropdown-list-wrapper").count() > 0;
@@ -1093,8 +1108,8 @@ class At {
1093
1108
  modifier: s
1094
1109
  })).locator(".item.drag-allowed").first().boundingBox();
1095
1110
  if (p) {
1096
- const B = p.x, y = p.y;
1097
- 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();
1098
1113
  }
1099
1114
  }
1100
1115
  async getListOrder() {
@@ -1106,42 +1121,40 @@ class At {
1106
1121
  // returns array of booleans according to the search results in each group
1107
1122
  async verifySearchResultDisplayed({ testId: t, item: e }) {
1108
1123
  const o = [], s = await this.page.getByTestId(n(t, h.CONTAINER)).all();
1109
- let c;
1124
+ let i;
1110
1125
  for (const p of s)
1111
- 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);
1112
1127
  return o;
1113
1128
  }
1114
1129
  async getSelectedItem(t) {
1115
1130
  return this.page.getByTestId(n(t, h.CONTAINER)).locator(".sortable-item--selected").textContent();
1116
1131
  }
1117
1132
  }
1118
- class Lt {
1133
+ class $t {
1119
1134
  constructor(t) {
1120
1135
  r(this, "page");
1121
1136
  this.page = t;
1122
1137
  }
1123
1138
  async waitForComponent({ testId: t }) {
1124
- const e = n(t, G.WRAPPER);
1139
+ const e = n(t, V.WRAPPER);
1125
1140
  await this.page.getByTestId(e).waitFor({ state: "visible" });
1126
1141
  }
1127
1142
  async selectView({ view: t, testId: e }) {
1128
- const o = `[text="${t}"]`;
1129
- console.log(o);
1130
- const s = n(e, G.WRAPPER);
1143
+ const o = `[text="${t}"]`, s = n(e, V.WRAPPER);
1131
1144
  await (await this.page.getByTestId(s).locator(o)).click();
1132
1145
  }
1133
1146
  }
1134
- class Rt {
1147
+ class ft {
1135
1148
  constructor(t) {
1136
1149
  r(this, "page");
1137
1150
  this.page = t;
1138
1151
  }
1139
1152
  async waitForComponent({ testId: t }) {
1140
- const e = n(t, m.WRAPPER);
1153
+ const e = n(t, L.WRAPPER);
1141
1154
  await this.page.getByTestId(e).waitFor({ state: "visible" });
1142
1155
  }
1143
1156
  async openDateRangeComponent(t) {
1144
- const e = n(t, m.TRIGGER);
1157
+ const e = n(t, L.TRIGGER);
1145
1158
  await (await this.page.getByTestId(e)).click();
1146
1159
  }
1147
1160
  async selectDateRangeMenu({
@@ -1149,7 +1162,7 @@ class Rt {
1149
1162
  option: e
1150
1163
  }) {
1151
1164
  await this.openDateRangeComponent(t);
1152
- const o = n(t, m.MENU);
1165
+ const o = n(t, L.MENU);
1153
1166
  await (await this.page.getByTestId(
1154
1167
  `${o}-${e}`
1155
1168
  )).click();
@@ -1160,7 +1173,7 @@ class Rt {
1160
1173
  startMonthYear: e,
1161
1174
  startDate: o,
1162
1175
  endMonthYear: s,
1163
- endDate: c
1176
+ endDate: i
1164
1177
  }) {
1165
1178
  await this.openDateRangeComponent(t);
1166
1179
  const p = await this.goToStartMonthYear(e);
@@ -1169,7 +1182,7 @@ class Rt {
1169
1182
  o
1170
1183
  )).click();
1171
1184
  const y = await this.goToEndMonthYear(s);
1172
- await (await this.getDayElement(y, c)).click();
1185
+ await (await this.getDayElement(y, i)).click();
1173
1186
  }
1174
1187
  async getDayElement(t, e) {
1175
1188
  const o = await t.locator(".date-wrapper").all();
@@ -1209,19 +1222,19 @@ class Rt {
1209
1222
  async clickOnApply(t) {
1210
1223
  const e = n(
1211
1224
  t,
1212
- m.ACTION_APPLY
1225
+ L.ACTION_APPLY
1213
1226
  );
1214
1227
  await (await this.page.getByTestId(e)).click();
1215
1228
  }
1216
1229
  async clickOnCancel(t) {
1217
1230
  const e = n(
1218
1231
  t,
1219
- m.ACTION_CANCEL
1232
+ L.ACTION_CANCEL
1220
1233
  );
1221
1234
  await (await this.page.getByTestId(e)).click();
1222
1235
  }
1223
1236
  async getDateRangeLabel(t) {
1224
- const e = n(t, m.TRIGGER);
1237
+ const e = n(t, L.TRIGGER);
1225
1238
  return (await this.page.getByTestId(e)).textContent();
1226
1239
  }
1227
1240
  createRangeLabel({
@@ -1230,7 +1243,7 @@ class Rt {
1230
1243
  endMonthYear: o,
1231
1244
  endDate: s
1232
1245
  }) {
1233
- const c = {
1246
+ const i = {
1234
1247
  January: "Jan",
1235
1248
  February: "Feb",
1236
1249
  March: "Mar",
@@ -1243,13 +1256,13 @@ class Rt {
1243
1256
  October: "Oct",
1244
1257
  November: "Nov",
1245
1258
  December: "Dec"
1246
- }, [p, B] = t.split(" "), y = c[p], [N, F] = o.split(" "), k = c[N];
1247
- 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}`;
1248
1261
  }
1249
1262
  calculateDaysBetweenDates(t) {
1250
1263
  const [e, o] = t.split(" - ");
1251
- function s(N) {
1252
- const [F, k] = N.split(", "), [W, K] = F.split(" "), U = {
1264
+ function s(C) {
1265
+ const [S, P] = C.split(", "), [_, v] = S.split(" "), k = {
1253
1266
  Jan: 0,
1254
1267
  Feb: 1,
1255
1268
  Mar: 2,
@@ -1262,40 +1275,158 @@ class Rt {
1262
1275
  Oct: 9,
1263
1276
  Nov: 10,
1264
1277
  Dec: 11
1265
- }[W];
1266
- if (U === void 0)
1267
- throw new Error(`Invalid month: ${W}`);
1268
- 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));
1269
1282
  }
1270
- 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);
1271
1284
  return Math.floor(y + 1);
1272
1285
  }
1273
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
+ }
1274
1404
  export {
1275
- It as AlertComponent,
1276
- mt as AppHeaderComponent,
1277
- it as BannerComponent,
1278
- tt as ButtonComponent,
1279
- ct as ComponentBasePage,
1280
- Rt as DateRangeComponent,
1281
- 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,
1282
1412
  Z as DropdownComponent,
1283
- lt as DropdownComponentV3,
1284
- H as FieldHelpTextComponent,
1285
- b as FieldLabelComponent,
1286
- Et as FormCardComponent,
1287
- wt as FormRowComponent,
1288
- pt as IncludeExcludeComponent,
1289
- et as InlineCopyComponent,
1290
- gt as InputsComponent,
1291
- yt as MultiBarComponent,
1292
- Ct as SearchComponent,
1293
- dt as SnackbarComponent,
1294
- At as SortableListComponent,
1295
- Lt as SwitchComponent,
1296
- ut as TableComponent,
1297
- Tt as TabsComponent,
1298
- Bt as TextAreaComponent,
1299
- ht as TooltipComponent,
1300
- 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
1301
1432
  };