@malloy-publisher/app 0.0.113 → 0.0.114
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{Chip-BPFN-2iK.js → Chip-DpRfGWL9.js} +1 -1
- package/dist/assets/{Container-S_LHoTtj.js → Container-pCaIjpH5.js} +1 -1
- package/dist/assets/{DialogTitle-BoaRUY5e.js → DialogTitle-Df6dToBj.js} +1 -1
- package/dist/assets/{Edit-DxSFhHwr.js → Edit-Do7LZWER.js} +1 -1
- package/dist/assets/FormControlContext-Ccuzn_SP.js +1 -0
- package/dist/assets/{HomePage-Ciykl78O.js → HomePage-pfv0GYQd.js} +1 -1
- package/dist/assets/{MainPage-DQs1DLly.js → MainPage-1RQ43yX6.js} +1 -1
- package/dist/assets/{MenuItem-CKcvMIiT.js → MenuItem-BWMnNgqP.js} +1 -1
- package/dist/assets/{Modal-B09ILQKb.js → Modal-BbVeNLvO.js} +1 -1
- package/dist/assets/{ModelPage-B4pPCb_A.js → ModelPage-BFSBWoUi.js} +1 -1
- package/dist/assets/{MoreVert-CBj2COu2.js → MoreVert-Dh8A2FDF.js} +1 -1
- package/dist/assets/{PackagePage-v9ybKZsV.js → PackagePage-Dbb4lm1F.js} +1 -1
- package/dist/assets/{ProjectPage--ytNIoOY.js → ProjectPage-Ccyp5m5h.js} +1 -1
- package/dist/assets/{RouteError-DODx40fJ.js → RouteError-soNErEMV.js} +1 -1
- package/dist/assets/{WorkbookPage-DEmSMCHP.js → WorkbookPage-D_yrMjqR.js} +2 -2
- package/dist/assets/{index-CPPmFTED.js → index-BS_9W4Tt.js} +63 -63
- package/dist/assets/index-B_Z1qGAK.js +1184 -0
- package/dist/assets/index-CMlGQMcl.css +1 -0
- package/dist/assets/{index-BNDPWBNi.js → index-CZpA8zwK.js} +235 -235
- package/dist/assets/{index.es20-lNMjicWC.js → index.es20-DzH7kq4S.js} +1 -1
- package/dist/assets/{index.es23-BYJIDfXQ.js → index.es23-C-bQftBc.js} +2 -2
- package/dist/assets/{index.es323-Cmd8ebKW.js → index.es287-BsK0ZRDU.js} +1 -1
- package/dist/assets/{index.es324-BllQIgQd.js → index.es288-pwa92z63.js} +1 -1
- package/dist/assets/{index.es327-DhM3xEyp.js → index.es291-LYy-CnOC.js} +1 -1
- package/dist/assets/{index.es332-Dn786pMK.js → index.es296-BxlxlVr1.js} +1 -1
- package/dist/assets/{index.es340-JoyRj8Ul.js → index.es304-jV2gZBYS.js} +1 -1
- package/dist/assets/{index.es341-9uOuiCzh.js → index.es305-DrF4mmwj.js} +1 -1
- package/dist/assets/{index.es344-hoFJ9wLz.js → index.es308-CZZGZfCL.js} +1 -1
- package/dist/assets/{index.es348-D8pWOBN4.js → index.es312-CM4OW1Tu.js} +1 -1
- package/dist/assets/{index.es351-CuxSqnpe.js → index.es315-CSNCJz_t.js} +1 -1
- package/dist/assets/{index.es354-DvlPdd_8.js → index.es318-BnlIqKdP.js} +1 -1
- package/dist/assets/{index.es355-CunDDQIR.js → index.es319-BqfPxZyn.js} +1 -1
- package/dist/assets/{index.es369-CYf8oS2b.js → index.es333-DrlQlC9C.js} +1 -1
- package/dist/assets/{index.es370-Cbr8LiAr.js → index.es334-CrN25jeJ.js} +1 -1
- package/dist/assets/{index.es371--q2H8od3.js → index.es335-BMF1iNAk.js} +1 -1
- package/dist/assets/{index.es373-BuiMQ1bX.js → index.es337-DddOBpwk.js} +1 -1
- package/dist/assets/{index.es378-CkjxECEH.js → index.es342-5MyjXhLR.js} +1 -1
- package/dist/assets/{index.es380-C6KQCo6t.js → index.es344-BpzCATdh.js} +1 -1
- package/dist/assets/{index.es381-CwHcQBsW.js → index.es345-CcT82qyg.js} +1 -1
- package/dist/assets/{index.es386-FC0u_O0U.js → index.es350-DT_CVHOb.js} +1 -1
- package/dist/assets/{index.es387-xHeBAFPr.js → index.es351-IRimHV8f.js} +1 -1
- package/dist/assets/{index.es389-BwaLxarl.js → index.es353-e0DSyH1F.js} +1 -1
- package/dist/assets/{index.es390-B3IQVAJV.js → index.es354-DvXzIB3B.js} +1 -1
- package/dist/assets/{index.es391-BwkoCHxh.js → index.es355-BpinPwMf.js} +1 -1
- package/dist/assets/{index.es394-BPWLHcqA.js → index.es358-B2FwChKl.js} +1 -1
- package/dist/assets/{index.es396-COP1dwQ2.js → index.es360-B11Uptoy.js} +1 -1
- package/dist/assets/{index.es397-Ba4K4mAk.js → index.es361-CqPSZKxw.js} +1 -1
- package/dist/assets/{index.es398-BSYOs98v.js → index.es362-kID_QP2b.js} +1 -1
- package/dist/assets/{index.es404-DGUWv76G.js → index.es368-DEU47Nmo.js} +1 -1
- package/dist/assets/{index.es405-DBe4EGNb.js → index.es369-BAVwPVpH.js} +1 -1
- package/dist/assets/{index.es406-CFlwXxP9.js → index.es370-CQSqpEY2.js} +1 -1
- package/dist/assets/{index.es407-DTR_lE2r.js → index.es371-DSPIJ8l-.js} +1 -1
- package/dist/assets/{index.es409-DrFr_RuK.js → index.es373-CTLjf8LZ.js} +1 -1
- package/dist/assets/{index.es413-DaCYI7j4.js → index.es377-BFPElb8k.js} +1 -1
- package/dist/assets/{index.es414-C7v51edE.js → index.es378-Bi8-8y3Z.js} +1 -1
- package/dist/assets/{index.es422-BCUhEH3B.js → index.es386-BRbfYhrv.js} +1 -1
- package/dist/assets/{index.es425-BZfdHlSw.js → index.es389-SMY2M5Dd.js} +1 -1
- package/dist/assets/{index.es428-BX-XuKJl.js → index.es392-fGYxK-uk.js} +1 -1
- package/dist/assets/{index.es431-BVtQbGWk.js → index.es395--SrhnzjM.js} +1 -1
- package/dist/assets/{index.es435-CzRAsM7q.js → index.es399-BP5VLghY.js} +1 -1
- package/dist/assets/{index.es437-D_UmiHxH.js → index.es401-CopVMHFF.js} +1 -1
- package/dist/assets/{index.es445-Bm8V_39j.js → index.es409-C0EaxmtL.js} +1 -1
- package/dist/assets/{index.es446-Wf2I0eqD.js → index.es410-B2INzLoQ.js} +1 -1
- package/dist/assets/{index.es453-Gs69FCIA.js → index.es417-B6GOQZs3.js} +1 -1
- package/dist/assets/{index.es454-3-JraJzM.js → index.es418-Dt4O9kPw.js} +1 -1
- package/dist/assets/{index.es464-C7bC7aMW.js → index.es428-BGqtBs8m.js} +1 -1
- package/dist/assets/{index.es468-DfkjH5vL.js → index.es432-BzFuvoyF.js} +1 -1
- package/dist/assets/{index.es474-D78hU9hI.js → index.es438-DvNyQZ9B.js} +1 -1
- package/dist/assets/{index.es479-De4o0oHW.js → index.es443-DC0KqCTi.js} +1 -1
- package/dist/assets/{index.es480-CLNDiA6D.js → index.es444-CTooryRZ.js} +1 -1
- package/dist/assets/{index.es482-CnRcoveV.js → index.es446-DGMBZ3_7.js} +1 -1
- package/dist/assets/{index.es486-qlG5fVnA.js → index.es450-BCWIDv3j.js} +1 -1
- package/dist/assets/{index.es488-DTMS730P.js → index.es452-B8WGaHgy.js} +1 -1
- package/dist/assets/{index.es490-C06M4v41.js → index.es454-Cp0AvzKu.js} +1 -1
- package/dist/assets/{index.es493-BxjgJJow.js → index.es457-C87oaIOo.js} +1 -1
- package/dist/assets/{index.es494-DlbKs2fg.js → index.es458-CBexwHfM.js} +1 -1
- package/dist/assets/{index.es498-DalR4GX0.js → index.es462-DGwyl90J.js} +1 -1
- package/dist/assets/{index.es500-BcWqEBYK.js → index.es464-Dzf6WDCJ.js} +1 -1
- package/dist/assets/{index.es507-BOX6c_Kn.js → index.es471-BOZxaHLN.js} +1 -1
- package/dist/assets/{index.es509--wACVBhv.js → index.es473-C4VYB3vo.js} +1 -1
- package/dist/assets/{index.es511-C-Y0Jtd1.js → index.es475-OnXMAP7q.js} +1 -1
- package/dist/assets/{index.es515-RpK-kOK2.js → index.es479-H38Vf5YC.js} +1 -1
- package/dist/assets/{index.es525-DuRYU1r6.js → index.es489-Cm4BEHNL.js} +1 -1
- package/dist/assets/{index.es526-DWCmcnaA.js → index.es490-DtqPpdnf.js} +1 -1
- package/dist/assets/{index.es533-DsvhN0ks.js → index.es497-BvZ-y4_B.js} +1 -1
- package/dist/assets/{index.es534-BGVyZEaI.js → index.es498-DeJOiud8.js} +1 -1
- package/dist/assets/{index.es7-Baro92Ee.js → index.es7-Lspe9b-6.js} +1 -1
- package/dist/assets/{index.modern-BPeknk47.js → index.modern-J74LOUay.js} +1 -1
- package/dist/assets/{index.umd-DgCSOv4v.js → index.umd-iTdVE6k1.js} +1 -1
- package/dist/assets/{listItemTextClasses-BS6WKuj5.js → listItemTextClasses-D0rI_qhy.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +2 -2
- package/dist/assets/FormControlContext-DB8XoAZ6.js +0 -1
- package/dist/assets/index-BV8rQ2ml.css +0 -1
- package/dist/assets/index-Dd2_AgmS.js +0 -287
- /package/dist/assets/{index.es312-CG6Dc4jp.js → index.es276-CG6Dc4jp.js} +0 -0
- /package/dist/assets/{index.es320-DsBKuouk.js → index.es284-DsBKuouk.js} +0 -0
- /package/dist/assets/{index.es321-D_z4Izcz.js → index.es285-D_z4Izcz.js} +0 -0
- /package/dist/assets/{index.es322-727ZlQH0.js → index.es286-727ZlQH0.js} +0 -0
- /package/dist/assets/{index.es325-Dn00JSTd.js → index.es289-Dn00JSTd.js} +0 -0
- /package/dist/assets/{index.es326-COJ4H7py.js → index.es290-COJ4H7py.js} +0 -0
- /package/dist/assets/{index.es328-Bu5BbsvL.js → index.es292-Bu5BbsvL.js} +0 -0
- /package/dist/assets/{index.es329-7O62HKoU.js → index.es293-7O62HKoU.js} +0 -0
- /package/dist/assets/{index.es330-BPT9niGB.js → index.es294-BPT9niGB.js} +0 -0
- /package/dist/assets/{index.es331-Dhn9LcZ4.js → index.es295-Dhn9LcZ4.js} +0 -0
- /package/dist/assets/{index.es333-eg146-Ew.js → index.es297-eg146-Ew.js} +0 -0
- /package/dist/assets/{index.es334-Du268qiB.js → index.es298-Du268qiB.js} +0 -0
- /package/dist/assets/{index.es335-fje9CFhw.js → index.es299-fje9CFhw.js} +0 -0
- /package/dist/assets/{index.es336-BwXTMy5W.js → index.es300-BwXTMy5W.js} +0 -0
- /package/dist/assets/{index.es337-3xVqZejG.js → index.es301-3xVqZejG.js} +0 -0
- /package/dist/assets/{index.es338-xW4inM5L.js → index.es302-xW4inM5L.js} +0 -0
- /package/dist/assets/{index.es339-DHo0CJ0O.js → index.es303-DHo0CJ0O.js} +0 -0
- /package/dist/assets/{index.es342-C3t2pwGQ.js → index.es306-C3t2pwGQ.js} +0 -0
- /package/dist/assets/{index.es343-DNquZEk8.js → index.es307-DNquZEk8.js} +0 -0
- /package/dist/assets/{index.es345-BHOwM8T6.js → index.es309-BHOwM8T6.js} +0 -0
- /package/dist/assets/{index.es346-DxSadP1t.js → index.es310-DxSadP1t.js} +0 -0
- /package/dist/assets/{index.es347-DbXoA79R.js → index.es311-DbXoA79R.js} +0 -0
- /package/dist/assets/{index.es349-Bp6g37R7.js → index.es313-Bp6g37R7.js} +0 -0
- /package/dist/assets/{index.es350-sacFqUAJ.js → index.es314-sacFqUAJ.js} +0 -0
- /package/dist/assets/{index.es352-C7gG9l05.js → index.es316-C7gG9l05.js} +0 -0
- /package/dist/assets/{index.es353-Dsg_Bt_b.js → index.es317-Dsg_Bt_b.js} +0 -0
- /package/dist/assets/{index.es356-D9R-vmeu.js → index.es320-D9R-vmeu.js} +0 -0
- /package/dist/assets/{index.es357-BPhBrDlE.js → index.es321-BPhBrDlE.js} +0 -0
- /package/dist/assets/{index.es358-C-TU5hQ_.js → index.es322-C-TU5hQ_.js} +0 -0
- /package/dist/assets/{index.es359-DtFQj3wx.js → index.es323-DtFQj3wx.js} +0 -0
- /package/dist/assets/{index.es360-m2LEI-9-.js → index.es324-m2LEI-9-.js} +0 -0
- /package/dist/assets/{index.es361-BoXegm-a.js → index.es325-BoXegm-a.js} +0 -0
- /package/dist/assets/{index.es362-B9wLZaAG.js → index.es326-B9wLZaAG.js} +0 -0
- /package/dist/assets/{index.es363-ClGRhx96.js → index.es327-ClGRhx96.js} +0 -0
- /package/dist/assets/{index.es364-DEIpsLCJ.js → index.es328-DEIpsLCJ.js} +0 -0
- /package/dist/assets/{index.es365-BgYniUM_.js → index.es329-BgYniUM_.js} +0 -0
- /package/dist/assets/{index.es366-COcR7UxN.js → index.es330-COcR7UxN.js} +0 -0
- /package/dist/assets/{index.es367-BjQB5zDj.js → index.es331-BjQB5zDj.js} +0 -0
- /package/dist/assets/{index.es368-C-nORZOA.js → index.es332-C-nORZOA.js} +0 -0
- /package/dist/assets/{index.es372-BX77sIaO.js → index.es336-BX77sIaO.js} +0 -0
- /package/dist/assets/{index.es374-B-DoSBHF.js → index.es338-B-DoSBHF.js} +0 -0
- /package/dist/assets/{index.es375-bCA53EVm.js → index.es339-bCA53EVm.js} +0 -0
- /package/dist/assets/{index.es376-w-ucz2PV.js → index.es340-w-ucz2PV.js} +0 -0
- /package/dist/assets/{index.es377-Dayu4EKP.js → index.es341-Dayu4EKP.js} +0 -0
- /package/dist/assets/{index.es379-DKXYxT9g.js → index.es343-DKXYxT9g.js} +0 -0
- /package/dist/assets/{index.es382-DfxzS6Rs.js → index.es346-DfxzS6Rs.js} +0 -0
- /package/dist/assets/{index.es383-SKMF96pI.js → index.es347-SKMF96pI.js} +0 -0
- /package/dist/assets/{index.es384-ajMbGru0.js → index.es348-ajMbGru0.js} +0 -0
- /package/dist/assets/{index.es385--30QC5Em.js → index.es349--30QC5Em.js} +0 -0
- /package/dist/assets/{index.es388-B430Bg39.js → index.es352-B430Bg39.js} +0 -0
- /package/dist/assets/{index.es392-CM8KxXT1.js → index.es356-CM8KxXT1.js} +0 -0
- /package/dist/assets/{index.es393-B1SYOhNW.js → index.es357-B1SYOhNW.js} +0 -0
- /package/dist/assets/{index.es395-DkBy-JyN.js → index.es359-DkBy-JyN.js} +0 -0
- /package/dist/assets/{index.es399-BILxekzW.js → index.es363-BILxekzW.js} +0 -0
- /package/dist/assets/{index.es400-C5wWYbrZ.js → index.es364-C5wWYbrZ.js} +0 -0
- /package/dist/assets/{index.es401-HzYwdGDm.js → index.es365-HzYwdGDm.js} +0 -0
- /package/dist/assets/{index.es402-T-Tgc4AT.js → index.es366-T-Tgc4AT.js} +0 -0
- /package/dist/assets/{index.es403-ifBTmRxC.js → index.es367-ifBTmRxC.js} +0 -0
- /package/dist/assets/{index.es408-BMj5Y0dO.js → index.es372-BMj5Y0dO.js} +0 -0
- /package/dist/assets/{index.es410-BjABl1g7.js → index.es374-BjABl1g7.js} +0 -0
- /package/dist/assets/{index.es411-xI-RfyKK.js → index.es375-xI-RfyKK.js} +0 -0
- /package/dist/assets/{index.es412-ySlJ1b_l.js → index.es376-ySlJ1b_l.js} +0 -0
- /package/dist/assets/{index.es415-BQoSv7ci.js → index.es379-BQoSv7ci.js} +0 -0
- /package/dist/assets/{index.es416-w8dY5SsB.js → index.es380-w8dY5SsB.js} +0 -0
- /package/dist/assets/{index.es417-TU54ms6u.js → index.es381-TU54ms6u.js} +0 -0
- /package/dist/assets/{index.es418-DREVFZK8.js → index.es382-DREVFZK8.js} +0 -0
- /package/dist/assets/{index.es419-BfivnA6A.js → index.es383-BfivnA6A.js} +0 -0
- /package/dist/assets/{index.es420-P4WzXJd0.js → index.es384-P4WzXJd0.js} +0 -0
- /package/dist/assets/{index.es421-BAng5TT0.js → index.es385-BAng5TT0.js} +0 -0
- /package/dist/assets/{index.es423-B5lbUyaz.js → index.es387-B5lbUyaz.js} +0 -0
- /package/dist/assets/{index.es424-mebxcVVE.js → index.es388-mebxcVVE.js} +0 -0
- /package/dist/assets/{index.es426-XBlWyCtg.js → index.es390-XBlWyCtg.js} +0 -0
- /package/dist/assets/{index.es427-BfCpw3nA.js → index.es391-BfCpw3nA.js} +0 -0
- /package/dist/assets/{index.es429-Cc5clBb7.js → index.es393-Cc5clBb7.js} +0 -0
- /package/dist/assets/{index.es430-IuBKFhSY.js → index.es394-IuBKFhSY.js} +0 -0
- /package/dist/assets/{index.es432-Du5NY7AG.js → index.es396-Du5NY7AG.js} +0 -0
- /package/dist/assets/{index.es433-Bvotw-X0.js → index.es397-Bvotw-X0.js} +0 -0
- /package/dist/assets/{index.es434-UIAJJxZW.js → index.es398-UIAJJxZW.js} +0 -0
- /package/dist/assets/{index.es436-D9-PGadD.js → index.es400-D9-PGadD.js} +0 -0
- /package/dist/assets/{index.es438-sdHcTMYB.js → index.es402-sdHcTMYB.js} +0 -0
- /package/dist/assets/{index.es439-Ci6OQyBP.js → index.es403-Ci6OQyBP.js} +0 -0
- /package/dist/assets/{index.es440-BC5c_5Pe.js → index.es404-BC5c_5Pe.js} +0 -0
- /package/dist/assets/{index.es441-Tz6hzZYG.js → index.es405-Tz6hzZYG.js} +0 -0
- /package/dist/assets/{index.es442-DB_GagMm.js → index.es406-DB_GagMm.js} +0 -0
- /package/dist/assets/{index.es443-DLbgOhZU.js → index.es407-DLbgOhZU.js} +0 -0
- /package/dist/assets/{index.es444-B0XVJmRM.js → index.es408-B0XVJmRM.js} +0 -0
- /package/dist/assets/{index.es447-shcSOmrb.js → index.es411-shcSOmrb.js} +0 -0
- /package/dist/assets/{index.es448-D4Tzg5kh.js → index.es412-D4Tzg5kh.js} +0 -0
- /package/dist/assets/{index.es449-Deuh7S70.js → index.es413-Deuh7S70.js} +0 -0
- /package/dist/assets/{index.es450-BUEGK8hf.js → index.es414-BUEGK8hf.js} +0 -0
- /package/dist/assets/{index.es451-BNioltXt.js → index.es415-BNioltXt.js} +0 -0
- /package/dist/assets/{index.es452-JqZropPD.js → index.es416-JqZropPD.js} +0 -0
- /package/dist/assets/{index.es455-LKU2TuZ1.js → index.es419-LKU2TuZ1.js} +0 -0
- /package/dist/assets/{index.es456-BFLt1xDp.js → index.es420-BFLt1xDp.js} +0 -0
- /package/dist/assets/{index.es457-DKykz6zU.js → index.es421-DKykz6zU.js} +0 -0
- /package/dist/assets/{index.es458-B3ZDOciz.js → index.es422-B3ZDOciz.js} +0 -0
- /package/dist/assets/{index.es459-CSHBycmS.js → index.es423-CSHBycmS.js} +0 -0
- /package/dist/assets/{index.es460-BIEUsx6d.js → index.es424-BIEUsx6d.js} +0 -0
- /package/dist/assets/{index.es461-B48N-Iqd.js → index.es425-B48N-Iqd.js} +0 -0
- /package/dist/assets/{index.es462-BY-TUvya.js → index.es426-BY-TUvya.js} +0 -0
- /package/dist/assets/{index.es463-zocC4JxJ.js → index.es427-zocC4JxJ.js} +0 -0
- /package/dist/assets/{index.es465-Cza_XSSt.js → index.es429-Cza_XSSt.js} +0 -0
- /package/dist/assets/{index.es466-Bg-kzb6g.js → index.es430-Bg-kzb6g.js} +0 -0
- /package/dist/assets/{index.es467-DhUJRlN_.js → index.es431-DhUJRlN_.js} +0 -0
- /package/dist/assets/{index.es469-C8lEn-DE.js → index.es433-C8lEn-DE.js} +0 -0
- /package/dist/assets/{index.es470-DhMKtDLN.js → index.es434-DhMKtDLN.js} +0 -0
- /package/dist/assets/{index.es471-CwjWoCRV.js → index.es435-CwjWoCRV.js} +0 -0
- /package/dist/assets/{index.es472-CzouJOBO.js → index.es436-CzouJOBO.js} +0 -0
- /package/dist/assets/{index.es473-B1bQXN8T.js → index.es437-B1bQXN8T.js} +0 -0
- /package/dist/assets/{index.es475-5LuOXUq_.js → index.es439-5LuOXUq_.js} +0 -0
- /package/dist/assets/{index.es476-DWJ3fJO_.js → index.es440-DWJ3fJO_.js} +0 -0
- /package/dist/assets/{index.es477-DJlmqQ1C.js → index.es441-DJlmqQ1C.js} +0 -0
- /package/dist/assets/{index.es478-QhoSD0DR.js → index.es442-QhoSD0DR.js} +0 -0
- /package/dist/assets/{index.es481-Be6lgOlo.js → index.es445-Be6lgOlo.js} +0 -0
- /package/dist/assets/{index.es483-BJ4Li9vH.js → index.es447-BJ4Li9vH.js} +0 -0
- /package/dist/assets/{index.es484-DQVVAn-B.js → index.es448-DQVVAn-B.js} +0 -0
- /package/dist/assets/{index.es485-BJGe-b2p.js → index.es449-BJGe-b2p.js} +0 -0
- /package/dist/assets/{index.es487-BLhTXw86.js → index.es451-BLhTXw86.js} +0 -0
- /package/dist/assets/{index.es489-atvbtKCR.js → index.es453-atvbtKCR.js} +0 -0
- /package/dist/assets/{index.es491-DkLiglaE.js → index.es455-DkLiglaE.js} +0 -0
- /package/dist/assets/{index.es492-C1w2a3ep.js → index.es456-C1w2a3ep.js} +0 -0
- /package/dist/assets/{index.es495-Cf8iN4DR.js → index.es459-Cf8iN4DR.js} +0 -0
- /package/dist/assets/{index.es496-COK4E0Yg.js → index.es460-COK4E0Yg.js} +0 -0
- /package/dist/assets/{index.es497-BknIz3MU.js → index.es461-BknIz3MU.js} +0 -0
- /package/dist/assets/{index.es499-BeQkCIfX.js → index.es463-BeQkCIfX.js} +0 -0
- /package/dist/assets/{index.es501-BSxZ-RaX.js → index.es465-BSxZ-RaX.js} +0 -0
- /package/dist/assets/{index.es502-C7L56vO4.js → index.es466-C7L56vO4.js} +0 -0
- /package/dist/assets/{index.es503-CUnW07Te.js → index.es467-CUnW07Te.js} +0 -0
- /package/dist/assets/{index.es504-C1XDQQGZ.js → index.es468-C1XDQQGZ.js} +0 -0
- /package/dist/assets/{index.es505-CQjiPCtT.js → index.es469-CQjiPCtT.js} +0 -0
- /package/dist/assets/{index.es506-DQ1-QYvQ.js → index.es470-DQ1-QYvQ.js} +0 -0
- /package/dist/assets/{index.es508-BbSNqyBO.js → index.es472-BbSNqyBO.js} +0 -0
- /package/dist/assets/{index.es510-CB2ApiWb.js → index.es474-CB2ApiWb.js} +0 -0
- /package/dist/assets/{index.es512-B_m7g4N7.js → index.es476-B_m7g4N7.js} +0 -0
- /package/dist/assets/{index.es513-B6W0miNI.js → index.es477-B6W0miNI.js} +0 -0
- /package/dist/assets/{index.es514-BMR_PYu6.js → index.es478-BMR_PYu6.js} +0 -0
- /package/dist/assets/{index.es516-Dj6nwHGl.js → index.es480-Dj6nwHGl.js} +0 -0
- /package/dist/assets/{index.es517-BpWG_bgh.js → index.es481-BpWG_bgh.js} +0 -0
- /package/dist/assets/{index.es518-BVUVsWT6.js → index.es482-BVUVsWT6.js} +0 -0
- /package/dist/assets/{index.es519-CAQ2eGtk.js → index.es483-CAQ2eGtk.js} +0 -0
- /package/dist/assets/{index.es520-BFOHcciG.js → index.es484-BFOHcciG.js} +0 -0
- /package/dist/assets/{index.es521-CdO5JTpU.js → index.es485-CdO5JTpU.js} +0 -0
- /package/dist/assets/{index.es522-CJaU5se_.js → index.es486-CJaU5se_.js} +0 -0
- /package/dist/assets/{index.es523-DYoNaHQp.js → index.es487-DYoNaHQp.js} +0 -0
- /package/dist/assets/{index.es524-m4uW47V2.js → index.es488-m4uW47V2.js} +0 -0
- /package/dist/assets/{index.es527-nyqBNV6O.js → index.es491-nyqBNV6O.js} +0 -0
- /package/dist/assets/{index.es528-C6j12Q_x.js → index.es492-C6j12Q_x.js} +0 -0
- /package/dist/assets/{index.es529-7A4Fjokl.js → index.es493-7A4Fjokl.js} +0 -0
- /package/dist/assets/{index.es530-CB0Krxn9.js → index.es494-CB0Krxn9.js} +0 -0
- /package/dist/assets/{index.es531-DCE3LsBG.js → index.es495-DCE3LsBG.js} +0 -0
- /package/dist/assets/{index.es532-C3FkfJm5.js → index.es496-C3FkfJm5.js} +0 -0
- /package/dist/assets/{index.es535-CVw76BM1.js → index.es499-CVw76BM1.js} +0 -0
- /package/dist/assets/{index.es536-HnGAYVZD.js → index.es500-HnGAYVZD.js} +0 -0
- /package/dist/assets/{index.es537-BVz_zdnA.js → index.es501-BVz_zdnA.js} +0 -0
- /package/dist/assets/{index.es538-C3khCPGq.js → index.es502-C3khCPGq.js} +0 -0
- /package/dist/assets/{index.es539-D-2ljcwZ.js → index.es503-D-2ljcwZ.js} +0 -0
- /package/dist/assets/{index.es540-Cv9koXgw.js → index.es504-Cv9koXgw.js} +0 -0
- /package/dist/assets/{index.es541-CD_QflpE.js → index.es505-CD_QflpE.js} +0 -0
- /package/dist/assets/{index.es542-DRW-0cLl.js → index.es506-DRW-0cLl.js} +0 -0
- /package/dist/assets/{index.es543-C-_shW-Y.js → index.es507-C-_shW-Y.js} +0 -0
- /package/dist/assets/{index.es544-LGGdnPYs.js → index.es508-LGGdnPYs.js} +0 -0
- /package/dist/assets/{index.es545-C3mMm8J8.js → index.es509-C3mMm8J8.js} +0 -0
- /package/dist/assets/{index.es546-BzJJZx-M.js → index.es510-BzJJZx-M.js} +0 -0
- /package/dist/assets/{index.es547-BXkSAIEj.js → index.es511-BXkSAIEj.js} +0 -0
- /package/dist/assets/{index.es548-BgDCqdQA.js → index.es512-BgDCqdQA.js} +0 -0
- /package/dist/assets/{index.es549-C8M2exoo.js → index.es513-C8M2exoo.js} +0 -0
- /package/dist/assets/{index.es550-DHJKELXO.js → index.es514-DHJKELXO.js} +0 -0
- /package/dist/assets/{index.es551-Cuk6v7N8.js → index.es515-Cuk6v7N8.js} +0 -0
- /package/dist/assets/{index.es552-DH5Ifo-i.js → index.es516-DH5Ifo-i.js} +0 -0
- /package/dist/assets/{index.es553-E3gJ1_iC.js → index.es517-E3gJ1_iC.js} +0 -0
- /package/dist/assets/{index.es554-DAi9KRSo.js → index.es518-DAi9KRSo.js} +0 -0
- /package/dist/assets/{index.es555-D7oLnXFd.js → index.es519-D7oLnXFd.js} +0 -0
- /package/dist/assets/{index.es556-BfjtVDDH.js → index.es520-BfjtVDDH.js} +0 -0
- /package/dist/assets/{index.es557-DnULxvSX.js → index.es521-DnULxvSX.js} +0 -0
- /package/dist/assets/{index.es558-CkXjmgJE.js → index.es522-CkXjmgJE.js} +0 -0
- /package/dist/assets/{index.es559-CfQXZHmo.js → index.es523-CfQXZHmo.js} +0 -0
- /package/dist/assets/{index.es560-DWedfzmr.js → index.es524-DWedfzmr.js} +0 -0
- /package/dist/assets/{index.es561-DUszq2jm.js → index.es525-DUszq2jm.js} +0 -0
- /package/dist/assets/{index.es562-B7mTdjB0.js → index.es526-B7mTdjB0.js} +0 -0
- /package/dist/assets/{index.es563-D5KoaKCx.js → index.es527-D5KoaKCx.js} +0 -0
- /package/dist/assets/{index.es564-BfHTSMKl.js → index.es528-BfHTSMKl.js} +0 -0
- /package/dist/assets/{index.es565-B0m2ddpp.js → index.es529-B0m2ddpp.js} +0 -0
- /package/dist/assets/{index.es566-CyktbL80.js → index.es530-CyktbL80.js} +0 -0
- /package/dist/assets/{index.es567-Csfq5Kiy.js → index.es531-Csfq5Kiy.js} +0 -0
- /package/dist/assets/{index.es568-CafNBF8u.js → index.es532-CafNBF8u.js} +0 -0
- /package/dist/assets/{index.es569-CTRr51gU.js → index.es533-CTRr51gU.js} +0 -0
- /package/dist/assets/{index.es570-D4h5O-jR.js → index.es534-D4h5O-jR.js} +0 -0
- /package/dist/assets/{index.es571-C39BiMTA.js → index.es535-C39BiMTA.js} +0 -0
- /package/dist/assets/{index.es572-Ddv68eIx.js → index.es536-Ddv68eIx.js} +0 -0
- /package/dist/assets/{index.es573-GBQ2dnAY.js → index.es537-GBQ2dnAY.js} +0 -0
- /package/dist/assets/{index.es574-PoHY5YXO.js → index.es538-PoHY5YXO.js} +0 -0
- /package/dist/assets/{index.es575-3e1v2bzS.js → index.es539-3e1v2bzS.js} +0 -0
- /package/dist/assets/{index.es576-CS3Unz2-.js → index.es540-CS3Unz2-.js} +0 -0
- /package/dist/assets/{index.es577-bN70gL4F.js → index.es541-bN70gL4F.js} +0 -0
- /package/dist/assets/{index.es578-CmCqftbK.js → index.es542-CmCqftbK.js} +0 -0
- /package/dist/assets/{index.es579-Ds-gbosJ.js → index.es543-Ds-gbosJ.js} +0 -0
- /package/dist/assets/{index.es580-CjDtw9vr.js → index.es544-CjDtw9vr.js} +0 -0
- /package/dist/assets/{index.es581-BthQWCQV.js → index.es545-BthQWCQV.js} +0 -0
- /package/dist/assets/{index.es582-DqwNpetd.js → index.es546-DqwNpetd.js} +0 -0
- /package/dist/assets/{index.es583-Bw305WKR.js → index.es547-Bw305WKR.js} +0 -0
- /package/dist/assets/{index.es584-DXbdFlpD.js → index.es548-DXbdFlpD.js} +0 -0
- /package/dist/assets/{index.es585-L9t79GZl.js → index.es549-L9t79GZl.js} +0 -0
- /package/dist/assets/{index.es586-CbfX1IO0.js → index.es550-CbfX1IO0.js} +0 -0
- /package/dist/assets/{index.es587-DBQeEorK.js → index.es551-DBQeEorK.js} +0 -0
- /package/dist/assets/{index.es588-BEBZ7ncR.js → index.es552-BEBZ7ncR.js} +0 -0
- /package/dist/assets/{index.es589-Bkuqu6BP.js → index.es553-Bkuqu6BP.js} +0 -0
- /package/dist/assets/{index.es590-D0r3Knsf.js → index.es554-D0r3Knsf.js} +0 -0
- /package/dist/assets/{index.es591-CVO1_9PV.js → index.es555-CVO1_9PV.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as aa,j as k,s as oa,q as la,r as p,w as ea,aa as ra,L as j,A as $,a7 as m,x as F,F as r,H as ta,J as ia,K as y}from"./index-
|
|
1
|
+
import{c as aa,j as k,s as oa,q as la,r as p,w as ea,aa as ra,L as j,A as $,a7 as m,x as F,F as r,H as ta,J as ia,K as y}from"./index-BS_9W4Tt.js";const na=aa(k.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function ca(a){return la("MuiChip",a)}const o=oa("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),sa=a=>{const{classes:e,disabled:l,size:t,color:n,iconColor:g,onDelete:d,clickable:c,variant:s}=a,C={root:["root",s,l&&"disabled",`size${r(t)}`,`color${r(n)}`,c&&"clickable",c&&`clickableColor${r(n)}`,d&&"deletable",d&&`deletableColor${r(n)}`,`${s}${r(n)}`],label:["label",`label${r(t)}`],avatar:["avatar",`avatar${r(t)}`,`avatarColor${r(n)}`],icon:["icon",`icon${r(t)}`,`iconColor${r(g)}`],deleteIcon:["deleteIcon",`deleteIcon${r(t)}`,`deleteIconColor${r(n)}`,`deleteIcon${r(s)}Color${r(n)}`]};return ta(C,ca,e)},pa=F("div",{name:"MuiChip",slot:"Root",overridesResolver:(a,e)=>{const{ownerState:l}=a,{color:t,iconColor:n,clickable:g,onDelete:d,size:c,variant:s}=l;return[{[`& .${o.avatar}`]:e.avatar},{[`& .${o.avatar}`]:e[`avatar${r(c)}`]},{[`& .${o.avatar}`]:e[`avatarColor${r(t)}`]},{[`& .${o.icon}`]:e.icon},{[`& .${o.icon}`]:e[`icon${r(c)}`]},{[`& .${o.icon}`]:e[`iconColor${r(n)}`]},{[`& .${o.deleteIcon}`]:e.deleteIcon},{[`& .${o.deleteIcon}`]:e[`deleteIcon${r(c)}`]},{[`& .${o.deleteIcon}`]:e[`deleteIconColor${r(t)}`]},{[`& .${o.deleteIcon}`]:e[`deleteIcon${r(s)}Color${r(t)}`]},e.root,e[`size${r(c)}`],e[`color${r(t)}`],g&&e.clickable,g&&t!=="default"&&e[`clickableColor${r(t)})`],d&&e.deletable,d&&t!=="default"&&e[`deletableColor${r(t)}`],e[s],e[`${s}${r(t)}`]]}})(ia(({theme:a})=>{const e=a.palette.mode==="light"?a.palette.grey[700]:a.palette.grey[300];return{maxWidth:"100%",fontFamily:a.typography.fontFamily,fontSize:a.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(a.vars||a).palette.text.primary,backgroundColor:(a.vars||a).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:a.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${o.disabled}`]:{opacity:(a.vars||a).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${o.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:a.vars?a.vars.palette.Chip.defaultAvatarColor:e,fontSize:a.typography.pxToRem(12)},[`& .${o.avatarColorPrimary}`]:{color:(a.vars||a).palette.primary.contrastText,backgroundColor:(a.vars||a).palette.primary.dark},[`& .${o.avatarColorSecondary}`]:{color:(a.vars||a).palette.secondary.contrastText,backgroundColor:(a.vars||a).palette.secondary.dark},[`& .${o.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:a.typography.pxToRem(10)},[`& .${o.icon}`]:{marginLeft:5,marginRight:-6},[`& .${o.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:a.alpha((a.vars||a).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:a.alpha((a.vars||a).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${o.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${o.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(a.palette).filter(y(["contrastText"])).map(([l])=>({props:{color:l},style:{backgroundColor:(a.vars||a).palette[l].main,color:(a.vars||a).palette[l].contrastText,[`& .${o.deleteIcon}`]:{color:a.alpha((a.vars||a).palette[l].contrastText,.7),"&:hover, &:active":{color:(a.vars||a).palette[l].contrastText}}}})),{props:l=>l.iconColor===l.color,style:{[`& .${o.icon}`]:{color:a.vars?a.vars.palette.Chip.defaultIconColor:e}}},{props:l=>l.iconColor===l.color&&l.color!=="default",style:{[`& .${o.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${o.focusVisible}`]:{backgroundColor:a.alpha((a.vars||a).palette.action.selected,`${(a.vars||a).palette.action.selectedOpacity} + ${(a.vars||a).palette.action.focusOpacity}`)}}},...Object.entries(a.palette).filter(y(["dark"])).map(([l])=>({props:{color:l,onDelete:!0},style:{[`&.${o.focusVisible}`]:{background:(a.vars||a).palette[l].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:a.alpha((a.vars||a).palette.action.selected,`${(a.vars||a).palette.action.selectedOpacity} + ${(a.vars||a).palette.action.hoverOpacity}`)},[`&.${o.focusVisible}`]:{backgroundColor:a.alpha((a.vars||a).palette.action.selected,`${(a.vars||a).palette.action.selectedOpacity} + ${(a.vars||a).palette.action.focusOpacity}`)},"&:active":{boxShadow:(a.vars||a).shadows[1]}}},...Object.entries(a.palette).filter(y(["dark"])).map(([l])=>({props:{color:l,clickable:!0},style:{[`&:hover, &.${o.focusVisible}`]:{backgroundColor:(a.vars||a).palette[l].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:a.vars?`1px solid ${a.vars.palette.Chip.defaultBorder}`:`1px solid ${a.palette.mode==="light"?a.palette.grey[400]:a.palette.grey[700]}`,[`&.${o.clickable}:hover`]:{backgroundColor:(a.vars||a).palette.action.hover},[`&.${o.focusVisible}`]:{backgroundColor:(a.vars||a).palette.action.focus},[`& .${o.avatar}`]:{marginLeft:4},[`& .${o.avatarSmall}`]:{marginLeft:2},[`& .${o.icon}`]:{marginLeft:4},[`& .${o.iconSmall}`]:{marginLeft:2},[`& .${o.deleteIcon}`]:{marginRight:5},[`& .${o.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(a.palette).filter(y()).map(([l])=>({props:{variant:"outlined",color:l},style:{color:(a.vars||a).palette[l].main,border:`1px solid ${a.alpha((a.vars||a).palette[l].main,.7)}`,[`&.${o.clickable}:hover`]:{backgroundColor:a.alpha((a.vars||a).palette[l].main,(a.vars||a).palette.action.hoverOpacity)},[`&.${o.focusVisible}`]:{backgroundColor:a.alpha((a.vars||a).palette[l].main,(a.vars||a).palette.action.focusOpacity)},[`& .${o.deleteIcon}`]:{color:a.alpha((a.vars||a).palette[l].main,.7),"&:hover, &:active":{color:(a.vars||a).palette[l].main}}}}))]}})),da=F("span",{name:"MuiChip",slot:"Label",overridesResolver:(a,e)=>{const{ownerState:l}=a,{size:t}=l;return[e.label,e[`label${r(t)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function E(a){return a.key==="Backspace"||a.key==="Delete"}const va=p.forwardRef(function(e,l){const t=ea({props:e,name:"MuiChip"}),{avatar:n,className:g,clickable:d,color:c="default",component:s,deleteIcon:C,disabled:S=!1,icon:f,label:M,onClick:R,onDelete:u,onKeyDown:w,onKeyUp:z,size:N="medium",variant:K="filled",tabIndex:U,skipFocusWhenDisabled:W=!1,slots:B={},slotProps:H={},...A}=t,q=p.useRef(null),J=ra(q,l),D=i=>{i.stopPropagation(),u&&u(i)},G=i=>{i.currentTarget===i.target&&E(i)&&i.preventDefault(),w&&w(i)},Q=i=>{i.currentTarget===i.target&&u&&E(i)&&u(i),z&&z(i)},I=d!==!1&&R?!0:d,x=I||u?j:s||"div",P={...t,component:x,disabled:S,size:N,color:c,iconColor:p.isValidElement(f)&&f.props.color||c,onDelete:!!u,clickable:I,variant:K},b=sa(P),X=x===j?{component:s||"div",focusVisibleClassName:b.focusVisible,...u&&{disableRipple:!0}}:{};let L=null;u&&(L=C&&p.isValidElement(C)?p.cloneElement(C,{className:$(C.props.className,b.deleteIcon),onClick:D}):k.jsx(na,{className:b.deleteIcon,onClick:D}));let O=null;n&&p.isValidElement(n)&&(O=p.cloneElement(n,{className:$(b.avatar,n.props.className)}));let T=null;f&&p.isValidElement(f)&&(T=p.cloneElement(f,{className:$(b.icon,f.props.className)}));const V={slots:B,slotProps:H},[Y,Z]=m("root",{elementType:pa,externalForwardedProps:{...V,...A},ownerState:P,shouldForwardComponentProp:!0,ref:J,className:$(b.root,g),additionalProps:{disabled:I&&S?!0:void 0,tabIndex:W&&S?-1:U,...X},getSlotProps:i=>({...i,onClick:v=>{i.onClick?.(v),R?.(v)},onKeyDown:v=>{i.onKeyDown?.(v),G(v)},onKeyUp:v=>{i.onKeyUp?.(v),Q(v)}})}),[_,h]=m("label",{elementType:da,externalForwardedProps:V,ownerState:P,className:b.label});return k.jsxs(Y,{as:x,...Z,children:[O||T,k.jsx(_,{...h,children:M}),L]})});export{va as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aq as h,at as W,r as k,j as v,A as R,F as c,H as G,au as $,q as M,x as P,w as S}from"./index-
|
|
1
|
+
import{aq as h,at as W,r as k,j as v,A as R,F as c,H as G,au as $,q as M,x as P,w as S}from"./index-BS_9W4Tt.js";const T=$(),j=h("div",{name:"MuiContainer",slot:"Root",overridesResolver:(a,s)=>{const{ownerState:o}=a;return[s.root,s[`maxWidth${c(String(o.maxWidth))}`],o.fixed&&s.fixed,o.disableGutters&&s.disableGutters]}}),y=a=>W({props:a,name:"MuiContainer",defaultTheme:T}),L=(a,s)=>{const o=i=>M(s,i),{classes:u,fixed:p,disableGutters:l,maxWidth:t}=a,e={root:["root",t&&`maxWidth${c(String(t))}`,p&&"fixed",l&&"disableGutters"]};return G(e,o,u)};function N(a={}){const{createStyledComponent:s=j,useThemeProps:o=y,componentName:u="MuiContainer"}=a,p=s(({theme:t,ownerState:e})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!e.disableGutters&&{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}}),({theme:t,ownerState:e})=>e.fixed&&Object.keys(t.breakpoints.values).reduce((i,r)=>{const d=r,n=t.breakpoints.values[d];return n!==0&&(i[t.breakpoints.up(d)]={maxWidth:`${n}${t.breakpoints.unit}`}),i},{}),({theme:t,ownerState:e})=>({...e.maxWidth==="xs"&&{[t.breakpoints.up("xs")]:{maxWidth:Math.max(t.breakpoints.values.xs,444)}},...e.maxWidth&&e.maxWidth!=="xs"&&{[t.breakpoints.up(e.maxWidth)]:{maxWidth:`${t.breakpoints.values[e.maxWidth]}${t.breakpoints.unit}`}}}));return k.forwardRef(function(e,i){const r=o(e),{className:d,component:n="div",disableGutters:m=!1,fixed:b=!1,maxWidth:f="lg",classes:U,...C}=r,x={...r,component:n,disableGutters:m,fixed:b,maxWidth:f},g=L(x,u);return v.jsx(p,{as:n,ownerState:x,className:R(g.root,d),ref:i,...C})})}const w=N({createStyledComponent:P("div",{name:"MuiContainer",slot:"Root",overridesResolver:(a,s)=>{const{ownerState:o}=a;return[s.root,s[`maxWidth${c(String(o.maxWidth))}`],o.fixed&&s.fixed,o.disableGutters&&s.disableGutters]}}),useThemeProps:a=>S({props:a,name:"MuiContainer"})});export{w as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as k,q as w,r as p,w as P,ay as uo,P as j,aU as go,a7 as b,A as h,x as u,j as n,F as d,H as T,J as N,T as mo}from"./index-
|
|
1
|
+
import{s as k,q as w,r as p,w as P,ay as uo,P as j,aU as go,a7 as b,A as h,x as u,j as n,F as d,H as T,J as N,T as mo}from"./index-BS_9W4Tt.js";import{F,M as xo,B as bo}from"./Modal-BbVeNLvO.js";function ho(t){return w("MuiDialog",t)}const S=k("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),U=p.createContext({}),fo=u(bo,{name:"MuiDialog",slot:"Backdrop",overrides:(t,o)=>o.backdrop})({zIndex:-1}),vo=t=>{const{classes:o,scroll:e,maxWidth:a,fullWidth:r,fullScreen:s}=t,i={root:["root"],container:["container",`scroll${d(e)}`],paper:["paper",`paperScroll${d(e)}`,`paperWidth${d(String(a))}`,r&&"paperFullWidth",s&&"paperFullScreen"]};return T(i,ho,o)},yo=u(xo,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),Co=u("div",{name:"MuiDialog",slot:"Container",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.container,o[`scroll${d(e.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),Do=u(j,{name:"MuiDialog",slot:"Paper",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.paper,o[`scrollPaper${d(e.scroll)}`],o[`paperWidth${d(String(e.maxWidth))}`],e.fullWidth&&o.paperFullWidth,e.fullScreen&&o.paperFullScreen]}})(N(({theme:t})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:o})=>!o.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:t.breakpoints.unit==="px"?Math.max(t.breakpoints.values.xs,444):`max(${t.breakpoints.values.xs}${t.breakpoints.unit}, 444px)`,[`&.${S.paperScrollBody}`]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(t.breakpoints.values).filter(o=>o!=="xs").map(o=>({props:{maxWidth:o},style:{maxWidth:`${t.breakpoints.values[o]}${t.breakpoints.unit}`,[`&.${S.paperScrollBody}`]:{[t.breakpoints.down(t.breakpoints.values[o]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:o})=>o.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:o})=>o.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${S.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Bo=p.forwardRef(function(o,e){const a=P({props:o,name:"MuiDialog"}),r=uo(),s={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":l,"aria-modal":g=!0,BackdropComponent:f,BackdropProps:A,children:I,className:Y,disableEscapeKeyDown:W=!1,fullScreen:E=!1,fullWidth:H=!1,maxWidth:L="sm",onClick:M,onClose:v,open:$,PaperComponent:X=j,PaperProps:R={},scroll:z="paper",slots:O={},slotProps:q={},TransitionComponent:J=F,transitionDuration:B=s,TransitionProps:K,...V}=a,c={...a,disableEscapeKeyDown:W,fullScreen:E,fullWidth:H,maxWidth:L,scroll:z},y=vo(c),C=p.useRef(),G=x=>{C.current=x.target===x.currentTarget},Q=x=>{M&&M(x),C.current&&(C.current=null,v&&v(x,"backdropClick"))},D=go(l),Z=p.useMemo(()=>({titleId:D}),[D]),_={transition:J,...O},oo={transition:K,paper:R,backdrop:A,...q},m={slots:_,slotProps:oo},[to,eo]=b("root",{elementType:yo,shouldForwardComponentProp:!0,externalForwardedProps:m,ownerState:c,className:h(y.root,Y),ref:e}),[ao,ro]=b("backdrop",{elementType:fo,shouldForwardComponentProp:!0,externalForwardedProps:m,ownerState:c}),[so,io]=b("paper",{elementType:Do,shouldForwardComponentProp:!0,externalForwardedProps:m,ownerState:c,className:h(y.paper,R.className)}),[lo,no]=b("container",{elementType:Co,externalForwardedProps:m,ownerState:c,className:y.container}),[po,co]=b("transition",{elementType:F,externalForwardedProps:m,ownerState:c,additionalProps:{appear:!0,in:$,timeout:B,role:"presentation"}});return n.jsx(to,{closeAfterTransition:!0,slots:{backdrop:ao},slotProps:{backdrop:{transitionDuration:B,as:f,...ro}},disableEscapeKeyDown:W,onClose:v,open:$,onClick:Q,...eo,...V,children:n.jsx(po,{...co,children:n.jsx(lo,{onMouseDown:G,...no,children:n.jsx(so,{as:X,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":D,"aria-modal":g,...io,children:n.jsx(U.Provider,{value:Z,children:I})})})})})});function So(t){return w("MuiDialogContent",t)}k("MuiDialogContent",["root","dividers"]);function ko(t){return w("MuiDialogTitle",t)}const wo=k("MuiDialogTitle",["root"]),Po=t=>{const{classes:o,dividers:e}=t;return T({root:["root",e&&"dividers"]},So,o)},To=u("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,e.dividers&&o.dividers]}})(N(({theme:t})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:o})=>o.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(t.vars||t).palette.divider}`,borderBottom:`1px solid ${(t.vars||t).palette.divider}`}},{props:({ownerState:o})=>!o.dividers,style:{[`.${wo.root} + &`]:{paddingTop:0}}}]}))),Fo=p.forwardRef(function(o,e){const a=P({props:o,name:"MuiDialogContent"}),{className:r,dividers:s=!1,...i}=a,l={...a,dividers:s},g=Po(l);return n.jsx(To,{className:h(g.root,r),ownerState:l,ref:e,...i})}),Wo=t=>{const{classes:o}=t;return T({root:["root"]},ko,o)},Mo=u(mo,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),jo=p.forwardRef(function(o,e){const a=P({props:o,name:"MuiDialogTitle"}),{className:r,id:s,...i}=a,l=a,g=Wo(l),{titleId:f=s}=p.useContext(U);return n.jsx(Mo,{component:"h2",className:h(g.root,r),ownerState:l,ref:e,variant:"h6",id:s??f,...i})});export{Bo as D,jo as a,Fo as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aq as Pe,ar as ve,r as S,as as Ee,j as w,A as ne,at as Te,H as X,q as oe,au as Le,aa as Re,av as Me,aw as te,ax as ee,x as A,w as _,ay as le,a7 as L,T as W,az as re,aA as $e,aB as se,s as ue,P as Ge,J as de,O as ae,aC as je,F as U,c as pe}from"./index-CPPmFTED.js";import{i as Oe,L as Ae,g as ze,l as F}from"./listItemTextClasses-BS6WKuj5.js";const Ne=(e,t)=>e.filter(n=>t.includes(n)),z=(e,t,n)=>{const o=e.keys[0];Array.isArray(t)?t.forEach((s,r)=>{n((u,p)=>{r<=e.keys.length-1&&(r===0?Object.assign(u,p):u[e.up(e.keys[r])]=p)},s)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:Ne(e.keys,Object.keys(t))).forEach(r=>{if(e.keys.includes(r)){const u=t[r];u!==void 0&&n((p,y)=>{o===r?Object.assign(p,y):p[e.up(r)]=y},u)}}):(typeof t=="number"||typeof t=="string")&&n((s,r)=>{Object.assign(s,r)},t)};function K(e){return`--Grid-${e}Spacing`}function q(e){return`--Grid-parent-${e}Spacing`}const ie="--Grid-columns",O="--Grid-parent-columns",Be=({theme:e,ownerState:t})=>{const n={};return z(e.breakpoints,t.size,(o,s)=>{let r={};s==="grow"&&(r={flexBasis:0,flexGrow:1,maxWidth:"100%"}),s==="auto"&&(r={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof s=="number"&&(r={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${s} / var(${O}) - (var(${O}) - ${s}) * (var(${q("column")}) / var(${O})))`}),o(n,r)}),n},He=({theme:e,ownerState:t})=>{const n={};return z(e.breakpoints,t.offset,(o,s)=>{let r={};s==="auto"&&(r={marginLeft:"auto"}),typeof s=="number"&&(r={marginLeft:s===0?"0px":`calc(100% * ${s} / var(${O}) + var(${q("column")}) * ${s} / var(${O}))`}),o(n,r)}),n},De=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[ie]:12};return z(e.breakpoints,t.columns,(o,s)=>{const r=s??12;o(n,{[ie]:r,"> *":{[O]:r}})}),n},Ie=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return z(e.breakpoints,t.rowSpacing,(o,s)=>{const r=typeof s=="string"?s:e.spacing?.(s);o(n,{[K("row")]:r,"> *":{[q("row")]:r}})}),n},We=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return z(e.breakpoints,t.columnSpacing,(o,s)=>{const r=typeof s=="string"?s:e.spacing?.(s);o(n,{[K("column")]:r,"> *":{[q("column")]:r}})}),n},Fe=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return z(e.breakpoints,t.direction,(o,s)=>{o(n,{flexDirection:s})}),n},Ue=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${K("row")}) var(${K("column")})`}}),Ke=e=>{const t=[];return Object.entries(e).forEach(([n,o])=>{o!==!1&&o!==void 0&&t.push(`grid-${n}-${String(o)}`)}),t},Xe=(e,t="xs")=>{function n(o){return o===void 0?!1:typeof o=="string"&&!Number.isNaN(Number(o))||typeof o=="number"&&o>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const o=[];return Object.entries(e).forEach(([s,r])=>{n(r)&&o.push(`spacing-${s}-${String(r)}`)}),o}return[]},_e=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`];function qe(e,t){e.item!==void 0&&delete e.item,e.zeroMinWidth!==void 0&&delete e.zeroMinWidth,t.keys.forEach(n=>{e[n]!==void 0&&delete e[n]})}const Ve=Le(),Je=Pe("div",{name:"MuiGrid",slot:"Root"});function Ye(e){return Te({props:e,name:"MuiGrid",defaultTheme:Ve})}function Qe(e={}){const{createStyledComponent:t=Je,useThemeProps:n=Ye,useTheme:o=ve,componentName:s="MuiGrid"}=e,r=(d,c)=>{const{container:f,direction:g,spacing:b,wrap:a,size:m}=d,h={root:["root",f&&"container",a!=="wrap"&&`wrap-xs-${String(a)}`,..._e(g),...Ke(m),...f?Xe(b,c.breakpoints.keys[0]):[]]};return X(h,i=>oe(s,i),{})};function u(d,c,f=()=>!0){const g={};return d===null||(Array.isArray(d)?d.forEach((b,a)=>{b!==null&&f(b)&&c.keys[a]&&(g[c.keys[a]]=b)}):typeof d=="object"?Object.keys(d).forEach(b=>{const a=d[b];a!=null&&f(a)&&(g[b]=a)}):g[c.keys[0]]=d),g}const p=t(De,We,Ie,Be,Fe,Ue,He),y=S.forwardRef(function(c,f){const g=o(),b=n(c),a=Ee(b);qe(a,g.breakpoints);const{className:m,children:h,columns:i=12,container:l=!1,component:k="div",direction:R="row",wrap:M="wrap",size:N={},offset:$={},spacing:v=0,rowSpacing:G=v,columnSpacing:j=v,unstable_level:P=0,...B}=a,V=u(N,g.breakpoints,x=>x!==!1),J=u($,g.breakpoints),E=c.columns??(P?void 0:i),Y=c.spacing??(P?void 0:v),Q=c.rowSpacing??c.spacing??(P?void 0:G),Z=c.columnSpacing??c.spacing??(P?void 0:j),H={...a,level:P,columns:E,container:l,direction:R,wrap:M,spacing:Y,rowSpacing:Q,columnSpacing:Z,size:V,offset:J},D=r(H,g);return w.jsx(p,{ref:f,as:k,ownerState:H,className:ne(D.root,m),...B,children:S.Children.map(h,x=>S.isValidElement(x)&&Oe(x,["Grid"])&&l&&x.props.container?S.cloneElement(x,{unstable_level:x.props?.unstable_level??P+1}):x)})});return y.muiName="Grid",y}function ce(e){return e.substring(2).toLowerCase()}function Ze(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function et(e){const{children:t,disableReactTree:n=!1,mouseEvent:o="onClick",onClickAway:s,touchEvent:r="onTouchEnd"}=e,u=S.useRef(!1),p=S.useRef(null),y=S.useRef(!1),d=S.useRef(!1);S.useEffect(()=>(setTimeout(()=>{y.current=!0},0),()=>{y.current=!1}),[]);const c=Re(Me(t),p),f=te(a=>{const m=d.current;d.current=!1;const h=ee(p.current);if(!y.current||!p.current||"clientX"in a&&Ze(a,h))return;if(u.current){u.current=!1;return}let i;a.composedPath?i=a.composedPath().includes(p.current):i=!h.documentElement.contains(a.target)||p.current.contains(a.target),!i&&(n||!m)&&s(a)}),g=a=>m=>{d.current=!0;const h=t.props[a];h&&h(m)},b={ref:c};return r!==!1&&(b[r]=g(r)),S.useEffect(()=>{if(r!==!1){const a=ce(r),m=ee(p.current),h=()=>{u.current=!0};return m.addEventListener(a,f),m.addEventListener("touchmove",h),()=>{m.removeEventListener(a,f),m.removeEventListener("touchmove",h)}}},[f,r]),o!==!1&&(b[o]=g(o)),S.useEffect(()=>{if(o!==!1){const a=ce(o),m=ee(p.current);return m.addEventListener(a,f),()=>{m.removeEventListener(a,f)}}},[f,o]),S.cloneElement(t,b)}const yt=Qe({createStyledComponent:A("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>_({props:e,name:"MuiGrid"}),useTheme:le}),tt=e=>{const{classes:t,inset:n,primary:o,secondary:s,dense:r}=e;return X({root:["root",n&&"inset",r&&"dense",o&&s&&"multiline"],primary:["primary"],secondary:["secondary"]},ze,t)},nt=A("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${F.primary}`]:t.primary},{[`& .${F.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${re.root}:where(& .${F.primary})`]:{display:"block"},[`.${re.root}:where(& .${F.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),gt=S.forwardRef(function(t,n){const o=_({props:t,name:"MuiListItemText"}),{children:s,className:r,disableTypography:u=!1,inset:p=!1,primary:y,primaryTypographyProps:d,secondary:c,secondaryTypographyProps:f,slots:g={},slotProps:b={},...a}=o,{dense:m}=S.useContext(Ae);let h=y??s,i=c;const l={...o,disableTypography:u,inset:p,primary:!!h,secondary:!!i,dense:m},k=tt(l),R={slots:g,slotProps:{primary:d,secondary:f,...b}},[M,N]=L("root",{className:ne(k.root,r),elementType:nt,externalForwardedProps:{...R,...a},ownerState:l,ref:n}),[$,v]=L("primary",{className:k.primary,elementType:W,externalForwardedProps:R,ownerState:l}),[G,j]=L("secondary",{className:k.secondary,elementType:W,externalForwardedProps:R,ownerState:l});return h!=null&&h.type!==W&&!u&&(h=w.jsx($,{variant:m?"body2":"body1",component:v?.variant?void 0:"span",...v,children:h})),i!=null&&i.type!==W&&!u&&(i=w.jsx(G,{variant:"body2",color:"textSecondary",...j,children:i})),w.jsxs(M,{...N,children:[h,i]})});function ot(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:o,open:s,resumeHideDuration:r}=e,u=$e();S.useEffect(()=>{if(!s)return;function i(l){l.defaultPrevented||l.key==="Escape"&&o?.(l,"escapeKeyDown")}return document.addEventListener("keydown",i),()=>{document.removeEventListener("keydown",i)}},[s,o]);const p=te((i,l)=>{o?.(i,l)}),y=te(i=>{!o||i==null||u.start(i,()=>{p(null,"timeout")})});S.useEffect(()=>(s&&y(t),u.clear),[s,t,y,u]);const d=i=>{o?.(i,"clickaway")},c=u.clear,f=S.useCallback(()=>{t!=null&&y(r??t*.5)},[t,r,y]),g=i=>l=>{const k=i.onBlur;k?.(l),f()},b=i=>l=>{const k=i.onFocus;k?.(l),c()},a=i=>l=>{const k=i.onMouseEnter;k?.(l),c()},m=i=>l=>{const k=i.onMouseLeave;k?.(l),f()};return S.useEffect(()=>{if(!n&&s)return window.addEventListener("focus",f),window.addEventListener("blur",c),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",c)}},[n,s,f,c]),{getRootProps:(i={})=>{const l={...se(e),...se(i)};return{role:"presentation",...i,...l,onBlur:g(l),onFocus:b(l),onMouseEnter:a(l),onMouseLeave:m(l)}},onClickAway:d}}function rt(e){return oe("MuiSnackbarContent",e)}ue("MuiSnackbarContent",["root","message","action"]);const st=e=>{const{classes:t}=e;return X({root:["root"],action:["action"],message:["message"]},rt,t)},at=A(Ge,{name:"MuiSnackbarContent",slot:"Root"})(de(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(ae(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:ae(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),it=A("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),ct=A("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),lt=S.forwardRef(function(t,n){const o=_({props:t,name:"MuiSnackbarContent"}),{action:s,className:r,message:u,role:p="alert",...y}=o,d=o,c=st(d);return w.jsxs(at,{role:p,elevation:6,className:ne(c.root,r),ownerState:d,ref:n,...y,children:[w.jsx(it,{className:c.message,ownerState:d,children:u}),s?w.jsx(ct,{className:c.action,ownerState:d,children:s}):null]})});function ut(e){return oe("MuiSnackbar",e)}ue("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const dt=e=>{const{classes:t,anchorOrigin:n}=e,o={root:["root",`anchorOrigin${U(n.vertical)}${U(n.horizontal)}`]};return X(o,ut,t)},pt=A("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${U(n.anchorOrigin.vertical)}${U(n.anchorOrigin.horizontal)}`]]}})(de(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),ht=S.forwardRef(function(t,n){const o=_({props:t,name:"MuiSnackbar"}),s=le(),r={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{action:u,anchorOrigin:{vertical:p,horizontal:y}={vertical:"bottom",horizontal:"left"},autoHideDuration:d=null,children:c,className:f,ClickAwayListenerProps:g,ContentProps:b,disableWindowBlurListener:a=!1,message:m,onBlur:h,onClose:i,onFocus:l,onMouseEnter:k,onMouseLeave:R,open:M,resumeHideDuration:N,slots:$={},slotProps:v={},TransitionComponent:G,transitionDuration:j=r,TransitionProps:{onEnter:P,onExited:B,...V}={},...J}=o,E={...o,anchorOrigin:{vertical:p,horizontal:y},autoHideDuration:d,disableWindowBlurListener:a,TransitionComponent:G,transitionDuration:j},Y=dt(E),{getRootProps:Q,onClickAway:Z}=ot({...E}),[H,D]=S.useState(!0),x=T=>{D(!0),B&&B(T)},fe=(T,C)=>{D(!1),P&&P(T,C)},I={slots:{transition:G,...$},slotProps:{content:b,clickAwayListener:g,transition:V,...v}},[me,ye]=L("root",{ref:n,className:[Y.root,f],elementType:pt,getSlotProps:Q,externalForwardedProps:{...I,...J},ownerState:E}),[ge,{ownerState:he,...Se}]=L("clickAwayListener",{elementType:et,externalForwardedProps:I,getSlotProps:T=>({onClickAway:(...C)=>{const xe=C[0];T.onClickAway?.(...C),!xe?.defaultMuiPrevented&&Z(...C)}}),ownerState:E}),[be,ke]=L("content",{elementType:lt,shouldForwardComponentProp:!0,externalForwardedProps:I,additionalProps:{message:m,action:u},ownerState:E}),[we,Ce]=L("transition",{elementType:je,externalForwardedProps:I,getSlotProps:T=>({onEnter:(...C)=>{T.onEnter?.(...C),fe(...C)},onExited:(...C)=>{T.onExited?.(...C),x(...C)}}),additionalProps:{appear:!0,in:M,timeout:j,direction:p==="top"?"down":"up"},ownerState:E});return!M&&H?null:w.jsx(ge,{...Se,...$.clickAwayListener&&{ownerState:he},children:w.jsx(me,{...ye,children:w.jsx(we,{...Ce,children:c||w.jsx(be,{...ke})})})})}),St=pe(w.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"})),bt=pe(w.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}));export{yt as G,gt as L,bt as P,ht as S,St as b};
|
|
1
|
+
import{aq as Pe,ar as ve,r as S,as as Ee,j as w,A as ne,at as Te,H as X,q as oe,au as Le,aa as Re,av as Me,aw as te,ax as ee,x as A,w as _,ay as le,a7 as L,T as W,az as re,aA as $e,aB as se,s as ue,P as Ge,J as de,O as ae,aC as je,F as U,c as pe}from"./index-BS_9W4Tt.js";import{i as Oe,L as Ae,g as ze,l as F}from"./listItemTextClasses-D0rI_qhy.js";const Ne=(e,t)=>e.filter(n=>t.includes(n)),z=(e,t,n)=>{const o=e.keys[0];Array.isArray(t)?t.forEach((s,r)=>{n((u,p)=>{r<=e.keys.length-1&&(r===0?Object.assign(u,p):u[e.up(e.keys[r])]=p)},s)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:Ne(e.keys,Object.keys(t))).forEach(r=>{if(e.keys.includes(r)){const u=t[r];u!==void 0&&n((p,y)=>{o===r?Object.assign(p,y):p[e.up(r)]=y},u)}}):(typeof t=="number"||typeof t=="string")&&n((s,r)=>{Object.assign(s,r)},t)};function K(e){return`--Grid-${e}Spacing`}function q(e){return`--Grid-parent-${e}Spacing`}const ie="--Grid-columns",O="--Grid-parent-columns",Be=({theme:e,ownerState:t})=>{const n={};return z(e.breakpoints,t.size,(o,s)=>{let r={};s==="grow"&&(r={flexBasis:0,flexGrow:1,maxWidth:"100%"}),s==="auto"&&(r={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof s=="number"&&(r={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${s} / var(${O}) - (var(${O}) - ${s}) * (var(${q("column")}) / var(${O})))`}),o(n,r)}),n},He=({theme:e,ownerState:t})=>{const n={};return z(e.breakpoints,t.offset,(o,s)=>{let r={};s==="auto"&&(r={marginLeft:"auto"}),typeof s=="number"&&(r={marginLeft:s===0?"0px":`calc(100% * ${s} / var(${O}) + var(${q("column")}) * ${s} / var(${O}))`}),o(n,r)}),n},De=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[ie]:12};return z(e.breakpoints,t.columns,(o,s)=>{const r=s??12;o(n,{[ie]:r,"> *":{[O]:r}})}),n},Ie=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return z(e.breakpoints,t.rowSpacing,(o,s)=>{const r=typeof s=="string"?s:e.spacing?.(s);o(n,{[K("row")]:r,"> *":{[q("row")]:r}})}),n},We=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return z(e.breakpoints,t.columnSpacing,(o,s)=>{const r=typeof s=="string"?s:e.spacing?.(s);o(n,{[K("column")]:r,"> *":{[q("column")]:r}})}),n},Fe=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return z(e.breakpoints,t.direction,(o,s)=>{o(n,{flexDirection:s})}),n},Ue=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${K("row")}) var(${K("column")})`}}),Ke=e=>{const t=[];return Object.entries(e).forEach(([n,o])=>{o!==!1&&o!==void 0&&t.push(`grid-${n}-${String(o)}`)}),t},Xe=(e,t="xs")=>{function n(o){return o===void 0?!1:typeof o=="string"&&!Number.isNaN(Number(o))||typeof o=="number"&&o>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const o=[];return Object.entries(e).forEach(([s,r])=>{n(r)&&o.push(`spacing-${s}-${String(r)}`)}),o}return[]},_e=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`];function qe(e,t){e.item!==void 0&&delete e.item,e.zeroMinWidth!==void 0&&delete e.zeroMinWidth,t.keys.forEach(n=>{e[n]!==void 0&&delete e[n]})}const Ve=Le(),Je=Pe("div",{name:"MuiGrid",slot:"Root"});function Ye(e){return Te({props:e,name:"MuiGrid",defaultTheme:Ve})}function Qe(e={}){const{createStyledComponent:t=Je,useThemeProps:n=Ye,useTheme:o=ve,componentName:s="MuiGrid"}=e,r=(d,c)=>{const{container:f,direction:g,spacing:b,wrap:a,size:m}=d,h={root:["root",f&&"container",a!=="wrap"&&`wrap-xs-${String(a)}`,..._e(g),...Ke(m),...f?Xe(b,c.breakpoints.keys[0]):[]]};return X(h,i=>oe(s,i),{})};function u(d,c,f=()=>!0){const g={};return d===null||(Array.isArray(d)?d.forEach((b,a)=>{b!==null&&f(b)&&c.keys[a]&&(g[c.keys[a]]=b)}):typeof d=="object"?Object.keys(d).forEach(b=>{const a=d[b];a!=null&&f(a)&&(g[b]=a)}):g[c.keys[0]]=d),g}const p=t(De,We,Ie,Be,Fe,Ue,He),y=S.forwardRef(function(c,f){const g=o(),b=n(c),a=Ee(b);qe(a,g.breakpoints);const{className:m,children:h,columns:i=12,container:l=!1,component:k="div",direction:R="row",wrap:M="wrap",size:N={},offset:$={},spacing:v=0,rowSpacing:G=v,columnSpacing:j=v,unstable_level:P=0,...B}=a,V=u(N,g.breakpoints,x=>x!==!1),J=u($,g.breakpoints),E=c.columns??(P?void 0:i),Y=c.spacing??(P?void 0:v),Q=c.rowSpacing??c.spacing??(P?void 0:G),Z=c.columnSpacing??c.spacing??(P?void 0:j),H={...a,level:P,columns:E,container:l,direction:R,wrap:M,spacing:Y,rowSpacing:Q,columnSpacing:Z,size:V,offset:J},D=r(H,g);return w.jsx(p,{ref:f,as:k,ownerState:H,className:ne(D.root,m),...B,children:S.Children.map(h,x=>S.isValidElement(x)&&Oe(x,["Grid"])&&l&&x.props.container?S.cloneElement(x,{unstable_level:x.props?.unstable_level??P+1}):x)})});return y.muiName="Grid",y}function ce(e){return e.substring(2).toLowerCase()}function Ze(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function et(e){const{children:t,disableReactTree:n=!1,mouseEvent:o="onClick",onClickAway:s,touchEvent:r="onTouchEnd"}=e,u=S.useRef(!1),p=S.useRef(null),y=S.useRef(!1),d=S.useRef(!1);S.useEffect(()=>(setTimeout(()=>{y.current=!0},0),()=>{y.current=!1}),[]);const c=Re(Me(t),p),f=te(a=>{const m=d.current;d.current=!1;const h=ee(p.current);if(!y.current||!p.current||"clientX"in a&&Ze(a,h))return;if(u.current){u.current=!1;return}let i;a.composedPath?i=a.composedPath().includes(p.current):i=!h.documentElement.contains(a.target)||p.current.contains(a.target),!i&&(n||!m)&&s(a)}),g=a=>m=>{d.current=!0;const h=t.props[a];h&&h(m)},b={ref:c};return r!==!1&&(b[r]=g(r)),S.useEffect(()=>{if(r!==!1){const a=ce(r),m=ee(p.current),h=()=>{u.current=!0};return m.addEventListener(a,f),m.addEventListener("touchmove",h),()=>{m.removeEventListener(a,f),m.removeEventListener("touchmove",h)}}},[f,r]),o!==!1&&(b[o]=g(o)),S.useEffect(()=>{if(o!==!1){const a=ce(o),m=ee(p.current);return m.addEventListener(a,f),()=>{m.removeEventListener(a,f)}}},[f,o]),S.cloneElement(t,b)}const yt=Qe({createStyledComponent:A("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>_({props:e,name:"MuiGrid"}),useTheme:le}),tt=e=>{const{classes:t,inset:n,primary:o,secondary:s,dense:r}=e;return X({root:["root",n&&"inset",r&&"dense",o&&s&&"multiline"],primary:["primary"],secondary:["secondary"]},ze,t)},nt=A("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${F.primary}`]:t.primary},{[`& .${F.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${re.root}:where(& .${F.primary})`]:{display:"block"},[`.${re.root}:where(& .${F.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),gt=S.forwardRef(function(t,n){const o=_({props:t,name:"MuiListItemText"}),{children:s,className:r,disableTypography:u=!1,inset:p=!1,primary:y,primaryTypographyProps:d,secondary:c,secondaryTypographyProps:f,slots:g={},slotProps:b={},...a}=o,{dense:m}=S.useContext(Ae);let h=y??s,i=c;const l={...o,disableTypography:u,inset:p,primary:!!h,secondary:!!i,dense:m},k=tt(l),R={slots:g,slotProps:{primary:d,secondary:f,...b}},[M,N]=L("root",{className:ne(k.root,r),elementType:nt,externalForwardedProps:{...R,...a},ownerState:l,ref:n}),[$,v]=L("primary",{className:k.primary,elementType:W,externalForwardedProps:R,ownerState:l}),[G,j]=L("secondary",{className:k.secondary,elementType:W,externalForwardedProps:R,ownerState:l});return h!=null&&h.type!==W&&!u&&(h=w.jsx($,{variant:m?"body2":"body1",component:v?.variant?void 0:"span",...v,children:h})),i!=null&&i.type!==W&&!u&&(i=w.jsx(G,{variant:"body2",color:"textSecondary",...j,children:i})),w.jsxs(M,{...N,children:[h,i]})});function ot(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:o,open:s,resumeHideDuration:r}=e,u=$e();S.useEffect(()=>{if(!s)return;function i(l){l.defaultPrevented||l.key==="Escape"&&o?.(l,"escapeKeyDown")}return document.addEventListener("keydown",i),()=>{document.removeEventListener("keydown",i)}},[s,o]);const p=te((i,l)=>{o?.(i,l)}),y=te(i=>{!o||i==null||u.start(i,()=>{p(null,"timeout")})});S.useEffect(()=>(s&&y(t),u.clear),[s,t,y,u]);const d=i=>{o?.(i,"clickaway")},c=u.clear,f=S.useCallback(()=>{t!=null&&y(r??t*.5)},[t,r,y]),g=i=>l=>{const k=i.onBlur;k?.(l),f()},b=i=>l=>{const k=i.onFocus;k?.(l),c()},a=i=>l=>{const k=i.onMouseEnter;k?.(l),c()},m=i=>l=>{const k=i.onMouseLeave;k?.(l),f()};return S.useEffect(()=>{if(!n&&s)return window.addEventListener("focus",f),window.addEventListener("blur",c),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",c)}},[n,s,f,c]),{getRootProps:(i={})=>{const l={...se(e),...se(i)};return{role:"presentation",...i,...l,onBlur:g(l),onFocus:b(l),onMouseEnter:a(l),onMouseLeave:m(l)}},onClickAway:d}}function rt(e){return oe("MuiSnackbarContent",e)}ue("MuiSnackbarContent",["root","message","action"]);const st=e=>{const{classes:t}=e;return X({root:["root"],action:["action"],message:["message"]},rt,t)},at=A(Ge,{name:"MuiSnackbarContent",slot:"Root"})(de(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(ae(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:ae(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),it=A("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),ct=A("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),lt=S.forwardRef(function(t,n){const o=_({props:t,name:"MuiSnackbarContent"}),{action:s,className:r,message:u,role:p="alert",...y}=o,d=o,c=st(d);return w.jsxs(at,{role:p,elevation:6,className:ne(c.root,r),ownerState:d,ref:n,...y,children:[w.jsx(it,{className:c.message,ownerState:d,children:u}),s?w.jsx(ct,{className:c.action,ownerState:d,children:s}):null]})});function ut(e){return oe("MuiSnackbar",e)}ue("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const dt=e=>{const{classes:t,anchorOrigin:n}=e,o={root:["root",`anchorOrigin${U(n.vertical)}${U(n.horizontal)}`]};return X(o,ut,t)},pt=A("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${U(n.anchorOrigin.vertical)}${U(n.anchorOrigin.horizontal)}`]]}})(de(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),ht=S.forwardRef(function(t,n){const o=_({props:t,name:"MuiSnackbar"}),s=le(),r={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{action:u,anchorOrigin:{vertical:p,horizontal:y}={vertical:"bottom",horizontal:"left"},autoHideDuration:d=null,children:c,className:f,ClickAwayListenerProps:g,ContentProps:b,disableWindowBlurListener:a=!1,message:m,onBlur:h,onClose:i,onFocus:l,onMouseEnter:k,onMouseLeave:R,open:M,resumeHideDuration:N,slots:$={},slotProps:v={},TransitionComponent:G,transitionDuration:j=r,TransitionProps:{onEnter:P,onExited:B,...V}={},...J}=o,E={...o,anchorOrigin:{vertical:p,horizontal:y},autoHideDuration:d,disableWindowBlurListener:a,TransitionComponent:G,transitionDuration:j},Y=dt(E),{getRootProps:Q,onClickAway:Z}=ot({...E}),[H,D]=S.useState(!0),x=T=>{D(!0),B&&B(T)},fe=(T,C)=>{D(!1),P&&P(T,C)},I={slots:{transition:G,...$},slotProps:{content:b,clickAwayListener:g,transition:V,...v}},[me,ye]=L("root",{ref:n,className:[Y.root,f],elementType:pt,getSlotProps:Q,externalForwardedProps:{...I,...J},ownerState:E}),[ge,{ownerState:he,...Se}]=L("clickAwayListener",{elementType:et,externalForwardedProps:I,getSlotProps:T=>({onClickAway:(...C)=>{const xe=C[0];T.onClickAway?.(...C),!xe?.defaultMuiPrevented&&Z(...C)}}),ownerState:E}),[be,ke]=L("content",{elementType:lt,shouldForwardComponentProp:!0,externalForwardedProps:I,additionalProps:{message:m,action:u},ownerState:E}),[we,Ce]=L("transition",{elementType:je,externalForwardedProps:I,getSlotProps:T=>({onEnter:(...C)=>{T.onEnter?.(...C),fe(...C)},onExited:(...C)=>{T.onExited?.(...C),x(...C)}}),additionalProps:{appear:!0,in:M,timeout:j,direction:p==="top"?"down":"up"},ownerState:E});return!M&&H?null:w.jsx(ge,{...Se,...$.clickAwayListener&&{ownerState:he},children:w.jsx(me,{...ye,children:w.jsx(we,{...Ce,children:c||w.jsx(be,{...ke})})})})}),St=pe(w.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"})),bt=pe(w.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}));export{yt as G,gt as L,bt as P,ht as S,St as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as o}from"./index-BS_9W4Tt.js";const r=o.createContext(void 0);export{r as F};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{c as Q,j as e,r as j,D as f,u as k,S as z,R as D,a as b,b as E,v as A,N as I,M as F,E as w,C as M,z as B,Q as Y,d as G,G as K,W as O,e as V,B as y,f as p,g as W,T as i,h as v,i as C,m as J,k as U,l as X,t as q,n as R,y as Z,I as ee,o as re,p as te}from"./index-
|
|
1
|
+
import{c as Q,j as e,r as j,D as f,u as k,S as z,R as D,a as b,b as E,v as A,N as I,M as F,E as w,C as M,z as B,Q as Y,d as G,G as K,W as O,e as V,B as y,f as p,g as W,T as i,h as v,i as C,m as J,k as U,l as X,t as q,n as R,y as Z,I as ee,o as re,p as te}from"./index-BS_9W4Tt.js";import{f as ne}from"./index.es20-DzH7kq4S.js";import{M as $,a as se}from"./MenuItem-BWMnNgqP.js";import{L as N,A as oe}from"./MoreVert-Dh8A2FDF.js";import{b as ae,L as T,S as _,P as ie,G as g}from"./Edit-Do7LZWER.js";import{C as le}from"./Container-pCaIjpH5.js";import{C as P}from"./Chip-DpRfGWL9.js";import{D as ce}from"./listItemTextClasses-D0rI_qhy.js";import"./Modal-BbVeNLvO.js";const de=Q(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m4 11h-3v3c0 .55-.45 1-1 1s-1-.45-1-1v-3H8c-.55 0-1-.45-1-1s.45-1 1-1h3V8c0-.55.45-1 1-1s1 .45 1 1v3h3c.55 0 1 .45 1 1s-.45 1-1 1"})),H=r=>{if(!r)return"Explore semantic models, run queries, and build dashboards";const n=r.replace(/^#+\s+/gm,"").replace(/\*\*(.*?)\*\*/g,"$1").replace(/\*(.*?)\*/g,"$1").replace(/\[([^\]]+)\]\([^)]+\)/g,"$1").replace(/`([^`]+)`/g,"$1").trim(),t=n.split(/\n\s*\n/)[0]||n;if(t.length<=120)return t;const s=t.substring(0,120).split(" ");return s.pop(),s.join(" ")+"..."},L=(r,n)=>{const t=(r.readme||void 0)?.split(`
|
|
2
2
|
`)??[];return t.length===0&&(t.push(`# ${r.name}`),t.push("")),(r.readme?.length??0)>0&&n?t.splice(2,1,n):n&&t.push(n),t.join(`
|
|
3
3
|
`)};function me(){const[r,n]=j.useState(!1),{apiClients:t}=f(),[s,c]=j.useState(""),d=()=>{n(!0)},l=()=>{n(!1)},o=k(),m=z({async mutationFn(a){return t.projects.createProject({name:a.name,readme:L({name:a.name,readme:""},a.description)})},onSuccess(){l(),o.invalidateQueries({queryKey:["projects"]}),c("Project created successfully")},onError(a){c(a instanceof Error?a.message:"An unknown error occurred")}}),x=async a=>{a.preventDefault();const h=new FormData(a.currentTarget),u=h.get("name")?.toString(),S=h.get("description")?.toString();if(!u)throw new Error("Name is required");m.mutate({name:u,description:S})};return e.jsxs(D.Fragment,{children:[e.jsx(b,{variant:"contained",onClick:d,startIcon:e.jsx(de,{}),sx:{mt:2,color:"white"},children:"Create New Project"}),e.jsxs(E,{open:r,onClose:l,children:[e.jsx(A,{children:"Create New Project"}),e.jsxs(I,{children:[e.jsx(F,{children:"Add a new project to start exploring semantic models and analyzing data."}),e.jsxs("form",{onSubmit:x,id:"project-form",children:[e.jsx(w,{autoFocus:!0,required:!0,margin:"dense",id:"name",name:"name",label:"Project Name",type:"text",fullWidth:!0,variant:"standard"}),e.jsx(w,{margin:"dense",id:"description",name:"description",label:"Project Description",placeholder:"Explore semantic models, run queries, and build dashboards",type:"text",fullWidth:!0,variant:"standard"})]})]}),e.jsxs(M,{children:[e.jsx(b,{disabled:m.isPending,onClick:l,children:"Cancel"}),e.jsx(b,{type:"submit",form:"project-form",loading:m.isPending,children:"Create Project"})]})]}),e.jsx(B,{open:s!=="",autoHideDuration:6e3,onClose:()=>c(""),message:s})]})}function ue({project:r,onCloseDialog:n}){const[t,s]=j.useState(!1),{apiClients:c}=f(),d=k(),[l,o]=j.useState(""),m=()=>{s(!0)},x=()=>{s(!1),n()},a=z({mutationFn:()=>c.projects.deleteProject(r.name),onSuccess(){x(),d.invalidateQueries({queryKey:["projects"]}),o("Project deleted successfully")},onError(h){o(h instanceof Error?h.message:"An unknown error occurred")}});return e.jsxs(D.Fragment,{children:[e.jsxs($,{onClick:m,children:[e.jsx(N,{children:e.jsx(ae,{fontSize:"small"})}),e.jsx(T,{children:"Delete"})]}),e.jsxs(E,{onClose:x,"aria-labelledby":"customized-dialog-title",open:t,children:[e.jsx(A,{sx:{m:0,p:2},id:"customized-dialog-title",children:"Delete Project"}),e.jsx(Y,{"aria-label":"close",onClick:x,sx:h=>({position:"absolute",right:8,top:8,color:h.palette.grey[500]}),children:e.jsx(G,{})}),e.jsx(I,{dividers:!0,children:e.jsxs(K,{gutterBottom:!0,children:['Are you sure you want to delete "',r.name,'"? This action cannot be undone.']})}),e.jsx(M,{children:e.jsx(b,{loading:a.isPending,variant:"contained",autoFocus:!0,onClick:()=>a.mutate(),color:"error",children:"Delete"})}),e.jsx(_,{open:l!=="",autoHideDuration:6e3,onClose:()=>o(""),message:l})]})]})}function xe({project:r,onCloseDialog:n}){const[t,s]=j.useState(!1),{apiClients:c}=f(),d=k(),[l,o]=j.useState(""),m=()=>{s(!0)},x=()=>{s(!1),n()},a=z({async mutationFn(u){return c.projects.updateProject(r.name,{name:r.name,readme:L({name:r.name,readme:r.readme},u.description)})},onSuccess(){x(),d.invalidateQueries({queryKey:["projects"]}),o("Project updated successfully")},onError(u){o(u instanceof Error?u.message:"An unknown error occurred")}}),h=u=>{u.preventDefault();const S=new FormData(u.currentTarget).get("description")?.toString();a.mutate({description:S})};return e.jsxs(D.Fragment,{children:[e.jsxs($,{onClick:m,children:[e.jsx(N,{children:e.jsx(ie,{fontSize:"small"})}),e.jsx(T,{children:"Edit"})]}),e.jsxs(E,{open:t,onClose:x,children:[e.jsx(A,{children:"Edit Project"}),e.jsxs(I,{children:[e.jsx(F,{children:"Add a new project to start exploring semantic models and analyzing data."}),e.jsxs("form",{onSubmit:h,id:"project-form",children:[e.jsx(w,{autoFocus:!0,required:!0,margin:"dense",id:"name",name:"name",label:"Project Name",disabled:!0,type:"text",fullWidth:!0,variant:"standard",defaultValue:r.name}),e.jsx(w,{margin:"dense",id:"description",name:"description",label:"Project Description",type:"text",fullWidth:!0,variant:"standard",defaultValue:H(r.readme)})]})]}),e.jsxs(M,{children:[e.jsx(b,{disabled:a.isPending,onClick:x,children:"Cancel"}),e.jsx(b,{type:"submit",form:"project-form",loading:a.isPending,children:"Save Changes"})]})]}),e.jsx(_,{open:l!=="",autoHideDuration:6e3,onClose:()=>o(""),message:l})]})}function he({onClickProject:r}){const{apiClients:n,mutable:t}=f(),{data:s,isSuccess:c,isError:d,error:l}=O({queryKey:["projects"],queryFn:()=>n.projects.listProjects()});return d?e.jsx(V,{error:l,context:"Projects List"}):c?e.jsxs(le,{maxWidth:"lg",sx:{py:4},children:[e.jsxs(y,{sx:{textAlign:"center",mb:6},children:[e.jsxs(p,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[e.jsx(W,{sx:{fontSize:32,color:"primary.main"}}),e.jsx(i,{variant:"h3",component:"h1",fontWeight:700,children:"Publisher"})]}),e.jsx(i,{variant:"h5",color:"text.secondary",sx:{mb:3,maxWidth:600,mx:"auto"},children:"The open-source semantic model server for the Malloy data language"}),e.jsx(i,{variant:"body1",color:"text.secondary",sx:{maxWidth:800,mx:"auto"},children:"Define semantic models once — and use them everywhere. Publisher serves Malloy models through clean APIs, enabling consistent, interpretable, and AI-ready data access for tools, applications, and agents."})]}),e.jsxs(g,{container:!0,spacing:3,sx:{mb:6},children:[e.jsx(g,{size:{xs:12,md:4},children:e.jsx(v,{variant:"outlined",onClick:()=>{window.open("https://github.com/malloydata/publisher/blob/main/README.md#ad-hoc-data-analysis","_blank")},sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2}},children:e.jsxs(C,{sx:{p:3},children:[e.jsxs(p,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[e.jsx(J,{sx:{color:"info.main",fontSize:28}}),e.jsx(i,{variant:"h6",fontWeight:600,children:"Ad Hoc Analysis"})]}),e.jsx(i,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Use Explorer, a visual query builder that allows analysts to browse semantic sources, build queries, and run nested logic — all without writing code."}),e.jsx(P,{label:"No-code",size:"small",color:"primary",variant:"outlined"})]})})}),e.jsx(g,{size:{xs:12,md:4},children:e.jsx(v,{variant:"outlined",onClick:()=>{window.open("https://github.com/malloydata/publisher/blob/main/README.md#notebook-based-dashboards","_blank")},sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2}},children:e.jsxs(C,{sx:{p:3},children:[e.jsxs(p,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[e.jsx(U,{sx:{color:"warning.main",fontSize:28}}),e.jsx(i,{variant:"h6",fontWeight:600,children:"Notebook Dashboards"})]}),e.jsx(i,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Create shareable, code-first dashboards using Malloy notebooks. Include text, charts, and reusable views — all versioned alongside your models."}),e.jsx(P,{label:"Versioned",size:"small",color:"warning",variant:"outlined"})]})})}),e.jsx(g,{size:{xs:12,md:4},children:e.jsx(v,{variant:"outlined",onClick:()=>{window.open("https://github.com/malloydata/publisher/blob/main/README.md#mcp-based-ai-data-agents","_blank")},sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2}},children:e.jsxs(C,{sx:{p:3},children:[e.jsxs(p,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[e.jsx(X,{sx:{color:"success.main",fontSize:28}}),e.jsx(i,{variant:"h6",fontWeight:600,children:"AI Data Agents"})]}),e.jsx(i,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Expose your semantic models via the Model Context Protocol (MCP), enabling AI agents to discover sources and ask well-formed questions."}),e.jsx(P,{label:"AI-Ready",size:"small",color:"success",variant:"outlined"})]})})})]}),e.jsx(ce,{sx:{my:4}}),s.data.length>0?e.jsxs(e.Fragment,{children:[e.jsxs(y,{sx:{textAlign:"center",mb:4},children:[e.jsxs(p,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[e.jsx(q,{sx:{color:"primary.main",fontSize:24}}),e.jsx(i,{variant:"h4",fontWeight:600,children:"Select a Project"})]}),e.jsx(i,{variant:"body1",color:"text.secondary",children:"Choose a project to explore its semantic models and start analyzing your data"}),t&&e.jsx(me,{})]}),e.jsx(g,{container:!0,spacing:3,justifyContent:"center",children:s.data.map(o=>e.jsx(g,{size:{xs:12,sm:6,md:4},children:e.jsx(je,{project:o,onClickProject:r})},o.name))})]}):e.jsxs(y,{sx:{textAlign:"center",mb:4},children:[e.jsxs(p,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[e.jsx(q,{sx:{color:"primary.main",fontSize:24}}),e.jsx(i,{variant:"h4",fontWeight:600,children:"Get Started"})]}),e.jsx(i,{variant:"body1",color:"text.secondary",sx:{mb:3},children:"No projects found. Create your first Malloy project to start exploring semantic models and building data experiences."}),e.jsx(R,{variant:"contained",size:"large",color:"primary",startIcon:e.jsx(W,{}),href:"https://github.com/malloydata/publisher/blob/main/README.md#server-configuration",target:"_blank",rel:"noopener noreferrer",children:"Learn How to Create Models"})]}),e.jsx(y,{sx:{textAlign:"center",mt:6,pt:4,borderTop:1,borderColor:"divider"},children:e.jsxs(i,{variant:"body2",color:"text.secondary",children:["Publisher is built on fully open infrastructure and designed for the AI era. Join the"," ",e.jsx("a",{href:"https://join.slack.com/t/malloy-community/shared_invite/zt-1kgfwgi5g-CrsdaRqs81QY67QW0~t_uw",target:"_blank",rel:"noopener noreferrer",style:{color:"primary.main",textDecoration:"underline"},children:"Malloy Slack community"})," ","to ask questions, share ideas, and contribute to the future of data modeling."]})})]}):e.jsx(Z,{text:"Loading projects..."})}function je({project:r,onClickProject:n}){const{mutable:t}=f(),[s,c]=j.useState(null),d=!!s,l=m=>{c(m.currentTarget)},o=()=>{c(null)};return e.jsx("div",{children:e.jsxs(v,{variant:"outlined",sx:{height:"100%",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2,borderColor:"primary.main"}},children:[t&&e.jsxs(e.Fragment,{children:[e.jsx(ee,{"aria-controls":d?"project-menu":void 0,"aria-haspopup":"true","aria-expanded":d?"true":void 0,onClick:l,sx:{position:"absolute",top:8,right:8},children:e.jsx(oe,{fontSize:"small"})}),e.jsxs(se,{id:"project-menu","aria-haspopup":"true","aria-expanded":d?"true":void 0,open:d,anchorEl:s,onClose:o,disableRestoreFocus:!0,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"},children:[e.jsx(xe,{project:r,onCloseDialog:o}),e.jsx(ue,{project:r,onCloseDialog:o})]})]}),e.jsxs(C,{sx:{p:3,textAlign:"center"},children:[e.jsx(re,{sx:{fontSize:48,color:"primary.main",mb:2}}),e.jsx(i,{variant:"h6",fontWeight:600,gutterBottom:!0,children:r.name}),e.jsx(i,{variant:"body2",color:"text.secondary",sx:{mb:2},children:H(r.readme)}),e.jsx(R,{variant:"contained",color:"secondary",endIcon:e.jsx(te,{}),fullWidth:!0,onClick:m=>n(`/${r.name}/`,m),children:"Open Project"})]})]})})}function Pe(){const r=ne();return e.jsx(he,{onClickProject:r})}export{Pe as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{q as A,s as S,r as u,w as I,j as a,x as g,A as M,F as y,H as R,P as V,J as w,K as q,c as E,L as H,O as T,U as J,T as O,V as K,B as f,X,f as D,n as k,Y}from"./index-
|
|
1
|
+
import{q as A,s as S,r as u,w as I,j as a,x as g,A as M,F as y,H as R,P as V,J as w,K as q,c as E,L as H,O as T,U as J,T as O,V as K,B as f,X,f as D,n as k,Y}from"./index-BS_9W4Tt.js";import{f as Q}from"./index.es20-DzH7kq4S.js";import{C as j}from"./Chip-DpRfGWL9.js";import{C as Z}from"./Container-pCaIjpH5.js";function _(r){return A("MuiAppBar",r)}S("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const rr=r=>{const{color:o,position:e,classes:s}=r,t={root:["root",`color${y(o)}`,`position${y(e)}`]};return R(t,_,s)},U=(r,o)=>r?`${r?.replace(")","")}, ${o})`:o,or=g(V,{name:"MuiAppBar",slot:"Root",overridesResolver:(r,o)=>{const{ownerState:e}=r;return[o.root,o[`position${y(e.position)}`],o[`color${y(e.color)}`]]}})(w(({theme:r})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(r.vars||r).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(r.vars||r).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(r.vars||r).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":r.vars?r.vars.palette.AppBar.defaultBg:r.palette.grey[100],"--AppBar-color":r.vars?r.vars.palette.text.primary:r.palette.getContrastText(r.palette.grey[100]),...r.applyStyles("dark",{"--AppBar-background":r.vars?r.vars.palette.AppBar.defaultBg:r.palette.grey[900],"--AppBar-color":r.vars?r.vars.palette.text.primary:r.palette.getContrastText(r.palette.grey[900])})}},...Object.entries(r.palette).filter(q(["contrastText"])).map(([o])=>({props:{color:o},style:{"--AppBar-background":(r.vars??r).palette[o].main,"--AppBar-color":(r.vars??r).palette[o].contrastText}})),{props:o=>o.enableColorOnDark===!0&&!["inherit","transparent"].includes(o.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:o=>o.enableColorOnDark===!1&&!["inherit","transparent"].includes(o.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...r.applyStyles("dark",{backgroundColor:r.vars?U(r.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:r.vars?U(r.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...r.applyStyles("dark",{backgroundImage:"none"})}}]}))),ar=u.forwardRef(function(o,e){const s=I({props:o,name:"MuiAppBar"}),{className:t,color:n="primary",enableColorOnDark:i=!1,position:c="fixed",...x}=s,p={...s,color:n,position:c,enableColorOnDark:i},d=rr(p);return a.jsx(or,{square:!0,component:"header",ownerState:p,elevation:4,className:M(d.root,t,c==="fixed"&&"mui-fixed"),ref:e,...x})}),er=E(a.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),sr=g(H,{name:"MuiBreadcrumbCollapsed"})(w(({theme:r})=>({display:"flex",marginLeft:`calc(${r.spacing(1)} * 0.5)`,marginRight:`calc(${r.spacing(1)} * 0.5)`,...r.palette.mode==="light"?{backgroundColor:r.palette.grey[100],color:r.palette.grey[700]}:{backgroundColor:r.palette.grey[700],color:r.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...r.palette.mode==="light"?{backgroundColor:r.palette.grey[200]}:{backgroundColor:r.palette.grey[600]}},"&:active":{boxShadow:r.shadows[0],...r.palette.mode==="light"?{backgroundColor:T(r.palette.grey[200],.12)}:{backgroundColor:T(r.palette.grey[600],.12)}}}))),tr=g(er)({width:24,height:16});function lr(r){const{slots:o={},slotProps:e={},...s}=r,t=r;return a.jsx("li",{children:a.jsx(sr,{focusRipple:!0,...s,ownerState:t,children:a.jsx(tr,{as:o.CollapsedIcon,ownerState:t,...e.collapsedIcon})})})}function nr(r){return A("MuiBreadcrumbs",r)}const ir=S("MuiBreadcrumbs",["root","ol","li","separator"]),pr=r=>{const{classes:o}=r;return R({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},nr,o)},cr=g(O,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(r,o)=>[{[`& .${ir.li}`]:o.li},o.root]})({}),dr=g("ol",{name:"MuiBreadcrumbs",slot:"Ol"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),ur=g("li",{name:"MuiBreadcrumbs",slot:"Separator"})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function gr(r,o,e,s){return r.reduce((t,n,i)=>(i<r.length-1?t=t.concat(n,a.jsx(ur,{"aria-hidden":!0,className:o,ownerState:s,children:e},`separator-${i}`)):t.push(n),t),[])}const xr=u.forwardRef(function(o,e){const s=I({props:o,name:"MuiBreadcrumbs"}),{children:t,className:n,component:i="nav",slots:c={},slotProps:x={},expandText:p="Show path",itemsAfterCollapse:d=1,itemsBeforeCollapse:B=1,maxItems:v=8,separator:z="/",...W}=s,[N,L]=u.useState(!1),b={...s,component:i,expanded:N,expandText:p,itemsAfterCollapse:d,itemsBeforeCollapse:B,maxItems:v,separator:z},m=pr(b),F=J({elementType:c.CollapsedIcon,externalSlotProps:x.collapsedIcon,ownerState:b}),P=u.useRef(null),G=l=>{const C=()=>{L(!0);const $=P.current.querySelector("a[href],button,[tabindex]");$&&$.focus()};return B+d>=l.length?l:[...l.slice(0,B),a.jsx(lr,{"aria-label":p,slots:{CollapsedIcon:c.CollapsedIcon},slotProps:{collapsedIcon:F},onClick:C},"ellipsis"),...l.slice(l.length-d,l.length)]},h=u.Children.toArray(t).filter(l=>u.isValidElement(l)).map((l,C)=>a.jsx("li",{className:m.li,children:l},`child-${C}`));return a.jsx(cr,{ref:e,component:i,color:"textSecondary",className:M(m.root,n),ownerState:b,...W,children:a.jsx(dr,{className:m.ol,ref:P,ownerState:b,children:gr(N||v&&h.length<=v?h:G(h),m.separator,z,b)})})});function br(r){return A("MuiToolbar",r)}S("MuiToolbar",["root","gutters","regular","dense"]);const fr=r=>{const{classes:o,disableGutters:e,variant:s}=r;return R({root:["root",!e&&"gutters",s]},br,o)},mr=g("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(r,o)=>{const{ownerState:e}=r;return[o.root,!e.disableGutters&&o.gutters,o[e.variant]]}})(w(({theme:r})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:o})=>!o.disableGutters,style:{paddingLeft:r.spacing(2),paddingRight:r.spacing(2),[r.breakpoints.up("sm")]:{paddingLeft:r.spacing(3),paddingRight:r.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:r.mixins.toolbar}]}))),yr=u.forwardRef(function(o,e){const s=I({props:o,name:"MuiToolbar"}),{className:t,component:n="div",disableGutters:i=!1,variant:c="regular",...x}=s,p={...s,component:n,disableGutters:i,variant:c},d=fr(p);return a.jsx(mr,{as:n,className:M(d.root,t),ref:e,ownerState:p,...x})}),Br=E(a.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}));function vr(){const r=K(),o=r["*"],e=Q();return a.jsx(f,{sx:{display:"flex",alignItems:"center"},children:a.jsxs(xr,{"aria-label":"breadcrumb",separator:a.jsx(Br,{sx:{fontSize:14,color:"text.secondary"}}),sx:{"& .MuiBreadcrumbs-separator":{margin:"0 6px"}},children:[r.projectName&&a.jsx(j,{onClick:s=>e(`/${r.projectName}/`,s),label:r.projectName,size:"medium",sx:{backgroundColor:"white",color:"primary.main",fontWeight:500,height:"32px",fontSize:"1rem",cursor:"pointer","&:hover":{backgroundColor:"primary.100"}}}),r.packageName&&a.jsx(j,{onClick:s=>e(`/${r.projectName}/${r.packageName}/`,s),label:r.packageName,size:"medium",sx:{backgroundColor:"white",color:"primary.main",fontWeight:500,height:"32px",fontSize:"1rem",cursor:"pointer","&:hover":{backgroundColor:"secondary.100"}}}),o&&a.jsx(j,{onClick:s=>e(`/${r.projectName}/${r.packageName}/${o}`,s),label:o,size:"medium",sx:{backgroundColor:"white",color:"primary.main",fontWeight:500,height:"32px",fontSize:"1rem",cursor:"pointer","&:hover":{backgroundColor:"grey.200"}}})]})})}function hr({logoHeader:r,endCap:o}){const e=X();return a.jsx(ar,{position:"sticky",elevation:0,sx:{backgroundColor:"background.paper",borderBottom:"1px solid",borderColor:"divider"},children:a.jsxs(yr,{sx:{justifyContent:"space-between"},children:[a.jsxs(D,{direction:"row",spacing:2,alignItems:"center",children:[r||a.jsxs(f,{sx:{display:"flex",alignItems:"center",gap:1},children:[a.jsx(f,{component:"img",src:"/logo.svg",alt:"Malloy",sx:{width:28,height:28}}),a.jsx(O,{variant:"h5",sx:{color:"text.primary",fontWeight:700,letterSpacing:"-0.025em",cursor:"pointer"},onClick:()=>{e("/")},children:"Malloy Publisher"})]}),a.jsx(vr,{})]}),a.jsxs(D,{direction:"row",spacing:2,alignItems:"center",children:[!r&&a.jsxs(a.Fragment,{children:[a.jsx(k,{href:"https://docs.malloydata.dev/documentation/",children:"Malloy Docs"}),a.jsx(k,{href:"https://github.com/malloydata/publisher/blob/main/README.md",children:"Publisher Docs"}),a.jsx(k,{href:"/api-doc.html",children:"Publisher API"})]}),o]})]})})}function Sr({headerProps:r}){return a.jsxs(f,{sx:{display:"flex",flexDirection:"column",minHeight:"100vh"},children:[a.jsx(hr,{...r}),a.jsx(Z,{maxWidth:"xl",component:"main",sx:{flex:1,display:"flex",flexDirection:"column",py:2,gap:2},children:a.jsx(f,{sx:{flex:1},children:a.jsx(Y,{})})})]})}export{Sr as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as K,s as J,q as X,r as l,a9 as Pe,aa as xe,j as N,ax as ee,x as j,P as De,w as oe,a7 as V,aC as Fe,ab as Se,H as se,aV as $e,U as Ne,a8 as Ce,L as Ae,J as He}from"./index-CPPmFTED.js";import{g as ze,o as te,M as Ke}from"./Modal-B09ILQKb.js";import{a as je,L as de,l as fe,d as me}from"./listItemTextClasses-BS6WKuj5.js";function Ue(e,t=166){let o;function i(...h){const p=()=>{e.apply(this,h)};clearTimeout(o),o=setTimeout(p,t)}return i.clear=()=>{clearTimeout(o)},i}function We(e,t){const o=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&o>=65&&o<=90&&typeof t=="function"}function Ve(e,t){if(!e)return t;function o(a,s){const n={};return Object.keys(s).forEach(y=>{We(y,s[y])&&typeof a[y]=="function"&&(n[y]=(...C)=>{a[y](...C),s[y](...C)})}),n}if(typeof e=="function"||typeof t=="function")return a=>{const s=typeof t=="function"?t(a):t,n=typeof e=="function"?e({...a,...s}):e,y=K(a?.className,s?.className,n?.className),C=o(n,s);return{...s,...n,...C,...!!y&&{className:y},...s?.style&&n?.style&&{style:{...s.style,...n.style}},...s?.sx&&n?.sx&&{sx:[...Array.isArray(s.sx)?s.sx:[s.sx],...Array.isArray(n.sx)?n.sx:[n.sx]]}}};const i=t,h=o(e,i),p=K(i?.className,e?.className);return{...t,...e,...h,...!!p&&{className:p},...i?.style&&e?.style&&{style:{...i.style,...e.style}},...i?.sx&&e?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function ut(e){return X("MuiListItemIcon",e)}const ge=J("MuiListItemIcon",["root","alignItemsFlexStart"]);function Z(e,t,o){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:o?null:e.firstChild}function ye(e,t,o){return e===t?o?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:o?null:e.lastChild}function Me(e,t){if(t===void 0)return!0;let o=e.innerText;return o===void 0&&(o=e.textContent),o=o.trim().toLowerCase(),o.length===0?!1:t.repeating?o[0]===t.keys[0]:o.startsWith(t.keys.join(""))}function U(e,t,o,i,h,p){let a=!1,s=h(e,t,t?o:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const n=i?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!Me(s,p)||n)s=h(e,s,o);else return s.focus(),!0}return!1}const Be=l.forwardRef(function(t,o){const{actions:i,autoFocus:h=!1,autoFocusItem:p=!1,children:a,className:s,disabledItemsFocusable:n=!1,disableListWrap:y=!1,onKeyDown:C,variant:k="selectedMenu",...S}=t,d=l.useRef(null),v=l.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Pe(()=>{h&&d.current.focus()},[h]),l.useImperativeHandle(i,()=>({adjustStyleForScrollbar:(r,{direction:u})=>{const f=!d.current.style.width;if(r.clientHeight<d.current.clientHeight&&f){const I=`${ze(te(r))}px`;d.current.style[u==="rtl"?"paddingLeft":"paddingRight"]=I,d.current.style.width=`calc(100% + ${I})`}return d.current}}),[]);const O=r=>{const u=d.current,f=r.key;if(r.ctrlKey||r.metaKey||r.altKey){C&&C(r);return}const D=ee(u).activeElement;if(f==="ArrowDown")r.preventDefault(),U(u,D,y,n,Z);else if(f==="ArrowUp")r.preventDefault(),U(u,D,y,n,ye);else if(f==="Home")r.preventDefault(),U(u,null,y,n,Z);else if(f==="End")r.preventDefault(),U(u,null,y,n,ye);else if(f.length===1){const m=v.current,L=f.toLowerCase(),A=performance.now();m.keys.length>0&&(A-m.lastTime>500?(m.keys=[],m.repeating=!0,m.previousKeyMatched=!0):m.repeating&&L!==m.keys[0]&&(m.repeating=!1)),m.lastTime=A,m.keys.push(L);const F=D&&!m.repeating&&Me(D,m);m.previousKeyMatched&&(F||U(u,D,!1,n,Z,m))?r.preventDefault():m.previousKeyMatched=!1}C&&C(r)},w=xe(d,o);let c=-1;l.Children.forEach(a,(r,u)=>{if(!l.isValidElement(r)){c===u&&(c+=1,c>=a.length&&(c=-1));return}r.props.disabled||(k==="selectedMenu"&&r.props.selected||c===-1)&&(c=u),c===u&&(r.props.disabled||r.props.muiSkipListHighlight||r.type.muiSkipListHighlight)&&(c+=1,c>=a.length&&(c=-1))});const P=l.Children.map(a,(r,u)=>{if(u===c){const f={};return p&&(f.autoFocus=!0),r.props.tabIndex===void 0&&k==="selectedMenu"&&(f.tabIndex=0),l.cloneElement(r,f)}return r});return N.jsx(je,{role:"menu",ref:w,className:s,onKeyDown:O,tabIndex:h?0:-1,...S,children:P})});function Ge(e){return X("MuiPopover",e)}J("MuiPopover",["root","paper"]);function he(e,t){let o=0;return typeof t=="number"?o=t:t==="center"?o=e.height/2:t==="bottom"&&(o=e.height),o}function be(e,t){let o=0;return typeof t=="number"?o=t:t==="center"?o=e.width/2:t==="right"&&(o=e.width),o}function ve(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function q(e){return typeof e=="function"?e():e}const _e=e=>{const{classes:t}=e;return se({root:["root"],paper:["paper"]},Ge,t)},qe=j(Ke,{name:"MuiPopover",slot:"Root"})({}),we=j(De,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Je=l.forwardRef(function(t,o){const i=oe({props:t,name:"MuiPopover"}),{action:h,anchorEl:p,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:n="anchorEl",children:y,className:C,container:k,elevation:S=8,marginThreshold:d=16,open:v,PaperProps:O={},slots:w={},slotProps:c={},transformOrigin:P={vertical:"top",horizontal:"left"},TransitionComponent:r,transitionDuration:u="auto",TransitionProps:f={},disableScrollLock:I=!1,...D}=i,m=l.useRef(),L={...i,anchorOrigin:a,anchorReference:n,elevation:S,marginThreshold:d,transformOrigin:P,TransitionComponent:r,transitionDuration:u,TransitionProps:f},A=_e(L),F=l.useCallback(()=>{if(n==="anchorPosition")return s;const g=q(p),M=(g&&g.nodeType===1?g:ee(m.current).body).getBoundingClientRect();return{top:M.top+he(M,a.vertical),left:M.left+be(M,a.horizontal)}},[p,a.horizontal,a.vertical,s,n]),$=l.useCallback(g=>({vertical:he(g,P.vertical),horizontal:be(g,P.horizontal)}),[P.horizontal,P.vertical]),B=l.useCallback(g=>{const x={width:g.offsetWidth,height:g.offsetHeight},M=$(x);if(n==="none")return{top:null,left:null,transformOrigin:ve(M)};const ie=F();let H=ie.top-M.vertical,z=ie.left-M.horizontal;const ae=H+x.height,le=z+x.width,ce=te(q(p)),ue=ce.innerHeight-d,pe=ce.innerWidth-d;if(d!==null&&H<d){const T=H-d;H-=T,M.vertical+=T}else if(d!==null&&ae>ue){const T=ae-ue;H-=T,M.vertical+=T}if(d!==null&&z<d){const T=z-d;z-=T,M.horizontal+=T}else if(le>pe){const T=le-pe;z-=T,M.horizontal+=T}return{top:`${Math.round(H)}px`,left:`${Math.round(z)}px`,transformOrigin:ve(M)}},[p,n,F,$,d]),[Y,G]=l.useState(v),R=l.useCallback(()=>{const g=m.current;if(!g)return;const x=B(g);x.top!==null&&g.style.setProperty("top",x.top),x.left!==null&&(g.style.left=x.left),g.style.transformOrigin=x.transformOrigin,G(!0)},[B]);l.useEffect(()=>(I&&window.addEventListener("scroll",R),()=>window.removeEventListener("scroll",R)),[p,I,R]);const Q=()=>{R()},_=()=>{G(!1)};l.useEffect(()=>{v&&R()}),l.useImperativeHandle(h,()=>v?{updatePosition:()=>{R()}}:null,[v,R]),l.useEffect(()=>{if(!v)return;const g=Ue(()=>{R()}),x=te(q(p));return x.addEventListener("resize",g),()=>{g.clear(),x.removeEventListener("resize",g)}},[p,v,R]);let b=u;const E={slots:{transition:r,...w},slotProps:{transition:f,paper:O,...c}},[ne,Ie]=V("transition",{elementType:Fe,externalForwardedProps:E,ownerState:L,getSlotProps:g=>({...g,onEntering:(x,M)=>{g.onEntering?.(x,M),Q()},onExited:x=>{g.onExited?.(x),_()}}),additionalProps:{appear:!0,in:v}});u==="auto"&&!ne.muiSupportAuto&&(b=void 0);const Re=k||(p?ee(q(p)).body:void 0),[re,{slots:Ee,slotProps:Te,...ke}]=V("root",{ref:o,elementType:qe,externalForwardedProps:{...E,...D},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:w.backdrop},slotProps:{backdrop:Ve(typeof c.backdrop=="function"?c.backdrop(L):c.backdrop,{invisible:!0})},container:Re,open:v},ownerState:L,className:K(A.root,C)}),[Le,Oe]=V("paper",{ref:m,className:A.paper,elementType:we,externalForwardedProps:E,shouldForwardComponentProp:!0,additionalProps:{elevation:S,style:Y?void 0:{opacity:0}},ownerState:L});return N.jsx(re,{...ke,...!Se(re)&&{slots:Ee,slotProps:Te,disableScrollLock:I},children:N.jsx(ne,{...Ie,timeout:b,children:N.jsx(Le,{...Oe,children:y})})})});function Xe(e){return X("MuiMenu",e)}J("MuiMenu",["root","paper","list"]);const Ye={vertical:"top",horizontal:"right"},Qe={vertical:"top",horizontal:"left"},Ze=e=>{const{classes:t}=e;return se({root:["root"],paper:["paper"],list:["list"]},Xe,t)},et=j(Je,{shouldForwardProp:e=>Ce(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),tt=j(we,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),ot=j(Be,{name:"MuiMenu",slot:"List"})({outline:0}),pt=l.forwardRef(function(t,o){const i=oe({props:t,name:"MuiMenu"}),{autoFocus:h=!0,children:p,className:a,disableAutoFocusItem:s=!1,MenuListProps:n={},onClose:y,open:C,PaperProps:k={},PopoverClasses:S,transitionDuration:d="auto",TransitionProps:{onEntering:v,...O}={},variant:w="selectedMenu",slots:c={},slotProps:P={},...r}=i,u=$e(),f={...i,autoFocus:h,disableAutoFocusItem:s,MenuListProps:n,onEntering:v,PaperProps:k,transitionDuration:d,TransitionProps:O,variant:w},I=Ze(f),D=h&&!s&&C,m=l.useRef(null),L=(b,E)=>{m.current&&m.current.adjustStyleForScrollbar(b,{direction:u?"rtl":"ltr"}),v&&v(b,E)},A=b=>{b.key==="Tab"&&(b.preventDefault(),y&&y(b,"tabKeyDown"))};let F=-1;l.Children.map(p,(b,E)=>{l.isValidElement(b)&&(b.props.disabled||(w==="selectedMenu"&&b.props.selected||F===-1)&&(F=E))});const $={slots:c,slotProps:{list:n,transition:O,paper:k,...P}},B=Ne({elementType:c.root,externalSlotProps:P.root,ownerState:f,className:[I.root,a]}),[Y,G]=V("paper",{className:I.paper,elementType:tt,externalForwardedProps:$,shouldForwardComponentProp:!0,ownerState:f}),[R,Q]=V("list",{className:K(I.list,n.className),elementType:ot,shouldForwardComponentProp:!0,externalForwardedProps:$,getSlotProps:b=>({...b,onKeyDown:E=>{A(E),b.onKeyDown?.(E)}}),ownerState:f}),_=typeof $.slotProps.transition=="function"?$.slotProps.transition(f):$.slotProps.transition;return N.jsx(et,{onClose:y,anchorOrigin:{vertical:"bottom",horizontal:u?"right":"left"},transformOrigin:u?Ye:Qe,slots:{root:c.root,paper:Y,backdrop:c.backdrop,...c.transition&&{transition:c.transition}},slotProps:{root:B,paper:G,backdrop:typeof P.backdrop=="function"?P.backdrop(f):P.backdrop,transition:{..._,onEntering:(...b)=>{L(...b),_?.onEntering?.(...b)}}},open:C,ref:o,transitionDuration:d,ownerState:f,...r,classes:S,children:N.jsx(R,{actions:m,autoFocus:h&&(F===-1||s),autoFocusItem:D,variant:w,...Q,children:p})})});function st(e){return X("MuiMenuItem",e)}const W=J("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),nt=(e,t)=>{const{ownerState:o}=e;return[t.root,o.dense&&t.dense,o.divider&&t.divider,!o.disableGutters&&t.gutters]},rt=e=>{const{disabled:t,dense:o,divider:i,disableGutters:h,selected:p,classes:a}=e,n=se({root:["root",o&&"dense",t&&"disabled",!h&&"gutters",i&&"divider",p&&"selected"]},st,a);return{...a,...n}},it=j(Ae,{shouldForwardProp:e=>Ce(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:nt})(He(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${W.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${W.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${W.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${W.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${W.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${me.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${me.inset}`]:{marginLeft:52},[`& .${fe.root}`]:{marginTop:0,marginBottom:0},[`& .${fe.inset}`]:{paddingLeft:36},[`& .${ge.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${ge.root} svg`]:{fontSize:"1.25rem"}}}]}))),dt=l.forwardRef(function(t,o){const i=oe({props:t,name:"MuiMenuItem"}),{autoFocus:h=!1,component:p="li",dense:a=!1,divider:s=!1,disableGutters:n=!1,focusVisibleClassName:y,role:C="menuitem",tabIndex:k,className:S,...d}=i,v=l.useContext(de),O=l.useMemo(()=>({dense:a||v.dense||!1,disableGutters:n}),[v.dense,a,n]),w=l.useRef(null);Pe(()=>{h&&w.current&&w.current.focus()},[h]);const c={...i,dense:O.dense,divider:s,disableGutters:n},P=rt(i),r=xe(w,o);let u;return i.disabled||(u=k!==void 0?k:-1),N.jsx(de.Provider,{value:O,children:N.jsx(it,{ref:r,role:C,tabIndex:u,component:p,focusVisibleClassName:K(P.focusVisible,y),className:K(P.root,S),...d,ownerState:c,classes:P})})});export{dt as M,pt as a,ut as g};
|
|
1
|
+
import{A as K,s as J,q as X,r as l,a9 as Pe,aa as xe,j as N,ax as ee,x as j,P as De,w as oe,a7 as V,aC as Fe,ab as Se,H as se,aV as $e,U as Ne,a8 as Ce,L as Ae,J as He}from"./index-BS_9W4Tt.js";import{g as ze,o as te,M as Ke}from"./Modal-BbVeNLvO.js";import{a as je,L as de,l as fe,d as me}from"./listItemTextClasses-D0rI_qhy.js";function Ue(e,t=166){let o;function i(...h){const p=()=>{e.apply(this,h)};clearTimeout(o),o=setTimeout(p,t)}return i.clear=()=>{clearTimeout(o)},i}function We(e,t){const o=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&o>=65&&o<=90&&typeof t=="function"}function Ve(e,t){if(!e)return t;function o(a,s){const n={};return Object.keys(s).forEach(y=>{We(y,s[y])&&typeof a[y]=="function"&&(n[y]=(...C)=>{a[y](...C),s[y](...C)})}),n}if(typeof e=="function"||typeof t=="function")return a=>{const s=typeof t=="function"?t(a):t,n=typeof e=="function"?e({...a,...s}):e,y=K(a?.className,s?.className,n?.className),C=o(n,s);return{...s,...n,...C,...!!y&&{className:y},...s?.style&&n?.style&&{style:{...s.style,...n.style}},...s?.sx&&n?.sx&&{sx:[...Array.isArray(s.sx)?s.sx:[s.sx],...Array.isArray(n.sx)?n.sx:[n.sx]]}}};const i=t,h=o(e,i),p=K(i?.className,e?.className);return{...t,...e,...h,...!!p&&{className:p},...i?.style&&e?.style&&{style:{...i.style,...e.style}},...i?.sx&&e?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function ut(e){return X("MuiListItemIcon",e)}const ge=J("MuiListItemIcon",["root","alignItemsFlexStart"]);function Z(e,t,o){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:o?null:e.firstChild}function ye(e,t,o){return e===t?o?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:o?null:e.lastChild}function Me(e,t){if(t===void 0)return!0;let o=e.innerText;return o===void 0&&(o=e.textContent),o=o.trim().toLowerCase(),o.length===0?!1:t.repeating?o[0]===t.keys[0]:o.startsWith(t.keys.join(""))}function U(e,t,o,i,h,p){let a=!1,s=h(e,t,t?o:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const n=i?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!Me(s,p)||n)s=h(e,s,o);else return s.focus(),!0}return!1}const Be=l.forwardRef(function(t,o){const{actions:i,autoFocus:h=!1,autoFocusItem:p=!1,children:a,className:s,disabledItemsFocusable:n=!1,disableListWrap:y=!1,onKeyDown:C,variant:k="selectedMenu",...S}=t,d=l.useRef(null),v=l.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Pe(()=>{h&&d.current.focus()},[h]),l.useImperativeHandle(i,()=>({adjustStyleForScrollbar:(r,{direction:u})=>{const f=!d.current.style.width;if(r.clientHeight<d.current.clientHeight&&f){const I=`${ze(te(r))}px`;d.current.style[u==="rtl"?"paddingLeft":"paddingRight"]=I,d.current.style.width=`calc(100% + ${I})`}return d.current}}),[]);const O=r=>{const u=d.current,f=r.key;if(r.ctrlKey||r.metaKey||r.altKey){C&&C(r);return}const D=ee(u).activeElement;if(f==="ArrowDown")r.preventDefault(),U(u,D,y,n,Z);else if(f==="ArrowUp")r.preventDefault(),U(u,D,y,n,ye);else if(f==="Home")r.preventDefault(),U(u,null,y,n,Z);else if(f==="End")r.preventDefault(),U(u,null,y,n,ye);else if(f.length===1){const m=v.current,L=f.toLowerCase(),A=performance.now();m.keys.length>0&&(A-m.lastTime>500?(m.keys=[],m.repeating=!0,m.previousKeyMatched=!0):m.repeating&&L!==m.keys[0]&&(m.repeating=!1)),m.lastTime=A,m.keys.push(L);const F=D&&!m.repeating&&Me(D,m);m.previousKeyMatched&&(F||U(u,D,!1,n,Z,m))?r.preventDefault():m.previousKeyMatched=!1}C&&C(r)},w=xe(d,o);let c=-1;l.Children.forEach(a,(r,u)=>{if(!l.isValidElement(r)){c===u&&(c+=1,c>=a.length&&(c=-1));return}r.props.disabled||(k==="selectedMenu"&&r.props.selected||c===-1)&&(c=u),c===u&&(r.props.disabled||r.props.muiSkipListHighlight||r.type.muiSkipListHighlight)&&(c+=1,c>=a.length&&(c=-1))});const P=l.Children.map(a,(r,u)=>{if(u===c){const f={};return p&&(f.autoFocus=!0),r.props.tabIndex===void 0&&k==="selectedMenu"&&(f.tabIndex=0),l.cloneElement(r,f)}return r});return N.jsx(je,{role:"menu",ref:w,className:s,onKeyDown:O,tabIndex:h?0:-1,...S,children:P})});function Ge(e){return X("MuiPopover",e)}J("MuiPopover",["root","paper"]);function he(e,t){let o=0;return typeof t=="number"?o=t:t==="center"?o=e.height/2:t==="bottom"&&(o=e.height),o}function be(e,t){let o=0;return typeof t=="number"?o=t:t==="center"?o=e.width/2:t==="right"&&(o=e.width),o}function ve(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function q(e){return typeof e=="function"?e():e}const _e=e=>{const{classes:t}=e;return se({root:["root"],paper:["paper"]},Ge,t)},qe=j(Ke,{name:"MuiPopover",slot:"Root"})({}),we=j(De,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Je=l.forwardRef(function(t,o){const i=oe({props:t,name:"MuiPopover"}),{action:h,anchorEl:p,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:n="anchorEl",children:y,className:C,container:k,elevation:S=8,marginThreshold:d=16,open:v,PaperProps:O={},slots:w={},slotProps:c={},transformOrigin:P={vertical:"top",horizontal:"left"},TransitionComponent:r,transitionDuration:u="auto",TransitionProps:f={},disableScrollLock:I=!1,...D}=i,m=l.useRef(),L={...i,anchorOrigin:a,anchorReference:n,elevation:S,marginThreshold:d,transformOrigin:P,TransitionComponent:r,transitionDuration:u,TransitionProps:f},A=_e(L),F=l.useCallback(()=>{if(n==="anchorPosition")return s;const g=q(p),M=(g&&g.nodeType===1?g:ee(m.current).body).getBoundingClientRect();return{top:M.top+he(M,a.vertical),left:M.left+be(M,a.horizontal)}},[p,a.horizontal,a.vertical,s,n]),$=l.useCallback(g=>({vertical:he(g,P.vertical),horizontal:be(g,P.horizontal)}),[P.horizontal,P.vertical]),B=l.useCallback(g=>{const x={width:g.offsetWidth,height:g.offsetHeight},M=$(x);if(n==="none")return{top:null,left:null,transformOrigin:ve(M)};const ie=F();let H=ie.top-M.vertical,z=ie.left-M.horizontal;const ae=H+x.height,le=z+x.width,ce=te(q(p)),ue=ce.innerHeight-d,pe=ce.innerWidth-d;if(d!==null&&H<d){const T=H-d;H-=T,M.vertical+=T}else if(d!==null&&ae>ue){const T=ae-ue;H-=T,M.vertical+=T}if(d!==null&&z<d){const T=z-d;z-=T,M.horizontal+=T}else if(le>pe){const T=le-pe;z-=T,M.horizontal+=T}return{top:`${Math.round(H)}px`,left:`${Math.round(z)}px`,transformOrigin:ve(M)}},[p,n,F,$,d]),[Y,G]=l.useState(v),R=l.useCallback(()=>{const g=m.current;if(!g)return;const x=B(g);x.top!==null&&g.style.setProperty("top",x.top),x.left!==null&&(g.style.left=x.left),g.style.transformOrigin=x.transformOrigin,G(!0)},[B]);l.useEffect(()=>(I&&window.addEventListener("scroll",R),()=>window.removeEventListener("scroll",R)),[p,I,R]);const Q=()=>{R()},_=()=>{G(!1)};l.useEffect(()=>{v&&R()}),l.useImperativeHandle(h,()=>v?{updatePosition:()=>{R()}}:null,[v,R]),l.useEffect(()=>{if(!v)return;const g=Ue(()=>{R()}),x=te(q(p));return x.addEventListener("resize",g),()=>{g.clear(),x.removeEventListener("resize",g)}},[p,v,R]);let b=u;const E={slots:{transition:r,...w},slotProps:{transition:f,paper:O,...c}},[ne,Ie]=V("transition",{elementType:Fe,externalForwardedProps:E,ownerState:L,getSlotProps:g=>({...g,onEntering:(x,M)=>{g.onEntering?.(x,M),Q()},onExited:x=>{g.onExited?.(x),_()}}),additionalProps:{appear:!0,in:v}});u==="auto"&&!ne.muiSupportAuto&&(b=void 0);const Re=k||(p?ee(q(p)).body:void 0),[re,{slots:Ee,slotProps:Te,...ke}]=V("root",{ref:o,elementType:qe,externalForwardedProps:{...E,...D},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:w.backdrop},slotProps:{backdrop:Ve(typeof c.backdrop=="function"?c.backdrop(L):c.backdrop,{invisible:!0})},container:Re,open:v},ownerState:L,className:K(A.root,C)}),[Le,Oe]=V("paper",{ref:m,className:A.paper,elementType:we,externalForwardedProps:E,shouldForwardComponentProp:!0,additionalProps:{elevation:S,style:Y?void 0:{opacity:0}},ownerState:L});return N.jsx(re,{...ke,...!Se(re)&&{slots:Ee,slotProps:Te,disableScrollLock:I},children:N.jsx(ne,{...Ie,timeout:b,children:N.jsx(Le,{...Oe,children:y})})})});function Xe(e){return X("MuiMenu",e)}J("MuiMenu",["root","paper","list"]);const Ye={vertical:"top",horizontal:"right"},Qe={vertical:"top",horizontal:"left"},Ze=e=>{const{classes:t}=e;return se({root:["root"],paper:["paper"],list:["list"]},Xe,t)},et=j(Je,{shouldForwardProp:e=>Ce(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),tt=j(we,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),ot=j(Be,{name:"MuiMenu",slot:"List"})({outline:0}),pt=l.forwardRef(function(t,o){const i=oe({props:t,name:"MuiMenu"}),{autoFocus:h=!0,children:p,className:a,disableAutoFocusItem:s=!1,MenuListProps:n={},onClose:y,open:C,PaperProps:k={},PopoverClasses:S,transitionDuration:d="auto",TransitionProps:{onEntering:v,...O}={},variant:w="selectedMenu",slots:c={},slotProps:P={},...r}=i,u=$e(),f={...i,autoFocus:h,disableAutoFocusItem:s,MenuListProps:n,onEntering:v,PaperProps:k,transitionDuration:d,TransitionProps:O,variant:w},I=Ze(f),D=h&&!s&&C,m=l.useRef(null),L=(b,E)=>{m.current&&m.current.adjustStyleForScrollbar(b,{direction:u?"rtl":"ltr"}),v&&v(b,E)},A=b=>{b.key==="Tab"&&(b.preventDefault(),y&&y(b,"tabKeyDown"))};let F=-1;l.Children.map(p,(b,E)=>{l.isValidElement(b)&&(b.props.disabled||(w==="selectedMenu"&&b.props.selected||F===-1)&&(F=E))});const $={slots:c,slotProps:{list:n,transition:O,paper:k,...P}},B=Ne({elementType:c.root,externalSlotProps:P.root,ownerState:f,className:[I.root,a]}),[Y,G]=V("paper",{className:I.paper,elementType:tt,externalForwardedProps:$,shouldForwardComponentProp:!0,ownerState:f}),[R,Q]=V("list",{className:K(I.list,n.className),elementType:ot,shouldForwardComponentProp:!0,externalForwardedProps:$,getSlotProps:b=>({...b,onKeyDown:E=>{A(E),b.onKeyDown?.(E)}}),ownerState:f}),_=typeof $.slotProps.transition=="function"?$.slotProps.transition(f):$.slotProps.transition;return N.jsx(et,{onClose:y,anchorOrigin:{vertical:"bottom",horizontal:u?"right":"left"},transformOrigin:u?Ye:Qe,slots:{root:c.root,paper:Y,backdrop:c.backdrop,...c.transition&&{transition:c.transition}},slotProps:{root:B,paper:G,backdrop:typeof P.backdrop=="function"?P.backdrop(f):P.backdrop,transition:{..._,onEntering:(...b)=>{L(...b),_?.onEntering?.(...b)}}},open:C,ref:o,transitionDuration:d,ownerState:f,...r,classes:S,children:N.jsx(R,{actions:m,autoFocus:h&&(F===-1||s),autoFocusItem:D,variant:w,...Q,children:p})})});function st(e){return X("MuiMenuItem",e)}const W=J("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),nt=(e,t)=>{const{ownerState:o}=e;return[t.root,o.dense&&t.dense,o.divider&&t.divider,!o.disableGutters&&t.gutters]},rt=e=>{const{disabled:t,dense:o,divider:i,disableGutters:h,selected:p,classes:a}=e,n=se({root:["root",o&&"dense",t&&"disabled",!h&&"gutters",i&&"divider",p&&"selected"]},st,a);return{...a,...n}},it=j(Ae,{shouldForwardProp:e=>Ce(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:nt})(He(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${W.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${W.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${W.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${W.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${W.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${me.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${me.inset}`]:{marginLeft:52},[`& .${fe.root}`]:{marginTop:0,marginBottom:0},[`& .${fe.inset}`]:{paddingLeft:36},[`& .${ge.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${ge.root} svg`]:{fontSize:"1.25rem"}}}]}))),dt=l.forwardRef(function(t,o){const i=oe({props:t,name:"MuiMenuItem"}),{autoFocus:h=!1,component:p="li",dense:a=!1,divider:s=!1,disableGutters:n=!1,focusVisibleClassName:y,role:C="menuitem",tabIndex:k,className:S,...d}=i,v=l.useContext(de),O=l.useMemo(()=>({dense:a||v.dense||!1,disableGutters:n}),[v.dense,a,n]),w=l.useRef(null);Pe(()=>{h&&w.current&&w.current.focus()},[h]);const c={...i,dense:O.dense,divider:s,disableGutters:n},P=rt(i),r=xe(w,o);let u;return i.disabled||(u=k!==void 0?k:-1),N.jsx(de.Provider,{value:O,children:N.jsx(it,{ref:r,role:C,tabIndex:u,component:p,focusVisibleClassName:K(P.focusVisible,y),className:K(P.root,S),...d,ownerState:c,classes:P})})});export{dt as M,pt as a,ut as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ax as A,r as d,ay as be,aF as ge,aa as V,av as se,j as M,aG as _,aW as Ee,q as ie,s as ae,w as ce,a7 as K,A as G,x as X,H as le,aw as ee,aB as xe,aX as ye,J as Re}from"./index-CPPmFTED.js";function te(...e){return e.reduce((t,o)=>o==null?t:function(...s){t.apply(this,s),o.apply(this,s)},()=>{})}function W(e){return A(e).defaultView||window}const Te={entering:{opacity:1},entered:{opacity:1}},ve=d.forwardRef(function(t,o){const n=be(),s={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:r,appear:i=!0,children:c,easing:f,in:E,onEnter:v,onEntered:g,onEntering:R,onExit:b,onExited:p,onExiting:I,style:x,timeout:T=s,TransitionComponent:P=ge,...a}=t,h=d.useRef(null),w=V(h,se(c),o),k=m=>u=>{if(m){const l=h.current;u===void 0?m(l):m(l,u)}},y=k(R),C=k((m,u)=>{Ee(m);const l=_({style:x,timeout:T,easing:f},{mode:"enter"});m.style.webkitTransition=n.transitions.create("opacity",l),m.style.transition=n.transitions.create("opacity",l),v&&v(m,u)}),S=k(g),N=k(I),F=k(m=>{const u=_({style:x,timeout:T,easing:f},{mode:"exit"});m.style.webkitTransition=n.transitions.create("opacity",u),m.style.transition=n.transitions.create("opacity",u),b&&b(m)}),z=k(p),D=m=>{r&&r(h.current,m)};return M.jsx(P,{appear:i,in:E,nodeRef:h,onEnter:C,onEntered:S,onEntering:y,onExit:F,onExited:z,onExiting:N,addEndListener:D,timeout:T,...a,children:(m,{ownerState:u,...l})=>d.cloneElement(c,{style:{opacity:0,visibility:m==="exited"&&!E?"hidden":void 0,...Te[m],...x,...c.props.style},ref:w,...l})})});function Pe(e){return ie("MuiBackdrop",e)}ae("MuiBackdrop",["root","invisible"]);const ke=e=>{const{classes:t,invisible:o}=e;return le({root:["root",o&&"invisible"]},Pe,t)},we=X("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Ce=d.forwardRef(function(t,o){const n=ce({props:t,name:"MuiBackdrop"}),{children:s,className:r,component:i="div",invisible:c=!1,open:f,components:E={},componentsProps:v={},slotProps:g={},slots:R={},TransitionComponent:b,transitionDuration:p,...I}=n,x={...n,component:i,invisible:c},T=ke(x),P={transition:b,root:E.Root,...R},a={...v,...g},h={component:i,slots:P,slotProps:a},[w,k]=K("root",{elementType:we,externalForwardedProps:h,className:G(T.root,r),ownerState:x}),[y,C]=K("transition",{elementType:ve,externalForwardedProps:h,ownerState:x});return M.jsx(y,{in:f,timeout:p,...I,...C,children:M.jsx(w,{"aria-hidden":!0,...k,classes:T,ref:o,children:s})})});function Se(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Ie(e){const t=A(e);return t.body===e?W(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function L(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ne(e){return parseInt(W(e).getComputedStyle(e).paddingRight,10)||0}function Me(e){const o=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return o||n}function oe(e,t,o,n,s){const r=[t,o,...n];[].forEach.call(e.children,i=>{const c=!r.includes(i),f=!Me(i);c&&f&&L(i,s)})}function Y(e,t){let o=-1;return e.some((n,s)=>t(n)?(o=s,!0):!1),o}function Ne(e,t){const o=[],n=e.container;if(!t.disableScrollLock){if(Ie(n)){const i=Se(W(n));o.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${ne(n)+i}px`;const c=A(n).querySelectorAll(".mui-fixed");[].forEach.call(c,f=>{o.push({value:f.style.paddingRight,property:"padding-right",el:f}),f.style.paddingRight=`${ne(f)+i}px`})}let r;if(n.parentNode instanceof DocumentFragment)r=A(n).body;else{const i=n.parentElement,c=W(n);r=i?.nodeName==="HTML"&&c.getComputedStyle(i).overflowY==="scroll"?i:n}o.push({value:r.style.overflow,property:"overflow",el:r},{value:r.style.overflowX,property:"overflow-x",el:r},{value:r.style.overflowY,property:"overflow-y",el:r}),r.style.overflow="hidden"}return()=>{o.forEach(({value:r,el:i,property:c})=>{r?i.style.setProperty(c,r):i.style.removeProperty(c)})}}function Fe(e){const t=[];return[].forEach.call(e.children,o=>{o.getAttribute("aria-hidden")==="true"&&t.push(o)}),t}class Ae{constructor(){this.modals=[],this.containers=[]}add(t,o){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&L(t.modalRef,!1);const s=Fe(o);oe(o,t.mount,t.modalRef,s,!0);const r=Y(this.containers,i=>i.container===o);return r!==-1?(this.containers[r].modals.push(t),n):(this.containers.push({modals:[t],container:o,restore:null,hiddenSiblings:s}),n)}mount(t,o){const n=Y(this.containers,r=>r.modals.includes(t)),s=this.containers[n];s.restore||(s.restore=Ne(s,o))}remove(t,o=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const s=Y(this.containers,i=>i.modals.includes(t)),r=this.containers[s];if(r.modals.splice(r.modals.indexOf(t),1),this.modals.splice(n,1),r.modals.length===0)r.restore&&r.restore(),t.modalRef&&L(t.modalRef,o),oe(r.container,t.mount,t.modalRef,r.hiddenSiblings,!1),this.containers.splice(s,1);else{const i=r.modals[r.modals.length-1];i.modalRef&&L(i.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const Be=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Oe(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Le(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let o=t(`[name="${e.name}"]:checked`);return o||(o=t(`[name="${e.name}"]`)),o!==e}function De(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Le(e))}function He(e){const t=[],o=[];return Array.from(e.querySelectorAll(Be)).forEach((n,s)=>{const r=Oe(n);r===-1||!De(n)||(r===0?t.push(n):o.push({documentOrder:s,tabIndex:r,node:n}))}),o.sort((n,s)=>n.tabIndex===s.tabIndex?n.documentOrder-s.documentOrder:n.tabIndex-s.tabIndex).map(n=>n.node).concat(t)}function je(){return!0}function Ue(e){const{children:t,disableAutoFocus:o=!1,disableEnforceFocus:n=!1,disableRestoreFocus:s=!1,getTabbable:r=He,isEnabled:i=je,open:c}=e,f=d.useRef(!1),E=d.useRef(null),v=d.useRef(null),g=d.useRef(null),R=d.useRef(null),b=d.useRef(!1),p=d.useRef(null),I=V(se(t),p),x=d.useRef(null);d.useEffect(()=>{!c||!p.current||(b.current=!o)},[o,c]),d.useEffect(()=>{if(!c||!p.current)return;const a=A(p.current);return p.current.contains(a.activeElement)||(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),b.current&&p.current.focus()),()=>{s||(g.current&&g.current.focus&&(f.current=!0,g.current.focus()),g.current=null)}},[c]),d.useEffect(()=>{if(!c||!p.current)return;const a=A(p.current),h=y=>{x.current=y,!(n||!i()||y.key!=="Tab")&&a.activeElement===p.current&&y.shiftKey&&(f.current=!0,v.current&&v.current.focus())},w=()=>{const y=p.current;if(y===null)return;if(!a.hasFocus()||!i()||f.current){f.current=!1;return}if(y.contains(a.activeElement)||n&&a.activeElement!==E.current&&a.activeElement!==v.current)return;if(a.activeElement!==R.current)R.current=null;else if(R.current!==null)return;if(!b.current)return;let C=[];if((a.activeElement===E.current||a.activeElement===v.current)&&(C=r(p.current)),C.length>0){const S=!!(x.current?.shiftKey&&x.current?.key==="Tab"),N=C[0],F=C[C.length-1];typeof N!="string"&&typeof F!="string"&&(S?F.focus():N.focus())}else y.focus()};a.addEventListener("focusin",w),a.addEventListener("keydown",h,!0);const k=setInterval(()=>{a.activeElement&&a.activeElement.tagName==="BODY"&&w()},50);return()=>{clearInterval(k),a.removeEventListener("focusin",w),a.removeEventListener("keydown",h,!0)}},[o,n,s,i,c,r]);const T=a=>{g.current===null&&(g.current=a.relatedTarget),b.current=!0,R.current=a.target;const h=t.props.onFocus;h&&h(a)},P=a=>{g.current===null&&(g.current=a.relatedTarget),b.current=!0};return M.jsxs(d.Fragment,{children:[M.jsx("div",{tabIndex:c?0:-1,onFocus:P,ref:E,"data-testid":"sentinelStart"}),d.cloneElement(t,{ref:I,onFocus:T}),M.jsx("div",{tabIndex:c?0:-1,onFocus:P,ref:v,"data-testid":"sentinelEnd"})]})}function Ke(e){return typeof e=="function"?e():e}function We(e){return e?e.props.hasOwnProperty("in"):!1}const re=()=>{},U=new Ae;function ze(e){const{container:t,disableEscapeKeyDown:o=!1,disableScrollLock:n=!1,closeAfterTransition:s=!1,onTransitionEnter:r,onTransitionExited:i,children:c,onClose:f,open:E,rootRef:v}=e,g=d.useRef({}),R=d.useRef(null),b=d.useRef(null),p=V(b,v),[I,x]=d.useState(!E),T=We(c);let P=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(P=!1);const a=()=>A(R.current),h=()=>(g.current.modalRef=b.current,g.current.mount=R.current,g.current),w=()=>{U.mount(h(),{disableScrollLock:n}),b.current&&(b.current.scrollTop=0)},k=ee(()=>{const u=Ke(t)||a().body;U.add(h(),u),b.current&&w()}),y=()=>U.isTopModal(h()),C=ee(u=>{R.current=u,u&&(E&&y()?w():b.current&&L(b.current,P))}),S=d.useCallback(()=>{U.remove(h(),P)},[P]);d.useEffect(()=>()=>{S()},[S]),d.useEffect(()=>{E?k():(!T||!s)&&S()},[E,S,T,s,k]);const N=u=>l=>{u.onKeyDown?.(l),!(l.key!=="Escape"||l.which===229||!y())&&(o||(l.stopPropagation(),f&&f(l,"escapeKeyDown")))},F=u=>l=>{u.onClick?.(l),l.target===l.currentTarget&&f&&f(l,"backdropClick")};return{getRootProps:(u={})=>{const l=xe(e);delete l.onTransitionEnter,delete l.onTransitionExited;const H={...l,...u};return{role:"presentation",...H,onKeyDown:N(H),ref:p}},getBackdropProps:(u={})=>{const l=u;return{"aria-hidden":!0,...l,onClick:F(l),open:E}},getTransitionProps:()=>{const u=()=>{x(!1),r&&r()},l=()=>{x(!0),i&&i(),s&&S()};return{onEnter:te(u,c?.props.onEnter??re),onExited:te(l,c?.props.onExited??re)}},rootRef:p,portalRef:C,isTopModal:y,exited:I,hasTransition:T}}function $e(e){return ie("MuiModal",e)}ae("MuiModal",["root","hidden","backdrop"]);const qe=e=>{const{open:t,exited:o,classes:n}=e;return le({root:["root",!t&&o&&"hidden"],backdrop:["backdrop"]},$e,n)},Ye=X("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,!o.open&&o.exited&&t.hidden]}})(Re(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),Ge=X(Ce,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Xe=d.forwardRef(function(t,o){const n=ce({name:"MuiModal",props:t}),{BackdropComponent:s=Ge,BackdropProps:r,classes:i,className:c,closeAfterTransition:f=!1,children:E,container:v,component:g,components:R={},componentsProps:b={},disableAutoFocus:p=!1,disableEnforceFocus:I=!1,disableEscapeKeyDown:x=!1,disablePortal:T=!1,disableRestoreFocus:P=!1,disableScrollLock:a=!1,hideBackdrop:h=!1,keepMounted:w=!1,onClose:k,onTransitionEnter:y,onTransitionExited:C,open:S,slotProps:N={},slots:F={},theme:z,...D}=n,m={...n,closeAfterTransition:f,disableAutoFocus:p,disableEnforceFocus:I,disableEscapeKeyDown:x,disablePortal:T,disableRestoreFocus:P,disableScrollLock:a,hideBackdrop:h,keepMounted:w},{getRootProps:u,getBackdropProps:l,getTransitionProps:H,portalRef:de,isTopModal:ue,exited:J,hasTransition:Q}=ze({...m,rootRef:o}),B={...m,exited:J},$=qe(B),j={};if(E.props.tabIndex===void 0&&(j.tabIndex="-1"),Q){const{onEnter:O,onExited:q}=H();j.onEnter=O,j.onExited=q}const Z={slots:{root:R.Root,backdrop:R.Backdrop,...F},slotProps:{...b,...N}},[fe,pe]=K("root",{ref:o,elementType:Ye,externalForwardedProps:{...Z,...D,component:g},getSlotProps:u,ownerState:B,className:G(c,$?.root,!B.open&&B.exited&&$?.hidden)}),[he,me]=K("backdrop",{ref:r?.ref,elementType:s,externalForwardedProps:Z,shouldForwardComponentProp:!0,additionalProps:r,getSlotProps:O=>l({...O,onClick:q=>{O?.onClick&&O.onClick(q)}}),className:G(r?.className,$?.backdrop),ownerState:B});return!w&&!S&&(!Q||J)?null:M.jsx(ye,{ref:de,container:v,disablePortal:T,children:M.jsxs(fe,{...pe,children:[!h&&s?M.jsx(he,{...me}):null,M.jsx(Ue,{disableEnforceFocus:I,disableAutoFocus:p,disableRestoreFocus:P,isEnabled:ue,open:S,children:d.cloneElement(E,j)})]})})});export{Ce as B,ve as F,Xe as M,Se as g,W as o};
|
|
1
|
+
import{ax as A,r as d,ay as be,aF as ge,aa as V,av as se,j as M,aG as _,aW as Ee,q as ie,s as ae,w as ce,a7 as K,A as G,x as X,H as le,aw as ee,aB as xe,aX as ye,J as Re}from"./index-BS_9W4Tt.js";function te(...e){return e.reduce((t,o)=>o==null?t:function(...s){t.apply(this,s),o.apply(this,s)},()=>{})}function W(e){return A(e).defaultView||window}const Te={entering:{opacity:1},entered:{opacity:1}},ve=d.forwardRef(function(t,o){const n=be(),s={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:r,appear:i=!0,children:c,easing:f,in:E,onEnter:v,onEntered:g,onEntering:R,onExit:b,onExited:p,onExiting:I,style:x,timeout:T=s,TransitionComponent:P=ge,...a}=t,h=d.useRef(null),w=V(h,se(c),o),k=m=>u=>{if(m){const l=h.current;u===void 0?m(l):m(l,u)}},y=k(R),C=k((m,u)=>{Ee(m);const l=_({style:x,timeout:T,easing:f},{mode:"enter"});m.style.webkitTransition=n.transitions.create("opacity",l),m.style.transition=n.transitions.create("opacity",l),v&&v(m,u)}),S=k(g),N=k(I),F=k(m=>{const u=_({style:x,timeout:T,easing:f},{mode:"exit"});m.style.webkitTransition=n.transitions.create("opacity",u),m.style.transition=n.transitions.create("opacity",u),b&&b(m)}),z=k(p),D=m=>{r&&r(h.current,m)};return M.jsx(P,{appear:i,in:E,nodeRef:h,onEnter:C,onEntered:S,onEntering:y,onExit:F,onExited:z,onExiting:N,addEndListener:D,timeout:T,...a,children:(m,{ownerState:u,...l})=>d.cloneElement(c,{style:{opacity:0,visibility:m==="exited"&&!E?"hidden":void 0,...Te[m],...x,...c.props.style},ref:w,...l})})});function Pe(e){return ie("MuiBackdrop",e)}ae("MuiBackdrop",["root","invisible"]);const ke=e=>{const{classes:t,invisible:o}=e;return le({root:["root",o&&"invisible"]},Pe,t)},we=X("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Ce=d.forwardRef(function(t,o){const n=ce({props:t,name:"MuiBackdrop"}),{children:s,className:r,component:i="div",invisible:c=!1,open:f,components:E={},componentsProps:v={},slotProps:g={},slots:R={},TransitionComponent:b,transitionDuration:p,...I}=n,x={...n,component:i,invisible:c},T=ke(x),P={transition:b,root:E.Root,...R},a={...v,...g},h={component:i,slots:P,slotProps:a},[w,k]=K("root",{elementType:we,externalForwardedProps:h,className:G(T.root,r),ownerState:x}),[y,C]=K("transition",{elementType:ve,externalForwardedProps:h,ownerState:x});return M.jsx(y,{in:f,timeout:p,...I,...C,children:M.jsx(w,{"aria-hidden":!0,...k,classes:T,ref:o,children:s})})});function Se(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Ie(e){const t=A(e);return t.body===e?W(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function L(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ne(e){return parseInt(W(e).getComputedStyle(e).paddingRight,10)||0}function Me(e){const o=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return o||n}function oe(e,t,o,n,s){const r=[t,o,...n];[].forEach.call(e.children,i=>{const c=!r.includes(i),f=!Me(i);c&&f&&L(i,s)})}function Y(e,t){let o=-1;return e.some((n,s)=>t(n)?(o=s,!0):!1),o}function Ne(e,t){const o=[],n=e.container;if(!t.disableScrollLock){if(Ie(n)){const i=Se(W(n));o.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${ne(n)+i}px`;const c=A(n).querySelectorAll(".mui-fixed");[].forEach.call(c,f=>{o.push({value:f.style.paddingRight,property:"padding-right",el:f}),f.style.paddingRight=`${ne(f)+i}px`})}let r;if(n.parentNode instanceof DocumentFragment)r=A(n).body;else{const i=n.parentElement,c=W(n);r=i?.nodeName==="HTML"&&c.getComputedStyle(i).overflowY==="scroll"?i:n}o.push({value:r.style.overflow,property:"overflow",el:r},{value:r.style.overflowX,property:"overflow-x",el:r},{value:r.style.overflowY,property:"overflow-y",el:r}),r.style.overflow="hidden"}return()=>{o.forEach(({value:r,el:i,property:c})=>{r?i.style.setProperty(c,r):i.style.removeProperty(c)})}}function Fe(e){const t=[];return[].forEach.call(e.children,o=>{o.getAttribute("aria-hidden")==="true"&&t.push(o)}),t}class Ae{constructor(){this.modals=[],this.containers=[]}add(t,o){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&L(t.modalRef,!1);const s=Fe(o);oe(o,t.mount,t.modalRef,s,!0);const r=Y(this.containers,i=>i.container===o);return r!==-1?(this.containers[r].modals.push(t),n):(this.containers.push({modals:[t],container:o,restore:null,hiddenSiblings:s}),n)}mount(t,o){const n=Y(this.containers,r=>r.modals.includes(t)),s=this.containers[n];s.restore||(s.restore=Ne(s,o))}remove(t,o=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const s=Y(this.containers,i=>i.modals.includes(t)),r=this.containers[s];if(r.modals.splice(r.modals.indexOf(t),1),this.modals.splice(n,1),r.modals.length===0)r.restore&&r.restore(),t.modalRef&&L(t.modalRef,o),oe(r.container,t.mount,t.modalRef,r.hiddenSiblings,!1),this.containers.splice(s,1);else{const i=r.modals[r.modals.length-1];i.modalRef&&L(i.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const Be=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Oe(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Le(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let o=t(`[name="${e.name}"]:checked`);return o||(o=t(`[name="${e.name}"]`)),o!==e}function De(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Le(e))}function He(e){const t=[],o=[];return Array.from(e.querySelectorAll(Be)).forEach((n,s)=>{const r=Oe(n);r===-1||!De(n)||(r===0?t.push(n):o.push({documentOrder:s,tabIndex:r,node:n}))}),o.sort((n,s)=>n.tabIndex===s.tabIndex?n.documentOrder-s.documentOrder:n.tabIndex-s.tabIndex).map(n=>n.node).concat(t)}function je(){return!0}function Ue(e){const{children:t,disableAutoFocus:o=!1,disableEnforceFocus:n=!1,disableRestoreFocus:s=!1,getTabbable:r=He,isEnabled:i=je,open:c}=e,f=d.useRef(!1),E=d.useRef(null),v=d.useRef(null),g=d.useRef(null),R=d.useRef(null),b=d.useRef(!1),p=d.useRef(null),I=V(se(t),p),x=d.useRef(null);d.useEffect(()=>{!c||!p.current||(b.current=!o)},[o,c]),d.useEffect(()=>{if(!c||!p.current)return;const a=A(p.current);return p.current.contains(a.activeElement)||(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),b.current&&p.current.focus()),()=>{s||(g.current&&g.current.focus&&(f.current=!0,g.current.focus()),g.current=null)}},[c]),d.useEffect(()=>{if(!c||!p.current)return;const a=A(p.current),h=y=>{x.current=y,!(n||!i()||y.key!=="Tab")&&a.activeElement===p.current&&y.shiftKey&&(f.current=!0,v.current&&v.current.focus())},w=()=>{const y=p.current;if(y===null)return;if(!a.hasFocus()||!i()||f.current){f.current=!1;return}if(y.contains(a.activeElement)||n&&a.activeElement!==E.current&&a.activeElement!==v.current)return;if(a.activeElement!==R.current)R.current=null;else if(R.current!==null)return;if(!b.current)return;let C=[];if((a.activeElement===E.current||a.activeElement===v.current)&&(C=r(p.current)),C.length>0){const S=!!(x.current?.shiftKey&&x.current?.key==="Tab"),N=C[0],F=C[C.length-1];typeof N!="string"&&typeof F!="string"&&(S?F.focus():N.focus())}else y.focus()};a.addEventListener("focusin",w),a.addEventListener("keydown",h,!0);const k=setInterval(()=>{a.activeElement&&a.activeElement.tagName==="BODY"&&w()},50);return()=>{clearInterval(k),a.removeEventListener("focusin",w),a.removeEventListener("keydown",h,!0)}},[o,n,s,i,c,r]);const T=a=>{g.current===null&&(g.current=a.relatedTarget),b.current=!0,R.current=a.target;const h=t.props.onFocus;h&&h(a)},P=a=>{g.current===null&&(g.current=a.relatedTarget),b.current=!0};return M.jsxs(d.Fragment,{children:[M.jsx("div",{tabIndex:c?0:-1,onFocus:P,ref:E,"data-testid":"sentinelStart"}),d.cloneElement(t,{ref:I,onFocus:T}),M.jsx("div",{tabIndex:c?0:-1,onFocus:P,ref:v,"data-testid":"sentinelEnd"})]})}function Ke(e){return typeof e=="function"?e():e}function We(e){return e?e.props.hasOwnProperty("in"):!1}const re=()=>{},U=new Ae;function ze(e){const{container:t,disableEscapeKeyDown:o=!1,disableScrollLock:n=!1,closeAfterTransition:s=!1,onTransitionEnter:r,onTransitionExited:i,children:c,onClose:f,open:E,rootRef:v}=e,g=d.useRef({}),R=d.useRef(null),b=d.useRef(null),p=V(b,v),[I,x]=d.useState(!E),T=We(c);let P=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(P=!1);const a=()=>A(R.current),h=()=>(g.current.modalRef=b.current,g.current.mount=R.current,g.current),w=()=>{U.mount(h(),{disableScrollLock:n}),b.current&&(b.current.scrollTop=0)},k=ee(()=>{const u=Ke(t)||a().body;U.add(h(),u),b.current&&w()}),y=()=>U.isTopModal(h()),C=ee(u=>{R.current=u,u&&(E&&y()?w():b.current&&L(b.current,P))}),S=d.useCallback(()=>{U.remove(h(),P)},[P]);d.useEffect(()=>()=>{S()},[S]),d.useEffect(()=>{E?k():(!T||!s)&&S()},[E,S,T,s,k]);const N=u=>l=>{u.onKeyDown?.(l),!(l.key!=="Escape"||l.which===229||!y())&&(o||(l.stopPropagation(),f&&f(l,"escapeKeyDown")))},F=u=>l=>{u.onClick?.(l),l.target===l.currentTarget&&f&&f(l,"backdropClick")};return{getRootProps:(u={})=>{const l=xe(e);delete l.onTransitionEnter,delete l.onTransitionExited;const H={...l,...u};return{role:"presentation",...H,onKeyDown:N(H),ref:p}},getBackdropProps:(u={})=>{const l=u;return{"aria-hidden":!0,...l,onClick:F(l),open:E}},getTransitionProps:()=>{const u=()=>{x(!1),r&&r()},l=()=>{x(!0),i&&i(),s&&S()};return{onEnter:te(u,c?.props.onEnter??re),onExited:te(l,c?.props.onExited??re)}},rootRef:p,portalRef:C,isTopModal:y,exited:I,hasTransition:T}}function $e(e){return ie("MuiModal",e)}ae("MuiModal",["root","hidden","backdrop"]);const qe=e=>{const{open:t,exited:o,classes:n}=e;return le({root:["root",!t&&o&&"hidden"],backdrop:["backdrop"]},$e,n)},Ye=X("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,!o.open&&o.exited&&t.hidden]}})(Re(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),Ge=X(Ce,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Xe=d.forwardRef(function(t,o){const n=ce({name:"MuiModal",props:t}),{BackdropComponent:s=Ge,BackdropProps:r,classes:i,className:c,closeAfterTransition:f=!1,children:E,container:v,component:g,components:R={},componentsProps:b={},disableAutoFocus:p=!1,disableEnforceFocus:I=!1,disableEscapeKeyDown:x=!1,disablePortal:T=!1,disableRestoreFocus:P=!1,disableScrollLock:a=!1,hideBackdrop:h=!1,keepMounted:w=!1,onClose:k,onTransitionEnter:y,onTransitionExited:C,open:S,slotProps:N={},slots:F={},theme:z,...D}=n,m={...n,closeAfterTransition:f,disableAutoFocus:p,disableEnforceFocus:I,disableEscapeKeyDown:x,disablePortal:T,disableRestoreFocus:P,disableScrollLock:a,hideBackdrop:h,keepMounted:w},{getRootProps:u,getBackdropProps:l,getTransitionProps:H,portalRef:de,isTopModal:ue,exited:J,hasTransition:Q}=ze({...m,rootRef:o}),B={...m,exited:J},$=qe(B),j={};if(E.props.tabIndex===void 0&&(j.tabIndex="-1"),Q){const{onEnter:O,onExited:q}=H();j.onEnter=O,j.onExited=q}const Z={slots:{root:R.Root,backdrop:R.Backdrop,...F},slotProps:{...b,...N}},[fe,pe]=K("root",{ref:o,elementType:Ye,externalForwardedProps:{...Z,...D,component:g},getSlotProps:u,ownerState:B,className:G(c,$?.root,!B.open&&B.exited&&$?.hidden)}),[he,me]=K("backdrop",{ref:r?.ref,elementType:s,externalForwardedProps:Z,shouldForwardComponentProp:!0,additionalProps:r,getSlotProps:O=>l({...O,onClick:q=>{O?.onClick&&O.onClick(q)}}),className:G(r?.className,$?.backdrop),ownerState:B});return!w&&!S&&(!Q||J)?null:M.jsx(ye,{ref:de,container:v,disablePortal:T,children:M.jsxs(fe,{...pe,children:[!h&&s?M.jsx(he,{...me}):null,M.jsx(Ue,{disableEnforceFocus:I,disableAutoFocus:p,disableRestoreFocus:P,isEnabled:ue,open:S,children:d.cloneElement(E,j)})]})})});export{Ce as B,ve as F,Xe as M,Se as g,W as o};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{R as c,Z as b,D as k,W as I,j as e,r as N,_ as z,$ as q,B as o,T as d,I as v,a0 as $,a1 as T,a2 as W,a3 as B,y as M,e as U,f as C,a4 as L,V as Q,a5 as R}from"./index-
|
|
1
|
+
import{R as c,Z as b,D as k,W as I,j as e,r as N,_ as z,$ as q,B as o,T as d,I as v,a0 as $,a1 as T,a2 as W,a3 as B,y as M,e as U,f as C,a4 as L,V as Q,a5 as R}from"./index-BS_9W4Tt.js";import{p as P,C as _,I as w}from"./index.es7-Lspe9b-6.js";import"./index.modern-J74LOUay.js";import"./DialogTitle-Df6dToBj.js";import"./Modal-BbVeNLvO.js";function E({queryName:n,annotations:r,resourceUri:t}){const[a,m]=c.useState(),[f,i]=c.useState(!1),{packageName:j,projectName:l,versionId:p,modelPath:y}=b(t),{apiClients:u}=k(),{data:x,isSuccess:g,isLoading:h}=I({queryKey:["namedQueryResult",t,n],queryFn:()=>u.queryResults.executeQuery(l,j,y,void 0,void 0,n,p),enabled:!0});return N.useEffect(()=>{if(r&&r.length>0){const s=r.map(S=>`// ${S}`).join(`
|
|
2
2
|
`);z(s,"typescript").then(S=>{m(S)})}},[r]),e.jsxs(q,{children:[a&&e.jsx(o,{sx:{marginBottom:"16px"},children:e.jsx(d,{fontSize:"12px",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:e.jsx("div",{className:"content",dangerouslySetInnerHTML:{__html:a}})})}),e.jsxs(o,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"8px"},children:[e.jsx(d,{variant:"body2",sx:{fontSize:"15px",fontWeight:"600",color:"#495057",padding:"8px 16px",backgroundColor:"#f8f9fa",borderRadius:"6px",border:"1px solid #e9ecef"},children:n}),e.jsx(v,{sx:{backgroundColor:"rgba(255, 255, 255, 0.9)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"},width:"32px",height:"32px"},onClick:()=>i(!0),children:e.jsx($,{sx:{fontSize:"18px",color:"#666666"}})})]}),e.jsxs(T,{sx:{position:"relative"},children:[h&&e.jsx(o,{sx:{padding:"20px",textAlign:"center"},children:e.jsx(d,{children:"Loading results..."})}),g&&x?.data?.result&&e.jsx(W,{result:x.data.result,minHeight:300,maxHeight:600,hideToggle:!1})]}),e.jsx(P,{open:f,onClose:()=>i(!1),result:x?.data?.result||"",title:`Query: ${n}`})]})}function F({onChange:n,resourceUri:r}){const{modelPath:t}=b(r),{data:a,isError:m,isLoading:f,error:i}=B(r),[j,l]=c.useState(!1),[p,y]=c.useState(),[u,x]=c.useState(0);if(f)return e.jsx(M,{text:"Fetching Model..."});if(m)return console.log("error",i),e.jsx(U,{error:i,context:`Model > ${t}`});const g=s=>{y(s),n&&n(s)},h=s=>{x(s)};return e.jsx(e.Fragment,{children:e.jsxs(o,{sx:{position:"relative",maxWidth:"1200px",margin:"0 auto",paddingTop:"24px"},children:[Array.isArray(a?.sourceInfos)&&a.sourceInfos.length>0&&e.jsxs(C,{spacing:2,component:"section",children:[e.jsx(o,{sx:{padding:"0 0 16px 0"},children:e.jsx(d,{variant:"h1",sx:{fontSize:"28px",fontWeight:"600",color:"#1a1a1a",marginBottom:"8px",marginTop:"0",paddingLeft:"0"},children:"Sources"})}),e.jsx(L,{data:a,onChange:g,onSourceChange:h,existingQuery:p,initialSelectedSourceIndex:u,resourceUri:r}),e.jsx(v,{sx:{position:"absolute",top:"90px",right:"4px",backgroundColor:"rgba(255, 255, 255, 0.9)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"},width:"32px",height:"32px",zIndex:2},onClick:()=>l(!0),children:e.jsx($,{sx:{fontSize:"18px",color:"#666666"}})})]}),a?.queries?.length>0&&e.jsxs(C,{spacing:2,component:"section",sx:{marginTop:"24px"},children:[e.jsx(o,{sx:{padding:"0 0 16px 0"},children:e.jsx(d,{variant:"h2",sx:{fontSize:"24px",fontWeight:"600",color:"#1a1a1a",marginBottom:"0",marginTop:"8px",paddingLeft:"0"},children:"Named Queries"})}),a.queries.map(s=>e.jsx(E,{queryName:s.name,annotations:s.annotations,resourceUri:r},s.name))]}),e.jsx(_,{open:j,onClose:()=>l(!1),resourceUri:r,data:a,title:`Model: ${t.split("/").pop()}`,existingQuery:p,initialSelectedSourceIndex:u,onChange:g,onSourceChange:h})]})})}function Z(){const n=Q(),r=n["*"];if(!n.projectName)return e.jsx("div",{children:e.jsx("h2",{children:"Missing project name"})});if(!n.packageName)return e.jsx("div",{children:e.jsx("h2",{children:"Missing package name"})});const t=R({projectName:n.projectName,packageName:n.packageName,modelPath:r});return r?.endsWith(".malloy")?e.jsx(F,{resourceUri:t}):r?.endsWith(".malloynb")?e.jsx(w,{resourceUri:t}):e.jsx("div",{children:e.jsxs("h2",{children:["Unrecognized file type: ",r]})})}export{Z as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as n,w as I,j as r,x as p,A as x,H as f,J as g,c as u}from"./index-
|
|
1
|
+
import{r as n,w as I,j as r,x as p,A as x,H as f,J as g,c as u}from"./index-BS_9W4Tt.js";import{g as L}from"./MenuItem-BWMnNgqP.js";import{L as d}from"./listItemTextClasses-D0rI_qhy.js";const v=t=>{const{alignItems:s,classes:o}=t;return f({root:["root",s==="flex-start"&&"alignItemsFlexStart"]},L,o)},S=p("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:o}=t;return[s.root,o.alignItems==="flex-start"&&s.alignItemsFlexStart]}})(g(({theme:t})=>({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),j=n.forwardRef(function(s,o){const e=I({props:s,name:"MuiListItemIcon"}),{className:i,...c}=e,l=n.useContext(d),a={...e,alignItems:l.alignItems},m=v(a);return r.jsx(S,{className:x(m.root,i),ownerState:a,ref:o,...c})}),w=u(r.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}));export{w as A,j as L};
|