PageSourceSearch

https://edakovv.ru/static/resources/SabyPageLayoutPackages/layouts…?x_module=345491e5485b2e3848788964290bc700

js edakovv.ru collected 2026-10-02 02:06:27 UTC 246,600 bytes, 13 lines download raw bytes

1(function(){var isRtl = typeof document !== "undefined" && document.cookie && (document.cookie.indexOf("lang=ar") !== -1 || document.cookie.indexOf("lang=he") !== -1);var rtlPostfix = isRtl ? ".rtl" : "";var cssPackage = "css!SabyPageLayoutPackages/layouts/frame/styles" + rtlPostfix;define("css!SabyPage/contentLayout", [cssPackage], "");define("css!Controls/stickyBlock", [cssPackage], "");define("css!Controls/scrollLite", [cssPackage], "");define("css!SabyPage/widgets", [cssPackage], "");define("css!SabyPage/widgets/RightPanel", [cssPackage], "");define("css!SabyPage/mainLayout", [cssPackage], "");})();
2define("SabyPage/mainLayout",["react/jsx-runtime","react","clsx","WasabyLoader/ModulesLoader","ViewSettings/controller","UICore/WasabyReactivity","UICommon/Deps","UI/Focus","UI/Events","UI/Async","UI/Adaptive","Types/object","Types/function","SabyPage/widgets/RightPanelReact","SabyPage/context","SabyPage/base","Page/loaders","Page/base","I18n/i18n","Feature/feature","Env/Env","Controls/popup","Controls/event","Controls/design","Controls/dataSource","Controls/Utils/IsLetterPressedOnKeyboard","Controls/Store","Controls/Application/SettingsController","Controls-DataEnv/context","Application/Env","require","exports","SabyPage/contentLayout","SabyPage/contentLayout","SabyPage/contentLayout","SabyPage/contentLayout","css!SabyPage/mainLayout","i18n!SabyPage"],(function(t,e,i,s,o,n,a,r,l,p,d,h,g,c,u,v,f,m,b,w,_,C,S,y,P,x,R,L,M,N,k,W,I,O,T,j){var V,A,D,E;return Object.defineProperty(W,"__esModule",{value:!0}),V=function(t,e,i){"use strict";return Object.defineProperty(e,"__esModule",{value:!0}),e.default={...i.PageConfig,adaptiveTemplateName:"SabyPage/adaptiveLayout:Template",templateName:"SabyPage/mainLayout:Template",contentClass:"controls-hint-area",bodyClass:"sabyPage-MainLayout__body",templateOptions:{adaptiveTemplateContentName:"SabyPage/adaptiveContentLayout:ContentTemplate",templateContentName:"SabyPage/contentLayout:ContentTemplate",noticeCenterConfig:{},userStatusConfig:{},informers:{},quickAddSource:["regulations","reports","meeting","selling","static","news","client","bill","event","expenseReport"],helpButtonItems:[]}
2,preloadModules:["SabyPage/factory:RightPanel"]},e}(0,{},v),A=V,D=function(t,e,i,s,o,n,a,r,l,p,d,h,g,c,u,v,f,m,b,w,_,C,S,y,P,x,R,L,M,N,k,W,I,O){"use strict";function T(t){const[e,o]=(0,s.useState)((()=>v.constants.isServerSide||(0,h.isLoaded)(A)));let n;if((0,s.useEffect)((()=>{if(!e)(0,h.loadAsync)(A).then((()=>{o(!0)}));else(0,h.loadSync)(A)}),[]),e)n=(0,h.loadSync)(A);return n?(0,i.jsx)(n,{...t}):(0,i.jsx)("div",{})}function j(t){var e,o,a;const r=(0,_.getBuildingContext)(),p=(0,s.useContext)(r),d=(0,h.loadSync)(t.templateContentName),g=(0,L.useSlice)("formFactory"),c=(0,L.useSlice)(null===(e=t.formConfig)||void 0===e?void 0:e.storeId),u=(0,L.useSlice)("sabyPageNavigationVisibility"),v=(null===(o=t.tabs)||void 0===o?void 0:o.getVersion())||0,f=(0,s.useMemo)((()=>(null==u?void 0:u.tab)?(0,l.filterNavigationData)(t.tabs,null==u?void 0:u.tab):t.tabs),[t.tabs,v,null==u?void 0:u.tab]),m=(0,s.useMemo)((()=>(null==u?void 0:u.master)?(0,l.filterNavigationData)(t.masterItems,null==u?void 0:u.master):t.masterItems),[t.masterItems,null==u?void 0:u.master]),b=(0,s.useMemo)((()=>({...p,FormController:g})),[p,g]);return(0,n.useObservableOfVersion)(null===(a=null==g?void 0:g.state)||void 0===a?void 0:a.record),(0,i.jsx)(r.Provider,{value:b,children:(0,i.jsx)(M.ApplicationSettingsProvider,{children:(0,i.jsx)(d,{className:"sabyPage-MainLayout__content hint-HelpMainLayout_workspace",...t,...p,formConfigSlice:c,tabs:f,masterItems:m,controllers:p})})})}Object.defineProperty(e,"__esModule",{value:!0});const V=2e3,A="NoticeCenterRoute/panelView:Wrapper",D=["onNavigate"];j.displayName="SabyPage/mainLayout:TemplateContentWrapper";let E=0;const z=(0,p.getContext)(),B=(0,N.lazy)((()=>(0,N.importer)("UI/Theme:BackgroundViewer")));class U extends s.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidUpdate(t){if(t.resetKey!==this.props.resetKey&&this.state.hasError)this.setState({hasError:!1})}render(){if(this.state.hasError)return this.props.fallback||null;else return this.props.children}}class H extends s.Component{constructor(t){var e,i,o;super(t),this._resizeInit=!1,this._viewSettingsChanged=(t,e)=>{var i,s,o;if(b.default.get("useAdaptive"))return;const n={};if(this.state._viewSettings&&this.state._viewSettings.pageId===t.pageId)n._viewSettings={...t},this._workspaceSizeChanged=!isNaN(e.width)&&!isNaN(t.width)&&e.width!==t.width||!isNaN(e.centerWidth)&&!isNaN(t.centerWidth)&&e.centerWidth!==t.centerWidth;n._rightPanelProps=H._updateRightPanelOptions(this.props,t),H._updateMasterOptions(this.props.navigation,this.props.masterConfig,this.props.workspaceConfig),this.setState(n),H._updatePopupContentData(t,this.props.embedApplication,null===(i=this.props.controllers)||void 0===i?void 0:i.buildingContext,null===(s=this.props.sidebarSettings)||void 0===s?void 0:s.rightPanelVisible,null===(o=this.props.sidebarSettings)||void 0===o?void 0:o.stretchWidth)},this._windowResize=()=>{var t,e,i;if(this.props.viewSettingsSlice)this.props.viewSettingsSlice.updateWidth();else H._updatePopupContentData(this.state._viewSettings,this.props.embedApplication,null===(t=this.props.controllers)||void 0===t?void 0:t.buildingContext,null===(e=this.props.sidebarSettings)||void 0===e?void 0:e.rightPanelVisible,null===(i=this.props.sidebarSettings)||void 0===i?void 0:i.stretchWidth)},this._childrenRightPanel=(0,s.createRef)(),this._rootElement=(0,s.createRef)(),this._clearLastPageId=(0,S.debounce)((()=>{this._lastPageId=null}),1e3),(0,c.setController)(g.Settings);const n=null===(e=t.viewSettingsSlice)||void 0===e?void 0:e.getSettings();if(v.constants.isServerSide&&(null==n?void 0:n.noticeShow)&&"panel"!==(null===(i=t.noticeCenterConfig)||void 0===i?void 0:i.visibilityMode)&&v.constants.modules.NoticeCenterRoute)(0,R.addPageDeps)([A]);const a=t.Router.maskResolver.calculateUrlParams("onlyContent=:content&withAccordion=:accordion"),r=H._isNewDesign(t);this.state={_viewSettings:{...n},_masterOptions:H._updateMasterOptions(t.navigation,t.masterConfig,t.workspaceConfig),_isRTL:"rtl"===w.controller.currentLocaleConfig.directionality,_contentClassName:[a.content?"sabyPage-MainLayout__content-only":"",a.accordion?"sabyPage-MainLayout__with-accordion":""].join(" "),onlyContent:!!a.content,_rightPanelProps:H._updateRightPanelOptions(t,n),designContextValue:{newDesign:r,masterWidthProperty:null===(o=t.navigation)||void 0===o?void 0:o.mainSelected,contrastBackgroun
2d:t.contrastBackground},propsViewSettings:t.viewSettings,propsNavigation:t.navigation,propsControllers:t.controllers,propsEmbedApplication:t.embedApplication},this._accordionChanged=this._accordionChanged.bind(this),this._onWorkspaceMouseEnter=(0,S.throttle)(this._onWorkspaceMouseEnter.bind(this),V),this._isBlocksShadowDisabled=W.Feature.get(["blocks_shadow"])[0],this._registerHandler=this._registerHandler.bind(this),this._unregisterHandler=this._unregisterHandler.bind(this),this._instanceId="sabypage-mainlayout-template-"+E++}getInstanceId(){return this._instanceId}componentWillUnmount(){var t;this.context.onUnregister(new CustomEvent("unregister"),"controlResize",this,this._windowResize),null===(t=this._resizeRegister)||void 0===t||t.destroy()}componentDidMount(){var t,e,i,s;if(!this._resizeInit)this._resizeInit=!0,this.context.onRegister(new CustomEvent("register"),"controlResize",this,this._windowResize);if(v.compatibility.touch)setTimeout(this._loadPrefetchModules.bind(this),V);if((0,o.activate)(this._rootElement.current),H._updatePopupContentData(this.state._viewSettings,this.props.embedApplication,null===(t=this.props.controllers)||void 0===t?void 0:t.buildingContext,null===(e=this.props.sidebarSettings)||void 0===e?void 0:e.rightPanelVisible,null===(i=this.props.sidebarSettings)||void 0===i?void 0:i.stretchWidth),!1!==(null===(s=this.props.sidebarSettings)||void 0===s?void 0:s.rightPanelVisible))f.Controller.setRightPanelBottomTemplate("SabyPage/widgets:RightPanelBottom"),f.Controller.setRightPanelBottomTemplateVisible(!0);else f.Controller.setRightTemplate(!0);if(d.PageController.setPageConfigLoaderModule("Page/base:ConfigLoader"),d.PageController.setDataLoaderModule("Page/loaders:PrefetchLoader"),f.PageController.setPageTemplate("SabyPage/popup:Template"),C.query.get.overviewCSS&&"undefined"!=typeof window)(0,h.loadAsync)("SabyPage/styleAnalyzer").then((({pageStylesScript:t})=>{t(this.props.pageId)}))}_initResiseRegiter(){this._resizeRegister=new u.RegisterClass({register:"controlResize"})}_isPrefetchLoaded(t,e){return t.prefetch?t.prefetch instanceof Object&&e.prefetch instanceof Promise:!1}componentDidUpdate(t){var e,i,s,n;if(t.isEmptyView&&(null===(e=t.emptyViewConfig)||void 0===e?void 0:e.beforeUnmountCallback)&&(!this.props.isEmptyView||t.pageId!==this.props.pageId))(0,h.loadAsync)(null===(i=t.emptyViewConfig)||void 0===i?void 0:i.beforeUnmountCallback).then((t=>{t.call(this)}));if(t.workspaceConfig!==this.props.workspaceConfig||this._isPrefetchLoaded(this.props,t))(0,o.activate)(this._rootElement.current);if(t.prefetchModules!==this.props.prefetchModules&&v.compatibility.touch)setTimeout(this._loadPrefetchModules.bind(this),V);if(!this._resizeRegister)this._initResiseRegiter();if(!this._resizeInit)this._resizeInit=!0,this.context.onRegister(new CustomEvent("register"),"controlResize",this,this._windowResize);if(this._workspaceSizeChanged)null===(n=(s=this.context).onResize)||void 0===n||n.call(s),this._workspaceSizeChanged=!1;if(t.viewSettings&&!(0,k.isEqual)(this.props.viewSettings,t.viewSettings))this._viewSettingsChanged(this.props.viewSettings,t.viewSettings)}_accordionChanged(t){var e,i,s,o,n;if(t.get("pageUrl"))return;const a=t.get("pageId"),r=t.get("redirectDomain");if(a){if(this._lastPageId!==a&&((null===(e=this.props.navigation)||void 0===e?void 0:e.mainSelected)!==t.get("id")||(null===(s=null===(i=this.props.navigation)||void 0===i?void 0:i.children)||void 0===s?void 0:s.at(this.props.navigation.children.getCount()-1).get("parentPageId"))===a||a!==this.props.pageId))this._lastPageId=a,this._clearLastPageId.call(this),null===(o=this.props.controllers)||void 0===o||o.NavigationController.navigate({pageId:a,host:r,scopeId:this.props.scopeId,replaceUrl:null===(n=this.props.sidebarSettings)||void 0===n?void 0:n.replaceUrl},{},!!r,this.props.Router)}else{let e=t.get("url")||"";const i=t.get("event");if(i)e+="?region_left="+encodeURIComponent(i);window.location=e}}_registerHandler(t,e,i,s,o){if("controlResize"===e){if(!this._resizeRegister)this._initResiseRegiter();this._resizeRegister.register(new CustomEvent("register"),e,i,s,o)}}_unregisterHandler(t,e,i,s){if("controlResize"===e&&this._resizeRegister)this._resizeRegister.unregister(new CustomEvent("unregister"),e,i,s)}_loadPrefetchModules(){if(this.props.prefetchModules&&!C.cookie.get("pageWithoutPrefetch"))this.props.prefetchModules.forEac
2h((t=>{(0,h.loadAsync)(t)}))}_checkOnLetterPressed(t){if((0,m.default)(t))b.default.sendCommand("focusSearch")}_onWorkspaceMouseEnter(){if(!v.compatibility.touch)this._loadPrefetchModules()}render(){var t,e,s,o,n,l,p,d,c,u,f,m,b,w,_,C,S,y,R,L,N,k,W,O,V,A,E,K,F,$,q,G,J,Q,X,Y,Z;const tt=!(null===(t=this.props.workspaceConfig)||void 0===t?void 0:t.hideBackground)&&H._hasCustomBackground(null===(e=this.props.sidebarSettings)||void 0===e?void 0:e.background)&&!this.props.isOnPanel;let et,it;if(!1!==(null===(s=this.props.sidebarSettings)||void 0===s?void 0:s.visible)&&!this.props.isMobileApp)et=(0,h.loadSync)("NavigationPanels/sidebars:Sidebar");if(this.state._viewSettings.noticeShow&&"panel"!==(null===(o=this.props.noticeCenterConfig)||void 0===o?void 0:o.visibilityMode)&&v.constants.modules.NoticeCenterRoute)it=T;let st={};if(!this.props.isOnPanel&&this.state._viewSettings.width&&!0!==(null===(n=this.props.sidebarSettings)||void 0===n?void 0:n.stretchWidth)&&"max"!==this.state._viewSettings.savedWidth)st={maxWidth:this.state._viewSettings.width+"px"};else if(!this.props.isOnPanel&&(null===(l=this.props.sidebarSettings)||void 0===l?void 0:l.width))st={maxWidth:`${null===(p=this.props.sidebarSettings)||void 0===p?void 0:p.width}px`};const ot="center"===this.state._viewSettings.alignment&&!this.props.isOnPanel&&!(null===(d=this.props.interfaceSettings)||void 0===d?void 0:d.width)&&!1!==(null===(c=this.props.sidebarSettings)||void 0===c?void 0:c.pageResizable),nt=!this.props.isOnPanel&&!1!==(null===(u=this.props.sidebarSettings)||void 0===u?void 0:u.rightPanelVisible),at=!1!==(null===(f=this.props.sidebarSettings)||void 0===f?void 0:f.rightPanelVisible)||this.props.isOnPanel&&!0===(null===(m=this.props.sidebarSettings)||void 0===m?void 0:m.rightPanelVisibleOnPanel),rt=!this.props.isOnPanel&&!(null===(b=this.props.interfaceSettings)||void 0===b?void 0:b.width)&&!1!==(null===(w=this.props.sidebarSettings)||void 0===w?void 0:w.pageResizable),lt=(0,I.default)("tw-flex sabyPage-MainLayout__wrapper",this.props.className,{"sabyPage-MainLayout_disable-blocks-shadow":this._isBlocksShadowDisabled});return(0,i.jsx)(x.DesignContext.Provider,{value:this.state.designContextValue,children:(0,i.jsxs)("div",{ref:this._rootElement,"data-click-type":"local",className:lt,children:["center"===this.state._viewSettings.alignment?(0,i.jsx)("div",{className:"SabyPage-MainLayout__centerPadding"}):null,(0,i.jsx)(z.Provider,{value:this.state._rightPanelProps,children:(0,i.jsxs)("div",{className:["tw-flex","tw-flex-col tw-min-h-0","tw-grow-1","tw-shrink-0","tw-w-full","sabyPage-MainLayout",this.state._contentClassName,this.state._viewSettings.contentClassName,this.props.contentClassName,!this.state._viewSettings.width&&"max"!==(null===(_=this.props.sidebarSettings)||void 0===_?void 0:_.width)?"sabyPage-MainLayout_autoWidth":"",this.props.rightSideConfig?"sabyPage-MainLayout_right-shadow":""].join(" "),style:st,onKeyDown:this._checkOnLetterPressed,templatename:this.props.templateContentName,children:[tt?(0,i.jsx)("div",{className:"tw-fixed tw-w-full tw-h-full sabyPage-MainLayout_background",children:(0,i.jsx)(B,{background:null===(C=this.props.sidebarSettings)||void 0===C?void 0:C.background})}):null,(0,i.jsxs)("div",{className:"tw-flex tw-grow-1 sabyPage-MainLayout__blockWrapper",children:[ot?(0,i.jsx)(g.ResizingLineReact,{direction:this.state._isRTL?"direct":"reverse",width:this.state._viewSettings.width,storeAvailable:!0,controllers:this.props.controllers,isMaxWidthAvailable:!0,minOffsetWidth:this.state._viewSettings.allowMinOffsetRightResizeLine,maxOffsetWidth:this.state._viewSettings.allowPortalWidth,centerAlignment:"center"===this.state._viewSettings.alignment}):null,(0,i.jsxs)("div",{className:"sabyPage-MainLayout__mainContent controls-BlockLayout__block tw-flex tw-shrink-1 tw-grow-1 tw-flex-row tw-min-w-0 "+(this.state.designContextValue.newDesign?"sabyPage-MainLayout_contrast":"sabyPage-MainLayout_default"),onMouseMove:this._onWorkspaceMouseEnter,children:[et?(0,i.jsx)(U,{branchName:"sidebar",resetKey:`${this.props.pageId}:${null===(S=this.props.sidebarSettings)||void 0===S?void 0:S.mode}`,fallback:(0,i.jsx)("div",{}),children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"sabyPage-MainLayout__sidebar tw-flex",style:"panel"!==(null===(y=this.props.sidebarSettings)||void 0===y?void 0:y.mode)?{width:this.state._viewSettings.accordionWidth+"px"}:{}
2,children:[(0,i.jsx)(M.ApplicationSettingsProvider,{children:(0,i.jsx)(et,{sabyLayout:!0,pageTitle:this.props.pageTitle,...this.props.sidebarSettings,viewMode:null===(R=this.props.sidebarSettings)||void 0===R?void 0:R.mode,"data-click-type":"global",beforeLogoConfig:this.props.beforeLogoConfig,navigation:null===(L=this.props.navigation)||void 0===L?void 0:L.main,metaData:null===(N=this.props.navigation)||void 0===N?void 0:N.accData,groupMenu:null===(k=this.props.navigation)||void 0===k?void 0:k.mainGroup,footerConfig:this.props.footerConfig,selectedKey:null===(W=this.props.navigation)||void 0===W?void 0:W.mainSelected,url:this.props.accordionUrl,accordionExpanded:this.state._viewSettings.accordionExpanded,accordionWidth:this.state._viewSettings.accordionWidth,navigationWidth:this.state._viewSettings.navigationWidth,logoUrl:this.props.logoUrl,isMainPage:this.props.isMainPage,scopeId:this.props.scopeId,theme:this.props.sidebarTheme,allowChangeConfiguration:this.props.allowChangeConfiguration,showAppSelector:this.props.showAppSelector,showSchemeSelector:this.props.showSchemeSelector,controllers:this.props.controllers,onNavigate:this._accordionChanged,customEvents:D})}),!this.props.isOnPanel&&"panel"!==(null===(O=this.props.sidebarSettings)||void 0===O?void 0:O.mode)?(0,i.jsx)(g.ResizingLineReact,{align:"left",direction:this.state._isRTL?"reverse":"direct",storeAvailable:!0,controllers:this.props.controllers,minOffsetWidth:this.state._viewSettings.navigationMinOffset,maxOffsetWidth:this.state._viewSettings.allowNavigationWidth,width:this.state._viewSettings.navigationWidth,paramName:"navigationWidth"}):null]}),!this.props.isOnPanel&&"panel"!==(null===(V=this.props.sidebarSettings)||void 0===V?void 0:V.mode)?(0,i.jsx)(g.ResizingLineReact,{className:"sabyPage-MainLayout__ResizingLine_RightPanel__sidebar",align:"right",direction:this.state._isRTL?"reverse":"direct",storeAvailable:!0,controllers:this.props.controllers,minOffsetWidth:this.state._viewSettings.accordionMinOffset,maxOffsetWidth:this.state._viewSettings.allowAccordionWidth,width:this.state._viewSettings.accordionWidth,paramName:"accordionWidth"}):null]})}):(0,i.jsx)("div",{}),nt?(0,i.jsx)(g.ResizingLineReact,{className:"sabyPage-MainLayout__ResizingLine_RightPanel "+(this.state._viewSettings.isNoticeLeft?"sabyPage-MainLayout__ResizingLine_RightPanel__right":"sabyPage-MainLayout__ResizingLine_RightPanel__left"),direction:this.state._isRTL?"direct":"reverse",storeAvailable:!0,controllers:this.props.controllers,minOffsetWidth:this.state._viewSettings.rightPanelMinOffset,maxOffsetWidth:this.state._viewSettings.allowRightPanelWidth,width:this.state._viewSettings.rightPanelCurrentWidth,paramName:"rightPanelCurrentWidth"}):(0,i.jsx)("div",{}),at?(0,i.jsx)(U,{branchName:"rightPanel",resetKey:this.props.pageId,children:(0,i.jsx)(P.default,{ref:this._childrenRightPanel,pageId:this.props.pageId,allowAdaptive:this.props.allowAdaptive,userStatusConfig:this.props.userStatusConfig,singlePageApp:!1===(null===(A=this.props.sidebarSettings)||void 0===A?void 0:A.visible),prefetchConfig:this.props.prefetchConfig,"data-click-type":"global",stack:this.props.isOnPanel,profilePageId:this.props.profilePageId,nameClickHandler:this.props.nameClickHandler,logoutClickHandler:this.props.logoutClickHandler,widgetName:this.props.widgetName,dataSetName:this.props.dataSetName,toolbarConfig:this.props.toolbarConfig,rightPanelConfig:this.props.rightPanelConfig,hideRightPanelContent:this.props.sidebarSettings.hideRightPanelContent,prefetchResult:this.props.prefetch,configurationConfig:this.props.configurationConfig,blockLayout:this.props.blockLayout,langDictionary:this.props.langDictionary,isEmptyView:this.props.isEmptyView,workspaceConfig:this.props.workspaceConfig,helpButtonConfig:this.props.helpButtonConfig,informersConfig:this.props.informersConfig,pageTitle:this.props.pageTitle,workspaceErrorConfig:this.props.workspaceErrorConfig||(null===(E=this.props.form)||void 0===E?void 0:E.errorConfig),viewSettings:this.state._viewSettings,prefetch:this.props.prefetch,style:this.state._viewSettings&&this.state._viewSettings.rightPanelCurrentWidth?{width:this.state._viewSettings.rightPanelCurrentWidth-(this.props.blockLayout?4:0)+"px"}:{},className:(!this.state.designContextValue.newDesign?"sabyPage-MainLayout__rightPanel_border":"")+" "+(this.state._viewSettings.isNoticeLeft?"sabyPage-MainLayout__rightPanel__right":"sabyPage-MainLayout__rightPanel__left")+" "+((null===(K=this.state._viewSettings)||void 0===K?void 0:K.additionalPaddings)?"sabyPage-MainLayout__padding_"+(null===(F=this.state._viewSettings.additionalPaddings)||void 0===F?void 0:F.padding):"")})}):null,it&&this.props.hasNotice?(0,i.jsx)(U,{branchName:"noticeCenter",resetKey:this.props.pageId,fallback:(0,i.jsx)("div",{}),children:(0,i.jsx)("div",{style:{width:this.state._viewSettings.noticeCenterWidth+"px"},className:"controls-BlockLayout__block sabyPage-MainLayout__NoticeCenter tw-flex tw-flex-col tw-min-h-0 tw-grow-0 tw-shrink-0 "+(this.state._viewSettings.isNoticeLeft?"sabyPage-MainLayout__NoticeCenter__left":"sabyPage-MainLayout__NoticeCenter__right"),children:(0,i.jsx)(it,{pageRights:this.props.pageRights,noticeCenterWidth:this.state._viewSettings.noticeCenterWidth,"data-click-type":"global",isNoticeLeft:this.state._viewSettings.isNoticeLeft,viewSettingsAllowWorkspaceWidth:this.state._viewSettings.allowNoticeWidth,viewSettingsNoticeMinOffset:this.state._viewSettings.noticeMinOffset,isNewsVisible:this.state._viewSettings.isNewsVisible,noticeWidgets:this.state._viewSettings.noticeWidgets,sourcePromise:this.props.noticeCenter,prefetch:this.props.prefetch,hiddenGroups:this.props.noticeCenterConfig&&this.props.noticeCenterConfig.hiddenGroups,isSabyPage:!0,pageUrl:this.state._viewSettings.url,storeAvailable:!0,controllers:this.props.controllers})})}):(0,i.jsx)("div",{}),rt?(0,i.jsx)(g.ResizingLineReact,{className:"sabyPage-MainLayout__ResizingLine",direction:this.state._isRTL?"reverse":"direct",width:this.state._viewSettings.width,storeAvailable:!0,controllers:this.props.controllers,isMaxWidthAvailable:!0,minOffsetWidth:this.state._viewSettings.allowMinOffsetRightResizeLine,maxOffsetWidth:this.state._viewSettings.allowPortalWidth,centerAlignment:"center"===this.state._viewSettings.alignment}):(0,i.jsx)("div",{}),(0,i.jsx)(U,{branchName:"content",resetKey:`${this.props.pageId}:${this.props.templateContentName}`,fallback:(0,i.jsx)("div",{className:"sabyPage-MainLayout__content hint-HelpMainLayout_workspace"}),children:(0,i.jsx)(a.EventSubscriber,{onRegister:this._registerHandler,onUnregister:this._unregisterHandler,children:(0,i.jsx)(j,{templateContentName:this.props.templateContentName,...this.props.templateContentOptions,sidebarTheme:this.props.sidebarTheme,allowAdaptive:this.props.allowAdaptive,viewSettings:this.state._viewSettings,navigation:this.props.navigation,masterOptions:this.state._masterOptions,formConfig:this.props.formConfig,masterItems:null===($=this.props.navigation)||void 0===$?void 0:$.master,masterGroup:null===(q=this.props.navigation)||void 0===q?void 0:q.masterGroup,selectedMasterItemKey:null===(G=this.props.navigation)||void 0===G?void 0:G.masterSelected,"data-click-type":"local",tabs:null===(J=this.props.navigation)||void 0===J?void 0:J.tabs,selectedTabItemKey:null===(Q=this.props.navigation)||void 0===Q?void 0:Q.tabsSelected,contrastBackgroun
2d:this.state.designContextValue.newDesign,informers:this.props.informers,isEmptyView:this.props.isEmptyView,isRedirectEmptyView:this.props.isRedirectEmptyView,onlyContent:this.state.onlyContent,addButtonConfig:this.props.addButtonConfig,isStack:this.props.isOnPanel,backButtonConfig:this.props.backButtonConfig,bannerConfig:this.props.bannerConfig,pageRouter:this.props.pageRouter,Router:this.props.Router,prefetch:this.props.prefetch,prefetchConfig:this.props.prefetchConfig,filterConfig:this.props.filterConfig,hideTabs:this.props.isRedirectEmptyView?!0:this.props.hideTabs,beforeTabsConfig:this.props.beforeTabsConfig,subTitleConfig:this.props.subTitleConfig,emptyViewConfig:this.props.emptyViewConfig,licenseConfig:this.props.licenseConfig,redirectConfig:this.props.redirectConfig,workspaceErrorConfig:this.props.workspaceErrorConfig,workspaceConfig:this.props.workspaceConfig,headingsConfig:this.props.headingsConfig,highlightContentArea:this.props.isRedirectEmptyView?!0:this.props.highlightContentArea,form:this.props.form,headingTitle:H._getHeading(this.props.headingTitle,this.props.navigation),pageTitle:this.props.pageTitle,getHeadingCallback:this.props.getHeadingCallback,titleVisibility:this.props.titleVisibility||(null===(X=this.props.sidebarSettings)||void 0===X?void 0:X.titleVisibility),navigationHierarchy:null===(Y=this.props.navigation)||void 0===Y?void 0:Y.children,logoDesc:this.props.logoDesc,logoUrl:this.props.logoUrl,isMainPage:this.props.isMainPage,showAppSelector:this.props.showAppSelector,isDashboard:this.props.isDashboard,toolbarConfig:this.props.toolbarConfig,userStatusConfig:this.props.userStatusConfig,langDictionary:this.props.langDictionary,groupId:this.props.scopeId,scopeId:this.props.scopeId,pageId:this.props.pageId,isOnPanel:this.props.isOnPanel,blockLayout:this.props.blockLayout,dataSetName:this.props.dataSetName,widgetName:this.props.widgetName,topTemplateConfig:this.props.topTemplateConfig,topLeftTemplateConfig:this.props.topLeftTemplateConfig,topRightTemplateConfig:this.props.topRightTemplateConfig,beforeLogoTemplateConfig:this.props.beforeLogoTemplateConfig,masterConfig:this.props.masterConfig,sidebarVisible:!1!==(null===(Z=this.props.sidebarSettings)||void 0===Z?void 0:Z.visible),cardWorkspaceWidth:this.props.workspaceWidth?this.props.workspaceWidth-(this.state._viewSettings.rightPanelCurrentWidth||0):null,contextData:this.props.contextData})})})]})]})]})}),this.props.rightSideConfig?(0,i.jsx)(U,{branchName:"rightSide",resetKey:`${this.props.pageId}:rightSide`,children:(0,i.jsx)("div",{className:"SabyPage-MainLayout__centerPadding sabyPage-MainLayout__rightSideTemplate",children:(0,i.jsx)(r.PrefetchAwaiter,{type:"rightSide",prefetchResult:this.props.prefetch,templateName:this.props.rightSideConfig.templateName,templateOptions:{...this.props.rightSideConfig.templateOptions,viewSettings:this.state._viewSettings},controllers:this.props.controllers},this.props.pageId)})}):"center"===this.state._viewSettings.alignment?(0,i.jsx)("div",{className:"SabyPage-MainLayout__centerPadding"}):null]})})}static getDerivedStateFromProps(t,e){var i,s,o,n,a,r,l,p;const d={};let h={};if(t.viewSettings!==e.propsViewSettings||t.navigation!==e.propsNavigation)h=null===(i=t.viewSettingsSlice)||void 0===i?void 0:i.getSettings();if(t.viewSettings!==e.propsViewSettings)d._viewSettings={...h},d.propsViewSettings=t.viewSettings,H._updatePopupContentData(h,e.propsEmbedApplication,null===(s=e.propsControllers)||void 0===s?void 0:s.buildingContext,null===(o=t.sidebarSettings)||void 0===o?void 0:o.rightPanelVisible,null===(n=t.sidebarSettings)||void 0===n?void 0:n.stretchWidth);if(t.navigation!==e.propsNavigation)d.propsNavigation=t.navigation,d._masterOptions=H._updateMasterOptions(t.navigation,t.masterConfig,t.workspaceConfig),d._rightPanelProps=H._updateRightPanelOptions(t,h);const g=H._isNewDesign(t),c=null===(a=t.navigation)||void 0===a?void 0:a.mainSelected;if(g!==(null===(r=e.designContextValue)||void 0===r?void 0:r.newDesign)||c!==(null===(l=e.designContextValue)||void 0===l?void 0:l.masterWidthProperty)||t.contrastBackgroun
2d!==(null===(p=e.designContextValue)||void 0===p?void 0:p.contrastBackground))d.designContextValue={newDesign:g,masterWidthProperty:c};return d}static _updateRightPanelOptions(t,e){var i,s;let o=e||{};return o={...o,hideRightPanelContent:null===(i=t.sidebarSettings)||void 0===i?void 0:i.hideRightPanelContent,hasDocflow:H._hasDocflow,informers:t.informers,noticeCenterConfig:t.noticeCenterConfig,helpUrl:t.helpUrl,helpButtonItems:t.helpButtonItems,helpButtonConfig:t.helpButtonConfig,informersConfig:t.informersConfig,hideInformers:null===(s=t.sidebarSettings)||void 0===s?void 0:s.hideInformers,pageId:t.pageId},b.default.dispatch("_rightPanelOptions",o,!0),o}static _updatePopupContentData(t,e,i,s,o=!1){if(!b.default.get("PopupSetContentDataBlocked")&&!e){let e=(0,g.getResolution)(o||"max"===t.maxWidth,i);e=Math.min(e,t.portalWidth||1/0);const n=0,a=0;let r=0;if("center"===t.alignment)r=(window.innerWidth-e)/2;const l={top:n,left:a,width:e-(!1!==s?54:0)+r};f.Controller.setContentData(l)}}static _updateMasterOptions({tabs:t,tabsSelected:e,master:i,masterSelected:s,main:o,mainSelected:n,children:a}={},r,l){var p;let d={},h={};if((i||r)&&(e||n||a)){const r=(null==a?void 0:a.getCount())?a.at(0):t?t.getRecordById(e):o.getRecordById(n),l=r?null==r?void 0:r.get("masterConfig"):null===(p=i.getRecordById(s))||void 0===p?void 0:p.get("masterConfig");d={...l,masterWidthProperty:n,width:H._isValidWidth(null==l?void 0:l.width)?null==l?void 0:l.width:void 0}}if(null==l?void 0:l.masterOptions)h={...l.masterOptions,width:H._isValidWidth(l.masterOptions.width)?l.masterOptions.width:void 0};return{...r,...d,...h,minWidth:200,maxWidth:"50%"}}static _isValidWidth(t){return Number.isInteger(t)&&t>=200&&t<=300}static _isNewDesign(t){var e;return!!((null===(e=t.navigation)||void 0===e?void 0:e.master)||t.masterConfig||t.contrastBackgroun
2d||t.highlightContentArea)}static _getHeading(t,e){return(0,_.getActiveTitle)(e)||t}static _hasCustomBackground(t){return!!t&&!(0,y.isEmpty)(t)}static _getMasterOptions(t,e,i,s,o){const n={maxWidth:300,minWidth:200,...t};if(i&&"max"!==i){const t=s+o-parseInt(i,10);n.maxWidth=Math.max(n.minWidth,Math.min(t,n.maxWidth))}if(n.maxWidth!==n.minWidth)n.masterWidthProperty=e;return n}}return H.displayName="SabyPage/MainLayout:Template",H._hasDocflow=!!v.constants.modules.Docflow,H.contextType=a.BubblingEventContext,e.default=(0,M.connectApplicationSettings)((function(t){const e=(0,L.useSlice)("noticeCenter"),o=(0,O.useAdaptiveMode)().environment.isMobileApp()||"true"===C.query.get.isMobileApp,n=(0,s.useMemo)((()=>o?{...t.sidebarSettings,stretchWidth:!0,rightPanelVisible:!1,rightPanelVisibleOnPanel:!1,pageResizable:!1}:t.sidebarSettings),[o,t.sidebarSettings]),a=(0,s.useCallback)((t=>t.viewSettings),[]),r=(0,L.useSelector)(a),l=(0,L.useSlice)("viewSettings"),p=(0,s.useMemo)((()=>{var t;const i=null==l?void 0:l.getSettings(),s=!1===(null===(t=null==e?void 0:e.hasData)||void 0===t?void 0:t.call(e));if((null==i?void 0:i.noticeShow)&&s)l.toggleNoticeCenter();return!s}),[l,e]);return(0,i.jsx)(H,{...t,sidebarSettings:n,hasNotice:p&&!o,isMobileApp:o,viewSettings:r,viewSettingsSlice:l})})),e}(0,{},t,e,r,n,l,v,f,u,P,s,o,L,S,_,C,x,R,b,m,N,g,h,c,y,a,M,m,p,h,w,i,d,"undefined"==typeof i18n_SabyPage||i18n_SabyPage,"undefined"==typeof css_SabyPage_mainLayout||css_SabyPage_mainLayout),E=D,W.ContentTemplate=W.BackButtonController=W.searchTemplate=W.filterTemplate=W.Template=W.PageConfig=void 0,Object.defineProperty(W,"PageConfig",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(W,"Template",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(W,"filterTemplate",{enumerable:!0,get:function(){return I.filterTemplate}}),Object.defineProperty(W,"searchTemplate",{enumerable:!0,get:function(){return O.searchTemplate}}),Object.defineProperty(W,"BackButtonController",{enumerable:!0,get:function(){return T.BackButtonController}}),Object.defineProperty(W,"ContentTemplate",{enumerable:!0,get:function(){return j.ContentTemplate}}),W}));
3define("Controls/Utils/IsLetterPressedOnKeyboard",["require","exports"],(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=e.nativeEvent||e,n=t.altKey||t.ctrlKey||t.shiftKey||t.metaKey,r=/^([a-zA-Z]|[а-яА-Я]|[0-9])$/.test(t.key),a=document&&document.activeElement,o=a&&"INPUT"!==a.tagName&&"TEXTAREA"!==a.tagName&&"true"!==a.getAttribute("contenteditable");return!n&&r&&o&&"keydown"===t.type}}));
4define("Controls/design",["react/jsx-runtime","react","require","exports"],(function(e,t,n,r){var o,u,i,s,d,f;return Object.defineProperty(r,"__esModule",{value:!0}),o=function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n.createContext({});return r.displayName="ControlsDesignContext",t.default=r,t}(0,{},t),u=o,i=function(e,t,n,r,o){"use strict";return Object.defineProperty(t,"__esModule",{value:!0}),t.default=r.memo((function(e){const t=r.useContext(o.default);return(0,n.jsx)(e.designOptionsInnerComponent,{...e,designContextValue:t})})),t}(0,{},e,t,o),s=i,d=function(e,t,n,r,o,u){"use strict";return Object.defineProperty(t,"__esModule",{value:!0}),t.default=(0,r.memo)((0,r.forwardRef)((function(e,t){const{value:r,...i}=e;return(0,n.jsx)(o.default.Provider,{value:r,children:u.cloneElement(e.children,{...i,forwardedRef:t})})}))),t}(0,{},e,t,o,t),f=d,r.DesignOptionsProvider=r.DesignOptionsConsumer=r.DesignContext=void 0,Object.defineProperty(r,"DesignContext",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(r,"DesignOptionsConsumer",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(r,"DesignOptionsProvider",{enumerable:!0,get:function(){return f.default}}),r}));
5define("SabyPage/contentLayout",["react/jsx-runtime","react","i18n!SabyPage","WasabyLoader/ModulesLoader","UI/Focus","UI/Events","UI/Base","UI/Async","UI/Adaptive","Types/object","SabyPage/base","Page/base","Env/Env","Controls/design","Controls/dataSource","Controls/Store","Controls/Application/SettingsController","Controls-DataEnv/context","Compiler/IR","Browser/Transport","require","exports","Controls/Container/Async","Controls/buttons","css!SabyPage/contentLayout"],(function(e,t,o,i,a,n,r,s,l,p,d,c,g,u,h,f,m,v,_,y,C,b){var w,T,k,P,E,B,x,S,M,R,L,A;
5return Object.defineProperty(b,"__esModule",{value:!0}),w=function(e,t,o,i,a,n,r,s,l,p){"use strict";function d(e){var t,r,s;const l=(0,i.useContext)((0,a.getBuildingContext)()),p=(0,i.useMemo)((()=>{var t;return{...(null===(t=e.config)||void 0===t?void 0:t.templateOptions)||{},masterExpanded:e.masterExpanded}}),[null===(t=e.config)||void 0===t?void 0:t.templateOptions,e.masterExpanded]);if(!e.config||e.workspaceErrorConfig||e.isEmptyView&&!1===e.config.emptyViewVisibility)return(0,o.jsx)(o.Fragment,{});else return(0,o.jsx)(n.PrefetchAwaiterReact,{className:(e.className||"")+" "+((null===(r=e.config)||void 0===r?void 0:r.className)||"")+" sabyPage-MainLayout__topTemplate tw-flex tw-grow-0 tw-shrink-0 "+("topContent"!==e.position?"controls-margin_left-m":""),type:"topTemplate",prefetchResult:e.prefetch,loadType:e.loadType,templateName:null===(s=e.config)||void 0===s?void 0:s.templateName,templateOptions:p,stateRecord:e.stateRecord,controllers:l})}function c(e){const t=(0,i.useContext)(s.DesignContext),a=(0,i.useMemo)((()=>{var o;
5return{...e.filterConfig,contrastBackground:e.contrastBackground,designContextValue:{...t,alignment:null===(o=e.filterConfig)||void 0===o?void 0:o.alignment,searchInlineHeight:"mt"}}}),[e.filterConfig,e.contrastBackground]);return(0,o.jsx)(n.PrefetchAwaiterReact,{className:e.className,type:"filter",prefetchResult:e.prefetch,loadType:e.loadType,templateName:"SabyPage/contentLayout:filterTemplate",templateOptions:a})}function g(e){var t,r,s,l,p,d,c;const g=(0,i.useContext)((0,a.getBuildingContext)()),[u,h]=(0,i.useState)(0),f=(0,i.useCallback)((t=>{var o;null===(o=e.editingTitleChangedHandler)||void 0===o||o.call(e,t)}),[e.editingTitleChangedHandler]),m=(0,i.useCallback)((()=>{var t,o,i;h(null===(i=null===(o=null===(t=e.formFactory)||void 0===t?void 0:t.state)||void 0===o?void 0:o.record)||void 0===i?void 0:i.getVersion())}),[null===(r=null===(t=e.formFactory)||void 0===t?void 0:t.state)||void 0===r?void 0:r.record,e.pageId]);(0,i.useEffect)((()=>{var t,o,i,a,n,r;return null===(i=null===(o=null===(t=e.formFactory)||void 0===t?void 0:t.state)||void 0===o?void 0:o.record)||void 0===i||i.unsubscribe("onPropertyChange",m),null===(r=null===(n=null===(a=e.formFactory)||void 0===a?void 0:a.state)||void 0===n?void 0:n.record)||void 0===r||r.subscribe("onPropertyChange",m),()=>{var t,o,i;null===(i=null===(o=null===(t=e.formFactory)||void 0===t?void 0:t.state)||void 0===o?void 0:o.record)||void 0===i||i.unsubscribe("onPropertyChange",m)}}),[null===(l=null===(s=e.formFactory)||void 0===s?void 0:s.state)||void 0===l?void 0:l.record,m,e.pageId]);const v=(0,i.useMemo)((()=>{var t,o;return{headingTitle:e.headingTitle,pageTitle:e.pageTitle,titleVisibility:e.titleVisibility,backButtonOptions:null===(t=e.backButtonConfig)||void 0===t?void 0:t.backButtonOptions,backButtonConfig:e.backButtonConfig,viewMode:e.viewMode,position:"top",getHeadingCallback:e.getHeadingCallback,accessAllowed:e.accessAllowed,editingTitle:e.isEditingTitle,editing:e.isEditing,form:null===(o=e.formFactory)||void 0===o?void 0:o.state,formFactory:e.formFactory,accordionExpanded:e.accordionExpanded,langDictionary:e.langDictionary,logoDesc:e.logoDesc,logoUrl:e.logoUrl,isMainPage:e.isMainPage,showAppSelector:e.showAppSelector,openAppSelectPanel:e.openAppSelectPanel,isOnPanel:e.isOnPanel,alwaysShowLogo:e.alwaysShowLogo,sidebarVisible:e.sidebarVisible,subTitleConfig:e.subTitleConfig,sidebarTheme:e.sidebarTheme,contrastBackgroun
5d:e.contrastBackground,navigationHierarchy:e.navigationHierarchy,onEditingTitleChanged:f,recordVersion:u}}),[e.headingTitle,e.pageTitle,e.titleVisibility,e.backButtonConfig,e.viewMode,e.getHeadingCallback,e.accessAllowed,e.isEditingTitle,e.isEditing,e.formFactory,null===(p=e.formFactory)||void 0===p?void 0:p.state,e.accordionExpanded,e.logoDesc,e.logoUrl,e.isMainPage,e.showAppSelector,e.openAppSelectPanel,e.isOnPanel,e.alwaysShowLogo,e.sidebarVisible,e.sidebarTheme,e.subTitleConfig,e.contrastBackground,e.navigationHierarchy,f,u,g]);return(0,o.jsx)(n.PrefetchAwaiterReact,{className:(e.className||"")+(e.isEditingTitleActive?" sabyPage-MainLayout__backButton-grow":""),type:"backbutton",prefetchResult:e.prefetch,loadType:e.loadType,templateName:"SabyPage/contentLayout:BackButtonController",templateOptions:v,stateRecord:null===(c=null===(d=e.formFactory)||void 0===d?void 0:d.state)||void 0===c?void 0:c.record,controllers:g})}function u(e){var t,r,s,l,d;const c=(0,i.useContext)((0,a.getBuildingContext)()),g=(0,p.useSlice)(null===(t=e.backButtonConfig)||void 0===t?void 0:t.storeId),u=(0,i.useMemo)((()=>
5({contrastBackground:e.contrastBackground,backButtonConfig:e.backButtonConfig,viewMode:e.viewMode,pageTitle:e.pageTitle,navigationHierarchy:e.navigationHierarchy})),[e.contrastBackground,e.backButtonConfig,e.viewMode,e.pageTitle,e.navigationHierarchy,c]),h=null!==(l=null===(s=null===(r=null==g?void 0:g.breadCrumbsItems)||void 0===r?void 0:r.getCount)||void 0===s?void 0:s.call(r))&&void 0!==l?l:null===(d=null==g?void 0:g.breadCrumbsItems)||void 0===d?void 0:d.length;if(g&&!g.backButtonCaption&&!h)return null;else return(0,o.jsx)(n.PrefetchAwaiterReact,{type:"breadcrumbs",prefetchResult:e.prefetch,loadType:e.loadType,templateName:"SabyPage/contentLayoutTemplates/BreadCrumbsController",templateOptions:u,controllers:c})}function h(e){const t=(0,i.useContext)((0,a.getBuildingContext)());return(0,o.jsx)(n.PrefetchAwaiterReact,{className:e.className,type:"workspace",isCompound:e.isCompound,prefetchResult:e.prefetch,loadType:e.loadType,templateName:e.templateName,templateOptions:e.templateOptions,stateRecord:e.stateRecord,controllers:t})}function f(e){var t,r;const s=(0,i.useContext)((0,a.getBuildingContext)());return(0,o.jsx)(n.PrefetchAwaiterReact,{className:"sabyPage-MainLayout__topTemplate tw-flex tw-grow-0 tw-shrink-0 controls-margin_left-m",type:"beforelogo",prefetchResult:e.prefetch,loadType:e.loadType,templateName:null===(t=e.beforeLogoTemplateConfig)||void 0===t?void 0:t.templateName,templateOptions:null===(r=e.beforeLogoTemplateConfig)||void 0===r?void 0:r.templateOptions,stateRecord:e.stateRecord,controllers:s})}function m(e){const t=(0,i.useContext)((0,a.getBuildingContext)()),r=(0,i.useMemo)((()=>({pageId:e.pageId,langDictionary:e.langDictionary,useOperationsPanel:!1,masterExpandProperty:e.masterExpandProperty,masterExpanded:e.masterExpanded,type:"main",allowAdaptive:e.allowAdaptive,isEmptyView:e.isEmptyView})),[e.pageId,e.langDictionary,e.masterExpandProperty,e.masterExpanded,e.allowAdaptive,e.isEmptyView,t]);return(0,o.jsx)(n.PrefetchAwaiterReact,{className:"sabyPage-MainLayout__mainToolbar controls-margin_left-m",type:"toolbar",prefetchResult:e.prefetch,loadType:e.loadType,templateName:"SabyPage/actionsToolbar:View",templateOptions:r,stateRecord:e.stateRecord,controllers:t})}function v(e){const t=(0,i.useContext)((0,a.getBuildingContext)()),r=(0,i.useMemo)((()=>{var t;return{items:null===(t=e.toolbarConfig)||void 0===t?void 0:t.items,pageId:e.pageId,addButtonConfig:e.addButtonConfig,isEmptyView:e.isEmptyView,langDictionary:e.langDictionary,pageType:e.pageType,buttonStyle:e.buttonStyle,isStack:e.isStack,backButtonProps:e.backButtonProps}}),[e.toolbarConfig,e.pageId,e.addButtonConfig,e.isEmptyView,e.langDictionary,t,e.pageType,e.buttonStyle,e.isStack,e.backButtonProps]);if(!e.workspaceErrorConfig&&e.addButtonConfig&&(e.addButtonConfig.position||"top")===e.position)return(0,o.jsx)(n.PrefetchAwaiterReact,{className:"top"===e.position?"controls-margin_left-m":"",type:"addButton",prefetchResult:e.prefetch,loadType:e.loadType,templateName:"SabyPage/widgets/AddButton",templateOptions:r,controllers:t});else return(0,o.jsx)(o.Fragment,{})}Object.defineProperty(t,"__esModule",{value:!0}),t.AddButtonTemplate=t.EditControl=t.LeftButtons=t.BeforeLogo=t.SortingArea=t.WorkspaceTemplate=t.TabsWrapper=t.BreadCrumbsArea=t.BeforeTabsTemplate=t.FloatingTemplate=t.SearchArea=t.HeaderLeftContent=t.Title=t.FilterArea=t.TopCustomArea=t.AreaTemplate=void 0,t.TopCustomArea=d,t.FilterArea=c,t.Title=g;const _=(0,r.lazy)((()=>(0,r.importer)("SabyPage/contentLayoutTemplates/SubTitle"))),y=(0,i.memo)((e=>{var t,n,r,s,l,p,c,u,h,y,C,b,w,T,k,P,E,B,x,S;const M=(0,i.useMemo)((()=>({backButtonConfig:e.backButtonConfig,navigationHierarchy:e.navigationHierarchy,isOnPanel:e.isOnPanel,backButtonPrefetchResult:a.PrefetchHelper.getPrefetchResult(e.prefetch,"backbutton")})),[e.backButtonConfig,e.navigationHierarchy,e.isOnPanel,e.prefetch]);return(0,o.jsxs)(o.Fragment,{children:[e.beforeLogoTemplateConfig&&!e.workspaceErrorConfig?(0,o.jsx)(f,{beforeLogoTemplateConfig:e.beforeLogoTemplateConfig,prefetch:e.prefetch,loadType:null===(t=e.prefetchConfig)||void 0===t?void 0:t.loadType,stateRecord:null===(r=null===(n=e.formFactory)||void 0===n?void 0:n.state)||void 0===r?void 0:r.record}):null,(0,o.jsx)(g,{prefetch:e.prefetch,loadType:null===(s=e.prefetchConfig)||void 0===s?void 0:s.loadType,isEditing:e.isEditing,isEditingTitle:e.isEditingTitle,isEditingTitleActive:e.isEditingTitleActive,headingTitle:e.headingTitle,pageTitle:e.pageTitle,titleVisibility:e.titleVisibility||(null===(l=e.sidebarSettings)||void 0===l?void 0:l.titleVisibility),backButtonConfig:e.backButtonConfig,viewMode:e.backButtonViewMode,getHeadingCallback:e.getHeadingCallback,accessAllowed:e.accessAllowed,formFactory:e.formFactory,accordionExpanded:null===(p=e.viewSettings)||void 0===p?void 0:p.accordionExpanded,langDictionary:e.langDictionary,logoDesc:(null===(c=e.viewSettings)||void 0===c?void 0:c.portalWidth)&&e.viewSettings.portalWidth>=1300?e.logoDesc:"",logoUrl:e.logoUrl,isMainPage:e.isMainPage,showAppSelector:e.showAppSelector&&!e.sidebarVisible&&!e.isOnPanel,openAppSelectPanel:e.openAppSelectPanel,isOnPanel:e.isOnPanel,alwaysShowLogo:!e.sidebarVisible,sidebarVisible:e.sidebarVisible,subTitleConfig:e.subTitleConfig,sidebarTheme:e.sidebarTheme,contrastBackgroun
5d:e.contrastBackground,navigationHierarchy:e.navigationHierarchy,editingTitleChangedHandler:e.editingTitleChangedHandler}),e.subTitleConfig?(0,o.jsx)(_,{prefetch:e.prefetch,loadType:null===(u=e.prefetchConfig)||void 0===u?void 0:u.loadType,config:e.subTitleConfig,stateRecord:null===(y=null===(h=e.formFactory)||void 0===h?void 0:h.state)||void 0===y?void 0:y.record}):null,(0,o.jsx)(v,{position:"top",prefetch:e.prefetch,loadType:null===(C=e.prefetchConfig)||void 0===C?void 0:C.loadType,toolbarConfig:e.toolbarConfig,pageId:e.pageId,addButtonConfig:e.addButtonConfig,isEmptyView:e.isEmptyView,langDictionary:e.langDictionary,workspaceErrorConfig:e.workspaceErrorConfig,pageType:"main",isStack:e.isStack,buttonStyle:e.addButtonStyle,backButtonProps:M}),(e.toolbarConfig||(null===(b=e.masterConfig)||void 0===b?void 0:b.masterExpandProperty))&&(!1!==e.masterExpanded||e.isPopup)&&!e.workspaceErrorConfig?(0,o.jsx)(m,{prefetch:e.prefetch,loadType:null===(w=e.prefetchConfig)||void 0===w?void 0:w.loadType,stateRecord:null===(k=null===(T=e.formFactory)||void 0===T?void 0:T.state)||void 0===k?void 0:k.record,isEmptyView:e.isEmptyView,toolbarConfig:e.toolbarConfig,langDictionary:e.langDictionary,allowAdaptive:e.allowAdaptive,pageId:e.pageId,masterExpandProperty:null===(P=e.masterConfig)||void 0===P?void 0:P.masterExpandProperty,masterExpanded:e.masterExpanded}):null,e.topLeftTemplateConfig||"left"===(null===(E=e.topTemplateConfig)||void 0===E?void 0:E.position)?(0,o.jsx)(d,{position:"right",prefetch:e.prefetch,loadType:null===(B=e.prefetchConfig)||void 0===B?void 0:B.loadType,stateRecord:null===(S=null===(x=e.formFactory)||void 0===x?void 0:x.state)||void 0===S?void 0:S.record,workspaceErrorConfig:e.workspaceErrorConfig,isEmptyView:e.isEmptyView,config:e.topLeftTemplateConfig||e.topTemplateConfig,masterExpanded:e.masterExpanded}):null]})}));t.HeaderLeftContent=y,t.SearchArea=function(e){var t,a,r,s,l;const p=(0,i.useMemo)((()=>
5({...e.filterConfig,contrastBackground:e.contrastBackground,designContextValue:{contrastBackground:e.contrastBackground,searchInlineHeight:"mt"}})),[e.filterConfig,e.contrastBackground]);return(0,o.jsx)("div",{className:(e.className||"")+" tw-flex sabyPage-MainLayout__search "+((null===(t=e.filterConfig)||void 0===t?void 0:t.filterWithSearch)?"sabyPage-MainLayout__search-with-filter":(!e.isEditingTitleActive?"sabyPage-MainLayout__search-grow":"tw-grow-0")+" tw-shrink-1")+(!e.workspaceErrorConfig&&(null===(a=e.filterConfig)||void 0===a?void 0:a.searchTemplateName)&&(!e.isEmptyView||(null===(r=e.filterConfig)||void 0===r?void 0:r.searchEmptyViewVisible))?" sabyPage-MainLayout__search-minWidth":""),children:!e.workspaceErrorConfig&&(null===(s=e.filterConfig)||void 0===s?void 0:s.searchTemplateName)&&(!e.isEmptyView||(null===(l=e.filterConfig)||void 0===l?void 0:l.searchEmptyViewVisible))?(0,o.jsx)(n.PrefetchAwaiterReact,{type:"search",className:"tw-flex tw-shrink-1 tw-grow-0",prefetchResult:e.prefetch,loadType:e.loadType,templateName:"SabyPage/contentLayout:searchTemplate",templateOptions:p}):null})},t.FloatingTemplate=function(e){var t,a;const n=(0,i.useMemo)((()=>{var t;if(null===(t=e.floatingAreaConfig)||void 0===t?void 0:t.templateName)return(0,r.lazy)((()=>(0,r.importer)(e.floatingAreaConfig.templateName)));else return null}),[e.floatingAreaConfig]);return(null===(t=e.floatingAreaConfig)||void 0===t?void 0:t.templateName)?(0,o.jsx)("div",{className:"sabyPage-MainLayout__floatingTemplate",children:(0,o.jsx)(n,{...null===(a=e.floatingAreaConfig)||void 0===a?void 0:a.templateOptions})}):(0,o.jsx)(o.Fragment,{})};const C=(0,i.memo)((function(e){return(0,o.jsx)(o.Fragment,{children:e.beforeTabsConfig&&!e.workspaceErrorConfig&&(!e.isEmptyView||!1!==e.beforeTabsConfig.emptyViewVisibility)?(0,o.jsx)(n.PrefetchAwaiterReact,{className:e.className,type:"beforeTabs",prefetchResult:e.prefetch,loadType:e.loadType,templateName:e.beforeTabsConfig.templateName,templateOptions:e.templateOptions,stateRecord:e.stateRecord}):null})}));t.BeforeTabsTemplate=C,t.BreadCrumbsArea=u;const b=(0,r.lazy)((()=>(0,r.importer)("Controls-Layout/routingTabs:Buttons"))),w=(0,i.memo)((function(e){var t,i,a;return(0,o.jsx)(b,{className:e.className,"data-qa":"sabyPage-tabs","data-name":"sabyPage-tabs",tabs:e.tabs,selectedTabItemKey:e.selectedTabItemKey,scopeId:e.scopeId,animationMode:(null===(t=e.formFactory)||void 0===t?void 0:t.record)?"none":"immediate",contrastBackgroun
5d:e.contrastBackground,borderVisible:!e.contrastBackground,tabSpaceTemplate:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:" sabyPage-MainLayout__beforeTabsTemplateLeft tw-flex tw-items-baseline tw-self-baseline tw-shrink-1 "+(e.workspaceErrorConfig||!e.beforeTabsConfig&&(e.isEmptyView||"left"!==e.filterPosition)?"tw-grow-1":""),style:{minWidth:e.beforeTabsWidth+"px"},children:[e.canShowBreadCrumbs?(0,o.jsx)(u,{prefetch:e.prefetch,loadType:e.loadType,contrastBackground:e.contrastBackground,backButtonConfig:e.backButtonConfig,viewMode:e.backButtonViewMode,navigationHierarchy:e.navigationHierarchy,pageTitle:e.pageTitle}):null,!e.isEmptyView&&!e.workspaceErrorConfig&&"left"===e.filterPosition?(0,o.jsx)(c,{className:"sabyPage-MainLayout__filterLeft "+(e.contrastBackground?"sabyPage-MainLayout__filterLeft_contrast":"sabyPage-MainLayout__filterLeft_default"),prefetch:e.prefetch,loadType:e.loadType,filterConfig:e.filterConfig}):null]}),(0,o.jsx)(C,{className:"sabyPage-MainLayout__beforeTabs sabyPage-MainLayout__beforeTabs_tabSpace "+e.beforeTabsMargin,prefetch:e.prefetch,loadType:e.loadType,beforeTabsConfig:e.beforeTabsConfig,templateOptions:e.tabsTemplateOptions,stateRecord:null===(a=null===(i=e.formFactory)||void 0===i?void 0:i.state)||void 0===a?void 0:a.record,workspaceErrorConfig:e.workspaceErrorConfig,isEmptyView:e.isEmptyView})]})})}));t.TabsWrapper=w;const T=(0,r.lazy)((()=>(0,r.importer)("SabyPage/widgets:errorTemplate"))),k=(0,r.lazy)((()=>(0,r.importer)("SabyPage/widgets:emptyViewTemplate"))),P=(0,r.lazy)((()=>(0,r.importer)("SabyPage/contentLayoutTemplates/LicenseTemplate"))),E=(0,i.memo)((function(e){var t,a,n,r,s,p,d,c,g,u,f,m,v,_,y;const C=(0,i.useCallback)((t=>{var o,i;if(t)if(null===(i=null===(o=e.emptyViewConfig)||void 0===o?void 0:o.licenseConfig)||void 0===i?void 0:i.callback)(0,l.loadAsync)(e.emptyViewConfig.licenseConfig.callback).then((e=>{e(t)}))}),[null===(t=e.emptyViewConfig)||void 0===t?void 0:t.licenseConfig]),b=(0,i.useMemo)((()=>{var t,o,i,a;let n=e.licenseConfig;if(e.licenseConfig&&(null===(t=e.emptyViewConfig)||void 0===t?void 0:t.licenseConfig)){const t={...e.emptyViewConfig.licenseConfig};t.callback=C,n={footerConfig:{...null===(o=e.licenseConfig)||void 0===o?void 0:o.footerConfig,templateOptions:{...null===(a=null===(i=e.licenseConfig)||void 0===i?void 0:i.footerConfig)||void 0===a?void 0:a.templateOptions,...t}}}}return n}),[e.licenseConfig,e.emptyViewConfig,C]),w=null===(a=e.workspaceTemplateOptions)||void 0===a?void 0:a.pageId,E=(0,i.useMemo)((()=>({entityId:w})),[w]);if(e.workspaceErrorConfig)return(0,o.jsx)(T,{workspaceErrorConfig:e.workspaceErrorConfig,emptyViewConfig:e.emptyViewConfig,form:null===(n=e.formFactory)||void 0===n?void 0:n.state,langDictionary:e.langDictionary});if(!e.workspaceConfig)return(0,o.jsx)(o.Fragment,{});if(e.isEmptyView)return(0,o.jsx)(k,{emptyViewConfig:e.emptyViewConfig,emptyTemplateOptionsGetter:null===(r=e.emptyViewConfig)||void 0===r?void 0:r.emptyTemplateOptionsGetter,emptyTemplateOptionsGetterArguments:null===(s=e.emptyViewConfig)||void 0===s?void 0:s.emptyTemplateOptionsGetterArguments,licenseConfig:b,redirectConfig:e.redirectConfig,langDictionary:e.langDictionary,isMaster:e.isMaster,contrastBackgroun
5d:e.contrastBackground,highlightContentArea:e.highlightContentArea,blockLayout:e.blockLayout,embedRouteProps:E});if(e.isRedirectEmptyView)return(0,o.jsx)(k,{emptyViewConfig:null===(p=e.redirectConfig)||void 0===p?void 0:p.emptyViewConfig,emptyTemplateOptionsGetter:null===(d=e.redirectConfig)||void 0===d?void 0:d.emptyTemplateOptionsGetter,emptyTemplateOptionsGetterArguments:null===(c=e.redirectConfig)||void 0===c?void 0:c.emptyTemplateOptionsGetterArguments,langDictionary:e.langDictionary,isMaster:e.isMaster,contrastBackground:e.contrastBackground,highlightContentArea:e.highlightContentArea,blockLayout:e.blockLayout});if(null===(g=e.licenseConfig)||void 0===g?void 0:g.footerConfig)return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(h,{className:e.className,templateName:e.workspaceConfig.templateName,templateOptions:e.workspaceTemplateOptions,isCompound:e.workspaceConfig.isCompound,prefetch:e.prefetch,loadType:e.loadType,stateRecord:null===(f=null===(u=e.formFactory)||void 0===u?void 0:u.state)||void 0===f?void 0:f.record}),(0,o.jsx)("div",{className:"sabyPage-ContentLayout__licenseWrapper",children:(0,o.jsx)(P,{...e.licenseConfig.footerConfig,licenseConfig:null===(m=e.emptyViewConfig)||void 0===m?void 0:m.licenseConfig,pageId:null===(v=e.workspaceTemplateOptions)||void 0===v?void 0:v.pageId})})]});else return(0,o.jsx)(h,{className:e.className,templateName:e.workspaceConfig.templateName,templateOptions:e.workspaceTemplateOptions,isCompound:e.workspaceConfig.isCompound,prefetch:e.prefetch,loadType:e.loadType,stateRecord:null===(y=null===(_=e.formFactory)||void 0===_?void 0:_.state)||void 0===y?void 0:y.record})}));t.WorkspaceTemplate=E,t.AreaTemplate=h,t.SortingArea=function(e){var t,i;return(0,o.jsx)(n.PrefetchAwaiterReact,{type:"sorting",className:"sabyPage-MainLayout__sorting controls-margin_left-m",prefetchResult:e.prefetch,loadType:e.loadType,templateName:null===(t=e.filterConfig)||void 0===t?void 0:t.sortingTemplateName,templateOptions:null===(i=e.filterConfig)||void 0===i?void 0:i.sortingTemplateOptions})},t.BeforeLogo=f,t.LeftButtons=m;const B=(0,r.lazy)((()=>(0,r.importer)("SabyPage/widgets/EditControlPanel")));return t.EditControl=function(e){var t,n,r,s;const l=(0,i.useContext)((0,a.getBuildingContext)());return(0,o.jsx)(B,{className:"sabyPage-MainLayout__editControlPanel controls-margin_left-m tw-flex tw-grow-0 tw-shrink-0 tw-items-baseline",editing:e.isEditing,editingTitle:e.isEditingTitle,pageId:e.pageId,langDictionary:e.langDictionary,...null===(n=null===(t=e.formFactory)||void 0===t?void 0:t.state)||void 0===n?void 0:n.formMethodConfig,record:null===(s=null===(r=e.formFactory)||void 0===r?void 0:r.state)||void 0===s?void 0:s.record,controllers:l,...l})},t.AddButtonTemplate=v,t}(0,{},e,t,c,d,s,u,i,v),T=w,k=function(e,t,o,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=(0,i.lazy)((()=>(0,i.importer)("SabyPage/contentLayoutSearch:SearchController")));return t.default=function(e){if(!e.storeId)return(0,o.jsx)(a,{prefetchResult:e.prefetchResult,storeId:e.storeId,children:e.children});else return(0,o.jsx)(o.Fragment,{children:e.children})},t}(0,{},e,s),P=function(e,t){"use strict";function o(){return this}var i=["_caption","_startEditTitle","_getFontSize","_value","_onValueChangedHandler","_onInputCompletedHandler","_translate","logoVisible","_hasBackButton","_rootItem","_hasBackButtonId","_prefetchResult","_needIconClassName","_isOnPanel","_backButtonClick","headerEditingConfig","form","_options","templateName","stateRecord","resolvedTemplate","content","contrastBackgroun
5d","sabyPage-MainLayout__titleEditor_offsetOld","propertyName","valueChanged","inputCompleted","placeholder","langDictionary","adaptiveLayout","isReadOnly","editingTitle","editMode","click","controls-margin_left-xl","logo","logoType","logoDesc","logoUrl","showBird","isMainPage","showAppSelector","openAppSelectPanel","sidebarTheme","accessAllowed","viewMode","title","position","bottom","alwaysShowLogo","storeId","backButtonConfig","Router","navigateToMasterPage","iconViewMode","backButtonOptions","functionalButton"," tw-overflow-hidden "," sabyPage-MainLayout__backButton-emptyEdit "," tw-grow-0 ",""," sabyPage-MainLayout__backButton"," controls-margin_left-m"," sabyPage-MainLayout__backButton-onPanel"," sabyPage-MainLayout__backButton_funcBtn"," tw-overflow-hidden","top","default","secondary","fade","sabyPage-MainLayout__backButton","tw-h-full","tw-shrink-0","afterBackButtonTemplate","backButton","accordionExpanded","getHeadingCallback","headingTitle","titleVisibility","hidden","pageContext","contextOptionsInnerComponent","popup","alwaysVisible","tw-shrink-1","controls-margin_left-m_optional","controls-margin_left-m"," controls-margin_left-s","-onPanel","sabyPage-MainLayout__title_offsetOld","sabyPage-MainLayout__logo_left-padding"];return e.g({v:1,m:"wml!SabyPage/_contentLayout/Template/BackButtonController",d:e.d(["Controls/buttons","Controls/Container/Async","Page/base"],arguments,2),t:[e.c(((e,t)=>[e.P(t,e.m(t,2),{K:"1_0_0_0_0_",A:{class:"sabyPage-MainLayout__titleEditor "+e.e(e.m(t,3))},O:{fontSize:e.m(t,4),stateRecord:e.m(t,5)},g:!0,m:"attribute"})])),e.c(((e,t)=>[e.P(t,e.m(t,2),{K:"1_0_0_0_",A:{"ws-autofocus":"true",class:"sabyPage-MainLayout__titleEditor "+e.e(e.m(t,3))},E:{"on:valuechanged":[{value:i[4],originalName:i[25],viewController:t.v}],"on:inputcompleted":[{value:i[5],originalName:i[26],viewController:t.v}],meta:{isControl:!1,context:o,handler:e.M(t,8)}},O:{fontSize:e.m(t,4),fontWeight:"bold",inlineHeight:"xl",placeholder:e.m(t,9),value:e.m(t,7)},g:!0,m:"attribute"})])),e.c(((e,t)=>[e.C(t,"ws:Controls/Container/Async",{K:"1_0_",O:{esc:!1,templateName:"Controls/input:Text",content:e.o(t,1,1)},g:!0,m:"attribute"})])),e.c(((e,t)=>[e.P(t,e.m(t,2),{K:"1_1_0_0_0_0_",O:{esc:!1,validators:e.F(t,"Controls/validate:isRequired",{value:e.m(t,7)}),content:e.o(t,2,2)},g:!0,m:"attribute",b:["validators"]})])),e.t("headerEditor",((e,t)=>[e.m(t,0)?[e.C(t,"ws:Controls/Container/Async",{K:"1_0_0_",O:{esc:!1,templateName:e.m(t,1),content:e.o(t,0,0)},g:!0,m:"attribute"})]:[e.m(t,6)?[e.C(t,"ws:Controls/Container/Async",{K:"1_1_0_0_",O:{esc:!1,templateName:"Controls/validate:Container",content:e.o(t,3,1)},g:!0,m:"attribute"})]:e.t()]])),e.t("editButton",((e,a)=>[e.m(a,10)?[e.C(a,{library:"Controls/buttons",module:["Button"]},{K:"0_0_0_",A:{class:"controls-margin_left-m","data-qa":"SabyPage_mainLayout__start_edit_button"},E:{"on:click":[{value:i[1],originalName:i[33],viewController:a.v}],meta:{isControl:!1,context:o,handler:e.M(a,8)}},O:{tooltip:t("Редактировать"),viewMode:"linkButton",icon:"icon-Edit",iconSize:"m",iconStyle:"secondary",inlineHeight:"m",buttonStyle:"secondary"},g:!0,m:"attribute"})]:e.t()])),e.c(((e,t)=>[e.P(t,e.m(t,2),{K:"2_0_0_0_0_",A:{class:"sabyPage-MainLayout__logo navigation_theme tw-grow-0 "+e.e(e.m(t,12))},O:{location:"Header",logo:e.m(t,13),logoType:e.m(t,14),logoDesc:e.m(t,15),logoUrl:e.m(t,16),showBird:e.m(t,17),isMainPage:e.m(t,18),showAppSelector:e.m(t,19),openAppSelectPanel:e.m(t,20),sidebarTheme:e.m(t,21),sabyLayout:!0},g:!0,m:"attribute"})])),e.t("logotype",((e,t)=>[e.m(t,11)?[e.C(t,"ws:Controls/Container/Async",{K:"2_0_0_",O:{esc:!1,templateName:"NavigationPanels/Logotype",content:e.o(t,6,3)},g:!0,m:"attribute"})]:[e.g(t,"invisible-node",{K:"2_1_0_",r:!0})]])),e.c(((e,t)=>[e.P(t,e.m(t,2),{K:"3_0_0_0_0_0_0_",A:{class:e.e(e.m(t,27))+" "+e.e(e.m(t,28))+" "+e.e(e.m(t,29))+" "+e.e(e.m(t,30))},O:e.S(t,{storeId:e.m(t,31),hideEmpty:e.m(t,32),clickCallback:e.m(t,34),fontSize:e.m(t,4),fontColorStyle:e.m(t,35),viewMode:e.m(t,36),iconStyle:"primary"},e.m(t,33)),g:!0,m:"attribute",i:4})])),e.c(((e,t)=>[e.P(t,e.m(t,2),{K:"3_0_0_1_0_0_0_",A:{class:e.e(e.m(t,37))+" "+e.e(e.m(t,28))+" "+e.e(e.m(t,29))+" "+e.e(e.m(t,30))+" "+e.e(e.m(t,38))},E:{"on:click":[{value:i[14],originalName:i[33],viewController:t.v}],meta:{isControl:!1,context:o,handler:e.M(t,8)}}
5,O:e.S(t,{rootItem:e.m(t,39),caption:e.m(t,40),fontSize:e.m(t,4),fontColorStyle:e.m(t,35),viewMode:e.m(t,36),iconStyle:"primary"},e.m(t,33)),g:!0,m:"attribute",i:4})])),e.c(((e,t)=>[e.P(t,e.m(t,2),{K:"3_1_0_0_0_0_0_1_0_0_0_",A:{class:"sabyPage-MainLayout__title tw-overflow-hidden tw-shrink-1 "+e.e(e.m(t,48))+" sabyPage-MainLayout__title_position-"+e.e(e.m(t,49))+e.e(e.m(t,50))+" "+e.e(e.m(t,51))},O:{fontSize:e.m(t,4),fontColorStyle:"default",readOnly:!0,caption:e.m(t,40),tooltip:e.m(t,52)},g:!0,m:"attribute"})])),e.c(((e,t)=>[e.P(t,e.m(t,2),{K:"3_1_0_0_0_1_0_0_0_",A:{class:"sabyPage-MainLayout__logo navigation_theme tw-grow-0 "+e.e(e.m(t,54)),"data-name":"sabypage-logotype"},O:{location:"Header",logo:e.m(t,13),logoType:e.m(t,14),logoDesc:e.m(t,15),logoUrl:e.m(t,16),showBird:e.m(t,17),isMainPage:e.m(t,18),showAppSelector:e.m(t,19),openAppSelectPanel:e.m(t,20),sidebarTheme:e.m(t,21),sabyLayout:!0},g:!0,m:"attribute"})])),e.c(((e,t)=>[e.m(t,44)?[e.m(t,45)?[e.g(t,"div",{K:"3_1_0_0_0_0_0_",A:{class:"sabyPage-MainLayout__backButton_wrapper tw-flex tw-items-center tw-self-baseline tw-overflow-hidden "+e.e(e.x(t,46))+" "+e.e(e.x(t,25))+" "+e.e(e.x(t,47))+" ","data-name":"sabypage-title"},r:!0},[e.m(t,41)?[e.I(t,4,{K:"3_1_0_0_0_0_0_0_0_"})]:[e.C(t,"ws:Controls/Container/Async",{K:"3_1_0_0_0_0_0_1_0_",O:{esc:!1,templateName:"Controls/heading:Title",content:e.o(t,10,7)}})],e.I(t,5,{K:"3_1_0_0_0_0_0_2_"})])]:e.m(t,53)?[e.C(t,"ws:Controls/Container/Async",{K:"3_1_0_0_0_1_0_",O:{esc:!1,templateName:"NavigationPanels/Logotype",content:e.o(t,11,8)},g:!0,m:"attribute"})]:[e.g(t,"invisible-node",{K:"3_1_0_0_0_2_0_",r:!0})]]:[e.g(t,"invisible-node",{K:"3_1_0_0_1_0_",r:!0})]]),"contextOptionsInnerComponent"),e.c(((e,t)=>[e.P(t,e.m(t,2),{K:"4_0_0_0_0_",A:{class:e.e(e.m(t,37))+" "+e.e(e.m(t,28))+" "+e.e(e.m(t,29))+" "+e.e(e.m(t,30))+" "+e.e(e.m(t,38)),"data-name":"sabypage-backbutton"},E:{"on:click":[{value:i[14],originalName:i[33],viewController:t.v}],meta:{isControl:!1,context:o,handler:e.M(t,8)}},O:e.S(t,{caption:e.m(t,40),tooltip:e.m(t,52),fontSize:e.m(t,4),fontColorStyle:"default",viewMode:e.m(t,36),iconStyle:"primary"},e.m(t,33)),g:!0,m:"attribute",i:4})])),e.r(((e,t)=>[e.m(t,22)?[e.m(t,23)?[e.g(t,"div",{K:"3_0_0_",A:{class:"sabyPage-MainLayout__backButton_wrapper sabyPage-MainLayout__backButton_wrapper-back tw-flex tw-items-center tw-shrink-1 tw-self-baseline "+e.e(e.x(t,24))+" "+e.e(e.x(t,25)),"data-name":"sabypage-backbutton"},r:!0,c:!0},[e.m(t,26)?[e.C(t,"ws:Controls/Container/Async",{K:"3_0_0_0_0_",O:{esc:!1,templateName:"Controls-ListEnv/breadcrumbs:Back",content:e.o(t,8,5)}})]:[e.C(t,"ws:Controls/Container/Async",{K:"3_0_0_1_0_",O:{esc:!1,templateName:"Controls/heading:Back",content:e.o(t,9,6)}})],e.m(t,41)?[e.I(t,4,{K:"3_0_0_2_0_",A:{class:"controls-margin_left-xs"}})]:e.t(),e.m(t,42)?[e.P(t,e.m(t,42),{K:"3_0_0_3_0_",m:"none"})]:e.t(),e.I(t,5,{K:"3_0_0_4_"})])]:e.m(t,43)?[e.C(t,{library:"Page/base",module:["PageControllerContextConsumer"]},{K:"3_1_0_",O:{esc:!1,contextOptionsInnerComponent:e.o(t,12,9)},m:"attribute",c:!0})]:[e.g(t,"invisible-node",{K:"3_2_0_",r:!0,c:!0})]]:[e.m(t,55)?[e.C(t,"ws:Controls/Container/Async",{K:"4_0_0_",O:{esc:!1,templateName:"Controls/heading:Back",content:e.o(t,13,10)},m:"attribute",c:!0})]:[e.g(t,"invisible-node",{K:"4_1_0_",r:!0,c:!0})]]]))],p:i.slice(0,15),e:[(e,t)=>e.g(t,[i[17],i[16],i[15]])&&e.g(t,[i[17],i[16],i[15],i[18]])&&e.g(t,[i[17],i[19]]),(e,t)=>e.g(t,[i[17],i[16],i[15],i[18]]),(e,t)=>e.g(t,[i[21],i[20]]),(e,t)=>!e.g(t,[i[17],i[22]])?i[23]:"",(e,t,o)=>e.c(o,t,[i[2]],[e.g(t,[i[17]])]),(e,t)=>e.g(t,[i[17],i[19]]),(e,t)=>e.g(t,[i[17],i[16],i[15]])&&e.g(t,[i[17],i[16],i[15],i[24]])&&e.g(t,[i[17],i[19]]),(e,t)=>e.g(t,[i[3]]),function(e,t,o,i,a,n){return e.g(this,[n])},(e,t,o)=>e.c(o,t,[i[6]],[e.g(t,[i[17],i[16],i[15],i[27]]),e.g(t,[i[17],i[28]])]),(e,t)=>!e.g(t,[i[17],i[29]])&&e.g(t,[i[17],i[16]])&&e.g(t,[i[17],i[16],i[15]])&&!e.g(t,[i[17],i[16],i[30]])&&!(e.g(t,[i[17],i[31]])||!e.g(t,[i[0]]))&&e.g(t,[i[17],i[16],i[32]])!==i[33],(e,t)=>e.g(t,[i[7]]),(e,t)=>!e.g(t,[i[17],i[29]])?i[34]:"",(e,t)=>e.g(t,[i[17],i[35]]),(e,t)=>e.g(t,[i[17],i[36]]),(e,t)=>e.g(t,[i[17],i[37]]),(e,t)=>e.g(t,[i[17],i[38]]),(e,t)=>
5e.g(t,[i[17],i[39]]),(e,t)=>e.g(t,[i[17],i[40]]),(e,t)=>e.g(t,[i[17],i[41]]),(e,t)=>e.g(t,[i[17],i[42]]),(e,t)=>e.g(t,[i[17],i[43]]),(e,t)=>e.g(t,[i[17],i[44]]),(e,t,o)=>e.g(t,[i[17],i[45]])!==i[46]&&e.c(o,t,[i[8]],[e.g(t,[i[17]]),e.g(t,[i[9]])])&&(e.g(t,[i[17],i[29]])||!(e.g(t,[i[17],i[47]])===i[48]&&e.g(t,[i[9]])))&&(e.c(o,t,[i[8]],[e.g(t,[i[17]]),e.g(t,[i[9]])])||!e.g(t,[i[17],i[49]])||e.g(t,[i[17],i[51],i[50]])||e.c(o,t,[i[10]],[e.g(t,[i[17],i[52]])]))||e.g(t,[i[17],i[53]]),(e,t)=>e.g(t,[i[17],i[55],i[54]])!==i[56]?i[57]:"",(e,t)=>e.g(t,[i[17],i[16]])&&e.g(t,[i[17],i[16],i[15],i[24]])&&!e.g(t,[i[17],i[16],i[30]])&&!e.g(t,[i[0]])?i[58]:!e.g(t,[i[17],i[31]])?i[59]:i[60],(e,t)=>e.g(t,[i[17],i[51],i[50]])&&e.g(t,[i[11]])&&e.g(t,[i[9]]),(e,t)=>!e.g(t,[i[17],i[29]])?i[61]:"",(e,t)=>!e.g(t,[i[17],i[29]])?e.g(t,[i[12]])?i[62]:i[60]:i[60],(e,t)=>e.g(t,[i[13]])&&!e.g(t,[i[17],i[29]])?i[63]:"",(e,t)=>e.g(t,[i[17],i[55],i[54]])===i[56]?i[64]:i[65],(e,t)=>e.g(t,[i[17],i[51],i[50]]),(e,t)=>e.g(t,[i[17],i[55],i[54]])!==i[56]&&!(e.g(t,[i[17],i[16]])&&e.g(t,[i[17],i[16],i[15]])&&!e.g(t,[i[17],i[16],i[30]])&&(e.g(t,[i[17],i[31]])||!e.g(t,[i[0]]))),(e,t)=>e.g(t,[i[17],i[55]]),(e,t)=>e.g(t,[i[14]]),(e,t)=>e.g(t,[i[17],i[47]])===i[66]?i[67]:i[68],(e,t)=>!e.g(t,[i[17],i[29]])&&e.g(t,[i[12]])?i[69]:void 0,(e,t)=>!e.g(t,[i[17],i[29]])?i[70]:i[71],(e,t)=>!e.g(t,[i[0]])?i[72]:"",(e,t)=>e.g(t,[i[9]]),(e,t)=>e.g(t,[i[0]])||i[60],(e,t)=>e.g(t,[i[17],i[16]])&&e.g(t,[i[17],i[16],i[15]])&&!e.g(t,[i[17],i[16],i[30]])&&(e.g(t,[i[17],i[31]])||!e.g(t,[i[0]])),(e,t)=>e.g(t,[i[17],i[51],i[73]]),(e,t)=>e.g(t,[i[17],i[45]])!==i[74]&&((!e.g(t,[i[17],i[75]])||e.g(t,[i[0]])&&e.g(t,[i[17],i[76]])&&e.g(t,[i[0]])!==e.g(t,[i[17],i[77]])+i[60])&&e.g(t,[i[17],i[78]])!==i[79]||e.g(t,[i[17],i[49]])&&!(e.g(t,[i[17],i[78]])===i[79]&&e.g(t,[i[13]]))||e.g(t,[i[17],i[16]])&&e.g(t,[i[17],i[16],i[15]])),(e,t)=>e.g(t,[i[81],i[80],i[7]]),(e,t)=>e.g(t,[i[17],i[16]])&&e.g(t,[i[17],i[16],i[15]])&&!e.g(t,[i[17],i[16],i[30]])&&(e.g(t,[i[17],i[31]])||!e.g(t,[i[0]]))||(e.g(t,[i[0]])||e.g(t,[i[17],i[16]])&&e.g(t,[i[17],i[16],i[15]]))&&(!e.g(t,[i[17],i[49]])||e.g(t,[i[0]])&&e.g(t,[i[17],i[76]])&&e.g(t,[i[0]])!==e.g(t,[i[17],i[77]])+i[60]||e.g(t,[i[13]])&&e.g(t,[i[17],i[78]])===i[82]||e.g(t,[i[13]])&&e.g(t,[i[17],i[78]])===i[83]),(e,t)=>e.g(t,[i[0]])===e.g(t,[i[17],i[77]])+i[60]?i[72]:i[84],(e,t)=>!e.g(t,[i[17],i[29]])?e.g(t,[i[13]])?i[85]:i[86]:i[71],(e,t)=>!e.g(t,[i[17],i[29]])&&!e.g(t,[i[13]])&&!e.g(t,[i[17],i[49]])?i[87]:"",(e,t)=>e.g(t,[i[17],i[47]]),(e,t)=>e.g(t,[i[13]])&&!e.g(t,[i[17],i[29]])?i[88]:"",(e,t)=>!e.g(t,[i[17],i[22]])?i[89]:"",(e,t)=>e.g(t,[i[0]]),(e,t)=>(!e.g(t,[i[17],i[75]])||e.g(t,[i[17],i[49]]))&&e.g(t,[i[0]])!==i[60]&&!e.g(t,[i[13]]),(e,t)=>!e.g(t,[i[17],i[29]])?i[90]:"",(e,t,o)=>e.g(t,[i[17],i[45]])!==i[46]&&e.g(t,[i[17],i[47]])===i[66]&&e.c(o,t,[i[8]],[e.g(t,[i[17]])])],i:[[[2,5]],[[2,4],[7],[9]],[[3,4],[7],[9]],[[2],[12,21]],[[33]],[[2],[4],[27,36]],[[2],[4],[28,30],[33],[35,40]],[[2],[4],[40],[48,52]],[[2],[13,21],[54]],[[0,1],[3,7],[9,10],[13,21],[25],[40,41],[44,54]],[[2],[4],[28,30],[33],[36,38],[40],[52]]]})}(_,o,"undefined"==typeof Controls_buttons?null:Controls_buttons,"undefined"==typeof Controls_Container_Async?null:Controls_Container_Async,c),E=function(e){"use strict";var t=["prefetchConfigError","prefetchResult","designContextValue","_options","filterTemplateName","resolvedTemplate","content","autofocusSearch","searchTemplateName","sabyPage-MainLayout__filter ","className","filterTemplateOptions","","source","items","historyId","useStore","alignment","widgetName","dataSetName","Controls/filter:View","Controls-ListEnv/filterConnected:View","contrastBackgroun
5d","filterContrastBackground","searchWidth","filterNames","storeId","filterButtonSource"];return e.g({v:1,m:"wml!SabyPage/_contentLayout/Template/filterTemplate",d:e.d(["Controls/design","Controls/Container/Async"],arguments,1),t:[e.c(((e,t)=>[e.P(t,e.m(t,2),{K:"0_0_0_0_0_0_",A:{"data-name":"sabyPage-MainLayout__filterTemplate","ws-autofocus":e.e(e.m(t,3)),class:e.e(e.m(t,4))},O:e.S(t,{source:e.m(t,5),items:e.m(t,6),historyId:e.m(t,7),useStore:e.m(t,8),alignment:e.m(t,9),prefetchResult:e.m(t,10),widgetName:e.m(t,11),dataSetName:e.m(t,12),contrastBackground:e.m(t,14),filterContrastBackground:e.m(t,15),searchWidth:e.m(t,16),filterNames:e.m(t,17)},e.m(t,13)),g:!0,m:"attribute",i:0})])),e.c(((e,t)=>[e.C(t,"ws:Controls/Container/Async",{K:"0_0_0_0_",O:{esc:!1,templateName:e.m(t,1),content:e.o(t,0,1)},g:!0,m:"attribute"})])),e.t("filterContent",((e,t)=>[e.C(t,{library:"Controls/design",module:["DesignOptionsProvider"]},{K:"0_0_",O:{esc:!1,value:e.m(t,0),content:e.o(t,1,2)},g:!0,m:"attribute"})])),e.c(((e,t)=>[e.m(t,22)?[e.g(t,"invisible-node",{K:"0_0_0_",r:!0})]:[e.I(t,2,{K:"0_1_0_",O:e.s(t,{source:e.m(t,24),items:e.m(t,25),historyId:e.m(t,26),useStore:e.m(t,27)},e.m(t,23)),g:!0,r:!0,m:"attribute",f:!0,i:3})]])),e.c(((e,t)=>[e.P(t,e.m(t,2),{K:"3_0_0_0_",O:{esc:!1,useStore:!0,preloadedSources:e.m(t,20),filterTemplateName:e.m(t,1),storeId:e.m(t,21),content:e.o(t,3,4)},g:!0,m:"attribute"})])),e.r(((e,t)=>[e.m(t,18)?[e.g(t,"invisible-node",{K:"1_0_",r:!0,c:!0})]:e.m(t,19)?[e.I(t,2,{K:"2_0_",r:!0,m:"attribute",f:!0,c:!0})]:[e.C(t,"ws:Controls/Container/Async",{K:"3_0_",O:{esc:!1,templateName:"Controls/filterOld:ViewContainer",content:e.o(t,4,5)},m:"attribute",c:!0})]]))],p:t.slice(0,2),e:[(e,o)=>e.g(o,[t[3],t[2]]),(e,o)=>e.g(o,[t[3],t[4]]),(e,o)=>e.g(o,[t[6],t[5]]),(e,o)=>!!e.g(o,[t[3],t[7]])&&!e.g(o,[t[3],t[8]]),(e,o)=>t[9]+(e.g(o,[t[3],t[11],t[10]])||t[12]),(e,o)=>e.g(o,[t[3],t[13]]),(e,o)=>e.g(o,[t[3],t[14]]),(e,o)=>e.g(o,[t[3],t[15]]),(e,o)=>e.g(o,[t[3],t[16]]),(e,o)=>e.g(o,[t[3],t[17]]),(e,o)=>e.g(o,[t[3],t[1]]),(e,o)=>e.g(o,[t[3],t[18]]),(e,o)=>e.g(o,[t[3],t[19]]),(e,o)=>e.g(o,[t[3],t[11]]),(e,o)=>e.g(o,[t[3],t[4]])!==t[20]&&e.g(o,[t[3],t[4]])!==t[21]&&e.g(o,[t[3],t[22]]),(e,o)=>!!e.g(o,[t[3],t[23]]),(e,o)=>e.g(o,[t[3],t[24]])||300,(e,o)=>e.g(o,[t[3],t[11],t[25]])||e.g(o,[t[3],t[1],e.g(o,[t[3],t[11],t[26]]),t[25]]),(e,o)=>e.g(o,[t[0]]),(e,o)=>e.g(o,[t[3],t[11],t[26]])||e.g(o,[t[3],t[4]])===t[21],(e,o)=>e.g(o,[t[1]]),(e,o)=>e.g(o,[t[3],t[11],t[26]]),(e,o)=>e.g(o,[t[1]])&&e.g(o,[t[1],0])&&e.g(o,[t[1],0,t[27]])&&!(e.g(o,[t[6],t[13]])||e.g(o,[t[6],t[14]])),(e,o)=>e.g(o,[t[3]]),(e,o)=>e.g(o,[t[6],t[13]]),(e,o)=>e.g(o,[t[6],t[14]]),(e,o)=>e.g(o,[t[6],t[15]]),(e,o)=>e.g(o,[t[6],t[16]])],i:[[[13]],[[2,17]],[[1],[3,17]],[[23]],[[0,1],[3,17],[20],[22,27]],[[0,17],[20,21],[23]]]})}(_,u,"undefined"==typeof Controls_Container_Async?null:Controls_Container_Async),B=E,x=function(e,t,o,i,a,n,r,s,l,p,d,c,g,u,h,f,m){"use strict";function v(e,t){const o=Object.keys(e),i=Object.keys(t),a=o.length;if(a!==i.length)return!1;o.sort(),i.sort();for(let n=0;n<a;n++){const a=o[n];if(a!==i[n]||!Object.is(e[a],t[a]))return!1}return!0}function _(e,t){return(0,o.jsx)("div",{ref:t,style:{display:"contents",width:"inherit",height:"inherit"},className:"sabyPage-contentLayout-ie11-wrapper",children:(0,o.jsx)(d.ApplicationSettingsProvider,{children:(0,o.jsx)(C,{...e})})})}function y({formRef:e,formFactory:t,pageRouter:o,Router:a,setIsEditing:n,setIsEditingTitle:r}){const s=(0,i.useContext)((0,d.getPageControllerContext)()),p=(0,i.useContext)(l.DataContext),c=(0,i.useCallback)((()=>{var t;return null===(t=e.current)||void 0===t?void 0:t.submit()}),[e]);return(0,i.useEffect)((()=>{if(t)t.setValidatorCallback(c),t.setRouter(o,a),t.setPageContext(s),t.setChangeEditingCallback(n),t.setChangeEditingTitleCallback(r),t.setDataContextValue(p);return()=>{if(t)t.setValidatorCallback(null),t.setChangeEditingCallback(null),t.setChangeEditingTitleCallback(null)}}),[s,p,t,o,a,c,n,r]),null}function C(e){var t,a,n,s,p;const d=(0,l.useSlice)("formFactory"),c=(0,l.useSlice)("navigation"),g=(0,i.useRef)(null),u=(0,i.useMemo)((()=>(null==d?void 0:d.record)?(0,r.loadSync)("Controls/validate:Controller"):null),[d]),[h,f]=(0,i.useState)(!1),[m,v]=(0,i.useState)(!1),[_,C]=(0,i.useState)(!1);(0,i.useEffect)((()=>{f(!1),v(!1),C(!1)}),[e.stateRecord]),(0,i.useEffect)((()=>{var e,t;const o=!!(null===(e=null==d?void 0:d.state)||void 0===e?void 0:e.editing);
5if(o!==h)f(o);const i=!!(null===(t=null==d?void 0:d.state)||void 0===t?void 0:t.isTitleEditing);if(i!==m)v(i)}),[null===(t=null==d?void 0:d.state)||void 0===t?void 0:t.editing,null===(a=null==d?void 0:d.state)||void 0===a?void 0:a.isTitleEditing]);const w=(0,i.useMemo)((()=>{var t,o,i,a;const n=e.masterItems&&e.selectedMasterItemKey?null===(t=e.masterItems.getRecordById(e.selectedMasterItemKey))||void 0===t?void 0:t.get("switcherCfg"):void 0;return(null===(o=null==d?void 0:d.state)||void 0===o?void 0:o.record)&&!(null===(a=null===(i=null==d?void 0:d.state)||void 0===i?void 0:i.formMethodConfig)||void 0===a?void 0:a.isReadOnly)||(null==n?void 0:n.name)}),[e.masterItems,e.selectedMasterItemKey,null===(n=null==d?void 0:d.state)||void 0===n?void 0:n.record,null===(p=null===(s=null==d?void 0:d.state)||void 0===s?void 0:s.formMethodConfig)||void 0===p?void 0:p.isReadOnly]);(0,i.useEffect)((()=>{var e;const t=null===(e=null==d?void 0:d.state)||void 0===e?void 0:e.formMethodConfig;C(m&&!!(null==t?void 0:t.headerEditingConfig))}),[m,d]);const T=(0,i.useCallback)((e=>{if(v(e),d)d.changeEditingTitle(e)}),[d]),k=(0,i.useMemo)((()=>{var t;return e.workspaceErrorConfig||(null===(t=null==d?void 0:d.state)||void 0===t?void 0:t.errorConfig)}),[e.workspaceErrorConfig,d]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(y,{formRef:g,formFactory:d,pageRouter:e.pageRouter,Router:e.Router,setIsEditing:f,setIsEditingTitle:v}),(null==d?void 0:d.record)?(0,o.jsx)(u,{ref:g,children:(0,o.jsx)("div",{style:{display:"contents",width:"inherit",height:"inherit"},children:(0,o.jsx)(b,{...e,isEditing:h,isEditingTitle:m,isEditingTitleActive:_,isEditPanelNeeded:w,editingTitleChangedHandler:T,workspaceErrorConfig:k,formFactory:d,navigationContext:c})})}):(0,o.jsx)(b,{...e,isEditing:h,isEditingTitle:m,isEditingTitleActive:_,isEditPanelNeeded:w,editingTitleChangedHandler:T,workspaceErrorConfig:k,formFactory:d,navigationContext:c})]})}function b(e){const t=(0,l.useSlice)("sabyPageMasterConfig");return(0,o.jsx)(R,{...e,masterVisible:null==t?void 0:t.visible})}Object.defineProperty(t,"__esModule",{value:!0}),t.HeaderLeftContext=void 0;const w="left",T="right-bottom",k="right-top",P=[w,T,k];let E=0;const B=["beforeLogoTemplateConfig","beforeLogoTemplateConfig","workspaceErrorConfig","prefetch","prefetchConfig","formFactory","isEditing","isEditingTitle","isEditingTitleActive","headingTitle","pageTitle","titleVisibility","sidebarSettings","backButtonConfig","getHeadingCallback","viewSettings","langDictionary","logoDesc","logoUrl","isMainPage","showAppSelector","sidebarVisible","isOnPanel","sidebarTheme","contrastBackgroun
5d","navigationHierarchy","editingTitleChangedHandler","subTitleConfig","toolbarConfig","pageId","addButtonConfig","isEmptyView","isStack","masterConfig","allowAdaptive","topLeftTemplateConfig","topTemplateConfig"];t.HeaderLeftContext=(0,i.createContext)((()=>null));const x=(0,m.lazy)((()=>(0,m.importer)("SabyPage/contentLayoutTemplates/MasterDetail"))),S=(0,m.lazy)((()=>(0,m.importer)("SabyPage/contentLayoutTemplates/Banner"))),M=(0,m.lazy)((()=>(0,m.importer)("Page/Utils/BrowserWarning")));class R extends i.Component{constructor(t){super(t),this._handleResize=()=>{this.setState(R._setHeaderSizes(this.props,this._rootElement.current||void 0))},this._openAppSelectPanelCallback=()=>{if(f.constants.modules.AppSelector)new Promise(((t,o)=>{e(["AppSelector/appPanel"],t,o)})).then((({CompactPanelOpener:e})=>{e.open({target:this._rootElement.current,targetPoint:{vertical:"top",horizontal:"left"},direction:{vertical:"bottom",horizontal:"right"},offset:{vertical:0,horizontal:4},opener:this,isPopup:!0,dataName:"app-select-panel-logo",showAppSelector:this.props.showAppSelector})})).catch((function(e){requirejs.onError(e)}))},this._rootElement=(0,i.createRef)();const o=R._getFilterPosition(t);this.state={...R._setHeaderSizes(t,void 0),_filterPosition:o,_preparedFilterConfig:R._getPreparedFilterConfig(t.filterConfig,o,t.dataSetName,t.widgetName),_initialMasterWidth:R._getMasterWidthValue(t.viewSettings,t.masterOptions),masterExpanded:R._getMasterExpandValue(t.viewSettings,t.masterOptions),_headerLeftProps:R._getHeaderLeftProps(t)},this.renderHeaderLeft=this.renderHeaderLeft.bind(this),this._instanceId="sabypage-contentlayout-template-"+E++,this._browserWarning=!(f.detection.chrome&&!f.detection.isNotGridSupport)}renderHeaderLeft(e={}){return(0,o.jsx)(a.HeaderLeftContent,{...this.state._headerLeftProps,masterExpanded:this.state.masterExpanded,openAppSelectPanel:this._openAppSelectPanelCallback,addButtonStyle:this._getAddButtonStyle(),backButtonViewMode:R._getBackButtonViewMode(this.props.backButtonConfig,"top"),accessAllowed:R._isAccessAllowed(this.props.workspaceErrorConfig),...e})}getInstanceId(){return this._instanceId}componentWillReceiveProps(e){if(!((0,g.isEqual)(this.props.viewSettings,e.viewSettings)&&(0,g.isEqual)(this.props.beforeTabsConfig,e.beforeTabsConfig)&&(0,g.isEqual)(this.props.filterConfig,e.filterConfig)&&(0,g.isEqual)(this.props.masterOptions,e.masterOptions)&&(0,g.isEqual)(this.props.topTemplateConfig,e.topTemplateConfig)&&this.props.masterVisible===e.masterVisible))this.setState(R._setHeaderSizes(e,this._rootElement.current||void 0));if(!(0,g.isEqual)(this.props.viewSettings,e.viewSettings)||!(0,g.isEqual)(this.props.masterOptions,e.masterOptions))this.setState({masterExpanded:R._getMasterExpandValue(e.viewSettings,e.masterOptions)});const t=R._getFilterPosition(e);if(t!==this.state._filterPosition)this.setState({_filterPosition:t});if(!(0,g.isEqual)(this.props.filterConfig,e.filterConfig))this.setState({_preparedFilterConfig:R._getPreparedFilterConfig(e.filterConfig,t,e.dataSetName,e.widgetName)});if(this.props.pageId!==e.pageId)this.setState({_initialMasterWidth:R._getMasterWidthValue(e.viewSettings,e.masterOptions)});if(R.isHeaderLeftPropsChanged(this.props,e))this.setState({_headerLeftProps:R._getHeaderLeftProps(e)})}componentDidMount(){this.context.onRegister(new CustomEvent("register"),"controlResize",this,this._handleResize,{listenAll:!0});const e=this.state;if(!e._beforeTabsWidth||!e._headerLeftMinWidth){const t=R._setHeaderSizes(this.props,this._rootElement.current||void 0);if(-1!==Object.keys(t).findIndex((o=>t[o]!==e[o])))this.setState(t)}}componentWillUnmount(){this.context.onUnregister(new CustomEvent("unregister"),"controlResize",this,this._handleResize)}getWorkspaceTemplateOptions(){var e;const t=R._prepareAreaOptions(null===(e=this.props.workspaceConfig)||void 0===e?void 0:e.templateOptions,this.props.controllers,this.props.navigation,this.props.viewSettings,this.props.workspaceConfig,this.props.pageId,this.props.scopeId||"",this.props.isEditing,this.props.formFactory,this.props.selectedTabItemKey,this.props.sidebarTheme,this.props);if(!this._workspaceTemplateOptions||!v(this._workspaceTemplateOptions,t))this._workspaceTemplateOptions=t;return this._workspaceTemplateOptions}getTabsTemplateOptions(){var e;const t=R._prepareAreaOptions(null===(e=this.props.beforeTabsConfig)||void 0===e?void 0:e.templateOptions,this.props.controllers,this.props.navigation,this.props.viewSettings,this.props.workspaceConfig,this.props.pageId,this.props.scopeId||"",this.props.isEditing,this.props.formFactory);if(!this._tabsTemplateOptions||!v(this._tabsTemplateOptions,t))this._tabsTemplateOptions=t;return this._tabsTemplateOptions}_getAddButtonStyle(){var e,t,o;const i=null===(e=this.props.navigationContext)||void 0===e?void 0:e.state;return(null===(t=null==i?void 0:i.children)||void 0===t?void 0:t.getCount())&&(null===(o=null==i?void 0:i.accData)||void 0===o?void 0:o.active)||this.props.isStack?"default":"brand"}showBreadCrumbsFullWidth(e,t){if(!f.detection.safari)return!1;if(t&&"left"===this.state._filterPosition)return!1;if(this.props.beforeTabsConfig&&!this.props.workspaceErrorConfig&&(!this.props.isEmptyView||!1!==this.props.beforeTabsConfig.emptyViewVisibility))return!1;if(!this.props.workspaceErrorConfig&&this.props.addButtonConfig&&"topContent"===(this.props.addButtonConfig.position||"top"))return!1;if(t&&"right-bottom"===this.state._filterPosition)return!1;else return e}render(){var e,i,r,s,l,p,c,g,u,f,m,v,_,y,C,b,w,T,k,P,E,B,L,A,I,O,V,N,W,j,F,H,D,K,U,z,q,G,Q,X,$,J,Y,Z,ee,te,oe;const ie=!this.props.workspaceErrorConfig&&!this.props.isEmptyView&&!this.props.isRedirectEmptyView,ae=!this.props.workspaceErrorConfig&&R._canShowBreadCrumbs(this.props.backButtonConfig,this.props.prefetch,this.props.navigationHierarchy),ne=this.props.highlightContentArea&&!this.props.masterItems&&!this.props.masterConfig&&!this.props.workspaceErrorConfig?"controls__block-wrapper "+((null===(e=this.props.viewSettings)||void 0===e?void 0:e.accordionWidth)&&(null===(i=this.props.viewSettings)||void 0===i?void 0:i.navigationWidth)&&this.props.viewSettings.accordionWidth>this.props.viewSettings.navigationWidth||(null===(r=this.props.workspaceConfig)||void 0===r?void 0:r.maxWidth)&&"center"===(null===(s=this.props.workspaceConfig)||void 0===s?void 0:s.alignment)&&(null===(l=this.props.viewSettings)||void 0===l?void 0:l.centerWidth)>=this.props.workspaceConfig.maxWidth?"tlr":"tr"):"";return(0,o.jsx)(h.FocusRoot,{ref:this._rootElement,className:(this.props.className||"")+" sabyPage-MainLayout__workspaceWrapper controls-Popup__dialog-target-container "+(this.props.contrastBackgroun
5d?"sabyPage-MainLayout__workspaceWrapper_contrast ":"sabyPage-MainLayout__workspaceWrapper_default ")+((null===(p=this.props.viewSettings)||void 0===p?void 0:p.additionalPaddings)?"sabyPage-MainLayout__padding_"+(null===(c=this.props.viewSettings.additionalPaddings)||void 0===c?void 0:c.padding):"")+" tw-flex tw-flex-col tw-min-h-0 tw-grow-1 tw-shrink-1 "+("center"===(null===(g=this.props.workspaceConfig)||void 0===g?void 0:g.alignment)?"tw-items-center":""),children:(0,o.jsx)(n.AdaptiveContainer,{width:null!==(f=null===(u=this.props.viewSettings)||void 0===u?void 0:u.centerWidthWithMaster)&&void 0!==f?f:null===(m=this.props.viewSettings)||void 0===m?void 0:m.centerWidth,isPhone:this.props.isAdaptive,children:(0,o.jsxs)(o.Fragment,{children:[this._browserWarning?(0,o.jsx)(M,{}):null,!this.props.isRedirectEmptyView?(0,o.jsx)(n.AdaptiveContainer,{width:this.state._headerWidth,children:(0,o.jsxs)("div",{style:{maxWidth:this.state._headerMaxWidth?this.state._headerMaxWidth+"px":"inherit"},name:"header",className:"sabyPage-MainLayout__header_"+(this.props.blockLayout?"blockLayout":"default")+((null===(v=this.props.workspaceConfig)||void 0===v?void 0:v.enableTailwindContainer)?" tw-@container sabyPage-MainLayout__header_zIndex":"")+" tw-flex tw-flex-row tw-min-w-0 tw-shrink-0 tw-items-center "+(!this.props.contrastBackgroun
5d?"controls-padding_right-m ":" ")+("center"===(null===(_=this.props.workspaceConfig)||void 0===_?void 0:_.alignment)?"tw-self-start tw-w-full ":"")+((null===(y=this.props.viewSettings)||void 0===y?void 0:y.workspaceClassName)||""),children:[(0,o.jsx)("div",{className:"sabyPage-MainLayout__headerLeft tw-flex tw-grow-1 tw-shrink-1 tw-items-center "+(this.state.masterExpanded?"controls-padding_right-m":"controls-padding_right-s"),style:{minWidth:this.state._headerLeftMinWidth?this.state._headerLeftMinWidth+"px":void 0},children:this.renderHeaderLeft()}),this.props.topTemplateConfig&&"topContent"===R._getTopTemplatePosition(this.props.topTemplateConfig)?(0,o.jsx)(a.TopCustomArea,{position:"topContent",prefetch:this.props.prefetch,loadType:null===(C=this.props.prefetchConfig)||void 0===C?void 0:C.loadType,stateRecord:null===(w=null===(b=this.props.formFactory)||void 0===b?void 0:b.state)||void 0===w?void 0:w.record,workspaceErrorConfig:this.props.workspaceErrorConfig,isEmptyView:this.props.isEmptyView,config:this.props.topTemplateConfig,masterExpanded:this.state.masterExpanded}):null,(0,o.jsx)(a.SearchArea,{className:"right"===R._getSearchPosition(this.props.filterConfig,this.props.pageId)?"tw-justify-end":"tw-justify-start",prefetch:this.props.prefetch,loadType:null===(T=this.props.prefetchConfig)||void 0===T?void 0:T.loadType,isEditingTitleActive:this.props.isEditingTitleActive,filterConfig:this.props.filterConfig,contrastBackgroun
5d:this.props.contrastBackground,workspaceErrorConfig:this.props.workspaceErrorConfig,isEmptyView:this.props.isEmptyView}),this.props.topTemplateConfig&&"right"===R._getTopTemplatePosition(this.props.topTemplateConfig)?(0,o.jsx)(a.TopCustomArea,{position:"right",prefetch:this.props.prefetch,loadType:null===(k=this.props.prefetchConfig)||void 0===k?void 0:k.loadType,workspaceErrorConfig:this.props.workspaceErrorConfig,isEmptyView:this.props.isEmptyView,stateRecord:null===(E=null===(P=this.props.formFactory)||void 0===P?void 0:P.state)||void 0===E?void 0:E.record,config:this.props.topTemplateConfig,masterExpanded:this.state.masterExpanded}):null,"right-top"===this.state._filterPosition&&!this.props.workspaceErrorConfig&&!this.props.isEmptyView?(0,o.jsx)(a.FilterArea,{className:"controls-margin_left-m sabyPage-MainLayout__filterRight",prefetch:this.props.prefetch,loadType:null===(B=this.props.prefetchConfig)||void 0===B?void 0:B.loadType,filterConfig:this.state._preparedFilterConfig,contrastBackground:this.props.contrastBackgroun
5d}):null,(0,o.jsx)(a.TopCustomArea,{position:"right",prefetch:this.props.prefetch,loadType:null===(L=this.props.prefetchConfig)||void 0===L?void 0:L.loadType,stateRecord:null===(I=null===(A=this.props.formFactory)||void 0===A?void 0:A.state)||void 0===I?void 0:I.record,workspaceErrorConfig:this.props.workspaceErrorConfig,isEmptyView:this.props.isEmptyView,config:this.props.topRightTemplateConfig,masterExpanded:this.state.masterExpanded}),(null===(O=this.props.filterConfig)||void 0===O?void 0:O.sortingTemplateName)&&!this.props.workspaceErrorConfig?(0,o.jsx)(a.SortingArea,{prefetch:this.props.prefetch,loadType:null===(V=this.props.prefetchConfig)||void 0===V?void 0:V.loadType,filterConfig:this.props.filterConfig,workspaceErrorConfig:this.props.workspaceErrorConfig}):null,!this.props.workspaceErrorConfig&&this.props.isEditPanelNeeded&&this.props.formFactory?(0,o.jsx)(a.EditControl,{pageId:this.props.pageId,langDictionary:this.props.langDictionary,isEditing:this.props.isEditing,isEditingTitle:this.props.isEditingTitle,formFactory:this.props.formFactory}):null]})}):null,this.props.bannerConfig?(0,o.jsx)(S,{bannerConfig:this.props.bannerConfig}):null,(0,o.jsx)(n.AdaptiveContainer,{width:(null===(N=this.props.workspaceConfig)||void 0===N?void 0:N.maxWidth)?Math.min(null===(W=this.props.viewSettings)||void 0===W?void 0:W.centerWidthWithMaster,parseInt(this.props.workspaceConfig.maxWidth,10)):null===(j=this.props.viewSettings)||void 0===j?void 0:j.centerWidthWithMaster,children:(0,o.jsxs)("div",{className:"sabyPage-MainLayout__workspace "+((null===(F=this.props.workspaceConfig)||void 0===F?void 0:F.enableTailwindContainer)?"tw-@container sabyPage-MainLayout__workspace_zIndex ":"")+"tw-flex tw-grow-1 tw-shrink-1 tw-flex-col tw-min-h-0 "+("center"===(null===(H=this.props.workspaceConfig)||void 0===H?void 0:H.alignment)?"tw-w-full":""),style:{maxWidth:(null===(D=this.props.workspaceConfig)||void 0===D?void 0:D.maxWidth)?this.props.workspaceConfig.maxWidth+"px":"inherit"},children:[!0!==this.props.hideTabs||this.props.masterItems?(0,o.jsx)("div",{className:"tw-flex tw-grow-0 tw-shrink-0",children:this.props.tabs?(0,o.jsx)(a.TabsWrapper,{className:"sabyPage-MainLayout__tabs "+(this.props.blockLayout?"controls-margin_top-2xs controls-margin_right-2xs":""),tabs:this.props.tabs,selectedTabItemKey:this.props.selectedTabItemKey,scopeId:this.props.scopeId,workspaceErrorConfig:this.props.workspaceErrorConfig,isEmptyView:this.props.isEmptyView,beforeTabsConfig:this.props.beforeTabsConfig,beforeTabsWidth:this.state._beforeTabsWidth,beforeTabsMargin:R._getBeforeTabsMargin(this.props.contrastBackgroun
5d,this.props.beforeTabsConfig),contrastBackground:this.props.contrastBackground,prefetch:this.props.prefetch,loadType:null===(K=this.props.prefetchConfig)||void 0===K?void 0:K.loadType,tabsTemplateOptions:this.getTabsTemplateOptions(),filterConfig:this.state._preparedFilterConfig,filterPosition:this.state._filterPosition,pageTitle:this.props.pageTitle,navigationHierarchy:this.props.navigationHierarchy,backButtonConfig:this.props.backButtonConfig,backButtonViewMode:R._getBackButtonViewMode(this.props.backButtonConfig,"bottom"),canShowBreadCrumbs:ae,formFactory:this.props.formFactory}):(0,o.jsxs)("div",{className:"sabyPage-MainLayout__head sabyPage-MainLayout__beforeTabsTemplateLeft sabyPage-MainLayout__head-"+("empty"===this.props.hideTabs?"empty":"base")+(this.props.contrastBackground?" sabyPage-MainLayout__head_default ":" sabyPage-MainLayout__head_contrast ")+" tw-flex tw-grow-1 tw-shrink-1 tw-items-baseline "+(this.props.workspaceErrorConfig||!this.props.beforeTabsConfig&&(this.props.isEmptyView||"left"!==this.state._filterPosition)?"tw-grow-1":"")+(this.showBreadCrumbsFullWidth(ae,ie)?" tw-w-full":""),style:{paddingLeft:(this.state._beforeTabsWidth&&!ae?this.state._beforeTabsWidth:0)+"px"},children:[ae?(0,o.jsx)("div",{style:{maxWidth:"100%",width:this.state._beforeTabsWidth?this.state._beforeTabsWidth+"px":"inherit",minWidth:0,flexShrink:this.state._beforeTabsWidth?0:"unset"},className:"sabyPage-MainLayout__breadCrumbsWrapper ",children:(0,o.jsx)(a.BreadCrumbsArea,{prefetch:this.props.prefetch,loadType:null===(U=this.props.prefetchConfig)||void 0===U?void 0:U.loadType,pageTitle:this.props.pageTitle,navigationHierarchy:this.props.navigationHierarchy,backButtonConfig:this.props.backButtonConfig,viewMode:R._getBackButtonViewMode(this.props.backButtonConfig,"bottom"),contrastBackgroun
5d:this.props.contrastBackground})}):null,ie&&"left"===this.state._filterPosition?(0,o.jsx)(a.FilterArea,{className:"sabyPage-MainLayout__filterLeft "+(this.props.contrastBackground?"sabyPage-MainLayout__filterLeft_contrast":"sabyPage-MainLayout__filterLeft_default"),prefetch:this.props.prefetch,loadType:null===(z=this.props.prefetchConfig)||void 0===z?void 0:z.loadType,filterConfig:this.state._preparedFilterConfig}):null,(0,o.jsx)(a.AddButtonTemplate,{position:"topContent",prefetch:this.props.prefetch,loadType:null===(q=this.props.prefetchConfig)||void 0===q?void 0:q.loadType,toolbarConfig:this.props.toolbarConfig,pageId:this.props.pageId,addButtonConfig:this.props.addButtonConfig,isEmptyView:this.props.isEmptyView,langDictionary:this.props.langDictionary,workspaceErrorConfig:this.props.workspaceErrorConfig}),(0,o.jsx)(a.BeforeTabsTemplate,{className:"sabyPage-MainLayout__beforeTabs sabyPage-MainLayout__beforeTabs_tabSpace "+R._getBeforeTabsMargin(this.props.contrastBackground,this.props.beforeTabsConfig),prefetch:this.props.prefetch,loadType:null===(G=this.props.prefetchConfig)||void 0===G?void 0:G.loadType,beforeTabsConfig:this.props.beforeTabsConfig,templateOptions:this.getTabsTemplateOptions(),stateRecord:null===(X=null===(Q=this.props.formFactory)||void 0===Q?void 0:Q.state)||void 0===X?void 0:X.record,workspaceErrorConfig:this.props.workspaceErrorConfig,isEmptyView:this.props.isEmptyView}),ie&&"right-bottom"===this.state._filterPosition?(0,o.jsx)(a.FilterArea,{prefetch:this.props.prefetch,loadType:null===($=this.props.prefetchConfig)||void 0===$?void 0:$.loadType,filterConfig:this.state._preparedFilterConfig,className:"sabyPage-MainLayout__head-filter-rightWrapper tw-inline-flex tw-shrink-1"+(this.props.blockLayout?" sabyPage-MainLayout__head-filter-rightWrapper-blockLayout ":" ")+(!this.props.contrastBackgroun
5d?" sabyPage-MainLayout__headerRight_withOffset ":" ")}):null]})}):null,(0,o.jsx)("div",{className:"sabyPage-MainLayout__middle tw-flex tw-flex-col tw-min-h-0 SbisEnvUI-ParkingBody_same-background "+ne,children:R._getMasterVisible(this.props.masterItems,this.props.masterOptions,this.props.isEmptyView,this.props.emptyViewConfig,this.props.workspaceErrorConfig)?(0,o.jsx)(t.HeaderLeftContext.Provider,{value:this.renderHeaderLeft,children:(0,o.jsx)(x,{className:"sabyPage-MainLayout__masterDetail"+(this.props.blockLayout&&this.props.hideTabs?" controls-margin_top-2xs":""),ViewSettingsController:null===(J=this.props.controllers)||void 0===J?void 0:J.ViewSettingsController,masterConfig:this.props.masterConfig,masterOptions:this.props.masterOptions,masterItems:this.props.masterItems,masterGroup:this.props.masterGroup,scopeId:this.props.scopeId,selectedMasterItemKey:this.props.selectedMasterItemKey,initialMasterWidth:this.state._initialMasterWidth,highlightContentArea:this.props.highlightContentArea,toolbarConfig:this.props.toolbarConfig,formFactory:this.props.formFactory,prefetch:this.props.prefetch,loadType:null===(Y=this.props.prefetchConfig)||void 0===Y?void 0:Y.loadType,isEmptyView:this.props.isEmptyView,masterExpanded:this.state.masterExpanded,masterWidth:this.state._masterWidth,blockLayout:this.props.blockLayout,detailContent:(0,o.jsx)(a.WorkspaceTemplate,{className:"sabyPage-MainLayout__workspaceTemplate "+((null===(Z=this.props.viewSettings)||void 0===Z?void 0:Z.workspaceClassName)||""),formFactory:this.props.formFactory,prefetch:this.props.prefetch,loadType:null===(ee=this.props.prefetchConfig)||void 0===ee?void 0:ee.loadType,workspaceConfig:this.props.workspaceConfig,workspaceTemplateOptions:this.getWorkspaceTemplateOptions(),langDictionary:this.props.langDictionary,workspaceErrorConfig:this.props.workspaceErrorConfig,isEmptyView:this.props.isEmptyView,emptyViewConfig:this.props.emptyViewConfig,licenseConfig:this.props.licenseConfig,redirectConfig:this.props.redirectConfig,contrastBackgroun
5d:this.props.contrastBackground,highlightContentArea:this.props.highlightContentArea,blockLayout:this.props.blockLayout,isMaster:!0})})}):(0,o.jsx)(a.WorkspaceTemplate,{className:"sabyPage-MainLayout__workspaceTemplate "+((null===(te=this.props.viewSettings)||void 0===te?void 0:te.workspaceClassName)||"")+(this.props.highlightContentArea?" controls__block":" "),formFactory:this.props.formFactory,prefetch:this.props.prefetch,loadType:null===(oe=this.props.prefetchConfig)||void 0===oe?void 0:oe.loadType,workspaceConfig:this.props.workspaceConfig,workspaceTemplateOptions:this.getWorkspaceTemplateOptions(),langDictionary:this.props.langDictionary,workspaceErrorConfig:this.props.workspaceErrorConfig,isEmptyView:this.props.isEmptyView,isRedirectEmptyView:this.props.isRedirectEmptyView,emptyViewConfig:this.props.emptyViewConfig,redirectConfig:this.props.redirectConfig,licenseConfig:this.props.licenseConfig,contrastBackground:this.props.contrastBackground,highlightContentArea:this.props.highlightContentArea,blockLayout:this.props.blockLayout,isMaster:!1})})]})}),(0,o.jsx)(d.ApplicationSettingsProvider,{children:(0,o.jsx)(a.FloatingTemplate,{})})]})})})}static _getFilterPosition({filterConfig:e,tabs:t,hideTabs:o}){let i;const a=u.URL.getQueryParam("pageFilterPosition");if(e&&e.filterTemplateName)if(a&&P.includes(a))i=a;else if(e.filterPosition===w)i=w;else if(e.filterPosition===k||t||o)i=k;else i=T;return i}static _getBackButtonPosition(e){return(null==e?void 0:e.buttonPosition)||"top"}static _getBackButtonViewMode(e,t){let o="default";if("bottom"===R._getBackButtonPosition(e))if("top"===t)o="title";else o="backButton";return o}static _getSearchPosition(e,t){const o=u.URL.getQueryParam("pageSearchPosition");if(o)return o;else return(null==e?void 0:e.searchPosition)||"right"}static _getTopTemplatePosition(e){return(null==e?void 0:e.position)||"right"}static _prepareAreaOptions(e={},t,o,i,a,n,r,s=!1,l,p,d,c){var g,u,h,f,m;return{...e,...t,navigationLoaderResult:o,selectedTab:p,portalWidth:i.width,workspaceWidth:i.centerWidth,widthWithoutAccordion:i.widthWithoutAccordion,groupId:r,scopeId:r,pageId:n,editing:"click"===(null===(u=null===(g=null==l?void 0:l.state)||void 0===g?void 0:g.formMethodConfig)||void 0===u?void 0:u.editMode)?s:!0,defaultRecord:null===(h=null==l?void 0:l.state)||void 0===h?void 0:h.defaultRecord,sidebarTheme:d,_stateRecordVersion:null===(m=null===(f=null==l?void 0:l.state)||void 0===f?void 0:f.record)||void 0===m?void 0:m.getVersion(),addButtonConfig:null==c?void 0:c.addButtonConfig,isOnPanel:null==c?void 0:c.isOnPanel,contextData:null==c?void 0:c.contextData}}static _getHeaderLeftMinWidth(e,t,o,i,a,n,r,s){let l=0;if("left"===R._getSearchPosition(t,s)||"topContent"===R._getTopTemplatePosition(o))l=R._getMasterWidth(e,i,a,void 0,n,r);return l}static _getBeforeTabsWidth(e,t,o,i,a,n,r,s){if(e)return 0;let l=0;if(o&&"topContent"===o.position||i&&"topContent"===i.position)l=R._getMasterWidth(t,a,n,void 0,r,s);return l}static _getHeaderMaxWidth(e,t){let o;if(null==t?void 0:t.maxWidth)if("center"===t.alignment)o=(e.centerWidthWithMaster-t.maxWidth)/2+parseInt(t.maxWidth,10);else o=parseInt(t.maxWidth,10);return o}static _getHeaderWidth(e,t){let o;if("center"===(null==t?void 0:t.alignment))o=(e.centerWidthWithMaster+e.centerWidth)/2;else o=e.centerWidthWithMaster;return o}static _setHeaderSizes(e,t){return{_beforeTabsWidth:R._getBeforeTabsWidth(!!e.onlyContent,e.viewSettings,e.beforeTabsConfig,e.addButtonConfig,e.masterOptions,e.masterVisible,t,e.cardWorkspaceWidth),_headerLeftMinWidth:R._getHeaderLeftMinWidth(e.viewSettings,e.filterConfig,e.topTemplateConfig,e.masterOptions,e.masterVisible,t,e.cardWorkspaceWidth,e.pageId),_headerMaxWidth:R._getHeaderMaxWidth(e.viewSettings,e.workspaceConfig),_headerWidth:R._getHeaderWidth(e.viewSettings,e.workspaceConfig),_masterWidth:R._getMasterWidth(e.viewSettings,e.masterOptions,e.masterVisible,!0,t,e.cardWorkspaceWidth)}}static _getMasterWidthValue(e,t={},o){var i;let a=0;if(!(null!=o?o:R._getMasterExpandValue(e,t)))return 0;if(t.width)a=t.width;else if(t.masterWidthProperty&&(null==e?void 0:e.controlSettings)){const o=t.masterWidthProperty,n=(0,c.getIdWithMask)(o,c.SettingsMasks.masterWidth),r=e.controlSettings;a=null!==(i=r[n])&&void 0!==i?i:r[o]}return a}static _getMasterWidth(e,t={}
5,o,i,a,n){if(!1===o)return 0;const r=R._getMasterWidthValue(e,t,i);let s=parseFloat(r);if(R._isPercentValue(r)){if(t.maxWidth&&R._isPercentValue(t.maxWidth))s=Math.min(parseFloat(t.maxWidth),s);return Math.max(R._getMasterWidthInPercents(s,e,a,n),t.minWidth||0)}return s}static _getHeaderLeftProps(e){return B.reduce(((t,o)=>{if(o in e)t[o]=e[o];return t}),{})}static isHeaderLeftPropsChanged(e,t){return B.some((o=>!(0,g.isEqual)(e[o],t[o])))}static _getMasterExpandValue(e,t={}){var o;if(t.masterExpandProperty)return null!==(o=e.controlSettings[t.masterExpandProperty])&&void 0!==o?o:e.portalWidth>=1280;else return!0}static _getMasterWidthInPercents(e,t,o,i){const a=i||parseFloat(t.centerWidth)+parseFloat(t.masterWidth),n=(null==o?void 0:o.getBoundingClientRect().width)||0;return(t.maxWorkspaceWidth?Math.min(a||n,t.maxWorkspaceWidth):a||n)*e/100}static _isAccessAllowed(e){return(null==e?void 0:e.status)!==u.HTTPStatus.Forbidden}static _canShowBreadCrumbs(e,t,o){return(null==e?void 0:e.storeId)||Object.keys(p.PrefetchHelper.getPrefetchResult(t,"breadcrumbs")).length||o}static _getBeforeTabsMargin(e,t){let o="";if("right"===(null==t?void 0:t.position))o="sabyPage-MainLayout__beforeTabs_right";else if("topContent"===(null==t?void 0:t.position))o="sabyPage-MainLayout__beforeTabs_noOffset";else if(!e)o="sabyPage-MainLayout__beforeTabsOld";return o}static _getMasterVisible(e,t,o,i,a){const n=e&&!(o&&(null==i?void 0:i.isMasterHidden))&&!(null==t?void 0:t.isMasterHidden),r=!((null==a?void 0:a.hideMaster)||!(null==t?void 0:t.bottomTemplateName)||o&&!1===(null==t?void 0:t.emptyViewVisibility));return n||r}static _getPreparedFilterConfig(e,t,o,i){if(!e)return null;else return{...e,alignment:t===w?"left":"right",dataSetName:o,widgetName:i}}static _isPercentValue(e){return`${e}`.includes("%")}}R.contextType=s.BubblingEventContext,R.displayName="SabyPage/contentLayout:ContentTemplate",_.displayName="SabyPage/contentLayout:FilterNavigationWrapper";return(0,i.forwardRef)(((e,t)=>(0,o.jsx)(R,{ref:t,...e}))).displayName="SabyPage/contentLayout:ContentForwardRefWrapper",C.displayName="SabyPage/contentLayout:ContentFormWrapper",b.displayName="SabyPage/contentLayout:ContentMasterWrapper",t.default=(0,i.forwardRef)(_),t}(C,{},e,t,w,l,i,n,v,d,c,m,p,y,a,g,s,"undefined"==typeof css_SabyPage_contentLayout||css_SabyPage_contentLayout),S=x,M=function(e,t,o,i,a,n,r,s,l,p,d,c){"use strict";function g(e,t){var o,i,a,n;const r=function(e){var t;if(null===(t=e.backButtonConfig)||void 0===t?void 0:t.getVisibilityCallback)return p.loadSync(e.backButtonConfig.getVisibilityCallback)(e.prefetchResult,e.Router);return!0}(e);if(e.adaptiveLayout){const a=!(!e.navigationHierarchy&&!(null===(i=null===(o=e.Router)||void 0===o?void 0:o.maskResolver)||void 0===i?void 0:i.calculateUrlParams("backButtonId=:id").id));if("bottom"===e.position)return r&&!!t&&e.hasTabs;else return e.isOnPanel||r&&(a||t&&!e.hasTabs)}return r&&!!(e.navigationHierarchy||t||(null===(n=null===(a=e.Router)||void 0===a?void 0:a.maskResolver)||void 0===n?void 0:n.calculateUrlParams("backButtonId=:id").id))}function u(e,t){var o;return e&&(!t.adaptiveLayout||"top"!==t.position||!t.hasTabs)?(0,l.calculatePath)(!(null===(o=null==t?void 0:t.backButtonConfig)||void 0===o?void 0:o.storeId)?e.sourceController.getItems():e.breadCrumbsItems).backButtonItem:null}Object.defineProperty(t,"__esModule",{value:!0}),t.getBackButtonPrefetch=t.getBackButtonRootItem=t.hasBackButton=void 0;class h extends n.Control{constructor(){super(...arguments),this._template=r,this._isOnPanel=!1,this._needIconClassName=!1}_beforeMount(e){var t,o,i,a,n;if(this._backButtonClick=this._backButtonClick.bind(this),this._isOnPanel=e.isOnPanel&&!e.sidebarVisible,this._initPrefetch(e),this._caption=this._getCaption(e,this._rootItem,this._prefetchResult),(null===(t=e.form)||void 0===t?void 0:t.headerEditingConfig)&&(null===(i=null===(o=e.form)||void 0===o?void 0:o.headerEditingConfig)||void 0===i?void 0:i.propertyName)&&e.stateRecord)this._value=null===(n=null===(a=e.stateRecord)||void 0===a?void 0:a.get)||void 0===n?void 0:n.call(a,e.form.headerEditingConfig.propertyName)}_afterMount(){this._subscribeRootChange(this._options),this._declareUpdateTitle(),this._checkEditingEmptyTitle(this._caption,this._options)}_beforeUpdate(e){var t,o,i,a,n,r,s,l,p,d,c,g,u,h,f,m;if(e.prefetchResult!==this._options.prefetchResult)this._unsubscribeRootChange(),this._initPrefetch(e),this._subscribeRootChange(e),this._declareUpdateTitle();if(e._slice&&this._options._slice&&e.listRoot!==this._options.listRoot&&this._needObserveData(e))this._rootChanged(e._slice.state.items,e.listRoot,e._slice);if(e.prefetchResult!==this._options.prefetchResult||e.pageTitle!==this._options.pageTitle||e.getHeadingCallback!==this._options.getHeadingCallback||e.editingTitle!==this._options.editingTitle||e.editing!==this._options.editing&&!1===e.editing||e.stateRecord!==this._options.stateRecord||e.navigateToMasterPage!==this._options.navigateToMasterPage||(null===(t=e.form)||void 0===t?void 0:t.hasUncommittedStateChanges)!==(null===(o=this._options.form)||void 0===o?void 0:o.hasUncommittedStateChanges)&&!1===(null===(i=e.form)||void 0===i?void 0:i.hasUncommittedStateChanges))this._caption=this._getCaption(e,this._rootItem,this._prefetchResult),this._checkEditingEmptyTitle(this._caption,e);if((null===(a=e.form)||void 0===a?void 0:a.headerEditingConfig)!==(null===(n=this._options.form)||void 0===n?void 0:n.headerEditingConfig)||e.stateRecord!==this._options.stateRecord||e.editingTitle!==this._options.editingTitle||(null===(s=null===(r=e.stateRecord)||void 0===r?void 0:r.get)||void 0===s?void 0:s.call(r,null===(p=null===(l=e.form)||void 0===l?void 0:l.headerEditingConfig)||void 0===p?void 0:p.propertyName))!==(null===(c=null===(d=this._options.stateRecord)||void 0===d?void 0:d.get)||void 0===c?void 0:c.call(
5d,null===(u=null===(g=this._options.form)||void 0===g?void 0:g.headerEditingConfig)||void 0===u?void 0:u.propertyName)))this._value=null===(f=null===(h=e.stateRecord)||void 0===h?void 0:h.get)||void 0===f?void 0:f.call(h,null===(m=e.form.headerEditingConfig)||void 0===m?void 0:m.propertyName)}_onValueChangedHandler(e,t){var o;this._value=t,this._options.stateRecord.set(null===(o=this._options.form.headerEditingConfig)||void 0===o?void 0:o.propertyName,this._value)}_onInputCompletedHandler(){var e;this._options.stateRecord.set(null===(e=this._options.form.headerEditingConfig)||void 0===e?void 0:e.propertyName,this._value)}_beforeUnmount(){if(this._unsubscribeRootChange(),this._updateTitleId)d.default.unsubscribe(this._updateTitleId)}_afterRender(){if(this._updatedState)this._notify("stateUpdate",[],{bubbling:!0}),this._updatedState=!1}_hasBackButton(e,t){return g(e,t)}_hasBackButtonId(e){return e.maskResolver.calculateUrlParams("backButtonId=:id").id}_getBackButtonCaption(e){const t=e.maskResolver.calculateUrlParams("?backButtonCaption=:caption&backButtonId=:id");return decodeURIComponent(t.id&&t.caption?t.caption:"")}_initPrefetch(e){var t,o,i;if(e.accessAllowed){let a;if(null===(t=null==e?void 0:e.backButtonConfig)||void 0===t?void 0:t.storeId)a=e._slice;else a=h._getPrefetch(e.prefetchResult);this._prefetchResult=a,this._rootItem=u(this._prefetchResult,e),this._needIconClassName=!1,null===(i=null===(o=e.navigationHierarchy)||void 0===o?void 0:o.forEach)||void 0===i||i.call(o,(e=>{if("online-settings"===e.get("parentPageId"))this._needIconClassName=!0}))}}_needObserveData(e){return this._prefetchResult&&!(e.adaptiveLayout&&"top"===e.position&&e.hasTabs)}_subscribeRootChange(e){var t,o;if(this._needObserveData(e)&&(null===(t=this._prefetchResult)||void 0===t?void 0:t.sourceController)){const{sourceController:e}=this._prefetchResult;e.subscribe("dataLoad",this._dataLoaded,this),e.subscribe("dataLoadError",this._sourceErrorHandler,this),null===(o=e.getItems())||void 0===o||o.subscribe("onPropertyChange",this._itemsPropertyChanged,this)}}_unsubscribeRootChange(){var e,t;if(null===(e=this._prefetchResult)||void 0===e?void 0:e.sourceController){const{sourceController:e}=this._prefetchResult;e.unsubscribe("dataLoad",this._dataLoaded,this),e.unsubscribe("dataLoadError",this._sourceErrorHandler,this),null===(t=e.getItems())||void 0===t||t.unsubscribe("onPropertyChange",this._itemsPropertyChanged,this)}}_itemsPropertyChanged(e,t){var o;if(t.metaData&&(null===(o=this._prefetchResult)||void 0===o?void 0:o.sourceController))this._dataLoaded(e,this._prefetchResult.sourceController.getItems())}_declareUpdateTitle(){if(this._updateTitleId)d.default.unsubscribe(this._updateTitleId);this._updateTitleId=d.default.declareCommand("updateTitle",this._updateTitle.bind(this))}_updateTitle(e){if(e)this._caption=e}_dataLoaded(e,t){this._rootChanged(t,this._prefetchResult.sourceController.getRoot())}_rootChanged(e,t,o){var i,a,n,r,s,p;if(e&&!(0,c.hasQueryParam)("no_hierarchy",this._options.Router)&&this._options.navigationHierarchy&&!(null===(i=this._options.backButtonConfig)||void 0===i?void 0:i.ignoreHierarchy))(0,c.prepareBreadCrumbsData)(e,{parentProperty:(null===(a=this._prefetchResult)||void 0===a?void 0:a.parentProperty)||"parent",displayProperty:(null===(n=this._prefetchResult)||void 0===n?void 0:n.displayProperty)||(null===(r=this._prefetchResult)||void 0===r?void 0:r.titleProperty)||"title"},this._options.navigationHierarchy,this._options.pageTitle||"");let d;if(!(null===(p=null===(s=this._options)||void 0===s?void 0:s.backButtonConfig)||void 0===p?void 0:p.storeId))d=this._prefetchResult.sourceController.getRoot();else d=this._prefetchResult.root;if(d===t)if(this._rootItem=(0,l.calculatePath)(e||(null==o?void 0:o.breadCrumbsItems)).backButtonItem,this._caption=this._getCaption(this._options,this._rootItem,this._prefetchResult),this._checkEditingEmptyTitle(this._caption,this._options),this._options.adaptiveLayout)this._updatedState=!0}_sourceErrorHandler(){this._rootItem=null,this._caption=this._getCaption(this._options,this._rootItem,this._prefetchResult)}_backButtonClick(){var e,t;const o=(null===(e=this._prefetchResult)||void 0===e?void 0:e.customItemClick)||(null===(t=this._options.backButtonConfig)||void 0===t?void 0:t.customItemClick);if(o)p.loadAsync(o).then((e=>{e(null,null,this._options.controllers.NavigationController,this._options.Router,this._options._slice)}));else return this._backButtonDefaultClick()}_backButtonDefaultClick(){var e,t,o,i,a;const n=decodeURIComponent(this._options.Router.maskResolver.calculateUrlParams("backButtonId=:id").id||"");if(this._options.navigateToMasterPage){const t=(0,c.parseQueryParams)(this._options.Router);
5t.showDetails=void 0;const o=null===(e=this._options.Router.maskResolver.calculateUrlParams(s.PAGE_PREFIX+"/:pageId"))||void 0===e?void 0:e.pageId;this._options.controllers.NavigationController.navigate(o,t||{},!1,this._options.Router)}else if(this._rootItem&&!this._rootItem.get("pageId")){const e=this._rootItem.get(this._prefetchResult.parentProperty);if(!(null===(o=null===(t=this._options)||void 0===t?void 0:t.backButtonConfig)||void 0===o?void 0:o.storeId))this._prefetchResult.sourceController.setRoot(e,!0);else return this._prefetchResult.changeRoot(e),!1}else if(n){const e=(0,c.parseQueryParams)(this._options.Router),t=e.saveQuery;if(delete e.backButtonId,delete e.backButtonCaption,delete e.saveQuery,!t&&this._options.Router.history.getPrevState()){const e=this._options.Router.history.getPrevState().state,t=this._options.Router.maskResolver.calculateUrlParams(s.PAGE_PREFIX+"/:pageId",e),o=this._options.Router.maskResolver.calculateUrlParams(s.PAGE_PREFIX+"/:pageId");if((null==t?void 0:t.pageId)===n&&(null==t?void 0:t.pageId)!==(null==o?void 0:o.pageId))return window.history.back(),!1}return this._options.controllers.NavigationController.navigate({pageId:"/"===n?void 0:n},"true"===t?e:{},!1,this._options.Router),!1}else if(this._options.navigationHierarchy){const e=(0,c.parseQueryParams)(this._options.Router);return delete e.backButtonId,delete e.backButtonCaption,this._options.controllers.NavigationController.navigate(this._options.navigationHierarchy.at(0).get("parentPageId"),e||{},!1,this._options.Router),!1}else if(this._options.adaptiveLayout&&this._options.isOnPanel)return null===(a=(i=this._options).pageClose)||void 0===a||a.call(i),!1}_startEditTitle(){var e,t,o;const i=null===(e=this._options.form.headerEditingConfig)||void 0===e?void 0:e.editClickHandler;if(i)p.loadAsync(i).then((e=>{null==e||e(this._options.formFactory)}));else if(this._options.onEditingTitleChanged)null===(o=(t=this._options).onEditingTitleChanged)||void 0===o||o.call(t,!0);else this._notify("editingTitleChanged",[!0])}_getCaption(e,t,o){var i,a,n,r,s;let l="";if(!e.accessAllowed&&g(e,t))if(e.navigationHierarchy)l=(null===(i=e.navigationHierarchy.at(0))||void 0===i?void 0:i.get("title"))||e.pageTitle;else l=e.pageTitle;else if(e.accessAllowed&&!(e.form&&e.form.isTitleEditing&&e.form.headerEditingConfig))if("title"!==e.viewMode&&g(e,t))if(null===(a=e.backButtonOptions)||void 0===a?void 0:a.emptyCaption)l="";else if(t&&!t.get("pageId"))l=t.get(o.displayProperty||o.titleProperty||"title")||e.pageTitle;else if(e.getHeadingCallback){l=p.loadSync(e.getHeadingCallback)(e.prefetchResult,e.stateRecord,"heading",(null===(r=null===(n=e.navigationHierarchy)||void 0===n?void 0:n.at(0))||void 0===r?void 0:r.get("title"))||e.pageTitle||e.headingTitle)}else if(e.navigationHierarchy)l=(null===(s=e.navigationHierarchy.at(0))||void 0===s?void 0:s.get("title"))||e.pageTitle;else{l=this._getBackButtonCaption(e.Router)||e.pageTitle}else if("backButton"!==e.viewMode)if(e.getHeadingCallback){l=p.loadSync(e.getHeadingCallback)(e.prefetchResult,e.stateRecord,"heading",e.headingTitle)}else{l=this._getBackButtonCaption(e.Router)||e.headingTitle}if(l)l=l.toString();else if(""===l&&!e.getHeadingCallback)l=void 0;return l}_checkEditingEmptyTitle(e,t){var o,i,a;if(!e&&t.form&&!(null===(o=t.form)||void 0===o?void 0:o.isReadOnly)&&(null===(i=t.form)||void 0===i?void 0:i.headerEditingConfig))null===(a=t.onEditingTitleChanged)||void 0===a||a.call(t,!0)}_getFontSize(e){return"top"===e.position?e.isOnPanel&&!e.sidebarVisible&&!e.adaptiveLayout?"4xl":"5xl":"3xl"}_translate(e,t){return t?p.loadSync(t)(e):e}static _getPrefetch(e){let t=null;return Object.keys(e).forEach((o=>{var i;if((null===(i=e[o])||void 0===i?void 0:i.dependentArea)&&e[o].dependentArea.includes("backbutton"))t=e[o]})),t}}h.defaultProps={accessAllowed:!0};const f=(0,i.forwardRef)(((e,t)=>{var n;const r=(0,i.useContext)((0,s.getPageControllerContext)()),l=(0,a.useSlice)(null===(n=e.backButtonConfig)||void 0===n?void 0:n.storeId),p=(0,a.useSlice)("applicationSettings"),d=(0,i.useMemo)((()=>{const e=null==p?void 0:p.getFinalValue("logo"),t=null==p?void 0:p.getFinalValue("contentLogo");return{logo:(null==t?void 0:t.logo)||e,logoType:((null==t?void 0:t.logo)?null==t?void 0:t.logoType:"")||(null==p?void 0:p.getFinalValue("logoType"))}}),[p]);return(0,o.jsx)(h,{ref:t,...e,...d,_slice:l,listRoot:null==l?void 0:l.state.root,pageClose:r.close})}));return t.hasBackButton=g,t.getBackButtonRootItem=u,t.getBackButtonPrefetch=function(e){return h._getPrefetch(e)},t.default=f,t}(0,{},e,t,v,r,P,c,h,i,f,c),R=M,L=function(e,t,o,i,a,n,r,s,l){"use strict";function p(e,t){const a=(0,i.useRef)(),p=(0,i.useRef)("");(0,i.useEffect)((()=>(p.current=s.default.declareCommand("focusSearch",(()=>{(0,n.activate)(a.current)}),!0),()=>{if(p.current)s.default.unsubscribe(p.current)})),[]);const c=(0,i.useMemo)((()=>
5{if(e.searchTemplateName)return(0,r.lazy)((()=>(0,r.importer)(e.searchTemplateName)));else return null}),[e.searchTemplateName]),g=(0,i.useMemo)((()=>"max"===e.searchWidth?"100%":(e.searchWidth||"300")+"px"),[e.searchWidth]),u=(0,o.jsx)(n.FocusRoot,{as:"div",autofocus:!!e.autofocusSearch,style:{display:"contents",width:"inherit",height:"inherit"},ref:a,children:e.searchTemplateName?(0,o.jsx)(l.DesignOptionsProvider,{value:e.designContextValue,children:(0,o.jsx)(c,{className:e.className,"data-name":e["data-name"],dataName:e["data-name"],style:{width:g},onSearch:e.onSearch,onSearchReset:e.onSearchReset,onKeyDown:e.onKeyDown,onValueChanged:e.onValueChanged,customEvents:d,value:e.value,prefetchResult:e.prefetchResult,contrastBackground:e.contrastBackground,designContextValue:e.designContextValue,...e.searchTemplateOptions})}):(0,o.jsx)(o.Fragment,{})});return(0,o.jsx)(o.Fragment,{children:t?(0,o.jsx)("div",{ref:t,style:{display:"contents",width:"inherit",height:"inherit"},children:u}):u})}Object.defineProperty(t,"__esModule",{value:!0});const d=["onSearch","onSearchReset","onKeyDown","onValueChanged"];p.displayName="SabyPage/contentLayout/Template:SearchTemplateInner";const c=(0,i.forwardRef)(p),g=(0,r.lazy)((()=>(0,r.importer)("Controls/searchDeprecated:InputContainer"))),u=(0,i.memo)((function(e){return(0,o.jsx)(g,{useStore:!0,minSearchLength:e.minSearchLength,inputSearchValue:e.inputSearchValue,children:(0,o.jsx)(c,{...e})})}));return t.default=function(e){var t,i;if(e.prefetchConfigError)return(0,o.jsx)("div",{className:"tw-hidden"});else return(0,o.jsx)(a.default,{prefetchResult:e.prefetchResult,storeId:null===(t=e.searchTemplateOptions)||void 0===t?void 0:t.storeId,children:(null===(i=e.searchTemplateOptions)||void 0===i?void 0:i.storeId)?(0,o.jsx)(c,{...e,"data-name":"sabyPage-MainLayout__searchTemplate"}):(0,o.jsx)(u,{...e,"data-name":"sabyPage-MainLayout__searchTemplate"})})},t}(0,{},e,t,k,a,s,f,u),A=L,b.Title=b.BeforeLogo=b.AreaTemplate=b.LeftButtons=b.WorkspaceTemplate=b.TopCustomArea=b.FilterArea=b.SearchArea=b.AddButtonTemplate=b.getBackButtonRootItem=b.getBackButtonPrefetch=b.hasBackButton=b.BackButtonController=b.searchTemplate=b.filterTemplate=b.HeaderLeftContext=b.ContentTemplate=void 0,b.filterTemplate=B,Object.defineProperty(b,"BackButtonController",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(b,"hasBackButton",{enumerable:!0,get:function(){return R.hasBackButton}}),Object.defineProperty(b,"getBackButtonPrefetch",{enumerable:!0,get:function(){return R.getBackButtonPrefetch}}),Object.defineProperty(b,"getBackButtonRootItem",{enumerable:!0,get:function(){return R.getBackButtonRootItem}}),Object.defineProperty(b,"searchTemplate",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(b,"ContentTemplate",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(b,"HeaderLeftContext",{enumerable:!0,get:function(){return S.HeaderLeftContext}}),Object.defineProperty(b,"AddButtonTemplate",{enumerable:!0,get:function(){return T.AddButtonTemplate}}),Object.defineProperty(b,"SearchArea",{enumerable:!0,get:function(){return T.SearchArea}}),Object.defineProperty(b,"FilterArea",{enumerable:!0,get:function(){return T.FilterArea}}),Object.defineProperty(b,"TopCustomArea",{enumerable:!0,get:function(){return T.TopCustomArea}}),Object.defineProperty(b,"WorkspaceTemplate",{enumerable:!0,get:function(){return T.WorkspaceTemplate}}),Object.defineProperty(b,"LeftButtons",{enumerable:!0,get:function(){return T.LeftButtons}}),Object.defineProperty(b,"AreaTemplate",{enumerable:!0,get:function(){return T.AreaTemplate}}),Object.defineProperty(b,"BeforeLogo",{enumerable:!0,get:function(){return T.BeforeLogo}}),Object.defineProperty(b,"Title",{enumerable:!0,get:function(){return T.Title}}),b}));
6define("SabyPage/context",["react/jsx-runtime","react","UICore/Jsx","require","exports"],(function(e,t,n,r,o){var u,i,a,c,d,x;return Object.defineProperty(o,"__esModule",{value:!0}),u=function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNavContext=t.getContext=void 0;const r=(0,n.createContext)(void 0);r.displayName="SabyPage/context:PageOptionsContext",t.getContext=function(){return r};const o=(0,n.createContext)(void 0);return o.displayName="SabyPage/context:NavigationOptionsContext",t.getNavContext=function(){return o},t}(0,{},t),i=u,a=function(e,t,n,r,o,u){"use strict";
6return Object.defineProperty(t,"__esModule",{value:!0}),t.default=r.forwardRef((function(e,t){const{clearProps:r}=(0,u.delimitProps)(e),i=(0,o.getContext)();return(0,n.jsx)(i.Provider,{value:e.contextValue,children:(0,n.jsx)(e.content,{ref:t,...r})})})),t}(0,{},e,t,u,n),c=a,d=function(e,t,n,r){"use strict";return Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=(0,r.getNavContext)();return(0,n.jsx)(t.Provider,{value:e.contextValue,children:e.children})},t}(0,{},e,u),x=d,o.NavContextProvider=o.ContextProvider=o.getNavContext=o.getContext=void 0,Object.defineProperty(o,"getContext",{enumerable:!0,get:function(){return i.getContext}}),Object.defineProperty(o,"getNavContext",{enumerable:!0,get:function(){return i.getNavContext}}),Object.defineProperty(o,"ContextProvider",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(o,"NavContextProvider",{enumerable:!0,get:function(){return x.default}}),o}));
7define("SabyPage/widgets/RightPanelReact",["require","exports","react/jsx-runtime","react","SabyPage/base","Page/base","UICommon/Deps","WasabyLoader/ModulesLoader","SabyPage/widgets","Controls-DataEnv/context","Env/Env","UI/Async","css!SabyPage/widgets/RightPanel"],(function(e,t,a,o,i,l,n,s,r,d,g,u){"use strict";function c(e){const[t,i]=(0,o.useState)((()=>{if("undefined"==typeof window)return(0,n.addPageDeps)([w]),!0;else return(0,s.isLoaded)(w)}));let l;if((0,o.useEffect)((()=>{if(!t)(0,s.loadAsync)(w).then((()=>{i(!0)}));else(0,s.loadSync)(w)}),[]),t)l=(0,s.loadSync)(w);return l?(0,a.jsx)(l,{...e}):(0,a.jsx)("div",{})}function f(e,t,a,o){const i=!!a||function(e){return Object.keys(e).some((t=>{var a;const o=e[t],i=null===(a=null==o?void 0:o.state)||void 0===a?void 0:a.filterDescription;return o&&o["[IListSlice]"]&&!!(null==i?void 0:i.length)}))}(o);return!1!==e&&!t&&i}Object.defineProperty(t,"__esModule",{value:!0});const p=(0,u.lazy)((()=>(0,u.importer)("Controls/extButtons:CloseButton"))),w="EngineUser/UserStatus",v=(0,o.forwardRef)(((e,t)=>{var n,s,u,w,v,y;const m=(0,o.useContext)((0,l.getBuildingContext)()),P=(0,o.useContext)((0,l.getPageControllerContext)()),C=(0,o.useContext)(d.DataContext),h=(0,o.useRef)(void 0),[b,_]=(0,o.useState)(!1),x=(0,d.useSlice)("formFactory"),S=(0,d.useSlice)("configurationVisibility"),k=f(null===(n=e.toolbarConfig)||void 0===n?void 0:n.allowCopyPageUrl,e.stack,null===(s=e.toolbarConfig)||void 0===s?void 0:s.storeId,C),N=!!e.widgetName&&!!e.dataSetName&&!!(null===(u=e.toolbarConfig)||void 0===u?void 0:u.storeId),j=(0,o.useMemo)((()=>{var t;return{allowCopyPageUrl:k,widgetName:e.widgetName,dataSetName:e.dataSetName,storeId:null===(t=e.toolbarConfig)||void 0===t?void 0:t.storeId,pageId:e.pageId,langDictionary:e.langDictionary,type:"default",allowAdaptive:e.allowAdaptive,configurationConfig:e.configurationConfig,isEmptyView:e.isEmptyView,pageContext:P,dataContext:C}}),[P,k,e.widgetName,e.dataSetName,null===(w=e.toolbarConfig)||void 0===w?void 0:w.storeId,C,e.pageId,e.langDictionary,e.allowAdaptive,e.configurationConfig,e.isEmptyView]),I=(0,d.useSlice)("noticeCenter"),R=(0,o.useMemo)((()=>{var t,a,o;return!1!==(null===(t=null==I?void 0:I.hasData)||void 0===t?void 0:t.call(I))&&(null===(a=e.viewSettings)||void 0===a?void 0:a.noticeShow)&&!(null===(o=e.viewSettings)||void 0===o?void 0:o.isNoticeLeft)&&g.constants.modules.NoticeCenterRoute}),[e.viewSettings,I]);return(0,a.jsx)("div",{ref:t,style:e.style,"data-click-type":"global",className:(e.className||"")+" sabyPage-widgets__rightPanelWrapper tw-flex tw-justify-start "+(R?"sabyPage-widgets__rightPanelWrapper_wide ":" ")+"tw-grow-0 tw-shrink-0",children:(0,a.jsxs)("div",{onMouseOver:()=>{if(!b)_(!0)},onMouseLeave:()=>{_(!1)},className:"sabyPage-widgets__rightPanel "+(e.blockLayout&&!e.stack?"sabyPage-widgets__rightPanel_blockLayout":"sabyPage-widgets__rightPanel_default")+" "+(R?"sabyPage-widgets__rightPanel_wide"+(e.blockLayout?"_blockLayout":""):"")+" tw-flex tw-justify-between tw-grow-0 tw-shrink-0 ",children:[(0,a.jsxs)("div",{className:"sabyPage-widgets__rightPanel__topButtons tw-flex tw-flex-col tw-min-h-0 tw-shrink-0",children:[e.rightPanelConfig.showCross?(0,a.jsx)(p,{ref:h,tabIndex:-1,"data-qa":"controls-stack-Button__close",viewMode:"functionalButton",readOnly:!1,size:"l",offset:"null",className:"tw-shrink-0 sabyPage-widgets__rightPanel__closeButton",onClick:()=>{var t,a;if(null===(t=e.rightPanelConfig)||void 0===t?void 0:t.onClose)e.rightPanelConfig.onClose();else null===(a=null==P?void 0:P.close)||void 0===a||a.call(P)}}):(0,a.jsx)(a.Fragment,{}),e.userStatusConfig&&!e.hideRightPanelContent?(0,a.jsx)(c,{className:"sabyPage-MainLayout__commandItem-default",...e.userStatusConfig,useDefaultIcon:e.userStatusConfig.hideStatusMarker,singlePageApp:e.singlePageApp,profilePageId:e.profilePageId,nameClickHandler:e.nameClickHandler,logoutClickHandler:e.logoutClickHandler}):(0,a.jsx)(a.Fragment,{}),!e.workspaceErrorConfig&&(e.toolbarConfig||(null==S?void 0:S.visible)||j.allowCopyPageUrl||N)?(0,a.jsx)(i.PrefetchAwaiter,{className:"sabyPage-widgets__rightToolbar","data-click-type":"local",type:"toolbar",prefetchResult:e.prefetchResult,loadT
7ype:null===(v=e.prefetchConfig)||void 0===v?void 0:v.loadType,templateName:"SabyPage/actionsToolbar:View",controllers:m,templateOptions:j}):(0,a.jsx)(a.Fragment,{}),e.rightPanelConfig&&e.rightPanelConfig.topTemplateName&&!e.workspaceErrorConfig?(0,a.jsx)(i.PrefetchAwaiter,{type:"rightPanel",prefetchResult:e.prefetchResult,stateRecord:e.stateRecord||(null===(y=null==x?void 0:x.state)||void 0===y?void 0:y.record),templateName:e.rightPanelConfig.topTemplateName,templateOptions:e.rightPanelConfig.topTemplateOptions}):(0,a.jsx)(a.Fragment,{})]}),(0,a.jsx)(r.RightPanelBottom,{...e,buttonVisible:b})]})})}));v.displayName="SabyPage.widgets.RightPanelReact",t.default=v}));
8define("SabyPage/widgets",["react/jsx-runtime","react","clsx","WasabyLoader/ModulesLoader","UICore/Jsx","UICommon/Deps","UI/theme/controller","UI/Contexts","UI/Async","Types/object","SabyPage/context","Page/loaders","Page/base","I18n/i18n","Feature/feature","Env/Env","Controls/scrollLite","Controls/popup","Controls/dataSource","Controls/Store","Controls/Container/Async","Controls-DataEnv/context","Compiler/IR","require","exports","css!SabyPage/widgets"],(function(e,t,n,o,i,r,a,l,s,c,u,m,p,d,g,f,v,y,C,_,b,w,h,T,x){var P,N,S,B,O,I,j,k,A,E,R,M,U,D;return Object.defineProperty(x,"__esModule",{value:!0}),P=function(e,t,n,o,i,r,a,l,s,c,u){"use strict";function m(e,t){const i=(0,o.useContext)((0,r.getNavContext)());return i?(0,n.jsxs)("div",{ref:t,children:[(0,n.jsx)("div",{className:"sabyPage-EntityLayout__menuButton","data-click-type":"global",children:(0,n.jsx)(p,{...i,theme:e.theme})}),(0,n.jsx)("div",{className:"sabyPage-MenuButton__emptyBlock"})]}):(0,n.jsx)("div",{ref:t})}function p(t){const i=(0,s.useTheme)(),r=((0,o.useMemo)((()=>((0,a.getThemeController)().getVariables(t.sidebarTheme||t.theme),!1)),[t.theme]),(0,o.useRef)(void 0)),u=(0,o.useRef)(),m=(0,o.useRef)(t.navigation),p=(0,o.useRef)(void 0),g=(0,o.useCallback)((()=>{if(!p.current)p.current=new Promise((n=>{new Promise(((t,n)=>{e(["Page/loaders"],t,n)})).then((({NavigationLoader:e})=>{const o=t.Router;e.loadData({pageId:"",forceReload:!0},void 0,o,t.controllers).then((e=>{m.current=e,n(void 0)}))})).catch((function(e){requirejs.onError(e)}))}));return p.current}),[t.Router]),f=(0,o.useCallback)((()=>{var n,o,i,a;if(!r.current)r.current=new l.StickyOpener;if(r.current.open({template:"NavigationPanels/sidebars:Sidebar",templateOptions:{...t.sidebarSettings,Router:t.Router,controllers:t.controllers,sabyLayout:!0,theme:t.sidebarTheme||t.theme,viewMode:"default",isPopup:!0,logo:t.logo,logoType:t.logoType,favicon:t.favicon,quickAddSource:t.quickAddSource,quickAddSettings:t.quickAddSettings,allowChangeConfiguration:t.allowChangeConfiguration,showAppSelector:t.showAppSelector,showSchemeSelector:t.showSchemeSelector,navigation:null===(n=m.current)||void 0===n?void 0:n.main,metaData:null===(o=m.current)||void 0===o?void 0:o.accData,groupMenu:null===(i=m.current)||void 0===i?void 0:i.mainGroup,selectedKey:null===(a=m.current)||void 0===a?void 0:a.mainSelected,accordionExpanded:!0,accordionWidth:200,navigationWidth:200,footerConfig:null},closeOnOutsideClick:!0,target:u.current,targetPoint:{vertical:"top",horizontal:"left"},offset:{vertical:-3,horizontal:0},direction:{vertical:"bottom",horizontal:"right"},fittingMode:{horizontal:"adaptive",vertical:"fixed"},eventHandlers:{onResult:t=>{var n;null===(n=r.current)||void 0===n||n.close(),new Promise(((t,n)=>{e(["Page/base"],t,n)})).then((({NavigationController:e})=>{const n=null==t?void 0:t.get("redirectDomain");e.navigate({pageId:null==t?void 0:t.get("pageId"),host:n,redirect:!0},{},!!n)})).catch((function(e){requirejs.onError(e)}))}}}),c.constants.modules.BrowserStatistics)new Promise(((t,n)=>{e(["BrowserStatistics/browserStatistics"],t,n)})).then((({sendBrowserStatistic:e})=>{e({functional:"Аккордеон",context:"Кнопка аккордеона в отдельной вкладке",action:"Открытие панели навигации"})})).catch((function(e){requirejs.onError(e)}))}),[t.Router,t.allowChangeConfiguration,t.showAppSelector,t.quickAddSource,t.sidebarSettings,t.theme]),v=(0,o.useCallback)((()=>{g().then((()=>{f()}))}),[g,f]);return(0,n.jsx)("div",{className:"sabyPage-MenuButtonWrapper",ref:u,onMouseEnter:g,children:(0,n.jsxs)("div",{className:"sabyPage-MenuButton navigation_theme navigation_theme-"+(t.theme||i),children:[(0,n.jsx)(d,{className:"sabyPage-MenuButton__logo",favicon:t.favicon}),(0,n.jsx)("div",{className:"sabyPage-MenuButton__compactBtn controls-icon controls-icon_size-s controls-icon_style-label icon-Burger","data-qa":"NavigationPanels-Sidebar__compactBtn",tabIndex:"0",onClick:v})]})})}
8Object.defineProperty(t,"__esModule",{value:!0}),t.ENTITY_MENU_BUTTON_WIDTH=void 0,t.ENTITY_MENU_BUTTON_WIDTH=48,m.displayName="SabyPage/widgets:EntityMenuButton";const d=(0,i.lazy)((()=>(0,i.importer)("NavigationPanels/Logo")));return p.displayName="SabyPage/widgets:menuButton",t.default=(0,u.connectApplicationSettings)((0,o.memo)((0,o.forwardRef)(m))),t}(T,{},e,t,s,u,a,y,l,f,p),N=P,S=function(e,t,n,o,i,r,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const l=(0,r.lazy)((()=>(0,r.importer)("Controls/scroll:Container"))),s=(0,r.lazy)((()=>(0,r.importer)("Hint/Template:LicenseLayout")));return t.default=(0,o.forwardRef)((function(e,t){var o,r,c,u,m;const p=null===(o=e.workspaceErrorConfig)||void 0===o?void 0:o.license;return(0,n.jsx)(l,{ref:t,shadowMode:"js",className:(0,i.default)("sabyPage-widgets__errorWrapper",e.className),children:p?(0,n.jsx)(s,{...null===(r=e.emptyViewConfig)||void 0===r?void 0:r.emptyTemplateOptions,emptyTemplateOptionsGetter:null===(c=e.emptyViewConfig)||void 0===c?void 0:c.emptyTemplateOptionsGetter,emptyTemplateOptionsGetterArguments:null===(u=e.emptyViewConfig)||void 0===u?void 0:u.emptyTemplateOptionsGetterArguments,footerConfig:p.footerConfig,langDictionary:e.langDictionary}):(0,n.jsx)(a.error.Container,{className:"sabyPage-widgets__errorContainer",viewConfig:e.workspaceErrorConfig||(null===(m=e.form)||void 0===m?void 0:m.errorConfig),children:(0,n.jsx)("div",{})})})})),t}(0,{},e,t,n,s,C),B=S,O=function(e,t,n,o,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AutoSignTemplate=void 0;const r=i.default;return t.AutoSignTemplate=(0,n.memo)((e=>(0,o.createElement)(r,{templateName:"Docflow/autoSignInformer:AutoSign",templateOptions:{informerStyle:"primary"}},void 0,void 0,e.wasabyContextRef.current))),t.AutoSignTemplate.displayName="AutoSignTemplate",t}(0,{},t,i,b),I=function(e,t,n,o,i,r,a,l){"use strict";function s(e){const[t,n]=(0,i.useState)((()=>r.constants.isServerSide||(0,a.isLoaded)(e.templateName)));let l;if((0,i.useEffect)((()=>{if(!t)(0,a.loadAsync)(e.templateName).then((()=>{n(!0)}));else(0,a.loadSync)(e.templateName)}),[]),t)l=(0,a.loadSync)(e.templateName);return l?(0,o.jsx)(l,{...e}):(0,o.jsx)("div",{})}return Object.defineProperty(t,"__esModule",{value:!0}),t.ExpandIconTemplate=void 0,t.ExpandIconTemplate=(0,i.memo)((e=>{let t;if(r.constants.modules.NoticeCenter){if(r.constants.isServerSide)(0,l.addPageDeps)([e.templateName]);t=s}return t?(0,n.createElement)(t,{...e,key:"expandIconTemplate",className:"sabyPage-widgets__noticeCenterButton tw-grow-1"}):(0,o.jsx)("div",{})})),t.ExpandIconTemplate.displayName="ExpandIconTemplate",t}(0,{},t,e,t,f,o,r),j=function(e,t,n,o,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HelpButtonTemplate=void 0;const r=i.default;return t.HelpButtonTemplate=(0,n.memo)((e=>{const{wasabyContextRef:t,...n}=e;return(0,o.createElement)(r,{templateName:"Hint/Buttons:HelpButton",templateOptions:n},{key:"helpButton","data-qa":"sabyPage-helpButton",class:"sabyPage-HelpButton tw-self-center"},void 0,t.current)})),t.HelpButtonTemplate.displayName="HelpButtonTemplate",t}(0,{},t,i,b),k=function(e,t,n,o,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InformersBarsViewTemplate=void 0;const r=i.default;return t.InformersBarsViewTemplate=(0,n.memo)((e=>{const{wasabyContextRef:t,...n}=e;return(0,o.createElement)(r,{templateName:"Informers/bars:View",templateOptions:n},void 0,void 0,t.current)})),t.InformersBarsViewTemplate.displayName="InformersBarsViewTemplate",t}(0,{},t,i,b),A=function(e,t,n,o,i,r,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoticeCompactInformersTemplate=void 0;const l=i.constants.modules.NoticeCompact?(0,a.lazy)((()=>(0,a.importer)("NoticeCompact/informers:View"))):null;return t.NoticeCompactInformersTemplate=(0,o.memo)((e=>{const{wasabyContextRef:t,...o}=e;return r.Feature.get(["notice-compact"])[0]?(0,n.jsx)(l,{ref:t.current,...o}):null})),t.NoticeCompactInformersTemplate.displayName="NoticeCompactInformersTemplate",t}(0,{},e,t,f,g,s),E=function(e){"use strict";var t=["blockLayout","_options","controls-margin_top-2xs","contrastBackgroun
8d","isMaster","highlightContentArea","emptyViewConfig"," controls__block-wrapper tr","resolvedTemplate","content","controls__block","licenseConfig","emptyTemplateOptions","emptyTemplateOptionsGetter","emptyTemplateOptionsGetterArguments","footerConfig","langDictionary","pageContext","contextOptionsInnerComponent","embedRouteProps"];return e.g({v:1,m:"wml!SabyPage/_widgets/resources/emptyViewTemplate",d:e.d(["Controls/Container/Async","Page/base"],arguments,1),t:[e.c(((e,t)=>[e.P(t,e.m(t,2),{K:"0_0_0_0_0_0_0_",O:e.S(t,{emptyTemplateOptionsGetter:e.m(t,6),emptyTemplateOptionsGetterArguments:e.m(t,7),footerConfig:e.m(t,8),langDictionary:e.m(t,9)},e.m(t,5)),g:!0,m:"attribute",i:0})])),e.c(((e,t)=>[e.P(t,e.m(t,2),{K:"0_0_0_1_0_0_0_",O:e.S(t,{esc:!1,_clickContext:e.m(t,10),emptyTemplateOptionsGetter:e.m(t,6),emptyTemplateOptionsGetterArguments:e.m(t,7),langDictionary:e.m(t,9),embedRouteProps:e.m(t,11),clickContext:{pageContext:e.m(t,10)}},e.m(t,5)),g:!0,m:"attribute",b:["clickContext"],i:0})])),e.c(((e,t)=>[e.m(t,4)?[e.C(t,"ws:Controls/Container/Async",{K:"0_0_0_0_0_",O:{esc:!1,templateName:"Hint/Template:LicenseLayout",content:e.o(t,0,1)},g:!0,m:"attribute"})]:[e.C(t,"ws:Controls/Container/Async",{K:"0_0_0_1_0_",O:{esc:!1,templateName:"Hint/Template:EmptyView",content:e.o(t,1,2)},g:!0,m:"attribute"})]]),"contextOptionsInnerComponent"),e.c(((e,t)=>[e.C(t,{library:"Page/base",module:["PageControllerContextConsumer"]},{K:"0_0_",O:{esc:!1,contextOptionsInnerComponent:e.o(t,2,3)},g:!0,m:"attribute"})])),e.c(((e,t)=>[e.P(t,e.m(t,2),{K:"0_0_0_0_0_",A:{class:"sabyPage-widgets__emptyViewScroll "+e.e(e.m(t,3))},O:{esc:!1,shadowMode:"js",content:e.o(t,3,4)},g:!0,m:"attribute"})])),e.r(((e,t)=>[e.g(t,"div",{K:"0_",A:{class:"tw-flex sabyPage-widgets__emptyView "+e.e(e.x(t,0))},r:!0,c:!0},[e.g(t,"div",{K:"0_0_",A:{class:"tw-flex sabyPage-widgets__emptyViewWrapper tw-flex-col tw-max-w-full tw-min-h-0 tw-grow-1 tw-shrink-1 "+e.e(e.x(t,1))}},[e.C(t,"ws:Controls/Container/Async",{K:"0_0_0_",O:{esc:!1,templateName:"Controls/scroll:Container",content:e.o(t,4,5)}})])])]))],e:[(e,n)=>e.g(n,[t[1],t[0]])?t[2]:"",(e,n)=>e.g(n,[t[1],t[3]])&&!e.g(n,[t[1],t[4]])&&(e.g(n,[t[1],t[5]])||e.g(n,[t[1],t[6],t[5]]))?t[7]:"",(e,n)=>e.g(n,[t[9],t[8]]),(e,n)=>e.g(n,[t[1],t[3]])&&!e.g(n,[t[1],t[4]])&&(e.g(n,[t[1],t[5]])||e.g(n,[t[1],t[6],t[5]]))?t[10]:"",(e,n)=>e.g(n,[t[1],t[11]]),(e,n)=>e.g(n,[t[1],t[6],t[12]]),(e,n)=>e.g(n,[t[1],t[6]])?e.g(n,[t[1],t[6],t[13]]):"",(e,n)=>e.g(n,[t[1],t[6]])?e.g(n,[t[1],t[6],t[14]]):"",(e,n)=>e.g(n,[t[1],t[11],t[15]]),(e,n)=>e.g(n,[t[1],t[16]]),(e,n)=>e.g(n,[t[18],t[17]]),(e,n)=>e.g(n,[t[1],t[19]])],i:[[[5]],[[2],[5,9]],[[2],[5,7],[9,11]],[[4,11]],[[4,9],[11]],[[2,9],[11]]]})}(h,b,p),R=E,M=function(e,t,n,o,i,r,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WrapperInformersTemplate=void 0;const l={vertical:"end"};return t.WrapperInformersTemplate=(0,o.memo)((e=>(0,n.jsxs)(i.Scroll,{className:"sabyPage-widgets__informersWrapper-scrollContainer",backgroundStyle:"informers",forwardedRef:e.wasabyContextRef.current,scrollbarVisibility:!1,initialScrollPosition:l,children:[(0,n.jsx)(r.NoticeCompactInformersTemplate,{...e}),(0,n.jsx)(a.InformersBarsViewTemplate,{...e})]}))),t.WrapperInformersTemplate.displayName="WrapperInformersBarsTemplate",t}(0,{},e,t,v,A,k),U=function(e,t,n,o,i,r,a,l,s,c,u,m,p,d,g,f,v){"use strict";function y(e=!1,t="",n,o,i){let r="";if(e){if(n)r=n;else if(o||i&&"default"!==i)r=t}else r=t;return r}function C(e){var t,C,w;const{clearProps:h,$wasabyRef:T,userAttrs:x,context:P}=(0,o.delimitProps)(e),N=(0,o.wasabyAttrsToReactDom)(x)||{},S=T,B=(0,d.useSlice)("noticeCenter"),O=(0,d.useSlice)("applicationSettings"),I=(0,a.useMemo)((()=>{var e;return!1!==(null===(e=null==B?void 0:B.hasData)||void 0===e?void 0:e.call(B))}),[B]),j=function(e){var t,n,o,l;const s=(0,a.useRef)(void 0),c=(0,a.useRef)(void 0);c.current=e;const u=(0,a.useContext)((0,p.getContext)()),g=(0,a.useRef)(void 0),f=(0,a.useContext)((0,m.getBuildingContext)()),v=(0,d.useSlice)("applicationSettings"),y=(0,a.useState)(0)[1],C=(0,d.useSlice)("rightPanel");
8if((0,a.useEffect)((()=>{if(!u)return g.current=i.default.onPropertyChanged("_rightPanelOptions",(e=>{var t;const n={...e,informerTemplateOptions:i.default.get("informerTemplateOptions"),...null===(t=null==C?void 0:C.getState)||void 0===t?void 0:t.call(C),helpUrl:(null==C?void 0:C.helpUrl)||e.pageId===e.mainPageId?null==v?void 0:v.state.help:e.helpUrl,...c.current,helpButtonConfig:{...e.helpButtonConfig,knowledgeBaseInfo:null==v?void 0:v.state.knowledgeBaseInfo},informersConfig:e.informersConfig,buildingContext:null==f?void 0:f.buildingContext};if(!(0,r.isEqual)(n,s.current))s.current=n,y((e=>e+1))}),!0),()=>{if(g.current)i.default.unsubscribe(g.current)}}),[]),!s.current)return s.current=u?{...u,informerTemplateOptions:i.default.get("informerTemplateOptions"),...e,...null===(t=null==C?void 0:C.getState)||void 0===t?void 0:t.call(C),buildingContext:null==f?void 0:f.buildingContext}:{...i.default.get("_rightPanelOptions"),informerTemplateOptions:i.default.get("informerTemplateOptions"),...e,...null===(n=null==C?void 0:C.getState)||void 0===n?void 0:n.call(C),buildingContext:null==f?void 0:f.buildingContext},s.current;let _;if(u)_={...s.current,...u,helpUrl:u.pageId===u.mainPageId?null==v?void 0:v.state.help:u.helpUrl,...e,helpButtonConfig:{...u.helpButtonConfig,knowledgeBaseInfo:null==v?void 0:v.state.knowledgeBaseInfo},informersConfig:u.informersConfig,...null===(o=null==C?void 0:C.getState)||void 0===o?void 0:o.call(C),buildingContext:null==f?void 0:f.buildingContext};else _={...s.current,...e,...null===(l=null==C?void 0:C.getState)||void 0===l?void 0:l.call(C),buildingContext:null==f?void 0:f.buildingContext};if(!(0,r.isEqual)(_,s.current))s.current=_;return s.current}(h),k="988736e9-8af9-45a4-9ad3-058b0a56f7a9"===(null==O?void 0:O.state.applicationId)&&"UZ"===f.controller.currentCountry,A=null!==(t=null==O?void 0:O.state.helpButton)&&void 0!==t?t:v.ApplicationSettings.get("helpButton"),E=!(!0===(null===(C=j.helpButtonConfig)||void 0===C?void 0:C.isHidden)||!0===j.helpButtonOutsidePanel||0===(null==A?void 0:A.length)||k&&e.isAdaptive),R=(0,a.useRef)(void 0);R.current=P;const M=(0,a.useRef)(!!g.constants.modules.Informers),U=j.noticeCenterConfig&&(0,n.jsx)(l.ExpandIconTemplate,{templateName:function(e,t,n,o){if(t)if(o)return _;else return b;if(e&&"panel"!==n)return _;else return b}(j.noticeShow,e.stack,j.noticeCenterConfig.visibilityMode,e.isNoticePanel),isNoticeStack:j.isNoticeStack,isStackPanel:e.stack||"panel"===j.noticeCenterConfig.visibilityMode,noticeOpener:j.noticeOpener,portalWidth:j.width,pageUrl:j.url,prefetch:e.prefetch,hiddenGroups:j.noticeCenterConfig&&j.noticeCenterConfig.hiddenGroups})||"";let D=(0,n.jsx)(n.Fragment,{});if(M.current&&!j.hideInformers){const t="sabyPage-widgets__informersWrapper "+(E?"controls-margin_bottom-xs":"")+" sabyPage-widgets__informersWrapper-shadow tw-flex tw-flex-col tw-min-h-0 tw-grow-1 tw-shrink-1 tw-items-center tw-justify-end";D=(0,n.jsx)("div",{className:"sabyPage-widgets__wrapper tw-flex tw-shrink-1 tw-justify-between tw-items-center",children:(0,n.jsxs)("div",{className:t,children:[j.hasDocflow?(0,n.jsx)(s.AutoSignTemplate,{wasabyContextRef:R}):"",(0,n.jsx)(c.WrapperInformersTemplate,{wasabyContextRef:R,location:"rightPanel",withoutOffset:!E,informerTemplateOptions:j.informerTemplateOptions,informersConfig:j.informersConfig,needResetAutoSing:!e.stack,isCompatiblePopup:e.isCompatiblePopup,isAdaptive:e.isAdaptive,readOnly:!1,scrollBottom:!!e.buttonVisible})]})})}const V=E&&(0,n.jsx)(u.HelpButtonTemplate,{wasabyContextRef:R,name:"helpButton",entityId:y(e.stack,j.pageId,e.entityId,null===(w=j.helpButtonConfig)||void 0===w?void 0:w.useContentType,j.buildingContext),entityTitle:e.entityTitle||e.title||e.pageTitle,entityContentType:e.contentType,isOnStackPanel:e.stack,getTemplateName:j.getEntityTemplateName||e.getTemplateName,items:j.helpButtonItems,helpUrl:j.helpUrl,helpButtonConfig:j.helpButtonConfig,langDictionary:j.langDictionary,helpButtonOptions:j.helpButtonOptions,isAdaptive:e.isAdaptive,isOnlyHelpRoutes:k})||"",H="sabyPage-widgets__rightPanel__bottomButtons tw-flex  "+(!E?"sabyPage-widgets__rightPanel__bottomButtons-withoutHelpButton ":" ")+(N.className||"");return j.hideRightPanelContent?(0,n.jsx)("div",{...N,className:H,ref:S}):(0,n.jsxs)("div",{...N,className:H,ref:S,children:[j.noticeCenterConfig&&!e.stack&&I?(0,n.jsx)("div",{className:"sabyPage-widgets__noticeCenterButton-wrapper",children:U}):null,D,V]})}
8Object.defineProperty(t,"__esModule",{value:!0});const _="NoticeCenter/buttons:Button",b="NoticeCenter/buttons:Embed";return C.displayName="SabyPage/widgets:RightPanelBottom",t.default=(0,a.memo)(C),t}(0,{},e,i,_,c,t,I,O,M,j,p,u,w,f,d,m),D=U,x.emptyViewTemplate=x.errorTemplate=x.ENTITY_MENU_BUTTON_WIDTH=x.EntityMenuButton=x.RightPanelBottom=void 0,x.emptyViewTemplate=R,Object.defineProperty(x,"RightPanelBottom",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(x,"EntityMenuButton",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(x,"ENTITY_MENU_BUTTON_WIDTH",{enumerable:!0,get:function(){return N.ENTITY_MENU_BUTTON_WIDTH}}),Object.defineProperty(x,"errorTemplate",{enumerable:!0,get:function(){return B.default}}),x}));
9define("Controls/scrollLite",["react/jsx-runtime","react","clsx","UI/Contexts","UI/Async","UI/Adaptive","Env/Env","Controls/stickyBlock","Controls/sizeUtils","require","exports","css!Controls/scrollLite"],(function(t,e,o,r,l,i,n,s,c,a,d){var u,h,f,w,v,S,b,m,g,p,y,_,C;return Object.defineProperty(d,"__esModule",{value:!0}),u=function(t,e,o,r,l){"use strict";function i(t){const{top:e,left:r,right:l,bottom:i,scrollTo:h,scrollRef:f}=t;if(!(e||r||l||i))return null;else return(0,o.jsx)(o.Fragment,{children:c.map((e=>t[a[e]]&&(0,o.jsx)(n,{direction:e,viewMode:"stretched",translucent:"dark",inlineHeight:"xl",dataQa:`${s}_${e}`,className:`${s} ${s}_${e}`,onClick:()=>{if(!(null==f?void 0:f.current)||!h)return;let t=0,o=0;if("horizontal"===d[e])o=f.current.clientHeight,t=f.current.scrollLeft;else o=f.current.clientWidth,t=f.current.scrollTop;if("next"===u[e])t+=o;else t-=o;null==h||h(t,d[e],!0)},readOnly:!1},e)))})}Object.defineProperty(e,"__esModule",{value:!0}),e.Buttons=e.ScrollButtons=void 0;const n=(0,l.lazy)((()=>(0,l.importer)("Controls/extButtons:ArrowButton"))),s="controls-ScrollLite__arrowButton",c=["up","down","left","right"],a={up:"top",down:"bottom",left:"left",right:"right"},d={up:"vertical",down:"vertical",left:"horizontal",right:"horizontal"},u={up:"prev",down:"next",left:"prev",right:"next"};e.ScrollButtons=i;const h=(0,r.memo)(i);return e.Buttons=h,e}(0,{},t,e,l),h=function(t,e,o,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContextProvider=e.ContextConsumer=e.Context=void 0;const l=(0,r.createContext)(void 0);return e.Context=l,l.displayName="ControlsScrollContext",e.ContextConsumer=function(t){const e=(0,r.useContext)(l);if((0,r.useEffect)((()=>{if(e)t.getContextValue(e)}),[e]),t.content)return(0,o.jsx)(t.content,{...e,...t});else return t.children},e.ContextProvider=function({content:t,children:e,...i}){const n=(0,r.useMemo)((()=>i),[]);return(0,o.jsx)(l.Provider,{value:n,children:t?(0,o.jsx)(t,{...i,children:e}):e})},e}(0,{},t,e),f=h,w=function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StickyResizeObserver=void 0;class o{constructor(t,e){this.nativeEntry=t,this.data=e}}return e.StickyResizeObserver=class{constructor(){this._observers={},this._items={},this._options={threshold:[1],rootMargin:"0px 0px 0px 0px"}}register(t,e){if(e.observerName!==this._options.observerName)return;const o={...e,threshold:e.threshold||this._options.threshold,rootMargin:e.rootMargin||this._options.rootMargin};if(this._items[e.instId]=o,o.element)this._observe(t,o.element,o.threshold,o.rootMargin)}unregister(t,e){if(e!==this._options.observerName)return;const o=this._items[t];if(null==o?void 0:o.element)this._unobserve(o.element,o.threshold,o.rootMargin),delete this._items[t]}_observe(t,e,o,r){const l=this._getObserverKey(o,r);if(this._observers.hasOwnProperty(l))this._observers[l].observer.observe(e),this._observers[l].count++;else{const i=this._createObserver(t,o,r);i.observe(e),this._observers[l]={count:1,observer:i}}}_unobserve(t,e,o){const r=this._getObserverKey(e,o),l=this._observers[r];if(l.observer.unobserve(t),l.count--,!l.count)delete this._observers[r]}_getObserverKey(t,e=""){return`t${t.join("_")}_rm${e.replace(/ /g,"_")}`}_createObserver(t,e,o){return new IntersectionObserver(this._intersectionObserverHandler.bind(this),{root:t,threshold:e,rootMargin:o})}_intersectionObserverHandler(t){let e;for(const r of t)if(e=Object.keys(this._items).find((t=>this._items[t].element===r.target)),e){const t=new o(r,this._items[e].data);this._items[e].handler(t)}}destroy(){for(const t of Object.keys(this._observers))this._observers[t].observer.disconnect();this._observers={}}},e}(0,{}),v=function(t,e){"use strict";
9return Object.defineProperty(e,"__esModule",{value:!0}),e.getScrollContentElement=void 0,e.getScrollContentElement=function(t){var e;if(t){const o=t.closest(".controls-scrollLite_content"),r=(null===(e=null==o?void 0:o.children)||void 0===e?void 0:e[0])||null;return r&&((null==o?void 0:o.clientHeight)||0)>window.screen.height?document.scrollingElement:r}return null},e}(0,{}),S=v,b=function(t,e,o,r,l){"use strict";function i(t,e){const o=Math.max(0,t.scrollHeight-t.clientHeight),r=Math.max(0,t.scrollWidth-t.clientWidth);let l=t.scrollTop?o>0&&t.scrollTop<o?"middle":"end":"start";if("start"===l&&(null==e?void 0:e.top))l="middle";const i=t.scrollLeft?r>0&&t.scrollLeft<r?"middle":"end":"start",n={...t,scrollTop:t.scrollTop+((null==e?void 0:e.top)||0),verticalPosition:l,horizontalPosition:i,horizontalScrollMode:"default",canVerticalScroll:t.hasVerticalScroll,canHorizontalScroll:t.hasHorizontalScroll};return{...n,clone:()=>n}}function n(t,e,o,r,l,i){const n=t===document,s=n?window.scrollY:t.scrollTop,c=n?window.scrollX:t.scrollLeft,a=n?document.documentElement.scrollHeight:t.scrollHeight,d=n?document.documentElement.scrollWidth:t.scrollWidth,u=n?window.innerHeight:t.clientHeight,h=n?window.innerWidth:t.clientWidth,f=Math.max(0,a-u),w=Math.max(0,d-h),v=f>0?s/f:0,S=w>0?c/w:0,{sizes:b,shadowVisibility:m}=o,g=a-(b.top||0),p=d-(b.left||0),y=v*(u-g),_=S*(h-p),C=s+((null==i?void 0:i.top)||0);return r.showTopShadow="boolean"==typeof(null==l?void 0:l.showTopShadow)?l.showTopShadow:e.includes("vertical")&&C>0,r.showBottomShadow="boolean"==typeof(null==l?void 0:l.showBottomShadow)?l.showBottomShadow:e.includes("vertical")&&f>0&&s<f,r.showLeftShadow=e.includes("horizontal")&&c>0,r.showRightShadow=e.includes("horizontal")&&w>0&&c<w,{scrollTop:s,scrollLeft:c,scrollHeight:a,scrollWidth:d,clientHeight:u,clientWidth:h,showTopShadow:m.top?!1:r.showTopShadow,showBottomShadow:m.bottom?!1:r.showBottomShadow,showLeftShadow:m.left?!1:r.showLeftShadow,showRightShadow:m.right?!1:r.showRightShadow,scrollbarVerticalHeight:g,scrollbarVerticalStyle:{to
9p:b.top,bottom:b.bottom},scrollbarVerticalTop:y,scrollbarHorizontalWidth:p,scrollbarHorizontalStyle:{left:b.left,right:b.right},scrollbarHorizontalLeft:_,hasVerticalScroll:a>u,hasHorizontalScroll:d>h}}function s(t,e){return t.scrollHeight!==e.scrollHeight||t.scrollWidth!==e.scrollWidth||t.clientHeight!==e.clientHeight||t.clientWidth!==e.clientWidth||t.showTopShadow!==e.showTopShadow||t.showBottomShadow!==e.showBottomShadow||t.showLeftShadow!==e.showLeftShadow||t.showRightShadow!==e.showRightShadow||t.hasVerticalScroll!==e.hasVerticalScroll||t.hasHorizontalScroll!==e.hasHorizontalScroll}var c;Object.defineProperty(e,"__esModule",{value:!0}),e.useScroll=e.useLatest=e.getStickyScrollState=e.DIRECTION=void 0,function(t){t.VERTICAL="vertical",t.HORIZONTAL="horizontal",t.VERTICALHORIZONTAL="verticalhorizontal"}(c||(e.DIRECTION=c={})),e.getStickyScrollState=i,e.useLatest=function(t){const e=(0,o.useRef)(t);return e.current=t,(0,o.useCallback)((()=>{var t;null===(t=e.current)||void 0===t||t.call(e)}),[])};return e.useScroll=({direction:t=c.VERTICAL,shadowType:e="default",scrollbarVisibility:a=!0,isBodyScroll:d=!0,viewportResizeCb:u,onScroll:h,onScrollStateChanged:f})=>{const[w,v]=(0,o.useState)({scrollTop:0,scrollLeft:0,scrollHeight:0,scrollWidth:0,clientHeight:0,clientWidth:0,showTopShadow:!1,showBottomShadow:!1,showLeftShadow:!1,showRightShadow:!1,scrollbarVerticalHeight:0,scrollbarVerticalTop:0,scrollbarHorizontalWidth:0,scrollbarHorizontalLeft:0,hasVerticalScroll:!1,hasHorizontalScroll:!1}),[,S]=(0,o.useState)(0),b=(0,o.useRef)(null),m=(0,o.useRef)(null),g=(0,o.useRef)(w),p=(0,o.useRef)(new Set),y=(0,o.useRef)({showTopShadow:!1,showBottomShadow:!1,showLeftShadow:!1,showRightShadow:!1}),_=(0,o.useRef)({showTopShadow:void 0,showBottomShadow:void 0,showLeftShadow:void 0,showRightShadow:void 0}),C=(0,o.useRef)({sizes:{top:0,bottom:0,left:0,right:0},shadowVisibility:{top:!1,bottom:!1,left:!1,right:!1}}),T=(0,o.useCallback)((()=>d?document:m.current),[]),x=(0,o.useRef)(null),H=(0,o.useRef)(!1),L=(0,o.useRef)({}),z=(0,o.useRef)({}),R=(0,o.useCallback)((t=>{z.current={top:null==t?void 0:t.top,bottom:null==t?void 0:t.bottom}}),[]),k=(0,o.useCallback)((()=>{if(!T())return;const e=n(T(),t,C.current,y.current,_.current,z.current),o=s(g.current,e);if(g.current=e,o)v(e)}),[t]);(0,o.useEffect)((()=>{let t=!1;const e=e=>{if(!t)requestAnimationFrame((()=>{B(e),t=!1})),t=!0};if(d)document.documentElement.style.overflow="auto",document.documentElement.style.height="auto",document.documentElement.style.overflowAnchor="none",document.body.style.overflow="clip",document.body.style.height="auto",document.body.style.maxHeight="unset",window.addEventListener("scroll",e,{passive:!0});return k(),I.init(),I.scrollStateChanged(i(g.current)),()=>{if(I.destroy(),d)window.removeEventListener("scroll",e)}}),[]);const V=(0,o.useRef)({onScroll:h,onScrollStateChanged:f});V.current.onScroll=h,V.current.onScrollStateChanged=f;const B=(0,o.useCallback)((e=>{var o,c,a,u;null===(c=(o=V.current).onScroll)||void 0===c||c.call(o,e);const h=n(T(),t,C.current,y.current,_.current,z.current),f=g.current,w=s(f,h);g.current=h,null===(u=(a=V.current).onScrollStateChanged)||void 0===u||u.call(a,h,f),p.current.forEach((t=>{t(h)}));const{showTopShadow:S,showBottomShadow:b}=y.current;if(I.setShadowVisibility(S?r.ScrollShadowVisibility.Auto:r.ScrollShadowVisibility.Hidden,b?r.ScrollShadowVisibility.Auto:r.ScrollShadowVisibility.Hidden),I.scrollStateChanged(i(h,z.current)),w)v(h);if(d)requestAnimationFrame((()=>{if(document.documentElement.classList.toggle("controls-ScrollLite__shadow-top-visible",h.showTopShadow),!l.detection.isPhone||!l.detection.isMobileIOS)document.documentElement.classList.toggle("controls-ScrollLite__shadow-bottom-visible",h.showBottomShadow)}))}),[]);(0,o.useEffect)((()=>{const t=m.current;if(!T()||!("ResizeObserver"in window))return;const e=()=>{k()};let o=null,r=null;if(!d){o=new ResizeObserver((()=>{k(),null==u||u()})),o.observe(t);r=new MutationObserver((()=>{requestAnimationFrame((()=>{const{scrollHeight:e,scrollWidth:o}=t;if(g.current.scrollHeight!==e||g.current.scrollWidth!==o)k()}))})),r.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","height","width"]})}else window.addEventListener("resize",e);return()=>{null==o||o.disconnect(),null==r||r.disconnect(),window.removeEventListener("resize",e)}}),[k]),(0,o.useEffect)((()=>
9{if(d)return;const t=m.current;if(t)return t.addEventListener("scroll",B,{passive:!0}),k(),()=>{t.removeEventListener("scroll",B)};else return}),[B,k]);const O=(0,o.useCallback)((t=>{_.current.showTopShadow=t.showTopShadow,_.current.showBottomShadow=t.showBottomShadow}),[]),P=(0,o.useCallback)((()=>{if(b.current){let t=0;const e=I.getBlocksSizes(r.StickyPosition.Top,r.TypeFixedBlocks.InitialFixed,!0,!0);if(e.sizes.length)t=e.totalHeight,e.sizes.forEach((e=>{if(e.rect.top>b.current.clientHeight)t-=e.rect.height}));else t=e.totalHeight;C.current.sizes.top=t,C.current.sizes.bottom=I.getBlocksHeight(r.StickyPosition.Bottom,r.TypeFixedBlocks.InitialFixed,!0),I.setShadowVisibility(y.current.showTopShadow?r.ScrollShadowVisibility.Auto:r.ScrollShadowVisibility.Hidden,y.current.showBottomShadow?r.ScrollShadowVisibility.Auto:r.ScrollShadowVisibility.Hidden)}}),[]),I=(0,o.useMemo)((()=>new r._StickyController(((t,e)=>{const o=H.current&&function(t,e){if(!t)return!0;const o=t.models,r=e.models||{},l=Object.keys(o),i=Object.keys(r);if(l.length!==i.length)return!0;else return i.some((t=>{var e,l,i,n,s,c,a,d,u,h,f,w,v,S,b,m,g,p,y,_;const C=o[t],T=r[t];return!C||C.fixedPosition!==T.fixedPosition||(null===(e=C.syntheticFixedPosition)||void 0===e?void 0:e.fixedPosition)!==(null===(l=T.syntheticFixedPosition)||void 0===l?void 0:l.fixedPosition)||(null===(i=C.syntheticFixedPosition)||void 0===i?void 0:i.prevPosition)!==(null===(n=T.syntheticFixedPosition)||void 0===n?void 0:n.prevPosition)||(null===(s=C.shadow)||void 0===s?void 0:s.top)!==(null===(c=T.shadow)||void 0===c?void 0:c.top)||(null===(a=C.shadow)||void 0===a?void 0:a.bottom)!==(null===(d=T.shadow)||void 0===d?void 0:d.bottom)||(null===(u=C.shadow)||void 0===u?void 0:u.left)!==(null===(h=T.shadow)||void 0===h?void 0:h.left)||(null===(f=C.shadow)||void 0===f?void 0:f.right)!==(null===(w=T.shadow)||void 0===w?void 0:w.right)||(null===(v=C.offset)||void 0===v?void 0:v.top)!==(null===(S=T.offset)||void 0===S?void 0:S.top)||(null===(b=C.offset)||void 0===b?void 0:b.bottom)!==(null===(m=T.offset)||void 0===m?void 0:m.bottom)||(null===(g=C.offset)||void 0===g?void 0:g.left)!==(null===(p=T.offset)||void 0===p?void 0:p.left)||(null===(y=C.offset)||void 0===y?void 0:y.right)!==(null===(_=T.offset)||void 0===_?void 0:_.right)}))}(x.current,t);if(x.current=function(t){const e={...t,models:{}};for(const o in t.models)if(t.models.hasOwnProperty(o)){const r=t.models[o];e.models[o]={...r,syntheticFixedPosition:{...r.syntheticFixedPosition},shadow:{...r.shadow},offset:{...r.offset}}}return e}(t),L.current={...e,scrollState:i(g.current,z.current)},o)S((t=>t+1));else H.current=!0}),(()=>{C.current.sizes.top=I.getBlocksHeight(r.StickyPosition.Top,r.TypeFixedBlocks.InitialFixed,!0);const t=t=>I.hasFixed(t)&&I.hasShadowVisible(t);C.current.shadowVisibility.top=t(r.StickyPosition.Top),C.current.shadowVisibility.bottom=t(r.StickyPosition.Bottom),C.current.shadowVisibility.left=t(r.StickyPosition.Left),C.current.shadowVisibility.right=t(r.StickyPosition.Right),requestAnimationFrame((()=>{P(),k()}))}),(()=>{P(),k()}),(t=>{if(d)t.root=null,t.rootMargin=t.rootMargin||"0px",t.threshold=t.threshold||0;return t}))),[]),M=(0,o.useCallback)(((t,e="vertical")=>{const{force:o=!1,offset:r=0,position:l="start"}=t;if(!t.itemContainer)return;const n=d,s=n?document.documentElement:m.current;if(!s)return;let c=t.itemContainer;if("contents"===window.getComputedStyle(t.itemContainer).display)c=t.itemContainer.children[0];const a=c.getBoundingClientRect(),u=n?{left:0,top:0,right:window.innerWidth,bottom:window.innerHeight}:s.getBoundingClientRect(),h="vertical"===e,f=h?"top":"left",w=h?"bottom":"right",v=h?"offsetHeight":"offsetWidth",S=n?h?window.innerHeight:window.innerWidth:s[h?"clientHeight":"clientWidth"],b=n?h?window.scrollY:window.scrollX:s[h?"scrollTop":"scrollLeft"],p=a[f]-u[f],y=a[w]-u[f],_=c[v];if(!o&&(y>r&&p<S-r))return;let C;if("start"===l||h&&"top"===l||!h&&"left"===l)C=b+p-r;else if("center"===l)C=b+p-(S-_)/2-r;else if("end"===l||h&&"bottom"===l||!h&&"right"===l)C=b+y-S+_-r;else{const t=S-y;C=b+(p<t?p:-t)-r}if(h){C-=Math.round(I.getFixedBlocksHeightByScrollTop(C))||0}if(n)window.scrollTo({[h?"top":"left"]:C,behavior:"instant"});else s.scrollTo({[h?"top":"left"]:C,behavior:"instant"});if(h)I.scrollStateChanged(i({...g.current,scrollTop:C},z.current))}),[]);return{scrollToElement:M,addScrollListener:(0,o.useCallback)((t=>{p.current.add(t)}),[]),removeScrollListener:(0,o.useCallback)((t=>{p.current.delete(t)}),[]),containerRef:b,contentRef:m,scrollState:w,scrollStateRef:g,shadowType:e,scrollbarVisibility:a,direction:t,updateScrollState:k,stickyController:I,stickyModelsContext:x.current,stickyGroupModelsContext:L.current,updateShadowVisibility:O,setPlaceholders:R}},e}(0,{},e,s,n),m=b,g=function(t,e,o){"use strict";function r(t,e,o){return`linear-gradient(${t}, ${e?"transparent":"#000"} 0, #000 ${e?"25px":"0px"}, #000 calc(100% - ${o?"25px":"0px"}), ${o?"transparent":"#000"} 100%)`}function l(t,e){if(e===i.AUTO||void 0===e)return t;else return e===i.VISIBLE}
9Object.defineProperty(e,"__esModule",{value:!0}),e.useBlurShadow=e.isShadowVisible=e.SHADOW_VISIBILITY=void 0;var i;return function(t){t.HIDDEN="hidden",t.VISIBLE="visible",t.AUTO="auto"}(i||(e.SHADOW_VISIBILITY=i={})),e.isShadowVisible=l,e.useBlurShadow=function(t,e,i){return(0,o.useMemo)((()=>{if("blur"!==e)return{};const o=[];if(t.top||t.bottom)o.push(r("to bottom",l(t.top,null==i?void 0:i.top),l(t.bottom,null==i?void 0:i.bottom)));if(t.left||t.right)o.push(r("to right",l(t.left,null==i?void 0:i.left),l(t.right,null==i?void 0:i.right)));if(0===o.length)return{};const n={WebkitMaskImage:o.join(", "),maskImage:o.join(", "),WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat"};if(o.length>1)n.WebkitMaskComposite="source-in",n.maskComposite="intersect";return n}),[t.top,t.left,t.bottom,t.right,e])},e}(0,{},e),p=g,y=function(t,e,o,r,l){"use strict";function i(t,e,o,r){return(0,l.clsx)([n,`${n}_${t}${"rounded"===o?"-rounded":""}`,`${n}-${e}`,`${n}-${e}_style-${o}`,r&&`${n}-visible`])}Object.defineProperty(e,"__esModule",{value:!0}),e.Shadow=void 0;const n="controls-ScrollLite__shadow";return e.Shadow=function({type:t="default",top:e,left:l,right:n,bottom:s,shadowVisibility:c}){if("none"===t||"blur"===t)return null;else return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:i("horizontal","top",t,(0,r.isShadowVisible)(!!e,null==c?void 0:c.top)),"data-qa":"Scroll__shadow_top","aria-hidden":"true"}),(0,o.jsx)("div",{className:i("horizontal","bottom",t,(0,r.isShadowVisible)(!!s,null==c?void 0:c.bottom)),"data-qa":"Scroll__shadow_bottom","aria-hidden":"true"}),(0,o.jsx)("div",{className:i("vertical","left",t,(0,r.isShadowVisible)(!!l,null==c?void 0:c.left)),"data-qa":"Scroll__shadow_left","aria-hidden":"true"}),(0,o.jsx)("div",{className:i("vertical","right",t,(0,r.isShadowVisible)(!!n,null==c?void 0:c.right)),"data-qa":"Scroll__shadow_right","aria-hidden":"true"})]})},e}(0,{},t,g,o),_=function(t,e,o,r,l,i,n,s,c,a,d,u,h,f,w,v){"use strict";function S(t,e,o,r,l){let i=e.current;if(!t||!i||!t.contains(i))i=null==t?void 0:t.querySelector(`.controls-VScrollbar__thumbWrapper_${o}`),e.current=i;if(!t||!i)return;const n=v.DimensionsMeasurer.getBoundingClientRect(t),s=v.DimensionsMeasurer.getBoundingClientRect(i),c="vertical"===o?n.height:n.width,a=l-c,d=c-("vertical"===o?s.height:s.width),u=a>0&&d>0?Math.max(0,Math.min(r*d/a,d)):0;i.style.transform=`translate${"vertical"===o?"Y":"X"}(${u}px)`}Object.defineProperty(e,"__esModule",{value:!0}),e.Scroll=void 0;const b=(0,f.lazy)((()=>(0,f.importer)("Controls/scrollbar:Scrollbar"))),m=(0,r.forwardRef)((function(t,e){const{direction:f=l.DIRECTION.VERTICAL,shadowType:v="default",scrollbarVisibility:m=!0,shadowVisibility:g,useBodyScroll:p=!1,className:y,style:_}=t,C=f.includes("vertical"),T=f.includes("horizontal"),x=(0,d.useAdaptiveMode)().device.isPhone(),H=!x&&m,[L,z]=(0,r.useState)(!1),[R,k]=(0,r.useState)({start:0,end:0,size:0}),[V,B]=(0,r.useState)({start:0,end:0,size:0}),O=(0,r.useRef)({vertical:R,horizontal:V});O.current.vertical=R,O.current.horizontal=V;const P=(0,r.useRef)(null),I=(0,r.useRef)(null),M=(0,r.useRef)(null),E=(0,r.useRef)(null),W=(0,r.useRef)(t.onScrollStateChanged);W.current=t.onScrollStateChanged;const j=(0,r.useCallback)((t=>{S(P.current,M,"vertical",t.scrollTop+O.current.vertical.start,t.scrollbarVerticalHeight+O.current.vertical.size),S(I.current,E,"horizontal",t.scrollLeft+O.current.horizontal.start,t.scrollbarHorizontalWidth+O.current.horizontal.size)}),[]),A=(0,r.useCallback)(((t,e)=>{var o;j(t),null===(o=W.current)||void 0===o||o.call(W,t,e)}),[j]),{containerRef:$,contentRef:F,scrollState:N,scrollStateRef:D,shadowType:q,stickyModelsContext:Y,stickyGroupModelsContext:U,updateScrollState:G,updateShadowVisibility:K,scrollToElement:X,addScrollListener:Q,removeScrollListener:Z,setPlaceholders:J,stickyController:tt}=(0,l.useScroll)({direction:f,shadowType:v,scrollbarVisibility:m,isBodyScroll:p&&x,viewportResizeCb:(0,l.useLatest)(t.onViewportResize),onScroll:t.onScroll,onScrollStateChanged:A}),et=(0,u.useTheme)(t),[ot,rt]=(0,r.useState)(!1),lt=(0,r.useMemo)((()=>{const t=(t,e="vertical",o)=>{const r=F.current;if(!r)return;const l="vertical"===e;let i;if("string"==typeof t){const e=D.current,o=l?e.scrollTop:e.scrollLeft,r=l?e.clientHeight:e.clientWidth,n=l?e.scrollHeight:e.scrollWidth,c=l?tt.getBlocksHeight(s.StickyPosition.Top,s.TypeFixedBlocks.AllFixed,!0):0;switch(t){case"top":i=0;break;case"bottom":i=n-r;break;case"pageUp":i=o-r+c;break;default:i=o+r-c}}else i=t;if(p&&x)window.scrollTo({[l?"top":"left"]:i,behavior:o?"smooth":"instant"});else r.scrollTo({[l?"top":"left"]:i,behavior:o?"smooth":"instant"}),G()};return{scrollToTop:(e=!1)=>{t(0,"vertical",e)},scrollToLeft:(e=!1)=>{t(0,"horizontal",e)},scrollToBottom:(e=!1)=>
9{if(F.current)t(F.current.scrollHeight-F.current.clientHeight,"vertical",e)},scrollToRight:(e=!1)=>{if(F.current)t(F.current.scrollWidth-F.current.clientWidth,"horizontal",e)},scrollTo:t,isHorizontalScroll:()=>{var t,e;if(!F.current)return!1;else return(null===(t=F.current)||void 0===t?void 0:t.clientWidth)<(null===(e=F.current)||void 0===e?void 0:e.scrollWidth)},container:$.current,getContainer:()=>$.current}}),[$,F,D,G,tt,p,x]),it=(0,r.useMemo)((()=>new h.StickyResizeObserver),[]),nt=(0,r.useMemo)((()=>({scrollTo:lt.scrollTo,scrollToBottom:lt.scrollToBottom,scrollToTop:lt.scrollToTop,scrollToLeft:lt.scrollToLeft,scrollToRight:lt.scrollToRight,scrollToElement:X,addScrollListener:Q,removeScrollListener:Z,updatePlaceholdersSize:t=>{if(t){if(J(t),void 0!==t.top||void 0!==t.bottom)k({start:t.top||0,end:t.bottom||0,size:(t.top||0)+(t.bottom||0)});if(void 0!==t.left||void 0!==t.right)B({start:t.left||0,end:t.right||0,size:(t.left||0)+(t.right||0)})}},updateShadowVisibility:t=>{K({showTopShadow:"visible"===t.top?!0:void 0,showBottomShadow:"visible"===t.bottom?!0:void 0})},registerObserver:t=>{if(p&&x)null==it||it.register(null,t);else{const e=()=>{null==it||it.register($.current,t)};if($.current)e();else requestAnimationFrame((()=>{if($.current)e()}))}},unregisterObserver:(t,e)=>{null==it||it.unregister(t,e)},getViewportRect:()=>{var t;if(p&&x)return(null===window||void 0===window?void 0:window.visualViewport)||{};else return(null===(t=$.current)||void 0===t?void 0:t.getBoundingClientRect())||{}},getStickyHeadersHeight:tt.getBlocksHeight.bind(tt)})),[lt,X,J,Q,Z,k,B,$,K]),st=(0,r.useMemo)((()=>({actions:nt,get scrollTop(){return D.current.scrollTop},get scrollLeft(){return D.current.scrollLeft},scrollWidth:N.scrollWidth,scrollHeight:N.scrollHeight,clientWidth:N.clientWidth,clientHeight:N.clientHeight,hasHorizontalScroll:N.hasHorizontalScroll,hasVerticalScroll:N.hasVerticalScroll})),[nt,D,N.scrollWidth,N.scrollHeight,N.clientWidth,N.clientHeight,N.hasHorizontalScroll,N.hasVerticalScroll]),ct=(0,r.useCallback)(((t,e)=>{rt(e)}),[rt]),at=(0,r.useCallback)(((t,e)=>{var o;if(F.current)F.current.scrollTop=e-((null===(o=O.current.vertical)||void 0===o?void 0:o.start)||0)}),[F,O]),dt=(0,r.useCallback)(((t,e)=>{var o;if(F.current)F.current.scrollLeft=e-((null===(o=O.current.horizontal)||void 0===o?void 0:o.start)||0)}),[F,O]),ut=(0,r.useMemo)((()=>({end:N.hasVerticalScroll&&N.hasHorizontalScroll&&T&&C,start:!1})),[N.hasVerticalScroll,N.hasHorizontalScroll,T,C]);(0,r.useImperativeHandle)(e,(()=>lt));const ht=(0,a.clsx)("controls-Scroll controls-scrollLite_container",`controls_scroll_theme-${et}`,p&&x&&"controls-scrollLite_container_bodyScroll",y),ft=(0,a.clsx)("controls-scrollLite_content",`controls-scrollLite_content_direction-${f}`,p&&x&&"controls-scrollLite_content_bodyScroll");(0,r.useEffect)((()=>()=>{null==it||it.destroy()}),[]);const wt=(0,r.useCallback)((e=>{if($.current=e,e)e._scrollLiteApi=lt;if(t.forwardedRef)if("function"==typeof t.forwardedRef)t.forwardedRef(e);else t.forwardedRef.current=e}),[lt]),vt=(0,r.useCallback)((()=>{if(!L)z(!0)}),[L]),St=D.current;return(0,o.jsxs)("div",{ref:wt,className:ht,style:_,"data-qa":t.dataQa,children:[(0,o.jsx)("div",{ref:F,className:ft,"data-qa":"controls-Scroll__content",style:(0,i.useBlurShadow)({top:N.showTopShadow,bottom:N.showBottomShadow,left:N.showLeftShadow,right:N.showRightShadow},q,g),onMouseMove:vt,children:(0,o.jsx)(s.StickyContext.Provider,{value:Y,children:(0,o.jsx)(s._StickyGroupContext.Provider,{value:U,children:(0,o.jsx)(c.Context.Provider,{value:st,children:t.children})})})}),L&&"buttons"!==t.scrollMode&&C&&H&&N.hasVerticalScroll&&(0,o.jsx)(b,{ref:P,direction:"vertical",className:ot?"":"controls-ScrollLite__scrollbar_hidden",contentSize:St.scrollbarVerticalHeight+R.size,position:(St.scrollTop||St.scrollbarVerticalTop)+R.start,style:St.scrollbarVerticalStyle,onPositionChanged:at,onDraggingChanged:ct,paddings:ut}),L&&"buttons"!==t.scrollMode&&T&&H&&N.hasHorizontalScroll&&(0,o.jsx)(b,{ref:I,direction:"horizontal",className:ot?"":"controls-ScrollLite__scrollbar_hidden",contentSize:St.scrollbarHorizontalWidth+V.size,position:(St.scrollLeft||St.scrollbarHorizontalLeft)+V.start,style:St.scrollbarHorizontalStyle,onPositionChanged:dt,onDraggingChanged:ct,paddings:ut}),(0,o.jsx)(n.Shadow,{top:N.showTopShadow,left:N.showLeftShadow,bottom:N.showBottomShadow,right:N.showRightShadow,type:q,shadowVisibility:g}),"buttons"===t.scrollMode&&(0,o.jsx)(w.Buttons,{top:N.showTopShadow,left:N.showLeftShadow,bottom:N.showBottomShadow,right:N.showRightShadow,scrollTo:lt.scrollTo,scrollRef:F})]})}));return e.Scroll=m,m.displayName="Controls/scrollLite:Scroll",e}(0,{},t,e,b,g,y,s,h,o,i,r,w,l,u,c,"undefined"==typeof css_Controls_scrollLite||css_Controls_scrollLite),C=_,d.getScrollC
9ontentElement=d.SHADOW_VISIBILITY=d.DIRECTION=d.useScroll=d.ContextProvider=d.ContextConsumer=d.Context=d.Scroll=void 0,Object.defineProperty(d,"Scroll",{enumerable:!0,get:function(){return C.Scroll}}),Object.defineProperty(d,"Context",{enumerable:!0,get:function(){return f.Context}}),Object.defineProperty(d,"ContextConsumer",{enumerable:!0,get:function(){return f.ContextConsumer}}),Object.defineProperty(d,"ContextProvider",{enumerable:!0,get:function(){return f.ContextProvider}}),Object.defineProperty(d,"useScroll",{enumerable:!0,get:function(){return m.useScroll}}),Object.defineProperty(d,"DIRECTION",{enumerable:!0,get:function(){return m.DIRECTION}}),Object.defineProperty(d,"SHADOW_VISIBILITY",{enumerable:!0,get:function(){return p.SHADOW_VISIBILITY}}),Object.defineProperty(d,"getScrollContentElement",{enumerable:!0,get:function(){return S.getScrollContentElement}}),d}));
10define("Controls/stickyBlock",["react/jsx-runtime","react","UICore/Jsx","UICommon/Utils","UI/Utils","UI/NodeCollector","UI/Base","Types/util","Types/function","Env/Env","Core/core-simpleExtend","Controls/sizeUtils","Controls/hooks","Compiler/IR","require","exports","css!Controls/stickyBlock"],(function(t,e,i,o,s,n,r,l,c,d,a,f,h,u,k,p){var b,g,y,_,S,v,m,x,P,C,B,O,w,F,T,R,I,M,z,L,V,N,H,E,j,G,D,W,A,Y,J,U,$,K,Z;return Object.defineProperty(p,"__esModule",{value:!0}),b=function(t,e,i){"use strict";function o(){let t=!1;if(i.detection.isMobilePlatform){if(!i.detection.isMobileAndroid)t=!0}else if(-1!==n.indexOf(window?Math.round(100*window.devicePixelRatio)/100:1))t=!0;return t}function s(t="default"){let e="";if(o())e=`controls-StickyBlock__topGapFix-${t}`;return e}Object.defineProperty(e,"__esModule",{value:!0}),e.updatePixelRatioBugFixClass=e.getPixelRatioBugFixClass=e.isPixelRatioBugPossible=void 0;const n=[.75,.9,1.25,1.75];return e.isPixelRatioBugPossible=o,e.getPixelRatioBugFixClass=s,e.updatePixelRatioBugFixClass=function(t,e="default",i=!0){if(i){const i=s(e);if(t._pixelRatioBugFixClass!==i)t._pixelRatioBugFixClass=i}},e}(0,{},d),g=function(t,e){"use strict";function i(t){return`controls-StickyBlock__subpixelFix-${t}`}return Object.defineProperty(e,"__esModule",{value:!0}),e.updateSubPixelArtifactBugFixClass=e.getSubPixelArtifactBugFixClass=void 0,e.getSubPixelArtifactBugFixClass=i,e.updateSubPixelArtifactBugFixClass=function(t,e,o){let s="";if(o)s=i(e);if(t._subPixelArtifactBugFixClass!==s)t._subPixelArtifactBugFixClass=s},e}(0,{}),y=function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=new class{constructor(){this._measures=[],this._mutates=[],this._stickyContainersForReset=[],this._isInvalid=!1}resetSticky(t){t.forEach((t=>{if(!this._stickyContainersForReset.find((e=>e.container===t)))this._stickyContainersForReset.push({container:t})}))}measure(t){return this._measures.push(t),this._invalidateMutations()}mutate(t){return this._mutates.push(t),this._invalidateMutations()}_invalidateMutations(){if(!this._isInvalid)this._isInvalid=!0,this._promise=Promise.resolve().then(this._applyMutations.bind(this));return this._promise}_applyMutations(){this._resetSticky(),this._runTasks(this._measures),this._restoreSticky(),this._runTasks(this._mutates),this._isInvalid=!1}_runTasks(t){let e;for(;e=t.shift();)e()}_resetSticky(){for(const t of this._stickyContainersForReset)t.container.style.position="relative",this._resetPosition(t)}_resetPosition(t){for(const e of["top","bottom","left","right"])t[e]=t.container.style[e],t.container.style[e]=""}_restoreSticky(){for(const t of this._stickyContainersForReset)t.container.style.position="",this._restorePosition(t);this._stickyContainersForReset=[]}_restorePosition(t){for(const e of["top","bottom","left","right"])if(!t.container.style[e])t.container.style[e]=t[e]}};return e.default=i,e}(0,{}),_=function(t,e,i,o){"use strict";return o.extend({_intersection:null,_fixedPosition:"",_intersectingBottomLeft:null,_intersectingBottomRight:null,_intersectingTop2:null,_intersectingTop2Right:null,_setFixedPositionCallback:null,get fixedPosition(){return this._fixedPosition},set fixedPosition(t){this._fixedPosition=t,this._setFixedPositionCallback(t)},isFixed(){return!!this._fixedPosition},constructor:function(t){this._intersection={top2:!0},this._topTarget=t.topTarget,this._top2Target=t.top2Target,this._top2RightTarget=t.top2RightTarget,this._bottomLeftTarget=t.bottomLeftTarget,this._bottomRightTarget=t.bottomRightTarget,this._rightTarget=t.rightTarget,this._leftTarget=t.leftTarget,this._position=t.position,this._setFixedPositionCallback=t.setFixedPositionCallback,this._updateStateIntersection=this._updateStateIntersection.bind(this)},update(t){t.forEach((t=>{if(t.target===this._bottomLeftTarget)this._intersectingBottomLeft=t.isIntersecting;if(t.target===this._bottomRightTarget)this._intersectingBottomRight=t.isIntersecting;if(t.target===this._top2Target)this._intersectingTop2=t.isIntersecting;if(t.target===this._top2RightTarget)this._intersectingTop2Right=t.isIntersecting})),t.forEach((t=>{this._updateStateIntersection(t)})),this._fixedPosition=this._getFixedPosition(),this._setFixedPositionCallback(this._fixedPosition)},destroy(){this._updateStateIntersection=void 0},_updateStateIntersection(t){const e=this._getTarget(t);let i=t.isIntersecting;if("bottom"===e)i=this._intersectingBottomLeft||this._intersectingBottomRight;if("top2"===e)i=this._intersectingTop2||this._intersectingTop2Right;this._intersection[e]=i},_getTarget(t){switch(t.target){case this._topTarget:return"top";case this._top2Target:case this._top2RightTarget:return"top2";case this._bottomLeftTarget:case this._bottomRightTarget:return"bottom";case this._leftTarget:return"left";case this._rightTarget:return"right";default:return i.Logger.error("Controls/_stickyBlock/Model: Unexpected target"),"bottom"}},_getFixedPosition(){var t,e,i,o;let s="",n=!1;if(this._position.vertical&&-1!==(null===(t=this._position.vertical)||void 0===t?void 0:t.indexOf("top"))&&!this._intersection.top&&this._intersection.top2&&this._intersection.bottom)s="top",n=!0;else if(this._position.vertical&&-1!==(null===(e=this._position.vertical)||void 0===e?void 0:e.toLowerCase().indexOf("bottom"))&&!this._intersection.bottom&&this._intersection.top)s="bottom",n=!0;if(this._position.horizontal&&-1!==(null===(i=this._position.horizontal)||void 0===i?void 0:i.indexOf("left"))&&!this._intersection.left&&this._intersection.right)s+=n?"Left":"left";else if(this._position.horizontal&&-1!==(null===(o=this._position.horizontal)||void 0===o?void 0:o.toLowerCase().indexOf("right"))&&!this._intersection.right&&this._intersection.left)s+=n?"Right":"right";return s}})}
10(0,0,s,a),S=function(t,e,i){"use strict";return Object.defineProperty(e,"__esModule",{value:!0}),e.StickyGroupContext=e.StickyContext=void 0,e.StickyContext=(0,i.createContext)({models:void 0,horizontalScrollMode:void 0,modeChangedCallback:(t,e)=>0,offsetChangedCallback:(t,e)=>0,registerCallback:t=>0,unregisterCallback:t=>0}),e.StickyGroupContext=(0,i.createContext)({scrollState:void 0,groupSizeChangedCallback:(t,e)=>0,addedBlockInGroupCallback:()=>0,removedBlockInGroupCallback:()=>0,modeChangedCallback:(t,e)=>0,offsetChangedCallback:(t,e)=>0,registerCallback:t=>0,unregisterCallback:t=>0,groupChangeFixedPositionCallback:(t,e)=>0}),e}(0,{},e),v=S,m=function(t,e,i,o){"use strict";return Object.defineProperty(e,"__esModule",{value:!0}),e.default=o.memo((function({isVisible:t,orientation:e,position:o,shadowStyle:s,shadowMode:n}){return(0,i.jsx)("div",{"data-qa":`StickyHeader__shadow-${o}`,className:(()=>{if("cornerRounded"===n)return`controls-StickyHeader__shadow-cornerRounded controls-StickyHeader__shadow-cornerRounded_${o}`;if("rounded"===n)return`controls-StickyHeader__shadow-rounded controls-StickyHeader__shadow-rounded_${e} controls-StickyHeader__shadow-rounded_${o}`;else return`controls-Scroll__shadow controls-StickyHeader__shadow-${o} controls-StickyHeader__shadow-${o}_${s} controls-Scroll__shadow_${e}`})()+(t=>!t?" tw-hidden-important":"")(t)})})),e}(0,{},t,e,"undefined"==typeof css_Controls_stickyBlock||css_Controls_stickyBlock),x=function(t,e,i,o){"use strict";var s,n,r,l,c,d;Object.defineProperty(e,"__esModule",{value:!0}),e.isHidden=e.getOffset=e._lastId=e.getNextId=e.isStickySupport=e.MODE=e.TYPE_FIXED_HEADERS=e.SHADOW_VISIBILITY=e.StickyHorizontalPosition=e.StickyVerticalPosition=e.POSITION=void 0;let a=0;return function(t){t.top="top",t.bottom="bottom",t.left="left",t.right="right",t.none=""}(s||(e.POSITION=s={})),function(t){t.top="top",t.bottom="bottom",t.topBottom="topBottom"}(n||(e.StickyVerticalPosition=n={})),function(t){t.left="left",t.right="right",t.leftRight="leftRight"}(r||(e.StickyHorizontalPosition=r={})),function(t){t.visible="visible",t.hidden="hidden",t.lastVisible="lastVisible",t.initial="initial"}(l||(e.SHADOW_VISIBILITY=l={})),function(t){t.initialFixed="initialFixed",t.fixed="fixed",t.allFixed="allFixed"}(c||(e.TYPE_FIXED_HEADERS=c={})),function(t){t.stackable="stackable",t.replaceable="replaceable",t.notsticky="notsticky"}(d||(e.MODE=d={})),e.isStickySupport=function(){return!i.detection.isIE||i.detection.IEVersion>15},e.getNextId=function(){return(a++).toString()},e._lastId=function(){return a-1},e.getOffset=function(t,e,i,s){if(t=t&&t.get?t.get(0):t,e=e&&e.get?e.get(0):e,!t||!e)return 0;const n=(0,o.getDimensions)(e),r=(0,o.getDimensions)(t,null,s);if("top"===i)return n.top-r.top;else if("bottom"===i)return r.bottom-n.bottom;else if("left"===i)return n.left-r.left;else return r.right-n.right},e.isHidden=function(t,e=!1){if(!t)return!1;if(e){const e=(0,o.getDimensions)(t);return 0===e.height&&0===e.width}else return!!t.closest(".tw-hidden-important")},e}(0,{},d,f),P=x,C=function(t,e){"use strict";var i,o,s,n,r,l,c,d,a,f,h,u;return Object.defineProperty(e,"__esModule",{value:!0}),e.ScrollPosition=e.FixedPosition=e.ScrollShadowVisibility=e.StickyGroupMode=e.Mode=e.StickyShadowVisibility=e.StickyOrientation=e.StickyPosition=e.StickyHorizontalPosition=e.StickyVerticalPosition=e.StackOperation=e.TypeFixedBlocks=void 0,function(t){t.InitialFixed="initialFixed",t.Fixed="fixed",t.AllFixed="allFixed"}(i||(e.TypeFixedBlocks=i={})),function(t){t.Add="add",t.Remove="remove",t.None=""}(o||(e.StackOperation=o={})),function(t){t.Top="top",t.Bottom="bottom",t.TopBottom="topBottom"}(s||(e.StickyVerticalPosition=s={})),function(t){t.Left="left",t.Right="right",t.LeftRight="leftRight"}(n||(e.StickyHorizontalPosition=n={})),function(t){t.Top="top",t.Bottom="bottom",t.Left="left",t.Right="right"}(r||(e.StickyPosition=r={})),function(t){t.Horizontal="horizontal",t.Vertical="vertical"}(l||(e.StickyOrientation=l={})),function(t){t.Visible="visible",t.Hidden="hidden",t.Initial="initial"}(c||(e.StickyShadowVisibility=c={})),function(t){t.Replaceable="replaceable",t.Stackable="stackable",t.Dynamic="dynamic",t.NotSticky="notsticky"}(d||(e.Mode=d={})),function(t){t.Replaceable="replaceable",t.Dynamic="dynamic",t.Stackable="stackable"}(a||(e.StickyGroupMode=a={})),function(t){t.Hidden="hidden",t.Visible="visible",t.Auto="auto",t.Gridauto="gridauto"}(f||(e.ScrollShadowVisibility=f={})),function(t){t.Top="top",t.Bottom="bottom",t.Left="left",t.Right="right",t.TopLeft="topLeft",t.TopRight="topRight",t.BottomLeft="bottomLeft",t.BottomRight="bottomRight",t.None=""}(h||(e.FixedPosition=h={})),function(t){t.Start="start",t.End="end",t.Middle="middle"}(u||(e.ScrollPosition=u={})),e}(0,{}
10),B=C,O=function(t,e,i,o,s,n){"use strict";function r(){if(null===window||void 0===window?void 0:window.devicePixelRatio)return window.devicePixelRatio;else return 1}function l(t,e){if(!u[e])u[e]=getComputedStyle(t[e].stickyRef.current).display;return u[e]}function c(t){for(let e=0;e<t.children.length;e++)t.children[e].style.position="relative"}function d(t){for(let e=0;e<t.children.length;e++)t.children[e].style.position=""}function a(t,e){h[t]={};for(const o of[i.StickyPosition.Top,i.StickyPosition.Bottom,i.StickyPosition.Left,i.StickyPosition.Right]){let i,s;if("contents"===l(e,t))s=e[t].stickyRef.current.children[0],i=s.style[o];else s=e[t].stickyRef.current,i=s.style[o];h[t][o]=i,s.style[o]=""}}function f(t,e){for(const o of[i.StickyPosition.Top,i.StickyPosition.Bottom,i.StickyPosition.Left,i.StickyPosition.Right])if("contents"===l(e,t))e[t].stickyRef.current.children[0].style[o]=h[t][o];else e[t].stickyRef.current.style[o]=h[t][o]}Object.defineProperty(e,"__esModule",{value:!0}),e.getOffsetObjectByContainer=e.getOffsetByContainer=e.restoreSticky=e.resetSticky=e.removeSticky=e.getDevicePixelRatio=e.getStickyBlockIdFromNode=e.getStickyBlockHeight=e.getOppositePosition=e.getGeneralParentNode=void 0,e.getGeneralParentNode=function(t,e){const i=(t,e)=>{let i=t.parentElement;const o=e.parentElement;for(;i!==o&&i!==document.body;)i=i.parentElement;if(i===document.body){const o=t.closest(".controls-StickyHeader__isolatedGroup"),s=e.closest(".controls-StickyHeader__isolatedGroup");if(null!==o&&null!==s&&o===s)i=o}return i};let o=i(t,e);if(o===document.body)o=i(e,t);return o},e.getOppositePosition=function(t){switch(t){case i.StickyPosition.Top:return i.StickyPosition.Bottom;case i.StickyPosition.Bottom:return i.StickyPosition.Top;case i.StickyPosition.Left:return i.StickyPosition.Right;case i.StickyPosition.Right:return i.StickyPosition.Left}},e.getStickyBlockHeight=function(t){let e;if(!(0,o.isHidden)(t)){if("contents"===getComputedStyle(t).display){if(t.closest(".controls-StickyBlock-multilineGroup")){const i=t.children[0];e=t.children[t.childElementCount-1].getBoundingClientRect().bottom-i.getBoundingClientRect().top}else e=t.children[0].clientHeight}else e=(0,n.getDimensions)(t).height;if(s.detection.isWin)e-=Math.abs(1-r())}return e||0},e.getStickyBlockIdFromNode=function(t){return t.getAttribute("data-stickyBlockId")},e.getDevicePixelRatio=r;let h={};const u={};return e.removeSticky=function(t){delete u[t]},e.resetSticky=function(t){for(const e in t)if(t.hasOwnProperty(e)){if("contents"===l(t,e))c(t[e].stickyRef.current);else t[e].stickyRef.current.style.position="relative";a(e,t)}},e.restoreSticky=function(t){if(!!Object.keys(h).length){for(const e in t)if(t.hasOwnProperty(e)){if("contents"===l(t,e))d(t[e].stickyRef.current);else t[e].stickyRef.current.style.position="";f(e,t)}h={}}},e.getOffsetByContainer=function(t,e,i,s){return(0,o.getOffset)(i,t,e,s)},e.getOffsetObjectByContainer=function(t,e,i,o){if(!i||!t)return{top:0,left:0,bottom:0,right:0};const s=(0,n.getDimensions)(t),r=(0,n.getDimensions)(i,null,o);return{top:s.top-r.top,left:s.left-r.left,right:r.right-s.right,bottom:r.bottom-s.bottom}},e}(0,{},C,x,d,f),w=function(t,e,i){"use strict";return Object.defineProperty(e,"__esModule",{value:!0}),e.getDecomposedPositionFromString=e.getDecomposedPosition=void 0,e.getDecomposedPosition=function(t){const e=[];switch(t.vertical){case"top":case"bottom":e.push(t.vertical);break;case"topBottom":e.push("top"),e.push("bottom")}switch(t.horizontal){case"left":case"right":e.push(t.horizontal);break;case"leftRight":e.push("left"),e.push("right")}return e},e.getDecomposedPositionFromString=function(t){const e=[];for(const o of[i.POSITION.left,i.POSITION.right,i.POSITION.top,i.POSITION.bottom])if(-1!==t.toLowerCase().indexOf(o))e.push(o);return e},e}(0,{},x),F=function(t,e,i,o){"use strict";function s(t,e){const o=t.closest(".controls-Scroll");if(!o)return null;return(0,i.goUpByControlTree)(o).find((t=>t._moduleName===e))}Object.defineProperty(e,"__esModule",{value:!0}),e.getHeadersWidth=e.getHeadersHeight=void 0;
10return e.getHeadersHeight=function(t,e,i=o.TypeFixedBlocks.InitialFixed){const n=s(t,"Controls/scroll:Container");if(!n)return 0;else return n.getHeadersHeight(e,i)},e.getHeadersWidth=function(t,e,i=o.TypeFixedBlocks.InitialFixed){const n=s(t,"Controls/_scroll/Container");if(!n)return 0;else return n.getHeadersWidth(e,i)},e}(0,{},n,C),T=F,R=function(t,e,i){"use strict";return Object.defineProperty(e,"__esModule",{value:!0}),e.EMPTY_STICKY_GROUPED_MODEL=e.EMPTY_STICKY_MODEL=e.CONTENT_CLASS=void 0,e.CONTENT_CLASS="controls-StickyBlock__content",e.EMPTY_STICKY_MODEL={offset:{top:void 0,bottom:void 0,left:void 0,right:void 0},shadow:{top:void 0,bottom:void 0,left:void 0,right:void 0},fixedPosition:i.FixedPosition.None,syntheticFixedPosition:{fixedPosition:i.FixedPosition.None,prevPosition:i.FixedPosition.None}},e.EMPTY_STICKY_GROUPED_MODEL={...e.EMPTY_STICKY_MODEL,shadow:{top:void 0,bottom:void 0,left:void 0,right:!1}},e}(0,{},C),I=function(t,e,i,o,s,n,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});return e.default=class{constructor(){this._blocks={},this._blocksStack={top:[],bottom:[],left:[],right:[]}}getStack(){return this._blocksStack}getBlocks(){return{...this._blocks}}add(t){var e;this._blocks[t.id]={...t};const o={vertical:t.groupData?null===(e=t.groupData)||void 0===e?void 0:e.position:t.props.position,horizontal:t.groupData?t.props.position:void 0};if(!t.isGroup)this._blocks[t.id].model=new n({topTarget:t.observers.observerTop.current,top2Target:t.observers.observerTop2.current,top2RightTarget:t.observers.observerTop2Right.current,bottomLeftTarget:t.observers.observerBottomLeft.current,bottomRightTarget:t.observers.observerBottomRight.current,leftTarget:t.observers.observerLeft.current,rightTarget:t.observers.observerRight.current,position:o,setFixedPositionCallback:()=>0});this._blocks[t.id].fixedPosition=i.FixedPosition.None}remove(t){delete this._blocks[t]}get(t){return this._blocks[t]}addToStack(t,e){if(!this._blocks[t])return!1;if(this.inStack(t))return!0;if((0,s.isHidden)(this._blocks[t].stickyRef.current,!0))return!1;const n=(0,o.getDecomposedPositionFromString)(this._blocks[t].props.position);for(const t of n)this._blocksStack[t].forEach((t=>{if((0,s.isHidden)(this._blocks[t].stickyRef.current))this.removeFromStack(t)}));for(const o of n){const n=this._blocksStack[o],l=(0,r.getOffsetByContainer)(this._blocks[t].stickyRef.current,o,e),c=this._blocks[t].stickyRef.current.getBoundingClientRect()[o===i.StickyPosition.Left||o===i.StickyPosition.Right?"width":"height"];let d=n.findIndex((t=>{const i=!(0,s.isHidden)(this._blocks[t].stickyRef.current);let n;if(i)n=(0,r.getOffsetByContainer)(this._blocks[t].stickyRef.current,o,e);return i&&(n>l||n===l&&0===c)}));d=-1===d?n.length:d,n.splice(d,0,t)}return!0}removeFromStack(t){let e=!1;for(const i of Object.keys(this._blocksStack)){const o=this._blocksStack[i].indexOf(t);if(-1!==o)this._blocksStack[i].splice(o,1),e=!0}return e}getFixedStack(){const t={top:[],bottom:[],left:[],right:[]};for(const e in this._blocks)if(this._blocks.hasOwnProperty(e))if(this._blocks[e].fixedPosition!==i.FixedPosition.None){(0,o.getDecomposedPositionFromString)(this._blocks[e].fixedPosition).forEach((i=>{t[i].push(e)}))}return t}inStack(t){const e=(0,o.getDecomposedPositionFromString)(this._blocks[t].props.position);for(const i of e)if(this._blocksStack[i].includes(t))return!0;return!1}},e}(0,{},C,w,x,_,O),M=function(t,e,i,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StickyIntersectionController=void 0;return e.StickyIntersectionController=class{constructor(t,e,i){this._blocks=t,this._scrollState=e,this._fixedPositionChangeCallback=i}init(t,e){if(!this._intersectionObserver)this._intersectionObserver=new IntersectionObserver(this._observeHandler.bind(this),{...e,root:void 0===(null==e?void 0:e.root)?t:e.root})}updateScrollState(t){this._scrollState=t}observe(t){t.observers.observerTop.current.setAttribute("data-stickyblockid",t.id),t.observers.observerTop2.current.setAttribute("data-stickyblockid",t.id),t.observers.observerTop2Right.current.setAttribute("data-stickyblockid",t.id),t.observers.observerBottomLeft.current.setAttribute("data-stickyblockid",t.id),t.observers.observerBottomRight.current.setAttribute("data-stickyblockid",t.id),t.observers.observerLeft.current.setAttribute("data-stickyblockid",t.id),t.observers.observerRight.current.setAttribute("data-stickyblockid",t.id),this._intersectionObserver.observe(t.observers.observerTop.current),this._intersectionObserver.observe(t.observers.observerTop2.current),this._intersectionObserver.observe(t.observers.observerTop2Right.current),this._intersectionObserver.observe(t.observers.observerBottomLeft.current),this._intersectionObserver.observe(t.observers.observerBottomRight.current),this._intersectionObserver.observe(t.observers.observerLeft.current),this._intersectionObserver.observe(t.observers.observerRight.current)}unobserve(t){const e=this._blocks.get(t);if(e.observers.observerTop.current&&this._intersectionObserver)this._intersectionObserver.unobserve(e.observers.observerTop.current),this._intersectionObserver.unobserve(e.observers.observerTop2.current),this._intersectionObserver.unobserve(e.observers.observerTop2Right.current),this._intersectionObserver.unobserve(e.observers.observerBottomLeft.current),this._intersectionObserver.unobserve(e.observers.observerBottomRight.current),this._intersectionObserver.unobserve(e.observers.observerLeft.current),this._intersectionObserver.unobserve(e.observers.observerRight.current)}updateCallback(t){this._fixedPositionChangeCallback=t}destroy(){if(this._intersectionObserver)this._intersectionObserver.disconnect(),this._intersectionObserver=null}_observeHandler(t){var e;const s=[],n={};t.forEach((t=>{const e=(0,o.getStickyBlockIdFromNode)(t.target);if(n[e])n[e].entries.push(t);else n[e]={entries:[t]}}));for(const t in n)if(n.hasOwnProperty(t)){const o=this._blocks.get(t);if(!o)continue;const r=o.model.fixedPosition;if(o.model.update(n[t].entries),r===o.model.fixedPosition)continue;if(o.fixedPosition=o.model.fixedPosition,(null===(e=this._scrollState)||void 0===e?void 0:e.scrollTop)<0&&o.model.fixedPosition===i.FixedPosition.None){o.model.fixedPosition=r,o.fixedPosition=r;continue}s.push({id:t,fixedPosition:o.model.fixedPosition,prevFixedPosition:r})}if(s.length)this._fixedPositionChangeCallback(s,this._scrollState)}},e}(0,{}
10,C,O),z=function(t,e,i,o,s,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});return e.default=class{constructor(t,e){this._blocksSizes=[],this._resizeObserver=new i.ResizeObserverUtil(void 0,this._resizeHandler.bind(this)),this._blocks=t,this._sizeChangedCallback=e}destroy(){this._resizeObserver.terminate(),this._resizeObserver=null}observe(t,e){const i=t.querySelector(`.${o.CONTENT_CLASS}`),s=i&&t.getAttribute("column-scrollbar")?i:t;return s.setAttribute("data-stickyblockid",e),this._resizeObserver.observe(s),s}unobserve(t){if(!this._resizeObserver)return;const e=t.querySelector(`.${o.CONTENT_CLASS}`),i=e&&t.getAttribute("column-scrollbar")?e:t;return this._resizeObserver.unobserve(i),i}updateCallback(t){this._sizeChangedCallback=t}getSize(t){return this._blocksSizes.find((e=>e.id===t))}updateBlockSize(t,e,i){let o=!1;const s=this._getBlockSizeById(t);if(s){if(s.height!==e||s.width!==i)s.height=e,s.width=i,o=!0}else this._blocksSizes.push({id:t,height:e,width:i});return o}_resizeHandler(t){let e=!1;const i={},o={};for(const n of t){let t;const r=(0,s.getStickyBlockIdFromNode)(n.target),l=this._blocks.get(r);if(l){const e=this._getBlockSizeById(l.id);if(e)t=this._getOperationForBlocksStack(n.contentRect.height,e.height,n.contentRect.width,e.width);if(t)i[l.id]={operation:t};else o[l.id]={height:n.contentRect.height,width:n.contentRect.width}}e=this.updateBlockSize(r,n.contentRect.height,n.contentRect.width)||e}if(e)this._sizeChangedCallback(i,o)}_getBlockSizeById(t){return this._blocksSizes.find((e=>e.id===t))}_getOperationForBlocksStack(t,e,i,o){let s;if(0===t&&0===i&&(0!==e||0!==o))s=n.StackOperation.Remove;else if((0!==t||0!==i)&&0===e&&0===o)s=n.StackOperation.Add;return s}},e}(0,{},f,R,O,C),L=function(t,e,i,o,s){"use strict";return Object.defineProperty(e,"__esModule",{value:!0}),e.default=o.forwardRef((function({position:t,offset:e,borderWidth:n},r){const[l,c]=o.useState({});return o.useEffect((()=>{let i=(e||0)+n+2;if(1!==(0,s.getDevicePixelRatio)())i+=1;const o="bottomLeft"===t||"bottomRight"===t?"bottom":t;c(new Object({[o]:-i+"px"}))}),[e,n]),(0,i.jsx)("div",{ref:r,className:`controls-StickyBlock__observationTarget_${t}`,style:l})})),e}(0,{},t,e,O,"undefined"==typeof css_Controls_stickyBlock||css_Controls_stickyBlock),V=function(t,e,i,o,s,n,r,l,c,d,a,f,h,u,k,p,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const g=(t,e)=>{const i=(null==e?void 0:e.fixedPosition)||"";return!(t&&("default"!==t||i))},y=(t,e)=>{if(e.current&&!e.current.closest(".controls-Scroll, .controls-Scroll-Container"))return p.Logger.warn("Controls.stickyBlock:StickyBlock: Используются фиксация вне Controls.scroll:Container. Либо используйте Controls.scroll:Container, либо отключите фиксацию заголовков в контролах в которых она включена.",this),!1;else return(0,h.isStickySupport)()&&t!==l.Mode.NotSticky},_=(t,e,i,o)=>{const s=!e;let n=!1;if(i.position)n=-1!==i.position.toLowerCase().indexOf(t)&&y(i.mode,o);if(s&&n)return t===l.StickyPosition.Top?i.offsetTop:t===l.StickyPosition.Bottom?i.offsetTop||0:0;else return null==e?void 0:e.offset[t]};return e.default=o.memo(o.forwardRef((function({stickyModel:t,setStickyId:e,shadowMode:p,...b},S){const v=o.useRef(null),m=o.useRef(null),x=o.useRef(null),P=o.useRef(null),C=o.useRef(null),B=o.useRef(null),O=o.useRef(null),w=o.useRef(null),[F,T]=o.useState({borderTopWidth:0,borderBottomWidth:0,borderLeftWidth:0,borderRightWidth:0}),R="custom"===b.horizontalScrollMode?"custom":"default",I=o.useRef((0,h.getNextId)()),M=()=>I.current;b.attrs={...b.attrs,...b.stickyAttrs};const{userAttrs:z,clearProps:L}=(0,k.delimitProps)(b),V=((t,e)=>{const i=e!==l.StickyShadowVisibility.Hidden;return{top:t?i&&t.shadow.top:e===l.StickyShadowVisibility.Initial,bottom:t?i&&t.shadow.bottom:e===l.StickyShadowVisibility.Initial,left:t?i&&t.shadow.left:e===l.StickyShadowVisibility.Initial,right:t?i&&t.shadow.right:e===l.StickyShadowVisibility.Initial}})(t,b.shadowVisibility),{className:N,style:H}=(0,s.wasabyAttrsToReactDom)(z),E=(0,u.usePreviousProps)({mode:b.mode,offsetTop:b.offsetTop,offsetLeft:b.offsetLeft,syntheticFixedPosition:null==t?void 0:t.syntheticFixedPosition,className:N},{mode:void 0,offsetTop:void 0,offsetLeft:void 0,syntheticFixedPosition:void 0,className:null});o.useLayoutEffect((()=>{const i=M();e(i);const o=j(i);if(y(b.mode,v))b.register(o);return()=>{if(y(b.mode,v))b.unregister(i),b.onFixedCallback({id:M(),fixedPosition:l.FixedPosition.None,prevPosition:(null==t?void 0:t.syntheticFixedPosition.prevPosition)||l.FixedPosition.None,content:v.current});I.current=null}}),[]),o.useLayoutEffect((()=>
10{if(!y(b.mode,v))return;if(E.mode&&b.mode!==E.mode&&void 0!==E.mode)if(E.mode===l.Mode.NotSticky)b.register(j(M()));else b.modeChanged(M(),b.mode);if(!(""===M())&&(b.offsetTop!==E.offsetTop&&void 0!==E.offsetTop||b.offsetLeft!==E.offsetLeft&&void 0!==E.offsetLeft)){const t=b.position===l.StickyPosition.Left?b.offsetLeft:b.offsetTop;b.offsetChanged(M(),t)}if(JSON.stringify(null==t?void 0:t.syntheticFixedPosition)!==JSON.stringify(E.syntheticFixedPosition))b.onFixedCallback({id:M(),fixedPosition:(null==t?void 0:t.syntheticFixedPosition.fixedPosition)||l.FixedPosition.None,prevPosition:(null==t?void 0:t.syntheticFixedPosition.prevPosition)||l.FixedPosition.None})}),[b.mode,b.offsetTop,b.offsetLeft,null==t?void 0:t.syntheticFixedPosition]);const j=t=>({id:t,stickyRef:v,observers:{observerTop:m,observerTop2:x,observerTop2Right:P,observerBottomLeft:C,observerBottomRight:B,observerLeft:O,observerRight:w},props:{mode:b.mode,position:b.position,shadowVisibility:b.shadowVisibility,offsetTop:b.offsetTop,offsetLeft:b.offsetLeft,initiallyFixed:b.initiallyFixed,nativeStickySync:b.nativeStickySync},isGroup:!1}),G=o.useMemo((()=>{const e=c.detection.isMobileIOS&&!0!==b.task1181007458,i={top:_(l.StickyPosition.Top,t,b,v),bottom:_(l.StickyPosition.Bottom,t,b,v),left:_(l.StickyPosition.Left,t,b,v),right:_(l.StickyPosition.Right,t,b,v),zIndex:void 0};let o=(null==t?void 0:t.fixedPosition)||"";if(!o&&e)o=b.position;if(i.zIndex=(e=>{let i;if(e&&v.current){if(b._isIosZIndexOptimized||(null==t?void 0:t.fixedPosition))i=b.fixedZIndex}else if(b.zIndex)i=b.zIndex;return i})(o),void 0===i.top)if("number"==typeof b.initialVerticalScrollPosition)i.top=Math.round(b.initialVerticalScrollPosition);return{...i,...H}}),[t,b.position,b.fixedZIndex,b.zIndex,z.style]);o.useEffect((()=>{const t={borderTopWidth:z["border-top-width"]||F.borderTopWidth,borderBottomWidth:z["border-bottom-width"]||F.borderBottomWidth,borderLeftWidth:z["border-left-width"]||F.borderLeftWidth,borderRightWidth:z["border-left-width"]||F.borderRightWidth};if(JSON.stringify(F)!==JSON.stringify(t))T(t)}),[null==z?void 0:z["border-top-width"],null==z?void 0:z["border-bottom-width"],null==z?void 0:z["border-left-width"],null==z?void 0:z["border-left-width"]]);const D=o.useRef(null);o.useEffect((()=>()=>{if(null!==D.current)cancelAnimationFrame(D.current)}),[]),delete L.children;const W=o.Children.map(b.children,(e=>{var i,s;let n=f.CONTENT_CLASS;if(null===(i=e.props)||void 0===i?void 0:i.className)n=" "+e.props.className;if(o.isValidElement(e)&&e.type===o.Fragment)return e;else if(r=e,o.isValidElement(r)&&("string"==typeof r.type||r.type===o.Fragment))return o.cloneElement(e,{className:n});else{const i={...L};return delete i["data-qa"],delete i.className,o.cloneElement(e,{isHeaderFixed:null==t?void 0:t.fixedPosition,stickyContentClass:f.CONTENT_CLASS,className:n,wasabyContext:b.wasabyContext,...i,readOnly:null!==(s=e.props.readOnly)&&void 0!==s?s:i.readOnly,style:void 0,shadowVisibility:void 0})}var r}));return(0,i.jsxs)("div",{"data-qa":L["data-qa"],...(0,s.wasabyAttrsToReactDom)(z),className:`controls-StickyBlock ${(()=>{const e=[];if((null==t?void 0:t.fixedPosition)&&b.fixedClassName&&v.current)e.push(b.fixedClassName);const i=g(b.backgroundStyle,t)?"backgroundDefault":(null==t?void 0:t.fixedPosition)?b.fixedBackgroundStyle||b.backgroundStyle:b.backgroundStyle;if(b.pixelRatioBugFix&&v.current)e.push((0,d.getPixelRatioBugFixClass)(i));if(b.subPixelArtifactFix)e.push((0,a.getSubPixelArtifactBugFixClass)((null==t?void 0:t.fixedPosition)&&b.fixedBackgroundStyle?b.fixedBackgroundStyle:i));return e.push(((t,e,i)=>{if((null==i?void 0:i.fixedPosition)&&e)return`controls-background-${e}`;const o=g(t,i);if(o)return"controls-background-default-sticky";return`controls-background-${t}`})(b.backgroundStyle,b.fixedBackgroundStyle,t)),e.push(N),e.join(" ")})()}`,style:G,ref:t=>{if(t){if(v.current=t,S)if(S.current)S.current=t;else S(t);D.current=window.requestAnimationFrame((()=>{if(D.current=null,function(){if(I.current)if(null===E.className||E.className!==N){const t=getComputedStyle(v.current),e={borderTopWidth:parseInt(t["border-top-width"],10),borderBottomWidth:parseInt(t["border-bottom-width"],10),borderLeftWidth:parseInt(t["border-left-width"],10),borderRightWidth:parseInt(t["border-left-width"],10)};if(JSON.stringify(F)!==JSON.stringify(e))T(e)}}(),"number"==typeof b.initialVerticalScrollPosition)if(t.style.top===Math.round(b.initialVerticalScrollPosition)+"px")t.style.top=""}))}},onClick:t=>{var e;return null===(e=b.onClick)||void 0===e?void 0:e.call(b,t)},onContextMenu:t=>{var e;return null===(e=b.onContextMenu)||void 0===e?void 0:e.call(b,t)},onMouseUp:t=>{var e;return null===(e=b.onMouseUp)||void 0===e?void 0:e.call(b,t)},onMouseDown:t=>{var e;return null===(e=b.onMouseDown)||void 0===e?void 0:e.call(b,t)},onMouseEnter:t=>{var e;return null===(e=b.onMouseEnter)||void 0===e?void 0:e.call(b,t)},onMouseLeave:t=>{var e;return null===(e=b.onMouseLeave)||void 0===e?void 0:e.call(b,t)},onMouseMove:t=>{var e;return null===(e=b.onMouseMove)||void 0===e?void 0:e.call(b,t)},onTouchMove:t=>{var e;return null===(e=b.onTouchMove)||void 0===e?void 0:e.call(b,t)},onTouchStart:t=>{var e;return null===(e=b.onTouchStart)||void 0===e?void 0:e.call(b,t)},onTouchEnd:t=>{var e;return null===(e=b.onTouchEnd)||void 0===e?void 0:e.call(b,t)},children:[W,y(b.mode,v)?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.default,{ref:m,position:"top",offset:(null==t?void 0:t.offset.top)||_(l.StickyPosition.Top,t,b,v),borderWidth:F.borderTopWidth}),(0,i.jsx)(r.default,{ref:x,position:"top2",offset:0,borderWidth:F.borderTopWidth}),(0,i.jsx)(r.default,{ref:P,position:"top2Right",offset:0,borderWidth:F.borderTopWidth}),(0,i.jsx)(r.default,{ref:C,position:"bottomLeft",offset:(null==t?void 0:t.offset.bottom)||_(l.StickyPosition.Bottom,t,b,v),borderWidth:F.borderBottomWidth}),(0,i.jsx)(r.default,{ref:B,position:"bottomRight",offset:(null==t?void 0:t.offset.bottom)||_(l.StickyPosition.Bottom,t,b,v),borderWidth:F.borderBottomWidth}),(0,i.jsx)(r.default,{ref:O,position:"left",offset:(null==t?void 0:t.offset.left)||_(l.StickyPosition.Left,t,b,v),borderWidth:F.borderLeftWidth}),(0,i.jsx)(r.default,{ref:w,position:"right",offset:(null==t?void 0:t.offset.right)||_(l.StickyPosition.Right,t,b,v),borderWidth:F.borderRightWidth}),(void 0!==(null==t?void 0:t.offset.top)||void 0!==(null==t?void 0:t.offset.bottom))&&(0,i.jsx)(n.default,{isVisible:V.top,shadowVisibility:b.shadowVisibility,shadowStyle:"default",orientation:"horizontal",position:"top",shadowMode:p}),(void 0!==(null==t?void 0:t.offset.top)||void 0!==(null==t?void 0:t.offset.bottom))&&(0,i.jsx)(n.default,{isVisible:V.bottom,shadowVisibility:b.shadowVisibility,shadowStyle:"default",orientation:"horizontal",position:"bottom",shadowMode:p}),(void 0!==(null==t?void 0:t.offset.left)||void 0!==(null==t?void 0:t.offset.right))&&(0,i.jsx)(n.default,{isVisible:V.left,shadowVisibility:b.shadowVisibility,shadowStyle:R,orientation:"vertical",position:"left",shadowMode:p}),(void 0!==(null==t?void 0:t.offset.left)||void 0!==(null==t?void 0:t.offset.right))&&(0,i.jsx)(n.default,{isVisible:V.right,shadowVisibility:b.shadowVisibility,shadowStyle:R,orientation:"vertical",position:"right",shadowMode:p})]}):null]})})),((t,e)=>{if(t.children!==e.children||t.shadowVisibility!==e.shadowVisibility||t.shadowMode!==e.shadowMode||t.fixedZIndex!==e.fixedZIndex||t.zIndex!==e.zIndex||t.backgroundStyle!==e.backgroundStyle||t.mode!==e.mode||t.position!==e.position||t.content!==e.content||t.offsetLeft!==e.offsetLeft||JSON.stringify(t.attrs)!==JSON.stringify(e.attrs)||t.className!==e.className)return!1;const i="left"===e.position?b.EMPTY_STICKY_GROUPED_MODEL:b.EMPTY_STICKY_MODEL,o=t.stickyModel||{...i,offset:{top:_(l.StickyPosition.Top,t.stickyModel,e,{current:void 0}),bottom:_(l.StickyPosition.Bottom,t.stickyModel,e,{current:void 0}),left:_(l.StickyPosition.Left,t.stickyModel,e,{current:void 0}),right:_(l.StickyPosition.Right,t.stickyModel,e,{current:void 0})}},s=e.stickyModel||{...i,offset:{top:_(l.StickyPosition.Top,t.stickyModel,e,{current:void 0}),bottom:_(l.StickyPosition.Bottom,t.stickyModel,e,{current:void 0}),left:_(l.StickyPosition.Left,t.stickyModel,e,{current:void 0}),right:_(l.StickyPosition.Right,t.stickyModel,e,{current:void 0})}};return JSON.stringify(o)===JSON.stringify(s)})),e}(0,{},t,e,i,m,L,C,d,b,g,R,x,h,i,o,R,"undefined"==typeof css_Controls_stickyBlock||css_Controls_stickyBlock),N=V,H=function(t,e,
10i,o,s,n,r,l,c,d,a,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const h=".controls-StickyHeader__isolatedGroup";class u{constructor(t,e,i,o){this._blocks=new l.default,this._sizeController=new s.default(this._blocks,this._sizeChanged.bind(this)),this._delayedBlocks=[],this._shadowVisibilityFromScrollContainer={top:void 0,bottom:void 0},this._dataContext={models:{},registerCallback:this._registerCallback.bind(this),unregisterCallback:this._unregisterCallback.bind(this),modeChangedCallback:this._modeChangedCallback.bind(this),offsetChangedCallback:this._offsetChangedCallback.bind(this),initialScrollPosition:void 0},this._groupDataContext={registerCallback:this._registerCallback.bind(this),unregisterCallback:this._unregisterCallback.bind(this),groupSizeChangedCallback:this._groupSizeChangedCallback.bind(this),groupChangeFixedPositionCallback:this._groupChangeFixedPositionCallback.bind(this),addedBlockInGroupCallback:this._addedBlockInGroupCallback.bind(this),removedBlockInGroupCallback:this._removedBlockInGroupCallback.bind(this),modeChangedCallback:this._modeChangedCallback.bind(this),offsetChangedCallback:this._offsetChangedCallback.bind(this)},this._prevModels={},this._horizontalGroupsWidths={},this._horizontalGroupsFixed={},this._initialized=!1,this._stickyFixedCallback=e,this._dispatchCallback=t,this._scrollContainerResizeCallback=i,this._intersectionObserver=new c.StickyIntersectionController(this._blocks,this._scrollState,this._fixedPositionChange.bind(this)),this._getRegisterOpt=o,t(this._dataContext,this._groupDataContext)}destroy(){this._sizeController.destroy(),this._intersectionObserver.destroy()}scrollStateChanged(t){var e,i,o,s;const n=(null===(e=this._scrollState)||void 0===e?void 0:e.verticalPosition)!==t.verticalPosition,r=(null===(i=this._scrollState)||void 0===i?void 0:i.horizontalPosition)!==t.horizontalPosition,l=(null===(o=this._scrollState)||void 0===o?void 0:o.canVerticalScroll)!==t.canVerticalScroll,c=(null===(s=this._scrollState)||void 0===s?void 0:s.canHorizontalScroll)!==t.canHorizontalScroll;if(this._scrollState=t.clone(),this._initialized&&(l||c))this._registerDelayed();if(this._initialized&&(n||r)&&(Object.keys(this._blocks.getBlocks()).length||Object.keys(this._horizontalGroupsFixed).length))this._updateShadows(),this._dispatch()}setShadowVisibility(t,e){if(this._shadowVisibilityFromScrollContainer[i.StickyPosition.Top]!==t||this._shadowVisibilityFromScrollContainer[i.StickyPosition.Bottom]!==e)if(this._shadowVisibilityFromScrollContainer[i.StickyPosition.Top]=t,this._shadowVisibilityFromScrollContainer[i.StickyPosition.Bottom]=e,Object.keys(this._blocks.getBlocks()).length)this._updateShadows(),this._dispatch()}hasFixed(t){switch(t){case i.StickyPosition.Top:case i.StickyPosition.Bottom:return!!this._blocks.getFixedStack()[t].length;case i.StickyPosition.Left:for(const t in this._horizontalGroupsFixed)if(this._horizontalGroupsFixed.hasOwnProperty(t))if(this._horizontalGroupsFixed[t].leftFixed)return!0;return!1;case i.StickyPosition.Right:for(const t in this._horizontalGroupsFixed)if(this._horizontalGroupsFixed.hasOwnProperty(t))if(this._horizontalGroupsFixed[t].rightFixed)return!0;return!1}}hasShadowVisible(t){let e=!1;if(t===i.StickyPosition.Top||t===i.StickyPosition.Bottom){const o=this._blocks.getFixedStack()[t];for(const t of o)if(this._blocks.get(t).props.shadowVisibility!==i.StickyShadowVisibility.Hidden){e=!0;break}}return e}getBlocksHeight(t,e=i.TypeFixedBlocks.InitialFixed,o=!0){return this.getBlocksSizes(t,e,!1,o).totalHeight}getBlocksWidth(){if(Object.values(this._horizontalGroupsWidths).length)return Math.max(...Object.values(this._horizontalGroupsWidths));else return 0}getBlocksRects(t,e=i.TypeFixedBlocks.InitialFixed){return this.getBlocksSizes(t,e,!0,!0).sizes}getBlocksSizes(t,e=i.TypeFixedBlocks.InitialFixed,s=!1,n=!0){const r=[];let l,c=null,a=0,f=0,h=!1;for(const u of this._blocks.getStack()[t]){l=this._blocks.get(u);const k=()=>{if(l.fixedInitially||l.props.offsetTop||e===i.TypeFixedBlocks.AllFixed||e===i.TypeFixedBlocks.Fixed){const c=(0,o.getStickyBlockHeight)(l.stickyRef.current);if(!c)return;a+=c;const f=l.props.offsetTop<0&&l.fixedInitially&&e===i.TypeFixedBlocks.InitialFixed;
10if(n&&!f&&t===i.StickyPosition.Top)a+=l.props.offsetTop;if(s)r.push({rect:(0,d.getDimensions)(l.stickyRef.current),block:l})}f=0,c=null};if(!l||l.props.shadowVisibility===i.StickyShadowVisibility.Hidden)continue;h=h||!!l.props.offsetTop;let p=e!==i.TypeFixedBlocks.AllFixed&&!this._blocks.getFixedStack()[t].includes(u);if(p=p||e===i.TypeFixedBlocks.InitialFixed&&!l.fixedInitially,p=p&&!(h&&l.fixedInitially),l.props.mode===i.Mode.Dynamic)k();if(!p)if(l.props.mode===i.Mode.Stackable)k();else if(l.props.mode===i.Mode.Replaceable)if(f=(0,o.getStickyBlockHeight)(l.stickyRef.current),s)c={rect:(0,d.getDimensions)(l.stickyRef.current),block:l}}if(c)r.push(c);return{sizes:r,totalHeight:a+f}}getFixedBlocksHeightByScrollTop(t,e=!1){let o=0;return this._getFixedBlocksByScrollTop(t,e).forEach((t=>{if(t.props.shadowVisibility!==i.StickyShadowVisibility.Hidden)o+=this._getBlockSize(t.id).height})),o}init(){this._initialized=!0,this._registerDelayed()}hasBottomBlocks(){const t=Object.values(this._blocks.getBlocks());for(let e=0;e<t.length;e++){const o=t[e].props.position;if(o===i.StickyVerticalPosition.Bottom||i.StickyVerticalPosition.TopBottom||o===i.StickyHorizontalPosition.Right)return!0}return!1}syncRegisterDelayed(){this._registerDelayed(!1)}_dispatch(){let t=!1;if(Object.keys(this._prevModels).length>Object.keys(this._dataContext.models).length)Object.entries(this._dataContext.models).forEach((([e,i])=>{if(this._prevModels[e]){if(JSON.stringify(this._prevModels[e])!==JSON.stringify(i))t=!0}else t=!0}));else t=JSON.stringify(this._prevModels)!==JSON.stringify(this._dataContext.models);if(!this._blocks.getStack().top.length&&!this._blocks.getStack().bottom.length)t=!1,Object.entries(this._dataContext.models).forEach((([e,i])=>{if(this._prevModels[e]&&JSON.stringify(this._prevModels[e].shadow)!==JSON.stringify(i.shadow))t=!0}));if(t||this.hasFixed(i.StickyPosition.Left)||this.hasFixed(i.StickyPosition.Right)||this.hasFixed(i.StickyPosition.Top)){for(const t in this._dataContext.models)if(this._dataContext.models.hasOwnProperty(t))this._prevModels[t]={...this._dataContext.models[t]};this._dispatchCallback(this._dataContext,this._groupDataContext)}}_addedBlockInGroupCallback(){this._updateShadows(),this._updateOffsets(),this._dispatch()}_removedBlockInGroupCallback(){this._updateShadows(),this._updateOffsets(),this._dispatch()}_modeChangedCallback(t,e){if(this._blocks.get(t).props.mode=e,e===i.Mode.NotSticky)this._blocks.removeFromStack(t);this._updateShadows(),this._updateOffsets(),this._dispatch()}_offsetChangedCallback(t,e){if(void 0!==e)this._blocks.get(t).props.offsetTop=e;this._updateShadows(),this._updateOffsets(),this._dispatch()}_registerCallback(t){return this._register(t)}_unregisterCallback(t){const e=this._blocks.get(t).props.shadowVisibility;if(this._unregister(t),e!==i.StickyShadowVisibility.Hidden)this._stickyFixedCallback()}_register(t){var e,o,s;if(this._initScrollContainerNodeByStickyContainer(t.stickyRef.current),!t.isGroup)this._intersectionObserver.init(this._scrollContainer,null===(e=this._getRegisterOpt)||void 0===e?void 0:e.call(this,{root:this._scrollContainer}));this._blocks.add(t);const n=-1!==t.props.position.toLowerCase().indexOf(i.StickyPosition.Top),r=-1!==t.props.position.toLowerCase().indexOf(i.StickyPosition.Bottom);if(this._dataContext.models[t.id]={offset:{top:n?t.props.offsetTop:void 0,bottom:r?0:void 0,left:void 0,right:void 0},shadow:{top:!1,bottom:!1,left:!1,right:!1},fixedPosition:t.props.fixedPositionInitial||i.FixedPosition.None,syntheticFixedPosition:{fixedPosition:t.props.fixedPositionInitial||i.FixedPosition.None,prevPosition:i.FixedPosition.None}},this._delayedBlocks.push(t),!t.isGroup)this._intersectionObserver.observe(t);if((null===(o=this._scrollState)||void 0===o?void 0:o.canHorizontalScroll)||(null===(s=this._scrollState)||void 0===s?void 0:s.canVerticalScroll))return Promise.resolve().then(this._registerDelayed.bind(this));else return Promise.resolve()}_unregister(t){if(!this._blocks.get(t).isGroup)this._intersectionObserver.unobserve(t),this._sizeController.unobserve(this._blocks.get(t).stickyRef.current);this._blocks.remove(t),this._blocks.removeFromStack(t),delete this._dataContext.models[t],delete this._horizontalGroupsFixed[t],delete this._horizontalGroupsWidths[t];const e=this._delayedBlocks.findIndex((e=>e.id===t));if(-1!==e)this._delayedBlocks.splice(e,1);this._updateOffsets(),this._updateShadows(),this._dispatch(),(0,o.removeSticky)(t)}_registerDelayed(t=!0){var e,i;const s=this._blocks.getFixedStack();if(s.top.length!==this._blocks.getStack().top.length||s.bottom.length!==this._blocks.getStack().bottom.length||s.left.length!==this._blocks.getStack().left.length||s.right.length!==this._blocks.getStack().right.length){["top","bottom","left","right"].forEach((t=>{s[t].forEach((t=>{if(!this._blocks.inStack(t)&&!this._delayedBlocks.find((e=>e.id===t)))this._delayedBlocks.push(this._blocks.get(t))}))}))}let n=this._delayedBlocks.length;if(this._registerDelayedPlanned&&t)return;if(!n||!(null===(e=this._scrollState)||void 0===e?void 0:e.canVerticalScroll)&&!(null===(i=this._scrollState)||void 0===i?void 0:i.canHorizontalScroll))return;if(this._registerDelayedPlanned=!0,t){for(const t in this._blocks.getBlocks())if(this._blocks.getBlocks().hasOwnProperty(t))a.default.resetSticky(this._getStickyElementsById(t))}else(0,o.resetSticky)(this._blocks.getBlocks());const r=()=>{if(n=this._delayedBlocks.length,this._registerDelayedPlanned=!1,this._delayedBlocks=this._delayedBlocks.filter((t=>{if(!t.isGroup)this._resizeObserve(t.stickyRef.current,t.id);if(!this._blocks.addToStack(t.id,this._scrollContainer))return this._sizeController.updateBlockSize(t.id,0,0),!0;else return!1})),!t)(0,o.restoreSticky)(this._blocks.getBlocks());if(n!==this._delayedBlocks.length)this._updateShadows(),this._updateOffsets(),this._updateFixedInitially(),this._scrollContainerResizeCallback(),this._dispatch()};if(t)return a.default.measure(r);else r()}_updateShadows(){for(const t in this._dataContext.models)if(this._dataContext.models.hasOwnProperty(t))this._dataContext.models[t].shadow={top:void 0,bottom:void 0,left:void 0,right:void 0};for(const t of[i.StickyPosition.Top,i.StickyPosition.Bottom])this._blocks.getStack()[t].forEach((t=>{const e=this._blocks.get(t);if(e){(0,n.getDecomposedPositionFromString)(e.fixedPosition).forEac
10h((s=>{if(e.props.shadowVisibility!==i.StickyShadowVisibility.Hidden){const e=this._getLastFixedBlockWithShadowId(s),n=(0,o.getOppositePosition)(s);let r;if(this._shadowVisibilityFromScrollContainer[s])if(this._shadowVisibilityFromScrollContainer[s]===i.ScrollShadowVisibility.Visible)r=t===e;else if(this._shadowVisibilityFromScrollContainer[s]!==i.ScrollShadowVisibility.Hidden)r=t===e;this._dataContext.models[t].shadow[n]=r}}))}}))}_updateOffsets(){const t={top:{},bottom:{},left:{},right:{}};let e,s,n;for(const l of[i.StickyPosition.Top,i.StickyPosition.Bottom])this._blocks.getStack()[l].reduce(((c,d,a)=>{var f,k;if(e=this._blocks.get(d),(0,r.isHidden)(e.stickyRef.current))return c;if(s=null,n=this._blocks.get(this._blocks.getStack()[l][a-1]),((null==n?void 0:n.props.mode)===i.Mode.Replaceable||(null==n?void 0:n.props.mode)===i.Mode.Dynamic&&n.isHidden)&&e.props.mode===i.Mode.Stackable){if((0,o.getGeneralParentNode)(n.stickyRef.current,e.stickyRef.current)===document.body){const t=this._getPrevStackableBlock(a,l);let e;if(t)e=this._getIsolatedGroup(t);c-=e?this._getIsolatedGroupBlocksHeight(e,l):this._getPrevStackableBlockHeight(a,l)}}if(e.props.mode!==i.Mode.Dynamic)t[l][d]=c+e.props.offsetTop;else{const i=this._getBlockSize(e.id).height;if(!e.isHidden)t[l][d]=c+e.props.offsetTop,c+=i;else t[l][d]=-1*(null!==(f=e.topOffset)&&void 0!==f?f:i)+e.props.offsetTop,c+=i-(null!==(k=e.topOffset)&&void 0!==k?k:i)}if(e.props.mode===i.Mode.Stackable)if(!u.isLastIndex(this._blocks.getStack()[l],a)){const t=this._blocks.getStack()[l][a+1];s=this._blocks.get(t);for(let t=a;t>=0;t--){n=this._blocks.get(this._blocks.getStack()[l][t]);let r=this._getBlockSize(e.id);if((0,o.getGeneralParentNode)(s.stickyRef.current,n.stickyRef.current)!==document.body){const t=this._getIsolatedGroup(s),e=this._getIsolatedGroup(n);if(!(t===e||t&&e))return c;else return c+r.height}else if(t>0&&n.props.mode===i.Mode.Stackable){const t=this._getIsolatedGroup(s),e=this._getIsolatedGroup(n);if(t&&e){const i=e.parentElement.closest(h);if(i){c-=this._getIsolatedGroupBlocksHeight(i,l)+this._getIsolatedGroupBlocksHeight(e,l);if(t.parentElement.closest(h)===i)if(c<0)c=-this._getBlockSize(n.id).height,c+=this._getIsolatedGroupBlocksHeight(i,l)}else c-=this._getIsolatedGroupBlocksHeight(e,l);if((c+=this._getBlockSize(n.id).height)<0)c=0;return c}else r=this._getBlockSize(n.id),c-=r.height}}return 0}return c}),0);for(const e of[i.StickyPosition.Top,i.StickyPosition.Bottom,i.StickyPosition.Left,i.StickyPosition.Right])this._blocks.getStack()[e].forEach((i=>{var o;this._dataContext.models[i].offset={top:t.top[i],bottom:t.bottom[i],left:t.left[i],right:t.right[i]};const s=this._getIsolatedGroup(this._blocks.get(i));let n;if(s){const t=this._getPrevStackableBlockHeightWithoutIsolatedGroup(s,e),o=this._getPrevStackableBlocksHeightInIsolatedGroup(s,i,e),r=this._getBlockSize(i).height;n=0===o?t:t+(o-r)}else n=this._blocks.get(i).props.offsetTop?this._blocks.get(i).props.offsetTop:t.top[i];if(this._blocks.get(i).isGroup){const t=this._blocks.get(i).stickyRef.current.querySelectorAll(".controls-StickyBlock__observationTarget_top2"),e=this._blocks.get(i).stickyRef.current.querySelectorAll(".controls-StickyBlock__observationTarget_top2Right");t.forEach((t=>{t.style.top=-n+"px"})),e.forEach((t=>{t.style.top=-n+"px"}))}else{const t=this._blocks.get(i),e=t.observers;if(e){const i=(null===(o=t.props)||void 0===o?void 0:o.nativeStickySync)?"bottom":"top";e.observerTop2.current.style[i]=-n+"px",e.observerTop2Right.current.style[i]=-n+"px"}}}))}_fixedPositionChange(t){t.forEach((t=>{if(this._blocks.get(t.id).props.mode===i.Mode.Replaceable){const e=this._blocks.get(t.id).props.position;for(const o of(0,n.getDecomposedPositionFromString)(e)){const e=this._blocks.getStack()[o],s=e.indexOf(t.id),n=e[s-1];if(void 0!==n&&this._blocks.get(n).props.mode===i.Mode.Replaceable){const e=t.fixedPosition?i.FixedPosition.None:this._blocks.get(n).fixedPosition,o=t.fixedPosition?this._blocks.get(n).fixedPosition:i.FixedPosition.None;if(e!==o)this._dataContext.models[n].syntheticFixedPosition={fixedPosition:e,prevPosition:o}}}}this._blocks.get(t.id).fixedPosition=t.fixedPosition,this._dataContext.models[t.id].syntheticFixedPosition={fixedPosition:t.fixedPosition,prevPosition:t.prevFixedPosition},this._dataContext.models[t.id].fixedPosition=t.fixedPosition})),this._stickyFixedCallback(),this._updateShadows(),this._dispatch()}_groupSizeChangedCallback(t,e,i){if(!!this._blocks.get(t))if(e){const i={};i[t]={operation:e},this._sizeChanged(i)}else this._updateOffsets(),this._dispatch();else if(0===i&&this._horizontalGroupsWidths[t])delete this._horizontalGroupsWidths[t];else this._horizontalGroupsWidths[t]=i}_groupChangeFixedPositionCallback(t,e,o){var s;this._horizontalGroupsFixed[t]={leftFixed:void 0,rightFixed:void 0};const r=(0,n.getDecomposedPositionFromString)(e);for(const e of r){if(e===i.StickyPosition.Left)this._horizontalGroupsFixed[t].leftFixed=!0;if(e===i.StickyPosition.Right)this._horizontalGroupsFixed[t].rightFixed=!0}if(!!this._blocks.get(t)){if(e!==this._blocks.get(t).fixedPosition)this._fixedPositionChange([{id:t,fixedPosition:e,prevFixedPosition:this._blocks.get(t).fixedPosition}]);if(""===e&&("leftRight"===this._blocks.get(t).props.position||"right"===this._blocks.get(t).props.position||"left"===this._blocks.get(t).props.position))this._dispatchCallback(this._dataContext,this._groupDataContext)}else if(this._stickyFixedCallback(),(null==o?void 0:o.horizontalPosition)!==(null===(s=this._scrollState)||void 0===s?void 0:s.horizontalPosition))this._dispatch()}_sizeChanged(t){if(!this._initialized)return;this._delayedBlocks=this._delayedBlocks.filter((e=>!t[e.id])),this._registerDelayed();const e=[];for(const o in t)if(t.hasOwnProperty(o))if(t[o].operation===i.StackOperation.Add){if
10(!this._delayedBlocks.some((t=>t.id===o)))e.push(o)}else this._blocks.removeFromStack(o),this._register(this._blocks.get(o));for(const t in this._blocks.getBlocks())if(this._blocks.getBlocks().hasOwnProperty(t))a.default.resetSticky(this._getStickyElementsById(t));a.default.measure((()=>{for(const t of e)this._blocks.addToStack(t,this._scrollContainer)})),a.default.measure((()=>{this._updateOffsets(),this._updateShadows(),this._scrollContainerResizeCallback(),this._dispatch()}))}_getStickyElementsById(t){const e=[];if(this._blocks.get(t).isGroup){const i=this._blocks.get(t).stickyRef.current.children;for(const t in i)if(i.hasOwnProperty(t))e.push(i[t])}else e.push(this._blocks.get(t).stickyRef.current);return e}_updateFixedInitially(t=i.StickyPosition.Top){const e=this._blocks.getStack()[t],s=this._scrollContainer.children,n=t===i.StickyPosition.Top?s[0]:s[s.length-1],r={},l=t===i.StickyPosition.Top||t===i.StickyPosition.Bottom?i.StickyPosition.Left:i.StickyPosition.Top,c=[];for(const s of e){if(this._blocks.get(s).props.shadowVisibility===i.StickyShadowVisibility.Hidden)continue;const e=this._getIsolatedGroup(this._blocks.get(s)),d=(0,f.getOffsetObjectByContainer)(this._blocks.get(s).stickyRef.current,t,n);if(0!==d[t])d[t]-=Math.abs(1-(0,f.getDevicePixelRatio)());if(d[t]+=this._blocks.get(s).props.offsetTop,!r[d[l]])r[d[l]]=0;if(!1!==this._blocks.get(s).props.initiallyFixed&&r[d[l]]>=d[t]&&!e)if(this._blocks.get(s).fixedInitially=!0,t===i.StickyPosition.Top&&!this._blocks.getFixedStack().top.includes(s))c.push({id:s,fixedPosition:i.FixedPosition.Top,prevFixedPosition:i.FixedPosition.None});r[d[l]]+=this._blocks.get(s).props.mode!==i.Mode.Replaceable?(0,o.getStickyBlockHeight)(this._blocks.get(s).stickyRef.current)+this._blocks.get(s).props.offsetTop:0}if(c.length)this._fixedPositionChange(c)}_resizeObserve(t,e){this._sizeController.observe(t,e)}_updateScrollContainer(t){this._scrollContainer=t}_initScrollContainerNodeByStickyContainer(t){if(!this._scrollContainer)this._updateScrollContainer(t.closest(".controls-Scroll"))}_getLastFixedBlockWithShadowId(t){var e;let s;const n=this._blocks.getFixedStack();let l,c=0;for(const d of this._blocks.getStack()[t]){const a=this._blocks.get(d);if(n[t].includes(d)&&a.props.shadowVisibility!==i.StickyShadowVisibility.Hidden&&!(0,r.isHidden)(a.stickyRef.current))if(s=d,this._blocks.get(d).props.mode===i.Mode.Replaceable){if(void 0!==l&&!(null===(e=this._blocks.get(d).model)||void 0===e?void 0:e.fixedPosition)&&!this._blocks.get(d).isGroup){s=l;break}const t=(0,o.getStickyBlockHeight)(a.stickyRef.current);if(c<t)c=t,l=d}}return void 0!==l?l:s}updateDynamicPosition(t,e){for(const o of this._blocks.getStack().top){const s=this._blocks.get(o);if(s.props.mode===i.Mode.Dynamic){if(void 0===s.topOffset)s.topOffset=0;if(t){if(s.isHidden)s.topOffset=0,s.isHidden=!1,this._updateOffsets(),this._dispatch()}else{s.topOffset+=e;const t=this._getBlockSize(s.id).height;if(t<s.topOffset)s.topOffset=t;if(this._dataContext.models[s.id].offset.top<t)s.isHidden=!0,this._updateOffsets(),this._dispatch()}}}}_getPrevStackableBlockHeightWithoutIsolatedGroup(t,e){let o=0;return this._blocks.getStack()[e].forEach((e=>{const s=this._getIsolatedGroup(this._blocks.get(e));if(s===t)return o;if(!s&&this._blocks.get(e).props.mode===i.Mode.Stackable)o+=this._getBlockSize(e).height})),o}_getPrevStackableBlocksHeightInIsolatedGroup(t,e,i){let o=0;for(const s of this._blocks.getStack()[i]){if(this._getIsolatedGroup(this._blocks.get(s))===t){if(s===e)return o;o+=this._getBlockSize(s).height}}return o}_getPrevStackableBlockHeight(t,e){let o=0;for(let s=t-1;s>=0;s--){const t=this._blocks.get(this._blocks.getStack()[e][s]);if(t.props.mode===i.Mode.Stackable){const e=this._getBlockSize(t.id);if(0!==e.height)o=e.height}}return o}_getIsolatedGroupBlocksHeight(t,e){return this._getBlocksOfIsolatedGroup(t,e).reduce(((t,e)=>t+(this._blocks.get(e).props.mode===i.Mode.Stackable?this._getBlockSize(e).height:0)),0)}_getBlocksOfIsolatedGroup(t,e){return this._blocks.getStack()[e].filter((e=>this._getIsolatedGroup(this._blocks.get(e))===t))}_getIsolatedGroup(t){return null==t?void 0:t.stickyRef.current.closest(h)}_getPrevStackableBlock(t,e){for(let o=t-1;o>=0;o--){const t=this._blocks.get(this._blocks.getStack()[e][o]);if(t.props.mode===i.Mode.Stackable)return t}}_getBlockSize(t){const e=this._blocks.get(t);return{height:(0,o.getStickyBlockHeight)(e.stickyRef.current)+(e.props.offsetTop||0)}}_getFixedBlocksByScrollTop(t,e=!1){var s;const n=[];let r=null;for(const l of this._blocks.getStack().top){if((0,o.getOffsetByContainer)(this._blocks.get(l).stickyRef.current,i.StickyPosition.Top,this._scrollContainer.children[0])>t&&!e)break;else{const t=this._blocks.get(l);if((null===(s=t.props)||void 0===s?void 0:s.mode)===i.Mode.Stackable)n.push(t);else r=t}}if(r)n.push(r);return n}static isLastIndex(t,e){return e===t.length-1}}return e.default=u,e}(0,{}
10,C,O,z,w,x,I,M,f,y,O),E=H,j=function(t,e,i,o,s,n,r,l,c,d,a,f,h,u,k,p,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const g=(t,e,i,o)=>{const s={top:void 0,bottom:void 0};for(const n of[a.StickyPosition.Top,a.StickyPosition.Bottom])if(-1!==e.toLowerCase().indexOf(n)){const e=(0,f.getOffsetByContainer)(t.stickyRef.current,n,o);s[n]=e+(i[n]||0)}return s},y=(t,e,i)=>{const o={left:void 0,right:void 0};for(const s of[a.StickyPosition.Left,a.StickyPosition.Right])if(-1!==i.toLowerCase().indexOf(s)){const i=t.getStack()[s];if(!i.length)return;const n=i.indexOf(e.id),r=n>0?n-1:0,l=t.get(i[r]);let c=n>0?l.offset.left:0;if(l.props.mode!==a.Mode.Replaceable&&n>0)c+=l.stickyRef.current.getBoundingClientRect().width;o[s]=c}return o};return e.default=o.memo(o.forwardRef((function({offsetTop:t=0,shadowVisibility:e=a.StickyShadowVisibility.Visible,..._},S){var v,m;const{clearProps:x,$wasabyRef:P,userAttrs:C}=(0,n.delimitProps)(_),[B,O]=o.useState(""),[w,F]=o.useState(0),[T]=o.useState(!!_.position),[R]=o.useState({}
10),[I,M]=o.useState(void 0),[z]=o.useState((()=>new l.default)),L=o.useRef(0),V=o.useRef(0),N=t=>{if(!I){const e=t.closest(".controls-Scroll");return M(e),e}return I},H=()=>{const i=z.get(Object.keys(z.getBlocks())[0]).props;return{mode:_.mode||i.mode,position:_.position||i.position,shadowVisibility:e||i.shadowVisibility,offsetTop:t,fixedPositionInitial:_.fixedPositionInitial}},E=()=>{if(B)return B;else if(0!==Object.keys(z.getBlocks()).length)return z.get(Object.keys(z.getBlocks()).shift()).groupData.id};o.useEffect((()=>()=>{q.destroy(),Z.destroy()}),[]);const j=t=>{var e,i,o,s,n,r,l,d;let h=E();if(!h)h=(0,c.getNextId)(),O(h);if(_.setStickyGroupId(h),Z.init(N(t.stickyRef.current.parentElement)),t.groupData={position:_.position,id:h},z.add(t),t.props.position){(0,f.resetSticky)(z.getBlocks());const e=z.addToStack(t.id,N(t.stickyRef.current.parentElement));if((0,f.restoreSticky)(z.getBlocks()),!e)q.updateBlockSize(t.id,0,0)}z.get(t.id).offset={top:void 0,bottom:void 0,left:void 0,right:void 0},Z.observe(t),q.observe(t.stickyRef.current,t.id);const u=null===(i=null===(e=_.position)||void 0===e?void 0:e.toLowerCase)||void 0===i?void 0:i.call(e),k=null===(s=null===(o=t.props.position)||void 0===o?void 0:o.toLowerCase)||void 0===s?void 0:s.call(o),p=_.position&&-1!==u.indexOf(a.StickyPosition.Top),b=_.position&&-1!==u.indexOf(a.StickyPosition.Bottom),g=t.props.position&&-1!==k.indexOf(a.StickyPosition.Left),y=t.props.position&&-1!==k.indexOf(a.StickyPosition.Right);if(R[t.id]={offset:{top:p?(null===(r=null===(n=_.stickyModel)||void 0===n?void 0:n.offset)||void 0===r?void 0:r.top)||0:void 0,bottom:b?(null===(d=null===(l=_.stickyModel)||void 0===l?void 0:l.offset)||void 0===d?void 0:d.bottom)||0:void 0,left:g?0:void 0,right:y?0:void 0},shadow:{top:!1,bottom:!1,left:!1,right:!1},fixedPosition:a.FixedPosition.None,syntheticFixedPosition:{fixedPosition:a.FixedPosition.None,prevPosition:a.FixedPosition.None}},P)P(t.stickyRef.current.parentElement);if(!(Object.keys(R).length>1)&&_.position)_.registerCallback({id:h,stickyRef:{current:t.stickyRef.current.parentElement},isGroup:!0,props:H()});else if(_.position)if(_.addedBlockInGroupCallback(),void 0!==R[t.id].offset.top&&void 0!==R[t.id].offset.bottom)F((t=>t+1))},G=t=>{const e=E(),i=z.get(t).stickyRef.current.className.includes("multi-header");if(T&&i)_.removedBlockInGroupCallback();if(Z.unobserve(t),q.unobserve(z.get(t).stickyRef.current),z.remove(t),z.removeFromStack(t),delete R[t],(0,f.removeSticky)(t),0===Object.keys(z.getBlocks()).length&&_.position)_.unregisterCallback(e)};o.useLayoutEffect((()=>()=>{_.groupChangeFixedPositionCallback(E(),a.FixedPosition.None,_.scrollState)}),[]);const D=(t,e)=>{z.get(t).props.mode=e;const i=z.get(Object.keys(z.getBlocks())[0]);if(!_.mode&&i.id===t&&T)_.modeChangedCallback(E(),e);Y(),J()},W=(t,e)=>{if(z.get(t).props.offsetLeft=e,_.position)_.offsetChangedCallback(E());Y()},A=()=>{for(const t of[a.StickyPosition.Left,a.StickyPosition.Right])for(const e of z.getStack()[t]){const t=z.get(e);if(t.props.position)R[e].offset={...R[e].offset,...y(z,t,t.props.position)},z.get(e).offset={...R[e].offset}}},Y=()=>{L.current++;for(const t in z.getBlocks())if(z.getBlocks().hasOwnProperty(t))R[t].offset={top:void 0,bottom:void 0,left:void 0,right:void 0};(0,f.resetSticky)(z.getBlocks()),(()=>{for(const t in z.getBlocks())if(z.getBlocks().hasOwnProperty(t)){const e=z.get(t);if(_.position&&_.stickyModel)R[t].offset={...g(e,_.position,_.stickyModel.offset,e.stickyRef.current.parentElement),left:void 0,right:void 0},z.get(t).offset={...R[t].offset}}})(),A(),(0,f.restoreSticky)(z.getBlocks())},J=()=>{var t,e,i,o;L.current++;for(const s in z.getBlocks())if(z.getBlocks().hasOwnProperty(s)){const n=R[s].shadow;if(R[s].shadow={top:void 0,bottom:void 0,left:void 0,right:void 0},"hidden"!==z.getBlocks()[s].props.shadowVisibility){if(_.position&&_.stickyModel){const t=(0,h.getDecomposedPositionFromString)(_.position);for(const e of t){if(e===a.StickyPosition.Top)R[s].shadow.bottom=_.stickyModel.shadow.bottom;if(e===a.StickyPosition.Bottom)R[s].shadow.top=_.stickyModel.shadow.top}}if(z.get(s).props.position){const r=(0,h.getDecomposedPositionFromString)(z.get(s).props.position),l=null===(e=null===(t=z.getBlocks()[s])||void 0===t?void 0:t.model)||void 0===e?void 0:e.fixedPosition;let c=!0,d=!0;if(void 0!==l)c=!(l?null===(i=l.toLowerCase())||void 0===i?void 0:i.includes(a.StickyPosition.Left):1),d=!(l?null===(o=l.toLowerCase())||void 0===o?void 0:o.includes(a.StickyPosition.Right):1);let f=!1;for(const t of r){if(t===a.StickyPosition.Left)if(R[s].shadow.right=_.scrollState.horizontalPosition&&_.scrollState.horizontalPosition!==a.ScrollPosition.Start&&d,n.right!==R[s].shadow.right)f=!0;
10if(t===a.StickyPosition.Right)if(R[s].shadow.left=_.scrollState.horizontalPosition&&_.scrollState.horizontalPosition!==a.ScrollPosition.End&&c,n.left!==R[s].shadow.left)f=!0}if(f)F((t=>t+1))}}}},U=(t,e)=>{var i;let o=0,s=0;for(const e in t)if(t.hasOwnProperty(e))if(t[e].operation===a.StackOperation.Add){if(z.get(e).props.position)(0,f.resetSticky)(z.getBlocks()),z.addToStack(e,I),(0,f.restoreSticky)(z.getBlocks());o++}else{if(z.get(e).props.position)z.removeFromStack(e);s++}let n=!1;if(0===Object.keys(t).length){n=!0;const t=(null===(i=e[Object.keys(z.getBlocks())[0]])||void 0===i?void 0:i.height)||V.current;if(t!==V.current)V.current=t}let r="";const l=Object.keys(z.getBlocks()).length;if(l===o)r=a.StackOperation.Add;else if(l===s)r=a.StackOperation.Remove;const c=z.getStack().left.length||z.getStack().right.length;if(r===a.StackOperation.None&&(c||n))Y(),L.current++,F((t=>t+1));_.groupSizeChangedCallback(E(),r,(()=>{let t=0;if(!_.position&&z.getStack()[a.StickyPosition.Left].length>0)for(const e of z.getStack()[a.StickyPosition.Left])t+=z.get(e).stickyRef.current.offsetWidth;return t})())},$=(t,e)=>{t.forEach((t=>{R[t.id].fixedPosition=t.fixedPosition}));const i={top:!1,bottom:!1,left:!1,right:!1};let o;for(const t in z.getBlocks())if(z.getBlocks().hasOwnProperty(t)){o=z.get(t).groupData.id;const e=(0,h.getDecomposedPositionFromString)(z.get(t).fixedPosition);for(const t of e){if(t===a.StickyPosition.Top)i.top=!0;if(t===a.StickyPosition.Bottom)i.bottom=!0;if(t===a.StickyPosition.Left)i.left=!0;if(t===a.StickyPosition.Right)i.right=!0}}if(0===Object.keys(z.getBlocks()).length)return;let s="";if(i.top)s+=a.FixedPosition.Top;else if(i.bottom)s+=a.FixedPosition.Bottom;if(i.left)s+=""===s?"left":"Left";else if(i.right)s+=""===s?"right":"Right";if("leftRight"===_.position||"right"===_.position||"left"===_.position)J(),L.current++;if(_.groupChangeFixedPositionCallback(o,s,e),!T)K(s,{fixedPosition:s,prevPosition:s?a.FixedPosition.None:a.FixedPosition.Left}),J(),L.current++},K=(t,e)=>{L.current++;for(const i in z.getBlocks())if(z.getBlocks().hasOwnProperty(i))R[i].fixedPosition=t,R[i].syntheticFixedPosition={...e}}
10,[Z]=o.useState((()=>new r.StickyIntersectionController(z,_.scrollState,$))),[q]=o.useState((()=>{const t=(0,b.debounce)(U,100);return new d.default(z,t)}));q.updateCallback(U),Z.updateCallback($),Z.updateScrollState(_.scrollState);const X=(0,k.usePreviousProps)({blocksId:Object.keys(R),..._},void 0);if(Object.keys(R).length){if(!((t,e)=>{if(!t)return!1;if(!t.blocksId.some((t=>!!R[t])))return!1;const i=t.stickyModel||p.EMPTY_STICKY_MODEL,o=e.stickyModel||p.EMPTY_STICKY_MODEL;return JSON.stringify(i.offset)===JSON.stringify(o.offset)})(X,_))Y();else if(!_.stickyModel)A();if(J(),_.position){const t=(null===(v=_.stickyModel)||void 0===v?void 0:v.fixedPosition)||p.EMPTY_STICKY_MODEL.fixedPosition,e=(null===(m=_.stickyModel)||void 0===m?void 0:m.syntheticFixedPosition)||p.EMPTY_STICKY_MODEL.syntheticFixedPosition;K(t,e)}}const Q=o.useMemo((()=>{var t,e;return{models:{..._.stickyModel,...u.object.clone(R)},registerCallback:j.bind(this),unregisterCallback:G.bind(this),offsetChangedCallback:W.bind(this),modeChangedCallback:D.bind(this),initialVerticalScrollPosition:_.forceInitialScrollPosition?null===(t=_.initialScrollPosition)||void 0===t?void 0:t.vertical:void 0,horizontalScrollMode:null===(e=_.scrollState)||void 0===e?void 0:e.horizontalScrollMode}}),[L.current]);return(0,i.jsx)(s.StickyContext.Provider,{value:Q,children:_.children||(_.content.isWasabyTemplate?(0,i.jsx)(_.content,{forwardedRef:S,...x,className:null==C?void 0:C.className}):o.cloneElement(_.content,{forwardedRef:S,...x,className:null==C?void 0:C.className}))})})),((t,e)=>{var i,o,s,n;if(e.children)return!1;if(t.shadowVisibility!==e.shadowVisibility)return!1;if(t.offsetTop!==e.offsetTop)return!1;if(t.mode!==e.mode)return!1;if(t.position!==e.position)return!1;if(t.content!==e.content)return!1;if((null===(i=t.scrollState)||void 0===i?void 0:i.horizontalPosition)!==(null===(o=e.scrollState)||void 0===o?void 0:o.horizontalPosition))return!1;if(e.position&&(null===(s=t.scrollState)||void 0===s?void 0:s.scrollTop)>0&&(null===(n=e.scrollState)||void 0===n?void 0:n.scrollTop)<=0)return!1;else return JSON.stringify(t.stickyModel)===JSON.stringify(e.stickyModel)})),e}(0,{},t,e,S,i,M,I,x,z,C,O,w,l,h,R,c),G=function(t,e,i,o,s,n,r,l){"use strict";return Object.defineProperty(e,"__esModule",{value:!0}),e.default=o.memo(o.forwardRef((function({shadowVisibility:t=n.StickyShadowVisibility.Visible,position:e=n.StickyVerticalPosition.Top,fixedZIndex:c=2,mode:d=n.Mode.Replaceable,offsetTop:a=0,subPixelArtifactFix:f=!1,pixelRatioBugFix:h=!0,_isIosZIndexOptimized:u=!0,...k},p){const b=o.useContext(s.StickyContext),[g,y]=o.useState(""),_=o.useCallback((t=>{y(t)}),[]),{userAttrs:S,clearProps:v}=(0,l.delimitProps)(k);return(0,i.jsx)(r.default,{...v,shadowVisibility:(()=>{if("lastVisible"===t)return n.StickyShadowVisibility.Visible;else return t})(),fixedZIndex:c,zIndex:k.zIndex,mode:d,offsetTop:a,position:(()=>{if("object"==typeof e&&e.vertical)return e.vertical;else if("string"==typeof e)return e})(),backgroundStyle:k.backgroundStyle,subPixelArtifactFix:f,pixelRatioBugFix:h,_isIosZIndexOptimized:u,horizontalScrollMode:b.horizontalScrollMode,setStickyId:_,ref:p,onFixedCallback:k.onFixedCallback,stickyModel:b.models&&b.models[g],register:b.registerCallback,unregister:b.unregisterCallback,modeChanged:b.modeChangedCallback,offsetChanged:b.offsetChangedCallback,attrs:S,content:k.content,wasabyContext:k.context,onClick:t=>{var e;return null===(e=k.onClick)||void 0===e?void 0:e.call(k,t)},onContextMenu:t=>{var e;return null===(e=k.onContextMenu)||void 0===e?void 0:e.call(k,t)},onMouseUp:t=>{var e;return null===(e=k.onMouseUp)||void 0===e?void 0:e.call(k,t)},onMouseDown:t=>{var e;return null===(e=k.onMouseDown)||void 0===e?void 0:e.call(k,t)},onMouseEnter:t=>{var e;return null===(e=k.onMouseEnter)||void 0===e?void 0:e.call(k,t)},onMouseLeave:t=>{var e;return null===(e=k.onMouseLeave)||void 0===e?void 0:e.call(k,t)},onMouseMove:t=>{var e;return null===(e=k.onMouseMove)||void 0===e?void 0:e.call(k,t)},onTouchMove:t=>{var e;return null===(e=k.onTouchMove)||void 0===e?void 0:e.call(k,t)},onTouchStart:t=>{var e;return null===(e=k.onTouchStart)||void 0===e?void 0:e.call(k,t)},onTouchEnd:t=>{var e;return null===(e=k.onTouchEnd)||void 0===e?void 0:e.call(k,t)}})}))),e}(0,{},t,e,S,C,V,i,"undefined"==typeof css_Controls_stickyBlock||css_Controls_stickyBlock),D=function(t,e,
10i,o,s,n,r,l){"use strict";return Object.defineProperty(e,"__esModule",{value:!0}),e.default=o.memo(o.forwardRef((function({shadowVisibility:t=n.StickyShadowVisibility.Visible,fixedZIndex:e=2,mode:c=n.Mode.Replaceable,offsetLeft:d=0,subPixelArtifactFix:a=!1,pixelRatioBugFix:f=!0,_isIosZIndexOptimized:h=!0,...u},k){const p=o.useContext(s.StickyContext),[b,g]=o.useState(""),y=o.useCallback((t=>g(t)),[]),{userAttrs:_,clearProps:S}=(0,l.delimitProps)(u);return(0,i.jsx)(r.default,{...S,shadowVisibility:(()=>{if("lastVisible"===t)return n.StickyShadowVisibility.Visible;else return t})(),fixedZIndex:e,zIndex:u.zIndex,backgroundStyle:u.backgroundStyle,mode:c,position:(()=>{if("object"==typeof u.position&&u.position.horizontal)return horizontal;else if("object"==typeof u.position&&u.position.vertical)return;else if("string"==typeof u.position)return u.position})(),offsetLeft:d,subPixelArtifactFix:a,pixelRatioBugFix:f,_isIosZIndexOptimized:h,onFixedCallback:u.onFixedCallback,ref:k,stickyModel:p.models?p.models[b]:void 0,setStickyId:y,register:p.registerCallback,unregister:p.unregisterCallback,modeChanged:p.modeChangedCallback,offsetChanged:p.offsetChangedCallback,initialVerticalScrollPosition:p.initialVerticalScrollPosition,attrs:_,wasabyContext:(()=>{const t=Object.keys(u.context||{}).length,e=Object.keys(u.wasabyContext||{}).length;if(e&&t)return{...u.context,...u.wasabyContext};if(t)return u.context;if(e)return u.wasabyContext;else return{}})(),content:u.content,shadowMode:u.shadowMode})}))),e}(0,{},t,e,S,C,V,i,"undefined"==typeof css_Controls_stickyBlock||css_Controls_stickyBlock),W=function(t){"use strict";var e=["_onFixedCallback","_options"];return t.g({v:1,m:"wml!Controls/_stickyBlock/WasabyWrappers/StickyBlockWasaby/StickyBlockWasaby",d:t.d(["Controls/_stickyBlock/ContextConsumingWrappers/StickyBlockReact"],arguments,1),t:[t.r(((t,e)=>[t.C(e,"ws:Controls/_stickyBlock/ContextConsumingWrappers/StickyBlockReact",{K:"0_",O:t.s(e,{onFixedCallback:t.m(e,1)},t.m(e,0)),m:"attribute",c:!0,i:0})]))],p:e.slice(0,1),e:[(t,i)=>t.g(i,[e[1]]),(t,i)=>t.g(i,[e[0]])],i:[[[0]]]})}(u,G),A=function(t){"use strict";var e=["_onFixedCallback","_options"];return t.g({v:1,m:"wml!Controls/_stickyBlock/WasabyWrappers/StickyGroupedBlockWasaby/StickyGroupedBlockWasaby",d:t.d(["Controls/_stickyBlock/StickyGroupedBlock"],arguments,1),t:[t.r(((t,e)=>[t.C(e,"ws:Controls/_stickyBlock/StickyGroupedBlock",{K:"0_",O:t.s(e,{onFixedCallback:t.m(e,0)},t.m(e,1)),m:"attribute",c:!0,i:0})]))],p:e.slice(0,1),e:[(t,i)=>t.g(i,[e[0]]),(t,i)=>t.g(i,[e[1]])],i:[[[1]]]})}(u,D),Y=function(t,e,i,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class s extends i.Control{constructor(){super(...arguments),this._template=o,this._onFixedCallback=this._onFixed.bind(this)}_onFixed(t){this._notify("fixed",[t,!0],{bubbling:!0})}}return e.default=s,e}(0,{},r,W),J=Y,U=function(t,e,i,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class s extends i.Control{constructor(){super(...arguments),this._template=o,this._onFixedCallback=this._onFixed.bind(this)}_onFixed(t){this._notify("fixed",[t,!0],{bubbling:!0})}}return e.default=s,e}(0,{},r,A),$=U,K=function(t,e,i,o,s,n,r){"use strict";return Object.defineProperty(e,"__esModule",{value:!0}),e.default=o.forwardRef((function({offsetTop:t=0,...e},l){const c=o.useContext(s.StickyContext),d=o.useContext(s.StickyGroupContext),[a,f]=o.useState(""),h=o.useCallback((t=>{f(t)}),[]),{clearProps:u,userAttrs:k}=(0,n.delimitProps)(e);return(0,i.jsx)(r.default,{children:e.children,shadowVisibility:e.shadowVisibility,offsetTop:t,mode:u.mode,position:u.position,stickyModel:c.models&&c.models[a],initialScrollPosition:c.initialScrollPosition,scrollState:d.scrollState,forceInitialScrollPosition:e.forceInitialScrollPosition,content:e.content,onFixed:e.onFixed,fixedPositionInitial:e.fixedPositionInitial,ref:l,attrs:k,registerCallback:d.registerCallback,addedBlockInGroupCallback:d.addedBlockInGroupCallback,removedBlockInGroupCallback:d.removedBlockInGroupCallback,unregisterCallback:d.unregisterCallback,modeChangedCallback:d.modeChangedCallback,offsetChangedCallback:d.offsetChangedCallback,groupSizeChangedCallback:d.groupSizeChangedCallback,groupChangeFixedPositionCallback:d.groupChangeFixedPositionCallback,setStickyGroupId:h})})),e}(0,{},t,e,S,i,j),Z=K,p.isStickyHidden=p._StickyBlockReactView=p.getStickyHeadersWidth=p.getStickyHeadersHeight=p.getStickyOffset=p.getNextStickyId=p.isStickySupport=p._StickyGroupContext=p.StickyContext=p.StickyMode=p.ScrollShadowVisibility=p.StickyHorizontalPosition=p.StickyVerticalPosition=p.TypeFixedBlocks=p.StickyPosition=p._StickyController=p.StickyGroup=p.StickyGroupedBlock=p.StickyBlock=void 0,Object.defineProperty(p,"StickyBlock",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(p,"StickyGroupedBlock",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(p,"StickyGroup",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(p,"_StickyController",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(p,"StickyPosition",{enumerable:!0,get:function(){return B.StickyPosition}}),Object.defineProperty(p,"TypeFixedBlocks",{enumerable:!0,get:function(){return B.TypeFixedBlocks}}),Object.defineProperty(p,"StickyVerticalPosition",{enumerable:!0,get:function(){return B.StickyVerticalPosition}}),Object.defineProperty(p,"StickyHorizontalPosition",{enumerable:!0,get:function(){return B.StickyHorizontalPosition}}),Object.defineProperty(p,"ScrollShadowVisibility",{enumerable:!0,get:function(){return B.ScrollShadowVisibility}}),Object.defineProperty(p,"StickyMode",{enumerable:!0,get:function(){return B.Mode}}),Object.defineProperty(p,"ScrollShadowVisibility",{enumerable:!0,get:function(){return B.ScrollShadowVisibility}}),Object.defineProperty(p,"StickyContext",{enumerable:!0,get:function(){return v.StickyContext}}),Object.defineProperty(p,"_StickyGroupContext",{enumerable:!0,get:function(){return v.StickyGroupContext}}),Object.defineProperty(p,"isStickySupport",{enumerable:!0,get:function(){return P.isStickySupport}}
10),Object.defineProperty(p,"getNextStickyId",{enumerable:!0,get:function(){return P.getNextId}}),Object.defineProperty(p,"getStickyOffset",{enumerable:!0,get:function(){return P.getOffset}}),Object.defineProperty(p,"isStickyHidden",{enumerable:!0,get:function(){return P.isHidden}}),Object.defineProperty(p,"getStickyHeadersHeight",{enumerable:!0,get:function(){return T.getHeadersHeight}}),Object.defineProperty(p,"getStickyHeadersWidth",{enumerable:!0,get:function(){return T.getHeadersWidth}}),p._StickyBlockReactView=N.default,p}));
11define("Controls/hooks",["react","WasabyLoader/ModulesLoader","Controls/popup","require","exports"],(function(e,r,t,u,n){var o,s,c,a,f,d,i,l,p,b,y,v;return Object.defineProperty(n,"__esModule",{value:!0}),o=function(e,r,t,u,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.useDependencyLoader=void 0;const{useCallback:o,useRef:s,useEffect:c}=t;return r.useDependencyLoader=function(e){const r=s(),t=s(),a=o((()=>{if(!t.current)t.current=Promise.all(e.map((e=>(0,n.loadAsync)(e))))}),[]),f=o((()=>
11{if(!r.current)r.current=new u.DependencyTimer;r.current.start(a)}),[]),d=o((()=>{var e;null===(e=r.current)||void 0===e||e.stop()}),[]);return c((()=>()=>{var e;null===(e=r.current)||void 0===e||e.stop(),r.current=null}),[]),{onMouseEnter:f,onMouseLeave:d}},r}(0,{},e,t,r),s=o,c=function(e,r,t,u){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.useDeprecatedStore=void 0;const{useRef:n,useEffect:o,useMemo:s,useState:c}=u,a=()=>(0,t.loadSync)("Controls/Store");return r.useDeprecatedStore=function(e){const r=n([]),t=e.values||[],[u,f]=c(0),d=s((()=>{const e={};return t.forEach((r=>{Object.defineProperty(e,r,{get:()=>a().get(r),set(e){if(this[r]!==e)a().dispatch(r,e),f(u+1)}})})),e}),[e.values,u]);return o((()=>(r.current=Object.entries(e.handlers||{}).map((([e,r])=>a().onPropertyChanged(e,r))),()=>{r.current.forEach((e=>{a().unsubscribe(e)}))})),[]),{values:d}},r}(0,{},r,e),a=c,f=function(e,r,t){"use strict";function u(e,r){const u=t.useRef(e);return t.useLayoutEffect((()=>{u.current=e}),r),t.useCallback(((...e)=>{var r;return null===(r=u.current)||void 0===r?void 0:r.call(u,...e)}),[])}return Object.defineProperty(r,"__esModule",{value:!0}),r.useHandlerSafe=r.useHandler=void 0,r.useHandler=u,r.useHandlerSafe=function(e,r,t){return u(((...t)=>{const u=r(...t);if(u)return e(...u)}),t)},r}(0,{},e),d=f,i=function(e,r,t){"use strict";return Object.defineProperty(r,"__esModule",{value:!0}),r.useLayoutRerenderEffect=void 0,r.useLayoutRerenderEffect=function(e,r){const u=(0,t.useRef)(!1);(0,t.useLayoutEffect)((()=>{if(u.current)return e();else u.current=!0}),r)},r}(0,{},e),l=i,p=function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.usePreviousProps=void 0;return r.usePreviousProps=(e,r={})=>{const u=(0,t.useRef)(r);return(0,t.useEffect)((()=>{u.current=e})),u.current},r}(0,{},e),b=p,y=function(e,r,t){"use strict";return Object.defineProperty(r,"__esModule",{value:!0}),r.useRerenderEffect=void 0,r.useRerenderEffect=function(e,r){const u=(0,t.useRef)(!1);(0,t.useEffect)((()=>{if(u.current)return e();else u.current=!0}),r)},r}(0,{},e),v=y,n.useLayoutRerenderEffect=n.useRerenderEffect=n.useDeprecatedStore=n.useDependencyLoader=n.usePreviousProps=n.useStableCallbackSafe=n.useHandlerSafe=n.useStableCallback=n.useHandler=void 0,Object.defineProperty(n,"useHandler",{enumerable:!0,get:function(){return d.useHandler}}),Object.defineProperty(n,"useStableCallback",{enumerable:!0,get:function(){return d.useHandler}}),Object.defineProperty(n,"useHandlerSafe",{enumerable:!0,get:function(){return d.useHandlerSafe}}),Object.defineProperty(n,"useStableCallbackSafe",{enumerable:!0,get:function(){return d.useHandlerSafe}}),Object.defineProperty(n,"usePreviousProps",{enumerable:!0,get:function(){return b.usePreviousProps}}),Object.defineProperty(n,"useDependencyLoader",{enumerable:!0,get:function(){return s.useDependencyLoader}}),Object.defineProperty(n,"useDeprecatedStore",{enumerable:!0,get:function(){return a.useDeprecatedStore}}),Object.defineProperty(n,"useRerenderEffect",{enumerable:!0,get:function(){return v.useRerenderEffect}}),Object.defineProperty(n,"useLayoutRerenderEffect",{enumerable:!0,get:function(){return l.useLayoutRerenderEffect}}),n}));
12define("UI/NodeCollector",["require","exports","UICore/NodeCollector"],(function(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.getClosestControl=o.goUpByControlTree=void 0,Object.defineProperty(o,"goUpByControlTree",{enumerable:!0,get:function(){return t.goUpByControlTree}}),Object.defineProperty(o,"getClosestControl",{enumerable:!0,get:function(){return t.getClosestControl}})}));
13define("SabyPage/frameLayout",["react/jsx-runtime","react","UI/Focus","UI/Async","SabyPage/mainLayout","Controls/dataSource","require","exports"],(function(e,t,a,n,o,r,i,l){var s,p,m,c;return Object.defineProperty(l,"__esModule",{value:!0}),s=function(e,t,a,n,o,r,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContentTemplate=void 0,t.ContentTemplate=(0,n.forwardRef)((function(e,t){return(0,a.jsx)(o.FocusRoot,{ref:t,className:(e.className||"")+" sabyPage-MainLayout__workspaceWrapper controls-Popup__dialog-target-container tw-flex tw-flex-col tw-min-h-0 tw-grow-1 tw-shrink-1",children:(0,a.jsx)(i.error.Container,{viewConfig:e.workspaceErrorConfig,children:(0,a.jsx)(s,{prefetch:e.prefetch,workspaceConfig:e.workspaceConfig})})})})),t.ContentTemplate.displayName="SabyPage/frameLayout:ContentTemplate";const l=(0,r.lazy)((()=>(0,r.importer)("FrameRouting/sitesRender:View"))),s=(0,n.forwardRef)((function(e,t){var n,o,r;const i=null!==(o=null===(n=e.workspaceConfig)||void 0===n?void 0:n.templateOptions)&&void 0!==o?o:{};if(null===(r=e.workspaceConfig)||void 0===r?void 0:r.templateName)return(0,a.jsx)(p,{ref:t,className:"sabyPage-MainLayout__workspaceTemplate",templateName:e.workspaceConfig.templateName,templateOptions:i});else return(0,a.jsx)(l,{ref:t,className:"sabyPage-MainLayout__workspaceTemplate ",...i})})),p=(0,n.memo)((0,n.forwardRef)((function(e,t){const o=(0,n.useMemo)((()=>(0,r.lazy)((()=>(0,r.importer)(e.templateName)))),[e.templateName]);return(0,a.jsx)(o,{ref:t,...e.templateOptions,className:e.className})})));return t}(0,{},e,t,a,n,r),p=s,m=function(e,t,a){"use strict";
13return Object.defineProperty(t,"__esModule",{value:!0}),t.default={...a.PageConfig,bodyClass:"",templateOptions:{...a.PageConfig.templateOptions,templateContentName:"SabyPage/frameLayout:ContentTemplate",adaptiveTemplateContentName:null,sidebarSettings:{visible:!1,noticeCenterVisible:!1,rightPanelVisible:!1,rightPanelVisibleOnPanel:!0,stretchWidth:!0,pageResizable:!1,width:"max"}},getHeadingCallback:"FrameRouting/sitesRender:getHeadingCallback",contentConfig:{allowAdaptive:!0}},t}(0,{},o),c=m,l.ContentTemplate=l.PageConfig=void 0,Object.defineProperty(l,"PageConfig",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(l,"ContentTemplate",{enumerable:!0,get:function(){return p.ContentTemplate}}),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.