1define("Controls-DataEnv/listHeavy",["Types/source","Controls/listsCommonLogic","Controls-DataEnv/staticLoader","require","exports","Controls-DataEnv/abstractList","Controls-DataEnv/listLoader","Controls-DataEnv/list"],(function(e,t,i,o,s,r,n,l){var a,c,d,u,h,_,C,v;return Object.defineProperty(s,"__esModule",{value:!0}),a=function(e,t,i,o,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HeavyListController=void 0;const{createSelectionModel:r}=i.Initializer.selection,{getOperationsPanelStateByCollection:n}=i.Initializer.operationsPanel,{initMarkedKey:l}=i.Initializer.marker,{source:{reloadItem:a,reloadItems:c}}=i.ListActionCreators;class d extends i.ListController{constructor(){super(...arguments),this._skipSetCollection=!1,this._isPrivateCollectionMoreActual=!1,this._ignoreInitCollectionSync=!1,this._baseControlAPI=null}get collection(){return this._collection}observeChanges(e=this.state){this.subscribe(e)}unobserveChanges(e=this.state){this.unsubscribe(e)}initState(e,t){return this._forceCollectionUpdate=!!t.task88221034059907,this._ignoreInitCollectionSync=!!t.ignoreInitCollectionSync,super.initState(e,{...t,viewMode:t.viewMode||"table"})}_afterInitState(e,t,i){if(super._afterInitState(e,t,i),i.collection)this._collection=i.collection;if(this._collection)this._initActions(i,this._collection)}_addAction(e){if(this._savedStateToUpdateLatter){const e=this._savedStateToUpdateLatter;this._savedStateToUpdateLatter=void 0,this.setState(e)}super._addAction(e)}applyState(e){if(this._savedStateToUpdateLatter){const t=this._savedStateToUpdateLatter;this._savedStateToUpdateLatter=void 0,this.applyState({...t,...e})}else super.applyState(e)}async startUpdateSession(){if(this.isDestroyed())return this.state;this.unobserveChanges();const e=await super.startUpdateSession();return this.observeChanges(),e}_onSnapshot(e){var t;if(this._collection!==e.collection)if(this._isPrivateCollectionMoreActual)e.collection=this._collection,this._isPrivateCollectionMoreActual=!1;else this._collection=e.collection;return null===(t=e.dataSet)||void 0===t||t.applyPaginationChanges(e.navigationChanges),this._applyChangesToCollection(e,this._collection),{...e,navigationChanges:void 0}}_initActions({itemActionsMap:e},t){if(e)t.updateCollectionState({itemActionsMap:e},!0)}_getMiddlewaresContextExtension(){return{...super._getMiddlewaresContextExtension(),getCollection:()=>this._collection,getSkipSetCollection:()=>this._skipSetCollection,onItemsReady:e=>{var t,i;return null===(i=(t=this.state).itemsReadyCallback)||void 0===i?void 0:i.call(t,e)}}}setCollection(e,t){if(e===this._collection)return!!this._collection;if(e&&!e["[Controls/display:Collection]"])return o.utils.getInteractorError("OBJ_IS_NOT_COLLECTION"),this._collection=void 0,!1;let i;try{i=e?(0,o.resolveCollectionType)(e):void 0}catch(e){i=void 0,o.utils.getInteractorError("ANY",e)}if(i)this._collection=null!=e?e:void 0,this._skipSetCollection=!0,this._isPrivateCollectionMoreActual=!0;else this._collection=void 0,this._skipSetCollection=!1;if(this._collection&&i&&!this._ignoreInitCollectionSync)this._syncStateAndCollection(t);return!!this._collection}_syncStateAndCollection(e){const t=this._collection;if(!t)return;if(e)t.updateCollectionState({markedKey:l({...this.state,collection:t})},!0);const i="hidden"!==this.state.multiSelectVisibility,o=e=>{for(const t of e.values())if(!1!==t)return!1;return!0};let s={};const a=this._savedStateToUpdateLatter||{};if(e&&!this.state.sliceOwnedByBrowser){const e=e=>{const i=t.collectionState[e],o=this.state[e];if(!t.collectionState.hasOwnProperty(e)||i===o)return[!1];else return[!0,i]};this._getCollectionPropertyNamesNeededToSync().forEach((t=>{const[i,o]=e(t);if(i)a[t]=o}))}if(i)if(!this.state.selectionModel.size){const e={...this.state,collection:t},i=r(e);if(!(o(i)&&o(this.state.selectionModel)))e.selectionModel=i,t.setSelectionModel(i),s={...s,selectionModel:i,...n(e)}}else t.setSelectionModel(this.state.selectionModel);if(Object.keys(s).length)this.setState({...a,...s});else if(Object.keys(a).length)this._savedStateToUpdateLatter=a}_getCollectionPropertyNamesNeededToSync(){const e=Object.keys(this.getStateInitializer().defaultState),t=new Set([...e,"results","resultsVisibility","resultsPosition","headerVisibility"]);return t.delete("hasMoreStorage"),t.delete("collectionVersion"),t}_updateCollectionByNewState(e,t){const{_collectionType:i,state:o}=this;if(i){if(o.items!==e.items&&!this._skipSetCollection)t.setCollection(e.items);if(e.metaData&&o.metaData!==e.metaData)t.setMetaData(e.metaData)}else if(this._forceCollectionUpdate&&o.items!==e.items)t.setCollection(e.items)}setPreloadedItems(e,t){return this._addAsyncAction(i.ListActionCreators.source.setPreloadedItems({direction:t,items:e}))}loadItemsToDirection(e,t,o){if("up"===e)return this._addAsyncAction(i.ListActionCreators.source.loadPrev(t,o));else return this._addAsyncAction(i.ListActionCreators.source.loadNext(t,o))}async load(e,t,...i){return this._load(void 0,e,t,...i)}reloadItem(e,t){return this._addAsyncAction(a(e,t))}reloadItems(e,t){if(Array.isArray(e))return this._addAsyncAction(c(e,t));else return this._addAsyncAction(a(e,t))}setBaseControlAPI(e){this._baseControlAPI=e}beginEdit(e){if(!this._baseControlAPI)return super.beginEdit(e);else return this._baseControlAPI.beginEdit(e)}beginAdd(e){if(!this._baseControlAPI)return super.beginAdd(e);else return this._baseControlAPI.beginAdd(e)}commitEdit(){if(!this._baseControlAPI)return super.commitEdit();else return this._baseControlAPI.commitEdit()}cancelEdit(){if(!this._baseControlAPI)return super.cancelEdit();else return this._baseControlAPI.cancelEdit()}moveItemUp(e,t){super.moveItems({selected:[e],excluded:[]},s.LOCAL_MOVE_POSITION.Before,t)}moveItemDown(e,t){super.moveItems({selected:[e],excluded:[]},s.LOCAL_MOVE_POSITION.After,t)}setItemsOrder(e,t=!0){this.applyState({itemsOrder:e})}}return t.HeavyListController=d,t}(0,{},l,r,e),c=a,d=function(e,t,i,o,s){"use strict";async function r(e){var t;if(!(null===(t=e.selectedKeys)||void 0===t?void 0:t.length))return Promise.resolve();else return(0,o.load)(s.LibPaths.Multiselection)}
1return Object.defineProperty(t,"__esModule",{value:!0}),t.default=async function(e,t,o,s,n){var l;const a={...e,isLatestInteractorVersion:!1};if(!a.searchViewMode)if(a.adaptiveSearchMode)a.searchViewMode="sameSearch";else a.searchViewMode="search";if(!a.viewMode&&!a.sliceOwnedByBrowser){const e=i.Initializer.search.initSearchValue(a.searchValue,a.searchParam);a.viewMode=null!==(l=i.Initializer.core.initViewMode(a,a.isLatestInteractorVersion,a.viewMode,e,a.searchViewMode))&&void 0!==l?l:"table"}const[c]=await Promise.all([(0,i.loadData)(a,t,o,s,n),r(a)]);return{...c,...s?{header:void 0,columns:void 0}:i.Initializer.columns.resolveColumnsStateSync(a,void 0,!1)}},t}(0,{},l,i,t),u=d,h=function(e,t,i,o,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HeavyListSlice=void 0;const{isDefined:r,isUndefined:n}=o.predicates;class l extends i.ListSlice{_createListController(...e){return new s.HeavyListController(...e)}observeChanges(e=this.state){this._getListController().observeChanges(e)}unobserveChanges(e=this.state){this._getListController().unobserveChanges(e)}setCollection(e,t){return this._getListController().setCollection(e,t)}setBaseControlAPI(e){this._getListController().setBaseControlAPI(e)}_setPreloadedItems(e,t){return this._getListController().setPreloadedItems(e,t)}_loadItemsToDirection(e,t,i){return this._getListController().loadItemsToDirection(e,t,i)}async load(e,t,...i){if(r(e)&&r(t)&&i.every(n))await o.utils.getInteractorError("DEPRECATED_USED","warn",`СпиÑоÑнÑй ÑÐ»Ð°Ð¹Ñ Ñ Ð¸Ð´ÐµÐ½ÑиÑикаÑоÑом ${this._name}`,"load","prev/next");return this._getListController().load(e,t,...i)}reloadItem(e,t){return this._getListController().reloadItem(e,t)}moveItemUp(e,t){this._getListController().moveItemUp(e,t)}moveItemDown(e,t){this._getListController().moveItemDown(e,t)}}return t.HeavyListSlice=l,t}(0,{},l,r,a),_=h,C=function(e,t,i,o,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={...i.factory,loadData:s.default,slice:o.HeavyListSlice,isHandlingTimeoutError:!0};return t.default=r,t}(0,{},l,h,d),v=C,s._private=s.ListActionCreators=s.FILTER_CONTEXT_NODE_NAME=s.LIST_CONTEXT_NODE_NAME=s.loadData=s.factory=s.ListController=s.Slice=void 0,Object.defineProperty(s,"Slice",{enumerable:!0,get:function(){return _.HeavyListSlice}}),Object.defineProperty(s,"ListController",{enumerable:!0,get:function(){return c.HeavyListController}}),Object.defineProperty(s,"factory",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(s,"loadData",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(s,"LIST_CONTEXT_NODE_NAME",{enumerable:!0,get:function(){return l.LIST_CONTEXT_NODE_NAME}}),Object.defineProperty(s,"FILTER_CONTEXT_NODE_NAME",{enumerable:!0,get:function(){return l.FILTER_CONTEXT_NODE_NAME}}),Object.defineProperty(s,"ListActionCreators",{enumerable:!0,get:function(){return l.ListActionCreators}}),s._private={...r._private,getErrorConfig:n.getErrorConfig,processError:n.processError},s}));
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.