1/*! For license information please see 4664.e93c8335.chunk.js.LICENSE.txt */ 2(self.webpackChunknauy_homestay_frontend=self.webpackChunknauy_homestay_frontend||[]).push([[4664],{24664(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>Z});var a=n(5544),c=n(9950),r=n(21810),s=n(94121),l=n(91514),i=n(65455),o=n(62849),d=n(87094),h=n(41988),u=n(14980),m=n(48538),p=n(48864),f=n(75376),g=n(1203),v=n(68046),x=n(76869),y=n(96172),A=n(82737),b=n(78905),j=n(9503);const w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M193 796c0 17.7 14.3 32 32 32h574c17.7 0 32-14.3 32-32V563c0-176.2-142.8-319-319-319S193 386.8 193 563v233zm72-233c0-136.4 110.6-247 247-247s247 110.6 247 247v193H404V585c0-5.5-4.5-10-10-10h-44c-5.5 0-10 4.5-10 10v171h-75V563zm-48.1-252.5l39.6-39.6c3.1-3.1 3.1-8.2 0-11.3l-67.9-67.9a8.03 8.03 0 00-11.3 0l-39.6 39.6a8.03 8.03 0 000 11.3l67.9 67.9c3.1 3.1 8.1 3.1 11.3 0zm669.6-79.2l-39.6-39.6a8.03 8.03 0 00-11.3 0l-67.9 67.9a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l67.9-67.9c3.1-3.2 3.1-8.2 0-11.3zM832 892H192c-17.7 0-32 14.3-32 32v24c0 4.4 3.6 8 8 8h688c4.4 0 8-3.6 8-8v-24c0-17.7-14.3-32-32-32zM484 180h56c4.4 0 8-3.6 8-8V76c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v96c0 4.4 3.6 8 8 8z"}}]},name:"alert",theme:"outlined"};var N=n(25085);function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},S.apply(this,arguments)}const k=(e,t)=>c.createElement(N.A,S({},e,{ref:t,icon:w}));const C=c.forwardRef(k);var T=n(97973),z=n(41967),M=n(66609),E=n(60974),O=n(16344),R=n(79378),F=n(78534),H=n(44070),I=n(37866),B=n(8750),V=n(3911),P=n(24513),D=n(72906),L=n(4159),$=n.n(L),_=n(37609),W=n.n(_),X=(n(73226),n(60476)),q=n(54021);var K=n(44414);$().extend(W()),$().locale("vi");const G=r.A.Text,Y=r.A.Title,J={critical:{color:"#dc2626",bg:"#fef2f2",label:"Nghi\xeam tr\u1ecdng",icon:(0,K.jsx)(j.A,{})},high:{color:"#ea580c",bg:"#fff7ed",label:"Cao",icon:(0,K.jsx)(C,{})},medium:{color:"#d97706",bg:"#fffbeb",label:"Trung b\xecnh",icon:(0,K.jsx)(T.A,{})},low:{color:"#16a34a",bg:"#f0fdf4",label:"Th\u1ea5p",icon:(0,K.jsx)(z.A,{})}},Q={open:{color:"#dc2626",label:"M\u1edf"},in_progress:{color:"#2563eb",label:"\u0110ang x\u1eed l\xfd"},confirmed:{color:"#059669",label:"\u0110\xe3 gi\u1ea3i quy\u1ebft"},completed:{color:"var(--inline-text-muted)",label:"\u0110\xf3ng"}},U={security:(0,K.jsx)(M.A,{}),operations:(0,K.jsx)(E.A,{}),maintenance:(0,K.jsx)(O.A,{}),guest:(0,K.jsx)(R.A,{}),finance:(0,K.jsx)(F.A,{})},Z=()=>{const e=s.A.useApp().message,t=(0,c.useState)([]),n=(0,a.A)(t,2),r=n[0],w=n[1],N=(0,c.useState)(!1),S=(0,a.A)(N,2),k=S[0],T=S[1],E=(0,c.useState)(!1),O=(0,a.A)(E,2),F=O[0],L=O[1],_=(0,c.useState)(null),W=(0,a.A)(_,2),Z=W[0],ee=W[1],te=l.A.useForm(),ne=(0,a.A)(te,1)[0],ae=(0,c.useState)("all"),ce=(0,a.A)(ae,2),re=ce[0],se=ce[1],le=(0,c.useState)("all"),ie=(0,a.A)(le,2),oe=ie[0],de=ie[1],he=(0,c.useCallback)(async()=>{try{T(!0);const e=await q.pe.getAll();w((0,q.ij)(e))}catch(t){e.error("Kh\xf4ng t\u1ea3i \u0111\u01b0\u1ee3c d\u1eef li\u1ec7u Command Center")}finally{T(!1)}},[e]);(0,c.useEffect)(()=>{he()},[he]);const ue=(0,c.useMemo)(()=>({critical:r.filter(e=>"critical"===e.severity&&"open"===e.status).length,high:r.filter(e=>"high"===e.severity&&"open"===e.status).length,inProgress:r.filter(e=>"in_progress"===e.status).length,resolved:r.filter(e=>["confirmed","completed"].includes(e.status)).length}),[r]),me=(0,c.useMemo)(()=>{let e=r;return"all"!==re&&(e=e.filter(e=>e.severity===re)),"all"!==oe&&(e=e.filter(e=>e.status===oe)),[...e].sort((e,t)=>{var n,a;const c={critical:0,high:1,medium:2,low:3},r=(null!==(n=c[e.severity])&&void 0!==n?n:4)-(null!==(a=c[t.severity])&&void 0!==a?a:4);return 0!==r?r:new Date(t.createdAt)-new Date(e.createdAt)})},[r,re,oe]),pe=(0,c.useCallback)(e=>{ee(e),ne.setFieldsValue({title:e.title,description:e.description,category:e.category,severity:e.severity,assignedTo:e.assignedTo,status:e.status}),L(!0)},[ne]),fe=(0,c.useCallback)(t=>{i.A.confirm({title:"X\xe1c nh\u1eadn xo\xe1 c\u1ea3nh b\xe1o n\xe0y?",icon:(0,K.jsx)(H.A,{style:{color:"#dc2626"}}),content:"C\u1ea3nh b\xe1o s\u1ebd b\u1ecb xo\xe1 v\u0129nh vi\u1ec5n kh\u1ecfi nh\u1eadt k\xfd h\u1ec7 th\u1ed1ng.",okText:"Xo\xe1 ngay",cancelText:"H\u1ee7y",okType:"danger",onOk:async()=>{try{await q.pe.delete(t.id),e.success("\u0110\xe3 xo\xe1 c\u1ea3nh b\xe1o"),he()}catch(n){e.error("Xo\xe1 th\u1ea5t b\u1ea1i")}}})},[e,he]);return(0,K.jsx)(X.A,{children:(0,K.jsxs)("div",{className:"command-center-container",children:[(0,K.jsx)(o.A,{className:"cc-header-card",styles:{body:{padding:"24px"}},children:(0,K.jsxs)(d.A,{justify:"space-between",align:"middle",children:[(0,K.jsx)(h.A,{children:(0,K.jsxs)("div",{className:"cc-title-wrap",children:[(0,K.jsx)("div",{className:"cc-icon-bg",children:(0,K.jsx)(M.A,{})}),(0,K.jsxs)("div",{children:[(0,K.jsx)(Y,{level:3,style:{margin:0,fontWeight:800},children:"Command Center"}),(0,K.jsx)(G,{type:"secondary",children:"Gi\xe1m s\xe1t r\u1ee7i ro, s\u1ef1 c\u1ed1 k\u1ef9 thu\u1eadt v\xe0 an ninh to\xe0n h\u1ec7 th\u1ed1ng"})]})]})}),(0,K.jsx)(h.A,{children:(0,K.jsxs)(u.A,{size:12,children:[(0,K.jsx)(m.Ay,{icon:(0,K.jsx)(I.A,{}),onClick:he,className:"cc-filter-chip",style:{height:"40px"},children:"L\xe0m m\u1edbi"}),(0,K.jsx)(m.Ay,{type:"primary",size:"large",icon:(0,K.jsx)(B.A,{}),onClick:()=>{ee(null),ne.resetFields(),ne.setFieldsValue({severity:"medium",status:"open",category:"operations"}),L(!0)},style:{borderRadius:"12px",height:"48px",fontWeight:700},children:"T\u1ea1o c\u1ea3nh b\xe1o"})]})})]})}),(0,K.jsx)(d.A,{gutter:[20,20],style:{marginBottom:24},children:[{label:"Critical \u0111ang m\u1edf",value:ue.critical,color:"#dc2626",icon:(0,K.jsx)(j.A,{})},{label:"High \u0111ang m\u1edf",value:ue.high,color:"#ea580c",icon:(0,K.jsx)(C,{})},{label:"\u0110ang x\u1eed l\xfd",value:ue.inProgress,color:"#2563eb",icon:(0,K.jsx)(V.A,{})},{label:"\u0110\xe3 gi\u1ea3i quy\u1ebft",value:ue.resolved,color:"#16a34a",icon:(0,K.jsx)(z.A,{})}].map(e=>(0,K.jsx)(h.A,{xs:12,sm:6,children:(0,K.jsxs)(o.A,{className:"cc-stat-card",styles:{body:{padding:"20px"}},children:[(0,K.jsx)("div",{className:"cc-stat-indicator",style:{backgroundColor:e.color}}),(0,K.jsx)(p.A,{title:(0,K.jsxs)(u.A,{style:{color:"var(--text-muted)",fontSize:13,fontWeight:600},children:[e.icon," ",e.label]}),value:e.value,styles:{content:{color:e.color,fontWeight:800,fontSize:32}}})]})},e.label))}),(0,K.jsx)(o.A,{className:"cc-filter-bar",children:(0,K.jsx)(d.A,{gutter:[24,12],align:"middle",children:(0,K.jsx)(h.A,{flex:"auto",children:(0,K.jsxs)(u.A,{wrap:!0,size:8,children:[(0,K.jsx)(G,{style:{fontWeight:700,marginRight:8,fontSize:12},children:"M\u1ee9c \u0111\u1ed9:"}),["all","critical","high","medium","low"].map(e=>{var t;return(0,K.jsx)(m.Ay,{className:"cc-filter-chip ".concat(re===e?"active":""," ").concat("critical"===e?"danger":""),onClick:()=>se(e),children:"all"===e?"T\u1ea5t c\u1ea3":null===(t=J[e])||void 0===t?void 0:t.label},"sev-".concat(e))}),(0,K.jsx)("div",{style:{width:1,height:20,background:"var(--border-subtle)",margin:"0 12px"}}),(0,K.jsx)(G,{style:{fontWeight:700,marginRight:8,fontSize:12},children:"Tr\u1ea1ng th\xe1i:"}),["all","open","in_progress","confirmed","completed"].map(e=>{var t;return(0,K.jsx)(m.Ay,{className:"cc-filter-chip ".concat(oe===e?"active":""),onClick:()=>de(e),children:"all"===e?"T\u1ea5t c\u1ea3":null===(t=Q[e])||void 0===t?void 0:t.label},"sta-".concat(e))})]})})})}
2),(0,K.jsx)(f.A,{spinning:k,description:"\u0110ang ki\u1ec3m tra h\u1ec7 th\u1ed1ng...",children:0!==me.length||k?(0,K.jsx)(d.A,{gutter:[20,20],children:me.map(e=>{const t=J[e.severity]||J.low,n=Q[e.status]||Q.open,a=[{key:"edit",label:"Ch\u1ec9nh s\u1eeda",icon:(0,K.jsx)(P.A,{}),onClick:()=>pe(e)},{key:"delete",label:"Xo\xe1 c\u1ea3nh b\xe1o",icon:(0,K.jsx)(H.A,{}),danger:!0,onClick:()=>fe(e)}];return(0,K.jsx)(h.A,{xs:24,md:12,xl:8,children:(0,K.jsx)(o.A,{className:"cc-alert-card",style:{borderLeft:"5px solid ".concat(t.color),background:t.bg},styles:{body:{padding:"20px"}},children:(0,K.jsxs)("div",{className:"cc-alert-inner",children:[(0,K.jsxs)("div",{className:"cc-alert-header",children:[(0,K.jsxs)(u.A,{size:8,children:[(0,K.jsxs)(v.A,{color:t.color,style:{borderRadius:"6px",fontWeight:700},children:[t.icon," ",t.label]}),(0,K.jsx)(v.A,{color:n.color,style:{borderRadius:"6px",fontWeight:700},children:n.label})]}),(0,K.jsx)(x.A,{menu:{items:a},trigger:["click"],placement:"bottomRight",children:(0,K.jsx)(m.Ay,{type:"text",size:"small",icon:(0,K.jsx)(D.A,{style:{fontSize:18}})})})]}),(0,K.jsx)(Y,{level:5,className:"cc-alert-title",children:e.title||"S\u1ef1 c\u1ed1 ch\u01b0a \u0111\u1eb7t t\xean"}),e.description&&(0,K.jsx)(G,{type:"secondary",style:{fontSize:13,marginBottom:16,display:"block"},children:e.description}),(0,K.jsxs)("div",{className:"cc-alert-footer",children:[(0,K.jsxs)(u.A,{size:8,wrap:!0,children:[e.category&&(0,K.jsx)(v.A,{icon:U[e.category],className:"cc-meta-tag",children:e.category}),e.assignedTo&&(0,K.jsx)(y.A,{title:"Ng\u01b0\u1eddi ch\u1ecbu tr\xe1ch nhi\u1ec7m",children:(0,K.jsx)(v.A,{icon:(0,K.jsx)(R.A,{}),className:"cc-meta-tag",children:e.assignedTo})})]}),e.createdAt&&(0,K.jsxs)(G,{className:"cc-time-text",children:[(0,K.jsx)(V.A,{}),$()(e.createdAt).fromNow()]})]})]})})},e.id)})}):(0,K.jsx)("div",{className:"cc-empty-wrap",children:(0,K.jsx)(g.A,{image:g.A.PRESENTED_IMAGE_SIMPLE,description:(0,K.jsxs)(u.A,{orientation:"vertical",align:"center",children:[(0,K.jsx)(G,{type:"secondary",children:"H\u1ec7 th\u1ed1ng hi\u1ec7n t\u1ea1i \u1ed5n \u0111\u1ecbnh. Kh\xf4ng c\xf3 s\u1ef1 c\u1ed1 n\xe0o."}),(0,K.jsx)(m.Ay,{type:"link",onClick:()=>{se("all"),de("all")},children:"X\xf3a b\u1ed9 l\u1ecdc"})]})})})}),(0,K.jsx)(i.A,{title:Z?"C\u1eadp nh\u1eadt s\u1ef1 c\u1ed1":"T\u1ea1o c\u1ea3nh b\xe1o h\u1ec7 th\u1ed1ng m\u1edbi",open:F,onOk:()=>ne.submit(),onCancel:()=>L(!1),width:540,destroyOnHidden:!0,okText:Z?"C\u1eadp nh\u1eadt":"T\u1ea1o c\u1ea3nh b\xe1o",cancelText:"H\u1ee7y b\u1ecf",children:(0,K.jsxs)(l.A,{form:ne,layout:"vertical",onFinish:async t=>{try{Z?(await q.pe.update(Z.id,t),e.success("\u0110\xe3 c\u1eadp nh\u1eadt s\u1ef1 c\u1ed1")):(await q.pe.create(t),e.success("\u0110\xe3 t\u1ea1o c\u1ea3nh b\xe1o m\u1edbi")),L(!1),he()}catch(n){e.error("L\u01b0u th\u1ea5t b\u1ea1i")}},initialValues:{severity:"medium",status:"open",category:"operations"},children:[(0,K.jsx)(l.A.Item,{name:"title",label:"Ti\xeau \u0111\u1ec1 s\u1ef1 c\u1ed1 / c\u1ea3nh b\xe1o",rules:[{required:!0,message:"Vui l\xf2ng nh\u1eadp ti\xeau \u0111\u1ec1"}],children:(0,K.jsx)(A.A,{placeholder:"V\xed d\u1ee5: L\u1ed7i k\u1ebft n\u1ed1i Smart Lock t\u1ea7ng 2"})}),(0,K.jsx)(l.A.Item,{name:"description",label:"M\xf4 t\u1ea3 chi ti\u1ebft",children:(0,K.jsx)(A.A.TextArea,{rows:3,placeholder:"M\xf4 t\u1ea3 hi\u1ec7n tr\u1ea1ng v\xe0 c\xe1c b\u01b0\u1edbc x\u1eed l\xfd ban \u0111\u1ea7u..."})}),(0,K.jsxs)(d.A,{gutter:16,children:[(0,K.jsx)(h.A,{span:12,children:(0,K.jsx)(l.A.Item,{name:"category",label:"Danh m\u1ee5c",children:(0,K.jsx)(b.A,{options:[{label:"An ninh (Security)",value:"security"},{label:"V\u1eadn h\xe0nh (Operations)",value:"operations"},{label:"B\u1ea3o tr\xec (Maintenance)",value:"maintenance"},{label:"Kh\xe1ch h\xe0ng (Guest)",value:"guest"},{label:"T\xe0i ch\xednh (Finance)",value:"finance"}]})})}),(0,K.jsx)(h.A,{span:12,children:(0,K.jsx)(l.A.Item,{name:"severity",label:"M\u1ee9c \u0111\u1ed9 nghi\xeam tr\u1ecdng",children:(0,K.jsx)(b.A,{options:Object.entries(J).map(e=>{let t=(0,a.A)(e,2);return{value:t[0],label:t[1].label}})})})})]}),(0,K.jsxs)(d.A,{gutter:16,children:[(0,K.jsx)(h.A,{span:12,children:(0,K.jsx)(l.A.Item,{name:"assignedTo",label:"Ng\u01b0\u1eddi x\u1eed l\xfd",children:(0,K.jsx)(A.A,{placeholder:"T\xean nh\xe2n vi\xean ho\u1eb7c b\u1ed9 ph\u1eadn"})})}),(0,K.jsx)(h.A,{span:12,children:(0,K.jsx)(l.A.Item,{name:"status",label:"Tr\u1ea1ng th\xe1i x\u1eed l\xfd",children:(0,K.jsx)(b.A,{options:Object.entries(Q).map(e=>{let t=(0,a.A)(e,2);return{value:t[0],label:t[1].label}})})})})]})]})})]})})}},9503(e,t,n){"use strict";n.d(t,{A:()=>i});var a=n(9950);const c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M834.1 469.2A347.49 347.49 0 00751.2 354l-29.1-26.7a8.09 8.09 0 00-13 3.3l-13 37.3c-8.1 23.4-23 47.3-44.1 70.8-1.4 1.5-3 1.9-4.1 2-1.1.1-2.8-.1-4.3-1.5-1.4-1.2-2.1-3-2-4.8 3.7-60.2-14.3-128.1-53.7-202C555.3 171 510 123.1 453.4 89.7l-41.3-24.3c-5.4-3.2-12.3 1-12 7.3l2.2 48c1.5 32.8-2.3 61.8-11.3 85.9-11 29.5-26.8 56.9-47 81.5a295.64 295.64 0 01-47.5 46.1 352.6 352.6 0 00-100.3 121.5A347.75 347.75 0 00160 610c0 47.2 9.3 92.9 27.7 136a349.4 349.4 0 0075.5 110.9c32.4 32 70 57.2 111.9 74.7C418.5 949.8 464.5 959 512 959s93.5-9.2 136.9-27.3A348.6 348.6 0 00760.8 857c32.4-32 57.8-69.4 75.5-110.9a344.2 344.2 0 0027.7-136c0-48.8-10-96.2-29.9-140.9zM713 808.5c-53.7 53.2-125 82.4
2-201 82.4s-147.3-29.2-201-82.4c-53.5-53.1-83-123.5-83-198.4 0-43.5 9.8-85.2 29.1-124 18.8-37.9 46.8-71.8 80.8-97.9a349.6 349.6 0 0058.6-56.8c25-30.5 44.6-64.5 58.2-101a240 240 0 0012.1-46.5c24.1 22.2 44.3 49 61.2 80.4 33.4 62.6 48.8 118.3 45.8 165.7a74.01 74.01 0 0024.4 59.8 73.36 73.36 0 0053.4 18.8c19.7-1 37.8-9.7 51-24.4 13.3-14.9 24.8-30.1 34.4-45.6 14 17.9 25.7 37.4 35 58.4 15.9 35.8 24 73.9 24 113.1 0 74.9-29.5 145.4-83 198.4z"}}]},name:"fire",theme:"outlined"};var r=n(25085);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},s.apply(this,arguments)}const l=(e,t)=>a.createElement(r.A,s({},e,{ref:t,icon:c}));const i=a.forwardRef(l)},72906(e,t,n){"use strict";n.d(t,{A:()=>i});var a=n(9950);const c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"more",theme:"outlined"};var r=n(25085);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},s.apply(this,arguments)}const l=(e,t)=>a.createElement(r.A,s({},e,{ref:t,icon:c}));const i=a.forwardRef(l)},37866(e,t,n){"use strict";n.d(t,{A:()=>i});var a=n(9950);const c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43
2c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};var r=n(25085);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},s.apply(this,arguments)}const l=(e,t)=>a.createElement(r.A,s({},e,{ref:t,icon:c}));const i=a.forwardRef(l)},97973(e,t,n){"use strict";n.d(t,{A:()=>i});var a=n(9950);const c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"};var r=n(25085);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},s.apply(this,arguments)}const l=(e,t)=>a.createElement(r.A,s({},e,{ref:t,icon:c}));const i=a.forwardRef(l)},48864(e,t,n){"use strict";n.d(t,{A:()=>z});var a=n(89379),c=n(9950),r=n(5544),s=n(53986),l=n(99749),i=n(39156),o=n(72004),d=n(55163),h=n(52599),u=n(5741),m=n(57895);const p=e=>{const t=e.value,n=e.formatter,a=e.precision,r=e.decimalSeparator,s=e.groupSeparator,l=void 0===s?"":s,i=e.prefixCls,o=e.className,d=e.style;let u;if((0,h.Tn)(n))u=n(t);else{const e=String(t),n=e.match(/^(-?)(\d*)(\.(\d+))?$/);if(n&&"-"!==e){const e=n[1];let t=n[2]||"0",s=n[4]||"";t=t.replace(/\B(?=(\d{3})+(?!\d))/g,l),(0,h.Et)(a)&&(s=s.padEnd(a,"0").slice(0,a>0?a:0)),s&&(s="".concat(r).concat(s)),u=[c.createElement("span",{key:"int",className:"".concat(i,"-content-value-int")},e,t),s&&c.createElement("span",{key:"decimal",className:"".concat(i,"-content-value-decimal")},s)]}else u=e}return c.createElement("span",{className:o,style:d},u)};var f=n(45343),g=n(31900),v=n(77261);const x=(0,g.OF)("Statistic",e=>(e=>{const t=e.componentCls,n=e.marginXXS,c=e.padding,r=e.colorTextDescription,s=e.titleFontSize,l=e.colorTextHeading,i=e.contentFontSize,o=e.fontFamily;return{[t]:(0,a.A)((0,a.A)({},(0,f.dF)(e)),{},{["".concat(t,"-header")]:{paddingBottom:n,["".concat(t,"-title")]:{color:r,fontSize:s}},["".concat(t,"-skeleton")]:{paddingTop:c},["".concat(t,"-content")]:{color:l,fontSize:i,fontFamily:o,["".concat(t,"-content-value")]:{display:"inline-block",direction:"ltr"},["".concat(t,"-content-prefix, ").concat(t,"-content-suffix")]:{display:"inline-block"},["".concat(t,"-content-prefix")]:{marginInlineEnd:n},["".concat(t,"-content-suffix")]:{marginInlineStart:n}}})}})((0,v.oX)(e,{})),e=>{const t=e.fontSizeHeading3;return{titleFontSize:e.fontSize,contentFontSize:t}}),y=["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave","styles","classNames"],A=c.forwardRef((e,t)=>{const n=e.prefixCls,i=e.className,f=e.rootClassName,g=e.style,v=e.valueStyle,A=e.value,b=void 0===A?0:A,j=e.title,w=e.valueRender,N=e.prefix,S=e.suffix,k=e.loading,C=void 0!==k&&k,T=e.formatter,z=e.precision,M=e.decimalSeparator,E=void 0===M?".":M,O=e.groupSeparator,R=void 0===O?",":O,F=e.onMouseEnter,H=e.onMouseLeave,I=e.styles,B=e.classNames,V=(0,s.A)(e,y),P=(0,u.TP)("statistic"),D=P.getPrefixCls,L=P.direction,$=P.className,_=P.style,W=P.classNames,X=P.styles,q=D("statistic",n),K=x(q),G=(0,r.A)(K,2),Y=G[0],J=G[1],Q=(0,a.A)((0,a.A)({},e),{},{decimalSeparator:E,groupSeparator:R,loading:C,value:b}),U=(0,d.AV)([W,B],[X,I],{props:Q}),Z=(0,r.A)(U,2),ee=Z[0],te=Z[1];const ne=(0,o.$)(q,{["".concat(q,"-rtl")]:"rtl"===L},$,i,f,ee.root,Y,J),ae=(0,o.$)("".concat(q,"-header"),ee.header),ce=(0,o.$)("".concat(q,"-title"),ee.title),re=(0,o.$)("".concat(q,"-content"),ee.content),se=(0,o.$)("".concat(q,"-content-value"),ee.value),le=(0,o.$)("".concat(q,"-content-prefix"),ee.prefix),ie=(0,o.$)("".concat(q,"-content-suffix"),ee.suffix),oe=c.createElement(p,{decimalSeparator:E,groupSeparator:R,prefixCls:q,formatter:T,precision:z,value:b,className:se,style:te.value}),de=c.useRef(null);c.useImperativeHandle(t,()=>({nativeElement:de.current}));const he=(0,l.KE)(V,{aria:!0,data:!0});return c.createElement("div",(0,a.A)((0,a.A)({},he),{},{className:ne,style:(0,a.A)((0,a.A)((0,a.A)({},te.root),_),g),ref:de,onMouseEnter:F,onMouseLeave:H}),j&&c.createElement("div",{className:ae,style:te.header},c.createElement("div",{className:ce,style:te.title},j)),c.createElement(m.A,{paragraph:!1,loading:C,className:"".concat(q,"-skeleton"),active:!0},c.createElement("div",{className:re,style:(0,a.A)((0,a.A)({},v),te.content)},N&&c.createElement("span",{className:le,style:te.prefix},N),(0,h.Tn)(w)?w(oe):oe,S&&c.createElement("span",{className:ie,style:te.suffix},S))))});const b=A,j=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]];function w(e,t,n){const a=t.format,c=void 0===a?"":a,s=new Date(e).getTime(),l=Date.now();return function(e,t){let n=e;const a=/\[[^\]]*]/g,c=(t.match(a)||[]).map(e=>e.slice(1,-1)),s=t.replace(a,"[]"),l=j.reduce((e,t)=>
2{let a=(0,r.A)(t,2),c=a[0],s=a[1];if(e.includes(c)){const t=Math.floor(n/s);return n-=t*s,e.replace(new RegExp("".concat(c,"+"),"g"),e=>{const n=e.length;return t.toString().padStart(n,"0")})}return e},s);let i=0;return l.replace(a,()=>{const e=c[i];return i+=1,e})}(n?Math.max(s-l,0):Math.max(l-s,0),c)}const N=["value","format","onChange","onFinish","type"],S=1e3/60;const k=e=>{const t=e.value,n=e.format,o=void 0===n?"HH:mm:ss":n,d=e.onChange,h=e.onFinish,u=e.type,m=(0,s.A)(e,N),p="countdown"===u,f=c.useState(null),g=(0,r.A)(f,2),v=g[0],x=g[1],y=(0,l._q)(()=>{const e=Date.now(),n=function(e){return new Date(e).getTime()}(t);x({});return null===d||void 0===d||d(p?n-e:e-n),!(p&&n<e)||(null===h||void 0===h||h(),!1)});c.useEffect(()=>{let e;const t=()=>{y()||window.clearInterval(e)};return e=window.setInterval(t,S),()=>{window.clearInterval(e)}},[t,p]),c.useEffect(()=>{x({})},[]);return c.createElement(b,(0,a.A)((0,a.A)({},m),{},{value:t,valueRender:e=>(0,i.Ob)(e,{title:void 0}),formatter:(e,t)=>v?w(e,(0,a.A)((0,a.A)({},t),{},{format:o}),p):"-"}))},C=e=>c.createElement(k,(0,a.A)((0,a.A)({},e),{},{type:"countdown"})),T=c.memo(C);b.Timer=k,b.Countdown=T;const z=b},37609(e){e.exports=function(){"use strict";return function(e,t,n){e=e||{};var a=t.prototype,c={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function r(e,t,n,c){return a.fromToBase(e,t,n,c)}n.en.relativeTime=c,a.fromToBase=function(t,a,r,s,l){for(var i,o,d,h=r.$locale().relativeTime||c,u=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],m=u.length,p=0;p<m;p+=1){var f=u[p];f.d&&(i=s?n(t).diff(r,f.d,!0):r.diff(t,f.d,!0));var g=(e.rounding||Math.round)(Math.abs(i));if(d=i>0,g<=f.r||!f.r){g<=1&&p>0&&(f=u[p-1]);var v=h[f.l];l&&(g=l(""+g)),o="string"==typeof v?v.replace("%d",g):v(g,a,f.l,d);break}}if(a)return o;var x=d?h.future:h.past;return"function"==typeof x?x(o):x.replace("%s",o)},a.to=function(e,t){return r(e,t,this,!0)},a.from=function(e,t){return r(e,t,this)};var s=function(e){return e.$u?n.utc():n()};a.toNow=function(e){return this.to(s(this),e)},a.fromNow=function(e){return this.from(s(this),e)}}}()}}]);
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.