@abtnode/webapp 1.16.33-beta-20241112-122339-e39fa9e7 → 1.16.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/blocklet.js +1 -1
- package/blocklet.yml +1 -1
- package/dist/assets/{Add-DfE0UQZa.js → Add-1IpBHqiQ.js} +1 -1
- package/dist/assets/{ArrowDropDown-CAfdIE5h.js → ArrowDropDown-CO_v_gGe.js} +1 -1
- package/dist/assets/{Autocomplete-BkzVtPtt.js → Autocomplete-BNAhky76.js} +1 -1
- package/dist/assets/{Breadcrumbs-CvquWwUS.js → Breadcrumbs-bwWUdzXH.js} +1 -1
- package/dist/assets/{ButtonGroup-BqgU-r6b.js → ButtonGroup-6y7yf9hV.js} +1 -1
- package/dist/assets/{CSSTransition-DkS0_qaF.js → CSSTransition-DnBIou_i.js} +1 -1
- package/dist/assets/{CheckCircle-DiU8MbBj.js → CheckCircle-D7oERMFD.js} +1 -1
- package/dist/assets/{ChevronLeft-D4u2MYxv.js → ChevronLeft-BphFdKoe.js} +1 -1
- package/dist/assets/{ChevronRight-QPR9fAyn.js → ChevronRight-CLG1ay4A.js} +1 -1
- package/dist/assets/{Close-8M9EaHHc.js → Close-DaUTq1SJ.js} +1 -1
- package/dist/assets/{Delete-BtjnuFpE.js → Delete-Ctg2zeKs.js} +1 -1
- package/dist/assets/{DeleteOutline-CddaRGDy.js → DeleteOutline-BlYvTbWy.js} +1 -1
- package/dist/assets/{Done-D4myl-bF.js → Done-CaIeE7qp.js} +1 -1
- package/dist/assets/{Edit-Ct7omHQP.js → Edit-Df1qVd3M.js} +1 -1
- package/dist/assets/{EditIcon-qS_Do5X4.js → EditIcon-RrUDe7G9.js} +1 -1
- package/dist/assets/{ExpandMore-o0kewuyw.js → ExpandMore-v0D4A-jC.js} +1 -1
- package/dist/assets/{Google-CoWbfpyh.js → Google-1CqVsK9-.js} +1 -1
- package/dist/assets/{HelpOutline-CnDwEkay.js → HelpOutline-D2GlWrSn.js} +1 -1
- package/dist/assets/{Https-CyP4yhN4.js → Https-CnQMz8bU.js} +1 -1
- package/dist/assets/{InputAdornment-DlsxXqE1.js → InputAdornment-CZ1xQxbJ.js} +1 -1
- package/dist/assets/{InputLabel-r6V9sjQZ.js → InputLabel-CBKMP0kd.js} +1 -1
- package/dist/assets/{LastPage-BMKVFpkT.js → LastPage-O0R3NHtX.js} +1 -1
- package/dist/assets/{Launch-BoqhyfkL.js → Launch-BSF3J60R.js} +1 -1
- package/dist/assets/{Link-DUOAbOMN.js → Link-v9IWh6cd.js} +1 -1
- package/dist/assets/{ListSubheader-DuWRwIcW.js → ListSubheader-CIqta_y7.js} +1 -1
- package/dist/assets/{LoadingButton-BcMxqkAg.js → LoadingButton-DyT3S3FL.js} +1 -1
- package/dist/assets/{LockIcon-DqMqlakh.js → LockIcon-YcQjwpaB.js} +1 -1
- package/dist/assets/{Loop-BcTY-FVQ.js → Loop-CyRqHFwv.js} +1 -1
- package/dist/assets/{MoreHoriz-Bb2zdCNw.js → MoreHoriz-BuJY4jyH.js} +1 -1
- package/dist/assets/{MoreVert-COmguaQ0.js → MoreVert-B-UcAPyF.js} +1 -1
- package/dist/assets/{Pagination-Bq9kZe2I.js → Pagination-DCfuW4XM.js} +1 -1
- package/dist/assets/{Public-Df83j5_J.js → Public-Dwmx99ns.js} +1 -1
- package/dist/assets/{SchemaReference.es-Bkni_2nK.js → SchemaReference.es-MroxBk7t.js} +1 -1
- package/dist/assets/{Search-CZai9yca.js → Search-cMjY7-w9.js} +1 -1
- package/dist/assets/{Select-CTzTEOX8.js → Select-DMrgQlpi.js} +1 -1
- package/dist/assets/{Skeleton-B-gCxC2f.js → Skeleton-D9vyaoYF.js} +1 -1
- package/dist/assets/{Slider-D3Vqz-0O.js → Slider-Dkmvlog2.js} +1 -1
- package/dist/assets/{Stepper-BVUHuqgh.js → Stepper-4TPScSpn.js} +1 -1
- package/dist/assets/{TextField-D2N1BIKh.js → TextField-Ck96Zj1i.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-D9HdOGbx.js → ToggleButtonGroup-Bx3WaqEd.js} +1 -1
- package/dist/assets/{ViewColumn-DjpiUc_n.js → ViewColumn-Dh3y3SOn.js} +1 -1
- package/dist/assets/{ViewList-Tu4GvOOs.js → ViewList-CSwdI9xa.js} +1 -1
- package/dist/assets/{_createAggregator-CWmx-PiR.js → _createAggregator-CC8samq7.js} +1 -1
- package/dist/assets/{actions-D3jEw-4L.js → actions-CYK55IDo.js} +1 -1
- package/dist/assets/{actions-Y5ZWY1HL.js → actions-DCoY4ND_.js} +1 -1
- package/dist/assets/{agreement-BeBhQWJ4.js → agreement-Dm4gD1iv.js} +1 -1
- package/dist/assets/api-C59NHs3o.js +1 -0
- package/dist/assets/{app-avatar-CTTZ9AWa.js → app-avatar-rCMCHSVi.js} +1 -1
- package/dist/assets/ar-CmDfOHUd.js +1 -0
- package/dist/assets/{audit-logs-CB7aClqK.js → audit-logs-7Liwu019.js} +1 -1
- package/dist/assets/{base32-C1oJAl1k.js → base32-7h1_w7qX.js} +1 -1
- package/dist/assets/blocklet-q3h8NbCP.js +1 -0
- package/dist/assets/{brace-fold.es-CHIuj6YC.js → brace-fold.es-Cu37dStD.js} +1 -1
- package/dist/assets/{bundle-avatar-BK-eczhF.js → bundle-avatar-BGPsgY2n.js} +1 -1
- package/dist/assets/{chart-CaCmNcib.js → chart-CVsNPRkp.js} +1 -1
- package/dist/assets/{click-to-copy-BsdQ8S0y.js → click-to-copy-A5WCwDlw.js} +1 -1
- package/dist/assets/{closebrackets.es-D7sV7P27.js → closebrackets.es-CTJZzL0l.js} +1 -1
- package/dist/assets/{codemirror.es-BT0JbLBu.js → codemirror.es-DNZDhAgz.js} +1 -1
- package/dist/assets/{comment.es-ZysKVLtz.js → comment.es-FqVc1tUC.js} +1 -1
- package/dist/assets/{config-navigation-1pPprBhD.js → config-navigation-TqkqgYat.js} +1 -1
- package/dist/assets/{connect-to-BscEjlEt.js → connect-to-BYaKsqLT.js} +1 -1
- package/dist/assets/de-CXIPlUxD.js +1 -0
- package/dist/assets/{delete-confirm-CRF_Wuv9.js → delete-confirm-CSfka7us.js} +1 -1
- package/dist/assets/{detail-jGGBE0HA.js → detail-Cl_ipErR.js} +3 -3
- package/dist/assets/{dialog.es-zRffza--.js → dialog.es-B2g1Md2H.js} +1 -1
- package/dist/assets/{download-DyjqJJgo.js → download-rfA-BgeB.js} +1 -1
- package/dist/assets/emotion-react.browser.esm-BNqOuiVX.js +1 -0
- package/dist/assets/es-B50lAPD2.js +1 -0
- package/dist/assets/{foldgutter.es-0rGweEpL.js → foldgutter.es-CDRazssP.js} +1 -1
- package/dist/assets/fr-CUxIEpIE.js +1 -0
- package/dist/assets/getValidReactChildren-BxcBBj68.js +1 -0
- package/dist/assets/hi-wDpKXbu9.js +1 -0
- package/dist/assets/{hint.es-CSsWZsyK.js → hint.es-DPt0iO5-.js} +1 -1
- package/dist/assets/{hint.es2-DHJJNpTs.js → hint.es2-Cb56J6wD.js} +1 -1
- package/dist/assets/id-DEzHxPLY.js +1 -0
- package/dist/assets/{iframe-BmBBgKLc.js → iframe-Dkdmu2fU.js} +1 -1
- package/dist/assets/{index-CnaRL3qN.js → index-67oWSwtN.js} +1 -1
- package/dist/assets/{index-Dn4Kdwd1.js → index-B2tDACFP.js} +1 -1
- package/dist/assets/{index-A3_15EW8.js → index-B3esz3LS.js} +1 -1
- package/dist/assets/{index-BDrAqsie.js → index-B4FJ57Sl.js} +1 -1
- package/dist/assets/{index-DsLkN6Ye.js → index-B6A5anpq.js} +1 -1
- package/dist/assets/{index-C1muZV19.js → index-BALhaKtR.js} +1 -1
- package/dist/assets/{index-CKpTUqRo.js → index-BHnQz9ut.js} +1 -1
- package/dist/assets/{index-G14DOtTO.js → index-BcaBGkyp.js} +1 -1
- package/dist/assets/{index-BdOJ4HH8.js → index-BessETTM.js} +1 -1
- package/dist/assets/{index-3nQ09lEI.js → index-Bh8rfP9m.js} +1 -1
- package/dist/assets/{index-D_m7oOns.js → index-BkDbIMQb.js} +3 -3
- package/dist/assets/{index-BzzZ1RVr.js → index-BkQeHFWv.js} +1 -1
- package/dist/assets/{index-DUsjelqy.js → index-Bl77Q4pX.js} +1 -1
- package/dist/assets/{index-CqcPWOoi.js → index-BmJR2grL.js} +3 -3
- package/dist/assets/{index-Btj9JVO7.js → index-Bn9YgWiZ.js} +1 -1
- package/dist/assets/{index-DNGLz85a.js → index-BvGfyxwm.js} +1 -1
- package/dist/assets/{index-CKlulFHS.js → index-CFR1XYQc.js} +1 -1
- package/dist/assets/{index-7hzbaoex.js → index-CId0olRH.js} +1 -1
- package/dist/assets/{index-Uw-4FYh7.js → index-CNd74BR0.js} +1 -1
- package/dist/assets/{index-D6UCuqfd.js → index-C_H-un3r.js} +1 -1
- package/dist/assets/{index-Dzw4yq7U.js → index-Ca9M3B8h.js} +1 -1
- package/dist/assets/{index-DfuCLbX8.js → index-CpGwNSQ5.js} +1 -1
- package/dist/assets/{index-mSe3oIdj.js → index-Cx0pTn8V.js} +1 -1
- package/dist/assets/{index-zuKGrWp_.js → index-D-hrDvN6.js} +1 -1
- package/dist/assets/{index-ND66XSeP.js → index-D4yD9wCL.js} +1 -1
- package/dist/assets/{index-ebl6WPIv.js → index-D6rWCRih.js} +1 -1
- package/dist/assets/{index-CgCkg4Ch.js → index-D8yTZoR9.js} +1 -1
- package/dist/assets/{index-CTG378EL.js → index-DB5iie93.js} +3 -3
- package/dist/assets/{index-DjwtvUHe.js → index-DLagUrz3.js} +1 -1
- package/dist/assets/{index-IKgvIEg7.js → index-DMjshc-U.js} +1 -1
- package/dist/assets/{index-CdmKt0zB.js → index-DVhqctGu.js} +1 -1
- package/dist/assets/{index-DYxh7vIZ.js → index-DYxj4bsg.js} +5 -5
- package/dist/assets/{index-DtWr2eg8.js → index-Deih0d9w.js} +1 -1
- package/dist/assets/{index-DDn-JcIc.js → index-DfFXqsLX.js} +1 -1
- package/dist/assets/{index-Bwg1E_K1.js → index-DhjpRk6v.js} +1 -1
- package/dist/assets/{index-D-OYPjqF.js → index-DoOoNVVw.js} +1 -1
- package/dist/assets/{index-CDP0mdig.js → index-DtvC5owf.js} +1 -1
- package/dist/assets/{index-BJKUF2bo.js → index-Fu4xuw11.js} +1 -1
- package/dist/assets/{index-B1oJ7b_g.js → index-fqtLEedX.js} +1 -1
- package/dist/assets/{index-KmrrIUGw.js → index-j0AXsS2r.js} +1 -1
- package/dist/assets/{index-Dq1g4H59.js → index-kGpBMKCz.js} +1 -1
- package/dist/assets/{index-C-BCbO8n.js → index-msCsCKKf.js} +1 -1
- package/dist/assets/{index-CSsdCvtO.js → index-qcRGUCNe.js} +5 -5
- package/dist/assets/{index-DoM6ghV8.js → index-r95Ymzg4.js} +1 -1
- package/dist/assets/{index-D5ljtoTR.js → index-xwOBGVcu.js} +1 -1
- package/dist/assets/{index.esm-CC3K9Ip8.js → index.esm-COz0rluF.js} +1 -1
- package/dist/assets/{info-addon.es-DSDxGAW4.js → info-addon.es-BKKs8WFv.js} +1 -1
- package/dist/assets/{info.es-BeDK90RY.js → info.es-C7gsHsn9.js} +1 -1
- package/dist/assets/{install-from-url-BQEH6ML-.js → install-from-url-q76xLrvq.js} +1 -1
- package/dist/assets/{invitation-C9BKA0Fj.js → invitation-BW39GEcj.js} +1 -1
- package/dist/assets/{is-path-prefix-equal-DM310uTY.js → is-path-prefix-equal-DWPB--12.js} +1 -1
- package/dist/assets/{item-BC-Wlb7W.js → item-DVTe-0gW.js} +1 -1
- package/dist/assets/ja-e3wmzqpV.js +1 -0
- package/dist/assets/{javascript.es-CHVMDixw.js → javascript.es-CeTA0JKb.js} +1 -1
- package/dist/assets/{jump-to-line.es-lU6IRa3V.js → jump-to-line.es-a_ngctA3.js} +1 -1
- package/dist/assets/{jump.es-DMV4V7cf.js → jump.es-BWFjhcCo.js} +1 -1
- package/dist/assets/ko-9yz1hS_o.js +1 -0
- package/dist/assets/{lint.es-CmNRdM3E.js → lint.es-0gIIjnyf.js} +1 -1
- package/dist/assets/{lint.es2-Dm-SRta7.js → lint.es2-CK1foe9-.js} +1 -1
- package/dist/assets/{lint.es3-Ds-rxqEO.js → lint.es3-B47_eujS.js} +1 -1
- package/dist/assets/{list-header-BO1GYVCs.js → list-header-CAC5y8Zb.js} +1 -1
- package/dist/assets/{log-DNkA9OG4.js → log-D9Z8kQgA.js} +1 -1
- package/dist/assets/{logo-uploader-Deiu15r4.js → logo-uploader-BGLx9vI_.js} +3 -3
- package/dist/assets/{lottie-react.esm-DigIvDN0.js → lottie-react.esm-BJprpjVk.js} +1 -1
- package/dist/assets/{matchbrackets.es-Cok0aPG-.js → matchbrackets.es-UzgJNlKv.js} +1 -1
- package/dist/assets/{memory-CCZqHAuk.js → memory-ZSDA0OPQ.js} +1 -1
- package/dist/assets/{mode.es-MvHFT1Fj.js → mode.es-1zi4TBuR.js} +1 -1
- package/dist/assets/{mode.es2-DuPmWoPR.js → mode.es2-BYT5Jd2Q.js} +1 -1
- package/dist/assets/{mode.es3-C8UfOEAL.js → mode.es3-BQkosdMI.js} +1 -1
- package/dist/assets/{onlineParser.es-DByUeFDS.js → onlineParser.es-BQLNL2qV.js} +1 -1
- package/dist/assets/{overview-BS9qnhwQ.js → overview-21qvx5BN.js} +1 -1
- package/dist/assets/pt-B3sa7Mxx.js +1 -0
- package/dist/assets/{redux-Bv4pNTS1.js → redux-D0hsiq_w.js} +1 -1
- package/dist/assets/{resource-dialog-B_LyGjOh.js → resource-dialog-BoHq8v69.js} +1 -1
- package/dist/assets/ru-NJ14fMtU.js +1 -0
- package/dist/assets/{runtime-obdXTqF9.js → runtime-Bd-F8WXx.js} +1 -1
- package/dist/assets/{schema-Cfg3BRu3.js → schema-B0T6A2Gz.js} +1 -1
- package/dist/assets/sdk-CFjHlo2e.js +1 -0
- package/dist/assets/{search.es-Da97cNi5.js → search.es-BRUyj6I8.js} +1 -1
- package/dist/assets/{searchcursor.es-CblKRix2.js → searchcursor.es-DzF-ECNC.js} +1 -1
- package/dist/assets/{service-ByTgLmX6.js → service-CufKunUa.js} +1 -1
- package/dist/assets/{shorten-label-CgjYz7Mp.js → shorten-label-BmNhwxO2.js} +1 -1
- package/dist/assets/{show-hint.es-mxMM0Num.js → show-hint.es-_DytH3OZ.js} +1 -1
- package/dist/assets/{simple-select-CTcvjK83.js → simple-select-DQMt4spB.js} +1 -1
- package/dist/assets/{slicedToArray-Ck7NjsFb.js → slicedToArray-BsFyrH9P.js} +1 -1
- package/dist/assets/{spaces-B30BhXmr.js → spaces-BH8l3rDt.js} +1 -1
- package/dist/assets/{status-MRJPNduK.js → status-BwD-EBJu.js} +1 -1
- package/dist/assets/{sublime.es-Bz49bQPa.js → sublime.es-Dwi03jzh.js} +1 -1
- package/dist/assets/{switch-control-C2slim_5.js → switch-control-B41nAAlH.js} +1 -1
- package/dist/assets/{table-icons-DlqUZKzk.js → table-icons-DLP-yfOz.js} +1 -1
- package/dist/assets/{team-B-YIogRh.js → team-C9C-b8dk.js} +1 -1
- package/dist/assets/{th-KYZmQlEk.js → th-D44cwFba.js} +1 -1
- package/dist/assets/{toUpper-DubkE20v.js → toUpper-CRVjMgiU.js} +1 -1
- package/dist/assets/{traffic-B_3_q2ru.js → traffic-2e_bhX4O.js} +1 -1
- package/dist/assets/{trim-BFf1tnjk.js → trim-a3cAMo7n.js} +1 -1
- package/dist/assets/{uniqBy-DHS4RifO.js → uniqBy-COL9eNcG.js} +1 -1
- package/dist/assets/{url-evaluation-DwFXFt6C.js → url-evaluation-_cliB2H6.js} +1 -1
- package/dist/assets/{url-join-BBpP0bXE.js → url-join-BN5FuiJc.js} +1 -1
- package/dist/assets/{useLocalStorage-DOI7tkcE.js → useLocalStorage-BHwD0007.js} +1 -1
- package/dist/assets/{useThemeProps-BK5OzPZ-.js → useThemeProps-D02eSTIA.js} +1 -1
- package/dist/assets/{util-S12MezC0.js → util-dakRC-rv.js} +1 -1
- package/dist/assets/vi-D_0aqEIk.js +1 -0
- package/dist/assets/{wait-container-BfPOfBCs.js → wait-container-CvST8QRD.js} +1 -1
- package/dist/assets/{withStyles-BDmE1Wdq.js → withStyles-GBXoa1NK.js} +1 -1
- package/dist/assets/wrap-locale-_cUmGXc1.js +1 -0
- package/dist/assets/{zh-Drtm306V.js → zh-A1yYniN5.js} +1 -1
- package/dist/assets/zh-tw-W4HWUCjf.js +1 -0
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +1 -1
- package/dist/assets/api-ch-h-aKD.js +0 -1
- package/dist/assets/ar-D4B_BKe0.js +0 -1
- package/dist/assets/blocklet-IXqLLEI6.js +0 -1
- package/dist/assets/de-C__DKoEA.js +0 -1
- package/dist/assets/emotion-react.browser.esm-Bh3XqTgn.js +0 -1
- package/dist/assets/es-Drri_3Re.js +0 -1
- package/dist/assets/fr-D6_iXdUw.js +0 -1
- package/dist/assets/getValidReactChildren-DF7ZsyI6.js +0 -1
- package/dist/assets/hi-Cdbgnlr1.js +0 -1
- package/dist/assets/id-aV9m2_MW.js +0 -1
- package/dist/assets/ja-KaSVCmo6.js +0 -1
- package/dist/assets/ko-DpfCclMr.js +0 -1
- package/dist/assets/pt-DSz2Y0vp.js +0 -1
- package/dist/assets/ru-P0dxFZEI.js +0 -1
- package/dist/assets/sdk-CpLxmtSV.js +0 -1
- package/dist/assets/vi-BePuxVQd.js +0 -1
- package/dist/assets/wrap-locale-XwTdcqgK.js +0 -1
- package/dist/assets/zh-tw-DSG5RRwT.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-
|
|
2
|
-
var dm=Object.defineProperty;var hm=(i,e,t)=>e in i?dm(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var Ae=(i,e,t)=>hm(i,typeof e!="symbol"?e+"":e,t);import{bM as mm,j as we,g as Ut,jD as fm,jE as rp,jF as gm,jG as vm,cO as lp,eP as $s,eQ as ui,jA as Uo,P as N,r as ne,cQ as Yl,a4 as Kl,C as bm,fb as cp,fM as ym,bq as up,aS as xm,am as wm,H as _m,jH as Ql,ci as Sm,j5 as Zl,a1 as Jl,eI as Pm,N as Mo,a5 as Fm,m as Cm,k as Em,jI as Tm,jJ as km,et as Am}from"./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-DB5iie93.js","./index-DYxj4bsg.js","./index-BEj64JY8.css","./TextField-Ck96Zj1i.js","./Select-DMrgQlpi.js","./InputLabel-CBKMP0kd.js","./status-BwD-EBJu.js","./Delete-Ctg2zeKs.js","./url-evaluation-_cliB2H6.js","./Slider-Dkmvlog2.js","./Skeleton-D9vyaoYF.js","./Close-DaUTq1SJ.js","./url-join-BN5FuiJc.js","./index-BkQeHFWv.js","./_createAggregator-CC8samq7.js","./index-DLagUrz3.js","./index-CFR1XYQc.js","./index-j0AXsS2r.js","./ExpandMore-v0D4A-jC.js","./resource-dialog-BoHq8v69.js","./index-DhjpRk6v.js","./emotion-react.browser.esm-BNqOuiVX.js","./index-Bh8rfP9m.js","./HelpOutline-D2GlWrSn.js","./index-B2tDACFP.js","./ButtonGroup-6y7yf9hV.js","./getValidReactChildren-BxcBBj68.js","./index-BHnQz9ut.js","./index-DVhqctGu.js","./index-D4yD9wCL.js","./index-DtvC5owf.js","./index-xwOBGVcu.js","./useThemeProps-D02eSTIA.js","./index-DMjshc-U.js","./redux-D0hsiq_w.js","./ViewColumn-Dh3y3SOn.js","./LastPage-O0R3NHtX.js","./Search-cMjY7-w9.js","./MoreVert-B-UcAPyF.js","./uniqBy-COL9eNcG.js","./toUpper-CRVjMgiU.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var dm=Object.defineProperty;var hm=(i,e,t)=>e in i?dm(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var Ae=(i,e,t)=>hm(i,typeof e!="symbol"?e+"":e,t);import{bM as mm,j as we,g as Ut,jD as fm,jE as rp,jF as gm,jG as vm,cO as lp,eP as $s,eQ as ui,jA as Uo,P as N,r as ne,cQ as Yl,a4 as Kl,C as bm,fb as cp,fM as ym,bq as up,aS as xm,am as wm,H as _m,jH as Ql,ci as Sm,j5 as Zl,a1 as Jl,eI as Pm,N as Mo,a5 as Fm,m as Cm,k as Em,jI as Tm,jJ as km,et as Am}from"./index-DYxj4bsg.js";import{j as gs}from"./url-join-BN5FuiJc.js";import{p as Dm}from"./index-BkQeHFWv.js";import{_ as Om,u as Rm}from"./_createAggregator-CC8samq7.js";import{a as Im}from"./index-DLagUrz3.js";import{c as Be}from"./index-CFR1XYQc.js";import"./index-j0AXsS2r.js";import{W as Um}from"./resource-dialog-BoHq8v69.js";import"./index-BHnQz9ut.js";import"./index-DVhqctGu.js";import"./index-D4yD9wCL.js";import"./index-DtvC5owf.js";import"./index-xwOBGVcu.js";import{a as pp}from"./uniqBy-COL9eNcG.js";import{t as Mm}from"./toUpper-CRVjMgiU.js";const Nm=mm(we.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z"}),"CancelOutlined");var Lm=fm,Bm=Om,zm=Bm(function(i,e,t){Lm(i,t,e)}),jm=zm;const dp=Ut(jm);function Rn(i,e){if(!Object.prototype.hasOwnProperty.call(i,e))throw new TypeError("attempted to use private field on non-instance");return i}var $m=0;function hp(i){return"__private_"+$m+++"_"+i}function Hm(i,e,t){const a=[];return i.forEach(n=>typeof n!="string"?a.push(n):e[Symbol.split](n).forEach((s,o,r)=>{s!==""&&a.push(s),o<r.length-1&&a.push(t)})),a}/**
|
|
3
3
|
* Takes a string with placeholder variables like `%{smart_count} file selected`
|
|
4
4
|
* and replaces it with values from options `{smart_count: 5}`
|
|
5
5
|
*
|
|
@@ -53,5 +53,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
53
53
|
<svg xmlns="http://www.w3.org/2000/svg" height="48px" viewBox="0 0 24 24" width="48px" fill="#ffffff"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"/></svg>
|
|
54
54
|
</div>
|
|
55
55
|
`,a.addEventListener("click",async()=>{await this.uppy.openPlugin("My Device")}),t.insertBefore(a,t.firstChild),this.addUploadItemFlag=!1}}},{wait:200}));Ae(this,"convertImgToObject",Uo(()=>{this.canConvertImgToObject&&(document.querySelectorAll("#uploaded img").forEach(a=>{var l;if(!(a!=null&&a.src))return;const{src:n}=a,s=(l=this.uploadedAPIData.files)==null?void 0:l.find(u=>u.previewUrl===n),o=document.createElement("div");o.style="width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; ";const r=document.createElement("div");if(r.className="uppy-ProviderBrowserItem-name",r.style="pointer-events: none; position: absolute; bottom: 0; left: 0; right: 0; padding: 5px; background: #0000004d; color: #fff; ",r.innerHTML=Hh(s.originalname),[".mp4",".webm"].find(u=>{var d;return(d=a.src)==null?void 0:d.endsWith(u)})){const u=document.createElement("video");u.src=a.src,u.width=a.width,u.height=a.height,u.autoplay=!0,u.setAttribute("playsinline","playsinline"),u.muted=!0,u.loop=!0,u.style="pointer-events: none;",o.appendChild(u)}else{const u=document.createElement("object");u.data=n,u.type=s.mimetype||"image/png",u.alt=s.originalname,u.style="pointer-events: none; max-width: 100%; max-height: 100%; webkit-user-drag: none; object-fit: contain;",u.loading="lazy",o.appendChild(u)}o.appendChild(r),a.parentNode.replaceChild(o,a)}),this.canConvertImgToObject=!1)},{wait:200}));Ae(this,"resetState",()=>{this.uploadedAPIData={...qu},this.uploaded.setPluginState({...Wu}),this.addUploadItemFlag=!0});this.id=this.opts.id||"Uploaded",this.title=this.opts.title||"Uploaded",this.params=this.opts.params||{},this.type="acquirer",this.uppy=t,this.uploadedAPIData={...qu},this.addUploadItemFlag=!0,this.icon=()=>ve("svg",{"aria-hidden":"true",focusable:"false",width:"18",height:"18",viewBox:"0 0 1024 1024",children:[ve("path",{d:"M145.6 0c-44.8 0-80 36.8-80 81.6V944c0 44.8 35.2 80 80 80h732.8c44.8 0 81.6-35.2 81.6-80V326.4L657.6 0h-512z",fill:"#49C9A7"}),ve("path",{d:"M960 326.4v16H755.2s-100.8-20.8-99.2-108.8c0 0 4.8 92.8 97.6 92.8H960z",fill:"#49C9A7"}),ve("path",{d:"M657.6 0v233.6c0 25.6 17.6 92.8 97.6 92.8H960L657.6 0z",fill:"#37BB91"}),ve("path",{d:"M225.6 859.2V524.8H560v334.4H225.6z m300.8-300.8H259.2v201.6h267.2V558.4z m-153.6 134.4l62.4-84.8 20.8 33.6 20.8-6.4 16 89.6H283.2l56-52.8 33.6 20.8z m-60.8-59.2c-14.4 0-27.2-9.6-27.2-24 0-12.8 12.8-24 27.2-24 14.4 0 25.6 11.2 25.6 24 0 14.4-11.2 24-25.6 24z",fill:"#FFFFFF"})]})}render(t){var a;return!this.uploadedAPIData.loading&&((a=this.uploadedAPIData.files)==null?void 0:a.length)===0&&this.queryUploadedFromMediaKit(),ve("div",{id:"uploaded",className:"uploaded",children:this.view.render(t)})}update(){this.convertImgToObject(),this.addUploadItem()}onFirstRender(){}install(){this.view=new Vr(this,{provider:{},viewType:"grid",showBreadcrumbs:!1,showFilter:!1}),this.uploaded=this.view.plugin,this.uploaded.setPluginState({...Wu}),this.uploaded.uppy.on("dashboard:show-panel",this.resetState),this.view.toggleCheckbox=(a,n)=>{const{currentSelection:s}=this.uploaded.getPluginState(),o=this.uploaded.uppy.opts.restrictions.maxNumberOfFiles,r=o?s.length<o:!0;s.find(l=>l._id===n._id)?this.uploaded.setPluginState({currentSelection:[...s.filter(l=>l._id!==n._id)]}):(r||s.pop(),this.uploaded.setPluginState({currentSelection:[...s,n]}))},this.view.donePicking=()=>{const{currentSelection:a}=this.uploaded.getPluginState();this.uppy.emit("uploaded:selected",a),this.uploaded.parent.hideAllPanels()},this.uploaded.uppy.validateRestrictions=()=>!1,this.view.handleScroll=a=>{const{scrollHeight:n,scrollTop:s,offsetHeight:o}=a.target;n-(s+o)<30&&this.queryUploadedFromMediaKit()};const{target:t}=this.opts;t&&this.mount(t,this)}uninstall(){this.unmount(),this.uploaded.uppy.off("dashboard:show-panel",this.resetState)}}const Vu={initialized:!1,data:[],files:[],pageSize:16,page:1,loading:!1,hasMore:!0,componentDid:"",components:[]},Gu={authenticated:!0,files:[],folders:[],breadcrumbs:[],filterInput:"",isSearchVisible:!1,currentSelection:[],loading:!0,loadAllFiles:!0},qh={padding:"5px 15px",marginRight:"8px",marginTop:"8px",borderRadius:"4px",cursor:"pointer",border:"1px solid rgb(29, 193, 199)",color:"rgb(29, 193, 199)",backgroundColor:"transparent",fontSize:"14px",lineHeight:"24.5px",fontWeight:"bold"},_w={...qh,color:"#fff",backgroundColor:"rgb(29, 193, 199)"};class Sw extends Pe{constructor(t,a){super(t,a);Ae(this,"queryResources",async()=>{if(!this.apiData.loading){this.apiData.loading=!0;const{data:t}=await ca.get("/api/resources",{params:{componentDid:this.apiData.componentDid}});this.apiData.loading=!1,this.apiData.initialized=!0,this.apiData.components=t.components||[],this.apiData.componentDid=t.componentDid||"",this.apiData.files=pp([...t.resources.map(a=>{let n="file";const{filename:s}=a,o=xn(s,0,0,It);return n=xn(s,400,0,It),{filename:s,_id:s,id:s,name:s,icon:n,previewUrl:n,fileUrl:o}})],"id"),this.resources.setPluginState({files:this.apiData.files,loading:!1})}});Ae(this,"resetState",()=>{this.apiData={...Vu},this.resources.setPluginState({...Gu})});this.id=this.opts.id||"Resources",this.title=this.opts.title||"Resources",this.params=this.opts.params||{},this.type="acquirer",this.uppy=t,this.componentDid="",this.apiData={...Vu},this.icon=()=>ve("svg",{t:"1700146012231",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"15673",width:"200",height:"200",children:[ve("path",{d:"M403.2 130.133333h-187.733333c-46.933333 0-85.333333 38.4-85.333334 85.333334v187.733333c0 46.933333 38.4 85.333333 85.333334 85.333333h187.733333c46.933333 0 85.333333-38.4 85.333333-85.333333v-187.733333c0-49.066667-38.4-85.333333-85.333333-85.333334zM426.666667 390.4c0 19.2-17.066667 36.266667-36.266667 36.266667h-160c-21.333333 0-38.4-17.066667-38.4-36.266667v-162.133333c0-19.2 17.066667-36.266667 36.266667-36.266667h160c19.2 0 36.266667 17.066667 36.266666 36.266667v162.133333z",fill:"#0171F1","p-id":"15674"}),ve("path",{d:"M808.533333 130.133333h-187.733333c-46.933333 0-85.333333 38.4-85.333333 85.333334v187.733333c0 46.933333 38.4 85.333333 85.333333 85.333333h187.733333c46.933333 0 85.333333-38.4 85.333334-85.333333v-187.733333c0-49.066667-36.266667-85.333333-85.333334-85.333334zM832 390.4c0 19.2-17.066667 36.266667-36.266667 36.266667h-160c-19.2 0-36.266667-17.066667-36.266666-36.266667v-162.133333c-2.133333-19.2 14.933333-36.266667 34.133333-36.266667h160c19.2 0 36.266667 17.066667 36.266667 36.266667v162.133333zM403.2 535.466667h-187.733333c-46.933333 0-85.333333 38.4-85.333334 85.333333V810.666667c0 46.933333 38.4 85.333333 85.333334 85.333333h187.733333c46.933333 0 85.333333-38.4 85.333333-85.333333v-189.866667c0-46.933333-38.4-85.333333-85.333333-85.333333zM426.666667 795.733333c0 21.333333-17.066667 36.266667-36.266667 36.266667h-162.133333c-21.333333 0-36.266667-17.066667-36.266667-36.266667v-162.133333c0-21.333333 17.066667-36.266667 36.266667-36.266667h162.133333c19.2 0 36.266667 17.066667 36.266667 36.266667v162.133333z",fill:"#55ABE5","p-id":"15675"}),ve("path",{d:"M808.533333 535.466667h-187.733333c-46.933333 0-85.333333 38.4-85.333333 85.333333V810.666667c0 46.933333 38.4 85.333333 85.333333 85.333333h187.733333c46.933333 0 85.333333-38.4 85.333334-85.333333v-189.866667c0-46.933333-36.266667-85.333333-85.333334-85.333333zM832 795.733333c0 21.333333-17.066667 36.266667-36.266667 36.266667h-162.133333c-19.2 0-36.266667-17.066667-36.266667-36.266667v-162.133333c0-21.333333 17.066667-36.266667 36.266667-36.266667h162.133333c21.333333 0 36.266667 17.066667 36.266667 36.266667v162.133333z",fill:"#0171F1","p-id":"15676"})]})}render(t){return!this.apiData.loading&&!this.apiData.initialized&&this.queryResources(),ve("div",{id:"resources",className:"uploaded",children:[ve("div",{style:{padding:this.apiData.components.length?"12px":"0",backgroundColor:"#fff",display:"flex",flexWrap:"wrap",marginTop:"-8px"},children:this.apiData.components.map(a=>ve("button",{style:this.apiData.componentDid===a.did?_w:qh,id:a.componentDid,onClick:()=>{this.apiData.componentDid!==a.did&&(this.apiData.componentDid=a.did,this.queryResources())},children:Mm(a.name)}))}),this.view.render(t)]})}update(){}onFirstRender(){}install(){this.view=new Vr(this,{provider:{},viewType:"grid",showBreadcrumbs:!1,showFilter:!1}),this.resources=this.view.plugin,this.resources.setPluginState({...Gu}),this.resources.uppy.on("dashboard:show-panel",this.resetState),this.view.toggleCheckbox=(a,n)=>{const{currentSelection:s}=this.resources.getPluginState(),o=this.resources.uppy.opts.restrictions.maxNumberOfFiles,r=o?s.length<o:!0;s.find(l=>l.id===n.id)?this.resources.setPluginState({currentSelection:[...s.filter(l=>l.id!==n.id)]}):(r||s.pop(),this.resources.setPluginState({currentSelection:[...s,n]}))},this.resources.uppy.validateRestrictions=()=>!1,this.view.donePicking=()=>{const{currentSelection:a}=this.resources.getPluginState();this.uppy.emit("resources:selected",a),this.resources.parent.hideAllPanels()};const{target:t}=this.opts;t&&this.mount(t,this)}uninstall(){this.unmount(),this.resources.uppy.off("dashboard:show-panel",this.resetState)}}var Pw=ym();const Fw=Ut(Pw);/*! @license DOMPurify 3.1.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.7/LICENSE */const{entries:Wh,setPrototypeOf:Xu,isFrozen:Cw,getPrototypeOf:Ew,getOwnPropertyDescriptor:Tw}=Object;let{freeze:ze,seal:rt,create:Vh}=Object,{apply:Or,construct:Rr}=typeof Reflect<"u"&&Reflect;ze||(ze=function(e){return e});rt||(rt=function(e){return e});Or||(Or=function(e,t,a){return e.apply(t,a)});Rr||(Rr=function(e,t){return new e(...t)});const Qn=it(Array.prototype.forEach),Yu=it(Array.prototype.pop),La=it(Array.prototype.push),fs=it(String.prototype.toLowerCase),Co=it(String.prototype.toString),Ku=it(String.prototype.match),Ba=it(String.prototype.replace),kw=it(String.prototype.indexOf),Aw=it(String.prototype.trim),mt=it(Object.prototype.hasOwnProperty),Me=it(RegExp.prototype.test),za=Dw(TypeError);function it(i){return function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),n=1;n<t;n++)a[n-1]=arguments[n];return Or(i,e,a)}}function Dw(i){return function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return Rr(i,t)}}function J(i,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:fs;Xu&&Xu(i,null);let a=e.length;for(;a--;){let n=e[a];if(typeof n=="string"){const s=t(n);s!==n&&(Cw(e)||(e[a]=s),n=s)}i[n]=!0}return i}function Ow(i){for(let e=0;e<i.length;e++)mt(i,e)||(i[e]=null);return i}function _i(i){const e=Vh(null);for(const[t,a]of Wh(i))mt(i,t)&&(Array.isArray(a)?e[t]=Ow(a):a&&typeof a=="object"&&a.constructor===Object?e[t]=_i(a):e[t]=a);return e}function ja(i,e){for(;i!==null;){const a=Tw(i,e);if(a){if(a.get)return it(a.get);if(typeof a.value=="function")return it(a.value)}i=Ew(i)}function t(){return null}return t}const Qu=ze(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Eo=ze(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),To=ze(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Rw=ze(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ko=ze(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Iw=ze(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Zu=ze(["#text"]),Ju=ze(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Ao=ze(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),ep=ze(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Zn=ze(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Uw=rt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Mw=rt(/<%[\w\W]*|[\w\W]*%>/gm),Nw=rt(/\${[\w\W]*}/gm),Lw=rt(/^data-[\-\w.\u00B7-\uFFFF]/),Bw=rt(/^aria-[\-\w]+$/),Gh=rt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),zw=rt(/^(?:\w+script|data):/i),jw=rt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Xh=rt(/^html$/i),$w=rt(/^[a-z][.\w]*(-[.\w]+)+$/i);var tp=Object.freeze({__proto__:null,MUSTACHE_EXPR:Uw,ERB_EXPR:Mw,TMPLIT_EXPR:Nw,DATA_ATTR:Lw,ARIA_ATTR:Bw,IS_ALLOWED_URI:Gh,IS_SCRIPT_OR_DATA:zw,ATTR_WHITESPACE:jw,DOCTYPE_NAME:Xh,CUSTOM_ELEMENT:$w});const $a={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Hw=function(){return typeof window>"u"?null:window},qw=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let a=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(a=t.getAttribute(n));const s="dompurify"+(a?"#"+a:"");try{return e.createPolicy(s,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}};function Yh(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Hw();const e=H=>Yh(H);if(e.version="3.1.7",e.removed=[],!i||!i.document||i.document.nodeType!==$a.document)return e.isSupported=!1,e;let{document:t}=i;const a=t,n=a.currentScript,{DocumentFragment:s,HTMLTemplateElement:o,Node:r,Element:l,NodeFilter:u,NamedNodeMap:d=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:c,DOMParser:h,trustedTypes:m}=i,v=l.prototype,F=ja(v,"cloneNode"),f=ja(v,"remove"),b=ja(v,"nextSibling"),P=ja(v,"childNodes"),w=ja(v,"parentNode");if(typeof o=="function"){const H=t.createElement("template");H.content&&H.content.ownerDocument&&(t=H.content.ownerDocument)}let k,D="";const{implementation:S,createNodeIterator:C,createDocumentFragment:R,getElementsByTagName:M}=t,{importNode:W}=a;let z={};e.isSupported=typeof Wh=="function"&&typeof w=="function"&&S&&S.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Q,ERB_EXPR:Y,TMPLIT_EXPR:X,DATA_ATTR:K,ARIA_ATTR:_,IS_SCRIPT_OR_DATA:g,ATTR_WHITESPACE:x,CUSTOM_ELEMENT:E}=tp;let{IS_ALLOWED_URI:O}=tp,T=null;const A=J({},[...Qu,...Eo,...To,...ko,...Zu]);let U=null;const q=J({},[...Ju,...Ao,...ep,...Zn]);let B=Object.seal(Vh(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),V=null,Z=null,be=!0,lt=!0,Mi=!1,_t=!0,at=!1,Ge=!0,Mt=!1,ua=!1,Ni=!1,Nt=!1,pi=!1,kn=!1,Tl=!0,kl=!1;const nm="user-content-";let Ns=!0,pa=!1,Li={},Bi=null;const Al=J({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Dl=null;const Ol=J({},["audio","video","img","source","image","track"]);let Ls=null;const Rl=J({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),An="http://www.w3.org/1998/Math/MathML",Dn="http://www.w3.org/2000/svg",Lt="http://www.w3.org/1999/xhtml";let zi=Lt,Bs=!1,zs=null;const sm=J({},[An,Dn,Lt],Co);let da=null;const om=["application/xhtml+xml","text/html"],rm="text/html";let ye=null,ji=null;const lm=t.createElement("form"),Il=function(y){return y instanceof RegExp||y instanceof Function},js=function(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ji&&ji===y)){if((!y||typeof y!="object")&&(y={}),y=_i(y),da=om.indexOf(y.PARSER_MEDIA_TYPE)===-1?rm:y.PARSER_MEDIA_TYPE,ye=da==="application/xhtml+xml"?Co:fs,T=mt(y,"ALLOWED_TAGS")?J({},y.ALLOWED_TAGS,ye):A,U=mt(y,"ALLOWED_ATTR")?J({},y.ALLOWED_ATTR,ye):q,zs=mt(y,"ALLOWED_NAMESPACES")?J({},y.ALLOWED_NAMESPACES,Co):sm,Ls=mt(y,"ADD_URI_SAFE_ATTR")?J(_i(Rl),y.ADD_URI_SAFE_ATTR,ye):Rl,Dl=mt(y,"ADD_DATA_URI_TAGS")?J(_i(Ol),y.ADD_DATA_URI_TAGS,ye):Ol,Bi=mt(y,"FORBID_CONTENTS")?J({},y.FORBID_CONTENTS,ye):Al,V=mt(y,"FORBID_TAGS")?J({},y.FORBID_TAGS,ye):{},Z=mt(y,"FORBID_ATTR")?J({},y.FORBID_ATTR,ye):{},Li=mt(y,"USE_PROFILES")?y.USE_PROFILES:!1,be=y.ALLOW_ARIA_ATTR!==!1,lt=y.ALLOW_DATA_ATTR!==!1,Mi=y.ALLOW_UNKNOWN_PROTOCOLS||!1,_t=y.ALLOW_SELF_CLOSE_IN_ATTR!==!1,at=y.SAFE_FOR_TEMPLATES||!1,Ge=y.SAFE_FOR_XML!==!1,Mt=y.WHOLE_DOCUMENT||!1,Nt=y.RETURN_DOM||!1,pi=y.RETURN_DOM_FRAGMENT||!1,kn=y.RETURN_TRUSTED_TYPE||!1,Ni=y.FORCE_BODY||!1,Tl=y.SANITIZE_DOM!==!1,kl=y.SANITIZE_NAMED_PROPS||!1,Ns=y.KEEP_CONTENT!==!1,pa=y.IN_PLACE||!1,O=y.ALLOWED_URI_REGEXP||Gh,zi=y.NAMESPACE||Lt,B=y.CUSTOM_ELEMENT_HANDLING||{},y.CUSTOM_ELEMENT_HANDLING&&Il(y.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(B.tagNameCheck=y.CUSTOM_ELEMENT_HANDLING.tagNameCheck),y.CUSTOM_ELEMENT_HANDLING&&Il(y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(B.attributeNameCheck=y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),y.CUSTOM_ELEMENT_HANDLING&&typeof y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(B.allowCustomizedBuiltInElements=y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),at&&(lt=!1),pi&&(Nt=!0),Li&&(T=J({},Zu),U=[],Li.html===!0&&(J(T,Qu),J(U,Ju)),Li.svg===!0&&(J(T,Eo),J(U,Ao),J(U,Zn)),Li.svgFilters===!0&&(J(T,To),J(U,Ao),J(U,Zn)),Li.mathMl===!0&&(J(T,ko),J(U,ep),J(U,Zn))),y.ADD_TAGS&&(T===A&&(T=_i(T)),J(T,y.ADD_TAGS,ye)),y.ADD_ATTR&&(U===q&&(U=_i(U)),J(U,y.ADD_ATTR,ye)),y.ADD_URI_SAFE_ATTR&&J(Ls,y.ADD_URI_SAFE_ATTR,ye),y.FORBID_CONTENTS&&(Bi===Al&&(Bi=_i(Bi)),J(Bi,y.FORBID_CONTENTS,ye)),Ns&&(T["#text"]=!0),Mt&&J(T,["html","head","body"]),T.table&&(J(T,["tbody"]),delete V.tbody),y.TRUSTED_TYPES_POLICY){if(typeof y.TRUSTED_TYPES_POLICY.createHTML!="function")throw za('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof y.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw za('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');k=y.TRUSTED_TYPES_POLICY,D=k.createHTML("")}else k===void 0&&(k=qw(m,n)),k!==null&&typeof D=="string"&&(D=k.createHTML(""));ze&&ze(y),ji=y}},Ul=J({},["mi","mo","mn","ms","mtext"]),Ml=J({},["annotation-xml"]),cm=J({},["title","style","font","a","script"]),Nl=J({},[...Eo,...To,...Rw]),Ll=J({},[...ko,...Iw]),um=function(y){let I=w(y);(!I||!I.tagName)&&(I={namespaceURI:zi,tagName:"template"});const $=fs(y.tagName),ae=fs(I.tagName);return zs[y.namespaceURI]?y.namespaceURI===Dn?I.namespaceURI===Lt?$==="svg":I.namespaceURI===An?$==="svg"&&(ae==="annotation-xml"||Ul[ae]):!!Nl[$]:y.namespaceURI===An?I.namespaceURI===Lt?$==="math":I.namespaceURI===Dn?$==="math"&&Ml[ae]:!!Ll[$]:y.namespaceURI===Lt?I.namespaceURI===Dn&&!Ml[ae]||I.namespaceURI===An&&!Ul[ae]?!1:!Ll[$]&&(cm[$]||!Nl[$]):!!(da==="application/xhtml+xml"&&zs[y.namespaceURI]):!1},St=function(y){La(e.removed,{element:y});try{w(y).removeChild(y)}catch{f(y)}},On=function(y,I){try{La(e.removed,{attribute:I.getAttributeNode(y),from:I})}catch{La(e.removed,{attribute:null,from:I})}if(I.removeAttribute(y),y==="is"&&!U[y])if(Nt||pi)try{St(I)}catch{}else try{I.setAttribute(y,"")}catch{}},Bl=function(y){let I=null,$=null;if(Ni)y="<remove></remove>"+y;else{const Fe=Ku(y,/^[\r\n\t ]+/);$=Fe&&Fe[0]}da==="application/xhtml+xml"&&zi===Lt&&(y='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+y+"</body></html>");const ae=k?k.createHTML(y):y;if(zi===Lt)try{I=new h().parseFromString(ae,da)}catch{}if(!I||!I.documentElement){I=S.createDocument(zi,"template",null);try{I.documentElement.innerHTML=Bs?D:ae}catch{}}const ke=I.body||I.documentElement;return y&&$&&ke.insertBefore(t.createTextNode($),ke.childNodes[0]||null),zi===Lt?M.call(I,Mt?"html":"body")[0]:Mt?I.documentElement:ke},zl=function(y){return C.call(y.ownerDocument||y,y,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},jl=function(y){return y instanceof c&&(typeof y.nodeName!="string"||typeof y.textContent!="string"||typeof y.removeChild!="function"||!(y.attributes instanceof d)||typeof y.removeAttribute!="function"||typeof y.setAttribute!="function"||typeof y.namespaceURI!="string"||typeof y.insertBefore!="function"||typeof y.hasChildNodes!="function")},$l=function(y){return typeof r=="function"&&y instanceof r},Bt=function(y,I,$){z[y]&&Qn(z[y],ae=>{ae.call(e,I,$,ji)})},Hl=function(y){let I=null;if(Bt("beforeSanitizeElements",y,null),jl(y))return St(y),!0;const $=ye(y.nodeName);if(Bt("uponSanitizeElement",y,{tagName:$,allowedTags:T}),y.hasChildNodes()&&!$l(y.firstElementChild)&&Me(/<[/\w]/g,y.innerHTML)&&Me(/<[/\w]/g,y.textContent)||y.nodeType===$a.progressingInstruction||Ge&&y.nodeType===$a.comment&&Me(/<[/\w]/g,y.data))return St(y),!0;if(!T[$]||V[$]){if(!V[$]&&Wl($)&&(B.tagNameCheck instanceof RegExp&&Me(B.tagNameCheck,$)||B.tagNameCheck instanceof Function&&B.tagNameCheck($)))return!1;if(Ns&&!Bi[$]){const ae=w(y)||y.parentNode,ke=P(y)||y.childNodes;if(ke&&ae){const Fe=ke.length;for(let je=Fe-1;je>=0;--je){const Pt=F(ke[je],!0);Pt.__removalCount=(y.__removalCount||0)+1,ae.insertBefore(Pt,b(y))}}}return St(y),!0}return y instanceof l&&!um(y)||($==="noscript"||$==="noembed"||$==="noframes")&&Me(/<\/no(script|embed|frames)/i,y.innerHTML)?(St(y),!0):(at&&y.nodeType===$a.text&&(I=y.textContent,Qn([Q,Y,X],ae=>{I=Ba(I,ae," ")}),y.textContent!==I&&(La(e.removed,{element:y.cloneNode()}),y.textContent=I)),Bt("afterSanitizeElements",y,null),!1)},ql=function(y,I,$){if(Tl&&(I==="id"||I==="name")&&($ in t||$ in lm))return!1;if(!(lt&&!Z[I]&&Me(K,I))){if(!(be&&Me(_,I))){if(!U[I]||Z[I]){if(!(Wl(y)&&(B.tagNameCheck instanceof RegExp&&Me(B.tagNameCheck,y)||B.tagNameCheck instanceof Function&&B.tagNameCheck(y))&&(B.attributeNameCheck instanceof RegExp&&Me(B.attributeNameCheck,I)||B.attributeNameCheck instanceof Function&&B.attributeNameCheck(I))||I==="is"&&B.allowCustomizedBuiltInElements&&(B.tagNameCheck instanceof RegExp&&Me(B.tagNameCheck,$)||B.tagNameCheck instanceof Function&&B.tagNameCheck($))))return!1}else if(!Ls[I]){if(!Me(O,Ba($,x,""))){if(!((I==="src"||I==="xlink:href"||I==="href")&&y!=="script"&&kw($,"data:")===0&&Dl[y])){if(!(Mi&&!Me(g,Ba($,x,"")))){if($)return!1}}}}}}return!0},Wl=function(y){return y!=="annotation-xml"&&Ku(y,E)},Vl=function(y){Bt("beforeSanitizeAttributes",y,null);const{attributes:I}=y;if(!I)return;const $={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:U};let ae=I.length;for(;ae--;){const ke=I[ae],{name:Fe,namespaceURI:je,value:Pt}=ke,ha=ye(Fe);let Re=Fe==="value"?Pt:Aw(Pt);if($.attrName=ha,$.attrValue=Re,$.keepAttr=!0,$.forceKeepAttr=void 0,Bt("uponSanitizeAttribute",y,$),Re=$.attrValue,$.forceKeepAttr||(On(Fe,y),!$.keepAttr))continue;if(!_t&&Me(/\/>/i,Re)){On(Fe,y);continue}at&&Qn([Q,Y,X],Xl=>{Re=Ba(Re,Xl," ")});const Gl=ye(y.nodeName);if(ql(Gl,ha,Re)){if(kl&&(ha==="id"||ha==="name")&&(On(Fe,y),Re=nm+Re),Ge&&Me(/((--!?|])>)|<\/(style|title)/i,Re)){On(Fe,y);continue}if(k&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!je)switch(m.getAttributeType(Gl,ha)){case"TrustedHTML":{Re=k.createHTML(Re);break}case"TrustedScriptURL":{Re=k.createScriptURL(Re);break}}try{je?y.setAttributeNS(je,Fe,Re):y.setAttribute(Fe,Re),jl(y)?St(y):Yu(e.removed)}catch{}}}Bt("afterSanitizeAttributes",y,null)},pm=function H(y){let I=null;const $=zl(y);for(Bt("beforeSanitizeShadowDOM",y,null);I=$.nextNode();)Bt("uponSanitizeShadowNode",I,null),!Hl(I)&&(I.content instanceof s&&H(I.content),Vl(I));Bt("afterSanitizeShadowDOM",y,null)};return e.sanitize=function(H){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I=null,$=null,ae=null,ke=null;if(Bs=!H,Bs&&(H="<!-->"),typeof H!="string"&&!$l(H))if(typeof H.toString=="function"){if(H=H.toString(),typeof H!="string")throw za("dirty is not a string, aborting")}else throw za("toString is not a function");if(!e.isSupported)return H;if(ua||js(y),e.removed=[],typeof H=="string"&&(pa=!1),pa){if(H.nodeName){const Pt=ye(H.nodeName);if(!T[Pt]||V[Pt])throw za("root node is forbidden and cannot be sanitized in-place")}}else if(H instanceof r)I=Bl("<!---->"),$=I.ownerDocument.importNode(H,!0),$.nodeType===$a.element&&$.nodeName==="BODY"||$.nodeName==="HTML"?I=$:I.appendChild($);else{if(!Nt&&!at&&!Mt&&H.indexOf("<")===-1)return k&&kn?k.createHTML(H):H;if(I=Bl(H),!I)return Nt?null:kn?D:""}I&&Ni&&St(I.firstChild);const Fe=zl(pa?H:I);for(;ae=Fe.nextNode();)Hl(ae)||(ae.content instanceof s&&pm(ae.content),Vl(ae));if(pa)return H;if(Nt){if(pi)for(ke=R.call(I.ownerDocument);I.firstChild;)ke.appendChild(I.firstChild);else ke=I;return(U.shadowroot||U.shadowrootmode)&&(ke=W.call(a,ke,!0)),ke}let je=Mt?I.outerHTML:I.innerHTML;return Mt&&T["!doctype"]&&I.ownerDocument&&I.ownerDocument.doctype&&I.ownerDocument.doctype.name&&Me(Xh,I.ownerDocument.doctype.name)&&(je="<!DOCTYPE "+I.ownerDocument.doctype.name+`>
|
|
56
|
-
`+je),at&&Qn([Q,Y,X],Pt=>{je=Ba(je,Pt," ")}),k&&kn?k.createHTML(je):je},e.setConfig=function(){let H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};js(H),ua=!0},e.clearConfig=function(){ji=null,ua=!1},e.isValidAttribute=function(H,y,I){ji||js({});const $=ye(H),ae=ye(y);return ql($,ae,I)},e.addHook=function(H,y){typeof y=="function"&&(z[H]=z[H]||[],La(z[H],y))},e.removeHook=function(H){if(z[H])return Yu(z[H])},e.removeHooks=function(H){z[H]&&(z[H]=[])},e.removeAllHooks=function(){z={}},e}var ip=Yh(),We=Uint8Array,Ki=Uint16Array,Ww=Int32Array,Kh=new We([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Qh=new We([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Vw=new We([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Zh=function(i,e){for(var t=new Ki(31),a=0;a<31;++a)t[a]=e+=1<<i[a-1];for(var n=new Ww(t[30]),a=1;a<30;++a)for(var s=t[a];s<t[a+1];++s)n[s]=s-t[a]<<5|a;return{b:t,r:n}},Jh=Zh(Kh,2),em=Jh.b,Gw=Jh.r;em[28]=258,Gw[258]=28;var Xw=Zh(Qh,0),Yw=Xw.b,Ir=new Ki(32768);for(var se=0;se<32768;++se){var ii=(se&43690)>>1|(se&21845)<<1;ii=(ii&52428)>>2|(ii&13107)<<2,ii=(ii&61680)>>4|(ii&3855)<<4,Ir[se]=((ii&65280)>>8|(ii&255)<<8)>>1}var nn=function(i,e,t){for(var a=i.length,n=0,s=new Ki(e);n<a;++n)i[n]&&++s[i[n]-1];var o=new Ki(e);for(n=1;n<e;++n)o[n]=o[n-1]+s[n-1]<<1;var r;if(t){r=new Ki(1<<e);var l=15-e;for(n=0;n<a;++n)if(i[n])for(var u=n<<4|i[n],d=e-i[n],c=o[i[n]-1]++<<d,h=c|(1<<d)-1;c<=h;++c)r[Ir[c]>>l]=u}else for(r=new Ki(a),n=0;n<a;++n)i[n]&&(r[n]=Ir[o[i[n]-1]++]>>15-i[n]);return r},Tn=new We(288);for(var se=0;se<144;++se)Tn[se]=8;for(var se=144;se<256;++se)Tn[se]=9;for(var se=256;se<280;++se)Tn[se]=7;for(var se=280;se<288;++se)Tn[se]=8;var tm=new We(32);for(var se=0;se<32;++se)tm[se]=5;var Kw=nn(Tn,9,1),Qw=nn(tm,5,1),Do=function(i){for(var e=i[0],t=1;t<i.length;++t)i[t]>e&&(e=i[t]);return e},dt=function(i,e,t){var a=e/8|0;return(i[a]|i[a+1]<<8)>>(e&7)&t},Oo=function(i,e){var t=e/8|0;return(i[t]|i[t+1]<<8|i[t+2]<<16)>>(e&7)},Zw=function(i){return(i+7)/8|0},Pl=function(i,e,t){return(e==null||e<0)&&(e=0),(t==null||t>i.length)&&(t=i.length),new We(i.subarray(e,t))},Jw=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],De=function(i,e,t){var a=new Error(e||Jw[i]);if(a.code=i,Error.captureStackTrace&&Error.captureStackTrace(a,De),!t)throw a;return a},Fl=function(i,e,t,a){var n=i.length,s=a?a.length:0;if(!n||e.f&&!e.l)return t||new We(0);var o=!t,r=o||e.i!=2,l=e.i;o&&(t=new We(n*3));var u=function(_t){var at=t.length;if(_t>at){var Ge=new We(Math.max(at*2,_t));Ge.set(t),t=Ge}},d=e.f||0,c=e.p||0,h=e.b||0,m=e.l,v=e.d,F=e.m,f=e.n,b=n*8;do{if(!m){d=dt(i,c,1);var P=dt(i,c+1,3);if(c+=3,P)if(P==1)m=Kw,v=Qw,F=9,f=5;else if(P==2){var S=dt(i,c,31)+257,C=dt(i,c+10,15)+4,R=S+dt(i,c+5,31)+1;c+=14;for(var M=new We(R),W=new We(19),z=0;z<C;++z)W[Vw[z]]=dt(i,c+z*3,7);c+=C*3;for(var Q=Do(W),Y=(1<<Q)-1,X=nn(W,Q,1),z=0;z<R;){var K=X[dt(i,c,Y)];c+=K&15;var w=K>>4;if(w<16)M[z++]=w;else{var _=0,g=0;for(w==16?(g=3+dt(i,c,3),c+=2,_=M[z-1]):w==17?(g=3+dt(i,c,7),c+=3):w==18&&(g=11+dt(i,c,127),c+=7);g--;)M[z++]=_}}var x=M.subarray(0,S),E=M.subarray(S);F=Do(x),f=Do(E),m=nn(x,F,1),v=nn(E,f,1)}else De(1);else{var w=Zw(c)+4,k=i[w-4]|i[w-3]<<8,D=w+k;if(D>n){l&&De(0);break}r&&u(h+k),t.set(i.subarray(w,D),h),e.b=h+=k,e.p=c=D*8,e.f=d;continue}if(c>b){l&&De(0);break}}r&&u(h+131072);for(var O=(1<<F)-1,T=(1<<f)-1,A=c;;A=c){var _=m[Oo(i,c)&O],U=_>>4;if(c+=_&15,c>b){l&&De(0);break}if(_||De(2),U<256)t[h++]=U;else if(U==256){A=c,m=null;break}else{var q=U-254;if(U>264){var z=U-257,B=Kh[z];q=dt(i,c,(1<<B)-1)+em[z],c+=B}var V=v[Oo(i,c)&T],Z=V>>4;V||De(3),c+=V&15;var E=Yw[Z];if(Z>3){var B=Qh[Z];E+=Oo(i,c)&(1<<B)-1,c+=B}if(c>b){l&&De(0);break}r&&u(h+131072);var be=h+q;if(h<E){var lt=s-E,Mi=Math.min(E,be);for(lt+h<0&&De(3);h<Mi;++h)t[h]=a[lt+h]}for(;h<be;++h)t[h]=t[h-E]}}e.l=m,e.p=A,e.b=h,e.f=d,m&&(d=1,e.m=F,e.d=v,e.n=f)}while(!d);return h!=t.length&&o?Pl(t,0,h):t.subarray(0,h)},e3=new We(0),Et=function(i,e){return i[e]|i[e+1]<<8},yt=function(i,e){return(i[e]|i[e+1]<<8|i[e+2]<<16|i[e+3]<<24)>>>0},Ro=function(i,e){return yt(i,e)+yt(i,e+4)*4294967296},t3=function(i){(i[0]!=31||i[1]!=139||i[2]!=8)&&De(6,"invalid gzip data");var e=i[3],t=10;e&4&&(t+=(i[10]|i[11]<<8)+2);for(var a=(e>>3&1)+(e>>4&1);a>0;a-=!i[t++]);return t+(e&2)},i3=function(i){var e=i.length;return(i[e-4]|i[e-3]<<8|i[e-2]<<16|i[e-1]<<24)>>>0},a3=function(i,e){return((i[0]&15)!=8||i[0]>>4>7||(i[0]<<8|i[1])%31)&&De(6,"invalid zlib data"),(i[1]>>5&1)==+!e&&De(6,"invalid zlib data: "+(i[1]&32?"need":"unexpected")+" dictionary"),(i[1]>>3&4)+2};function im(i,e){return Fl(i,{i:2},e&&e.out,e&&e.dictionary)}function n3(i,e){var t=t3(i);return t+8>i.length&&De(6,"invalid gzip data"),Fl(i.subarray(t,-8),{i:2},e&&e.out||new We(i3(i)),e&&e.dictionary)}function s3(i,e){return Fl(i.subarray(a3(i,e&&e.dictionary),-4),{i:2},e&&e.out,e&&e.dictionary)}function Io(i,e){return i[0]==31&&i[1]==139&&i[2]==8?n3(i,e):(i[0]&15)!=8||i[0]>>4>7||(i[0]<<8|i[1])%31?im(i,e):s3(i,e)}var Ur=typeof TextDecoder<"u"&&new TextDecoder,o3=0;try{Ur.decode(e3,{stream:!0}),o3=1}catch{}var r3=function(i){for(var e="",t=0;;){var a=i[t++],n=(a>127)+(a>223)+(a>239);if(t+n>i.length)return{s:e,r:Pl(i,t-1)};n?n==3?(a=((a&15)<<18|(i[t++]&63)<<12|(i[t++]&63)<<6|i[t++]&63)-65536,e+=String.fromCharCode(55296|a>>10,56320|a&1023)):n&1?e+=String.fromCharCode((a&31)<<6|i[t++]&63):e+=String.fromCharCode((a&15)<<12|(i[t++]&63)<<6|i[t++]&63):e+=String.fromCharCode(a)}};function l3(i,e){if(e){for(var t="",a=0;a<i.length;a+=16384)t+=String.fromCharCode.apply(null,i.subarray(a,a+16384));return t}else{if(Ur)return Ur.decode(i);var n=r3(i),s=n.s,t=n.r;return t.length&&De(8),s}}var c3=function(i,e){return e+30+Et(i,e+26)+Et(i,e+28)},u3=function(i,e,t){var a=Et(i,e+28),n=l3(i.subarray(e+46,e+46+a),!(Et(i,e+8)&2048)),s=e+46+a,o=yt(i,e+20),r=t&&o==4294967295?p3(i,s):[o,yt(i,e+24),yt(i,e+42)],l=r[0],u=r[1],d=r[2];return[Et(i,e+10),l,u,n,s+Et(i,e+30)+Et(i,e+32),d]},p3=function(i,e){for(;Et(i,e)!=1;e+=4+Et(i,e+2));return[Ro(i,e+12),Ro(i,e+4),Ro(i,e+20)]};function d3(i,e){for(var t={},a=i.length-22;yt(i,a)!=101010256;--a)(!a||i.length-a>65558)&&De(13);var n=Et(i,a+8);if(!n)return{};var s=yt(i,a+16),o=s==4294967295||n==65535;if(o){var r=yt(i,a-12);o=yt(i,r)==101075792,o&&(n=yt(i,r+32),s=yt(i,r+48))}for(var l=e&&e.filter,u=0;u<n;++u){var d=u3(i,s,o),c=d[0],h=d[1],m=d[2],v=d[3],F=d[4],f=d[5],b=c3(i,f);s=F,(!l||l({name:v,size:h,originalSize:m,compression:c}))&&(c?c==8?t[v]=im(i.subarray(b,b+h),{out:new We(m)}):De(14,"unknown compression type "+c):t[v]=Pl(i,b,b+h))}return t}const Jn={zip:d3,gz:Io,tgz:Io,deflate:Io};class h3 extends Pe{constructor(t,a){super(t,{...{},...a});Ae(this,"setHashFileName",async t=>{const{id:a}=t,n=this.uppy.getFile(a);if(n){const{data:s}=n,o=1024*1024*5,r=s.slice(0,o),l=Fw.createHash("md5").update(await r.text()).digest("hex"),u=ea(n),d=`${l}${u?`.${u}`:""}`;this.uppy.setFileState(a,{hashFileName:d})}});Ae(this,"setMetaData",async t=>{const{id:a}=t,n=this.uppy.getFile(a);if(n){const{data:{relativePath:s,name:o},hashFileName:r}=n,l=s||o||r;this.uppy.setFileMeta(a,{relativePath:l,name:l})}});Ae(this,"preventXssAttack",async t=>{var s;const{id:a}=t,n=this.uppy.getFile(a);if(n){const{name:o,meta:r}=this.uppy.getFile(a),l=ip.sanitize(o);if(o!==l){const u=ea(n),d=l.endsWith(`.${u}`)?l:`${l}.${u}`;this.uppy.setFileState(a,{name:d,meta:{...r,name:d,filename:d}})}if((s=n.type)!=null&&s.includes("image/svg")){const{data:u,name:d,type:c}=this.uppy.getFile(a),h=await u.text(),m=ip.sanitize(h,{USE_PROFILES:{svg:!0,svgFilters:!0},ADD_TAGS:["use"]});if(h!==m){const v=new Blob([m],{type:c}),F=Tr(v,d);this.uppy.setFileState(a,{...this.uppy.getFile(a),data:F})}}}});Ae(this,"preventZipBombAttack",async t=>{const{id:a}=t,n=this.uppy.getFile(a);try{if(n&&Jn[n.extension]){const{data:s}=n,o=Jn[n.extension](new Uint8Array(await s.arrayBuffer()));let r=0;const l=(d,c)=>(r++,Object.entries(d instanceof Uint8Array?{[c||n.name]:d}:d).reduce((h,[m,v])=>{const F=h+v.byteLength;if(r>=5||F>n.size*100)throw console.error("Zip bomb detected, please check your file",{maxDepth:r,baseAcc:F,fileSize:n.size}),new Error("Zip bomb detected, please check your file");const f=Tt.extension(Tt.lookup(m));if(Jn[f]){const b=Jn[f](v);return F+l(b,m)}return F},0)),u=l(o);if(console.info(n.name,{totalUnzippedSize:u,maxDepth:r,zippedSize:n.size}),u>n.size*100)throw new Error("Zip bomb detected, please check your file")}}catch(s){if(s.message.includes("Zip bomb detected"))throw s}});Ae(this,"validateImagesRespectCropperOptions",async()=>this.uppy.getFiles().reduce(async(t,a)=>{var F,f,b;await t;const{id:n}=a;let s=this.uppy.getFile(n);if(s.isRemote&&(await this.tryDownloadRemoteFile(s),s=this.uppy.getFile(n)),!((F=this.opts.cropperOptions)!=null&&F.aspectRatio)||!((f=s==null?void 0:s.type)!=null&&f.includes("image"))||(b=s.type)!=null&&b.includes("image/svg"))return Promise.resolve();const{aspectRatio:o}=this.opts.cropperOptions,r=this.uppy.getPlugin("ImageEditor"),l=document.querySelector(`[src="${s.preview}"]`)||document.getElementById("uppy_"+n).querySelector("img"),u=l==null?void 0:l.naturalWidth,d=l==null?void 0:l.naturalHeight,c=Number(u/d).toFixed(2),h=Number(o).toFixed(2);if(c===h)return Promise.resolve();this.uppy.emit("preprocess-progress",s,{mode:"indeterminate",message:this.i18n("editorLoading")}),r.parent.openFileEditor(s);const v=this.i18n("aspectRatioMessage",{imageAspectRatio:c,aspectRatio:h});return this.uppy.info({message:v,details:v}),new Promise((P,w)=>{this.uppy.once("file-editor:complete",()=>{setTimeout(()=>{P()},200)}),this.uppy.once("file-editor:cancel",()=>{})})},Promise.resolve()));Ae(this,"prepareUploadWrapper",async t=>{await this.tryDownloadRemoteFile(t),await this.getPreviewFromData(t),await this.setHashFileName(t),await this.preventXssAttack(t),await this.preventZipBombAttack(t),await this.setMetaData(t)});Ae(this,"tryDownloadRemoteFile",async t=>{var k,D;const{type:a,name:n,preview:s,source:o,isRemote:r,isDownloading:l,id:u,isLoading:d,remote:c,meta:h,errorCount:m=0}=t,v=!d&&r,F=`uploader:${u}:downloaded`,f=ea(t),b=(k=n==null?void 0:n.split("?"))==null?void 0:k[0],w=(()=>{const S=["jpg","jpeg"];return S.includes(f)&&S.some(C=>b==null?void 0:b.endsWith(C))?!0:b==null?void 0:b.endsWith(f)})()?b:`${b}${f?`.${f}`:""}`;if(v){const S=Lh(s||((D=c==null?void 0:c.body)==null?void 0:D.url));if(m>=3)throw new Error("Download remote file failure");this.uppy.setFileState(u,{isLoading:!0,isDownloading:!0,size:null,meta:{...h,name:this.i18n("loading")}}),await _l.get(`${this.opts.companionUrl}/proxy`,{responseType:"blob",params:{url:S}}).then(C=>C==null?void 0:C.data).then(async C=>{const R=Tr(C,w);this.uppy.setFileState(u,{name:w,extension:f,type:a,data:R,preview:s||Er(R),source:o,size:R.size,isDownloading:!1,isRemote:!1,meta:{...h,name:w,filename:w}}),this.uppy.getFile(u),this.uppy.emit(F,u)}).catch(async C=>{console.error("Axios download remote file error: ",C),this.uppy.setFileState(u,{isRemote:!0,isLoading:!1,errorCount:m+1}),await this.tryDownloadRemoteFile(this.uppy.getFile(u))})}else l&&await(async()=>new Promise(C=>{this.uppy.once(F,async()=>{C()})}))()});Ae(this,"getPreviewFromData",t=>{const{id:a}=t,n=this.uppy.getFile(a);if(n){const{data:s,type:o,preview:r}=n;(o.indexOf("gif")>-1||!r)&&s&&o.indexOf("image")>-1&&setTimeout(()=>{this.uppy.setFileState(a,{preview:Er(s)})},o.indexOf("gif")>-1?1e3:0)}});Ae(this,"prepareUpload",async t=>{await this.validateImagesRespectCropperOptions();const a=t.map(async s=>{const o=this.uppy.getFile(s);o.isDownloading&&this.uppy.emit("preprocess-progress",o,{mode:"indeterminate",message:this.i18n("loading")}),await this.prepareUploadWrapper(o)}),n=()=>{t.forEach(s=>{const o=this.uppy.getFile(s);this.uppy.emit("preprocess-complete",o)})};return Promise.all(a).then(n)});this.id=this.opts.id||"PrepareUpload",this.type="modifier",this.i18nInit()}install(){this.uppy.addPreProcessor(this.prepareUpload),this.uppy.on("file-added",async t=>{setTimeout(()=>{this.prepareUploadWrapper(t)},200)}),this.uppy.on("file-editor:complete",t=>{this.getPreviewFromData(t)})}uninstall(){this.uppy.removePreProcessor(this.prepareUpload)}}class m3 extends Pe{constructor(e,t){super(e,t),this.id=this.opts.id||"AIImage",this.title=this.opts.title||"AI Image",this.type="acquirer",this.uppy=e,this.i18nInit(),this.icon=()=>ve("svg",{width:"20",height:"20",viewBox:"0 0 24 24",children:ve("g",{fill:"none",stroke:"#a482fe","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",children:[ve("path",{d:"M15 8h.01M10 21H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v5"}),ve("path",{d:"m3 16l5-5c.928-.893 2.072-.893 3 0l1 1m2 9v-4a2 2 0 1 1 4 0v4m-4-2h4m3-4v6"})]})})}render(){return ve("div",{id:"ai-image",className:"ai-image",children:ve("div",{style:{height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:this.i18n("loading")})})}update(){}onFirstRender(){}install(){const{target:e}=this.opts;e&&this.mount(e,this)}uninstall(){this.unmount()}}const f3="z8ia1mAXo8ZE7ytGF36L5uBf9kD2kenhqFGp9",g3=ne.lazy(()=>up(()=>import("./index-CTG378EL.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40]),import.meta.url)),ap="uploader-container",es="uploader-dashboard",ia=localStorage.getItem("uppy_debug"),v3=()=>Cr.get("x-csrf-token")?{"x-csrf-token":Cr.get("x-csrf-token")}:{},b3=i=>{var c;const{apiPathProps:e,availablePluginMap:t={},uploadedProps:a,resourcesProps:n,imageEditorProps:s={},theme:o}=i,{companionUrl:r}=Sl(e),l=v3(),u=async h=>(await ca.post("/api/image/generations",h)).data,d={...i==null?void 0:i.restrictions,maxFileSize:1/0};return[{id:"ImageEditor",plugin:th,options:{quality:1,...s},alwayUse:!0},(ia||ta()&&t.Uploaded&&!kr())&&{id:"Uploaded",plugin:ww,options:{params:a==null?void 0:a.params}},(ia||ta()&&t.Resources&&!kr())&&{id:"Resources",plugin:Sw,options:{params:n==null?void 0:n.params}},ta()&&Bh()&&t.AIImage&&{id:"AIImage",plugin:m3,options:{companionUrl:r,companionHeaders:l},onShowPanel:h=>{function m(){setTimeout(()=>{var F,f;const v=document.getElementById("ai-image");v?km(v).render(we.jsx(g3,{theme:o,api:u,restrictions:d,i18n:(f=(F=h.current)==null?void 0:F.getUploader())==null?void 0:f.i18n,onSelect:b=>{const P=h.current.getUploader();P==null||P.emit("ai-image:selected",b),b.forEach(({src:w,alt:k},D)=>{const S=M=>(M==null?void 0:M.length)>16?`${M==null?void 0:M.slice(0,8)}...${M==null?void 0:M.slice(-4)}`:M,C=`${S(k)||S(w)}.png`,R={name:C,type:"image/png",data:Nh(w,C),source:"AIImage",isRemote:!1};P==null||P.addFile(R)})}})):m()},100)}m()}},{id:"Url",plugin:Sn,options:{companionUrl:r,companionHeaders:l}},{id:"Webcam",plugin:Up,options:{showVideoSourceDropdown:!0,showRecordingLength:!0,mirror:!1,videoConstraints:{facingMode:"environment"}}},!!((c=window==null?void 0:window.blocklet)!=null&&c.UNSPLASH_KEY)&&t.Unsplash&&{id:"Unsplash",plugin:td,options:{companionUrl:r,companionHeaders:l,companionCookiesRule:"same-origin"}},{id:"PrepareUpload",plugin:h3,options:{companionUrl:r,companionHeaders:l,cropperOptions:(s==null?void 0:s.cropperOptions)||null},alwayUse:!0},{id:"ThumbnailGeneratorNext",plugin:Jr,options:{thumbnailType:"image/png",thumbnailWidth:"100%"},alwayUse:!0}].filter(Boolean)};function Cl(i){const{id:e,plugins:t,locale:a,onAfterResponse:n,onUploadFinish:s,coreProps:o,apiPathProps:r,tusProps:l,dropTargetProps:u,pluginList:d,restrictions:c,onChange:h,initialFiles:m}=i,v=dp(d,"id"),{uploaderUrl:F}=Sl(r);let f=new Lr({id:e,meta:{uploaderId:e},debug:["true",!0].includes(ia||""),locale:kh[a||"en"],onBeforeFileAdded:(w,k)=>{if(Object.hasOwn(k,w.id))return!1;const D=!!Tt.extension(w.type),S=Tt.lookup(w.name)||"";if(!D&&S&&S!==w.type){const C=ea(w);C&&(w.extension=C),w.type=S}return w},...o,restrictions:c}).use(Th,{chunkSize:1024*1024*10,removeFingerprintOnSuccess:!0,withCredentials:!0,endpoint:F,async onBeforeRequest(w,k){var Q,Y;const{hashFileName:D,id:S,meta:C}=k,R=((Q=f.getFile(S))==null?void 0:Q.mockResponse)||null;w.getMethod()==="PATCH"&&R&&(w.send=()=>R);const M=ea(k);w.setHeader("x-uploader-file-name",`${D}`),w.setHeader("x-uploader-file-id",`${S}`),w.setHeader("x-uploader-file-ext",`${M}`),w.setHeader("x-uploader-base-url",new URL(w.getURL()).pathname),w.setHeader("x-uploader-endpoint-url",F),w.setHeader("x-uploader-metadata",JSON.stringify(C,(X,K)=>typeof K=="string"?encodeURIComponent(K):K));const W=Cr.get("x-csrf-token");W&&w.setHeader("x-csrf-token",W);const z=(window==null?void 0:window.uploaderComponentId)||((Y=window==null?void 0:window.blocklet)==null?void 0:Y.componentId);z&&w.setHeader("x-component-did",(z||"").split("/").pop())},onAfterResponse:async(w,k)=>{const D={},S=w.getUnderlyingObject();try{S.response&&(D.data=JSON.parse(S.response))}catch{D.data={}}D.method=w.getMethod().toUpperCase(),D.url=w.getURL(),D.status=S.status,D.headers={...w._headers};const C=S.getAllResponseHeaders();C&&C.split(`\r
|
|
56
|
+
`+je),at&&Qn([Q,Y,X],Pt=>{je=Ba(je,Pt," ")}),k&&kn?k.createHTML(je):je},e.setConfig=function(){let H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};js(H),ua=!0},e.clearConfig=function(){ji=null,ua=!1},e.isValidAttribute=function(H,y,I){ji||js({});const $=ye(H),ae=ye(y);return ql($,ae,I)},e.addHook=function(H,y){typeof y=="function"&&(z[H]=z[H]||[],La(z[H],y))},e.removeHook=function(H){if(z[H])return Yu(z[H])},e.removeHooks=function(H){z[H]&&(z[H]=[])},e.removeAllHooks=function(){z={}},e}var ip=Yh(),We=Uint8Array,Ki=Uint16Array,Ww=Int32Array,Kh=new We([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Qh=new We([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Vw=new We([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Zh=function(i,e){for(var t=new Ki(31),a=0;a<31;++a)t[a]=e+=1<<i[a-1];for(var n=new Ww(t[30]),a=1;a<30;++a)for(var s=t[a];s<t[a+1];++s)n[s]=s-t[a]<<5|a;return{b:t,r:n}},Jh=Zh(Kh,2),em=Jh.b,Gw=Jh.r;em[28]=258,Gw[258]=28;var Xw=Zh(Qh,0),Yw=Xw.b,Ir=new Ki(32768);for(var se=0;se<32768;++se){var ii=(se&43690)>>1|(se&21845)<<1;ii=(ii&52428)>>2|(ii&13107)<<2,ii=(ii&61680)>>4|(ii&3855)<<4,Ir[se]=((ii&65280)>>8|(ii&255)<<8)>>1}var nn=function(i,e,t){for(var a=i.length,n=0,s=new Ki(e);n<a;++n)i[n]&&++s[i[n]-1];var o=new Ki(e);for(n=1;n<e;++n)o[n]=o[n-1]+s[n-1]<<1;var r;if(t){r=new Ki(1<<e);var l=15-e;for(n=0;n<a;++n)if(i[n])for(var u=n<<4|i[n],d=e-i[n],c=o[i[n]-1]++<<d,h=c|(1<<d)-1;c<=h;++c)r[Ir[c]>>l]=u}else for(r=new Ki(a),n=0;n<a;++n)i[n]&&(r[n]=Ir[o[i[n]-1]++]>>15-i[n]);return r},Tn=new We(288);for(var se=0;se<144;++se)Tn[se]=8;for(var se=144;se<256;++se)Tn[se]=9;for(var se=256;se<280;++se)Tn[se]=7;for(var se=280;se<288;++se)Tn[se]=8;var tm=new We(32);for(var se=0;se<32;++se)tm[se]=5;var Kw=nn(Tn,9,1),Qw=nn(tm,5,1),Do=function(i){for(var e=i[0],t=1;t<i.length;++t)i[t]>e&&(e=i[t]);return e},dt=function(i,e,t){var a=e/8|0;return(i[a]|i[a+1]<<8)>>(e&7)&t},Oo=function(i,e){var t=e/8|0;return(i[t]|i[t+1]<<8|i[t+2]<<16)>>(e&7)},Zw=function(i){return(i+7)/8|0},Pl=function(i,e,t){return(e==null||e<0)&&(e=0),(t==null||t>i.length)&&(t=i.length),new We(i.subarray(e,t))},Jw=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],De=function(i,e,t){var a=new Error(e||Jw[i]);if(a.code=i,Error.captureStackTrace&&Error.captureStackTrace(a,De),!t)throw a;return a},Fl=function(i,e,t,a){var n=i.length,s=a?a.length:0;if(!n||e.f&&!e.l)return t||new We(0);var o=!t,r=o||e.i!=2,l=e.i;o&&(t=new We(n*3));var u=function(_t){var at=t.length;if(_t>at){var Ge=new We(Math.max(at*2,_t));Ge.set(t),t=Ge}},d=e.f||0,c=e.p||0,h=e.b||0,m=e.l,v=e.d,F=e.m,f=e.n,b=n*8;do{if(!m){d=dt(i,c,1);var P=dt(i,c+1,3);if(c+=3,P)if(P==1)m=Kw,v=Qw,F=9,f=5;else if(P==2){var S=dt(i,c,31)+257,C=dt(i,c+10,15)+4,R=S+dt(i,c+5,31)+1;c+=14;for(var M=new We(R),W=new We(19),z=0;z<C;++z)W[Vw[z]]=dt(i,c+z*3,7);c+=C*3;for(var Q=Do(W),Y=(1<<Q)-1,X=nn(W,Q,1),z=0;z<R;){var K=X[dt(i,c,Y)];c+=K&15;var w=K>>4;if(w<16)M[z++]=w;else{var _=0,g=0;for(w==16?(g=3+dt(i,c,3),c+=2,_=M[z-1]):w==17?(g=3+dt(i,c,7),c+=3):w==18&&(g=11+dt(i,c,127),c+=7);g--;)M[z++]=_}}var x=M.subarray(0,S),E=M.subarray(S);F=Do(x),f=Do(E),m=nn(x,F,1),v=nn(E,f,1)}else De(1);else{var w=Zw(c)+4,k=i[w-4]|i[w-3]<<8,D=w+k;if(D>n){l&&De(0);break}r&&u(h+k),t.set(i.subarray(w,D),h),e.b=h+=k,e.p=c=D*8,e.f=d;continue}if(c>b){l&&De(0);break}}r&&u(h+131072);for(var O=(1<<F)-1,T=(1<<f)-1,A=c;;A=c){var _=m[Oo(i,c)&O],U=_>>4;if(c+=_&15,c>b){l&&De(0);break}if(_||De(2),U<256)t[h++]=U;else if(U==256){A=c,m=null;break}else{var q=U-254;if(U>264){var z=U-257,B=Kh[z];q=dt(i,c,(1<<B)-1)+em[z],c+=B}var V=v[Oo(i,c)&T],Z=V>>4;V||De(3),c+=V&15;var E=Yw[Z];if(Z>3){var B=Qh[Z];E+=Oo(i,c)&(1<<B)-1,c+=B}if(c>b){l&&De(0);break}r&&u(h+131072);var be=h+q;if(h<E){var lt=s-E,Mi=Math.min(E,be);for(lt+h<0&&De(3);h<Mi;++h)t[h]=a[lt+h]}for(;h<be;++h)t[h]=t[h-E]}}e.l=m,e.p=A,e.b=h,e.f=d,m&&(d=1,e.m=F,e.d=v,e.n=f)}while(!d);return h!=t.length&&o?Pl(t,0,h):t.subarray(0,h)},e3=new We(0),Et=function(i,e){return i[e]|i[e+1]<<8},yt=function(i,e){return(i[e]|i[e+1]<<8|i[e+2]<<16|i[e+3]<<24)>>>0},Ro=function(i,e){return yt(i,e)+yt(i,e+4)*4294967296},t3=function(i){(i[0]!=31||i[1]!=139||i[2]!=8)&&De(6,"invalid gzip data");var e=i[3],t=10;e&4&&(t+=(i[10]|i[11]<<8)+2);for(var a=(e>>3&1)+(e>>4&1);a>0;a-=!i[t++]);return t+(e&2)},i3=function(i){var e=i.length;return(i[e-4]|i[e-3]<<8|i[e-2]<<16|i[e-1]<<24)>>>0},a3=function(i,e){return((i[0]&15)!=8||i[0]>>4>7||(i[0]<<8|i[1])%31)&&De(6,"invalid zlib data"),(i[1]>>5&1)==+!e&&De(6,"invalid zlib data: "+(i[1]&32?"need":"unexpected")+" dictionary"),(i[1]>>3&4)+2};function im(i,e){return Fl(i,{i:2},e&&e.out,e&&e.dictionary)}function n3(i,e){var t=t3(i);return t+8>i.length&&De(6,"invalid gzip data"),Fl(i.subarray(t,-8),{i:2},e&&e.out||new We(i3(i)),e&&e.dictionary)}function s3(i,e){return Fl(i.subarray(a3(i,e&&e.dictionary),-4),{i:2},e&&e.out,e&&e.dictionary)}function Io(i,e){return i[0]==31&&i[1]==139&&i[2]==8?n3(i,e):(i[0]&15)!=8||i[0]>>4>7||(i[0]<<8|i[1])%31?im(i,e):s3(i,e)}var Ur=typeof TextDecoder<"u"&&new TextDecoder,o3=0;try{Ur.decode(e3,{stream:!0}),o3=1}catch{}var r3=function(i){for(var e="",t=0;;){var a=i[t++],n=(a>127)+(a>223)+(a>239);if(t+n>i.length)return{s:e,r:Pl(i,t-1)};n?n==3?(a=((a&15)<<18|(i[t++]&63)<<12|(i[t++]&63)<<6|i[t++]&63)-65536,e+=String.fromCharCode(55296|a>>10,56320|a&1023)):n&1?e+=String.fromCharCode((a&31)<<6|i[t++]&63):e+=String.fromCharCode((a&15)<<12|(i[t++]&63)<<6|i[t++]&63):e+=String.fromCharCode(a)}};function l3(i,e){if(e){for(var t="",a=0;a<i.length;a+=16384)t+=String.fromCharCode.apply(null,i.subarray(a,a+16384));return t}else{if(Ur)return Ur.decode(i);var n=r3(i),s=n.s,t=n.r;return t.length&&De(8),s}}var c3=function(i,e){return e+30+Et(i,e+26)+Et(i,e+28)},u3=function(i,e,t){var a=Et(i,e+28),n=l3(i.subarray(e+46,e+46+a),!(Et(i,e+8)&2048)),s=e+46+a,o=yt(i,e+20),r=t&&o==4294967295?p3(i,s):[o,yt(i,e+24),yt(i,e+42)],l=r[0],u=r[1],d=r[2];return[Et(i,e+10),l,u,n,s+Et(i,e+30)+Et(i,e+32),d]},p3=function(i,e){for(;Et(i,e)!=1;e+=4+Et(i,e+2));return[Ro(i,e+12),Ro(i,e+4),Ro(i,e+20)]};function d3(i,e){for(var t={},a=i.length-22;yt(i,a)!=101010256;--a)(!a||i.length-a>65558)&&De(13);var n=Et(i,a+8);if(!n)return{};var s=yt(i,a+16),o=s==4294967295||n==65535;if(o){var r=yt(i,a-12);o=yt(i,r)==101075792,o&&(n=yt(i,r+32),s=yt(i,r+48))}for(var l=e&&e.filter,u=0;u<n;++u){var d=u3(i,s,o),c=d[0],h=d[1],m=d[2],v=d[3],F=d[4],f=d[5],b=c3(i,f);s=F,(!l||l({name:v,size:h,originalSize:m,compression:c}))&&(c?c==8?t[v]=im(i.subarray(b,b+h),{out:new We(m)}):De(14,"unknown compression type "+c):t[v]=Pl(i,b,b+h))}return t}const Jn={zip:d3,gz:Io,tgz:Io,deflate:Io};class h3 extends Pe{constructor(t,a){super(t,{...{},...a});Ae(this,"setHashFileName",async t=>{const{id:a}=t,n=this.uppy.getFile(a);if(n){const{data:s}=n,o=1024*1024*5,r=s.slice(0,o),l=Fw.createHash("md5").update(await r.text()).digest("hex"),u=ea(n),d=`${l}${u?`.${u}`:""}`;this.uppy.setFileState(a,{hashFileName:d})}});Ae(this,"setMetaData",async t=>{const{id:a}=t,n=this.uppy.getFile(a);if(n){const{data:{relativePath:s,name:o},hashFileName:r}=n,l=s||o||r;this.uppy.setFileMeta(a,{relativePath:l,name:l})}});Ae(this,"preventXssAttack",async t=>{var s;const{id:a}=t,n=this.uppy.getFile(a);if(n){const{name:o,meta:r}=this.uppy.getFile(a),l=ip.sanitize(o);if(o!==l){const u=ea(n),d=l.endsWith(`.${u}`)?l:`${l}.${u}`;this.uppy.setFileState(a,{name:d,meta:{...r,name:d,filename:d}})}if((s=n.type)!=null&&s.includes("image/svg")){const{data:u,name:d,type:c}=this.uppy.getFile(a),h=await u.text(),m=ip.sanitize(h,{USE_PROFILES:{svg:!0,svgFilters:!0},ADD_TAGS:["use"]});if(h!==m){const v=new Blob([m],{type:c}),F=Tr(v,d);this.uppy.setFileState(a,{...this.uppy.getFile(a),data:F})}}}});Ae(this,"preventZipBombAttack",async t=>{const{id:a}=t,n=this.uppy.getFile(a);try{if(n&&Jn[n.extension]){const{data:s}=n,o=Jn[n.extension](new Uint8Array(await s.arrayBuffer()));let r=0;const l=(d,c)=>(r++,Object.entries(d instanceof Uint8Array?{[c||n.name]:d}:d).reduce((h,[m,v])=>{const F=h+v.byteLength;if(r>=5||F>n.size*100)throw console.error("Zip bomb detected, please check your file",{maxDepth:r,baseAcc:F,fileSize:n.size}),new Error("Zip bomb detected, please check your file");const f=Tt.extension(Tt.lookup(m));if(Jn[f]){const b=Jn[f](v);return F+l(b,m)}return F},0)),u=l(o);if(console.info(n.name,{totalUnzippedSize:u,maxDepth:r,zippedSize:n.size}),u>n.size*100)throw new Error("Zip bomb detected, please check your file")}}catch(s){if(s.message.includes("Zip bomb detected"))throw s}});Ae(this,"validateImagesRespectCropperOptions",async()=>this.uppy.getFiles().reduce(async(t,a)=>{var F,f,b;await t;const{id:n}=a;let s=this.uppy.getFile(n);if(s.isRemote&&(await this.tryDownloadRemoteFile(s),s=this.uppy.getFile(n)),!((F=this.opts.cropperOptions)!=null&&F.aspectRatio)||!((f=s==null?void 0:s.type)!=null&&f.includes("image"))||(b=s.type)!=null&&b.includes("image/svg"))return Promise.resolve();const{aspectRatio:o}=this.opts.cropperOptions,r=this.uppy.getPlugin("ImageEditor"),l=document.querySelector(`[src="${s.preview}"]`)||document.getElementById("uppy_"+n).querySelector("img"),u=l==null?void 0:l.naturalWidth,d=l==null?void 0:l.naturalHeight,c=Number(u/d).toFixed(2),h=Number(o).toFixed(2);if(c===h)return Promise.resolve();this.uppy.emit("preprocess-progress",s,{mode:"indeterminate",message:this.i18n("editorLoading")}),r.parent.openFileEditor(s);const v=this.i18n("aspectRatioMessage",{imageAspectRatio:c,aspectRatio:h});return this.uppy.info({message:v,details:v}),new Promise((P,w)=>{this.uppy.once("file-editor:complete",()=>{setTimeout(()=>{P()},200)}),this.uppy.once("file-editor:cancel",()=>{})})},Promise.resolve()));Ae(this,"prepareUploadWrapper",async t=>{await this.tryDownloadRemoteFile(t),await this.getPreviewFromData(t),await this.setHashFileName(t),await this.preventXssAttack(t),await this.preventZipBombAttack(t),await this.setMetaData(t)});Ae(this,"tryDownloadRemoteFile",async t=>{var k,D;const{type:a,name:n,preview:s,source:o,isRemote:r,isDownloading:l,id:u,isLoading:d,remote:c,meta:h,errorCount:m=0}=t,v=!d&&r,F=`uploader:${u}:downloaded`,f=ea(t),b=(k=n==null?void 0:n.split("?"))==null?void 0:k[0],w=(()=>{const S=["jpg","jpeg"];return S.includes(f)&&S.some(C=>b==null?void 0:b.endsWith(C))?!0:b==null?void 0:b.endsWith(f)})()?b:`${b}${f?`.${f}`:""}`;if(v){const S=Lh(s||((D=c==null?void 0:c.body)==null?void 0:D.url));if(m>=3)throw new Error("Download remote file failure");this.uppy.setFileState(u,{isLoading:!0,isDownloading:!0,size:null,meta:{...h,name:this.i18n("loading")}}),await _l.get(`${this.opts.companionUrl}/proxy`,{responseType:"blob",params:{url:S}}).then(C=>C==null?void 0:C.data).then(async C=>{const R=Tr(C,w);this.uppy.setFileState(u,{name:w,extension:f,type:a,data:R,preview:s||Er(R),source:o,size:R.size,isDownloading:!1,isRemote:!1,meta:{...h,name:w,filename:w}}),this.uppy.getFile(u),this.uppy.emit(F,u)}).catch(async C=>{console.error("Axios download remote file error: ",C),this.uppy.setFileState(u,{isRemote:!0,isLoading:!1,errorCount:m+1}),await this.tryDownloadRemoteFile(this.uppy.getFile(u))})}else l&&await(async()=>new Promise(C=>{this.uppy.once(F,async()=>{C()})}))()});Ae(this,"getPreviewFromData",t=>{const{id:a}=t,n=this.uppy.getFile(a);if(n){const{data:s,type:o,preview:r}=n;(o.indexOf("gif")>-1||!r)&&s&&o.indexOf("image")>-1&&setTimeout(()=>{this.uppy.setFileState(a,{preview:Er(s)})},o.indexOf("gif")>-1?1e3:0)}});Ae(this,"prepareUpload",async t=>{await this.validateImagesRespectCropperOptions();const a=t.map(async s=>{const o=this.uppy.getFile(s);o.isDownloading&&this.uppy.emit("preprocess-progress",o,{mode:"indeterminate",message:this.i18n("loading")}),await this.prepareUploadWrapper(o)}),n=()=>{t.forEach(s=>{const o=this.uppy.getFile(s);this.uppy.emit("preprocess-complete",o)})};return Promise.all(a).then(n)});this.id=this.opts.id||"PrepareUpload",this.type="modifier",this.i18nInit()}install(){this.uppy.addPreProcessor(this.prepareUpload),this.uppy.on("file-added",async t=>{setTimeout(()=>{this.prepareUploadWrapper(t)},200)}),this.uppy.on("file-editor:complete",t=>{this.getPreviewFromData(t)})}uninstall(){this.uppy.removePreProcessor(this.prepareUpload)}}class m3 extends Pe{constructor(e,t){super(e,t),this.id=this.opts.id||"AIImage",this.title=this.opts.title||"AI Image",this.type="acquirer",this.uppy=e,this.i18nInit(),this.icon=()=>ve("svg",{width:"20",height:"20",viewBox:"0 0 24 24",children:ve("g",{fill:"none",stroke:"#a482fe","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",children:[ve("path",{d:"M15 8h.01M10 21H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v5"}),ve("path",{d:"m3 16l5-5c.928-.893 2.072-.893 3 0l1 1m2 9v-4a2 2 0 1 1 4 0v4m-4-2h4m3-4v6"})]})})}render(){return ve("div",{id:"ai-image",className:"ai-image",children:ve("div",{style:{height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:this.i18n("loading")})})}update(){}onFirstRender(){}install(){const{target:e}=this.opts;e&&this.mount(e,this)}uninstall(){this.unmount()}}const f3="z8ia1mAXo8ZE7ytGF36L5uBf9kD2kenhqFGp9",g3=ne.lazy(()=>up(()=>import("./index-DB5iie93.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40]),import.meta.url)),ap="uploader-container",es="uploader-dashboard",ia=localStorage.getItem("uppy_debug"),v3=()=>Cr.get("x-csrf-token")?{"x-csrf-token":Cr.get("x-csrf-token")}:{},b3=i=>{var c;const{apiPathProps:e,availablePluginMap:t={},uploadedProps:a,resourcesProps:n,imageEditorProps:s={},theme:o}=i,{companionUrl:r}=Sl(e),l=v3(),u=async h=>(await ca.post("/api/image/generations",h)).data,d={...i==null?void 0:i.restrictions,maxFileSize:1/0};return[{id:"ImageEditor",plugin:th,options:{quality:1,...s},alwayUse:!0},(ia||ta()&&t.Uploaded&&!kr())&&{id:"Uploaded",plugin:ww,options:{params:a==null?void 0:a.params}},(ia||ta()&&t.Resources&&!kr())&&{id:"Resources",plugin:Sw,options:{params:n==null?void 0:n.params}},ta()&&Bh()&&t.AIImage&&{id:"AIImage",plugin:m3,options:{companionUrl:r,companionHeaders:l},onShowPanel:h=>{function m(){setTimeout(()=>{var F,f;const v=document.getElementById("ai-image");v?km(v).render(we.jsx(g3,{theme:o,api:u,restrictions:d,i18n:(f=(F=h.current)==null?void 0:F.getUploader())==null?void 0:f.i18n,onSelect:b=>{const P=h.current.getUploader();P==null||P.emit("ai-image:selected",b),b.forEach(({src:w,alt:k},D)=>{const S=M=>(M==null?void 0:M.length)>16?`${M==null?void 0:M.slice(0,8)}...${M==null?void 0:M.slice(-4)}`:M,C=`${S(k)||S(w)}.png`,R={name:C,type:"image/png",data:Nh(w,C),source:"AIImage",isRemote:!1};P==null||P.addFile(R)})}})):m()},100)}m()}},{id:"Url",plugin:Sn,options:{companionUrl:r,companionHeaders:l}},{id:"Webcam",plugin:Up,options:{showVideoSourceDropdown:!0,showRecordingLength:!0,mirror:!1,videoConstraints:{facingMode:"environment"}}},!!((c=window==null?void 0:window.blocklet)!=null&&c.UNSPLASH_KEY)&&t.Unsplash&&{id:"Unsplash",plugin:td,options:{companionUrl:r,companionHeaders:l,companionCookiesRule:"same-origin"}},{id:"PrepareUpload",plugin:h3,options:{companionUrl:r,companionHeaders:l,cropperOptions:(s==null?void 0:s.cropperOptions)||null},alwayUse:!0},{id:"ThumbnailGeneratorNext",plugin:Jr,options:{thumbnailType:"image/png",thumbnailWidth:"100%"},alwayUse:!0}].filter(Boolean)};function Cl(i){const{id:e,plugins:t,locale:a,onAfterResponse:n,onUploadFinish:s,coreProps:o,apiPathProps:r,tusProps:l,dropTargetProps:u,pluginList:d,restrictions:c,onChange:h,initialFiles:m}=i,v=dp(d,"id"),{uploaderUrl:F}=Sl(r);let f=new Lr({id:e,meta:{uploaderId:e},debug:["true",!0].includes(ia||""),locale:kh[a||"en"],onBeforeFileAdded:(w,k)=>{if(Object.hasOwn(k,w.id))return!1;const D=!!Tt.extension(w.type),S=Tt.lookup(w.name)||"";if(!D&&S&&S!==w.type){const C=ea(w);C&&(w.extension=C),w.type=S}return w},...o,restrictions:c}).use(Th,{chunkSize:1024*1024*10,removeFingerprintOnSuccess:!0,withCredentials:!0,endpoint:F,async onBeforeRequest(w,k){var Q,Y;const{hashFileName:D,id:S,meta:C}=k,R=((Q=f.getFile(S))==null?void 0:Q.mockResponse)||null;w.getMethod()==="PATCH"&&R&&(w.send=()=>R);const M=ea(k);w.setHeader("x-uploader-file-name",`${D}`),w.setHeader("x-uploader-file-id",`${S}`),w.setHeader("x-uploader-file-ext",`${M}`),w.setHeader("x-uploader-base-url",new URL(w.getURL()).pathname),w.setHeader("x-uploader-endpoint-url",F),w.setHeader("x-uploader-metadata",JSON.stringify(C,(X,K)=>typeof K=="string"?encodeURIComponent(K):K));const W=Cr.get("x-csrf-token");W&&w.setHeader("x-csrf-token",W);const z=(window==null?void 0:window.uploaderComponentId)||((Y=window==null?void 0:window.blocklet)==null?void 0:Y.componentId);z&&w.setHeader("x-component-did",(z||"").split("/").pop())},onAfterResponse:async(w,k)=>{const D={},S=w.getUnderlyingObject();try{S.response&&(D.data=JSON.parse(S.response))}catch{D.data={}}D.method=w.getMethod().toUpperCase(),D.url=w.getURL(),D.status=S.status,D.headers={...w._headers};const C=S.getAllResponseHeaders();C&&C.split(`\r
|
|
57
57
|
`).forEach(Q=>{const[Y,X]=Q.split(": ");Y&&X&&(D.headers[Y]=X)});const R=f.getFile(D.headers["x-uploader-file-id"]);if(w.getMethod()==="PATCH"&&R.mockResponse)return;if(["PATCH","POST"].includes(D.method)&&[200,500].includes(D.status)){const z=[!0,"true"].includes(D.headers["x-uploader-file-exist"]),Q=jh(D.url,D.headers["x-uploader-file-name"]);D.file=R,D.uploadURL=Q;const Y={uploadURL:Q,...D};f.setFileState(R.id,{responseResult:Y}),z&&R&&(D.method==="POST"&&f.setFileState(R.id,{mockResponse:k}),f.emit("upload-success",f.getFile(R.id),{...Y,body:D.data}),f.emit("postprocess-complete",f.getFile(R.id)),f.calculateTotalProgress()),D.status===200&&(await(s==null?void 0:s(D)),f.emitUploadSuccess(R,D))}n&&await(n==null?void 0:n(S));const M=f.getState().totalProgress===100,W=f.getFiles().every(z=>z.source==="DropTarget");M&&W&&f.close()},...l});const b=({fileIDs:w,id:k})=>{w.forEach(D=>{f.setFileState(D,{uploadID:k})})};f.off("upload",b),f.on("upload",b);const P=w=>{typeof h=="function"&&h(w,f.getFiles())};return f.off("file-added",P),f.on("file-added",P),f.off("file-removed-success",P),f.on("file-removed-success",P),u&&f.use(Bd,{target:document.body,onDrop:w=>{var k;(k=f==null?void 0:f.open)==null||k.call(f)},...u}),t==null||t.forEach(w=>{if(w){const{plugin:k,options:D}=v[w]||{};k&&f.use(k,D)}}),$h(f),m&&(m==null?void 0:m.length)>0&&f.addFiles(m),f}const Mr=ne.forwardRef((i,e)=>{var z,Q,Y,X,K,_,g,x,E,O,T;const t={uploader:"/api/uploads",companion:"/api/companion",disableMediaKitPrefix:!1,...i==null?void 0:i.apiPathProps},a=ne.useRef(null),n=xm({open:!1,uppy:null,availablePluginMap:{},restrictions:{}}),s=wm(),o=b3({...i,apiPathProps:t,availablePluginMap:n.availablePluginMap,restrictions:n.restrictions,theme:s}),{plugins:r=o.map(A=>A.id),id:l="Uploader",popup:u=!1,uploadedProps:d,resourcesProps:c,onOpen:h,onClose:m,locale:v,installerProps:F}=i,f=dp(o,"id"),b=_m(A=>{var U;return(U=A==null?void 0:A.breakpoints)==null?void 0:U.down("md")}),P=Ql([...r,...o.filter(A=>A.alwayUse).map(A=>A.id)]),{loading:w}=Sm(async()=>{var U,q,B,V,Z;let A=Zl((U=i==null?void 0:i.coreProps)==null?void 0:U.restrictions)?{}:Jl((q=i==null?void 0:i.coreProps)==null?void 0:q.restrictions);if(ta())try{await ca.get("/api/uploader/status").then(({data:be})=>{var lt;n.availablePluginMap=be.availablePluginMap,!t.disableMediaKitPrefix&&Zl((lt=i==null?void 0:i.coreProps)==null?void 0:lt.restrictions)&&(A=be.restrictions||{})})}catch{}!((B=A==null?void 0:A.allowedFileTypes)!=null&&B.length)&&(A!=null&&A.allowedFileExts)&&(A.allowedFileTypes=Ql((Z=(V=(typeof(A==null?void 0:A.allowedFileExts)=="string"?A==null?void 0:A.allowedFileExts.split(","):A==null?void 0:A.allowedFileExts)||[])==null?void 0:V.map(be=>Tt.lookup((be==null?void 0:be.replaceAll(" ",""))||"")))==null?void 0:Z.filter(be=>be)),delete A.allowedFileExts),A.maxFileSize&&typeof A.maxFileSize=="string"&&(A.maxFileSize=ie.parseSize(A.maxFileSize,{iec:!1})||void 0),n.restrictions=Jl(A)},{refreshDeps:[JSON.stringify({apiPathProps:t,restrictionsProps:(z=i==null?void 0:i.coreProps)==null?void 0:z.restrictions})]});Rm("esc",A=>{n.open&&(A.stopPropagation(),A.preventDefault(),C())},{useCapture:!0}),ne.useEffect(()=>{zh(t),n.uppy=Cl({...i,id:l,plugins:P,apiPathProps:t,pluginList:o,restrictions:n.restrictions}),n.uppy.open=S,n.uppy.close=C,n.uppy.openPlugin=k;const A=B=>{const{onShowPanel:V}=f[B];V==null||V(e)};n.uppy.off("dashboard:show-panel",A),n.uppy.on("dashboard:show-panel",A);const U=(B,V,Z,be)=>{var _t,at;const lt=B.map(Ge=>{var Ni,Nt,pi;const Mt={name:Ge.id||((pi=(Nt=(Ni=Ge.fileUrl)==null?void 0:Ni.split("/"))==null?void 0:Nt.slice(-1))==null?void 0:pi[0]),type:Ge.mimetype||Tt.lookup(Ge.fileUrl),data:"",preview:Ge.fileUrl,source:be,isRemote:!0},ua=V.uppy.addFile(Mt);return{...Ge,uppyFile:V.uppy.getFile(ua)}}),Mi=`${be.toLowerCase()}Props`;(at=(_t=Z[Mi])==null?void 0:_t.onSelectedFiles)==null||at.call(_t,lt)};[{name:"Uploaded",event:"uploaded:selected"},{name:"Resources",event:"resources:selected"}].forEach(({name:B,event:V})=>{P.includes(B)&&(n.uppy.off(V),n.uppy.on(V,Z=>U(Z,n,i,B)))})},[JSON.stringify({id:l,plugins:P,apiPathProps:t,locale:v,restrictions:n.restrictions,theme:s})]);function k(A){var U,q,B;if(A=A.replace(/\s/g,""),["MyDevice",...P].map(V=>V.toLowerCase()).includes(A.toLowerCase())){let V=`div[data-uppy-acquirer-id="${A}"] > button`;(B=(q=(U=document==null?void 0:document.getElementById(es))==null?void 0:U.querySelector(V))==null?void 0:q.click)==null||B.call(q)}}const D=ne.useCallback(A=>{ia&&a.current&&!a.current.contains(A.target)&&console.info("debug focus",a.current,A.target)},[]);function S(A){var q,B,V,Z;n.open=!0,A&&setTimeout(()=>{k(A)},200),n.uppy.emitOpen(),h==null||h(),(B=(q=document.activeElement)==null?void 0:q.blur)==null||B.call(q);const U=n.uppy.getPlugin(es).el;(V=U==null?void 0:U.focus)==null||V.call(U),(Z=U==null?void 0:U.click)==null||Z.call(U),ia&&u&&(document.addEventListener("mousedown",D),document.addEventListener("touchstart",D))}function C(){var A;(A=n.uppy.getPlugin(es))==null||A.hideAllPanels(),n.open=!1,n.uppy.emitClose(),m==null||m(),setTimeout(()=>{n.uppy.getState().totalProgress===100&&(n.uppy.setState({files:{},currentUploads:{}}),n.uppy.calculateTotalProgress())},500),ia&&u&&(document.removeEventListener("mousedown",D),document.removeEventListener("touchstart",D))}ne.useImperativeHandle(e,()=>({getUploader:()=>n.uppy,open:S,close:C}));const R=u?Tm:ne.Fragment,M=u?{sx:{zIndex:99999999999,background:"rgba(0,0,0,0.5)","& > *":{display:n.open?"block":"none"},...(Q=i==null?void 0:i.wrapperProps)==null?void 0:Q.sx},invisible:!0,open:n.open,onClick:A=>{document.activeElement===document.body&&(A.stopPropagation(),C())},...i.wrapperProps}:{...i.wrapperProps},W=b?"42px":"40px";return we.jsx(R,{...M,children:we.jsxs(Um,{onClose:C,did:f3,disabled:!n.open,...F,children:[we.jsx(Pm,{styles:()=>({".uppy-is-drag-over":{"&::after":{transition:"all 0.3s ease-in-out",border:"2px dashed #bbb !important",borderRadius:4,background:"rgba(234, 234, 234, 0.5)"}}})}),we.jsxs(Mo,{className:"uploader-container",ref:a,id:ap,onClick:A=>A.stopPropagation(),sx:{position:"relative",width:b?"90vw":720,".uppy-ProviderBrowserItem-inner":{flex:1,color:"transparent","img, object":{objectFit:"contain !important"}},".uppy-Dashboard-Item-previewInnerWrap, .uppy-ProviderBrowserItem-inner":{background:"repeating-conic-gradient(#bdbdbd33 0 25%,#fff 0 50%) 50%/16px 16px !important"},".uploaded-add-item":{background:"rgba(0,0,0,0.1) !important",display:"flex",justifyContent:"center",alignItems:"center",transition:"all 0.3s ease-in-out","&:hover":{background:"rgba(0,0,0,0.13)"}},".uppy-StatusBar-actions, .uppy-ProviderBrowser-footer":{justifyContent:"flex-end"},".uppy-ProviderBrowser-footer":{button:{marginRight:"0 !important","&:last-child":{display:"none"}}},".uppy-Dashboard-AddFiles-title":{whiteSpace:"normal"},".uppy-ProviderBrowser-body":{background:"#fff",height:"100%"},".uppy-ProviderBrowser-list":{height:"fit-content",maxHeight:"100%"},".uploaded, .ai-image":{width:"100%",height:"100%",display:"flex",alignItems:"center",flexDirection:"column","& > div":{width:"100%"},"& .uppy-ProviderBrowser-header":{display:"none"}},"& .uppy-Url":{width:"100% !important",display:"flex",justifyContent:"center","& input":{width:"70%"}},"& .uppy-Dashboard-browse, & .uppy-DashboardContent-addMore, & .uppy-DashboardContent-back, & .uppy-StatusBar-actionBtn--done, & .uppy-DashboardContent-save, & .uppy-StatusBar-actionBtn--upload":{color:`${(X=(Y=s==null?void 0:s.palette)==null?void 0:Y.primary)==null?void 0:X.main}`,transition:"all 0.3s ease-in-out","&:hover, &:focus":{color:`${(_=(K=s==null?void 0:s.palette)==null?void 0:K.primary)==null?void 0:_.main}`,filter:"brightness(1.2)"}},"& .uppy-c-btn-primary":{backgroundColor:`${(x=(g=s==null?void 0:s.palette)==null?void 0:g.primary)==null?void 0:x.main} !important`,transition:"all 0.3s ease-in-out","&:hover, &:focus":{backgroundColor:`${(O=(E=s==null?void 0:s.palette)==null?void 0:E.primary)==null?void 0:O.main} !important`,filter:"brightness(1.2)"}}},children:[u&&we.jsx(Fm,{"aria-label":"close",onClick:C,sx:{color:"#fafafa",position:"absolute",...b?{bottom:`calc(0px - ${W} - 16px)`,left:`calc(50vw - ${W} - 8px)`}:{right:`calc(0px - ${W} - 16px)`,top:-12}},children:we.jsx(Nm,{sx:{fontSize:W}})}),w&&we.jsxs(Mo,{sx:{position:"absolute",top:0,left:0,width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",zIndex:99999999999,flexDirection:"column",background:"rgba(256, 256, 256, 0.2)",backdropFilter:"blur(4px)",borderRadius:1,pointerEvents:"none"},children:[we.jsx(yw,{size:32}),we.jsx(Cm,{variant:"body2",color:"primary",sx:{mt:1.5,fontWeight:"bold"},children:Em(kh,`${v}.strings.loadingStatus`)})]}),n.uppy&&we.jsx(kd,{inline:!0,target:`#${ap}`,id:es,uppy:n.uppy,plugins:P,fileManagerSelectionType:((T=n.restrictions)==null?void 0:T.maxNumberOfFiles)===1?"files":"both",proudlyDisplayPoweredByUppy:!1,showProgressDetails:!0,disableThumbnailGenerator:!0,note:"",doneButtonHandler:C,...i.dashboardProps})]},"uploader-container")]})},"uploader-wrapper")}),y3=Object.freeze(Object.defineProperty({__proto__:null,Uploader:Mr,default:Mr,initUploader:Cl},Symbol.toStringTag,{value:"Module"})),np=ne.lazy(()=>up(()=>Promise.resolve().then(()=>y3),void 0,import.meta.url).then(i=>({default:i.Uploader}))),El=ne.createContext(null);function am(){const i=ne.useContext(El);if(!i)throw new Error("useUploaderContext must be used within an UploaderProvider");return i}function x3({onChange:i,children:e,...t}){const a=am(),n=()=>{var o;const s=(o=a==null?void 0:a.current)==null?void 0:o.getUploader();s==null||s.open(),i&&s.onceUploadSuccess((...r)=>{i(...r)})};return we.jsx(Mo,{onClick:n,...t,children:e})}function w3({children:i,popup:e,...t}){const a=ne.useRef(null),n=ne.useMemo(()=>e?Am.createPortal(we.jsx(np,{ref:a,popup:!0,...t},"uploader"),document.body):we.jsx(np,{ref:a,popup:!1,...t},"uploader"),[a,e,t]);return we.jsxs(El.Provider,{value:a,children:[i,n]})}const H3=Object.freeze(Object.defineProperty({__proto__:null,CLOSE:ms,OPEN:hs,UPLOADER_UPLOAD_SUCCESS:Ar,Uploader:Mr,UploaderContext:El,UploaderProvider:w3,UploaderTrigger:x3,api:_l,base64ToFile:Nh,blobToFile:Tr,createImageUrl:xn,getAIKitComponent:Bh,getDownloadUrl:Lh,getExt:ea,getMediaKitComponent:ta,getObjectURL:Er,getUploaderEndpoint:Sl,getUrl:jh,initUploader:Cl,initUppy:$h,isBlob:Mh,isMediaKit:kr,mediaKitApi:ca,mediaKitMountPoint:It,parseStringToDot:Hh,get prefixPath(){return ci},setPrefixPath:zh,useUploaderContext:am},Symbol.toStringTag,{value:"Module"}));export{Bh as g,H3 as i,dp as k};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{bM as Ro,j as e,aO as At,aP as Gt,q as z,bo as Y,N as C,aB as be,P as s,A as N,r as f,f as Ce,br as Ye,b as H,K as O,U as Bt,X as Ot,cd as Be,n as $,V as ne,jr as To,bJ as Oe,b0 as de,a$ as ft,aG as Mt,a5 as J,D as Ft,b4 as Eo,fV as Po,fW as wo,C as le,fc as ko,dJ as _o,y as Io,az as On,a3 as ht,x as Uo,js as Do,jt as No,B as ae,ju as Lo,Y as Bo,$ as Oo,jv as Jn,m as ke,Q as ye,dx as Mo,aD as $o,aE as qo,dj as Ao,aF as Go,i as He,aR as Fo,cz as Wo,H as eo,bj as zo,a0 as Vo,O as it,j5 as Yo,jw as Ko,aC as Mn,cx as Ho,F as D,af as Me,aN as to,bL as Wt,am as Qo,cf as Xo,jx as Zo,ba as Jo,z as er,b1 as $t,T as tr,aU as Ve,ax as It,W as nr,bs as no,aJ as or,cX as Re,e0 as rr,jy as sr,fl as $n,jz as qn,gw as An,S as ir,G as at,gN as ar,bK as lr}from"./index-
|
|
1
|
+
import{bM as Ro,j as e,aO as At,aP as Gt,q as z,bo as Y,N as C,aB as be,P as s,A as N,r as f,f as Ce,br as Ye,b as H,K as O,U as Bt,X as Ot,cd as Be,n as $,V as ne,jr as To,bJ as Oe,b0 as de,a$ as ft,aG as Mt,a5 as J,D as Ft,b4 as Eo,fV as Po,fW as wo,C as le,fc as ko,dJ as _o,y as Io,az as On,a3 as ht,x as Uo,js as Do,jt as No,B as ae,ju as Lo,Y as Bo,$ as Oo,jv as Jn,m as ke,Q as ye,dx as Mo,aD as $o,aE as qo,dj as Ao,aF as Go,i as He,aR as Fo,cz as Wo,H as eo,bj as zo,a0 as Vo,O as it,j5 as Yo,jw as Ko,aC as Mn,cx as Ho,F as D,af as Me,aN as to,bL as Wt,am as Qo,cf as Xo,jx as Zo,ba as Jo,z as er,b1 as $t,T as tr,aU as Ve,ax as It,W as nr,bs as no,aJ as or,cX as Re,e0 as rr,jy as sr,fl as $n,jz as qn,gw as An,S as ir,G as at,gN as ar,bK as lr}from"./index-DYxj4bsg.js";import{d as cr}from"./Add-1IpBHqiQ.js";import{a as dr,R as ct,F as ur,L as pr,d as zt}from"./logo-uploader-BGLx9vI_.js";import{C as mr,A as fr,d as hr}from"./agreement-Dm4gD1iv.js";import{E as gr}from"./index-DVhqctGu.js";import{b as xr,a as yr,c as Cr,u as Vt,e as jr}from"./actions-CYK55IDo.js";import{S as vr}from"./switch-control-B41nAAlH.js";import{u as ue}from"./blocklet-q3h8NbCP.js";import{d as oo}from"./Edit-Df1qVd3M.js";import{T as br}from"./index-BHnQz9ut.js";import{T as Sr,M as Rr,t as Tr}from"./table-icons-DLP-yfOz.js";import{C as Gn}from"./click-to-copy-A5WCwDlw.js";import{T as X}from"./TextField-Ck96Zj1i.js";import{d as Yt}from"./Link-v9IWh6cd.js";import{c as Er,C as Pr,d as wr,s as ro,e as kr,a as _r,b as Ir,A as Ur,B as Dr,f as Nr,S as Lr}from"./item-DVTe-0gW.js";import{u as Br,a as Or,P as so,L as Fn,A as Mr,S as $r}from"./index-fqtLEedX.js";import{a as io}from"./uniqBy-COL9eNcG.js";import{u as ao,a as qr,C as Ar,D as Gr,b as Fr,c as Wr}from"./connect-to-BYaKsqLT.js";import{d as zr}from"./Done-CaIeE7qp.js";import{C as Vr}from"./Google-1CqVsK9-.js";import{I as Yr,a as Kr,f as Hr,B as Qr}from"./install-from-url-q76xLrvq.js";import{a as Wn}from"./api-C59NHs3o.js";import{v as lo,e as Xr,a as dt}from"./util-dakRC-rv.js";import{d as Zr}from"./ArrowDropDown-CO_v_gGe.js";import{_ as Jr}from"./useLocalStorage-BHwD0007.js";import{d as es}from"./LockIcon-YcQjwpaB.js";import{d as gt}from"./Delete-Ctg2zeKs.js";import{d as co}from"./Launch-BSF3J60R.js";import{C as ts}from"./delete-confirm-CSfka7us.js";import{W as Ke}from"./url-evaluation-_cliB2H6.js";import{d as ns}from"./is-path-prefix-equal-DWPB--12.js";import{R as os,a as zn,B as uo}from"./status-BwD-EBJu.js";import{B as rs}from"./bundle-avatar-BGPsgY2n.js";import{A as po}from"./actions-DCoY4ND_.js";import{I as Ut}from"./index-BvGfyxwm.js";import{t as ss}from"./toUpper-CRVjMgiU.js";import{a as is}from"./index-DtvC5owf.js";import{b as as}from"./base32-7h1_w7qX.js";import{u as ls}from"./team-C9C-b8dk.js";import"./EditIcon-RrUDe7G9.js";import"./ButtonGroup-6y7yf9hV.js";import"./getValidReactChildren-BxcBBj68.js";import"./index-CFR1XYQc.js";import"./index-r95Ymzg4.js";import"./url-join-BN5FuiJc.js";import"./MoreVert-B-UcAPyF.js";import"./slicedToArray-BsFyrH9P.js";import"./index-kGpBMKCz.js";import"./redux-D0hsiq_w.js";import"./CSSTransition-DnBIou_i.js";import"./ViewColumn-Dh3y3SOn.js";import"./ChevronRight-CLG1ay4A.js";import"./ChevronLeft-BphFdKoe.js";import"./Search-cMjY7-w9.js";import"./Select-DMrgQlpi.js";import"./InputLabel-CBKMP0kd.js";import"./index-BALhaKtR.js";import"./index-ZG7jWpak.js";import"./Skeleton-D9vyaoYF.js";import"./Autocomplete-BNAhky76.js";import"./ListSubheader-CIqta_y7.js";import"./InputAdornment-CZ1xQxbJ.js";import"./DeleteOutline-BlYvTbWy.js";import"./Close-DaUTq1SJ.js";import"./index-Bh8rfP9m.js";import"./HelpOutline-D2GlWrSn.js";import"./index-B2tDACFP.js";import"./ExpandMore-v0D4A-jC.js";import"./spaces-BH8l3rDt.js";import"./schema-B0T6A2Gz.js";import"./index-BkQeHFWv.js";import"./Stepper-4TPScSpn.js";import"./shorten-label-BmNhwxO2.js";import"./MoreHoriz-BuJY4jyH.js";const cs=Ro(e.jsx("path",{d:"M14.17 5 19 9.83V19H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V9.83c0-.53-.21-1.04-.59-1.41l-4.83-4.83c-.37-.38-.88-.59-1.41-.59M7 15h10v2H7zm0-4h10v2H7zm0-4h7v2H7z"}),"TextSnippetOutlined");var Kt={},ds=Gt;Object.defineProperty(Kt,"__esModule",{value:!0});var mo=Kt.default=void 0,us=ds(At()),ps=e;mo=Kt.default=(0,us.default)((0,ps.jsx)("path",{d:"M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8z"}),"Update");function Ht({children:t,...o}){var x;const{t:r}=z(),{api:l}=Y(),{blocklet:n}=ue(),i=(x=n==null?void 0:n.settings)==null?void 0:x.autoCheckUpdate,h=async g=>{await l.updateAutoCheckUpdate({input:{did:n.meta.did,autoCheckUpdate:g}})},d=async()=>{try{const g=!(i!=null&&i.enabled);await h({enabled:g}),N.success(r(g?"storage.spaces.autoCheckUpdate.enabled":"storage.spaces.autoCheckUpdate.disabled"))}catch(g){N.error(g.message)}},m=!!(i!=null&&i.enabled);return e.jsxs(C,{display:"flex",flexDirection:"row",alignItems:"center",children:[t,e.jsx(be,{title:r("storage.spaces.autoCheckUpdate.title"),arrow:!0,placement:"right",children:e.jsx("div",{children:e.jsx(vr,{checked:m,onChange:d,name:"enableWelcomePage",style:{...o.style,zoom:.8}})})})]})}Ht.propTypes={children:s.any};Ht.defaultProps={children:null};const ms=(t,o)=>{let{description:r}=t;return(Object.values(H.CHAIN_PROP_MAP).includes(t.key)||O.isEnvShareable(t))&&(r?r=`${r} (${o("blocklet.config.sharedToAllComponents")})`:r=o("blocklet.config.sharedToAllComponents")),r&&e.jsx("div",{style:{marginLeft:12},children:r})},Dt=(t,o,r=[])=>!(r!=null&&r.length)&&!t.custom&&!["CHAIN_ID","CHAIN_HOST"].includes(t.key)&&!o.meta.environments.find(l=>l.name===t.key)&&o.children.every(l=>!l.meta.environments.find(n=>n.name===t.key))?!0:t.custom,Vn=t=>[H.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE].includes(t)?!0:!(t.startsWith("BLOCKLET_")||t.startsWith("COMPONENT_")),Nt=t=>[H.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE].includes(t)===!1;function ut({blocklet:t,ancestors:o}){const r=Y(),{inService:l}=r,{t:n}=f.useContext(Ce),i=[...o.map(a=>a.meta.did),t.meta.did],h=()=>N.success(n("blocklet.config.changedTip")),d=a=>Dt(a,t,o);if(Ye(t.status)||t.status==="unknown"&&Ye(t.status))return null;const m=a=>new Promise(async(R,u)=>{if(!a.key.trim()||!a.value.trim()){N.error(n("blocklet.config.environment.keyValueRequired")),u();return}if(Vn(a.key)===!1){N.error(n("blocklet.config.environment.invalidKey")),u();return}a.custom=Nt(a.key);try{const y=await r.api.configBlocklet({input:{did:i,configs:[a]}});h(y.blocklet),R()}catch(y){N.error(ne(y)),u()}}),x=(a,R)=>new Promise(async(u,y)=>{if(a.required&&(!a.key.trim()||!a.value.trim())){N.error(n("blocklet.config.environment.keyValueRequired")),y();return}if(Vn(a.key)===!1){N.error(n("blocklet.config.environment.invalidKey")),y();return}if(a.key===H.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE){const T=To(a);if(T){N.error(T),y();return}}const w=[{...a,value:a.secure&&a.value==="__encrypted__"?"":a.value}];if(a.key!==R.key){if(!Dt(a,t,o)){N.error("Only key of custom env can be changed"),y();return}w.push({key:R.key,custom:Nt(a.key)})}try{const T=await r.api.configBlocklet({input:{did:i,configs:w}});h(T.blocklet),u()}catch(T){N.error(ne(T)),y()}}),g=a=>new Promise(async(R,u)=>{if(a.required){N.error(n("blocklet.config.environment.deleteForbidden")),u();return}if(!Dt(a,t,o)){N.error("Only key of custom env can be changed"),u();return}try{const y=await r.api.configBlocklet({input:{did:i,configs:[{key:a.key,custom:Nt(a.key)}]}});h(y.blocklet),R()}catch(y){N.error(ne(y)),u()}}),c=(t.configs||[]).filter(a=>!H.BLOCKLET_CONFIGURABLE_KEY[a.key]||[H.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE].includes(a.key)),b=O.getSharedConfigObj(o[0],t),p=O.getComponentMissingConfigs(t,o[0]),S=c.map(a=>({...a,value:Object.values(H.CHAIN_PROP_MAP).includes(a.key)&&Object.keys(b).includes(a.key)?b[a.key]:b[a.key]||a.value})),j=S.some(a=>a.key&&a.key.startsWith("BWA_")),v={onRowAdd:m,onRowUpdate:x,onRowDelete:g,isDeletable:d},k=()=>[{title:n("common.key"),field:"key",initialEditValue:"",width:"30%",render:a=>e.jsx(Gn,{value:a.value,style:{color:a.required&&!a.value?"#ff4436":"#222222",fontWeight:a.required?"bold":"normal"},children:a.key}),editComponent:a=>{const{value:R,rowData:u,onChange:y}=a;return e.jsx(Yn,{children:e.jsx(X,{fullWidth:!0,size:"small",disabled:d(u)===!1,value:R,onChange:w=>y(w.target.value),variant:"outlined",label:"Key",placeholder:n("blocklet.config.environment.key"),margin:"dense",autoFocus:!0})})}},{title:n("common.value"),field:"value",initialEditValue:"",width:"calc((100% - (96px + 30%)) / 1)",render:a=>a.value?a.secure?"******":e.jsx(Gn,{unstyled:!0,value:a.value,style:{wordBreak:"break-all"},children:a.value}):null,editComponent:a=>{const{value:R,rowData:u,onChange:y}=a;return e.jsxs(Yn,{children:[e.jsx(X,{fullWidth:!0,size:"small",value:R==="__encrypted__"?"":R,onChange:w=>y(w.target.value),variant:"outlined",label:n("common.value"),placeholder:n("blocklet.config.environment.value"),margin:"dense"}),ms(u,n)]})}}];return e.jsxs(fs,{children:[!!p.length&&e.jsx(Bt,{severity:"error",style:{marginTop:24},children:n("blocklet.config.missingRequired")}),j&&e.jsx(Bt,{severity:"info",children:n("blocklet.config.environment.tip")}),e.jsx(Ot,{permission:l?"":"mutate_blocklets",role:l?Be:[],children:a=>e.jsx(Sr,{className:"config-table",children:e.jsx(Rr,{title:e.jsx("h4",{children:n("common.environment")}),columns:k(),icons:{...xr,...Tr},options:{emptyRowsWhenPaging:!1,actionsColumnIndex:-1,tableLayout:"auto",maxBodyHeight:"100%",paging:!1,search:!1},localization:{header:{actions:n("common.actions")},body:{emptyDataSourceMessage:n("common.noData")}},data:S,editable:a?v:{}})})})]})}ut.propTypes={blocklet:s.object.isRequired,ancestors:s.array};ut.defaultProps={ancestors:[]};const fs=$.div`
|
|
2
2
|
.config-table {
|
|
3
3
|
margin-bottom: 24px;
|
|
4
4
|
position: relative;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as r,m as i,P as e,d8 as c,d9 as f,s as u}from"./index-
|
|
1
|
+
import{j as r,m as i,P as e,d8 as c,d9 as f,s as u}from"./index-DYxj4bsg.js";function l({name:t,nameFormatter:o,layout:a,children:n,valueComponent:s,nameWidth:m,...p}){return r.jsxs(d,{layout:a,width:m,...p,children:[r.jsx(i,{color:"textSecondary",className:"info-row__name",children:o(t)}),n&&r.jsx(i,{color:"textPrimary",component:s,className:"info-row__value",children:n})]})}l.propTypes={name:e.any.isRequired,layout:e.oneOf(["horizontal","vertical"]),children:e.any,nameFormatter:e.func,valueComponent:e.string,nameWidth:e.number};l.defaultProps={children:null,nameWidth:90,nameFormatter:t=>{const o=t.split(" ").map(a=>c(f(a))).join(" ");return typeof t=="string"?o:t},valueComponent:"div",layout:"horizontal"};const d=u("div")`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: ${t=>t.layout==="vertical"?"column":"row"};
|
|
4
4
|
justify-content: flex-start;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{an as Z,z as q,r as p,a as ee,b as te,P as b,q as j,u as w,y as se,ay as N,K as $,j as t,x as _,az as re,a3 as S,m as R,D as M,aA as oe,X as O,aB as ne,B as V,C as W,aC as ae,A as z,V as K,aD as ie,aE as le,N as G,aF as ce,F as ue,aG as D,i as de,n as H,ac as pe,a7 as he,a9 as fe,aa as me,aH as ge,ab as xe}from"./index-
|
|
1
|
+
import{an as Z,z as q,r as p,a as ee,b as te,P as b,q as j,u as w,y as se,ay as N,K as $,j as t,x as _,az as re,a3 as S,m as R,D as M,aA as oe,X as O,aB as ne,B as V,C as W,aC as ae,A as z,V as K,aD as ie,aE as le,N as G,aF as ce,F as ue,aG as D,i as de,n as H,ac as pe,a7 as he,a9 as fe,aa as me,aH as ge,ab as xe}from"./index-DYxj4bsg.js";import{_ as B}from"./useLocalStorage-BHwD0007.js";import{c as be,C as ke,A as ye,a as Se,b as je,B as we,S as Q,d as Pe,e as ve}from"./item-DVTe-0gW.js";import{d as Re}from"./ArrowDropDown-CO_v_gGe.js";import{B as Ce}from"./Breadcrumbs-bwWUdzXH.js";import"./ChevronLeft-BphFdKoe.js";import"./ChevronRight-CLG1ay4A.js";import"./Search-cMjY7-w9.js";import"./index-DVhqctGu.js";import"./index-BALhaKtR.js";import"./index-ZG7jWpak.js";import"./Select-DMrgQlpi.js";import"./Skeleton-D9vyaoYF.js";import"./Autocomplete-BNAhky76.js";import"./ListSubheader-CIqta_y7.js";import"./TextField-Ck96Zj1i.js";import"./InputLabel-CBKMP0kd.js";import"./InputAdornment-CZ1xQxbJ.js";import"./Add-1IpBHqiQ.js";import"./Launch-BSF3J60R.js";import"./Done-CaIeE7qp.js";import"./DeleteOutline-BlYvTbWy.js";import"./delete-confirm-CSfka7us.js";import"./click-to-copy-A5WCwDlw.js";import"./shorten-label-BmNhwxO2.js";import"./blocklet-q3h8NbCP.js";import"./MoreVert-B-UcAPyF.js";import"./ButtonGroup-6y7yf9hV.js";import"./getValidReactChildren-BxcBBj68.js";function Be(e){const a=Z(),u=q(),[r,s]=B(`sid:blocklet:purchase:${e}`),[i,c]=p.useState(!1),[h,l]=p.useState(null),f=()=>{const{pathname:o,searchParams:n}=new URL(window.location.href),d=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";n.get("sid")&&(s(""),u(o.replace(d,"/"),{replace:!0}))},m=!!(a.get("assetDid")&&r&&a.get("sid")===r);return ee(te.BlockletEvents.purchaseChange,o=>{o.did===e&&(l(o.session),["declined","confirmed","error"].includes(o.session.status)&&(c(!0),setTimeout(f,2e3)))}),p.useEffect(()=>{h&&h.id!==r&&s(h.id)},[h]),{hasCompleted:i,hasPurchased:m,session:h,setSession:l,doRedirect:f}}function E({meta:e,onCancel:a,handlePaySuccess:u,storeUrl:r}){const{t:s}=j(),{info:i}=w(),[c,h]=p.useState("both"),[l,f]=p.useState(1),m=se(i),o=N(e,i,r),n=v=>{v!==c&&h(v)},d=()=>{c&&(f(2),c==="verify"&&(window.location.href=o))},k=(v,L)=>{L!=="backdropClick"&&a()},P=()=>{u(o)},g=$.getDisplayName({meta:e});if(c==="purchase"&&l===2)return t.jsx(_,{open:!0,popup:!0,baseUrl:r,action:"acquire-asset",checkFn:re.create({baseURL:S(r,"/store")}).get,onSuccess:P,onClose:a,checkTimeout:60*5e3,extraParams:{factory:e.nftFactory},webWalletUrl:m,disableClose:!0,saveConnect:!1,showDownload:!1,messages:{title:s("store.purchase.auth.title",{name:g}),scan:s("store.purchase.auth.scan"),confirm:s("store.purchase.auth.confirm"),success:t.jsxs(t.Fragment,{children:[t.jsx(R,{gutterBottom:!0,children:s("store.purchase.auth.success")}),t.jsxs(R,{variant:"subtitle2",children:[" ",s("store.purchase.autoLaunch",{name:g})]})]})}});const x=M;return t.jsx(x,{title:s("store.purchase.title",{name:g}),disableEscapeKeyDown:!0,open:!0,fullWidth:!0,onClose:k,children:t.jsx("div",{style:{marginBottom:16},children:t.jsx(ke,{action:c,onNext:d,onSelect:n})})})}E.propTypes={...be,storeUrl:b.string.isRequired,handlePaySuccess:b.func};E.defaultProps={handlePaySuccess:e=>{setTimeout(()=>{window.location.href=e},1e3)}};function T({meta:e,buttonText:a,storeUrl:u,isResource:r}){const{t:s}=j(),i=q(),{info:c}=w(),{api:h}=oe(),l=$.isFreeBlocklet(e)===!1,[f,m]=p.useState(!1),{hasPurchased:o}=Be(e.did),[n,d]=p.useState(!1),[k]=B("instant-blocklet-install",!1),[P,g]=p.useState(!1),x=p.useMemo(()=>f?s(l?"blocklet.status.purchasing":"blocklet.status.waiting"):"",[f,s,l]),v=p.useMemo(()=>r?s("blocklet.status.resource"):l?a.purchase:a.launch,[l,a,r]),L=y=>{y.preventDefault(),y.stopPropagation();try{if(m(!0),l){d(!0);return}if(k){g(!0);return}if(!l){const C=N(e,c,u);window.location.href=C}}catch(C){z.error(K(C),{autoHideDuration:5e3}),console.error("Blocklet installed failed",C)}finally{m(!1)}},X=()=>{m(!1),d(!1)},Y=y=>{m(!1),g(!1),i(`/blocklets/${y.appDid}/components`)},J=()=>{m(!1),g(!1)};return t.jsxs(t.Fragment,{children:[t.jsx(ye,{children:t.jsx(O,{permission:"mutate_blocklets",children:y=>t.jsx(ne,{title:r?s("launchBlocklet.error.resourceBlocklet"):"",children:t.jsx(V,{onClick:L,size:"small",sx:{cursor:r?"not-allowed":"pointer"},disabled:!!(x||!y),variant:"outlined",color:"primary","data-cy":"install-blocklet",children:x?t.jsxs(t.Fragment,{children:[t.jsx(W,{size:16,style:{marginRight:3}}),x]}):v},e.did)})})}),(o||n)&&t.jsx(E,{method:"launch",meta:e,mode:"both",onCancel:X,storeUrl:u}),P&&t.jsx(_,{popup:!0,open:!0,forceConnected:!1,className:"launch-from-url-auth",action:"launch-free-blocklet-by-session",checkFn:h.get,checkTimeout:5*60*1e3,onSuccess:Y,extraParams:{title:e.title,blockletMetaUrl:decodeURIComponent(ae(u,e.did).trim())},messages:{title:s("setup.keyPair.title"),scan:s("setup.keyPair.scan"),confirm:s("setup.keyPair.confirm"),success:s("setup.keyPair.success")},onClose:J})]})}T.propTypes={isResource:b.bool,meta:b.object.isRequired,buttonText:b.shape({purchase:b.string.isRequired,launch:b.string.isRequired}).isRequired,storeUrl:b.string.isRequired};T.defaultProps={isResource:!1};const Le=(e,a,u)=>{const r=pe(a);return S(u,`/blocklets/${e.did}/?server-url=${r}`)},A=({meta:e,attribute:a,value:u})=>e._formatted?e._formatted[a]:u;function U({blocklet:e,endpoint:a,serverVersion:u}){var o;const{t:r}=j(),s=w();let i=S(s.imgPrefix,"blocklet.png");const c=a;if(c.startsWith("http")&&e.logo)i=S(c,ce(e.did,e.logo,e.version));else{let d=(window.env.apiPrefix||"/").replace(/^\/+/,"").replace(/\/+$/,"");d&&(d=`/${d}`),i=S(d,`/blocklet/logo/${e.did}`)}try{const n=new URL(i);n.searchParams.set("v",e.version||+new Date),i=n.href}catch{}const h=(s==null?void 0:s.info.mode)!==ue.NODE_MODES.SERVERLESS,l=n=>n.currentTarget.contains(n.target)?!0:(n.preventDefault(),!1),f={meta:e,buttonText:{purchase:r("common.purchase"),launch:r("common.launch")},storeUrl:c};let m=null;return h&&(m=t.jsx("div",{style:{display:"flex",alignItems:"center"},children:t.jsx(je,{serverVersion:u,requirementVersion:(o=e.requirements)==null?void 0:o.server,size:"small",children:t.jsx(T,{isResource:!(D.hasStartEngine(e)||D.isGatewayBlocklet(e)||D.isPackBlocklet(e)),...f})})})),t.jsx(de,{href:Le(e,s.info,a),style:{color:"initial",textDecoration:"none"},onClick:l,target:"_blank",children:t.jsx(De,{title:A({meta:e,attribute:"title",value:e.title||e.name}),did:e.did,description:A({meta:e,attribute:"description",value:e.description}),cover:e.logo?i:"",version:e.version,button:m})})}U.propTypes={blocklet:b.object.isRequired,serverVersion:b.string,endpoint:b.string};U.defaultProps={endpoint:"",serverVersion:""};function I({storeUrl:e,handleSearchSelect:a,extraFilter:u,...r}){var o;const{locale:s}=j(),i=w(),[c,h]=p.useState({}),l=n=>{h(n)},f=e,m=(o=i==null?void 0:i.info)==null?void 0:o.version;return p.useEffect(()=>{h({})},[f]),t.jsx(ie,{FallbackComponent:le,resetKeys:[f],children:t.jsx(G,{...r,sx:{"& .title-bar":{pt:0}},children:t.jsx(Se,{layout:{showExplore:!1,showTitle:!0},blockletRender:n=>{const d={...n,endpoint:f};return t.jsx(U,{...d})},baseSearch:!0,endpoint:f,locale:s,onFilterChange:l,onSearchSelect:a,filters:c,extraFilter:u,serverVersion:m})})})}I.propTypes={storeUrl:b.string.isRequired,handleSearchSelect:b.func,extraFilter:b.func};I.defaultProps={handleSearchSelect:null,extraFilter:void 0};const De=H(we)`
|
|
2
2
|
.ms-highlight {
|
|
3
3
|
color: ${e=>e.theme.palette.primary.main};
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,f as n,j as t,n as e}from"./index-
|
|
1
|
+
import{r as o,f as n,j as t,n as e}from"./index-DYxj4bsg.js";import{R as r}from"./index-D4yD9wCL.js";function i(){const{t:s}=o.useContext(n);return t.jsx(a,{style:{paddingTop:"25vh"},children:t.jsx(r,{status:"404",description:s("noMatch.desc"),style:{backgroundColor:"transparent"}})})}const a=e.main``;export{i as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as p,c as me,u as Z,e as Ie,aI as Er,j as e,F as E,aJ as cn,aK as Bn,aL as Pr,aM as dn,aN as qe,aO as xe,aP as ye,P as u,n as V,q as $,af as re,aQ as un,aR as Ar,aS as mn,aT as Ir,A as te,O as fn,m as L,X as ne,aB as de,C as K,U as he,B as Y,aU as Wn,V as ue,N as ee,f as Rt,R as qn,aV as kr,aW as Lr,ac as Or,aX as Fr,aY as Nr,aZ as Ur,z as Hn,W as pn,T as gn,k as Q,a_ as Tt,a as yt,Q as oe,b as et,a$ as Kn,b0 as Gn,b1 as Yn,S as $r,a5 as Mr,b2 as zr,b3 as Br,b4 as Wr,b5 as qr,b6 as Hr,b7 as He,aa as Kr,d as Vn,K as Gr,b8 as Yr,aH as ze,ab as ft,a8 as pt,b9 as Vr,a9 as vt,i as Xn,M as Xr,ba as Qr,bb as we,bc as _e,bd as Zr,be as Jr,D as Qn,w as bt,am as ei,h as ti,ax as hn,bf as ni,bg as xn,an as ri,bh as ii,bi as oi,bj as ai}from"./index-
|
|
1
|
+
import{r as p,c as me,u as Z,e as Ie,aI as Er,j as e,F as E,aJ as cn,aK as Bn,aL as Pr,aM as dn,aN as qe,aO as xe,aP as ye,P as u,n as V,q as $,af as re,aQ as un,aR as Ar,aS as mn,aT as Ir,A as te,O as fn,m as L,X as ne,aB as de,C as K,U as he,B as Y,aU as Wn,V as ue,N as ee,f as Rt,R as qn,aV as kr,aW as Lr,ac as Or,aX as Fr,aY as Nr,aZ as Ur,z as Hn,W as pn,T as gn,k as Q,a_ as Tt,a as yt,Q as oe,b as et,a$ as Kn,b0 as Gn,b1 as Yn,S as $r,a5 as Mr,b2 as zr,b3 as Br,b4 as Wr,b5 as qr,b6 as Hr,b7 as He,aa as Kr,d as Vn,K as Gr,b8 as Yr,aH as ze,ab as ft,a8 as pt,b9 as Vr,a9 as vt,i as Xn,M as Xr,ba as Qr,bb as we,bc as _e,bd as Zr,be as Jr,D as Qn,w as bt,am as ei,h as ti,ax as hn,bf as ni,bg as xn,an as ri,bh as ii,bi as oi,bj as ai}from"./index-DYxj4bsg.js";import{T as si}from"./index-BHnQz9ut.js";import{d as li}from"./ArrowDropDown-CO_v_gGe.js";import{u as Et,C as ie,a as yn}from"./index.esm-COz0rluF.js";import{S as pe}from"./switch-control-B41nAAlH.js";import{d as jt,i as ci}from"./is-path-prefix-equal-DWPB--12.js";import{T as G,F as di}from"./TextField-Ck96Zj1i.js";import{D as Zn,g as ui}from"./index-xwOBGVcu.js";import{d as Jn}from"./Link-v9IWh6cd.js";import{d as ke}from"./Delete-Ctg2zeKs.js";import{C as Pt}from"./delete-confirm-CSfka7us.js";import{I as Ke}from"./index-BvGfyxwm.js";import{s as mi}from"./logo-BKA11TRi.js";import{_ as fi}from"./useLocalStorage-BHwD0007.js";import{L as pi}from"./LoadingButton-DyT3S3FL.js";import{C as gi,d as er}from"./Public-Dwmx99ns.js";import{d as At}from"./Add-1IpBHqiQ.js";import{a as hi,W as Be}from"./url-evaluation-_cliB2H6.js";import{B as tr,D as vn,R as xi,a as yi}from"./status-BwD-EBJu.js";import{d as vi}from"./CheckCircle-D7oERMFD.js";import{d as bi}from"./ExpandMore-v0D4A-jC.js";import{d as ji}from"./ChevronRight-CLG1ay4A.js";import{d as Ci}from"./MoreVert-B-UcAPyF.js";import{d as nr}from"./Edit-Df1qVd3M.js";import{d as Si,a as rr}from"./Https-CnQMz8bU.js";import{w as wi}from"./withStyles-GBXoa1NK.js";import{S as _i}from"./Slider-Dkmvlog2.js";import"./index-DtvC5owf.js";import"./Select-DMrgQlpi.js";import"./InputLabel-CBKMP0kd.js";import"./useThemeProps-D02eSTIA.js";import"./emotion-react.browser.esm-BNqOuiVX.js";import"./index-DMjshc-U.js";import"./redux-D0hsiq_w.js";import"./ViewColumn-Dh3y3SOn.js";import"./LastPage-O0R3NHtX.js";import"./Search-cMjY7-w9.js";import"./index-DVhqctGu.js";import"./click-to-copy-A5WCwDlw.js";import"./shorten-label-BmNhwxO2.js";const ge="Dashboard",ir=p.createContext({}),{Provider:Di,Consumer:us}=ir,bn=[ge,E.DOMAIN_FOR_IP_SITE,E.DOMAIN_FOR_IP_SITE_REGEXP],Ri=(t,n)=>{if(t.name===E.DOMAIN_FOR_DEFAULT_SITE)return-1;if(n.name===E.DOMAIN_FOR_DEFAULT_SITE)return 1;const r=bn.includes(t.name),i=bn.includes(n.name);return r&&i?dn(t.name,n.name):r?-1:i?1:dn(t.name,n.name)},Ti=({sites:t,nodePort:n})=>{const r=window.location.host,o=(t||[]).map(a=>{const{id:l,rules:c=[],corsAllowedOrigins:h=[]}=a;let{domain:d,domainAliases:m}=a;m=m||[],[E.DOMAIN_FOR_IP_SITE,E.DOMAIN_FOR_IP_SITE_REGEXP].includes(d)&&(d=ge,m.find(f=>f.value===r)||m.unshift({protected:!1,value:r}));const g={id:l,name:d,type:"domain",items:[],domainAliases:m,isProtected:a.isProtected,corsAllowedOrigins:h};return(c||[]).forEach(f=>{const{id:y,isProtected:b,from:{pathPrefix:v},to:C}=f;if(C.type===E.ROUTING_RULE_TYPES.BLOCKLET){let T="";Number.parseInt(C.port,10)===Number.parseInt(n,10)?(T="Blocklet Server Dashboard",C.type=E.ROUTING_RULE_TYPES.DAEMON):T=C.did,g.items.push({id:y,name:cn(v||"/"),title:T,type:"rule",isProtected:b,pathPrefix:v,to:C})}else g.items.push({id:y,pathPrefix:v,name:cn(v||"/"),title:"Blocklet Server Dashboard",type:"rule",isProtected:b,to:C})}),g.items=Bn(g.items,f=>f.name),g}).sort(Ri),s=o.reduce((a,l)=>{let{name:c}=l;return c.endsWith(E.BLOCKLET_SITE_GROUP_SUFFIX)&&([c]=c.split(".")),a[c]={...l,rules:l.items},a},{});return{sites:o,siteMap:s}},Ei=({did:t,domain:n,mountPoint:r,siteMap:i,params:o}={})=>{if(!i)return null;const s=i[t];if(!s)return null;const a=n||(s.domainAliases||[])[0];if(!a)return null;let l=r;if(!l){const c=s.rules.filter(h=>!h.name.startsWith(E.WELLKNOWN_PATH_PREFIX))[0];l=c?c.name:"/"}return qe(a.value,l,o)},Pi=({did:t,mountPoint:n,siteMap:r,params:i}={})=>{if(!r)return[];const o=r[t];if(!o)return[];const s=o.domainAliases||[];if(!s.length)return[];let a=n;if(!a){const l=o.rules.filter(c=>!c.name.startsWith(E.WELLKNOWN_PATH_PREFIX))[0];a=l?l.name:"/"}return s.map(l=>qe(l.value,a,i))},Ai=t=>{const n=t.map(i=>i.domain).filter(i=>![E.DOMAIN_FOR_IP_SITE_REGEXP,E.DOMAIN_FOR_DEFAULT_SITE].includes(i));let r=[];return t.forEach(i=>r.push(...i.domainAliases||[])),r=r.map(i=>typeof i=="string"?{value:i,isProtected:!1}:i),{domains:n,domainsAliases:r}};function jn({children:t}){const n=me(),{info:r}=Z(),[i,o]=p.useState([]),[s,a]=p.useState([]),[l,c]=p.useState([]),h=Ie(async()=>{const{sites:w}=await n.getRoutingSites({input:{snapshotHash:""}}),S=w||[];await Promise.all(S.map(async D=>(D.domainAliases=await Er(D.domainAliases,{getIP:Pr}),D)));const I=Ai(S);o(S),a(I.domains),c([window.location.hostname,...I.domains,...I.domainsAliases.map(D=>D.value)])},[r]),d=(w,S)=>{o(I=>I.map(D=>D.id===w?S.domain?S:{...S,domain:D.domain}:D))},m=w=>n.takeRoutingSnapshot({input:{dryRun:!1,message:encodeURIComponent(w)}}),g=async w=>{const S=await n.addRoutingSite({input:w});o(i.concat(S.site))},f=async(w,S)=>{const I=await n.updateRoutingSite({input:{id:w,...S}});if(I.site&&I.site.id){const D=i.findIndex(U=>U.id===I.site.id);D!==-1&&(i.splice(D,1,I.site),o([].concat(i)))}},y=async w=>{await n.deleteRoutingSite({input:{id:w}}),o(i.filter(S=>S.id!==w))},b=async(w,S,I)=>{const D=await n.addDomainAlias({input:{id:w,domainAlias:S,force:I}});d(w,D.site)},v=async(w,S)=>{const I=await n.deleteDomainAlias({input:{id:w,domainAlias:S}});d(w,I.site)},C=async(w,S)=>{const{site:I}=await n.addRoutingRule({input:{id:w,rule:S}});d(w,I)},T=async(w,S)=>{const{site:I}=await n.updateRoutingRule({input:{id:w,rule:S}});d(w,I)},j=async(w,S)=>{const{site:I}=await n.deleteRoutingRule({input:{id:w,ruleId:S}});d(w,I)},x={loading:h.loading,error:h.error,refresh:h.retry,api:n,actions:{addSite:g,updateSite:f,deleteSite:y,addDomainAlias:b,deleteDomainAlias:v,takeSnapshot:m,addRule:C,updateRule:T,deleteRule:j}},{sites:P,siteMap:R}=Ti({sites:i,nodePort:r.port});return x.sites=P,x.siteMap=R,x.domains=s,x.allDomains=l,x.getBlockletUrl=({did:w,domain:S,mountPoint:I,params:D})=>Ei({did:w,domain:S,mountPoint:I,siteMap:x.siteMap,params:D}),x.getBlockletUrls=({did:w,mountPoint:S,params:I})=>Pi({did:w,mountPoint:S,siteMap:x.siteMap,params:I}),e.jsx(Di,{value:{routing:x},children:t})}function se(){const{routing:t}=p.useContext(ir);return t}function It(t){const n=[E.DOMAIN_FOR_IP_SITE_REGEXP,E.DOMAIN_FOR_DEFAULT_SITE,E.DOMAIN_FOR_IP_SITE];return typeof window<"u"&&typeof window.location<"u"&&n.push(window.location.hostname),n.includes(t)}var kt={},Ii=ye;Object.defineProperty(kt,"__esModule",{value:!0});var or=kt.default=void 0,ki=Ii(xe()),Li=e;or=kt.default=(0,ki.default)((0,Li.jsx)("path",{d:"m7 14 5-5 5 5z"}),"ArrowDropUp");function Oi(){return null}function Lt({confirm:t}){const[n,r]=p.useState(null),{t:i}=$(),o=()=>{r(null)},s=async l=>{if(l){let c=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";c==="/"?un.push(`${l.pathname}`):(c.endsWith("/")&&(c=c.substring(0,c.length-1)),un.push(`${c}${l.pathname}`)),window.location.reload()}},a=(l,...c)=>{let h=typeof t=="function"?t(l,...c):t;return h?(typeof h=="string"&&(h={description:h}),r({title:i("common.noticeTitle"),description:i("common.leavePageTip"),confirm:i("common.confirm"),cancel:i("common.cancel"),onConfirm:()=>s(l),onCancel:()=>o(),...h}),!1):!0};return e.jsxs(Fi,{children:[e.jsx(Oi,{message:a}),n&&e.jsx(re,{title:n.title,description:n.description,confirm:n.confirm,cancel:n.cancel,params:n.params,onConfirm:n.onConfirm,onCancel:n.onCancel})]})}Lt.propTypes={confirm:u.oneOfType([u.object,u.string,u.func])};Lt.defaultProps={confirm:null};const Fi=V.div`
|
|
2
2
|
margin-bottom: 24px;
|
|
3
3
|
.top-btns-alert {
|
|
4
4
|
@media (max-width: ${t=>t.theme.breakpoints.values.sm}px) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as R,j as o,C,aA as T,cB as U,z as b,q as W,cv as D,r,aY as _,k as d,a3 as x,ao as k,ag as z,x as E,az as O,y as $,bn as q,n as A}from"./index-
|
|
1
|
+
import{u as R,j as o,C,aA as T,cB as U,z as b,q as W,cv as D,r,aY as _,k as d,a3 as x,ao as k,ag as z,x as E,az as O,y as $,bn as q,n as A}from"./index-DYxj4bsg.js";import{I as B}from"./invitation-BW39GEcj.js";import"./index-D4yD9wCL.js";import"./index-DhjpRk6v.js";import"./emotion-react.browser.esm-BNqOuiVX.js";import"./index-Cx0pTn8V.js";import"./sdk-CFjHlo2e.js";import"./CheckCircle-D7oERMFD.js";import"./wrap-locale-_cUmGXc1.js";function K(v){const{api:i,session:f}=T(),{info:s}=R(),c=U(),p=b(),{t:l,locale:m}=W(),{encryptKey:P,decrypt:N}=D(),[S,g]=r.useState(!1),h=r.useMemo(()=>new URLSearchParams(c.search).get("inviteId"),[c]),a=_(async()=>{if(!h)return null;let e;const{data:n}=await i.get("/api/invitation",{params:{inviteId:h}}),t=!!d(s,"ownerNft.did")&&n.role.name==="owner";if(t){const u=new URL(window.location.href);u.pathname=x(k(),"/api/did/invite/token"),u.searchParams.set("_ek_",P),u.searchParams.set("inviteId",h);const{data:F}=await i.get(u.href);e=F}return{invitation:n,nextWorkflow:e,needReceiveNFT:t}}),L=r.useCallback(()=>{g(!0)},[]),y=r.useCallback(()=>{if(a.error)throw a.error;return a.value.invitation},[a]),w=r.useCallback(async e=>{e&&z(N(e.sessionToken));const n=new URLSearchParams(c.search);n.delete("inviteId");const t=n.toString();await f.refresh(),p(`/${t&&`?${t}`}`,{replace:!0})},[c,p,f]);if(a.loading)return o.jsx(C,{});const I=()=>{const e=new URL(window.location.href);e.pathname=x(k(),"/api/did/invite/status"),e.searchParams.set("_t_",a.value.nextWorkflow.token),e.searchParams.set("locale",m);const n=setInterval(async()=>{const{data:t}=await i.get(e.href);t.status==="succeed"&&(clearInterval(n),f.updateConnectedInfo(t),w(t))},2e3)},j=()=>{g(!1)};return o.jsxs(M,{className:"page-invite",children:[d(a,"value.needReceiveNFT")&&o.jsx(E,{action:"login",popup:!0,className:"connect",open:S,locale:m,baseUrl:s.launcher.url,checkFn:O.create({baseURL:s.launcher.url}).get,onSuccess:I,onClose:j,checkTimeout:5*60*1e3,webWalletUrl:$(s),extraParams:{nw:d(a,"value.nextWorkflow.url")},messages:{title:l("invite.transferNFTDialog.title",{name:s.name}),scan:l("invite.transferNFTDialog.scan"),confirm:l("invite.transferNFTDialog.confirm"),success:l("invite.transferNFTDialog.success")},prefix:"/.well-known/service/api/did"}),o.jsx(B,{...v,getDataFn:y,createPassportSvg:e=>q(e,s),checkFn:i.get,onLoginSuccess:w,passportColor:"default",onReceive:d(a,"value.needReceiveNFT")?L:null})]})}const M=A.div`
|
|
2
2
|
width: 100vw;
|
|
3
3
|
height: 100%;
|
|
4
4
|
min-height: 100vh;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e,F as r,r as n,f as o,m as i,n as a}from"./index-DYxh7vIZ.js";const s=({...t})=>e.jsxs("div",{...t,children:[e.jsx("h3",{children:"End User License Agreement for Blocklet Server"}),e.jsxs("p",{children:["Blocklet Server License Agreement ",r.COPYRIGHT_OWNER," version 2020-08-28"]}),e.jsx("p",{children:"Blocklet Server LICENSE AGREEMENT"}),e.jsxs("p",{children:["PLEASE READ THIS END USER LICENCE AGREEMENT CAREFULLY. This Blocklet Server License Agreement ('Agreement') is a legal agreement between you (the 'End User') and ",r.COPYRIGHT_OWNER," (ARCBLOCK) for the Blocklet Server software (the 'Software') licensed to End User hereunder and supplied to End User. The term Software includes any APIs, software modules, and any associated materials and 'online' or electronic documentation. This Agreement applies to End User's use of the Software but it shall be superseded by any signed agreement between End User and ARCBLOCK concerning the Software."]}),e.jsx("p",{children:"By installing or using the Software, You agree to accept and to be bound by this Agreement at all times. If You do not agree with one of these, please do not install or use the Software."}),e.jsx("h4",{children:"1. Software license"}),e.jsx("p",{children:"Notwithstanding any reference to 'sale' or 'purchase', the Software is licensed, not sold. Subject to the terms and conditions of this Agreement, ARCBLOCK grants End User a non-exclusive, non-transferable right to access and use the Software as part of the services for End User's use ('Authorized Use') in object form in the products, versions, and number of installed instances as purchased from ARCBLOCK."}),e.jsx("h4",{children:"2. Limitations"}),e.jsx("p",{children:"2.1. Restrictions. End User shall not itself, or through any parent, subsidiary, affiliate, agent or other third party: (a) sell, lease, license, distribute, sublicense or otherwise transfer in whole or in part, the Software to a third party; (b) decompile, disassemble, translate, reverse engineer or otherwise attempt to derive source code from the Software except to the limited extent, if any, that applicable law permits such acts notwithstanding any contractual prohibitions, provided, however, before End User exercises any rights that End User believes to be entitled to based on mandatory law, End User shall provide ARCBLOCK with thirty (30) days prior written notice and provide all reasonably requested information to allow ARCBLOCK to assess End User's claim and, at ARCBLOCK sole discretion, to provide alternatives that reduce any adverse impact on ARCBLOCK's intellectual property or other rights; (c) allow access or permit use of the Software by any third party except authorized third party contractors solely to provide services to End User, provided that End User shall be liable for all acts and omissions of such authorized third party contractors; (d) modify or create derivative works based upon the Software; (e) disclose the results of any benchmark test of the Software to any third party; (f) change any proprietary rights notices which appear in the Software; or (g) circumvent the license keys embedded within the Software."}),e.jsx("p",{children:"2.2. Software Transfer. Upon written consent from ARCBLOCK, which will not be unreasonably withheld, End User may permanently transfer all of its rights under this Agreement; provided that the recipient agrees to the terms of this Agreement."}),e.jsx("p",{children:"2.3. High Risk Activities. The Software is not intended for use in hazardous environments requiring fail safe performance (such as, without limitation, the planning, construction, maintenance, control, or direct operation of nuclear facilities, aircraft navigation or communication systems, air traffic control, medical device and life support machines, or weapon systems) in which the failure of the Software could lead to death, personal injury or physical and environmental damage ('High Risk Activities'). Accordingly, this Agreement excludes any High Risk Activities and End User agrees not to use the Software in connection with High Risk Activities."}),e.jsx("h4",{children:"3. Ownership"}),e.jsx("p",{children:"The Software is protected by copyright laws and international copyright treaties, as well as other intellectual property laws and treaties. ARCBLOCK owns all rights, title and interest in the copyrights, patents and all other intellectual property rights in and to the Software and any accompanying printed materials, and all derivative works thereof."}),e.jsx("h4",{children:"4. Open source programs"}),e.jsx("p",{children:"The Software may include individual open source software components, each of which has its own copyright and its own applicable license conditions. The open source software components are licensed to End User under the terms of the applicable open source license conditions and/or copyright notices that can be found in the licenses file, the related documentation or other materials accompanying the Software."}),e.jsx("h4",{children:"5. Trademarks"}),e.jsx("p",{children:"The marks 'ARCBLOCK', ‘BLOCKLETS’ and ‘Blocklet Server’ are trademarks of ARCBLOCK. ARCBLOCK's failure to list a trademark in this Section shall not constitute a waiver of any trademark rights. All other trademarks in the Software not owned by ARCBLOCK are the property of their respective owners."}),e.jsx("h4",{children:"6. Disclaimer and Warranty"}),e.jsx("p",{children:"6.1. DISCLAIMER OF WARRANTIES. THE SOFTWARE IS PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND AND ARCBLOCK EXPRESSLY DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED OR ARISING OUT OF A COURSE OF CONDUCT OR COURSE OF DEALING, INCLUDING ALL WARRANTIES OF TITLE, PERFORMANCE, USE, MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON INFRINGEMENT AND THE ABSENCE OF LATENT OR OTHER DEFECTS, WHETHER OR NOT DISCOVERABLE. ARCBLOCK MAKES NO WARRANTY REGARDING NON INTERRUPTION OF USE. NO ORAL OR WRITTEN STATEMENT PROVIDED BY ARCBLOCK SHALL CREATE ANY WARRANTY."}),e.jsx("p",{children:"6.2. LIMITATION OF LIABILITY. THE ENTIRE RISK AS TO THE RESULTS AND PERFORMANCE OF THE SOFTWARE IS ASSUMED BY END USER. ARCBLOCK SHALL NOT HAVE ANY LIABILITY TO END USER OR ANY OTHER PARTY FOR ANY INDIRECT, INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES WHATSOEVER, INCLUDING, BUT NOT LIMITED TO, LOSS OF REVENUE, PROFIT OR OPPORTUNITY, LOST OR DAMAGED DATA OR OTHER COMMERCIAL OR ECONOMIC LOSS, EVEN IF ARCBLOCK HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES, OR THEY ARE FORESEEABLE. ARCBLOCK'S MAXIMUM AGGREGATE LIABILITY RELATING TO THIS AGREEMENT OR THE SOFTWARE SHALL NOT EXCEED THE AMOUNT PAID BY END USER FOR THE SOFTWARE."}),e.jsx("p",{children:"6.3. ALLOCATION. THE PROVISIONS OF THIS SECTION ALLOCATE RISKS UNDER THIS AGREEMENT BETWEEN ARCBLOCK AND END USER. ARCBLOCK'S LICENSING FEES FOR THE SOFTWARE REFLECT THIS ALLOCATION OF RISKS AND LIMITATION OF LIABILITY. THE FOREGOING LIMITATIONS, EXCLUSIONS AND DISCLAIMERS APPLY TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, EVEN IF ANY REMEDY FAILS IN ITS ESSENTIAL PURPOSE."}),e.jsx("p",{children:"6.4. Limitation. Because some jurisdictions do not allow certain disclaimers, exclusions or limitations of warranties, damages or liability, the above disclaimers, exclusions or limitations may not apply to End User and, therefore, shall apply only to the maximum extent allowed under applicable law."}),e.jsx("h4",{children:"7. Term"}),e.jsx("p",{children:"This Agreement is effective until terminated. End Users may terminate the Agreement at any time by returning or destroying all copies of the Software and related documentation. End User's rights under this Agreement will terminate automatically if End User fails to comply with the Agreement."}),e.jsx("h4",{children:"8. Miscellaneous"}),e.jsx("p",{children:"8.1. Governing Law. This Agreement shall be governed by the laws of the State of Washington, without reference to the principles of conflicts of law. The provisions of the Uniform Computerized Information Transaction Act and United Nations Convention on Contracts for the International Sale of Goods shall not apply to this Agreement. Any litigation related to this Agreement shall be brought in the state or federal courts located in Washington, and only in those courts and each party irrevocably waives any objections to such venue. Notwithstanding anything to the contrary herein, ARCBLOCK shall be entitled to seek injunctive or other equitable relief, wherever ARCBLOCK deems appropriate in any jurisdiction, in order to preserve or enforce ARCBLOCK's rights for any breach or threatened breach of this Agreement."}),e.jsx("p",{children:"8.2. Severability. Every term, condition or provision of this Agreement is severable from the others. If a court or an arbitrator of competent jurisdiction holds any term, condition or provision of this Agreement to be invalid, unenforceable or illegal in whole or in part for any reason, the validity and enforceability of the remaining terms, conditions or provisions, or portions of them, will not be affected."}),e.jsx("p",{children:"8.3. Confidentiality. Except as expressly allowed by this Agreement, End User will not use or disclose any Software or related technology, idea, algorithm or information ('Confidential Information') except to the extent End User can document that it is generally available for use and disclosure by the public without charge or license. End User shall hold the Confidential Information in trust and confidence and avoid the disclosure or release thereof to any other person or entity by using the same degree of care as it uses to avoid unauthorized use, disclosure, or dissemination of its own Confidential Information of a similar nature, but not less than reasonable care. End User may disclose Confidential Information as required to comply with binding orders of governmental entities that have jurisdiction over it; provided that End User gives ARCBLOCK reasonable written notice to allow ARCBLOCK to seek a protective order or other appropriate remedy, discloses only such Confidential Information as is required by the governmental entity, and uses commercially reasonable efforts to obtain confidential treatment for any Confidential Information disclosed. End User recognizes and agrees that there is no adequate remedy at law for a breach of this Section, that such a breach would irreparably harm ARCBLOCK and that ARCBLOCK is entitled to equitable relief (without need to post a bond) with respect to any such breach or potential breach in addition to any other remedies."}),e.jsx("p",{children:"8.4. Indemnity. End User shall defend, indemnify and hold harmless ARCBLOCK, and its officers, directors, employees and agents (the ARCBLOCK indemnities’), from and against all suits, claims, demands, losses, liabilities, damages and expenses (including reasonable attorneys' fees and costs) that the ARCBLOCK Indemnities may suffer or incur in connection with: (i) any third party claim arising from End User's breach of this Agreement; and (ii) any infringement by End User of ARCBLOCK's intellectual property rights in the Software."}),e.jsx("p",{children:"8.5. Entire Agreement and Waiver. The Agreement is the sole, final and entire agreement between the parties with respect to the subject matter hereof, may only be amended in writing signed by both ARCBLOCK License parties. A failure or delay in enforcing any provisions, exercising any option or requiring performance, be construed to be a waiver by ARCBLOCK."}),e.jsx("p",{children:"8.6. Marketing. ARCBLOCK may use End User's name and company logo on its customer list and web site, and link to End User's web site."}),e.jsx("p",{children:"8.7. Independent Contractor. The relationship of the parties is that of independent contractors. Neither party will be deemed to be the legal representative of the other nor will it have any right to bind the other party to any contract or commitment. This Agreement does not, and will not, be construed to create an employer employee, agency, joint venture or partnership relationship between the parties. Each party agrees to assume complete responsibility for its own employees regarding federal or state laws, including employers' liability and tax withholding, worker's compensation, social security, unemployment insurance, and OSHA requirements."}),e.jsx("p",{children:"8.8. Notices. All notices must be in writing and will be effective three (3) days after the date sent to each party's corporate headquarters."}),e.jsx("p",{children:"8.9. Audit. During the term of this Agreement and for one (1) year following termination or expiration (but no more than once in a calendar year), ARCBLOCK and its auditors may inspect End User's records relating to its reproduction and use of the Software for the purposes of verifying End User's compliance with this Agreement. End User shall cooperate fully with ARCBLOCK and its auditors in conducting audits and provide reasonable assistance. If an underpayment is discovered, End User shall promptly pay such amount and End User shall reimburse ARCBLOCK for the cost of the audit."}),e.jsx("p",{children:`8.10. Government Regulation. End User acknowledges that the Software is subject to export restrictions by the U.S. government and import restrictions by certain foreign governments. End User may not export or re-export the Software except in compliance with the U.S. Export Administration Act and the related rules and regulations and similar non-U.S. government restrictions, if applicable. End User shall not and shall not allow any third party to remove or export from the United States or allow the export or re export of any part of the Software or any direct product thereof: (i) into (or to a national or resident of) any embargoed or terrorist supporting country; (ii) to anyone on the U.S. Commerce Department's Table of Denial Orders or U.S. Treasury Department's list of Specially Designated Nationals; (iii) to any country to which such export or re export is restricted or prohibited, or as to which the U.S. government or any agency thereof requires an export license or other governmental approval at the time of export or re export without first obtaining such license or approval; or (iv) otherwise in violation of any export or import restrictions, laws or regulations of any United States or foreign agency or authority. End User agrees to the foregoing and warrants that it is not located in, under the control of, or a national or resident of any such prohibited country or on any such prohibited party list. The Software is further restricted from being used for terrorist activity, or for the design or development of nuclear, chemical, or biological weapons or missile technology without the prior permission of the U.S. government. The Software and accompanying documentation are deemed to be "commercial computer software" and "commercial computer software documentation", respectively, pursuant to DFAR Section 227.7202 and FAR Section 12.212(b), as applicable. Any use, modification, reproduction, release, performing, displaying or disclosing of the Software and related documentation by the U.S. Government shall be governed solely by the terms of this Agreement.`})]});function h(){const{t}=n.useContext(o);return e.jsxs(l,{children:[e.jsx(i,{component:"h2",variant:"h4",className:"page-header",color:"textPrimary",children:t("setup.steps.eula")}),e.jsx(s,{})]})}const l=a.main`
|
|
1
|
+
import{j as e,F as r,r as n,f as o,m as i,n as a}from"./index-DYxj4bsg.js";const s=({...t})=>e.jsxs("div",{...t,children:[e.jsx("h3",{children:"End User License Agreement for Blocklet Server"}),e.jsxs("p",{children:["Blocklet Server License Agreement ",r.COPYRIGHT_OWNER," version 2020-08-28"]}),e.jsx("p",{children:"Blocklet Server LICENSE AGREEMENT"}),e.jsxs("p",{children:["PLEASE READ THIS END USER LICENCE AGREEMENT CAREFULLY. This Blocklet Server License Agreement ('Agreement') is a legal agreement between you (the 'End User') and ",r.COPYRIGHT_OWNER," (ARCBLOCK) for the Blocklet Server software (the 'Software') licensed to End User hereunder and supplied to End User. The term Software includes any APIs, software modules, and any associated materials and 'online' or electronic documentation. This Agreement applies to End User's use of the Software but it shall be superseded by any signed agreement between End User and ARCBLOCK concerning the Software."]}),e.jsx("p",{children:"By installing or using the Software, You agree to accept and to be bound by this Agreement at all times. If You do not agree with one of these, please do not install or use the Software."}),e.jsx("h4",{children:"1. Software license"}),e.jsx("p",{children:"Notwithstanding any reference to 'sale' or 'purchase', the Software is licensed, not sold. Subject to the terms and conditions of this Agreement, ARCBLOCK grants End User a non-exclusive, non-transferable right to access and use the Software as part of the services for End User's use ('Authorized Use') in object form in the products, versions, and number of installed instances as purchased from ARCBLOCK."}),e.jsx("h4",{children:"2. Limitations"}),e.jsx("p",{children:"2.1. Restrictions. End User shall not itself, or through any parent, subsidiary, affiliate, agent or other third party: (a) sell, lease, license, distribute, sublicense or otherwise transfer in whole or in part, the Software to a third party; (b) decompile, disassemble, translate, reverse engineer or otherwise attempt to derive source code from the Software except to the limited extent, if any, that applicable law permits such acts notwithstanding any contractual prohibitions, provided, however, before End User exercises any rights that End User believes to be entitled to based on mandatory law, End User shall provide ARCBLOCK with thirty (30) days prior written notice and provide all reasonably requested information to allow ARCBLOCK to assess End User's claim and, at ARCBLOCK sole discretion, to provide alternatives that reduce any adverse impact on ARCBLOCK's intellectual property or other rights; (c) allow access or permit use of the Software by any third party except authorized third party contractors solely to provide services to End User, provided that End User shall be liable for all acts and omissions of such authorized third party contractors; (d) modify or create derivative works based upon the Software; (e) disclose the results of any benchmark test of the Software to any third party; (f) change any proprietary rights notices which appear in the Software; or (g) circumvent the license keys embedded within the Software."}),e.jsx("p",{children:"2.2. Software Transfer. Upon written consent from ARCBLOCK, which will not be unreasonably withheld, End User may permanently transfer all of its rights under this Agreement; provided that the recipient agrees to the terms of this Agreement."}),e.jsx("p",{children:"2.3. High Risk Activities. The Software is not intended for use in hazardous environments requiring fail safe performance (such as, without limitation, the planning, construction, maintenance, control, or direct operation of nuclear facilities, aircraft navigation or communication systems, air traffic control, medical device and life support machines, or weapon systems) in which the failure of the Software could lead to death, personal injury or physical and environmental damage ('High Risk Activities'). Accordingly, this Agreement excludes any High Risk Activities and End User agrees not to use the Software in connection with High Risk Activities."}),e.jsx("h4",{children:"3. Ownership"}),e.jsx("p",{children:"The Software is protected by copyright laws and international copyright treaties, as well as other intellectual property laws and treaties. ARCBLOCK owns all rights, title and interest in the copyrights, patents and all other intellectual property rights in and to the Software and any accompanying printed materials, and all derivative works thereof."}),e.jsx("h4",{children:"4. Open source programs"}),e.jsx("p",{children:"The Software may include individual open source software components, each of which has its own copyright and its own applicable license conditions. The open source software components are licensed to End User under the terms of the applicable open source license conditions and/or copyright notices that can be found in the licenses file, the related documentation or other materials accompanying the Software."}),e.jsx("h4",{children:"5. Trademarks"}),e.jsx("p",{children:"The marks 'ARCBLOCK', ‘BLOCKLETS’ and ‘Blocklet Server’ are trademarks of ARCBLOCK. ARCBLOCK's failure to list a trademark in this Section shall not constitute a waiver of any trademark rights. All other trademarks in the Software not owned by ARCBLOCK are the property of their respective owners."}),e.jsx("h4",{children:"6. Disclaimer and Warranty"}),e.jsx("p",{children:"6.1. DISCLAIMER OF WARRANTIES. THE SOFTWARE IS PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND AND ARCBLOCK EXPRESSLY DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED OR ARISING OUT OF A COURSE OF CONDUCT OR COURSE OF DEALING, INCLUDING ALL WARRANTIES OF TITLE, PERFORMANCE, USE, MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON INFRINGEMENT AND THE ABSENCE OF LATENT OR OTHER DEFECTS, WHETHER OR NOT DISCOVERABLE. ARCBLOCK MAKES NO WARRANTY REGARDING NON INTERRUPTION OF USE. NO ORAL OR WRITTEN STATEMENT PROVIDED BY ARCBLOCK SHALL CREATE ANY WARRANTY."}),e.jsx("p",{children:"6.2. LIMITATION OF LIABILITY. THE ENTIRE RISK AS TO THE RESULTS AND PERFORMANCE OF THE SOFTWARE IS ASSUMED BY END USER. ARCBLOCK SHALL NOT HAVE ANY LIABILITY TO END USER OR ANY OTHER PARTY FOR ANY INDIRECT, INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES WHATSOEVER, INCLUDING, BUT NOT LIMITED TO, LOSS OF REVENUE, PROFIT OR OPPORTUNITY, LOST OR DAMAGED DATA OR OTHER COMMERCIAL OR ECONOMIC LOSS, EVEN IF ARCBLOCK HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES, OR THEY ARE FORESEEABLE. ARCBLOCK'S MAXIMUM AGGREGATE LIABILITY RELATING TO THIS AGREEMENT OR THE SOFTWARE SHALL NOT EXCEED THE AMOUNT PAID BY END USER FOR THE SOFTWARE."}),e.jsx("p",{children:"6.3. ALLOCATION. THE PROVISIONS OF THIS SECTION ALLOCATE RISKS UNDER THIS AGREEMENT BETWEEN ARCBLOCK AND END USER. ARCBLOCK'S LICENSING FEES FOR THE SOFTWARE REFLECT THIS ALLOCATION OF RISKS AND LIMITATION OF LIABILITY. THE FOREGOING LIMITATIONS, EXCLUSIONS AND DISCLAIMERS APPLY TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, EVEN IF ANY REMEDY FAILS IN ITS ESSENTIAL PURPOSE."}),e.jsx("p",{children:"6.4. Limitation. Because some jurisdictions do not allow certain disclaimers, exclusions or limitations of warranties, damages or liability, the above disclaimers, exclusions or limitations may not apply to End User and, therefore, shall apply only to the maximum extent allowed under applicable law."}),e.jsx("h4",{children:"7. Term"}),e.jsx("p",{children:"This Agreement is effective until terminated. End Users may terminate the Agreement at any time by returning or destroying all copies of the Software and related documentation. End User's rights under this Agreement will terminate automatically if End User fails to comply with the Agreement."}),e.jsx("h4",{children:"8. Miscellaneous"}),e.jsx("p",{children:"8.1. Governing Law. This Agreement shall be governed by the laws of the State of Washington, without reference to the principles of conflicts of law. The provisions of the Uniform Computerized Information Transaction Act and United Nations Convention on Contracts for the International Sale of Goods shall not apply to this Agreement. Any litigation related to this Agreement shall be brought in the state or federal courts located in Washington, and only in those courts and each party irrevocably waives any objections to such venue. Notwithstanding anything to the contrary herein, ARCBLOCK shall be entitled to seek injunctive or other equitable relief, wherever ARCBLOCK deems appropriate in any jurisdiction, in order to preserve or enforce ARCBLOCK's rights for any breach or threatened breach of this Agreement."}),e.jsx("p",{children:"8.2. Severability. Every term, condition or provision of this Agreement is severable from the others. If a court or an arbitrator of competent jurisdiction holds any term, condition or provision of this Agreement to be invalid, unenforceable or illegal in whole or in part for any reason, the validity and enforceability of the remaining terms, conditions or provisions, or portions of them, will not be affected."}),e.jsx("p",{children:"8.3. Confidentiality. Except as expressly allowed by this Agreement, End User will not use or disclose any Software or related technology, idea, algorithm or information ('Confidential Information') except to the extent End User can document that it is generally available for use and disclosure by the public without charge or license. End User shall hold the Confidential Information in trust and confidence and avoid the disclosure or release thereof to any other person or entity by using the same degree of care as it uses to avoid unauthorized use, disclosure, or dissemination of its own Confidential Information of a similar nature, but not less than reasonable care. End User may disclose Confidential Information as required to comply with binding orders of governmental entities that have jurisdiction over it; provided that End User gives ARCBLOCK reasonable written notice to allow ARCBLOCK to seek a protective order or other appropriate remedy, discloses only such Confidential Information as is required by the governmental entity, and uses commercially reasonable efforts to obtain confidential treatment for any Confidential Information disclosed. End User recognizes and agrees that there is no adequate remedy at law for a breach of this Section, that such a breach would irreparably harm ARCBLOCK and that ARCBLOCK is entitled to equitable relief (without need to post a bond) with respect to any such breach or potential breach in addition to any other remedies."}),e.jsx("p",{children:"8.4. Indemnity. End User shall defend, indemnify and hold harmless ARCBLOCK, and its officers, directors, employees and agents (the ARCBLOCK indemnities’), from and against all suits, claims, demands, losses, liabilities, damages and expenses (including reasonable attorneys' fees and costs) that the ARCBLOCK Indemnities may suffer or incur in connection with: (i) any third party claim arising from End User's breach of this Agreement; and (ii) any infringement by End User of ARCBLOCK's intellectual property rights in the Software."}),e.jsx("p",{children:"8.5. Entire Agreement and Waiver. The Agreement is the sole, final and entire agreement between the parties with respect to the subject matter hereof, may only be amended in writing signed by both ARCBLOCK License parties. A failure or delay in enforcing any provisions, exercising any option or requiring performance, be construed to be a waiver by ARCBLOCK."}),e.jsx("p",{children:"8.6. Marketing. ARCBLOCK may use End User's name and company logo on its customer list and web site, and link to End User's web site."}),e.jsx("p",{children:"8.7. Independent Contractor. The relationship of the parties is that of independent contractors. Neither party will be deemed to be the legal representative of the other nor will it have any right to bind the other party to any contract or commitment. This Agreement does not, and will not, be construed to create an employer employee, agency, joint venture or partnership relationship between the parties. Each party agrees to assume complete responsibility for its own employees regarding federal or state laws, including employers' liability and tax withholding, worker's compensation, social security, unemployment insurance, and OSHA requirements."}),e.jsx("p",{children:"8.8. Notices. All notices must be in writing and will be effective three (3) days after the date sent to each party's corporate headquarters."}),e.jsx("p",{children:"8.9. Audit. During the term of this Agreement and for one (1) year following termination or expiration (but no more than once in a calendar year), ARCBLOCK and its auditors may inspect End User's records relating to its reproduction and use of the Software for the purposes of verifying End User's compliance with this Agreement. End User shall cooperate fully with ARCBLOCK and its auditors in conducting audits and provide reasonable assistance. If an underpayment is discovered, End User shall promptly pay such amount and End User shall reimburse ARCBLOCK for the cost of the audit."}),e.jsx("p",{children:`8.10. Government Regulation. End User acknowledges that the Software is subject to export restrictions by the U.S. government and import restrictions by certain foreign governments. End User may not export or re-export the Software except in compliance with the U.S. Export Administration Act and the related rules and regulations and similar non-U.S. government restrictions, if applicable. End User shall not and shall not allow any third party to remove or export from the United States or allow the export or re export of any part of the Software or any direct product thereof: (i) into (or to a national or resident of) any embargoed or terrorist supporting country; (ii) to anyone on the U.S. Commerce Department's Table of Denial Orders or U.S. Treasury Department's list of Specially Designated Nationals; (iii) to any country to which such export or re export is restricted or prohibited, or as to which the U.S. government or any agency thereof requires an export license or other governmental approval at the time of export or re export without first obtaining such license or approval; or (iv) otherwise in violation of any export or import restrictions, laws or regulations of any United States or foreign agency or authority. End User agrees to the foregoing and warrants that it is not located in, under the control of, or a national or resident of any such prohibited country or on any such prohibited party list. The Software is further restricted from being used for terrorist activity, or for the design or development of nuclear, chemical, or biological weapons or missile technology without the prior permission of the U.S. government. The Software and accompanying documentation are deemed to be "commercial computer software" and "commercial computer software documentation", respectively, pursuant to DFAR Section 227.7202 and FAR Section 12.212(b), as applicable. Any use, modification, reproduction, release, performing, displaying or disclosing of the Software and related documentation by the U.S. Government shall be governed solely by the terms of this Agreement.`})]});function h(){const{t}=n.useContext(o);return e.jsxs(l,{children:[e.jsx(i,{component:"h2",variant:"h4",className:"page-header",color:"textPrimary",children:t("setup.steps.eula")}),e.jsx(s,{})]})}const l=a.main`
|
|
2
2
|
.page-header {
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: space-between;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{P as s,j as t,B as i,gF as r}from"./index-
|
|
1
|
+
import{P as s,j as t,B as i,gF as r}from"./index-DYxj4bsg.js";function n({children:e,...o}){return t.jsxs(i,{color:"did",variant:"contained",...o,children:[t.jsx("span",{style:{fontWeight:400},children:e||"Continue With"}),t.jsx(r,{style:{width:"auto",height:"1.2em",margin:"0 4px 0 8px"}})]})}n.propTypes={children:s.any};n.defaultProps={children:""};export{n as C};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aO as _,aP as E,j as e,bo as O,r as f,f as U,z as F,m as g,b1 as $,S as H,X as V,cd as X,B as G,C as w,bg as J,a9 as K,aa as A,M as Q,ce as L,cf as P,cg as I,ab as M,a8 as T,aB as u,a5 as x,N as W,ax as Y,n as Z,P as a,o as ee,ch as te}from"./index-
|
|
1
|
+
import{aO as _,aP as E,j as e,bo as O,r as f,f as U,z as F,m as g,b1 as $,S as H,X as V,cd as X,B as G,C as w,bg as J,a9 as K,aa as A,M as Q,ce as L,cf as P,cg as I,ab as M,a8 as T,aB as u,a5 as x,N as W,ax as Y,n as Z,P as a,o as ee,ch as te}from"./index-DYxj4bsg.js";import{f as ae}from"./index-BojVbZw0.js";import{d as ie}from"./Launch-BSF3J60R.js";import{c as z}from"./index-CFR1XYQc.js";import{P as se}from"./Pagination-DCfuW4XM.js";import"./LastPage-O0R3NHtX.js";var j={},ne=E;Object.defineProperty(j,"__esModule",{value:!0});var h=j.default=void 0,oe=ne(_()),re=e;h=j.default=(0,oe.default)((0,re.jsx)("path",{d:"M12 19c0-3.87 3.13-7 7-7 1.08 0 2.09.25 3 .68V6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h8.08c-.05-.33-.08-.66-.08-1M4 6l8 5 8-5v2l-8 5-8-5zm13.34 16-3.54-3.54 1.41-1.41 2.12 2.12 4.24-4.24L23 16.34z"}),"MarkEmailRead");function y({api:i,paging:r,loading:c,notifications:o,updateNotifications:l,teamDid:b}){const{inService:d}=O(),[p,q]=f.useState(!0),[v,N]=f.useState(!1),{t:n,locale:k}=f.useContext(U),B=F(),S=async()=>{N(!0);const t=o.filter(s=>s.read===!1).map(s=>s.id).join(",");d?await i.readBlockletNotifications({input:{id:t,teamDid:b}}):await i.readNotifications({input:{id:t}}),l(),N(!1)},R=async t=>{d?await i.readBlockletNotifications({input:{id:t,teamDid:b}}):await i.readNotifications({input:{id:t}}),l()},m=p?o:o.filter(t=>t.read===!1),D=o.filter(t=>t.read===!1).length>0,C=t=>e.jsxs("div",{className:"title",children:[t.title," ",e.jsx("span",{className:"time-ago",title:Y(t.createdAt,k),children:ae(new Date(t.createdAt),ee(k))})]});return e.jsxs(le,{children:[e.jsxs(g,{component:"h2",variant:"h4",className:"page-header",color:"textPrimary",children:[n("notification.title"),e.jsxs(g,{component:"span",className:"notification-actions",children:[e.jsx($,{control:e.jsx(H,{checked:p,onChange:()=>q(!p),name:"showRead",color:"primary"}),label:n("notification.showRead")}),e.jsx(V,{permission:d?"":"mutate_notification",role:d?X:[],children:D&&e.jsxs(G,{disabled:v,onClick:S,className:"",children:[v&&e.jsx(w,{size:16,style:{marginRight:"1em"}}),n("notification.markAllAsRead")]})})]})]}),e.jsx(J,{}),e.jsxs(K,{className:"notification-list",children:[c&&e.jsx(w,{size:[32,20],style:{opacity:"0.8",zIndex:1e4,position:"fixed",top:30,left:"50%",marginLeft:-16}}),m.length===0&&e.jsx(g,{component:"p",variant:"body1",className:"notification-tip",children:n("notification.empty")}),m.length>0&&m.map(t=>t.action?e.jsxs(A,{...t.read?{}:{component:Q,to:t.action},alignItems:"flex-start",className:z({read:t.read}),style:{paddingLeft:0,paddingRight:0},children:[e.jsx(L,{className:"list-item-avatar",children:e.jsxs(e.Fragment,{children:[e.jsx(P,{children:t.entityType.substr(0,1).toUpperCase()}),e.jsx(I,{className:"notification-tag",status:t.severity})]})}),e.jsx(M,{className:"list-item-text",classes:{secondary:"list-item-secondary-text"},primary:C(t),secondary:t.description}),t.read===!1?e.jsxs(T,{sx:{width:80},children:[e.jsx(u,{title:n("notification.proceed"),children:e.jsx(x,{edge:"end",color:"primary","aria-label":"proceed",onClick:s=>{s.preventDefault(),s.stopPropagation(),B(t.action)},size:"large",children:e.jsx(ie,{})})}),e.jsx(u,{title:n("notification.markAsRead"),children:e.jsx(x,{color:"primary",edge:"end","aria-label":"delete",onClick:()=>R(t.id),size:"large",children:e.jsx(h,{})})})]}):null]},t.id):e.jsxs(A,{className:z({read:t.read}),alignItems:"flex-start",style:{paddingLeft:0,paddingRight:0},children:[e.jsx(L,{className:"list-item-avatar",children:e.jsxs(e.Fragment,{children:[e.jsx(P,{children:t.entityType.substr(0,1).toUpperCase()}),e.jsx(I,{className:"notification-tag",status:t.severity})]})}),e.jsx(M,{className:"list-item-text",classes:{secondary:"list-item-secondary-text"},primary:C(t),secondary:t.description}),e.jsx(T,{sx:{width:80},children:t.read===!1?e.jsx(u,{title:n("notification.markAsRead"),children:e.jsx(x,{color:"primary",edge:"end","aria-label":"delete",onClick:()=>R(t.id),size:"large",children:e.jsx(h,{})})}):null})]},t.id))]}),!!m.length&&r.pageCount>1&&e.jsx(W,{mt:2,display:"flex",justifyContent:"flex-end",children:e.jsx(se,{disabled:c,count:r.pageCount,page:r.page,onChange:(t,s)=>{l({page:s})}})})]})}const le=Z.div`
|
|
2
2
|
min-height: 60vh;
|
|
3
3
|
|
|
4
4
|
.page-header {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{P as o,s as C,j as n,N as u,aO as x,aP as g,am as j,q as T}from"./index-
|
|
1
|
+
import{P as o,s as C,j as n,N as u,aO as x,aP as g,am as j,q as T}from"./index-DYxj4bsg.js";function i({icon:e,title:t,description:s,extra:E,...I}){return n.jsxs(w,{...I,children:[e,typeof t=="string"?n.jsx(u,{mt:3,fontSize:22,fontWeight:400,color:"#47494E",textAlign:"center",children:t}):t,typeof s=="string"?n.jsx(u,{mt:1,fontSize:14,color:"#7F828B",textAlign:"center",children:s}):s,n.jsx(u,{mt:3,children:E})]})}i.propTypes={icon:o.element,title:o.oneOfType([o.string,o.element]),description:o.oneOfType([o.string,o.element]),actions:o.any,extra:o.element};i.defaultProps={icon:void 0,title:"",description:"",actions:null,extra:void 0};const w=C("div")`
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|