@hot-updater/console 1.2.0-rc.36 → 1.2.0-rc.37

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.
Files changed (122) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/assets/{-native-builds-search-DNupPw5R.js → -native-builds-search-BJPSRi4t.js} +1 -1
  3. package/.output/public/assets/{IosInstall-BkjuGzx0.js → IosInstall-ChFnQISV.js} +1 -1
  4. package/.output/public/assets/{RelativeTime-CAIee8Fr.js → RelativeTime-CAwDWRiM.js} +1 -1
  5. package/.output/public/assets/{RolloutPercentageBadge-BmtfOGOm.js → RolloutPercentageBadge-DlaDqnOs.js} +1 -1
  6. package/.output/public/assets/{RowReason-Cuf4SbKm.js → RowReason-CRPq0CHS.js} +1 -1
  7. package/.output/public/assets/{SandboxBadge-Cn1mlvQg.js → SandboxBadge-BpJoP3BG.js} +1 -1
  8. package/.output/public/assets/{TargetDisplay-DeKn2_3n.js → TargetDisplay-C6ofsnLc.js} +1 -1
  9. package/.output/public/assets/{constants-CNrAvpew.js → constants-C5gi7fdZ.js} +1 -1
  10. package/.output/public/assets/{index-DHcRzryp.js → index-BTfZoenj.js} +2 -2
  11. package/.output/public/assets/{insights-9CSkLhLx.js → insights-B87auoZU.js} +2 -2
  12. package/.output/public/assets/{insights-BGMOFCgn.js → insights-BYOdNi7w.js} +1 -1
  13. package/.output/public/assets/{insights-search-Bax3nNBz.js → insights-search-DmxDGWAA.js} +1 -1
  14. package/.output/public/assets/{insights_.distribution-BfEb7XIX.js → insights_.distribution-CzUUV067.js} +1 -1
  15. package/.output/public/assets/{insights_.distribution-Ce5y7hIU.js → insights_.distribution-D4CopMfD.js} +2 -2
  16. package/.output/public/assets/native-builds-BE-d-vLT.js +2 -0
  17. package/.output/public/assets/native-builds-Bo5b3l5H.js +1 -0
  18. package/.output/public/assets/{native-builds-FBNFjP4d.js → native-builds-DYvuFp4w.js} +1 -1
  19. package/.output/public/assets/{native-builds_._buildId-UU2Ja88v.js → native-builds_._buildId-Cy_v6FQF.js} +1 -1
  20. package/.output/public/assets/{native-builds_._buildId-D0Y_qtSu.js → native-builds_._buildId-EnQK17U1.js} +2 -2
  21. package/.output/public/assets/{native-builds_.devices-DossOQcr.js → native-builds_.devices-CuY0AWQs.js} +1 -1
  22. package/.output/public/assets/{native-builds_.devices-B0GrWGwS.js → native-builds_.devices-TidkuG6Q.js} +2 -2
  23. package/.output/public/assets/{remote-config-CqFs9CSU.js → remote-config-BnyIK6Ty.js} +3 -3
  24. package/.output/public/assets/{remote-config-BbLyVNLo.js → remote-config-MY091ahb.js} +1 -1
  25. package/.output/public/assets/routes-Bgad16DN.js +1 -0
  26. package/.output/public/assets/{routes-COOKrhya.js → routes-C449P2E2.js} +2 -2
  27. package/.output/public/assets/{select-BAd2hAoW.js → select-DKrHQL0P.js} +1 -1
  28. package/.output/public/assets/styles-CyLzruUt.css +2 -0
  29. package/.output/public/assets/{switch-DNa3Cz9K.js → switch-CG0ceFSo.js} +1 -1
  30. package/.output/server/{__23tanstack-start-server-fn-resolver-DEsK7hJ-.mjs → __23tanstack-start-server-fn-resolver-BFQ_ymzi.mjs} +58 -58
  31. package/.output/server/_libs/_.mjs +1 -1
  32. package/.output/server/_ssr/{-native-builds-search-woFrbAdI.mjs → -native-builds-search-Bwt8tQzp.mjs} +2 -2
  33. package/.output/server/_ssr/{BundleIdDisplay-BLXpHocZ.mjs → BundleIdDisplay-oRrThcpb.mjs} +2 -2
  34. package/.output/server/_ssr/{ChannelBadge-CWIc9tmb.mjs → ChannelBadge-Dbh3dltM.mjs} +3 -3
  35. package/.output/server/_ssr/{ConsoleFeatureUnavailable-B4w26Z-l.mjs → ConsoleFeatureUnavailable-Doz_fDu6.mjs} +5 -5
  36. package/.output/server/_ssr/{EventDetails-CnAKWnvZ.mjs → EventDetails-WUb3ECMe.mjs} +6 -6
  37. package/.output/server/_ssr/{HashValueDisplay-DbMfscEm.mjs → HashValueDisplay-C1p0Ha7c.mjs} +2 -2
  38. package/.output/server/_ssr/{InsightsPageHeader-CGB3vsS1.mjs → InsightsPageHeader-D0YoPKff.mjs} +5 -5
  39. package/.output/server/_ssr/{IosInstall-D9zJGmaC.mjs → IosInstall-CikIinZ9.mjs} +6 -6
  40. package/.output/server/_ssr/{NativeBuildsNav-CEKiVJZ2.mjs → NativeBuildsNav-CZm3xCG4.mjs} +3 -3
  41. package/.output/server/_ssr/{NotFoundPage-DZ6L0Lix.mjs → NotFoundPage-BOTgaHgp.mjs} +2 -2
  42. package/.output/server/_ssr/{QrCode-Be-7de3s.mjs → QrCode-CcLFV0Y5.mjs} +2 -2
  43. package/.output/server/_ssr/{RelativeTime-B2N63vu0.mjs → RelativeTime-J6ZohekD.mjs} +3 -3
  44. package/.output/server/_ssr/{RolloutPercentageBadge-DgyHwvnj.mjs → RolloutPercentageBadge-CzR93Z1h.mjs} +3 -3
  45. package/.output/server/_ssr/{RowReason-DOCMSWpB.mjs → RowReason-BEJN6VYX.mjs} +4 -4
  46. package/.output/server/_ssr/{SandboxBadge-DVOkxy3O.mjs → SandboxBadge-BvH77G2y.mjs} +2 -2
  47. package/.output/server/_ssr/{TargetDisplay-DcY84JrG.mjs → TargetDisplay-B4kPBarK.mjs} +3 -3
  48. package/.output/server/_ssr/{alert-dialog-Bj6jW5-Q.mjs → alert-dialog-Dq0MrXYr.mjs} +1 -1
  49. package/.output/server/_ssr/{api-BYa88in2.mjs → api-CyBb_myQ.mjs} +3 -3
  50. package/.output/server/_ssr/{api-keys-C3gWr3Qj.mjs → api-keys-0tbG1BAn.mjs} +9 -9
  51. package/.output/server/_ssr/{api-keys-CIB4jF6t.mjs → api-keys-DnI6bU0-.mjs} +2 -2
  52. package/.output/server/_ssr/{api-keys-rpc-CtMsJx1w.mjs → api-keys-rpc-B5V0nPee.mjs} +3 -3
  53. package/.output/server/_ssr/{api-rpc-sxif8D9h.mjs → api-rpc-Bki_LLpu.mjs} +7 -7
  54. package/.output/server/_ssr/{auth-rpc-DYXg2d-s.mjs → auth-rpc-DbCI8_0x.mjs} +4 -4
  55. package/.output/server/_ssr/{auth.server-BCtkdsmT.mjs → auth.server-DHNHPeT2.mjs} +2 -2
  56. package/.output/server/_ssr/{badge-DVmF0rbO.mjs → badge-CipE3hKU.mjs} +1 -1
  57. package/.output/server/_ssr/{card-C7gkmtDR.mjs → card-Ddy7b39R.mjs} +1 -1
  58. package/.output/server/_ssr/{config.server-D5yjc-Hm.mjs → config.server-DSxn3Ysu.mjs} +3 -3
  59. package/.output/server/_ssr/{console-access-MNaEuKXy.mjs → console-access-rWJNPuyL.mjs} +2 -2
  60. package/.output/server/_ssr/{console-features-api-B8PfM6k1.mjs → console-features-api-BkgX9cAs.mjs} +3 -3
  61. package/.output/server/_ssr/{console-features-rpc-Dl1bAdxy.mjs → console-features-rpc-BWQ_sfeK.mjs} +3 -3
  62. package/.output/server/_ssr/{constants-B8b1IliD.mjs → constants-BjsJZqaU.mjs} +4 -2
  63. package/.output/server/_ssr/{dialog-COs-Oov4.mjs → dialog-BzgDSd4O.mjs} +1 -1
  64. package/.output/server/_ssr/{empty-BCi8eUlp.mjs → empty-D-_RLQLe.mjs} +2 -2
  65. package/.output/server/_ssr/{field-D7na2Ch2.mjs → field-dgxldFcJ.mjs} +2 -2
  66. package/.output/server/_ssr/{input-group-B64ZFSYp.mjs → input-group-BIVV3OmZ.mjs} +1 -1
  67. package/.output/server/_ssr/{insights-B9kdn-hT.mjs → insights-C3xgmVP5.mjs} +20 -20
  68. package/.output/server/_ssr/{insights-Do0mUArh.mjs → insights-P7VdVc2X.mjs} +2 -2
  69. package/.output/server/_ssr/{insights-api-C6hqqqUk.mjs → insights-api-B9dFh5pY.mjs} +3 -3
  70. package/.output/server/_ssr/{insights-failures-rpc-k6uyvIeh.mjs → insights-failures-rpc-Djr6J1Xm.mjs} +4 -4
  71. package/.output/server/_ssr/{insights-DaaYBkr3.mjs → insights-h0GWIrsK.mjs} +5 -5
  72. package/.output/server/_ssr/{insights-recovery-rpc-DPW8WjEX.mjs → insights-recovery-rpc-CwsV5jCp.mjs} +3 -3
  73. package/.output/server/_ssr/{insights-rpc-DDLtqUqS.mjs → insights-rpc-lLr4qvQA.mjs} +3 -3
  74. package/.output/server/_ssr/{insights-search-BxLGFC2Y.mjs → insights-search-C94zOeed.mjs} +2 -2
  75. package/.output/server/_ssr/{insights-usage-rpc-a9HwsRB_.mjs → insights-usage-rpc-BMoDtME6.mjs} +3 -3
  76. package/.output/server/_ssr/{insights-usage-rpc-_3iuUmaJ.mjs → insights-usage-rpc-DfzHEGlX.mjs} +3 -3
  77. package/.output/server/_ssr/{insights_.distribution-CCCQgeXp.mjs → insights_.distribution-5GlDwjgh.mjs} +13 -13
  78. package/.output/server/_ssr/{insights_.distribution-DTvhOF_Z.mjs → insights_.distribution-BQYtsQpN.mjs} +5 -5
  79. package/.output/server/_ssr/{insights_.distribution-BjWQk0tw.mjs → insights_.distribution-DKHbAqrw.mjs} +2 -2
  80. package/.output/server/_ssr/{installations-BgKaxLj8.mjs → installations--bKePFE3.mjs} +2 -2
  81. package/.output/server/_ssr/{installations-DZoaae-j.mjs → installations-9kZoRkhZ.mjs} +11 -11
  82. package/.output/server/_ssr/{installations-IiZ1O2zJ.mjs → installations-DeZqcfwL.mjs} +4 -4
  83. package/.output/server/_ssr/{ios-devices-rpc-mzVC4RTM.mjs → ios-devices-rpc-ChQt1lEa.mjs} +7 -7
  84. package/.output/server/_ssr/{iosDeviceCookie-LOJ7WfKJ.mjs → iosDeviceCookie-BOJzV-1T.mjs} +3 -3
  85. package/.output/server/_ssr/{iosDeviceProfile-DtTmTG9a.mjs → iosDeviceProfile-DRxqDIRN.mjs} +2 -2
  86. package/.output/server/_ssr/{iosDevices-DC-DR7X-.mjs → iosDevices-foAF3rIL.mjs} +2 -2
  87. package/.output/server/_ssr/{native-builds-uMIPDSmT.mjs → native-builds-16TY7UkU.mjs} +3 -3
  88. package/.output/server/_ssr/{native-builds-DBVS616m.mjs → native-builds-CJij2DCH.mjs} +18 -17
  89. package/.output/server/_ssr/{native-builds_._buildId-CfYzRkoT.mjs → native-builds_._buildId-BT6XN4Y9.mjs} +16 -15
  90. package/.output/server/_ssr/{native-builds_._buildId-BmB6oLsi.mjs → native-builds_._buildId-D7Xhgq1D.mjs} +3 -3
  91. package/.output/server/_ssr/{native-builds_.devices-PvBuqXp0.mjs → native-builds_.devices-CBhVMdxB.mjs} +3 -3
  92. package/.output/server/_ssr/{native-builds_.devices-CBoAFcVA.mjs → native-builds_.devices-DaDcZ7My.mjs} +15 -15
  93. package/.output/server/_ssr/{nativeBuildDownloadLink-B-Slw1_O.mjs → nativeBuildDownloadLink-wyrdOdGY.mjs} +2 -2
  94. package/.output/server/_ssr/{nativeBuildInstall-_vrEhN0E.mjs → nativeBuildInstall-BYrSOrnL.mjs} +3 -3
  95. package/.output/server/_ssr/{release-adoption-rpc-BsUYFCSo.mjs → release-adoption-rpc-CjBTAOp3.mjs} +5 -5
  96. package/.output/server/_ssr/{remote-config-D-8SQ4po.mjs → remote-config-7iYGDQDg.mjs} +2 -2
  97. package/.output/server/_ssr/{remote-config-ZObJS2_F.mjs → remote-config-DB_bwu9l.mjs} +17 -17
  98. package/.output/server/_ssr/{remote-config-DQzpUpwK.mjs → remote-config-mXE6SgzT.mjs} +2 -2
  99. package/.output/server/_ssr/{remote-config-rpc-COjwhaa3.mjs → remote-config-rpc-DyTDyXqc.mjs} +3 -3
  100. package/.output/server/_ssr/{router-DFO8ezEY.mjs → router-D0Czwiot.mjs} +33 -33
  101. package/.output/server/_ssr/{routes-DLdhFkXy.mjs → routes-BpyORQr9.mjs} +9 -9
  102. package/.output/server/_ssr/{routes-B0kFLck5.mjs → routes-C4PCsk54.mjs} +24 -23
  103. package/.output/server/_ssr/{schema-migration-rpc-BTlEpk00.mjs → schema-migration-rpc-vpFM7iXp.mjs} +3 -3
  104. package/.output/server/_ssr/{select-l3hYdF9p.mjs → select-GzLdXnOE.mjs} +4 -4
  105. package/.output/server/_ssr/{server-Dsb2hUyp.mjs → server-CL-3qcc8.mjs} +3 -3
  106. package/.output/server/_ssr/{sidebar-DU3F2THA.mjs → sidebar-DAbmmzxn.mjs} +2 -2
  107. package/.output/server/_ssr/ssr.mjs +1 -1
  108. package/.output/server/_ssr/{switch-B_NczfZN.mjs → switch-hif-H-Pq.mjs} +2 -2
  109. package/.output/server/_ssr/{table-DScwmE5W.mjs → table-D5ewLtFP.mjs} +1 -1
  110. package/.output/server/_ssr/{tabs-DodX8IAE.mjs → tabs-9bTsyo84.mjs} +2 -2
  111. package/.output/server/{_tanstack-start-manifest_v-D4QtfwLE.mjs → _tanstack-start-manifest_v-Cpy3P0dQ.mjs} +37 -37
  112. package/.output/server/index.mjs +230 -230
  113. package/package.json +7 -7
  114. package/src/components/features/native-builds/NativeBuildDetailPage.tsx +6 -0
  115. package/src/components/features/native-builds/NativeBuildsPage.tsx +5 -3
  116. package/src/components/ui/select.tsx +4 -3
  117. package/src/lib/constants.ts +3 -0
  118. package/src/routes/index.tsx +3 -3
  119. package/.output/public/assets/native-builds-CrRx3_wN.js +0 -1
  120. package/.output/public/assets/native-builds-FpedinKi.js +0 -2
  121. package/.output/public/assets/routes-BV7VD8Tr.js +0 -1
  122. package/.output/public/assets/styles-B8MKzxw2.css +0 -2
