{"version":3,"file":"settings-window.min.js","sources":["settings-window.js"],"names":["BX","namespace","Grid","SettingsWindow","parent","this","popupItems","items","popup","sourceContent","applyButton","resetButton","cancelButton","init","prototype","bind","getContainer","proxy","_onContainerClick","addCustomEvent","window","_onColumnMoved","destroy","unbind","removeCustomEvent","getPopup","close","getSelectAllButton","selectAllButton","Utils","getByClass","contentContainer","settings","get","getUnselectAllButton","unselectAllButton","reset","allColumns","event","hasClass","target","_onSettingsButtonClick","show","getSourceContent","getPopupItems","popupContainer","getSelectedColumns","columns","getItems","forEach","column","isSelected","push","getId","restoreColumns","restore","sortItems","restoreLastColumns","current","restoreState","updateColumnsState","updateState","saveColumns","callback","options","getUserOptions","columnNames","getColumnNames","batch","action","getAction","join","custom_names","isForAll","view_id","set_default_settings","delete_user_settings","delegate","reloadTable","disableAllColumnslabelEdit","disableEdit","getAllColumns","map","isShowedColumn","columnName","some","name","showedColumns","counter","Object","keys","getColumnByName","parentNode","appendChild","names","getTitle","getBySelector","onResetButtonClick","getActionsPanel","confirmDialog","CONFIRM","CONFIRM_MESSAGE","arParams","CONFIRM_RESET_MESSAGE","enableWait","getApplyButton","disableWait","getResetButtonId","getContainerId","onApplyButtonClick","getParam","unselectForAllCheckbox","getApplyButtonId","getCancelButtonId","getCancelButton","checkbox","getForAllCheckbox","checked","buttonNode","addClass","removeClass","createTitle","tmpDiv","create","pageTitleNode","pageTitle","innerText","innerHTML","firstChild","getPopupId","createPopup","PopupWindow","titleBar","autoHide","overlay","width","closeIcon","closeByEsc","contentNoPaddings","content","events","onPopupClose","_onPopupClose","getResetButton","selectAll","unselectAll","SettingsWindowColumn","select","unselect"],"mappings":"CAAC,WACA,YAEAA,IAAGC,UAAU,UAObD,IAAGE,KAAKC,eAAiB,SAASC,GAEjCC,KAAKD,OAAS,IACdC,MAAKC,WAAa,IAClBD,MAAKE,MAAQ,IACbF,MAAKG,MAAQ,IACbH,MAAKI,cAAgB,IACrBJ,MAAKK,YAAc,IACnBL,MAAKM,YAA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