text: {"version":3,"sources":["source_field.js"],"names":["BX","namespace","addClass","Landing","Utils","hasClass","removeClass","isArray","isFunction","create","random","escapeHtml","append","slice","encodeDataValue","remove","data","bind","style","clone","offsetLeft","offsetTop","findParent","BaseCollection","Collection","UI","Field","Source","options","BaseField","apply","this","arguments","layout","fields","onChangeHandler","onChange","items","value","type","isPlainObject","source","filter","sort","getCurrentSource","filterStub","key","name","Loc","getMessage","length","button","createButtonField","grid","createGrid","input","sortByDropdown","createSortByField","by","undefined","sortOrderDropdown","createSortOrderField","order","valueLayout","createValueLayout","valueLayoutWrapper","createValueLayoutWrapper","header","setValue","currentSource","rootWindow","PageObject","getRootWindow","document","onDocumentClick","addCustomEvent","onSliderMessageReducer","prototype","constructor","__proto__","currentSourceId","find","item","buttonLayout","props","className","children","text","createTextNode","DropdownInline","title","toLowerCase","content","Button","BaseButton","onClick","onButtonClick","addPlaceholder","placeholder","attrs","data-item","url","html","events","click","onPlaceholderRemoveClick","onPlaceholderClick","openSourceFilterSlider","onFilterSliderSave","getData","getValue","siteId","Env","getInstance","getOptions","site_id","SidePanel","Instance","open","cacheable","requestMethod","requestParams","landingParams","event","stopPropagation","getEventId","onFilterSliderCancel","getPlaceholders","call","querySelectorAll","preventEvent","preventDefault","getPlaceholderByItem","onValueChangeHandler","placeholders","getPopup","close","popup","onMenuItemClick","menuItem","getMenuWindow","getItemByValue","Boolean","defaultValue","Dom","clean","element","JSON","stringify","Tool","Menu","id","selector","bindElement","autoHide","map","escapeText","onclick","onPopupClose","parentElement","z-index","position","popupWindow","popupContainer","parent","body","showPopup","show","adjustPopupPosition","offsetParent","buttonTop","buttonLeft","buttonRect","getBoundingClientRect","popupRect","offsetY","popupWindowTop","height","popupWindowLeft","width","requestAnimationFrame","top","left","onInputClick","isShown","stubKey","reduce","acc","push","dataset","sortBy","sortOrder","isChanged","result","findItem","forEach","innerText","innerHTML","Object","assign"],"mappings":"CAAC,WACA,aAEAA,GAAGC,UAAU,uBAEb,IAAIC,EAAWF,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