PageSourceSearch

https://swissborg.com/8995-2364c7d358711619f4a8.js

js swissborg.com collected 2026-09-24 09:12:40 UTC 6,264 bytes, 1 lines download raw bytes

1(self.webpackChunkswissborg_website_main=self.webpackChunkswissborg_website_main||[]).push([[8995],{2350:function(e,t,a){var n=a(30758);function i(e){return n.createElement("svg",e,[n.createElement("path",{d:"M4.5 2C3.11929 2 2 3.11929 2 4.5V19.5548C2 19.831 2.22386 20.0548 2.5 20.0548C2.77614 20.0548 3 19.831 3 19.5548V4.5C3 3.67157 3.67157 3 4.5 3H19.5548C19.831 3 20.0548 2.77614 20.0548 2.5C20.0548 2.22386 19.831 2 19.5548 2H4.5Z",fill:"currentColor",key:0}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.5 6.5C4.5 5.39543 5.39543 4.5 6.5 4.5H20C21.1046 4.5 22 5.39543 22 6.5V20C22 21.1046 21.1046 22 20 22H6.5C5.39543 22 4.5 21.1046 4.5 20V6.5ZM6.5 5.5H20C20.5523 5.5 21 5.94772 21 6.5V20C21 20.5523 20.5523 21 20 21H6.5C5.94772 21 5.5 20.5523 5.5 20V6.5C5.5 5.94772 5.94772 5.5 6.5 5.5Z",fill:"currentColor",key:1})])}i.defaultProps={viewBox:"0 0 24 24",fill:"none"},e.exports=i,i.default=i},8995:function(e,t,a){"use strict";a.r(t),a.d(t,{AuditsTableSlice:function(){return M}});var n=a(30758),i=a(36334),o=a(81363),r=a(47492),l=a(55005),s=a(33691),c=a(56796),d=a(32038),u=a(20473),m=a(2350),p=a.n(m),h=a(58730),f=a(42636);const g=o.default.button.withConfig({displayName:"hashString__ClipboardButton",componentId:"sc-1n5g15a-0"})(["cursor:pointer;background:none;border:none;position:relative;z-index:1;svg{width:1.4em;color:",";}&:hover{svg{color:",";}}"],(({theme:e})=>e.neutral.base),(({theme:e})=>e.primary.tint2)),b=o.default.div.withConfig({displayName:"hashString__SHash",componentId:"sc-1n5g15a-1"})([""," display:flex;align-items:center;gap:",";position:relative;margin-left:auto;@media ","{width:auto;gap:",";}"],h.c_,(({theme:e})=>e.spacing.mobile.spacerXS),(({theme:e})=>e.breakpoints.tablet),(({theme:e})=>e.spacing.desktop.spacerXS)),C=o.default.span.withConfig({displayName:"hashString__SHashText",componentId:"sc-1n5g15a-2"})(["width:calc(8rem - 1.4em);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;@media ","{width:calc(20rem - 1.4em);}"],(({theme:e})=>e.breakpoints.tablet)),v=({value:e})=>{const[t,a]=(0,f.A)();return n.createElement(b,null,n.createElement(C,{title:e},e),n.createElement(g,{onClick:()=>a(e)},n.createElement(p(),null)),t&&n.createElement(l.LC,null,"COPIED"))},w=o.default.div.withConfig({displayName:"styledComponents__SHeader",componentId:"sc-10nq0xv-0"})([""," color:",";width:100%;"],h.tQ,(({theme:e})=>e.neutral.base)),y=o.default.a.withConfig({displayName:"styledComponents__SLink",componentId:"sc-10nq0xv-1"})(["color:",";"," &:hover{text-decoration:underline;}"],(({theme:e})=>e.primary.base),h.tQ),_=o.default.span.withConfig({displayName:"styledComponents__SText",componentId:"sc-10nq0xv-2"})([""," margin:auto;"],h.c_),E=(0,d.FB)(),S={year:"numeric",month:"long",day:"numeric"};var I=a(16470),k=a(46097),x=a(32219);const T="include-unpublished",H=x.Ik({id:x.Yj(),time:x.Yj(),commitment:x.Ik({digest:x.Yj()}),distinct_accesses:x.ai()}),$=x.Ik({audits:x.YO(H)}),N={audits:[]},V=e=>(0,I.I)({queryKey:["audits-data",e.limit,e.offset,e.isWithUnpublishedAudits],queryFn:async()=>(async({limit:e,offset:t,isWithUnpublishedAudits:a})=>{try{const n=await(0,k.A)({method:"get",baseURL:"https://api.swissborg.com",url:`/api/0.1/solvency/audit?limit=${e}&offset=${t}&${T}=${null!=a&&a}`});return $.parse(n.data)}catch(n){return console.error(n),N}})(e),retry:!1,initialData:N}),A=(0,o.default)(s.e).withConfig({displayName:"auditsTableSlice__STable",componentId:"sc-dh3onf-0"})(["width:max-content;"]),L=o.default.div.withConfig({displayName:"auditsTableSlice__STableWrapper",componentId:"sc-dh3onf-1"})(["width:100%;margin:0 auto;overflow-x:auto;-webkit-overflow-scrolling:touch;"]),M=({sectionProps:e,containerProps:{align:t,maxWidth:a},columnDefs:o,copyLabel:s})=>{const{search:m}=(0,i.useLocation)(),{locale:p}=(0,r.Sz)(),h=new URLSearchParams(m).get(T),{data:f,isLoading:g}=V({limit:10,offset:0,isWithUnpublishedAudits:"true"===h}),b=(0,n.useMemo)((()=>(e=>e.reduce(((e,t)=>(e[t.columnId]=t.columnTitle,e)),{}))(o)),[o]),C=(({headerTitles:e,locale:t,data:a})=>{const i=(0,n.useMemo)((()=>[E.accessor("timestamp",{cell:e=>
1{const a=`/proof-of-liabilities/audits/${e.row.original.auditId}/self-verification`,i=e.getValue(),o=new Date(i).toLocaleDateString(null!=t?t:"en",S);return n.createElement(y,{href:"en"===t?a:`/${t}${a}`},o)},header:()=>n.createElement(w,{style:{textAlign:"left"}},e.timestamp)}),E.accessor("auditId",{cell:e=>n.createElement(_,null,e.getValue()),header:()=>n.createElement(w,null,e.auditId)}),E.accessor("verificationsCount",{cell:e=>n.createElement(_,null,e.getValue()),header:()=>n.createElement(w,null,e.verificationsCount)}),E.accessor("rootHash",{cell:e=>n.createElement(v,{value:e.getValue()}),header:()=>n.createElement(w,{style:{textAlign:"right"}},e.rootHash)})]),[e,t]);return{table:(0,u.N4)({columns:i,data:a,getCoreRowModel:(0,d.HT)(),enableSorting:!1}),mobileConfig:"repeat(4, 1fr)",desktopConfig:"repeat(4, 1fr)"}})({headerTitles:b,locale:p,data:(0,n.useMemo)((()=>{var e;return(null!==(e=null==f?void 0:f.audits)&&void 0!==e?e:[]).map((e=>({timestamp:e.time,auditId:e.id,verificationsCount:e.distinct_accesses,rootHash:e.commitment.digest})))}),[f])});return g?n.createElement(l.M3,e,n.createElement(l.JI,{$align:t,$maxWidth:a},n.createElement(c.k,null))):n.createElement(l.M3,e,n.createElement(l.JI,{$align:t,$maxWidth:a},n.createElement(L,null,n.createElement(A,C))))}},42636:function(e,t,a){"use strict";var n=a(30758);t.A=()=>{const{0:e,1:t}=(0,n.useState)(!1);(0,n.useEffect)((()=>{if(e){const e=setTimeout((()=>{t(!1)}),500);return()=>clearTimeout(e)}}),[e]);return[e,async e=>{var a;null!==(a=navigator)&&void 0!==a&&a.clipboard||console.warn("Clipboard not supported");try{await navigator.clipboard.writeText(e),t(!0)}catch(n){console.warn("Copy failed",n)}}]}},56796:function(e,t,a){"use strict";a.d(t,{k:function(){return o}});var n=a(81363);const i=(0,n.keyframes)(["from{transform:rotate(0deg)}to{transform:rotate(360deg)}"]),o=n.default.div.withConfig({displayName:"loadingSpinner__LoadingSpinner",componentId:"sc-l0zd1e-0"})(["position:relative;top:50%;left:50%;width:2rem;height:2rem;border:0.2rem solid ",";border-top-color:transparent;border-radius:50%;animation:"," 1s linear infinite;"],(({theme:e})=>e.primary.base),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.