'use strict';
import { tablePoClickElementByResourceId } from './table-asserts.js';
import { elements } from '../../fd-toolbox/constants/elements.js';
import { tableElementSuffixes } from '../../level2/fd-component-toolbox/constants/table-element-suffixes.js';
import { elementSuffixes } from '../../fd-toolbox/constants/element-suffixes.js';
import { getElementId } from '../../fd-toolbox/html/element-ids.js';
import { getUiTester } from '../ui-tester/global-ui-test.js';
import { getBrowserDialogTableId } from '../../level2/meta/browsers/browser/browser-dialog/BrowserDialog.funcs.js';
import { getMultiBrowserTableContextId, getMultiBrowserOkButtonId } from '../../level2/meta/browsers/base-multi-browser/base-multi-browser-dialog/BaseMultiBrowserDialog.funcs.js';
import { filterPoGetResourceListId, filterPoGetResourceFilterListId } from './filter-po.js';

var __defProp=Object['defineProperty'],__name=(_0x47c59b,_0x4b7584)=>__defProp(_0x47c59b,'name',{'value':_0x4b7584,'configurable':!![]});async function browserPoSetRelation(_0xf75ec8,_0x5b32be,_0x265c61){const _0xc1d32f=getUiTester(),_0x45ec87=getElementId(''+_0xf75ec8+elements['browser']['browserIcon'],_0x265c61);await _0xc1d32f['click'](_0x45ec87),await tablePoClickElementByResourceId(getBrowserDialogTableId(),_0x5b32be,tableElementSuffixes['row']);}__name(browserPoSetRelation,'browserPoSetRelation');async function browserPoSetBrowserFilterValue(_0x40c145,_0x32575d,_0x2755aa=-0x1*0xdd5+0x1acd+-0xcf8){const _0x554bb9=getUiTester(),_0x3c1b0f=filterPoGetResourceListId(_0x32575d,_0x2755aa),_0x474f14=filterPoGetResourceFilterListId(_0x3c1b0f,-0x1859*-0x1+0x5f9*-0x1+0x930*-0x2),_0x5aed25=getElementId(''+_0x40c145+elementSuffixes['filter'],_0x474f14,_0x2755aa),_0x58c085=getElementId(elementSuffixes['button'],_0x5aed25),_0xc35094=getMultiBrowserTableContextId(),_0xa77fe=getElementId(_0xc35094,tableElementSuffixes['row']);await _0x554bb9['selectDropdownOption'](_0x58c085,_0xa77fe);const _0x20cc81=getMultiBrowserOkButtonId();await _0x554bb9['click'](_0x20cc81);}__name(browserPoSetBrowserFilterValue,'browserPoSetBrowserFilterValue');

export { browserPoSetBrowserFilterValue, browserPoSetRelation };
