@hot-updater/console 1.2.0-rc.40 → 1.2.0-rc.41
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/.output/nitro.json +1 -1
- package/.output/public/assets/{-native-builds-search-qeto9-fq.js → -native-builds-search-BFcW2mlI.js} +1 -1
- package/.output/public/assets/ChannelPicker-BQKoyxnf.js +1 -0
- package/.output/public/assets/{CompositeItem-B541MSYC.js → CompositeItem-B7uxFM46.js} +1 -1
- package/.output/public/assets/{ConsoleFeatureUnavailable-C6aryy7j.js → ConsoleFeatureUnavailable-B3VCINom.js} +1 -1
- package/.output/public/assets/EventDetails-CWiI1CXb.js +1 -0
- package/.output/public/assets/{InsightsPageHeader-D0Nxcccp.js → InsightsPageHeader-BjUAikRe.js} +1 -1
- package/.output/public/assets/{IosInstall-CgNa8B4v.js → IosInstall-B5IdjCP2.js} +1 -1
- package/.output/public/assets/{NativeBuildsNav-BxAmQr2E.js → NativeBuildsNav-BKdnlKMN.js} +1 -1
- package/.output/public/assets/{RelativeTime-CdQ86VoP.js → RelativeTime-5ZP9WlQ6.js} +1 -1
- package/.output/public/assets/{RolloutPercentageBadge-Cd1UNLL0.js → RolloutPercentageBadge-DCtG7c1o.js} +1 -1
- package/.output/public/assets/{RowReason-CEI-_T6G.js → RowReason-CXMCJ-Jc.js} +1 -1
- package/.output/public/assets/{SandboxBadge-CqGX5DiH.js → SandboxBadge-PM92jCk6.js} +1 -1
- package/.output/public/assets/{TargetDisplay-DMZHMgWk.js → TargetDisplay-DG_I3qln.js} +1 -1
- package/.output/public/assets/api-keys-CAVLgicI.js +1 -0
- package/.output/public/assets/{api-keys-B9XQLCZ8.js → api-keys-ztwXoKcj.js} +1 -1
- package/.output/public/assets/{index-D7PWINwc.js → index-Ck4fZq4M.js} +3 -3
- package/.output/public/assets/input-group-CIjTdxCW.js +1 -0
- package/.output/public/assets/insights-V3D8tYPQ.js +1 -0
- package/.output/public/assets/insights-fSY6n4k3.js +42 -0
- package/.output/public/assets/insights-osTmFzzR.js +2 -0
- package/.output/public/assets/{insights-search-DkovoDrZ.js → insights-search-CZtvD-Vf.js} +1 -1
- package/.output/public/assets/{insights_.distribution-DmeI9XZw.js → insights_.distribution-Cws8lYLC.js} +1 -1
- package/.output/public/assets/insights_.distribution-DpppHhaU.js +2 -0
- package/.output/public/assets/insights_.distribution-oIFSv2TC.js +1 -0
- package/.output/public/assets/{installations-ClsF2q6A.js → installations-Byojb0Rv.js} +2 -2
- package/.output/public/assets/installations-CFGDrY-W.js +1 -0
- package/.output/public/assets/installations-CcPrSZwW.js +1 -0
- package/.output/public/assets/native-builds-C4u6JvxV.js +2 -0
- package/.output/public/assets/native-builds-D9hoJd6W.js +1 -0
- package/.output/public/assets/native-builds-zwqucwx2.js +1 -0
- package/.output/public/assets/{native-builds_._buildId-DZqylSRq.js → native-builds_._buildId-CXx2xjoI.js} +1 -1
- package/.output/public/assets/native-builds_._buildId-DymsEZlO.js +2 -0
- package/.output/public/assets/native-builds_.devices-DF3g--dt.js +1 -0
- package/.output/public/assets/native-builds_.devices-QToUV8FB.js +2 -0
- package/.output/public/assets/remote-config-BIIj0Faf.js +1 -0
- package/.output/public/assets/remote-config-BJJAxy_g.js +6 -0
- package/.output/public/assets/{remote-config-r945bivi.js → remote-config-Dm1MCHDN.js} +1 -1
- package/.output/public/assets/rotate-ccw-tITIe0Bd.js +1 -0
- package/.output/public/assets/routes-9gxYg__u.js +1 -0
- package/.output/public/assets/{routes-DWjGfLRs.js → routes-CUsayL0T.js} +2 -2
- package/.output/public/assets/select-Bk52fOVX.js +1 -0
- package/.output/public/assets/styles-C1iqL6CR.css +2 -0
- package/.output/public/assets/switch-CI393qIT.js +1 -0
- package/.output/public/assets/useAnchoredPopupScrollLock-Cvx6CdPD.js +1 -0
- package/.output/server/{__23tanstack-start-server-fn-resolver-CSEErUrV.mjs → __23tanstack-start-server-fn-resolver-76SKGuoc.mjs} +58 -58
- package/.output/server/_libs/@base-ui/react+[...].mjs +3844 -3844
- package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +1 -1
- package/.output/server/_libs/_.mjs +1 -1
- package/.output/server/_ssr/{BundleIdDisplay-BfMtMws8.mjs → BundleIdDisplay-By3CbbRM.mjs} +2 -2
- package/.output/server/_ssr/{ChannelBadge-CyjOxlfr.mjs → ChannelBadge-CDup7l56.mjs} +3 -3
- package/.output/server/_ssr/ChannelPicker-Du2TmP3P.mjs +251 -0
- package/.output/server/_ssr/{ConsoleFeatureUnavailable-D5a8SXzu.mjs → ConsoleFeatureUnavailable-C6aGoKDE.mjs} +6 -6
- package/.output/server/_ssr/{EventDetails-XaXslOac.mjs → EventDetails-VbcnMnSs.mjs} +7 -7
- package/.output/server/_ssr/{HashValueDisplay-CtrIkPNM.mjs → HashValueDisplay-CnC2fHER.mjs} +2 -2
- package/.output/server/_ssr/{InsightsPageHeader-CK76Vycr.mjs → InsightsPageHeader-BuOanVZL.mjs} +7 -7
- package/.output/server/_ssr/{IosInstall-BD2HpMsh.mjs → IosInstall-BAFhW7Q9.mjs} +8 -8
- package/.output/server/_ssr/{NativeBuildsNav-DvFscYEN.mjs → NativeBuildsNav-BoTu4aLF.mjs} +3 -3
- package/.output/server/_ssr/{NotFoundPage-CQc5Envb.mjs → NotFoundPage-Bz05xF5Q.mjs} +2 -2
- package/.output/server/_ssr/{QrCode-VPGDhoTy.mjs → QrCode-DWshAW81.mjs} +2 -2
- package/.output/server/_ssr/{RelativeTime-D6qU9XeU.mjs → RelativeTime-D5kDQVn1.mjs} +3 -3
- package/.output/server/_ssr/{RolloutPercentageBadge-7HdtPPd8.mjs → RolloutPercentageBadge-Dwx7dEeQ.mjs} +3 -3
- package/.output/server/_ssr/{RowReason-CR2C_0d9.mjs → RowReason-pVOWQ7t5.mjs} +4 -4
- package/.output/server/_ssr/{SandboxBadge-HQv4waT2.mjs → SandboxBadge-DFbUYwhO.mjs} +2 -2
- package/.output/server/_ssr/{TargetDisplay-BQ3rf-jt.mjs → TargetDisplay-BtE5vntq.mjs} +3 -3
- package/.output/server/_ssr/{alert-dialog-DZfV4jo0.mjs → alert-dialog-tcfkkNUX.mjs} +1 -1
- package/.output/server/_ssr/{api-keys-tydhn1tu.mjs → api-keys-12_U0SQM.mjs} +9 -9
- package/.output/server/_ssr/{api-keys-DhgkyA5L.mjs → api-keys-Bm8uDp2u.mjs} +2 -2
- package/.output/server/_ssr/{api-keys-rpc-PnrzjW84.mjs → api-keys-rpc-BxkfToWI.mjs} +3 -3
- package/.output/server/_ssr/{api-rpc-D8qYGyez.mjs → api-rpc-TSnLWB7e.mjs} +16 -16
- package/.output/server/_ssr/{api-C3S89RIl.mjs → api-xOHZxbzu.mjs} +7 -7
- package/.output/server/_ssr/{auth-rpc-rMdoXrTW.mjs → auth-rpc-D3w54vsW.mjs} +4 -4
- package/.output/server/_ssr/{auth.server-YE2ZZC0j.mjs → auth.server-a2eP6q5P.mjs} +135 -23
- package/.output/server/_ssr/{badge-NON1cyRV.mjs → badge-DrfbN1n0.mjs} +1 -1
- package/.output/server/_ssr/{bundleActivity-CjE9yslP.mjs → bundleActivity-a-pEDiqu.mjs} +1 -1
- package/.output/server/_ssr/{card-CVw7zPaM.mjs → card-DEItjgKG.mjs} +1 -1
- package/.output/server/_ssr/{config.server-BYkojQAW.mjs → config.server-K8dd4dRv.mjs} +3 -3
- package/.output/server/_ssr/{console-access-CRyGs-sb.mjs → console-access-D-DHU4YH.mjs} +2 -2
- package/.output/server/_ssr/{console-features-api-DwbIx8oM.mjs → console-features-api-Chy2PrzZ.mjs} +5 -5
- package/.output/server/_ssr/{console-features-rpc-erZu7BIN.mjs → console-features-rpc-_31L0k1i.mjs} +3 -3
- package/.output/server/_ssr/{deviceProfileToken-Eeltr-o0.mjs → deviceProfileToken-xzDLfE0T.mjs} +1 -1
- package/.output/server/_ssr/{dialog-ZuUCxUNo.mjs → dialog-SAl1vP74.mjs} +1 -1
- package/.output/server/_ssr/{downloadBundle-DLkb7A7E.mjs → downloadBundle-C1KOnpiF.mjs} +1 -1
- package/.output/server/_ssr/{empty-4FbiMhrz.mjs → empty-opJc9Fjw.mjs} +2 -2
- package/.output/server/_ssr/{failureReports-Bd7CaadE.mjs → failureReports-BVufgM3l.mjs} +3 -3
- package/.output/server/_ssr/{field-B9YWRLoo.mjs → field-D6Y7zDZd.mjs} +2 -2
- package/.output/server/_ssr/{foldedPage-DrxWt5XS.mjs → foldedPage-CUjJqtlF.mjs} +1 -1
- package/.output/server/_ssr/{getBundleChildren-DA9zbUBD.mjs → getBundleChildren-CnOf4Frp.mjs} +1 -1
- package/.output/server/_ssr/{input-group-sETcyyLC.mjs → input-group-D2PvPRdm.mjs} +1 -1
- package/.output/server/_ssr/{insights-CkJWItoo.mjs → insights-Cro4cYp7.mjs} +2 -2
- package/.output/server/_ssr/{insights-api-9jE9dp-3.mjs → insights-api-BPyvQert.mjs} +5 -5
- package/.output/server/_ssr/{insights-BjtOex57.mjs → insights-dWeLneo1.mjs} +33 -186
- package/.output/server/_ssr/{insights-errors-BrToSfI9.mjs → insights-errors-DwUaDs0Z.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-lmcxwKb3.mjs → insights-failures-DGO2_3Vx.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-rpc-XxbDFtKo.mjs → insights-failures-rpc-D7M8-Et9.mjs} +8 -8
- package/.output/server/_ssr/{insights-recovery-Dhg3WGpC.mjs → insights-recovery-Cdg3Msrj.mjs} +1 -1
- package/.output/server/_ssr/{insights-recovery-rpc-CFeoyZEw.mjs → insights-recovery-rpc-BUMK4m4H.mjs} +5 -5
- package/.output/server/_ssr/{insights-rpc-TAS-cemx.mjs → insights-rpc-BZZ4U2Ll.mjs} +3 -3
- package/.output/server/_ssr/{insights-search-DL8LLP6s.mjs → insights-search-Czi553oN.mjs} +2 -2
- package/.output/server/_ssr/{insights-usage-gW3T5N6N.mjs → insights-usage-BVm7CDw9.mjs} +1 -1
- package/.output/server/_ssr/{insights-usage-rpc-DGSVT5eB.mjs → insights-usage-rpc-BXvUr-z6.mjs} +5 -5
- package/.output/server/_ssr/{insights-usage-rpc-CrAA5_Wn.mjs → insights-usage-rpc-HOr6mniz.mjs} +5 -5
- package/.output/server/_ssr/{insights-K6CFztcF.mjs → insights-vmCmvfXx.mjs} +5 -5
- package/.output/server/_ssr/{insightsUsage-B_7pM9wp.mjs → insightsUsage-lPKyRC2o.mjs} +3 -3
- package/.output/server/_ssr/{insights_.distribution-CK5_wfLT.mjs → insights_.distribution-B2dxcCd_.mjs} +2 -2
- package/.output/server/_ssr/{insights_.distribution-DDr3vglh.mjs → insights_.distribution-B5V_NbK4.mjs} +14 -14
- package/.output/server/_ssr/{insights_.distribution-C9nMSRtr.mjs → insights_.distribution-DongF2jp.mjs} +5 -5
- package/.output/server/_ssr/{installations-CRHGd6SX.mjs → installations-B7w4LGJp.mjs} +4 -4
- package/.output/server/_ssr/{installations-BvGL_EXM.mjs → installations-B84kSetd.mjs} +2 -2
- package/.output/server/_ssr/{installations-CWutybSC.mjs → installations-bieZA3xt.mjs} +11 -11
- package/.output/server/_ssr/{ios-devices-rpc-CCx4TvyR.mjs → ios-devices-rpc-DOQg4dpb.mjs} +8 -8
- package/.output/server/_ssr/{iosDeviceCookie-B3FPj65l.mjs → iosDeviceCookie-DhWNFpC6.mjs} +5 -5
- package/.output/server/_ssr/{iosDeviceProfile-Cclrfk8N.mjs → iosDeviceProfile-jC8w4zEF.mjs} +6 -6
- package/.output/server/_ssr/{iosDevices-DMXaKH8F.mjs → iosDevices-B4kQLURA.mjs} +3 -3
- package/.output/server/_ssr/{listReleases-B2Q9xwFv.mjs → listReleases-QF91GLE7.mjs} +3 -3
- package/.output/server/_ssr/{native-artifact-BurROe05.mjs → native-artifact-D4ZISXRZ.mjs} +8 -64
- package/.output/server/_ssr/{native-builds-BPiSm8HX.mjs → native-builds-BU9Njiwm.mjs} +22 -50
- package/.output/server/_ssr/{native-builds-Bnx0fVWs.mjs → native-builds-lEyKQemV.mjs} +3 -5
- package/.output/server/_ssr/{native-builds-BGDsGYAp.mjs → native-builds-zpCsEYyA.mjs} +2 -2
- package/.output/server/_ssr/{native-builds_._buildId-CS9w0JIp.mjs → native-builds_._buildId-BJ4R32fq.mjs} +2 -2
- package/.output/server/_ssr/{native-builds_._buildId-B749BEMp.mjs → native-builds_._buildId-RHUotAYb.mjs} +17 -17
- package/.output/server/_ssr/{native-builds_.devices-BPT8_91w.mjs → native-builds_.devices-C0IlQkLv.mjs} +2 -2
- package/.output/server/_ssr/{native-builds_.devices-w_jDlH8K.mjs → native-builds_.devices-D1Ke-Fc-.mjs} +18 -18
- package/.output/server/_ssr/{nativeBuildDownloadLink-CXibRgym.mjs → nativeBuildDownloadLink-MCd5xUqP.mjs} +2 -2
- package/.output/server/_ssr/{nativeBuildInstall-BLuyTfXE.mjs → nativeBuildInstall-DcsqDS-O.mjs} +10 -9
- package/.output/server/_ssr/{nativeBuilds-WKdqgemR.mjs → nativeBuilds-CRa36wNn.mjs} +3 -3
- package/.output/server/_ssr/{publicConsoleBase-C3sNbafy.mjs → publicConsoleBase-wTKw3_iB.mjs} +1 -1
- package/.output/server/_ssr/{release-adoption-D2719HVh.mjs → release-adoption-gfhE5tz5.mjs} +2 -2
- package/.output/server/_ssr/{release-adoption-rpc-DOdELZNl.mjs → release-adoption-rpc-C4G_d8qK.mjs} +7 -7
- package/.output/server/_ssr/{releaseAdoption-CxGKmUXx.mjs → releaseAdoption-DfEYq7I4.mjs} +4 -4
- package/.output/server/_ssr/{releaseReachability-sWr0bLRk.mjs → releaseReachability-Ch1JpJkY.mjs} +1 -1
- package/.output/server/_ssr/{remote-config-C5mPNt0s.mjs → remote-config-1QZ0HgEu.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-DuOo-AFR.mjs → remote-config-CsbpqWAR.mjs} +18 -18
- package/.output/server/_ssr/{remote-config-xbBIsBh1.mjs → remote-config-DkgBxBka.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-rpc-rEe5HBxX.mjs → remote-config-rpc-KjJA9DC-.mjs} +3 -3
- package/.output/server/_ssr/{router-Bc5Zx-dc.mjs → router-Dy3fmb8q.mjs} +37 -37
- package/.output/server/_ssr/{routes-DCOnxOlA.mjs → routes-68rZQGee.mjs} +34 -51
- package/.output/server/_ssr/{routes-CUQ96XR2.mjs → routes-Ug9uqzob.mjs} +12 -12
- package/.output/server/_ssr/{schema-migration-rpc-DK_ceMAg.mjs → schema-migration-rpc-kntY9oPm.mjs} +3 -3
- package/.output/server/_ssr/{select-dGQiTkaZ.mjs → select-BOKFFr_G.mjs} +1 -1
- package/.output/server/_ssr/{server-l-C5qBnr.mjs → server-DetMvRBJ.mjs} +4 -4
- package/.output/server/_ssr/{sidebar-Ccd4WNjQ.mjs → sidebar-B46houn0.mjs} +2 -2
- package/.output/server/_ssr/ssr.mjs +1 -1
- package/.output/server/_ssr/{start-BXlykDIg.mjs → start-BSkL2B6C.mjs} +1 -1
- package/.output/server/_ssr/{switch-CC7UK0Nw.mjs → switch-BMYzd71j.mjs} +2 -2
- package/.output/server/_ssr/{table-BAlgZdxo.mjs → table-DWrYwJ_a.mjs} +1 -1
- package/.output/server/_ssr/{tabs-Bm7PWhQk.mjs → tabs-DusHAcYy.mjs} +2 -2
- package/.output/server/_ssr/{updateFailures-DGuFoK6A.mjs → updateFailures-BwDwIoNu.mjs} +3 -3
- package/.output/server/{_tanstack-start-manifest_v-C_zDNaKT.mjs → _tanstack-start-manifest_v-CD1q5k0m.mjs} +99 -94
- package/.output/server/index.mjs +308 -287
- package/package.json +7 -7
- package/src/components/ChannelPicker.tsx +227 -0
- package/src/components/features/insights/InsightsControls.tsx +8 -67
- package/src/components/features/native-builds/NativeBuildsPage.tsx +11 -74
- package/src/components/ui/combobox.tsx +2 -2
- package/src/lib/api-rpc.ts +2 -2
- package/src/lib/native-builds.ts +2 -4
- package/src/lib/server/nativeBuildInstall.ts +7 -2
- package/src/routes/index.tsx +23 -36
- package/.output/public/assets/EventDetails-BdqU96Wu.js +0 -1
- package/.output/public/assets/api-keys-D4tjInrB.js +0 -1
- package/.output/public/assets/input-group-CPboh0Rx.js +0 -1
- package/.output/public/assets/insights-B7GL298D.js +0 -1
- package/.output/public/assets/insights-BzKbxWIo.js +0 -42
- package/.output/public/assets/insights-Q2nAkSMz.js +0 -2
- package/.output/public/assets/insights_.distribution-BafQuEd0.js +0 -1
- package/.output/public/assets/insights_.distribution-DHU1udei.js +0 -2
- package/.output/public/assets/installations-CmuNX_Ok.js +0 -1
- package/.output/public/assets/installations-oGkAO7nb.js +0 -1
- package/.output/public/assets/native-builds-DJlYvvPY.js +0 -2
- package/.output/public/assets/native-builds-NyGMlBx2.js +0 -1
- package/.output/public/assets/native-builds-uKuvmyXZ.js +0 -1
- package/.output/public/assets/native-builds_._buildId-Dza7vEcy.js +0 -2
- package/.output/public/assets/native-builds_.devices-BykEftlY.js +0 -1
- package/.output/public/assets/native-builds_.devices-DH1JB1zr.js +0 -2
- package/.output/public/assets/remote-config-BiD075AT.js +0 -1
- package/.output/public/assets/remote-config-CBirPcRR.js +0 -6
- package/.output/public/assets/routes-5U4k3N1_.js +0 -1
- package/.output/public/assets/select-DIyG5G-V.js +0 -1
- package/.output/public/assets/styles-C_9Rf75p.css +0 -2
- package/.output/public/assets/switch-B_7OwJhK.js +0 -1
- /package/.output/public/assets/{BundleIdDisplay-BKaGARD1.js → BundleIdDisplay-C0X-k49t.js} +0 -0
- /package/.output/public/assets/{ChannelBadge-CPc1M44L.js → ChannelBadge-BgVCJfJs.js} +0 -0
- /package/.output/public/assets/{HashValueDisplay-BHL4xWSY.js → HashValueDisplay-DvwvQchI.js} +0 -0
- /package/.output/public/assets/{NotFoundPage-haKPLHiT.js → NotFoundPage-BEpesHEm.js} +0 -0
- /package/.output/public/assets/{PlatformIcon-DYsYaYt6.js → PlatformIcon-D4KPXCHL.js} +0 -0
- /package/.output/public/assets/{QrCode-BSNEn_M-.js → QrCode-BFSCkbPj.js} +0 -0
- /package/.output/public/assets/{alert-dialog-Cj7AOTIE.js → alert-dialog-DGPqJBCk.js} +0 -0
- /package/.output/public/assets/{api-tJRzijjy.js → api-eO-sq3Jd.js} +0 -0
- /package/.output/public/assets/{card-pYZSDIxg.js → card-BAs80yql.js} +0 -0
- /package/.output/public/assets/{constants-zSb7FXDh.js → constants-C5gi7fdZ.js} +0 -0
- /package/.output/public/assets/{dialog-DlAv6zou.js → dialog-BvZDZzdQ.js} +0 -0
- /package/.output/public/assets/{empty-Bwao2ztZ.js → empty-C5GqArX9.js} +0 -0
- /package/.output/public/assets/{field-BiSGCVoS.js → field-DInLQ5oV.js} +0 -0
- /package/.output/public/assets/{insights-usage-rpc-DkJgbAYm.js → insights-usage-rpc-Dw5_pmRH.js} +0 -0
- /package/.output/public/assets/{relativeTime-Dbefsycs.js → relativeTime-RUNbaMyO.js} +0 -0
- /package/.output/public/assets/{table-Bo1jU9-v.js → table-DbZPkzdz.js} +0 -0
- /package/.output/public/assets/{tabs-DARDj-XC.js → tabs-BnpNC0zf.js} +0 -0
package/.output/nitro.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Vr as e}from"./sidebar-BmzmPGuv.js";import{n as t,p as n}from"./constants-
|
|
1
|
+
import{Vr as e}from"./sidebar-BmzmPGuv.js";import{n as t,p as n}from"./constants-C5gi7fdZ.js";var r=e(`hard-drive`,[[`path`,{d:`M10 16h.01`,key:`1bzywj`}],[`path`,{d:`M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`18tbho`}],[`path`,{d:`M21.946 12.013H2.054`,key:`zqlbp7`}],[`path`,{d:`M6 16h.01`,key:`1pmjb7`}]]),i=e(`send`,[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]),a=e=>typeof e==`string`&&e.length>0?e:void 0,o=e=>{let t=a(e);if(t!==void 0)try{return n(t),t}catch{return}},s=e=>Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0)),c=e=>{let t=a(e.before),n=o(e.channel);return s({channel:n,channels:n===void 0&&e.channels===`all`?`all`:void 0,before:t,after:t===void 0?a(e.after):void 0})},l=({channels:e,...n},r)=>{if(n.channel!==void 0||e===`all`)return n;if(r!==void 0)return r.includes(`production`)?{channel:t,...n}:n},u=e=>{let t=a(e.patchesBefore);return s({patchesBefore:t,patchesAfter:t===void 0?a(e.patchesAfter):void 0})},d=[`pending`,`approved`,`registered`],f=e=>typeof e.status==`string`&&d.includes(e.status)?{status:e.status}:{};export{i as a,c as i,f as n,r as o,u as r,l as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$ as e,$n as t,A as n,Ar as r,Bn as i,Br as a,Bt as o,C as s,Cn as c,Cr as l,Di as u,En as d,Er as f,Fn as ee,Ht as p,In as te,It as m,Li as h,Lt as g,Mr as _,Mt as v,Nn as y,Nr as b,Nt as x,Pn as S,Qn as C,Ri as w,Rn as ne,Rt as T,Sn as E,Sr as D,Tn as O,Tr as re,Vi as ie,Vt as ae,Xt as k,Yt as A,_n as j,bn as M,bt as oe,cr as se,ct as ce,dt as le,fr as N,ft as ue,gn as de,gr as fe,ht as pe,jr as P,kn as me,kr as F,kt as he,lr as ge,lt as _e,mt as I,or as L,ot as ve,pr as ye,pt as be,sr as xe,st as Se,vn as Ce,vr as R,w as we,wr as Te,wt as Ee,xr as De}from"./sidebar-BmzmPGuv.js";import{t as Oe}from"./check-C3VCvMOV.js";import{a as ke,i as Ae,n as je,r as Me,t as Ne}from"./useCompositeListItem-Cbk_weKW.js";import{r as Pe}from"./dist-BEmib-ZM.js";import{C as Fe,E as Ie,S as Le,T as Re,_ as ze,a as Be,b as Ve,d as He,f as Ue,g as We,h as Ge,i as Ke,m as qe,n as Je,o as Ye,p as Xe,s as Ze,t as Qe,u as z,v as B,w as $e,x as et,y as tt}from"./useAnchoredPopupScrollLock-Cvx6CdPD.js";import{t as nt}from"./constants-C5gi7fdZ.js";import{i as rt}from"./api-eO-sq3Jd.js";import{i as it,n as at,r as ot,t as st}from"./input-group-CIjTdxCW.js";var V=ie(w()),ct=V.createContext(void 0),lt=V.createContext(void 0),ut=V.createContext(void 0),dt=V.createContext(``);function ft(){let e=V.useContext(ct);if(!e)throw Error(F(22));return e}function pt(){let e=V.useContext(lt);if(!e)throw Error(F(23));return e}function H(){let e=V.useContext(ut);if(!e)throw Error(F(24));return e}function mt(){return V.useContext(dt)}var U={id:T(e=>e.id),labelId:T(e=>e.labelId),items:T(e=>e.items),selectedValue:T(e=>e.selectedValue),hasSelectionChips:T(e=>{let t=e.selectedValue;return Array.isArray(t)&&t.length>0}),hasSelectedValue:T(e=>{let{selectedValue:t,selectionMode:n}=e;return t==null?!1:n===`multiple`&&Array.isArray(t)?t.length>0:!0}),hasNullItemLabel:T((e,t)=>t?Ye(e.items):!1),open:T(e=>e.open),mounted:T(e=>e.mounted),forceMounted:T(e=>e.forceMounted),inline:T(e=>e.inline),activeIndex:T(e=>e.activeIndex),selectedIndex:T(e=>e.selectedIndex),isActive:T((e,t)=>e.activeIndex===t),isSelected:T((e,t)=>{let n=e.isItemEqualToValue,r=e.selectedValue;return Array.isArray(r)?r.some(e=>Ue(t,e,n)):Ue(t,r,n)}),transitionStatus:T(e=>e.transitionStatus),popupProps:T(e=>e.popupProps),inputProps:T(e=>e.inputProps),triggerProps:T(e=>e.triggerProps),itemProps:T(e=>e.itemProps),positionerElement:T(e=>e.positionerElement),listElement:T(e=>e.listElement),triggerElement:T(e=>e.triggerElement),inputElement:T(e=>e.inputElement),inputGroupElement:T(e=>e.inputGroupElement),popupSide:T(e=>e.popupSide),openMethod:T(e=>e.openMethod),inputInsidePopup:T(e=>e.inputInsidePopup),inputOwnsFormValue:T(e=>e.inputOwnsFormValue),selectionMode:T(e=>e.selectionMode),name:T(e=>e.name),form:T(e=>e.form),disabled:T(e=>e.disabled),readOnly:T(e=>e.readOnly),required:T(e=>e.required),grid:T(e=>e.grid),virtualized:T(e=>e.virtualized),itemToStringLabel:T(e=>e.itemToStringLabel),isItemEqualToValue:T(e=>e.isItemEqualToValue),modal:T(e=>e.modal),autoHighlight:T(e=>e.autoHighlight),submitOnItemClick:T(e=>e.submitOnItemClick)},ht=ie(h()),W=u();function gt(e,t){return(n,r)=>{if(n==null)return!1;let i=z(n,t);return e.contains(i,r)}}function _t(e,t,n){return(r,i)=>{if(r==null)return!1;if(!i)return!0;let a=z(r,t),o=n==null?``:z(n,t);return o&&e.contains(o,i)&&o.length===i.length?!0:e.contains(a,i)}}var vt=new Map;function yt(e={}){let t={usage:`search`,sensitivity:`base`,ignorePunctuation:!0,...e},n=`${bt(e.locale)}|${JSON.stringify(t)}`,r=vt.get(n);if(r)return r;let i=new Intl.Collator(e.locale,t),a={contains(e,t,n){if(!t)return!0;let r=z(e,n);for(let e=0;e<=r.length-t.length;e+=1)if(i.compare(r.slice(e,e+t.length),t)===0)return!0;return!1},startsWith(e,t,n){if(!t)return!0;let r=z(e,n);return i.compare(r.slice(0,t.length),t)===0},endsWith(e,t,n){if(!t)return!0;let r=z(e,n),a=t.length;return r.length>=a&&i.compare(r.slice(r.length-a),t)===0}};return vt.set(n,a),a}function bt(e){return Array.isArray(e)?e.map(e=>bt(e)).join(`,`):e==null?``:String(e)}var xt=yt,St=Symbol(`none`),Ct={value:St,index:-1};function wt(e){let{id:n,onOpenChangeComplete:a,defaultSelectedValue:u=null,selectedValue:d,onSelectedValueChange:f,defaultInputValue:p,inputValue:h,open:v,defaultOpen:y=!1,selectionMode:w=`none`,onItemHighlighted:ne,name:T,form:O,disabled:ie=!1,readOnly:k=!1,required:A=!1,inputRef:se,grid:ce=!1,items:N,filteredItems:ue,filter:fe,openOnInputClick:pe=!0,autoHighlight:me=!1,keepHighlight:F=!1,highlightItemOnHover:ge=!0,loopFocus:_e=!0,itemToStringLabel:I,itemToStringValue:L,isItemEqualToValue:ve=Xe,virtualized:be=!1,inline:xe=!1,fillInputOnItemPress:Se=!0,modal:Ce=!1,limit:R=-1,autoComplete:De=`list`,formAutoComplete:Oe,locale:ke,submitOnItemClick:je=!1}=e,{clearErrors:Me}=Be(),{setDirty:Ne,validityData:Pe,shouldValidateOnChange:Fe,setFilled:Re,name:Ve,disabled:Ke,setTouched:Je,setFocused:Ye,validationMode:Qe,validation:B}=Le(),$e=le(),et=ze({id:n}),nt=xt({locale:ke}),[rt,it]=V.useState(!1),[at,ot]=V.useState(null),st=V.useRef([]),ft=V.useRef([]),pt=V.useRef(null),H=V.useRef(null),mt=V.useRef(null),ht=V.useRef(null),vt=V.useRef(null),yt=V.useRef(!0),bt=V.useRef(!1),wt=V.useRef(null),Tt=V.useRef(null),Et=V.useRef(null),Dt=V.useRef(Ct),Ot=V.useRef(null),kt=V.useRef([]),At=V.useRef([]),jt=Ke||ie,Mt=Ve??T,G=w===`multiple`,Nt=w===`single`,Pt=h!==void 0||p!==void 0,Ft=N!==void 0,It=ue!==void 0,K;K=me===`always`?`always`:me?`input-change`:!1;let[q,Lt]=Ae({controlled:d,default:G?u??D:u,name:`Combobox`,state:`selectedValue`}),Rt=V.useMemo(()=>fe===null?()=>!0:fe===void 0?Nt&&!rt?_t(nt,I,q):gt(nt,I):fe,[fe,Nt,q,rt,nt,I]),zt=b(()=>Pt?p??``:Nt?z(q,I):``).current,[J,Bt]=Ae({controlled:h,default:zt,name:`Combobox`,state:`inputValue`}),[Y,Vt]=Ae({controlled:v,default:y,name:`Combobox`,state:`open`}),Ht=Ze(N),X=at??(J===``?``:String(J).trim()),Ut=Nt?z(q,I):``,Wt=Nt&&!rt&&X!==``&&Ut!==``&&Ut.length===X.length&&nt.contains(Ut,X),Gt=Wt?``:X,Kt=Ft&&It&&Wt,qt=V.useMemo(()=>N?Ht?N.flatMap(e=>e.items):N:D,[N,Ht]),Jt=V.useMemo(()=>{if(ue&&!Kt)return ue;if(!N)return D;if(Ht){let e=N,t=[],n=0;for(let r of e){if(R>-1&&n>=R)break;let e=Gt===``?r.items:r.items.filter(e=>Rt(e,Gt,I));if(e.length===0)continue;let i=R>-1?R-n:1/0,a=e.slice(0,i);if(a.length>0){let e={...r,items:a};t.push(e),n+=a.length}}return t}if(Gt===``)return R>-1?qt.slice(0,R):qt;let e=[];for(let t of qt){if(R>-1&&e.length>=R)break;Rt(t,Gt,I)&&e.push(t)}return e},[ue,Kt,N,Ht,Gt,R,Rt,I,qt]),Z=V.useMemo(()=>Ht?Jt.flatMap(e=>e.items):Jt,[Jt,Ht]),Q=b(()=>new m({id:et,labelId:void 0,selectedValue:q,open:Y,filter:Rt,query:X,items:N,selectionMode:w,listRef:st,labelsRef:ft,popupRef:pt,emptyRef:vt,inputRef:H,startDismissRef:mt,endDismissRef:ht,keyboardActiveRef:yt,chipsContainerRef:wt,clearRef:Tt,valuesRef:kt,allValuesRef:At,selectionEventRef:Et,name:Mt,form:O,disabled:jt,readOnly:k,required:A,grid:ce,isGrouped:Ht,virtualized:be,openOnInputClick:pe,itemToStringLabel:I,isItemEqualToValue:ve,modal:Ce,autoHighlight:K,submitOnItemClick:je,hasInputValue:Pt,mounted:!1,forceMounted:!1,transitionStatus:`idle`,inline:xe,activeIndex:null,selectedIndex:null,popupProps:{},inputProps:{},triggerProps:{},itemProps:l,positionerElement:null,listElement:null,triggerElement:null,inputElement:null,inputGroupElement:null,popupSide:null,openMethod:null,inputInsidePopup:!0,inputOwnsFormValue:w===`none`,onOpenChangeComplete:a||Te,setOpen:Te,setInputValue:Te,setSelectedValue:Te,setIndices:Te,onItemHighlighted:Te,handleSelection:Te,forceMount:Te,requestSubmit:Te})).current,Yt=w===`none`?J:q,Xt=V.useMemo(()=>w===`none`?Yt:Array.isArray(q)?q.map(e=>He(e,L)):He(q,L),[Yt,L,w,q]),Zt=_(ne),Qt=_(a),$t=g(Q,U.activeIndex),en=g(Q,U.selectedIndex),tn=g(Q,U.positionerElement),nn=g(Q,U.listElement),rn=g(Q,U.triggerElement),an=g(Q,U.inputElement),on=g(Q,U.inputGroupElement),$=g(Q,U.inline),sn=g(Q,U.inputInsidePopup),cn=g(Q,U.inputOwnsFormValue),ln=M(rn),{mounted:un,setMounted:dn,transitionStatus:fn}=x(Y),{openMethod:pn,triggerProps:mn}=s(Y),hn=_(()=>Xt);tt(sn?ln:H,et,Yt,hn);let gn=_(()=>{N?ft.current=Z.map(e=>z(e,I)):Q.set(`forceMounted`,!0)}),_n=V.useRef(q);P(()=>{q!==_n.current&&gn()},[gn,q]);let vn=_(e=>{Q.update(e);let t=e.type||`none`;if(e.activeIndex!==void 0)if(e.activeIndex===null)Dt.current!==Ct&&(Dt.current=Ct,Zt(void 0,c(t,void 0,{index:-1})));else{let n=kt.current[e.activeIndex];Dt.current={value:n,index:e.activeIndex},Zt(n,c(t,void 0,{index:e.activeIndex}))}}),yn=_((t,n)=>{if(bt.current=n.reason===S,e.onInputValueChange?.(t,n),!n.isCanceled){if(n.reason===`input-change`){let e=n.event,r=e.inputType;if(e.type===`compositionend`||r!=null&&r!==``&&r!==`insertReplacementText`){let e=t.trim()!==``;e&&it(!0),Ot.current={hasQuery:e},e&&K&&Q.state.activeIndex==null&&Q.set(`activeIndex`,0)}}Bt(t)}}),bn=_((t,n)=>{if(Y!==t&&(n.reason===`escape-key`&&Ft&&Z.length===0&&!Q.state.emptyRef.current&&n.allowPropagation(),e.onOpenChange?.(t,n),!n.isCanceled&&(t&&G&&sn&&!$&&at!==null&&(it(!1),ot(null),J!==``&&yn(``,E(S,n.event))),!t&&rt&&(Nt?($||ot(X),X===``&&it(!1)):G&&($||ot(X),sn&&vn({activeIndex:null}),(!sn||$)&&yn(``,E(S,n.event)))),Vt(t),!t&&sn&&(n.reason===`focus-out`||n.reason===`outside-press`)&&(Je(!0),Ye(!1),Qe===`onBlur`)))){let e=w===`none`?J:q;B.commit(e)}}),xn=_((e,t)=>{f?.(e,t),!t.isCanceled&&(Lt(e),(w===`none`&&pt.current&&Se||Nt&&!Q.state.inputInsidePopup)&&yn(z(e,I),E(t.reason,t.event)),Nt&&e!=null&&t.reason!==`input-change`&&rt&&!$&&ot(X))}),Sn=_((e,n)=>{let r=n;if(r===void 0){if($t===null)return;r=kt.current[$t]}let i=t(e),a=Et.current??e;Et.current=null;let o=E(te,a),s=i?.closest(`a`)?.getAttribute(`href`);if(s){s.startsWith(`#`)&&bn(!1,o);return}if(G){let e=Array.isArray(q)?q:[];if(xn(We(e,r,Q.state.isItemEqualToValue)?Ge(e,r,Q.state.isItemEqualToValue):[...e,r],o),!(H.current&&H.current.value.trim()!==``))return;Q.state.inputInsidePopup?yn(``,E(S,o.event)):bn(!1,o)}else xn(r,o),bn(!1,o)}),Cn=_(()=>{if(!Q.state.submitOnItemClick)return;let e=B.inputRef.current?.form??Q.state.inputElement?.form;e&&typeof e.requestSubmit==`function`&&e.requestSubmit()}),wn=_(()=>{if(dn(!1),Qt?.(!1),it(!1),ot(null),vn(w===`none`?{activeIndex:null,selectedIndex:null}:{activeIndex:null}),G&&H.current&&H.current.value!==``&&!bt.current&&yn(``,E(S)),Nt)if(Q.state.inputInsidePopup)H.current&&H.current.value!==``&&yn(``,E(S));else{let e=z(q,I);H.current&&H.current.value!==e&&yn(e,E(e===``?S:i))}}),Tn=V.useMemo(()=>$&&tn?{current:tn.closest(`[role="dialog"]`)}:pt,[$,tn]);he({enabled:!e.actionsRef,open:Y,ref:Tn,onComplete(){Y||wn()}}),V.useImperativeHandle(e.actionsRef,()=>({unmount:wn}),[wn]),P(function(){if(Y||w===`none`)return;let e=N?qt:At.current;if(G){let t=Array.isArray(q)?q:[],n=t[t.length-1],r=qe(e,n,ve);vn({selectedIndex:r===-1?null:r})}else{let t=qe(e,q,ve);vn({selectedIndex:t===-1?null:t})}},[Y,q,N,w,qt,G,ve,vn]),P(()=>{N&&(kt.current=Z,st.current.length=Z.length)},[N,Z]),P(()=>{let e=Ot.current;if(e&&(e.hasQuery?K&&Q.set(`activeIndex`,0):K===`always`&&Q.set(`activeIndex`,0),Ot.current=null),!Y&&!$)return;let t=Ft||It?Z:kt.current,n=Q.state.activeIndex;if(n==null){if(K===`always`&&t.length>0){Q.set(`activeIndex`,0);return}Dt.current!==Ct&&(Dt.current=Ct,Q.state.onItemHighlighted(void 0,c(i,void 0,{index:-1})));return}if(n>=t.length){Dt.current!==Ct&&(Dt.current=Ct,Q.state.onItemHighlighted(void 0,c(i,void 0,{index:-1}))),Q.set(`activeIndex`,null);return}let r=t[n],a=Dt.current.value,o=a!==St&&Ue(r,a,Q.state.isItemEqualToValue);(Dt.current.index!==n||!o)&&(Dt.current={value:r,index:n},Q.state.onItemHighlighted(r,c(i,void 0,{index:n})))},[$t,K,It,Ft,Z,$,Y,Q]),P(()=>{if(w===`none`){Re(String(J)!==``);return}Re(G?Array.isArray(q)&&q.length>0:q!=null)},[Re,w,J,q,G]),V.useEffect(()=>{Ft&&K&&Z.length===0&&vn({activeIndex:null})},[Ft,K,Z.length,vn]),we(X,()=>{!Y||X===``||X===String(zt)||it(!0)}),we(q,()=>{if(w!==`none`&&(Me(Mt),Ne(q!==Pe.initialValue),Fe()?B.commit(q):B.commit(q,!0),Nt&&!Pt&&!sn)){let e=z(q,I);J!==e&&yn(e,E(i))}}),we(J,()=>{w===`none`&&(Me(Mt),Ne(J!==Pe.initialValue),Fe()?B.commit(J):B.commit(J,!0))}),we(N,()=>{if(!Nt||Pt||sn||rt)return;let e=z(q,I);J!==e&&yn(e,E(i))});let En=oe({open:$?!0:Y,onOpenChange:bn,elements:{reference:sn?rn:an,floating:tn}}),Dn,On;$||(Dn=ce?`grid`:`listbox`,On=Y?`true`:`false`);let kn=V.useMemo(()=>{let e=an?.tagName===`INPUT`,t=an==null||e,n=t||Y,r=t?{autoComplete:`off`,spellCheck:`false`,autoCorrect:`off`,autoCapitalize:`none`}:{};return n&&(r.role=`combobox`,r[`aria-expanded`]=On,r[`aria-haspopup`]=Dn,r[`aria-controls`]=Y?nn?.id:void 0,r[`aria-autocomplete`]=De),{reference:r,floating:{role:`presentation`}}},[an,Y,On,Dn,nn?.id,De]),An=ae(En,{enabled:!k&&!jt&&pe,event:`mousedown-only`,toggle:!1,touchOpenDelay:sn?0:100,reason:ee}),jn=o(En,{enabled:!k&&!jt&&!$,outsidePressEvent:{mouse:`sloppy`,touch:`intentional`},bubbles:$?!0:void 0,outsidePress(e){let n=t(e);return!C(rn,n)&&!C(Tt.current,n)&&!C(wt.current,n)&&!C(on,n)}}),Mn=Ie(En,{enabled:!k&&!jt,id:et,listRef:st,activeIndex:$t,selectedIndex:en,virtual:!0,loopFocus:_e,allowEscape:_e&&!K,focusItemOnOpen:rt||w===`none`&&!K?!1:`auto`,focusItemOnHover:ge,resetOnPointerLeave:!F,cols:ce?2:1,orientation:ce?`horizontal`:void 0,rtl:$e===`rtl`,disabledIndices:D,onNavigate(e,t){!t&&!Y||fn===`ending`||vn(t?{activeIndex:e,type:yt.current?`keyboard`:`pointer`}:{activeIndex:e})}}),Nn=V.useMemo(()=>r(Mn.reference,jn.reference,An.reference,kn.reference),[Mn.reference,jn.reference,An.reference,kn.reference]),Pn=V.useMemo(()=>r(Ee,Mn.floating,jn.floating,kn.floating),[Mn.floating,jn.floating,kn.floating]),Fn=V.useMemo(()=>{let e=Mn.item;return e?{...e,onFocus:void 0}:l},[Mn.item]);ye(()=>{Q.update({inline:xe,popupProps:Pn,inputProps:Nn,triggerProps:mn,itemProps:Fn,setOpen:bn,setInputValue:yn,setSelectedValue:xn,setIndices:vn,onItemHighlighted:Zt,handleSelection:Sn,forceMount:gn,requestSubmit:Cn})}),P(()=>{Q.update({id:et,selectedValue:q,open:Y,mounted:un,transitionStatus:fn,items:N,inline:xe,popupProps:Pn,inputProps:Nn,triggerProps:mn,openMethod:pn,itemProps:Fn,selectionMode:w,name:Mt,form:O,disabled:jt,readOnly:k,required:A,grid:ce,isGrouped:Ht,virtualized:be,onOpenChangeComplete:Qt,openOnInputClick:pe,itemToStringLabel:I,modal:Ce,autoHighlight:K,isItemEqualToValue:ve,submitOnItemClick:je,hasInputValue:Pt,requestSubmit:Cn,inputOwnsFormValue:w===`none`&&(xe||!Q.state.inputInsidePopup)})},[Q,et,q,Y,un,fn,N,Pn,Nn,Fn,pn,mn,w,Mt,jt,k,A,B,ce,Ht,be,Qt,pe,I,Ce,ve,je,Pt,xe,Cn,K,O]);let In=re(se,B.inputRef),Ln=V.useMemo(()=>({query:X,hasItems:Ft,filteredItems:Jt,flatFilteredItems:Z}),[X,Ft,Jt,Z]),Rn=V.useMemo(()=>Array.isArray(Yt)?``:He(Yt,L),[Yt,L]),zn=G&&Array.isArray(q)&&q.length>0,Bn=G||w===`none`&&cn?void 0:Mt,Vn=V.useMemo(()=>!G||!Array.isArray(q)||!Mt?null:q.map(e=>{let t=He(e,L);return(0,W.jsx)(`input`,{type:`hidden`,form:O,name:Mt,value:t},t)}),[G,q,O,Mt,L]),Hn=(0,W.jsxs)(V.Fragment,{children:[e.children,(0,W.jsx)(`input`,{...B.getInputValidationProps({onFocus(){if(sn){rn?.focus();return}(H.current||rn)?.focus()},onChange(e){if(e.nativeEvent.defaultPrevented||jt||k){e.preventBaseUIHandler?.();return}let t=e.currentTarget.value,n=E(i,e.nativeEvent);function r(){if(G)return;if(w===`none`){Ne(t!==Pe.initialValue),yn(t,n),Fe()&&B.commit(t);return}let e=kt.current.find(e=>He(e,L).toLowerCase()===t.toLowerCase()||z(e,I).toLowerCase()===t.toLowerCase());e!=null&&(Ne(e!==Pe.initialValue),xn?.(e,n),Fe()&&B.commit(e))}N?r():(gn(),queueMicrotask(r))}}),id:et&&Bn==null?`${et}-hidden-input`:void 0,form:O,name:Bn,autoComplete:Oe,disabled:jt,required:A&&!zn,readOnly:k,value:Rn,ref:In,style:Bn?j:de,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),Vn]});return(0,W.jsx)(ct.Provider,{value:Q,children:(0,W.jsx)(lt.Provider,{value:En,children:(0,W.jsx)(ut.Provider,{value:Ln,children:(0,W.jsx)(dt.Provider,{value:J,children:Hn})})})})}var Tt={...I,...$e,popupSide:e=>e?{"data-popup-side":e}:null,listEmpty:e=>e?{"data-list-empty":``}:null},Et=2,Dt=V.forwardRef(function(e,n){let{render:r,className:i,nativeButton:a=!0,disabled:o=!1,id:s,style:c,...l}=e,{state:u,disabled:d,setTouched:ee,setFocused:p,validationMode:te,validation:m}=Le(),{labelId:h}=B(),v=ft(),{filteredItems:y}=H(),b=g(v,U.selectionMode),x=g(v,U.disabled),S=g(v,U.readOnly),w=g(v,U.required),T=g(v,U.mounted),D=g(v,U.popupSide),O=g(v,U.positionerElement),re=g(v,U.listElement),ie=g(v,U.triggerProps),k=g(v,U.triggerElement),A=g(v,U.inputInsidePopup),j=g(v,U.id),M=g(v,U.labelId),oe=g(v,U.open),se=g(v,U.selectedValue),ce=g(v,U.activeIndex),le=g(v,U.selectedIndex),ue=g(v,U.hasSelectedValue),de=pt(),fe=mt(),pe=N(),P=d||x||o,me=y.length===0,F=T&&O?D:null;ze({id:A?s:void 0});let he=A?s??j:s,ge=Ke(h,M),_e=V.useRef(``);function I(e){_e.current=e.pointerType}let ve=de.useState(`domReferenceElement`);V.useEffect(()=>{A&&k&&k!==ve&&de.set(`domReferenceElement`,k)},[k,ve,de,A]);let{reference:ye}=Re(de,{enabled:!oe&&!S&&!x&&b===`single`,listRef:v.state.labelsRef,activeIndex:ce,selectedIndex:le,onMatch(e){let t=v.state.valuesRef.current[e];t!==void 0&&v.state.setSelectedValue(t,E(`none`))}}),{reference:be}=ae(de,{enabled:!S&&!x,event:`mousedown`}),{buttonRef:xe,getButtonProps:Se}=f({native:a,disabled:P}),R={...u,open:oe,disabled:P,popupSide:F,listEmpty:me,placeholder:b===`none`?!1:!ue};return De(`button`,e,{ref:[n,xe,_(e=>{v.set(`triggerElement`,e)})],state:R,props:[ie,be,ye,{id:he,tabIndex:A?0:-1,role:A?`combobox`:void 0,"aria-expanded":oe?`true`:`false`,"aria-haspopup":A?`dialog`:`listbox`,"aria-controls":oe?re?.id:void 0,"aria-required":A&&w||void 0,"aria-labelledby":ge,onPointerDown:I,onPointerEnter:I,onFocus(){p(!0),!(P||S)&&pe.start(0,v.state.forceMount)},onBlur(e){if(!C(O,e.relatedTarget)&&(ee(!0),p(!1),te===`onBlur`)){let e=b===`none`?fe:se;m.commit(e)}},onMouseDown(e){if(P||S||(A||de.set(`domReferenceElement`,e.currentTarget),v.state.forceMount(),_e.current!==`touch`&&(v.state.inputRef.current?.focus(),A||e.preventDefault()),oe))return;let n=Ce(e.currentTarget);function r(e){if(!k)return;let n=t(e),r=v.state.positionerElement,i=v.state.listElement;if(C(k,n)||C(r,n)||C(i,n)||n===k)return;let a=Je(k),o=e.clientX>=a.left-Et&&e.clientX<=a.right+Et,s=e.clientY>=a.top-Et&&e.clientY<=a.bottom+Et;o&&s||v.state.setOpen(!1,E(`cancel-open`,e))}A&&n.addEventListener(`mouseup`,r,{once:!0})},onKeyDown(e){P||S||(e.key===`ArrowDown`||e.key===`ArrowUp`)&&(L(e),v.state.setOpen(!0,E(ne,e.nativeEvent)),v.state.inputRef.current?.focus())}},m?m.getValidationProps(l):l,Se],stateAttributesMapping:Tt})}),Ot=V.createContext(void 0);function kt(){return V.useContext(Ot)}var At=V.createContext(void 0);function jt(e){let t=V.useContext(At);if(t===void 0&&!e)throw Error(F(21));return t}var Mt=V.forwardRef(function(e,t){let n=ft(),{buttonRef:r,getButtonProps:i}=f({native:!1}),a=re(t,r);function o(e){n.state.setOpen(!1,E(d,e.nativeEvent,e.currentTarget))}return(0,W.jsx)(`span`,{ref:a,...i({onClick:o}),"aria-label":`Dismiss`,tabIndex:void 0,style:j})}),G=V.forwardRef(function(e,t){let{render:n,className:r,disabled:a=!1,id:o,style:s,...c}=e,{state:l,disabled:u,setTouched:d,setFocused:f,validationMode:ee,validation:p}=Le(),{labelId:te}=B(),m=kt(),h=!!jt(!0),v=ft(),{filteredItems:b}=H(),x=mt(),C=le(),w=g(v,U.required),ne=g(v,U.disabled),T=g(v,U.readOnly),D=g(v,U.name),O=g(v,U.form),re=g(v,U.selectionMode),ie=g(v,U.autoHighlight),ae=g(v,U.inputProps),k=g(v,U.triggerProps),A=g(v,U.open),j=g(v,U.mounted),M=g(v,U.selectedValue),oe=g(v,U.popupSide),ce=g(v,U.positionerElement),N=g(v,U.id),de=g(v,U.inline),fe=g(v,U.modal),pe=!!ie,P=j&&ce?oe:null,F=u||ne||a,he=b.length===0,ge=h||de,_e=!ge||fe,I=ue(o??(ge?void 0:N)),ve=Ke(te,void 0),ye=h?Fe:l,[be,Se]=V.useState(null),Ce=V.useRef(!1),R=V.useRef(null),we=V.useRef(!1),Te=re===`none`&&!h,Ee=_(e=>{let t=h||v.state.inline;t&&!v.state.hasInputValue&&v.state.setInputValue(``,E(i)),v.update({inputElement:e,inputInsidePopup:t,inputOwnsFormValue:Te})}),Oe=h||!p?c:p.getValidationProps(c),ke={...ye,open:A,disabled:F,readOnly:T,popupSide:P,listEmpty:he};function Ae(e){if(!m)return;let t,{highlightedChipIndex:n}=m,r=m.chipsRef.current.length,i=C===`rtl`,a=i?`ArrowRight`:`ArrowLeft`,o=i?`ArrowLeft`:`ArrowRight`;if(n!==void 0){if(e.key===a)e.preventDefault(),t=n>0?n-1:void 0;else if(e.key===o)e.preventDefault(),t=n<r-1?n+1:void 0;else if(e.key===`Backspace`||e.key===`Delete`){e.preventDefault();let r=n>=M.length-1?M.length-2:n;t=r>=0?r:void 0,v.state.setIndices({activeIndex:null,selectedIndex:null,type:`keyboard`})}return t}return e.key===a&&(e.currentTarget.selectionStart??0)===0&&M.length>0?(e.preventDefault(),t=r>0?r-1:void 0):e.key===`Backspace`&&e.currentTarget.value===``&&M.length>0&&(v.state.setIndices({activeIndex:null,selectedIndex:null,type:`keyboard`}),e.preventDefault()),t}let je=De(`input`,e,{state:ke,ref:[t,v.state.inputRef,Ee],props:[ae,k,{type:`text`,value:e.value??be??x,"aria-readonly":T||void 0,"aria-required":w||void 0,"aria-labelledby":ve,disabled:F,readOnly:T,required:re===`none`?w:void 0,form:O,...Te&&D&&{name:D},id:I,onFocus(){if(f(!0),!de||!we.current)return;we.current=!1;let e=R.current;e==null||!Object.hasOwn(v.state.valuesRef.current,e)||v.state.setIndices({activeIndex:e})},onBlur(){d(!0),f(!1);let e=v.state.activeIndex;if(de&&e!==null&&ie!==`always`&&(R.current=e,we.current=!0,v.state.setIndices({activeIndex:null})),ee===`onBlur`){let e=re===`none`?x:M;p.commit(e)}},onCompositionStart(e){xe||(Ce.current=!0,Se(e.currentTarget.value))},onCompositionEnd(e){Ce.current=!1;let t=e.currentTarget.value;Se(null),v.state.setInputValue(t,E(y,e.nativeEvent))},onChange(e){let t=e.nativeEvent.inputType,n=!t||t===`insertReplacementText`,r=Ce.current||!n;if(Ce.current){let t=e.currentTarget.value;Se(t),t===``&&!v.state.openOnInputClick&&!v.state.inputInsidePopup&&v.state.setOpen(!1,E(S,e.nativeEvent));let n=t.trim(),i=pe&&n!==``;!T&&!F&&n&&r&&(v.state.setOpen(!0,E(y,e.nativeEvent)),pe||v.state.setIndices({activeIndex:null,selectedIndex:null,type:v.state.keyboardActiveRef.current?`keyboard`:`pointer`})),A&&v.state.activeIndex!==null&&!i&&v.state.setIndices({activeIndex:null,selectedIndex:null,type:v.state.keyboardActiveRef.current?`keyboard`:`pointer`});return}v.state.setInputValue(e.currentTarget.value,E(y,e.nativeEvent));let i=e.currentTarget.value===``,a=E(S,e.nativeEvent);i&&!v.state.inputInsidePopup&&(re===`single`&&v.state.setSelectedValue(null,a),v.state.openOnInputClick||v.state.setOpen(!1,a));let o=e.currentTarget.value.trim();!T&&!F&&o&&r&&(v.state.setOpen(!0,E(y,e.nativeEvent)),pe||v.state.setIndices({activeIndex:null,selectedIndex:null,type:v.state.keyboardActiveRef.current?`keyboard`:`pointer`})),A&&v.state.activeIndex!==null&&!pe&&v.state.setIndices({activeIndex:null,selectedIndex:null,type:v.state.keyboardActiveRef.current?`keyboard`:`pointer`})},onKeyDown(e){if(F||T||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)return;v.state.keyboardActiveRef.current=!0;let t=e.currentTarget,n=t.scrollWidth-t.clientWidth,r=C===`rtl`;if(e.key===`Home`){L(e);let n=se&&r?t.value.length:0;t.setSelectionRange(n,n),t.scrollLeft=0;return}if(e.key===`End`){L(e);let i=se&&r?0:t.value.length;t.setSelectionRange(i,i),t.scrollLeft=r?-n:n;return}if(!j&&e.key===`Escape`){let t=re===`multiple`&&Array.isArray(M)?M.length===0:M===null,n=E(me,e.nativeEvent),r=re===`multiple`?[]:null;v.state.setInputValue(``,n),v.state.setSelectedValue(r,n),!t&&!v.state.inline&&!n.isPropagationAllowed&&e.stopPropagation();return}if(m&&e.key===`Backspace`&&t.value===``&&m.highlightedChipIndex===void 0&&Array.isArray(M)&&M.length>0){let t=m.chipsRef.current.length,n=t>0?t-1:M.length-1,r=M.filter((e,t)=>t!==n);v.state.setIndices({activeIndex:null,selectedIndex:null,type:v.state.keyboardActiveRef.current?`keyboard`:`pointer`}),v.state.setSelectedValue(r,E(i,e.nativeEvent));return}let a=m?.highlightedChipIndex!==void 0,o=Ae(e);if(m?.setHighlightedChipIndex(o),o===void 0?a&&v.state.inputRef.current?.focus():m?.chipsRef.current[o]?.focus(),e.which!==229&&e.key===`Enter`&&A){let t=v.state.activeIndex,n=e.nativeEvent;if(t===null){if(de)return;v.state.setOpen(!1,E(i,n));return}L(e);let r=v.state.listRef.current[t];r&&(v.state.selectionEventRef.current=n,r.click(),v.state.selectionEventRef.current=null)}},onPointerMove(){v.state.keyboardActiveRef.current=!1},onPointerDown(){v.state.keyboardActiveRef.current=!1}},Oe],stateAttributesMapping:Tt}),Me=h?(0,W.jsx)(et.Provider,{value:Ve,children:je}):je;return(0,W.jsxs)(V.Fragment,{children:[A&&_e&&(0,W.jsx)(Mt,{ref:v.state.startDismissRef}),Me]})}),Nt={...v,...pe},Pt=V.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,nativeButton:a=!0,keepMounted:o=!1,style:s,...c}=e,{disabled:l}=Le(),u=ft(),d=g(u,U.selectionMode),ee=g(u,U.disabled),p=g(u,U.readOnly),te=g(u,U.open),m=g(u,U.selectedValue),h=g(u,U.hasSelectionChips),_=mt(),v=!1;v=d===`none`?_!==``:d===`single`?m!=null:h;let y=l||ee||i,{buttonRef:b,getButtonProps:S}=f({native:a,disabled:y}),{mounted:C,transitionStatus:w,setMounted:ne}=x(v),T={disabled:y,visible:v,open:te,transitionStatus:w};he({open:v,ref:u.state.clearRef,onComplete(){v||ne(!1)}});let D=De(`button`,e,{state:T,ref:[t,b,u.state.clearRef],props:[{tabIndex:-1,children:`x`,onMouseDown(e){e.preventDefault()},onClick(e){if(y||p)return;let t=u.state.keyboardActiveRef;u.state.setInputValue(``,E(O,e.nativeEvent)),d===`none`?u.state.setIndices({activeIndex:null,type:t.current?`keyboard`:`pointer`}):(u.state.setSelectedValue(Array.isArray(m)?[]:null,E(O,e.nativeEvent)),u.state.setIndices({activeIndex:null,selectedIndex:null,type:t.current?`keyboard`:`pointer`})),u.state.inputRef.current?.focus()}},c,S],stateAttributesMapping:Nt});return o||C?D:null}),Ft=V.createContext(null);function It(){return V.useContext(Ft)}function K(e){let{children:t,items:n}=e,r=V.useMemo(()=>({items:n}),[n]);return(0,W.jsx)(Ft.Provider,{value:r,children:t})}function q(e){let{children:t}=e,{filteredItems:n}=H(),r=It(),i=r?r.items:n;return i?(0,W.jsx)(V.Fragment,{children:i.map(t)}):null}var Lt=V.forwardRef(function(e,t){var n;let{render:r,className:i,style:a,children:o,...s}=e,c=ft(),l=pt(),u=!!jt(!0),{filteredItems:d,hasItems:f}=H(),ee=g(c,U.selectionMode),p=g(c,U.grid),te=g(c,U.popupProps),m=g(c,U.virtualized),h=ee===`multiple`,v=d.length===0,y=_(e=>{c.set(`positionerElement`,e)}),b=_(e=>{c.set(`listElement`,e)}),x=V.useMemo(()=>typeof o==`function`?n||=(0,W.jsx)(q,{children:o}):o,[o]),S={empty:v},C=l.useState(`floatingId`),w=De(`div`,e,{state:S,ref:[t,b,u?null:y],props:[te,{children:x,tabIndex:-1,id:C,role:p?`grid`:`listbox`,"aria-multiselectable":h?`true`:void 0,onKeyDown(e){if(!(c.state.disabled||c.state.readOnly)&&e.key===`Enter`){let t=c.state.activeIndex;if(t==null)return;L(e);let n=e.nativeEvent,r=c.state.listRef.current[t];r&&(c.state.selectionEventRef.current=n,r.click(),c.state.selectionEventRef.current=null)}},onKeyDownCapture(){c.state.keyboardActiveRef.current=!0},onPointerMoveCapture(){c.state.keyboardActiveRef.current=!1}},s]});return m?w:(0,W.jsx)(Me,{elementsRef:c.state.listRef,labelsRef:f?void 0:c.state.labelsRef,children:w})}),Rt=``;function zt(e){let t=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=null;for(;t.nextNode();){let e=t.currentNode;e.nodeValue!==``&&(n=e)}return n}function J(){let e=N(),t=V.useRef(null);return V.useEffect(()=>{if(ge)return;let n=t.current;if(n==null)return;let r=zt(n);if(r==null)return;let i=r.nodeValue??``,a=`${i}${Rt}`;return r.nodeValue=a,e.start(200,()=>{r.nodeValue===a&&(r.nodeValue=i)}),()=>{e.clear(),r.nodeValue===a&&(r.nodeValue=i)}},[t,e]),t}var Bt=V.createContext(void 0);function Y(){let e=V.useContext(Bt);if(e===void 0)throw Error(F(20));return e}var Vt=V.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,i=ft(),a=g(i,U.mounted),o=g(i,U.forceMounted);return a||n||o?(0,W.jsx)(Bt.Provider,{value:n,children:(0,W.jsx)(A,{ref:t,...r})}):null}),Ht=V.forwardRef(function(e,t){let{render:r,className:i,anchor:a,positionMethod:o=`absolute`,side:s=`bottom`,align:c=`center`,sideOffset:l=0,alignOffset:u=0,collisionBoundary:d=`clipping-ancestors`,collisionPadding:f=5,arrowPadding:ee=5,sticky:p=!1,disableAnchorTracking:te=!1,collisionAvoidance:m=k,style:h,...v}=e,y=ft(),{filteredItems:b}=H(),x=pt(),S=Y(),C=g(y,U.modal),w=g(y,U.open),ne=g(y,U.mounted),T=g(y,U.openMethod),E=g(y,U.positionerElement),D=g(y,U.triggerElement),O=g(y,U.inputElement),re=g(y,U.inputGroupElement),ie=g(y,U.inputInsidePopup),ae=g(y,U.transitionStatus),A=b.length===0,j=_e({anchor:a??(ie?D:re??O),floatingRootContext:x,positionMethod:o,mounted:ne,side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:ee,collisionBoundary:d,collisionPadding:f,sticky:p,disableAnchorTracking:te,keepMounted:S,collisionAvoidance:m,lazyFlip:!0});Qe(w&&C,T===`touch`,E,D);let M={open:w,side:j.side,align:j.align,anchorHidden:j.anchorHidden,empty:A};P(()=>{y.set(`popupSide`,j.side)},[y,j.side]);let oe=_(e=>{y.set(`positionerElement`,e)}),se=Se(e,M,{styles:j.positionerStyles,transitionStatus:ae,props:v,refs:[t,oe],hidden:!ne,inert:!w});return(0,W.jsxs)(At.Provider,{value:j,children:[ne&&C&&(0,W.jsx)(n,{inert:ve(!w),cutout:re??O??D}),se]})}),X={...be,...v},Ut=V.forwardRef(function(e,n){let{render:r,className:i,style:a,initialFocus:o,finalFocus:s,...c}=e,l=ft(),u=jt(),d=pt(),{filteredItems:f}=H(),ee=g(l,U.mounted),te=g(l,U.open),m=g(l,U.openMethod),h=g(l,U.transitionStatus),_=g(l,U.inputInsidePopup),v=g(l,U.inputElement),y=g(l,U.modal),b=f.length===0;he({open:te,ref:l.state.popupRef,onComplete(){te&&l.state.onOpenChangeComplete(!0)}});let x=De(`div`,e,{state:{open:te,side:u.side,align:u.align,anchorHidden:u.anchorHidden,transitionStatus:h,empty:b},ref:[n,l.state.popupRef],props:[{role:_?`dialog`:`presentation`,tabIndex:-1,onFocus(e){let n=t(e.nativeEvent);m!==`touch`&&(C(l.state.listElement,n)||n===e.currentTarget)&&l.state.inputRef.current?.focus()}},ce(h),c],stateAttributesMapping:X}),S=o===void 0?_?e=>e===`touch`?l.state.popupRef.current:v:!1:o,w;w=s??(_?void 0:!1);let ne=!_||y;return(0,W.jsx)(p,{context:d,disabled:!ee,modal:ne,openInteractionType:m,initialFocus:S,returnFocus:w,getInsideElements:()=>[l.state.startDismissRef.current,l.state.endDismissRef.current],children:(0,W.jsxs)(V.Fragment,{children:[x,ne&&(0,W.jsx)(Mt,{ref:l.state.endDismissRef})]})})}),Wt=V.createContext(void 0);function Gt(){let e=V.useContext(Wt);if(e===void 0)throw Error(F(18));return e}var Kt=V.forwardRef(function(e,t){let{render:n,className:r,style:i,items:a,...o}=e,[s,c]=V.useState(),l=V.useMemo(()=>({labelId:s,setLabelId:c,items:a}),[s,c,a]),u=De(`div`,e,{ref:t,props:[{role:`group`,"aria-labelledby":s},o]}),d=(0,W.jsx)(Wt.Provider,{value:l,children:u});return a?(0,W.jsx)(K,{items:a,children:d}):d}),qt=V.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{setLabelId:s}=Gt(),c=ue(a);return P(()=>(s(c),()=>{s(void 0)}),[c,s]),De(`div`,e,{ref:t,props:[{id:c},o]})}),Jt=V.createContext(void 0);function Z(){let e=V.useContext(Jt);if(!e)throw Error(F(19));return e}var Q=V.createContext(!1);function Yt(){return V.useContext(Q)}var Xt=V.memo(V.forwardRef(function(e,t){let{render:n,className:r,style:i,value:a=null,index:o,disabled:s=!1,nativeButton:c=!1,...l}=e,u=V.useRef(!1),d=V.useRef(null),ee=je({index:o,textRef:d,indexGuessBehavior:Ne.GuessFromOrder}),p=ft(),te=Yt(),{flatFilteredItems:m,hasItems:h}=H(),_=g(p,U.open),v=g(p,U.selectionMode),y=g(p,U.readOnly),b=g(p,U.virtualized),x=g(p,U.isItemEqualToValue),S=v!==`none`,C=o??(b?qe(m,a,x):ee.index),w=ee.index!==-1,ne=g(p,U.id),T=g(p,U.isActive,C),E=g(p,U.isSelected,a),D=g(p,U.itemProps),O=V.useRef(null),re=ne!=null&&w?`${ne}-${C}`:void 0,ie=E&&S;P(()=>{if(!(w&&(b||o!=null)))return;let e=p.state.listRef.current;return e[C]=O.current,()=>{delete e[C]}},[w,b,C,o,p]),P(()=>{if(!w||h)return;let e=p.state.valuesRef.current;return e[C]=a,v!==`none`&&p.state.allValuesRef.current.push(a),()=>{delete e[C]}},[w,h,C,a,p,v]),P(()=>{if(!_){u.current=!1;return}if(!w||h)return;let e=p.state.selectedValue;Ue(a,Array.isArray(e)?e[e.length-1]:e,x)&&p.set(`selectedIndex`,C)},[w,h,_,p,C,a,x]);let{getButtonProps:ae,buttonRef:k}=f({disabled:s,focusableWhenDisabled:!0,native:c,composite:!0}),A={disabled:s,selected:ie,highlighted:T};function j(e){function t(){p.state.handleSelection(e,a)}p.state.submitOnItemClick?(ht.flushSync(t),p.state.requestSubmit()):t()}let M={id:re,role:te?`gridcell`:`option`,"aria-selected":S?ie:void 0,tabIndex:void 0,onPointerDownCapture(e){u.current=!0,e.preventDefault()},onMouseDown(e){e.preventDefault()},onClick(e){s||y||j(e.nativeEvent)},onMouseUp(e){let t=u.current;u.current=!1,!(s||y||e.button!==0||t||!T)&&j(e.nativeEvent)}},oe=De(`div`,e,{ref:[k,t,ee.ref,O],state:A,props:[D,M,l,ae]}),se=V.useMemo(()=>({selected:ie,textRef:d}),[ie,d]);return(0,W.jsx)(Jt.Provider,{value:se,children:oe})})),Zt=V.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...o}=e,{filteredItems:s}=H(),c=ft(),l=J(),u=s.length===0?a:null;return De(`div`,e,{ref:[t,c.state.emptyRef,l],props:[{children:u,role:`status`,"aria-live":`polite`,"aria-atomic":!0},o]})});function Qt(e){let{multiple:t=!1,defaultValue:n,value:r,onValueChange:i,autoComplete:a,...o}=e;return(0,W.jsx)(wt,{...o,selectionMode:t?`multiple`:`single`,selectedValue:r,defaultSelectedValue:n,onSelectedValueChange:i,formAutoComplete:a})}var $t=V.forwardRef(function(e,t){let n=e.keepMounted??!1,{selected:r}=Z();return n||r?(0,W.jsx)(en,{...e,ref:t}):null}),en=V.memo(V.forwardRef((e,t)=>{let{render:n,className:r,style:i,keepMounted:a,...o}=e,{selected:s}=Z(),c=V.useRef(null),{transitionStatus:l,setMounted:u}=x(s),d=De(`span`,e,{ref:[t,c],state:{selected:s,transitionStatus:l},props:[{"aria-hidden":!0,children:`✔️`},o],stateAttributesMapping:v});return he({open:s,ref:c,onComplete(){s||u(!1)}}),d})),tn=Qt;function nn({className:e,children:t,...n}){return(0,W.jsxs)(Dt,{"data-slot":`combobox-trigger`,className:R(`[&_svg:not([class*='size-'])]:size-3.5`,e),...n,children:[t,(0,W.jsx)(ke,{className:`text-muted-foreground size-3.5 pointer-events-none`})]})}function rn({className:e,...t}){return(0,W.jsx)(Pt,{"aria-label":`Clear selection`,"data-slot":`combobox-clear`,render:(0,W.jsx)(ot,{variant:`ghost`,size:`icon-xs`}),className:R(e),...t,children:(0,W.jsx)(a,{className:`pointer-events-none`})})}function an({className:e,children:t,disabled:n=!1,showTrigger:r=!0,showClear:i=!1,...a}){return(0,W.jsxs)(st,{className:R(`w-auto`,e),children:[(0,W.jsx)(G,{render:(0,W.jsx)(it,{disabled:n}),...a}),(0,W.jsxs)(at,{align:`inline-end`,children:[r&&(0,W.jsx)(nn,{render:(0,W.jsx)(ot,{size:`icon-xs`,variant:`ghost`,"data-slot":`input-group-button`,className:`group-has-data-[slot=combobox-clear]/input-group:hidden data-pressed:bg-transparent`,disabled:n})}),i&&(0,W.jsx)(rn,{disabled:n})]}),t]})}function on({className:e,side:t=`bottom`,sideOffset:n=6,align:r=`start`,alignOffset:i=0,anchor:a,...o}){return(0,W.jsx)(Vt,{children:(0,W.jsx)(Ht,{side:t,sideOffset:n,align:r,alignOffset:i,anchor:a,className:`isolate z-50`,children:(0,W.jsx)(Ut,{"data-slot":`combobox-content`,"data-chips":!!a,className:R(`bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 *:data-[slot=input-group]:bg-input/20 dark:bg-popover max-h-72 min-w-32 overflow-hidden rounded-lg shadow-md ring-1 duration-100 *:data-[slot=input-group]:m-1 *:data-[slot=input-group]:mb-0 *:data-[slot=input-group]:h-7 max-md:*:data-[slot=input-group]:h-11 *:data-[slot=input-group]:border-none *:data-[slot=input-group]:shadow-none dark group/combobox-content relative max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-[calc(var(--anchor-width)+--spacing(7))] origin-(--transform-origin) data-[chips=true]:min-w-(--anchor-width)`,e),...o})})})}function $({className:e,...t}){return(0,W.jsx)(Lt,{"data-slot":`combobox-list`,className:R(`no-scrollbar max-h-[min(calc(--spacing(72)---spacing(9)),calc(var(--available-height)---spacing(9)))] scroll-py-1 overflow-y-auto p-1 data-empty:p-0 overflow-y-auto overscroll-contain`,e),...t})}function sn({className:e,children:t,...n}){return(0,W.jsxs)(Xt,{"data-slot":`combobox-item`,className:R(`data-highlighted:bg-accent data-highlighted:text-accent-foreground not-data-[variant=destructive]:data-highlighted:**:text-accent-foreground min-h-7 gap-2 rounded-md py-1 pr-8 pl-2 text-xs/relaxed max-md:min-h-11 [&_svg:not([class*='size-'])]:size-3.5 relative flex w-full cursor-default items-center outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0`,e),...n,children:[t,(0,W.jsx)($t,{render:(0,W.jsx)(`span`,{className:`pointer-events-none absolute right-2 flex items-center justify-center`}),children:(0,W.jsx)(Oe,{className:`pointer-events-none`})})]})}function cn({className:e,...t}){return(0,W.jsx)(Kt,{"data-slot":`combobox-group`,className:R(e),...t})}function ln({className:e,...t}){return(0,W.jsx)(qt,{"data-slot":`combobox-label`,className:R(`text-muted-foreground px-2 py-1.5 text-xs`,e),...t})}function un({...e}){return(0,W.jsx)(q,{"data-slot":`combobox-collection`,...e})}function dn({className:e,...t}){return(0,W.jsx)(Zt,{"data-slot":`combobox-empty`,className:R(`text-muted-foreground hidden w-full justify-center py-2 text-center text-xs/relaxed group-data-empty/combobox-content:flex`,e),...t})}function fn({className:e,...t}){return(0,W.jsx)(fe,{className:R(`h-11 shrink-0 gap-1.5 px-3 text-sm data-[active=true]:border-primary/60 data-[active=true]:bg-primary/10 sm:h-8 sm:text-xs`,e),variant:`outline`,...t})}var pn={name:void 0,label:nt};function mn({value:t,onValueChange:n,allChannels:r=!1,pending:i=!1,active:a,className:o}){let s=rt(),[c,l]=(0,V.useState)(``),u=(0,V.useRef)(null),d=(0,V.useRef)(!1),f=s.data?.map(({name:e})=>e)??[],ee=t===void 0||f.includes(t)?f:[t,...f],p=[...r?[pn]:[],...ee.map(e=>({name:e,label:e}))],te=c.trim().toLowerCase(),m=p.filter(e=>e.label.toLowerCase().includes(te)),h=p.find(e=>e.name===t)??(t===void 0?pn:{name:t,label:t}),g=i?void 0:h.label;return(0,W.jsxs)(tn,{autoHighlight:!0,disabled:i,filter:null,inputValue:c,isItemEqualToValue:(e,t)=>e.name===t.name,itemToStringLabel:e=>e.label,items:m,onInputValueChange:l,onItemHighlighted:(e,t)=>{!d.current||t.reason!==`none`||(d.current=!1,queueMicrotask(()=>requestAnimationFrame(()=>{u.current&&(u.current.scrollTop=0)})))},onOpenChange:e=>{if(d.current=e,!e){l(``);return}s.data!==void 0&&!s.isFetching&&Date.now()-s.dataUpdatedAt>3e4&&s.refetch()},onValueChange:e=>{e!==null&&e.name!==t&&n(e.name)},value:i?null:h,children:[(0,W.jsxs)(nn,{"aria-label":g===void 0?`Channel`:`Channel: ${g}`,"data-active":a,render:(0,W.jsx)(fn,{className:o}),title:g,children:[(0,W.jsx)(`span`,{className:`text-muted-foreground`,children:`Channel`}),g===void 0?s.isError?null:(0,W.jsx)(e,{className:`h-3 w-16`}):(0,W.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-left sm:max-w-48`,translate:t===void 0?void 0:`no`,children:g})]}),(0,W.jsxs)(on,{className:`w-72 min-w-(--anchor-width)`,children:[(0,W.jsx)(an,{"aria-label":`Search channels`,maxLength:1024,placeholder:`Search channels…`,showTrigger:!1}),s.isPending?(0,W.jsx)(`p`,{className:`px-3 pt-2 text-xs text-muted-foreground`,children:`Loading channels…`}):s.isError&&s.data===void 0?(0,W.jsxs)(`div`,{className:`flex items-center justify-between gap-2 px-3 pt-2 text-xs text-muted-foreground`,children:[`Couldn't load channels.`,(0,W.jsxs)(fe,{className:`max-md:min-h-11`,onClick:()=>void s.refetch(),size:`sm`,variant:`outline`,children:[(0,W.jsx)(Pe,{"data-icon":`inline-start`}),`Retry channels`]})]}):null,(0,W.jsx)(dn,{className:`flex-col items-center gap-2 px-3`,children:te===``?null:(0,W.jsxs)(W.Fragment,{children:[`No channel matches “`,c.trim(),`”.`,(0,W.jsx)(fe,{className:`max-md:min-h-11`,onClick:()=>l(``),size:`sm`,variant:`outline`,children:`Clear search`})]})}),(0,W.jsx)($,{ref:u,children:e=>(0,W.jsx)(sn,{value:e,children:(0,W.jsx)(`span`,{className:`min-w-0 [overflow-wrap:anywhere]`,translate:e.name===void 0?void 0:`no`,children:e.label})},e.name??``)})]})]})}export{on as a,an as c,$ as d,nn as f,un as i,sn as l,fn as n,dn as o,tn as r,cn as s,mn as t,ln as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Cr as e,Sr as t,Vr as n,xr as r}from"./sidebar-BmzmPGuv.js";import{s as i}from"./tabs-
|
|
1
|
+
import{Cr as e,Sr as t,Vr as n,xr as r}from"./sidebar-BmzmPGuv.js";import{s as i}from"./tabs-BnpNC0zf.js";var a=n(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]);function o(n){let{render:a,className:o,style:s,state:c=e,props:l=t,refs:u=t,metadata:d,stateAttributesMapping:f,tag:p=`div`,...m}=n,{compositeProps:h,compositeRef:g}=i({metadata:d});return r(p,n,{state:c,ref:[...u,g],props:[h,...l,m],stateAttributesMapping:f})}export{a as n,o as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Di as e,_r as t,p as n}from"./sidebar-BmzmPGuv.js";import{a as r,c as i,n as a,o}from"./console-features-api-CtbGqKyr.js";import{t as s}from"./arrow-up-right-C_1ALUCD.js";import{t as c}from"./NotFoundPage-
|
|
1
|
+
import{Di as e,_r as t,p as n}from"./sidebar-BmzmPGuv.js";import{a as r,c as i,n as a,o}from"./console-features-api-CtbGqKyr.js";import{t as s}from"./arrow-up-right-C_1ALUCD.js";import{t as c}from"./NotFoundPage-BEpesHEm.js";import{i as l,n as u,o as d,r as f,t as p}from"./empty-C5GqArX9.js";var m=e(),h=`https://hot-updater.dev/docs/guides/console-deployment`;function g({data:e}){let g=a(e),_=r().data?.remote===!0;if(g===void 0)return(0,m.jsx)(c,{});let{label:v,plugin:y}=o[g],b=(0,m.jsx)(`code`,{className:`font-mono`,children:`${y}()`});return(0,m.jsxs)(`div`,{className:`flex h-svh min-h-0 flex-col`,children:[(0,m.jsxs)(`header`,{className:`sticky top-0 z-10 flex shrink-0 items-center gap-3 border-b bg-background px-3 py-3 sm:min-h-12 sm:bg-card/70 sm:px-4 sm:backdrop-blur-sm`,children:[(0,m.jsx)(n,{className:`-ml-1`}),(0,m.jsx)(`h1`,{className:`text-sm font-medium`,children:v})]}),(0,m.jsx)(`div`,{className:`flex min-h-0 min-w-0 flex-1 overflow-y-auto bg-muted/5 p-3 sm:p-6`,children:(0,m.jsxs)(p,{children:[(0,m.jsx)(l,{children:i(g,{remote:_})===`remote`?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(d,{children:`Needs the server's database`}),(0,m.jsx)(f,{children:`This console reaches a self-hosted server through its admin API, which does not serve this page. Configure the console with the database the server uses.`})]}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(d,{children:[v,` not installed`]}),(0,m.jsxs)(f,{children:[`Add `,b,` to `,(0,m.jsx)(`code`,{className:`font-mono`,children:`plugins`}),` `,`where you create the server and in the console config.`]})]})}),(0,m.jsx)(u,{children:(0,m.jsxs)(`a`,{className:t({variant:`outline`}),href:h,rel:`noreferrer`,target:`_blank`,children:[`Console setup guide`,(0,m.jsx)(s,{"aria-hidden":`true`,"data-icon":`inline-end`})]})})]})})]})}export{g as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Di as e,Ri as t,Vi as n,Vr as r,_ as i,b as a,g as o,gr as s,v as c,x as l,y as u}from"./sidebar-BmzmPGuv.js";import{f as d}from"./insights-api-D4-FZeEI.js";import{t as f}from"./check-C3VCvMOV.js";import{a as p}from"./useCompositeListItem-Cbk_weKW.js";import{t as m}from"./copy-BjVLMKbo.js";import{t as h}from"./download-CgpaZb23.js";import{n as g}from"./dist-BEmib-ZM.js";import{t as _}from"./rotate-ccw-tITIe0Bd.js";import{t as v}from"./smartphone-Dy13ukaU.js";import{t as y}from"./badge-zMibJGR5.js";import{i as b,o as x,r as S,t as C}from"./empty-C5GqArX9.js";import{t as w}from"./HashValueDisplay-DvwvQchI.js";import{n as T,r as E}from"./InsightsPageHeader-BjUAikRe.js";var D=r(`activity`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),O=r(`arrow-right-left`,[[`path`,{d:`m16 3 4 4-4 4`,key:`1x1c3m`}],[`path`,{d:`M20 7H4`,key:`zbl0bi`}],[`path`,{d:`m8 21-4-4 4-4`,key:`h9nckh`}],[`path`,{d:`M4 17h16`,key:`g4d7ey`}]]),k=r(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),A=r(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),j=n(t(),1),M=e(),N={UPDATE_DOWNLOADED:{label:`Downloaded`,description:`Downloaded. It launches when the app restarts.`,variant:`default`,icon:h},UPDATE_APPLIED:{label:`Launched`,description:`The app restarted into the downloaded bundle.`,variant:`success`,icon:f},RECOVERED:{label:`Crashed`,description:`Crashed on the bundle and rolled back.`,variant:`warning`,icon:_},UPDATE_FAILED:{label:`Update failed`,description:`An update check, download, or install failed.`,variant:`destructive`,icon:k},UNCHANGED:{label:`Launch`,description:`The app launched; the report changed nothing.`,variant:`secondary`,icon:D}},P=e=>{let{kinds:t=[],previous:n}=e.change??{};return t.includes(`first_seen`)?{label:`First seen`,description:`The installation's first report to this server.`,variant:`secondary`,icon:A}:t.includes(`app_version`)||t.includes(`native_build`)?{label:`App updated`,description:n&&n.appVersion!==e.appVersion?`From app ${n.appVersion} to ${e.appVersion}.`:`A new build of the same app version.`,variant:`secondary`,icon:v}:t.includes(`bundle`)?{label:`Launched`,description:`Seen running this bundle; the report of the restart into it never arrived.`,variant:`success`,icon:f}:t.includes(`release`)?{label:`Release adopted`,description:`The bundle it runs now ships under another release.`,variant:`secondary`,icon:O}:t.includes(`channel`)?{label:`Channel changed`,description:n?`From ${n.channel} to ${e.channel}.`:`It reports on another channel.`,variant:`secondary`,icon:O}:N.UNCHANGED},F=e=>e.type===`UNCHANGED`&&e.change?P({change:e.change,appVersion:e.appVersion??``,channel:e.channel??``}):N[e.type];function I(){let[e,t]=(0,j.useState)(`UTC`);return(0,j.useEffect)(()=>{t(Intl.DateTimeFormat().resolvedOptions().timeZone)},[]),new Intl.DateTimeFormat(`en`,{timeZone:e,timeZoneName:`shortOffset`,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hourCycle:`h23`})}function L(e,t){let n=Object.fromEntries(t.formatToParts(new Date(e)).map(({type:e,value:t})=>[e,t])),r=n.timeZoneName===`GMT`?`GMT+0`:n.timeZoneName;return`${n.year}/${n.month}/${n.day} ${n.hour}:${n.minute}:${n.second} ${r}`}function R({value:e,formatter:t,touch:n=!1}){let r=new Date(e),i=L(e,t);return(0,M.jsxs)(`details`,{className:`group/time`,children:[(0,M.jsx)(`summary`,{className:`cursor-pointer list-none rounded-md outline-none focus-visible:ring-2 focus-visible:ring-ring/30 [&::-webkit-details-marker]:hidden ${n?`flex min-h-11 items-center`:``}`,children:(0,M.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,M.jsx)(`time`,{dateTime:r.toISOString(),className:`whitespace-nowrap`,children:i}),(0,M.jsx)(p,{"aria-hidden":`true`,className:`size-3 text-muted-foreground group-open/time:rotate-180`})]})}),(0,M.jsx)(`p`,{className:`mt-2 text-muted-foreground`,children:r.toISOString().replace(`T`,` `).replace(`Z`,` UTC`)})]})}var z={patch:`A patch delivered it.`,manifest:`Only the changed files were downloaded.`,archive:`The full archive was downloaded.`},B=e=>{if(e.late)return`Counted nothing: the installation had already downloaded or run this bundle.`;if(e.impliedDownload)return`Its download report never arrived; the download counted with it.`;if(e.type===`UPDATE_FAILED`&&e.failure)return d(e.failure);if(e.type===`UPDATE_DOWNLOADED`&&e.delivery){let t=z[e.delivery]??null;return e.patchFallback?`The patch failed. ${t??``}`.trim():t}return null};function V({response:e}){let t=async()=>{try{await navigator.clipboard.writeText(e.body),g.success(`Response body copied`)}catch{g.error(`Could not copy the response body`)}};return(0,M.jsxs)(`section`,{"aria-label":`Response body`,className:`flex min-w-0 flex-col gap-3`,children:[(0,M.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,M.jsx)(`h3`,{className:`text-sm font-medium`,children:`Response body`}),(0,M.jsxs)(s,{variant:`outline`,className:`min-h-11`,disabled:e.body===null||e.body===``,onClick:()=>void t(),children:[(0,M.jsx)(m,{"aria-hidden":`true`,"data-icon":`inline-start`}),` Copy body`]})]}),e.bodyTruncated?(0,M.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Truncated to the 4 KiB reporting limit. Copy includes only the stored text.`}):null,e.body?(0,M.jsx)(`pre`,{className:`rounded-md border bg-muted/30 p-4 font-mono text-xs leading-relaxed whitespace-pre-wrap wrap-anywhere`,children:e.body}):(0,M.jsx)(C,{children:(0,M.jsxs)(b,{children:[(0,M.jsx)(x,{children:e.body===null?`Response body unavailable`:`Empty response body`}),(0,M.jsx)(S,{children:e.body===null?`The client received the HTTP status but could not read the body.`:e.status===304?`The server returned no body. The client can reuse its cached catalog.`:`The server returned no text in this response.`})]})})]})}function H({event:e}){let t=e.httpResponse,n=I(),r=t.status===304?`Not modified`:t.status>=500?`Server error`:t.status>=400?`Request error`:t.status>=300?`Redirect`:`Success`,d=t.resource===`catalog`?`Catalog`:`Artifact`,f=[[`App`,e.platform&&`${e.platform===`ios`?`iOS`:`Android`} ${e.appVersion}`],[`Channel`,e.channel],[`SDK`,e.sdkVersion],[`Installation`,e.installId]].filter(([,e])=>e!=null);return(0,M.jsxs)(o,{children:[(0,M.jsxs)(l,{"aria-label":`View ${d.toLowerCase()} response: HTTP ${t.status}`,render:(0,M.jsx)(s,{variant:`ghost`,className:`-ml-2 h-auto min-h-11 justify-start`}),children:[(0,M.jsxs)(y,{variant:t.status>=400?`destructive`:`secondary`,children:[`HTTP `,t.status]}),(0,M.jsxs)(`span`,{children:[d,` response`]})]}),(0,M.jsxs)(i,{className:`data-[side=right]:w-full data-[side=right]:sm:max-w-2xl`,children:[(0,M.jsxs)(u,{className:`border-b pr-14`,children:[(0,M.jsx)(a,{children:`HTTP response`}),(0,M.jsxs)(c,{children:[d,` · HTTP `,t.status,` · `,r,`. Most recent response available when this report was created.`]})]}),(0,M.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col gap-6 overflow-y-auto p-6`,children:[(0,M.jsxs)(`section`,{"aria-label":`Request`,className:`flex min-w-0 flex-col gap-2`,children:[(0,M.jsx)(`h3`,{className:`text-sm font-medium`,children:`Request`}),(0,M.jsxs)(`p`,{className:`font-mono text-xs leading-relaxed whitespace-pre-wrap wrap-anywhere`,children:[`GET `,t.path]}),t.receivedAtMs==null?null:(0,M.jsxs)(`div`,{className:`text-xs text-muted-foreground`,children:[`Response received`,` `,(0,M.jsx)(R,{value:t.receivedAtMs,formatter:n})]})]}),(0,M.jsx)(V,{response:t}),f.length?(0,M.jsxs)(`section`,{"aria-label":`Response context`,className:`flex flex-col gap-3`,children:[(0,M.jsx)(`h3`,{className:`text-sm font-medium`,children:`Response context`}),(0,M.jsx)(`dl`,{className:`grid grid-cols-2 gap-x-6 gap-y-4`,children:f.map(([e,t])=>(0,M.jsxs)(`div`,{className:`min-w-0`,children:[(0,M.jsx)(`dt`,{className:`text-xs text-muted-foreground`,children:e}),(0,M.jsx)(`dd`,{className:`mt-1 text-sm wrap-anywhere`,children:t})]},e))})]}):null]})]})]})}function U({event:e}){let t=F(e),n=t.icon,r=B(e);return(0,M.jsxs)(`div`,{className:`flex min-w-0 flex-col items-start gap-2`,children:[(0,M.jsxs)(y,{variant:t.variant,className:`gap-1 whitespace-nowrap [&_svg]:size-3`,children:[(0,M.jsx)(n,{"aria-hidden":`true`}),t.label]}),(0,M.jsx)(`p`,{className:`max-w-56 whitespace-pre-wrap wrap-anywhere text-xs text-muted-foreground`,children:e.type===`UPDATE_FAILED`&&r?r:t.description}),e.httpResponse?(0,M.jsx)(H,{event:e}):null,e.type===`UPDATE_FAILED`&&e.failure?.errorStack?(0,M.jsxs)(`details`,{className:`w-full max-w-56 text-xs`,children:[(0,M.jsx)(`summary`,{className:`cursor-pointer text-muted-foreground`,children:`Stack trace`}),(0,M.jsx)(`pre`,{className:`mt-2 max-h-64 overflow-auto whitespace-pre-wrap wrap-anywhere font-mono`,children:e.failure.errorStack})]}):null,e.type!==`UPDATE_FAILED`&&r?(0,M.jsx)(`p`,{className:`max-w-56 whitespace-normal text-xs text-muted-foreground`,children:r}):null]})}function W({event:e,touch:t=!1}){let n=e.type===`UPDATE_DOWNLOADED`,r=e.type===`UPDATE_FAILED`,i=!r||e.failure?.stage!==`check`,a=e.type===`UNCHANGED`&&e.change?.kinds.includes(`bundle`)===!0&&e.change.previous!==void 0,o=a?e.change.previous.bundleId:e.fromBundleId,s=n||r||a||e.type===`UPDATE_APPLIED`||e.type===`RECOVERED`;return(0,M.jsxs)(`dl`,{className:`grid grid-cols-[auto_minmax(0,1fr)] items-center gap-x-2 gap-y-2`,children:[o&&s?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`dt`,{className:`text-muted-foreground`,children:n||r?`Running`:`From`}),(0,M.jsxs)(`dd`,{className:`flex min-w-0 flex-wrap items-center gap-2`,children:[(0,M.jsx)(w,{value:o,buttonClassName:t?`min-h-11 px-3`:void 0}),E(o,a?e.change.previous.minBundleId:e.minBundleId)?(0,M.jsx)(T,{}):null]})]}):null,i?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`dt`,{className:`text-muted-foreground`,children:n?`Pending`:r?`Target`:s?`To`:`Current`}),(0,M.jsxs)(`dd`,{className:`flex min-w-0 flex-wrap items-center gap-2`,children:[(0,M.jsx)(w,{value:e.toBundleId,buttonClassName:t?`min-h-11 px-3`:void 0}),E(e.toBundleId,e.minBundleId)?(0,M.jsx)(T,{}):null]})]}):null]})}export{H as a,V as i,R as n,I as o,U as r,W as t};
|
package/.output/public/assets/{InsightsPageHeader-D0Nxcccp.js → InsightsPageHeader-BjUAikRe.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Di as e,_r as t,p as n}from"./sidebar-BmzmPGuv.js";import{t as r}from"./link-CRMwpc7-.js";import{i,s as a}from"./console-features-api-CtbGqKyr.js";import{b as o,x as s}from"./insights-api-D4-FZeEI.js";import{t as c}from"./list-DQ9YBIDW.js";import{a as l,i as u,n as d,o as f,t as p}from"./badge-zMibJGR5.js";import{i as m,r as h,t as g}from"./tabs-
|
|
1
|
+
import{Di as e,_r as t,p as n}from"./sidebar-BmzmPGuv.js";import{t as r}from"./link-CRMwpc7-.js";import{i,s as a}from"./console-features-api-CtbGqKyr.js";import{b as o,x as s}from"./insights-api-D4-FZeEI.js";import{t as c}from"./list-DQ9YBIDW.js";import{a as l,i as u,n as d,o as f,t as p}from"./badge-zMibJGR5.js";import{i as m,r as h,t as g}from"./tabs-BnpNC0zf.js";var _=e();function v({error:e,fallbackTitle:t}){return a(e)?(0,_.jsxs)(d,{children:[(0,_.jsx)(o,{"aria-hidden":`true`}),(0,_.jsx)(l,{children:`Insights not installed`}),(0,_.jsx)(u,{children:e.message})]}):(0,_.jsxs)(d,{variant:`destructive`,children:[(0,_.jsx)(f,{"aria-hidden":`true`}),(0,_.jsx)(l,{children:t}),(0,_.jsx)(u,{children:`Refresh to try again. If this keeps happening, check your Insights provider connection.`})]})}var y={"24h":{label:`DAU`,period:`24 hours`,interval:`hour`},"7d":{label:`WAU`,period:`7 days`,interval:`6 hours`},"30d":{label:`MAU`,period:`30 days`,interval:`day`},"12m":{label:`YAU`,period:`12 months`,interval:`week`}};function b({label:e,onPeriodChange:t,period:n,periods:r}){return(0,_.jsx)(g,{value:n,onValueChange:e=>{let n=r.find(t=>t.value===e);n&&t(n.value)},children:(0,_.jsx)(h,{"aria-label":e,className:`min-h-11 sm:min-h-9`,children:r.map(({value:e,name:t})=>(0,_.jsx)(m,{value:e,"aria-label":t,className:`min-w-12 px-3`,children:e},e))})})}var x=[`24h`,`7d`,`30d`].map(e=>({value:e,name:y[e].period})),S=Object.keys(y).map(e=>({value:e,name:y[e].period}));function C({window:e,onWindowChange:t}){return(0,_.jsx)(b,{label:`Reporting period`,onPeriodChange:t,period:e,periods:x})}function w({window:e,onWindowChange:t,twelveMonths:n=!0}){return(0,_.jsx)(b,{label:`Reporting period`,onPeriodChange:t,period:e,periods:S.filter(({value:e})=>n||e!==`12m`)})}var T=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-7000-8000-(?:000000000000|0[12][0-9a-f]{10})|00000000-0000-0000-0000-000000000000)$/iu,E=(e,t)=>e!=null&&(e===t||T.test(e));function D(){return(0,_.jsx)(p,{className:`shrink-0 font-sans font-normal`,title:`The bundle the native build shipped`,variant:`secondary`,children:`Built-in bundle`})}function O({view:e,overviewSearch:a}){let o=i(`insightsAnalytics`);return(0,_.jsxs)(`header`,{className:`sticky top-0 z-10 flex shrink-0 flex-wrap items-center gap-3 border-b bg-background px-3 py-3 sm:bg-card/70 sm:px-4 sm:backdrop-blur-sm`,children:[(0,_.jsx)(n,{className:`-ml-1 size-11 lg:size-7`}),(0,_.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,_.jsx)(s,{"aria-hidden":`true`,className:`size-3.5 text-muted-foreground`}),(0,_.jsx)(`h1`,{className:`text-sm font-medium`,children:`Insights`})]}),(0,_.jsxs)(`nav`,{"aria-label":`Insights views`,className:`ml-auto flex gap-2`,children:[o?(0,_.jsx)(r,{"aria-current":e===`overview`?`page`:void 0,className:t({className:`h-11 px-3 lg:h-8 lg:px-2.5`,size:`lg`,variant:e===`overview`?`secondary`:`ghost`}),search:a,to:`/insights`,children:`Overview`}):null,(0,_.jsxs)(r,{"aria-current":e===`events`?`page`:void 0,className:t({className:`h-11 px-3 lg:h-8 lg:px-2.5`,size:`lg`,variant:e===`events`?`secondary`:`ghost`}),to:`/installations`,children:[(0,_.jsx)(c,{"aria-hidden":`true`,"data-icon":`inline-start`}),`All events`]})]})]})}export{b as a,v as c,C as i,D as n,w as o,E as r,y as s,O as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as e,Di as t,Hr as n,Oi as r,Q as i,Ri as a,Si as o,Vi as s,_r as c,di as l,gr as u,wi as d,zr as f}from"./sidebar-BmzmPGuv.js";import{t as p}from"./link-CRMwpc7-.js";import{t as m}from"./useMutation-D7IuoOLE.js";import{a as ee}from"./-native-builds-search-qeto9-fq.js";import{t as te}from"./loader-circle-8lunBReu.js";import{E as h,a as g,b as _,f as v,i as y,l as b,o as x,p as S,r as C,u as ne,w as re}from"./native-builds-uKuvmyXZ.js";import{r as ie}from"./dist-BEmib-ZM.js";import{t as ae}from"./smartphone-Dy13ukaU.js";import{a as w,i as T,n as E,o as D}from"./badge-zMibJGR5.js";import{n as oe}from"./relativeTime-Dbefsycs.js";import{a as se,n as ce,r as le,t as ue}from"./field-BiSGCVoS.js";import{m as de}from"./api-tJRzijjy.js";var O=s(a(),1),k=s(oe(),1),fe=d({method:`GET`}).middleware([f]).handler(r(`3a62744a539db57f5a29f39cec7fb03fd2817703b40d98e6da69e2f5e7ae6f3d`)),pe=d({method:`POST`}).middleware([f]).handler(r(`7138a71df2ede8dd2c3db732d8d0ae10c56b85a8177dcdacf4e747b8087177c6`)),me=d({method:`POST`}).middleware([f]).handler(r(`4b173c2b2f5ea074a1f10862282308f11f5a043c044d64b6f63e6a29d571ec64`)),he=d({method:`POST`}).middleware([f]).handler(r(`7908c24ccc2674ce07a553a645b8f4790889975a80f424a05d71a9fb8ab49787`)),ge=d({method:`POST`}).middleware([f]).handler(r(`4c92dfeae76a6fc898d6f38941eeedaec1f3d118f51a6f31ebf0bb1cea3fcea4`)),_e=d({method:`POST`}).middleware([f]).handler(r(`8e37ec67413ceba554adb2d4b15e53682595a089d4b431ba7965d4347fb500fc`)),ve=d({method:`GET`}).middleware([f]).handler(r(`a11cb4014e6b23528f76382c43684798b0e84a6936aaba02c918e8f4e216e282`)),A={all:[`ios-devices`],list:e=>[`ios-devices`,e??`all`],device:e=>[`ios-devices`,`device`,e],kept:e=>[`ios-devices`,`kept`,e??``],ipa:e=>[`native-build-ipa-devices`,e]},j=600*1e3;function ye(e){return n({queryKey:A.list(e),queryFn:()=>fe({data:e===void 0?{}:{status:e}}),placeholderData:l})}function be(e){return n({queryKey:A.device(e??``),queryFn:()=>pe({data:{udid:e}}),enabled:e!==null})}function M(e,t=!0){return n({queryKey:[`ios-device-profile-link`,e],queryFn:()=>me({data:e}),enabled:t,staleTime:j,refetchInterval:j})}function N(e){return n({queryKey:A.ipa(e),queryFn:()=>ve({data:{id:e}})})}var P=e=>{let t=o();return m({mutationFn:e,onSettled:async()=>{await Promise.all([t.invalidateQueries({queryKey:A.all}),t.invalidateQueries({queryKey:[`native-build-install-eligibility`]})])}})},xe=()=>P(e=>he({data:e})),Se=()=>P(e=>ge({data:e})),Ce=()=>P(e=>_e({data:e})),F=(e,t)=>`${e}/_hot-updater/devices/${t}`,I=async(e,t={})=>{let{json:n,...r}=t,i=await fetch(e,{credentials:`same-origin`,...r,...n===void 0?{}:{headers:{"content-type":`application/json`},body:JSON.stringify(n)}}),a=await i.json().catch(()=>null);if(!i.ok||a===null)throw Error(a?.error??`Request failed (${i.status}).`);return a},L=`hot-updater-ios-device-kept`,R=`hot-updater-ios-device-kept`,z=new Map,B=(e,t)=>{let n=z.get(t);return n===void 0&&(n=I(F(e,`receipt`),{method:`POST`,json:{receipt:t}}).then(e=>{h(t),window.dispatchEvent(new Event(L));try{window.localStorage.setItem(R,String(Date.now()))}catch{}return e},e=>{throw z.delete(t),e}),z.set(t,n)),n};function V(e,t,r){let i=o();return(0,O.useEffect)(()=>{let e=()=>void i.invalidateQueries({queryKey:A.kept(null),exact:!0}),t=t=>{t.key===R&&e()};return window.addEventListener(L,e),window.addEventListener(`storage`,t),()=>{window.removeEventListener(L,e),window.removeEventListener(`storage`,t)}},[i]),n({queryKey:A.kept(t),queryFn:async()=>{let n=null;t!==null&&await B(e,t).catch(e=>{n=e});let r=await I(F(e,`receipt`));if(n!==null&&r.udid===null)throw n;return r},enabled:r,retry:!1,staleTime:1/0})}var we=async e=>{await I(F(e,`receipt`),{method:`DELETE`}).catch(()=>void 0)},H=e=>P(t=>I(F(e,`request`),{method:`POST`,json:t.receipt===null?{name:t.name}:{name:t.name,receipt:t.receipt}})),U=(e,t)=>e!=null&&t!==null&&e.toLowerCase()===t.toLowerCase(),W=t(),Te=`With the same bundle ID, this install replaces the App Store's copy of the app on this iPhone.`,G=`h-auto min-h-11 w-full min-w-0 py-2 whitespace-normal sm:min-h-8 sm:w-fit`,K=e=>/iPhone|iPod|iPad/u.test(e.userAgent)||/Macintosh/u.test(e.userAgent)&&e.maxTouchPoints>1,q=()=>{if(typeof window>`u`)return{udid:null,receipt:null,requested:!1};let e=new URLSearchParams(window.location.hash.slice(1)),t=e.get(`udid`),n=t!==null&&y.test(t)?t:null;return{udid:n,receipt:n===null?null:e.get(`r`),requested:n!==null&&e.get(`requested`)===`1`}},Ee=e=>{try{return window.localStorage.getItem(e)}catch{return null}},J=(e,t)=>{try{window.localStorage.setItem(e,t)}catch{}},Y=`hot-updater-ios-device-adopted`,X=(e,t)=>{let n=e?.ios===!0&&e.udid===null&&t!=null&&y.test(t)?t:null;(0,O.useEffect)(()=>{n!==null&&(J(g,n),window.dispatchEvent(new Event(Y)))},[n])},De=()=>{let[e,t]=(0,O.useState)(null),[n]=(0,O.useState)(q);return(0,O.useEffect)(()=>{let e=e=>e!=null&&y.test(e)?e:null,r=n,i=0,a=e=>{let t=e.receipt!==null||e.requested;e.udid!==null&&t&&(i+=1,J(g,e.udid),e.receipt!==null&&(v(e.udid,e.receipt),B(ne(window.location),e.receipt).catch(()=>void 0))),e.udid!==null&&window.location.hash!==``&&window.history.replaceState(window.history.state,``,`${window.location.pathname}${window.location.search}`)};a(n);try{window.localStorage.removeItem(C)}catch{}let o=()=>{let n=e(Ee(`hot-updater-ios-udid`))??r.udid,a=(r.udid===n?r.receipt:null)??re(n),o=r.requested,s=i;t(e=>e!==null&&e.udid===n&&e.receipt===a&&e.requested===o&&e.answers===s?e:{ios:K(navigator),udid:n,receipt:a,requested:o,answers:s})};o();let s=e=>{(e.key===null||e.key===`hot-updater-ios-udid`)&&o()},c=()=>{let e=q();e.udid!==null&&(r=e,a(e)),o()};return window.addEventListener(`storage`,s),window.addEventListener(Y,o),window.addEventListener(`hashchange`,c),window.addEventListener(`pageshow`,c),document.addEventListener(`visibilitychange`,c),()=>{window.removeEventListener(`storage`,s),window.removeEventListener(Y,o),window.removeEventListener(`hashchange`,c),window.removeEventListener(`pageshow`,c),document.removeEventListener(`visibilitychange`,c)}},[n]),e},Oe=300*1e3,ke=(e,t)=>{let[,n]=(0,O.useReducer)(e=>e+1,0),r=e+x-Oe;return(0,O.useEffect)(()=>{if(!t)return;let e=setTimeout(n,Math.max(0,r-Date.now()));return document.addEventListener(`visibilitychange`,n),window.addEventListener(`pageshow`,n),()=>{clearTimeout(e),document.removeEventListener(`visibilitychange`,n),window.removeEventListener(`pageshow`,n)}},[r,t]),t&&Date.now()>=r};function Z({fetching:e,onRenew:t}){return(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,W.jsxs)(`p`,{className:`text-xs text-muted-foreground`,role:`status`,children:[`This install link has expired.`,e?` Getting a new one.`:``]}),e?null:(0,W.jsx)(u,{className:G,onClick:t,variant:`outline`,children:`Get a new link`})]})}function Ae({build:e,token:t}){return(0,W.jsx)(`a`,{className:c({className:G}),href:_(window.location,e.id,t),children:`Install`})}function je(){return(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`On iOS 16 or later, the app opens only with Developer Mode on: Settings, Privacy & Security, Developer Mode.`}),(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:Te})]})}function Q({build:t,again:n=!1}){let r=M({mode:`identify`,buildId:t.id});return r.data?.status===`no-secret`?(0,W.jsxs)(`p`,{className:`text-xs text-muted-foreground`,role:`status`,children:[`Set `,r.data.secretName,` on the Console to check iPhones from this page.`]}):r.data?.status===`issued`?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(`a`,{className:c({className:G,variant:n?`secondary`:`default`}),href:S(b(window.location,t.id),r.data.token),children:[(0,W.jsx)(ae,{"data-icon":`inline-start`}),n?`Check this iPhone again`:`Check this iPhone`]}),(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Allow the download, then install it in Settings, where iOS calls it not signed. Nothing stays installed.`})]}):r.isError?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(E,{variant:`destructive`,children:[(0,W.jsx)(D,{}),(0,W.jsx)(w,{children:`The check couldn't start`}),(0,W.jsx)(T,{children:`Check your connection and try again.`})]}),(0,W.jsxs)(u,{className:G,disabled:r.isFetching,onClick:()=>void r.refetch(),variant:`outline`,children:[(0,W.jsx)(ie,{"data-icon":`inline-start`}),`Reload`]})]}):(0,W.jsx)(e,{"aria-label":`Preparing the check`,className:`h-11 w-full`})}var Me=e=>(0,k.default)(e).format(`MMM D`);function $({device:e,canApprove:t,onDevicesPage:n=!1}){return(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3`,children:[(0,W.jsxs)(E,{children:[(0,W.jsx)(D,{}),(0,W.jsx)(w,{children:`Apple didn't register this iPhone`}),(0,W.jsx)(T,{children:e.apple_error})]}),t?n?null:(0,W.jsx)(p,{className:c({className:G,variant:`outline`}),to:`/native-builds/devices`,children:`iOS devices`}):(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e.status===`approved`?`Ask a maintainer to free a device slot.`:`Ask a maintainer to check it on the iOS devices page.`})]})}function Ne({build:t,device:n,registry:r,newerBuild:a,canApprove:o,registryReadAt:s}){let l=b(window.location,t.id),d=H(l),f=V(l,n.receipt,n.ios&&n.udid!==null&&r===null),m=n.receipt!==null||U(f.data?.udid,n.udid),[h,g]=(0,O.useState)(``),[_,v]=(0,O.useState)(null),y=_!==null&&s<=_.readBefore,x=y?_.device:r,S=(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,W.jsx)(`p`,{className:`text-sm font-medium`,children:`Not in this build`}),(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`This IPA was signed without this iPhone, and iOS won't install it here.`})]});if(x!==null){let e=y?null:a;return x.apple_error!==null&&e===null?(0,W.jsx)($,{canApprove:o,device:x}):(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3`,children:[S,(0,W.jsx)(`p`,{className:`text-sm`,role:`status`,children:x.status===`pending`?`${x.name} was requested on ${Me(x.created_at_ms)}. A maintainer approves it next.`:e===null?`${x.name} is ${x.status}. It joins the next ad hoc build.`:`A newer build has ${x.name}.`}),e===null?null:(0,W.jsx)(p,{className:c({className:G}),params:{buildId:e},to:`/native-builds/$buildId`,children:`Open the newer build`})]})}if(!m&&f.isPending&&n.udid!==null)return(0,W.jsx)(e,{"aria-label":`Reading this iPhone`,className:`h-11 w-full`});if(!m)return(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3`,children:[S,(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Check this iPhone once more to request it for the next ad hoc build.`}),(0,W.jsx)(Q,{build:t,again:!0})]});let C=h.trim();return(0,W.jsxs)(`form`,{className:`flex min-w-0 flex-col gap-3`,onSubmit:e=>{if(e.preventDefault(),C===``)return;let t=s;d.mutate({receipt:n.receipt,name:C},{onSuccess:({device:e})=>v({device:e,readBefore:t})})},children:[S,(0,W.jsxs)(ue,{"data-invalid":d.isError||void 0,children:[(0,W.jsx)(se,{htmlFor:`ios-device-name`,children:`This iPhone's name`}),(0,W.jsx)(i,{autoComplete:`off`,className:`h-11 sm:h-8`,id:`ios-device-name`,maxLength:100,onChange:e=>g(e.target.value),placeholder:`Kim's iPhone`,value:h}),(0,W.jsx)(ce,{children:`A maintainer approves it, and it joins the next ad hoc build.`}),(0,W.jsx)(le,{children:d.isError?`The request didn't go through. Check this iPhone again, then try once more.`:null})]}),(0,W.jsxs)(u,{className:G,disabled:C===``||d.isPending,type:`submit`,children:[d.isPending?(0,W.jsx)(te,{className:`animate-spin motion-reduce:animate-none`,"data-icon":`inline-start`}):(0,W.jsx)(ee,{"data-icon":`inline-start`}),`Request access`]}),d.isError?(0,W.jsx)(Q,{again:!0,build:t}):null]})}function Pe({build:t,device:n}){X(n,V(b(window.location,t.id),n.receipt,n.ios&&n.udid===null).data?.udid);let{udid:r}=n,i=de(t.id,r),{refetch:a}=i,o=ke(i.dataUpdatedAt,i.data?.status===`installable`&&i.data.device===`included`);if((0,O.useEffect)(()=>{o&&a()},[o,a]),i.isPending)return(0,W.jsx)(e,{"aria-label":`Reading this IPA`,className:`h-11 w-full`});let s=i.data;if(s===void 0||s.status===`unavailable`)return(0,W.jsxs)(E,{children:[(0,W.jsx)(D,{}),(0,W.jsx)(w,{children:`Installation details unavailable`}),(0,W.jsx)(T,{children:`The Console couldn't read this IPA from storage in parts, which takes an HTTPS download link that answers Range requests. Other ways to install still work from a computer.`})]});if(s.status===`store`)return(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:t.is_sandbox?`This IPA is an App Store export, which doesn't install from this page.`:`This IPA is an App Store export, which installs through TestFlight, not from this page.`});if(s.status===`expired`)return(0,W.jsxs)(E,{variant:`destructive`,children:[(0,W.jsx)(D,{}),(0,W.jsx)(w,{children:`This build's profile has expired`}),(0,W.jsxs)(T,{children:[`It expired on `,(0,k.default)(s.expiresAt).format(`YYYY-MM-DD`),`. A maintainer rebuilds it to install again.`]})]});let c=s.link.status===`issued`?s.link.token:null;return s.link.status===`no-secret`?(0,W.jsxs)(`p`,{className:`text-xs text-muted-foreground`,role:`status`,children:[`Set `,s.link.secretName,` on the Console to install from this page.`]}):c===null?null:s.device===`included`?(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3`,children:[(0,W.jsx)(`p`,{className:`text-sm font-medium`,children:`In this build`}),o?(0,W.jsx)(Z,{fetching:i.isFetching,onRenew:()=>void a()}):(0,W.jsx)(Ae,{build:t,token:c}),(0,W.jsx)(je,{})]}):s.device===`not-included`?(0,W.jsx)(Ne,{build:t,device:n,registry:s.registry,newerBuild:s.newerBuild,canApprove:s.canApprove,registryReadAt:i.dataUpdatedAt}):(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3`,children:[(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,W.jsx)(`p`,{className:`text-sm font-medium`,children:`Check this iPhone first`}),(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`iOS installs this IPA only on the devices it lists. A profile reads this iPhone's ID, then Safari comes back here.`})]}),(0,W.jsx)(Q,{build:t})]})}export{H as _,De as a,U as c,be as d,ye as f,Se as g,Ce as h,X as i,xe as l,N as m,Pe as n,we as o,V as p,K as r,A as s,$ as t,M as u};
|
|
1
|
+
import{$ as e,Di as t,Hr as n,Oi as r,Q as i,Ri as a,Si as o,Vi as s,_r as c,di as l,gr as u,wi as d,zr as f}from"./sidebar-BmzmPGuv.js";import{t as p}from"./link-CRMwpc7-.js";import{t as m}from"./useMutation-D7IuoOLE.js";import{a as ee}from"./-native-builds-search-BFcW2mlI.js";import{t as te}from"./loader-circle-8lunBReu.js";import{E as h,a as g,b as _,f as v,i as y,l as b,o as x,p as S,r as C,u as ne,w as re}from"./native-builds-zwqucwx2.js";import{r as ie}from"./dist-BEmib-ZM.js";import{t as ae}from"./smartphone-Dy13ukaU.js";import{a as w,i as T,n as E,o as D}from"./badge-zMibJGR5.js";import{n as oe}from"./relativeTime-RUNbaMyO.js";import{a as se,n as ce,r as le,t as ue}from"./field-DInLQ5oV.js";import{m as de}from"./api-eO-sq3Jd.js";var O=s(a(),1),k=s(oe(),1),fe=d({method:`GET`}).middleware([f]).handler(r(`3a62744a539db57f5a29f39cec7fb03fd2817703b40d98e6da69e2f5e7ae6f3d`)),pe=d({method:`POST`}).middleware([f]).handler(r(`7138a71df2ede8dd2c3db732d8d0ae10c56b85a8177dcdacf4e747b8087177c6`)),me=d({method:`POST`}).middleware([f]).handler(r(`4b173c2b2f5ea074a1f10862282308f11f5a043c044d64b6f63e6a29d571ec64`)),he=d({method:`POST`}).middleware([f]).handler(r(`7908c24ccc2674ce07a553a645b8f4790889975a80f424a05d71a9fb8ab49787`)),ge=d({method:`POST`}).middleware([f]).handler(r(`4c92dfeae76a6fc898d6f38941eeedaec1f3d118f51a6f31ebf0bb1cea3fcea4`)),_e=d({method:`POST`}).middleware([f]).handler(r(`8e37ec67413ceba554adb2d4b15e53682595a089d4b431ba7965d4347fb500fc`)),ve=d({method:`GET`}).middleware([f]).handler(r(`a11cb4014e6b23528f76382c43684798b0e84a6936aaba02c918e8f4e216e282`)),A={all:[`ios-devices`],list:e=>[`ios-devices`,e??`all`],device:e=>[`ios-devices`,`device`,e],kept:e=>[`ios-devices`,`kept`,e??``],ipa:e=>[`native-build-ipa-devices`,e]},j=600*1e3;function ye(e){return n({queryKey:A.list(e),queryFn:()=>fe({data:e===void 0?{}:{status:e}}),placeholderData:l})}function be(e){return n({queryKey:A.device(e??``),queryFn:()=>pe({data:{udid:e}}),enabled:e!==null})}function M(e,t=!0){return n({queryKey:[`ios-device-profile-link`,e],queryFn:()=>me({data:e}),enabled:t,staleTime:j,refetchInterval:j})}function N(e){return n({queryKey:A.ipa(e),queryFn:()=>ve({data:{id:e}})})}var P=e=>{let t=o();return m({mutationFn:e,onSettled:async()=>{await Promise.all([t.invalidateQueries({queryKey:A.all}),t.invalidateQueries({queryKey:[`native-build-install-eligibility`]})])}})},xe=()=>P(e=>he({data:e})),Se=()=>P(e=>ge({data:e})),Ce=()=>P(e=>_e({data:e})),F=(e,t)=>`${e}/_hot-updater/devices/${t}`,I=async(e,t={})=>{let{json:n,...r}=t,i=await fetch(e,{credentials:`same-origin`,...r,...n===void 0?{}:{headers:{"content-type":`application/json`},body:JSON.stringify(n)}}),a=await i.json().catch(()=>null);if(!i.ok||a===null)throw Error(a?.error??`Request failed (${i.status}).`);return a},L=`hot-updater-ios-device-kept`,R=`hot-updater-ios-device-kept`,z=new Map,B=(e,t)=>{let n=z.get(t);return n===void 0&&(n=I(F(e,`receipt`),{method:`POST`,json:{receipt:t}}).then(e=>{h(t),window.dispatchEvent(new Event(L));try{window.localStorage.setItem(R,String(Date.now()))}catch{}return e},e=>{throw z.delete(t),e}),z.set(t,n)),n};function V(e,t,r){let i=o();return(0,O.useEffect)(()=>{let e=()=>void i.invalidateQueries({queryKey:A.kept(null),exact:!0}),t=t=>{t.key===R&&e()};return window.addEventListener(L,e),window.addEventListener(`storage`,t),()=>{window.removeEventListener(L,e),window.removeEventListener(`storage`,t)}},[i]),n({queryKey:A.kept(t),queryFn:async()=>{let n=null;t!==null&&await B(e,t).catch(e=>{n=e});let r=await I(F(e,`receipt`));if(n!==null&&r.udid===null)throw n;return r},enabled:r,retry:!1,staleTime:1/0})}var we=async e=>{await I(F(e,`receipt`),{method:`DELETE`}).catch(()=>void 0)},H=e=>P(t=>I(F(e,`request`),{method:`POST`,json:t.receipt===null?{name:t.name}:{name:t.name,receipt:t.receipt}})),U=(e,t)=>e!=null&&t!==null&&e.toLowerCase()===t.toLowerCase(),W=t(),Te=`With the same bundle ID, this install replaces the App Store's copy of the app on this iPhone.`,G=`h-auto min-h-11 w-full min-w-0 py-2 whitespace-normal sm:min-h-8 sm:w-fit`,K=e=>/iPhone|iPod|iPad/u.test(e.userAgent)||/Macintosh/u.test(e.userAgent)&&e.maxTouchPoints>1,q=()=>{if(typeof window>`u`)return{udid:null,receipt:null,requested:!1};let e=new URLSearchParams(window.location.hash.slice(1)),t=e.get(`udid`),n=t!==null&&y.test(t)?t:null;return{udid:n,receipt:n===null?null:e.get(`r`),requested:n!==null&&e.get(`requested`)===`1`}},Ee=e=>{try{return window.localStorage.getItem(e)}catch{return null}},J=(e,t)=>{try{window.localStorage.setItem(e,t)}catch{}},Y=`hot-updater-ios-device-adopted`,X=(e,t)=>{let n=e?.ios===!0&&e.udid===null&&t!=null&&y.test(t)?t:null;(0,O.useEffect)(()=>{n!==null&&(J(g,n),window.dispatchEvent(new Event(Y)))},[n])},De=()=>{let[e,t]=(0,O.useState)(null),[n]=(0,O.useState)(q);return(0,O.useEffect)(()=>{let e=e=>e!=null&&y.test(e)?e:null,r=n,i=0,a=e=>{let t=e.receipt!==null||e.requested;e.udid!==null&&t&&(i+=1,J(g,e.udid),e.receipt!==null&&(v(e.udid,e.receipt),B(ne(window.location),e.receipt).catch(()=>void 0))),e.udid!==null&&window.location.hash!==``&&window.history.replaceState(window.history.state,``,`${window.location.pathname}${window.location.search}`)};a(n);try{window.localStorage.removeItem(C)}catch{}let o=()=>{let n=e(Ee(`hot-updater-ios-udid`))??r.udid,a=(r.udid===n?r.receipt:null)??re(n),o=r.requested,s=i;t(e=>e!==null&&e.udid===n&&e.receipt===a&&e.requested===o&&e.answers===s?e:{ios:K(navigator),udid:n,receipt:a,requested:o,answers:s})};o();let s=e=>{(e.key===null||e.key===`hot-updater-ios-udid`)&&o()},c=()=>{let e=q();e.udid!==null&&(r=e,a(e)),o()};return window.addEventListener(`storage`,s),window.addEventListener(Y,o),window.addEventListener(`hashchange`,c),window.addEventListener(`pageshow`,c),document.addEventListener(`visibilitychange`,c),()=>{window.removeEventListener(`storage`,s),window.removeEventListener(Y,o),window.removeEventListener(`hashchange`,c),window.removeEventListener(`pageshow`,c),document.removeEventListener(`visibilitychange`,c)}},[n]),e},Oe=300*1e3,ke=(e,t)=>{let[,n]=(0,O.useReducer)(e=>e+1,0),r=e+x-Oe;return(0,O.useEffect)(()=>{if(!t)return;let e=setTimeout(n,Math.max(0,r-Date.now()));return document.addEventListener(`visibilitychange`,n),window.addEventListener(`pageshow`,n),()=>{clearTimeout(e),document.removeEventListener(`visibilitychange`,n),window.removeEventListener(`pageshow`,n)}},[r,t]),t&&Date.now()>=r};function Z({fetching:e,onRenew:t}){return(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,W.jsxs)(`p`,{className:`text-xs text-muted-foreground`,role:`status`,children:[`This install link has expired.`,e?` Getting a new one.`:``]}),e?null:(0,W.jsx)(u,{className:G,onClick:t,variant:`outline`,children:`Get a new link`})]})}function Ae({build:e,token:t}){return(0,W.jsx)(`a`,{className:c({className:G}),href:_(window.location,e.id,t),children:`Install`})}function je(){return(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`On iOS 16 or later, the app opens only with Developer Mode on: Settings, Privacy & Security, Developer Mode.`}),(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:Te})]})}function Q({build:t,again:n=!1}){let r=M({mode:`identify`,buildId:t.id});return r.data?.status===`no-secret`?(0,W.jsxs)(`p`,{className:`text-xs text-muted-foreground`,role:`status`,children:[`Set `,r.data.secretName,` on the Console to check iPhones from this page.`]}):r.data?.status===`issued`?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(`a`,{className:c({className:G,variant:n?`secondary`:`default`}),href:S(b(window.location,t.id),r.data.token),children:[(0,W.jsx)(ae,{"data-icon":`inline-start`}),n?`Check this iPhone again`:`Check this iPhone`]}),(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Allow the download, then install it in Settings, where iOS calls it not signed. Nothing stays installed.`})]}):r.isError?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(E,{variant:`destructive`,children:[(0,W.jsx)(D,{}),(0,W.jsx)(w,{children:`The check couldn't start`}),(0,W.jsx)(T,{children:`Check your connection and try again.`})]}),(0,W.jsxs)(u,{className:G,disabled:r.isFetching,onClick:()=>void r.refetch(),variant:`outline`,children:[(0,W.jsx)(ie,{"data-icon":`inline-start`}),`Reload`]})]}):(0,W.jsx)(e,{"aria-label":`Preparing the check`,className:`h-11 w-full`})}var Me=e=>(0,k.default)(e).format(`MMM D`);function $({device:e,canApprove:t,onDevicesPage:n=!1}){return(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3`,children:[(0,W.jsxs)(E,{children:[(0,W.jsx)(D,{}),(0,W.jsx)(w,{children:`Apple didn't register this iPhone`}),(0,W.jsx)(T,{children:e.apple_error})]}),t?n?null:(0,W.jsx)(p,{className:c({className:G,variant:`outline`}),to:`/native-builds/devices`,children:`iOS devices`}):(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e.status===`approved`?`Ask a maintainer to free a device slot.`:`Ask a maintainer to check it on the iOS devices page.`})]})}function Ne({build:t,device:n,registry:r,newerBuild:a,canApprove:o,registryReadAt:s}){let l=b(window.location,t.id),d=H(l),f=V(l,n.receipt,n.ios&&n.udid!==null&&r===null),m=n.receipt!==null||U(f.data?.udid,n.udid),[h,g]=(0,O.useState)(``),[_,v]=(0,O.useState)(null),y=_!==null&&s<=_.readBefore,x=y?_.device:r,S=(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,W.jsx)(`p`,{className:`text-sm font-medium`,children:`Not in this build`}),(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`This IPA was signed without this iPhone, and iOS won't install it here.`})]});if(x!==null){let e=y?null:a;return x.apple_error!==null&&e===null?(0,W.jsx)($,{canApprove:o,device:x}):(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3`,children:[S,(0,W.jsx)(`p`,{className:`text-sm`,role:`status`,children:x.status===`pending`?`${x.name} was requested on ${Me(x.created_at_ms)}. A maintainer approves it next.`:e===null?`${x.name} is ${x.status}. It joins the next ad hoc build.`:`A newer build has ${x.name}.`}),e===null?null:(0,W.jsx)(p,{className:c({className:G}),params:{buildId:e},to:`/native-builds/$buildId`,children:`Open the newer build`})]})}if(!m&&f.isPending&&n.udid!==null)return(0,W.jsx)(e,{"aria-label":`Reading this iPhone`,className:`h-11 w-full`});if(!m)return(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3`,children:[S,(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Check this iPhone once more to request it for the next ad hoc build.`}),(0,W.jsx)(Q,{build:t,again:!0})]});let C=h.trim();return(0,W.jsxs)(`form`,{className:`flex min-w-0 flex-col gap-3`,onSubmit:e=>{if(e.preventDefault(),C===``)return;let t=s;d.mutate({receipt:n.receipt,name:C},{onSuccess:({device:e})=>v({device:e,readBefore:t})})},children:[S,(0,W.jsxs)(ue,{"data-invalid":d.isError||void 0,children:[(0,W.jsx)(se,{htmlFor:`ios-device-name`,children:`This iPhone's name`}),(0,W.jsx)(i,{autoComplete:`off`,className:`h-11 sm:h-8`,id:`ios-device-name`,maxLength:100,onChange:e=>g(e.target.value),placeholder:`Kim's iPhone`,value:h}),(0,W.jsx)(ce,{children:`A maintainer approves it, and it joins the next ad hoc build.`}),(0,W.jsx)(le,{children:d.isError?`The request didn't go through. Check this iPhone again, then try once more.`:null})]}),(0,W.jsxs)(u,{className:G,disabled:C===``||d.isPending,type:`submit`,children:[d.isPending?(0,W.jsx)(te,{className:`animate-spin motion-reduce:animate-none`,"data-icon":`inline-start`}):(0,W.jsx)(ee,{"data-icon":`inline-start`}),`Request access`]}),d.isError?(0,W.jsx)(Q,{again:!0,build:t}):null]})}function Pe({build:t,device:n}){X(n,V(b(window.location,t.id),n.receipt,n.ios&&n.udid===null).data?.udid);let{udid:r}=n,i=de(t.id,r),{refetch:a}=i,o=ke(i.dataUpdatedAt,i.data?.status===`installable`&&i.data.device===`included`);if((0,O.useEffect)(()=>{o&&a()},[o,a]),i.isPending)return(0,W.jsx)(e,{"aria-label":`Reading this IPA`,className:`h-11 w-full`});let s=i.data;if(s===void 0||s.status===`unavailable`)return(0,W.jsxs)(E,{children:[(0,W.jsx)(D,{}),(0,W.jsx)(w,{children:`Installation details unavailable`}),(0,W.jsx)(T,{children:`The Console couldn't read this IPA from storage in parts, which takes an HTTPS download link that answers Range requests. Other ways to install still work from a computer.`})]});if(s.status===`store`)return(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:t.is_sandbox?`This IPA is an App Store export, which doesn't install from this page.`:`This IPA is an App Store export, which installs through TestFlight, not from this page.`});if(s.status===`expired`)return(0,W.jsxs)(E,{variant:`destructive`,children:[(0,W.jsx)(D,{}),(0,W.jsx)(w,{children:`This build's profile has expired`}),(0,W.jsxs)(T,{children:[`It expired on `,(0,k.default)(s.expiresAt).format(`YYYY-MM-DD`),`. A maintainer rebuilds it to install again.`]})]});let c=s.link.status===`issued`?s.link.token:null;return s.link.status===`no-secret`?(0,W.jsxs)(`p`,{className:`text-xs text-muted-foreground`,role:`status`,children:[`Set `,s.link.secretName,` on the Console to install from this page.`]}):c===null?null:s.device===`included`?(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3`,children:[(0,W.jsx)(`p`,{className:`text-sm font-medium`,children:`In this build`}),o?(0,W.jsx)(Z,{fetching:i.isFetching,onRenew:()=>void a()}):(0,W.jsx)(Ae,{build:t,token:c}),(0,W.jsx)(je,{})]}):s.device===`not-included`?(0,W.jsx)(Ne,{build:t,device:n,registry:s.registry,newerBuild:s.newerBuild,canApprove:s.canApprove,registryReadAt:i.dataUpdatedAt}):(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3`,children:[(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,W.jsx)(`p`,{className:`text-sm font-medium`,children:`Check this iPhone first`}),(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`iOS installs this IPA only on the devices it lists. A profile reads this iPhone's ID, then Safari comes back here.`})]}),(0,W.jsx)(Q,{build:t})]})}export{H as _,De as a,U as c,be as d,ye as f,Se as g,Ce as h,X as i,xe as l,N as m,Pe as n,we as o,V as p,K as r,A as s,$ as t,M as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Di as e,vr as t}from"./sidebar-BmzmPGuv.js";import{t as n}from"./link-CRMwpc7-.js";import{a as r}from"./tabs-
|
|
1
|
+
import{Di as e,vr as t}from"./sidebar-BmzmPGuv.js";import{t as n}from"./link-CRMwpc7-.js";import{a as r}from"./tabs-BnpNC0zf.js";var i=e(),a=`relative inline-flex h-full min-h-11 items-center justify-center rounded-md border border-transparent px-3 text-xs font-medium whitespace-nowrap text-foreground/60 transition-colors hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-none aria-[current=page]:bg-background aria-[current=page]:text-foreground aria-[current=page]:shadow-sm dark:text-muted-foreground dark:hover:text-foreground dark:aria-[current=page]:border-input dark:aria-[current=page]:bg-input/30 dark:aria-[current=page]:text-foreground`;function o({current:e}){return(0,i.jsxs)(`nav`,{"aria-label":`Native builds views`,className:t(r(),`h-auto min-h-11 sm:h-8 sm:min-h-0 [&>a]:min-h-11 sm:[&>a]:min-h-0`),children:[(0,i.jsx)(n,{activeOptions:{exact:!0,includeSearch:!1},"aria-current":e===`builds`?`page`:void 0,className:a,to:`/native-builds`,children:`Builds`}),(0,i.jsx)(n,{activeOptions:{exact:!0,includeSearch:!1},"aria-current":e===`devices`?`page`:void 0,className:a,to:`/native-builds/devices`,children:`iOS devices`})]})}export{o as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as e,Di as t,Vi as n,_r as r,gr as i,vr as a}from"./sidebar-BmzmPGuv.js";import{t as o}from"./link-CRMwpc7-.js";import{a as s}from"./TargetDisplay-
|
|
1
|
+
import{$ as e,Di as t,Vi as n,_r as r,gr as i,vr as a}from"./sidebar-BmzmPGuv.js";import{t as o}from"./link-CRMwpc7-.js";import{a as s}from"./TargetDisplay-DG_I3qln.js";import{t as c}from"./chevron-right-RAuPv9r1.js";import{n as l,t as u}from"./relativeTime-RUNbaMyO.js";import{a as d,n as f,o as p,r as m,t as h}from"./table-DbZPkzdz.js";var g=t();function _({children:e,className:t}){return(0,g.jsx)(`div`,{className:a(`min-h-0 min-w-0 flex-1 overflow-hidden rounded-lg border bg-card text-card-foreground shadow-sm [&_[data-slot=table-container]]:h-full [&_[data-slot=table-container]]:overflow-auto`,t),children:e})}function v({header:e,children:t,className:n,rowGroups:r=!1,...i}){return(0,g.jsxs)(h,{className:a(`min-w-max`,n),...i,children:[(0,g.jsx)(d,{className:`bg-muted/40`,children:(0,g.jsx)(p,{className:`border-b border-border/60 hover:bg-transparent [&>th]:h-10 [&>th]:text-xs [&>th]:font-semibold [&>th]:uppercase [&>th]:text-muted-foreground`,children:e})}),r?t:(0,g.jsx)(f,{children:t})]})}function y({className:e,...t}){return(0,g.jsx)(f,{className:a(`[&_tr:last-child]:border-b`,e),...t})}var b=e=>t=>{t.target instanceof Element&&t.target.closest(`button, a, input, select, textarea`)||e()};function x({className:e,onOpen:t,...n}){return(0,g.jsx)(p,{onClick:b(t),onKeyDown:e=>{e.target!==e.currentTarget||e.key!==`Enter`&&e.key!==` `||(e.preventDefault(),t())},tabIndex:0,className:a(`cursor-pointer transition-[background-color,filter] hover:bg-muted/10 focus-within:bg-muted/15 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring motion-reduce:transition-none data-[state=selected]:bg-muted/15 [&>td]:py-3`,e),...n})}function S({columns:t,label:n}){return Array.from({length:7},(r,i)=>(0,g.jsx)(p,{children:(0,g.jsxs)(m,{colSpan:t,children:[i===0&&n?(0,g.jsx)(`span`,{className:`sr-only`,children:n}):null,(0,g.jsx)(e,{className:`h-8 w-full`})]})},i))}function C({columns:e,className:t,children:n}){return(0,g.jsx)(p,{children:(0,g.jsx)(m,{className:a(`h-44 text-center text-muted-foreground`,t),colSpan:e,children:n})})}function w({icon:e,title:t,children:n}){return(0,g.jsxs)(`div`,{className:`mx-auto flex max-w-sm flex-col items-center gap-2 whitespace-normal text-center text-sm text-muted-foreground`,children:[(0,g.jsx)(e,{"aria-hidden":`true`,className:`size-5`}),(0,g.jsx)(`p`,{className:`font-medium text-foreground`,children:t}),n]})}function T({children:e}){return(0,g.jsx)(`div`,{className:`p-8`,children:e})}function E({label:t}){return(0,g.jsxs)(`div`,{className:`flex flex-col gap-3 p-4`,children:[t?(0,g.jsx)(`span`,{className:`sr-only`,children:t}):null,Array.from({length:5},(t,n)=>(0,g.jsx)(e,{className:`h-44 w-full`},n))]})}function D({className:e,...t}){return(0,g.jsx)(`article`,{className:a(`flex cursor-pointer touch-manipulation flex-col gap-4 border-b p-4 transition-[background-color,filter] last:border-b-0 hover:bg-muted/10 active:bg-muted/20 motion-reduce:transition-none data-[state=selected]:bg-muted/15`,e),...t})}function O({count:e,noun:t,folded:n,label:a,pending:l=!1,newest:u,previous:d,next:f}){return(0,g.jsxs)(`nav`,{"aria-label":a,className:`flex flex-col gap-3 px-2 sm:flex-row sm:items-center sm:justify-between`,children:[(0,g.jsxs)(`p`,{className:`text-xs font-medium text-muted-foreground`,children:[(0,g.jsx)(`span`,{className:`text-foreground`,children:e}),` `,e===1?t[0]:t[1],`, newest first`,n===void 0||n.count===0?null:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(`span`,{"aria-hidden":`true`,children:` · `}),(0,g.jsx)(`span`,{className:`sr-only`,children:`, `}),(0,g.jsxs)(`span`,{className:`text-foreground`,children:[n.count,n.more?`+`:``]}),` `,n.label,` folded`]})]}),(0,g.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 sm:justify-end`,children:[u&&!l?(0,g.jsx)(o,{className:r({className:`h-11 flex-1 px-3 text-xs sm:h-8 sm:flex-none`,size:`sm`,variant:`ghost`}),search:u.search,to:u.to,children:`Newest`}):null,d&&!l?(0,g.jsxs)(o,{className:r({className:`h-11 flex-1 px-3 text-xs sm:h-8 sm:flex-none`,size:`sm`,variant:`outline`}),search:d.search,to:d.to,children:[(0,g.jsx)(s,{"data-icon":`inline-start`}),`Previous`]}):(0,g.jsxs)(i,{className:`h-11 flex-1 px-3 text-xs sm:h-8 sm:flex-none`,disabled:!0,size:`sm`,variant:`outline`,children:[(0,g.jsx)(s,{"data-icon":`inline-start`}),`Previous`]}),f&&!l?(0,g.jsxs)(o,{className:r({className:`h-11 flex-1 px-3 text-xs sm:h-8 sm:flex-none`,size:`sm`,variant:`outline`}),search:f.search,to:f.to,children:[`Next`,(0,g.jsx)(c,{"data-icon":`inline-end`})]}):(0,g.jsxs)(i,{className:`h-11 flex-1 px-3 text-xs sm:h-8 sm:flex-none`,disabled:!0,size:`sm`,variant:`outline`,children:[`Next`,(0,g.jsx)(c,{"data-icon":`inline-end`})]})]})]})}var k=n(l(),1),A=n(u(),1);k.default.extend(A.default);function j({ms:e,withDate:t=!1}){let n=(0,k.default)(e),r=n.format(`YYYY-MM-DD HH:mm:ss`);return(0,g.jsxs)(`time`,{className:`flex flex-col whitespace-nowrap tabular-nums`,dateTime:n.toISOString(),title:r,children:[(0,g.jsx)(`span`,{children:n.fromNow()}),t?(0,g.jsx)(`span`,{className:`text-muted-foreground`,children:r}):null]})}export{v as a,_ as c,x as d,S as f,T as i,C as l,D as n,y as o,b as p,E as r,w as s,j as t,O as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Di as e,Vi as t,vr as n}from"./sidebar-BmzmPGuv.js";import{o as r,t as i}from"./badge-zMibJGR5.js";import{r as a}from"./constants-
|
|
1
|
+
import{Di as e,Vi as t,vr as n}from"./sidebar-BmzmPGuv.js";import{o as r,t as i}from"./badge-zMibJGR5.js";import{r as a}from"./constants-C5gi7fdZ.js";import{n as o,t as s}from"./relativeTime-RUNbaMyO.js";var c=t(o(),1),l=t(s(),1),u=e();c.default.extend(l.default);function d({uuid:e,format:t=`relative`}){let n=(0,c.default)(a(e));return t===`relative`?(0,u.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:n.fromNow()}):t===`absolute`?(0,u.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:n.format(`YYYY-MM-DD HH:mm:ss`)}):(0,u.jsxs)(`div`,{className:`flex flex-col`,children:[(0,u.jsx)(`span`,{className:`text-sm`,children:n.fromNow()}),(0,u.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:n.format(`YYYY-MM-DD HH:mm:ss`)})]})}var f=e=>{let t=e.trim();if(t.startsWith(`git@`)){let e=t.match(/^git@([^:]+):(.+?)(?:\.git)?$/);if(e)return`https://${e[1]}/${e[2]}`}if(t.startsWith(`ssh://`))try{let e=new URL(t);return`https://${e.hostname}${e.pathname}`.replace(/\/+$/,``).replace(/\.git$/,``)}catch{return t.replace(/\/+$/,``).replace(/\.git$/,``)}return t.replace(/\/+$/,``).replace(/\.git$/,``)},p=(e,t)=>{if(!e?.trim())return null;let n=f(e);try{let{hostname:e}=new URL(n);if(e.includes(`gitlab`))return`${n}/-/commit/${t}`;if(e.includes(`bitbucket`))return`${n}/commits/${t}`}catch{}return`${n}/commit/${t}`};function m({percentage:e,className:t}){let a=e<100,o=e.toFixed(1);return(0,u.jsxs)(i,{className:n(`gap-1`,t),variant:a?`secondary`:`default`,children:[a?(0,u.jsx)(r,{className:`h-3 w-3`}):null,o,`%`]})}export{p as n,d as r,m as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as e,Di as t,Ri as n,Vi as r,at as i,gr as a,nt as o,rt as s}from"./sidebar-BmzmPGuv.js";import{t as c}from"./chevron-right-RAuPv9r1.js";import{o as l,r as u}from"./table-
|
|
1
|
+
import{$ as e,Di as t,Ri as n,Vi as r,at as i,gr as a,nt as o,rt as s}from"./sidebar-BmzmPGuv.js";import{t as c}from"./chevron-right-RAuPv9r1.js";import{o as l,r as u}from"./table-DbZPkzdz.js";import{o as d}from"./RelativeTime-5ZP9WlQ6.js";var f=r(n(),1),p=t(),m=e=>e.from??``,h=(e,t)=>`${e.count}${e.more?`+`:``} ${e.count===1&&!e.more?t.one:t.other}`,g=e=>{let t=[];for(let n of e){let e=t.at(-1);n.kind===`fold`?t.push({kind:`fold`,fold:n}):e?.kind===`rows`?e.rows.push(n.row):t.push({kind:`rows`,rows:[n.row]})}return t};function _(){let[e,t]=(0,f.useState)(()=>new Set);return{isOpen:t=>e.has(t),set:(e,n)=>t(t=>{if(t.has(e)===n)return t;let r=new Set(t);return n?r.add(e):r.delete(e),r})}}function v({label:e,open:t,onOpenChange:n,panelId:r}){return(0,p.jsxs)(`button`,{"aria-controls":r,"aria-expanded":t,className:`group/fold flex min-h-11 w-full items-center gap-2 px-4 text-left text-xs font-medium text-muted-foreground transition-colors hover:bg-muted/30 hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none focus-visible:ring-inset motion-reduce:transition-none sm:min-h-9 sm:px-3`,onClick:()=>n(!t),type:`button`,children:[(0,p.jsx)(c,{"aria-hidden":`true`,className:`size-3.5 shrink-0 transition-transform group-aria-expanded/fold:rotate-90 motion-reduce:transition-none`}),e]})}function y({columns:e,children:t,...n}){return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(d,{children:(0,p.jsx)(l,{className:`bg-muted/20 hover:bg-muted/20`,children:(0,p.jsx)(u,{className:`p-0`,colSpan:e,children:(0,p.jsx)(v,{...n})})})}),(0,p.jsx)(d,{hidden:!n.open,id:n.panelId,children:n.open?t:null})]})}function b({children:e,inList:t=!1,...n}){return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`div`,{className:`border-b bg-muted/20`,role:t?`listitem`:void 0,children:(0,p.jsx)(v,{...n})}),(0,p.jsx)(`div`,{hidden:!n.open,id:n.panelId,children:n.open?e:null})]})}function x({state:t,label:n,onMore:r,onRetry:i,columns:o}){let s=t===`loading`?(0,p.jsxs)(`div`,{"aria-live":`polite`,className:`flex flex-col gap-2 p-3`,children:[(0,p.jsx)(`span`,{className:`sr-only`,children:n}),(0,p.jsx)(e,{className:`h-8 w-full`}),(0,p.jsx)(e,{className:`h-8 w-full`})]}):(0,p.jsxs)(`div`,{className:`flex items-center gap-3 px-4 py-2 sm:px-3`,children:[t===`error`?(0,p.jsxs)(`span`,{className:`text-xs text-muted-foreground`,role:`status`,children:[n,` couldn't be loaded.`]}):null,(0,p.jsx)(a,{className:`h-11 px-3 text-xs sm:h-8`,onClick:t===`error`?i:r,size:`sm`,variant:`ghost`,children:t===`error`?`Retry`:`Show more`})]});return o===void 0?(0,p.jsx)(`div`,{className:`border-b`,children:s}):(0,p.jsx)(l,{className:`hover:bg-transparent`,children:(0,p.jsx)(u,{className:`p-0`,colSpan:o,children:s})})}var S=e=>{let t=0,n=!1;for(let r of e)r.kind===`fold`&&(t+=r.count,n||=r.more);return{count:t,more:n}};function C({icon:e,children:t,label:n,reason:r}){let a=(0,f.useId)(),[c,l]=(0,f.useState)(!1);return(0,p.jsxs)(o,{onOpenChange:l,open:c,triggerId:a,children:[(0,p.jsxs)(i,{"aria-describedby":c?`${a}-reason`:void 0,"aria-label":n,className:`relative inline-flex shrink-0 items-center gap-1 rounded-sm text-xs text-muted-foreground transition-colors after:absolute after:-inset-x-2 after:-inset-y-3.5 hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none motion-reduce:transition-none sm:after:hidden`,closeOnClick:!1,id:a,onClick:()=>l(e=>!e),type:`button`,children:[(0,p.jsx)(e,{"aria-hidden":`true`,className:`size-3.5`}),t]}),(0,p.jsx)(s,{className:`max-w-64`,id:`${a}-reason`,role:`tooltip`,side:`bottom`,children:r})]})}export{m as a,g as c,x as i,_ as l,b as n,h as o,y as r,S as s,C as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Di as e,Vi as t}from"./sidebar-BmzmPGuv.js";import{a as n}from"./-native-builds-search-
|
|
1
|
+
import{Di as e,Vi as t}from"./sidebar-BmzmPGuv.js";import{a as n}from"./-native-builds-search-BFcW2mlI.js";import{t as r}from"./badge-zMibJGR5.js";import{n as i,t as a}from"./relativeTime-RUNbaMyO.js";var o=t(i(),1),s=t(a(),1),c={"play-internal":{label:`Play internal`},"play-closed":{label:`Play closed`},"play-open":{label:`Play open`},"play-production":{label:`Play production`}},l=e();o.default.extend(s.default);var u={testflight:`TestFlight`,...Object.fromEntries(Object.entries(c).map(([e,t])=>[e,t.label]))},d=e=>e.submitted_to!==null&&e.submitted_to!==void 0;function f({ms:e}){if(e===null)return null;let t=(0,o.default)(e);return(0,l.jsx)(`time`,{className:`text-xs text-muted-foreground`,dateTime:t.toISOString(),title:t.format(`YYYY-MM-DD HH:mm:ss`),children:t.fromNow()})}var p=e=>{let t=`Submitted to ${u[e.submitted_to]}`;if(e.submitted_at_ms===null)return t;let n=(0,o.default)(e.submitted_at_ms);return`${t} ${n.fromNow()}, ${n.format(`YYYY-MM-DD HH:mm:ss`)}`};function m({build:e,withTime:t=!1}){return d(e)?(0,l.jsxs)(`span`,{className:`inline-flex flex-wrap items-center gap-1.5`,children:[(0,l.jsxs)(r,{className:`gap-1`,title:p(e),variant:`muted`,children:[(0,l.jsx)(n,{"aria-hidden":`true`,className:`size-3`}),u[e.submitted_to],e.submitted_version?(0,l.jsx)(`span`,{className:`font-mono tabular-nums`,translate:`no`,children:e.submitted_version}):null]}),t?(0,l.jsx)(f,{ms:e.submitted_at_ms}):null]}):null}function h({build:e}){return e.is_sandbox?(0,l.jsx)(r,{className:`px-1.5`,variant:`muted`,children:`Sandbox`}):null}export{u as i,m as n,d as r,h as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Di as e,Vr as t,gr as n}from"./sidebar-BmzmPGuv.js";import{t as r}from"./copy-BjVLMKbo.js";import{t as i}from"./key-round-BkeLvA1m.js";import{O as a}from"./native-builds-
|
|
1
|
+
import{Di as e,Vr as t,gr as n}from"./sidebar-BmzmPGuv.js";import{t as r}from"./copy-BjVLMKbo.js";import{t as i}from"./key-round-BkeLvA1m.js";import{O as a}from"./native-builds-zwqucwx2.js";import{n as o}from"./dist-BEmib-ZM.js";import{t as s}from"./HashValueDisplay-DvwvQchI.js";var c=t(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),l=t(`fingerprint-pattern`,[[`path`,{d:`M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4`,key:`1nerag`}],[`path`,{d:`M14 13.12c0 2.38 0 6.38-1 8.88`,key:`o46ks0`}],[`path`,{d:`M17.29 21.02c.12-.6.43-2.3.5-3.02`,key:`ptglia`}],[`path`,{d:`M2 12a10 10 0 0 1 18-6`,key:`ydlgp0`}],[`path`,{d:`M2 16h.01`,key:`1gqxmh`}],[`path`,{d:`M21.8 16c.2-2 .131-5.354 0-6`,key:`drycrb`}],[`path`,{d:`M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2`,key:`1tidbn`}],[`path`,{d:`M8.65 22c.21-.66.45-1.32.57-2`,key:`13wd9y`}],[`path`,{d:`M9 6.8a6 6 0 0 1 9 5.2v2`,key:`1fr1j5`}]]),u=e();function d({label:e,value:t,wrap:i=!1}){let a=async()=>{try{await navigator.clipboard.writeText(t),o.success(`Copied to clipboard`)}catch{o.error(`Could not copy ${e}`)}};return(0,u.jsxs)(`div`,{className:`flex w-full min-w-0 items-center gap-2 rounded-md border bg-muted/40 py-1 pr-1 pl-3`,children:[(0,u.jsx)(`code`,{className:i?`min-w-0 flex-1 text-left font-mono text-xs whitespace-normal sm:whitespace-nowrap`:`min-w-0 flex-1 overflow-x-auto text-left font-mono text-xs whitespace-nowrap`,children:t}),(0,u.jsx)(n,{"aria-label":`Copy ${e}`,className:`size-11 sm:size-7`,onClick:()=>void a(),size:`icon-sm`,variant:`ghost`,children:(0,u.jsx)(r,{"aria-hidden":`true`})})]})}function f({icon:e,value:t,display:n}){return(0,u.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,u.jsx)(e,{className:`size-4 shrink-0 text-muted-foreground`}),(0,u.jsx)(s,{display:n,maxLength:12,value:t})]})}function p(){return(0,u.jsx)(`span`,{className:`text-muted-foreground`,children:`-`})}function m({value:e}){return(0,u.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,u.jsx)(a,{className:`size-4 shrink-0 text-muted-foreground`}),(0,u.jsx)(`span`,{className:`font-medium`,children:e})]})}function h({appVersion:e,fingerprintHash:t,nativeAppVersion:n}){if(e)return(0,u.jsx)(m,{value:e});if(t){let e=(0,u.jsx)(f,{icon:l,value:t});return n?(0,u.jsxs)(`span`,{className:`flex flex-col items-start gap-3 sm:gap-1`,"data-target-display":``,children:[(0,u.jsxs)(`span`,{title:`The app version this build reports`,children:[(0,u.jsx)(`span`,{className:`sr-only`,children:`App version `}),(0,u.jsx)(m,{value:n})]}),e]}):e}return(0,u.jsx)(p,{})}function g({value:e}){return e?(0,u.jsx)(f,{display:e.replace(/^nbk1:/,``),icon:i,value:e}):(0,u.jsx)(p,{})}export{c as a,d as i,p as n,h as r,g as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./ConsoleFeatureUnavailable-B3VCINom.js";var t=e;export{t as notFoundComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as e,Di as t,Hr as n,Oi as r,Q as i,Ri as a,Si as o,Vi as s,Vr as c,gr as l,p as u,wi as d,zr as f}from"./sidebar-BmzmPGuv.js";import{t as p}from"./useMutation-D7IuoOLE.js";import{t as ee}from"./check-C3VCvMOV.js";import{t as te}from"./clipboard-D0JWZ1KF.js";import{t as m}from"./key-round-BkeLvA1m.js";import{t as ne}from"./loader-circle-8lunBReu.js";import{t as h}from"./plus-DztQIXYL.js";import{n as g,r as _}from"./dist-BEmib-ZM.js";import{a as v,i as y,n as b,o as x,r as re,t as ie}from"./badge-zMibJGR5.js";import{a as ae,n as S,o as C,t as w}from"./card-
|
|
1
|
+
import{$ as e,Di as t,Hr as n,Oi as r,Q as i,Ri as a,Si as o,Vi as s,Vr as c,gr as l,p as u,wi as d,zr as f}from"./sidebar-BmzmPGuv.js";import{t as p}from"./useMutation-D7IuoOLE.js";import{t as ee}from"./check-C3VCvMOV.js";import{t as te}from"./clipboard-D0JWZ1KF.js";import{t as m}from"./key-round-BkeLvA1m.js";import{t as ne}from"./loader-circle-8lunBReu.js";import{t as h}from"./plus-DztQIXYL.js";import{n as g,r as _}from"./dist-BEmib-ZM.js";import{a as v,i as y,n as b,o as x,r as re,t as ie}from"./badge-zMibJGR5.js";import{a as ae,n as S,o as C,t as w}from"./card-BAs80yql.js";import{a as T,i as E,n as D,r as O,t as k}from"./field-DInLQ5oV.js";import{a as A,c as j,i as M,l as N,n as P,o as F,r as I,s as L,t as R,u as z}from"./alert-dialog-DGPqJBCk.js";import{a as B,i as V,n as oe,o as H,r as U,t as W}from"./dialog-BvZDZzdQ.js";import{a as G,i as K,n as q,o as J,r as Y,t as se}from"./table-DbZPkzdz.js";var X=c(`shield-off`,[[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71`,key:`1jlk70`}],[`path`,{d:`M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264`,key:`18rp1v`}]]),Z=s(a(),1),ce=d({method:`GET`}).middleware([f]).handler(r(`2c7f3cdb9bd3cab2c026a48abdc84c362db0362924a08679052a325640aec56b`)),le=d({method:`POST`}).middleware([f]).handler(r(`68a2d94ee016be64936401f5eba60ab08a47ff373e1cf9de48e4413336e6034b`)),ue=d({method:`POST`}).middleware([f]).handler(r(`a1cb80b19ca72a64fb631ca28ebb9b6941db245983de082d5dd3203ec2eef795`)),Q={list:[`api-keys`,`list`]},de=()=>n({queryKey:Q.list,queryFn:()=>ce()}),fe=()=>{let e=o();return p({mutationFn:e=>le({data:{name:e}}),onSuccess:async()=>{await e.invalidateQueries({queryKey:Q.list})}})},pe=()=>{let e=o();return p({mutationFn:e=>ue({data:{id:e}}),onSuccess:async()=>{await e.invalidateQueries({queryKey:Q.list})}})},$=t(),me=e=>new Date(e).toISOString().slice(0,10);function he(){let[e,t]=(0,Z.useState)(!1),[n,r]=(0,Z.useState)(``),[a,o]=(0,Z.useState)(null),s=fe(),c=n.trim(),u=c.length>64?`Name must be 64 characters or fewer.`:null,d=()=>{r(``),o(null),s.reset()},f=e=>{t(e),e||d()};return(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(l,{className:`max-md:h-11`,onClick:()=>t(!0),children:[(0,$.jsx)(h,{"data-icon":`inline-start`}),`Create API key`]}),(0,$.jsx)(W,{open:e,onOpenChange:f,children:(0,$.jsxs)(oe,{showCloseButton:a===null,children:[(0,$.jsxs)(B,{children:[(0,$.jsx)(H,{children:a===null?`Create API key`:`Save your API key`}),(0,$.jsx)(U,{children:a===null?`Name the app or environment that will use this key.`:`This key is shown once. Store it securely before closing.`})]}),a===null?(0,$.jsxs)(`form`,{onSubmit:async e=>{if(e.preventDefault(),!(c.length===0||u!==null))try{o((await s.mutateAsync(c)).apiKey),g.success(`API key created`)}catch(e){g.error(e instanceof Error?e.message:`Unable to create API key`)}},children:[(0,$.jsx)(E,{children:(0,$.jsxs)(k,{"data-invalid":u!==null||void 0,children:[(0,$.jsx)(T,{htmlFor:`api-key-name`,children:`Name`}),(0,$.jsx)(i,{id:`api-key-name`,autoComplete:`off`,maxLength:65,onChange:e=>r(e.target.value),placeholder:`Production app`,value:n}),(0,$.jsx)(D,{children:`Use a name you can identify before revoking the key.`}),(0,$.jsx)(O,{children:u})]})}),(0,$.jsx)(V,{className:`mt-4`,children:(0,$.jsxs)(l,{disabled:s.isPending||c.length===0||u!==null,type:`submit`,children:[s.isPending?(0,$.jsx)(ne,{"data-icon":`inline-start`,className:`animate-spin motion-reduce:animate-none`}):(0,$.jsx)(m,{"data-icon":`inline-start`}),`Create API key`]})})]}):(0,$.jsxs)(E,{children:[(0,$.jsxs)(k,{children:[(0,$.jsx)(T,{htmlFor:`created-api-key`,children:`API key`}),(0,$.jsxs)(`div`,{className:`flex gap-2`,children:[(0,$.jsx)(i,{id:`created-api-key`,className:`font-mono`,readOnly:!0,value:a}),(0,$.jsxs)(l,{onClick:async()=>{if(a!==null)try{await navigator.clipboard.writeText(a),g.success(`API key copied`)}catch{g.error(`Unable to copy API key`)}},type:`button`,variant:`outline`,children:[(0,$.jsx)(te,{"data-icon":`inline-start`}),`Copy`]})]})]}),(0,$.jsx)(V,{children:(0,$.jsxs)(l,{onClick:()=>f(!1),children:[(0,$.jsx)(ee,{"data-icon":`inline-start`}),`Done`]})})]})]})})]})}function ge({record:e}){let[t,n]=(0,Z.useState)(!1),r=pe(),i=async t=>{t.preventDefault();try{await r.mutateAsync(e.id),n(!1),g.success(`API key revoked`)}catch(e){g.error(e instanceof Error?e.message:`Unable to revoke API key`)}};return(0,$.jsxs)(R,{open:t,onOpenChange:e=>{r.isPending||n(e)},children:[(0,$.jsxs)(z,{render:(0,$.jsx)(l,{className:`max-md:h-11`,size:`sm`,variant:`ghost`}),children:[(0,$.jsx)(X,{"data-icon":`inline-start`}),`Revoke`]}),(0,$.jsxs)(M,{children:[(0,$.jsxs)(L,{children:[(0,$.jsx)(j,{children:(0,$.jsx)(X,{})}),(0,$.jsxs)(N,{children:[`Revoke `,e.name,`?`]}),(0,$.jsxs)(A,{children:[`Apps using `,e.prefix,`… will immediately lose OTA update and insights access. This action cannot be undone.`]})]}),(0,$.jsxs)(F,{children:[(0,$.jsx)(I,{disabled:r.isPending,children:`Cancel`}),(0,$.jsx)(P,{disabled:r.isPending,onClick:e=>void i(e),variant:`destructive`,children:`Revoke API key`})]})]})]})}function _e(){let t=de();return(0,$.jsxs)(w,{className:`overflow-hidden shadow-sm`,children:[(0,$.jsxs)(ae,{className:`flex-row items-center justify-between space-y-0 border-b px-4 py-3`,children:[(0,$.jsx)(C,{className:`text-sm`,children:(0,$.jsx)(`h2`,{children:`API keys`})}),(0,$.jsx)(he,{})]}),(0,$.jsx)(S,{className:`p-0`,children:t.isError?(0,$.jsx)(`div`,{className:`p-4`,children:(0,$.jsxs)(b,{variant:`destructive`,children:[(0,$.jsx)(x,{}),(0,$.jsx)(v,{children:`API keys couldn't be loaded`}),(0,$.jsx)(y,{children:`Check your connection and try again.`}),(0,$.jsx)(re,{children:(0,$.jsxs)(l,{onClick:()=>void t.refetch(),size:`xs`,variant:`outline`,children:[(0,$.jsx)(_,{"data-icon":`inline-start`}),`Retry`]})})]})}):(0,$.jsxs)(se,{"aria-label":`API keys`,className:`table-fixed`,children:[(0,$.jsx)(G,{children:(0,$.jsxs)(J,{children:[(0,$.jsx)(K,{children:`Key`}),(0,$.jsx)(K,{className:`w-32`,children:`Created`}),(0,$.jsx)(K,{className:`w-24 text-right`,children:(0,$.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,$.jsx)(q,{children:t.isLoading?Array.from({length:3},(t,n)=>(0,$.jsxs)(J,{children:[(0,$.jsxs)(Y,{className:`space-y-2 py-3`,children:[n===0?(0,$.jsx)(`span`,{className:`sr-only`,children:`Loading API keys`}):null,(0,$.jsx)(e,{className:`h-3.5 w-32`}),(0,$.jsx)(e,{className:`h-3 w-20`})]}),(0,$.jsx)(Y,{children:(0,$.jsx)(e,{className:`h-3.5 w-20`})}),(0,$.jsx)(Y,{children:(0,$.jsx)(e,{className:`ml-auto h-6 w-16`})})]},n)):t.data?.length===0?(0,$.jsx)(J,{children:(0,$.jsx)(Y,{colSpan:3,className:`h-40 text-center text-muted-foreground`,children:(0,$.jsxs)(`div`,{className:`mx-auto flex max-w-xs flex-col items-center gap-2`,children:[(0,$.jsx)(m,{className:`size-5`}),(0,$.jsx)(`p`,{className:`font-medium text-foreground`,children:`No API keys`}),(0,$.jsx)(`p`,{children:`Create an API key to connect an app.`})]})})}):t.data?.map(e=>(0,$.jsxs)(J,{className:e.revoked_at_ms===null?void 0:`text-muted-foreground`,children:[(0,$.jsx)(Y,{className:`whitespace-normal py-3`,children:(0,$.jsxs)(`div`,{className:`min-w-0 space-y-1`,children:[(0,$.jsx)(`p`,{className:`break-words font-medium text-foreground`,children:e.name}),(0,$.jsxs)(`p`,{className:`font-mono text-xs text-muted-foreground`,children:[e.prefix,`…`]})]})}),(0,$.jsx)(Y,{className:`text-xs text-muted-foreground`,children:(0,$.jsx)(`time`,{dateTime:new Date(e.created_at_ms).toISOString(),children:me(e.created_at_ms)})}),(0,$.jsx)(Y,{className:`text-right`,children:e.revoked_at_ms===null?(0,$.jsx)(ge,{record:e}):(0,$.jsx)(ie,{variant:`outline`,children:`Revoked`})})]},e.id))})]})})]})}function ve(){return(0,$.jsxs)(`div`,{className:`flex h-svh min-h-0 flex-col`,children:[(0,$.jsxs)(`header`,{className:`sticky top-0 z-10 flex shrink-0 flex-wrap items-center gap-x-3 gap-y-1 border-b bg-background px-3 py-3 sm:min-h-12 sm:flex-nowrap sm:bg-card/70 sm:px-4 sm:backdrop-blur-sm`,children:[(0,$.jsx)(u,{className:`-ml-1`}),(0,$.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,$.jsx)(m,{"aria-hidden":`true`,className:`size-3.5 text-muted-foreground`}),(0,$.jsx)(`h1`,{className:`text-sm font-medium`,children:`API keys`})]}),(0,$.jsx)(`p`,{className:`basis-full pl-9 text-xs text-muted-foreground sm:basis-auto sm:pl-0`,children:`API keys can download OTA updates and submit insights only.`})]}),(0,$.jsx)(`div`,{className:`min-h-0 min-w-0 flex-1 overflow-y-auto bg-muted/5 p-3 sm:p-6`,children:(0,$.jsx)(`div`,{className:`mx-auto w-full max-w-5xl`,children:(0,$.jsx)(_e,{})})})]})}export{ve as component};
|