1define("Dashboard/new/common",["ViewSettings/controller","Types/object","Frame/base","require","exports","tslib"],(function(e,t,i,n,o,a){var l,s,r,c,d,_,S,u,E,T,I,g,f,M;return Object.defineProperty(o,"__esModule",{value:!0}),l=function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LAYOUT_VISIBLE_WIDTH=t.BREAKPOINTS=t.PADDING_ADAPTIVE=t.LEFT_PADDING=t.FILTER_META_ID=t.SEARCH_SETTINGS_META_ID=t.NOTICE_SETTINGS_META_ID=t.NOTICE_FRAME_ID=void 0;t.NOTICE_FRAME_ID="notice";t.NOTICE_SETTINGS_META_ID="NoticeSettings";t.SEARCH_SETTINGS_META_ID="searchSettings";t.FILTER_META_ID="Filter";t.LEFT_PADDING=4;t.PADDING_ADAPTIVE=8;const i={desktop:{min:1440},laptop:{max:1439,min:1280},tablet:{max:1279,min:768},phone:{max:767}};t.BREAKPOINTS=i;const n={l:i.desktop.min,m:i.laptop.min,s:i.tablet.min,xs:i.phone.max};return t.LAYOUT_VISIBLE_WIDTH=n,t}(0,{}),s=l,r=function(e,t,i){"use strict";return Object.defineProperty(t,"__esModule",{value:!0}),t.isFrameEqual=void 0,t.isFrameEqual=function(e,t){let n=!0;const o=Object.keys(e||{}),a=Object.keys(t||{});if(o.some((e=>!a.includes(e)))||a.some((e=>!o.includes(e))))n=!1;else Object.keys(e).forEach((o=>{const a=new i.JsonmlFrameFacade(e[o]),l=new i.JsonmlFrameFacade(t[o]);n=n&&a.isEqualContent(l)}));return n},t}(0,{},i),c=r,d=function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reloadDashboard=void 0;return t.reloadDashboard=(e,t)=>{var i;const n=e.state.site.getPage("Dashboard"),o=null===(i=e._config.site)||void 0===i?void 0:i.pages[0],a=null==n?void 0:n.getContent().toJSONML();return e.reload({...e._config,...e.state,readOnly:!0,dataMode:t,site:{...e._config.site,pages:[{...o,content:a}]},selectedSidebarItemId:e.state.selectedSidebarItemId})},t}(0,{}),_=d,S=function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSizeByBreakpoint=void 0;return t.getSizeByBreakpoint=e=>{if(!e)return"l";const t=e.min,n=e.max,o={[i.BREAKPOINTS.desktop.min]:"l",[i.BREAKPOINTS.laptop.min]:"m",[i.BREAKPOINTS.tablet.min]:"s"}[t];return{[i.BREAKPOINTS.laptop.max]:"m",[i.BREAKPOINTS.tablet.max]:"s",[i.BREAKPOINTS.phone.max]:"xs"}[n]||o||"l"},t}(0,{},l),u=S,E=function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prepareEditResultData=void 0;return t.prepareEditResultData=e=>{const t={dashboardWidgetsByLayout:e.frames.Dashboard,noticeWidgetsByLayout:e.frames.notice,siteName:e.siteName},o=e.meta;if(null==o?void 0:o.noticeMode)o[i.NOTICE_SETTINGS_META_ID]={noticeMode:{...n.DEFAULT_NOTICE_MODE,...o.noticeMode||{}}},delete o.noticeMode;return{resultValue:t,resultMeta:o}},t}(0,{},l,e),T=E,I=function(e,t,i,n,o){"use strict";function a(e){const t=null==e?void 0:e.noticeMode,i={};if((null==t?void 0:t.l)&&t.l!==n.DEFAULT_NOTICE_MODE.l)i.l=t.l;if((null==t?void 0:t.m)&&t.m!==n.DEFAULT_NOTICE_MODE.m)i.m=t.m;if((null==t?void 0:t.s)&&t.s!==n.DEFAULT_NOTICE_MODE.s)i.s=t.s;return i}function l(e){var t,i;let n;const o=null==e?void 0:e.globalFilterConfig;if(o)n={globalFilterConfig:o};const a=null===(t=null==e?void 0:e.noticeSettings)||void 0===t?void 0:t.noticeMode;if(a)n={...n||{},noticeMode:a};const l=null===(i=null==e?void 0:e.searchSettings)||void 0===i?void 0:i.searchConfigs;if(l)n={...n||{},searchSettings:l};return n}return Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultSettings=t.getResultSettings=t.getSettings=t.checkIsDefaultSettings=t.checkIsSettingsChanged=t.getNoticeMode=void 0,t.getNoticeMode=a,t.checkIsSettingsChanged=function(e){return!(0,i.isEqual)(e.globalFilterConfig,e.initialGlobalFilterConfig)||!(0,i.isEqual)(e.noticeSettings,e.initialNoticeSettings)||!(0,i.isEqual)(e.searchSettings,e.initialSearchSettings)},t.checkIsDefaultSettings=function(e){var t,n;const o=(0,i.isEqual)(e.globalFilterConfig,e.defaultGlobalFilterConfig),a=e.noticeSettings?(0,i.isEqual)(null===(t=e.noticeSettings)||void 0===t?void 0:t.noticeMode,null===(n=e.defaultNoticeSettings)||void 0===n?void 0:n.noticeMode):!0,l=(0,i.isEqual)(e.searchSettings,e.defaultSearchSettings);return o&&a&&l},t.getSettings=function({meta:e,initialMeta:t,defaultMeta:i}){var n;const l=e&&e[o.FILTER_META_ID]?{globalFilterConfig:e[o.FILTER_META_ID]}:void 0,s=e&&e[o.NOTICE_SETTINGS_META_ID]?{noticeSettings:{noticeMode:a(e[o.NOTICE_SETTINGS_META_ID])}}:void 0,r=e&&e[o.SEARCH_SETTINGS_META_ID]?{searchSettings:e[o.SEARCH_SETTINGS_META_ID]}:void 0,c=i&&i[o.FILTER_META_ID]?{defaultGlobalFilterConfig:i[o.FILTER_META_ID]}:void 0,d=i&&i[o.SEARCH_SETTINGS_META_ID]?{defaultSearchSettings:i[o.SEARCH_SETTINGS_META_ID]}:void 0,_=i&&(i.noticeMode||(null===(n=i[o.NOTICE_SETTINGS_META_ID])||void 0===n?void 0:n.noticeMode)),S=_?{defaultNoticeSettings:{noticeMode:a({noticeMode:_})}}:void 0,u=t&&t[o.FILTER_META_ID]?{initialGlobalFilterConfig:t[o.FILTER_META_ID]}:void 0,E=t&&t[o.NOTICE_SETTINGS_META_ID]?{initialNoticeSettings:{noticeMode:a(t[o.NOTICE_SETTINGS_META_ID])}}:void 0;return{...l,...c,...u,...t&&t[o.SEARCH_SETTINGS_META_ID]?{initialSearchSettings:t[o.SEARCH_SETTINGS_META_ID]}:void 0,...r,...d,...s,...E,...S}},t.getResultSettings=l,t.getDefaultSettings=function(e){return l({globalFilterConfig:e.defaultGlobalFilterConfig,searchSettings:e.defaultSearchSettings,noticeSettings:e.defaultNoticeSettings})},t}(0,{},t,e,l),g=I,f=function(e,t,i,n){"use strict";
1return Object.defineProperty(t,"__esModule",{value:!0}),t.buildFramesBySite=void 0,t.buildFramesBySite=function(e=[],t=[]){const o={},a=e=>{const t=new i.JsonmlFrameFacade(e.content),a=t.getScreenSizes();if(a)a.forEach((i=>{const a=i.min?i.min+1:i.max-1,l=t.setMainScreenSize(i).applyScreenSize(a).toJSONML();if(delete l[1].screens,"notice"===e.id)o[e.id]=l;else if(i.max)o[(0,n.getSizeByBreakpoint)(i)]=l;else o.l=l}));else if("notice"===e.id)o[e.id]=e.content;else o.l=e.content};return e.forEach(a),t.forEach(a),o},t}(0,{},i,S),M=f,a.__exportStar(T,o),a.__exportStar(s,o),a.__exportStar(g,o),a.__exportStar(M,o),a.__exportStar(u,o),a.__exportStar(c,o),a.__exportStar(_,o),o}));
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.