1define("Controls/treeTileDisplay",["WasabyLoader/ModulesLoader","UICore/Executor","Types/util","Controls/tileDisplay","Controls/listsCommonLogic","Controls/baseTreeDisplay","require","exports","Types/di"],(function(e,t,i,s,r,o,n,l,a){var d,u,h,m,p,c,g,I;return Object.defineProperty(l,"__esModule",{value:!0}),d=function(e,t,i,s,r,o,n,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class a extends((0,i.mixin)(r.TreeItem,s.TileItemMixin)){constructor(){super(...arguments),this.listInstanceName="controls-TreeTile",this.listElementName="item"}getNodesHeight(){return this._$nodesHeight}getTileHeight(){return this.isNode()&&this.getNodesHeight()||super.getTileHeight()}getItemActionsControl(e="default"){let t=super.getItemActionsControl(e);if("preview"===e)t=(0,n.loadSync)(l.LibPaths.TreeTile).TreeTileItemActions;return t}setNodesHeight(e){if(this._$nodesHeight!==e)this._$nodesHeight=e,this._nextVersion()}getFolderWidth(){return this._$folderWidth}setFolderWidth(e){if(this._$folderWidth!==e)this._$folderWidth=e,this._nextVersion()}getTileWidth(e,t="top",i="rectangle"){if(this._$constructorFix&&this._$tileWidth)return this._$tileWidth;if(this.isNode()&&!this.getTileSize())return e||this.getFolderWidth()||250;else return super.getTileWidth(e,t,i)}getItemType(e="default",t){let i=super.getItemType(e);if("default"===i&&this.isNode()&&!t)i="small";return i}
1getItemActionsClasses(e="default",t=""){let i=super.getItemActionsClasses(e,t);if("preview"===e&&this.isNode())i+=" controls-TileView__previewTemplate_itemActions_node";return i}getActionMode(e="default"){if("preview"===e&&this.isNode())return"strict";else return super.getActionMode(e)}getActionPadding(e="default"){if("preview"===e&&this.isNode())return"";else return super.getActionPadding(e)}getItemStyles({itemType:e="default",width:t,staticHeight:i,imagePosition:s="top",imageViewMode:r="rectangle",attrs:n={}}){if(this.isNode()&&("default"===e||"small"===e)){const e=(0,o.wasabyAttrsToReactDom)(n).style,l=this.getTileWidth(t,s,r);return{flexBasis:`${l}px`,minWidth:`${l}px`,height:i?`${this.getNodesHeight()}px`:void 0,...e}}else return super.getItemStyles.apply(this,arguments)}shouldDisplayTitle(e="default"){switch(e){case"default":case"small":case"medium":case"rich":return super.shouldDisplayTitle(e);case"preview":return super.shouldDisplayTitle(e)||!!this.isNode();default:return!1}}setActive(e,t){if(!e&&this.isActive()&&this.isHovered())this.getOwner().setHoveredItem(null);super.setActive(e,t)}setHovered(e,t){if(!e&&this.isHovered()&&this.SupportItemActions)this.setCanShowActions(!1);super.setHovered(e,t)}getMultiSelectClasses(){let e=this._getMultiSelectBaseClasses();return e+=" controls-TileView__checkbox controls-TileView__checkbox_top js-controls-TileView__withoutZoom",e}}return t.default=a,Object.assign(a.prototype,{_moduleName:"Controls/treeTile:TreeTileCollectionItem",_instancePrefix:"tree-tile-item-",_$nodesHeight:null,_$folderWidth:null}),t}(0,{},i,s,o,t,e,r),u=d,h=function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class s extends i.InvisibleStrategy{_createItemsOrder(){return s.sortItems(this.source.items,{display:this.options.display,invisibleItems:this._invisibleItems})}static sortItems(e,t){function r(e){return e["[Controls/_display/GroupItem]"]||e["[Controls/_baseTree/BreadcrumbsItem]"]}function o(e){return e.$ATI}function n(e){return e["[Controls/_baseTreeDisplay/RootSeparatorItem]"]}function l(e){return r(e)||o(e)||n(e)}const{display:a}=t,d=[],u=[];let h=!0;const m=e[e.length-1],p=!!m,c=p&&l(m),g=p&&o(m),I=p&&!c&&!m.isNode();for(let i=0;i<e.length;i++){let o=i,p=e[i],c=e[i+1],g=!!c,I=g&&l(c),_=g&&!I&&c.getParent()===a.getRoot();for(;g&&!I&&!_;)i++,p=e[i],o=i,c=e[i+1],g=!!c,I=g&&l(c),_=g&&!I&&c.getParent()===a.getRoot();const f=!l(p)&&p.isNode(),T=!l(p)&&!p.isNode(),v=!l(p)&&p.getParent()!==a.getRoot(),b=!r(p)&&!n(p),y=g&&!r(c)&&!n(c),C=g&&!I&&!c.isNode(),$=g&&!I&&c.isNode(),w=b&&g&&!y,N="mixed"!==a.getItemsFlow()&&((f||v)&&(C&&_||!g)||T&&!v&&$&&_);if(w||N){if(s._needCreateInvisibleItems(p,d))d.push(super._createInvisibleItems(a,p,{isNodeItems:N||f}));else d.push(t.invisibleItems.filter((e=>e.contents===p.contents)));if(u.push(o+1),p===m)h=!1}}if(h&&("static"===a.getTileMode()||a.getGroup()))if(g||I){if(s._needCreateInvisibleItems(m,t.invisibleItems))d.push(super._createInvisibleItems(a,m,{isNodeItems:!1}));else d.push(t.invisibleItems.filter((e=>e.contents===m.contents)));u.push(e.length)}const _=e.map(((e,t)=>t+d.length*i.COUNT_INVISIBLE_ITEMS));t.invisibleItems.length=0;for(let e=0;e<d.length;e++){const s=d[e];t.invisibleItems.push(...s);const r=u[e];for(let t=0;t<s.length;t++){const s=i.COUNT_INVISIBLE_ITEMS*e+t;_.splice(r+s,0,s)}}return _}static _getInvisibleItemParams(e,t,i){const s=super._getInvisibleItemParams(e,t,i);return s.itemModule="Controls/treeTile:InvisibleTreeTileItem",s.node=i.isNodeItems,s.parent=e.getRoot(),s.folderWidth=e.getFolderWidth(),s}}return t.default=s,t}(0,{},s),m=h,p=function(e,t,i,s,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class o extends((0,s.mixin)(r.default,i.InvisibleItem)){get Markable(){return!1}constructor(e){super(e),this.listElementName="controls-TileView__item_invisible",this.VirtualEdgeItem=!1,this._itemMarginTopClass=e.itemMarginTopClass||"",i.InvisibleItem.initMixin(this,e)}get key(){return this.getInstanceId()}get itemMarginTopClass(){return this._itemMarginTopClass}getItemStyles(){if(this.isLastInvisibleItem())return"";else return super.getItemStyles.apply(this,arguments)}}return t.default=o,Object.assign(o.prototype,{_moduleName:"Controls/treeTile:InvisibleTreeTileItem",_instancePrefix:"invisible-tree-tile-item-"}),t}(0,{},s,i,d),c=p,g=function(e,t,i,s,r,o,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});class l extends((0,i.mixin)(r.Tree,s.TileMixin)){constructor(e){var t;super(e),this._$itemsFlow="separate",this._$noZen=!1,this.SupportExpand=!1,this._invisibleStrategy=o.default,this._itemsCountInRow=0,this.addFilter(((e,t,i)=>function(e){if(e["[Controls/_display/GroupItem]"]||e["[Controls/_baseTree/BreadcrumbsItem]"]||e.$ATI)return!0;const t=e.getParent();return!t||t["[Controls/_baseTree/BreadcrumbsItem]"]||t.isRoot()}(i))),this._$noZen=!!e.noZen,this._$itemsFlow=null!==(t=e.itemsFlow)&&void 0!==t?t:"separate"}setActiveItem(e){if(!e)this.setHoveredItem(null);super.setActiveItem(e)}_getGroupItemConstructor(){return s.GroupItem}getNodesHeight(){return this._$nodesHeight}setNodesHeight(e){if(this._$nodesHeight!==e)this._$nodesHeight=e,this._updateItemsProperty("setNodesHeight",this._$nodesHeight,"setNodesHeight"),this._nextVersion()}getFolderWidth(){return this._$folderWidth}setItemsCountInRow(e){if(this._itemsCountInRow!==e&&this.isTopRowInvisibleItemsStrategy)this._itemsCountInRow=e}setTopRowInvisibleItemsStrategy(){this._topRowInvisibleItemsStrategy=n.TopRowInvisibleStrategy}get isTopRowInvisibleItemsStrategy(){return!!this._topRowInvisibleItemsStrategy}setFolderWidth(e){if(this._$folderWidth!==e)this._$folderWidth=e,this._updateItemsProperty("setFolderWidth",this._$folderWidth,"setFolderWidth"),this._nextVersion()}getItemsFlow(){return this._$itemsFlow}setItemsFlow(e){var t,i;if(this._$itemsFlow!==e)this._$itemsFlow=e,null===(i=null===(t=this._composer)||void 0===t?void 0:t.getInstance(o.default))||void 0===i||i.invalidate(),this._nextVersion()}getExpanderIcon(){return"none"}_getChildrenArray(e,t){return super._getChildrenArray(e,t).filter((e=>!e.$IIV))}_getItemsFactory(){const e=super._getItemsFactory();return function(t){const i=this._getItemsFactoryParams(t);return e.call(this,i)}}_getItemsFactoryParams(e){return super._getItemsFactoryParams(e),e.nodesHeight=this.getNodesHeight(),e.folderWidth=this.getFolderWidth(),e.noZen=this.getNoZen(),e.constructorFix=this._$constructorFix,e}_initializeUserStrategies(){this._supportItemsSpacing=!1,super._initializeUserStrategies({addPseudoParentStrategy:!1})}_createComposer(){var e,t;if(this._$beforeItemsTemplate||this._$afterItemsTemplate||this._$beforeItemsRender||this._$afterItemsRender)this._userStrategies.push({strategy:s.AdditionalTileStrategy,options:{display:this,usingCustomItemTemplates:this._$usingCustomItemTemplates,itemModule:"Controls/tile:AdditionalTileItem",beforeItemsTemplate:this._$beforeItemsTemplate||this._$beforeItemsRender,afterItemsTemplate:this._$afterItemsTemplate||this._$afterItemsRender}});if("horizontal"===this._$orientation)this._disableSupportsGrouping=!0,this._$group=null;const i=super._createComposer();if("vertical"===this._$orientation){i.append(o.default,{display:this});const s=this.getNavigation(),r=this.hasMoreDataUp();if(("position"===(null==s?void 0:s.source)&&("bothways"===(null===(e=null==s?void 0:s.sourceConfig)||void 0===e?void 0:e.direction)||"backward"===(null===(t=null==s?void 0:s.sourceConfig)||void 0===t?void 0:t.direction))||"page"===(null==s?void 0:s.source))&&r)this.setTopRowInvisibleItemsStrategy(),i.append(n.TopRowInvisibleStrategy,{display:this,invisibleItemsCount:this._itemsCountInRow})}return i}_getUpdaters(){return{...super._getUpdaters(),...this._getTileMixinUpdaters()}}getNoZen(){return!!this._$noZen}}return t.default=l,Object.assign(l.prototype,{$TTC:!0,SupportNodeFooters:!1,SupportNodeHeaders:!1,_moduleName:"Controls/treeTile:TreeTileCollection",_itemModule:"Controls/treeTile:TreeTileCollectionItem",_$nodesHeight:null,_$folderWidth:null,_$itemsFlow:"separate"}),t}(0,{},i,s,o,h,s),I=g,l.TreeTileCollectionItem=l.TreeTileCollection=l.InvisibleStrategy=void 0,l.InvisibleStrategy=m.default,Object.defineProperty(l,"TreeTileCollection",{enumerable:!0,get:function(){return I.default}}),l.TreeTileCollectionItem=u.default,(0,a.register)("Controls/treeTile:TreeTileCollection",I.default,{instantiate:!1}),(0,a.register)("Controls/treeTile:TreeTileCollectionItem",u.default,{instantiate:!1}),(0,a.register)("Controls/treeTile:InvisibleTreeTileItem",c.default,{instantiate:!1}),l}));
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.