@abtnode/webapp 1.16.14-beta-cb53c14b → 1.16.14-beta-963cb583
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/blocklet.yml +1 -1
- package/build/asset-manifest.json +35 -37
- package/build/index.html +1 -1
- package/build/service-worker.js +1 -1
- package/build/static/js/{1005.30378318.chunk.js → 1005.54d54e22.chunk.js} +1 -1
- package/build/static/js/1366.08c59de3.chunk.js +2 -0
- package/build/static/js/{1685.0a7d909f.chunk.js → 1685.2a736ee3.chunk.js} +2 -2
- package/build/static/js/2169.4265952c.chunk.js +1 -0
- package/build/static/js/2334.926a3436.chunk.js +1 -0
- package/build/static/js/287.b795027b.chunk.js +1 -0
- package/build/static/js/3245.e3e5fc36.chunk.js +1 -0
- package/build/static/js/4016.cb8f2c0c.chunk.js +2 -0
- package/build/static/js/{4407.5d4d0b1f.chunk.js → 4407.5f35466c.chunk.js} +2 -2
- package/build/static/js/{495.c3ec2743.chunk.js → 495.9a840c34.chunk.js} +1 -1
- package/build/static/js/{542.a56985c3.chunk.js → 542.3398e930.chunk.js} +1 -1
- package/build/static/js/5804.34c444b0.chunk.js +1 -0
- package/build/static/js/5979.49516c5a.chunk.js +1 -0
- package/build/static/js/{6412.fa6c96f2.chunk.js → 6412.77cadf28.chunk.js} +1 -1
- package/build/static/js/6511.e3b4aa61.chunk.js +1 -0
- package/build/static/js/{6580.05e7e1e2.chunk.js → 6580.d4869c68.chunk.js} +1 -1
- package/build/static/js/6950.bab47d5c.chunk.js +1 -0
- package/build/static/js/6960.77121ddd.chunk.js +1 -0
- package/build/static/js/{7022.4119282d.chunk.js → 7022.6a541216.chunk.js} +1 -1
- package/build/static/js/7126.f7855893.chunk.js +1 -0
- package/build/static/js/{7327.9ad0a0d2.chunk.js → 7327.d1ca9d48.chunk.js} +1 -1
- package/build/static/js/7534.77f71429.chunk.js +1 -0
- package/build/static/js/{7604.2f4705dc.chunk.js → 7604.a5cab079.chunk.js} +2 -2
- package/build/static/js/{7786.779a75c1.chunk.js → 7786.3e0b5004.chunk.js} +1 -1
- package/build/static/js/{7913.9f6dd904.chunk.js → 7913.f8875090.chunk.js} +1 -1
- package/build/static/js/{8359.68cd4fdd.chunk.js → 8359.8b6900c4.chunk.js} +1 -1
- package/build/static/js/{9041.d7452bd4.chunk.js → 9041.d699548c.chunk.js} +1 -1
- package/build/static/js/9244.0e63ef9b.chunk.js +1 -0
- package/build/static/js/{9249.6486e1cc.chunk.js → 9249.ee6559ec.chunk.js} +1 -1
- package/build/static/js/9366.f160471a.chunk.js +1 -0
- package/build/static/js/9744.aea4abe9.chunk.js +1 -0
- package/build/static/js/{9801.f2647331.chunk.js → 9801.e2b8d5da.chunk.js} +1 -1
- package/build/static/js/9963.c11eaf1c.chunk.js +1 -0
- package/build/static/js/main.dde9e598.js +2 -0
- package/package.json +1 -1
- package/build/static/js/1366.5489b0a4.chunk.js +0 -2
- package/build/static/js/1848.2375ee1d.chunk.js +0 -1
- package/build/static/js/2334.10b38d7b.chunk.js +0 -1
- package/build/static/js/25.584046ef.chunk.js +0 -1
- package/build/static/js/3876.06eccf58.chunk.js +0 -1
- package/build/static/js/3890.b2dea088.chunk.js +0 -1
- package/build/static/js/4016.1b99909a.chunk.js +0 -2
- package/build/static/js/5498.45023817.chunk.js +0 -1
- package/build/static/js/5728.b0bf04e7.chunk.js +0 -1
- package/build/static/js/5953.a6f6cdb1.chunk.js +0 -1
- package/build/static/js/5979.918c890e.chunk.js +0 -1
- package/build/static/js/6511.fb5fd053.chunk.js +0 -1
- package/build/static/js/6950.514c38b5.chunk.js +0 -1
- package/build/static/js/6960.64eb1663.chunk.js +0 -1
- package/build/static/js/7534.8f3ec28f.chunk.js +0 -1
- package/build/static/js/7903.35c80897.chunk.js +0 -1
- package/build/static/js/9244.d3bd2feb.chunk.js +0 -1
- package/build/static/js/9366.91fade22.chunk.js +0 -1
- package/build/static/js/9774.44f0ed28.chunk.js +0 -1
- package/build/static/js/main.4da584b7.js +0 -2
- /package/build/static/js/{1366.5489b0a4.chunk.js.LICENSE.txt → 1366.08c59de3.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{1685.0a7d909f.chunk.js.LICENSE.txt → 1685.2a736ee3.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4016.1b99909a.chunk.js.LICENSE.txt → 4016.cb8f2c0c.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4407.5d4d0b1f.chunk.js.LICENSE.txt → 4407.5f35466c.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7604.2f4705dc.chunk.js.LICENSE.txt → 7604.a5cab079.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{main.4da584b7.js.LICENSE.txt → main.dde9e598.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[5498],{55498:function(e,n,t){t.d(n,{GL:function(){return Ze},JO:function(){return Xe}});var r=t(9249),i=t(87371),o=t(45754),a=t(86906),c=t(33028),f=t(5057),u=/^[a-z0-9]+(-[a-z0-9]+)*$/,s=function(e,n,t){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=e.split(":");if("@"===e.slice(0,1)){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){var o=i.pop(),a=i.pop(),c={provider:i.length>0?i[0]:r,prefix:a,name:o};return n&&!l(c)?null:c}var f=i[0],u=f.split("-");if(u.length>1){var s={provider:r,prefix:u.shift(),name:u.join("-")};return n&&!l(s)?null:s}if(t&&""===r){var d={provider:r,prefix:"",name:f};return n&&!l(d,t)?null:d}return null},l=function(e,n){return!!e&&!(""!==e.provider&&!e.provider.match(u)||!(n&&""===e.prefix||e.prefix.match(u))||!e.name.match(u))},d=Object.freeze({left:0,top:0,width:16,height:16}),p=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),h=Object.freeze((0,c.Z)((0,c.Z)({},d),p)),v=Object.freeze((0,c.Z)((0,c.Z)({},h),{},{body:"",hidden:!1}));function g(e,n){var t=function(e,n){var t={};!e.hFlip!==!n.hFlip&&(t.hFlip=!0),!e.vFlip!==!n.vFlip&&(t.vFlip=!0);var r=((e.rotate||0)+(n.rotate||0))%4;return r&&(t.rotate=r),t}(e,n);for(var r in v)r in p?r in e&&!(r in t)&&(t[r]=p[r]):r in n?t[r]=n[r]:r in e&&(t[r]=e[r]);return t}function m(e,n,t){var r=e.icons,i=e.aliases||Object.create(null),o={};function a(e){o=g(r[e]||i[e],o)}return a(n),t.forEach(a),g(e,o)}function b(e,n){var t=[];if("object"!==typeof e||"object"!==typeof e.icons)return t;e.not_found instanceof Array&&e.not_found.forEach((function(e){n(e,null),t.push(e)}));var r=function(e,n){var t=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);return(n||Object.keys(t).concat(Object.keys(r))).forEach((function e(n){if(t[n])return i[n]=[];if(!(n in i)){i[n]=null;var o=r[n]&&r[n].parent,a=o&&e(o);a&&(i[n]=[o].concat(a))}return i[n]})),i}(e);for(var i in r){var o=r[i];o&&(n(i,m(e,i,o)),t.push(i))}return t}var y=(0,c.Z)({provider:"",aliases:{},not_found:{}},d);function x(e,n){for(var t in n)if(t in e&&typeof e[t]!==typeof n[t])return!1;return!0}function w(e){if("object"!==typeof e||null===e)return null;var n=e;if("string"!==typeof n.prefix||!e.icons||"object"!==typeof e.icons)return null;if(!x(e,y))return null;var t=n.icons;for(var r in t){var i=t[r];if(!r.match(u)||"string"!==typeof i.body||!x(i,v))return null}var o=n.aliases||Object.create(null);for(var a in o){var c=o[a],f=c.parent;if(!a.match(u)||"string"!==typeof f||!t[f]&&!o[f]||!x(c,v))return null}return n}var k=Object.create(null);function j(e,n){var t=k[e]||(k[e]=Object.create(null));return t[n]||(t[n]=function(e,n){return{provider:e,prefix:n,icons:Object.create(null),missing:new Set}}(e,n))}function _(e,n){return w(n)?b(n,(function(n,t){t?e.icons[n]=t:e.missing.add(n)})):[]}var Z=!1;function S(e){return"boolean"===typeof e&&(Z=e),Z}function E(e){var n="string"===typeof e?s(e,!0,Z):e;if(n){var t=j(n.provider,n.prefix),r=n.name;return t.icons[r]||(t.missing.has(r)?null:void 0)}}function O(e,n){var t=s(e,!0,Z);return!!t&&function(e,n,t){try{if("string"===typeof t.body)return e.icons[n]=(0,c.Z)({},t),!0}catch(Je){}return!1}(j(t.provider,t.prefix),t.name,n)}var I=Object.freeze({width:null,height:null}),M=Object.freeze((0,c.Z)((0,c.Z)({},I),p)),C=/(-?[0-9.]*[0-9]+[0-9.]*)/g,F=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function L(e,n,t){if(1===n)return e;if(t=t||100,"number"===typeof e)return Math.ceil(e*n*t)/t;if("string"!==typeof e)return e;var r=e.split(C);if(null===r||!r.length)return e;for(var i=[],o=r.shift(),a=F.test(o);;){if(a){var c=parseFloat(o);isNaN(c)?i.push(o):i.push(Math.ceil(c*n*t)/t)}else i.push(o);if(void 0===(o=r.shift()))return i.join("");a=!a}}var T=/\sid="(\S+)"/g,D="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16),z=0;function N(e){for(var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D,r=[];n=T.exec(e);)r.push(n[1]);if(!r.length)return e;var i="suffix"+(16777216*Math.random()|Date.now()).toString(16);return r.forEach((function(n){var r="function"===typeof t?t(n):t+(z++).toString(),o=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+o+')([")]|\\.[a-z])',"g"),"$1"+r+i+"$3")})),e=e.replace(new RegExp(i,"g"),"")}var R=Object.create(null);function A(e,n){R[e]=n}function P(e){return R[e]||R[""]}function U(e){var n;if("string"===typeof e.resources)n=[e.resources];else if(!((n=e.resources)instanceof Array)||!n.length)return null;return{resources:n,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:!0===e.random,index:e.index||0,dataAfterTimeout:!1!==e.dataAfterTimeout}}for(var $=Object.create(null),q=["https://api.simplesvg.com","https://api.unisvg.com"],J=[];q.length>0;)1===q.length||Math.random()>.5?J.push(q.shift()):J.push(q.pop());function Q(e,n){var t=U(n);return null!==t&&($[e]=t,!0)}function H(e){return $[e]}$[""]=U({resources:["https://api.iconify.design"].concat(J)});var B=function(){var e;try{if("function"===typeof(e=fetch))return e}catch(Je){}}();var G={prepare:function(e,n,t){var r=[],i=function(e,n){var t,r=H(e);if(!r)return 0;if(r.maxURL){var i=0;r.resources.forEach((function(e){var n=e;i=Math.max(i,n.length)}));var o=n+".json?icons=";t=r.maxURL-i-r.path.length-o.length}else t=0;return t}(e,n),o="icons",a={type:o,provider:e,prefix:n,icons:[]},c=0;return t.forEach((function(t,f){(c+=t.length+1)>=i&&f>0&&(r.push(a),a={type:o,provider:e,prefix:n,icons:[]},c=t.length),a.icons.push(t)})),r.push(a),r},send:function(e,n,t){if(B){var r=function(e){if("string"===typeof e){var n=H(e);if(n)return n.path}return"/"}(n.provider);switch(n.type){case"icons":var i=n.prefix,o=n.icons.join(",");r+=i+".json?"+new URLSearchParams({icons:o}).toString();break;case"custom":var a=n.uri;r+="/"===a.slice(0,1)?a.slice(1):a;break;default:return void t("abort",400)}var c=503;B(e+r).then((function(e){var n=e.status;if(200===n)return c=501,e.json();setTimeout((function(){t(function(e){return 404===e}(n)?"abort":"next",n)}))})).then((function(e){"object"===typeof e&&null!==e?setTimeout((function(){t("success",e)})):setTimeout((function(){404===e?t("abort",e):t("next",c)}))})).catch((function(){t("next",c)}))}else t("abort",424)}};function W(e,n){e.forEach((function(e){var t=e.loaderCallbacks;t&&(e.loaderCallbacks=t.filter((function(e){return e.id!==n})))}))}var X=0;var K={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function V(e,n,t,r){var i,o=e.resources.length,a=e.random?Math.floor(Math.random()*o):e.index;if(e.random){var c=e.resources.slice(0);for(i=[];c.length>1;){var f=Math.floor(Math.random()*c.length);i.push(c[f]),c=c.slice(0,f).concat(c.slice(f+1))}i=i.concat(c)}else i=e.resources.slice(a).concat(e.resources.slice(0,a));var u,s=Date.now(),l="pending",d=0,p=null,h=[],v=[];function g(){p&&(clearTimeout(p),p=null)}function m(){"pending"===l&&(l="aborted"),g(),h.forEach((function(e){"pending"===e.status&&(e.status="aborted")})),h=[]}function b(e,n){n&&(v=[]),"function"===typeof e&&v.push(e)}function y(){l="failed",v.forEach((function(e){e(void 0,u)}))}function x(){h.forEach((function(e){"pending"===e.status&&(e.status="aborted")})),h=[]}function w(){if("pending"===l){g();var r=i.shift();if(void 0===r)return h.length?void(p=setTimeout((function(){g(),"pending"===l&&(x(),y())}),e.timeout)):void y();var o={status:"pending",resource:r,callback:function(n,t){!function(n,t,r){var o="success"!==t;switch(h=h.filter((function(e){return e!==n})),l){case"pending":break;case"failed":if(o||!e.dataAfterTimeout)return;break;default:return}if("abort"===t)return u=r,void y();if(o)return u=r,void(h.length||(i.length?w():y()));if(g(),x(),!e.random){var a=e.resources.indexOf(n.resource);-1!==a&&a!==e.index&&(e.index=a)}l="completed",v.forEach((function(e){e(r)}))}(o,n,t)}};h.push(o),d++,p=setTimeout(w,e.rotate),t(r,n,o.callback)}}return"function"===typeof r&&v.push(r),setTimeout(w),function(){return{startTime:s,payload:n,status:l,queriesSent:d,queriesPending:h.length,subscribe:b,abort:m}}}function Y(e){var n=(0,c.Z)((0,c.Z)({},K),e),t=[];function r(){t=t.filter((function(e){return"pending"===e().status}))}var i={query:function(e,i,o){var a=V(n,e,i,(function(e,n){r(),o&&o(e,n)}));return t.push(a),a},find:function(e){return t.find((function(n){return e(n)}))||null},setIndex:function(e){n.index=e},getIndex:function(){return n.index},cleanup:r};return i}function ee(){}var ne=Object.create(null);function te(e,n,t){var r,i;if("string"===typeof e){var o=P(e);if(!o)return t(void 0,424),ee;i=o.send;var a=function(e){if(!ne[e]){var n=H(e);if(!n)return;var t={config:n,redundancy:Y(n)};ne[e]=t}return ne[e]}(e);a&&(r=a.redundancy)}else{var c=U(e);if(c){r=Y(c);var f=P(e.resources?e.resources[0]:"");f&&(i=f.send)}}return r&&i?r.query(n,i,t)().abort:(t(void 0,424),ee)}var re="iconify2",ie="iconify",oe=ie+"-count",ae=ie+"-version",ce=36e5,fe=168;function ue(e,n){try{return e.getItem(n)}catch(Je){}}function se(e,n,t){try{return e.setItem(n,t),!0}catch(Je){}}function le(e,n){try{e.removeItem(n)}catch(Je){}}function de(e,n){return se(e,oe,n.toString())}function pe(e){return parseInt(ue(e,oe))||0}var he={local:!0,session:!0},ve={local:new Set,session:new Set},ge=!1;var me="undefined"===typeof window?{}:window;function be(e){var n=e+"Storage";try{if(me&&me[n]&&"number"===typeof me[n].length)return me[n]}catch(Je){}he[e]=!1}function ye(e,n){var t=be(e);if(t){var r=ue(t,ae);if(r!==re){if(r)for(var i=pe(t),o=0;o<i;o++)le(t,ie+o.toString());return se(t,ae,re),void de(t,0)}for(var a=Math.floor(Date.now()/ce)-fe,c=function(e){var r=ie+e.toString(),i=ue(t,r);if("string"===typeof i){try{var o=JSON.parse(i);if("object"===typeof o&&"number"===typeof o.cached&&o.cached>a&&"string"===typeof o.provider&&"object"===typeof o.data&&"string"===typeof o.data.prefix&&n(o,e))return!0}catch(Je){}le(t,r)}},f=pe(t),u=f-1;u>=0;u--)c(u)||(u===f-1?(f--,de(t,f)):ve[e].add(u))}}function xe(){if(!ge)for(var e in ge=!0,he)ye(e,(function(e){var n=e.data,t=j(e.provider,n.prefix);if(!_(t,n).length)return!1;var r=n.lastModified||-1;return t.lastModifiedCached=t.lastModifiedCached?Math.min(t.lastModifiedCached,r):r,!0}))}function we(e,n){function t(t){var r;if(he[t]&&(r=be(t))){var i,o=ve[t];if(o.size)o.delete(i=Array.from(o).shift());else if(!de(r,(i=pe(r))+1))return;var a={cached:Math.floor(Date.now()/ce),provider:e.provider,data:n};return se(r,ie+i.toString(),JSON.stringify(a))}}ge||xe(),n.lastModified&&!function(e,n){var t=e.lastModifiedCached;if(t&&t>=n)return t===n;if(e.lastModifiedCached=n,t)for(var r in he)ye(r,(function(t){var r=t.data;return t.provider!==e.provider||r.prefix!==e.prefix||r.lastModified===n}));return!0}(e,n.lastModified)||Object.keys(n.icons).length&&(n.not_found&&delete(n=Object.assign({},n)).not_found,t("local")||t("session"))}function ke(){}function je(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout((function(){e.iconsLoaderFlag=!1,function(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout((function(){e.pendingCallbacksFlag=!1;var n=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(n.length){var t=!1,r=e.provider,i=e.prefix;n.forEach((function(n){var o=n.icons,a=o.pending.length;o.pending=o.pending.filter((function(n){if(n.prefix!==i)return!0;var a=n.name;if(e.icons[a])o.loaded.push({provider:r,prefix:i,name:a});else{if(!e.missing.has(a))return t=!0,!0;o.missing.push({provider:r,prefix:i,name:a})}return!1})),o.pending.length!==a&&(t||W([e],n.id),n.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),n.abort))}))}})))}(e)})))}var _e=function(e,n){var t=function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=[];return e.forEach((function(e){var i="string"===typeof e?s(e,n,t):e;i&&r.push(i)})),r}(e,!0,S()),r=function(e){var n={loaded:[],missing:[],pending:[]},t=Object.create(null);e.sort((function(e,n){return e.provider!==n.provider?e.provider.localeCompare(n.provider):e.prefix!==n.prefix?e.prefix.localeCompare(n.prefix):e.name.localeCompare(n.name)}));var r={provider:"",prefix:"",name:""};return e.forEach((function(e){if(r.name!==e.name||r.prefix!==e.prefix||r.provider!==e.provider){r=e;var i=e.provider,o=e.prefix,a=e.name,c=t[i]||(t[i]=Object.create(null)),f=c[o]||(c[o]=j(i,o)),u={provider:i,prefix:o,name:a};(a in f.icons?n.loaded:""===o||f.missing.has(a)?n.missing:n.pending).push(u)}})),n}(t);if(!r.pending.length){var i=!0;return n&&setTimeout((function(){i&&n(r.loaded,r.missing,r.pending,ke)})),function(){i=!1}}var o,a,c=Object.create(null),f=[];return r.pending.forEach((function(e){var n=e.provider,t=e.prefix;if(t!==a||n!==o){o=n,a=t,f.push(j(n,t));var r=c[n]||(c[n]=Object.create(null));r[t]||(r[t]=[])}})),r.pending.forEach((function(e){var n=e.provider,t=e.prefix,r=e.name,i=j(n,t),o=i.pendingIcons||(i.pendingIcons=new Set);o.has(r)||(o.add(r),c[n][t].push(r))})),f.forEach((function(e){var n=e.provider,t=e.prefix;c[n][t].length&&function(e,n){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(n).sort():e.iconsToLoad=n,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout((function(){e.iconsQueueFlag=!1;var n,t=e.provider,r=e.prefix,i=e.iconsToLoad;delete e.iconsToLoad,i&&(n=P(t))&&n.prepare(t,r,i).forEach((function(n){te(t,n,(function(t){if("object"!==typeof t)n.icons.forEach((function(n){e.missing.add(n)}));else try{var r=_(e,t);if(!r.length)return;var i=e.pendingIcons;i&&r.forEach((function(e){i.delete(e)})),we(e,t)}catch(Je){console.error(Je)}je(e)}))}))})))}(e,c[n][t])})),n?function(e,n,t){var r=X++,i=W.bind(null,t,r);if(!n.pending.length)return i;var o={id:r,icons:n,callback:e,abort:i};return t.forEach((function(e){(e.loaderCallbacks||(e.loaderCallbacks=[])).push(o)})),i}(n,r,f):ke},Ze=function(e){return new Promise((function(n,t){var r="string"===typeof e?s(e,!0):e;r?_e([r||e],(function(i){if(i.length&&r){var o=E(r);if(o)return void n((0,c.Z)((0,c.Z)({},h),o))}t(e)})):t(e)}))};var Se=/[\s,]+/;function Ee(e,n){n.split(Se).forEach((function(n){switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}}))}function Oe(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=e.replace(/^-?[0-9.]*/,"");function r(e){for(;e<0;)e+=4;return e%4}if(""===t){var i=parseInt(e);return isNaN(i)?0:r(i)}if(t!==e){var o=0;switch(t){case"%":o=25;break;case"deg":o=90}if(o){var a=parseFloat(e.slice(0,e.length-t.length));return isNaN(a)?0:(a/=o)%1===0?r(a):0}}return n}var Ie=(0,c.Z)((0,c.Z)({},M),{},{inline:!1}),Me={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Ce={display:"inline-block"},Fe={backgroundColor:"currentColor"},Le={backgroundColor:"transparent"},Te={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},De={webkitMask:Fe,mask:Fe,background:Le};for(var ze in De){var Ne=De[ze];for(var Re in Te)Ne[ze+Re]=Te[Re]}var Ae=(0,c.Z)((0,c.Z)({},Ie),{},{inline:!0});function Pe(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}var Ue=function(e,n,t,r){var i=t?Ae:Ie,o=function(e,n){var t=(0,c.Z)({},e);for(var r in n){var i=n[r],o=typeof i;r in I?(null===i||i&&("string"===o||"number"===o))&&(t[r]=i):o===typeof t[r]&&(t[r]="rotate"===r?i%4:i)}return t}(i,n),a=n.mode||"svg",u={},s=n.style||{},l=(0,c.Z)((0,c.Z)({},"svg"===a?Me:{}),{},{ref:r});for(var d in n){var p=n[d];if(void 0!==p)switch(d){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":o[d]=!0===p||"true"===p||1===p;break;case"flip":"string"===typeof p&&Ee(o,p);break;case"color":u.color=p;break;case"rotate":"string"===typeof p?o[d]=Oe(p):"number"===typeof p&&(o[d]=p);break;case"ariaHidden":case"aria-hidden":!0!==p&&"true"!==p&&delete l["aria-hidden"];break;default:void 0===i[d]&&(l[d]=p)}}var v=function(e,n){var t=(0,c.Z)((0,c.Z)({},h),e),r=(0,c.Z)((0,c.Z)({},M),n),i={left:t.left,top:t.top,width:t.width,height:t.height},o=t.body;[t,r].forEach((function(e){var n,t=[],r=e.hFlip,a=e.vFlip,c=e.rotate;switch(r?a?c+=2:(t.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),t.push("scale(-1 1)"),i.top=i.left=0):a&&(t.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),t.push("scale(1 -1)"),i.top=i.left=0),c<0&&(c-=4*Math.floor(c/4)),c%=4){case 1:n=i.height/2+i.top,t.unshift("rotate(90 "+n.toString()+" "+n.toString()+")");break;case 2:t.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:n=i.width/2+i.left,t.unshift("rotate(-90 "+n.toString()+" "+n.toString()+")")}c%2===1&&(i.left!==i.top&&(n=i.left,i.left=i.top,i.top=n),i.width!==i.height&&(n=i.width,i.width=i.height,i.height=n)),t.length&&(o='<g transform="'+t.join(" ")+'">'+o+"</g>")}));var a,f,u=r.width,s=r.height,l=i.width,d=i.height;null===u?a=L(f=null===s?"1em":"auto"===s?d:s,l/d):(a="auto"===u?l:u,f=null===s?L(a,d/l):"auto"===s?d:s);var p={},v=function(e,n){(function(e){return"unset"===e||"undefined"===e||"none"===e})(n)||(p[e]=n.toString())};return v("width",a),v("height",f),p.viewBox=i.left.toString()+" "+i.top.toString()+" "+l.toString()+" "+d.toString(),{attributes:p,body:o}}(e,o),g=v.attributes;if(o.inline&&(u.verticalAlign="-0.125em"),"svg"===a){l.style=(0,c.Z)((0,c.Z)({},u),s),Object.assign(l,g);var m=0,b=n.id;return"string"===typeof b&&(b=b.replace(/-/g,"_")),l.dangerouslySetInnerHTML={__html:N(v.body,b?function(){return b+"ID"+m++}:"iconifyReact")},f.createElement("svg",l)}var y,x=e.body,w=e.width,k=e.height,j="mask"===a||"bg"!==a&&-1!==x.indexOf("currentColor"),_=function(e,n){var t=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(var r in n)t+=" "+r+'="'+n[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+t+">"+e+"</svg>"}(x,(0,c.Z)((0,c.Z)({},g),{},{width:w+"",height:k+""}));return l.style=(0,c.Z)((0,c.Z)((0,c.Z)((0,c.Z)({},u),{},{"--svg":(y=_,'url("data:image/svg+xml,'+function(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}(y)+'")'),width:Pe(g.width),height:Pe(g.height)},Ce),j?Fe:Le),s),f.createElement("span",l)};if(S(!0),A("",G),"undefined"!==typeof document&&"undefined"!==typeof window){xe();var $e=window;if(void 0!==$e.IconifyPreload){var qe=$e.IconifyPreload,Je="Invalid IconifyPreload syntax.";"object"===typeof qe&&null!==qe&&(qe instanceof Array?qe:[qe]).forEach((function(e){try{("object"!==typeof e||null===e||e instanceof Array||"object"!==typeof e.icons||"string"!==typeof e.prefix||!function(e,n){if("object"!==typeof e)return!1;if("string"!==typeof n&&(n=e.provider||""),Z&&!n&&!e.prefix){var t=!1;return w(e)&&(e.prefix="",b(e,(function(e,n){n&&O(e,n)&&(t=!0)}))),t}var r=e.prefix;return!!l({provider:n,prefix:r,name:"a"})&&!!_(j(n,r),e)}(e))&&console.error(Je)}catch(n){console.error(Je)}}))}if(void 0!==$e.IconifyProviders){var Qe=$e.IconifyProviders;if("object"===typeof Qe&&null!==Qe)for(var He in Qe){var Be="IconifyProviders["+He+"] is invalid.";try{var Ge=Qe[He];if("object"!==typeof Ge||!Ge||void 0===Ge.resources)continue;Q(He,Ge)||console.error(Be)}catch(Ke){console.error(Be)}}}}var We=function(e){(0,o.Z)(t,e);var n=(0,a.Z)(t);function t(e){var i;return(0,r.Z)(this,t),(i=n.call(this,e)).state={icon:null},i}return(0,i.Z)(t,[{key:"_abortLoading",value:function(){this._loading&&(this._loading.abort(),this._loading=null)}},{key:"_setData",value:function(e){this.state.icon!==e&&this.setState({icon:e})}},{key:"_checkIcon",value:function(e){var n,t=this.state,r=this.props.icon;if("object"===typeof r&&null!==r&&"string"===typeof r.body)return this._icon="",this._abortLoading(),void((e||null===t.icon)&&this._setData({data:r}));if("string"!==typeof r||null===(n=s(r,!1,!0)))return this._abortLoading(),void this._setData(null);var i=E(n);if(i){if(this._icon!==r||null===t.icon){this._abortLoading(),this._icon=r;var o=["iconify"];""!==n.prefix&&o.push("iconify--"+n.prefix),""!==n.provider&&o.push("iconify--"+n.provider),this._setData({data:i,classes:o}),this.props.onLoad&&this.props.onLoad(r)}}else this._loading&&this._loading.name===r||(this._abortLoading(),this._icon="",this._setData(null),null!==i&&(this._loading={name:r,abort:_e([n],this._checkIcon.bind(this,!1))}))}},{key:"componentDidMount",value:function(){this._checkIcon(!1)}},{key:"componentDidUpdate",value:function(e){e.icon!==this.props.icon&&this._checkIcon(!0)}},{key:"componentWillUnmount",value:function(){this._abortLoading()}},{key:"render",value:function(){var e=this.props,n=this.state.icon;if(null===n)return e.children?e.children:f.createElement("span",{});var t=e;return n.classes&&(t=(0,c.Z)((0,c.Z)({},e),{},{className:("string"===typeof e.className?e.className+" ":"")+n.classes.join(" ")})),Ue((0,c.Z)((0,c.Z)({},h),n.data),t,e._inline,e._ref)}}]),t}(f.Component),Xe=f.forwardRef((function(e,n){var t=(0,c.Z)((0,c.Z)({},e),{},{_ref:n,_inline:!1});return f.createElement(We,t)}));f.forwardRef((function(e,n){var t=(0,c.Z)((0,c.Z)({},e),{},{_ref:n,_inline:!0});return f.createElement(We,t)}))}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[5728],{44784:function(e,n,t){var r,a=t(71171),s=t(33028),i=t(59740),o=t(33518),c=t(82790),l=t(96266),p=["labelProps","className","style"];function d(e){var n=e.labelProps,t=e.className,r=e.style,a=(0,i.Z)(e,p),o=(0,s.Z)((0,s.Z)({},n),{},{labelPlacement:(null===n||void 0===n?void 0:n.labelPlacement)||"start"});return(0,l.jsx)(u,{className:t,style:r,children:(0,l.jsx)(c.Z,(0,s.Z)({labelProps:o},a))})}d.propTypes=c.Z.propTypes,d.defaultProps=c.Z.defaultProps;var u=o.default.div(r||(r=(0,a.Z)(["\n max-width: 300px;\n > label {\n display: flex;\n justify-content: space-between;\n width: 100%;\n margin-left: 0;\n margin-right: 0;\n }\n "," {\n max-width: 100%;\n }\n"])),(function(e){return e.theme.breakpoints.down("sm")}));n.Z=d},45728:function(e,n,t){t.r(n),t.d(n,{default:function(){return cn}});var r=t(5057),a=t(29054),s=t(32723),i=t(34795),o=t(82434),c=t.n(o),l=t(76811),p=t(65873),d=t(60344),u=t(6352);function h(e){return e.replace(/\/$/,"").split("/").at(-4)}function f(e){return x.apply(this,arguments)}function x(){return(x=(0,i.Z)((0,s.Z)().mark((function e(n){var t,r;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,c()(n)){e.next=3;break}return e.abrupt("return",!1);case 3:return e.next=5,d.hi.head(n,{timeout:5e3});case 5:return t=e.sent,r=t.headers,e.abrupt("return","true"===r["x-listable"]&&"true"===r["x-readable"]&&"true"===r["x-writeable"]);case 10:return e.prev=10,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return",!1);case 14:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}function m(e){var n;return(null===e||void 0===e||null===(n=e.find((function(e){return e.key===l.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT})))||void 0===n?void 0:n.value)||""}function g(e){return v.apply(this,arguments)}function v(){return(v=(0,i.Z)((0,s.Z)().mark((function e(n){var t,r,a,i;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,c()(n)){e.next=3;break}return e.abrupt("return",!1);case 3:return t=u(n,"space/api/did/one-click-authorization/token"),e.next=6,d.hi.get(t,{timeout:5e3});case 6:return r=e.sent,a=r.status,i=r.data,e.abrupt("return",200===a&&(0,p.isObject)(i));case 12:return e.prev=12,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return",!1);case 16:case"end":return e.stop()}}),e,null,[[0,12]])})))).apply(this,arguments)}function y(e){return A.apply(this,arguments)}function A(){return(A=(0,i.Z)((0,s.Z)().mark((function e(n){var t,r,a;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,c()(n)){e.next=3;break}return e.abrupt("return","");case 3:return e.next=5,d.hi.head(n,{timeout:3e3});case 5:return t=e.sent,r=t.headers,a=r["x-space-name"],e.abrupt("return",a?decodeURIComponent(a):"");case 11:return e.prev=11,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return","");case 15:case"end":return e.stop()}}),e,null,[[0,11]])})))).apply(this,arguments)}function Z(e){var n=e.replace(/\/api\/space\/.+/,""),t=e.replace(/\/$/,"").split("/").at(-4);return u(n,"/api/space/nft/display?spaceDid=".concat(t))}var j=t(33028),k=t(39948),C=t(11750),b=t(39075),w=t(96234),B=t(59740),I=t(44846),S=t(55372),U=t(47020),E=t(28726),R=t(43387),D=t(6352),F=t.n(D),M=t(86229),O=t(17682),T=t(13128),z=t(88574),L=t(55898),J=t.n(L),G=t(14491),Q=t(58238),N=t(38242);var P=function(e){var n,t,r,a=e.blocklet,s=a.appDid,i=(0,N.getAppName)(a),o=(0,N.getAppDescription)(a),c=null===a||void 0===a||null===(n=a.site)||void 0===n||null===(t=n.domainAliases)||void 0===t||null===(r=t.sort((function(e,n){return e.accessibility.accessible&&n.accessibility.accessible?+e.isProtected-+n.isProtected:+n.accessibility.accessible-+e.accessibility.accessible})))||void 0===r?void 0:r.map((function(e){var n,t=null!==e&&void 0!==e&&null!==(n=e.domainStatus)&&void 0!==n&&n.isHttps?"https://":"http://",r=null===e||void 0===e?void 0:e.value;return"".concat(t).concat(r)})).filter(Boolean),l=null===c||void 0===c?void 0:c[0];return{appDid:s,appName:i,appDescription:o,appUrl:l,scopes:"list:object read:object write:object",referrer:window.location.href,isReady:Boolean(l)}},V=t(96266),H=["spaceGateways","refreshSpaceGateways"];function X(e){var n=e.spaceGateways,t=e.refreshSpaceGateways,o=(0,B.Z)(e,H),p=(0,a.y0)().blocklet,u=(0,Q.h6)(),f=u.info,x=u.api,v=(0,b.PE)(),y=v.t,A=v.locale,Z=(0,r.useMemo)((function(){return m(null===p||void 0===p?void 0:p.environments)}),[p]),D=(0,r.useState)(""),L=(0,w.Z)(D,2),J=L[0],N=L[1],X=(0,r.useState)(!1),K=(0,w.Z)(X,2),Y=K[0],W=K[1],q=(0,r.useState)(!1),_=(0,w.Z)(q,2),$=_[0],ee=_[1],ne=(0,r.useState)(""),te=(0,w.Z)(ne,2),re=te[0],ae=te[1],se=P({blocklet:p}),ie=(0,G.yP)(f),oe=(0,r.useState)({open:!1,action:"get-did-spaces-endpoint",checkTimeout:3e5,checkFn:d.od.create({baseURL:F()(window.location.origin,(0,G.Y5)())}).get,messages:{title:y("storage.spaces.provideNFT.title",{appName:se.appName},A),scan:y("storage.spaces.provideNFT.scan",{appName:se.appName},A),confirm:"",success:(0,V.jsx)(C.Z,{gutterBottom:!0,children:y("storage.spaces.provideNFT.success")})},onClose:function(){pe((function(e){return(0,j.Z)((0,j.Z)({},e),{},{open:!1})}))}}),ce=(0,w.Z)(oe,2),le=ce[0],pe=ce[1],de=(0,r.useState)({open:!1,action:"one-click-authorization",checkTimeout:3e5,messages:{title:y("storage.spaces.authorize.title",{appName:se.appName},A),scan:y("storage.spaces.authorize.scan",{appName:se.appName},A),confirm:"",success:(0,V.jsx)(C.Z,{gutterBottom:!0,children:y("storage.spaces.authorize.success")})},onClose:function(){fe((function(e){return(0,j.Z)((0,j.Z)({},e),{},{open:!1})}))}}),ue=(0,w.Z)(de,2),he=ue[0],fe=ue[1],xe=function(e,n){setTimeout((0,i.Z)((0,s.Z)().mark((function t(){var r,a;return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return fe((function(e){return(0,j.Z)((0,j.Z)({},e),{},{open:!1})})),pe((function(e){return(0,j.Z)((0,j.Z)({},e),{},{open:!1})})),r=n(e.endpoint),a=e.space?n(e.space):{},t.next=6,me((0,j.Z)((0,j.Z)({endpoint:r},{did:h(r),name:"DID Space"}),a));case 6:case"end":return t.stop()}}),t)}))),0)},me=function(){var e=(0,i.Z)((0,s.Z)().mark((function e(r){var a,i,o,d,u,h,f,m;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(d=r.endpoint,u=r.name,h=r.did,(f=null===d||void 0===d||null===(a=d.replace(/\/api\/.+/,""))||void 0===a||null===(i=a.trim())||void 0===i?void 0:i.replace(/\/$/,"")).startsWith("http")||(f="https://".concat(f)),c()(f)){e.next=6;break}return M.Z.error(y("storage.spaces.gateway.add.invalidUrl")),e.abrupt("return");case 6:if(!n.some((function(e){return e.endpoint===d}))){e.next=10;break}return M.Z.error(y("storage.spaces.gateway.add.duplicate",{name:u})),e.abrupt("return");case 10:return m={name:u,did:h,url:f,endpoint:d},e.next=13,x.addBlockletSpaceGateway({input:{did:p.meta.did,spaceGateway:m}});case 13:if(Z===d){e.next=16;break}return e.next=16,x.configBlocklet({input:{did:[p.meta.did],configs:[{key:l.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:d}]}});case 16:M.Z.success(y("storage.spaces.connectedWithName",{name:null!==(o=null===m||void 0===m?void 0:m.name)&&void 0!==o?o:"DID Spaces"})),t();case 18:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),ge=function(){var e=(0,i.Z)((0,s.Z)().mark((function e(){var n,t;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,W(!0),n=J.startsWith("http")?J:"https://".concat(J),e.next=5,g(n);case 5:if(e.sent){e.next=7;break}throw new Error(y("storage.spaces.gateway.add.invalidUrl"));case 7:fe((function(e){return(0,j.Z)((0,j.Z)({},e),{},{open:!0,prefix:F()(n,"space/api/did"),baseUrl:new URL(n).origin,checkFn:d.od.create({baseURL:F()(n,"space")}).get,extraParams:{appDid:se.appDid,appName:se.appName,appDescription:se.appDescription,scopes:se.scopes,appUrl:se.appUrl,referrer:se.referrer,nodeDid:f.did}})})),ee(!1),e.next=15;break;case 11:e.prev=11,e.t0=e.catch(0),t="".concat(y("storage.spaces.gateway.add.failed",A),": ").concat((0,G.Z)(e.t0)),ae(t);case 15:return e.prev=15,W(!1),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[0,11,15,18]])})));return function(){return e.apply(this,arguments)}}();return(0,V.jsxs)(k.Z,{children:[(0,V.jsx)(O.Z,{color:"primary",style:{textTransform:"none !important",fontSize:"1rem"},size:"small",onClick:function(){pe((function(e){return(0,j.Z)((0,j.Z)({},e),{},{open:!0,extraParams:{appDid:se.appDid,appName:se.appName,appDescription:se.appDescription,scopes:se.scopes,appUrl:se.appUrl,referrer:se.referrer,nodeDid:f.did}})}))},menu:[(0,V.jsx)(O.Z.Item,(0,j.Z)((0,j.Z)({sx:{textTransform:"none"},onClick:function(){return ee(!0)},size:"small"},o),{},{children:y("storage.spaces.connect.useSpaceGateway")}),"1")],children:(0,V.jsx)(C.Z,{sx:{fontWeight:"bold",textTransform:"none"},children:y("storage.spaces.connect.useWallet")})}),(0,V.jsx)(R.default,{forceConnected:!1,saveConnect:!1,prefix:le.prefix,open:le.open,popup:!0,action:le.action,webWalletUrl:ie,baseUrl:le.baseUrl,checkFn:le.checkFn,onSuccess:xe,onClose:le.onClose,checkTimeout:le.checkTimeout,extraParams:le.extraParams,messages:le.messages,locale:A}),(0,V.jsx)(R.default,{forceConnected:!1,saveConnect:!1,prefix:he.prefix,open:he.open,popup:!0,action:he.action,baseUrl:he.baseUrl,checkFn:he.checkFn,onSuccess:xe,onClose:he.onClose,checkTimeout:he.checkTimeout,extraParams:he.extraParams,messages:he.messages,locale:A}),(0,V.jsxs)(T.Z,{title:y("storage.spaces.gateway.add.title"),fullWidth:!0,maxWidth:"md",open:$,onClose:function(){return ee(!1)},PaperProps:{style:{minHeight:"auto"}},actions:(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(E.Z,{onClick:function(e){e.stopPropagation(),ee(!1)},color:"inherit",children:y("common.cancel")}),(0,V.jsxs)(E.Z,{onClick:ge,color:"primary",disabled:Y||!J,variant:"contained",autoFocus:!0,children:[Y&&(0,V.jsx)(I.Z,{size:16}),y("common.confirm")]})]}),children:[(0,V.jsx)("div",{style:{paddingTop:12,overflowY:"hidden"},children:(0,V.jsx)(S.Z,{component:"div",children:(0,V.jsx)(C.Z,{component:"div",children:(0,V.jsx)(U.Z,{label:y("storage.spaces.gateway.add.label"),autoComplete:"off",variant:"outlined",name:"url",fullWidth:!0,value:J,onChange:function(e){ae(null),N(e.target.value)},disabled:Y,onKeyPress:function(){var e=(0,i.Z)((0,s.Z)().mark((function e(n){return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("Enter"!==n.key){e.next=3;break}return e.next=3,ge();case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),autoFocus:!0})})})}),Boolean(re)&&(0,V.jsx)(z.Z,{type:"error",style:{width:"100%"},children:re})]})]})}X.propTypes={spaceGateways:L.array,refreshSpaceGateways:L.func},X.defaultProps={spaceGateways:[],refreshSpaceGateways:function(){}};var K,Y=X,W=t(71171),q=t(33518),_=t(90049),$=t.n(_),ee=t(38898),ne=t(64886),te=["blocklet"];function re(e){var n=e.blocklet,t=(0,B.Z)(e,te),a=(0,r.useContext)(b.RD).t;if(!n.diskInfo)return(0,V.jsx)(C.Z,{children:a("blocklet.diskInfo.empty")});var s=function(e,n,t){return(0,V.jsxs)(C.Z,{children:[t?(0,V.jsx)(ee.Z,{style:{cursor:"pointer"},onClick:t,underline:"hover",children:e}):e," ",(0,V.jsx)("strong",{children:n?$()(n):"empty"})]})},i=n.environments.reduce((function(e,n){return e[n.key]=n.value,e}),{}),o=[{key:"appDir",name:a("blocklet.diskInfo.appDir"),value:s(i.BLOCKLET_APP_DIR,n.diskInfo.app)},{key:"dataDir",name:a("blocklet.diskInfo.dataDir"),value:s(i.BLOCKLET_DATA_DIR,n.diskInfo.data)},{key:"logDir",name:a("blocklet.diskInfo.logDir"),value:s(i.BLOCKLET_LOG_DIR,n.diskInfo.log)},{key:"cacheDir",name:a("blocklet.diskInfo.cacheDir"),value:s(i.BLOCKLET_CACHE_DIR,n.diskInfo.cache)}];return(0,V.jsx)(ae,(0,j.Z)((0,j.Z)({component:"div"},t),{},{children:o.map((function(e){return(0,V.jsx)(ne.Z,{valueComponent:"div",nameWidth:120,name:e.name,children:e.value},e.key)}))}))}re.propTypes={blocklet:J().object.isRequired},re.defaultProps={};var ae=(0,q.default)(C.Z)(K||(K=(0,W.Z)([""]))),se=function(e){return(0,V.jsxs)("svg",(0,j.Z)((0,j.Z)({},e),{},{children:[(0,V.jsxs)("g",{filter:"url(#a)",children:[(0,V.jsx)("path",{d:"M56.97 2a12 12 0 0 0-8.485 3.515l-40.97 40.97A12 12 0 0 0 4 54.971V240c0 6.627 5.373 12 12 12h196c6.627 0 12-5.373 12-12V14c0-6.627-5.373-12-12-12H56.97z",fill:"#DDD"}),(0,V.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.192 6.222l-40.97 40.97A11 11 0 0 0 5 54.971V240c0 6.075 4.925 11 11 11h196c6.075 0 11-4.925 11-11V14c0-6.075-4.925-11-11-11H56.97a11 11 0 0 0-7.778 3.222zm-.707-.707A12 12 0 0 1 56.971 2H212c6.627 0 12 5.373 12 12v226c0 6.627-5.373 12-12 12H16c-6.627 0-12-5.373-12-12V54.97a12 12 0 0 1 3.515-8.485l40.97-40.97z",fill:"#000",fillOpacity:".08"}),(0,V.jsx)("mask",{id:"b",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"4",y:"2",width:"220",height:"250",children:(0,V.jsx)("path",{d:"M56.97 2a12 12 0 0 0-8.485 3.515l-40.97 40.97A12 12 0 0 0 4 54.971V240c0 6.627 5.373 12 12 12h196c6.627 0 12-5.373 12-12V14c0-6.627-5.373-12-12-12H56.97z",fill:"#D9D9D9"})}),(0,V.jsxs)("g",{mask:"url(#b)",children:[(0,V.jsx)("path",{opacity:".5",fill:"url(#c)",d:"M4 2h220v128H4z"}),(0,V.jsx)("path",{opacity:".1",fill:"url(#d)",d:"M4 130h220v122H4z"}),(0,V.jsx)("path",{d:"M33.045 169h-3.767v-11.636h3.887c1.14 0 2.12.233 2.937.698a4.61 4.61 0 0 1 1.881 1.995c.44.863.659 1.899.659 3.108 0 1.212-.222 2.254-.665 3.125a4.668 4.668 0 0 1-1.909 2.011c-.833.466-1.84.699-3.023.699zm-2.01-1.534h1.914c.886 0 1.623-.167 2.21-.5a3.152 3.152 0 0 0 1.318-1.46c.292-.64.438-1.421.438-2.341 0-.913-.146-1.688-.438-2.324a3.095 3.095 0 0 0-1.29-1.449c-.572-.33-1.282-.494-2.13-.494h-2.023v8.568zm11.546-10.102V169h-1.756v-11.636h1.756zM48.905 169h-3.767v-11.636h3.886c1.14 0 2.12.233 2.938.698a4.609 4.609 0 0 1 1.88 1.995c.44.863.66 1.899.66 3.108 0 1.212-.222 2.254-.665 3.125a4.667 4.667 0 0 1-1.91 2.011c-.833.466-1.84.699-3.022.699zm-2.011-1.534h1.914c.887 0 1.623-.167 2.21-.5a3.151 3.151 0 0 0 1.319-1.46c.291-.64.437-1.421.437-2.341 0-.913-.146-1.688-.437-2.324a3.095 3.095 0 0 0-1.29-1.449c-.572-.33-1.282-.494-2.13-.494h-2.023v8.568zm20.372-7.046a1.662 1.662 0 0 0-.75-1.25c-.44-.299-.993-.448-1.66-.448-.477 0-.89.075-1.238.227a1.91 1.91 0 0 0-.813.613c-.189.258-.284.552-.284.881 0 .277.065.515.194.716.132.201.304.369.516.506.216.132.447.244.694.335.246.087.483.159.71.216l1.136.295c.371.091.752.214 1.142.37.39.155.752.36 1.086.613.333.254.602.568.806.944.209.374.313.823.313 1.346 0 .659-.17 1.244-.511 1.756-.338.511-.828.915-1.472 1.21-.64.295-1.415.443-2.324.443-.871 0-1.625-.138-2.261-.415-.637-.276-1.135-.668-1.495-1.176-.36-.511-.558-1.117-.596-1.818h1.761c.034.421.17.771.41 1.051.242.277.55.483.925.62.38.132.794.198 1.245.198.496 0 .937-.077 1.324-.233.39-.159.697-.378.92-.659a1.56 1.56 0 0 0 .335-.994c0-.345-.098-.627-.295-.847a2.191 2.191 0 0 0-.79-.545 7.725 7.725 0 0 0-1.12-.381l-1.374-.375c-.932-.253-1.67-.627-2.216-1.119-.542-.492-.813-1.144-.813-1.955 0-.67.182-1.255.546-1.755.363-.5.856-.888 1.477-1.165.621-.28 1.322-.42 2.102-.42.788 0 1.483.138 2.085.414.607.277 1.084.658 1.432 1.142.349.481.53 1.034.546 1.659h-1.693zm3.813 11.853v-12h1.66v1.415h.142c.098-.182.24-.393.426-.631.185-.239.443-.447.772-.625.33-.182.766-.273 1.307-.273.705 0 1.334.178 1.887.534.553.356.987.869 1.3 1.54.319.67.478 1.477.478 2.42 0 .944-.157 1.752-.472 2.427-.314.67-.746 1.187-1.295 1.551-.55.36-1.176.539-1.88.539-.53 0-.965-.089-1.302-.267a2.457 2.457 0 0 1-.784-.625 4.667 4.667 0 0 1-.437-.636h-.103v4.631H71.08zm1.665-7.637c0 .614.09 1.152.267 1.614.178.462.436.824.773 1.085.337.258.75.387 1.239.387.507 0 .931-.135 1.273-.404.34-.273.598-.642.772-1.108.178-.466.267-.99.267-1.574 0-.575-.087-1.092-.261-1.551-.17-.458-.428-.82-.773-1.085-.34-.265-.767-.398-1.278-.398-.493 0-.91.127-1.25.381-.337.254-.593.608-.767 1.062-.175.455-.262.985-.262 1.591zm10.75 4.557a3.557 3.557 0 0 1-1.5-.307 2.523 2.523 0 0 1-1.062-.903c-.258-.394-.386-.877-.386-1.449 0-.492.094-.898.283-1.216.19-.318.446-.57.768-.756a4.036 4.036 0 0 1 1.08-.42c.397-.095.802-.167 1.215-.216l1.273-.148c.325-.041.562-.108.71-.198.148-.091.222-.239.222-.444v-.039c0-.497-.14-.881-.42-1.154-.277-.273-.69-.409-1.24-.409-.572 0-1.022.127-1.352.381-.325.25-.55.528-.676.835l-1.597-.364c.19-.53.466-.958.83-1.284.368-.329.79-.568 1.267-.716.477-.151.98-.227 1.506-.227.348 0 .718.042 1.108.125.394.08.761.227 1.102.443.345.216.627.525.847.926.22.398.33.915.33 1.552V169h-1.66v-1.193h-.068c-.11.22-.275.435-.495.648-.22.212-.501.388-.846.528s-.758.21-1.239.21zm.37-1.363c.47 0 .87-.093 1.204-.279.337-.185.593-.428.767-.727.178-.303.267-.627.267-.972v-1.125c-.06.061-.178.118-.352.171-.17.049-.365.093-.585.13-.22.034-.434.067-.642.097l-.523.068c-.33.042-.63.112-.903.21a1.553 1.553 0 0 0-.648.427c-.16.181-.239.424-.239.727 0 .42.156.738.466.954.31.212.707.319 1.188.319zm9.876 1.346c-.845 0-1.572-.191-2.182-.574a3.796 3.796 0 0 1-1.398-1.596c-.325-.678-.488-1.455-.488-2.33 0-.886.166-1.668.5-2.346a3.832 3.832 0 0 1 1.409-1.597c.606-.383 1.32-.574 2.142-.574.663 0 1.254.123 1.773.369.519.243.937.584 1.255 1.023.322.44.514.953.574 1.54h-1.653c-.091-.409-.3-.761-.625-1.057-.322-.295-.754-.443-1.296-.443a2.11 2.11 0 0 0-1.244.375c-.352.246-.627.598-.824 1.057-.197.454-.295.992-.295 1.613 0 .637.096 1.186.29 1.648.193.462.466.82.818 1.074.356.254.774.381 1.255.381.322 0 .614-.059.875-.177.266-.121.487-.293.665-.517.182-.223.309-.492.38-.806h1.654a3.211 3.211 0 0 1-.55 1.511 3.165 3.165 0 0 1-1.234 1.045c-.511.254-1.111.381-1.8.381zm9.163 0c-.859 0-1.6-.184-2.221-.551a3.732 3.732 0 0 1-1.432-1.563c-.333-.674-.5-1.464-.5-2.369 0-.894.167-1.682.5-2.363a3.887 3.887 0 0 1 1.409-1.597c.606-.383 1.314-.574 2.125-.574.493 0 .97.082 1.432.244.462.163.877.419 1.244.767.368.349.657.802.87 1.358.212.553.318 1.226.318 2.017v.603H99.71v-1.273h5.273c0-.447-.091-.843-.273-1.187a2.052 2.052 0 0 0-.767-.824c-.326-.201-.708-.302-1.148-.302a2.22 2.22 0 0 0-1.25.353 2.364 2.364 0 0 0-.818.909 2.626 2.626 0 0 0-.284 1.21v.994c0 .584.102 1.08.307 1.489.208.409.498.722.869.938.372.212.805.318 1.301.318a2.7 2.7 0 0 0 .881-.137c.265-.094.494-.234.688-.42.193-.186.341-.415.443-.688l1.608.29c-.129.474-.36.888-.693 1.244-.33.353-.745.627-1.245.824-.496.194-1.062.29-1.699.29z",fill:"#fff"}),(0,V.jsx)("path",{d:"M117.604 47.263L121.523 45h14.267v41.862h-14.267l-15.335-8.854V53.854l1.818-1.05 3.2 1.848-1.818 1.05V76.16l12.993 7.502h10.209V48.2h-10.209l-1.577.91-3.2-1.847z",fill:"url(#e)"}),(0,V.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M119.402 76.16V55.701L106.409 48.2H96.2v35.462h10.209l1.582-.913 3.2 1.847-3.924 2.266H93V45h14.267l15.335 8.854v24.154l-1.813 1.046-3.2-1.847 1.813-1.047z",fill:"url(#f)"}),(0,V.jsxs)("g",{clipPath:"url(#g)",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff",children:[(0,V.jsx)("path",{d:"M50.928 216.089l1.034 2.852h-2.503l1.028-2.842a4.95 4.95 0 0 0 .107-.338 7.17 7.17 0 0 0 .111-.409c.075.297.15.542.223.737zm2.28 5.591h.796l-2.775-7.352h-1.043l-2.774 7.352h.795a.338.338 0 0 0 .223-.077.425.425 0 0 0 .127-.179l.615-1.705h3.07l.617 1.705a.399.399 0 0 0 .126.184.339.339 0 0 0 .223.072zm4.823-.963a2.023 2.023 0 0 1-.67.098h-1.455v-2.453h1.456c.5 0 .871.106 1.11.318.24.208.36.495.36.86 0 .184-.028.355-.083.512a1.005 1.005 0 0 1-.262.399 1.2 1.2 0 0 1-.456.266zm-2.125-3.128v-2.406h1.237c.498 0 .865.095 1.101.286.236.192.355.497.355.917 0 .369-.125.662-.374.881-.246.215-.623.322-1.13.322h-1.189zm2.358-3.128a4.106 4.106 0 0 0-1.12-.133h-2.27v7.352h2.507c.391 0 .74-.051 1.048-.154.307-.102.566-.247.776-.435.21-.188.37-.409.48-.665.11-.26.165-.547.165-.861 0-.904-.506-1.462-1.518-1.674.22-.075.41-.169.572-.281a1.79 1.79 0 0 0 .403-.379c.106-.144.186-.297.237-.461.052-.164.078-.335.078-.512a2.1 2.1 0 0 0-.146-.804 1.49 1.49 0 0 0-.441-.609 2.073 2.073 0 0 0-.771-.384zm7.535.778h-2.212v6.441h-1.028v-6.441h-2.222v-.911H65.8v.911zm2.439.564h-1.13v1.193h1.13v-1.193zm-1.13 2.983h1.13v1.193h-1.13v-1.193z",fillOpacity:".8"}),(0,V.jsx)("path",{d:"M28.247 221.771V214h3.894c.99.072 1.765.944 1.765 1.998v3.77c0 1.106-.85 2.003-1.897 2.003h-3.762zM36.355 214h-1.011v7.783h1.01V214zm-7.097 6.704v-5.642h2.751c.49 0 .886.419.886.936v3.77c0 .517-.396.936-.886.936h-2.75zM37.775 214v7.771h3.762c1.047 0 1.897-.897 1.897-2.003v-3.77c0-1.054-.774-1.926-1.765-1.998h-3.894zm6.946 1.803h1.13v1.193h-1.13v-1.193zm1.13 2.983h-1.13v1.193h1.13v-1.193zm-7.065-3.724v5.642h2.75c.49 0 .887-.419.887-.936v-3.77c0-.517-.397-.936-.886-.936h-2.751z"})]}),(0,V.jsx)("circle",{cx:"191.32",cy:"218",r:"10",fill:"url(#h)"}),(0,V.jsx)("path",{d:"M192.064 213.333l.976-.564h3.554v10.427h-3.286a1 1 0 0 1-.5-.134l-3.588-2.071v-6.016l.453-.262.797.46-.453.262v5.096l3.237 1.868h2.543v-8.833h-2.543l-.393.227-.797-.46z",fill:"#fff"}),(0,V.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M192.512 220.531v-5.096l-3.237-1.869h-2.543v8.833h2.543l.394-.227.797.46-.977.564h-3.554v-10.427h3.554l3.82 2.206v6.016l-.452.261-.797-.461.452-.26z",fill:"#fff"})]})]}),(0,V.jsxs)("defs",{children:[(0,V.jsxs)("filter",{id:"a",x:"0",y:"0",width:"228",height:"258",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,V.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,V.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,V.jsx)("feOffset",{dy:"2"}),(0,V.jsx)("feGaussianBlur",{stdDeviation:"2"}),(0,V.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,V.jsx)("feColorMatrix",{values:"0 0 0 0 0.0631944 0 0 0 0 0.242785 0 0 0 0 0.403472 0 0 0 0.2 0"}),(0,V.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1410_22507"}),(0,V.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1410_22507",result:"shape"})]}),(0,V.jsx)("pattern",{id:"c",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:(0,V.jsx)("use",{xlinkHref:"#i",transform:"scale(.00455 .00781)"})}),(0,V.jsxs)("linearGradient",{id:"d",x1:"114",y1:"130",x2:"114",y2:"252",gradientUnits:"userSpaceOnUse",children:[(0,V.jsx)("stop",{stopColor:"#101010"}),(0,V.jsx)("stop",{offset:"1",stopColor:"#272727"})]}),(0,V.jsxs)("linearGradient",{id:"e",x1:"120.989",y1:"45",x2:"120.989",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[(0,V.jsx)("stop",{stopColor:"#fff",stopOpacity:".4"}),(0,V.jsx)("stop",{offset:"1",stopColor:"#fff"})]}),(0,V.jsxs)("linearGradient",{id:"f",x1:"107.801",y1:"45",x2:"107.801",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[(0,V.jsx)("stop",{stopColor:"#fff"}),(0,V.jsx)("stop",{offset:"1",stopColor:"#fff",stopOpacity:".4"})]}),(0,V.jsxs)("radialGradient",{id:"h",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(17 -8.76924 6.97565 13.52294 183.166 221)",children:[(0,V.jsx)("stop",{stopColor:"#016BED"}),(0,V.jsx)("stop",{offset:".699",stopColor:"#4498FB"}),(0,V.jsx)("stop",{offset:"1",stopColor:"#9DFFE8"})]}),(0,V.jsx)("clipPath",{id:"g",children:(0,V.jsx)("path",{fill:"#fff",transform:"translate(28 214)",d:"M0 0h40.32v8H0z"})}),(0,V.jsx)("image",{id:"i",width:"220",height:"128",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAACABAMAAACSOBo+AAAAG1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACUUeIgAAAACXRSTlMSFhkOHAsfCCOMH5MiAAAjjElEQVRo3hTQO3sjRRBG4a+qWzJhVfdIJqzuGXsJe2bkJe0e2UA4shdIJS2X1LBcUpbL/wae5yQnfVHGjp2+V08yKR7OwBDYte8pi5Aq9DObSBouqN9cidZyusonzWtGJO13phLebEn6xKEnlYyXe5hnySc53Ym9Abn7crTse8r7BMeIB8yBOVZK0trMjxT5S/cgc9G63BQqZoF3xSYZYeRk2hoIvEBFA7XMtaaF8TdY1GjiDDqgEswRDlWnRtmYzl5zRUq3sx3I+JL7sBJKXchDGJY9D+SfHAIoA+TuHCyYYYFjkhNB8tO5hhju0ANjdCITLx4/JDL+yyP0ErZR+m3M322bY8OKHzoOcAXLQMBHiIh+X59pv6udCJ7MAV9HARPtTEuFSdAzNVn7uPmkk3TpBGHb8DJZ3p36ScsuJVFQP6CUBXimN3BABZJUiEwBOMsHUisZiXU8k3bVSTrPcHsKEEg8gV/vP7U26vRWhl2UnfEbX3VlVbRHgSwmcy2tWTjsxmIb4YjgbAkmpyEOINs1gCt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8MWBNzQTNNrIt4XCVHh+OwfYAo9QybSeFUX5a9bl1On+cL5YHUjp/eID+XwV2AwZUXHswFw0IhIUlwmaTdQtlKJUpbAArh1IONYy6WQkAc9+ZocJMnELtCFNKLySGLwUIuW1fJLBKOoydII6+sDlhy8xYI1vchhF6qZnM0/oZSUzcd5By2cDzUtH3ng8PHIzAKL25wuSv+gDBsggYWWkvLT27f2dhwRULpny5D5yKI7vD/4iAW9KWHB7JsEZeCE1E/mdgVHZTOci8X+YIanJt7+aBd2k8f2RL45Z2puefelcXjUWbKdMSYwr58dAPaHymSU0o9/zjFt7/VoGmNAwCyvrKe2L1hYJqtd5gh6FGiCAGzqFk6on9pQdSAQzkctDTtXGbDih5iRPVIk9TwCJGwP3tpATkHsNwloUilnNMFce7twgDgrgWhsE8jWW+EBLlTDMn9pmtJOefTJc6Cxld039TN4XiwL4pMtU+8tXJ4g/LghG5APdF7/e3FSi4v8vnEBiIEm+5LlZtsk2LbbbY5hN9JkkJkd5BjQFPoUcwjJdTm0mx0024NmOvVgxASvU9TonFxUqG8cUTy3m5s3i7BqLbFkKcfxLQYhAXfjam0yFFd3PZE9wlXWfHYKlg2cFlTcnwRH6z8DpSfQHidMhElmCMb07li9ceHQHFknk/98f4KJRLpX6xQEXVAnJxlr8Aw6/qb0wu9SNolstScB0izxmMC5DiytBJd9Rcm3RGf42aiddmUTM4d4dgdjiT+vMPX0/RzfZdLoZ4aQqPzhx9plNI3QyvsMZHn2j2wOECoTtkfJt89O+eYUnXB/gFxHxPmOeL9ogAAAABJRU5ErkJggg=="})]})]}))};function ie(){var e=(0,b.PE)().t,n=(0,a.y0)().blocklet;return(0,V.jsxs)(k.Z,{children:[(0,V.jsxs)(k.Z,{minHeight:"40vh",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",alignContent:"center",children:[(0,V.jsx)(se,{style:{width:200,height:250}}),(0,V.jsx)(C.Z,{marginTop:"24px",marginBottom:"24px",children:e("storage.spaces.connect.provider")}),(0,V.jsx)(Y,{})]}),(0,V.jsx)(C.Z,{fontSize:"1.2rem",fontWeight:"bold",mb:2,children:e("common.dataStorage")}),(0,V.jsx)(re,{blocklet:n})]})}se.defaultProps={width:"228",height:"258",viewBox:"0 0 228 258",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},ie.propTypes={};var oe=ie,ce=t(41899),le=t(19654),pe=t(99154),de=t(79366),ue=t(42876),he=t(92816),fe=t(44784),xe=t(67680),me=t(61533),ge=t(74490),ve=t(46954),ye=t(44067),Ae=t(83294),Ze=t(45396),je=t(14482),ke=t(85733),Ce=t(47595),be=t(60939);function we(e){var n=e.spaceGateway,t=e.onDelete,a=(0,b.PE)().t,o=(0,r.useState)(!1),c=(0,w.Z)(o,2),l=c[0],p=c[1],d=(0,r.useState)(!1),u=(0,w.Z)(d,2),h=u[0],f=u[1],x=function(e,n){null===e||void 0===e||e.preventDefault(),null===e||void 0===e||e.stopPropagation(),p(n)},m=function(){var e=(0,i.Z)((0,s.Z)().mark((function e(r){return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,null===r||void 0===r||r.stopPropagation(),f(!0),e.next=5,t(n);case 5:p(!1),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),console.error(e.t0),M.Z.error("".concat(a("storage.space.gateway.delete.failed"),": ").concat((0,G.Z)(e.t0)));case 12:return e.prev=12,f(!1),e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[0,8,12,15]])})));return function(n){return e.apply(this,arguments)}}();return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(ge.Z,{color:"red",onClick:function(e){return x(e,!0)},children:[(0,V.jsx)(ve.Z,{style:{minWidth:24,color:"red"},children:(0,V.jsx)(Ce.default,{fontSize:"small"})}),(0,V.jsx)(ye.Z,{style:{color:"red"},children:a("common.delete")})]}),(0,V.jsx)(be.Z,{title:a("common.delConfirmDescription",{data:"".concat(null===n||void 0===n?void 0:n.name)}),open:l,confirmButton:{text:a("common.confirm"),props:{variant:"contained",color:"error",loading:h}},cancelButton:{text:a("common.cancel"),props:{variant:"contained",color:"primary"}},onConfirm:m,onCancel:function(e){return x(e,!1)}})]})}we.propTypes={onDelete:J().func,spaceGateway:J().shape({name:J().string.isRequired,url:J().string.isRequired,protected:J().bool}).isRequired},we.defaultProps={onDelete:function(){}};var Be=we,Ie=["spaceGateway","connected","onDelete","onConnect","enableSwitchToSpace"];function Se(e){var n=e.spaceGateway,t=e.connected,a=e.onDelete,o=e.onConnect,c=e.enableSwitchToSpace,l=(0,B.Z)(e,Ie),p=(0,r.useState)(null),d=(0,w.Z)(p,2),h=d[0],f=d[1],x=(0,b.PE)().t,m=function(e,n){e.stopPropagation(),e.preventDefault(),f(n&&e.currentTarget)},g=function(){var e=(0,i.Z)((0,s.Z)().mark((function e(t){return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m(t,!1),e.next=3,o(n);case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(xe.Z,(0,j.Z)((0,j.Z)({"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions",onClick:function(e){return m(e,!0)},size:"small"},l),{},{children:(0,V.jsx)(Ae.Z,{})})),(0,V.jsxs)(me.Z,{id:"simple-menu",anchorEl:h,keepMounted:!0,open:Boolean(h),onClose:function(e){return m(e,!1)},children:[(0,V.jsxs)(ge.Z,{onClick:function(e){m(e,!1),window.open(n.endpoint?function(e){var n=e.replace(/\/api\/space\/.+/,""),t=e.replace(/\/$/,"").split("/").at(-4);return u(n,"space",t)}(n.endpoint):n.url)},children:[(0,V.jsx)(ve.Z,{style:{minWidth:24},children:(0,V.jsx)(Ze.Z,{fontSize:"small"})}),(0,V.jsx)(ye.Z,{children:x("common.open")})]}),(0,V.jsxs)(ge.Z,{onClick:function(e){m(e,!1),window.open(function(e){var n=e.replace(/\/api\/space\/.+/,""),t=e.replace(/\/$/,"").split("/"),r=t.at(-4),a=t.at(-2);return u(n,"space",r,"apps",a,"explorer","?key=/apps/".concat(a,"/.did-objects/").concat(a,"/"))}(n.endpoint))},children:[(0,V.jsx)(ve.Z,{style:{minWidth:24},children:(0,V.jsx)(ke.Z,{fontSize:"small"})}),(0,V.jsx)(ye.Z,{children:x("storage.spaces.strategy.viewBackupFiles")})]}),!t&&c&&(0,V.jsxs)(ge.Z,{onClick:g,children:[(0,V.jsx)(ve.Z,{style:{minWidth:24},children:(0,V.jsx)(je.Z,{fontSize:"small"})}),(0,V.jsx)(ye.Z,{children:x("storage.spaces.connect.switchToSpace")})]}),!t&&(0,V.jsx)(Be,{spaceGateway:n,onDelete:a})]})]})}Se.propTypes={spaceGateway:J().shape({name:J().string.isRequired,url:J().string.isRequired,protected:J().bool,endpoint:J().string.isRequired}).isRequired,connected:J().bool.isRequired,enableSwitchToSpace:J().bool,onDelete:J().func,onConnect:J().func},Se.defaultProps={onDelete:function(){},onConnect:function(){},enableSwitchToSpace:!0};var Ue=Se,Ee=t(54063),Re=t(22256),De=t(37541),Fe=t(17930),Me=t(29042),Oe=function(e){return(0,V.jsxs)("svg",(0,j.Z)((0,j.Z)({},e),{},{children:[(0,V.jsxs)("g",{filter:"url(#a)",children:[(0,V.jsx)("path",{d:"M56.97 2a12 12 0 0 0-8.485 3.515l-40.97 40.97A12 12 0 0 0 4 54.971V240c0 6.627 5.373 12 12 12h196c6.627 0 12-5.373 12-12V14c0-6.627-5.373-12-12-12H56.97z",fill:"#DDD"}),(0,V.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.192 6.222l-40.97 40.97A11 11 0 0 0 5 54.971V240c0 6.075 4.925 11 11 11h196c6.075 0 11-4.925 11-11V14c0-6.075-4.925-11-11-11H56.97a11 11 0 0 0-7.778 3.222zm-.707-.707A12 12 0 0 1 56.971 2H212c6.627 0 12 5.373 12 12v226c0 6.627-5.373 12-12 12H16c-6.627 0-12-5.373-12-12V54.97a12 12 0 0 1 3.515-8.485l40.97-40.97z",fill:"#000",fillOpacity:".08"}),(0,V.jsx)("mask",{id:"b",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"4",y:"2",width:"220",height:"250",children:(0,V.jsx)("path",{d:"M56.97 2a12 12 0 0 0-8.485 3.515l-40.97 40.97A12 12 0 0 0 4 54.971V240c0 6.627 5.373 12 12 12h196c6.627 0 12-5.373 12-12V14c0-6.627-5.373-12-12-12H56.97z",fill:"#D9D9D9"})}),(0,V.jsxs)("g",{mask:"url(#b)",children:[(0,V.jsx)("path",{opacity:".5",fill:"url(#c)",d:"M4 2h220v128H4z"}),(0,V.jsx)("path",{opacity:".1",fill:"url(#d)",d:"M4 130h220v122H4z"}),(0,V.jsx)("path",{d:"M33.045 169h-3.767v-11.636h3.887c1.14 0 2.12.233 2.937.698a4.61 4.61 0 0 1 1.881 1.995c.44.863.659 1.899.659 3.108 0 1.212-.222 2.254-.665 3.125a4.668 4.668 0 0 1-1.909 2.011c-.833.466-1.84.699-3.023.699zm-2.01-1.534h1.914c.886 0 1.623-.167 2.21-.5a3.152 3.152 0 0 0 1.318-1.46c.292-.64.438-1.421.438-2.341 0-.913-.146-1.688-.438-2.324a3.095 3.095 0 0 0-1.29-1.449c-.572-.33-1.282-.494-2.13-.494h-2.023v8.568zm11.546-10.102V169h-1.756v-11.636h1.756zM48.905 169h-3.767v-11.636h3.886c1.14 0 2.12.233 2.938.698a4.609 4.609 0 0 1 1.88 1.995c.44.863.66 1.899.66 3.108 0 1.212-.222 2.254-.665 3.125a4.667 4.667 0 0 1-1.91 2.011c-.833.466-1.84.699-3.022.699zm-2.011-1.534h1.914c.887 0 1.623-.167 2.21-.5a3.151 3.151 0 0 0 1.319-1.46c.291-.64.437-1.421.437-2.341 0-.913-.146-1.688-.437-2.324a3.095 3.095 0 0 0-1.29-1.449c-.572-.33-1.282-.494-2.13-.494h-2.023v8.568zm20.372-7.046a1.662 1.662 0 0 0-.75-1.25c-.44-.299-.993-.448-1.66-.448-.477 0-.89.075-1.238.227a1.91 1.91 0 0 0-.813.613c-.189.258-.284.552-.284.881 0 .277.065.515.194.716.132.201.304.369.516.506.216.132.447.244.694.335.246.087.483.159.71.216l1.136.295c.371.091.752.214 1.142.37.39.155.752.36 1.086.613.333.254.602.568.806.944.209.374.313.823.313 1.346 0 .659-.17 1.244-.511 1.756-.338.511-.828.915-1.472 1.21-.64.295-1.415.443-2.324.443-.871 0-1.625-.138-2.261-.415-.637-.276-1.135-.668-1.495-1.176-.36-.511-.558-1.117-.596-1.818h1.761c.034.421.17.771.41 1.051.242.277.55.483.925.62.38.132.794.198 1.245.198.496 0 .937-.077 1.324-.233.39-.159.697-.378.92-.659a1.56 1.56 0 0 0 .335-.994c0-.345-.098-.627-.295-.847a2.191 2.191 0 0 0-.79-.545 7.725 7.725 0 0 0-1.12-.381l-1.374-.375c-.932-.253-1.67-.627-2.216-1.119-.542-.492-.813-1.144-.813-1.955 0-.67.182-1.255.546-1.755.363-.5.856-.888 1.477-1.165.621-.28 1.322-.42 2.102-.42.788 0 1.483.138 2.085.414.607.277 1.084.658 1.432 1.142.349.481.53 1.034.546 1.659h-1.693zm3.813 11.853v-12h1.66v1.415h.142c.098-.182.24-.393.426-.631.185-.239.443-.447.772-.625.33-.182.766-.273 1.307-.273.705 0 1.334.178 1.887.534.553.356.987.869 1.3 1.54.319.67.478 1.477.478 2.42 0 .944-.157 1.752-.472 2.427-.314.67-.746 1.187-1.295 1.551-.55.36-1.176.539-1.88.539-.53 0-.965-.089-1.302-.267a2.457 2.457 0 0 1-.784-.625 4.667 4.667 0 0 1-.437-.636h-.103v4.631H71.08zm1.665-7.637c0 .614.09 1.152.267 1.614.178.462.436.824.773 1.085.337.258.75.387 1.239.387.507 0 .931-.135 1.273-.404.34-.273.598-.642.772-1.108.178-.466.267-.99.267-1.574 0-.575-.087-1.092-.261-1.551-.17-.458-.428-.82-.773-1.085-.34-.265-.767-.398-1.278-.398-.493 0-.91.127-1.25.381-.337.254-.593.608-.767 1.062-.175.455-.262.985-.262 1.591zm10.75 4.557a3.557 3.557 0 0 1-1.5-.307 2.523 2.523 0 0 1-1.062-.903c-.258-.394-.386-.877-.386-1.449 0-.492.094-.898.283-1.216.19-.318.446-.57.768-.756a4.036 4.036 0 0 1 1.08-.42c.397-.095.802-.167 1.215-.216l1.273-.148c.325-.041.562-.108.71-.198.148-.091.222-.239.222-.444v-.039c0-.497-.14-.881-.42-1.154-.277-.273-.69-.409-1.24-.409-.572 0-1.022.127-1.352.381-.325.25-.55.528-.676.835l-1.597-.364c.19-.53.466-.958.83-1.284.368-.329.79-.568 1.267-.716.477-.151.98-.227 1.506-.227.348 0 .718.042 1.108.125.394.08.761.227 1.102.443.345.216.627.525.847.926.22.398.33.915.33 1.552V169h-1.66v-1.193h-.068c-.11.22-.275.435-.495.648-.22.212-.501.388-.846.528s-.758.21-1.239.21zm.37-1.363c.47 0 .87-.093 1.204-.279.337-.185.593-.428.767-.727.178-.303.267-.627.267-.972v-1.125c-.06.061-.178.118-.352.171-.17.049-.365.093-.585.13-.22.034-.434.067-.642.097l-.523.068c-.33.042-.63.112-.903.21a1.553 1.553 0 0 0-.648.427c-.16.181-.239.424-.239.727 0 .42.156.738.466.954.31.212.707.319 1.188.319zm9.876 1.346c-.845 0-1.572-.191-2.182-.574a3.796 3.796 0 0 1-1.398-1.596c-.325-.678-.488-1.455-.488-2.33 0-.886.166-1.668.5-2.346a3.832 3.832 0 0 1 1.409-1.597c.606-.383 1.32-.574 2.142-.574.663 0 1.254.123 1.773.369.519.243.937.584 1.255 1.023.322.44.514.953.574 1.54h-1.653c-.091-.409-.3-.761-.625-1.057-.322-.295-.754-.443-1.296-.443a2.11 2.11 0 0 0-1.244.375c-.352.246-.627.598-.824 1.057-.197.454-.295.992-.295 1.613 0 .637.096 1.186.29 1.648.193.462.466.82.818 1.074.356.254.774.381 1.255.381.322 0 .614-.059.875-.177.266-.121.487-.293.665-.517.182-.223.309-.492.38-.806h1.654a3.211 3.211 0 0 1-.55 1.511 3.165 3.165 0 0 1-1.234 1.045c-.511.254-1.111.381-1.8.381zm9.163 0c-.859 0-1.6-.184-2.221-.551a3.732 3.732 0 0 1-1.432-1.563c-.333-.674-.5-1.464-.5-2.369 0-.894.167-1.682.5-2.363a3.887 3.887 0 0 1 1.409-1.597c.606-.383 1.314-.574 2.125-.574.493 0 .97.082 1.432.244.462.163.877.419 1.244.767.368.349.657.802.87 1.358.212.553.318 1.226.318 2.017v.603H99.71v-1.273h5.273c0-.447-.091-.843-.273-1.187a2.052 2.052 0 0 0-.767-.824c-.326-.201-.708-.302-1.148-.302a2.22 2.22 0 0 0-1.25.353 2.364 2.364 0 0 0-.818.909 2.626 2.626 0 0 0-.284 1.21v.994c0 .584.102 1.08.307 1.489.208.409.498.722.869.938.372.212.805.318 1.301.318a2.7 2.7 0 0 0 .881-.137c.265-.094.494-.234.688-.42.193-.186.341-.415.443-.688l1.608.29c-.129.474-.36.888-.693 1.244-.33.353-.745.627-1.245.824-.496.194-1.062.29-1.699.29z",fill:"#fff"}),(0,V.jsx)("path",{d:"M117.604 47.263L121.523 45h14.267v41.862h-14.267l-15.335-8.854V53.854l1.818-1.05 3.2 1.848-1.818 1.05V76.16l12.993 7.502h10.209V48.2h-10.209l-1.577.91-3.2-1.847z",fill:"url(#e)"}),(0,V.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M119.402 76.16V55.701L106.409 48.2H96.2v35.462h10.209l1.582-.913 3.2 1.847-3.924 2.266H93V45h14.267l15.335 8.854v24.154l-1.813 1.046-3.2-1.847 1.813-1.047z",fill:"url(#f)"}),(0,V.jsxs)("g",{clipPath:"url(#g)",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff",children:[(0,V.jsx)("path",{d:"M50.928 216.089l1.034 2.852h-2.503l1.028-2.842a4.95 4.95 0 0 0 .107-.338 7.17 7.17 0 0 0 .111-.409c.075.297.15.542.223.737zm2.28 5.591h.796l-2.775-7.352h-1.043l-2.774 7.352h.795a.338.338 0 0 0 .223-.077.425.425 0 0 0 .127-.179l.615-1.705h3.07l.617 1.705a.399.399 0 0 0 .126.184.339.339 0 0 0 .223.072zm4.823-.963a2.023 2.023 0 0 1-.67.098h-1.455v-2.453h1.456c.5 0 .871.106 1.11.318.24.208.36.495.36.86 0 .184-.028.355-.083.512a1.005 1.005 0 0 1-.262.399 1.2 1.2 0 0 1-.456.266zm-2.125-3.128v-2.406h1.237c.498 0 .865.095 1.101.286.236.192.355.497.355.917 0 .369-.125.662-.374.881-.246.215-.623.322-1.13.322h-1.189zm2.358-3.128a4.106 4.106 0 0 0-1.12-.133h-2.27v7.352h2.507c.391 0 .74-.051 1.048-.154.307-.102.566-.247.776-.435.21-.188.37-.409.48-.665.11-.26.165-.547.165-.861 0-.904-.506-1.462-1.518-1.674.22-.075.41-.169.572-.281a1.79 1.79 0 0 0 .403-.379c.106-.144.186-.297.237-.461.052-.164.078-.335.078-.512a2.1 2.1 0 0 0-.146-.804 1.49 1.49 0 0 0-.441-.609 2.073 2.073 0 0 0-.771-.384zm7.535.778h-2.212v6.441h-1.028v-6.441h-2.222v-.911H65.8v.911zm2.439.564h-1.13v1.193h1.13v-1.193zm-1.13 2.983h1.13v1.193h-1.13v-1.193z",fillOpacity:".8"}),(0,V.jsx)("path",{d:"M28.247 221.771V214h3.894c.99.072 1.765.944 1.765 1.998v3.77c0 1.106-.85 2.003-1.897 2.003h-3.762zM36.355 214h-1.011v7.783h1.01V214zm-7.097 6.704v-5.642h2.751c.49 0 .886.419.886.936v3.77c0 .517-.396.936-.886.936h-2.75zM37.775 214v7.771h3.762c1.047 0 1.897-.897 1.897-2.003v-3.77c0-1.054-.774-1.926-1.765-1.998h-3.894zm6.946 1.803h1.13v1.193h-1.13v-1.193zm1.13 2.983h-1.13v1.193h1.13v-1.193zm-7.065-3.724v5.642h2.75c.49 0 .887-.419.887-.936v-3.77c0-.517-.397-.936-.886-.936h-2.751z"})]}),(0,V.jsx)("circle",{cx:"191.32",cy:"218",r:"10",fill:"url(#h)"}),(0,V.jsx)("path",{d:"M192.064 213.333l.976-.564h3.554v10.427h-3.286a1 1 0 0 1-.5-.134l-3.588-2.071v-6.016l.453-.262.797.46-.453.262v5.096l3.237 1.868h2.543v-8.833h-2.543l-.393.227-.797-.46z",fill:"#fff"}),(0,V.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M192.512 220.531v-5.096l-3.237-1.869h-2.543v8.833h2.543l.394-.227.797.46-.977.564h-3.554v-10.427h3.554l3.82 2.206v6.016l-.452.261-.797-.461.452-.26z",fill:"#fff"})]})]}),(0,V.jsxs)("defs",{children:[(0,V.jsxs)("filter",{id:"a",x:"0",y:"0",width:"228",height:"258",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,V.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,V.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,V.jsx)("feOffset",{dy:"2"}),(0,V.jsx)("feGaussianBlur",{stdDeviation:"2"}),(0,V.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,V.jsx)("feColorMatrix",{values:"0 0 0 0 0.0631944 0 0 0 0 0.242785 0 0 0 0 0.403472 0 0 0 0.2 0"}),(0,V.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1410_22507"}),(0,V.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1410_22507",result:"shape"})]}),(0,V.jsx)("pattern",{id:"c",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:(0,V.jsx)("use",{xlinkHref:"#i",transform:"scale(.00455 .00781)"})}),(0,V.jsxs)("linearGradient",{id:"d",x1:"114",y1:"130",x2:"114",y2:"252",gradientUnits:"userSpaceOnUse",children:[(0,V.jsx)("stop",{stopColor:"#101010"}),(0,V.jsx)("stop",{offset:"1",stopColor:"#272727"})]}),(0,V.jsxs)("linearGradient",{id:"e",x1:"120.989",y1:"45",x2:"120.989",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[(0,V.jsx)("stop",{stopColor:"#fff",stopOpacity:".4"}),(0,V.jsx)("stop",{offset:"1",stopColor:"#fff"})]}),(0,V.jsxs)("linearGradient",{id:"f",x1:"107.801",y1:"45",x2:"107.801",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[(0,V.jsx)("stop",{stopColor:"#fff"}),(0,V.jsx)("stop",{offset:"1",stopColor:"#fff",stopOpacity:".4"})]}),(0,V.jsxs)("radialGradient",{id:"h",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(17 -8.76924 6.97565 13.52294 183.166 221)",children:[(0,V.jsx)("stop",{stopColor:"#016BED"}),(0,V.jsx)("stop",{offset:".699",stopColor:"#4498FB"}),(0,V.jsx)("stop",{offset:"1",stopColor:"#9DFFE8"})]}),(0,V.jsx)("clipPath",{id:"g",children:(0,V.jsx)("path",{fill:"#fff",transform:"translate(28 214)",d:"M0 0h40.32v8H0z"})}),(0,V.jsx)("image",{id:"i",width:"220",height:"128",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAACABAMAAACSOBo+AAAAG1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACUUeIgAAAACXRSTlMSFhkOHAsfCCOMH5MiAAAjjElEQVRo3hTQO3sjRRBG4a+qWzJhVfdIJqzuGXsJe2bkJe0e2UA4shdIJS2X1LBcUpbL/wae5yQnfVHGjp2+V08yKR7OwBDYte8pi5Aq9DObSBouqN9cidZyusonzWtGJO13phLebEn6xKEnlYyXe5hnySc53Ym9Abn7crTse8r7BMeIB8yBOVZK0trMjxT5S/cgc9G63BQqZoF3xSYZYeRk2hoIvEBFA7XMtaaF8TdY1GjiDDqgEswRDlWnRtmYzl5zRUq3sx3I+JL7sBJKXchDGJY9D+SfHAIoA+TuHCyYYYFjkhNB8tO5hh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Te(e){var n=e.src,t=e.alt,a=(0,r.useState)(!1),s=(0,w.Z)(a,2),i=s[0],o=s[1],c=(0,r.useState)(!1),l=(0,w.Z)(c,2),p=l[0],d=l[1],u=function(){return d(!0)},h=function(){return d(!1)};return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Re.Z,{ready:i,customPlaceholder:(0,V.jsx)("img",{style:{cursor:"pointer"},alt:t,src:n,width:"58px",height:"58px",onError:function(){return o(!0)},onClick:u}),children:(0,V.jsx)(Oe,{style:{cursor:"pointer",width:"58px",height:"58px"},onClick:u})}),(0,V.jsx)(De.Z,{open:p,onClose:h,"aria-labelledby":"preview-space-nft-display","aria-describedby":"preview space nft display",fullWidth:!0,maxWidth:"md",children:(0,V.jsxs)(Fe.Z,{style:{padding:"8px 8px",backgroundColor:"rgba(0,0,0,0.8)"},children:[(0,V.jsx)(xe.Z,{color:"inherit",onClick:h,"aria-label":"close",style:{position:"absolute",top:8,right:8,color:"white"},children:(0,V.jsx)(Me.Z,{})}),i?(0,V.jsx)(Oe,{style:{width:"100%",height:"75vh"}}):(0,V.jsx)("img",{src:n,alt:"",style:{width:"100%",height:"75vh",objectFit:"contain"}})]})})]})}Oe.defaultProps={width:"228",height:"258",viewBox:"0 0 228 258",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},Te.propTypes={src:L.string.isRequired,alt:L.string.isRequired};var ze,Le=Te,Je=["spaceGateway","connected","progress","onDelete","onBackupNow","refreshSpaceGateways"],Ge=function(e){return(0,V.jsx)("svg",(0,j.Z)((0,j.Z)({},e),{},{children:(0,V.jsx)("circle",{cx:"4",cy:"4",r:"4",fill:"#25C99B"})}))};Ge.defaultProps={width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var Qe=function(e){return(0,V.jsx)("svg",(0,j.Z)((0,j.Z)({},e),{},{children:(0,V.jsx)("circle",{cx:"4",cy:"4",r:"4",fill:"#F16E6E"})}))};function Ne(e){var n=e.spaceGateway,t=e.connected,o=e.progress,c=e.onDelete,u=e.onBackupNow,x=e.refreshSpaceGateways,g=(0,B.Z)(e,Je),v=(0,b.PE)(),y=v.t,A=v.locale,I=(0,r.useState)(!1),S=(0,w.Z)(I,2),U=S[0],D=S[1],O=(0,a.y0)().blocklet,T=(0,Q.h6)(),z=T.api,L=T.info.did,J=P({blocklet:O}),G=J.appDid,N=J.appName,H=J.appDescription,X=J.scopes,K=J.appUrl,Y=J.referrer,W=(0,r.useMemo)((function(){return m(null===O||void 0===O?void 0:O.environments)}),[O]),q=(0,r.useState)({open:!1,action:"one-click-authorization",checkTimeout:3e5,messages:{title:y("storage.spaces.authorize.title",{appName:N},A),scan:y("storage.spaces.authorize.scan",{appName:N},A),confirm:"",success:(0,V.jsx)(C.Z,{gutterBottom:!0,children:y("storage.spaces.authorize.success")})},onClose:function(){ee((function(e){return(0,j.Z)((0,j.Z)({},e),{},{open:!1})}))}}),_=(0,w.Z)(q,2),$=_[0],ee=_[1],ne=(0,de.Z)((0,i.Z)((0,s.Z)().mark((function e(){return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return",!0);case 2:return e.abrupt("return",f(W));case 3:case"end":return e.stop()}}),e)}))),{refreshDeps:[t,W,null===$||void 0===$?void 0:$.open,U]}),te=ne.data,re=ne.loading,ae=t&&te,se=t&&!U&&te,ie=t&&U&&te,oe=t&&!te&&!re&&!U,ce=function(){var e=(0,i.Z)((0,s.Z)().mark((function e(){return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,f(null===n||void 0===n?void 0:n.endpoint);case 2:if(!e.sent){e.next=8;break}return e.next=6,z.configBlocklet({input:{did:[O.meta.did],configs:[{key:l.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:n.endpoint}]}});case 6:return M.Z.success(y("storage.spaces.connect.switchToSpaceSucceeded",{name:n.name?"(".concat(n.name,")"):""})),e.abrupt("return");case 8:ee((function(e){return(0,j.Z)((0,j.Z)({},e),{},{open:!0,prefix:F()(n.url,"space/api/did"),baseUrl:new URL(n.url).origin,checkFn:d.od.create({baseURL:F()(n.url,"space")}).get,extraParams:{appDid:G,appName:N,appDescription:H,scopes:X,appUrl:K,referrer:Y,nodeDid:L}})}));case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),xe=function(){var e=(0,i.Z)((0,s.Z)().mark((function e(t,r){var a,i,o,c,p,d;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c=r(t.endpoint),p=h(c),d=t.space?r(t.space):{},!n.did||p===n.did){e.next=7;break}return ee((function(e){return(0,j.Z)((0,j.Z)({},e),{},{open:!1})})),M.Z.error(y("storage.spaces.gateway.switch.failedForMismatchSpace",{name:null!==d&&void 0!==d&&d.name?d.name:""})),e.abrupt("return");case 7:return e.next=9,z.updateBlockletSpaceGateway({input:{did:O.meta.did,where:{url:null===n||void 0===n?void 0:n.url},spaceGateway:(0,j.Z)((0,j.Z)({},n),{},{name:null!==(a=d.name)&&void 0!==a?a:"DID Space",did:null!==(i=d.did)&&void 0!==i?i:h(c),endpoint:c})}});case 9:if(W===c){e.next=12;break}return e.next=12,z.configBlocklet({input:{did:[O.meta.did],configs:[{key:l.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:c}]}});case 12:M.Z.success(y("storage.spaces.connectedWithName",{name:null!==(o=null===n||void 0===n?void 0:n.name)&&void 0!==o?o:"DID Spaces"})),ee((function(e){return(0,j.Z)((0,j.Z)({},e),{},{open:!1})})),x();case 15:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),me=function(){var e=(0,i.Z)((0,s.Z)().mark((function e(){return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!U){e.next=3;break}return e.abrupt("return");case 3:return D(!0),e.next=6,u();case 6:e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),console.error(e.t0),M.Z.error(e.t0.message);case 12:return e.prev=12,D(!0),e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[0,8,12,15]])})));return function(){return e.apply(this,arguments)}}();return(0,r.useEffect)((function(){null!==o&&void 0!==o&&o.completed?(100===(null===o||void 0===o?void 0:o.progress)?M.Z.success(y("storage.spaces.backupSuccessfully")):-1===(null===o||void 0===o?void 0:o.progress)&&M.Z.error(null===o||void 0===o?void 0:o.message),D(!1),o.progress=0,o.message=""):o.progress&&D(!0)}),[o]),(0,V.jsxs)(Pe,{style:{position:"relative"},children:[(0,V.jsxs)(k.Z,(0,j.Z)((0,j.Z)({sx:{backgroundColor:t?"#F0FDFF":"inherit","&:hover":{backgroundColor:t?"#F0FDFF":"#FBFBFB"},borderRadius:"8px"},display:"flex",padding:"12px 20px"},g),{},{children:[(0,V.jsx)(k.Z,{display:"flex",children:(0,V.jsx)(Le,{alt:n.did,src:Z(n.endpoint)})}),(0,V.jsxs)(k.Z,{className:"spaces-info",display:"flex",flexGrow:1,flexDirection:ie?"row":"column",sx:{marginLeft:"20px",padding:"0px 0px"},children:[(0,V.jsxs)(k.Z,{className:"spaces-info",display:"flex",maxWidth:"360px",alignItems:"center",children:[(0,V.jsx)(C.Z,{color:t?"primary":"inherit",fontSize:"1rem",fontWeight:"bold",children:n.name}),ae&&(0,V.jsx)(le.Z,{label:(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Ge,{style:{marginRight:"4px"}}),y("storage.spaces.connected.tag")]}),variant:"outlined",size:"small",style:{marginLeft:"20px",fontWeight:"bold"}}),oe&&(0,V.jsx)(le.Z,{label:(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Qe,{style:{marginRight:"4px"}}),y("storage.spaces.disconnected.tag")]}),variant:"outlined",size:"small",style:{marginLeft:"20px",fontWeight:"bold"}})]}),(0,V.jsx)(k.Z,{className:"spaces-address",display:ie?"none":"flex",color:"#9397A1",marginTop:"8px",children:(0,V.jsx)(C.Z,{sx:{display:"inline-flex",alignItems:"center",fontSize:"14px"},color:"#9397A1",children:n.did&&(0,V.jsx)(he.Z,{copyable:!1,size:14,compact:!0,responsive:!1,did:n.did})})})]}),(0,V.jsxs)(k.Z,{className:"spaces-backup",display:"flex",alignItems:"center",children:[se&&(0,V.jsxs)(k.Z,{className:"backup-strategy",display:"flex",alignItems:"center",width:"100%",children:[(0,V.jsx)(E.Z,{variant:"contained",size:"small",onClick:me,children:y("storage.spaces.strategy.backupNow")}),Ee.C&&(0,V.jsx)(fe.Z,{name:"enable-auto-backup",title:"coming soon",disabled:!0,labelProps:{label:(0,V.jsx)(C.Z,{sx:{marginRight:"8px",fontSize:"16px"},children:(0,V.jsx)("span",{children:y("storage.spaces.strategy.autoBackup")})})},style:{marginLeft:"64px"}})]}),ie&&(0,V.jsxs)(k.Z,{className:"backup-progress",display:"flex",flexDirection:"column",alignItems:"center",minWidth:"640px",marginRight:"auto",alignSelf:"end",children:[(0,V.jsx)(C.Z,{color:"primary",children:null===o||void 0===o?void 0:o.message}),(0,V.jsxs)(k.Z,{sx:{display:"flex",alignItems:"center"},width:"100%",children:[(0,V.jsx)(k.Z,{sx:{width:"100%",mr:1},children:(0,V.jsx)(pe.Z,{color:"primary",variant:"determinate",value:null===o||void 0===o?void 0:o.progress})}),(0,V.jsx)(k.Z,{sx:{minWidth:35},children:(0,V.jsxs)(C.Z,{variant:"body2",color:"text.secondary",children:[null===o||void 0===o?void 0:o.progress,"%"]})})]})]}),oe&&(0,V.jsx)(k.Z,{className:"backup-strategy",display:"flex",alignItems:"center",width:"100%",children:(0,V.jsx)(E.Z,{color:"error",variant:"contained",size:"small",onClick:ce,children:y("storage.spaces.disconnected.reconnectNow")})}),(0,V.jsx)(Ue,{sx:{marginLeft:"16px",marginRight:"16px"},spaceGateway:n,connected:t,onDelete:c,onConnect:ce,enableSwitchToSpace:(null===o||void 0===o?void 0:o.completed)||(0,p.isEmpty)(null===o||void 0===o?void 0:o.message)})]})]})),(0,V.jsx)(R.default,{forceConnected:!1,saveConnect:!1,prefix:$.prefix,open:$.open,popup:!0,action:$.action,baseUrl:$.baseUrl,checkFn:$.checkFn,onSuccess:xe,onClose:$.onClose,checkTimeout:$.checkTimeout,extraParams:$.extraParams,messages:$.messages,locale:A},"get-endpoint"),(0,V.jsx)(k.Z,{className:"selected-container ".concat(t?"selected":""),children:(0,V.jsx)(ue.default,{className:"selected-icon"})})]})}Qe.defaultProps={width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ne.propTypes={spaceGateway:J().shape({did:J().string.isRequired,name:J().string.isRequired,url:J().string.isRequired,endpoint:J().string.isRequired,protected:J().bool}).isRequired,connected:J().bool.isRequired,progress:J().any.isRequired,refreshSpaceGateways:J().func.isRequired,onDelete:J().func,onBackupNow:J().func},Ne.defaultProps={onDelete:function(){},onBackupNow:function(){}};var Pe=(0,q.default)(k.Z)(ze||(ze=(0,W.Z)(["\n .selected-container {\n position: absolute;\n right: 0px;\n bottom: 0px;\n display: flex;\n -webkit-box-pack: end;\n justify-content: flex-end;\n align-items: flex-end;\n width: 32px;\n height: 32px;\n border-radius: 0px 0px 8px;\n color: rgb(255, 255, 255);\n overflow: hidden;\n transition: all 0.4s ease 0s;\n\n &::after {\n position: absolute;\n z-index: 0;\n left: 60px;\n top: 60px;\n display: block;\n width: 0px;\n height: 0px;\n border-width: 16px;\n border-style: solid;\n border-color: transparent #1dc1c7 #1dc1c7 transparent;\n transition: all 0.1s ease 0s;\n content: '';\n }\n\n .selected-icon {\n visibility: hidden;\n width: 60%;\n height: 60%;\n position: relative;\n z-index: 2;\n margin: 0px 1px 1px 0px;\n font-size: 16px;\n transition: all 0.2s ease 0s;\n }\n }\n\n .selected-container.selected {\n &::after {\n left: 0px;\n top: 0px;\n }\n\n .selected-icon {\n visibility: visible;\n }\n }\n"]))),Ve=Ne,He=t(19778),Xe=t(75760),Ke=t(75239),Ye=t(21722),We=t(1577),qe=t.n(We),_e=t(73119),$e=["progress","spaceGateways"];function en(e){var n=e.progress,t=e.spaceGateways,o=(0,B.Z)(e,$e),c=(0,b.PE)(),l=c.t,d=c.locale,u=function(e){var n,t=e.blocklet,a=e.loading,o=e.progress,c=(0,r.useState)([]),l=(0,w.Z)(c,2),d=l[0],u=l[1],h=(0,Q.h6)().api,f=(0,r.useCallback)((0,p.throttle)((0,i.Z)((0,s.Z)().mark((function e(){var n,r,a;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h.getBlockletBackups({input:{did:null===t||void 0===t||null===(n=t.meta)||void 0===n?void 0:n.did}});case 2:r=e.sent,a=r.backups,u(null!==a&&void 0!==a?a:[]);case 5:case"end":return e.stop()}}),e)}))),2e3),[]);return(0,ce.Z)((0,i.Z)((0,s.Z)().mark((function e(){return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:f();case 1:case"end":return e.stop()}}),e)}))),[null===t||void 0===t||null===(n=t.meta)||void 0===n?void 0:n.did,o,a]),{backups:d}}({blocklet:(0,a.y0)().blocklet,progress:n}),h=u.backups,f=[{label:"DID Spaces",name:"target",options:{customBodyRenderLite:function(e){var n,r=h[e],a=r.targetUrl,s=r.targetName,i=(null===(n=t.find((function(e){return null===a||void 0===a?void 0:a.includes(null===e||void 0===e?void 0:e.url)})))||void 0===n?void 0:n.name)||s||"DID Space";return(0,V.jsx)(ee.Z,{fontSize:"16px",href:a,target:"_blank",children:i})}}},{label:l("common.strategy"),name:"strategy",options:{customBodyRender:function(e){var n=l(0===e?"common.auto":"common.manual");return(0,V.jsx)(He.Z,{children:n})}}},{label:l("common.startTime"),name:"createdAt",options:{customBodyRender:function(e){return qe()(e).format("YYYY-MM-DD HH:mm:ss")}}},{label:l("common.endTime"),name:"updatedAt",options:{customBodyRender:function(e){return(0,p.isEmpty)(e)?"":qe()(e).format("YYYY-MM-DD HH:mm:ss")}}},{label:l("common.status"),name:"status",options:{customBodyRenderLite:function(e){var n,t=null!==(n=null===h||void 0===h?void 0:h[e])&&void 0!==n?n:{},r=t.status,a=t.message;return(0,p.isNull)(r)?(0,V.jsxs)(C.Z,{display:"inline-flex",alignItems:"center",fontSize:"14px",children:[(0,V.jsx)(I.Z,{sx:{marginRight:"4px"},size:"12px"}),l("common.progress")]}):r?(0,V.jsxs)(k.Z,{display:"inline-flex",alignItems:"center",children:[(0,V.jsx)(He.Z,{type:"error",children:l("common.failed")})," \xa0",(0,V.jsx)(Ke.Z,{style:{display:"flex",alignItems:"center",flexShrink:0},title:a,children:(0,V.jsx)(Ye.Z,{children:(0,V.jsx)(_e.Z,{style:{width:"24px",height:"24px"},color:"error"})})})]}):(0,V.jsx)(He.Z,{type:"success",children:l("common.succeeded")})}}}];return(0,V.jsx)(k.Z,(0,j.Z)((0,j.Z)({},o),{},{children:null!==h&&void 0!==h&&h.length?(0,V.jsx)(Xe.Z,{title:(0,V.jsx)(C.Z,{fontSize:"1.2rem",fontWeight:"bold",children:l("storage.spaces.backup.records")}),data:h,columns:f,emptyNode:l("storage.spaces.record.emptyData",d),options:{download:!1,filter:!1,print:!1}}):(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(k.Z,{display:"flex",height:"56px",lineHeight:"56px",alignItems:"center",children:(0,V.jsx)(C.Z,{fontSize:"1.2rem",fontWeight:"bold",children:l("storage.spaces.backup.records")})}),(0,V.jsx)(k.Z,{color:"#9397A1",marginTop:"16px",marginBottom:"24px",children:l("storage.spaces.record.emptyData")})]})}))}en.propTypes={progress:L.object.isRequired,spaceGateways:L.array.isRequired};var nn=en;var tn=function(e){var n=e.appDid,t=(0,r.useState)({message:"",progress:0,completed:!1}),a=(0,w.Z)(t,2),s=a[0],i=a[1];return(0,(0,Q.h6)().ws.useSubscription)(l.BlockletEvents.backupProgress,(function(e){i((function(){return(0,j.Z)({},e)}))}),[n]),s};function rn(e){return an.apply(this,arguments)}function an(){return an=(0,i.Z)((0,s.Z)().mark((function e(n){var t,r,a,o,c;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.blockletDid,r=n.nodeApi,a=n.spaceGateways,o=!1,e.next=4,Promise.all(a.map(function(){var e=(0,i.Z)((0,s.Z)().mark((function e(n){var t,r;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.name,e.next=3,y(n.endpoint);case 3:return r=e.sent,(0,p.isEmpty)(r)||r===t||(t=r,o=!0),e.abrupt("return",(0,j.Z)((0,j.Z)({},n),{},{name:t}));case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()));case 4:if(c=e.sent,!o){e.next=8;break}return e.next=8,Promise.all(c.filter((function(e){return e.did})).map((function(e){return r.updateBlockletSpaceGateway({input:{did:t,where:{did:e.did},spaceGateway:(0,j.Z)({},e)}})})));case 8:return e.abrupt("return",c);case 9:case"end":return e.stop()}}),e)}))),an.apply(this,arguments)}var sn=function(){var e,n=(0,b.PE)().t,t=(0,a.y0)(),o=t.blocklet,c=t.actions.refreshBlocklet,l=(0,Q.h6)().api,p=(0,r.useMemo)((function(){return m(null===o||void 0===o?void 0:o.environments)}),[o]),d=tn({appDid:null===o||void 0===o?void 0:o.appDid}),u=(0,r.useState)(!1),h=(0,w.Z)(u,2),f=h[0],x=h[1],g=function(e){var n=e.blockletDid,t=e.setLoading,a=void 0===t?function(){}:t,o=(0,r.useState)(!1),c=(0,w.Z)(o,2),l=c[0],p=c[1],d=(0,r.useState)([]),u=(0,w.Z)(d,2),h=u[0],f=u[1],x=(0,Q.h6)().api;return(0,ce.Z)((0,i.Z)((0,s.Z)().mark((function e(){var t,r,i;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n){e.next=4;break}return f([]),e.abrupt("return");case 4:return a(!0),e.next=7,x.getBlockletSpaceGateways({input:{did:n}});case 7:return t=e.sent,r=t.spaceGateways,e.next=11,rn({blockletDid:n,nodeApi:x,spaceGateways:r});case 11:i=e.sent,f(null!==i&&void 0!==i?i:[]),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(0),console.error(e.t0),M.Z.error((0,G.Z)(e.t0));case 19:return e.prev=19,a(!1),e.finish(19);case 22:case"end":return e.stop()}}),e,null,[[0,15,19,22]])}))),[n,l]),{refreshSpaceGateways:function(){p((function(e){return!e}))},spaceGateways:h}}({blockletDid:null===o||void 0===o||null===(e=o.meta)||void 0===e?void 0:e.did,setLoading:x,refreshBlocklet:c}),v=g.spaceGateways,y=g.refreshSpaceGateways,A=f&&!(null!==v&&void 0!==v&&v.length),Z=function(){var e=(0,i.Z)((0,s.Z)().mark((function e(t){return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:if(t.endpoint!==p){e.next=5;break}return M.Z.warning(n("storage.spaces.gateway.delete.failedForConnected")),e.abrupt("return");case 5:return e.next=7,l.deleteBlockletSpaceGateway({input:{did:o.meta.did,spaceGatewayDid:null===t||void 0===t?void 0:t.did}});case 7:M.Z.success(n("storage.spaces.gateway.delete.succeeded",{name:"(".concat(t.name,")")})),y();case 9:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),j=function(){var e=(0,i.Z)((0,s.Z)().mark((function e(){return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.backupBlocklet({input:{appDid:o.appDid,to:"spaces"}});case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,V.jsxs)(k.Z,{display:"flex",flexDirection:"column",children:[(0,V.jsxs)(k.Z,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:"12px",children:[(0,V.jsx)(C.Z,{fontSize:"1.2rem",fontWeight:"bold",children:n("storage.spaces.connected.title")}),(0,V.jsx)(Y,{spaceGateways:v,refreshSpaceGateways:y})]}),(0,V.jsx)(k.Z,{children:A?(0,V.jsx)(k.Z,{display:"flex",justifyContent:"center",children:(0,V.jsx)(I.Z,{})}):v.map((function(e,n){return(0,V.jsx)(Ve,{style:{marginTop:"12px"},spaceGateway:e,connected:v.findIndex((function(e){return e.endpoint===p}))===n,onDelete:Z,onBackupNow:j,progress:d,refreshSpaceGateways:y},e.endpoint)}))}),(0,V.jsx)(nn,{sx:{marginTop:"24px"},spaceGateways:v,progress:d}),(0,V.jsx)(C.Z,{fontSize:"1.2rem",fontWeight:"bold",mb:2,children:n("common.dataStorage")}),(0,V.jsx)(re,{blocklet:o})]})};function on(){var e=(0,a.y0)().blocklet;return(0,r.useMemo)((function(){return m(null===e||void 0===e?void 0:e.environments)}),[e])?(0,V.jsx)(sn,{}):(0,V.jsx)(oe,{})}on.propTypes={};var cn=on},60344:function(e,n,t){t.d(n,{hi:function(){return s},od:function(){return a.a}});var r=t(10458),a=t.n(r);a().defaults.timeout=1e4;var s=a().create()},54063:function(e,n,t){t.d(n,{C:function(){return r}});var r="true"===localStorage.getItem("enableDebug")}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[5953],{75953:function(e,t,n){n.d(t,{Z:function(){return Q}});var o=n(56666),r=n(31461),a=n(7896),i=n(5057),l=n(15865),c=n(91213),u=n(3182),s=n(66685),p=n(97752),d=n(62773),f=n(42908),v=n(6285),g=n(31821),h=n(18561);function m(e){return(0,h.Z)("MuiListSubheader",e)}(0,g.Z)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);var b=n(96266),x=["className","color","component","disableGutters","disableSticky","inset"],Z=(0,d.ZP)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,"default"!==n.color&&t["color".concat((0,v.Z)(n.color))],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})((function(e){var t=e.theme,n=e.ownerState;return(0,a.Z)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(t.vars||t).palette.text.secondary,fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(14)},"primary"===n.color&&{color:(t.vars||t).palette.primary.main},"inherit"===n.color&&{color:"inherit"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.inset&&{paddingLeft:72},!n.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(t.vars||t).palette.background.paper})})),y=i.forwardRef((function(e,t){var n=(0,f.Z)({props:e,name:"MuiListSubheader"}),o=n.className,i=n.color,u=void 0===i?"default":i,s=n.component,p=void 0===s?"li":s,d=n.disableGutters,g=void 0!==d&&d,h=n.disableSticky,y=void 0!==h&&h,O=n.inset,I=void 0!==O&&O,S=(0,r.Z)(n,x),P=(0,a.Z)({},n,{color:u,component:p,disableGutters:g,disableSticky:y,inset:I}),C=function(e){var t=e.classes,n=e.color,o=e.disableGutters,r=e.inset,a=e.disableSticky,i={root:["root","default"!==n&&"color".concat((0,v.Z)(n)),!o&&"gutters",r&&"inset",!a&&"sticky"]};return(0,c.Z)(i,m,t)}(P);return(0,b.jsx)(Z,(0,a.Z)({as:p,className:(0,l.default)(C.root,o),ref:t,ownerState:P},S))}));y.muiSkipListHighlight=!0;var O=y,I=n(25228),S=n(67680),P=n(19654),C=n(46234),k=n(9243),w=n(82226),L=n(75623),A=n(74235),T=n(60473);function R(e){return(0,h.Z)("MuiAutocomplete",e)}var N,M,D=(0,g.Z)("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),z=n(2286),E=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],F=["ref"],H=(0,d.ZP)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState,r=n.fullWidth,a=n.hasClearIcon,i=n.hasPopupIcon,l=n.inputFocused,c=n.size;return[(0,o.Z)({},"& .".concat(D.tag),t.tag),(0,o.Z)({},"& .".concat(D.tag),t["tagSize".concat((0,v.Z)(c))]),(0,o.Z)({},"& .".concat(D.inputRoot),t.inputRoot),(0,o.Z)({},"& .".concat(D.input),t.input),(0,o.Z)({},"& .".concat(D.input),l&&t.inputFocused),t.root,r&&t.fullWidth,i&&t.hasPopupIcon,a&&t.hasClearIcon]}})((function(e){var t,n,r,i,l,c=e.ownerState;return(0,a.Z)((t={},(0,o.Z)(t,"&.".concat(D.focused," .").concat(D.clearIndicator),{visibility:"visible"}),(0,o.Z)(t,"@media (pointer: fine)",(0,o.Z)({},"&:hover .".concat(D.clearIndicator),{visibility:"visible"})),t),c.fullWidth&&{width:"100%"},(l={},(0,o.Z)(l,"& .".concat(D.tag),(0,a.Z)({margin:3,maxWidth:"calc(100% - 6px)"},"small"===c.size&&{margin:2,maxWidth:"calc(100% - 4px)"})),(0,o.Z)(l,"& .".concat(D.inputRoot),(n={flexWrap:"wrap"},(0,o.Z)(n,".".concat(D.hasPopupIcon,"&, .").concat(D.hasClearIcon,"&"),{paddingRight:30}),(0,o.Z)(n,".".concat(D.hasPopupIcon,".").concat(D.hasClearIcon,"&"),{paddingRight:56}),(0,o.Z)(n,"& .".concat(D.input),{width:0,minWidth:30}),n)),(0,o.Z)(l,"& .".concat(C.Z.root),{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}}),(0,o.Z)(l,"& .".concat(C.Z.root,".").concat(k.Z.sizeSmall),(0,o.Z)({},"& .".concat(C.Z.input),{padding:"2px 4px 3px 0"})),(0,o.Z)(l,"& .".concat(w.Z.root),(r={padding:9},(0,o.Z)(r,".".concat(D.hasPopupIcon,"&, .").concat(D.hasClearIcon,"&"),{paddingRight:39}),(0,o.Z)(r,".".concat(D.hasPopupIcon,".").concat(D.hasClearIcon,"&"),{paddingRight:65}),(0,o.Z)(r,"& .".concat(D.input),{padding:"7.5px 4px 7.5px 5px"}),(0,o.Z)(r,"& .".concat(D.endAdornment),{right:9}),r)),(0,o.Z)(l,"& .".concat(w.Z.root,".").concat(k.Z.sizeSmall),(0,o.Z)({paddingTop:6,paddingBottom:6,paddingLeft:6},"& .".concat(D.input),{padding:"2.5px 4px 2.5px 8px"})),(0,o.Z)(l,"& .".concat(L.Z.root),(i={paddingTop:19,paddingLeft:8},(0,o.Z)(i,".".concat(D.hasPopupIcon,"&, .").concat(D.hasClearIcon,"&"),{paddingRight:39}),(0,o.Z)(i,".".concat(D.hasPopupIcon,".").concat(D.hasClearIcon,"&"),{paddingRight:65}),(0,o.Z)(i,"& .".concat(L.Z.input),{padding:"7px 4px"}),(0,o.Z)(i,"& .".concat(D.endAdornment),{right:9}),i)),(0,o.Z)(l,"& .".concat(L.Z.root,".").concat(k.Z.sizeSmall),(0,o.Z)({paddingBottom:1},"& .".concat(L.Z.input),{padding:"2.5px 4px"})),(0,o.Z)(l,"& .".concat(k.Z.hiddenLabel),{paddingTop:8}),(0,o.Z)(l,"& .".concat(L.Z.root,".").concat(k.Z.hiddenLabel),(0,o.Z)({paddingTop:0,paddingBottom:0},"& .".concat(D.input),{paddingTop:16,paddingBottom:17})),(0,o.Z)(l,"& .".concat(L.Z.root,".").concat(k.Z.hiddenLabel,".").concat(k.Z.sizeSmall),(0,o.Z)({},"& .".concat(D.input),{paddingTop:8,paddingBottom:9})),(0,o.Z)(l,"& .".concat(D.input),(0,a.Z)({flexGrow:1,textOverflow:"ellipsis",opacity:0},c.inputFocused&&{opacity:1})),l))})),W=(0,d.ZP)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:function(e,t){return t.endAdornment}})({position:"absolute",right:0,top:"calc(50% - 14px)"}),j=(0,d.ZP)(S.Z,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:function(e,t){return t.clearIndicator}})({marginRight:-2,padding:4,visibility:"hidden"}),V=(0,d.ZP)(S.Z,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:function(e,t){var n=e.ownerState;return(0,a.Z)({},t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen)}})((function(e){var t=e.ownerState;return(0,a.Z)({padding:2,marginRight:-2},t.popupOpen&&{transform:"rotate(180deg)"})})),B=(0,d.ZP)(p.Z,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:function(e,t){var n=e.ownerState;return[(0,o.Z)({},"& .".concat(D.option),t.option),t.popper,n.disablePortal&&t.popperDisablePortal]}})((function(e){var t=e.theme,n=e.ownerState;return(0,a.Z)({zIndex:(t.vars||t).zIndex.modal},n.disablePortal&&{position:"absolute"})})),q=(0,d.ZP)(I.Z,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:function(e,t){return t.paper}})((function(e){var t=e.theme;return(0,a.Z)({},t.typography.body1,{overflow:"auto"})})),G=(0,d.ZP)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:function(e,t){return t.loading}})((function(e){var t=e.theme;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),K=(0,d.ZP)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:function(e,t){return t.noOptions}})((function(e){var t=e.theme;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),U=(0,d.ZP)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:function(e,t){return t.listbox}})((function(e){var t,n,r=e.theme;return(0,o.Z)({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative"},"& .".concat(D.option),(n={minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16},(0,o.Z)(n,r.breakpoints.up("sm"),{minHeight:"auto"}),(0,o.Z)(n,"&.".concat(D.focused),{backgroundColor:(r.vars||r).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}),(0,o.Z)(n,'&[aria-disabled="true"]',{opacity:(r.vars||r).palette.action.disabledOpacity,pointerEvents:"none"}),(0,o.Z)(n,"&.".concat(D.focusVisible),{backgroundColor:(r.vars||r).palette.action.focus}),(0,o.Z)(n,'&[aria-selected="true"]',(t={backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / ").concat(r.vars.palette.action.selectedOpacity,")"):(0,s.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity)},(0,o.Z)(t,"&.".concat(D.focused),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / calc(").concat(r.vars.palette.action.selectedOpacity," + ").concat(r.vars.palette.action.hoverOpacity,"))"):(0,s.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(r.vars||r).palette.action.selected}}),(0,o.Z)(t,"&.".concat(D.focusVisible),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / calc(").concat(r.vars.palette.action.selectedOpacity," + ").concat(r.vars.palette.action.focusOpacity,"))"):(0,s.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.focusOpacity)}),t)),n))})),_=(0,d.ZP)(O,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:function(e,t){return t.groupLabel}})((function(e){var t=e.theme;return{backgroundColor:(t.vars||t).palette.background.paper,top:-8}})),J=(0,d.ZP)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:function(e,t){return t.groupUl}})((0,o.Z)({padding:0},"& .".concat(D.option),{paddingLeft:24})),Q=i.forwardRef((function(e,t){var n,o,s,d,g,h=(0,f.Z)({props:e,name:"MuiAutocomplete"}),m=(h.autoComplete,h.autoHighlight,h.autoSelect,h.blurOnSelect,h.ChipProps),x=h.className,Z=h.clearIcon,y=void 0===Z?N||(N=(0,b.jsx)(A.Z,{fontSize:"small"})):Z,O=h.clearOnBlur,S=(void 0===O&&h.freeSolo,h.clearOnEscape,h.clearText),C=void 0===S?"Clear":S,k=h.closeText,w=void 0===k?"Close":k,L=h.componentsProps,D=void 0===L?{}:L,Q=h.defaultValue,X=(void 0===Q&&h.multiple,h.disableClearable),Y=void 0!==X&&X,$=(h.disableCloseOnSelect,h.disabled),ee=void 0!==$&&$,te=(h.disabledItemsFocusable,h.disableListWrap,h.disablePortal),ne=void 0!==te&&te,oe=(h.filterSelectedOptions,h.forcePopupIcon),re=void 0===oe?"auto":oe,ae=h.freeSolo,ie=void 0!==ae&&ae,le=h.fullWidth,ce=void 0!==le&&le,ue=h.getLimitTagsText,se=void 0===ue?function(e){return"+".concat(e)}:ue,pe=h.getOptionLabel,de=void 0===pe?function(e){var t;return null!=(t=e.label)?t:e}:pe,fe=h.groupBy,ve=h.handleHomeEndKeys,ge=(void 0===ve&&h.freeSolo,h.includeInputInList,h.limitTags),he=void 0===ge?-1:ge,me=h.ListboxComponent,be=void 0===me?"ul":me,xe=h.ListboxProps,Ze=h.loading,ye=void 0!==Ze&&Ze,Oe=h.loadingText,Ie=void 0===Oe?"Loading\u2026":Oe,Se=h.multiple,Pe=void 0!==Se&&Se,Ce=h.noOptionsText,ke=void 0===Ce?"No options":Ce,we=(h.openOnFocus,h.openText),Le=void 0===we?"Open":we,Ae=h.PaperComponent,Te=void 0===Ae?I.Z:Ae,Re=h.PopperComponent,Ne=void 0===Re?p.Z:Re,Me=h.popupIcon,De=void 0===Me?M||(M=(0,b.jsx)(T.Z,{})):Me,ze=h.readOnly,Ee=void 0!==ze&&ze,Fe=h.renderGroup,He=h.renderInput,We=h.renderOption,je=h.renderTags,Ve=h.selectOnFocus,Be=(void 0===Ve&&h.freeSolo,h.size),qe=void 0===Be?"medium":Be,Ge=h.slotProps,Ke=void 0===Ge?{}:Ge,Ue=(0,r.Z)(h,E),_e=(0,u.Z)((0,a.Z)({},h,{componentName:"Autocomplete"})),Je=_e.getRootProps,Qe=_e.getInputProps,Xe=_e.getInputLabelProps,Ye=_e.getPopupIndicatorProps,$e=_e.getClearProps,et=_e.getTagProps,tt=_e.getListboxProps,nt=_e.getOptionProps,ot=_e.value,rt=_e.dirty,at=_e.expanded,it=_e.id,lt=_e.popupOpen,ct=_e.focused,ut=_e.focusedTag,st=_e.anchorEl,pt=_e.setAnchorEl,dt=_e.inputValue,ft=_e.groupedOptions,vt=!Y&&!ee&&rt&&!Ee,gt=(!ie||!0===re)&&!1!==re,ht=Qe().onMouseDown,mt=(null!=xe?xe:{}).ref,bt=tt(),xt=bt.ref,Zt=(0,r.Z)(bt,F),yt=(0,z.Z)(xt,mt),Ot=(0,a.Z)({},h,{disablePortal:ne,expanded:at,focused:ct,fullWidth:ce,hasClearIcon:vt,hasPopupIcon:gt,inputFocused:-1===ut,popupOpen:lt,size:qe}),It=function(e){var t=e.classes,n=e.disablePortal,o=e.expanded,r=e.focused,a=e.fullWidth,i=e.hasClearIcon,l=e.hasPopupIcon,u=e.inputFocused,s=e.popupOpen,p=e.size,d={root:["root",o&&"expanded",r&&"focused",a&&"fullWidth",i&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",u&&"inputFocused"],tag:["tag","tagSize".concat((0,v.Z)(p))],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",s&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,c.Z)(d,R,t)}(Ot);if(Pe&&ot.length>0){var St=function(e){return(0,a.Z)({className:It.tag,disabled:ee},et(e))};g=je?je(ot,St,Ot):ot.map((function(e,t){return(0,b.jsx)(P.Z,(0,a.Z)({label:de(e),size:qe},St({index:t}),m))}))}if(he>-1&&Array.isArray(g)){var Pt=g.length-he;!ct&&Pt>0&&(g=g.splice(0,he)).push((0,b.jsx)("span",{className:It.tag,children:se(Pt)},g.length))}var Ct=Fe||function(e){return(0,b.jsxs)("li",{children:[(0,b.jsx)(_,{className:It.groupLabel,ownerState:Ot,component:"div",children:e.group}),(0,b.jsx)(J,{className:It.groupUl,ownerState:Ot,children:e.children})]},e.key)},kt=We||function(e,t){return(0,b.jsx)("li",(0,a.Z)({},e,{children:de(t)}))},wt=function(e,t){var n=nt({option:e,index:t});return kt((0,a.Z)({},n,{className:It.option}),e,{selected:n["aria-selected"],index:t,inputValue:dt},Ot)},Lt=null!=(n=Ke.clearIndicator)?n:D.clearIndicator,At=null!=(o=Ke.paper)?o:D.paper,Tt=null!=(s=Ke.popper)?s:D.popper,Rt=null!=(d=Ke.popupIndicator)?d:D.popupIndicator;return(0,b.jsxs)(i.Fragment,{children:[(0,b.jsx)(H,(0,a.Z)({ref:t,className:(0,l.default)(It.root,x),ownerState:Ot},Je(Ue),{children:He({id:it,disabled:ee,fullWidth:!0,size:"small"===qe?"small":void 0,InputLabelProps:Xe(),InputProps:(0,a.Z)({ref:pt,className:It.inputRoot,startAdornment:g,onClick:function(e){e.target===e.currentTarget&&ht(e)}},(vt||gt)&&{endAdornment:(0,b.jsxs)(W,{className:It.endAdornment,ownerState:Ot,children:[vt?(0,b.jsx)(j,(0,a.Z)({},$e(),{"aria-label":C,title:C,ownerState:Ot},Lt,{className:(0,l.default)(It.clearIndicator,null==Lt?void 0:Lt.className),children:y})):null,gt?(0,b.jsx)(V,(0,a.Z)({},Ye(),{disabled:ee,"aria-label":lt?w:Le,title:lt?w:Le,ownerState:Ot},Rt,{className:(0,l.default)(It.popupIndicator,null==Rt?void 0:Rt.className),children:De})):null]})}),inputProps:(0,a.Z)({className:It.input,disabled:ee,readOnly:Ee},Qe())})})),st?(0,b.jsx)(B,(0,a.Z)({as:Ne,disablePortal:ne,style:{width:st?st.clientWidth:null},ownerState:Ot,role:"presentation",anchorEl:st,open:lt},Tt,{className:(0,l.default)(It.popper,null==Tt?void 0:Tt.className),children:(0,b.jsxs)(q,(0,a.Z)({ownerState:Ot,as:Te},At,{className:(0,l.default)(It.paper,null==At?void 0:At.className),children:[ye&&0===ft.length?(0,b.jsx)(G,{className:It.loading,ownerState:Ot,children:Ie}):null,0!==ft.length||ie||ye?null:(0,b.jsx)(K,{className:It.noOptions,ownerState:Ot,role:"presentation",onMouseDown:function(e){e.preventDefault()},children:ke}),ft.length>0?(0,b.jsx)(U,(0,a.Z)({as:be,className:It.listbox,ownerState:Ot},Zt,xe,{ref:yt,children:ft.map((function(e,t){return fe?Ct({key:e.key,group:e.group,children:e.options.map((function(t,n){return wt(t,e.index+n)}))}):wt(e,t)}))})):null]}))})):null]})}))},3182:function(e,t,n){n.d(t,{D:function(){return d},Z:function(){return m}});var o=n(96234),r=n(7896),a=n(5057),i=n(32852),l=n(62663),c=n(77590),u=n(2534),s=n(98038);function p(e){return"undefined"!==typeof e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ignoreAccents,n=void 0===t||t,o=e.ignoreCase,r=void 0===o||o,a=e.limit,i=e.matchFrom,l=void 0===i?"any":i,c=e.stringify,u=e.trim,s=void 0!==u&&u;return function(e,t){var o=t.inputValue,i=t.getOptionLabel,u=s?o.trim():o;r&&(u=u.toLowerCase()),n&&(u=p(u));var d=u?e.filter((function(e){var t=(c||i)(e);return r&&(t=t.toLowerCase()),n&&(t=p(t)),"start"===l?0===t.indexOf(u):t.indexOf(u)>-1})):e;return"number"===typeof a?d.slice(0,a):d}}function f(e,t){for(var n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}var v=d(),g=5,h=function(e){var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};function m(e){var t,n=e.unstable_isActiveElementInListbox,p=void 0===n?h:n,d=e.unstable_classNamePrefix,m=void 0===d?"Mui":d,b=e.autoComplete,x=void 0!==b&&b,Z=e.autoHighlight,y=void 0!==Z&&Z,O=e.autoSelect,I=void 0!==O&&O,S=e.blurOnSelect,P=void 0!==S&&S,C=e.clearOnBlur,k=void 0===C?!e.freeSolo:C,w=e.clearOnEscape,L=void 0!==w&&w,A=e.componentName,T=void 0===A?"useAutocomplete":A,R=e.defaultValue,N=void 0===R?e.multiple?[]:null:R,M=e.disableClearable,D=void 0!==M&&M,z=e.disableCloseOnSelect,E=void 0!==z&&z,F=e.disabled,H=e.disabledItemsFocusable,W=void 0!==H&&H,j=e.disableListWrap,V=void 0!==j&&j,B=e.filterOptions,q=void 0===B?v:B,G=e.filterSelectedOptions,K=void 0!==G&&G,U=e.freeSolo,_=void 0!==U&&U,J=e.getOptionDisabled,Q=e.getOptionLabel,X=void 0===Q?function(e){var t;return null!=(t=e.label)?t:e}:Q,Y=e.groupBy,$=e.handleHomeEndKeys,ee=void 0===$?!e.freeSolo:$,te=e.id,ne=e.includeInputInList,oe=void 0!==ne&&ne,re=e.inputValue,ae=e.isOptionEqualToValue,ie=void 0===ae?function(e,t){return e===t}:ae,le=e.multiple,ce=void 0!==le&&le,ue=e.onChange,se=e.onClose,pe=e.onHighlightChange,de=e.onInputChange,fe=e.onOpen,ve=e.open,ge=e.openOnFocus,he=void 0!==ge&&ge,me=e.options,be=e.readOnly,xe=void 0!==be&&be,Ze=e.selectOnFocus,ye=void 0===Ze?!e.freeSolo:Ze,Oe=e.value,Ie=(0,i.Z)(te);t=function(e){var t=X(e);return"string"!==typeof t?String(t):t};var Se=a.useRef(!1),Pe=a.useRef(!0),Ce=a.useRef(null),ke=a.useRef(null),we=a.useState(null),Le=(0,o.Z)(we,2),Ae=Le[0],Te=Le[1],Re=a.useState(-1),Ne=(0,o.Z)(Re,2),Me=Ne[0],De=Ne[1],ze=y?0:-1,Ee=a.useRef(ze),Fe=(0,l.Z)({controlled:Oe,default:N,name:T}),He=(0,o.Z)(Fe,2),We=He[0],je=He[1],Ve=(0,l.Z)({controlled:re,default:"",name:T,state:"inputValue"}),Be=(0,o.Z)(Ve,2),qe=Be[0],Ge=Be[1],Ke=a.useState(!1),Ue=(0,o.Z)(Ke,2),_e=Ue[0],Je=Ue[1],Qe=a.useCallback((function(e,n){if((ce?We.length<n.length:null!==n)||k){var o;if(ce)o="";else if(null==n)o="";else{var r=t(n);o="string"===typeof r?r:""}qe!==o&&(Ge(o),de&&de(e,o,"reset"))}}),[t,qe,ce,de,Ge,k,We]),Xe=(0,l.Z)({controlled:ve,default:!1,name:T,state:"open"}),Ye=(0,o.Z)(Xe,2),$e=Ye[0],et=Ye[1],tt=a.useState(!0),nt=(0,o.Z)(tt,2),ot=nt[0],rt=nt[1],at=!ce&&null!=We&&qe===t(We),it=$e&&!xe,lt=it?q(me.filter((function(e){return!K||!(ce?We:[We]).some((function(t){return null!==t&&ie(e,t)}))})),{inputValue:at&&ot?"":qe,getOptionLabel:t}):[],ct=(0,c.Z)({filteredOptions:lt,value:We,inputValue:qe});a.useEffect((function(){var e=We!==ct.value;_e&&!e||_&&!e||Qe(null,We)}),[We,Qe,_e,ct.value,_]);var ut=$e&<.length>0&&!xe,st=(0,u.Z)((function(e){-1===e?Ce.current.focus():Ae.querySelector('[data-tag-index="'.concat(e,'"]')).focus()}));a.useEffect((function(){ce&&Me>We.length-1&&(De(-1),st(-1))}),[We,ce,Me,st]);var pt=(0,u.Z)((function(e){var t=e.event,n=e.index,o=e.reason,r=void 0===o?"auto":o;if(Ee.current=n,-1===n?Ce.current.removeAttribute("aria-activedescendant"):Ce.current.setAttribute("aria-activedescendant","".concat(Ie,"-option-").concat(n)),pe&&pe(t,-1===n?null:lt[n],r),ke.current){var a=ke.current.querySelector('[role="option"].'.concat(m,"-focused"));a&&(a.classList.remove("".concat(m,"-focused")),a.classList.remove("".concat(m,"-focusVisible")));var i=ke.current;if("listbox"!==ke.current.getAttribute("role")&&(i=ke.current.parentElement.querySelector('[role="listbox"]')),i)if(-1!==n){var l=ke.current.querySelector('[data-option-index="'.concat(n,'"]'));if(l&&(l.classList.add("".concat(m,"-focused")),"keyboard"===r&&l.classList.add("".concat(m,"-focusVisible")),i.scrollHeight>i.clientHeight&&"mouse"!==r&&"touch"!==r)){var c=l,u=i.clientHeight+i.scrollTop,s=c.offsetTop+c.offsetHeight;s>u?i.scrollTop=s-i.clientHeight:c.offsetTop-c.offsetHeight*(Y?1.3:0)<i.scrollTop&&(i.scrollTop=c.offsetTop-c.offsetHeight*(Y?1.3:0))}}else i.scrollTop=0}})),dt=(0,u.Z)((function(e){var n=e.event,o=e.diff,r=e.direction,a=void 0===r?"next":r,i=e.reason,l=void 0===i?"auto":i;if(it){var c=function(e,t){if(!ke.current||-1===e)return-1;for(var n=e;;){if("next"===t&&n===lt.length||"previous"===t&&-1===n)return-1;var o=ke.current.querySelector('[data-option-index="'.concat(n,'"]')),r=!W&&(!o||o.disabled||"true"===o.getAttribute("aria-disabled"));if(!(o&&!o.hasAttribute("tabindex")||r))return n;n+="next"===t?1:-1}}(function(){var e=lt.length-1;if("reset"===o)return ze;if("start"===o)return 0;if("end"===o)return e;var t=Ee.current+o;return t<0?-1===t&&oe?-1:V&&-1!==Ee.current||Math.abs(o)>1?0:e:t>e?t===e+1&&oe?-1:V||Math.abs(o)>1?e:0:t}(),a);if(pt({index:c,reason:l,event:n}),x&&"reset"!==o)if(-1===c)Ce.current.value=qe;else{var u=t(lt[c]);Ce.current.value=u,0===u.toLowerCase().indexOf(qe.toLowerCase())&&qe.length>0&&Ce.current.setSelectionRange(qe.length,u.length)}}})),ft=a.useCallback((function(){if(it&&!function(){var e,n;if(-1!==Ee.current&&ct.filteredOptions&&ct.filteredOptions.length!==lt.length&&ct.inputValue===qe&&(ce?We.length===ct.value.length&&ct.value.every((function(e,n){return t(We[n])===t(e)})):(e=ct.value,n=We,(e?t(e):"")===(n?t(n):"")))){var o=ct.filteredOptions[Ee.current];if(o&<.some((function(e){return t(e)===t(o)})))return!0}return!1}()){var e=ce?We[0]:We;if(0!==lt.length&&null!=e){if(ke.current)if(null==e)Ee.current>=lt.length-1?pt({index:lt.length-1}):pt({index:Ee.current});else{var n=lt[Ee.current];if(ce&&n&&-1!==f(We,(function(e){return ie(n,e)})))return;var o=f(lt,(function(t){return ie(t,e)}));-1===o?dt({diff:"reset"}):pt({index:o})}}else dt({diff:"reset"})}}),[lt.length,!ce&&We,K,dt,pt,it,qe,ce]),vt=(0,u.Z)((function(e){(0,s.Z)(ke,e),e&&ft()}));a.useEffect((function(){ft()}),[ft]);var gt=function(e){$e||(et(!0),rt(!0),fe&&fe(e))},ht=function(e,t){$e&&(et(!1),se&&se(e,t))},mt=function(e,t,n,o){if(ce){if(We.length===t.length&&We.every((function(e,n){return e===t[n]})))return}else if(We===t)return;ue&&ue(e,t,n,o),je(t)},bt=a.useRef(!1),xt=function(e,t){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"selectOption",r=t;if(ce){var a=f(r=Array.isArray(We)?We.slice():[],(function(e){return ie(t,e)}));-1===a?r.push(t):"freeSolo"!==n&&(r.splice(a,1),o="removeOption")}Qe(e,r),mt(e,r,o,{option:t}),E||e&&(e.ctrlKey||e.metaKey)||ht(e,o),(!0===P||"touch"===P&&bt.current||"mouse"===P&&!bt.current)&&Ce.current.blur()};var Zt=function(e,t){if(ce){""===qe&&ht(e,"toggleInput");var n=Me;-1===Me?""===qe&&"previous"===t&&(n=We.length-1):((n+="next"===t?1:-1)<0&&(n=0),n===We.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;for(var n=e;;){if("next"===t&&n===We.length||"previous"===t&&-1===n)return-1;var o=Ae.querySelector('[data-tag-index="'.concat(n,'"]'));if(o&&o.hasAttribute("tabindex")&&!o.disabled&&"true"!==o.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),De(n),st(n)}},yt=function(e){Se.current=!0,Ge(""),de&&de(e,"","clear"),mt(e,ce?[]:null,"clear")},Ot=function(e){return function(t){if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==Me&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(De(-1),st(-1)),229!==t.which))switch(t.key){case"Home":it&&ee&&(t.preventDefault(),dt({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":it&&ee&&(t.preventDefault(),dt({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),dt({diff:-g,direction:"previous",reason:"keyboard",event:t}),gt(t);break;case"PageDown":t.preventDefault(),dt({diff:g,direction:"next",reason:"keyboard",event:t}),gt(t);break;case"ArrowDown":t.preventDefault(),dt({diff:1,direction:"next",reason:"keyboard",event:t}),gt(t);break;case"ArrowUp":t.preventDefault(),dt({diff:-1,direction:"previous",reason:"keyboard",event:t}),gt(t);break;case"ArrowLeft":Zt(t,"previous");break;case"ArrowRight":Zt(t,"next");break;case"Enter":if(-1!==Ee.current&&it){var n=lt[Ee.current],o=!!J&&J(n);if(t.preventDefault(),o)return;xt(t,n,"selectOption"),x&&Ce.current.setSelectionRange(Ce.current.value.length,Ce.current.value.length)}else _&&""!==qe&&!1===at&&(ce&&t.preventDefault(),xt(t,qe,"createOption","freeSolo"));break;case"Escape":it?(t.preventDefault(),t.stopPropagation(),ht(t,"escape")):L&&(""!==qe||ce&&We.length>0)&&(t.preventDefault(),t.stopPropagation(),yt(t));break;case"Backspace":if(ce&&!xe&&""===qe&&We.length>0){var r=-1===Me?We.length-1:Me,a=We.slice();a.splice(r,1),mt(t,a,"removeOption",{option:We[r]})}break;case"Delete":if(ce&&!xe&&""===qe&&We.length>0&&-1!==Me){var i=Me,l=We.slice();l.splice(i,1),mt(t,l,"removeOption",{option:We[i]})}}}},It=function(e){Je(!0),he&&!Se.current&>(e)},St=function(e){p(ke)?Ce.current.focus():(Je(!1),Pe.current=!0,Se.current=!1,I&&-1!==Ee.current&&it?xt(e,lt[Ee.current],"blur"):I&&_&&""!==qe?xt(e,qe,"blur","freeSolo"):k&&Qe(e,We),ht(e,"blur"))},Pt=function(e){var t=e.target.value;qe!==t&&(Ge(t),rt(!1),de&&de(e,t,"input")),""===t?D||ce||mt(e,null,"clear"):gt(e)},Ct=function(e){var t=Number(e.currentTarget.getAttribute("data-option-index"));Ee.current!==t&&pt({event:e,index:t,reason:"mouse"})},kt=function(e){pt({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),bt.current=!0},wt=function(e){var t=Number(e.currentTarget.getAttribute("data-option-index"));xt(e,lt[t],"selectOption"),bt.current=!1},Lt=function(e){return function(t){var n=We.slice();n.splice(e,1),mt(t,n,"removeOption",{option:We[e]})}},At=function(e){$e?ht(e,"toggleInput"):gt(e)},Tt=function(e){e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==Ie&&e.preventDefault()},Rt=function(e){e.currentTarget.contains(e.target)&&(Ce.current.focus(),ye&&Pe.current&&Ce.current.selectionEnd-Ce.current.selectionStart===0&&Ce.current.select(),Pe.current=!1)},Nt=function(e){""!==qe&&$e||At(e)},Mt=_&&qe.length>0;Mt=Mt||(ce?We.length>0:null!==We);var Dt=lt;if(Y){new Map;Dt=lt.reduce((function(e,t,n){var o=Y(t);return e.length>0&&e[e.length-1].group===o?e[e.length-1].options.push(t):e.push({key:n,index:n,group:o,options:[t]}),e}),[])}return F&&_e&&St(),{getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,r.Z)({"aria-owns":ut?"".concat(Ie,"-listbox"):null},e,{onKeyDown:Ot(e),onMouseDown:Tt,onClick:Rt})},getInputLabelProps:function(){return{id:"".concat(Ie,"-label"),htmlFor:Ie}},getInputProps:function(){return{id:Ie,value:qe,onBlur:St,onFocus:It,onChange:Pt,onMouseDown:Nt,"aria-activedescendant":it?"":null,"aria-autocomplete":x?"both":"list","aria-controls":ut?"".concat(Ie,"-listbox"):void 0,"aria-expanded":ut,autoComplete:"off",ref:Ce,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:F}},getClearProps:function(){return{tabIndex:-1,onClick:yt}},getPopupIndicatorProps:function(){return{tabIndex:-1,onClick:At}},getTagProps:function(e){var t=e.index;return(0,r.Z)({key:t,"data-tag-index":t,tabIndex:-1},!xe&&{onDelete:Lt(t)})},getListboxProps:function(){return{role:"listbox",id:"".concat(Ie,"-listbox"),"aria-labelledby":"".concat(Ie,"-label"),ref:vt,onMouseDown:function(e){e.preventDefault()}}},getOptionProps:function(e){var n=e.index,o=e.option,r=(ce?We:[We]).some((function(e){return null!=e&&ie(o,e)})),a=!!J&&J(o);return{key:t(o),tabIndex:-1,role:"option",id:"".concat(Ie,"-option-").concat(n),onMouseMove:Ct,onClick:wt,onTouchStart:kt,"data-option-index":n,"aria-disabled":a,"aria-selected":r}},id:Ie,inputValue:qe,value:We,dirty:Mt,expanded:it&&Ae,popupOpen:it,focused:_e||-1!==Me,anchorEl:Ae,setAnchorEl:Te,focusedTag:Me,groupedOptions:Dt}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[5979],{75979:function(e,n,t){t.r(n),t.d(n,{default:function(){return Qe}});var r,s,a=t(71171),i=t(32723),o=t(34795),c=t(96234),l=t(5057),u=t(55898),d=t.n(u),p=t(33518),m=t(44919),f=t(39948),h=t(39075),x=t(28726),Z=t(17682),v=t(44846),j=t(24558),g=t(18067),y=t(18945),C=t(86229),b=t(58238),k=t(17425),S=t(14491),w=t(63406),P=t(82638),D=t(18901),N=t(33028),T=t(25842),I=t.n(T),z=t(13128),A=t(67680),F=t(26174),R=t(88092),W=t(78150),E=t(70461),_=t(99607),L=t.n(_),B=t(55372),q=t(11750),O=t(47020),M=t(88574),V=t(96266);function G(e){var n=e.teamDid,t=e.onCancel,r=e.onSuccess,s=e.onError,a=e.mode,u=e.item,d=(0,b.h6)().api,p=(0,l.useState)(!1),m=(0,c.Z)(p,2),f=m[0],Z=m[1],j=(0,l.useState)(""),g=(0,c.Z)(j,2),y=g[0],C=g[1],k=(0,h.PE)().t,w=(0,l.useState)(u.title||""),P=(0,c.Z)(w,2),D=P[0],N=P[1],T=(0,l.useState)(u.description||""),I=(0,c.Z)(T,2),A=I[0],F=I[1],R=function(){var e=(0,o.Z)((0,i.Z)().mark((function e(){var t,o,c,l;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=D.trim()){e.next=4;break}return C(k("team.passport.error.titleEmpty")),e.abrupt("return");case 4:if(!(t.length>64)){e.next=7;break}return C(k("team.passport.error.titleTooLong",{length:64})),e.abrupt("return");case 7:if(o=A.replace(/\n/g," ")){e.next=11;break}return C(k("team.passport.error.descriptionEmpty")),e.abrupt("return");case 11:if(c="create"===a?L()(t):u.name,C(null),Z(!0),e.prev=14,"create"!==a){e.next=20;break}return e.next=18,d.createRole({input:{teamDid:n,name:c,title:t,description:o}});case 18:e.next=22;break;case 20:return e.next=22,d.updateRole({input:{teamDid:n,role:{name:c,title:t,description:o}}});case 22:r(),e.next=30;break;case 25:e.prev=25,e.t0=e.catch(14),l=(0,S.Z)(e.t0),C(l),s(e.t0);case 30:return e.prev=30,Z(!1),e.finish(30);case 33:case"end":return e.stop()}}),e,null,[[14,25,30,33]])})));return function(){return e.apply(this,arguments)}}(),W=(0,V.jsxs)("div",{children:["update"===a&&(0,V.jsx)(q.Z,{component:"div",style:{paddingTop:24},children:(0,V.jsx)(O.Z,{label:"ID",autoComplete:"off",variant:"outlined",name:"url","data-cy":"mutate-role-input-name",fullWidth:!0,autoFocus:!0,value:u.name,disabled:!0})}),(0,V.jsx)(q.Z,{component:"div",style:{marginTop:24},children:(0,V.jsx)(O.Z,{label:k("common.title"),autoComplete:"off",variant:"outlined",name:"title","data-cy":"mutate-role-input-title",fullWidth:!0,autoFocus:!0,value:D,onChange:function(e){C(null),N(e.target.value)},disabled:"update"===a||f,helperText:k("team.passport.create.titleTip")})}),(0,V.jsx)(q.Z,{component:"div",style:{marginTop:24,marginBottom:24},children:(0,V.jsx)(O.Z,{label:k("common.description"),autoComplete:"off",variant:"outlined",name:"description","data-cy":"mutate-role-input-description",fullWidth:!0,autoFocus:!0,value:A,onChange:function(e){C(null),F(e.target.value)},disabled:f,multiline:!0,rows:3})})]});return(0,V.jsxs)(z.Z,{title:"create"===a?k("team.passport.create.title"):"",fullWidth:!0,open:!0,onClose:t,showCloseButton:!1,actions:(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(x.Z,{onClick:t,color:"inherit",children:k("common.cancel")}),(0,V.jsxs)(x.Z,{"data-cy":"mutate-role-confirm",onClick:R,color:"primary",disabled:f,variant:"contained",autoFocus:!0,children:[f&&(0,V.jsx)(v.Z,{size:16}),k("create"===a?"common.create":"common.update")]})]}),children:[(0,V.jsx)(B.Z,{component:"div",children:W}),!!y&&(0,V.jsx)(M.Z,{type:"error",variant:"icon",style:{width:"100%",margin:0},children:y})]})}function H(e){var n=e.onCancel,t=e.onSuccess,r=e.onDelete,s=e.roleName,a=e.hasPermission,u=(0,b.h6)().api,d=(0,k.DJ)(),p=d.roles,m=d.permissions,f=d.teamDid,Z=d.refresh,g=d.isNodeTeam,y=(0,h.PE)().t,w=(0,l.useState)([]),P=(0,c.Z)(w,2),D=P[0],T=P[1],_=(0,l.useState)(!1),L=(0,c.Z)(_,2),B=L[0],q=L[1],O=(0,l.useState)(null),M=(0,c.Z)(O,2),H=M[0],J=M[1],K=(0,l.useState)(!1),U=(0,c.Z)(K,2),X=U[0],$=U[1],ee=I()(p.find((function(e){return e.name===s}))),ne=(0,S.vd)(s),te=function(){var e=(0,o.Z)((0,i.Z)().mark((function e(n){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!X){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,$(!0),e.next=6,u.deleteRole({input:{teamDid:f,name:n}});case 6:r(),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),C.Z.error(e.t0.message);case 12:return e.prev=12,$(!1),J(null),e.finish(12);case 16:case"end":return e.stop()}}),e,null,[[2,9,12,16]])})));return function(n){return e.apply(this,arguments)}}(),re=function(){var e=(0,o.Z)((0,i.Z)().mark((function e(n,t){var r,s,a;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u.getPermissionsByRole({input:{teamDid:n,role:{name:t}}});case 2:r=e.sent,s=r.permissions||[],a=m.map((function(e){return(0,N.Z)((0,N.Z)({},e),{},{bind:s.some((function(n){return n.name===e.name}))})})),T(a);case 6:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),se=function(){var e=(0,o.Z)((0,i.Z)().mark((function e(){var n;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return $(!0),n=D.filter((function(e){return e.bind})).map((function(e){return e.name})),e.prev=2,e.next=5,u.updatePermissionsForRole({input:{teamDid:f,roleName:ee.name,grantNames:n}});case 5:C.Z.success(y("common.saveSuccess")),t(),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),C.Z.error((0,S.Z)(e.t0));case 12:return e.prev=12,$(!1),e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[2,9,12,15]])})));return function(){return e.apply(this,arguments)}}();(0,l.useEffect)((function(){f&&s&&re(f,s)}),[f,s]);var ae=g||!a,ie=null;return g&&(ie=(0,V.jsxs)("div",{className:"bind",children:[(0,V.jsx)("div",{className:"title",children:y("common.permission")}),(0,V.jsx)("div",{className:"list",children:D.filter((function(e){return!ae||e.bind})).map((function(e){return(0,V.jsx)("div",{className:"item",children:(0,V.jsx)(F.Z,{control:(0,V.jsx)(R.Z,{disabled:ae,checked:e.bind,onChange:function(){T((function(n){return n.map((function(n){return n.name===e.name&&(n.bind=!n.bind),n}))}))},name:e.name}),label:e.description})})}))})]})),(0,V.jsxs)(z.Z,{title:y("common.passport"),onClose:n,open:!0,fullWidth:!0,toolbar:a&&!ne&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(A.Z,{onClick:function(){return q(ee)},"data-cy":"edit-passport-".concat(ee.name),size:"large",children:(0,V.jsx)(j.Z,{fill:"#bfbfbf"})}),(0,V.jsx)(A.Z,{onClick:function(){return J({title:y("team.passport.delete.title"),description:y("team.passport.delete.description",{name:ee.title}),confirm:y("common.delConfirm"),cancel:y("common.cancel"),onConfirm:function(){te(ee.name)},onCancel:function(){$(!1),J(null)}})},"data-cy":"delete-passport-".concat(ee.name),size:"large",children:(0,V.jsx)(W.Z,{"data-cy":"close-passport-dialog",fill:"#bfbfbf"})})]}),actions:g&&!ae&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(x.Z,{onClick:n,color:"inherit",children:y("common.cancel")}),(0,V.jsxs)(x.Z,{onClick:se,color:"primary",disabled:X||!ee,variant:"contained",autoFocus:!0,"data-cy":"bind-permission-btn-confirm",children:[X&&(0,V.jsx)(v.Z,{size:16}),y("common.save")]})]}),children:[(0,V.jsxs)(Y,{children:[!ee&&(0,V.jsx)(Q,{children:(0,V.jsx)(v.Z,{})}),ee&&(0,V.jsxs)("div",{className:"dialog-content",children:[(0,V.jsxs)("div",{className:"header",children:[(0,V.jsx)("div",{className:"title",children:ee.title}),(0,V.jsx)("div",{className:"description",style:{marginTop:g?16:48},children:ee.description})]}),ie]})]}),B&&(0,V.jsx)(G,{teamDid:f,onCancel:function(){return q(null)},onSuccess:function(){q(null),Z()},mode:"update",roleName:B.name,item:B}),H&&(0,V.jsx)(E.Z,{title:H.title,description:H.description,confirm:H.confirm,cancel:H.cancel,params:H.params,onConfirm:H.onConfirm,onCancel:H.onCancel})]})}G.propTypes={teamDid:d().string.isRequired,onCancel:d().func.isRequired,onSuccess:d().func.isRequired,onError:d().func,mode:d().oneOf(["create","update"]),item:d().object},G.defaultProps={onError:function(){},mode:"create",item:{}};var J=(0,w.V)(H,"mutate_team"),K=(0,w.V)(H,"",S.Wf);function U(e){return(0,b.h6)().inService?(0,V.jsx)(K,(0,N.Z)({},e)):(0,V.jsx)(J,(0,N.Z)({},e))}H.propTypes={roleName:d().string.isRequired,onCancel:d().func.isRequired,onSuccess:d().func.isRequired,onDelete:d().func.isRequired,hasPermission:d().bool},H.defaultProps={hasPermission:!1};var Y=p.default.div(r||(r=(0,a.Z)(["\n .header {\n .title {\n font-weight: 400;\n font-size: 24px;\n line-height: 28px;\n color: #222222;\n }\n\n .description {\n margin-top: 16px;\n font-weight: 400;\n font-size: 16px;\n line-height: 19px;\n color: #999999;\n }\n }\n\n .bind {\n margin-top: 24px;\n .title {\n font-weight: 400;\n font-size: 16px;\n line-height: 19px;\n color: #666666;\n margin-bottom: 24px;\n }\n .item {\n margin-top: 24px;\n }\n\n .MuiFormControlLabel-label {\n font-weight: 400;\n font-size: 16px;\n line-height: 19px;\n color: #666;\n }\n\n .PrivateSwitchBase-root-45 {\n padding: 0;\n padding-right: 12px;\n }\n }\n"]))),Q=p.default.div(s||(s=(0,a.Z)(["\n flex: 1;\n display: flex;\n justify-content: center;\n align-items: center;\n height: 200px;\n"]))),X=t(67486),$=t(49777),ee=t.n($),ne=t(38242),te=t(76818),re=t(76811),se=t(29054);function ae(e){var n=e.onCancel,t=e.onSuccess,r=(0,b.h6)().api,s=(0,se.y0)().blocklet,a=(0,h.PE)().t,u=(0,l.useState)(!1),d=(0,c.Z)(u,2),p=d[0],m=d[1],Z=(s.environments.find((function(e){return"BLOCKLET_PASSPORT_COLOR"===e.key}))||{}).value||"auto",j="auto"===Z?(0,te.getPassportColorFromDid)(s.appDid):Z,g=(0,l.useState)(j),y=(0,c.Z)(g,2),k=y[0],S=y[1],w=function(){var e=(0,o.Z)((0,i.Z)().mark((function e(){var n;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=[{key:re.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_PASSPORT_COLOR,value:k}],e.prev=1,m(!0),e.next=5,r.configBlocklet({input:{did:s.meta.did,configs:n}});case 5:t(),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),C.Z.error(e.t0.message);case 11:return e.prev=11,m(!1),e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[1,8,11,14]])})));return function(){return e.apply(this,arguments)}}();return(0,V.jsx)(z.Z,{title:a("team.passport.color"),onClose:n,open:!0,fullWidth:!0,actions:(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(x.Z,{onClick:n,color:"inherit",children:a("common.cancel")}),(0,V.jsxs)(x.Z,{onClick:w,color:"primary",disabled:p,variant:"contained",autoFocus:!0,"data-cy":"color-btn-confirm",children:[p&&(0,V.jsx)(v.Z,{size:16}),a("common.save")]})]}),children:(0,V.jsxs)(f.Z,{display:"flex",justifyContent:"center",alignItems:"center",className:"dialog-content",children:[(0,V.jsx)(X.AI,{color:k,onChange:function(e){return S(e.hex)}}),(0,V.jsx)("img",{style:{width:96,marginLeft:48},alt:"",src:ee()({title:"Owner",issuer:(0,ne.getDisplayName)(s),issuerDid:s.appDid,ownerName:"Your Name",ownerDid:s.appDid,isDataUrl:!0,preferredColor:k})})]})})}var ie=(0,w.V)(ae,"mutate_team"),oe=(0,w.V)(ae,"",S.Wf);function ce(e){return(0,b.h6)().inService?(0,V.jsx)(oe,(0,N.Z)({},e)):(0,V.jsx)(ie,(0,N.Z)({},e))}ae.propTypes={onCancel:d().func.isRequired,onSuccess:d().func.isRequired},ae.defaultProps={};var le,ue=t(68079),de=t(25710),pe=t(92816),me=t(76007),fe=t(74490),he=t(35432),xe=function(e){return(0,V.jsx)("svg",(0,N.Z)((0,N.Z)({},e),{},{children:(0,V.jsx)("path",{d:"M64.707 8.707a1 1 0 0 0 0-1.414L58.343.929a1 1 0 1 0-1.414 1.414L62.586 8l-5.657 5.657a1 1 0 0 0 1.414 1.414l6.364-6.364zM0 9h64V7H0v2z",fill:"#666"})}))};xe.defaultProps={width:"65",height:"16",viewBox:"0 0 65 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var Ze=function(e,n){return!!e&&!n.some((function(e){return!e.from.passport||!e.to.role}))};function ve(e){var n=e.onCancel,t=e.onSuccess,r=e.data,s=e.trustedPassports,a=(0,b.h6)().api,u=(0,k.DJ)(),d=u.roles,p=u.teamDid,m=(0,h.PE)().t,Z=(0,l.useState)(!1),j=(0,c.Z)(Z,2),g=j[0],y=j[1],w=(0,l.useState)(r.issuerDid||""),P=(0,c.Z)(w,2),D=P[0],N=P[1],T=(0,l.useState)(r.remark||""),F=(0,c.Z)(T,2),R=F[0],E=F[1],_=(0,l.useState)(I()(r.mappings)||[]),L=(0,c.Z)(_,2),B=L[0],q=L[1],M=s.findIndex((function(e){return e.issuerDid===r.issuerDid})),G=function(){var e=(0,o.Z)((0,i.Z)().mark((function e(){var n,r;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!g){e.next=2;break}return e.abrupt("return");case 2:return n={issuerDid:D,remark:R,mappings:B},r=(0,ue.Z)(s),-1===M?r.unshift(n):r[M]=n,e.prev=5,y(!0),e.next=9,a.configTrustedPassports({input:{teamDid:p,trustedPassports:r}});case 9:return e.next=11,(0,S._v)(800);case 11:y(!1),C.Z.success(m("common.saveSuccess")),t(),e.next=20;break;case 16:e.prev=16,e.t0=e.catch(5),y(!1),C.Z.error((0,S.Z)(e.t0));case 20:case"end":return e.stop()}}),e,null,[[5,16]])})));return function(){return e.apply(this,arguments)}}();return(0,V.jsx)(z.Z,{title:m("team.passport.trustedIssuers"),open:!0,showCloseButton:!1,PaperProps:{style:{minHeight:"80vh"}},fullWidth:!0,prepend:(0,V.jsx)(A.Z,{onClick:n,"data-cy":"trusted-issuer-close",size:"large",children:(0,V.jsx)(me.Z,{})}),actions:(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(x.Z,{onClick:n,color:"inherit",children:m("common.cancel")}),(0,V.jsxs)(x.Z,{onClick:function(){return G()},color:"primary",disabled:!Ze(D,B)||!R||g,variant:"contained",autoFocus:!0,"data-cy":"save-mapping",children:[g&&(0,V.jsx)(v.Z,{size:16}),m("common.save")]})]}),children:(0,V.jsx)(ge,{children:(0,V.jsxs)("div",{className:"dialog-content",children:[(0,V.jsx)(O.Z,{fullWidth:!0,"data-cy":"input-issuer-did",placeholder:m("team.passport.issuerDid"),value:D,onChange:function(e){N(e.target.value)}}),(0,V.jsx)(O.Z,{style:{marginTop:16},fullWidth:!0,"data-cy":"input-issuer-remark",placeholder:m("common.remark"),value:R,onChange:function(e){E(e.target.value)}}),(0,V.jsxs)(f.Z,{mt:"30px",display:"flex",justifyContent:"space-between",alignItems:"center",children:[(0,V.jsx)(f.Z,{className:"dialog-h1",children:m("team.passport.mappingRule")}),(0,V.jsx)(f.Z,{children:(0,V.jsx)(x.Z,{variant:"outlined",color:"primary","data-cy":"add-mapping",onClick:function(){q((function(e){var n=(0,ue.Z)(e);return n.unshift({from:{passport:""},to:{role:he.ROLES.GUEST}}),n}))},children:m("team.add")})})]}),(0,V.jsxs)(f.Z,{className:"list",mt:-.5,children:[B.map((function(e,n){return(0,V.jsxs)(f.Z,{display:"flex",alignItems:"center",justifyContent:"space-between",my:3,children:[(0,V.jsxs)(f.Z,{display:"flex",alignItems:"center",flexGrow:1,children:[(0,V.jsx)(f.Z,{flexGrow:1,flexBasis:1,children:(0,V.jsx)(O.Z,{fullWidth:!0,size:"small","data-cy":"input-".concat(n,"-from"),placeholder:"Issuer\u2019s Passport Name/ID",value:e.from.passport,onChange:function(e){var t=e.target.value;q((function(e){var r=(0,ue.Z)(e);return r[n].from.passport=t,r}))}})}),(0,V.jsx)(f.Z,{flexShrink:0,mx:4,children:(0,V.jsx)(xe,{})}),(0,V.jsx)(f.Z,{flexGrow:1,flexBasis:1,children:(0,V.jsx)(O.Z,{fullWidth:!0,size:"small",select:!0,value:e.to.role,onChange:function(e){q((function(t){var r=(0,ue.Z)(t);return r[n].to.role=e.target.value,r}))},variant:"outlined",children:d.filter((function(e){return"owner"!==e.name})).map((function(e){return(0,V.jsx)(fe.Z,{value:e.name,"data-cy":"passport-mapping-select-option-".concat(e.name),children:(0,V.jsx)("span",{children:e.title||e.name})},e.name)}))})})]}),(0,V.jsx)(f.Z,{flexShrink:0,ml:4,children:(0,V.jsx)(A.Z,{onClick:function(){q((function(e){var t=(0,ue.Z)(e);return t.splice(n,1),t}))},size:"large",children:(0,V.jsx)(W.Z,{})})})]},"mapping-".concat(n))})),!B.length&&(0,V.jsx)(f.Z,{my:2,color:"text.secondary",fontSize:"16px",children:(0,V.jsx)(de.Z,{children:m("common.empty")})})]})]})})})}ve.propTypes={onCancel:d().func.isRequired,onSuccess:d().func.isRequired,trustedPassports:d().array,data:d().object},ve.defaultProps={data:{},trustedPassports:[]};var je,ge=p.default.div(le||(le=(0,a.Z)(["\n .dialog-h1 {\n font-size: 18px;\n }\n\n .list {\n .MuiIconButton-root {\n svg {\n fill: #bfbfbf;\n }\n }\n }\n"])));function ye(e){var n=e.onCancel,t=e.hasPermission,r=(0,b.h6)().api,s=(0,k.DJ)(),a=s.teamDid,u=s.trustedPassports,d=(0,h.PE)().t,p=(0,l.useState)(null),Z=(0,c.Z)(p,2),v=Z[0],g=Z[1],y=(0,l.useState)(!1),w=(0,c.Z)(y,2),N=w[0],T=w[1],F=(0,l.useState)(!1),R=(0,c.Z)(F,2),_=R[0],L=R[1],B=(0,l.useState)(""),q=(0,c.Z)(B,2),O=q[0],M=q[1],G=function(){var e=(0,o.Z)((0,i.Z)().mark((function e(n){var t,s;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!N){e.next=2;break}return e.abrupt("return");case 2:return-1===(t=u.findIndex((function(e){return e.issuerDid===n})))&&C.Z.error("Cannot find passports"),(s=(0,ue.Z)(u)).splice(t,1),e.prev=6,T(!0),e.next=10,r.configTrustedPassports({input:{teamDid:a,trustedPassports:s}});case 10:return e.next=12,(0,S._v)(800);case 12:T(!1),C.Z.success(d("common.saveSuccess")),g(!1),e.next=21;break;case 17:e.prev=17,e.t0=e.catch(6),T(!1),C.Z.error(e.t0.message);case 21:case"end":return e.stop()}}),e,null,[[6,17]])})));return function(n){return e.apply(this,arguments)}}(),H=u.filter((function(e){return!O||e.issuerDid.toLowerCase().includes(O.toLowerCase())}));return(0,V.jsxs)(z.Z,{title:d("team.passport.trustedIssuers"),open:!0,onClose:n,fullWidth:!0,PaperProps:{style:{minHeight:"80vh"}},children:[(0,V.jsx)(we,{children:(0,V.jsxs)("div",{className:"dialog-content",children:[(0,V.jsx)("div",{className:"dialog-h1",children:d("team.passport.trustedPassportIssuers")}),(0,V.jsxs)(f.Z,{component:D.Z,mt:3,children:[(0,V.jsx)("div",{className:"left",children:(0,V.jsx)(P.Z,{placeholder:d("team.passport.searchIssuerDid"),value:O,onChange:function(e){return M(e.target.value)}})}),(0,V.jsx)("div",{className:"right",children:t&&(0,V.jsxs)(x.Z,{variant:"contained",color:"primary","data-cy":"add-trusted-issuer",onClick:function(){return L({mode:"add"})},children:[(0,V.jsx)(m.Z,{style:{fontSize:16,marginRight:4}}),d("team.add")]})})]}),(0,V.jsxs)("div",{className:"list",children:[H.map((function(e){return(0,V.jsxs)(f.Z,{display:"flex",alignItems:"center",justifyContent:"space-between",mt:"20px",children:[(0,V.jsxs)(f.Z,{flexShrink:0,children:[(0,V.jsx)(pe.Z,{copyable:!1,size:16,did:e.issuerDid,showDidLogo:!1}),!!e.remark&&(0,V.jsx)(f.Z,{pl:3.5,fontSize:12,maxWidth:"300px",children:e.remark})]}),(0,V.jsx)(f.Z,{color:"gray",ml:"28px",flexGrow:1,children:e.mappings&&e.mappings.length?"".concat(e.mappings.length," ").concat(d("team.passport.mappingRule")):d("team.passport.defaultRule")}),(0,V.jsxs)(f.Z,{flexShrink:0,display:"flex",alignItems:"center",children:[(0,V.jsx)(A.Z,{onClick:function(){return L({mode:"update",data:I()(e)})},"data-cy":"edit-mapping-rule",size:"large",children:(0,V.jsx)(j.Z,{})}),(0,V.jsx)(A.Z,{"data-cy":"delete-mapping-rule",onClick:function(){return g({title:d("common.delete"),description:d("common.delConfirmDescription",{data:e.issuerDid}),confirm:d("common.delConfirm"),cancel:d("common.cancel"),onConfirm:function(){return G(e.issuerDid)},onCancel:function(){T(!1),g(null)}})},size:"large",children:(0,V.jsx)(W.Z,{})})]})]},e.issuerDid)})),!u.length&&(0,V.jsx)(de.Z,{children:d("common.empty")})]})]})}),_&&(0,V.jsx)(ve,{mode:_.mode,data:_.data,trustedPassports:I()(u),onCancel:function(){return L(null)},onSuccess:function(){L(null)}}),v&&(0,V.jsx)(E.Z,{title:v.title,description:v.description,confirm:v.confirm,cancel:v.cancel,params:v.params,onConfirm:v.onConfirm,onCancel:v.onCancel})]})}ye.propTypes={onCancel:d().func.isRequired,hasPermission:d().bool},ye.defaultProps={hasPermission:!1};var Ce=(0,w.V)(ye,"mutate_team"),be=(0,w.V)(ye,"",S.Wf);function ke(e){return(0,b.h6)().inService?(0,V.jsx)(be,(0,N.Z)({},e)):(0,V.jsx)(Ce,(0,N.Z)({},e))}var Se,we=p.default.div(je||(je=(0,a.Z)(["\n .list {\n .MuiIconButton-root {\n svg {\n fill: #bfbfbf;\n }\n }\n }\n"]))),Pe=t(19778),De=t(67313),Ne=t.n(De),Te=t(61111),Ie=t(75239),ze=t(6041),Ae=t(12594),Fe=t(90067),Re=t(53070),We=t(27684),Ee=t(14307),_e=t(31853),Le=t(24411),Be=t.n(Le),qe={};function Oe(e){var n,t,r,s=e.onCancel,a=e.onSuccess,u=e.data,d=e.trustedFactories,p=(0,b.h6)().api,m=(0,k.DJ)(),f=m.roles,Z=m.teamDid,j=(0,h.PE)().t,g=(0,_e.Z)({loading:!1,fetching:!1,fetched:[],errored:[],factoryAddress:u.factoryAddress||"",remark:u.remark||"",role:(null===(n=u.passport)||void 0===n?void 0:n.role)||"member",ttlPolicy:(null===(t=u.passport)||void 0===t?void 0:t.ttlPolicy)||"never",ttl:Ne()(+(null===(r=u.passport)||void 0===r?void 0:r.ttl)||31536e6),error:""}),y=(0,c.Z)(g,2),w=y[0],P=y[1],D=d.findIndex((function(e){return e.factoryAddress===u.factoryAddress})),N=function(){var e=(0,o.Z)((0,i.Z)().mark((function e(){var n,t,r,s,o,c,l;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!w.loading){e.next=2;break}return e.abrupt("return");case 2:return n=w.factoryAddress,t=w.remark,r=w.role,s=w.ttlPolicy,o=w.ttl,c={factoryAddress:n,remark:t,passport:{role:r,ttlPolicy:s,ttl:"never"===s?0:Ne()(o)}},l=(0,ue.Z)(d),-1===D?l.unshift(c):l[D]=c,e.prev=6,P({loading:!0}),e.next=10,p.configTrustedFactories({input:{teamDid:Z,trustedFactories:l}});case 10:return e.next=12,(0,S._v)(800);case 12:C.Z.success(j("common.saveSuccess")),a(),e.next=20;break;case 16:e.prev=16,e.t0=e.catch(6),console.error(e.t0),C.Z.error((0,S.Z)(e.t0));case 20:return e.prev=20,P({loading:!1}),e.finish(20);case 23:case"end":return e.stop()}}),e,null,[[6,16,20,23]])})));return function(){return e.apply(this,arguments)}}();(0,l.useEffect)((function(){var e=w.fetched.find((function(e){return e.address===w.factoryAddress})),n=w.errored.find((function(e){return e.address===w.factoryAddress}));!(0,Te.isValid)(w.factoryAddress)||w.fetching||e||n||(P({fetching:!0}),function(e){if(!e)return null;if(qe[e])return qe[e];var n=new(Be())(e);return qe[e]=n,n}(he.MAIN_CHAIN_ENDPOINT).getFactoryState({address:w.factoryAddress}).then((function(e){e.state?P({fetching:!1,fetched:[].concat((0,ue.Z)(w.fetched.filter((function(e){return e.address!==w.factoryAddress}))),[e.state]),remark:e.state.name}):P({fetching:!1,errored:[].concat((0,ue.Z)(w.errored.filter((function(e){return e.address!==w.factoryAddress}))),[{address:w.factoryAddress}]),error:j("team.passport.factory404",w)})})).catch((function(e){console.error(e),P({fetching:!1,error:(0,S.Z)(e)})})))}),[w.factoryAddress,w.fetching]);var T=w.error,I=w.factoryAddress?w.errored.find((function(e){return e.address===w.factoryAddress})):null;!T&&I&&(T=j("team.passport.factory404",w));var F=w.factoryAddress?w.fetched.find((function(e){return e.address===w.factoryAddress})):null;return!T&&F&&(T=F.description),T||(T=j("team.passport.factoryAddressTip")),(0,V.jsx)(z.Z,{title:j("team.passport.trustedFactories"),open:!0,showCloseButton:!1,PaperProps:{style:{minHeight:"80vh"}},fullWidth:!0,prepend:(0,V.jsx)(A.Z,{onClick:s,"data-cy":"close-trusted-factory",size:"large",children:(0,V.jsx)(me.Z,{})}),actions:(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(x.Z,{onClick:s,color:"inherit",children:j("common.cancel")}),(0,V.jsxs)(x.Z,{onClick:function(){return N()},color:"primary",disabled:!w.factoryAddress||!w.remark||!w.role||w.loading||w.error||I,variant:"contained",autoFocus:!0,"data-cy":"save-trusted-factory",children:[w.loading&&(0,V.jsx)(v.Z,{size:16}),j("common.save")]})]}),children:(0,V.jsx)(Ve,{children:(0,V.jsxs)("div",{className:"dialog-content",children:[(0,V.jsx)(O.Z,{fullWidth:!0,error:!!w.error||!!I,"data-cy":"input-factory-address",label:j("team.passport.factoryAddress"),helperText:T,value:w.factoryAddress,InputProps:{endAdornment:w.fetching?(0,V.jsx)(Re.Z,{position:"end",children:(0,V.jsx)(v.Z,{size:16})}):null},onChange:function(e){P({factoryAddress:e.target.value,error:""})}}),(0,V.jsx)(O.Z,{style:{marginTop:32},fullWidth:!0,"data-cy":"input-factory-remark",label:j("common.remark"),value:w.remark,onChange:function(e){P({remark:e.target.value})}}),(0,V.jsx)(O.Z,{style:{marginTop:32},fullWidth:!0,"data-cy":"input-passport-role",label:j("team.passport.role"),select:!0,value:w.role,onChange:function(e){P({role:e.target.value})},variant:"outlined",children:f.filter((function(e){return"owner"!==e.name})).map((function(e){return(0,V.jsx)(fe.Z,{value:e.name,"data-cy":"passport-role-select-option-".concat(e.name),children:(0,V.jsx)("span",{children:e.title||e.name})},e.name)}))}),(0,V.jsxs)("div",{style:{marginTop:32},children:[(0,V.jsx)(ze.Z,{children:j("team.passport.ttl")}),(0,V.jsxs)(Ee.Z,{color:"primary",size:"small",value:w.ttlPolicy,exclusive:!0,style:{marginTop:16},onChange:function(e,n){return P({ttlPolicy:n})},"data-cy":"input-passport-ttl-since","aria-label":"Expire Policy",children:[(0,V.jsx)(We.Z,{value:"never","data-cy":"input-passport-ttl-never",children:(0,V.jsx)(Ie.Z,{title:j("team.passport.ttlNeverTip"),children:(0,V.jsx)(q.Z,{children:j("team.passport.ttlNever")})})}),(0,V.jsx)(We.Z,{value:"mint","data-cy":"input-passport-ttl-mint",children:(0,V.jsx)(Ie.Z,{title:j("team.passport.ttlMintTip"),children:(0,V.jsx)(q.Z,{children:j("team.passport.ttlMint")})})}),(0,V.jsx)(We.Z,{value:"exchange","data-cy":"input-passport-ttl-exchange",children:(0,V.jsx)(Ie.Z,{title:j("team.passport.ttlExchangeTip"),children:(0,V.jsx)(q.Z,{children:j("team.passport.ttlExchange")})})})]}),"never"!==w.ttlPolicy&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Ae.Z,{fullWidth:!0,type:"text",style:{marginTop:16},"data-cy":"input-passport-ttl",value:w.ttl,onChange:function(e){P({ttl:e.target.value})}}),(0,V.jsx)(Fe.Z,{children:j("team.passport.ttlTip")})]})]})]})})})}Oe.propTypes={onCancel:d().func.isRequired,onSuccess:d().func.isRequired,trustedFactories:d().array,data:d().object},Oe.defaultProps={data:{},trustedFactories:[]};var Me,Ve=p.default.div(Se||(Se=(0,a.Z)(["\n .dialog-h1 {\n font-size: 18px;\n }\n\n .list {\n .MuiIconButton-root {\n svg {\n fill: #bfbfbf;\n }\n }\n }\n"])));function Ge(e){var n=e.onCancel,t=e.hasPermission,r=(0,b.h6)().api,s=(0,k.DJ)(),a=s.teamDid,u=s.trustedFactories,d=(0,h.PE)().t,p=(0,l.useState)(null),Z=(0,c.Z)(p,2),v=Z[0],g=Z[1],y=(0,l.useState)(!1),w=(0,c.Z)(y,2),N=w[0],T=w[1],F=(0,l.useState)(null),R=(0,c.Z)(F,2),_=R[0],L=R[1],B=(0,l.useState)(""),q=(0,c.Z)(B,2),O=q[0],M=q[1],G=function(){var e=(0,o.Z)((0,i.Z)().mark((function e(n){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!N){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,T(!0),e.next=6,r.configTrustedFactories({input:{teamDid:a,trustedFactories:u.filter((function(e){return e.factoryAddress!==n}))}});case 6:return e.next=8,(0,S._v)(800);case 8:T(!1),C.Z.success(d("common.saveSuccess")),g(null),e.next=17;break;case 13:e.prev=13,e.t0=e.catch(2),T(!1),C.Z.error(e.t0.message);case 17:case"end":return e.stop()}}),e,null,[[2,13]])})));return function(n){return e.apply(this,arguments)}}(),H=u.filter((function(e){return!O||e.factoryAddress.toLowerCase().includes(O.toLowerCase())}));return(0,V.jsxs)(z.Z,{title:d("team.passport.trustedFactories"),open:!0,onClose:n,fullWidth:!0,PaperProps:{style:{minHeight:"80vh"}},children:[(0,V.jsx)(Ye,{children:(0,V.jsxs)("div",{className:"dialog-content",children:[(0,V.jsx)("div",{className:"dialog-h1",children:d("team.passport.trustedFactoriesTip")}),(0,V.jsxs)(f.Z,{component:D.Z,mt:3,children:[(0,V.jsx)("div",{className:"left",children:(0,V.jsx)(P.Z,{placeholder:d("team.passport.searchFactoryAddress"),value:O,onChange:function(e){return M(e.target.value)}})}),(0,V.jsx)("div",{className:"right",children:t&&(0,V.jsxs)(x.Z,{variant:"contained",color:"primary",size:"small","data-cy":"add-trusted-factory",onClick:function(){return L({mode:"add"})},children:[(0,V.jsx)(m.Z,{style:{fontSize:16,marginRight:4}}),d("team.add")]})})]}),(0,V.jsxs)("div",{className:"list",children:[H.map((function(e){return(0,V.jsxs)(f.Z,{display:"flex",alignItems:"center",justifyContent:"space-between",mt:"20px",children:[(0,V.jsxs)(f.Z,{flexGrow:1,children:[(0,V.jsx)(pe.Z,{copyable:!1,did:e.factoryAddress,size:16,showDidLogo:!1}),!!e.remark&&(0,V.jsx)(f.Z,{fontSize:12,maxWidth:"300px",children:e.remark})]}),(0,V.jsx)(f.Z,{color:"gray",mr:"24px",children:(0,V.jsx)(Pe.Z,{type:"success",children:e.passport.role})}),(0,V.jsxs)(f.Z,{flexShrink:0,display:"flex",alignItems:"center",children:[(0,V.jsx)(A.Z,{onClick:function(){return L({mode:"update",data:I()(e)})},"data-cy":"edit-trusted-factory",size:"large",children:(0,V.jsx)(j.Z,{})}),(0,V.jsx)(A.Z,{"data-cy":"delete-trusted-factory",onClick:function(){return g({title:d("common.delete"),description:d("common.delConfirmDescription",{data:e.factoryAddress}),confirm:d("common.delConfirm"),cancel:d("common.cancel"),onConfirm:function(){return G(e.factoryAddress)},onCancel:function(){T(!1),g(null)}})},size:"large",children:(0,V.jsx)(W.Z,{})})]})]},e.factoryAddress)})),!u.length&&(0,V.jsx)(de.Z,{children:d("common.empty")})]})]})}),_&&(0,V.jsx)(Oe,{data:_.data,trustedFactories:I()(u),onCancel:function(){return L(null)},onSuccess:function(){L(null)}}),v&&(0,V.jsx)(E.Z,{title:v.title,description:v.description,confirm:v.confirm,cancel:v.cancel,params:v.params,onConfirm:v.onConfirm,onCancel:v.onCancel})]})}Ge.propTypes={onCancel:d().func.isRequired,hasPermission:d().bool},Ge.defaultProps={hasPermission:!1};var He=(0,w.V)(Ge,"mutate_team"),Je=(0,w.V)(Ge,"",S.Wf);function Ke(e){return(0,b.h6)().inService?(0,V.jsx)(Je,(0,N.Z)({},e)):(0,V.jsx)(He,(0,N.Z)({},e))}var Ue,Ye=p.default.div(Me||(Me=(0,a.Z)(["\n .list {\n .MuiIconButton-root {\n svg {\n fill: #bfbfbf;\n }\n }\n }\n"])));function Qe(e){var n=e.createPassportSvg,t=(0,l.useContext)(h.RD).t,r=(0,b.h6)(),s=r.api,a=r.inService,u=(0,k.DJ)(),d=u.roles,p=u.teamDid,N=u.teamIssuerDid,T=u.teamName,I=u.refresh,z=u.enablePassportIssuance,A=u.passportColor,F=u.isNodeTeam,R=(0,l.useState)(!1),W=(0,c.Z)(R,2),E=W[0],_=W[1],L=(0,l.useState)(!1),B=(0,c.Z)(L,2),q=B[0],O=B[1],M=(0,l.useState)(!1),H=(0,c.Z)(M,2),J=H[0],K=H[1],Y=(0,l.useState)(!1),Q=(0,c.Z)(Y,2),X=Q[0],$=Q[1],ee=(0,l.useState)(!1),ne=(0,c.Z)(ee,2),te=ne[0],re=ne[1],se=(0,l.useState)(""),ae=(0,c.Z)(se,2),ie=ae[0],oe=ae[1],le=(0,l.useState)(!1),ue=(0,c.Z)(le,2),de=ue[0],pe=ue[1],me=function(){var e=(0,o.Z)((0,i.Z)().mark((function e(n){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.stopPropagation(),!de){e.next=3;break}return e.abrupt("return");case 3:return pe(!0),e.prev=4,e.next=7,s.configPassportIssuance({input:{teamDid:p,enable:!z}});case 7:return I(),e.next=10,(0,S._v)(800);case 10:C.Z.success(t("common.configSuccess")),pe(!1),e.next=18;break;case 14:e.prev=14,e.t0=e.catch(4),C.Z.error(e.t0.message),pe(!1);case 18:case"end":return e.stop()}}),e,null,[[4,14]])})));return function(n){return e.apply(this,arguments)}}(),fe=d.filter((function(e){return!ie||e.title.includes(ie)||e.name.includes(ie)}));return(0,V.jsxs)(Xe,{children:[(0,V.jsxs)(D.Z,{children:[(0,V.jsx)("div",{className:"left",children:(0,V.jsx)(P.Z,{placeholder:t("team.passport.search"),value:ie,onChange:function(e){return oe(e.target.value)}})}),(0,V.jsx)("div",{className:"right",children:(0,V.jsxs)(w.Z,{permission:a?"":"mutate_team",role:a?S.Wf:[],children:[(0,V.jsx)(Z.Z,{variant:"outlined",menuButtonProps:{"data-cy":"trusted-issuers-more"},menu:(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Z.Z.Item,{onClick:function(){return re(!0)},"data-cy":"config-show-trusted-factories",children:(0,V.jsxs)(f.Z,{children:[t("team.passport.configFactories"),(0,V.jsx)(f.Z,{fontSize:12,color:"#888",children:t("team.passport.configFactoriesTip")})]})}),(0,V.jsx)(Z.Z.Item,{"data-cy":"config-show-issue-passport",onClick:me,children:(0,V.jsxs)(f.Z,{display:"flex",alignItems:"center",children:[de&&(0,V.jsx)(v.Z,{size:16,style:{marginRight:8}}),(0,V.jsxs)(f.Z,{children:[t(z?"team.passport.disableIssuance":"team.passport.enableIssuance"),(0,V.jsx)(f.Z,{fontSize:12,color:"#888",children:t(z?"team.passport.disableIssuanceTip":"team.passport.enableIssuanceTip")})]})]})}),!F&&(0,V.jsx)(Z.Z.Item,{onClick:function(){return K(!0)},"data-cy":"config-passport-color",children:(0,V.jsxs)(f.Z,{children:[t("team.passport.configColor"),(0,V.jsx)(f.Z,{fontSize:12,color:"#888",children:t("team.passport.configColorTip")})]})})]}),children:function(){return(0,V.jsxs)(x.Z,{variant:"outlined","data-cy":"config-trusted-issuers",onClick:function(){$(!0)},children:[(0,V.jsx)(y.Z,{style:{fontSize:16,marginRight:4}}),t("team.passport.trustedPassportIssuers")]})}}),!F&&(0,V.jsxs)(x.Z,{style:{marginLeft:16},variant:"contained",edge:"end",color:"primary","data-cy":"create-role",onClick:function(){return _(!0)},children:[(0,V.jsx)(m.Z,{style:{fontSize:16,marginRight:4}}),t("team.add")]})]})})]}),(0,V.jsx)(f.Z,{mt:3}),(0,V.jsx)(f.Z,{className:"list",children:fe.map((function(e){return(0,V.jsxs)(f.Z,{"data-cy":"passport-".concat(e.name),className:"item",display:"flex",alignItems:"center",onClick:function(){return O(e)},children:[(0,V.jsxs)(f.Z,{display:"flex",alignItems:"center",children:[(0,V.jsx)("div",{style:{width:150},dangerouslySetInnerHTML:{__html:n({title:e.title,issuer:T,issuerDid:N,ownerName:"Your Name",ownerDid:N,preferredColor:A,width:"150px"})}}),(0,V.jsx)(f.Z,{ml:3,className:"title",children:e.title})]}),(0,V.jsx)(f.Z,{className:"description",children:e.description}),(0,V.jsx)(w.Z,{permission:a?"":"mutate_team",role:a?S.Wf:[],children:(0,V.jsx)("div",{className:"action",children:(0,S.vd)(e.name)?(0,V.jsx)(g.Z,{}):(0,V.jsx)(j.Z,{})})})]},e.name)}))}),E&&(0,V.jsx)(G,{teamDid:p,onCancel:function(){return _(!1)},onSuccess:function(){_(!1),I()}}),q&&(0,V.jsx)(U,{onCancel:function(){return O(!1)},onSuccess:function(){O(!1),I()},onDelete:function(){O(!1),I()},mode:"update",roleName:q.name,item:q}),X&&(0,V.jsx)(ke,{onCancel:function(){return $(!1)}}),te&&(0,V.jsx)(Ke,{onCancel:function(){return re(!1)}}),J&&(0,V.jsx)(ce,{onCancel:function(){return K(!1)},onSuccess:function(){return K(!1)}})]})}var Xe=p.default.div(Ue||(Ue=(0,a.Z)(["\n .list {\n .item {\n padding: 12px;\n margin: 12px -12px;\n cursor: pointer;\n transition: box-shadow 0.4s;\n &:hover {\n box-shadow: 0 0 10px 4px rgba(0, 0, 0, 0.1);\n }\n }\n\n .title {\n font-weight: 400;\n font-size: 18px;\n width: 80px;\n line-height: 21px;\n color: #222222;\n }\n\n .description {\n flex: 1;\n margin-left: 64px;\n color: #999999;\n }\n\n .action {\n color: #bfbfbf;\n fill: #bfbfbf;\n }\n }\n"])));Qe.propTypes={createPassportSvg:d().func.isRequired},Qe.defaultProps={}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[6511],{86511:function(e,n,t){t.r(n),t.d(n,{default:function(){return ne}});var r=t(71171),i=t(5057),o=t(33518),l=t(85493),a=t(15849),c=t(39075),s=t(11750),u=t(39434),m=t(39948),d=t(10697),p=t(94464),f=t(88574),b=t(28726),v=t(44846),g=t(38242),h=t(81010),x=t(87363),k=(t(68534),t(86229)),y=t(1722),j=t(96234),Z=t(35432),P=t(43387),w=t(58238),D=t(29054),S=t(73545),_=t(14491),N=t(4651),z=t(96266),C=function(e){var n={},t=null;return(0,g.forEachBlockletSync)(e,(function(e){n[e.meta.bundleDid]?t=(0,g.getDisplayName)(e,!0):e.meta.bundleDid&&(n[e.meta.bundleDid]=!0)})),t},B=function(e,n,t){var r=e.hostname,i=e.href;if(!n)return i;if(t){var o,l=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(r);if(!l)return i;var a=l[0],c=(((null===(o=n.site)||void 0===o?void 0:o.domainAliases)||[]).map((function(e){return e.value})).filter(Boolean).find((function(e){return e.endsWith(Z.DEFAULT_DID_DOMAIN)}))||"").replace(".".concat(Z.DEFAULT_DID_DOMAIN),"");return c?i.replace(r,"".concat(c,"-").concat(a,".").concat(Z.DEFAULT_IP_DOMAIN_SUFFIX)):i}return i.replace(n.meta.bundleDid,n.appPid)};function I(){var e=(0,c.PE)().t,n=(0,S.T)().api,t=(0,D.y0)().blocklet,r=(0,w.h6)().inService,o=(0,i.useState)(!1),l=(0,j.Z)(o,2),a=l[0],s=l[1],u=(0,i.useState)(5),d=(0,j.Z)(u,2),p=d[0],v=d[1],h=t&&t.structVersion!==Z.APP_STRUCT_VERSION;return[h&&(0,z.jsxs)(f.Z,{type:"warning",style:{margin:"12px 0"},children:[(0,z.jsxs)(m.Z,{display:"flex",alignItems:"center",children:[(0,z.jsx)(b.Z,{variant:"contained",size:"small",color:"primary",onClick:function(){return function(){try{if("running"===t.status)return void k.Z.error(e("blocklet.migrate.tip.running"));var n=C(t);if(n)return void k.Z.error(e("blocklet.migrate.tip.duplicate",{name:n}));s(!0)}catch(r){k.Z.error((0,_.Z)(r))}}()},style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),(0,z.jsx)("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map((function(n){return(0,z.jsx)(m.Z,{display:"flex",alignItems:"center",children:e("blocklet.migrate.intro.".concat(n))},n)}))]},"alert"),t&&(0,z.jsx)(P.default,{popup:!0,open:a,saveConnect:!1,forceConnected:!1,action:"migrate-app-to-struct-v2",checkFn:n.get,checkTimeout:3e5,onSuccess:function(){var e=B(window.location,t,r);setTimeout((function(){window.location.href=e}),5e3),v(5),setInterval((function(){v((function(e){return e-1}))}),1e3)},extraParams:{appDid:t.appDid,did:t.meta.did,wt:(0,N.iK)(t,!0),title:(0,g.getDisplayName)(t)},messages:{title:e("blocklet.migrate.title"),scan:e("blocklet.migrate.scan"),confirm:e("blocklet.migrate.confirm"),success:p>=0?e("blocklet.migrate.success",{sec:p}):"Redirecting..."},onClose:function(){return s(!1)}},"connect")]}I.propTypes={};var E,L=t(78123),T=t(60411),A=t(17022),R=t(13671),U=t(74094),F=t(7199),M=(0,i.lazy)((function(){return t.e(5032).then(t.bind(t,65032))})),O=(0,i.lazy)((function(){return Promise.all([t.e(7718),t.e(7020),t.e(8537),t.e(105),t.e(9546),t.e(9429),t.e(6547),t.e(5760),t.e(2452),t.e(1520),t.e(8359),t.e(4168),t.e(9801)]).then(t.bind(t,71320))})),V=(0,i.lazy)((function(){return Promise.all([t.e(7718),t.e(7020),t.e(105),t.e(6547),t.e(5873),t.e(5953),t.e(2452),t.e(5498),t.e(4016),t.e(4775)]).then(t.bind(t,14775))})),G=(0,i.lazy)((function(){return Promise.all([t.e(7718),t.e(442),t.e(9662),t.e(7676),t.e(4620)]).then(t.bind(t,11146))})),K=(0,i.lazy)((function(){return Promise.all([t.e(7718),t.e(7020),t.e(1237),t.e(2305),t.e(5979),t.e(2537)]).then(t.bind(t,75979))})),W=(0,i.lazy)((function(){return Promise.all([t.e(7718),t.e(7020),t.e(8537),t.e(105),t.e(9546),t.e(9429),t.e(6547),t.e(5760),t.e(2657),t.e(6412),t.e(3216)]).then(t.bind(t,46412))})),X=(0,i.lazy)((function(){return Promise.all([t.e(7718),t.e(7020),t.e(8537),t.e(105),t.e(9546),t.e(9429),t.e(4901),t.e(1685),t.e(7903)]).then(t.bind(t,85555))})),$=(0,i.lazy)((function(){return Promise.all([t.e(7718),t.e(7020),t.e(8537),t.e(105),t.e(9546),t.e(9429),t.e(5873),t.e(4901),t.e(442),t.e(9366),t.e(1848),t.e(7604),t.e(1237),t.e(5953),t.e(7638),t.e(1685),t.e(4407),t.e(9244),t.e(5498),t.e(6287),t.e(4168),t.e(2264),t.e(25)]).then(t.bind(t,90025))})),q=(0,i.lazy)((function(){return Promise.all([t.e(7718),t.e(5873),t.e(9327),t.e(8219)]).then(t.bind(t,92379))})),H=(0,i.lazy)((function(){return Promise.all([t.e(7718),t.e(7020),t.e(8537),t.e(105),t.e(9546),t.e(9429),t.e(6547),t.e(5760),t.e(3890),t.e(7534)]).then(t.bind(t,87534))})),J=(0,i.lazy)((function(){return Promise.all([t.e(7718),t.e(7020),t.e(4901),t.e(3890),t.e(3876),t.e(2611)]).then(t.bind(t,42611))})),Q=(0,i.lazy)((function(){return Promise.all([t.e(7718),t.e(7020),t.e(8537),t.e(105),t.e(9546),t.e(9429),t.e(6547),t.e(5760),t.e(5873),t.e(9366),t.e(8592),t.e(5728)]).then(t.bind(t,45728))})),Y=function(e){return e.children};function ee(){var e,n=(0,l.useNavigate)(),t=(0,l.useParams)().tab,r=void 0===t?"overview":t,o=(0,R.y0)(),j=o.did,P=o.blocklet,w=o.error,D=o.client,S=o.actions,_=S.setBlocklet,N=S.refreshBlocklet,C=(0,T.h6)().refresh,B=(0,c.PE)().t,E=(0,i.useCallback)((function(){return(0,z.jsx)(G,{scope:j})}),[j]),ee=(null===P||void 0===P||null===(e=P.environments.find((function(e){return"BLOCKLET_APP_URL"===e.key})))||void 0===e?void 0:e.value)||window.location.origin,ne=function(e){return(0,U.bV)(e,ee)},re=function(e){n("/blocklets/".concat(j,"/").concat(e))},ie=!P||(0,U.wS)(P.status)?[]:(0,g.getAppMissingConfigs)(P),oe=null,le=[{label:B("common.overview"),value:"overview"},{breadcrumbsLabel:B("common.components"),label:(0,z.jsx)(d.Z,{color:"error",variant:"dot",invisible:!ie.length,children:B("common.components")}),value:"components"}];if(w)oe=(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(f.Z,{type:"error",variant:"icon",children:(0,U.Z)(w)}),(0,z.jsx)(b.Z,{onClick:function(){return N()},children:(0,z.jsx)("span",{style:{textDecoration:"underline"},children:B("common.retry")})})]});else if(P){var ae,ce={overview:(0,z.jsx)(M,{}),configuration:O,navigation:V,services:X,members:(0,z.jsx)(W,{type:"blocklet",createPassportSvg:ne}),passports:K,components:$,"audit-logs":E,logs:q,runtime:(0,z.jsx)(H,{}),traffic:(0,z.jsx)(J,{client:D,did:j}),storage:(0,z.jsx)(Q,{})};"configuration"===r&&(0,U.wS)(P.status)&&re("overview"),(0,U.wS)(P.status)||(le.push({label:B("common.members"),value:"members"}),le.push({label:B("common.passport"),value:"passports"}),le.push({label:B("common.configuration"),value:"configuration"})),le.push({label:B("common.auditLogs"),value:"audit-logs"}),P&&null!==(ae=P.children)&&void 0!==ae&&ae.length&&P.structVersion===Z.APP_STRUCT_VERSION&&le.push({label:B("common.logs"),value:"logs"}),le.push({label:B("common.configNavigation"),value:"navigation"}),le.push({label:B("common.runtime"),value:"runtime"}),le.push({label:B("common.traffic"),value:"traffic"}),le.push({label:B("common.storage"),value:"storage"}),(0,g.getBlockletServices)(P).length&&le.splice(2,0,{label:B("blocklet.services"),value:"services"});var se=ce[r]||ce.overview;oe=(0,z.jsxs)(x.g,{type:"components",children:[!(0,g.isExternalBlocklet)(P)&&(0,z.jsx)(p.Z,{tabs:le,current:r,onChange:re,scrollButtons:"auto"}),(0,z.jsx)("div",{className:"page-content",children:(0,z.jsx)(i.Suspense,{fallback:(0,z.jsx)(v.Z,{}),children:(0,i.isValidElement)(se)?se:(0,z.jsx)(se,{blocklet:P,onUpdate:function(e){e&&_(e),N()},createPassportSvg:ne})})})]})}else oe=(0,z.jsx)(v.Z,{});var ue=le.find((function(e){return e.value===r})),me=P?A.G6:Y;return(0,z.jsx)(me,{teamDid:j,children:(0,z.jsxs)(te,{children:[(0,z.jsxs)(u.Z,{separator:"\u203a","aria-label":"breadcrumb",className:"page-breadcrumb",children:[(0,z.jsx)(a.Link,{color:"textSecondary",to:"/blocklets",children:B("common.blocklets")}),(0,z.jsx)(a.NavLink,{to:"/blocklets/".concat(j,"/overview"),style:function(e){return e?{color:"inherit"}:{}},children:B("common.detail")}),(0,z.jsx)(s.Z,{color:"textSecondary",children:ue?ue.breadcrumbsLabel||ue.label:""})]}),(0,z.jsxs)(s.Z,{component:"div",className:"page-header",children:[(0,z.jsxs)(s.Z,{component:"h2",variant:"h4",className:"page-title",color:"textPrimary",children:[P?(0,z.jsx)(y.Z,{blocklet:P,style:{marginRight:16}}):null,P?(0,z.jsxs)(m.Z,{display:"flex",alignItems:"center",children:[(0,z.jsx)(m.Z,{children:(0,g.getDisplayName)(P)}),"unknown"!==(null===P||void 0===P?void 0:P.status)&&(0,z.jsx)(h.Z,{size:"12px",style:{marginLeft:8},status:P.status,source:P.source})]}):"".concat(B("common.blocklet")," ").concat(B("common.detail"))]}),(0,z.jsx)(F.Z,{permission:"mutate_blocklets",children:!!P&&!(0,g.isExternalBlocklet)(P)&&(0,z.jsx)(L.Z,{className:"page-actions",blocklet:P,onStart:function(){},onComplete:function(e){var t=e.action,r=e.error;r?k.Z.error(r.message):"remove"===t?(C(),n("/blocklets")):N()},variant:"group"})})]}),(0,z.jsx)(I,{}),oe]})})}function ne(){var e=(0,l.useParams)().did;return e?(0,z.jsx)(R.$8,{did:e,children:(0,z.jsx)(ee,{})}):null}var te=o.default.main(E||(E=(0,r.Z)(["\n .page-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n\n .page-title {\n display: flex;\n align-items: center;\n\n .page-link {\n font-size: 15px;\n margin-top: 8px;\n margin-left: 8px;\n }\n }\n\n .page-content {\n margin-top: 16px;\n }\n\n @media (max-width: ","px) {\n .page-header {\n flex-direction: column;\n align-items: flex-start;\n .page-actions,\n .MuiButtonGroup-root {\n width: 100%;\n }\n .MuiButtonGroup-root {\n .MuiButtonBase-root {\n flex: 1;\n }\n .blocklet-action-text {\n display: none;\n }\n }\n }\n\n .page-title {\n margin-bottom: 15px;\n }\n }\n"])),(function(e){return e.theme.breakpoints.values.md}))}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[6950],{16950:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return _e}});var i,r=t(71171),o=t(33028),a=t(32723),s=t(34795),c=t(96234),l=t(5057),u=t(33518),p=t(85493),d=t(10458),f=t.n(d),v=t(6352),x=t.n(v),m=t(43681),h=t.n(m),g=t(26796),_=t(55898),j=t.n(_),w=t(79366),Z=t(44846),y=t(35474),b=t(39075),k=t(13128),S=t(57471),C=t(96266),P=(0,S.Z)((0,C.jsx)("path",{d:"M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10z"}),"Inbox");function z(e){var n=e.invitation,t=e.createPassportSvg,i=e.passportColor,r=(0,l.useState)(!1),o=(0,c.Z)(r,2),a=o[0],s=o[1],u=(0,l.useContext)(b.RD).t,p=(0,l.useMemo)((function(){return(n.role.title||n.role.name).toUpperCase()}),[n.role.title,n.role.name]),d=(0,l.useMemo)((function(){return t({title:p,issuer:n.info.name,issuerDid:n.info.appDid,ownerName:"Your Name",ownerDid:n.info.appDid,isDataUrl:!0,preferredColor:n.info.passportColor||i})}),[n,p]),f=(0,l.useCallback)((function(){s(!0)}),[]),v=(0,l.useCallback)((function(){s(!1)}),[]);return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(R,{children:(0,C.jsx)("div",{className:"invite-passport__card",onClick:f,children:(0,C.jsx)("object",{data:d,alt:"passport",className:"invite-passport__cover"})})}),(0,C.jsx)(k.Z,{open:a,title:u("invite.viewPermission"),PaperProps:{style:{minHeight:"auto",paddingBottom:"20px"}},onClose:v,children:n.role.permissions&&n.role.permissions.length>0?(0,C.jsx)("ul",{style:{listStyle:"circle",padding:"0 20px"},children:n.role.permissions.map((function(e){return(0,C.jsx)("li",{style:{listStyle:"circle"},children:e.description},e.name)}))}):(0,C.jsxs)("div",{style:{color:"#999",textAlign:"center"},children:[(0,C.jsx)(P,{style:{width:"30px",height:"30px"}}),(0,C.jsx)("div",{children:u("invite.emptyPermission")})]})})]})}z.propTypes={invitation:j().object.isRequired,createPassportSvg:j().func.isRequired,passportColor:j().string},z.defaultProps={passportColor:"auto"};var N,R=u.default.div(i||(i=(0,r.Z)(["\n display: flex;\n max-width: 350px;\n margin: 30px auto;\n .invite-passport__card {\n margin: 0 auto;\n width: 228px;\n height: 258px;\n flex-shrink: 0;\n .invite-passport__cover {\n width: 100%;\n height: 100%;\n }\n }\n .invite-passport__content {\n flex: 1;\n display: flex;\n flex-direction: column;\n }\n .invite-passport__title {\n font-weight: 700;\n font-size: 16px;\n }\n .invite-passport__description {\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n height: 3em;\n color: #999;\n font-size: 14px;\n }\n .invite-passport__view-permission {\n cursor: pointer;\n font-size: 14px;\n font-weight: 600;\n line-height: 18px;\n color: ",";\n }\n"])),(function(e){return e.theme.palette.primary.main})),F=z,T=t(43387),L=t(92459),I=t(41861),E=t(14491),D=t(70284);function U(e){var n,t,i,r=e.invitation,o=e.checkFn,a=e.onLogin,s=e.onReceive,u=(0,l.useState)(!1),p=(0,c.Z)(u,2),d=p[0],f=p[1],v=(0,b.PE)(),x=v.t,m=v.locale,h=(0,D.Z)().getPassportId;"undefined"!==typeof window&&(n=null===(t=window)||void 0===t||null===(i=t.blocklet)||void 0===i?void 0:i.componentId);var g={passportId:h(),inviteId:r.inviteId,baseUrl:window.location.origin,componentId:n},_=(0,l.useCallback)((function(){f(!1)}),[]),j=(0,l.useCallback)((function(){f(!1),a.apply(void 0,arguments)}),[a]),w=(0,l.useCallback)((function(){"function"!==typeof s?f(!0):s()}),[]);return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(q,{children:[(0,C.jsx)(L.Z,{size:"large",variant:"contained",className:"invite-receive__button","data-cy":"invite-receive-passport",color:"primary",onClick:w,children:x("invite.receive")}),(0,C.jsxs)("div",{className:"invite-receive__until",children:[x("invite.validUntil"),(0,E.o0)(r.expireDate,m)]})]}),(0,C.jsx)(T.default,{popup:!0,open:d,className:"connect",action:"invite",checkFn:o,forceConnected:!1,autoConnect:!1,checkTimeout:6e5,onSuccess:j,onClose:_,locale:m,webWalletUrl:(0,I.yP)(),messages:{title:x("receive.dialog.title"),scan:x("receive.dialog.scan"),confirm:x("receive.dialog.confirm"),success:x("receive.dialog.success")},extraParams:g})]})}U.propTypes={invitation:j().object.isRequired,checkFn:j().func.isRequired,onLogin:j().func,onReceive:j().func},U.defaultProps={onLogin:function(){},onReceive:null};var M,q=u.default.div(N||(N=(0,r.Z)(["\n text-align: center;\n .invite-receive__logo-wrapper {\n display: inline-flex;\n align-items: center;\n color: #9397a1;\n font-size: 14px;\n }\n .invite-receive__logo {\n height: 16px;\n margin-left: 8px;\n }\n .invite-receive__button {\n width: 100%;\n margin: 16px 0;\n white-space: nowrap;\n }\n .invite-receive__until {\n text-align: center;\n font-size: 14px;\n }\n .invite-receive__description {\n color: #999;\n text-align: left;\n list-style: decimal;\n padding: 0;\n padding-left: 1.2em;\n margin: 40px 0;\n }\n .invite-receive__description-item {\n list-style: decimal;\n }\n .invite-receive__link {\n color: ",";\n }\n"])),(function(e){return e.theme.palette.primary.main})),W=U;function O(e){var n=e.onLogin,t=(0,b.PE)().t;return(0,C.jsx)(A,{children:(0,C.jsx)(L.Z,{size:"large",variant:"contained",className:"invite-receive__button","data-cy":"invite-receive-passport",color:"primary",onClick:function(){return n()},children:t("common.connect")})})}O.propTypes={onLogin:j().func},O.defaultProps={onLogin:function(){}};var H,A=u.default.div(M||(M=(0,r.Z)(["\n text-align: center;\n .invite-receive__logo-wrapper {\n display: inline-flex;\n align-items: center;\n color: #9397a1;\n font-size: 14px;\n }\n .invite-receive__logo {\n height: 16px;\n margin-left: 8px;\n }\n .invite-receive__button {\n width: 100%;\n margin: 16px 0;\n white-space: nowrap;\n }\n .invite-receive__until {\n text-align: center;\n font-size: 14px;\n }\n .invite-receive__description {\n color: #999;\n text-align: left;\n list-style: decimal;\n padding: 0;\n padding-left: 1.2em;\n margin: 40px 0;\n }\n .invite-receive__description-item {\n list-style: decimal;\n }\n .invite-receive__link {\n color: ",";\n }\n"])),(function(e){return e.theme.palette.primary.main})),V=O,B=t(72333);function Y(e){var n=e.invitation,t=(0,b.PE)().t,i=(0,l.useMemo)((function(){return(n.role.title||n.role.name).toUpperCase()}),[n.role.title,n.role.name]),r=(0,l.useMemo)((function(){return t("invite.message",{name:"{{name}}",role:i,dapp:"{{dapp}}"})}),[t,i]),o=(0,E.E8)(n.info.chainHost,n.inviter.did,"account"),a=(0,E.Zp)(r,{name:function(){return o?(0,C.jsx)("a",{target:"_blank",href:o,className:"invite-user__link",rel:"noreferrer",children:n.inviter.fullName},"name"):n.inviter.fullName},dapp:function(){return(0,C.jsx)("a",{target:"_blank",href:n.info.url,className:"invite-user__link",rel:"noreferrer",children:n.info.name},"dapp")}});return(0,C.jsxs)(K,{children:[(0,C.jsx)(B.Z,{did:n.inviter.did,src:encodeURI(n.inviter.avatar),size:80,shape:"circle",variant:"circle"}),(0,C.jsx)("div",{className:"invite-user__message",children:a})]})}Y.propTypes={invitation:j().object.isRequired};var J,K=u.default.div(H||(H=(0,r.Z)(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n .invite-user__name {\n font-weight: 700;\n font-size: 16px;\n margin: 8px 0 2px 0;\n }\n .invite-user__address {\n font-size: 12px;\n }\n .invite-user__message {\n margin-top: 20px;\n font-weight: 700;\n /* width: 90%; */\n text-align: center;\n font-size: 18px;\n }\n .invite-user__link {\n color: ",";\n }\n"])),(function(e){return e.theme.palette.primary.main})),G=Y,Q=t(39948),X=t(76005);function $(e){var n=e.invitation,t=e.type,i=(0,b.PE)().t,r=(0,l.useMemo)((function(){return i("invite.success",{dapp:"{{dapp}}"})}),[i]),o=(0,E.E8)(n.info.chainHost,n.inviter.did,"account"),a="receiver"===t?n.receiver:n.inviter,s=(0,E.Zp)(r,{name:function(){return o?(0,C.jsx)("a",{target:"_blank",href:o,className:"invite-user__link",rel:"noreferrer",children:a.fullName},"name"):a.fullName},dapp:function(){return(0,C.jsx)("a",{target:"_blank",href:n.info.url,className:"invite-user__link",rel:"noreferrer",children:n.info.name},"dapp")}});return(0,C.jsxs)(ne,{children:[(0,C.jsx)(Q.Z,{pt:1,color:"success.main",children:(0,C.jsx)(X.Z,{style:{fontSize:80}})}),(0,C.jsx)("div",{className:"invite-user__message",children:s})]})}$.propTypes={invitation:j().object.isRequired,type:j().oneOf("inviter","receiver")},$.defaultProps={type:"inviter"};var ee,ne=u.default.div(J||(J=(0,r.Z)(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n .invite-user__name {\n font-weight: 700;\n font-size: 16px;\n margin: 8px 0 2px 0;\n }\n .invite-user__address {\n font-size: 12px;\n }\n .invite-user__message {\n margin-top: 20px;\n font-weight: 700;\n /* width: 90%; */\n text-align: center;\n font-size: 18px;\n }\n .invite-user__link {\n color: ",";\n }\n"])),(function(e){return e.theme.palette.primary.main})),te=$,ie=t(59740),re=["invitation"];function oe(e){var n=e.invitation,t=(0,ie.Z)(e,re);return(0,C.jsxs)(se,(0,o.Z)((0,o.Z)({},t),{},{children:[(0,C.jsx)(B.Z,{did:n.info.did,src:n.info.logo,style:{flexShrink:0}}),(0,C.jsxs)("div",{className:"invite-app__content",children:[(0,C.jsx)("div",{className:"invite-app__title",children:n.info.name}),(0,C.jsx)("div",{className:"invite-app__description",children:n.info.description})]})]}))}oe.propTypes={invitation:j().object.isRequired};var ae,se=u.default.div(ee||(ee=(0,r.Z)(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n overflow: hidden;\n .invite-app__content {\n flex: 1;\n margin: 0 12px;\n font-weight: 700;\n overflow: hidden;\n }\n .invite-app__title {\n line-height: 1;\n margin-bottom: 2px;\n overflow: hidden;\n }\n .invite-app__description {\n font-size: 12px;\n white-space: nowrap;\n text-overflow: ellipsis;\n height: 1.3em;\n color: #999;\n overflow: hidden;\n }\n"]))),ce=oe,le=t(35820);function ue(e){var n,t,i=e.getDataFn,r=e.passportColor,o=e.createPassportSvg,a=e.onLoginSuccess,s=e.checkFn,c=e.onReceive,l=(0,w.Z)(i);if(l.loading)return(0,C.jsx)(Z.Z,{});if(l.error)return(0,C.jsx)(y.Z,{status:"404",title:null===(n=l.error)||void 0===n||null===(t=n.response)||void 0===t?void 0:t.data,description:""});var u="success"===l.data.status,p=u?te:G,d=u?V:W;return(0,C.jsxs)(de,{className:"page-invite__wrapper",children:[(0,C.jsx)(ce,{invitation:l.data}),(0,C.jsxs)("div",{className:"page-invite__card",children:[(0,C.jsx)(p,{invitation:l.data}),(0,C.jsx)(F,{invitation:l.data,createPassportSvg:o,passportColor:r}),(0,C.jsx)(d,{invitation:l.data,onLogin:a,checkFn:s,onReceive:c})]})]})}ue.propTypes={getDataFn:j().func.isRequired,checkFn:j().func.isRequired,createPassportSvg:j().func.isRequired,onLoginSuccess:j().func,onReceive:j().func,passportColor:j().string},ue.defaultProps={onLoginSuccess:function(){},passportColor:"auto",onReceive:null};var pe,de=u.default.div(ae||(ae=(0,r.Z)(["\n max-width: 460px;\n max-height: 650px;\n min-height: 450px;\n width: 90%;\n height: 80%;\n display: flex;\n flex-direction: column;\n .page-invite__card {\n background-color: #fff;\n border-radius: 4px;\n flex: 1;\n padding: 20px 30px;\n margin-top: 10px;\n }\n .page-invite__app {\n margin-top: 20px;\n }\n"]))),fe=(0,le.Z)(ue),ve=t(25339),xe=t(60411),me=t(74094);function he(e){var n=(0,ve.Tt)(),t=n.api,i=n.session,r=(0,xe.h6)().info,u=(0,p.useLocation)(),d=(0,p.useNavigate)(),v=(0,b.PE)(),m=v.t,_=v.locale,j=(0,T.useSecurity)().encryptKey,w=(0,l.useState)(!1),y=(0,c.Z)(w,2),k=y[0],S=y[1],P=(0,l.useMemo)((function(){return new URLSearchParams(u.search).get("inviteId")}),[u]),z=(0,g.default)((0,s.Z)((0,a.Z)().mark((function e(){var n,i,o,s,c,l,u;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(P){e.next=2;break}return e.abrupt("return",null);case 2:return e.next=4,t.get("/api/invitation",{params:{inviteId:P}});case 4:if(i=e.sent,o=i.data,!(s=!!h()(r,"ownerNft.did")&&"owner"===o.role.name)){e.next=17;break}return(c=new URL(window.location.href)).pathname=x()((0,me.Y5)(),"/api/did/invite/token"),c.searchParams.set("_ek_",j),c.searchParams.set("inviteId",P),e.next=14,t.get(c.href);case 14:l=e.sent,u=l.data,n=u;case 17:return e.abrupt("return",{invitation:o,nextWorkflow:n,needReceiveNFT:s});case 18:case"end":return e.stop()}}),e)})))),N=(0,l.useCallback)((function(){S(!0)}),[]),R=(0,l.useCallback)((function(){if(z.error)throw z.error;return z.value.invitation}),[z]),F=(0,l.useCallback)(function(){var e=(0,s.Z)((0,a.Z)().mark((function e(n,t){var r,o;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n&&(0,me.ZB)(t(n.sessionToken)),(r=new URLSearchParams(u.search)).delete("inviteId"),o=r.toString(),e.next=6,i.refresh();case 6:d("/".concat(o?"?".concat(o):o),{replace:!0});case 7:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),[u,d,i]);if(z.loading)return(0,C.jsx)(Z.Z,{});return(0,C.jsxs)(ge,{className:"page-invite",children:[h()(z,"value.needReceiveNFT")&&(0,C.jsx)(T.default,{action:"login",popup:!0,className:"connect",open:k,locale:_,baseUrl:r.launcher.url,checkFn:f().create({baseURL:r.launcher.url}).get,onSuccess:function(e,n){var r=new URL(window.location.href);r.pathname=x()((0,me.Y5)(),"/api/did/invite/status"),r.searchParams.set("_t_",z.value.nextWorkflow.token),r.searchParams.set("locale",_);var o=setInterval((0,s.Z)((0,a.Z)().mark((function e(){var s,c;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.get(r.href);case 2:s=e.sent,"succeed"===(c=s.data).status&&(clearInterval(o),i.updateConnectedInfo(c),F(c,j?n:function(){}));case 5:case"end":return e.stop()}}),e)}))),2e3)},onClose:function(){S(!1)},checkTimeout:3e5,webWalletUrl:(0,me.yP)(r),extraParams:{nw:h()(z,"value.nextWorkflow.url")},messages:{title:m("invite.transferNFTDialog.title",{name:r.name}),scan:m("invite.transferNFTDialog.scan"),confirm:m("invite.transferNFTDialog.confirm"),success:m("invite.transferNFTDialog.success")},prefix:"/.well-known/service/api/did"}),(0,C.jsx)(fe,(0,o.Z)((0,o.Z)({},e),{},{getDataFn:R,createPassportSvg:function(e){return(0,me.Ju)(e,r)},checkFn:t.get,onLoginSuccess:F,passportColor:"default",onReceive:h()(z,"value.needReceiveNFT")?N:null}))]})}var ge=u.default.div(pe||(pe=(0,r.Z)(["\n width: 100vw;\n height: 100%;\n min-height: 100vh;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: #f6f8fa;\n overflow: auto;\n padding: 20px;\n"])));function _e(){return(0,xe.h6)().loading?(0,C.jsx)(Z.Z,{}):(0,C.jsx)(he,{})}},51281:function(e,n,t){var i=t(77668),r=t(2586),o=t(56944);e.exports={translations:{zh:i(o),en:i(r)}}},35820:function(e,n,t){"use strict";t.d(n,{Z:function(){return s}});var i=t(33028),r=t(39075),o=t(51281),a=t(96266);function s(e){return function(n){return(0,a.jsx)(r.Iw,{translations:o.translations,children:(0,a.jsx)(e,(0,i.Z)({},n))})}}},92459:function(e,n,t){"use strict";t.d(n,{Z:function(){return p}});var i=t(33028),r=t(59740),o=t(55898),a=t.n(o),s=t(28726),c=t(81089),l=t(96266),u=["children"];function p(e){var n=e.children,t=(0,r.Z)(e,u);return(0,l.jsxs)(s.Z,(0,i.Z)((0,i.Z)({color:"did",variant:"contained"},t),{},{children:[(0,l.jsx)("span",{style:{fontWeight:400},children:n||"Continue With"}),(0,l.jsx)(c.Z,{style:{width:"auto",height:"1.2em",margin:"0 4px 0 8px"}})]}))}p.propTypes={children:a().any},p.defaultProps={children:""}},35474:function(e,n,t){"use strict";t.d(n,{Z:function(){return W}});var i={};t.r(i),t.d(i,{ComingSoon:function(){return L},Error:function(){return F},Forbidden:function(){return N},Info:function(){return I},InternalServerError:function(){return R},Maintenance:function(){return T},PageNotFound:function(){return z}});var r,o=t(59740),a=t(56666),s=t(33028),c=t(55898),l=t.n(c),u=t(71171),p=t(39948),d=t(47685),f=t(96266),v=["icon","title","description","extra"];function x(e){var n=e.icon,t=e.title,i=e.description,r=e.extra,a=(0,o.Z)(e,v);return(0,f.jsxs)(m,(0,s.Z)((0,s.Z)({},a),{},{children:[n,"string"===typeof t?(0,f.jsx)(p.Z,{mt:3,fontSize:22,fontWeight:400,color:"#47494E",textAlign:"center",children:t}):t,"string"===typeof i?(0,f.jsx)(p.Z,{mt:1,fontSize:14,color:"#7F828B",textAlign:"center",children:i}):i,(0,f.jsx)(p.Z,{mt:3,children:r})]}))}x.propTypes={icon:l().element,title:l().oneOfType([l().string,l().element]),description:l().oneOfType([l().string,l().element]),actions:l().any,extra:l().element},x.defaultProps={icon:void 0,title:"",description:"",actions:null,extra:void 0};var m=(0,d.zo)("div")(r||(r=(0,u.Z)(["\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n height: 100%;\n padding: 16px;\n\n background-color: #f7f8fb;\n"]))),h=x,g=t(36134),_=t(11532),j={en:{404:{title:"404 - Page Not Found",description:"Sorry about that, the page you are looking for does not exist or has been moved."},403:{title:"403 \u2013 Forbidden",description:"Sorry, you are not authorized to access this page."},500:{title:"500 - Internal Server Error",description:"An internal server error has occurred. Please try again later."},error:{title:"Application Error",description:"Something went wrong. Please try again later."},maintenance:{title:"Offline for maintenance",description:"This app is undergoing maintenance right now. Please check back later."},comingSoon:{title:"Coming Soon",description:"Our website is under construction. We'll be here soon with our new website."}},zh:{404:{title:"404 - \u9875\u9762\u672a\u627e\u5230",description:"\u5f88\u62b1\u6b49\uff0c\u60a8\u6b63\u5728\u5bfb\u627e\u7684\u9875\u9762\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u79fb\u52a8\u3002"},403:{title:"403 \u2013 \u7981\u6b62\u8bbf\u95ee",description:"\u5f88\u62b1\u6b49\uff0c\u60a8\u6ca1\u6709\u6743\u9650\u8bbf\u95ee\u6b64\u9875\u9762\u3002"},500:{title:"500 - \u5185\u90e8\u670d\u52a1\u5668\u9519\u8bef",description:"\u53d1\u751f\u4e86\u4e00\u4e2a\u5185\u90e8\u670d\u52a1\u5668\u9519\u8bef\u3002\u8bf7\u7a0d\u540e\u518d\u8bd5\u3002"},error:{title:"Application Error",description:"\u51fa\u9519\u4e86, \u8bf7\u7a0d\u540e\u518d\u8bd5\u3002"},maintenance:{title:"\u7ef4\u62a4\u4e2d",description:"\u5e94\u7528\u7a0b\u5e8f\u6b63\u5728\u8fdb\u884c\u7ef4\u62a4\u3002\u8bf7\u7a0d\u540e\u518d\u67e5\u770b\u3002"},comingSoon:{title:"\u5373\u5c06\u4e0a\u7ebf",description:"\u6211\u4eec\u7684\u7f51\u7ad9\u6b63\u5728\u5efa\u8bbe\u4e2d\u3002\u6211\u4eec\u5f88\u5feb\u5c31\u4f1a\u5728\u8fd9\u91cc\u63a8\u51fa\u6211\u4eec\u7684\u65b0\u7f51\u7ad9\u3002"}}},w=t(39075),Z=["locale"],y=["locale"],b=["locale"],k=["locale"],S=["locale"],C=["locale"],P=function(e){e=["zh","en"].includes(e)?e:"";var n=((0,w.PE)()||{locale:"en"}).locale,t=e||n;return j[t]?t:"en"};function z(e){var n=e.locale,t=(0,o.Z)(e,Z);return n=P(n),(0,f.jsx)(h,(0,s.Z)({icon:(0,f.jsx)(E,{}),title:j[n][404].title,description:j[n][404].description},t))}function N(e){var n=e.locale,t=(0,o.Z)(e,y);return n=P(n),(0,f.jsx)(h,(0,s.Z)({icon:(0,f.jsx)(E,{}),title:j[n][403].title,description:j[n][403].description},t))}function R(e){var n=e.locale,t=(0,o.Z)(e,b);return n=P(n),(0,f.jsx)(h,(0,s.Z)({icon:(0,f.jsx)(E,{}),title:j[n][500].title,description:j[n][500].description},t))}function F(e){var n=e.locale,t=(0,o.Z)(e,k);return n=P(n),(0,f.jsx)(h,(0,s.Z)({icon:(0,f.jsx)(E,{}),title:j[n].error.title,description:j[n].error.description},t))}function T(e){var n=e.locale,t=(0,o.Z)(e,S);return n=P(n),(0,f.jsx)(h,(0,s.Z)({icon:(0,f.jsx)(D,{}),title:j[n].maintenance.title,description:j[n].maintenance.description},t))}function L(e){var n=e.locale,t=(0,o.Z)(e,C);return n=P(n),(0,f.jsx)(h,(0,s.Z)({icon:(0,f.jsx)(D,{}),title:j[n].comingSoon.title,description:j[n].comingSoon.description},t))}function I(e){return(0,f.jsx)(h,(0,s.Z)({icon:(0,f.jsx)(D,{})},e))}function E(e){var n=(0,d.Fg)();return(0,f.jsx)(_.Z,(0,s.Z)({style:{color:n.palette.error.main,fontSize:72}},e))}function D(e){var n=(0,d.Fg)();return(0,f.jsx)(g.Z,(0,s.Z)({style:{color:n.palette.info.main,fontSize:72}},e))}z.status="404",N.status="403",R.status="500",F.status="error",T.status="maintenance",L.status="comingSoon",I.status="info";var U=["status"],M=Object.keys(i).reduce((function(e,n){return(0,s.Z)((0,s.Z)({},e),{},(0,a.Z)({},i[n].status||n,i[n]))}),{});function q(e){var n=e.status,t=(0,o.Z)(e,U);if(n){if(M[n]){var i=M[n];return(0,f.jsx)(i,(0,s.Z)({},t))}throw new Error("Please provide a valid status for Result.status. Valid values are: ".concat(Object.keys(M).join(", ")))}return(0,f.jsx)(h,(0,s.Z)({},t))}q.propTypes=(0,s.Z)({status:l().oneOfType([l().string,l().number])},h.propTypes),q.defaultProps={status:""};var W=q},11532:function(e,n,t){"use strict";var i=t(71600);n.Z=void 0;var r=i(t(56930)),o=t(96266),a=(0,r.default)((0,o.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm4.3 14.3c-.39.39-1.02.39-1.41 0L12 13.41 9.11 16.3c-.39.39-1.02.39-1.41 0a.9959.9959 0 0 1 0-1.41L10.59 12 7.7 9.11a.9959.9959 0 0 1 0-1.41c.39-.39 1.02-.39 1.41 0L12 10.59l2.89-2.89c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41L13.41 12l2.89 2.89c.38.38.38 1.02 0 1.41z"}),"CancelRounded");n.Z=a},76005:function(e,n,t){"use strict";var i=t(71600);n.Z=void 0;var r=i(t(56930)),o=t(96266),a=(0,r.default)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");n.Z=a},36134:function(e,n,t){"use strict";var i=t(71600);n.Z=void 0;var r=i(t(56930)),o=t(96266),a=(0,r.default)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info");n.Z=a}}]);
|