PageSourceSearch

https://nowcustody.com/_next/static/chunks/782.eed887f11c3f53d2.js

js nowcustody.com collected 2026-10-06 01:30:03 UTC 4,806 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[782],{3782:function(t,e,r){r.r(e),r.d(e,{default:function(){return H}});var n=r(2640),s=r(9499),l=r(7294),a=r(4184),o=r.n(a),c=r(3935),i=r(3416),u=r(1392),p=r(8646),m=r(9262);const d=(0,u.Z)(),f=t=>{return{component:t?.component??null,componentSelectList:t?.component_select_list??null,groupComponentData:t?.group_component_data??null,isGroup:t?.is_group??!1,months:Array.isArray(t?.months)?(e=t?.months,e.map((t=>({days:t?.days??null,name:t?.name??null,startOffset:t?.start_offset??null,uptimePercentage:t?.uptime_percentage??null,year:t?.year??null})))):null};var e};var h=()=>{const t=(0,p.Z)();return l.useCallback((e=>{const r=e?.params??{},s=e?.componentId??null,l=t(),a=(0,n.Z)(l,1)[0],o=d.get(`/status-page/${s}`,r,{cancelToken:a});return(0,m.Z)(o,{},f)}),[t])},y=r(5893);const g=t=>{const e=t.className,r=t.fill,n=t.color;return(0,y.jsxs)("svg",{className:e,width:"62",height:"62",viewBox:"0 0 62 62",fill:r,xmlns:"http://www.w3.org/2000/svg",children:[(0,y.jsx)("rect",{width:"62",height:"62",rx:"4"}),(0,y.jsx)("rect",{y:"46",width:"62",height:"16",rx:"4",fill:n})]})};g.defaultProps={className:null,fill:"#00BB6B",color:"#00BB6B"};var j=g;const O=t=>{const e=t.width,r=t.title,n=t.children,s=t.className;return(0,y.jsxs)("div",{className:o()("simple-tooltip",s),style:{maxWidth:`${e}px`},children:[r&&(0,y.jsx)("div",{className:"simple-tooltip__title",children:r}),n&&(0,y.jsx)("div",{className:"simple-tooltip__content",children:n})]})};O.defaultProps={width:100,children:null,title:"",className:""};var b=O,v=r(1381),w=r(8420),_=r(2274),x=r(8301);var P=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"dd.MM.yyyy HH:mm:ss";const r=(0,v.Z)(t)?t:(0,w.Z)(t);return(0,_.Z)(r)?(0,x.Z)(r,e):t};function N(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Z(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?N(Object(r),!0).forEach((function(e){(0,s.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):N(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}const A="#B7E7D4",E="#EAEAEA",D={days:null,name:null};var B=r(3620);function S(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function k(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?S(Object(r),!0).forEach((function(e){(0,s.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}const M="#17171A",C=Array(35).fill({color:M,fill:M,date:null}).map((t=>k(k({},t),{},{id:(0,i.x0)()}))),F=t=>{const e=t.className,r=h(),s=l.useState(!1),a=(0,n.Z)(s,2),u=a[0],p=a[1],m=l.useState(!1),d=(0,n.Z)(m,2),f=d[0],g=d[1],O=l.useState(C),v=(0,n.Z)(O,2),w=v[0],_=v[1],x=l.useState(null),N=(0,n.Z)(x,2),S=N[0],k=N[1],M=async()=>{const t=((t,e)=>{if(!t)return D;const r=t?.days??null,n=t?.name??null,s=t?.startOffset??0,l=[...e];return r?(r.forEach(((t,e)=>{const r=l[s+e],n=Boolean(t.date);let a=t.color;"#00c26f"===t.color&&(a=A),"#e74c3c"===t.color&&(a="#FD8E6A"),"#e67a24"===t.color&&(a="#FDBA6B");const o=n?A:E,c=n?a:E,u=t.date??null,p=t.mc??0,m=t.pc??0,d=t.id||(0,i.x0)();l[s+e]=Z(Z({},r),{},{fill:o,color:c,date:u,mc:p,pc:m,id:d})}
1)),{days:l,name:n}):D})(await(async()=>{let t={};g(!0);const e=await r({params:{page:1},componentId:"8xx67q4bsg7t"}),n=e.data;if(200===e.status){p(!0),g(!1);const e=n?.months??null;t=Array.isArray(e)?e[e.length-1]:{}}return t})(),w);c.unstable_batchedUpdates((()=>{_(t?.days),k(t?.name)}))};return l.useEffect((()=>{M()}),[]),(0,y.jsxs)("div",{className:o()("uptime-month",e),children:[!u&&f&&(0,y.jsx)(B.Z,{size:50,style:{margin:"0 auto"},src:"/images/loader-gray-light.gif"}),u&&!f&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:"uptime-month__name",children:S}),(0,y.jsx)("div",{className:"uptime-month__days",children:Array.isArray(w)&&w.map((t=>(0,y.jsxs)("div",{className:"uptime-month__day",children:[(0,y.jsx)(j,{fill:t.fill,color:t.color}),t.date&&!t.mc&&!t.pc&&(0,y.jsx)(b,{className:"uptime-month__day_tooltip",title:P(t.date,"d MMMM"),width:234,children:"No downtime recorded on this day"})]},t.id)))})]})]})};F.defaultProps={className:null};var H=F}}]);

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.