@abtnode/blocklet-services 1.16.21-beta-420f105a → 1.16.21-beta-445a8baa
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/dist/assets/{Add-2bb1e6e8.js → Add-3a4e9bf2.js} +1 -1
- package/dist/assets/{Alert-581fdcb3.js → Alert-88ccddfd.js} +1 -1
- package/dist/assets/{ArrowDropDown-270417bd.js → ArrowDropDown-a2deccb8.js} +1 -1
- package/dist/assets/{Autocomplete-a0d41014.js → Autocomplete-a2328d71.js} +1 -1
- package/dist/assets/{Avatar-b9ada4fd.js → Avatar-31b251b1.js} +1 -1
- package/dist/assets/{ButtonGroup-bc20050d.js → ButtonGroup-d9cd68eb.js} +1 -1
- package/dist/assets/{CardContent-4d5156b1.js → CardContent-e96dbcb2.js} +1 -1
- package/dist/assets/{CheckCircle-2c3de3dd.js → CheckCircle-a6858d5d.js} +1 -1
- package/dist/assets/{Checkbox-1ac544ae.js → Checkbox-bf851887.js} +1 -1
- package/dist/assets/{ChevronRight-0082b3dc.js → ChevronRight-0de6ef39.js} +1 -1
- package/dist/assets/{DeleteOutline-998142bb.js → DeleteOutline-978854b1.js} +1 -1
- package/dist/assets/{DialogContentText-855679d0.js → DialogContentText-6418436c.js} +1 -1
- package/dist/assets/{Done-4913cb12.js → Done-e501bd33.js} +1 -1
- package/dist/assets/{Download-b3f2c53c.js → Download-ee01aba6.js} +1 -1
- package/dist/assets/{Edit-e7e71f15.js → Edit-fd7c9bed.js} +1 -1
- package/dist/assets/{EditIcon-79afd5b5.js → EditIcon-b1d73915.js} +1 -1
- package/dist/assets/{ExpandMore-a3d09f07.js → ExpandMore-7c173148.js} +1 -1
- package/dist/assets/{FilterList-37b3abc0.js → FilterList-4f490637.js} +1 -1
- package/dist/assets/{FormControl-4d1cdf2f.js → FormControl-a1fbecf5.js} +1 -1
- package/dist/assets/{FormControlLabel-25229f01.js → FormControlLabel-4a842c06.js} +1 -1
- package/dist/assets/{FormGroup-29ed0b63.js → FormGroup-b7d9ef97.js} +1 -1
- package/dist/assets/{Google-f4730226.js → Google-91a8c0fe.js} +1 -1
- package/dist/assets/{Grid-fcaccff2.js → Grid-c5601a70.js} +1 -1
- package/dist/assets/{Hidden-044066d7.js → Hidden-35230dda.js} +1 -1
- package/dist/assets/{Icon-9c25bbfa.js → Icon-29934361.js} +1 -1
- package/dist/assets/{InfoOutlined-c94d2cb4.js → InfoOutlined-eb4ab650.js} +1 -1
- package/dist/assets/{InputAdornment-d3c7e19b.js → InputAdornment-e4c90a63.js} +1 -1
- package/dist/assets/{InputLabel-11d30ba9.js → InputLabel-49e6958a.js} +1 -1
- package/dist/assets/{LastPage-9496a359.js → LastPage-c187ae76.js} +1 -1
- package/dist/assets/{Launch-7978d5e7.js → Launch-8e54c9a5.js} +1 -1
- package/dist/assets/{LaunchOutlined-da9ec5ed.js → LaunchOutlined-9dd9c853.js} +1 -1
- package/dist/assets/{ListItem-6c35df03.js → ListItem-e314bf12.js} +1 -1
- package/dist/assets/{LockIcon-20436475.js → LockIcon-93d28688.js} +1 -1
- package/dist/assets/{Loop-196aeada.js → Loop-9bace654.js} +1 -1
- package/dist/assets/{MoreVert-5a18fa93.js → MoreVert-3d0977ab.js} +1 -1
- package/dist/assets/{OpenInNew-c32950a3.js → OpenInNew-e7cd0cc2.js} +1 -1
- package/dist/assets/{Pagination-42d86ca7.js → Pagination-6fcfcfda.js} +1 -1
- package/dist/assets/{PlayArrow-b985c5f0.js → PlayArrow-961eaacd.js} +1 -1
- package/dist/assets/{RadioGroup-ce209c94.js → RadioGroup-8d4ab553.js} +1 -1
- package/dist/assets/{Search-12c94cce.js → Search-f8fe0d11.js} +1 -1
- package/dist/assets/{Select-30f10046.js → Select-86168230.js} +1 -1
- package/dist/assets/{ServerLogo-3ef01c3f.js → ServerLogo-b9434abe.js} +1 -1
- package/dist/assets/{Slider-a6e8bd35.js → Slider-dc450dee.js} +1 -1
- package/dist/assets/{Stepper-689869b7.js → Stepper-0951e629.js} +1 -1
- package/dist/assets/{Switch-814650a6.js → Switch-183772a5.js} +1 -1
- package/dist/assets/{TableRow-1552cfd7.js → TableRow-c019aa76.js} +1 -1
- package/dist/assets/{TextField-28208fa6.js → TextField-fedebf1f.js} +1 -1
- package/dist/assets/{Toolbar-31156e4d.js → Toolbar-3eef999e.js} +1 -1
- package/dist/assets/{access-control-00d8d204.js → access-control-9ae6bc7e.js} +1 -1
- package/dist/assets/{actions-0792080c.js → actions-28620eeb.js} +1 -1
- package/dist/assets/{add-component-core-66a45b18.js → add-component-core-a389deaa.js} +1 -1
- package/dist/assets/add-resource-9509ff95.js +1 -0
- package/dist/assets/{addon-8560c6d6.js → addon-67a138a5.js} +1 -1
- package/dist/assets/{analytics-383890a4.js → analytics-1cc14b8d.js} +1 -1
- package/dist/assets/api-cf320b38.js +1 -0
- package/dist/assets/{audit-logs-aaea3714.js → audit-logs-b77b5880.js} +1 -1
- package/dist/assets/{button-464f7b0e.js → button-df38f255.js} +1 -1
- package/dist/assets/{click-to-copy-cbd1cb5e.js → click-to-copy-aea6a9bd.js} +1 -1
- package/dist/assets/{complete-22062fb2.js → complete-50b01711.js} +1 -1
- package/dist/assets/{component-95c59724.js → component-ca8cf1c6.js} +2 -2
- package/dist/assets/{config-5798e1cf.js → config-d3b02cb4.js} +1 -1
- package/dist/assets/{config-a3299a35.js → config-df87ad09.js} +1 -1
- package/dist/assets/{config-navigation-f921312d.js → config-navigation-cecc3eed.js} +1 -1
- package/dist/assets/{confirm-7d40329e.js → confirm-06053193.js} +1 -1
- package/dist/assets/{confirm-2fba8b36.js → confirm-ddc8b167.js} +1 -1
- package/dist/assets/{connect-23d98c44.js → connect-b9415d0d.js} +1 -1
- package/dist/assets/{connect-e263a6a4.js → connect-eb42cf82.js} +1 -1
- package/dist/assets/{content-layout-b4ac5618.js → content-layout-c45180bc.js} +1 -1
- package/dist/assets/{dashboard-a18e2371.js → dashboard-869969b3.js} +7 -7
- package/dist/assets/{did-address-2c29ac5b.js → did-address-6f8ac748.js} +1 -1
- package/dist/assets/{did-utils-30d494b0.js → did-utils-e5a93c03.js} +1 -1
- package/dist/assets/{domain-257fc611.js → domain-ce3d68ba.js} +1 -1
- package/dist/assets/{domain-list-f4ec070f.js → domain-list-c01d42a2.js} +1 -1
- package/dist/assets/{exchange-passport-04aa35d6.js → exchange-passport-49de9567.js} +1 -1
- package/dist/assets/{fallback-4badf2a0.js → fallback-0a2aea38.js} +1 -1
- package/dist/assets/{format-error-830807a3.js → format-error-cb03fbac.js} +1 -1
- package/dist/assets/{fuel-6d5ba828.js → fuel-60fee1f9.js} +1 -1
- package/dist/assets/{home-7fa09107.js → home-13a41811.js} +1 -1
- package/dist/assets/{iframe-6942f9e4.js → iframe-e27aa5eb.js} +1 -1
- package/dist/assets/{index-96842d86.js → index-0f945049.js} +1 -1
- package/dist/assets/{index-55b39f48.js → index-1bb44511.js} +1 -1
- package/dist/assets/{index-8fe550dc.js → index-263c5c47.js} +1 -1
- package/dist/assets/{index-7459a528.js → index-40d4e6fe.js} +1 -1
- package/dist/assets/{index-417c97c8.js → index-48a58a22.js} +1 -1
- package/dist/assets/{index-634ff875.js → index-564c075f.js} +1 -1
- package/dist/assets/{index-18451411.js → index-5ecec248.js} +1 -1
- package/dist/assets/{index-47bae6fd.js → index-63a4e02a.js} +1 -1
- package/dist/assets/{index-8cabdedf.js → index-67652289.js} +1 -1
- package/dist/assets/{index-e3c64d38.js → index-6d7aa2de.js} +1 -1
- package/dist/assets/{index-4fbfffa9.js → index-710f1958.js} +1 -1
- package/dist/assets/{index-aef74222.js → index-81318943.js} +1 -1
- package/dist/assets/{index-c452ebd8.js → index-88adaebe.js} +1 -1
- package/dist/assets/{index-3b6c99dd.js → index-a472b88f.js} +1 -1
- package/dist/assets/{index-528d4fa1.js → index-a575450e.js} +2 -2
- package/dist/assets/{index-e01d5c38.js → index-a8342096.js} +2 -2
- package/dist/assets/{index-722cf78c.js → index-aadc33f3.js} +1 -1
- package/dist/assets/{index-ac77968f.js → index-ad20f5d3.js} +1 -1
- package/dist/assets/{index-934fd771.js → index-b68f9890.js} +1 -1
- package/dist/assets/{index-f96f1b84.js → index-b938b74f.js} +1 -1
- package/dist/assets/{index-fd64902f.js → index-c093e71f.js} +1 -1
- package/dist/assets/{index-f99e4609.js → index-c284b28f.js} +1 -1
- package/dist/assets/{index-48cd018e.js → index-ca1233b4.js} +1 -1
- package/dist/assets/{index-e0c3eeb2.js → index-ca434966.js} +1 -1
- package/dist/assets/{index-9a3767dd.js → index-d5c608a0.js} +1 -1
- package/dist/assets/{index-083250b9.js → index-f5164e7a.js} +175 -175
- package/dist/assets/{index-11e7e93d.js → index-fb610e48.js} +1 -1
- package/dist/assets/{index-093b88c4.js → index-ffef1c73.js} +1 -1
- package/dist/assets/{index.es-7c317cd1.js → index.es-9b2db4aa.js} +1 -1
- package/dist/assets/{index.esm-a47163e1.js → index.esm-8eb4e6fc.js} +1 -1
- package/dist/assets/{invite-c883cf1a.js → invite-0ce1ce33.js} +1 -1
- package/dist/assets/{issue-passport-5e6e8890.js → issue-passport-eeb74a6b.js} +1 -1
- package/dist/assets/{jss-plugin-props-sort.esm-cb0612f4.js → jss-plugin-props-sort.esm-bce6f159.js} +1 -1
- package/dist/assets/{launch-result-message-059e66b9.js → launch-result-message-b57dfcd0.js} +1 -1
- package/dist/assets/{layout-20acf564.js → layout-30e687a6.js} +1 -1
- package/dist/assets/{list-header-ec5a8417.js → list-header-cc4af7a1.js} +1 -1
- package/dist/assets/{listItemButtonClasses-c3cee84e.js → listItemButtonClasses-811dce88.js} +1 -1
- package/dist/assets/localization-586c2161.js +1 -0
- package/dist/assets/{log-933895f6.js → log-30bb3f7c.js} +1 -1
- package/dist/assets/{login-e639241c.js → login-c8bbda83.js} +1 -1
- package/dist/assets/{logo-uploader-22a56926.js → logo-uploader-f1f683e3.js} +2 -2
- package/dist/assets/{lost-passport-af09c29f.js → lost-passport-8d3360a7.js} +2 -2
- package/dist/assets/{lottie-f5655201.js → lottie-ed0144dd.js} +1 -1
- package/dist/assets/{memoize-one.esm-86e0e988.js → memoize-one.esm-9b916d19.js} +1 -1
- package/dist/assets/{nav-menu-9b685a50.js → nav-menu-2e0bf9b0.js} +1 -1
- package/dist/assets/{notifications-98f6f24c.js → notifications-9acb30be.js} +1 -1
- package/dist/assets/overview-b5205c37.js +12 -0
- package/dist/assets/{page-header-019df943.js → page-header-bd167e51.js} +1 -1
- package/dist/assets/{permission-10f8d5c3.js → permission-1721d6ff.js} +1 -1
- package/dist/assets/{preferences-c38d50bf.js → preferences-2cc81c57.js} +1 -1
- package/dist/assets/publish-resource-309461c6.js +1 -0
- package/dist/assets/{react-0035fe91.js → react-a6e6612e.js} +2 -2
- package/dist/assets/{selector-25093faf.js → selector-8aed4b44.js} +1 -1
- package/dist/assets/session-5cca81f2.js +1 -0
- package/dist/assets/{setup-03b433cb.js → setup-4a3ca937.js} +2 -2
- package/dist/assets/{slicedToArray-08adfa53.js → slicedToArray-44714d87.js} +1 -1
- package/dist/assets/{spaces-a80ed23f.js → spaces-884bd1bc.js} +1 -1
- package/dist/assets/{start-e46f122a.js → start-b1f2c2fa.js} +1 -1
- package/dist/assets/{step-actions-cf74ba5a.js → step-actions-e2c31c4a.js} +1 -1
- package/dist/assets/{studio-db1189bd.js → studio-6d583ba0.js} +1 -1
- package/dist/assets/{switch-control-e6c85af4.js → switch-control-97423316.js} +1 -1
- package/dist/assets/{transfer-fa2ebbdf.js → transfer-38c48c41.js} +1 -1
- package/dist/assets/{uniqBy-fc210c99.js → uniqBy-1a4484bb.js} +1 -1
- package/dist/assets/{unsubscribe-52f3e206.js → unsubscribe-7c8ecf1f.js} +1 -1
- package/dist/assets/{use-blocklet-info-for-connect-did-spaces-68cf257e.js → use-blocklet-info-for-connect-did-spaces-02cb5725.js} +1 -1
- package/dist/assets/{useAsync-e368a000.js → useAsync-e9cdf811.js} +1 -1
- package/dist/assets/{useFormControl-843f7ec1.js → useFormControl-be0583f6.js} +1 -1
- package/dist/assets/{useLocalStorage-a3ca5221.js → useLocalStorage-6f44c0e8.js} +1 -1
- package/dist/assets/{useSetState-575895e7.js → useSetState-6d3b66bd.js} +1 -1
- package/dist/assets/{user-f1e611ed.js → user-b04d443a.js} +1 -1
- package/dist/assets/{util-780cf48d.js → util-9fdf979a.js} +1 -1
- package/dist/assets/{wallet-hidden-topbar-a645e342.js → wallet-hidden-topbar-30953049.js} +2 -2
- package/dist/assets/wrap-locale-c74ee18c.js +1 -0
- package/dist/index.html +1 -1
- package/package.json +18 -18
- package/dist/assets/add-resource-99f5b8d6.js +0 -1
- package/dist/assets/api-e6404804.js +0 -1
- package/dist/assets/localization-641483e3.js +0 -1
- package/dist/assets/overview-ab2a6c88.js +0 -12
- package/dist/assets/publish-resource-3c8470ed.js +0 -1
- package/dist/assets/session-31bb32fc.js +0 -1
- package/dist/assets/wrap-locale-dc1610fe.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var ne=Object.defineProperty;var oe=(t,e,n)=>e in t?ne(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var R=(t,e,n)=>(oe(t,typeof e!="symbol"?e+"":e,n),n);import{P as f,r as Z,bh as re,u as se,j as F,aw as ie,_ as ce,M as ae}from"./index-
|
|
1
|
+
var ne=Object.defineProperty;var oe=(t,e,n)=>e in t?ne(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var R=(t,e,n)=>(oe(t,typeof e!="symbol"?e+"":e,n),n);import{P as f,r as Z,bh as re,u as se,j as F,aw as ie,_ as ce,M as ae}from"./index-f5164e7a.js";import{L as ue}from"./selector-8aed4b44.js";/**
|
|
2
2
|
* (c) Iconify
|
|
3
3
|
*
|
|
4
4
|
* For the full copyright and license information, please view the license.txt
|
|
@@ -8,4 +8,4 @@ var ne=Object.defineProperty;var oe=(t,e,n)=>e in t?ne(t,e,{enumerable:!0,config
|
|
|
8
8
|
*
|
|
9
9
|
* @license MIT
|
|
10
10
|
* @version 1.0.8
|
|
11
|
-
*/const Et=Object.freeze({left:0,top:0,width:16,height:16}),Q=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),L=Object.freeze({...Et,...Q}),K=Object.freeze({...L,body:"",hidden:!1}),le=Object.freeze({width:null,height:null}),Lt=Object.freeze({...le,...Q});function fe(t,e=0){const n=t.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(t);return isNaN(o)?0:r(o)}else if(n!==t){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(t.slice(0,t.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return e}const de=/[\s,]+/;function he(t,e){e.split(de).forEach(n=>{switch(n.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}const Mt={...Lt,preserveAspectRatio:""};function ht(t){const e={...Mt},n=(r,o)=>t.getAttribute(r)||o;return e.width=n("width",null),e.height=n("height",null),e.rotate=fe(n("rotate","")),he(e,n("flip","")),e.preserveAspectRatio=n("preserveAspectRatio",n("preserveaspectratio","")),e}function pe(t,e){for(const n in Mt)if(t[n]!==e[n])return!0;return!1}const k=/^[a-z0-9]+(-[a-z0-9]+)*$/,M=(t,e,n,r="")=>{const o=t.split(":");if(t.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),c=o.pop(),u={provider:o.length>0?o[0]:r,prefix:c,name:a};return e&&!z(u)?null:u}const s=o[0],i=s.split("-");if(i.length>1){const a={provider:r,prefix:i.shift(),name:i.join("-")};return e&&!z(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:s};return e&&!z(a,n)?null:a}return null},z=(t,e)=>t?!!((t.provider===""||t.provider.match(k))&&(e&&t.prefix===""||t.prefix.match(k))&&t.name.match(k)):!1;function ge(t,e){const n={};!t.hFlip!=!e.hFlip&&(n.hFlip=!0),!t.vFlip!=!e.vFlip&&(n.vFlip=!0);const r=((t.rotate||0)+(e.rotate||0))%4;return r&&(n.rotate=r),n}function pt(t,e){const n=ge(t,e);for(const r in K)r in Q?r in t&&!(r in n)&&(n[r]=Q[r]):r in e?n[r]=e[r]:r in t&&(n[r]=t[r]);return n}function me(t,e){const n=t.icons,r=t.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=r[i]&&r[i].parent,c=a&&s(a);c&&(o[i]=[a].concat(c))}return o[i]}return(e||Object.keys(n).concat(Object.keys(r))).forEach(s),o}function ye(t,e,n){const r=t.icons,o=t.aliases||Object.create(null);let s={};function i(a){s=pt(r[a]||o[a],s)}return i(e),n.forEach(i),pt(t,s)}function Nt(t,e){const n=[];if(typeof t!="object"||typeof t.icons!="object")return n;t.not_found instanceof Array&&t.not_found.forEach(o=>{e(o,null),n.push(o)});const r=me(t);for(const o in r){const s=r[o];s&&(e(o,ye(t,o,s)),n.push(o))}return n}const be={provider:"",aliases:{},not_found:{},...Et};function G(t,e){for(const n in e)if(n in t&&typeof t[n]!=typeof e[n])return!1;return!0}function Rt(t){if(typeof t!="object"||t===null)return null;const e=t;if(typeof e.prefix!="string"||!t.icons||typeof t.icons!="object"||!G(t,be))return null;const n=e.icons;for(const o in n){const s=n[o];if(!o.match(k)||typeof s.body!="string"||!G(s,K))return null}const r=e.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(k)||typeof i!="string"||!n[i]&&!r[i]||!G(s,K))return null}return e}const $=Object.create(null);function we(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:new Set}}function S(t,e){const n=$[t]||($[t]=Object.create(null));return n[e]||(n[e]=we(t,e))}function ct(t,e){return Rt(e)?Nt(e,(n,r)=>{r?t.icons[n]=r:t.missing.add(n)}):[]}function Ie(t,e,n){try{if(typeof n.body=="string")return t.icons[e]={...n},!0}catch{}return!1}function xe(t,e){let n=[];return(typeof t=="string"?[t]:Object.keys($)).forEach(o=>{(typeof o=="string"&&typeof e=="string"?[e]:Object.keys($[o]||{})).forEach(i=>{const a=S(o,i);n=n.concat(Object.keys(a.icons).map(c=>(o!==""?"@"+o+":":"")+i+":"+c))})}),n}let _=!1;function Ft(t){return typeof t=="boolean"&&(_=t),_}function O(t){const e=typeof t=="string"?M(t,!0,_):t;if(e){const n=S(e.provider,e.prefix),r=e.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function Dt(t,e){const n=M(t,!0,_);if(!n)return!1;const r=S(n.provider,n.prefix);return Ie(r,n.name,e)}function gt(t,e){if(typeof t!="object")return!1;if(typeof e!="string"&&(e=t.provider||""),_&&!e&&!t.prefix){let o=!1;return Rt(t)&&(t.prefix="",Nt(t,(s,i)=>{i&&Dt(s,i)&&(o=!0)})),o}const n=t.prefix;if(!z({provider:e,prefix:n,name:"a"}))return!1;const r=S(e,n);return!!ct(r,t)}function Se(t){return!!O(t)}function Ce(t){const e=O(t);return e?{...L,...e}:null}function Ae(t){const e={loaded:[],missing:[],pending:[]},n=Object.create(null);t.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return t.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,a=o.name,c=n[s]||(n[s]=Object.create(null)),u=c[i]||(c[i]=S(s,i));let l;a in u.icons?l=e.loaded:i===""||u.missing.has(a)?l=e.missing:l=e.pending;const d={provider:s,prefix:i,name:a};l.push(d)}),e}function zt(t,e){t.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==e))})}function ve(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const e=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!e.length)return;let n=!1;const r=t.provider,o=t.prefix;e.forEach(s=>{const i=s.icons,a=i.pending.length;i.pending=i.pending.filter(c=>{if(c.prefix!==o)return!0;const u=c.name;if(t.icons[u])i.loaded.push({provider:r,prefix:o,name:u});else if(t.missing.has(u))i.missing.push({provider:r,prefix:o,name:u});else return n=!0,!0;return!1}),i.pending.length!==a&&(n||zt([t],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let Pe=0;function Te(t,e,n){const r=Pe++,o=zt.bind(null,n,r);if(!e.pending.length)return o;const s={id:r,icons:e,callback:t,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}const tt=Object.create(null);function mt(t,e){tt[t]=e}function et(t){return tt[t]||tt[""]}function ke(t,e=!0,n=!1){const r=[];return t.forEach(o=>{const s=typeof o=="string"?M(o,e,n):o;s&&r.push(s)}),r}var je={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function _e(t,e,n,r){const o=t.resources.length,s=t.random?Math.floor(Math.random()*o):t.index;let i;if(t.random){let p=t.resources.slice(0);for(i=[];p.length>1;){const I=Math.floor(Math.random()*p.length);i.push(p[I]),p=p.slice(0,I).concat(p.slice(I+1))}i=i.concat(p)}else i=t.resources.slice(s).concat(t.resources.slice(0,s));const a=Date.now();let c="pending",u=0,l,d=null,h=[],m=[];typeof r=="function"&&m.push(r);function y(){d&&(clearTimeout(d),d=null)}function b(){c==="pending"&&(c="aborted"),y(),h.forEach(p=>{p.status==="pending"&&(p.status="aborted")}),h=[]}function x(p,I){I&&(m=[]),typeof p=="function"&&m.push(p)}function C(){return{startTime:a,payload:e,status:c,queriesSent:u,queriesPending:h.length,subscribe:x,abort:b}}function w(){c="failed",m.forEach(p=>{p(void 0,l)})}function g(){h.forEach(p=>{p.status==="pending"&&(p.status="aborted")}),h=[]}function ee(p,I,P){const N=I!=="success";switch(h=h.filter(A=>A!==p),c){case"pending":break;case"failed":if(N||!t.dataAfterTimeout)return;break;default:return}if(I==="abort"){l=P,w();return}if(N){l=P,h.length||(i.length?W():w());return}if(y(),g(),!t.random){const A=t.resources.indexOf(p.resource);A!==-1&&A!==t.index&&(t.index=A)}c="completed",m.forEach(A=>{A(P)})}function W(){if(c!=="pending")return;y();const p=i.shift();if(p===void 0){if(h.length){d=setTimeout(()=>{y(),c==="pending"&&(g(),w())},t.timeout);return}w();return}const I={status:"pending",resource:p,callback:(P,N)=>{ee(I,P,N)}};h.push(I),u++,d=setTimeout(W,t.rotate),n(p,e,I.callback)}return setTimeout(W),C}function Ht(t){const e={...je,...t};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function o(a,c,u){const l=_e(e,a,c,(d,h)=>{r(),u&&u(d,h)});return n.push(l),l}function s(a){return n.find(c=>a(c))||null}return{query:o,find:s,setIndex:a=>{e.index=a},getIndex:()=>e.index,cleanup:r}}function at(t){let e;if(typeof t.resources=="string")e=[t.resources];else if(e=t.resources,!(e instanceof Array)||!e.length)return null;return{resources:e,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}const q=Object.create(null),T=["https://api.simplesvg.com","https://api.unisvg.com"],H=[];for(;T.length>0;)T.length===1||Math.random()>.5?H.push(T.shift()):H.push(T.pop());q[""]=at({resources:["https://api.iconify.design"].concat(H)});function yt(t,e){const n=at(e);return n===null?!1:(q[t]=n,!0)}function V(t){return q[t]}function Oe(){return Object.keys(q)}function bt(){}const J=Object.create(null);function Ee(t){if(!J[t]){const e=V(t);if(!e)return;const n=Ht(e),r={config:e,redundancy:n};J[t]=r}return J[t]}function Qt(t,e,n){let r,o;if(typeof t=="string"){const s=et(t);if(!s)return n(void 0,424),bt;o=s.send;const i=Ee(t);i&&(r=i.redundancy)}else{const s=at(t);if(s){r=Ht(s);const i=t.resources?t.resources[0]:"",a=et(i);a&&(o=a.send)}}return!r||!o?(n(void 0,424),bt):r.query(e,o,n)().abort}const wt="iconify2",E="iconify",$t=E+"-count",It=E+"-version",Ut=36e5,Le=168;function nt(t,e){try{return t.getItem(e)}catch{}}function ut(t,e,n){try{return t.setItem(e,n),!0}catch{}}function xt(t,e){try{t.removeItem(e)}catch{}}function ot(t,e){return ut(t,$t,e.toString())}function rt(t){return parseInt(nt(t,$t))||0}const v={local:!0,session:!0},qt={local:new Set,session:new Set};let lt=!1;function Me(t){lt=t}let D=typeof window>"u"?{}:window;function Vt(t){const e=t+"Storage";try{if(D&&D[e]&&typeof D[e].length=="number")return D[e]}catch{}v[t]=!1}function Bt(t,e){const n=Vt(t);if(!n)return;const r=nt(n,It);if(r!==wt){if(r){const a=rt(n);for(let c=0;c<a;c++)xt(n,E+c.toString())}ut(n,It,wt),ot(n,0);return}const o=Math.floor(Date.now()/Ut)-Le,s=a=>{const c=E+a.toString(),u=nt(n,c);if(typeof u=="string"){try{const l=JSON.parse(u);if(typeof l=="object"&&typeof l.cached=="number"&&l.cached>o&&typeof l.provider=="string"&&typeof l.data=="object"&&typeof l.data.prefix=="string"&&e(l,a))return!0}catch{}xt(n,c)}};let i=rt(n);for(let a=i-1;a>=0;a--)s(a)||(a===i-1?(i--,ot(n,i)):qt[t].add(a))}function Wt(){if(!lt){Me(!0);for(const t in v)Bt(t,e=>{const n=e.data,r=e.provider,o=n.prefix,s=S(r,o);if(!ct(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function Ne(t,e){const n=t.lastModifiedCached;if(n&&n>=e)return n===e;if(t.lastModifiedCached=e,n)for(const r in v)Bt(r,o=>{const s=o.data;return o.provider!==t.provider||s.prefix!==t.prefix||s.lastModified===e});return!0}function Re(t,e){lt||Wt();function n(r){let o;if(!v[r]||!(o=Vt(r)))return;const s=qt[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=rt(o),!ot(o,i+1))return;const a={cached:Math.floor(Date.now()/Ut),provider:t.provider,data:e};return ut(o,E+i.toString(),JSON.stringify(a))}e.lastModified&&!Ne(t,e.lastModified)||Object.keys(e.icons).length&&(e.not_found&&(e=Object.assign({},e),delete e.not_found),n("local")||n("session"))}function St(){}function Fe(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,ve(t)}))}function De(t,e){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(e).sort():t.iconsToLoad=e,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:n,prefix:r}=t,o=t.iconsToLoad;delete t.iconsToLoad;let s;if(!o||!(s=et(n)))return;s.prepare(n,r,o).forEach(a=>{Qt(n,a,c=>{if(typeof c!="object")a.icons.forEach(u=>{t.missing.add(u)});else try{const u=ct(t,c);if(!u.length)return;const l=t.pendingIcons;l&&u.forEach(d=>{l.delete(d)}),Re(t,c)}catch(u){console.error(u)}Fe(t)})})}))}const ft=(t,e)=>{const n=ke(t,!0,Ft()),r=Ae(n);if(!r.pending.length){let c=!0;return e&&setTimeout(()=>{c&&e(r.loaded,r.missing,r.pending,St)}),()=>{c=!1}}const o=Object.create(null),s=[];let i,a;return r.pending.forEach(c=>{const{provider:u,prefix:l}=c;if(l===a&&u===i)return;i=u,a=l,s.push(S(u,l));const d=o[u]||(o[u]=Object.create(null));d[l]||(d[l]=[])}),r.pending.forEach(c=>{const{provider:u,prefix:l,name:d}=c,h=S(u,l),m=h.pendingIcons||(h.pendingIcons=new Set);m.has(d)||(m.add(d),o[u][l].push(d))}),s.forEach(c=>{const{provider:u,prefix:l}=c;o[u][l].length&&De(c,o[u][l])}),e?Te(e,r,s):St},ze=t=>new Promise((e,n)=>{const r=typeof t=="string"?M(t,!0):t;if(!r){n(t);return}ft([r||t],o=>{if(o.length&&r){const s=O(r);if(s){e({...L,...s});return}}n(t)})});function He(t){try{const e=typeof t=="string"?JSON.parse(t):t;if(typeof e.body=="string")return{...e}}catch{}}function Qe(t,e){const n=typeof t=="string"?M(t,!0,!0):null;if(!n){const s=He(t);return{value:t,data:s}}const r=O(n);if(r!==void 0||!n.prefix)return{value:t,name:n,data:r};const o=ft([n],()=>e(t,n,O(n)));return{value:t,name:n,loading:o}}function X(t){return t.hasAttribute("inline")}let Gt=!1;try{Gt=navigator.vendor.indexOf("Apple")===0}catch{}function $e(t,e){switch(e){case"svg":case"bg":case"mask":return e}return e!=="style"&&(Gt||t.indexOf("<a")===-1)?"svg":t.indexOf("currentColor")===-1?"bg":"mask"}const Ue=/(-?[0-9.]*[0-9]+[0-9.]*)/g,qe=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function st(t,e,n){if(e===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*e*n)/n;if(typeof t!="string")return t;const r=t.split(Ue);if(r===null||!r.length)return t;const o=[];let s=r.shift(),i=qe.test(s);for(;;){if(i){const a=parseFloat(s);isNaN(a)?o.push(s):o.push(Math.ceil(a*e*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}const Ve=t=>t==="unset"||t==="undefined"||t==="none";function Jt(t,e){const n={...L,...t},r={...Lt,...e},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(y=>{const b=[],x=y.hFlip,C=y.vFlip;let w=y.rotate;x?C?w+=2:(b.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),b.push("scale(-1 1)"),o.top=o.left=0):C&&(b.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),b.push("scale(1 -1)"),o.top=o.left=0);let g;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:g=o.height/2+o.top,b.unshift("rotate(90 "+g.toString()+" "+g.toString()+")");break;case 2:b.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:g=o.width/2+o.left,b.unshift("rotate(-90 "+g.toString()+" "+g.toString()+")");break}w%2===1&&(o.left!==o.top&&(g=o.left,o.left=o.top,o.top=g),o.width!==o.height&&(g=o.width,o.width=o.height,o.height=g)),b.length&&(s='<g transform="'+b.join(" ")+'">'+s+"</g>")});const i=r.width,a=r.height,c=o.width,u=o.height;let l,d;i===null?(d=a===null?"1em":a==="auto"?u:a,l=st(d,c/u)):(l=i==="auto"?c:i,d=a===null?st(l,u/c):a==="auto"?u:a);const h={},m=(y,b)=>{Ve(b)||(h[y]=b.toString())};return m("width",l),m("height",d),h.viewBox=o.left.toString()+" "+o.top.toString()+" "+c.toString()+" "+u.toString(),{attributes:h,body:s}}const Be=()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}};let U=Be();function We(t){U=t}function Ge(){return U}function Je(t,e){const n=V(t);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=e+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function Xe(t){return t===404}const Ye=(t,e,n)=>{const r=[],o=Je(t,e),s="icons";let i={type:s,provider:t,prefix:e,icons:[]},a=0;return n.forEach((c,u)=>{a+=c.length+1,a>=o&&u>0&&(r.push(i),i={type:s,provider:t,prefix:e,icons:[]},a=c.length),i.icons.push(c)}),r.push(i),r};function Ze(t){if(typeof t=="string"){const e=V(t);if(e)return e.path}return"/"}const Ke=(t,e,n)=>{if(!U){n("abort",424);return}let r=Ze(e.provider);switch(e.type){case"icons":{const s=e.prefix,a=e.icons.join(","),c=new URLSearchParams({icons:a});r+=s+".json?"+c.toString();break}case"custom":{const s=e.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;U(t+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(Xe(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},tn={prepare:Ye,send:Ke};function Ct(t,e){switch(t){case"local":case"session":v[t]=e;break;case"all":for(const n in v)v[n]=e;break}}const Y="data-style";let Xt="";function en(t){Xt=t}function At(t,e){let n=Array.from(t.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(Y));n||(n=document.createElement("style"),n.setAttribute(Y,Y),t.appendChild(n)),n.textContent=":host{display:inline-block;vertical-align:"+(e?"-0.125em":"0")+"}span,svg{display:block}"+Xt}function Yt(){mt("",tn),Ft(!0);let t;try{t=window}catch{}if(t){if(Wt(),t.IconifyPreload!==void 0){const n=t.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof n=="object"&&n!==null&&(n instanceof Array?n:[n]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!gt(o))&&console.error(r)}catch{console.error(r)}})}if(t.IconifyProviders!==void 0){const n=t.IconifyProviders;if(typeof n=="object"&&n!==null)for(const r in n){const o="IconifyProviders["+r+"] is invalid.";try{const s=n[r];if(typeof s!="object"||!s||s.resources===void 0)continue;yt(r,s)||console.error(o)}catch{console.error(o)}}}}return{enableCache:n=>Ct(n,!0),disableCache:n=>Ct(n,!1),iconExists:Se,getIcon:Ce,listIcons:xe,addIcon:Dt,addCollection:gt,calculateSize:st,buildIcon:Jt,loadIcons:ft,loadIcon:ze,addAPIProvider:yt,appendCustomStyle:en,_api:{getAPIConfig:V,setAPIModule:mt,sendAPIQuery:Qt,setFetch:We,getFetch:Ge,listAPIProviders:Oe}}}function Zt(t,e){let n=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in e)n+=" "+r+'="'+e[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+t+"</svg>"}function nn(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function on(t){return"data:image/svg+xml,"+nn(t)}function rn(t){return'url("'+on(t)+'")'}const it={"background-color":"currentColor"},Kt={"background-color":"transparent"},vt={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Pt={"-webkit-mask":it,mask:it,background:Kt};for(const t in Pt){const e=Pt[t];for(const n in vt)e[t+"-"+n]=vt[n]}function Tt(t){return t?t+(t.match(/^[-0-9.]+$/)?"px":""):"inherit"}function sn(t,e,n){const r=document.createElement("span");let o=t.body;o.indexOf("<a")!==-1&&(o+="<!-- "+Date.now()+" -->");const s=t.attributes,i=Zt(o,{...s,width:e.width+"",height:e.height+""}),a=rn(i),c=r.style,u={"--svg":a,width:Tt(s.width),height:Tt(s.height),...n?it:Kt};for(const l in u)c.setProperty(l,u[l]);return r}let j;function cn(){try{j=window.trustedTypes.createPolicy("iconify",{createHTML:t=>t})}catch{j=null}}function an(t){return j===void 0&&cn(),j?j.createHTML(t):t}function un(t){const e=document.createElement("span"),n=t.attributes;let r="";n.width||(r="width: inherit;"),n.height||(r+="height: inherit;"),r&&(n.style=r);const o=Zt(t.body,n);return e.innerHTML=an(o),e.firstChild}function kt(t,e){const n=e.icon.data,r=e.customisations,o=Jt(n,r);r.preserveAspectRatio&&(o.attributes.preserveAspectRatio=r.preserveAspectRatio);const s=e.renderedMode;let i;switch(s){case"svg":i=un(o);break;default:i=sn(o,{...L,...n},s==="mask")}const a=Array.from(t.childNodes).find(c=>{const u=c.tagName&&c.tagName.toUpperCase();return u==="SPAN"||u==="SVG"});a?i.tagName==="SPAN"&&a.tagName===i.tagName?a.setAttribute("style",i.getAttribute("style")):t.replaceChild(i,a):t.appendChild(i)}function jt(t,e,n){const r=n&&(n.rendered?n:n.lastRender);return{rendered:!1,inline:e,icon:t,lastRender:r}}function ln(t="iconify-icon"){let e,n;try{e=window.customElements,n=window.HTMLElement}catch{return}if(!e||!n)return;const r=e.get(t);if(r)return r;const o=["icon","mode","inline","width","height","rotate","flip"],s=class extends n{constructor(){super();R(this,"_shadowRoot");R(this,"_state");R(this,"_checkQueued",!1);const c=this._shadowRoot=this.attachShadow({mode:"open"}),u=X(this);At(c,u),this._state=jt({value:""},u),this._queueCheck()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(c){if(c==="inline"){const u=X(this),l=this._state;u!==l.inline&&(l.inline=u,At(this._shadowRoot,u))}else this._queueCheck()}get icon(){const c=this.getAttribute("icon");if(c&&c.slice(0,1)==="{")try{return JSON.parse(c)}catch{}return c}set icon(c){typeof c=="object"&&(c=JSON.stringify(c)),this.setAttribute("icon",c)}get inline(){return X(this)}set inline(c){c?this.setAttribute("inline","true"):this.removeAttribute("inline")}restartAnimation(){const c=this._state;if(c.rendered){const u=this._shadowRoot;if(c.renderedMode==="svg")try{u.lastChild.setCurrentTime(0);return}catch{}kt(u,c)}}get status(){const c=this._state;return c.rendered?"rendered":c.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const c=this._state,u=this.getAttribute("icon");if(u!==c.icon.value){this._iconChanged(u);return}if(!c.rendered)return;const l=this.getAttribute("mode"),d=ht(this);(c.attrMode!==l||pe(c.customisations,d))&&this._renderIcon(c.icon,d,l)}_iconChanged(c){const u=Qe(c,(l,d,h)=>{const m=this._state;if(m.rendered||this.getAttribute("icon")!==l)return;const y={value:l,name:d,data:h};y.data?this._gotIconData(y):m.icon=y});u.data?this._gotIconData(u):this._state=jt(u,this._state.inline,this._state)}_gotIconData(c){this._checkQueued=!1,this._renderIcon(c,ht(this),this.getAttribute("mode"))}_renderIcon(c,u,l){const d=$e(c.data.body,l),h=this._state.inline;kt(this._shadowRoot,this._state={rendered:!0,icon:c,inline:h,customisations:u,attrMode:l,renderedMode:d})}};o.forEach(a=>{a in s.prototype||Object.defineProperty(s.prototype,a,{get:function(){return this.getAttribute(a)},set:function(c){c!==null?this.setAttribute(a,c):this.removeAttribute(a)}})});const i=Yt();for(const a in i)s[a]=s.prototype[a]=i[a];return e.define(t,s),s}ln()||Yt();const Cn=f.shape({appLogo:f.node,appName:f.string,theme:f.shape({background:f.string}),enableConnect:f.bool,enableLocale:f.bool,navigation:f.arrayOf(f.shape({title:f.oneOfType([f.string,f.object]),link:f.oneOfType([f.string,f.object]),icon:f.string,items:f.arrayOf(f.shape({title:f.oneOfType([f.string,f.object]),link:f.oneOfType([f.string,f.object])}))}))}),fn=f.shape({showText:f.bool,showRole:f.bool,switchDid:f.bool,switchProfile:f.bool,switchPassport:f.bool,disableLogout:f.bool,onLogin:f.func,onLogout:f.func,onSwitchDid:f.func,onSwitchProfile:f.func,onSwitchPassport:f.func,menu:f.array,menuRender:f.func,dark:f.bool,size:f.number}),B=(t,e,n="children")=>t.map(r=>Array.isArray(r[n])?e({...r,[n]:B(r[n],e,n)}):e(r)),An=(t,e="children")=>{const n=[];return B(t,r=>n.push(r),e),n},dt=(t,e,n="children")=>t.map(r=>({...r})).filter(r=>{const o=r[n];if(Array.isArray(o)){const i=dt(o,e,n);r[n]=i!=null&&i.length?i:void 0}const s={filteredChildren:r[n],isLeaf:!(o!=null&&o.length)};return e(r,s)}),dn=t=>/^https?:\/\//.test(t),vn=t=>/^[\w-]+:[\w-]+$/.test(t),hn=t=>{if(!t||!(t!=null&&t.startsWith("/")))return!1;const e=o=>o.endsWith("/")?o:`${o}/`,n=e(window.location.pathname),r=e(new URL(t,window.location.origin).pathname);return n.startsWith(r)},Pn=(t=[])=>{const e=t.map((r,o)=>({path:r,index:o})).filter(r=>hn(r.path));return e!=null&&e.length?e.slice(1).reduce((r,o)=>r.path.length>=o.path.length?r:o,e[0]).index:-1};var _t,Ot;const Tn=((_t=window==null?void 0:window.blocklet)==null?void 0:_t.groupPrefix)||((Ot=window==null?void 0:window.blocklet)==null?void 0:Ot.prefix)||"/",pn=t=>{const e={...t},n=t==null?void 0:t.background;return typeof n=="string"?e.background={header:n,footer:n,default:n}:n&&typeof n=="object"&&(e.background={header:n.header||n.default,footer:n.footer||n.default,default:n.default}),e},gn=(t,e="en")=>{if(!(t!=null&&t.length))return t;const n=(o,s)=>typeof o=="string"?o:typeof o=="object"?o[s]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o,r=(o,s)=>{if(typeof o=="string"){if(dn(o)){const a=new URL(o);return a.searchParams.set("locale",s),a.href}const i=new URL(o,window.location.origin);return i.searchParams.set("locale",s),i.pathname+i.search}return typeof o=="object"?o[s]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o};return B(t,o=>{var s;return{...o,title:n(o.title,e),link:(s=o.items)!=null&&s.length?o.link:r(o.link,e)}},"items")},mn=t=>B(t,e=>e.role?{...e,role:Array.isArray(e.role)?e.role:[e.role]}:e,"items"),yn=t=>{if(!(t!=null&&t.length))return null;const e=mn(t),n={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[]};return e.forEach(r=>{var o;r.section?Array.isArray(r.section)?r.section.forEach(s=>{var i;(i=n[s])==null||i.push(r)}):typeof r.section=="string"&&((o=n[r.section])==null||o.push(r)):n.header.push(r)}),n},kn=t=>{if(!t)return null;const e={...t};return e.theme=pn(e.theme),e.navigation=yn(bn(e.navigation)),e},bn=(t=[])=>dt(t,(e,n)=>{var r;return!!e.link||((r=n.filteredChildren)==null?void 0:r.length)},"items"),wn=(t,e)=>dt(t,(n,r)=>{var s;const o=!n.role||e&&n.role.includes(e);return r.isLeaf?o:o&&((s=r.filteredChildren)==null?void 0:s.length)},"items");function te({formattedBlocklet:t,addons:e,sessionManagerProps:n}){var h,m,y,b;const r=Z.useContext(re),{locale:o}=se()||{},{enableConnect:s=!0,enableLocale:i=!0}=t,a=!!((h=r==null?void 0:r.session)!=null&&h.user);let c=gn((m=t==null?void 0:t.navigation)==null?void 0:m.sessionManager,o)||[];c=wn(c,(b=(y=r==null?void 0:r.session)==null?void 0:y.user)==null?void 0:b.role);const l=(()=>{if(e&&typeof e!="function")return Array.isArray(e)?e:[e];let x=[];if(i&&o&&x.push(F.jsx(ue,{showText:!1},"locale-selector")),s&&r){const C=[];a&&(c?c.slice(0,5):[]).forEach(g=>{C.push({label:g.title,icon:g.icon?F.jsx("iconify-icon",{icon:g.icon,height:24,style:{marginRight:8}}):null,component:"a",href:g.link,key:g.link})}),x.push(F.jsx(ie,{session:r.session,locale:o,menu:C,showRole:!0,...n},"session-manager"))}return typeof e=="function"&&(x=e(x)||[]),x})();return Z.createElement(F.Fragment,null,...Array.isArray(l)?l:[l])}te.propTypes={formattedBlocklet:f.object.isRequired,addons:f.oneOfType([f.func,f.node]),sessionManagerProps:fn};te.defaultProps={addons:null,sessionManagerProps:{showRole:!0}};const jn=()=>{const t=ce();Z.useEffect(()=>{t.wallet&&ae(()=>import("./index-55b39f48.js").then(e=>e.i),["assets/index-55b39f48.js","assets/index-083250b9.js","assets/index-d8bbb108.css"]).then(e=>{e.call||(e=e.default),e.call("arcHideTopBar","{}")}).catch(e=>{console.error("load dsbridge error",e)})},[t])};export{te as H,wn as a,Cn as b,An as c,Pn as d,vn as e,kn as f,gn as g,dn as i,B as m,Tn as p,fn as s,jn as u};
|
|
11
|
+
*/const Et=Object.freeze({left:0,top:0,width:16,height:16}),Q=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),L=Object.freeze({...Et,...Q}),K=Object.freeze({...L,body:"",hidden:!1}),le=Object.freeze({width:null,height:null}),Lt=Object.freeze({...le,...Q});function fe(t,e=0){const n=t.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(t);return isNaN(o)?0:r(o)}else if(n!==t){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(t.slice(0,t.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return e}const de=/[\s,]+/;function he(t,e){e.split(de).forEach(n=>{switch(n.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}const Mt={...Lt,preserveAspectRatio:""};function ht(t){const e={...Mt},n=(r,o)=>t.getAttribute(r)||o;return e.width=n("width",null),e.height=n("height",null),e.rotate=fe(n("rotate","")),he(e,n("flip","")),e.preserveAspectRatio=n("preserveAspectRatio",n("preserveaspectratio","")),e}function pe(t,e){for(const n in Mt)if(t[n]!==e[n])return!0;return!1}const k=/^[a-z0-9]+(-[a-z0-9]+)*$/,M=(t,e,n,r="")=>{const o=t.split(":");if(t.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),c=o.pop(),u={provider:o.length>0?o[0]:r,prefix:c,name:a};return e&&!z(u)?null:u}const s=o[0],i=s.split("-");if(i.length>1){const a={provider:r,prefix:i.shift(),name:i.join("-")};return e&&!z(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:s};return e&&!z(a,n)?null:a}return null},z=(t,e)=>t?!!((t.provider===""||t.provider.match(k))&&(e&&t.prefix===""||t.prefix.match(k))&&t.name.match(k)):!1;function ge(t,e){const n={};!t.hFlip!=!e.hFlip&&(n.hFlip=!0),!t.vFlip!=!e.vFlip&&(n.vFlip=!0);const r=((t.rotate||0)+(e.rotate||0))%4;return r&&(n.rotate=r),n}function pt(t,e){const n=ge(t,e);for(const r in K)r in Q?r in t&&!(r in n)&&(n[r]=Q[r]):r in e?n[r]=e[r]:r in t&&(n[r]=t[r]);return n}function me(t,e){const n=t.icons,r=t.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=r[i]&&r[i].parent,c=a&&s(a);c&&(o[i]=[a].concat(c))}return o[i]}return(e||Object.keys(n).concat(Object.keys(r))).forEach(s),o}function ye(t,e,n){const r=t.icons,o=t.aliases||Object.create(null);let s={};function i(a){s=pt(r[a]||o[a],s)}return i(e),n.forEach(i),pt(t,s)}function Nt(t,e){const n=[];if(typeof t!="object"||typeof t.icons!="object")return n;t.not_found instanceof Array&&t.not_found.forEach(o=>{e(o,null),n.push(o)});const r=me(t);for(const o in r){const s=r[o];s&&(e(o,ye(t,o,s)),n.push(o))}return n}const be={provider:"",aliases:{},not_found:{},...Et};function G(t,e){for(const n in e)if(n in t&&typeof t[n]!=typeof e[n])return!1;return!0}function Rt(t){if(typeof t!="object"||t===null)return null;const e=t;if(typeof e.prefix!="string"||!t.icons||typeof t.icons!="object"||!G(t,be))return null;const n=e.icons;for(const o in n){const s=n[o];if(!o.match(k)||typeof s.body!="string"||!G(s,K))return null}const r=e.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(k)||typeof i!="string"||!n[i]&&!r[i]||!G(s,K))return null}return e}const $=Object.create(null);function we(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:new Set}}function S(t,e){const n=$[t]||($[t]=Object.create(null));return n[e]||(n[e]=we(t,e))}function ct(t,e){return Rt(e)?Nt(e,(n,r)=>{r?t.icons[n]=r:t.missing.add(n)}):[]}function Ie(t,e,n){try{if(typeof n.body=="string")return t.icons[e]={...n},!0}catch{}return!1}function xe(t,e){let n=[];return(typeof t=="string"?[t]:Object.keys($)).forEach(o=>{(typeof o=="string"&&typeof e=="string"?[e]:Object.keys($[o]||{})).forEach(i=>{const a=S(o,i);n=n.concat(Object.keys(a.icons).map(c=>(o!==""?"@"+o+":":"")+i+":"+c))})}),n}let _=!1;function Ft(t){return typeof t=="boolean"&&(_=t),_}function O(t){const e=typeof t=="string"?M(t,!0,_):t;if(e){const n=S(e.provider,e.prefix),r=e.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function Dt(t,e){const n=M(t,!0,_);if(!n)return!1;const r=S(n.provider,n.prefix);return Ie(r,n.name,e)}function gt(t,e){if(typeof t!="object")return!1;if(typeof e!="string"&&(e=t.provider||""),_&&!e&&!t.prefix){let o=!1;return Rt(t)&&(t.prefix="",Nt(t,(s,i)=>{i&&Dt(s,i)&&(o=!0)})),o}const n=t.prefix;if(!z({provider:e,prefix:n,name:"a"}))return!1;const r=S(e,n);return!!ct(r,t)}function Se(t){return!!O(t)}function Ce(t){const e=O(t);return e?{...L,...e}:null}function Ae(t){const e={loaded:[],missing:[],pending:[]},n=Object.create(null);t.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return t.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,a=o.name,c=n[s]||(n[s]=Object.create(null)),u=c[i]||(c[i]=S(s,i));let l;a in u.icons?l=e.loaded:i===""||u.missing.has(a)?l=e.missing:l=e.pending;const d={provider:s,prefix:i,name:a};l.push(d)}),e}function zt(t,e){t.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==e))})}function ve(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const e=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!e.length)return;let n=!1;const r=t.provider,o=t.prefix;e.forEach(s=>{const i=s.icons,a=i.pending.length;i.pending=i.pending.filter(c=>{if(c.prefix!==o)return!0;const u=c.name;if(t.icons[u])i.loaded.push({provider:r,prefix:o,name:u});else if(t.missing.has(u))i.missing.push({provider:r,prefix:o,name:u});else return n=!0,!0;return!1}),i.pending.length!==a&&(n||zt([t],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let Pe=0;function Te(t,e,n){const r=Pe++,o=zt.bind(null,n,r);if(!e.pending.length)return o;const s={id:r,icons:e,callback:t,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}const tt=Object.create(null);function mt(t,e){tt[t]=e}function et(t){return tt[t]||tt[""]}function ke(t,e=!0,n=!1){const r=[];return t.forEach(o=>{const s=typeof o=="string"?M(o,e,n):o;s&&r.push(s)}),r}var je={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function _e(t,e,n,r){const o=t.resources.length,s=t.random?Math.floor(Math.random()*o):t.index;let i;if(t.random){let p=t.resources.slice(0);for(i=[];p.length>1;){const I=Math.floor(Math.random()*p.length);i.push(p[I]),p=p.slice(0,I).concat(p.slice(I+1))}i=i.concat(p)}else i=t.resources.slice(s).concat(t.resources.slice(0,s));const a=Date.now();let c="pending",u=0,l,d=null,h=[],m=[];typeof r=="function"&&m.push(r);function y(){d&&(clearTimeout(d),d=null)}function b(){c==="pending"&&(c="aborted"),y(),h.forEach(p=>{p.status==="pending"&&(p.status="aborted")}),h=[]}function x(p,I){I&&(m=[]),typeof p=="function"&&m.push(p)}function C(){return{startTime:a,payload:e,status:c,queriesSent:u,queriesPending:h.length,subscribe:x,abort:b}}function w(){c="failed",m.forEach(p=>{p(void 0,l)})}function g(){h.forEach(p=>{p.status==="pending"&&(p.status="aborted")}),h=[]}function ee(p,I,P){const N=I!=="success";switch(h=h.filter(A=>A!==p),c){case"pending":break;case"failed":if(N||!t.dataAfterTimeout)return;break;default:return}if(I==="abort"){l=P,w();return}if(N){l=P,h.length||(i.length?W():w());return}if(y(),g(),!t.random){const A=t.resources.indexOf(p.resource);A!==-1&&A!==t.index&&(t.index=A)}c="completed",m.forEach(A=>{A(P)})}function W(){if(c!=="pending")return;y();const p=i.shift();if(p===void 0){if(h.length){d=setTimeout(()=>{y(),c==="pending"&&(g(),w())},t.timeout);return}w();return}const I={status:"pending",resource:p,callback:(P,N)=>{ee(I,P,N)}};h.push(I),u++,d=setTimeout(W,t.rotate),n(p,e,I.callback)}return setTimeout(W),C}function Ht(t){const e={...je,...t};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function o(a,c,u){const l=_e(e,a,c,(d,h)=>{r(),u&&u(d,h)});return n.push(l),l}function s(a){return n.find(c=>a(c))||null}return{query:o,find:s,setIndex:a=>{e.index=a},getIndex:()=>e.index,cleanup:r}}function at(t){let e;if(typeof t.resources=="string")e=[t.resources];else if(e=t.resources,!(e instanceof Array)||!e.length)return null;return{resources:e,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}const q=Object.create(null),T=["https://api.simplesvg.com","https://api.unisvg.com"],H=[];for(;T.length>0;)T.length===1||Math.random()>.5?H.push(T.shift()):H.push(T.pop());q[""]=at({resources:["https://api.iconify.design"].concat(H)});function yt(t,e){const n=at(e);return n===null?!1:(q[t]=n,!0)}function V(t){return q[t]}function Oe(){return Object.keys(q)}function bt(){}const J=Object.create(null);function Ee(t){if(!J[t]){const e=V(t);if(!e)return;const n=Ht(e),r={config:e,redundancy:n};J[t]=r}return J[t]}function Qt(t,e,n){let r,o;if(typeof t=="string"){const s=et(t);if(!s)return n(void 0,424),bt;o=s.send;const i=Ee(t);i&&(r=i.redundancy)}else{const s=at(t);if(s){r=Ht(s);const i=t.resources?t.resources[0]:"",a=et(i);a&&(o=a.send)}}return!r||!o?(n(void 0,424),bt):r.query(e,o,n)().abort}const wt="iconify2",E="iconify",$t=E+"-count",It=E+"-version",Ut=36e5,Le=168;function nt(t,e){try{return t.getItem(e)}catch{}}function ut(t,e,n){try{return t.setItem(e,n),!0}catch{}}function xt(t,e){try{t.removeItem(e)}catch{}}function ot(t,e){return ut(t,$t,e.toString())}function rt(t){return parseInt(nt(t,$t))||0}const v={local:!0,session:!0},qt={local:new Set,session:new Set};let lt=!1;function Me(t){lt=t}let D=typeof window>"u"?{}:window;function Vt(t){const e=t+"Storage";try{if(D&&D[e]&&typeof D[e].length=="number")return D[e]}catch{}v[t]=!1}function Bt(t,e){const n=Vt(t);if(!n)return;const r=nt(n,It);if(r!==wt){if(r){const a=rt(n);for(let c=0;c<a;c++)xt(n,E+c.toString())}ut(n,It,wt),ot(n,0);return}const o=Math.floor(Date.now()/Ut)-Le,s=a=>{const c=E+a.toString(),u=nt(n,c);if(typeof u=="string"){try{const l=JSON.parse(u);if(typeof l=="object"&&typeof l.cached=="number"&&l.cached>o&&typeof l.provider=="string"&&typeof l.data=="object"&&typeof l.data.prefix=="string"&&e(l,a))return!0}catch{}xt(n,c)}};let i=rt(n);for(let a=i-1;a>=0;a--)s(a)||(a===i-1?(i--,ot(n,i)):qt[t].add(a))}function Wt(){if(!lt){Me(!0);for(const t in v)Bt(t,e=>{const n=e.data,r=e.provider,o=n.prefix,s=S(r,o);if(!ct(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function Ne(t,e){const n=t.lastModifiedCached;if(n&&n>=e)return n===e;if(t.lastModifiedCached=e,n)for(const r in v)Bt(r,o=>{const s=o.data;return o.provider!==t.provider||s.prefix!==t.prefix||s.lastModified===e});return!0}function Re(t,e){lt||Wt();function n(r){let o;if(!v[r]||!(o=Vt(r)))return;const s=qt[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=rt(o),!ot(o,i+1))return;const a={cached:Math.floor(Date.now()/Ut),provider:t.provider,data:e};return ut(o,E+i.toString(),JSON.stringify(a))}e.lastModified&&!Ne(t,e.lastModified)||Object.keys(e.icons).length&&(e.not_found&&(e=Object.assign({},e),delete e.not_found),n("local")||n("session"))}function St(){}function Fe(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,ve(t)}))}function De(t,e){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(e).sort():t.iconsToLoad=e,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:n,prefix:r}=t,o=t.iconsToLoad;delete t.iconsToLoad;let s;if(!o||!(s=et(n)))return;s.prepare(n,r,o).forEach(a=>{Qt(n,a,c=>{if(typeof c!="object")a.icons.forEach(u=>{t.missing.add(u)});else try{const u=ct(t,c);if(!u.length)return;const l=t.pendingIcons;l&&u.forEach(d=>{l.delete(d)}),Re(t,c)}catch(u){console.error(u)}Fe(t)})})}))}const ft=(t,e)=>{const n=ke(t,!0,Ft()),r=Ae(n);if(!r.pending.length){let c=!0;return e&&setTimeout(()=>{c&&e(r.loaded,r.missing,r.pending,St)}),()=>{c=!1}}const o=Object.create(null),s=[];let i,a;return r.pending.forEach(c=>{const{provider:u,prefix:l}=c;if(l===a&&u===i)return;i=u,a=l,s.push(S(u,l));const d=o[u]||(o[u]=Object.create(null));d[l]||(d[l]=[])}),r.pending.forEach(c=>{const{provider:u,prefix:l,name:d}=c,h=S(u,l),m=h.pendingIcons||(h.pendingIcons=new Set);m.has(d)||(m.add(d),o[u][l].push(d))}),s.forEach(c=>{const{provider:u,prefix:l}=c;o[u][l].length&&De(c,o[u][l])}),e?Te(e,r,s):St},ze=t=>new Promise((e,n)=>{const r=typeof t=="string"?M(t,!0):t;if(!r){n(t);return}ft([r||t],o=>{if(o.length&&r){const s=O(r);if(s){e({...L,...s});return}}n(t)})});function He(t){try{const e=typeof t=="string"?JSON.parse(t):t;if(typeof e.body=="string")return{...e}}catch{}}function Qe(t,e){const n=typeof t=="string"?M(t,!0,!0):null;if(!n){const s=He(t);return{value:t,data:s}}const r=O(n);if(r!==void 0||!n.prefix)return{value:t,name:n,data:r};const o=ft([n],()=>e(t,n,O(n)));return{value:t,name:n,loading:o}}function X(t){return t.hasAttribute("inline")}let Gt=!1;try{Gt=navigator.vendor.indexOf("Apple")===0}catch{}function $e(t,e){switch(e){case"svg":case"bg":case"mask":return e}return e!=="style"&&(Gt||t.indexOf("<a")===-1)?"svg":t.indexOf("currentColor")===-1?"bg":"mask"}const Ue=/(-?[0-9.]*[0-9]+[0-9.]*)/g,qe=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function st(t,e,n){if(e===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*e*n)/n;if(typeof t!="string")return t;const r=t.split(Ue);if(r===null||!r.length)return t;const o=[];let s=r.shift(),i=qe.test(s);for(;;){if(i){const a=parseFloat(s);isNaN(a)?o.push(s):o.push(Math.ceil(a*e*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}const Ve=t=>t==="unset"||t==="undefined"||t==="none";function Jt(t,e){const n={...L,...t},r={...Lt,...e},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(y=>{const b=[],x=y.hFlip,C=y.vFlip;let w=y.rotate;x?C?w+=2:(b.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),b.push("scale(-1 1)"),o.top=o.left=0):C&&(b.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),b.push("scale(1 -1)"),o.top=o.left=0);let g;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:g=o.height/2+o.top,b.unshift("rotate(90 "+g.toString()+" "+g.toString()+")");break;case 2:b.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:g=o.width/2+o.left,b.unshift("rotate(-90 "+g.toString()+" "+g.toString()+")");break}w%2===1&&(o.left!==o.top&&(g=o.left,o.left=o.top,o.top=g),o.width!==o.height&&(g=o.width,o.width=o.height,o.height=g)),b.length&&(s='<g transform="'+b.join(" ")+'">'+s+"</g>")});const i=r.width,a=r.height,c=o.width,u=o.height;let l,d;i===null?(d=a===null?"1em":a==="auto"?u:a,l=st(d,c/u)):(l=i==="auto"?c:i,d=a===null?st(l,u/c):a==="auto"?u:a);const h={},m=(y,b)=>{Ve(b)||(h[y]=b.toString())};return m("width",l),m("height",d),h.viewBox=o.left.toString()+" "+o.top.toString()+" "+c.toString()+" "+u.toString(),{attributes:h,body:s}}const Be=()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}};let U=Be();function We(t){U=t}function Ge(){return U}function Je(t,e){const n=V(t);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=e+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function Xe(t){return t===404}const Ye=(t,e,n)=>{const r=[],o=Je(t,e),s="icons";let i={type:s,provider:t,prefix:e,icons:[]},a=0;return n.forEach((c,u)=>{a+=c.length+1,a>=o&&u>0&&(r.push(i),i={type:s,provider:t,prefix:e,icons:[]},a=c.length),i.icons.push(c)}),r.push(i),r};function Ze(t){if(typeof t=="string"){const e=V(t);if(e)return e.path}return"/"}const Ke=(t,e,n)=>{if(!U){n("abort",424);return}let r=Ze(e.provider);switch(e.type){case"icons":{const s=e.prefix,a=e.icons.join(","),c=new URLSearchParams({icons:a});r+=s+".json?"+c.toString();break}case"custom":{const s=e.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;U(t+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(Xe(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},tn={prepare:Ye,send:Ke};function Ct(t,e){switch(t){case"local":case"session":v[t]=e;break;case"all":for(const n in v)v[n]=e;break}}const Y="data-style";let Xt="";function en(t){Xt=t}function At(t,e){let n=Array.from(t.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(Y));n||(n=document.createElement("style"),n.setAttribute(Y,Y),t.appendChild(n)),n.textContent=":host{display:inline-block;vertical-align:"+(e?"-0.125em":"0")+"}span,svg{display:block}"+Xt}function Yt(){mt("",tn),Ft(!0);let t;try{t=window}catch{}if(t){if(Wt(),t.IconifyPreload!==void 0){const n=t.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof n=="object"&&n!==null&&(n instanceof Array?n:[n]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!gt(o))&&console.error(r)}catch{console.error(r)}})}if(t.IconifyProviders!==void 0){const n=t.IconifyProviders;if(typeof n=="object"&&n!==null)for(const r in n){const o="IconifyProviders["+r+"] is invalid.";try{const s=n[r];if(typeof s!="object"||!s||s.resources===void 0)continue;yt(r,s)||console.error(o)}catch{console.error(o)}}}}return{enableCache:n=>Ct(n,!0),disableCache:n=>Ct(n,!1),iconExists:Se,getIcon:Ce,listIcons:xe,addIcon:Dt,addCollection:gt,calculateSize:st,buildIcon:Jt,loadIcons:ft,loadIcon:ze,addAPIProvider:yt,appendCustomStyle:en,_api:{getAPIConfig:V,setAPIModule:mt,sendAPIQuery:Qt,setFetch:We,getFetch:Ge,listAPIProviders:Oe}}}function Zt(t,e){let n=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in e)n+=" "+r+'="'+e[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+t+"</svg>"}function nn(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function on(t){return"data:image/svg+xml,"+nn(t)}function rn(t){return'url("'+on(t)+'")'}const it={"background-color":"currentColor"},Kt={"background-color":"transparent"},vt={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Pt={"-webkit-mask":it,mask:it,background:Kt};for(const t in Pt){const e=Pt[t];for(const n in vt)e[t+"-"+n]=vt[n]}function Tt(t){return t?t+(t.match(/^[-0-9.]+$/)?"px":""):"inherit"}function sn(t,e,n){const r=document.createElement("span");let o=t.body;o.indexOf("<a")!==-1&&(o+="<!-- "+Date.now()+" -->");const s=t.attributes,i=Zt(o,{...s,width:e.width+"",height:e.height+""}),a=rn(i),c=r.style,u={"--svg":a,width:Tt(s.width),height:Tt(s.height),...n?it:Kt};for(const l in u)c.setProperty(l,u[l]);return r}let j;function cn(){try{j=window.trustedTypes.createPolicy("iconify",{createHTML:t=>t})}catch{j=null}}function an(t){return j===void 0&&cn(),j?j.createHTML(t):t}function un(t){const e=document.createElement("span"),n=t.attributes;let r="";n.width||(r="width: inherit;"),n.height||(r+="height: inherit;"),r&&(n.style=r);const o=Zt(t.body,n);return e.innerHTML=an(o),e.firstChild}function kt(t,e){const n=e.icon.data,r=e.customisations,o=Jt(n,r);r.preserveAspectRatio&&(o.attributes.preserveAspectRatio=r.preserveAspectRatio);const s=e.renderedMode;let i;switch(s){case"svg":i=un(o);break;default:i=sn(o,{...L,...n},s==="mask")}const a=Array.from(t.childNodes).find(c=>{const u=c.tagName&&c.tagName.toUpperCase();return u==="SPAN"||u==="SVG"});a?i.tagName==="SPAN"&&a.tagName===i.tagName?a.setAttribute("style",i.getAttribute("style")):t.replaceChild(i,a):t.appendChild(i)}function jt(t,e,n){const r=n&&(n.rendered?n:n.lastRender);return{rendered:!1,inline:e,icon:t,lastRender:r}}function ln(t="iconify-icon"){let e,n;try{e=window.customElements,n=window.HTMLElement}catch{return}if(!e||!n)return;const r=e.get(t);if(r)return r;const o=["icon","mode","inline","width","height","rotate","flip"],s=class extends n{constructor(){super();R(this,"_shadowRoot");R(this,"_state");R(this,"_checkQueued",!1);const c=this._shadowRoot=this.attachShadow({mode:"open"}),u=X(this);At(c,u),this._state=jt({value:""},u),this._queueCheck()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(c){if(c==="inline"){const u=X(this),l=this._state;u!==l.inline&&(l.inline=u,At(this._shadowRoot,u))}else this._queueCheck()}get icon(){const c=this.getAttribute("icon");if(c&&c.slice(0,1)==="{")try{return JSON.parse(c)}catch{}return c}set icon(c){typeof c=="object"&&(c=JSON.stringify(c)),this.setAttribute("icon",c)}get inline(){return X(this)}set inline(c){c?this.setAttribute("inline","true"):this.removeAttribute("inline")}restartAnimation(){const c=this._state;if(c.rendered){const u=this._shadowRoot;if(c.renderedMode==="svg")try{u.lastChild.setCurrentTime(0);return}catch{}kt(u,c)}}get status(){const c=this._state;return c.rendered?"rendered":c.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const c=this._state,u=this.getAttribute("icon");if(u!==c.icon.value){this._iconChanged(u);return}if(!c.rendered)return;const l=this.getAttribute("mode"),d=ht(this);(c.attrMode!==l||pe(c.customisations,d))&&this._renderIcon(c.icon,d,l)}_iconChanged(c){const u=Qe(c,(l,d,h)=>{const m=this._state;if(m.rendered||this.getAttribute("icon")!==l)return;const y={value:l,name:d,data:h};y.data?this._gotIconData(y):m.icon=y});u.data?this._gotIconData(u):this._state=jt(u,this._state.inline,this._state)}_gotIconData(c){this._checkQueued=!1,this._renderIcon(c,ht(this),this.getAttribute("mode"))}_renderIcon(c,u,l){const d=$e(c.data.body,l),h=this._state.inline;kt(this._shadowRoot,this._state={rendered:!0,icon:c,inline:h,customisations:u,attrMode:l,renderedMode:d})}};o.forEach(a=>{a in s.prototype||Object.defineProperty(s.prototype,a,{get:function(){return this.getAttribute(a)},set:function(c){c!==null?this.setAttribute(a,c):this.removeAttribute(a)}})});const i=Yt();for(const a in i)s[a]=s.prototype[a]=i[a];return e.define(t,s),s}ln()||Yt();const Cn=f.shape({appLogo:f.node,appName:f.string,theme:f.shape({background:f.string}),enableConnect:f.bool,enableLocale:f.bool,navigation:f.arrayOf(f.shape({title:f.oneOfType([f.string,f.object]),link:f.oneOfType([f.string,f.object]),icon:f.string,items:f.arrayOf(f.shape({title:f.oneOfType([f.string,f.object]),link:f.oneOfType([f.string,f.object])}))}))}),fn=f.shape({showText:f.bool,showRole:f.bool,switchDid:f.bool,switchProfile:f.bool,switchPassport:f.bool,disableLogout:f.bool,onLogin:f.func,onLogout:f.func,onSwitchDid:f.func,onSwitchProfile:f.func,onSwitchPassport:f.func,menu:f.array,menuRender:f.func,dark:f.bool,size:f.number}),B=(t,e,n="children")=>t.map(r=>Array.isArray(r[n])?e({...r,[n]:B(r[n],e,n)}):e(r)),An=(t,e="children")=>{const n=[];return B(t,r=>n.push(r),e),n},dt=(t,e,n="children")=>t.map(r=>({...r})).filter(r=>{const o=r[n];if(Array.isArray(o)){const i=dt(o,e,n);r[n]=i!=null&&i.length?i:void 0}const s={filteredChildren:r[n],isLeaf:!(o!=null&&o.length)};return e(r,s)}),dn=t=>/^https?:\/\//.test(t),vn=t=>/^[\w-]+:[\w-]+$/.test(t),hn=t=>{if(!t||!(t!=null&&t.startsWith("/")))return!1;const e=o=>o.endsWith("/")?o:`${o}/`,n=e(window.location.pathname),r=e(new URL(t,window.location.origin).pathname);return n.startsWith(r)},Pn=(t=[])=>{const e=t.map((r,o)=>({path:r,index:o})).filter(r=>hn(r.path));return e!=null&&e.length?e.slice(1).reduce((r,o)=>r.path.length>=o.path.length?r:o,e[0]).index:-1};var _t,Ot;const Tn=((_t=window==null?void 0:window.blocklet)==null?void 0:_t.groupPrefix)||((Ot=window==null?void 0:window.blocklet)==null?void 0:Ot.prefix)||"/",pn=t=>{const e={...t},n=t==null?void 0:t.background;return typeof n=="string"?e.background={header:n,footer:n,default:n}:n&&typeof n=="object"&&(e.background={header:n.header||n.default,footer:n.footer||n.default,default:n.default}),e},gn=(t,e="en")=>{if(!(t!=null&&t.length))return t;const n=(o,s)=>typeof o=="string"?o:typeof o=="object"?o[s]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o,r=(o,s)=>{if(typeof o=="string"){if(dn(o)){const a=new URL(o);return a.searchParams.set("locale",s),a.href}const i=new URL(o,window.location.origin);return i.searchParams.set("locale",s),i.pathname+i.search}return typeof o=="object"?o[s]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o};return B(t,o=>{var s;return{...o,title:n(o.title,e),link:(s=o.items)!=null&&s.length?o.link:r(o.link,e)}},"items")},mn=t=>B(t,e=>e.role?{...e,role:Array.isArray(e.role)?e.role:[e.role]}:e,"items"),yn=t=>{if(!(t!=null&&t.length))return null;const e=mn(t),n={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[]};return e.forEach(r=>{var o;r.section?Array.isArray(r.section)?r.section.forEach(s=>{var i;(i=n[s])==null||i.push(r)}):typeof r.section=="string"&&((o=n[r.section])==null||o.push(r)):n.header.push(r)}),n},kn=t=>{if(!t)return null;const e={...t};return e.theme=pn(e.theme),e.navigation=yn(bn(e.navigation)),e},bn=(t=[])=>dt(t,(e,n)=>{var r;return!!e.link||((r=n.filteredChildren)==null?void 0:r.length)},"items"),wn=(t,e)=>dt(t,(n,r)=>{var s;const o=!n.role||e&&n.role.includes(e);return r.isLeaf?o:o&&((s=r.filteredChildren)==null?void 0:s.length)},"items");function te({formattedBlocklet:t,addons:e,sessionManagerProps:n}){var h,m,y,b;const r=Z.useContext(re),{locale:o}=se()||{},{enableConnect:s=!0,enableLocale:i=!0}=t,a=!!((h=r==null?void 0:r.session)!=null&&h.user);let c=gn((m=t==null?void 0:t.navigation)==null?void 0:m.sessionManager,o)||[];c=wn(c,(b=(y=r==null?void 0:r.session)==null?void 0:y.user)==null?void 0:b.role);const l=(()=>{if(e&&typeof e!="function")return Array.isArray(e)?e:[e];let x=[];if(i&&o&&x.push(F.jsx(ue,{showText:!1},"locale-selector")),s&&r){const C=[];a&&(c?c.slice(0,5):[]).forEach(g=>{C.push({label:g.title,icon:g.icon?F.jsx("iconify-icon",{icon:g.icon,height:24,style:{marginRight:8}}):null,component:"a",href:g.link,key:g.link})}),x.push(F.jsx(ie,{session:r.session,locale:o,menu:C,showRole:!0,...n},"session-manager"))}return typeof e=="function"&&(x=e(x)||[]),x})();return Z.createElement(F.Fragment,null,...Array.isArray(l)?l:[l])}te.propTypes={formattedBlocklet:f.object.isRequired,addons:f.oneOfType([f.func,f.node]),sessionManagerProps:fn};te.defaultProps={addons:null,sessionManagerProps:{showRole:!0}};const jn=()=>{const t=ce();Z.useEffect(()=>{t.wallet&&ae(()=>import("./index-1bb44511.js").then(e=>e.i),["assets/index-1bb44511.js","assets/index-f5164e7a.js","assets/index-d8bbb108.css"]).then(e=>{e.call||(e=e.default),e.call("arcHideTopBar","{}")}).catch(e=>{console.error("load dsbridge error",e)})},[t])};export{te as H,wn as a,Cn as b,An as c,Pn as d,vn as e,kn as f,gn as g,dn as i,B as m,Tn as p,fn as s,jn as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{aq as a,ar as t,as as e,j as r,at as o}from"./index-f5164e7a.js";const i={zh:a(t),en:a(e)};function p(s){return function(n){return r.jsx(o,{translations:i,children:r.jsx(s,{...n})})}}export{p as w};
|
package/dist/index.html
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
padding: 0;
|
|
15
15
|
}
|
|
16
16
|
</style>
|
|
17
|
-
<script type="module" crossorigin src="/.well-known/service/static/assets/index-
|
|
17
|
+
<script type="module" crossorigin src="/.well-known/service/static/assets/index-f5164e7a.js"></script>
|
|
18
18
|
<link rel="stylesheet" href="/.well-known/service/static/assets/index-d8bbb108.css">
|
|
19
19
|
</head>
|
|
20
20
|
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.21-beta-
|
|
6
|
+
"version": "1.16.21-beta-445a8baa",
|
|
7
7
|
"description": "Provide unified services for every blocklet",
|
|
8
8
|
"main": "api/index.js",
|
|
9
9
|
"files": [
|
|
@@ -32,17 +32,17 @@
|
|
|
32
32
|
"author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
|
|
33
33
|
"license": "Apache-2.0",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@abtnode/analytics": "1.16.21-beta-
|
|
36
|
-
"@abtnode/auth": "1.16.21-beta-
|
|
37
|
-
"@abtnode/client": "1.16.21-beta-
|
|
38
|
-
"@abtnode/connect-storage": "1.16.21-beta-
|
|
39
|
-
"@abtnode/constant": "1.16.21-beta-
|
|
40
|
-
"@abtnode/core": "1.16.21-beta-
|
|
41
|
-
"@abtnode/cron": "1.16.21-beta-
|
|
42
|
-
"@abtnode/logger": "1.16.21-beta-
|
|
43
|
-
"@abtnode/models": "1.16.21-beta-
|
|
44
|
-
"@abtnode/router-templates": "1.16.21-beta-
|
|
45
|
-
"@abtnode/util": "1.16.21-beta-
|
|
35
|
+
"@abtnode/analytics": "1.16.21-beta-445a8baa",
|
|
36
|
+
"@abtnode/auth": "1.16.21-beta-445a8baa",
|
|
37
|
+
"@abtnode/client": "1.16.21-beta-445a8baa",
|
|
38
|
+
"@abtnode/connect-storage": "1.16.21-beta-445a8baa",
|
|
39
|
+
"@abtnode/constant": "1.16.21-beta-445a8baa",
|
|
40
|
+
"@abtnode/core": "1.16.21-beta-445a8baa",
|
|
41
|
+
"@abtnode/cron": "1.16.21-beta-445a8baa",
|
|
42
|
+
"@abtnode/logger": "1.16.21-beta-445a8baa",
|
|
43
|
+
"@abtnode/models": "1.16.21-beta-445a8baa",
|
|
44
|
+
"@abtnode/router-templates": "1.16.21-beta-445a8baa",
|
|
45
|
+
"@abtnode/util": "1.16.21-beta-445a8baa",
|
|
46
46
|
"@arcblock/did": "^1.18.107",
|
|
47
47
|
"@arcblock/did-auth": "1.18.107",
|
|
48
48
|
"@arcblock/did-ext": "^1.18.107",
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
"@arcblock/jwt": "1.18.107",
|
|
52
52
|
"@arcblock/validator": "^1.18.107",
|
|
53
53
|
"@arcblock/ws": "1.18.107",
|
|
54
|
-
"@blocklet/constant": "1.16.21-beta-
|
|
54
|
+
"@blocklet/constant": "1.16.21-beta-445a8baa",
|
|
55
55
|
"@blocklet/form-builder": "^0.1.11",
|
|
56
56
|
"@blocklet/form-collector": "^0.1.6",
|
|
57
|
-
"@blocklet/meta": "1.16.21-beta-
|
|
58
|
-
"@blocklet/sdk": "1.16.21-beta-
|
|
57
|
+
"@blocklet/meta": "1.16.21-beta-445a8baa",
|
|
58
|
+
"@blocklet/sdk": "1.16.21-beta-445a8baa",
|
|
59
59
|
"@did-connect/authenticator": "^2.2.1",
|
|
60
60
|
"@did-connect/relay-adapter-express": "^2.2.1",
|
|
61
61
|
"@ocap/client": "1.18.107",
|
|
@@ -94,12 +94,12 @@
|
|
|
94
94
|
},
|
|
95
95
|
"resolutions": {},
|
|
96
96
|
"devDependencies": {
|
|
97
|
-
"@abtnode/ux": "1.16.21-beta-
|
|
97
|
+
"@abtnode/ux": "1.16.21-beta-445a8baa",
|
|
98
98
|
"@arcblock/did-connect": "^2.8.23",
|
|
99
99
|
"@arcblock/icons": "^2.8.23",
|
|
100
100
|
"@arcblock/ux": "^2.8.23",
|
|
101
101
|
"@blocklet/launcher-layout": "2.2.48",
|
|
102
|
-
"@blocklet/tracker": "1.16.21-beta-
|
|
102
|
+
"@blocklet/tracker": "1.16.21-beta-445a8baa",
|
|
103
103
|
"@blocklet/ui-react": "^2.8.23",
|
|
104
104
|
"@emotion/react": "^11.10.4",
|
|
105
105
|
"@emotion/styled": "^11.10.4",
|
|
@@ -171,5 +171,5 @@
|
|
|
171
171
|
"url": "https://github.com/ArcBlock/blocklet-server/issues",
|
|
172
172
|
"email": "shijun@arcblock.io"
|
|
173
173
|
},
|
|
174
|
-
"gitHead": "
|
|
174
|
+
"gitHead": "7a7ff8be7f424775c3bde0eead773d8e6177fa1a"
|
|
175
175
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as x,a6 as P,q as R,bz as j,O as D,r as a,c as S,bS as O,by as W,j as u,ak as k}from"./index-083250b9.js";import{A,S as B}from"./add-component-core-66a45b18.js";import"./uniqBy-fc210c99.js";import"./page-header-019df943.js";import"./index-e3c64d38.js";import"./Hidden-044066d7.js";import"./index-7459a528.js";import"./lottie-f5655201.js";import"./launch-result-message-059e66b9.js";import"./index-47bae6fd.js";import"./EditIcon-79afd5b5.js";import"./Done-4913cb12.js";import"./Google-f4730226.js";import"./TextField-28208fa6.js";import"./FormControl-4d1cdf2f.js";import"./useFormControl-843f7ec1.js";import"./InputLabel-11d30ba9.js";import"./Select-30f10046.js";import"./logo-uploader-22a56926.js";import"./index-934fd771.js";import"./api-e6404804.js";import"./jss-plugin-props-sort.esm-cb0612f4.js";import"./toPropertyKey-acc744d8.js";import"./confirm-7d40329e.js";import"./DialogContentText-855679d0.js";import"./Alert-581fdcb3.js";import"./format-error-830807a3.js";import"./ListItem-6c35df03.js";import"./listItemButtonClasses-c3cee84e.js";import"./util-780cf48d.js";import"./index-f96f1b84.js";import"./TableRow-1552cfd7.js";import"./index-e0c3eeb2.js";import"./session-31bb32fc.js";import"./did-address-2c29ac5b.js";import"./Stepper-689869b7.js";import"./ArrowDropDown-270417bd.js";import"./useLocalStorage-a3ca5221.js";import"./Add-2bb1e6e8.js";import"./Launch-7978d5e7.js";import"./DeleteOutline-998142bb.js";import"./click-to-copy-cbd1cb5e.js";import"./fallback-4badf2a0.js";import"./index-417c97c8.js";import"./Search-12c94cce.js";import"./Grid-fcaccff2.js";import"./InputAdornment-d3c7e19b.js";import"./preact.module-783a6d9f.js";import"./content-layout-b4ac5618.js";import"./use-blocklet-info-for-connect-did-spaces-68cf257e.js";import"./spaces-a80ed23f.js";import"./index-9a3767dd.js";import"./index-11e7e93d.js";import"./ExpandMore-a3d09f07.js";import"./ButtonGroup-bc20050d.js";function Ut(){var l;const{t:d}=x(),{blocklet:r}=P(),[h]=R(),{componentDid:m}=j(),f=D(t=>t.breakpoints.down("md")),g=h.get("mode")==="dialog",e=(l=r==null?void 0:r.meta)==null?void 0:l.did,i=new URL(window.location.href),s=(i.searchParams.get("store")||"").split(",").filter(Boolean).map(t=>{try{return new URL(t.startsWith("http")?t:`https://${t}`).origin}catch(o){return console.error(o),null}}).filter(Boolean),[w,C]=a.useState(s.map(t=>({url:t,name:t.replace("https://","")}))),p=i.searchParams.get("resourceType")||"",n=i.searchParams.get("resourceDid")||m;a.useEffect(()=>{(async()=>{try{const t=await Promise.all(s.map(async o=>{const b=S(o,"/api/store.json"),{data:E}=await O.get(b);return{url:o,name:E.name}}));C(t||[])}catch(t){console.error(t)}})()},[s.join(",")]);const y=()=>{window.parent.postMessage({event:"resourceDialog.close",componentDid:m},"*")};a.useEffect(()=>{const t=W();return e&&t.connect(),()=>{e&&t.isConnected()&&t.disconnect()}},[e]);const c=({inDialog:t=!0}={})=>u.jsx(A,{stores:w,resourceType:p,resourceDid:n,mode:"embed",inDialog:t,storageKey:B(`${p}+${n}`)});return g?u.jsx(k,{className:"resource-dialog",title:d("blocklet.publish.addResource"),maxWidth:!1,fullWidth:!1,PaperProps:{style:f?{width:"100%",height:window.innerHeight}:{maxWidth:1350,minWidth:930,width:"80%"}},onClose:(t,o)=>{o!=="backdropClick"&&y()},showCloseButton:!0,disableEscapeKeyDown:!0,open:!0,children:c()}):c({inDialog:!1})}export{Ut as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bS as a}from"./index-083250b9.js";a.defaults.timeout=10*1e3;const o=a.create();export{o as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-083250b9.js";import{S as t}from"./studio-db1189bd.js";import"./index-fd64902f.js";import"./nav-menu-9b685a50.js";import"./ExpandMore-a3d09f07.js";import"./Toolbar-31156e4d.js";import"./Hidden-044066d7.js";import"./fallback-4badf2a0.js";function e(){return o.jsx(t,{children:"Coming soon..."})}export{e as default};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{u as I,a7 as w,r as y,a$ as A,j as t,G as T,V as b,bx as C,am as S,bo as B,cp as E,y as L,T as N}from"./index-083250b9.js";import{d as P,a as W}from"./domain-list-f4ec070f.js";import{d as _}from"./ExpandMore-a3d09f07.js";import{I as $}from"./index-e0c3eeb2.js";import{T as R}from"./MoreVert-5a18fa93.js";import{W as r}from"./did-address-2c29ac5b.js";import{B as H}from"./dashboard-a18e2371.js";import"./Add-2bb1e6e8.js";import"./LockIcon-20436475.js";import"./permission-10f8d5c3.js";import"./useAsync-e368a000.js";import"./session-31bb32fc.js";import"./index-7459a528.js";import"./confirm-7d40329e.js";import"./DialogContentText-855679d0.js";import"./Alert-581fdcb3.js";import"./format-error-830807a3.js";import"./useSetState-575895e7.js";import"./InfoOutlined-c94d2cb4.js";import"./OpenInNew-c32950a3.js";import"./api-e6404804.js";import"./util-780cf48d.js";import"./TextField-28208fa6.js";import"./FormControl-4d1cdf2f.js";import"./useFormControl-843f7ec1.js";import"./InputLabel-11d30ba9.js";import"./Select-30f10046.js";import"./actions-0792080c.js";import"./CardContent-4d5156b1.js";import"./index-093b88c4.js";import"./useLocalStorage-a3ca5221.js";import"./PlayArrow-b985c5f0.js";import"./ButtonGroup-bc20050d.js";import"./RadioGroup-ce209c94.js";import"./FormControlLabel-25229f01.js";import"./FormGroup-29ed0b63.js";import"./Avatar-b9ada4fd.js";import"./spaces-a80ed23f.js";import"./index-9a3767dd.js";import"./fallback-4badf2a0.js";import"./wallet-hidden-topbar-a645e342.js";import"./selector-25093faf.js";import"./index-fd64902f.js";import"./nav-menu-9b685a50.js";import"./Toolbar-31156e4d.js";import"./Hidden-044066d7.js";import"./listItemButtonClasses-c3cee84e.js";import"./Checkbox-1ac544ae.js";const K={arcblock:"ArcBlock",ethereum:"Ethereum"};function O(){var u,x,f,v,h;const{t:o,locale:j}=I(),{info:m,inService:g}=w(),[a,k]=y.useState(!1),{blocklet:e}=A(),{appDid:l,appPid:p,migratedFrom:s=[]}=e,c=(u=e.environments.find(i=>i.key==="BLOCKLET_APP_CHAIN_TYPE"))==null?void 0:u.value,d=[l?{name:o("blocklet.appId"),value:t.jsx(r,{did:l})}:null,p?{name:o("blocklet.appPid"),value:t.jsx(r,{did:p})}:null,(s==null?void 0:s.length)>1?{name:o("blocklet.alsoKnownAs"),value:t.jsxs("div",{children:[(a?s.slice(1):s.slice(1,2)).map(i=>t.jsx(r,{did:i.appDid})),s.length>2&&t.jsx(T,{style:{marginLeft:"18px"},endIcon:a?t.jsx(P,{}):t.jsx(_,{}),onClick:()=>k(!a),children:o(a?"common.collapseAll":"blocklet.router.showAllDIDs")})]})}:null,{name:o("common.name"),value:b(e,!0)},{name:o("common.status"),value:t.jsx(H,{status:e.status,source:e.source})},C(e)?{name:"NFT",value:t.jsx(r,{external:!0,href:S((x=e==null?void 0:e.controller)==null?void 0:x.chainHost,(f=e==null?void 0:e.controller)==null?void 0:f.nftId,"asset"),did:(v=e==null?void 0:e.controller)==null?void 0:v.nftId})}:null,{name:o("blocklet.installedAt"),value:B(e.installedAt,j)},{name:o("blocklet.overview.accessControl"),value:o(`team.whoCanAccess.${E(e)}.title`)},{name:o("common.owner"),value:(h=e.settings)!=null&&h.owner?t.jsx(r,{did:e.settings.owner.did}):"--"},{name:o("blocklet.config.walletType.name"),value:K[c||"arcblock"]||c},e.externalSkSource?{name:o("blocklet.skSource"),value:e.externalSkSource}:null].filter(Boolean);g&&d.push({name:o("common.serverDid"),value:t.jsx(r,{did:m.did})},{name:o("common.serverVersion"),value:t.jsx(R,{children:m.version})});const D=i=>i.map(n=>t.jsx($,{style:{display:"flex",alignItems:"flex-start"},valueComponent:"div",nameWidth:120,name:n.name,nameFormatter:()=>n.name,children:n.value},n.name));return t.jsxs(V,{component:"div",children:[t.jsx(W,{}),t.jsx("div",{className:"title",children:t.jsx("span",{children:o("common.basicInfo")})}),t.jsx("div",{className:"basicInfo",children:D(d)})]})}O.propTypes={};const V=L(N)`
|
|
2
|
-
.title {
|
|
3
|
-
font-size: 1.2rem;
|
|
4
|
-
font-weight: bold;
|
|
5
|
-
margin-top: ${o=>o.theme.spacing(5)};
|
|
6
|
-
margin-bottom: ${o=>o.theme.spacing(3)};
|
|
7
|
-
|
|
8
|
-
&.first {
|
|
9
|
-
margin-top: 0;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
`;export{O as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as n,bz as l,O as c,j as o,ak as d,B as u}from"./index-083250b9.js";import h from"./index-e01d5c38.js";import"./useSetState-575895e7.js";import"./index-634ff875.js";import"./FilterList-37b3abc0.js";import"./TableRow-1552cfd7.js";import"./Checkbox-1ac544ae.js";import"./FormControlLabel-25229f01.js";import"./useFormControl-843f7ec1.js";import"./FormControl-4d1cdf2f.js";import"./FormGroup-29ed0b63.js";import"./InputLabel-11d30ba9.js";import"./confirm-7d40329e.js";import"./DialogContentText-855679d0.js";import"./Alert-581fdcb3.js";import"./format-error-830807a3.js";import"./Select-30f10046.js";import"./TextField-28208fa6.js";import"./index-093b88c4.js";import"./LastPage-9496a359.js";import"./Toolbar-31156e4d.js";import"./index-c452ebd8.js";import"./redux-2be0c609.js";import"./toPropertyKey-acc744d8.js";import"./Grid-fcaccff2.js";import"./Search-12c94cce.js";import"./MoreVert-5a18fa93.js";import"./did-address-2c29ac5b.js";import"./ChevronRight-0082b3dc.js";import"./Avatar-b9ada4fd.js";import"./useLocalStorage-a3ca5221.js";import"./session-31bb32fc.js";import"./InputAdornment-d3c7e19b.js";import"./Download-b3f2c53c.js";import"./DeleteOutline-998142bb.js";import"./index-934fd771.js";import"./index-9a3767dd.js";import"./ExpandMore-a3d09f07.js";import"./OpenInNew-c32950a3.js";import"./api-e6404804.js";const i=new URL(window.location.href),r=i.searchParams.get("mode")==="dialog",g=r?"":i.searchParams.get("padding")||"";function io(){const{t:e}=n(),{componentDid:s}=l(),p=c(a=>a.breakpoints.down("md")),m=()=>{window.parent.postMessage({event:"resourceDialog.close",componentDid:s},"*")},t=o.jsx(h,{padding:g});return r?o.jsx(d,{className:"resource-dialog",title:e("blocklet.publish.createResource"),maxWidth:!1,fullWidth:!1,PaperProps:{style:p?{width:"100%",height:window.innerHeight}:{maxWidth:1350,minWidth:930,width:"80%"}},onClose:m,showCloseButton:!0,disableEscapeKeyDown:!0,open:!0,children:o.jsx(u,{sx:{height:"72vh",overflow:"auto",position:"relative"},children:t})}):t}export{io as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as o,bh as t}from"./index-083250b9.js";function e(){return o.useContext(t)}export{e as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{aq as a,ar as t,as as e,j as r,at as o}from"./index-083250b9.js";const i={zh:a(t),en:a(e)};function p(s){return function(n){return r.jsx(o,{translations:i,children:r.jsx(s,{...n})})}}export{p as w};
|