1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5073],{24107:function(e,t,n){n.d(t,{Z:function(){return B}});n(30467);var r=n(55673),i=(n(58136),n(5789)),o=n(92777),c=n(82262),l=n(10748),s=n(45959),a=n(63553),u=n(37247),d=n(59499),f=(n(73431),n(16373)),h=n(67294),p=n(41664),x=n.n(p),y=n(25675),j=n.n(y),g=n(30381),v=n.n(g),m=n(27812),b=(n(54214),n(12386)),Z=n(11163),w=n(65885),S=n(92443),C=n(39873),k=(n(82212),n(93846)),O=n(85893),F=b.default.SubMenu,K=(0,Z.withRouter)((0,k.HJ)((function(e){var t=(0,h.useState)(!1),n=t[0],r=t[1],i=(0,h.useState)(""),o=i[0],c=i[1],l=(0,h.useState)(""),s=l[0],a=l[1];(0,h.useEffect)((function(){u()}));var u=function(){var t=e.router.query.id,n="";C.Fs.forEach((function(e){e.code!==t?(e.subMenu&&e.subMenu.forEach((function(r){r.code!==t?r.alias&&r.alias.forEach((function(i){if(i===t)return n=e.code,void(t=r.code)})):n=e.code})),e.alias&&e.alias.forEach((function(r){if(r===t)return n=e.code,void(t=e.code)}))):n=e.code})),c(t),a(n),r(!0)};return n&&(0,O.jsxs)(b.default,{theme:"dark",mode:"inline",defaultOpenKeys:[s],defaultSelectedKeys:o,style:{border:null},children:[function(){var t=e.contextProvider.userInfo.permissions,n=(0,m.Z)(C.Fs);return n=n.filter((function(e){return null===e.permissionCode||t.filter((function(t){return t===e.permissionCode})).length>0})),n.map((function(e){return e.subMenu?(0,O.jsx)(F,{title:e.label,icon:e.icon,children:e.subMenu.map((function(e){return(0,O.jsx)(b.default.Item,{icon:e.icon,children:(0,O.jsx)("a",{href:e.path,children:e.label})},e.code)}))},e.code):(0,O.jsx)(b.default.Item,{icon:e.icon,children:(0,O.jsx)("a",{href:e.path,children:e.label})},e.code)}))}(),(0,O.jsx)(b.default.Item,{onClick:function(){var e=new w.Z;e.remove("jwt",{path:"/"}),e.remove("permission",{path:"/"}),e.remove("role",{path:"/"}),setTimeout((function(){window.location.reload()}),500)},icon:(0,O.jsx)(S.Z,{}),children:"Logout"},"logout")]})}))),I=n(19944),P=n(84477),E=n(7371);function D(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.Z)(e);if(t){var i=(0,u.Z)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,a.Z)(this,n)}}var L=f.Z.Header,M=f.Z.Content,R=f.Z.Footer,H=f.Z.Sider,A=function(e){(0,s.Z)(n,e);var t=D(n);function n(){var e;(0,o.Z)(this,n);for(var r=arguments.length,i=new Array(r),c=0;c<r;c++)i[c]=arguments[c];return e=t.call.apply(t,[this].concat(i)),(0,d.Z)((0,l.Z)(e),"state",{collapsed:!1}),(0,d.Z)((0,l.Z)(e),"toggle",(function(){e.setState({collapsed:!e.state.collapsed})})),e}return(0,c.Z)(n,[{key:"componentDidMount",value:function(){this.mounted=!0}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"render",value:function(){var e=this,t=this.state.collapsed,n=this.props.children,o=(0,O.jsx)(L,{style:{backgroundColor:"#fff",padding:0,minHeight:"64px",lineHeight:"64px"},children:h.createElement(this.state.collapsed?I.Z:P.Z,{onClick:this.toggle,style:{fontSize:16,cursor:"pointer",marginLeft:16}})});return(0,O.jsxs)(f.Z,{style:{minHeight:"100vh"},children:[(0,O.jsxs)(H,{trigger:null,collapsible:!0,collapsed:t,collapsedWidth:window.innerWidth<576?0:80,breakpoint:"xl",onBreakpoint:function(t){return e.setState({collapsed:t})},style:{zIndex:100,color:"#fff",minHeight:"100vh",boxShadow:"0px 0px 16px #8c8c8c"},width:256,children:[(0,O.jsx)(r.Z,{type:"flex",justify:"center",children:(0,O.jsx)(i.Z,{style:{cursor:"pointer"},children:t?(0,O.jsx)(r.Z,{type:"flex",justify:"center",children:(0,O.jsx)(i.Z,{span:24,children:(0,O.jsx)(x(),{href:"/[id]",as:"/dashboard",children:(0,O.jsx)("div",{style:{marginTop:8},children:(0,O.jsx)(j(),{layout:"intrinsic",src:"/logo/Imago-App.png",alt:"Logo",width:"100%",height:50,objectFit:"contain"})})})})}):(0,O.jsx)(r.Z,{type:"flex",justify:"center",children:(0,O.jsx)(i.Z,{style:{textAlign:"center"},children:(0,O.jsx)(x(),{href:"/[id]",as:"/dashboard",children:(0,O.jsx)("div",{style:{marginTop:8},children:(0,O.jsx)(j(),{layout:"intrinsic",src:"/logo/Imago-Logo.png",alt:"Logo",width:160,height:"100%",objectFit:"contain"})})})})})})}),(0,O.jsx)(K,{selectedMenu:this.props.menu})]}),(0,O.jsxs)(f.Z,{children:[o,this.props.ViewPageHeader&&(0,O.jsx)("div",{style:{padding:0},children:this.props.ViewPageHeader}),(0,O.jsx)(M,{style:{padding:16,backgroundColor:"#f0f2f5",minHeight:280},children:(0,O.jsx)(O.Fragment,{children:n})}),(0,O.jsx)(R,{children:(0,O.jsx)(r.Z,{type:"flex",justify:"end",children:(0,O.jsx)(i.Z,{children:(0,O.jsxs)("span",{children:[(0,O.jsx)(E.Z,{})," Copyright Imago"," ",v()().format("YYYY")]})})})})]})]})}}]),n}(h.Component),B=A},93234:function(e,t,n){n.d(t,{x7:function(){return T},qq:function(){return _},Ly:function(){return q},Aq:function(){return z}});var r,i,o,c,l=n(16835),s=n(50029),a=n(59499),u=(n(89858),n(51024)),d=(n(58136),n(5789)),f=(n(1025),n(65400)),h=(n(30467),n(55673)),p=(n(15267),n(64713)),x=n(87794),y=n.n(x),j=(n(67294),n(26911)),g=n(30381),v=n.n(g),m=n(39873),b=(v()(),v()().add(m.fK,"day"),function(e){return v().isMoment(e)}),Z=function(e,t){var n=t?m.IG:m.zT;return e?v()(e).format(n):e},w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=Number(e).toFixed(t),r=n.replace(/\B(?=(\d{3})+(?!\d))/g,",");return r},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"RM",n=String(w(e)),r=t?"".concat(t," ").concat(n):n;return r},C=n(71383),k=n(3268),O=n(68795),F=k.Z.div(r||(r=(0,C.Z)(["\n padding: 8px;\n"]))),K=(0,k.Z)(p.default)(i||(i=(0,C.Z)(["\n display: block;\n height: 30px;\n line-height: 30px;\n"]))),I=k.Z.div(o||(o=(0,C.Z)(["\n padding: 8px;\n display: flex;\n justify-content: space-between;\n"]))),P=(0,k.Z)(O.Z)(c||(c=(0,C.Z)(["\n color: ",";\n"])),(function(e){return e.isFiltered?"#00b9c6":"#AAA"})),E=n(85893);function D(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 L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?D(Object(n),!0).forEach((function(t){(0,a.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var M=p.default.Group,R=function(e){return function(){e()}},H=function(e,t){return function(){e(),t()}},A=function(e){var t=e.filterSelections,n=e.setSelectedKeys,r=e.selectedKeys,i=e.confirm,o=e.clearFilters;return(0,E.jsxs)(F,{children:[(0,E.jsx)(M,{onChange:function(e){var t=e.target.value;n(t?[t]:[])},value:r[0],children:t.map((function(e){return(0,E.jsx)(h.Z,{children:(0,E.jsx)(K,{value:e.value,children:e.label})},e.label)}))}),(0,E.jsxs)(h.Z,{gutter:8,type:"flex",justify:"space-between",children:[(0,E.jsx)(d.Z,{children:(0,E.jsx)(f.default,{type:"primary",onClick:R(i),children:"Search"})}),(0,E.jsx)(d.Z,{children:(0,E.jsx)(f.default,{onClick:H(o,i),children:"Reset"})})]})]})},B=function(e){var t=e.dataIndex,n=e.placeholder,r=e.setSelectedKeys,i=e.selectedKeys,o=e.confirm,c=e.clearFilters,l=e.disabled;return(0,E.jsxs)(I,{children:[(0,E.jsx)(u.default,{id:t,placeholder:n,value:i[0],onChange:function(e){var t=e.target.value;r(t?[t]:[])},onPressEnter:R(o),disabled:l}),(0,E.jsx)(f.default,{style:{margin:"0 4px"},type:"primary",onClick:R(o),disabled:l,children:"Search"}),(0,E.jsx)(f.default,{disabled:l,onClick:H(c,o),children:"Reset"})]})},T=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.width,i=n.hasSorter,o=n.isDate,c=n.isDocument,l=n.isRM;return L(L({title:e,dataIndex:t,key:t,width:r},i&&Y(t)),{},{render:function(e){if(e){var t=(0,E.jsx)("span",{children:e});return b(e)||o?t=(0,E.jsx)("span",{children:Z(e)}):c?t=(0,E.jsx)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",children:(0,E.jsx)(j.Z,{})}):l&&(t=(0,E.jsx)("span",{children:S(e)})),t}return(0,E.jsx)("span",{children:"-"})}})},_=function(e,t){return{filterDropdown:function(e){var n=e.setSelectedKeys,r=e.selectedKeys,i=e.confirm,o=e.clearFilters;return(0,E.jsx)(A,{filterSelections:t,setSelectedKeys:n,selectedKeys:r,confirm:i,clearFilters:o})},filterIcon:function(e){return(0,E.jsx)(P,{type:"filter",style:{color:e?"#00b9c6":"#aaa"}})},onFilter:function(t,n){return String(n[e]).toLowerCase().includes(t.toLowerCase())}}},q=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{filterDropdown:function(r){var i=r.setSelectedKeys,o=r.selectedKeys,c=r.confirm,l=r.clearFilters;return(0,E.jsx)(B,{dataIndex:e,placeholder:t,setSelectedKeys:i,selectedKeys:o,confirm:c,clearFilters:l,disabled:n})},filterIcon:function(e){return(0,E.jsx)(P,{type:"search",isFiltered:e})},onFilter:function(t,n){return String(n[e]).toLowerCase().includes(t.toLowerCase())},onFilterDropdownVisibleChange:function(t){return t&&setTimeout((function(){return document.getElementById(e).focus()}))}}},z=function(){var e=(0,s.Z)(y().mark((function e(t,n,r,i){var o,c,s,u,d,f,h,p,x;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=t.pagination,c=t.filters,s=t.sorter,u=Object.entries(c).reduce((function(e,t){var n=(0,l.Z)(t,2),r=n[0],i=n[1];return L(L({},e),!!i&&(0,a.Z)({},r,i[0]))}),{}),d=o.current,f=o.pageSize,h=s.columnKey,p=s.order,x=L(L(L(L({},Object.keys(u).length>0&&{filter:u}),s&&h&&{sorter:(0,a.Z)({},h,"descend"===p?-1:1)}),o&&d&&{limit:f,currentPage:d}),{},{start:r||void 0,end:i||void 0}),n(x);case 6:case"end":return e.stop()}}),e)})));return function(t,n,r,i){return e.apply(this,arguments)}}(),Y=function(e){return{sorter:function(t,n){var r=String(t[e]).toUpperCase(),i=String(n[e]).toUpperCase();return r.localeCompare(i)}}}}}]);
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.