@@ -1,5 +1,5 @@
1
1
  {
2
- "date": "2026-11-12T16:02:57.694Z",
2
+ "date": "2026-11-12T17:48:39.430Z",
3
3
  "preset": "node-server",
4
4
  "framework": {
5
5
  "name": "nitro",
@@ -1 +1 @@
1
- import{Vr as e}from"./sidebar-UnsNYOry.js";import{f as t,t as n}from"./constants-CNrAvpew.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 n=a(e);if(n!==void 0)try{return t(n),n}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,...t},r)=>{if(t.channel!==void 0||e===`all`)return t;if(r!==void 0)return r.includes(`production`)?{channel:n,...t}:t},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};
1
+ import{Vr as e}from"./sidebar-UnsNYOry.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};
@@ -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-UnsNYOry.js";import{t as p}from"./link-D95E0fwF.js";import{t as m}from"./useMutation-BWX97JX2.js";import{a as ee}from"./-native-builds-search-DNupPw5R.js";import{t as te}from"./loader-circle-C26cZDSM.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-FBNFjP4d.js";import{r as ie}from"./dist-BDfiL2Qz.js";import{t as ae}from"./smartphone-lSZWrqxx.js";import{a as w,i as T,n as E,o as D}from"./badge-D4Tiwei-.js";import{n as oe}from"./relativeTime-Wk64dka-.js";import{a as se,n as ce,r as le,t as ue}from"./field-CubHQ_EM.js";import{m as de}from"./api-USY_IWMu.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-UnsNYOry.js";import{t as p}from"./link-D95E0fwF.js";import{t as m}from"./useMutation-BWX97JX2.js";import{a as ee}from"./-native-builds-search-BJPSRi4t.js";import{t as te}from"./loader-circle-C26cZDSM.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-DYvuFp4w.js";import{r as ie}from"./dist-BDfiL2Qz.js";import{t as ae}from"./smartphone-lSZWrqxx.js";import{a as w,i as T,n as E,o as D}from"./badge-D4Tiwei-.js";import{n as oe}from"./relativeTime-Wk64dka-.js";import{a as se,n as ce,r as le,t as ue}from"./field-CubHQ_EM.js";import{m as de}from"./api-USY_IWMu.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{$ as e,Di as t,Vi as n,_r as r,gr as i,vr as a}from"./sidebar-UnsNYOry.js";import{t as o}from"./link-D95E0fwF.js";import{a as s}from"./TargetDisplay-DeKn2_3n.js";import{t as c}from"./chevron-right-CuYrscDY.js";import{n as l,t as u}from"./relativeTime-Wk64dka-.js";import{a as d,n as f,o as p,r as m,t as h}from"./table-DtcLx8yw.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
+ import{$ as e,Di as t,Vi as n,_r as r,gr as i,vr as a}from"./sidebar-UnsNYOry.js";import{t as o}from"./link-D95E0fwF.js";import{a as s}from"./TargetDisplay-C6ofsnLc.js";import{t as c}from"./chevron-right-CuYrscDY.js";import{n as l,t as u}from"./relativeTime-Wk64dka-.js";import{a as d,n as f,o as p,r as m,t as h}from"./table-DtcLx8yw.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,vr as r}from"./sidebar-UnsNYOry.js";import{o as i,t as a}from"./badge-D4Tiwei-.js";import{n as o}from"./constants-CNrAvpew.js";import{n as s,t as c}from"./relativeTime-Wk64dka-.js";var l=n(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),u=t(s(),1),d=t(c(),1),f=e();u.default.extend(d.default);function p({uuid:e,format:t=`relative`}){let n=(0,u.default)(o(e));return t===`relative`?(0,f.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:n.fromNow()}):t===`absolute`?(0,f.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:n.format(`YYYY-MM-DD HH:mm:ss`)}):(0,f.jsxs)(`div`,{className:`flex flex-col`,children:[(0,f.jsx)(`span`,{className:`text-sm`,children:n.fromNow()}),(0,f.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:n.format(`YYYY-MM-DD HH:mm:ss`)})]})}var m=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$/,``)},h=(e,t)=>{if(!e?.trim())return null;let n=m(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 g({percentage:e,className:t}){let n=e<100,o=e.toFixed(1);return(0,f.jsxs)(a,{className:r(`gap-1`,t),variant:n?`secondary`:`default`,children:[n?(0,f.jsx)(i,{className:`h-3 w-3`}):null,o,`%`]})}export{l as i,h as n,p as r,g as t};
1
+ import{Di as e,Vi as t,Vr as n,vr as r}from"./sidebar-UnsNYOry.js";import{o as i,t as a}from"./badge-D4Tiwei-.js";import{r as o}from"./constants-C5gi7fdZ.js";import{n as s,t as c}from"./relativeTime-Wk64dka-.js";var l=n(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),u=t(s(),1),d=t(c(),1),f=e();u.default.extend(d.default);function p({uuid:e,format:t=`relative`}){let n=(0,u.default)(o(e));return t===`relative`?(0,f.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:n.fromNow()}):t===`absolute`?(0,f.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:n.format(`YYYY-MM-DD HH:mm:ss`)}):(0,f.jsxs)(`div`,{className:`flex flex-col`,children:[(0,f.jsx)(`span`,{className:`text-sm`,children:n.fromNow()}),(0,f.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:n.format(`YYYY-MM-DD HH:mm:ss`)})]})}var m=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$/,``)},h=(e,t)=>{if(!e?.trim())return null;let n=m(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 g({percentage:e,className:t}){let n=e<100,o=e.toFixed(1);return(0,f.jsxs)(a,{className:r(`gap-1`,t),variant:n?`secondary`:`default`,children:[n?(0,f.jsx)(i,{className:`h-3 w-3`}):null,o,`%`]})}export{l as i,h as n,p as r,g 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-UnsNYOry.js";import{t as c}from"./chevron-right-CuYrscDY.js";import{o as l,r as u}from"./table-DtcLx8yw.js";import{o as d}from"./RelativeTime-CAIee8Fr.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
+ 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-UnsNYOry.js";import{t as c}from"./chevron-right-CuYrscDY.js";import{o as l,r as u}from"./table-DtcLx8yw.js";import{o as d}from"./RelativeTime-CAwDWRiM.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-UnsNYOry.js";import{a as n}from"./-native-builds-search-DNupPw5R.js";import{t as r}from"./badge-D4Tiwei-.js";import{n as i,t as a}from"./relativeTime-Wk64dka-.js";var o=t(i(),1),s=t(a(),1),c={"play-internal":{label:`Play internal`,name:`Google Play internal testing`},"play-closed":{label:`Play closed`,name:`Google Play closed testing`},"play-open":{label:`Play open`,name:`Google Play open testing`},"play-production":{label:`Play production`,name:`Google 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{c as a,u as i,m as n,d as r,h as t};
1
+ import{Di as e,Vi as t}from"./sidebar-UnsNYOry.js";import{a as n}from"./-native-builds-search-BJPSRi4t.js";import{t as r}from"./badge-D4Tiwei-.js";import{n as i,t as a}from"./relativeTime-Wk64dka-.js";var o=t(i(),1),s=t(a(),1),c={"play-internal":{label:`Play internal`,name:`Google Play internal testing`},"play-closed":{label:`Play closed`,name:`Google Play closed testing`},"play-open":{label:`Play open`,name:`Google Play open testing`},"play-production":{label:`Play production`,name:`Google 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{c as a,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-UnsNYOry.js";import{t as r}from"./copy-BxI24-g-.js";import{t as i}from"./key-round-B-vaAsR7.js";import{O as a}from"./native-builds-FBNFjP4d.js";import{n as o}from"./dist-BDfiL2Qz.js";import{t as s}from"./HashValueDisplay-N89T2mVj.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};
1
+ import{Di as e,Vr as t,gr as n}from"./sidebar-UnsNYOry.js";import{t as r}from"./copy-BxI24-g-.js";import{t as i}from"./key-round-B-vaAsR7.js";import{O as a}from"./native-builds-DYvuFp4w.js";import{n as o}from"./dist-BDfiL2Qz.js";import{t as s}from"./HashValueDisplay-N89T2mVj.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};
@@ -1 +1 @@
1
- var e=`[a-zA-Z0-9-]`,t=String.raw`0|[1-9]\d*`,n=String.raw`\d+`,r=String.raw`\d*[a-zA-Z-]${e}*`,i=String.raw`(${t})\.(${t})\.(${t})`,a=String.raw`(${n})\.(${n})\.(${n})`,o=`(?:${r}|${t})`,s=`(?:${r}|${n})`,c=String.raw`(?:-(${o}(?:\.${o})*))`,l=String.raw`(?:-?(${s}(?:\.${s})*))`,u=`${e}+`,d=String.raw`(?:\+(${u}(?:\.${u})*))`,ee=`v?${i}${c}?${d}?`,f=String.raw`[v=\s]*${a}${l}?${d}?`,p=String.raw`${t}|x|X|\*`,m=String.raw`${n}|x|X|\*`;String.raw`[v=\s]*(${p})(?:\.(${p})(?:\.(${p})(?:${c})?${d}?)?)?`,String.raw`[v=\s]*(${m})(?:\.(${m})(?:\.(${m})(?:${l})?${d}?)?)?`,String.raw`(?:\^)`;var h=String.raw`(^|[^\d])(\d{1,${16}})(?:\.(\d{1,${16}}))?(?:\.(\d{1,${16}}))?`,g=String.raw`${h}(?:$|[^\d])`,_=String.raw`${h}(?:${c})?(?:${d})?(?:$|[^\d])`;function v(t){let n=[[String.raw`\s`,1],[String.raw`\d`,256],[e,250]];for(let[e,r]of n)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t}function y(e,t){return new RegExp(v(e),t)}var b=y(`^${ee}$`),x=y(`^${f}$`),S=/^\d+$/;function te(e){let t=`${e.major}.${e.minor}.${e.patch}`;return e.prerelease?.length?`${t}-${e.prerelease.join(`.`)}`:t}function ne(e){let t=te(e);return e.build?.length?`${t}+${e.build.join(`.`)}`:t}function re(e,t={}){if(typeof e!=`string`)return e;if(e.length>256)throw TypeError(`Version exceeds the maximum length of 256 characters`);let n=e.trim().match(t.loose?x:b);if(!n)throw TypeError(`Invalid version syntax: ${e}`);let r=Number(n[1]),i=Number(n[2]),a=Number(n[3]);if(r>2**53-1||r<0)throw TypeError(`Invalid major version: ${n[1]}`);if(i>2**53-1||i<0)throw TypeError(`Invalid minor version: ${n[2]}`);if(a>2**53-1||a<0)throw TypeError(`Invalid patch version: ${n[3]}`);let o=n[4]?n[4].split(`.`).map(e=>{if(S.test(e)){let t=Number(e);if(t>=0&&t<2**53-1)return t}return e}):void 0;return{build:n[5]?.split(`.`),major:r,minor:i,patch:a,prerelease:o}}function C(e,t={}){try{return re(e,t)}catch{return null}}var ie=y(g),w=y(_);y(`^${c}$`),y(`^${l}$`);function T(e,t={}){let n=C(e,t);return n?ne(n):null}function E(e,t={}){if(typeof e==`object`)return e;let n=typeof e==`number`?String(e):e,r=null;if(t.rtl){let e=y(t.includePrerelease?_:g,`g`),i;for(;(i=e.exec(n))&&(!r||r.index+r[0].length!==n.length);)(!r||i.index+i[0].length!==r.index+r[0].length)&&(r=i),e.lastIndex=i.index+i[1].length+i[2].length}else r=(t.includePrerelease?w:ie).exec(n);if(!r)return null;let i=r[2];return C(`${i}.${r[3]||`0`}.${r[4]||`0`}${t.includePrerelease&&r[5]?`-${r[5]}`:``}${t.includePrerelease&&r[6]?`+${r[6]}`:``}`,t)}function D(e){let t=E(e);return t?T(t):null}var O=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`;function k(e){let t=[];for(let n of e){let e=n.codePointAt(0);e<=127?t.push(e):e<=2047?t.push(192|e>>6,128|e&63):e<=65535?t.push(224|e>>12,128|e>>6&63,128|e&63):t.push(240|e>>18,128|e>>12&63,128|e>>6&63,128|e&63)}return t}function A(e){let t=``;for(let n=0;n<e.length;){let r=e[n++],i,a;if(r<=127)i=r,a=0;else if((r&224)==192)i=r&31,a=1;else if((r&240)==224)i=r&15,a=2;else if((r&248)==240)i=r&7,a=3;else throw Error(`Invalid UTF-8 channel key`);for(let t=0;t<a;t+=1){let t=e[n++];if(t===void 0||(t&192)!=128)throw Error(`Invalid UTF-8 channel key`);i=i<<6|t&63}if(i>1114111||i>=55296&&i<=57343||a===1&&i<128||a===2&&i<2048||a===3&&i<65536)throw Error(`Invalid UTF-8 channel key`);t+=String.fromCodePoint(i)}return t}function j(e){let t=``;for(let n=0;n<e.length;n+=3){let r=e[n],i=e[n+1],a=e[n+2],o=r<<16|(i??0)<<8|(a??0);t+=O[o>>18&63],t+=O[o>>12&63],i!==void 0&&(t+=O[o>>6&63]),a!==void 0&&(t+=O[o&63])}return t}function M(e){if(!/^[A-Za-z0-9_-]*$/.test(e)||e.length%4==1)throw Error(`Invalid channel key`);let t=[];for(let n=0;n<e.length;n+=4){let r=e.slice(n,n+4),i=[...r].map(e=>O.indexOf(e));if(i.some(e=>e<0))throw Error(`Invalid channel key`);let a=i[0]<<18|i[1]<<12|(i[2]??0)<<6|(i[3]??0);t.push(a>>16&255),r.length>=3&&t.push(a>>8&255),r.length===4&&t.push(a&255)}return t}function N(e){return e.trim().normalize(`NFC`)}function P(e){let t=N(e);if(t.length===0||t!==e)throw Error(`Channel name must be non-empty, trimmed, and NFC-normalized`);let n=0;for(let e of t)if(n+=1,n>255)throw Error(`Channel name must not exceed 255 characters`)}function F(e){return P(e),j(k(e))}function I(e){let t=A(M(e));if(P(t),F(t)!==e)throw Error(`Channel key is not canonically encoded`);return t}var L=/^[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/,R=e=>typeof e==`string`&&L.test(e),z=e=>{if(!e||typeof e!=`object`||Array.isArray(e))return!1;let t=e;return typeof t.baseBundleId==`string`&&typeof t.baseFileHash==`string`&&typeof t.patchFileHash==`string`&&typeof t.patchStorageUri==`string`},B=e=>Array.isArray(e)?e.filter(z):[],V=e=>{let t=B(e.patches),n=new Set;return t.filter(e=>n.has(e.baseBundleId)?!1:(n.add(e.baseBundleId),!0))},H=e=>V(e)[0]??null,U=e=>H(e)?.baseBundleId??null,ae=e=>H(e)?.baseFileHash??null,W=e=>H(e)?.patchFileHash??null,G=1e3,K=G,q=`Invalid cohort. Use 1-1000 or a lowercase slug without spaces, up to 64 characters.`,J=/^[a-z0-9-]+$/;function Y(e){if(!/^\d+$/.test(e))return null;let t=Number.parseInt(e,10);return Number.isNaN(t)||t<1||t>1e3?null:t}function X(e,t){return(e%t+t)%t}function Z(e){let t=0;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t=(t<<5)-t+r,t|=0}return t}function oe(e,t){let n=Math.abs(e),r=Math.abs(t);for(;r!==0;){let e=n%r;n=r,r=e}return n}function se(e,t){let n=0,r=1,i=t,a=X(e,t);for(;a!==0;){let e=Math.floor(i/a);[n,r]=[r,n-e*r],[i,a]=[a,i-e*a]}if(i>1)throw Error(`No modular inverse for ${e} mod ${t}`);return X(n,t)}function ce(e){let t=X(Z(`${e}:multiplier`),997);for(t===0&&(t=1);oe(t,G)!==1;)t=X(t+1,G),t===0&&(t=1);let n=X(Z(`${e}:offset`),G);return{multiplier:t,offset:n,inverseMultiplier:se(t,G)}}function le(e){return e==null?K:e<=0?0:e>=1e3?G:Math.floor(e)}function Q(e){let t=e.trim().toLowerCase(),n=Y(t);return n===null?t:String(n)}function $(e){return Y(Q(e))}function ue(e){return $(e)!==null}function de(e){let t=Q(e);return t.length>0&&t.length<=64&&!/^\d+$/.test(t)&&J.test(t)}function fe(e){let t=Q(e);return ue(t)||de(t)}function pe(e,t){if(t<1||t>1e3)throw Error(`Invalid numeric cohort: ${t}`);let{offset:n,inverseMultiplier:r}=ce(e);return X(r*(t-1-n),G)}var me=e=>{if(!R(e))throw TypeError(`Expected a canonical lowercase UUIDv7`);let t=e.split(`-`).join(``).slice(0,12);return Number.parseInt(t,16)},he=`production`;export{pe as a,W as c,le as d,P as f,R as h,G as i,fe as l,I as m,me as n,U as o,D as p,q as r,ae as s,he as t,Q as u};
1
+ var e=`[a-zA-Z0-9-]`,t=String.raw`0|[1-9]\d*`,n=String.raw`\d+`,r=String.raw`\d*[a-zA-Z-]${e}*`,i=String.raw`(${t})\.(${t})\.(${t})`,a=String.raw`(${n})\.(${n})\.(${n})`,o=`(?:${r}|${t})`,s=`(?:${r}|${n})`,c=String.raw`(?:-(${o}(?:\.${o})*))`,l=String.raw`(?:-?(${s}(?:\.${s})*))`,u=`${e}+`,d=String.raw`(?:\+(${u}(?:\.${u})*))`,ee=`v?${i}${c}?${d}?`,f=String.raw`[v=\s]*${a}${l}?${d}?`,p=String.raw`${t}|x|X|\*`,m=String.raw`${n}|x|X|\*`;String.raw`[v=\s]*(${p})(?:\.(${p})(?:\.(${p})(?:${c})?${d}?)?)?`,String.raw`[v=\s]*(${m})(?:\.(${m})(?:\.(${m})(?:${l})?${d}?)?)?`,String.raw`(?:\^)`;var h=String.raw`(^|[^\d])(\d{1,${16}})(?:\.(\d{1,${16}}))?(?:\.(\d{1,${16}}))?`,g=String.raw`${h}(?:$|[^\d])`,_=String.raw`${h}(?:${c})?(?:${d})?(?:$|[^\d])`;function v(t){let n=[[String.raw`\s`,1],[String.raw`\d`,256],[e,250]];for(let[e,r]of n)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t}function y(e,t){return new RegExp(v(e),t)}var b=y(`^${ee}$`),x=y(`^${f}$`),S=/^\d+$/;function te(e){let t=`${e.major}.${e.minor}.${e.patch}`;return e.prerelease?.length?`${t}-${e.prerelease.join(`.`)}`:t}function ne(e){let t=te(e);return e.build?.length?`${t}+${e.build.join(`.`)}`:t}function re(e,t={}){if(typeof e!=`string`)return e;if(e.length>256)throw TypeError(`Version exceeds the maximum length of 256 characters`);let n=e.trim().match(t.loose?x:b);if(!n)throw TypeError(`Invalid version syntax: ${e}`);let r=Number(n[1]),i=Number(n[2]),a=Number(n[3]);if(r>2**53-1||r<0)throw TypeError(`Invalid major version: ${n[1]}`);if(i>2**53-1||i<0)throw TypeError(`Invalid minor version: ${n[2]}`);if(a>2**53-1||a<0)throw TypeError(`Invalid patch version: ${n[3]}`);let o=n[4]?n[4].split(`.`).map(e=>{if(S.test(e)){let t=Number(e);if(t>=0&&t<2**53-1)return t}return e}):void 0;return{build:n[5]?.split(`.`),major:r,minor:i,patch:a,prerelease:o}}function C(e,t={}){try{return re(e,t)}catch{return null}}var ie=y(g),w=y(_);y(`^${c}$`),y(`^${l}$`);function T(e,t={}){let n=C(e,t);return n?ne(n):null}function E(e,t={}){if(typeof e==`object`)return e;let n=typeof e==`number`?String(e):e,r=null;if(t.rtl){let e=y(t.includePrerelease?_:g,`g`),i;for(;(i=e.exec(n))&&(!r||r.index+r[0].length!==n.length);)(!r||i.index+i[0].length!==r.index+r[0].length)&&(r=i),e.lastIndex=i.index+i[1].length+i[2].length}else r=(t.includePrerelease?w:ie).exec(n);if(!r)return null;let i=r[2];return C(`${i}.${r[3]||`0`}.${r[4]||`0`}${t.includePrerelease&&r[5]?`-${r[5]}`:``}${t.includePrerelease&&r[6]?`+${r[6]}`:``}`,t)}function D(e){let t=E(e);return t?T(t):null}var O=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`;function k(e){let t=[];for(let n of e){let e=n.codePointAt(0);e<=127?t.push(e):e<=2047?t.push(192|e>>6,128|e&63):e<=65535?t.push(224|e>>12,128|e>>6&63,128|e&63):t.push(240|e>>18,128|e>>12&63,128|e>>6&63,128|e&63)}return t}function A(e){let t=``;for(let n=0;n<e.length;){let r=e[n++],i,a;if(r<=127)i=r,a=0;else if((r&224)==192)i=r&31,a=1;else if((r&240)==224)i=r&15,a=2;else if((r&248)==240)i=r&7,a=3;else throw Error(`Invalid UTF-8 channel key`);for(let t=0;t<a;t+=1){let t=e[n++];if(t===void 0||(t&192)!=128)throw Error(`Invalid UTF-8 channel key`);i=i<<6|t&63}if(i>1114111||i>=55296&&i<=57343||a===1&&i<128||a===2&&i<2048||a===3&&i<65536)throw Error(`Invalid UTF-8 channel key`);t+=String.fromCodePoint(i)}return t}function j(e){let t=``;for(let n=0;n<e.length;n+=3){let r=e[n],i=e[n+1],a=e[n+2],o=r<<16|(i??0)<<8|(a??0);t+=O[o>>18&63],t+=O[o>>12&63],i!==void 0&&(t+=O[o>>6&63]),a!==void 0&&(t+=O[o&63])}return t}function M(e){if(!/^[A-Za-z0-9_-]*$/.test(e)||e.length%4==1)throw Error(`Invalid channel key`);let t=[];for(let n=0;n<e.length;n+=4){let r=e.slice(n,n+4),i=[...r].map(e=>O.indexOf(e));if(i.some(e=>e<0))throw Error(`Invalid channel key`);let a=i[0]<<18|i[1]<<12|(i[2]??0)<<6|(i[3]??0);t.push(a>>16&255),r.length>=3&&t.push(a>>8&255),r.length===4&&t.push(a&255)}return t}function N(e){return e.trim().normalize(`NFC`)}function P(e){let t=N(e);if(t.length===0||t!==e)throw Error(`Channel name must be non-empty, trimmed, and NFC-normalized`);let n=0;for(let e of t)if(n+=1,n>255)throw Error(`Channel name must not exceed 255 characters`)}function F(e){return P(e),j(k(e))}function I(e){let t=A(M(e));if(P(t),F(t)!==e)throw Error(`Channel key is not canonically encoded`);return t}var L=/^[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/,R=e=>typeof e==`string`&&L.test(e),z=e=>{if(!e||typeof e!=`object`||Array.isArray(e))return!1;let t=e;return typeof t.baseBundleId==`string`&&typeof t.baseFileHash==`string`&&typeof t.patchFileHash==`string`&&typeof t.patchStorageUri==`string`},B=e=>Array.isArray(e)?e.filter(z):[],V=e=>{let t=B(e.patches),n=new Set;return t.filter(e=>n.has(e.baseBundleId)?!1:(n.add(e.baseBundleId),!0))},H=e=>V(e)[0]??null,U=e=>H(e)?.baseBundleId??null,ae=e=>H(e)?.baseFileHash??null,W=e=>H(e)?.patchFileHash??null,G=1e3,K=G,q=`Invalid cohort. Use 1-1000 or a lowercase slug without spaces, up to 64 characters.`,J=/^[a-z0-9-]+$/;function Y(e){if(!/^\d+$/.test(e))return null;let t=Number.parseInt(e,10);return Number.isNaN(t)||t<1||t>1e3?null:t}function X(e,t){return(e%t+t)%t}function Z(e){let t=0;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t=(t<<5)-t+r,t|=0}return t}function oe(e,t){let n=Math.abs(e),r=Math.abs(t);for(;r!==0;){let e=n%r;n=r,r=e}return n}function se(e,t){let n=0,r=1,i=t,a=X(e,t);for(;a!==0;){let e=Math.floor(i/a);[n,r]=[r,n-e*r],[i,a]=[a,i-e*a]}if(i>1)throw Error(`No modular inverse for ${e} mod ${t}`);return X(n,t)}function ce(e){let t=X(Z(`${e}:multiplier`),997);for(t===0&&(t=1);oe(t,G)!==1;)t=X(t+1,G),t===0&&(t=1);let n=X(Z(`${e}:offset`),G);return{multiplier:t,offset:n,inverseMultiplier:se(t,G)}}function le(e){return e==null?K:e<=0?0:e>=1e3?G:Math.floor(e)}function Q(e){let t=e.trim().toLowerCase(),n=Y(t);return n===null?t:String(n)}function $(e){return Y(Q(e))}function ue(e){return $(e)!==null}function de(e){let t=Q(e);return t.length>0&&t.length<=64&&!/^\d+$/.test(t)&&J.test(t)}function fe(e){let t=Q(e);return ue(t)||de(t)}function pe(e,t){if(t<1||t>1e3)throw Error(`Invalid numeric cohort: ${t}`);let{offset:n,inverseMultiplier:r}=ce(e);return X(r*(t-1-n),G)}var me=e=>{if(!R(e))throw TypeError(`Expected a canonical lowercase UUIDv7`);let t=e.split(`-`).join(``).slice(0,12);return Number.parseInt(t,16)},he=`production`,ge=`All channels`;export{G as a,ae as c,Q as d,le as f,R as g,I as h,q as i,W as l,D as m,he as n,pe as o,P as p,me as r,U as s,ge as t,fe as u};