/*! For license information please see 54.4ec5f539.chunk.js.LICENSE.txt */ (this["webpackJsonpsimpro-web"]=this["webpackJsonpsimpro-web"]||[]).push([[54],{1610:function(e,t,n){"use strict";var r=n(23),o=n(563),a=n(59),i=n(33),l=n(2),c=n.n(l),s=n(80),u=n.n(s),f=n(183),p=n.n(f),d=n(562),m=n.n(d),g=n(1081),b=n(876),v=n(569),h=["className","cssModule","right","tag","flip","modifiers","persist","positionFixed","container"];function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t-1?this.getRole():void 0,n=Object(m.q)(this.props,["toggle"]),a=n.className,i=n.cssModule,l=n.divider,s=n.tag,u=n.header,f=n.active,d=n.text,b=Object(o.a)(n,g),v=Object(m.p)(p()(a,{disabled:b.disabled,"dropdown-item":!l&&!u&&!d,active:f,"dropdown-header":u,"dropdown-divider":l,"dropdown-item-text":d}),i);return"button"===s&&(u?s="h6":l?s="div":b.href?s="a":d&&(s="span")),c.a.createElement(s,Object(r.a)({type:"button"===s&&(b.onClick||this.props.toggle)?"button":void 0},b,{tabIndex:e,role:t,className:v,onClick:this.onClick}))},t}(c.a.Component);v.propTypes=b,v.defaultProps={tag:"button",toggle:!0},v.contextType=d.a,t.a=v},1669:function(e,t,n){"use strict";var r=n(23),o=n(59),a=n(583),i=n(33),l=n(2),c=n.n(l),s=n(80),u=n.n(s),f=n(562),p=n.n(f),d=n(636),m=n.n(d),g=n(905),b=n.n(g),v=n(736),h=n.n(v),y=n(677),A=n.n(y),O=n(976),j=n.n(O),w=n(918),C=n(851),x=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(l&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}var T=window.localStorage.getItem("token"),M={headers:{Authorization:"Bearer ".concat(T),"Content-type":"application/json"}},Q=function(e){Object(c.a)(n,e);var t=Object(s.a)(n);function n(e){var r;return Object(i.a)(this,n),(r=t.call(this,e)).getDataAlert=Object(a.a)(R().mark((function e(){var t,n,o;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t="",n="",1===parseInt(localStorage.getItem("role_id"))?(t=w.g,n={paging:{start:0,length:-1},columns:[{name:"status_view",logic_operator:"=",value:"false",operator:"AND"}],joins:[{name:"config_alert",column_join:"config_alert_id",column_results:["nama","keterangan"]},{name:"laporan_planning",column_join:"laporan_planning_id",column_results:["deskripsi","status","jumlah_pekerjaan"]},{name:"m_satuan",column_join:"satuan_id",column_results:["name","description"]}],orders:{columns:["created_at"],ascending:!1}}):(t=w.e,n={paging:{start:0,length:-1},columns:[{name:"status_view",logic_operator:"=",value:"false",operator:"AND"},{name:"user_id",logic_operator:"=",value:localStorage.getItem("user_id"),operator:"AND"}],joins:[{name:"alert",column_join:"alert_id",column_results:["nama","keterangan"]},{name:"config_alert",column_join:"config_alert_id",column_results:["nama","keterangan"]},{name:"laporan_planning",column_join:"laporan_planning_id",column_results:["deskripsi","status","jumlah_pekerjaan"]},{name:"m_satuan",column_join:"satuan_id",column_results:["name","description"]},{name:"m_users",column_join:"user_id",column_results:["name","username","email","phone_number","gender"]}],orders:{columns:["created_at"],ascending:!1}}),localStorage.getItem("userConfigAlert")?1===parseInt(localStorage.getItem("role_id"))?n.columns.push({name:"config_alert_id",logic_operator:"IN",value:localStorage.getItem("userConfigAlert"),operator:"AND"}):n.columns.push({name:"config_alert_id",logic_operator:"IN",value:localStorage.getItem("userConfigAlert"),operator:"AND",table_name:"alert"}):1===parseInt(localStorage.getItem("role_id"))?n.columns.push({name:"config_alert_id",logic_operator:"IN",value:"0",operator:"AND"}):n.columns.push({name:"config_alert_id",logic_operator:"IN",value:"0",operator:"AND",table_name:"alert"}),e.next=6,S.a.post(t,n,M).then((function(e){return e})).catch((function(e){return e.response}));case 6:(o=e.sent)&&o.data&&200==o.data.code&&(console.log("cek cek cek 45",o.data.data),r.setState({dataAlert:o.data.data,totalAlert:o.data.totalRecord}));case 8:case"end":return e.stop()}}),e)}))),r.getLogoImage=function(){var e=f.a.createElement("img",{style:{width:"100%",height:"100%"},src:E.a});switch(w.L){case"KIT":e=f.a.createElement("img",{style:{width:"100%",height:"100%"},src:P.a});break;case"NAWAKARA":e=f.a.createElement("img",{style:{width:"32%",height:"32%",display:"flex",justifyContent:"center"},src:D.a});break;case"ADW":e=f.a.createElement("div",{style:{fontWeight:"bold",fontSize:30,fontFamily:'Calibri, Candara, Segoe, "Segoe UI", Optima, Arial, sans-serif',textAlign:"center",marginLeft:25,marginRigth:20}},f.a.createElement("span",{style:{color:"#4472C4"}},"OS"),f.a.createElement("span",{style:{color:"#ED7D31"}},"PRO"));break;default:e=f.a.createElement("img",{style:{width:"100%",height:"100%"},src:E.a})}return e},r.getLogo=function(){return f.a.createElement("div",{style:Object(o.a)({width:"10%"},"NAWAKARA"==w.L&&{display:"flex",justifyContent:"center"})},r.getLogoImage())},r.dropDownMenu=function(){var e=r.state,t=e.dataAlert,n=e.totalAlert,o=(t.length,0);return f.a.createElement(A.a,{style:{width:"300px",paddingTop:0,borderRadius:"10px"}},f.a.createElement(A.a.Item,{key:"201",style:{backgroundColor:"lightgray",fontWeight:"bold",borderBottom:"1px solid black",borderRadius:"10px 10px 0 0",cursor:"default"}},"Notifications"),t.map((function(e,t){if(++o<6)return f.a.createElement(A.a.Item,{onClick:r.gotoReportAlert,key:t},f.a.createElement("p",{style:{whiteSpace:"normal",textAlign:"flex-start"}},e.keterangan?e.keterangan:e.join.alert_keterangan?e.join.alert_keterangan:"-"))})),n>5?f.a.createElement(f.a.Fragment,null,f.a.createElement(A.a.Divider,null),f.a.createElement(A.a.Item,{onClick:r.gotoReportAlert,key:"202",style:{textAlign:"center",fontWeight:"bold"}},"Lihat Selengkapnya")):null,0===n?f.a.createElement(A.a.Item,{key:"202",style:{textAlign:"center",cursor:"default"}},"Tidak ada notifikasi untuk saat ini!"):null)},r.gotoReportAlert=function(){r.props.history.replace("/laporan-alert")},r.onReadNotif=function(e){if(!e){var t=r.state.dataAlert,n=0,o=[];t.map((function(e,t){++n<6&&o.push(e.id)})),r.setState({listReadNotif:o})}},r.markAsRead=Object(a.a)(R().mark((function e(){var t,n,o,a;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("markAsRead"),t=r.state.listReadNotif,n={status_view:!0},o=[],a=[],!(t.length>0)){e.next=9;break}return 1===parseInt(localStorage.getItem("role_id"))?t.map((function(e,t){var r=Object(w.h)(e);o.push(S.a.put(r,n,M).then((function(e){return a.push(e)})))})):t.map((function(e,t){var r=Object(w.f)(e);o.push(S.a.put(r,n,M).then((function(e){return a.push(e)})))})),e.next=9,Promise.all(o);case 9:r.setState({listReadNotif:[]},(function(){}));case 10:case"end":return e.stop()}}),e)}))),r.getHeaderMenu=function(){var e=r.state;e.fullname;return"kominfo"==e.u_group?f.a.createElement("div",{className:"dashboard-title"},f.a.createElement("h5",null,"Layanan Telekomunikasi")):f.a.createElement(d.a,{className:"d-md-down-none",navbar:!0})},r.state={fullname:localStorage.getItem("fullname"),u_group:localStorage.getItem("u_group"),dataAlert:[],totalAlert:0,listReadNotif:[]},r.callAlert="",r}return Object(l.a)(n,[{key:"componentDidMount",value:function(){this.getLogo(),this.getHeaderMenu()}},{key:"componentDidUpdate",value:function(e,t){this.state.listReadNotif!==t.listReadNotif&&this.state.listReadNotif.length>0&&this.markAsRead()}},{key:"componentWillUnmount",value:function(){clearInterval(this.callAlert)}},{key:"render",value:function(){var e=this,t=this.props;t.children,Object(r.a)(t,L);return f.a.createElement(f.a.Fragment,null,f.a.createElement(j.k,{className:"d-lg-none",display:"md",mobile:!0}),this.getLogo(),f.a.createElement(j.k,{className:"d-md-down-none",display:"lg"}),this.getHeaderMenu(),f.a.createElement(d.a,{className:"ml-auto",navbar:!0},f.a.createElement(O.default,{onVisibleChange:function(t){return e.onReadNotif(t)},overlay:this.dropDownMenu,trigger:["click"]},f.a.createElement(m.a,{className:"d-md-down-none"},f.a.createElement(p.NavLink,{to:"#",className:"nav-link"},f.a.createElement("i",{className:"icon-bell"}),f.a.createElement(g.a,{pill:!0,color:this.state.totalAlert>0?"danger":"default"},this.state.totalAlert>0?this.state.totalAlert:null)))),f.a.createElement(b.a,{nav:!0,direction:"down"},f.a.createElement(v.a,{nav:!0},f.a.createElement("img",{src:x.a,className:"img-avatar",alt:"siopas_user"})),f.a.createElement(h.a,{right:!0},f.a.createElement(y.a,{header:!0,tag:"div",className:"text-center"},localStorage.getItem("user_name")),f.a.createElement(y.a,{onClick:function(t){return e.props.onLogout(t)}},f.a.createElement("i",{className:"fa fa-lock"})," Logout")))))}}]),n}(u.Component);Q.defaultProps={},t.default=Q},599:function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return c}));var r=n(585),o=function(){return{height:0,opacity:0}},a=function(e){return{height:e.scrollHeight,opacity:1}},i=function(e,t){return!0===(null===t||void 0===t?void 0:t.deadline)||"height"===t.propertyName},l={motionName:"ant-motion-collapse",onAppearStart:o,onEnterStart:o,onAppearActive:a,onEnterActive:a,onLeaveStart:function(e){return{height:e?e.offsetHeight:0}},onLeaveActive:o,onAppearEnd:i,onEnterEnd:i,onLeaveEnd:i,motionDeadline:500},c=(Object(r.a)("bottomLeft","bottomRight","topLeft","topRight"),function(e){return void 0===e||"topLeft"!==e&&"topRight"!==e?"slide-up":"slide-down"}),s=function(e,t,n){return void 0!==n?n:"".concat(e,"-").concat(t)};t.a=l},605:function(e,t,n){"use strict";n.r(t);var r=n(668);t.default=r.b},608:function(e,t,n){"use strict";var r=n(561),o=n(2),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},i=n(564),l=function(e,t){return o.createElement(i.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:a}))};l.displayName="RightOutlined";t.a=o.forwardRef(l)},628:function(e,t,n){"use strict";var r=n(561),o=n(2),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},i=n(564),l=function(e,t){return o.createElement(i.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:a}))};l.displayName="LeftOutlined";t.a=o.forwardRef(l)},634:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r={adjustX:1,adjustY:1},o=[0,0],a={left:{points:["cr","cl"],overflow:r,offset:[-4,0],targetOffset:o},right:{points:["cl","cr"],overflow:r,offset:[4,0],targetOffset:o},top:{points:["bc","tc"],overflow:r,offset:[0,-4],targetOffset:o},bottom:{points:["tc","bc"],overflow:r,offset:[0,4],targetOffset:o},topLeft:{points:["bl","tl"],overflow:r,offset:[0,-4],targetOffset:o},leftTop:{points:["tr","tl"],overflow:r,offset:[-4,0],targetOffset:o},topRight:{points:["br","tr"],overflow:r,offset:[0,-4],targetOffset:o},rightTop:{points:["tl","tr"],overflow:r,offset:[4,0],targetOffset:o},bottomRight:{points:["tr","br"],overflow:r,offset:[0,4],targetOffset:o},rightBottom:{points:["bl","br"],overflow:r,offset:[4,0],targetOffset:o},bottomLeft:{points:["tl","bl"],overflow:r,offset:[0,4],targetOffset:o},leftBottom:{points:["br","bl"],overflow:r,offset:[-4,0],targetOffset:o}}},641:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}));var r=n(585),o=Object(r.a)("success","processing","error","default","warning"),a=Object(r.a)("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime")},642:function(e,t,n){"use strict";n.r(t);var r=n(563),o=n(565),a=n(23),i=n(562),l=n.n(i),c=n(567),s=n(561),u=n(568),f=n(2),p=n(606),d=n(634),m=function(e){var t=e.overlay,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle;return f.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},"function"===typeof t?t():t)},g=function(e,t){var n=e.overlayClassName,r=e.trigger,o=void 0===r?["hover"]:r,i=e.mouseEnterDelay,l=void 0===i?0:i,g=e.mouseLeaveDelay,b=void 0===g?.1:g,v=e.overlayStyle,h=e.prefixCls,y=void 0===h?"rc-tooltip":h,A=e.children,O=e.onVisibleChange,j=e.afterVisibleChange,w=e.transitionName,C=e.animation,x=e.motion,N=e.placement,E=void 0===N?"right":N,k=e.align,P=void 0===k?{}:k,B=e.destroyTooltipOnHide,D=void 0!==B&&B,I=e.defaultVisible,S=e.getTooltipContainer,L=e.overlayInnerStyle,R=Object(u.a)(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),T=Object(f.useRef)(null);Object(f.useImperativeHandle)(t,(function(){return T.current}));var M=Object(s.a)({},R);"visible"in e&&(M.popupVisible=e.visible);var Q=!1,z=!1;if("boolean"===typeof D)Q=D;else if(D&&"object"===Object(c.a)(D)){var F=D.keepParent;Q=!0===F,z=!1===F}return f.createElement(p.a,Object(a.a)({popupClassName:n,prefixCls:y,popup:function(){var t=e.arrowContent,n=void 0===t?null:t,r=e.overlay,o=e.id;return[f.createElement("div",{className:"".concat(y,"-arrow"),key:"arrow"},n),f.createElement(m,{key:"content",prefixCls:y,id:o,overlay:r,overlayInnerStyle:L})]},action:o,builtinPlacements:d.a,popupPlacement:E,ref:T,popupAlign:P,getPopupContainer:S,onPopupVisibleChange:O,afterPopupVisibleChange:j,popupTransitionName:w,popupAnimation:C,popupMotion:x,defaultPopupVisible:I,destroyPopupOnHide:Q,autoDestroy:z,mouseLeaveDelay:b,popupStyle:v,mouseEnterDelay:l},M),A)},b=Object(f.forwardRef)(g),v=n(580),h=n(771),y=n(641),A=n(599),O=n(651),j=n(579),w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o=0||r.indexOf("Bottom")>=0?a.top="".concat(o.height-t.offset[1],"px"):(r.indexOf("Top")>=0||r.indexOf("bottom")>=0)&&(a.top="".concat(-t.offset[1],"px")),r.indexOf("left")>=0||r.indexOf("Right")>=0?a.left="".concat(o.width-t.offset[0],"px"):(r.indexOf("right")>=0||r.indexOf("Left")>=0)&&(a.left="".concat(-t.offset[0],"px")),e.style.transformOrigin="".concat(a.left," ").concat(a.top)}},overlayInnerStyle:Y,arrowContent:f.createElement("span",{className:"".concat(T,"-arrow-content"),style:z}),motion:{motionName:Object(A.c)(M,"zoom-big-fast",e.transitionName),motionDeadline:1e3}}),Q?Object(j.a)(F,{className:V}):F)}));N.defaultProps={placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};t.default=N},651:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(23),o=n(634),a={adjustX:1,adjustY:1},i={adjustX:0,adjustY:0},l=[0,0];function c(e){return"boolean"===typeof e?e?a:i:Object(r.a)(Object(r.a)({},i),e)}function s(e){var t=e.arrowWidth,n=void 0===t?4:t,a=e.horizontalArrowShift,i=void 0===a?16:a,s=e.verticalArrowShift,u=void 0===s?8:s,f=e.autoAdjustOverflow,p=e.arrowPointAtCenter,d={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(i+n),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(u+n)]},topRight:{points:["br","tc"],offset:[i+n,-4]},rightTop:{points:["tl","cr"],offset:[4,-(u+n)]},bottomRight:{points:["tr","bc"],offset:[i+n,4]},rightBottom:{points:["bl","cr"],offset:[4,u+n]},bottomLeft:{points:["tl","bc"],offset:[-(i+n),4]},leftBottom:{points:["br","cl"],offset:[-4,u+n]}};return Object.keys(d).forEach((function(e){d[e]=p?Object(r.a)(Object(r.a)({},d[e]),{overflow:c(f),targetOffset:l}):Object(r.a)(Object(r.a)({},o.a[e]),{overflow:c(f)}),d[e].ignoreShake=!0})),d}},666:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(23),o=n(2),a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0&&void 0!==arguments[0]?arguments[0]:"";return e+=1,"".concat(t).concat(e)}}(),A=p.forwardRef((function(e,t){var n=e.prefixCls,s=e.className,A=e.trigger,O=e.children,j=e.defaultCollapsed,w=void 0!==j&&j,C=e.theme,x=void 0===C?"dark":C,N=e.style,E=void 0===N?{}:N,k=e.collapsible,P=void 0!==k&&k,B=e.reverseArrow,D=void 0!==B&&B,I=e.width,S=void 0===I?200:I,L=e.collapsedWidth,R=void 0===L?80:L,T=e.zeroWidthTriggerStyle,M=e.breakpoint,Q=e.onCollapse,z=e.onBreakpoint,F=b(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),H=Object(p.useContext)(g.d).siderHook,V=Object(p.useState)("collapsed"in F?F.collapsed:w),G=Object(a.a)(V,2),Y=G[0],U=G[1],J=Object(p.useState)(!1),X=Object(a.a)(J,2),Z=X[0],q=X[1];Object(p.useEffect)((function(){"collapsed"in F&&U(F.collapsed)}),[F.collapsed]);var K=function(e,t){"collapsed"in F||U(e),null===Q||void 0===Q||Q(e,t)},_=Object(p.useRef)();_.current=function(e){q(e.matches),null===z||void 0===z||z(e.matches),Y!==e.matches&&K(e.matches,"responsive")},Object(p.useEffect)((function(){function e(e){return _.current(e)}var t;if("undefined"!==typeof window){var n=window.matchMedia;if(n&&M&&M in v){t=n("(max-width: ".concat(v[M],")"));try{t.addEventListener("change",e)}catch(r){t.addListener(e)}e(t)}}return function(){try{null===t||void 0===t||t.removeEventListener("change",e)}catch(r){null===t||void 0===t||t.removeListener(e)}}}),[M]),Object(p.useEffect)((function(){var e=y("ant-sider-");return H.addSider(e),function(){return H.removeSider(e)}}),[]);var W=function(){K(!Y,"clickTrigger")},$=Object(p.useContext)(d.b).getPrefixCls,ee=p.useMemo((function(){return{siderCollapsed:Y}}),[Y]);return p.createElement(h.Provider,{value:ee},function(){var e,a=$("layout-sider",n),d=Object(f.a)(F,["collapsed"]),g=Y?R:S,b=m(g)?"".concat(g,"px"):String(g),v=0===parseFloat(String(R||0))?p.createElement("span",{onClick:W,className:u()("".concat(a,"-zero-width-trigger"),"".concat(a,"-zero-width-trigger-").concat(D?"right":"left")),style:T},A||p.createElement(i.a,null)):null,h={expanded:D?p.createElement(c.a,null):p.createElement(l.a,null),collapsed:D?p.createElement(l.a,null):p.createElement(c.a,null)}[Y?"collapsed":"expanded"],y=null!==A?v||p.createElement("div",{className:"".concat(a,"-trigger"),onClick:W,style:{width:b}},A||h):null,j=Object(o.a)(Object(o.a)({},E),{flex:"0 0 ".concat(b),maxWidth:b,minWidth:b,width:b}),w=u()(a,"".concat(a,"-").concat(x),(e={},Object(r.a)(e,"".concat(a,"-collapsed"),!!Y),Object(r.a)(e,"".concat(a,"-has-trigger"),P&&null!==A&&!v),Object(r.a)(e,"".concat(a,"-below"),!!Z),Object(r.a)(e,"".concat(a,"-zero-width"),0===parseFloat(b)),e),s);return p.createElement("aside",Object(o.a)({className:w},d,{style:j,ref:t}),p.createElement("div",{className:"".concat(a,"-children")},O),P||Z&&v?y:null)}())}));t.b=A},737:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},745:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(737);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t0),Object(o.a)(n,"".concat(v,"-rtl"),"rtl"===l),n),h),C=s.useMemo((function(){return{siderHook:{addSider:function(e){b((function(t){return[].concat(Object(r.a)(t),[e])}))},removeSider:function(e){b((function(t){return t.filter((function(t){return t!==e}))}))}}}}),[]);return s.createElement(p.Provider,{value:C},s.createElement(O,Object(i.a)({ref:t,className:w},j),y))})),b=d({suffixCls:"layout",tagName:"section",displayName:"Layout"})(g),v=d({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(m),h=d({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(m),y=d({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(m);t.e=b},770:function(e,t,n){"use strict";var r=n(23),o=n(567),a=n(565),i=n(563),l=n(608),c=n(562),s=n.n(c),u=n(759),f=n(729),p=n(580),d=n(2),m=n(771),g=n(666),b=n(651),v=n(579),h=n(585),y=n(690),A=n(605),O=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o=0?"".concat(t,"-slide-down"):"".concat(t,"-slide-up")}(),trigger:I,overlay:function(){var t,n=e.overlay;return t="function"===typeof n?n():n,t=d.Children.only("string"===typeof t?d.createElement("span",null,t):t),d.createElement(g.a,{prefixCls:"".concat(P,"-menu"),expandIcon:d.createElement("span",{className:"".concat(P,"-menu-submenu-arrow")},d.createElement(l.a,{className:"".concat(P,"-menu-submenu-arrow-icon")})),mode:"vertical",selectable:!1,onClick:F,validator:function(e){e.mode}},t)},placement:function(){var t=e.placement;return t?t.includes("Center")?t.slice(0,t.indexOf("Center")):t:"rtl"===y?"bottomRight":"bottomLeft"}(),onVisibleChange:M}),D)});x.Button=C,x.defaultProps={mouseEnterDelay:.15,mouseLeaveDelay:.1};var N=t.a=x},917:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",(function(){return r}))}}]);