Bundle embedded web app

This commit is contained in:
renovate[bot]
2022-12-30 17:14:11 +00:00
parent 3428ead3ed
commit e7318da2b4
117 changed files with 214 additions and 214 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4170],{63606:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var a=t(1413),s=t(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},c=t(42135),i=function(e,n){return s.createElement(c.Z,(0,a.Z)((0,a.Z)({},e),{},{ref:n,icon:r}))};i.displayName="CheckOutlined";var o=s.forwardRef(i)},82753:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/config/general/EditPageContent",function(){return t(42441)}])},42441:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return p}});var a=t(85893),s=t(67294),r=t(84485),c=t(71577),i=t(87685),o=t(58909),u=t(48825),l=t(76538),d=t(99519),f=t(90745),g=t(41983),h=t(39664);let{Title:m}=r.Z;function p(){let[e,n]=(0,s.useState)(""),[t,r]=(0,s.useState)(null),[p,k]=(0,s.useState)(!1),w=(0,s.useContext)(d.aC),{serverConfig:x,setFieldInConfigState:v}=w||{},{instanceDetails:_}=x,{extraPageContent:C}=_,E=null,N=()=>{r(null),k(!1),clearTimeout(E),E=null};async function j(){r((0,g.kg)(g.Jk)),await (0,f.Si)({apiPath:f.AA,data:{value:e},onSuccess(n){v({fieldName:"extraPageContent",value:e,path:"instanceDetails"}),r((0,g.kg)(g.zv,n))},onError(e){r((0,g.kg)(g.Un,e))}}),E=setTimeout(N,f.sI)}return(0,s.useEffect)(()=>{n(C)},[_]),(0,a.jsxs)("div",{className:"edit-page-content",children:[(0,a.jsx)(m,{level:3,className:"section-title",children:"Custom Page Content"}),(0,a.jsxs)("p",{className:"description",children:["Edit the content of your page by using simple"," ",(0,a.jsx)("a",{href:"https://www.markdownguide.org/basic-syntax/",target:"_blank",rel:"noopener noreferrer",children:"Markdown syntax"}),"."]}),(0,a.jsx)(i.ZP,{value:e,placeholder:"Enter your custom page content here...",theme:o.F,onChange:function(e){n(e),e===C||p?e===C&&p&&k(!1):k(!0)},extensions:[(0,u.markdown)({base:u.markdownLanguage,codeLanguages:l.M})]}),(0,a.jsx)("br",{}),(0,a.jsxs)("div",{className:"page-content-actions",children:[p&&(0,a.jsx)(c.Z,{type:"primary",onClick:j,children:"Save"}),(0,a.jsx)(h.E,{status:t})]})]})}}},function(e){e.O(0,[5762,4485,1943,6538,9774,2888,179],function(){return e(e.s=82753)}),_N_E=e.O()}]);
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4170],{63606:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var a=t(1413),s=t(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},c=t(42135),i=function(e,n){return s.createElement(c.Z,(0,a.Z)((0,a.Z)({},e),{},{ref:n,icon:r}))};i.displayName="CheckOutlined";var o=s.forwardRef(i)},82753:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/config/general/EditPageContent",function(){return t(42441)}])},42441:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return p}});var a=t(85893),s=t(67294),r=t(84485),c=t(71577),i=t(87685),o=t(58909),u=t(48825),l=t(76538),d=t(99519),f=t(90745),g=t(41983),h=t(39664);let{Title:m}=r.Z;function p(){let[e,n]=(0,s.useState)(""),[t,r]=(0,s.useState)(null),[p,k]=(0,s.useState)(!1),w=(0,s.useContext)(d.aC),{serverConfig:x,setFieldInConfigState:v}=w||{},{instanceDetails:_}=x,{extraPageContent:C}=_,E=null,N=()=>{r(null),k(!1),clearTimeout(E),E=null};async function j(){r((0,g.kg)(g.Jk)),await (0,f.Si)({apiPath:f.AA,data:{value:e},onSuccess:n=>{v({fieldName:"extraPageContent",value:e,path:"instanceDetails"}),r((0,g.kg)(g.zv,n))},onError:e=>{r((0,g.kg)(g.Un,e))}}),E=setTimeout(N,f.sI)}return(0,s.useEffect)(()=>{n(C)},[_]),(0,a.jsxs)("div",{className:"edit-page-content",children:[(0,a.jsx)(m,{level:3,className:"section-title",children:"Custom Page Content"}),(0,a.jsxs)("p",{className:"description",children:["Edit the content of your page by using simple"," ",(0,a.jsx)("a",{href:"https://www.markdownguide.org/basic-syntax/",target:"_blank",rel:"noopener noreferrer",children:"Markdown syntax"}),"."]}),(0,a.jsx)(i.ZP,{value:e,placeholder:"Enter your custom page content here...",theme:o.F,onChange:function(e){n(e),e===C||p?e===C&&p&&k(!1):k(!0)},extensions:[(0,u.markdown)({base:u.markdownLanguage,codeLanguages:l.M})]}),(0,a.jsx)("br",{}),(0,a.jsxs)("div",{className:"page-content-actions",children:[p&&(0,a.jsx)(c.Z,{type:"primary",onClick:j,children:"Save"}),(0,a.jsx)(h.E,{status:t})]})]})}}},function(e){e.O(0,[5762,4485,1943,6538,9774,2888,179],function(){return e(e.s=82753)}),_N_E=e.O()}]);
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6815],{42072:function(e,n,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/config/server/EditStorage",function(){return a(68097)}])},73706:function(e,n,a){"use strict";a.d(n,{Z:function(){return o}});var s=a(85893),l=a(67294),i=a(94594),t=a(41983),c=a(39664),r=a(90745),d=a(99519);let o=e=>{let{apiPath:n,checked:a,reversed:o=!1,configPath:u="",disabled:h=!1,fieldName:f,label:v,tip:m,useSubmit:g,onChange:x}=e,[j,p]=(0,l.useState)(null),N=null,k=(0,l.useContext)(d.aC),{setFieldInConfigState:C}=k||{},b=()=>{p(null),clearTimeout(N),N=null},S=async e=>{if(g){p((0,t.kg)(t.Jk));let a=o?!e:e;await (0,r.Si)({apiPath:n,data:{value:a},onSuccess(){C({fieldName:f,value:a,path:u}),p((0,t.kg)(t.zv))},onError(e){p((0,t.kg)(t.Un,"There was an error: ".concat(e)))}}),N=setTimeout(b,r.sI)}x&&x(e)},w=null!==j&&j.type===t.Jk;return(0,s.jsxs)("div",{className:"formfield-container toggleswitch-container",children:[v&&(0,s.jsx)("div",{className:"label-side",children:(0,s.jsx)("span",{className:"formfield-label",children:v})}),(0,s.jsxs)("div",{className:"input-side",children:[(0,s.jsxs)("div",{className:"input-group",children:[(0,s.jsx)(i.Z,{className:"switch field-".concat(f),loading:w,onChange:S,defaultChecked:a,checked:a,checkedChildren:"ON",unCheckedChildren:"OFF",disabled:h}),(0,s.jsx)(c.E,{status:j})]}),(0,s.jsx)("p",{className:"field-tip",children:m})]})]})};o.defaultProps={apiPath:"",checked:!1,reversed:!1,configPath:"",disabled:!1,label:"",tip:"",useSubmit:!1,onChange:null}},68097:function(e,n,a){"use strict";a.r(n),a.d(n,{default:function(){return j}});var s=a(85893),l=a(54907),i=a(71577),t=a(94184),c=a.n(t),r=a(67294),d=a(99519),o=a(82661),u=a(90745),h=a(41983),f=a(40117),v=a(39664),m=a(37174),g=a(73706);let{Panel:x}=l.Z;function j(){let[e,n]=(0,r.useState)(null),[a,t]=(0,r.useState)(null),[j,p]=(0,r.useState)(!1),N=(0,r.useContext)(d.aC),{serverConfig:k,setFieldInConfigState:C}=N||{},{setMessage:b}=(0,r.useContext)(o.k),{s3:S}=k,{accessKey:w="",acl:E="",bucket:y="",enabled:P=!1,endpoint:_="",region:z="",secret:T="",servingEndpoint:Z="",forcePathStyle:O=!1}=S;if((0,r.useEffect)(()=>{n({accessKey:w,acl:E,bucket:y,enabled:P,endpoint:_,region:z,secret:T,servingEndpoint:Z,forcePathStyle:O}),p(P)},[S]),!e)return null;let U=()=>{t(null),clearTimeout(null)},I=a=>{let{fieldName:s,value:l}=a;n({...e,[s]:l})},J=async()=>{t((0,h.kg)(h.Jk)),await (0,u.Si)({apiPath:u.$w,data:{value:e},onSuccess(){C({fieldName:"s3",value:e,path:""}),t((0,h.kg)(h.zv,"Updated.")),setTimeout(U,u.sI),b("Changing your storage configuration will take place the next time you start a new stream.")},onError(e){t((0,h.kg)(h.Un,e)),setTimeout(U,u.sI)}})},K=e=>{p(e),I({fieldName:"enabled",value:e})},F=e=>{I({fieldName:"forcePathStyle",value:e})},X=c()({"edit-storage-container":!0,"form-module":!0,enabled:j}),M=function(e,n){let{endpoint:a,accessKey:s,secret:l,bucket:i,region:t,enabled:c,servingEndpoint:r,acl:d,forcePathStyle:o}=e;if(c){if(a&&(0,m.jv)(a)&&s&&l&&i&&t&&(c!==n.enabled||a!==n.endpoint||s!==n.accessKey||l!==n.secret||i!==n.bucket||t!==n.region||!n.servingEndpoint&&""!==r||n.servingEndpoint&&r!==n.servingEndpoint||!n.acl&&""!==d||n.acl&&d!==n.acl||o!==n.forcePathStyle))return!0}else if(c!==n.enabled)return!0;return!1}(e,S);return(0,s.jsxs)("div",{className:X,children:[(0,s.jsx)("div",{className:"enable-switch",children:(0,s.jsx)(g.Z,{apiPath:"",fieldName:"enabled",label:"Use S3 Storage Provider",checked:e.enabled,onChange:K})}),(0,s.jsxs)("div",{className:"form-fields",children:[(0,s.jsx)("div",{className:"field-container",children:(0,s.jsx)(f.nv,{...u.zm.endpoint,value:e.endpoint,onChange:I})}),(0,s.jsx)("div",{className:"field-container",children:(0,s.jsx)(f.nv,{...u.zm.accessKey,value:e.accessKey,onChange:I})}),(0,s.jsx)("div",{className:"field-container",children:(0,s.jsx)(f.nv,{...u.zm.secret,value:e.secret,onChange:I})}),(0,s.jsx)("div",{className:"field-container",children:(0,s.jsx)(f.nv,{...u.zm.bucket,value:e.bucket,onChange:I})}),(0,s.jsx)("div",{className:"field-container",children:(0,s.jsx)(f.nv,{...u.zm.region,value:e.region,onChange:I})}),(0,s.jsx)(l.Z,{className:"advanced-section",children:(0,s.jsxs)(x,{header:"Optional Settings",children:[(0,s.jsx)("div",{className:"field-container",children:(0,s.jsx)(f.nv,{...u.zm.acl,value:e.acl,onChange:I})}),(0,s.jsx)("div",{className:"field-container",children:(0,s.jsx)(f.nv,{...u.zm.servingEndpoint,value:e.servingEndpoint,onChange:I})}),(0,s.jsx)("div",{className:"enable-switch",children:(0,s.jsx)(g.Z,{...u.zm.forcePathStyle,fieldName:"forcePathStyle",checked:e.forcePathStyle,onChange:F})})]},"1")})]}),(0,s.jsxs)("div",{className:"button-container",children:[(0,s.jsx)(i.Z,{type:"primary",onClick:J,disabled:!M,children:"Save"}),(0,s.jsx)(v.E,{status:a})]})]})}}},function(e){e.O(0,[5473,9774,2888,179],function(){return e(e.s=42072)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6815],{42072:function(e,n,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/config/server/EditStorage",function(){return a(68097)}])},73706:function(e,n,a){"use strict";a.d(n,{Z:function(){return o}});var s=a(85893),l=a(67294),i=a(94594),t=a(41983),c=a(39664),r=a(90745),d=a(99519);let o=e=>{let{apiPath:n,checked:a,reversed:o=!1,configPath:u="",disabled:h=!1,fieldName:f,label:v,tip:m,useSubmit:g,onChange:x}=e,[j,p]=(0,l.useState)(null),N=null,k=(0,l.useContext)(d.aC),{setFieldInConfigState:C}=k||{},b=()=>{p(null),clearTimeout(N),N=null},S=async e=>{if(g){p((0,t.kg)(t.Jk));let a=o?!e:e;await (0,r.Si)({apiPath:n,data:{value:a},onSuccess:()=>{C({fieldName:f,value:a,path:u}),p((0,t.kg)(t.zv))},onError:e=>{p((0,t.kg)(t.Un,"There was an error: ".concat(e)))}}),N=setTimeout(b,r.sI)}x&&x(e)},w=null!==j&&j.type===t.Jk;return(0,s.jsxs)("div",{className:"formfield-container toggleswitch-container",children:[v&&(0,s.jsx)("div",{className:"label-side",children:(0,s.jsx)("span",{className:"formfield-label",children:v})}),(0,s.jsxs)("div",{className:"input-side",children:[(0,s.jsxs)("div",{className:"input-group",children:[(0,s.jsx)(i.Z,{className:"switch field-".concat(f),loading:w,onChange:S,defaultChecked:a,checked:a,checkedChildren:"ON",unCheckedChildren:"OFF",disabled:h}),(0,s.jsx)(c.E,{status:j})]}),(0,s.jsx)("p",{className:"field-tip",children:m})]})]})};o.defaultProps={apiPath:"",checked:!1,reversed:!1,configPath:"",disabled:!1,label:"",tip:"",useSubmit:!1,onChange:null}},68097:function(e,n,a){"use strict";a.r(n),a.d(n,{default:function(){return j}});var s=a(85893),l=a(54907),i=a(71577),t=a(94184),c=a.n(t),r=a(67294),d=a(99519),o=a(82661),u=a(90745),h=a(41983),f=a(40117),v=a(39664),m=a(37174),g=a(73706);let{Panel:x}=l.Z;function j(){let[e,n]=(0,r.useState)(null),[a,t]=(0,r.useState)(null),[j,p]=(0,r.useState)(!1),N=(0,r.useContext)(d.aC),{serverConfig:k,setFieldInConfigState:C}=N||{},{setMessage:b}=(0,r.useContext)(o.k),{s3:S}=k,{accessKey:w="",acl:E="",bucket:y="",enabled:P=!1,endpoint:_="",region:z="",secret:T="",servingEndpoint:Z="",forcePathStyle:O=!1}=S;if((0,r.useEffect)(()=>{n({accessKey:w,acl:E,bucket:y,enabled:P,endpoint:_,region:z,secret:T,servingEndpoint:Z,forcePathStyle:O}),p(P)},[S]),!e)return null;let U=()=>{t(null),clearTimeout(null)},I=a=>{let{fieldName:s,value:l}=a;n({...e,[s]:l})},J=async()=>{t((0,h.kg)(h.Jk)),await (0,u.Si)({apiPath:u.$w,data:{value:e},onSuccess:()=>{C({fieldName:"s3",value:e,path:""}),t((0,h.kg)(h.zv,"Updated.")),setTimeout(U,u.sI),b("Changing your storage configuration will take place the next time you start a new stream.")},onError:e=>{t((0,h.kg)(h.Un,e)),setTimeout(U,u.sI)}})},K=e=>{p(e),I({fieldName:"enabled",value:e})},F=e=>{I({fieldName:"forcePathStyle",value:e})},X=c()({"edit-storage-container":!0,"form-module":!0,enabled:j}),M=function(e,n){let{endpoint:a,accessKey:s,secret:l,bucket:i,region:t,enabled:c,servingEndpoint:r,acl:d,forcePathStyle:o}=e;if(c){if(a&&(0,m.jv)(a)&&s&&l&&i&&t&&(c!==n.enabled||a!==n.endpoint||s!==n.accessKey||l!==n.secret||i!==n.bucket||t!==n.region||!n.servingEndpoint&&""!==r||n.servingEndpoint&&r!==n.servingEndpoint||!n.acl&&""!==d||n.acl&&d!==n.acl||o!==n.forcePathStyle))return!0}else if(c!==n.enabled)return!0;return!1}(e,S);return(0,s.jsxs)("div",{className:X,children:[(0,s.jsx)("div",{className:"enable-switch",children:(0,s.jsx)(g.Z,{apiPath:"",fieldName:"enabled",label:"Use S3 Storage Provider",checked:e.enabled,onChange:K})}),(0,s.jsxs)("div",{className:"form-fields",children:[(0,s.jsx)("div",{className:"field-container",children:(0,s.jsx)(f.nv,{...u.zm.endpoint,value:e.endpoint,onChange:I})}),(0,s.jsx)("div",{className:"field-container",children:(0,s.jsx)(f.nv,{...u.zm.accessKey,value:e.accessKey,onChange:I})}),(0,s.jsx)("div",{className:"field-container",children:(0,s.jsx)(f.nv,{...u.zm.secret,value:e.secret,onChange:I})}),(0,s.jsx)("div",{className:"field-container",children:(0,s.jsx)(f.nv,{...u.zm.bucket,value:e.bucket,onChange:I})}),(0,s.jsx)("div",{className:"field-container",children:(0,s.jsx)(f.nv,{...u.zm.region,value:e.region,onChange:I})}),(0,s.jsx)(l.Z,{className:"advanced-section",children:(0,s.jsxs)(x,{header:"Optional Settings",children:[(0,s.jsx)("div",{className:"field-container",children:(0,s.jsx)(f.nv,{...u.zm.acl,value:e.acl,onChange:I})}),(0,s.jsx)("div",{className:"field-container",children:(0,s.jsx)(f.nv,{...u.zm.servingEndpoint,value:e.servingEndpoint,onChange:I})}),(0,s.jsx)("div",{className:"enable-switch",children:(0,s.jsx)(g.Z,{...u.zm.forcePathStyle,fieldName:"forcePathStyle",checked:e.forcePathStyle,onChange:F})})]},"1")})]}),(0,s.jsxs)("div",{className:"button-container",children:[(0,s.jsx)(i.Z,{type:"primary",onClick:J,disabled:!M,children:"Save"}),(0,s.jsx)(v.E,{status:a})]})]})}}},function(e){e.O(0,[5473,9774,2888,179],function(){return e(e.s=42072)}),_N_E=e.O()}]);
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4976],{62705:function(t,e,n){var r=n(55639).Symbol;t.exports=r},44239:function(t,e,n){var r=n(62705),o=n(89607),i=n(2333),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},27561:function(t,e,n){var r=n(67990),o=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(o,""):t}},31957:function(t,e,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},89607:function(t,e,n){var r=n(62705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,c),n=t[c];try{t[c]=void 0;var r=!0}catch(o){}var u=a.call(t);return r&&(e?t[c]=n:delete t[c]),u}},2333:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},55639:function(t,e,n){var r=n(31957),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},67990:function(t){var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},23279:function(t,e,n){var r=n(13218),o=n(7771),i=n(14841),a=Math.max,c=Math.min;t.exports=function(t,e,n){var u,s,f,l,p,d,v=0,h=!1,y=!1,m=!0;if("function"!=typeof t)throw TypeError("Expected a function");function x(e){var n=u,r=s;return u=s=void 0,v=e,l=t.apply(r,n)}function g(t){var n=t-d,r=t-v;return void 0===d||n>=e||n<0||y&&r>=f}function E(){var t,n,r,i=o();if(g(i))return b(i);p=setTimeout(E,(t=i-d,n=i-v,r=e-t,y?c(r,f-n):r))}function b(t){return(p=void 0,m&&u)?x(t):(u=s=void 0,l)}function w(){var t,n=o(),r=g(n);if(u=arguments,s=this,d=n,r){if(void 0===p)return v=t=d,p=setTimeout(E,e),h?x(t):l;if(y)return clearTimeout(p),p=setTimeout(E,e),x(d)}return void 0===p&&(p=setTimeout(E,e)),l}return e=i(e)||0,r(n)&&(h=!!n.leading,f=(y="maxWait"in n)?a(i(n.maxWait)||0,e):f,m="trailing"in n?!!n.trailing:m),w.cancel=function(){void 0!==p&&clearTimeout(p),v=0,u=d=s=p=void 0},w.flush=function(){return void 0===p?l:b(o())},w}},13218:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},37005:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},33448:function(t,e,n){var r=n(44239),o=n(37005);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==r(t)}},7771:function(t,e,n){var r=n(55639);t.exports=function(){return r.Date.now()}},14841:function(t,e,n){var r=n(27561),o=n(13218),i=n(33448),a=0/0,c=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,s=/^0o[0-7]+$/i,f=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return a;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=u.test(t);return n||s.test(t)?f(t.slice(2),n?2:8):c.test(t)?a:+t}},10203:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/federation/actions",function(){return n(86419)}])},86419:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return p}});var r=n(85893),o=n(67294),i=n(84485),a=n(52206),c=n(58091),u=n(64777),s=n(70241);let{Title:f,Paragraph:l}=i.Z;function p(){let[t,e]=(0,o.useState)([]),[n,i]=(0,o.useState)(0),[p,d]=(0,o.useState)(0),v=async()=>{try{let t="".concat(u.op,"?offset=").concat(50*p,"&limit=").concat(50),n=await (0,u.rQ)(t,{auth:!0}),{results:r,total:o}=n;i(o),(0,s.Qr)(r)?e([]):e(r)}catch(a){console.log("==== error",a)}};(0,o.useEffect)(()=>{v()},[p]);let h=[{title:"Action",dataIndex:"type",key:"type",width:50,render(t,e){let n,o;switch(e.type){case"FEDIVERSE_ENGAGEMENT_REPOST":n="/img/repost.svg",o="Share";break;case"FEDIVERSE_ENGAGEMENT_LIKE":n="/img/like.svg",o="Like";break;case"FEDIVERSE_ENGAGEMENT_FOLLOW":n="/img/follow.svg",o="Follow";break;default:n=""}return(0,r.jsxs)("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"},children:[(0,r.jsx)("img",{src:n,width:"70%",alt:o,title:o}),(0,r.jsx)("div",{style:{fontSize:"0.7rem"},children:o})]})}},{title:"From",dataIndex:"actorIRI",key:"from",render:(t,e)=>(0,r.jsx)("a",{href:e.actorIRI,children:e.actorIRI})},{title:"When",dataIndex:"timestamp",key:"timestamp",render(t,e){let n=new Date(e.timestamp);return(0,c.Z)(n,"P pp")}}];return(0,r.jsxs)("div",{children:[(0,r.jsx)(f,{level:3,children:"Fediverse Actions"}),(0,r.jsx)(l,{children:"Below is a list of actions that were taken by others in response to your posts as well as people who requested to follow you."}),(0,r.jsx)(a.Z,{dataSource:t,columns:h,size:"small",rowKey:t=>t.iri,pagination:{pageSize:50,hideOnSinglePage:!0,showSizeChanger:!1,total:n},onChange(t){let e=t.current;d(e)}})]})}}},function(t){t.O(0,[4485,8909,3903,4267,2206,8091,9774,2888,179],function(){return t(t.s=10203)}),_N_E=t.O()}]);
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4976],{62705:function(t,e,n){var r=n(55639).Symbol;t.exports=r},44239:function(t,e,n){var r=n(62705),o=n(89607),i=n(2333),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},27561:function(t,e,n){var r=n(67990),o=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(o,""):t}},31957:function(t,e,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},89607:function(t,e,n){var r=n(62705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,c),n=t[c];try{t[c]=void 0;var r=!0}catch(o){}var u=a.call(t);return r&&(e?t[c]=n:delete t[c]),u}},2333:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},55639:function(t,e,n){var r=n(31957),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},67990:function(t){var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},23279:function(t,e,n){var r=n(13218),o=n(7771),i=n(14841),a=Math.max,c=Math.min;t.exports=function(t,e,n){var u,s,f,l,p,d,v=0,h=!1,y=!1,m=!0;if("function"!=typeof t)throw TypeError("Expected a function");function x(e){var n=u,r=s;return u=s=void 0,v=e,l=t.apply(r,n)}function g(t){var n=t-d,r=t-v;return void 0===d||n>=e||n<0||y&&r>=f}function E(){var t,n,r,i=o();if(g(i))return b(i);p=setTimeout(E,(t=i-d,n=i-v,r=e-t,y?c(r,f-n):r))}function b(t){return(p=void 0,m&&u)?x(t):(u=s=void 0,l)}function w(){var t,n=o(),r=g(n);if(u=arguments,s=this,d=n,r){if(void 0===p)return v=t=d,p=setTimeout(E,e),h?x(t):l;if(y)return clearTimeout(p),p=setTimeout(E,e),x(d)}return void 0===p&&(p=setTimeout(E,e)),l}return e=i(e)||0,r(n)&&(h=!!n.leading,f=(y="maxWait"in n)?a(i(n.maxWait)||0,e):f,m="trailing"in n?!!n.trailing:m),w.cancel=function(){void 0!==p&&clearTimeout(p),v=0,u=d=s=p=void 0},w.flush=function(){return void 0===p?l:b(o())},w}},13218:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},37005:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},33448:function(t,e,n){var r=n(44239),o=n(37005);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==r(t)}},7771:function(t,e,n){var r=n(55639);t.exports=function(){return r.Date.now()}},14841:function(t,e,n){var r=n(27561),o=n(13218),i=n(33448),a=0/0,c=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,s=/^0o[0-7]+$/i,f=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return a;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=u.test(t);return n||s.test(t)?f(t.slice(2),n?2:8):c.test(t)?a:+t}},10203:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/federation/actions",function(){return n(86419)}])},86419:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return p}});var r=n(85893),o=n(67294),i=n(84485),a=n(52206),c=n(58091),u=n(64777),s=n(70241);let{Title:f,Paragraph:l}=i.Z;function p(){let[t,e]=(0,o.useState)([]),[n,i]=(0,o.useState)(0),[p,d]=(0,o.useState)(0),v=async()=>{try{let t="".concat(u.op,"?offset=").concat(50*p,"&limit=").concat(50),n=await (0,u.rQ)(t,{auth:!0}),{results:r,total:o}=n;i(o),(0,s.Qr)(r)?e([]):e(r)}catch(a){console.log("==== error",a)}};(0,o.useEffect)(()=>{v()},[p]);let h=[{title:"Action",dataIndex:"type",key:"type",width:50,render:(t,e)=>{let n,o;switch(e.type){case"FEDIVERSE_ENGAGEMENT_REPOST":n="/img/repost.svg",o="Share";break;case"FEDIVERSE_ENGAGEMENT_LIKE":n="/img/like.svg",o="Like";break;case"FEDIVERSE_ENGAGEMENT_FOLLOW":n="/img/follow.svg",o="Follow";break;default:n=""}return(0,r.jsxs)("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"},children:[(0,r.jsx)("img",{src:n,width:"70%",alt:o,title:o}),(0,r.jsx)("div",{style:{fontSize:"0.7rem"},children:o})]})}},{title:"From",dataIndex:"actorIRI",key:"from",render:(t,e)=>(0,r.jsx)("a",{href:e.actorIRI,children:e.actorIRI})},{title:"When",dataIndex:"timestamp",key:"timestamp",render:(t,e)=>{let n=new Date(e.timestamp);return(0,c.Z)(n,"P pp")}}];return(0,r.jsxs)("div",{children:[(0,r.jsx)(f,{level:3,children:"Fediverse Actions"}),(0,r.jsx)(l,{children:"Below is a list of actions that were taken by others in response to your posts as well as people who requested to follow you."}),(0,r.jsx)(a.Z,{dataSource:t,columns:h,size:"small",rowKey:t=>t.iri,pagination:{pageSize:50,hideOnSinglePage:!0,showSizeChanger:!1,total:n},onChange:t=>{let e=t.current;d(e)}})]})}}},function(t){t.O(0,[4485,8909,3903,4267,2206,8091,9774,2888,179],function(){return t(t.s=10203)}),_N_E=t.O()}]);
@@ -1 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1774],{62705:function(e,t,n){var r=n(55639).Symbol;e.exports=r},44239:function(e,t,n){var r=n(62705),o=n(89607),i=n(2333),l=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":l&&l in Object(e)?o(e):i(e)}},27561:function(e,t,n){var r=n(67990),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},31957:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},89607:function(e,t,n){var r=n(62705),o=Object.prototype,i=o.hasOwnProperty,l=o.toString,u=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,u),n=e[u];try{e[u]=void 0;var r=!0}catch(o){}var c=l.call(e);return r&&(t?e[u]=n:delete e[u]),c}},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},55639:function(e,t,n){var r=n(31957),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},67990:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},33448:function(e,t,n){var r=n(44239),o=n(37005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},14841:function(e,t,n){var r=n(27561),o=n(13218),i=n(33448),l=0/0,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return l;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=c.test(e);return n||a.test(e)?s(e.slice(2),n?2:8):u.test(e)?l:+e}},23426:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/logs",function(){return n(87905)}])},19849:function(e,t,n){"use strict";n.d(t,{o:function(){return d}});var r=n(85893);n(67294);var o=n(84485),i=n(20550),l=n(52206),u=n(53731),c=n(58091);let{Title:a}=o.Z;function s(e,t){let n="black";return"warning"===t.level?n="orange":"error"===t.level&&(n="red"),(0,r.jsx)(i.Z,{color:n,children:e})}function f(e){return(0,r.jsx)(u.Z,{children:e})}let d=e=>{let{logs:t,pageSize:n}=e;return(null==t?void 0:t.length)?(0,r.jsxs)("div",{className:"logs-section",children:[(0,r.jsx)(a,{children:"Logs"}),(0,r.jsx)(l.Z,{size:"middle",dataSource:t,columns:[{title:"Level",dataIndex:"level",key:"level",filters:[{text:"Info",value:"info"},{text:"Warning",value:"warning"},{text:"Error",value:"Error"}],onFilter:(e,t)=>0===t.level.indexOf(e),render:s},{title:"Timestamp",dataIndex:"time",key:"time",render(e){let t=new Date(e);return(0,c.Z)(t,"pp P")},sorter:(e,t)=>new Date(e.time).getTime()-new Date(t.time).getTime(),sortDirections:["descend","ascend"],defaultSortOrder:"descend"},{title:"Message",dataIndex:"message",key:"message",render:f}],rowKey:e=>e.time,pagination:{pageSize:n||20}})]}):null}},87905:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var r=n(85893),o=n(67294),i=n(19849),l=n(64777);function u(){let[e,t]=(0,o.useState)([]),n=async()=>{try{let e=await (0,l.rQ)(l.sG);t(e)}catch(n){console.log("==== error",n)}};return(0,o.useEffect)(()=>{let e=null;return setInterval(n,5e3),n(),e=setInterval(n,5e3),()=>{clearInterval(e)}},[]),(0,r.jsx)(i.o,{logs:e,pageSize:20})}}},function(e){e.O(0,[4485,8909,3903,4267,2206,8091,5360,9774,2888,179],function(){return e(e.s=23426)}),_N_E=e.O()}]);
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1774],{62705:function(e,t,n){var r=n(55639).Symbol;e.exports=r},44239:function(e,t,n){var r=n(62705),o=n(89607),i=n(2333),l=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":l&&l in Object(e)?o(e):i(e)}},27561:function(e,t,n){var r=n(67990),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},31957:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},89607:function(e,t,n){var r=n(62705),o=Object.prototype,i=o.hasOwnProperty,l=o.toString,u=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,u),n=e[u];try{e[u]=void 0;var r=!0}catch(o){}var c=l.call(e);return r&&(t?e[u]=n:delete e[u]),c}},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},55639:function(e,t,n){var r=n(31957),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},67990:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},33448:function(e,t,n){var r=n(44239),o=n(37005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},14841:function(e,t,n){var r=n(27561),o=n(13218),i=n(33448),l=0/0,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return l;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=c.test(e);return n||a.test(e)?s(e.slice(2),n?2:8):u.test(e)?l:+e}},23426:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/logs",function(){return n(87905)}])},19849:function(e,t,n){"use strict";n.d(t,{o:function(){return d}});var r=n(85893);n(67294);var o=n(84485),i=n(20550),l=n(52206),u=n(53731),c=n(58091);let{Title:a}=o.Z;function s(e,t){let n="black";return"warning"===t.level?n="orange":"error"===t.level&&(n="red"),(0,r.jsx)(i.Z,{color:n,children:e})}function f(e){return(0,r.jsx)(u.Z,{children:e})}let d=e=>{let{logs:t,pageSize:n}=e;return(null==t?void 0:t.length)?(0,r.jsxs)("div",{className:"logs-section",children:[(0,r.jsx)(a,{children:"Logs"}),(0,r.jsx)(l.Z,{size:"middle",dataSource:t,columns:[{title:"Level",dataIndex:"level",key:"level",filters:[{text:"Info",value:"info"},{text:"Warning",value:"warning"},{text:"Error",value:"Error"}],onFilter:(e,t)=>0===t.level.indexOf(e),render:s},{title:"Timestamp",dataIndex:"time",key:"time",render:e=>{let t=new Date(e);return(0,c.Z)(t,"pp P")},sorter:(e,t)=>new Date(e.time).getTime()-new Date(t.time).getTime(),sortDirections:["descend","ascend"],defaultSortOrder:"descend"},{title:"Message",dataIndex:"message",key:"message",render:f}],rowKey:e=>e.time,pagination:{pageSize:n||20}})]}):null}},87905:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var r=n(85893),o=n(67294),i=n(19849),l=n(64777);function u(){let[e,t]=(0,o.useState)([]),n=async()=>{try{let e=await (0,l.rQ)(l.sG);t(e)}catch(n){console.log("==== error",n)}};return(0,o.useEffect)(()=>{let e=null;return setInterval(n,5e3),n(),e=setInterval(n,5e3),()=>{clearInterval(e)}},[]),(0,r.jsx)(i.o,{logs:e,pageSize:20})}}},function(e){e.O(0,[4485,8909,3903,4267,2206,8091,5360,9774,2888,179],function(){return e(e.s=23426)}),_N_E=e.O()}]);