/*! For license information please see 51.d355eb04.chunk.js.LICENSE.txt */ (this["webpackJsonpsimpro-web"]=this["webpackJsonpsimpro-web"]||[]).push([[51],{1013:function(e,t,n){"use strict";var r=n(23),o=n(59),a=n(582),i=n(33),l=n(2),c=n.n(l),s=n(80),u=n.n(s),p=n(560),f=n.n(p),d=n(569),m=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"],b={active:u.a.bool,"aria-label":u.a.string,block:u.a.bool,color:u.a.string,disabled:u.a.bool,outline:u.a.bool,tag:d.t,innerRef:u.a.oneOfType([u.a.object,u.a.func,u.a.string]),onClick:u.a.func,size:u.a.string,children:u.a.node,className:u.a.string,cssModule:u.a.object,close:u.a.bool},g=function(e){function t(t){var n;return(n=e.call(this,t)||this).onClick=n.onClick.bind(Object(a.a)(n)),n}Object(i.a)(t,e);var n=t.prototype;return n.onClick=function(e){if(!this.props.disabled)return this.props.onClick?this.props.onClick(e):void 0;e.preventDefault()},n.render=function(){var e=this.props,t=e.active,n=e["aria-label"],a=e.block,i=e.className,l=e.close,s=e.cssModule,u=e.color,p=e.outline,b=e.size,g=e.tag,h=e.innerRef,v=Object(o.a)(e,m);l&&"undefined"===typeof v.children&&(v.children=c.a.createElement("span",{"aria-hidden":!0},"\xd7"));var y="btn"+(p?"-outline":"")+"-"+u,A=Object(d.p)(f()(i,{close:l},l||"btn",l||y,!!b&&"btn-"+b,!!a&&"btn-block",{active:t,disabled:this.props.disabled}),s);v.href&&"button"===g&&(g="a");var O=l?"Close":null;return c.a.createElement(g,Object(r.a)({type:"button"===g&&v.onClick?"button":void 0},v,{className:A,ref:h,onClick:this.onClick,"aria-label":n||O}))},t}(c.a.Component);g.propTypes=b,g.defaultProps={color:"secondary",tag:"button"},t.a=g},1592:function(e,t,n){"use strict";var r=n(23),o=n(561),a=n(59),i=n(33),l=n(2),c=n.n(l),s=n(80),u=n.n(s),p=n(183),f=n.n(p),d=n(560),m=n.n(d),b=n(1078),g=n(876),h=n(569),v=["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,p=n.active,d=n.text,g=Object(o.a)(n,b),h=Object(m.p)(f()(a,{disabled:g.disabled,"dropdown-item":!l&&!u&&!d,active:p,"dropdown-header":u,"dropdown-divider":l,"dropdown-item-text":d}),i);return"button"===s&&(u?s="h6":l?s="div":g.href?s="a":d&&(s="span")),c.a.createElement(s,Object(r.a)({type:"button"===s&&(g.onClick||this.props.toggle)?"button":void 0},g,{tabIndex:e,role:t,className:h,onClick:this.onClick}))},t}(c.a.Component);h.propTypes=g,h.defaultProps={tag:"button",toggle:!0},h.contextType=d.a,t.a=h},1692:function(e,t,n){"use strict";var r=n(23),o=n(59),a=n(582),i=n(33),l=n(2),c=n.n(l),s=n(80),u=n.n(s),p=n(560),f=n.n(p),d=n(626),m=n.n(d),b=n(904),g=n.n(b),h=n(722),v=n.n(h),y=n(665),A=n.n(y),O=n(1012),j=n.n(O),w=n(917),C=n(850),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=p.a.createElement("img",{style:{width:"100%",height:"100%"},src:E.a});switch(w.L){case"KIT":e=p.a.createElement("img",{style:{width:"100%",height:"100%"},src:P.a});break;case"ADW":e=p.a.createElement("img",{style:{width:"100%",height:"100%"},src:E.a});break;case"NAWAKARA":e=p.a.createElement("img",{style:{width:"32%",height:"32%",display:"flex",justifyContent:"center"},src:D.a});break;case"IU":e=p.a.createElement("div",{style:{fontWeight:"bold",fontSize:30,fontFamily:'Calibri, Candara, Segoe, "Segoe UI", Optima, Arial, sans-serif',textAlign:"center",marginLeft:25,marginRigth:20}},p.a.createElement("span",{style:{color:"#4472C4"}},"OS"),p.a.createElement("span",{style:{color:"#ED7D31"}},"PRO"));break;default:e=p.a.createElement("img",{style:{width:"100%",height:"100%"},src:E.a})}return e},r.getLogo=function(){return p.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 p.a.createElement(A.a,{style:{width:"300px",paddingTop:0,borderRadius:"10px"}},p.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 p.a.createElement(A.a.Item,{onClick:r.gotoReportAlert,key:t},p.a.createElement("p",{style:{whiteSpace:"normal",textAlign:"flex-start"}},e.keterangan?e.keterangan:e.join.alert_keterangan?e.join.alert_keterangan:"-"))})),n>5?p.a.createElement(p.a.Fragment,null,p.a.createElement(A.a.Divider,null),p.a.createElement(A.a.Item,{onClick:r.gotoReportAlert,key:"202",style:{textAlign:"center",fontWeight:"bold"}},"Lihat Selengkapnya")):null,0===n?p.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?p.a.createElement("div",{className:"dashboard-title"},p.a.createElement("h5",null,"Layanan Telekomunikasi")):p.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 p.a.createElement(p.a.Fragment,null,p.a.createElement(j.k,{className:"d-lg-none",display:"md",mobile:!0}),this.getLogo(),p.a.createElement(j.k,{className:"d-md-down-none",display:"lg"}),this.getHeaderMenu(),p.a.createElement(d.a,{className:"ml-auto",navbar:!0},p.a.createElement(O.default,{onVisibleChange:function(t){return e.onReadNotif(t)},overlay:this.dropDownMenu,trigger:["click"]},p.a.createElement(m.a,{className:"d-md-down-none"},p.a.createElement(f.NavLink,{to:"#",className:"nav-link"},p.a.createElement("i",{className:"icon-bell"}),p.a.createElement(b.a,{pill:!0,color:this.state.totalAlert>0?"danger":"default"},this.state.totalAlert>0?this.state.totalAlert:null)))),p.a.createElement(g.a,{nav:!0,direction:"down"},p.a.createElement(h.a,{nav:!0},p.a.createElement("img",{src:x.a,className:"img-avatar",alt:"siopas_user"})),p.a.createElement(v.a,{right:!0},p.a.createElement(y.a,{header:!0,tag:"div",className:"text-center"},localStorage.getItem("user_name")),p.a.createElement(y.a,{onClick:function(t){return e.props.onLogout(t)}},p.a.createElement("i",{className:"fa fa-lock"})," Logout")))))}}]),n}(u.Component);Q.defaultProps={},t.default=Q},598:function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return c}));var r=n(586),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},606:function(e,t,n){"use strict";n.r(t);var r=n(664);t.default=r.b},608:function(e,t,n){"use strict";var r=n(559),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(562),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)},627:function(e,t,n){"use strict";var r=n(559),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(562),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}}},638:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}));var r=n(586),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")},640:function(e,t,n){"use strict";n.r(t);var r=n(561),o=n(563),a=n(23),i=n(560),l=n.n(i),c=n(566),s=n(559),u=n(567),p=n(2),f=n(607),d=n(634);function m(e){var t=e.showArrow,n=e.arrowContent,r=e.children,o=e.prefixCls,a=e.id,i=e.overlayInnerStyle,c=e.className,s=e.style;return p.createElement("div",{className:l()("".concat(o,"-content"),c),style:s},!1!==t&&p.createElement("div",{className:"".concat(o,"-arrow"),key:"arrow"},n),p.createElement("div",{className:"".concat(o,"-inner"),id:a,role:"tooltip",style:i},"function"===typeof r?r():r))}var b=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,b=e.mouseLeaveDelay,g=void 0===b?.1:b,h=e.overlayStyle,v=e.prefixCls,y=void 0===v?"rc-tooltip":v,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=e.arrowContent,T=e.overlay,M=e.id,Q=e.showArrow,z=Object(u.a)(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"]),F=Object(p.useRef)(null);Object(p.useImperativeHandle)(t,(function(){return F.current}));var H=Object(s.a)({},z);"visible"in e&&(H.popupVisible=e.visible);var V=!1,G=!1;if("boolean"===typeof D)V=D;else if(D&&"object"===Object(c.a)(D)){var Y=D.keepParent;V=!0===Y,G=!1===Y}return p.createElement(f.a,Object(a.a)({popupClassName:n,prefixCls:y,popup:function(){return p.createElement(m,{showArrow:Q,arrowContent:R,key:"content",prefixCls:y,id:M,overlayInnerStyle:L},T)},action:o,builtinPlacements:d.a,popupPlacement:E,ref:F,popupAlign:P,getPopupContainer:S,onPopupVisibleChange:O,afterPopupVisibleChange:j,popupTransitionName:w,popupAnimation:C,popupMotion:x,defaultPopupVisible:I,destroyPopupOnHide:V,autoDestroy:G,mouseLeaveDelay:g,popupStyle:h,mouseEnterDelay:l},H),A)},g=Object(p.forwardRef)(b),h=n(577),v=n(775),y=n(638),A=n(598),O=n(651),j=n(578),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:p.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,p=e.autoAdjustOverflow,f=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]=f?Object(r.a)(Object(r.a)({},d[e]),{overflow:c(p),targetOffset:l}):Object(r.a)(Object(r.a)({},o.a[e]),{overflow:c(p)}),d[e].ignoreShake=!0})),d}},664:function(e,t,n){"use strict";n.d(t,"a",(function(){return D}));var r=n(23),o=n(561),a=n(563),i=n(566),l=n(560),c=n.n(l),s=n(575),u=n(2),p=n.n(u),f=n(775),d=n(591),m=n(587),b=n(578),g=n(586),h=n(636),v=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=f.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=g(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),H=Object(f.useContext)(b.d).siderHook,V=Object(f.useState)("collapsed"in F?F.collapsed:w),G=Object(a.a)(V,2),Y=G[0],U=G[1],J=Object(f.useState)(!1),X=Object(a.a)(J,2),Z=X[0],_=X[1];Object(f.useEffect)((function(){"collapsed"in F&&U(F.collapsed)}),[F.collapsed]);var q=function(e,t){"collapsed"in F||U(e),null===Q||void 0===Q||Q(e,t)},K=Object(f.useRef)();K.current=function(e){_(e.matches),null===z||void 0===z||z(e.matches),Y!==e.matches&&q(e.matches,"responsive")},Object(f.useEffect)((function(){function e(e){return K.current(e)}var t;if("undefined"!==typeof window){var n=window.matchMedia;if(n&&M&&M in h){t=n("(max-width: ".concat(h[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(f.useEffect)((function(){var e=y("ant-sider-");return H.addSider(e),function(){return H.removeSider(e)}}),[]);var W=function(){q(!Y,"clickTrigger")},$=Object(f.useContext)(d.b).getPrefixCls,ee=f.useMemo((function(){return{siderCollapsed:Y}}),[Y]);return f.createElement(v.Provider,{value:ee},function(){var e,a=$("layout-sider",n),d=Object(p.a)(F,["collapsed"]),b=Y?R:S,g=m(b)?"".concat(b,"px"):String(b),h=0===parseFloat(String(R||0))?f.createElement("span",{onClick:W,className:u()("".concat(a,"-zero-width-trigger"),"".concat(a,"-zero-width-trigger-").concat(D?"right":"left")),style:T},A||f.createElement(i.a,null)):null,v={expanded:D?f.createElement(c.a,null):f.createElement(l.a,null),collapsed:D?f.createElement(l.a,null):f.createElement(c.a,null)}[Y?"collapsed":"expanded"],y=null!==A?h||f.createElement("div",{className:"".concat(a,"-trigger"),onClick:W,style:{width:g}},A||v):null,j=Object(o.a)(Object(o.a)({},E),{flex:"0 0 ".concat(g),maxWidth:g,minWidth:g,width:g}),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&&!h),Object(r.a)(e,"".concat(a,"-below"),!!Z),Object(r.a)(e,"".concat(a,"-zero-width"),0===parseFloat(g)),e),s);return f.createElement("aside",Object(o.a)({className:w},d,{style:j,ref:t}),f.createElement("div",{className:"".concat(a,"-children")},O),P||Z&&h?y:null)}())}));t.b=A},723: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}))},736:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(723);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(h,"-rtl"),"rtl"===l),n),v),C=s.useMemo((function(){return{siderHook:{addSider:function(e){g((function(t){return[].concat(Object(r.a)(t),[e])}))},removeSider:function(e){g((function(t){return t.filter((function(t){return t!==e}))}))}}}}),[]);return s.createElement(f.Provider,{value:C},s.createElement(O,Object(i.a)({ref:t,className:w},j),y))})),g=d({suffixCls:"layout",tagName:"section",displayName:"Layout"})(b),h=d({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(m),v=d({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(m),y=d({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(m);t.e=g},771:function(e,t,n){"use strict";var r=n(23),o=n(566),a=n(563),i=n(561),l=n(608),c=n(560),s=n.n(c),u=n(753),p=n(728),f=n(577),d=n(2),m=n(775),b=n(672),g=n(651),h=n(578),v=n(586),y=n(684),A=n(606),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(b.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},915: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}))}}]);