1define("WNCSabyGet/Widgets/filter",["require","exports","Types/entity","Types/chain","WasabyLoader/ModulesLoader","Application/Env","Types/source"],(function(e,t,i,r,a,o,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filterLoader=t.DYNAMIC_FILTER_PARENT=t.DYNAMIC_FILTER_PREFIX=t.DYNAMIC_FILTER_CACHE_KEY=void 0,t.DYNAMIC_FILTER_CACHE_KEY="sabyget-catalog-widget",t.DYNAMIC_FILTER_PREFIX="_characteristic_",t.DYNAMIC_FILTER_PARENT="Characteristic",t.filterLoader=async function(e,c={}){try{const o=(await(new l.SbisService).call("NomGlobalAPI.NomenclatureFilter",{Filter:i.Record.fromObject({...c.filter||{},Folder:e,...c.isComposite?{ViewModeComposite:2}:{}},new i.adapter.Sbis)})).getAll();if(null==o?void 0:o.getCount()){const[{getFilterItem:e},{getPriceFilterItem:i}]=await Promise.all([(0,a.loadAsync)("Characteristics/filter"),(0,a.loadAsync)("LocalCatalog/FilterLoader")]);return(0,r.factory)(o).map(((t,r)=>{var a;if("price"===t.get("Type"))return i(t.get("Option")||{items:[]});else if("tag"===t.get("Type"))return null;else return e({id:t.get("Id"),caption:t.get("Name"),type:t.get("Type"),editorOptions:t.get("Option")||{items:[]},characteristicsSource:new l.SbisService({endpoint:"NomGlobalAPI",binding:{query:"CharacteristicListDirectory"}}),characteristicsFilter:{uuid:null===(a=c.filter)||void 0===a?void 0:a.uuid}},!1)})).toArray().filter((e=>!!e)).map((e=>"Price"===e.name||"NomenclatureSet"===e.name||"FolderUI"===e.name?e:{...e,name:t.DYNAMIC_FILTER_PREFIX+e.name}))}}catch(e){o.logger.info("WNCSabyGet/Widgets/filter",e)}return[]}}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.