1define("Catalog/slice",["i18n!Catalog","WasabyLoader/ModulesLoader","Types/entity","Controls/search","require","exports"],(function(e,t,o,r,a,i){var n,l,s,d,u,c,R,p,f,v,g,h,y,m,P,M,b,C;return Object.defineProperty(i,"__esModule",{value:!0}),n=function(e,t,o,r){"use strict";function a(e,a,i,n,l,s,d,u){if(e.getRecordById(t.ALL_RECORD_KEY))return;const c=new o.Record({adapter:e.getAdapter(),format:e.getFormat()});if(c.set({[n]:t.ALL_RECORD_KEY,[l]:null!=a?a:r("ÐÑе"),[d]:!0,[s]:i}),u&&c.has(u))c.set(u,!1);e.add(c,0)}return Object.defineProperty(t,"__esModule",{value:!0}),t.initStateAllRecord=t.preInitStateAllRecord=t.dataLoadedAllRecord=t.basAllRecord=t.ALL_RECORD_KEY=void 0,t.ALL_RECORD_KEY=-1e3,t.basAllRecord=function(e){var t,o;if(e.useAllRecord&&!(null===(t=e.sourceController)||void 0===t?void 0:t.hasMoreData("up"))){const t=null===(o=e.sourceController)||void 0===o?void 0:o.getItems();if(t)a(t,e.allRecordTitle,e.root,e.keyProperty,e.displayProperty,e.parentProperty,e.nodeProperty,e.hasChildrenProperty)}return e},t.dataLoadedAllRecord=function(e,t,o){var r;if(o.useAllRecord&&!(null===(r=o.sourceController)||void 0===r?void 0:r.hasMoreData("up"))&&"up"===t)a(e,o.allRecordTitle,o.root,o.keyProperty,o.displayProperty,o.parentProperty,o.nodeProperty,o.hasChildrenProperty);return o},t.preInitStateAllRecord=function(e,t){var o,r;if(e.items&&t.useAllRecord)a(e.items,t.allRecordTitle,null!==(r=null!==(o=e.root)&&void 0!==o?o:t.root)&&void 0!==r?r:null,t.keyProperty,t.displayProperty,t.parentProperty,t.nodeProperty,t.hasChildrenProperty)},t.initStateAllRecord=function(e,t){var o;return{useAllRecord:null!==(o=t.useAllRecord)&&void 0!==o?o:!1,allRecordTitle:t.allRecordTitle}},t}(0,{},o,e),l=n,s=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r="Controls/expandedCompositeTreeRender",a="Controls/searchBreadcrumbsTile",i="Controls-widgets/navigation",n="Controls/RadioGroup",l="Controls/Chips";return t.default=function(e){var t,s,d,u;if(e.viewMode!==this.state.viewMode||(null===(t=e.listConfiguration.tile.navigation)||void 0===t?void 0:t.scheme)!==(null===(s=this.state.listConfiguration.tile.navigation)||void 0===s?void 0:s.scheme)){const t=[];if("searchTile"===e.viewMode||"composite"===e.viewMode||"tile"===e.viewMode&&"tile"!==(null===(d=e.listConfiguration.tile.navigation)||void 0===d?void 0:d.scheme)){if(!(0,o.isLoaded)(i))t.push((0,o.loadAsync)(i));if(!(0,o.isLoaded)(l))t.push((0,o.loadAsync)(l));if(!(0,o.isLoaded)(n))t.push((0,o.loadAsync)(n))}if("searchTile"===e.viewMode&&!(0,o.isLoaded)(a))t.push((0,o.loadAsync)(a));else if(("composite"===e.viewMode||"tile"===e.viewMode&&"tile"!==(null===(u=e.listConfiguration.tile.navigation)||void 0===u?void 0:u.scheme))&&!(0,o.isLoaded)(r))t.push((0,o.loadAsync)(r));if(t.length)return Promise.all(t).then((()=>e))}return e},t}(0,{},t),d=s,u=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r="Catalog/tile:ItemRender",a="Controls/tileRender";return t.default=function(e){if("tile"===e.viewMode||"composite"===e.viewMode||"searchTile"===e.viewMode){const t=[];if(!(0,o.isLoaded)(r))t.push((0,o.loadAsync)(r));if(!(0,o.isLoaded)(a))t.push((0,o.loadAsync)(a));return t.length?Promise.all(t).then((()=>e)):Promise.resolve(e)}return e},t}(0,{},t),c=u,R=function(e,t){"use strict";return Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const{markedKey:t,items:o,expandedItems:r=[],root:a,nodeProperty:i,parentProperty:n,viewMode:l}=e;if(t&&o&&i){const e=o.getRecordById(t);if(("search"===l||"searchTile"===l)&&(null==e?void 0:e.get(i))||e&&e.get(i)&&r.includes(t))return t;else if(e&&n){const t=e.get(n);if(t&&r.includes(t))return t}}return a},t}(0,{}),p=R,f=function(e,t){"use strict";function o(e){if(e instanceof Promise)return e;else return Promise.resolve(e)}return Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(...e){return function(t){function r(t){const r=e.map((e=>e.call(this,t)));if(r.some((e=>e instanceof Promise)))return Promise.all(r.map(o)).then((e=>e[0]));else return r[0]}if(t instanceof Promise)return t.then((e=>r.call(this,e)));else return r.call(this,t)}},t}(0,{}),v=f,g=function(e,t){"use strict";
1return Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(...e){return function(t){return e.reduce(((e,t)=>{if(e instanceof Promise)return e.then((e=>t.call(this,e)));else return t.call(this,e)}),t)}},t}(0,{}),h=g,y=function(e,t,o){"use strict";return Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,r,a,i,n,l,s,d,u,c,R,p;if((null===(t=this.state.detailRoot)||void 0===t?void 0:t.key)!==(null===(r=e.detailRoot)||void 0===r?void 0:r.key)){const t=(null===(a=e.detailRoot)||void 0===a?void 0:a.key)||null,r=t&&(null===(n=null===(i=e.sourceController)||void 0===i?void 0:i.getItems())||void 0===n?void 0:n.getRecordById(t))||null,c=e.root===t||null===t||(null!==(d=null!==(l=e.hasChildrenProperty&&(null==r?void 0:r.get(e.hasChildrenProperty)))&&void 0!==l?l:null===(s=e.detailRoot)||void 0===s?void 0:s.hasChildren)&&void 0!==d?d:!0),R=r?r.get(e.parentProperty)||null:null===(u=e.detailRoot)||void 0===u?void 0:u.parent,p=this.state.markedKey===o.ALL_RECORD_KEY?this.state.root!==t:this.state.markedKey!==t;return{...e,root:p?c?t:R:this.state.root,markedKey:c?o.ALL_RECORD_KEY:t}}else if(this.state.root!==e.root)if(e.root===o.ALL_RECORD_KEY)return{...e,root:this.state.root||null,markedKey:o.ALL_RECORD_KEY};else{const t=e.root||null,r=t&&(null===(R=null===(c=e.sourceController)||void 0===c?void 0:c.getItems())||void 0===R?void 0:R.getRecordById(t))||null,a=null===t||(null!==(p=e.hasChildrenProperty&&(null==r?void 0:r.get(e.hasChildrenProperty)))&&void 0!==p?p:!0);return{...e,root:a?t:this.state.root,markedKey:a?o.ALL_RECORD_KEY:t}}return e},t}(0,{},n),m=y,P=function(e,t,o){"use strict";return Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(this.state.masterRoot!==e.masterRoot)return{...e,root:e.masterRoot===o.ALL_RECORD_KEY?this.state.masterRoot:e.masterRoot};else return e},t}(0,{},n),M=P,b=function(e,t,o,r,a){"use strict";function i(e,t,o,r){for(let a=0;a<t.getCount();a++){const i=t.at(a);if(i.get(r)===e&&i.get(o))return!0}return!1}function n(e,t,o,r,a,n){var l,s;const d=a&&(null===(l=a.getMetaData())||void 0===l?void 0:l.path)||null,u=a&&(null===(s=a.getMetaData())||void 0===s?void 0:s.navigation)||null,c=n&&a?a.getRecordById(n)||d&&d.getRecordById(n)||u&&u.getRecordById(n)||r&&function(e,t,o){const r=t.getKeyProperty();for(let a=0;a<t.getCount();a++){const i=t.at(a).get(o);if(i){const t=i.getIndexByValue(r,e);if(t>=0)return i.at(t)}}return null}(n,a,r)||null:null;return{root:n,parent:t&&c?c.get(t)||null:n,hasChildren:o&&c&&c.get(o)||t&&d&&d.getIndexByValue(t,n)>-1||t&&e&&a&&i(n,a,e,t)||t&&e&&u&&i(n,u,e,t)||!1}}function l(e,t,o,r,i){const n=r&&(null==o?void 0:o.getRecordById(r))||null;return{root:r,parent:r===a.ALL_RECORD_KEY?i:e&&n?n.get(e)||null:r,hasChildren:r!==a.ALL_RECORD_KEY&&(t&&n&&n.get(t)||e&&o&&o.getIndexByValue(e,r)>-1)||!1}}function s(e,t=!1){var o;return{masterRoot:e.hasChildren?e.root:e.parent,masterMarkedKey:e.hasChildren?t?a.ALL_RECORD_KEY:null:null!==(o=e.root)&&void 0!==o?o:t?a.ALL_RECORD_KEY:null,detailRoot:e.root===a.ALL_RECORD_KEY?e.parent:e.root}}Object.defineProperty(t,"__esModule",{value:!0}),t.needRejectBasDetailNavigation=t.onRejectBasDetailNavigation=t.initDetailNavigation=t.basDetailNavigation=t.onRejectBasMasterNavigation=t.initMasterNavigation=t.basMasterNavigation=t.prepareMasterRoot=t.prepareDetailRoot=void 0,t.prepareDetailRoot=function(e,t,o,r){if(!r)return;const{items:a,parentProperty:i,nodeProperty:l,hasChildrenProperty:s,masterHasChildrenProperty:d,contentsProperty:u}=r;return n(l,i,d||s,u,a,null!=e?e:null)},t.prepareMasterRoot=function(e,t,o,r){if(!r)return;const{items:a,parentProperty:i,hasChildrenProperty:n,root:s,loading:d}=r;if(!d)return l(i,n,a,null!=e?e:null,s)};const d=new WeakMap,u=new WeakMap;t.basMasterNavigation=function(e){var t;let o=this.state.catalogNavigation;if(this.state.detailRoot.root!==e.detailRoot.root)o=s(e.detailRoot,e.useAllRecord);else if(this.state.root!==e.root)o=s(l(e.parentProperty,e.hasChildrenProperty,e.items,e.root,this.state.root),e.useAllRecord);else if(this.state.markedKey!==e.markedKey)o={...this.state.catalogNavigation,masterMarkedKey:e.markedKey===e.root?a.ALL_RECORD_KEY:e.markedKey,detailRoot:e.markedKey===a.ALL_RECORD_KEY?this.state.root:null!==(t=e.markedKey)&&void 0!==t?t:this.state.root};if(this.state.catalogNavigation.masterRoot!==o.masterRoot||this.state.catalogNavigation.masterMarkedKey!==o.masterMarkedKey||this.state.catalogNavigation.detailRoot!==o.detailRoot||this.state.root!==e.root||this.state.markedKey!==e.markedKey){const t=this.state.catalogNavigation.masterRoot!==o.masterRoot?o.masterRoot:this.state.root;if(d.set(this,t),u.has(this)&&u.get(this)===t)return u.delete(this),e;const r=this.state.catalogNavigation.masterMarkedKey!==o.masterMarkedKey?o.masterMarkedKey:this.state.markedKey;return{...e,markedKey:r,root:t,catalogNavigation:o,detailRoot:{...e.detailRoot,root:o.detailRoot}}}return e},t.initMasterNavigation=function(e,t){var o,r,a,i;return{useAllRecord:null!==(o=t.useAllRecord)&&void 0!==o?o:!1,allRecordTitle:t.allRecordTitle,detailRoot:{root:null!==(r=e.root)&&void 0!==r?r:null,parent:null,hasChildren:!1},catalogNavigation:{masterRoot:null!==(a=e.root)&&void 0!==a?a:null,masterMarkedKey:e.markedKey,detailRoot:null!==(i=e.root)&&void 0!==i?i:null}}},t.onRejectBasMasterNavigation=function(){if(d.has(this))u.set(this,d.get(this));d.delete(this)};const c=new WeakMap,R=new WeakMap;return t.basDetailNavigation=function(e){var t;let i=this.state.catalogNavigation;if(void 0===e.masterRoot)return{...e,masterRoot:this.state.masterRoot};if(this.state.masterRoot.root!==e.masterRoot.root)i=s(e.masterRoot,e.useAllRecord);else if(this.state.masterMarkedKey!==e.masterMarkedKey)i={...this.state.catalogNavigation,detailRoot:e.masterMarkedKey===a.ALL_RECORD_KEY?this.state.catalogNavigation.masterRoot:null!==(t=e.masterMarkedKey)&&void 0!==t?t:this.state.root,masterMarkedKey:e.masterMarkedKey};else if(this.state.root!==e.root)i=s(n(e.nodeProperty,e.parentProperty,e.masterHasChildrenProperty||e.hasChildrenProperty,e.contentsProperty,e.items,e.root),e.useAllRecord);if(this.state.catalogNavigation.masterRoot!==i.masterRoot||this.state.catalogNavigation.masterMarkedKey!==i.masterMarkedKey||this.state.catalogNavigation.detailRoot!==i.detailRoot||this.state.root!==e.root){const t=this.state.catalogNavigation.detailRoot!==i.detailRoot?i.detailRoot:e.root,{searchValue:a,searchInputValue:n,searchMisspellValue:l,f
1ilter:s}=this.state.root!==t&&e.searchValue?{searchValue:"",searchInputValue:"",searchMisspellValue:"",filter:e.searchParam&&e.parentProperty&&e.filter?o.FilterResolver.getResetSearchFilter(e.filter,e.searchParam,e.parentProperty,!0,!0):e.filter}:e;if(c.set(this,t),R.has(this)&&R.get(this)===t)return R.delete(this),e;if(e.catalogNavigationHistoryId){const t=e.catalogNavigationHistoryId;(0,r.loadAsync)("ParametersWebAPI/Scope:USER").then((e=>e.set(t,JSON.stringify(i))))}return{...e,root:t,searchValue:a,searchInputValue:n,searchMisspellValue:l,catalogNavigation:i,filter:s,masterRoot:{...e.masterRoot,root:i.masterRoot}}}return e},t.initDetailNavigation=function(e,t){var o,r;const i=null!==(o=t.useAllRecord)&&void 0!==o?o:!1,l=n(t.nodeProperty,t.parentProperty,t.masterHasChildrenProperty||t.hasChildrenProperty,t.contentsProperty,e.items,null!==(r=e.root)&&void 0!==r?r:null);return{useAllRecord:i,masterHasChildrenProperty:t.masterHasChildrenProperty,contentsProperty:t.contentsProperty,masterRoot:{root:l.hasChildren?l.root:l.parent,parent:null,hasChildren:!1},masterMarkedKey:i?a.ALL_RECORD_KEY:null,catalogNavigation:s(l,i),catalogNavigationHistoryId:t.catalogNavigationHistoryId}},t.onRejectBasDetailNavigation=function(){if(c.has(this))R.set(this,c.get(this));c.delete(this)},t.needRejectBasDetailNavigation=function(e,t){var o;if("masterRoot"in e&&"masterMarkedKey"in e&&!t&&null===e.masterMarkedKey)return!0;if(t&&"masterRoot"in e&&"masterRoot"in t&&e.masterRoot&&t.masterRoot&&(t.masterRoot.root!==e.masterRoot.root||t.masterRoot.parent!==e.masterRoot.parent&&(e.masterRoot.parent!==e.masterRoot.root||!e.masterRoot.parent)))return!0;if(t&&"masterMarkedKey"in e&&"masterMarkedKey"in t&&!("masterRoot"in t&&t.masterRoot&&!t.masterRoot.hasChildren?e.masterMarkedKey===t.masterRoot.root:e.masterMarkedKey===(null!==(o=t.masterMarkedKey)&&void 0!==o?o:a.ALL_RECORD_KEY)||t.loading))return!0;else return!1},t}(0,{},r,t,n),C=b,i.parallel=i.pipe=i.getMarkedNodeKey=i.needRejectBasDetailNavigation=i.onRejectBasMasterNavigation=i.onRejectBasDetailNavigation=i.initMasterNavigation=i.initDetailNavigation=i.basMasterNavigation=i.basDetailNavigation=i.prepareMasterRoot=i.prepareDetailRoot=i.basCompositeViewTemplates=i.basTileItemTemplate=i.ALL_RECORD_KEY=i.initStateAllRecord=i.preInitStateAllRecord=i.dataLoadedAllRecord=i.basAllRecord=i.basDetailRoot=i.basMasterRoot=void 0,Object.defineProperty(i,"basMasterRoot",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(i,"basDetailRoot",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(i,"basAllRecord",{enumerable:!0,get:function(){return l.basAllRecord}}),Object.defineProperty(i,"dataLoadedAllRecord",{enumerable:!0,get:function(){return l.dataLoadedAllRecord}}),Object.defineProperty(i,"preInitStateAllRecord",{enumerable:!0,get:function(){return l.preInitStateAllRecord}}),Object.defineProperty(i,"initStateAllRecord",{enumerable:!0,get:function(){return l.initStateAllRecord}}),Object.defineProperty(i,"ALL_RECORD_KEY",{enumerable:!0,get:function(){return l.ALL_RECORD_KEY}}),Object.defineProperty(i,"basTileItemTemplate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(i,"basCompositeViewTemplates",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(i,"prepareDetailRoot",{enumerable:!0,get:function(){return C.prepareDetailRoot}}),Object.defineProperty(i,"prepareMasterRoot",{enumerable:!0,get:function(){return C.prepareMasterRoot}}),Object.defineProperty(i,"basDetailNavigation",{enumerable:!0,get:function(){return C.basDetailNavigation}}),Object.defineProperty(i,"basMasterNavigation",{enumerable:!0,get:function(){return C.basMasterNavigation}}),Object.defineProperty(i,"initDetailNavigation",{enumerable:!0,get:function(){return C.initDetailNavigation}}),Object.defineProperty(i,"initMasterNavigation",{enumerable:!0,get:function(){return C.initMasterNavigation}}),Object.defineProperty(i,"onRejectBasDetailNavigation",{enumerable:!0,get:function(){return C.onRejectBasDetailNavigation}}),Object.defineProperty(i,"onRejectBasMasterNavigation",{enumerable:!0,get:function(){return C.onRejectBasMasterNavigation}}),Object.defineProperty(i,"needRejectBasDetailNavigation",{enumerable:!0,get:function(){return C.needRejectBasDetailNavigation}}),Object.defineProperty(i,"getMarkedNodeKey",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(i,"pipe",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(i,"parallel",{enumerable:!0,get:function(){return v.default}}),i}));
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.