text: {"version":3,"sources":["catalog_panel.js"],"names":["BX","namespace","addClass","Landing","Utils","create","append","debounce","trim","bind","proxy","setTextContent","htmlToElement","remove","style","isArray","prepend","data","encodeDataValue","TYPE_CATALOG_SECTION","TYPE_CATALOG_ELEMENT","TYPE_CATALOG_ALL","UI","Panel","Catalog","id","Content","apply","this","arguments","searchContainer","createSearchContainer","listContainer","createListContainer","searchField","createSearchField","typeSwitcher","createTypeSwitcher","iBlockSwitcher","createIblockSwitcher","resolver","iblocks","layout","overlay","title","message","getIblocks","length","margin-top","content","document","body","getInstance","instance","prototype","constructor","__proto__","superClass","search","query","requestData","replace","type","getValue","iblock","queryParams","action","Backend","Field","ButtonGroup","items","name","value","onChange","onSearchTypeChange","Dropdown","onIblockChange","onSearch","Text","placeholder","textOnly","onValueChange","props","className","renderResponse","response","oldResult","querySelector","scrollTop","map","item","subType","image","chain","reduce","accumulator","chainItem","push","join","initResponseItems","forEach","index","children","onItemClick","show","entityTypes","call","adjustIblockSwitcher","adjustEntityTypes","adjustSearchPlaceholder","Promise","resolve","getEntityTypes","input","data-placeholder","buttons","button","hidden","includes","setValue","display","loaderContainer","top","showLoader","clearTimeout","searchTimeout","setTimeout","then","hideLoader","loader","Loader","offset","hide"],"mappings":"CAAC,WACA,aAEAA,GAAGC,UAAU,uBAEb,IAAIC,EAAWF,GAAGG,QAAQC,MAAMF,SAChC,IAAIG,EAASL,GAAGG,QAAQC,MAAMC,OAC9B,IAAIC,EAASN,GAAGG,QAAQC,MAAME,OAC9B,IAAIC,EAAWP,GAAGG,QAAQC,MAAMG,SAChC,IAAIC,EAAOR,GAAGG,QAAQC,MAAMI,KAC5B,IAAIC,EAAOT,GAAGG,QAAQC,MAAMK,KAC5B,IAAIC,EAAQV,GAAGG,QAAQC,MAAMM,MAC7B,IAAIC,EAAiBX,GAAGG,QAAQC,MAAMO,eACtC,IAAIC,EAAgBZ,GAAGG,QAAQC,MAAMQ,cACrC,IAAIC,EAASb,GAAGG,QAAQC,MAAMS,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