text: (this["webpackJsonpdsearch-console"]=this["webpackJsonpdsearch-console"]||[]).push([[33],{1196:function(e,t,a){"use strict";a.r(t);var n=a(2),c=a(59),i=a(0),l=a.n(i),r=a(38),o=a(11),s=a(598),d=a(674),u=a(607),m=a(648),p=a(675),f=a(681),b=a(676),g=a(680),h=a(679),x=a(682),v=a(597),E=a(604),j=a(661),O=a(620),y=a(647),A=a(755),N=Object(o.c)(s.a)(j.a,O.a),T=Object(o.c)(d.a)(j.a,O.a),C=Object(o.c)(u.a)(j.a,O.a),k=Object(o.c)(m.a)(j.a,O.a);function L(e,t,a){if(a.length>t)return e+"";for(e+="",a+="";e.length<t;)e+=a;return e=e.length>=t?e.substring(0,t):e}t.default=Object(r.b)((function(e){return Object(n.a)({authUser:e.dsearchReducers.authUser},e.collectionReducers)}))((function(e){var t=e.dispatch,a=e.authUser,n=e.collection,r=e.history,o=Object(i.useState)(null),s=Object(c.a)(o,2),d=s[0],u=s[1],m=Object(i.useState)(0),j=Object(c.a)(m,2),O=j[0],w=j[1],R=Object(i.useState)("ALL"),z=Object(c.a)(R,2),B=z[0],M=z[1];function D(e){u(null===d?e.currentTarget:null)}function S(e,a){w(e),t("ALL"===a?Object(A.m)({indexA:n.indexA.index,indexB:n.indexB.index,size:10,from:e}):Object(A.n)({indexA:n.indexA.index,indexB:n.indexB.index,size:10,from:e,type:a})),u(null)}function H(e){t(Object(A.c)({indexA:n.indexA.index,indexB:n.indexB.index,time:e.getTime()})).then((function(e){w(0),setTimeout((function(){t("ALL"===B?Object(A.m)({indexA:n.indexA.index,indexB:n.indexB.index,size:10,from:0}):Object(A.n)({indexA:n.indexA.index,indexB:n.indexB.index,size:10,from:0,type:B}))}),1e3),D()})).catch((function(e){console.log(e),alert(e),D()}))}if(Object(i.useEffect)((function(){t(Object(A.m)({indexA:n.indexA.index,indexB:n.indexB.index,size:10,from:O}))}),[]),!r.hits)return null;console.log("collection",n),console.log("hits >> ",r.hits);var P=Math.ceil(r.hits.total.value/10),F=Math.ceil(O/10)+1;return l.a.createElement(l.a.Fragment,null,l.a.createElement("br",null),l.a.createElement(T,null,l.a.createElement(p.a,null,l.a.createElement(N,null,l.a.createElement(f.a,null,l.a.createElement(b.a,null,l.a.createElement(g.a,null,l.a.createElement(h.a,null,"#"),l.a.createElement(h.a,null,"\uc778\ub371\uc2a4"),l.a.createElement(h.a,null,"\ud0c0\uc785"),l.a.createElement(h.a,null,"\uacb0\uacfc"),l.a.createElement(h.a,null,"\ubb38\uc11c\uc218"),l.a.createElement(h.a,null,"\uc790\ub3d9\uc2e4\ud589"),l.a.createElement(h.a,null,"\uc2dc\uc791"),l.a.createElement(h.a,null,"\uc885\ub8cc"),l.a.createElement(h.a,null,"\uc18c\uc694\uc2dc\uac04"))),l.a.createElement(x.a,null,((r.hits||{}).hits||[]).map((function(e,t){var a=e._source,n="FULL_INDEX"===a.jobType?"\uc804\uccb4\uc0c9\uc778":"DYNAMIC_INDEX"===a.jobType?"\ub3d9\uc801\uc0c9\uc778":"PROPAGATE"===a.jobType?"\uc804\ud30c":"EXPOSE"===a.jobType?"\uad50\uccb4":a.jobType,c=a.autoRun?"\uc790\ub3d9":"\uc218\ub3d9",i=new Date,r=new Date,o="",s=a.docSize;try{s=Number(a.docSize).toLocaleString(),i.setTime(L(a.startTime,13,"0")),r.setTime(L(a.endTime,13,"0"));var d=r.getTime()-i.getTime(),u=Math.floor(d%864e5/36e5),m=Math.floor(d%36e5/6e4),p=Math.floor(d%6e4/1e3);o="".concat(u,"\uc2dc ").concat(m,"\ubd84 ").concat(p,"\ucd08")}catch(f){console.error("err",f),i="",r=""}return l.a.createElement(g.a,{key:e._id},l.a.createElement(h.a,null,O+t+1),l.a.createElement(h.a,null,a.index),l.a.createElement(h.a,null,n),l.a.createElement(h.a,null,a.status),l.a.createElement(h.a,null,s),l.a.createElement(h.a,null,c),l.a.createElement(h.a,null,i.toLocaleString()),l.a.createElement(h.a,null,r.toLocaleString()),l.a.createElement(h.a,null,o))}))))),l.a.createElement("br",null),l.a.createElement(k,{container:!0},l.a.createElement(k,{item:!0,xs:2}),l.a.createElement(k,{item:!0,xs:8},l.a.createElement(N,{align:"center"},l.a.createElement(N,{align:"center"},l.a.createElement(C,{variant:"outlined",disabled:1===F,onClick:function(){return S(10*(F-1)-10,B)}},"\uc774\uc804"),l.a.createElement(N,{component:"span",m:3},F," / ",0===P?1:P),l.a.createElement(C,{variant:"outlined",disabled:F===(0===P?1:P),onClick:function(){return S(10*F,B)}},"\ub2e4\uc74c")))),l.a.createElement(k,{item:!0,xs:2},l.a.createElement(N,{align:"right"},a.role.index?l.a.createElement(l.a.Fragment,null,l.a.createElement(C,{variant:"outlined",onClick:D},"\ub354\ubcf4\uae30",l.a.createElement(y.a,null)),l.a.createElement(v.a,{anchorEl:d,open:Boolean(d),onClose:D},l.a.createElement(E.a,{onClick:function(){M("ALL"),setTimeout((function(){S(0,"ALL")}),500)}},"\uc804\uccb4\ubcf4\uae30"),l.a.createElement(E.a,{onClick:function(){M("FULL_INDEX"),setTimeout((function(){S(0,"FULL_INDEX")}),500)}},"\uc0c9\uc778\ub9cc \ubcf4\uae30"),l.a.createElement(E.a,{onClick:function(){M("PROPAGATE"),setTimeout((function(){S(0,"PROPAGATE")}),500)}},"\uc804\ud30c\ub9cc \ubcf4\uae30"),l.a.createElement(E.a,{onClick:function(){return H(new Date)}},"\ucd08\uae30\ud654"),l.a.createElement(E.a,{onClick:function(){var e=new Date;e.setDate(e.getDate()-7),H(e)}},"7\uc77c\uc774\uc804 \ubaa8\ub450 \uc0ad\uc81c"))," "):l.a.createElement(l.a.Fragment,null)))))))}))},662:function(e,t,a){"use strict";var n=a(0),c=n.createContext();t.a=c},665:function(e,t,a){"use strict";var n=a(0),c=n.createContext();t.a=c},674:function(e,t,a){"use strict";var n=a(1),c=a(6),i=a(0),l=(a(3),a(7)),r=a(168),o=a(9),s=i.forwardRef((function(e,t){var a=e.classes,o=e.className,s=e.raised,d=void 0!==s&&s,u=Object(c.a)(e,["classes","className","raised"]);return i.createElement(r.a,Object(n.a)({className:Object(l.a)(a.root,o),elevation:d?8:1,ref:t},u))}));t.a=Object(o.a)({root:{overflow:"hidden"}},{name:"MuiCard"})(s)},675:function(e,t,a){"use strict";var n=a(1),c=a(6),i=a(0),l=(a(3),a(7)),r=a(9),o=i.forwardRef((function(e,t){var a=e.classes,r=e.className,o=e.component,s=void 0===o?"div":o,d=Object(c.a)(e,["classes","className","component"]);return i.createElement(s,Object(n.a)({className:Object(l.a)(a.root,r),ref:t},d))}));t.a=Object(r.a)({root:{padding:16,"&:last-child":{paddingBottom:24}}},{name:"MuiCardContent"})(o)},676:function(e,t,a){"use strict";var n=a(1),c=a(6),i=a(0),l=(a(3),a(7)),r=a(9),o=a(662),s={variant:"head"},d=i.forwardRef((function(e,t){var a=e.classes,r=e.className,d=e.component,u=void 0===d?"thead":d,m=Object(c.a)(e,["classes","className","component"]);return i.createElement(o.a.Provider,{value:s},i.createElement(u,Object(n.a)({className:Object(l.a)(a.root,r),ref:t},m)))}));t.a=Object(r.a)({root:{display:"table-header-group"}},{name:"MuiTableHead"})(d)},679:function(e,t,a){"use strict";var n=a(6),c=a(1),i=a(0),l=(a(3),a(7)),r=a(9),o=a(13),s=a(17),d=a(665),u=a(662),m=i.forwardRef((function(e,t){var a,r=e.align,s=void 0===r?"inherit":r,m=e.classes,p=e.className,f=e.component,b=e.padding,g=e.scope,h=e.size,x=e.sortDirection,v=e.variant,E=Object(n.a)(e,["align","classes","className","component","padding","scope","size","sortDirection","variant"]),j=i.useContext(d.a),O=i.useContext(u.a);a=f||(O&&"head"===O.variant?"th":"td");var y=g;!y&&O&&"head"===O.variant&&(y="col");var A=b||(j&&j.padding?j.padding:"default"),N=h||(j&&j.size?j.size:"medium"),T=v||O&&O.variant,C=null;return x&&(C="asc"===x?"ascending":"descending"),i.createElement(a,Object(c.a)({ref:t,className:Object(l.a)(m.root,m[T],p,"inherit"!==s&&m["align".concat(Object(o.a)(s))],"default"!==A&&m["padding".concat(Object(o.a)(A))],"medium"!==N&&m["size".concat(Object(o.a)(N))],"head"===T&&j&&j.stickyHeader&&m.stickyHeader),"aria-sort":C,scope:y},E))}));t.a=Object(r.a)((function(e){return{root:Object(c.a)({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:"1px solid\n    ".concat("light"===e.palette.type?Object(s.i)(Object(s.d)(e.palette.divider,1),.88):Object(s.a)(Object(s.d)(e.palette.divider,1),.68)),textAlign:"left",padding:16}),head:{color:e.palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},body:{color:e.palette.text.primary},footer:{color:e.palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},sizeSmall:{padding:"6px 24px 6px 16px","&:last-child":{paddingRight:16},"&$paddingCheckbox":{width:24,padding:"0px 12px 0 16px","&:last-child":{paddingLeft:12,paddingRight:16},"& > *":{padding:0}}},paddingCheckbox:{width:48,padding:"0 0 0 4px","&:last-child":{paddingLeft:0,paddingRight:4}},paddingNone:{padding:0,"&:last-child":{padding:0}},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right",flexDirection:"row-reverse"},alignJustify:{textAlign:"justify"},stickyHeader:{position:"sticky",top:0,left:0,zIndex:2,backgroundColor:e.palette.background.default}}}),{name:"MuiTableCell"})(m)},680:function(e,t,a){"use strict";var n=a(1),c=a(6),i=a(0),l=(a(3),a(7)),r=a(9),o=a(662),s=a(17),d=i.forwardRef((function(e,t){var a=e.classes,r=e.className,s=e.component,d=void 0===s?"tr":s,u=e.hover,m=void 0!==u&&u,p=e.selected,f=void 0!==p&&p,b=Object(c.a)(e,["classes","className","component","hover","selected"]),g=i.useContext(o.a);return i.createElement(d,Object(n.a)({ref:t,className:Object(l.a)(a.root,r,g&&{head:a.head,footer:a.footer}[g.variant],m&&a.hover,f&&a.selected)},b))}));t.a=Object(r.a)((function(e){return{root:{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,"&$hover:hover":{backgroundColor:e.palette.action.hover},"&$selected,&$selected:hover":{backgroundColor:Object(s.d)(e.palette.secondary.main,e.palette.action.selectedOpacity)}},selected:{},hover:{},head:{},footer:{}}}),{name:"MuiTableRow"})(d)},681:function(e,t,a){"use strict";var n=a(6),c=a(1),i=a(0),l=(a(3),a(7)),r=a(9),o=a(665),s=i.forwardRef((function(e,t){var a=e.classes,r=e.className,s=e.component,d=void 0===s?"table":s,u=e.padding,m=void 0===u?"default":u,p=e.size,f=void 0===p?"medium":p,b=e.stickyHeader,g=void 0!==b&&b,h=Object(n.a)(e,["classes","className","component","padding","size","stickyHeader"]),x=i.useMemo((function(){return{padding:m,size:f,stickyHeader:g}}),[m,f,g]);return i.createElement(o.a.Provider,{value:x},i.createElement(d,Object(c.a)({ref:t,className:Object(l.a)(a.root,r,g&&a.stickyHeader)},h)))}));t.a=Object(r.a)((function(e){return{root:{display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Object(c.a)({},e.typography.body2,{padding:e.spacing(2),color:e.palette.text.secondary,textAlign:"left",captionSide:"bottom"})},stickyHeader:{borderCollapse:"separate"}}}),{name:"MuiTable"})(s)},682:function(e,t,a){"use strict";var n=a(1),c=a(6),i=a(0),l=(a(3),a(7)),r=a(9),o=a(662),s={variant:"body"},d=i.forwardRef((function(e,t){var a=e.classes,r=e.className,d=e.component,u=void 0===d?"tbody":d,m=Object(c.a)(e,["classes","className","component"]);return i.createElement(o.a.Provider,{value:s},i.createElement(u,Object(n.a)({className:Object(l.a)(a.root,r),ref:t},m)))}));t.a=Object(r.a)({root:{display:"table-row-group"}},{name:"MuiTableBody"})(d)}}]);
  //# sourceMappingURL=33.206fcc37.chunk.js.map