@abtnode/blocklet-services 1.16.29-beta-db5c4ed6 → 1.16.29-beta-bb5685f8
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/api/routes/env.js +2 -1
- package/dist/assets/{Add-CG-F3Tpq.js → Add-Brs6l0hU.js} +1 -1
- package/dist/assets/{AddBox-CCE1buV8.js → AddBox-BorsWH1L.js} +1 -1
- package/dist/assets/{Alert-cwZghN5o.js → Alert-CdrO9wp_.js} +1 -1
- package/dist/assets/{ArrowDropDown-DpHnrXJX.js → ArrowDropDown-Cc7ZV2yN.js} +1 -1
- package/dist/assets/{Avatar-BVTgZMZu.js → Avatar-B857twI0.js} +1 -1
- package/dist/assets/{ButtonGroup-Cf877fOo.js → ButtonGroup-CNCUbNBn.js} +1 -1
- package/dist/assets/{CheckCircle-CZETHIjv.js → CheckCircle-OSzkr55G.js} +1 -1
- package/dist/assets/{ChevronRight-B1-v0rVj.js → ChevronRight-p9uIbU8Z.js} +1 -1
- package/dist/assets/{Close-DM3JyAUN.js → Close-gciQI04i.js} +1 -1
- package/dist/assets/{CloseOutlined-D-nYpxl4.js → CloseOutlined-Xl6vJm1S.js} +1 -1
- package/dist/assets/{Delete-DJZzf2v3.js → Delete-k49MPvRz.js} +1 -1
- package/dist/assets/{DeleteOutline-UAdOMkx7.js → DeleteOutline-QSrwg0EI.js} +1 -1
- package/dist/assets/{Done-CIjx7jUD.js → Done-D_Xh37ry.js} +1 -1
- package/dist/assets/{Download-CZGyacWn.js → Download-B2JnXf0Y.js} +1 -1
- package/dist/assets/{Edit-DUj2eyUz.js → Edit-Bj54pAe_.js} +1 -1
- package/dist/assets/{EditIcon-jpbTcPi9.js → EditIcon-489vuPgf.js} +1 -1
- package/dist/assets/{Error-CzevJZgV.js → Error-DVFEbqrz.js} +1 -1
- package/dist/assets/{ExpandMore-Vsh2QVwZ.js → ExpandMore-B8-mtsJf.js} +1 -1
- package/dist/assets/{FilterList-Cy1sL14k.js → FilterList-Du3mVkNU.js} +1 -1
- package/dist/assets/{FormControl-B_Do5Nt6.js → FormControl-DrLoqvI1.js} +1 -1
- package/dist/assets/{FormControlLabel-BDYHQJ8F.js → FormControlLabel-BZ-Na1Px.js} +1 -1
- package/dist/assets/{FormGroup-Bk12j31H.js → FormGroup-B_cYMk58.js} +1 -1
- package/dist/assets/{Google-CPv9gImr.js → Google-1aQCgZJc.js} +1 -1
- package/dist/assets/{Hidden-kVeQMxEt.js → Hidden-B3_ybJ-q.js} +1 -1
- package/dist/assets/{InfoOutlined-DUs9-7mj.js → InfoOutlined-5DVg0LZC.js} +1 -1
- package/dist/assets/{InputAdornment-C-wpGP7M.js → InputAdornment-Dmqc2UlU.js} +1 -1
- package/dist/assets/{InputLabel-4YX1ylv6.js → InputLabel-ys_ApPlk.js} +1 -1
- package/dist/assets/{LastPage-BfloM2Wq.js → LastPage-BlouWXDK.js} +1 -1
- package/dist/assets/{Launch-CahVoyyw.js → Launch-BT1RubZl.js} +1 -1
- package/dist/assets/{LaunchOutlined-CK6AtL0o.js → LaunchOutlined-_SVqRfwQ.js} +1 -1
- package/dist/assets/{Link-D9C6v4KL.js → Link-ltWIbLQC.js} +1 -1
- package/dist/assets/{ListItemText-CbVOTWQ3.js → ListItemText-CK7nMTkm.js} +1 -1
- package/dist/assets/{LoadingButton-CIR80MCf.js → LoadingButton-B9MhTSHg.js} +1 -1
- package/dist/assets/{LockIcon-C20NfK7J.js → LockIcon-Bt33Hpov.js} +1 -1
- package/dist/assets/{Loop-AFtqcSsh.js → Loop-Cw5ml29r.js} +1 -1
- package/dist/assets/{MoreHoriz-kAuD1nY3.js → MoreHoriz-CcbBublh.js} +1 -1
- package/dist/assets/{MoreVert-Dd_rZHl1.js → MoreVert-CB4vQPic.js} +1 -1
- package/dist/assets/{OpenInNew-DYXjNtnC.js → OpenInNew-BqTIjahQ.js} +1 -1
- package/dist/assets/{Pagination-8KVsI0JZ.js → Pagination-DASlGbyu.js} +1 -1
- package/dist/assets/{PlayArrow-s9OSCCm9.js → PlayArrow-vh3KxOxB.js} +1 -1
- package/dist/assets/{QuestionMarkCircle-50eq7smQ.js → QuestionMarkCircle-iO2RyeuL.js} +1 -1
- package/dist/assets/{RadioGroup-DImJzaoP.js → RadioGroup-BN2d11MQ.js} +1 -1
- package/dist/assets/{Search-CxTEsXhT.js → Search-6e7HNczH.js} +1 -1
- package/dist/assets/{Select-D6CeNImJ.js → Select-C_8EtoAI.js} +1 -1
- package/dist/assets/{ServerLogo-dvjXsp5I.js → ServerLogo-BVgOVZYs.js} +1 -1
- package/dist/assets/{Skeleton-DL2VL97S.js → Skeleton-BnhPRGgN.js} +1 -1
- package/dist/assets/{Slider-DSplqaCn.js → Slider-BAB85oRN.js} +1 -1
- package/dist/assets/{Stepper-DJQ-xHUp.js → Stepper-CC1pyQEm.js} +1 -1
- package/dist/assets/{TextField-DVioGsc-.js → TextField-COPeEWpZ.js} +1 -1
- package/dist/assets/{Toolbar-CRxjvb2_.js → Toolbar-BPW2rPOy.js} +1 -1
- package/dist/assets/{ViewList-2sUBAhN9.js → ViewList-DF9-4lGA.js} +1 -1
- package/dist/assets/{access-control-q6rCI632.js → access-control-diYEKGpc.js} +1 -1
- package/dist/assets/{actions-DLwaHSiX.js → actions-CGml5EzX.js} +1 -1
- package/dist/assets/{add-component-core-B3gU-T0w.js → add-component-core-B8i7T4Kg.js} +1 -1
- package/dist/assets/{add-resource-b81lLJ0f.js → add-resource-YZL6z_wU.js} +1 -1
- package/dist/assets/{addon-FuoBpuOX.js → addon-OfXnspdE.js} +1 -1
- package/dist/assets/{analytics-DiVy8Vmf.js → analytics-Dq8yHdj9.js} +1 -1
- package/dist/assets/api-DQ0CtWLc.js +1 -0
- package/dist/assets/{audit-logs-Bv-gENHC.js → audit-logs-BYoVbCT9.js} +1 -1
- package/dist/assets/{button-eQ0RcFyP.js → button-CFuVKG7l.js} +1 -1
- package/dist/assets/{click-to-copy-C0t70-Pv.js → click-to-copy-BFYwGrB_.js} +1 -1
- package/dist/assets/{complete-pY8wsJjf.js → complete-cYx5ykZG.js} +1 -1
- package/dist/assets/{component-BFX3kRXD.js → component-B5cayF5L.js} +1 -1
- package/dist/assets/{config-ndQXqG8O.js → config-B0F49VCo.js} +1 -1
- package/dist/assets/{config-CIbQaP5R.js → config-BbIXkvgr.js} +1 -1
- package/dist/assets/{config-navigation-CC8qHxUp.js → config-navigation-DAac71Vd.js} +1 -1
- package/dist/assets/{config-space-DN8oNvsB.js → config-space-C5zZHk3Q.js} +1 -1
- package/dist/assets/{confirm-DcZkK6Pc.js → confirm-BnMV0-HV.js} +1 -1
- package/dist/assets/{connect-6vivetnz.js → connect-BPk-2UWA.js} +1 -1
- package/dist/assets/{connect-nZhD-SxO.js → connect-CZP4VPEG.js} +1 -1
- package/dist/assets/{connect-to-BU03yn0n.js → connect-to-D5VCzm-i.js} +1 -1
- package/dist/assets/{content-layout-DgQ1ivqD.js → content-layout-B22yg9Bb.js} +1 -1
- package/dist/assets/{dashboard-DJj7YdCJ.js → dashboard-B3FiMlvK.js} +3 -3
- package/dist/assets/{did-address-1pTl5ZJp.js → did-address-B8N2tjFV.js} +1 -1
- package/dist/assets/{domain-DbHm_W8g.js → domain-e0H5zZEP.js} +1 -1
- package/dist/assets/{domain-list-D69n3xq6.js → domain-list-DgSG0eYl.js} +1 -1
- package/dist/assets/{exchange-passport-C1vO8vf7.js → exchange-passport-6c_9Fn5y.js} +1 -1
- package/dist/assets/{fallback-Co8Kc2kj.js → fallback-rmTIFQSJ.js} +1 -1
- package/dist/assets/{format-error-DSoyPyVx.js → format-error-Bl69lCj-.js} +1 -1
- package/dist/assets/{fuel-C-ZdhzZC.js → fuel-ZNj56cX4.js} +1 -1
- package/dist/assets/{fullpage-BxLSpyM0.js → fullpage-CwwzBmps.js} +1 -1
- package/dist/assets/{home-6XDnH9s-.js → home-COTTRtSb.js} +1 -1
- package/dist/assets/{iframe-BWL5r6kn.js → iframe-coF9tnYB.js} +1 -1
- package/dist/assets/{index-BWJ8VQ8o.js → index-3gowKxHt.js} +1 -1
- package/dist/assets/{index-Bc3Y41oE.js → index-5uzjMizz.js} +1 -1
- package/dist/assets/{index-B36YvF84.js → index-7WP5qycS.js} +1 -1
- package/dist/assets/{index-DpC9sww1.js → index-BBng4lwc.js} +1 -1
- package/dist/assets/{index-C82L-zg9.js → index-BJrPsPDp.js} +1 -1
- package/dist/assets/{index-D7CVGBHs.js → index-BR2_C7Zl.js} +1 -1
- package/dist/assets/{index-0Kwb6jmK.js → index-Bdg3eQL4.js} +1 -1
- package/dist/assets/{index-DRjKGjM-.js → index-BrZFXRud.js} +1 -1
- package/dist/assets/{index-DkWYK9Jo.js → index-C7HdzERt.js} +8 -8
- package/dist/assets/{index-6uPYP6zK.js → index-C9lrp93a.js} +1 -1
- package/dist/assets/{index-CHSnAsQ1.js → index-CL2MuWgy.js} +2 -2
- package/dist/assets/{index-CkaWI_Zl.js → index-CSvt-uFl.js} +1 -1
- package/dist/assets/{index-Cnmgkvme.js → index-Cj6tOOrI.js} +1 -1
- package/dist/assets/{index-BaC0Haea.js → index-Cp_x9pQ7.js} +1 -1
- package/dist/assets/{index-DJWtIeK5.js → index-CsVY8MSI.js} +1 -1
- package/dist/assets/{index-knmEO6mr.js → index-DDeCtOVE.js} +1 -1
- package/dist/assets/{index-vwRhQ5RS.js → index-DH5UmDxM.js} +1 -1
- package/dist/assets/{index-vP3Tn4O7.js → index-DLFs97ye.js} +1 -1
- package/dist/assets/{index-B8_eoYBV.js → index-DVbPOY8J.js} +1 -1
- package/dist/assets/{index-DhQKOamW.js → index-DZ-4NSdT.js} +1 -1
- package/dist/assets/{index-NRVaJz9f.js → index-DdYRNkRT.js} +1 -1
- package/dist/assets/{index-BtByfVAB.js → index-De96Lyyw.js} +1 -1
- package/dist/assets/{index-DCBDib20.js → index-DfknqkBQ.js} +1 -1
- package/dist/assets/{index-DUwoq2dS.js → index-MIJejdfR.js} +1 -1
- package/dist/assets/{index-CnDdm9g9.js → index-MfIQbGJk.js} +3 -3
- package/dist/assets/{index-CsPuSl01.js → index-OyvKdcXL.js} +1 -1
- package/dist/assets/{index-D_gLZbnC.js → index-PxS9yNQw.js} +1 -1
- package/dist/assets/{index-DViM25Vy.js → index-hKKO_ETj.js} +1 -1
- package/dist/assets/{index-CI4IafEw.js → index-xH4Oj7ao.js} +1 -1
- package/dist/assets/{index-uHERBk1s.js → index-zLmacV1e.js} +1 -1
- package/dist/assets/{index.es-CAvKNGJJ.js → index.es-BvO-sO5c.js} +1 -1
- package/dist/assets/{index.esm-OBsOHYQt.js → index.esm-dtU2uSGd.js} +1 -1
- package/dist/assets/{invitation-BgQ2lCo2.js → invitation-Iw42cpUv.js} +1 -1
- package/dist/assets/{invite-B8ygHcEw.js → invite-CVLYppb4.js} +1 -1
- package/dist/assets/{issue-passport-CQSIbZov.js → issue-passport-eurFLrCb.js} +1 -1
- package/dist/assets/{item-D_tapEj7.js → item-Dq2QNfn5.js} +1 -1
- package/dist/assets/{jss-plugin-props-sort.esm-D277VpMG.js → jss-plugin-props-sort.esm-DzavEauW.js} +1 -1
- package/dist/assets/{launch-result-message-zvz9QdJ0.js → launch-result-message-Df16VNd8.js} +1 -1
- package/dist/assets/{layout-66Qddc3Z.js → layout-CDguKnNr.js} +1 -1
- package/dist/assets/{list-header-CVFTxg9p.js → list-header-E2yyBlW8.js} +1 -1
- package/dist/assets/localization-DTZCbh2e.js +1 -0
- package/dist/assets/{log-m5_kgR9i.js → log-BMysUlUH.js} +1 -1
- package/dist/assets/{login-BCQZewGI.js → login-CWETzIqM.js} +1 -1
- package/dist/assets/{login-oauth-callback-DrGlI4fl.js → login-oauth-callback-DdEzqi_q.js} +1 -1
- package/dist/assets/{logo-uploader-BxL2AT1m.js → logo-uploader-B96Ok6Ys.js} +3 -3
- package/dist/assets/{lost-passport-CvgZJmfW.js → lost-passport-BgvFWPpw.js} +3 -3
- package/dist/assets/{lottie-C925gYap.js → lottie-CQi0bh2D.js} +1 -1
- package/dist/assets/{notifications-Dle2tsHf.js → notifications-H3utjGZ3.js} +1 -1
- package/dist/assets/{overview-RpXehI-A.js → overview-ZAPewHci.js} +1 -1
- package/dist/assets/{page-header-nMH5Nm1-.js → page-header-CLjZ-_ic.js} +1 -1
- package/dist/assets/{permission-DPowxK7C.js → permission-BTXpHNMQ.js} +1 -1
- package/dist/assets/{preferences-C1i7ovMQ.js → preferences-8FPR-jP2.js} +1 -1
- package/dist/assets/publish-resource-_ZSTQIwh.js +1 -0
- package/dist/assets/{react-DR-nB82P.js → react-DhoomF4D.js} +3 -3
- package/dist/assets/{redux-DfSDCKtt.js → redux-vempXYa0.js} +1 -1
- package/dist/assets/{resource-dialog-ifz0m_FZ.js → resource-dialog-D9_0yRlW.js} +1 -1
- package/dist/assets/{selector-C4Gh2j9t.js → selector-BNNdkkFG.js} +1 -1
- package/dist/assets/session-CkWtK0_2.js +1 -0
- package/dist/assets/{setup-BKousrMa.js → setup-DaVOczDK.js} +3 -3
- package/dist/assets/{shorten-label--VZVYLZC.js → shorten-label-HQwCiW2q.js} +1 -1
- package/dist/assets/{slicedToArray-CVLbnzuy.js → slicedToArray-V2PX1JN8.js} +1 -1
- package/dist/assets/{spaces-BGhjBX1b.js → spaces-CzJrHGyH.js} +1 -1
- package/dist/assets/{start-Be-aPrp4.js → start-DCN0_Fob.js} +1 -1
- package/dist/assets/{step-actions-CEK8mgUw.js → step-actions-DjXtFHj4.js} +1 -1
- package/dist/assets/{studio-DAsrT0p3.js → studio-DjONt7Ut.js} +1 -1
- package/dist/assets/{switch-control-CdZ7hT3y.js → switch-control-DmU8QSF4.js} +1 -1
- package/dist/assets/{toUpper-B3I7eG1g.js → toUpper-D5PDJ7_3.js} +1 -1
- package/dist/assets/{transfer--Bgmivmp.js → transfer-CZ1khuA-.js} +1 -1
- package/dist/assets/{uniqBy-BA_TMJYf.js → uniqBy-CPwHHBOm.js} +1 -1
- package/dist/assets/{unsubscribe-fhr9EaAr.js → unsubscribe-B_bxr7uP.js} +1 -1
- package/dist/assets/{url-join-JgKEtdA2.js → url-join-Dnsu_5vQ.js} +1 -1
- package/dist/assets/{use-blocklet-info-for-connect-did-spaces-rQZBR8_3.js → use-blocklet-info-for-connect-did-spaces-oRSb2cvE.js} +1 -1
- package/dist/assets/{use-mobile-DCi1_Enm.js → use-mobile-CIUcHXVJ.js} +1 -1
- package/dist/assets/{useAsync-B3RNaSvA.js → useAsync-D4jpP_Cn.js} +1 -1
- package/dist/assets/{useFormControl-oAKl9UVb.js → useFormControl-DhPkOJZO.js} +1 -1
- package/dist/assets/{useLocalStorage-BnVJN1iM.js → useLocalStorage-DLUzHeWb.js} +1 -1
- package/dist/assets/{useSetState-Bw-0RwWQ.js → useSetState-COv8V7Hh.js} +1 -1
- package/dist/assets/{useSlot-Cwz6OM5B.js → useSlot-DGpPHvLx.js} +1 -1
- package/dist/assets/{user-center-BsD4RIvy.js → user-center-foGiOHVN.js} +1 -1
- package/dist/assets/{user-sessions-COQO8nIH.js → user-sessions-Bu6WVoE0.js} +1 -1
- package/dist/assets/{util-CRACQuGi.js → util-DuWlpeLs.js} +1 -1
- package/dist/assets/{wrap-locale-CNoCPP-4.js → wrap-locale-BZGc1oQt.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +18 -18
- package/dist/assets/api-CK31hCQN.js +0 -1
- package/dist/assets/localization-BNU71z-g.js +0 -1
- package/dist/assets/publish-resource-Cdc_Imtz.js +0 -1
- package/dist/assets/session-DFjt4_rn.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b4 as a}from"./index-
|
|
1
|
+
import{b4 as a}from"./index-CL2MuWgy.js";var e=i,s=/^(?:\w+:)?\/\/(\S+)$/,l=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,n=/^[^\s\.]+\.\S{2,}$/;function i(t){if(typeof t!="string")return!1;var o=t.match(s);if(!o)return!1;var r=o[1];return r?!!(l.test(r)||n.test(r)):!1}const c=a(e);export{c as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as v,j as c,P as f,a1 as d}from"./index-
|
|
1
|
+
import{r as v,j as c,P as f,a1 as d}from"./index-CL2MuWgy.js";var o={};Object.defineProperty(o,"__esModule",{value:!0});var s=o.default=void 0;m(v);var n=c;function m(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(h){return Object.getOwnPropertyDescriptor(e,h).enumerable})),r.push.apply(r,a)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(a){y(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function y(e,t,r){return t=g(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e){var t=j(e,"string");return typeof t=="symbol"?t:String(t)}function j(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var i=function(t){return(0,n.jsxs)("svg",u(u({},t),{},{children:[(0,n.jsx)("path",{d:"M24.604 2.263L28.524 0H42.79v41.862H28.79a1 1 0 0 1-.5-.134l-15.103-8.72V8.854l1.817-1.05 3.2 1.848-1.817 1.05V31.16l12.993 7.502H39.59V3.2H29.38l-1.576.91-3.2-1.847z"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.402 31.16V10.701L13.409 3.2H3.2v35.462h10.21l1.58-.913 3.2 1.847-3.923 2.266H0V0h14.267l15.335 8.854v24.154l-1.813 1.046-3.2-1.847 1.813-1.047z"}),(0,n.jsx)("path",{d:"M138.44 27.684c.192 0 .357.075.496.224l1.344 1.472a9.584 9.584 0 0 1-3.44 2.576c-1.344.608-2.965.912-4.864.912-1.664 0-3.173-.288-4.528-.864a10.056 10.056 0 0 1-3.456-2.416c-.949-1.035-1.685-2.272-2.208-3.712-.523-1.44-.784-3.024-.784-4.752 0-1.728.272-3.312.816-4.752.555-1.44 1.328-2.677 2.32-3.712a10.444 10.444 0 0 1 3.552-2.416c1.387-.576 2.917-.864 4.592-.864 1.632 0 3.083.267 4.352.8a10.973 10.973 0 0 1 3.312 2.128l-1.12 1.584a.936.936 0 0 1-.288.288.742.742 0 0 1-.432.112c-.203 0-.443-.101-.72-.304a8.802 8.802 0 0 0-1.072-.672c-.437-.256-.981-.485-1.632-.688-.651-.203-1.461-.304-2.432-.304-1.141 0-2.187.203-3.136.608a6.885 6.885 0 0 0-2.464 1.728c-.683.747-1.216 1.67-1.6 2.768-.373 1.088-.56 2.32-.56 3.696 0 1.397.197 2.64.592 3.728.395 1.088.939 2.01 1.632 2.768a6.914 6.914 0 0 0 2.448 1.728 7.764 7.764 0 0 0 3.04.592c.661 0 1.253-.037 1.776-.112a7.843 7.843 0 0 0 1.456-.368c.448-.16.869-.363 1.264-.608a8.89 8.89 0 0 0 1.168-.912c.085-.075.176-.133.272-.176a.616.616 0 0 1 .304-.08zM149.68 16.1c1.195 0 2.272.197 3.232.592a6.54 6.54 0 0 1 2.464 1.68c.683.725 1.205 1.605 1.568 2.64.363 1.024.544 2.176.544 3.456 0 1.28-.181 2.437-.544 3.472-.363 1.035-.885 1.915-1.568 2.64a6.795 6.795 0 0 1-2.464 1.68c-.96.384-2.037.576-3.232.576-1.205 0-2.293-.192-3.264-.576a6.987 6.987 0 0 1-2.464-1.68c-.683-.725-1.211-1.605-1.584-2.64-.363-1.035-.544-2.192-.544-3.472 0-1.28.181-2.432.544-3.456.373-1.035.901-1.915 1.584-2.64a6.717 6.717 0 0 1 2.464-1.68c.971-.395 2.059-.592 3.264-.592zm0 14.304c1.536 0 2.683-.517 3.44-1.552.757-1.035 1.136-2.49 1.136-4.368 0-1.877-.379-3.333-1.136-4.368-.757-1.045-1.904-1.568-3.44-1.568-1.557 0-2.72.523-3.488 1.568-.757 1.035-1.136 2.49-1.136 4.368 0 1.877.379 3.333 1.136 4.368.768 1.035 1.931 1.552 3.488 1.552zM163.899 18.612c.352-.373.72-.715 1.104-1.024a6.73 6.73 0 0 1 1.216-.784 6.195 6.195 0 0 1 1.392-.512 6.442 6.442 0 0 1 1.6-.192c.896 0 1.68.15 2.352.448.682.299 1.253.72 1.712 1.264.458.533.805 1.179 1.04 1.936.234.757.352 1.595.352 2.512v10.352h-3.136V22.26c0-1.163-.267-2.064-.8-2.704-.534-.65-1.35-.976-2.448-.976-.8 0-1.552.192-2.256.576a7.38 7.38 0 0 0-1.936 1.536v11.92h-3.12V16.356h1.872c.437 0 .709.208.816.624l.24 1.632zM181.805 18.612c.352-.373.72-.715 1.104-1.024a6.73 6.73 0 0 1 1.216-.784 6.195 6.195 0 0 1 1.392-.512 6.448 6.448 0 0 1 1.6-.192c.896 0 1.68.15 2.352.448a4.63 4.63 0 0 1 1.712 1.264c.459.533.805 1.179 1.04 1.936.235.757.352 1.595.352 2.512v10.352h-3.136V22.26c0-1.163-.267-2.064-.8-2.704-.533-.65-1.349-.976-2.448-.976-.8 0-1.552.192-2.256.576a7.396 7.396 0 0 0-1.936 1.536v11.92h-3.12V16.356h1.872c.437 0 .709.208.816.624l.24 1.632zM207.551 22.676c0-.619-.09-1.19-.272-1.712a3.77 3.77 0 0 0-.768-1.36 3.521 3.521 0 0 0-1.248-.896c-.49-.213-1.056-.32-1.696-.32-1.312 0-2.346.379-3.104 1.136-.746.757-1.221 1.808-1.424 3.152h8.512zm2.576 7.616a6.311 6.311 0 0 1-1.328 1.168 7.926 7.926 0 0 1-1.6.784 9.664 9.664 0 0 1-1.76.448c-.597.096-1.189.144-1.776.144-1.12 0-2.16-.187-3.12-.56a7.159 7.159 0 0 1-2.48-1.664c-.693-.736-1.237-1.643-1.632-2.72-.384-1.088-.576-2.336-.576-3.744 0-1.13.176-2.181.528-3.152a7.67 7.67 0 0 1 1.504-2.56 7.064 7.064 0 0 1 2.416-1.712c.95-.416 2.016-.624 3.2-.624.992 0 1.904.165 2.736.496.843.32 1.568.79 2.176 1.408.608.619 1.083 1.381 1.424 2.288.352.907.528 1.941.528 3.104 0 .48-.053.805-.16.976-.106.16-.304.24-.592.24h-10.656c.032.97.171 1.819.416 2.544.246.715.582 1.312 1.008 1.792.438.48.955.837 1.552 1.072.598.235 1.264.352 2 .352.694 0 1.291-.08 1.792-.24.512-.16.95-.33 1.312-.512.374-.192.683-.368.928-.528.256-.16.48-.24.672-.24.256 0 .454.096.592.288l.896 1.152zM225.113 19.396a1.836 1.836 0 0 1-.288.288c-.086.064-.214.096-.384.096-.171 0-.352-.064-.544-.192a4.872 4.872 0 0 0-.704-.432 5.21 5.21 0 0 0-1.024-.432c-.395-.139-.886-.208-1.472-.208-.768 0-1.446.139-2.032.416a3.972 3.972 0 0 0-1.472 1.184c-.384.512-.678 1.136-.88 1.872-.203.736-.304 1.563-.304 2.48 0 .95.106 1.797.32 2.544.213.736.517 1.36.912 1.872.394.501.874.885 1.44 1.152a4.522 4.522 0 0 0 1.888.384c.672 0 1.226-.08 1.664-.24.437-.17.8-.352 1.088-.544.288-.192.528-.368.72-.528.192-.17.389-.256.592-.256.256 0 .453.096.592.288l.896 1.152a5.966 5.966 0 0 1-1.264 1.168c-.459.32-.95.581-1.472.784a8.34 8.34 0 0 1-1.648.448c-.566.096-1.142.144-1.728.144a7.25 7.25 0 0 1-2.848-.56 6.52 6.52 0 0 1-2.288-1.632c-.64-.715-1.147-1.59-1.52-2.624-.374-1.045-.56-2.23-.56-3.552 0-1.205.165-2.32.496-3.344.341-1.024.837-1.904 1.488-2.64a6.821 6.821 0 0 1 2.432-1.744c.96-.427 2.058-.64 3.296-.64 1.162 0 2.186.187 3.072.56a7.514 7.514 0 0 1 2.368 1.584l-.832 1.152zM234.121 32.868c-1.312 0-2.325-.368-3.04-1.104-.704-.736-1.056-1.787-1.056-3.152v-9.728h-1.888a.701.701 0 0 1-.464-.16c-.117-.117-.176-.288-.176-.512v-1.264l2.64-.368.704-4.848a.738.738 0 0 1 .24-.416.724.724 0 0 1 .48-.16h1.584v5.456h4.608v2.272h-4.608v9.52c0 .64.155 1.12.464 1.44.32.31.726.464 1.216.464.288 0 .534-.037.736-.112a3.27 3.27 0 0 0 .544-.24c.15-.096.278-.181.384-.256a.521.521 0 0 1 .288-.112c.107 0 .187.027.24.08a.694.694 0 0 1 .192.224l.928 1.504c-.512.47-1.12.832-1.824 1.088a6.362 6.362 0 0 1-2.192.384z"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.815 33.284V9H70.66a6.259 6.259 0 0 1 5.823 6.243v11.783a6.258 6.258 0 0 1-6.258 6.258h-12.41zM84.56 9h-3.335v24.321h3.335V9zM61.15 29.95V12.32h9.075a2.923 2.923 0 0 1 2.923 2.923v11.783a2.923 2.923 0 0 1-2.923 2.923H61.15zM89.243 9v24.284h12.409a6.258 6.258 0 0 0 6.259-6.258V15.243A6.259 6.259 0 0 0 102.087 9H89.243zm22.912 5.636h3.728v3.728h-3.728v-3.729zm3.728 9.321h-3.728v3.729h3.728v-3.729zM92.578 12.32v17.63h9.074a2.924 2.924 0 0 0 2.924-2.924V15.243a2.924 2.924 0 0 0-2.924-2.923h-9.074z"})]}))};i.defaultProps={width:"239",height:"42",viewBox:"0 0 239 42",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};i.displayName="connect-logo";s=o.default=i;function p({children:e,...t}){return c.jsxs(d,{color:"did",variant:"contained",...t,children:[c.jsx("span",{style:{fontWeight:400},children:e||"Continue With"}),c.jsx(s,{style:{width:"auto",height:"1.2em",margin:"0 4px 0 8px"}})]})}p.propTypes={children:f.any};p.defaultProps={children:""};export{p as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aB as vt,aC as mt,aD as X,cE as jt,aE as Ht,aG as p,r as d,aK as St,aF as at,aI as $,j as u,aJ as gt,ao as At,cz as ae,cF as Ot,cG as Xt,cH as Dt,aH as st,bj as ie,cI as ft,cJ as ce,bt as de,M as L,P as W}from"./index-CHSnAsQ1.js";let U;function _t(){if(U)return U;const t=document.createElement("div"),e=document.createElement("div");return e.style.width="10px",e.style.height="1px",t.appendChild(e),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),U="reverse",t.scrollLeft>0?U="default":(t.scrollLeft=1,t.scrollLeft===0&&(U="negative")),document.body.removeChild(t),U}function ue(t,e){const l=t.scrollLeft;if(e!=="rtl")return l;switch(_t()){case"negative":return t.scrollWidth-t.clientWidth+l;case"reverse":return t.scrollWidth-t.clientWidth-l;default:return l}}function be(t){return mt("MuiTab",t)}const pe=vt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),N=pe,fe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],he=t=>{const{classes:e,textColor:l,fullWidth:s,wrapped:n,icon:a,label:v,selected:h,disabled:b}=t,g={root:["root",a&&v&&"labelIcon",`textColor${Ht(l)}`,s&&"fullWidth",n&&"wrapped",h&&"selected",b&&"disabled"],iconWrapper:["iconWrapper"]};return gt(g,be,e)},ve=X(jt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.label&&l.icon&&e.labelIcon,e[`textColor${Ht(l.textColor)}`],l.fullWidth&&e.fullWidth,l.wrapped&&e.wrapped,{[`& .${N.iconWrapper}`]:e.iconWrapper}]}})(({theme:t,ownerState:e})=>p({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${N.iconWrapper}`]:p({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${N.selected}`]:{opacity:1},[`&.${N.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${N.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${N.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${N.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${N.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),me=d.forwardRef(function(e,l){const s=St({props:e,name:"MuiTab"}),{className:n,disabled:a=!1,disableFocusRipple:v=!1,fullWidth:h,icon:b,iconPosition:g="top",indicator:B,label:y,onChange:m,onClick:T,onFocus:F,selected:w,selectionFollowsFocus:x,textColor:D="inherit",value:R,wrapped:it=!1}=s,_=at(s,fe),V=p({},s,{disabled:a,disableFocusRipple:v,selected:w,icon:!!b,iconPosition:g,label:!!y,fullWidth:h,textColor:D,wrapped:it}),q=he(V),j=b&&y&&d.isValidElement(b)?d.cloneElement(b,{className:$(q.iconWrapper,b.props.className)}):b,tt=E=>{!w&&m&&m(E,R),T&&T(E)},K=E=>{x&&!w&&m&&m(E,R),F&&F(E)};return u.jsxs(ve,p({focusRipple:!v,className:$(q.root,n),ref:l,role:"tab","aria-selected":w,disabled:a,onClick:tt,onFocus:K,ownerState:V,tabIndex:w?0:-1},_,{children:[g==="top"||g==="start"?u.jsxs(d.Fragment,{children:[j,y]}):u.jsxs(d.Fragment,{children:[y,j]}),B]}))}),xt=me,Se=At(u.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ge=At(u.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function xe(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function ye(t,e,l,s={},n=()=>{}){const{ease:a=xe,duration:v=300}=s;let h=null;const b=e[t];let g=!1;const B=()=>{g=!0},y=m=>{if(g){n(new Error("Animation cancelled"));return}h===null&&(h=m);const T=Math.min(1,(m-h)/v);if(e[t]=a(T)*(l-b)+b,T>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(y)};return b===l?(n(new Error("Element already at target position")),B):(requestAnimationFrame(y),B)}const Ce=["onChange"],Be={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Te(t){const{onChange:e}=t,l=at(t,Ce),s=d.useRef(),n=d.useRef(null),a=()=>{s.current=n.current.offsetHeight-n.current.clientHeight};return ae(()=>{const v=Ot(()=>{const b=s.current;a(),b!==s.current&&e(s.current)}),h=Xt(n.current);return h.addEventListener("resize",v),()=>{v.clear(),h.removeEventListener("resize",v)}},[e]),d.useEffect(()=>{a(),e(s.current)},[e]),u.jsx("div",p({style:Be,ref:n},l))}function we(t){return mt("MuiTabScrollButton",t)}const Me=vt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Ie=Me,Re=["className","slots","slotProps","direction","orientation","disabled"],Ee=t=>{const{classes:e,orientation:l,disabled:s}=t;return gt({root:["root",l,s&&"disabled"]},we,e)},ze=X(jt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.orientation&&e[l.orientation]]}})(({ownerState:t})=>p({width:40,flexShrink:0,opacity:.8,[`&.${Ie.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),We=d.forwardRef(function(e,l){var s,n;const a=St({props:e,name:"MuiTabScrollButton"}),{className:v,slots:h={},slotProps:b={},direction:g}=a,B=at(a,Re),y=Dt(),m=p({isRtl:y},a),T=Ee(m),F=(s=h.StartScrollButtonIcon)!=null?s:Se,w=(n=h.EndScrollButtonIcon)!=null?n:ge,x=st({elementType:F,externalSlotProps:b.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),D=st({elementType:w,externalSlotProps:b.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return u.jsx(ze,p({component:"div",className:$(T.root,v),ref:l,role:null,ownerState:m,tabIndex:null},B,{children:g==="left"?u.jsx(F,p({},x)):u.jsx(w,p({},D))}))}),Pe=We;function ke(t){return mt("MuiTabs",t)}const Ne=vt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),ht=Ne,$e=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Nt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,$t=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,nt=(t,e,l)=>{let s=!1,n=l(t,e);for(;n;){if(n===t.firstChild){if(s)return;s=!0}const a=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||a)n=l(t,n);else{n.focus();return}}},Le=t=>{const{vertical:e,fixed:l,hideScrollbar:s,scrollableX:n,scrollableY:a,centered:v,scrollButtonsHideMobile:h,classes:b}=t;return gt({root:["root",e&&"vertical"],scroller:["scroller",l&&"fixed",s&&"hideScrollbar",n&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",v&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",h&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[s&&"hideScrollbar"]},ke,b)},Fe=X("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[{[`& .${ht.scrollButtons}`]:e.scrollButtons},{[`& .${ht.scrollButtons}`]:l.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,l.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>p({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${ht.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),je=X("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.scroller,l.fixed&&e.fixed,l.hideScrollbar&&e.hideScrollbar,l.scrollableX&&e.scrollableX,l.scrollableY&&e.scrollableY]}})(({ownerState:t})=>p({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),He=X("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.flexContainer,l.vertical&&e.flexContainerVertical,l.centered&&e.centered]}})(({ownerState:t})=>p({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),Ae=X("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>p({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),Oe=X(Te)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Lt={},Xe=d.forwardRef(function(e,l){const s=St({props:e,name:"MuiTabs"}),n=ie(),a=Dt(),{"aria-label":v,"aria-labelledby":h,action:b,centered:g=!1,children:B,className:y,component:m="div",allowScrollButtonsMobile:T=!1,indicatorColor:F="primary",onChange:w,orientation:x="horizontal",ScrollButtonComponent:D=Pe,scrollButtons:R="auto",selectionFollowsFocus:it,slots:_={},slotProps:V={},TabIndicatorProps:q={},TabScrollButtonProps:j={},textColor:tt="primary",value:K,variant:E="standard",visibleScrollbar:ct=!1}=s,Ut=at(s,$e),M=E==="scrollable",C=x==="vertical",G=C?"scrollTop":"scrollLeft",et=C?"top":"left",ot=C?"bottom":"right",dt=C?"clientHeight":"clientWidth",J=C?"height":"width",H=p({},s,{component:m,allowScrollButtonsMobile:T,indicatorColor:F,orientation:x,vertical:C,scrollButtons:R,textColor:tt,variant:E,visibleScrollbar:ct,fixed:!M,hideScrollbar:M&&!ct,scrollableX:M&&!C,scrollableY:M&&C,centered:g&&!M,scrollButtonsHideMobile:!T}),P=Le(H),Yt=st({elementType:_.StartScrollButtonIcon,externalSlotProps:V.startScrollButtonIcon,ownerState:H}),Vt=st({elementType:_.EndScrollButtonIcon,externalSlotProps:V.endScrollButtonIcon,ownerState:H}),[Ct,Gt]=d.useState(!1),[A,Bt]=d.useState(Lt),[Tt,Jt]=d.useState(!1),[wt,Qt]=d.useState(!1),[Mt,Zt]=d.useState(!1),[It,te]=d.useState({overflow:"hidden",scrollbarWidth:0}),Rt=new Map,z=d.useRef(null),O=d.useRef(null),Et=()=>{const o=z.current;let r;if(o){const i=o.getBoundingClientRect();r={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ue(o,a?"rtl":"ltr"),scrollWidth:o.scrollWidth,top:i.top,bottom:i.bottom,left:i.left,right:i.right}}let c;if(o&&K!==!1){const i=O.current.children;if(i.length>0){const f=i[Rt.get(K)];c=f?f.getBoundingClientRect():null}}return{tabsMeta:r,tabMeta:c}},Q=ft(()=>{const{tabsMeta:o,tabMeta:r}=Et();let c=0,i;if(C)i="top",r&&o&&(c=r.top-o.top+o.scrollTop);else if(i=a?"right":"left",r&&o){const S=a?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;c=(a?-1:1)*(r[i]-o[i]+S)}const f={[i]:c,[J]:r?r[J]:0};if(isNaN(A[i])||isNaN(A[J]))Bt(f);else{const S=Math.abs(A[i]-f[i]),I=Math.abs(A[J]-f[J]);(S>=1||I>=1)&&Bt(f)}}),ut=(o,{animation:r=!0}={})=>{r?ye(G,z.current,o,{duration:n.transitions.duration.standard}):z.current[G]=o},zt=o=>{let r=z.current[G];C?r+=o:(r+=o*(a?-1:1),r*=a&&_t()==="reverse"?-1:1),ut(r)},Wt=()=>{const o=z.current[dt];let r=0;const c=Array.from(O.current.children);for(let i=0;i<c.length;i+=1){const f=c[i];if(r+f[dt]>o){i===0&&(r=o);break}r+=f[dt]}return r},ee=()=>{zt(-1*Wt())},oe=()=>{zt(Wt())},le=d.useCallback(o=>{te({overflow:null,scrollbarWidth:o})},[]),re=()=>{const o={};o.scrollbarSizeListener=M?u.jsx(Oe,{onChange:le,className:$(P.scrollableX,P.hideScrollbar)}):null;const c=M&&(R==="auto"&&(Tt||wt)||R===!0);return o.scrollButtonStart=c?u.jsx(D,p({slots:{StartScrollButtonIcon:_.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Yt},orientation:x,direction:a?"right":"left",onClick:ee,disabled:!Tt},j,{className:$(P.scrollButtons,j.className)})):null,o.scrollButtonEnd=c?u.jsx(D,p({slots:{EndScrollButtonIcon:_.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Vt},orientation:x,direction:a?"left":"right",onClick:oe,disabled:!wt},j,{className:$(P.scrollButtons,j.className)})):null,o},Pt=ft(o=>{const{tabsMeta:r,tabMeta:c}=Et();if(!(!c||!r)){if(c[et]<r[et]){const i=r[G]+(c[et]-r[et]);ut(i,{animation:o})}else if(c[ot]>r[ot]){const i=r[G]+(c[ot]-r[ot]);ut(i,{animation:o})}}}),lt=ft(()=>{M&&R!==!1&&Zt(!Mt)});d.useEffect(()=>{const o=Ot(()=>{z.current&&Q()});let r;const c=S=>{S.forEach(I=>{I.removedNodes.forEach(Z=>{var k;(k=r)==null||k.unobserve(Z)}),I.addedNodes.forEach(Z=>{var k;(k=r)==null||k.observe(Z)})}),o(),lt()},i=Xt(z.current);i.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(r=new ResizeObserver(o),Array.from(O.current.children).forEach(S=>{r.observe(S)})),typeof MutationObserver<"u"&&(f=new MutationObserver(c),f.observe(O.current,{childList:!0})),()=>{var S,I;o.clear(),i.removeEventListener("resize",o),(S=f)==null||S.disconnect(),(I=r)==null||I.disconnect()}},[Q,lt]),d.useEffect(()=>{const o=Array.from(O.current.children),r=o.length;if(typeof IntersectionObserver<"u"&&r>0&&M&&R!==!1){const c=o[0],i=o[r-1],f={root:z.current,threshold:.99},S=pt=>{Jt(!pt[0].isIntersecting)},I=new IntersectionObserver(S,f);I.observe(c);const Z=pt=>{Qt(!pt[0].isIntersecting)},k=new IntersectionObserver(Z,f);return k.observe(i),()=>{I.disconnect(),k.disconnect()}}},[M,R,Mt,B==null?void 0:B.length]),d.useEffect(()=>{Gt(!0)},[]),d.useEffect(()=>{Q()}),d.useEffect(()=>{Pt(Lt!==A)},[Pt,A]),d.useImperativeHandle(b,()=>({updateIndicator:Q,updateScrollButtons:lt}),[Q,lt]);const kt=u.jsx(Ae,p({},q,{className:$(P.indicator,q.className),ownerState:H,style:p({},A,q.style)}));let rt=0;const ne=d.Children.map(B,o=>{if(!d.isValidElement(o))return null;const r=o.props.value===void 0?rt:o.props.value;Rt.set(r,rt);const c=r===K;return rt+=1,d.cloneElement(o,p({fullWidth:E==="fullWidth",indicator:c&&!Ct&&kt,selected:c,selectionFollowsFocus:it,onChange:w,textColor:tt,value:r},rt===1&&K===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),se=o=>{const r=O.current,c=ce(r).activeElement;if(c.getAttribute("role")!=="tab")return;let f=x==="horizontal"?"ArrowLeft":"ArrowUp",S=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&a&&(f="ArrowRight",S="ArrowLeft"),o.key){case f:o.preventDefault(),nt(r,c,$t);break;case S:o.preventDefault(),nt(r,c,Nt);break;case"Home":o.preventDefault(),nt(r,null,Nt);break;case"End":o.preventDefault(),nt(r,null,$t);break}},bt=re();return u.jsxs(Fe,p({className:$(P.root,y),ownerState:H,ref:l,as:m},Ut,{children:[bt.scrollButtonStart,bt.scrollbarSizeListener,u.jsxs(je,{className:P.scroller,ownerState:H,style:{overflow:It.overflow,[C?`margin${a?"Left":"Right"}`:"marginBottom"]:ct?void 0:-It.scrollbarWidth},ref:z,children:[u.jsx(He,{"aria-label":v,"aria-labelledby":h,"aria-orientation":x==="vertical"?"vertical":null,className:P.flexContainer,ownerState:H,onKeyDown:se,ref:O,role:"tablist",children:ne}),Ct&&kt]}),bt.scrollButtonEnd]}))}),yt=Xe,Ft="index",Y={tabs:`${Ft}-tabs`,tab:`${Ft}-tab`},De=de(yt)(({theme:t})=>({[`& .${Y.tabs}`]:{},[`& .${Y.tab}`]:{fontSize:"0.875rem",[t.breakpoints.up("md")]:{fontSize:"1rem"}}}));function qt({tabs:t,current:e,onChange:l,...s}){return u.jsx(yt,{scrollButtons:"auto",value:e,onChange:(n,a)=>l(a),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":{borderRadius:"100vw"},".MuiTabs-flexContainer":{borderRadius:"100vw",backgroundColor:L.backgroundsBgComponent,padding:.5,display:"inline-flex",columnGap:.25,maxWidth:"100%",overflowX:"auto"},".MuiTab-root":{borderRadius:"100vw",border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,color:L.foregroundsFgSubtile,fontSize:"13px",fontWeight:"normal",textTransform:"capitalize",transition:"background-color 0.2s ease","&.Mui-selected, &:hover":{backgroundColor:"white",borderColor:L.lineBorderBase,color:L.foregroundsFgBase}},".MuiTabs-indicator":{display:"none"},...s.sx},children:t.map(n=>u.jsx(xt,{className:Y.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}qt.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};function Kt({tabs:t,current:e,onChange:l,...s}){return u.jsx(yt,{scrollButtons:"auto",value:e,onChange:(n,a)=>l(a),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":{"&::after":{content:'""',display:"block",width:"100%",height:"1px",backgroundColor:L.strokeBorderStrong,bottom:0}},".MuiTabs-flexContainer":{display:"inline-flex",columnGap:2.5,px:0,pb:.5},".MuiTab-root":{border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,px:0,color:L.foregroundsFgSubtile,fontSize:"14px",fontWeight:500,textTransform:"capitalize",minWidth:"auto","&.Mui-selected, &:hover":{color:L.foregroundsFgBase}},".MuiTabs-indicator":{height:"1px",backgroundColor:L.foregroundsFgBase},...s.sx},children:t.map(n=>u.jsx(xt,{className:Y.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}Kt.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};function _e({tabs:t,current:e,onChange:l,...s}){return s.variant==="card"?u.jsx(qt,{...s,tabs:t,current:e,onChange:l}):s.variant==="line"?u.jsx(Kt,{...s,tabs:t,current:e,onChange:l}):u.jsx(De,{scrollButtons:"auto",variant:"scrollable",value:e,onChange:(n,a)=>l(a),indicatorColor:"primary",...s,className:[Y.tabs,s.className||""].join(" "),children:t.map(n=>u.jsx(xt,{className:Y.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}_e.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};export{ge as K,_e as T,Se as a,yt as b,xt as c,ht as t};
|
|
1
|
+
import{aB as vt,aC as mt,aD as X,cE as jt,aE as Ht,aG as p,r as d,aK as St,aF as at,aI as $,j as u,aJ as gt,ao as At,cz as ae,cF as Ot,cG as Xt,cH as Dt,aH as st,bj as ie,cI as ft,cJ as ce,bt as de,M as L,P as W}from"./index-CL2MuWgy.js";let U;function _t(){if(U)return U;const t=document.createElement("div"),e=document.createElement("div");return e.style.width="10px",e.style.height="1px",t.appendChild(e),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),U="reverse",t.scrollLeft>0?U="default":(t.scrollLeft=1,t.scrollLeft===0&&(U="negative")),document.body.removeChild(t),U}function ue(t,e){const l=t.scrollLeft;if(e!=="rtl")return l;switch(_t()){case"negative":return t.scrollWidth-t.clientWidth+l;case"reverse":return t.scrollWidth-t.clientWidth-l;default:return l}}function be(t){return mt("MuiTab",t)}const pe=vt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),N=pe,fe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],he=t=>{const{classes:e,textColor:l,fullWidth:s,wrapped:n,icon:a,label:v,selected:h,disabled:b}=t,g={root:["root",a&&v&&"labelIcon",`textColor${Ht(l)}`,s&&"fullWidth",n&&"wrapped",h&&"selected",b&&"disabled"],iconWrapper:["iconWrapper"]};return gt(g,be,e)},ve=X(jt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.label&&l.icon&&e.labelIcon,e[`textColor${Ht(l.textColor)}`],l.fullWidth&&e.fullWidth,l.wrapped&&e.wrapped,{[`& .${N.iconWrapper}`]:e.iconWrapper}]}})(({theme:t,ownerState:e})=>p({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${N.iconWrapper}`]:p({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${N.selected}`]:{opacity:1},[`&.${N.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${N.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${N.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${N.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${N.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),me=d.forwardRef(function(e,l){const s=St({props:e,name:"MuiTab"}),{className:n,disabled:a=!1,disableFocusRipple:v=!1,fullWidth:h,icon:b,iconPosition:g="top",indicator:B,label:y,onChange:m,onClick:T,onFocus:F,selected:w,selectionFollowsFocus:x,textColor:D="inherit",value:R,wrapped:it=!1}=s,_=at(s,fe),V=p({},s,{disabled:a,disableFocusRipple:v,selected:w,icon:!!b,iconPosition:g,label:!!y,fullWidth:h,textColor:D,wrapped:it}),q=he(V),j=b&&y&&d.isValidElement(b)?d.cloneElement(b,{className:$(q.iconWrapper,b.props.className)}):b,tt=E=>{!w&&m&&m(E,R),T&&T(E)},K=E=>{x&&!w&&m&&m(E,R),F&&F(E)};return u.jsxs(ve,p({focusRipple:!v,className:$(q.root,n),ref:l,role:"tab","aria-selected":w,disabled:a,onClick:tt,onFocus:K,ownerState:V,tabIndex:w?0:-1},_,{children:[g==="top"||g==="start"?u.jsxs(d.Fragment,{children:[j,y]}):u.jsxs(d.Fragment,{children:[y,j]}),B]}))}),xt=me,Se=At(u.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ge=At(u.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function xe(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function ye(t,e,l,s={},n=()=>{}){const{ease:a=xe,duration:v=300}=s;let h=null;const b=e[t];let g=!1;const B=()=>{g=!0},y=m=>{if(g){n(new Error("Animation cancelled"));return}h===null&&(h=m);const T=Math.min(1,(m-h)/v);if(e[t]=a(T)*(l-b)+b,T>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(y)};return b===l?(n(new Error("Element already at target position")),B):(requestAnimationFrame(y),B)}const Ce=["onChange"],Be={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Te(t){const{onChange:e}=t,l=at(t,Ce),s=d.useRef(),n=d.useRef(null),a=()=>{s.current=n.current.offsetHeight-n.current.clientHeight};return ae(()=>{const v=Ot(()=>{const b=s.current;a(),b!==s.current&&e(s.current)}),h=Xt(n.current);return h.addEventListener("resize",v),()=>{v.clear(),h.removeEventListener("resize",v)}},[e]),d.useEffect(()=>{a(),e(s.current)},[e]),u.jsx("div",p({style:Be,ref:n},l))}function we(t){return mt("MuiTabScrollButton",t)}const Me=vt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Ie=Me,Re=["className","slots","slotProps","direction","orientation","disabled"],Ee=t=>{const{classes:e,orientation:l,disabled:s}=t;return gt({root:["root",l,s&&"disabled"]},we,e)},ze=X(jt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.orientation&&e[l.orientation]]}})(({ownerState:t})=>p({width:40,flexShrink:0,opacity:.8,[`&.${Ie.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),We=d.forwardRef(function(e,l){var s,n;const a=St({props:e,name:"MuiTabScrollButton"}),{className:v,slots:h={},slotProps:b={},direction:g}=a,B=at(a,Re),y=Dt(),m=p({isRtl:y},a),T=Ee(m),F=(s=h.StartScrollButtonIcon)!=null?s:Se,w=(n=h.EndScrollButtonIcon)!=null?n:ge,x=st({elementType:F,externalSlotProps:b.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),D=st({elementType:w,externalSlotProps:b.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return u.jsx(ze,p({component:"div",className:$(T.root,v),ref:l,role:null,ownerState:m,tabIndex:null},B,{children:g==="left"?u.jsx(F,p({},x)):u.jsx(w,p({},D))}))}),Pe=We;function ke(t){return mt("MuiTabs",t)}const Ne=vt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),ht=Ne,$e=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Nt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,$t=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,nt=(t,e,l)=>{let s=!1,n=l(t,e);for(;n;){if(n===t.firstChild){if(s)return;s=!0}const a=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||a)n=l(t,n);else{n.focus();return}}},Le=t=>{const{vertical:e,fixed:l,hideScrollbar:s,scrollableX:n,scrollableY:a,centered:v,scrollButtonsHideMobile:h,classes:b}=t;return gt({root:["root",e&&"vertical"],scroller:["scroller",l&&"fixed",s&&"hideScrollbar",n&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",v&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",h&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[s&&"hideScrollbar"]},ke,b)},Fe=X("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[{[`& .${ht.scrollButtons}`]:e.scrollButtons},{[`& .${ht.scrollButtons}`]:l.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,l.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>p({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${ht.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),je=X("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.scroller,l.fixed&&e.fixed,l.hideScrollbar&&e.hideScrollbar,l.scrollableX&&e.scrollableX,l.scrollableY&&e.scrollableY]}})(({ownerState:t})=>p({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),He=X("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.flexContainer,l.vertical&&e.flexContainerVertical,l.centered&&e.centered]}})(({ownerState:t})=>p({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),Ae=X("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>p({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),Oe=X(Te)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Lt={},Xe=d.forwardRef(function(e,l){const s=St({props:e,name:"MuiTabs"}),n=ie(),a=Dt(),{"aria-label":v,"aria-labelledby":h,action:b,centered:g=!1,children:B,className:y,component:m="div",allowScrollButtonsMobile:T=!1,indicatorColor:F="primary",onChange:w,orientation:x="horizontal",ScrollButtonComponent:D=Pe,scrollButtons:R="auto",selectionFollowsFocus:it,slots:_={},slotProps:V={},TabIndicatorProps:q={},TabScrollButtonProps:j={},textColor:tt="primary",value:K,variant:E="standard",visibleScrollbar:ct=!1}=s,Ut=at(s,$e),M=E==="scrollable",C=x==="vertical",G=C?"scrollTop":"scrollLeft",et=C?"top":"left",ot=C?"bottom":"right",dt=C?"clientHeight":"clientWidth",J=C?"height":"width",H=p({},s,{component:m,allowScrollButtonsMobile:T,indicatorColor:F,orientation:x,vertical:C,scrollButtons:R,textColor:tt,variant:E,visibleScrollbar:ct,fixed:!M,hideScrollbar:M&&!ct,scrollableX:M&&!C,scrollableY:M&&C,centered:g&&!M,scrollButtonsHideMobile:!T}),P=Le(H),Yt=st({elementType:_.StartScrollButtonIcon,externalSlotProps:V.startScrollButtonIcon,ownerState:H}),Vt=st({elementType:_.EndScrollButtonIcon,externalSlotProps:V.endScrollButtonIcon,ownerState:H}),[Ct,Gt]=d.useState(!1),[A,Bt]=d.useState(Lt),[Tt,Jt]=d.useState(!1),[wt,Qt]=d.useState(!1),[Mt,Zt]=d.useState(!1),[It,te]=d.useState({overflow:"hidden",scrollbarWidth:0}),Rt=new Map,z=d.useRef(null),O=d.useRef(null),Et=()=>{const o=z.current;let r;if(o){const i=o.getBoundingClientRect();r={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ue(o,a?"rtl":"ltr"),scrollWidth:o.scrollWidth,top:i.top,bottom:i.bottom,left:i.left,right:i.right}}let c;if(o&&K!==!1){const i=O.current.children;if(i.length>0){const f=i[Rt.get(K)];c=f?f.getBoundingClientRect():null}}return{tabsMeta:r,tabMeta:c}},Q=ft(()=>{const{tabsMeta:o,tabMeta:r}=Et();let c=0,i;if(C)i="top",r&&o&&(c=r.top-o.top+o.scrollTop);else if(i=a?"right":"left",r&&o){const S=a?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;c=(a?-1:1)*(r[i]-o[i]+S)}const f={[i]:c,[J]:r?r[J]:0};if(isNaN(A[i])||isNaN(A[J]))Bt(f);else{const S=Math.abs(A[i]-f[i]),I=Math.abs(A[J]-f[J]);(S>=1||I>=1)&&Bt(f)}}),ut=(o,{animation:r=!0}={})=>{r?ye(G,z.current,o,{duration:n.transitions.duration.standard}):z.current[G]=o},zt=o=>{let r=z.current[G];C?r+=o:(r+=o*(a?-1:1),r*=a&&_t()==="reverse"?-1:1),ut(r)},Wt=()=>{const o=z.current[dt];let r=0;const c=Array.from(O.current.children);for(let i=0;i<c.length;i+=1){const f=c[i];if(r+f[dt]>o){i===0&&(r=o);break}r+=f[dt]}return r},ee=()=>{zt(-1*Wt())},oe=()=>{zt(Wt())},le=d.useCallback(o=>{te({overflow:null,scrollbarWidth:o})},[]),re=()=>{const o={};o.scrollbarSizeListener=M?u.jsx(Oe,{onChange:le,className:$(P.scrollableX,P.hideScrollbar)}):null;const c=M&&(R==="auto"&&(Tt||wt)||R===!0);return o.scrollButtonStart=c?u.jsx(D,p({slots:{StartScrollButtonIcon:_.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Yt},orientation:x,direction:a?"right":"left",onClick:ee,disabled:!Tt},j,{className:$(P.scrollButtons,j.className)})):null,o.scrollButtonEnd=c?u.jsx(D,p({slots:{EndScrollButtonIcon:_.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Vt},orientation:x,direction:a?"left":"right",onClick:oe,disabled:!wt},j,{className:$(P.scrollButtons,j.className)})):null,o},Pt=ft(o=>{const{tabsMeta:r,tabMeta:c}=Et();if(!(!c||!r)){if(c[et]<r[et]){const i=r[G]+(c[et]-r[et]);ut(i,{animation:o})}else if(c[ot]>r[ot]){const i=r[G]+(c[ot]-r[ot]);ut(i,{animation:o})}}}),lt=ft(()=>{M&&R!==!1&&Zt(!Mt)});d.useEffect(()=>{const o=Ot(()=>{z.current&&Q()});let r;const c=S=>{S.forEach(I=>{I.removedNodes.forEach(Z=>{var k;(k=r)==null||k.unobserve(Z)}),I.addedNodes.forEach(Z=>{var k;(k=r)==null||k.observe(Z)})}),o(),lt()},i=Xt(z.current);i.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(r=new ResizeObserver(o),Array.from(O.current.children).forEach(S=>{r.observe(S)})),typeof MutationObserver<"u"&&(f=new MutationObserver(c),f.observe(O.current,{childList:!0})),()=>{var S,I;o.clear(),i.removeEventListener("resize",o),(S=f)==null||S.disconnect(),(I=r)==null||I.disconnect()}},[Q,lt]),d.useEffect(()=>{const o=Array.from(O.current.children),r=o.length;if(typeof IntersectionObserver<"u"&&r>0&&M&&R!==!1){const c=o[0],i=o[r-1],f={root:z.current,threshold:.99},S=pt=>{Jt(!pt[0].isIntersecting)},I=new IntersectionObserver(S,f);I.observe(c);const Z=pt=>{Qt(!pt[0].isIntersecting)},k=new IntersectionObserver(Z,f);return k.observe(i),()=>{I.disconnect(),k.disconnect()}}},[M,R,Mt,B==null?void 0:B.length]),d.useEffect(()=>{Gt(!0)},[]),d.useEffect(()=>{Q()}),d.useEffect(()=>{Pt(Lt!==A)},[Pt,A]),d.useImperativeHandle(b,()=>({updateIndicator:Q,updateScrollButtons:lt}),[Q,lt]);const kt=u.jsx(Ae,p({},q,{className:$(P.indicator,q.className),ownerState:H,style:p({},A,q.style)}));let rt=0;const ne=d.Children.map(B,o=>{if(!d.isValidElement(o))return null;const r=o.props.value===void 0?rt:o.props.value;Rt.set(r,rt);const c=r===K;return rt+=1,d.cloneElement(o,p({fullWidth:E==="fullWidth",indicator:c&&!Ct&&kt,selected:c,selectionFollowsFocus:it,onChange:w,textColor:tt,value:r},rt===1&&K===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),se=o=>{const r=O.current,c=ce(r).activeElement;if(c.getAttribute("role")!=="tab")return;let f=x==="horizontal"?"ArrowLeft":"ArrowUp",S=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&a&&(f="ArrowRight",S="ArrowLeft"),o.key){case f:o.preventDefault(),nt(r,c,$t);break;case S:o.preventDefault(),nt(r,c,Nt);break;case"Home":o.preventDefault(),nt(r,null,Nt);break;case"End":o.preventDefault(),nt(r,null,$t);break}},bt=re();return u.jsxs(Fe,p({className:$(P.root,y),ownerState:H,ref:l,as:m},Ut,{children:[bt.scrollButtonStart,bt.scrollbarSizeListener,u.jsxs(je,{className:P.scroller,ownerState:H,style:{overflow:It.overflow,[C?`margin${a?"Left":"Right"}`:"marginBottom"]:ct?void 0:-It.scrollbarWidth},ref:z,children:[u.jsx(He,{"aria-label":v,"aria-labelledby":h,"aria-orientation":x==="vertical"?"vertical":null,className:P.flexContainer,ownerState:H,onKeyDown:se,ref:O,role:"tablist",children:ne}),Ct&&kt]}),bt.scrollButtonEnd]}))}),yt=Xe,Ft="index",Y={tabs:`${Ft}-tabs`,tab:`${Ft}-tab`},De=de(yt)(({theme:t})=>({[`& .${Y.tabs}`]:{},[`& .${Y.tab}`]:{fontSize:"0.875rem",[t.breakpoints.up("md")]:{fontSize:"1rem"}}}));function qt({tabs:t,current:e,onChange:l,...s}){return u.jsx(yt,{scrollButtons:"auto",value:e,onChange:(n,a)=>l(a),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":{borderRadius:"100vw"},".MuiTabs-flexContainer":{borderRadius:"100vw",backgroundColor:L.backgroundsBgComponent,padding:.5,display:"inline-flex",columnGap:.25,maxWidth:"100%",overflowX:"auto"},".MuiTab-root":{borderRadius:"100vw",border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,color:L.foregroundsFgSubtile,fontSize:"13px",fontWeight:"normal",textTransform:"capitalize",transition:"background-color 0.2s ease","&.Mui-selected, &:hover":{backgroundColor:"white",borderColor:L.lineBorderBase,color:L.foregroundsFgBase}},".MuiTabs-indicator":{display:"none"},...s.sx},children:t.map(n=>u.jsx(xt,{className:Y.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}qt.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};function Kt({tabs:t,current:e,onChange:l,...s}){return u.jsx(yt,{scrollButtons:"auto",value:e,onChange:(n,a)=>l(a),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":{"&::after":{content:'""',display:"block",width:"100%",height:"1px",backgroundColor:L.strokeBorderStrong,bottom:0}},".MuiTabs-flexContainer":{display:"inline-flex",columnGap:2.5,px:0,pb:.5},".MuiTab-root":{border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,px:0,color:L.foregroundsFgSubtile,fontSize:"14px",fontWeight:500,textTransform:"capitalize",minWidth:"auto","&.Mui-selected, &:hover":{color:L.foregroundsFgBase}},".MuiTabs-indicator":{height:"1px",backgroundColor:L.foregroundsFgBase},...s.sx},children:t.map(n=>u.jsx(xt,{className:Y.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}Kt.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};function _e({tabs:t,current:e,onChange:l,...s}){return s.variant==="card"?u.jsx(qt,{...s,tabs:t,current:e,onChange:l}):s.variant==="line"?u.jsx(Kt,{...s,tabs:t,current:e,onChange:l}):u.jsx(De,{scrollButtons:"auto",variant:"scrollable",value:e,onChange:(n,a)=>l(a),indicatorColor:"primary",...s,className:[Y.tabs,s.className||""].join(" "),children:t.map(n=>u.jsx(xt,{className:Y.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}_e.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};export{ge as K,_e as T,Se as a,yt as b,xt as c,ht as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b4 as j,cp as O}from"./index-
|
|
1
|
+
import{b4 as j,cp as O}from"./index-CL2MuWgy.js";function J(i,t){for(var r=0;r<t.length;r++){const a=t[r];if(typeof a!="string"&&!Array.isArray(a)){for(const e in a)if(e!=="default"&&!(e in i)){const s=Object.getOwnPropertyDescriptor(a,e);s&&Object.defineProperty(i,e,s.get?s:{enumerable:!0,get:()=>a[e]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}var d={default:O,call:function(i,t,r){var a="";typeof t=="function"&&(r=t,t={});var e={data:t===void 0?null:t};if(typeof r=="function"){var s="dscb"+window.dscb++;window[s]=r,e._dscbstub=s}return e=JSON.stringify(e),window._dsbridge?a=_dsbridge.call(i,e):(window._dswk||navigator.userAgent.indexOf("_dsbridge")!=-1)&&(a=prompt("_dsbridge="+i,e)),JSON.parse(a||"{}").data},register:function(i,t,r){var a=r?window._dsaf:window._dsf;window._dsInit||(window._dsInit=!0,setTimeout(function(){d.call("_dsb.dsinit")},0)),typeof t=="object"?a._obs[i]=t:a[i]=t},registerAsyn:function(i,t){this.register(i,t,!0)},hasNativeMethod:function(i,t){return this.call("_dsb.hasNativeMethod",{name:i,type:t||"all"})},disableJavascriptDialogBlock:function(i){this.call("_dsb.disableJavascriptDialogBlock",{disable:i!==!1})}};(function(){if(!window._dsf){var i={_dsf:{_obs:{}},_dsaf:{_obs:{}},dscb:0,dsBridge:d,close:function(){d.call("_dsb.closePage")},_handleMessageFromNative:function(r){var a=JSON.parse(r.data),e={id:r.callbackId,complete:!0},s=this._dsf[r.method],o=this._dsaf[r.method],p=function(u,_){e.data=u.apply(_,a),d.call("_dsb.returnValue",e)},v=function(u,_){a.push(function(w,y){e.data=w,e.complete=y!==!1,d.call("_dsb.returnValue",e)}),u.apply(_,a)};if(s)p(s,this._dsf);else if(o)v(o,this._dsaf);else{var l=r.method.split(".");if(l.length<2)return;var b=l.pop(),g=l.join("."),c=this._dsf._obs,f=c[g]||{},n=f[b];if(n&&typeof n=="function"){p(n,f);return}if(c=this._dsaf._obs,f=c[g]||{},n=f[b],n&&typeof n=="function"){v(n,f);return}}}};for(var t in i)window[t]=i[t];d.register("_hasJavascriptMethod",function(r,a){var e=r.split(".");if(e.length<2)return!!(_dsf[e]||_dsaf[e]);var r=e.pop(),s=e.join("."),o=_dsf._obs[s]||_dsaf._obs[s];return o&&!!o[r]})}})();var h=d;const N=j(h),k=J({__proto__:null,default:N},[h]);export{k as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as A,v as R,p as w,e as p}from"./index-
|
|
1
|
+
import{d as A,v as R,p as w,e as p}from"./index-DDeCtOVE.js";const O=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,x=/^[a-zA-Z]:\\/;function N(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return x.test(e)?!1:O.test(e)}const _=["http","https"],z=["nofollow"],L={};function T(e){const r=e||L,g=r.protocols||_,u=A(r.test);return function(h){R(h,"element",function(t,y,E){if(t.tagName==="a"&&typeof t.properties.href=="string"&&u(t,y,E)){const o=t.properties.href;if(N(o)?g.includes(o.slice(0,o.indexOf(":"))):o.startsWith("//")){const n=s(r.content,t),c=n&&!Array.isArray(n)?[n]:n,i=s(r.rel,t)||z,a=typeof i=="string"?w(i):i,f=s(r.target,t),l=s(r.properties,t);if(l&&Object.assign(t.properties,p(l)),a.length>0&&(t.properties.rel=[...a]),f&&(t.properties.target=f),c){const m=s(r.contentProperties,t)||{};t.children.push({type:"element",tagName:"span",properties:p(m),children:p(c)})}}}})}}function s(e,r){return typeof e=="function"?e(r):e}export{T as r};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as w,j as t,fL as rr,h as Fe,fM as nr,aM as W,u as K,N as Dt,B as T,aQ as ge,A as Ot,D as sr,fN as Ue,ab as le,ap as X,a1 as B,l as re,P as x,bO as or,cq as Te,T as ae,I as ir,eM as ar,Z as q,db as cr,a0 as de,bl as Y,q as ne,fO as lr,a9 as G,dn as dr,aV as It,E as z,a as he,c as gt,fP as At,bG as Tt,aS as mr,X as ur,Y as pr,bN as kt,k as fr,az as gr,dq as hr}from"./index-CHSnAsQ1.js";import{c as xr}from"./index-C82L-zg9.js";import{d as xe}from"./Add-CG-F3Tpq.js";import{d as vr}from"./Loop-AFtqcSsh.js";import{d as br}from"./ViewList-2sUBAhN9.js";import{L as yr,S as jr,d as Et}from"./list-header-CVFTxg9p.js";import{D as Nt,g as Sr}from"./index-DpC9sww1.js";import"./index-6uPYP6zK.js";import"./index-DViM25Vy.js";import{g as Lt}from"./resource-dialog-ifz0m_FZ.js";import{T as Pr}from"./index-B8_eoYBV.js";import{E as _t}from"./index-DJWtIeK5.js";import"./fallback-Co8Kc2kj.js";import"./index-Cnmgkvme.js";import{U as wr}from"./user-sessions-COQO8nIH.js";import{u as Q,d as ht,W as Ft,a as Cr}from"./dashboard-DJj7YdCJ.js";import{W as $e}from"./did-address-1pTl5ZJp.js";import{P as V}from"./permission-DPowxK7C.js";import{C as ye}from"./click-to-copy-C0t70-Pv.js";import{F as ke}from"./FormControl-B_Do5Nt6.js";import{I as Ee}from"./InputLabel-4YX1ylv6.js";import{S as Ne}from"./Select-D6CeNImJ.js";import{T as Ut}from"./TextField-DVioGsc-.js";import{D as Be,f as Z}from"./format-error-DSoyPyVx.js";import{A as te}from"./Alert-cwZghN5o.js";import{_ as Rr}from"./useAsync-B3RNaSvA.js";import{I as Le}from"./index-Bc3Y41oE.js";import{C as je}from"./confirm-DcZkK6Pc.js";import{u as $t}from"./session-DFjt4_rn.js";import{A as Dr}from"./Avatar-BVTgZMZu.js";import{d as Or}from"./Delete-DJZzf2v3.js";import{p as Ir}from"./index-HqFqdQ4r.js";import{A as Ar}from"./actions-DLwaHSiX.js";import{L as Tr,a as kr}from"./ListItemText-CbVOTWQ3.js";import{S as Er}from"./shorten-label--VZVYLZC.js";import{F as Nr,C as Lr}from"./FormControlLabel-BDYHQJ8F.js";import"./Search-CxTEsXhT.js";import"./FilterList-Cy1sL14k.js";import"./toPropertyKey-hKuLU48H.js";import"./useFormControl-oAKl9UVb.js";import"./FormGroup-Bk12j31H.js";import"./LastPage-BfloM2Wq.js";import"./Toolbar-CRxjvb2_.js";import"./index-BaC0Haea.js";import"./redux-DfSDCKtt.js";import"./MoreVert-Dd_rZHl1.js";import"./index-B36YvF84.js";import"./Hidden-kVeQMxEt.js";import"./MoreHoriz-kAuD1nY3.js";import"./ExpandMore-Vsh2QVwZ.js";import"./selector-C4Gh2j9t.js";import"./use-mobile-DCi1_Enm.js";import"./OpenInNew-DYXjNtnC.js";import"./CloseOutlined-D-nYpxl4.js";import"./useSlot-Cwz6OM5B.js";import"./useLocalStorage-BnVJN1iM.js";import"./PlayArrow-s9OSCCm9.js";import"./ButtonGroup-Cf877fOo.js";import"./RadioGroup-DImJzaoP.js";import"./index-0Kwb6jmK.js";import"./spaces-BGhjBX1b.js";import"./index-vwRhQ5RS.js";import"./api-CK31hCQN.js";import"./Link-D9C6v4KL.js";import"./useSetState-Bw-0RwWQ.js";var ze={};Object.defineProperty(ze,"__esModule",{value:!0});var Bt=ze.default=void 0;_r(w);var ee=t;function _r(e){return e&&e.__esModule?e:{default:e}}function xt(e,n){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(v){return Object.getOwnPropertyDescriptor(e,v).enumerable})),s.push.apply(s,i)}return s}function vt(e){for(var n=1;n<arguments.length;n++){var s=arguments[n]!=null?arguments[n]:{};n%2?xt(Object(s),!0).forEach(function(i){Fr(e,i,s[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):xt(Object(s)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(s,i))})}return e}function Fr(e,n,s){return n=Ur(n),n in e?Object.defineProperty(e,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[n]=s,e}function Ur(e){var n=$r(e,"string");return typeof n=="symbol"?n:String(n)}function $r(e,n){if(typeof e!="object"||!e)return e;var s=e[Symbol.toPrimitive];if(s!==void 0){var i=s.call(e,n||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}var We=function(n){return(0,ee.jsxs)("svg",vt(vt({},n),{},{children:[(0,ee.jsx)("g",{clipPath:"url(#clip0)",children:(0,ee.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 1.598A4.092 4.092 0 1 0 9 9.78a4.092 4.092 0 0 0 0-8.183zM7.274 3.964a2.44 2.44 0 1 1 3.452 3.451 2.44 2.44 0 0 1-3.452-3.451zm.093 6.343A4.091 4.091 0 0 0 3.275 14.4v2.722c0 .155.126.281.281.281h1.09a.281.281 0 0 0 .28-.281v-2.722a2.44 2.44 0 0 1 2.44-2.44h3.267a2.442 2.442 0 0 1 2.44 2.44v2.722c0 .155.127.281.282.281h1.088a.281.281 0 0 0 .282-.281v-2.722a4.091 4.091 0 0 0-4.092-4.091H7.367z"})}),(0,ee.jsx)("defs",{children:(0,ee.jsx)("clipPath",{id:"clip0",children:(0,ee.jsx)("path",{transform:"translate(0 .5)",d:"M0 0h18v18H0z"})})})]}))};We.defaultProps={width:"18",height:"19",viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg"};We.displayName="person";Bt=ze.default=We;var fe={},Br=e=>encodeURIComponent(e).replace(/[!'()*]/g,n=>`%${n.charCodeAt(0).toString(16).toUpperCase()}`),zt="%[a-f0-9]{2}",bt=new RegExp("("+zt+")|([^%]+?)","gi"),yt=new RegExp("("+zt+")+","gi");function _e(e,n){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;n=n||1;var s=e.slice(0,n),i=e.slice(n);return Array.prototype.concat.call([],_e(s),_e(i))}function zr(e){try{return decodeURIComponent(e)}catch{for(var n=e.match(bt)||[],s=1;s<n.length;s++)e=_e(n,s).join(""),n=e.match(bt)||[];return e}}function Wr(e){for(var n={"%FE%FF":"��","%FF%FE":"��"},s=yt.exec(e);s;){try{n[s[0]]=decodeURIComponent(s[0])}catch{var i=zr(s[0]);i!==s[0]&&(n[s[0]]=i)}s=yt.exec(e)}n["%C2"]="�";for(var v=Object.keys(n),P=0;P<v.length;P++){var C=v[P];e=e.replace(new RegExp(C,"g"),n[C])}return e}var qr=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return Wr(e)}},Mr=(e,n)=>{if(!(typeof e=="string"&&typeof n=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(n==="")return[e];const s=e.indexOf(n);return s===-1?[e]:[e.slice(0,s),e.slice(s+n.length)]},Hr=function(e,n){for(var s={},i=Object.keys(e),v=Array.isArray(n),P=0;P<i.length;P++){var C=i[P],R=e[C];(v?n.indexOf(C)!==-1:n(C,R,e))&&(s[C]=R)}return s};(function(e){const n=Br,s=qr,i=Mr,v=Hr,P=r=>r==null;function C(r){switch(r.arrayFormat){case"index":return o=>(c,l)=>{const m=c.length;return l===void 0||r.skipNull&&l===null||r.skipEmptyString&&l===""?c:l===null?[...c,[y(o,r),"[",m,"]"].join("")]:[...c,[y(o,r),"[",y(m,r),"]=",y(l,r)].join("")]};case"bracket":return o=>(c,l)=>l===void 0||r.skipNull&&l===null||r.skipEmptyString&&l===""?c:l===null?[...c,[y(o,r),"[]"].join("")]:[...c,[y(o,r),"[]=",y(l,r)].join("")];case"comma":case"separator":return o=>(c,l)=>l==null||l.length===0?c:c.length===0?[[y(o,r),"=",y(l,r)].join("")]:[[c,y(l,r)].join(r.arrayFormatSeparator)];default:return o=>(c,l)=>l===void 0||r.skipNull&&l===null||r.skipEmptyString&&l===""?c:l===null?[...c,y(o,r)]:[...c,[y(o,r),"=",y(l,r)].join("")]}}function R(r){let o;switch(r.arrayFormat){case"index":return(c,l,m)=>{if(o=/\[(\d*)\]$/.exec(c),c=c.replace(/\[\d*\]$/,""),!o){m[c]=l;return}m[c]===void 0&&(m[c]={}),m[c][o[1]]=l};case"bracket":return(c,l,m)=>{if(o=/(\[\])$/.exec(c),c=c.replace(/\[\]$/,""),!o){m[c]=l;return}if(m[c]===void 0){m[c]=[l];return}m[c]=[].concat(m[c],l)};case"comma":case"separator":return(c,l,m)=>{const S=typeof l=="string"&&l.includes(r.arrayFormatSeparator),g=typeof l=="string"&&!S&&a(l,r).includes(r.arrayFormatSeparator);l=g?a(l,r):l;const O=S||g?l.split(r.arrayFormatSeparator).map(U=>a(U,r)):l===null?l:a(l,r);m[c]=O};default:return(c,l,m)=>{if(m[c]===void 0){m[c]=l;return}m[c]=[].concat(m[c],l)}}}function p(r){if(typeof r!="string"||r.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function y(r,o){return o.encode?o.strict?n(r):encodeURIComponent(r):r}function a(r,o){return o.decode?s(r):r}function I(r){return Array.isArray(r)?r.sort():typeof r=="object"?I(Object.keys(r)).sort((o,c)=>Number(o)-Number(c)).map(o=>r[o]):r}function u(r){const o=r.indexOf("#");return o!==-1&&(r=r.slice(0,o)),r}function b(r){let o="";const c=r.indexOf("#");return c!==-1&&(o=r.slice(c)),o}function f(r){r=u(r);const o=r.indexOf("?");return o===-1?"":r.slice(o+1)}function D(r,o){return o.parseNumbers&&!Number.isNaN(Number(r))&&typeof r=="string"&&r.trim()!==""?r=Number(r):o.parseBooleans&&r!==null&&(r.toLowerCase()==="true"||r.toLowerCase()==="false")&&(r=r.toLowerCase()==="true"),r}function j(r,o){o=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},o),p(o.arrayFormatSeparator);const c=R(o),l=Object.create(null);if(typeof r!="string"||(r=r.trim().replace(/^[?#&]/,""),!r))return l;for(const m of r.split("&")){if(m==="")continue;let[S,g]=i(o.decode?m.replace(/\+/g," "):m,"=");g=g===void 0?null:["comma","separator"].includes(o.arrayFormat)?g:a(g,o),c(a(S,o),g,l)}for(const m of Object.keys(l)){const S=l[m];if(typeof S=="object"&&S!==null)for(const g of Object.keys(S))S[g]=D(S[g],o);else l[m]=D(S,o)}return o.sort===!1?l:(o.sort===!0?Object.keys(l).sort():Object.keys(l).sort(o.sort)).reduce((m,S)=>{const g=l[S];return g&&typeof g=="object"&&!Array.isArray(g)?m[S]=I(g):m[S]=g,m},Object.create(null))}e.extract=f,e.parse=j,e.stringify=(r,o)=>{if(!r)return"";o=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},o),p(o.arrayFormatSeparator);const c=g=>o.skipNull&&P(r[g])||o.skipEmptyString&&r[g]==="",l=C(o),m={};for(const g of Object.keys(r))c(g)||(m[g]=r[g]);const S=Object.keys(m);return o.sort!==!1&&S.sort(o.sort),S.map(g=>{const O=r[g];return O===void 0?"":O===null?y(g,o):Array.isArray(O)?O.reduce(l(g),[]).join("&"):y(g,o)+"="+y(O,o)}).filter(g=>g.length>0).join("&")},e.parseUrl=(r,o)=>{o=Object.assign({decode:!0},o);const[c,l]=i(r,"#");return Object.assign({url:c.split("?")[0]||"",query:j(f(r),o)},o&&o.parseFragmentIdentifier&&l?{fragmentIdentifier:a(l,o)}:{})},e.stringifyUrl=(r,o)=>{o=Object.assign({encode:!0,strict:!0},o);const c=u(r.url).split("?")[0]||"",l=e.extract(r.url),m=e.parse(l,{sort:!1}),S=Object.assign(m,r.query);let g=e.stringify(S,o);g&&(g=`?${g}`);let O=b(r.url);return r.fragmentIdentifier&&(O=`#${y(r.fragmentIdentifier,o)}`),`${c}${g}${O}`},e.pick=(r,o,c)=>{c=Object.assign({parseFragmentIdentifier:!0},c);const{url:l,query:m,fragmentIdentifier:S}=e.parseUrl(r,c);return e.stringifyUrl({url:l,query:v(m,o),fragmentIdentifier:S},c)},e.exclude=(r,o,c)=>{const l=Array.isArray(o)?m=>!o.includes(m):(m,S)=>!o(m,S);return e.pick(r,l,c)}})(fe);const ie=nr,Vr={parseNumbers:!1,parseBooleans:!1},Kr={skipNull:!1,skipEmptyString:!1},Qr=(e,n)=>{var s,i;const{navigateMode:v="push",parseOptions:P,stringifyOptions:C}=n||{},R=Object.assign(Object.assign({},Vr),P),p=Object.assign(Object.assign({},Kr),C),y=ie.useLocation(),a=(s=ie.useHistory)===null||s===void 0?void 0:s.call(ie),I=(i=ie.useNavigate)===null||i===void 0?void 0:i.call(ie),u=rr(),b=w.useRef(typeof e=="function"?e():e||{}),f=w.useMemo(()=>fe.parse(y.search,R),[y.search]),D=w.useMemo(()=>Object.assign(Object.assign({},b.current),f),[f]);return[D,Fe(r=>{const o=typeof r=="function"?r(D):r;u(),a&&a[v]({hash:y.hash,search:fe.stringify(Object.assign(Object.assign({},f),o),p)||"?"},y.state),I&&I({hash:y.hash,search:fe.stringify(Object.assign(Object.assign({},f),o),p)||"?"},{replace:v==="replace",state:y.state})})]},Xr=Qr;function qe({teamDid:e,roles:n,apps:s,onCancel:i,onSuccess:v,onError:P,endpoint:C}){const{api:R}=W(),{t:p,locale:y}=K(),a=Dt({loading:!1,error:null,activeStep:0,inviteInfo:null,role:"",remark:"",sourceAppPid:s.length>0?s[0].appId:null}),I=async()=>{if(!a.role){a.error=p("team.member.error.passportEmpty");return}const f=a.remark.trim();a.error=null,a.loading=!0;try{const{inviteInfo:D}=await R.createMemberInvitation({input:{teamDid:e,role:a.role,remark:f,sourceAppPid:a.sourceAppPid}});a.inviteInfo=D,a.activeStep=1}catch(D){const j=Z(D);a.error=j,P(D)}finally{a.loading=!1}},b=[{body:t.jsxs(T,{sx:{display:"flex",flexDirection:"column",gap:3},children:[s.length>1?t.jsxs(ke,{fullWidth:!0,children:[t.jsx(Ee,{children:p("common.sourceApp")}),t.jsx(Ne,{value:a.sourceAppPid,onChange:f=>{a.error=null,a.sourceAppPid=f.target.value},fullWidth:!0,label:p("common.passport"),disabled:a.loading,children:s.map(f=>t.jsx(ge,{value:f.appId,children:t.jsxs(T,{sx:{display:"flex",justifyContent:"space-between",gap:2,width:"100%"},children:[t.jsxs(T,{sx:{display:"flex",alignItems:"center",gap:1},children:[t.jsx(Ot,{did:f.appId,size:28}),f.appName]}),t.jsx(sr,{did:f.appId,compact:!0,responsive:!1})]})},f.appId))})]}):null,t.jsxs(ke,{fullWidth:!0,variant:"outlined",children:[t.jsx(Ee,{children:p("common.passport")}),t.jsx(Ne,{"data-cy":"invite-member-select-role",value:a.role,onChange:f=>{a.error=null,a.role=f.target.value},fullWidth:!0,label:p("common.passport"),disabled:a.loading,onKeyPress:f=>{f.key==="Enter"&&(f.preventDefault(),I())},children:n.filter(f=>f.name!=="owner").map(f=>t.jsx(ge,{value:f.name,"data-cy":`invite-member-select-option-${f.name}`,children:t.jsx("span",{children:f.title||f.name})},f.name))})]}),t.jsx(Ut,{label:p("common.remark"),autoComplete:"off",variant:"outlined",fullWidth:!0,style:{marginBottom:8},value:a.remark,onChange:f=>{a.error=null,a.remark=f.target.value},disabled:a.loading,"data-cy":"invite-member-input-remark"})]}),cancel:p("common.cancel"),confirm:p("team.member.inviteDialog.createInviteLink"),onCancel:i,onConfirm:I},{body:()=>{var D,j;const f=Ue({inviteId:(D=a.inviteInfo)==null?void 0:D.inviteId,endpoint:C});return t.jsxs("div",{children:[t.jsx(T,{sx:{fontSize:16,fontWeight:"bold"},children:p("team.member.inviteDialog.createSuccessTip",{expireDate:le((j=a.inviteInfo)==null?void 0:j.expireDate,y)})}),t.jsx("div",{style:{marginTop:"40px"}}),t.jsx(ye,{children:f})]})},confirm:p("common.confirm"),onConfirm:v}][a.activeStep];return t.jsxs(X,{title:p("common.invite"),fullWidth:!0,open:!0,showCloseButton:!1,actions:t.jsxs(t.Fragment,{children:[b.cancel&&t.jsx(B,{onClick:b.onCancel,color:"inherit",children:b.cancel}),t.jsxs(B,{onClick:b.onConfirm,color:"primary",disabled:a.loading||!a.role,variant:"contained",autoFocus:!0,children:[a.loading&&t.jsx(re,{size:16}),b.confirm]})]}),children:[t.jsx(Be,{component:"div",children:typeof b.body=="function"?b.body():b.body}),!!a.error&&t.jsx(te,{severity:"error",variant:"icon",children:a.error})]})}qe.propTypes={teamDid:x.string.isRequired,onCancel:x.func.isRequired,onSuccess:x.func.isRequired,onError:x.func,roles:x.array,apps:x.array,endpoint:x.string};qe.defaultProps={onError:()=>{},roles:[],apps:[],endpoint:""};function Me({teamDid:e,onCancel:n,onSuccess:s,onError:i,endpoint:v}){const{api:P,info:C}=W(),{api:R}=w.useContext(or),[p,y]=w.useState(!1),{t:a,locale:I}=K(),[u,b]=w.useState(""),[f,D]=w.useState(!1),[j,r]=w.useState(0),[o,c]=w.useState(""),[l,m]=w.useState(""),S=!!Te(C,"ownerNft.did"),g=Rr(async()=>{if(S){const{state:E}=await P.getDelegationState();return E}return{delegated:!0}});if(g.loading)return t.jsx(X,{title:a("team.transferNode.inviteDialog.title"),fullWidth:!0,open:!0,onClose:n,children:t.jsx("div",{style:{display:"flex",justifyContent:"center"},children:t.jsx(re,{})})});if(g.error)return t.jsx(X,{title:a("team.transferNode.inviteDialog.title"),fullWidth:!0,open:!0,onClose:n,children:t.jsx(te,{severity:"error",variant:"icon",children:Z(g.error)})});const O=async()=>{b(null),y(!0);try{const{inviteInfo:E}=await P.createTransferInvitation({input:{teamDid:e,role:"owner",remark:l.trim()}});c(E),r(H.length-1)}catch(E){const J=Z(E);b(J),i(E)}finally{y(!1)}},U=()=>{D(!0),r(1)},M=()=>{D(!1),r(0)},H=[{body:t.jsxs(ae,{component:"div",children:[t.jsxs(te,{severity:"warning",children:[t.jsx(ae,{children:a("team.transferNode.inviteDialog.tips.progress")}),t.jsx(ae,{children:a("team.transferNode.inviteDialog.tips.newOwnerPermissions")})]}),t.jsx(te,{severity:"warning",children:t.jsx(ae,{children:a("team.transferNode.inviteDialog.tips.revoke")})}),t.jsx("div",{style:{marginTop:20,marginBottom:10}}),t.jsx(Ut,{label:a("common.remark"),autoComplete:"off",variant:"outlined",fullWidth:!0,style:{marginBottom:8},value:l,onChange:E=>{b(null),m(E.target.value)},disabled:p,"data-cy":"transfer-node-input-remark"}),t.jsx("div",{style:{marginTop:20,marginBottom:10}})]}),cancel:a("common.cancel"),confirm:a("team.transferNode.inviteDialog.createInviteLink"),onCancel:n,onConfirm:S&&!Te(g,"value.delegated")?U:O},{body:()=>t.jsx(ir,{action:"delegate-transfer-nft",open:f,locale:I,checkFn:R.get,onClose:M,onSuccess:O,checkTimeout:5*60*1e3,webWalletUrl:ar(C),extraParams:{targetDID:C.did},messages:{title:a("team.transferNode.delegateDialog.title"),scan:a("team.transferNode.delegateDialog.scan"),confirm:a("team.transferNode.delegateDialog.confirm"),success:a("team.transferNode.delegateDialog.success")},popup:!0})},{body:()=>{const E=Ue({inviteId:o.inviteId,endpoint:v});return t.jsxs("div",{children:[t.jsx(Gr,{children:a("team.transferNode.inviteDialog.createSuccessTip",{expireDate:le(o.expireDate,I)})}),t.jsx("div",{style:{marginTop:"40px"}}),t.jsx(ye,{children:E})]})},confirm:a("common.confirm"),onConfirm:s}],_=H[j];return t.jsxs(X,{title:a("team.transferNode.inviteDialog.title"),fullWidth:!0,open:!0,showCloseButton:!1,actions:t.jsxs(t.Fragment,{children:[_.cancel&&t.jsx(B,{onClick:_.onCancel,color:"inherit",children:_.cancel}),t.jsxs(B,{onClick:_.onConfirm,color:"primary",disabled:p,variant:"contained",autoFocus:!0,children:[p&&t.jsx(re,{size:16}),_.confirm]})]}),children:[t.jsx(Be,{component:"div",children:typeof _.body=="function"?_.body():_.body}),!!u&&t.jsx(te,{severity:"error",variant:"icon",children:u})]})}Me.propTypes={teamDid:x.string.isRequired,onCancel:x.func.isRequired,onSuccess:x.func.isRequired,onError:x.func,endpoint:x.string};Me.defaultProps={onError:()=>{},endpoint:""};const Gr=q.div`
|
|
1
|
+
import{r as w,j as t,fL as rr,h as Fe,fM as nr,aM as W,u as K,N as Dt,B as T,aQ as ge,A as Ot,D as sr,fN as Ue,ab as le,ap as X,a1 as B,l as re,P as x,bO as or,cq as Te,T as ae,I as ir,eM as ar,Z as q,db as cr,a0 as de,bl as Y,q as ne,fO as lr,a9 as G,dn as dr,aV as It,E as z,a as he,c as gt,fP as At,bG as Tt,aS as mr,X as ur,Y as pr,bN as kt,k as fr,az as gr,dq as hr}from"./index-CL2MuWgy.js";import{c as xr}from"./index-BJrPsPDp.js";import{d as xe}from"./Add-Brs6l0hU.js";import{d as vr}from"./Loop-Cw5ml29r.js";import{d as br}from"./ViewList-DF9-4lGA.js";import{L as yr,S as jr,d as Et}from"./list-header-E2yyBlW8.js";import{D as Nt,g as Sr}from"./index-BBng4lwc.js";import"./index-C9lrp93a.js";import"./index-hKKO_ETj.js";import{g as Lt}from"./resource-dialog-D9_0yRlW.js";import{T as Pr}from"./index-DVbPOY8J.js";import{E as _t}from"./index-CsVY8MSI.js";import"./fallback-rmTIFQSJ.js";import"./index-Cj6tOOrI.js";import{U as wr}from"./user-sessions-Bu6WVoE0.js";import{u as Q,d as ht,W as Ft,a as Cr}from"./dashboard-B3FiMlvK.js";import{W as $e}from"./did-address-B8N2tjFV.js";import{P as V}from"./permission-BTXpHNMQ.js";import{C as ye}from"./click-to-copy-BFYwGrB_.js";import{F as ke}from"./FormControl-DrLoqvI1.js";import{I as Ee}from"./InputLabel-ys_ApPlk.js";import{S as Ne}from"./Select-C_8EtoAI.js";import{T as Ut}from"./TextField-COPeEWpZ.js";import{D as Be,f as Z}from"./format-error-Bl69lCj-.js";import{A as te}from"./Alert-CdrO9wp_.js";import{_ as Rr}from"./useAsync-D4jpP_Cn.js";import{I as Le}from"./index-5uzjMizz.js";import{C as je}from"./confirm-BnMV0-HV.js";import{u as $t}from"./session-CkWtK0_2.js";import{A as Dr}from"./Avatar-B857twI0.js";import{d as Or}from"./Delete-k49MPvRz.js";import{p as Ir}from"./index-HqFqdQ4r.js";import{A as Ar}from"./actions-CGml5EzX.js";import{L as Tr,a as kr}from"./ListItemText-CK7nMTkm.js";import{S as Er}from"./shorten-label-HQwCiW2q.js";import{F as Nr,C as Lr}from"./FormControlLabel-BZ-Na1Px.js";import"./Search-6e7HNczH.js";import"./FilterList-Du3mVkNU.js";import"./toPropertyKey-hKuLU48H.js";import"./useFormControl-DhPkOJZO.js";import"./FormGroup-B_cYMk58.js";import"./LastPage-BlouWXDK.js";import"./Toolbar-BPW2rPOy.js";import"./index-Cp_x9pQ7.js";import"./redux-vempXYa0.js";import"./MoreVert-CB4vQPic.js";import"./index-7WP5qycS.js";import"./Hidden-B3_ybJ-q.js";import"./MoreHoriz-CcbBublh.js";import"./ExpandMore-B8-mtsJf.js";import"./selector-BNNdkkFG.js";import"./use-mobile-CIUcHXVJ.js";import"./OpenInNew-BqTIjahQ.js";import"./CloseOutlined-Xl6vJm1S.js";import"./useSlot-DGpPHvLx.js";import"./useLocalStorage-DLUzHeWb.js";import"./PlayArrow-vh3KxOxB.js";import"./ButtonGroup-CNCUbNBn.js";import"./RadioGroup-BN2d11MQ.js";import"./index-Bdg3eQL4.js";import"./spaces-CzJrHGyH.js";import"./index-DH5UmDxM.js";import"./api-DQ0CtWLc.js";import"./Link-ltWIbLQC.js";import"./useSetState-COv8V7Hh.js";var ze={};Object.defineProperty(ze,"__esModule",{value:!0});var Bt=ze.default=void 0;_r(w);var ee=t;function _r(e){return e&&e.__esModule?e:{default:e}}function xt(e,n){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(v){return Object.getOwnPropertyDescriptor(e,v).enumerable})),s.push.apply(s,i)}return s}function vt(e){for(var n=1;n<arguments.length;n++){var s=arguments[n]!=null?arguments[n]:{};n%2?xt(Object(s),!0).forEach(function(i){Fr(e,i,s[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):xt(Object(s)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(s,i))})}return e}function Fr(e,n,s){return n=Ur(n),n in e?Object.defineProperty(e,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[n]=s,e}function Ur(e){var n=$r(e,"string");return typeof n=="symbol"?n:String(n)}function $r(e,n){if(typeof e!="object"||!e)return e;var s=e[Symbol.toPrimitive];if(s!==void 0){var i=s.call(e,n||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}var We=function(n){return(0,ee.jsxs)("svg",vt(vt({},n),{},{children:[(0,ee.jsx)("g",{clipPath:"url(#clip0)",children:(0,ee.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 1.598A4.092 4.092 0 1 0 9 9.78a4.092 4.092 0 0 0 0-8.183zM7.274 3.964a2.44 2.44 0 1 1 3.452 3.451 2.44 2.44 0 0 1-3.452-3.451zm.093 6.343A4.091 4.091 0 0 0 3.275 14.4v2.722c0 .155.126.281.281.281h1.09a.281.281 0 0 0 .28-.281v-2.722a2.44 2.44 0 0 1 2.44-2.44h3.267a2.442 2.442 0 0 1 2.44 2.44v2.722c0 .155.127.281.282.281h1.088a.281.281 0 0 0 .282-.281v-2.722a4.091 4.091 0 0 0-4.092-4.091H7.367z"})}),(0,ee.jsx)("defs",{children:(0,ee.jsx)("clipPath",{id:"clip0",children:(0,ee.jsx)("path",{transform:"translate(0 .5)",d:"M0 0h18v18H0z"})})})]}))};We.defaultProps={width:"18",height:"19",viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg"};We.displayName="person";Bt=ze.default=We;var fe={},Br=e=>encodeURIComponent(e).replace(/[!'()*]/g,n=>`%${n.charCodeAt(0).toString(16).toUpperCase()}`),zt="%[a-f0-9]{2}",bt=new RegExp("("+zt+")|([^%]+?)","gi"),yt=new RegExp("("+zt+")+","gi");function _e(e,n){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;n=n||1;var s=e.slice(0,n),i=e.slice(n);return Array.prototype.concat.call([],_e(s),_e(i))}function zr(e){try{return decodeURIComponent(e)}catch{for(var n=e.match(bt)||[],s=1;s<n.length;s++)e=_e(n,s).join(""),n=e.match(bt)||[];return e}}function Wr(e){for(var n={"%FE%FF":"��","%FF%FE":"��"},s=yt.exec(e);s;){try{n[s[0]]=decodeURIComponent(s[0])}catch{var i=zr(s[0]);i!==s[0]&&(n[s[0]]=i)}s=yt.exec(e)}n["%C2"]="�";for(var v=Object.keys(n),P=0;P<v.length;P++){var C=v[P];e=e.replace(new RegExp(C,"g"),n[C])}return e}var qr=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return Wr(e)}},Mr=(e,n)=>{if(!(typeof e=="string"&&typeof n=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(n==="")return[e];const s=e.indexOf(n);return s===-1?[e]:[e.slice(0,s),e.slice(s+n.length)]},Hr=function(e,n){for(var s={},i=Object.keys(e),v=Array.isArray(n),P=0;P<i.length;P++){var C=i[P],R=e[C];(v?n.indexOf(C)!==-1:n(C,R,e))&&(s[C]=R)}return s};(function(e){const n=Br,s=qr,i=Mr,v=Hr,P=r=>r==null;function C(r){switch(r.arrayFormat){case"index":return o=>(c,l)=>{const m=c.length;return l===void 0||r.skipNull&&l===null||r.skipEmptyString&&l===""?c:l===null?[...c,[y(o,r),"[",m,"]"].join("")]:[...c,[y(o,r),"[",y(m,r),"]=",y(l,r)].join("")]};case"bracket":return o=>(c,l)=>l===void 0||r.skipNull&&l===null||r.skipEmptyString&&l===""?c:l===null?[...c,[y(o,r),"[]"].join("")]:[...c,[y(o,r),"[]=",y(l,r)].join("")];case"comma":case"separator":return o=>(c,l)=>l==null||l.length===0?c:c.length===0?[[y(o,r),"=",y(l,r)].join("")]:[[c,y(l,r)].join(r.arrayFormatSeparator)];default:return o=>(c,l)=>l===void 0||r.skipNull&&l===null||r.skipEmptyString&&l===""?c:l===null?[...c,y(o,r)]:[...c,[y(o,r),"=",y(l,r)].join("")]}}function R(r){let o;switch(r.arrayFormat){case"index":return(c,l,m)=>{if(o=/\[(\d*)\]$/.exec(c),c=c.replace(/\[\d*\]$/,""),!o){m[c]=l;return}m[c]===void 0&&(m[c]={}),m[c][o[1]]=l};case"bracket":return(c,l,m)=>{if(o=/(\[\])$/.exec(c),c=c.replace(/\[\]$/,""),!o){m[c]=l;return}if(m[c]===void 0){m[c]=[l];return}m[c]=[].concat(m[c],l)};case"comma":case"separator":return(c,l,m)=>{const S=typeof l=="string"&&l.includes(r.arrayFormatSeparator),g=typeof l=="string"&&!S&&a(l,r).includes(r.arrayFormatSeparator);l=g?a(l,r):l;const O=S||g?l.split(r.arrayFormatSeparator).map(U=>a(U,r)):l===null?l:a(l,r);m[c]=O};default:return(c,l,m)=>{if(m[c]===void 0){m[c]=l;return}m[c]=[].concat(m[c],l)}}}function p(r){if(typeof r!="string"||r.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function y(r,o){return o.encode?o.strict?n(r):encodeURIComponent(r):r}function a(r,o){return o.decode?s(r):r}function I(r){return Array.isArray(r)?r.sort():typeof r=="object"?I(Object.keys(r)).sort((o,c)=>Number(o)-Number(c)).map(o=>r[o]):r}function u(r){const o=r.indexOf("#");return o!==-1&&(r=r.slice(0,o)),r}function b(r){let o="";const c=r.indexOf("#");return c!==-1&&(o=r.slice(c)),o}function f(r){r=u(r);const o=r.indexOf("?");return o===-1?"":r.slice(o+1)}function D(r,o){return o.parseNumbers&&!Number.isNaN(Number(r))&&typeof r=="string"&&r.trim()!==""?r=Number(r):o.parseBooleans&&r!==null&&(r.toLowerCase()==="true"||r.toLowerCase()==="false")&&(r=r.toLowerCase()==="true"),r}function j(r,o){o=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},o),p(o.arrayFormatSeparator);const c=R(o),l=Object.create(null);if(typeof r!="string"||(r=r.trim().replace(/^[?#&]/,""),!r))return l;for(const m of r.split("&")){if(m==="")continue;let[S,g]=i(o.decode?m.replace(/\+/g," "):m,"=");g=g===void 0?null:["comma","separator"].includes(o.arrayFormat)?g:a(g,o),c(a(S,o),g,l)}for(const m of Object.keys(l)){const S=l[m];if(typeof S=="object"&&S!==null)for(const g of Object.keys(S))S[g]=D(S[g],o);else l[m]=D(S,o)}return o.sort===!1?l:(o.sort===!0?Object.keys(l).sort():Object.keys(l).sort(o.sort)).reduce((m,S)=>{const g=l[S];return g&&typeof g=="object"&&!Array.isArray(g)?m[S]=I(g):m[S]=g,m},Object.create(null))}e.extract=f,e.parse=j,e.stringify=(r,o)=>{if(!r)return"";o=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},o),p(o.arrayFormatSeparator);const c=g=>o.skipNull&&P(r[g])||o.skipEmptyString&&r[g]==="",l=C(o),m={};for(const g of Object.keys(r))c(g)||(m[g]=r[g]);const S=Object.keys(m);return o.sort!==!1&&S.sort(o.sort),S.map(g=>{const O=r[g];return O===void 0?"":O===null?y(g,o):Array.isArray(O)?O.reduce(l(g),[]).join("&"):y(g,o)+"="+y(O,o)}).filter(g=>g.length>0).join("&")},e.parseUrl=(r,o)=>{o=Object.assign({decode:!0},o);const[c,l]=i(r,"#");return Object.assign({url:c.split("?")[0]||"",query:j(f(r),o)},o&&o.parseFragmentIdentifier&&l?{fragmentIdentifier:a(l,o)}:{})},e.stringifyUrl=(r,o)=>{o=Object.assign({encode:!0,strict:!0},o);const c=u(r.url).split("?")[0]||"",l=e.extract(r.url),m=e.parse(l,{sort:!1}),S=Object.assign(m,r.query);let g=e.stringify(S,o);g&&(g=`?${g}`);let O=b(r.url);return r.fragmentIdentifier&&(O=`#${y(r.fragmentIdentifier,o)}`),`${c}${g}${O}`},e.pick=(r,o,c)=>{c=Object.assign({parseFragmentIdentifier:!0},c);const{url:l,query:m,fragmentIdentifier:S}=e.parseUrl(r,c);return e.stringifyUrl({url:l,query:v(m,o),fragmentIdentifier:S},c)},e.exclude=(r,o,c)=>{const l=Array.isArray(o)?m=>!o.includes(m):(m,S)=>!o(m,S);return e.pick(r,l,c)}})(fe);const ie=nr,Vr={parseNumbers:!1,parseBooleans:!1},Kr={skipNull:!1,skipEmptyString:!1},Qr=(e,n)=>{var s,i;const{navigateMode:v="push",parseOptions:P,stringifyOptions:C}=n||{},R=Object.assign(Object.assign({},Vr),P),p=Object.assign(Object.assign({},Kr),C),y=ie.useLocation(),a=(s=ie.useHistory)===null||s===void 0?void 0:s.call(ie),I=(i=ie.useNavigate)===null||i===void 0?void 0:i.call(ie),u=rr(),b=w.useRef(typeof e=="function"?e():e||{}),f=w.useMemo(()=>fe.parse(y.search,R),[y.search]),D=w.useMemo(()=>Object.assign(Object.assign({},b.current),f),[f]);return[D,Fe(r=>{const o=typeof r=="function"?r(D):r;u(),a&&a[v]({hash:y.hash,search:fe.stringify(Object.assign(Object.assign({},f),o),p)||"?"},y.state),I&&I({hash:y.hash,search:fe.stringify(Object.assign(Object.assign({},f),o),p)||"?"},{replace:v==="replace",state:y.state})})]},Xr=Qr;function qe({teamDid:e,roles:n,apps:s,onCancel:i,onSuccess:v,onError:P,endpoint:C}){const{api:R}=W(),{t:p,locale:y}=K(),a=Dt({loading:!1,error:null,activeStep:0,inviteInfo:null,role:"",remark:"",sourceAppPid:s.length>0?s[0].appId:null}),I=async()=>{if(!a.role){a.error=p("team.member.error.passportEmpty");return}const f=a.remark.trim();a.error=null,a.loading=!0;try{const{inviteInfo:D}=await R.createMemberInvitation({input:{teamDid:e,role:a.role,remark:f,sourceAppPid:a.sourceAppPid}});a.inviteInfo=D,a.activeStep=1}catch(D){const j=Z(D);a.error=j,P(D)}finally{a.loading=!1}},b=[{body:t.jsxs(T,{sx:{display:"flex",flexDirection:"column",gap:3},children:[s.length>1?t.jsxs(ke,{fullWidth:!0,children:[t.jsx(Ee,{children:p("common.sourceApp")}),t.jsx(Ne,{value:a.sourceAppPid,onChange:f=>{a.error=null,a.sourceAppPid=f.target.value},fullWidth:!0,label:p("common.passport"),disabled:a.loading,children:s.map(f=>t.jsx(ge,{value:f.appId,children:t.jsxs(T,{sx:{display:"flex",justifyContent:"space-between",gap:2,width:"100%"},children:[t.jsxs(T,{sx:{display:"flex",alignItems:"center",gap:1},children:[t.jsx(Ot,{did:f.appId,size:28}),f.appName]}),t.jsx(sr,{did:f.appId,compact:!0,responsive:!1})]})},f.appId))})]}):null,t.jsxs(ke,{fullWidth:!0,variant:"outlined",children:[t.jsx(Ee,{children:p("common.passport")}),t.jsx(Ne,{"data-cy":"invite-member-select-role",value:a.role,onChange:f=>{a.error=null,a.role=f.target.value},fullWidth:!0,label:p("common.passport"),disabled:a.loading,onKeyPress:f=>{f.key==="Enter"&&(f.preventDefault(),I())},children:n.filter(f=>f.name!=="owner").map(f=>t.jsx(ge,{value:f.name,"data-cy":`invite-member-select-option-${f.name}`,children:t.jsx("span",{children:f.title||f.name})},f.name))})]}),t.jsx(Ut,{label:p("common.remark"),autoComplete:"off",variant:"outlined",fullWidth:!0,style:{marginBottom:8},value:a.remark,onChange:f=>{a.error=null,a.remark=f.target.value},disabled:a.loading,"data-cy":"invite-member-input-remark"})]}),cancel:p("common.cancel"),confirm:p("team.member.inviteDialog.createInviteLink"),onCancel:i,onConfirm:I},{body:()=>{var D,j;const f=Ue({inviteId:(D=a.inviteInfo)==null?void 0:D.inviteId,endpoint:C});return t.jsxs("div",{children:[t.jsx(T,{sx:{fontSize:16,fontWeight:"bold"},children:p("team.member.inviteDialog.createSuccessTip",{expireDate:le((j=a.inviteInfo)==null?void 0:j.expireDate,y)})}),t.jsx("div",{style:{marginTop:"40px"}}),t.jsx(ye,{children:f})]})},confirm:p("common.confirm"),onConfirm:v}][a.activeStep];return t.jsxs(X,{title:p("common.invite"),fullWidth:!0,open:!0,showCloseButton:!1,actions:t.jsxs(t.Fragment,{children:[b.cancel&&t.jsx(B,{onClick:b.onCancel,color:"inherit",children:b.cancel}),t.jsxs(B,{onClick:b.onConfirm,color:"primary",disabled:a.loading||!a.role,variant:"contained",autoFocus:!0,children:[a.loading&&t.jsx(re,{size:16}),b.confirm]})]}),children:[t.jsx(Be,{component:"div",children:typeof b.body=="function"?b.body():b.body}),!!a.error&&t.jsx(te,{severity:"error",variant:"icon",children:a.error})]})}qe.propTypes={teamDid:x.string.isRequired,onCancel:x.func.isRequired,onSuccess:x.func.isRequired,onError:x.func,roles:x.array,apps:x.array,endpoint:x.string};qe.defaultProps={onError:()=>{},roles:[],apps:[],endpoint:""};function Me({teamDid:e,onCancel:n,onSuccess:s,onError:i,endpoint:v}){const{api:P,info:C}=W(),{api:R}=w.useContext(or),[p,y]=w.useState(!1),{t:a,locale:I}=K(),[u,b]=w.useState(""),[f,D]=w.useState(!1),[j,r]=w.useState(0),[o,c]=w.useState(""),[l,m]=w.useState(""),S=!!Te(C,"ownerNft.did"),g=Rr(async()=>{if(S){const{state:E}=await P.getDelegationState();return E}return{delegated:!0}});if(g.loading)return t.jsx(X,{title:a("team.transferNode.inviteDialog.title"),fullWidth:!0,open:!0,onClose:n,children:t.jsx("div",{style:{display:"flex",justifyContent:"center"},children:t.jsx(re,{})})});if(g.error)return t.jsx(X,{title:a("team.transferNode.inviteDialog.title"),fullWidth:!0,open:!0,onClose:n,children:t.jsx(te,{severity:"error",variant:"icon",children:Z(g.error)})});const O=async()=>{b(null),y(!0);try{const{inviteInfo:E}=await P.createTransferInvitation({input:{teamDid:e,role:"owner",remark:l.trim()}});c(E),r(H.length-1)}catch(E){const J=Z(E);b(J),i(E)}finally{y(!1)}},U=()=>{D(!0),r(1)},M=()=>{D(!1),r(0)},H=[{body:t.jsxs(ae,{component:"div",children:[t.jsxs(te,{severity:"warning",children:[t.jsx(ae,{children:a("team.transferNode.inviteDialog.tips.progress")}),t.jsx(ae,{children:a("team.transferNode.inviteDialog.tips.newOwnerPermissions")})]}),t.jsx(te,{severity:"warning",children:t.jsx(ae,{children:a("team.transferNode.inviteDialog.tips.revoke")})}),t.jsx("div",{style:{marginTop:20,marginBottom:10}}),t.jsx(Ut,{label:a("common.remark"),autoComplete:"off",variant:"outlined",fullWidth:!0,style:{marginBottom:8},value:l,onChange:E=>{b(null),m(E.target.value)},disabled:p,"data-cy":"transfer-node-input-remark"}),t.jsx("div",{style:{marginTop:20,marginBottom:10}})]}),cancel:a("common.cancel"),confirm:a("team.transferNode.inviteDialog.createInviteLink"),onCancel:n,onConfirm:S&&!Te(g,"value.delegated")?U:O},{body:()=>t.jsx(ir,{action:"delegate-transfer-nft",open:f,locale:I,checkFn:R.get,onClose:M,onSuccess:O,checkTimeout:5*60*1e3,webWalletUrl:ar(C),extraParams:{targetDID:C.did},messages:{title:a("team.transferNode.delegateDialog.title"),scan:a("team.transferNode.delegateDialog.scan"),confirm:a("team.transferNode.delegateDialog.confirm"),success:a("team.transferNode.delegateDialog.success")},popup:!0})},{body:()=>{const E=Ue({inviteId:o.inviteId,endpoint:v});return t.jsxs("div",{children:[t.jsx(Gr,{children:a("team.transferNode.inviteDialog.createSuccessTip",{expireDate:le(o.expireDate,I)})}),t.jsx("div",{style:{marginTop:"40px"}}),t.jsx(ye,{children:E})]})},confirm:a("common.confirm"),onConfirm:s}],_=H[j];return t.jsxs(X,{title:a("team.transferNode.inviteDialog.title"),fullWidth:!0,open:!0,showCloseButton:!1,actions:t.jsxs(t.Fragment,{children:[_.cancel&&t.jsx(B,{onClick:_.onCancel,color:"inherit",children:_.cancel}),t.jsxs(B,{onClick:_.onConfirm,color:"primary",disabled:p,variant:"contained",autoFocus:!0,children:[p&&t.jsx(re,{size:16}),_.confirm]})]}),children:[t.jsx(Be,{component:"div",children:typeof _.body=="function"?_.body():_.body}),!!u&&t.jsx(te,{severity:"error",variant:"icon",children:u})]})}Me.propTypes={teamDid:x.string.isRequired,onCancel:x.func.isRequired,onSuccess:x.func.isRequired,onError:x.func,endpoint:x.string};Me.defaultProps={onError:()=>{},endpoint:""};const Gr=q.div`
|
|
2
2
|
font-size: 16px;
|
|
3
3
|
font-weight: bold;
|
|
4
4
|
`;var He={};Object.defineProperty(He,"__esModule",{value:!0});var Ve=He.default=void 0;Yr(w);var Oe=t;function Yr(e){return e&&e.__esModule?e:{default:e}}function jt(e,n){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(v){return Object.getOwnPropertyDescriptor(e,v).enumerable})),s.push.apply(s,i)}return s}function St(e){for(var n=1;n<arguments.length;n++){var s=arguments[n]!=null?arguments[n]:{};n%2?jt(Object(s),!0).forEach(function(i){Zr(e,i,s[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):jt(Object(s)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(s,i))})}return e}function Zr(e,n,s){return n=Jr(n),n in e?Object.defineProperty(e,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[n]=s,e}function Jr(e){var n=en(e,"string");return typeof n=="symbol"?n:String(n)}function en(e,n){if(typeof e!="object"||!e)return e;var s=e[Symbol.toPrimitive];if(s!==void 0){var i=s.call(e,n||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}var Ke=function(n){return(0,Oe.jsxs)("svg",St(St({},n),{},{children:[(0,Oe.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.886 1.875a4.207 4.207 0 1 0 0 8.414 4.207 4.207 0 0 0 0-8.414zM4.112 4.308A2.51 2.51 0 1 1 7.66 7.857a2.51 2.51 0 0 1-3.55-3.55zm.095 6.522A4.207 4.207 0 0 0 0 15.037v2.799c0 .16.13.289.29.289h1.119c.16 0 .289-.13.289-.29v-2.798a2.51 2.51 0 0 1 2.51-2.509h3.357a2.51 2.51 0 0 1 2.51 2.51v2.798c0 .16.13.289.289.289h1.12c.159 0 .288-.13.288-.29v-2.798a4.208 4.208 0 0 0-4.207-4.207H4.207z"}),(0,Oe.jsx)("rect",{x:"12.5",y:"9.375",width:"7.5",height:"1.875",rx:".938"})]}))};Ke.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};Ke.displayName="forbid-login";Ve=He.default=Ke;var Qe={};Object.defineProperty(Qe,"__esModule",{value:!0});var Xe=Qe.default=void 0;tn(w);var pe=t;function tn(e){return e&&e.__esModule?e:{default:e}}function Pt(e,n){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(v){return Object.getOwnPropertyDescriptor(e,v).enumerable})),s.push.apply(s,i)}return s}function wt(e){for(var n=1;n<arguments.length;n++){var s=arguments[n]!=null?arguments[n]:{};n%2?Pt(Object(s),!0).forEach(function(i){rn(e,i,s[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):Pt(Object(s)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(s,i))})}return e}function rn(e,n,s){return n=nn(n),n in e?Object.defineProperty(e,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[n]=s,e}function nn(e){var n=sn(e,"string");return typeof n=="symbol"?n:String(n)}function sn(e,n){if(typeof e!="object"||!e)return e;var s=e[Symbol.toPrimitive];if(s!==void 0){var i=s.call(e,n||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}var Ge=function(n){return(0,pe.jsxs)("svg",wt(wt({},n),{},{children:[(0,pe.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.886 1.875a4.207 4.207 0 1 0 0 8.414 4.207 4.207 0 0 0 0-8.414zM4.112 4.308A2.51 2.51 0 1 1 7.66 7.857a2.51 2.51 0 0 1-3.55-3.55zm.095 6.522A4.207 4.207 0 0 0 0 15.037v2.799c0 .16.13.289.29.289h1.119c.16 0 .289-.13.289-.29v-2.798a2.51 2.51 0 0 1 2.51-2.509h3.357a2.51 2.51 0 0 1 2.51 2.51v2.798c0 .16.13.289.289.289h1.12c.159 0 .288-.13.288-.29v-2.798a4.208 4.208 0 0 0-4.207-4.207H4.207z"}),(0,pe.jsx)("rect",{x:"12.5",y:"9.375",width:"7.5",height:"1.875",rx:".938"}),(0,pe.jsx)("rect",{x:"15.313",y:"14.063",width:"7.5",height:"1.875",rx:".938",transform:"rotate(-90 15.313 14.063)"})]}))};Ge.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};Ge.displayName="allow-login";Xe=Qe.default=Ge;function ve(e){const{passport:n,onDelete:s,...i}=e;return t.jsxs(on,{...i,children:[n.title||n.name," ",!!s&&t.jsx(cr,{"data-cy":"delete-issuance",className:"delete",onClick:s})]})}ve.propTypes={passport:x.object.isRequired,onDelete:x.func};ve.defaultProps={onDelete:null};const on=q.span`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,a0 as e,j as t,au as n,Z as o}from"./index-
|
|
1
|
+
import{r as a,a0 as e,j as t,au as n,Z as o}from"./index-CL2MuWgy.js";function p(){const{t:s}=a.useContext(e);return t.jsx(r,{style:{paddingTop:"25vh"},children:t.jsx(n,{status:"404",description:s("noMatch.desc"),style:{backgroundColor:"transparent"}})})}const r=o.main``;export{p as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as g,a0 as y,aV as P,j as t,C as v,l as w,B as c,a1 as d,P as m,Z as T}from"./index-
|
|
1
|
+
import{r as g,a0 as y,aV as P,j as t,C as v,l as w,B as c,a1 as d,P as m,Z as T}from"./index-CL2MuWgy.js";import{P as B}from"./page-header-CLjZ-_ic.js";import{u as E}from"./config-space-C5zZHk3Q.js";import{C as b,D,a as N}from"./connect-to-D5VCzm-i.js";import{u as G,S as u}from"./step-actions-DjXtFHj4.js";import{S as L}from"./layout-CDguKnNr.js";import"./url-join-Dnsu_5vQ.js";import"./Skeleton-BnhPRGgN.js";import"./Hidden-B3_ybJ-q.js";import"./spaces-CzJrHGyH.js";import"./index-DH5UmDxM.js";import"./api-DQ0CtWLc.js";import"./use-blocklet-info-for-connect-did-spaces-oRSb2cvE.js";import"./CloseOutlined-Xl6vJm1S.js";import"./did-address-B8N2tjFV.js";import"./Link-ltWIbLQC.js";import"./DeleteOutline-QSrwg0EI.js";import"./format-error-Bl69lCj-.js";import"./index-3gowKxHt.js";import"./ExpandMore-B8-mtsJf.js";import"./ButtonGroup-CNCUbNBn.js";import"./TextField-COPeEWpZ.js";import"./FormControl-DrLoqvI1.js";import"./useFormControl-DhPkOJZO.js";import"./InputLabel-ys_ApPlk.js";import"./Select-C_8EtoAI.js";import"./Alert-CdrO9wp_.js";import"./useSlot-DGpPHvLx.js";import"./content-layout-B22yg9Bb.js";function l({onNext:s,onPrevious:x}){var r,n,p;const{t:i}=g.useContext(y),{blocklet:e}=P(),C=G(),{spaceGateway:j,settingStorageEndpoint:f,updateSpaceGateway:S,hasStorageEndpoint:h,loading:o,storageEndpoint:a}=E();return o?t.jsx(v,{relative:"parent",children:t.jsx(w,{})}):t.jsxs(M,{children:[t.jsx("div",{className:"header",children:t.jsx(B,{title:i("setup.didSpace.title"),subTitle:i("setup.didSpace.subTitle"),onClickBack:x})}),t.jsx(c,{width:C?"360px":"720px",children:h?t.jsx(b,{spaceGateway:j,settingStorageEndpoint:f}):t.jsx(D,{})}),((r=e==null?void 0:e.capabilities)==null?void 0:r.didSpace)&&t.jsx(c,{display:"flex",alignItems:"center",justifyContent:"center",paddingTop:"24px",children:t.jsx(N,{onConnect:S,storageEndpoint:a})}),((n=e==null?void 0:e.capabilities)==null?void 0:n.didSpace)==="required"&&t.jsx(u,{mt:8,children:t.jsx(d,{loading:o,variant:"contained",disabled:o||!a,onClick:()=>s(),children:i("setup.continue")})}),((p=e==null?void 0:e.capabilities)==null?void 0:p.didSpace)==="optional"&&t.jsx(u,{blocklet:e,onStartNow:()=>s("complete"),children:t.jsx(d,{className:"start-now",loading:o,variant:"contained",disabled:o,onClick:()=>s(),children:i(a?"setup.continue":"setup.skip")})})]})}l.propTypes={onNext:m.func,onPrevious:m.func};l.defaultProps={onNext:()=>{},onPrevious:()=>{}};const M=T(L)`
|
|
2
2
|
height: 100%;
|
|
3
3
|
overflow-y: auto;
|
|
4
4
|
`;export{l as default};
|