@tempoxyz/id 0.0.0-pr-293.sha-db2bcd0 → 0.0.0-pr-293.sha-e314a6e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/client/assets/Account-BYLpNFf3.css +1 -0
- package/dist/app/client/assets/Account-DKlYpUaF.js +1 -0
- package/dist/app/client/assets/Amount-ZdtluGf-.css +1 -0
- package/dist/app/client/assets/Amount-uCaXmEC1.js +1 -0
- package/dist/app/client/assets/{Approval-lMS61Hor.js → Approval-_VTK0bIA.js} +1 -1
- package/dist/app/client/assets/{Authentication-CNU_hdsE.js → Authentication-CcZraW4V.js} +1 -1
- package/dist/app/client/assets/Callout-Cpp2tekO.js +1 -0
- package/dist/app/client/assets/Callout-DBfEmP7q.css +1 -0
- package/dist/app/client/assets/{Chain-CgM0gkul.js → Chain-BaJbQHEq.js} +1 -1
- package/dist/app/client/assets/{Check-l6Xt-h8M.js → Check-T-Kf-w2J.js} +1 -1
- package/dist/app/client/assets/{ChevronRight-Dgx1CBfS.js → ChevronRight-Cb0izsfB.js} +1 -1
- package/dist/app/client/assets/{ChooseAccount-DKQvWYym.js → ChooseAccount-BbdtokuQ.js} +1 -1
- package/dist/app/client/assets/{Client-B3HiaUR7.js → Client-XdlKOIjT.js} +1 -1
- package/dist/app/client/assets/{Close-CHeDbDyp.js → Close-9qiwSZoT.js} +1 -1
- package/dist/app/client/assets/{Cloud-BnBzwFJQ.js → Cloud-yU0Kxv28.js} +1 -1
- package/dist/app/client/assets/CodeInput-BqRteSwD.css +1 -0
- package/dist/app/client/assets/CodeInput-C8ad0edh.js +1 -0
- package/dist/app/client/assets/Deposit-CclrAoXL.css +1 -0
- package/dist/app/client/assets/Deposit-b5yx-L71.js +1 -0
- package/dist/app/client/assets/DevTools-BYkmtuV5.css +1 -0
- package/dist/app/client/assets/DevTools-Cgd0Ogan.js +1 -0
- package/dist/app/client/assets/{DeviceApproval-DKQklicf.js → DeviceApproval-CGdmL9U5.js} +1 -1
- package/dist/app/client/assets/{Fingerprint-CVLZp0fE.js → Fingerprint-081gQp_i.js} +1 -1
- package/dist/app/client/assets/{Globe-RAkdkLVn.js → Globe-D4HEnXoi.js} +1 -1
- package/dist/app/client/assets/Grant-5a-n1gJH.css +1 -0
- package/dist/app/client/assets/Grant-C-7ibHJb.js +1 -0
- package/dist/app/client/assets/Hex-C9KeV7_9.css +1 -0
- package/dist/app/client/assets/Hex-COpLAksw.js +10 -0
- package/dist/app/client/assets/IconChip-Cr71cqFZ.js +1 -0
- package/dist/app/client/assets/IconChip-yqaQ2y_d.css +1 -0
- package/dist/app/client/assets/InputGroup-BMExR1w7.js +1 -0
- package/dist/app/client/assets/InputGroup-BlZvt9In.css +1 -0
- package/dist/app/client/assets/Inter-cyrillic-e3OmmzmJ.woff2 +0 -0
- package/dist/app/client/assets/Inter-cyrillic-ext-DOWZeO4Q.woff2 +0 -0
- package/dist/app/client/assets/Inter-greek-BD3ujQlX.woff2 +0 -0
- package/dist/app/client/assets/Inter-greek-ext-CXEwbus4.woff2 +0 -0
- package/dist/app/client/assets/Inter-latin-BDFm4vTb.woff2 +0 -0
- package/dist/app/client/assets/Inter-latin-ext-E7a9JEPe.woff2 +0 -0
- package/dist/app/client/assets/Inter-symbols-DEch7Rxr.woff2 +0 -0
- package/dist/app/client/assets/Inter-vietnamese-Bg9723vR.woff2 +0 -0
- package/dist/app/client/assets/Loader-CVy-jQh9.js +1 -0
- package/dist/app/client/assets/{PopoverPopup-AaR182Lw.js → PopoverPopup-CQv00nl_.js} +1 -1
- package/dist/app/client/assets/Rows-CT3nC-Gp.js +1 -0
- package/dist/app/client/assets/Rows-DPGTUdA8.css +1 -0
- package/dist/app/client/assets/{Separator-C1NRk_mW.js → Separator-Doxz2kha.js} +1 -1
- package/dist/app/client/assets/SignIn-D2D3rbzT.js +1 -0
- package/dist/app/client/assets/SignIn-mlBTwUq4.css +1 -0
- package/dist/app/client/assets/Stack-D7Yt22Ed.css +1 -0
- package/dist/app/client/assets/Stack-qm24zmlV.js +1 -0
- package/dist/app/client/assets/ToolbarRootContext-Ctu7JTLk.js +1 -0
- package/dist/app/client/assets/Tooltip-arQraM0D.js +1 -0
- package/dist/app/client/assets/Tooltip-d3y9ESUJ.css +1 -0
- package/dist/app/client/assets/___-I98bns4o.css +1 -0
- package/dist/app/client/assets/___.flows-8Dmgeehd.js +5 -0
- package/dist/app/client/assets/{authorize-BQ1QbDZ8.js → authorize-DAtsqrNM.js} +1 -1
- package/dist/app/client/assets/{choose-account-Da0fLaYb.js → choose-account-DEFRgijo.js} +1 -1
- package/dist/app/client/assets/{deposit-CwKR_KjX.js → deposit--QiYWQfo.js} +1 -1
- package/dist/app/client/assets/{device-CCwq2oAs.js → device-Bq9xs5K6.js} +1 -1
- package/dist/app/client/assets/{error-Dj24A5n4.js → error-IQXxc1eM.js} +1 -1
- package/dist/app/client/assets/{getPseudoElementBounds-DH_jjqMh.js → getPseudoElementBounds-4olojy3W.js} +1 -1
- package/dist/app/client/assets/index-CyFheDuU.js +13 -0
- package/dist/app/client/assets/index-DSkPoKOK.css +1 -0
- package/dist/app/client/assets/{lazyRouteComponent-108fI1-o.js → lazyRouteComponent-Dz0rIGYN.js} +1 -1
- package/dist/app/client/assets/{login--cK4-SN_.js → login-B0BjHqjo.js} +1 -1
- package/dist/app/client/assets/pathUSD-BMh6ajrW.css +1 -0
- package/dist/app/client/assets/pathUSD-DuAfAKZZ.js +1 -0
- package/dist/app/client/assets/{removable-CZFK4Sbw.js → removable-CbJQgeuY.js} +1 -1
- package/dist/app/client/assets/{routes-BEKA6M9o.js → routes-BkBTe_Iu.js} +1 -1
- package/dist/app/client/assets/{suspense-ClIj0Mjn.js → suspense-Djz3yPi6.js} +1 -1
- package/dist/app/client/assets/useNavigate-B3GfD6JV.js +1 -0
- package/dist/app/client/assets/{useRegisterFieldControl-r_mKBm9D.js → useRegisterFieldControl-C8uwO_R4.js} +1 -1
- package/dist/app/client/assets/zyzz-DYC-X0_B.css +1 -0
- package/dist/app/client/assets/zyzz.config-DJRBo25J.js +2 -0
- package/dist/app/server/.vite/manifest.json +640 -608
- package/dist/app/server/assets/Account-BYLpNFf3.css +1 -0
- package/dist/app/server/assets/Account-g1_Uaj86.js +2 -0
- package/dist/app/server/assets/Account-g1_Uaj86.js.map +1 -0
- package/dist/app/server/assets/Amount-BXSuv2fx.js +2 -0
- package/dist/app/server/assets/Amount-BXSuv2fx.js.map +1 -0
- package/dist/app/server/assets/Amount-ZdtluGf-.css +1 -0
- package/dist/app/server/assets/{Approval-DhLkTvkI.js → Approval-DA8fDZIl.js} +2 -2
- package/dist/app/server/assets/{Approval-DhLkTvkI.js.map → Approval-DA8fDZIl.js.map} +1 -1
- package/dist/app/server/assets/{Authentication-Odm8-gfs.js → Authentication-BJgy8lyC.js} +2 -2
- package/dist/app/server/assets/{Authentication-Odm8-gfs.js.map → Authentication-BJgy8lyC.js.map} +1 -1
- package/dist/app/server/assets/{Authentication-DLWMd2mA.js → Authentication-CsSh3HGu.js} +2 -2
- package/dist/app/server/assets/{Authentication-DLWMd2mA.js.map → Authentication-CsSh3HGu.js.map} +1 -1
- package/dist/app/server/assets/Callout-DBfEmP7q.css +1 -0
- package/dist/app/server/assets/Callout-DlcQ5BUo.js +2 -0
- package/dist/app/server/assets/Callout-DlcQ5BUo.js.map +1 -0
- package/dist/app/server/assets/{Chain-CQgBRAXx.js → Chain-C9RGZDJm.js} +2 -2
- package/dist/app/server/assets/{Chain-CQgBRAXx.js.map → Chain-C9RGZDJm.js.map} +1 -1
- package/dist/app/server/assets/{Check-BwwQ6kDn.js → Check-CQIa-Y5d.js} +2 -2
- package/dist/app/server/assets/{Check-BwwQ6kDn.js.map → Check-CQIa-Y5d.js.map} +1 -1
- package/dist/app/server/assets/{ChevronRight-B_ft-uyS.js → ChevronRight-wzF9Mh2e.js} +2 -2
- package/dist/app/server/assets/{ChevronRight-B_ft-uyS.js.map → ChevronRight-wzF9Mh2e.js.map} +1 -1
- package/dist/app/server/assets/{ChooseAccount-FJJ2kRPk.js → ChooseAccount-De_YweJM.js} +2 -2
- package/dist/app/server/assets/{ChooseAccount-FJJ2kRPk.js.map → ChooseAccount-De_YweJM.js.map} +1 -1
- package/dist/app/server/assets/{Client-D3gnMDTr.js → Client-BAXSFa9e.js} +2 -2
- package/dist/app/server/assets/{Client-D3gnMDTr.js.map → Client-BAXSFa9e.js.map} +1 -1
- package/dist/app/server/assets/{ClientOnly-CbQVNHub.js → ClientOnly-B8k5xDwz.js} +2 -2
- package/dist/app/server/assets/{ClientOnly-CbQVNHub.js.map → ClientOnly-B8k5xDwz.js.map} +1 -1
- package/dist/app/server/assets/{Close-ChRMz-uR.js → Close-C74hwnOn.js} +2 -2
- package/dist/app/server/assets/{Close-ChRMz-uR.js.map → Close-C74hwnOn.js.map} +1 -1
- package/dist/app/server/assets/{Cloud-C3_mtq_Y.js → Cloud-CYXeneSe.js} +2 -2
- package/dist/app/server/assets/{Cloud-C3_mtq_Y.js.map → Cloud-CYXeneSe.js.map} +1 -1
- package/dist/app/server/assets/CodeInput-BqRteSwD.css +1 -0
- package/dist/app/server/assets/CodeInput-DdkMKOyq.js +2 -0
- package/dist/app/server/assets/CodeInput-DdkMKOyq.js.map +1 -0
- package/dist/app/server/assets/{Credential-D82PNwyx.js → Credential-DXcfPJEP.js} +2 -2
- package/dist/app/server/assets/{Credential-D82PNwyx.js.map → Credential-DXcfPJEP.js.map} +1 -1
- package/dist/app/server/assets/Deposit-CclrAoXL.css +1 -0
- package/dist/app/server/assets/Deposit-DOp5HCDX.js +2 -0
- package/dist/app/server/assets/Deposit-DOp5HCDX.js.map +1 -0
- package/dist/app/server/assets/DevTools-BYkmtuV5.css +1 -0
- package/dist/app/server/assets/DevTools-CxdPUN3V.js +2 -0
- package/dist/app/server/assets/DevTools-CxdPUN3V.js.map +1 -0
- package/dist/app/server/assets/{DeviceApproval-BhWgrv9l.js → DeviceApproval-o7T8XlX3.js} +2 -2
- package/dist/app/server/assets/{DeviceApproval-BhWgrv9l.js.map → DeviceApproval-o7T8XlX3.js.map} +1 -1
- package/dist/app/server/assets/{ExecutionError-DSSCSoHl.js → ExecutionError-DoRNvh3D.js} +2 -2
- package/dist/app/server/assets/{ExecutionError-DSSCSoHl.js.map → ExecutionError-DoRNvh3D.js.map} +1 -1
- package/dist/app/server/assets/{Faucet-Cv-nQMBR.js → Faucet-jp6zNWHE.js} +2 -2
- package/dist/app/server/assets/{Faucet-Cv-nQMBR.js.map → Faucet-jp6zNWHE.js.map} +1 -1
- package/dist/app/server/assets/{Fingerprint-B0Iay4Ws.js → Fingerprint-CAqjOS3T.js} +2 -2
- package/dist/app/server/assets/{Fingerprint-B0Iay4Ws.js.map → Fingerprint-CAqjOS3T.js.map} +1 -1
- package/dist/app/server/assets/{Globe-C6rnzTY0.js → Globe-BZ_5dGqa.js} +2 -2
- package/dist/app/server/assets/{Globe-C6rnzTY0.js.map → Globe-BZ_5dGqa.js.map} +1 -1
- package/dist/app/server/assets/Grant-5a-n1gJH.css +1 -0
- package/dist/app/{client/assets/Grant-DurkleN7.js → server/assets/Grant-BwOC2P94.js} +2 -1
- package/dist/app/server/assets/Grant-BwOC2P94.js.map +1 -0
- package/dist/app/server/assets/Hex-67thYs-f.js +11 -0
- package/dist/app/server/assets/Hex-67thYs-f.js.map +1 -0
- package/dist/app/server/assets/Hex-C9KeV7_9.css +1 -0
- package/dist/app/server/assets/IconChip-Cmufss8d.js +2 -0
- package/dist/app/server/assets/IconChip-Cmufss8d.js.map +1 -0
- package/dist/app/server/assets/IconChip-yqaQ2y_d.css +1 -0
- package/dist/app/server/assets/InputGroup-BlZvt9In.css +1 -0
- package/dist/app/server/assets/InputGroup-Bn2KM9pd.js +2 -0
- package/dist/app/server/assets/InputGroup-Bn2KM9pd.js.map +1 -0
- package/dist/app/server/assets/Inter-cyrillic-e3OmmzmJ.woff2 +0 -0
- package/dist/app/server/assets/Inter-cyrillic-ext-DOWZeO4Q.woff2 +0 -0
- package/dist/app/server/assets/Inter-greek-BD3ujQlX.woff2 +0 -0
- package/dist/app/server/assets/Inter-greek-ext-CXEwbus4.woff2 +0 -0
- package/dist/app/server/assets/Inter-latin-BDFm4vTb.woff2 +0 -0
- package/dist/app/server/assets/Inter-latin-ext-E7a9JEPe.woff2 +0 -0
- package/dist/app/server/assets/Inter-symbols-DEch7Rxr.woff2 +0 -0
- package/dist/app/server/assets/Inter-vietnamese-Bg9723vR.woff2 +0 -0
- package/dist/app/server/assets/Loader-DvDbd8kj.js +2 -0
- package/dist/app/server/assets/{Loader-Ivf5dWFl.js.map → Loader-DvDbd8kj.js.map} +1 -1
- package/dist/app/server/assets/{Match-DusFDz9D.js → Match-C65vhhhD.js} +2 -2
- package/dist/app/server/assets/{Match-DusFDz9D.js.map → Match-C65vhhhD.js.map} +1 -1
- package/dist/app/server/assets/PopoverPopup-kuWGUSYM.js +2 -0
- package/dist/app/server/assets/{PopoverPopup-D98JOZVe.js.map → PopoverPopup-kuWGUSYM.js.map} +1 -1
- package/dist/app/server/assets/Rows-DPGTUdA8.css +1 -0
- package/dist/app/server/assets/Rows-eTPur_py.js +2 -0
- package/dist/app/server/assets/Rows-eTPur_py.js.map +1 -0
- package/dist/app/server/assets/{Separator-B6od-9JY.js → Separator-BPNenixO.js} +2 -2
- package/dist/app/server/assets/{Separator-B6od-9JY.js.map → Separator-BPNenixO.js.map} +1 -1
- package/dist/app/server/assets/SignIn-CVPZSR-8.js +2 -0
- package/dist/app/server/assets/SignIn-CVPZSR-8.js.map +1 -0
- package/dist/app/server/assets/SignIn-mlBTwUq4.css +1 -0
- package/dist/app/server/assets/Stack-D7Yt22Ed.css +1 -0
- package/dist/app/server/assets/Stack-DQMZBUUB.js +2 -0
- package/dist/app/server/assets/Stack-DQMZBUUB.js.map +1 -0
- package/dist/app/server/assets/ToolbarRootContext-5168W3t4.js +2 -0
- package/dist/app/server/assets/{ToolbarRootContext-BCmWBQ7n.js.map → ToolbarRootContext-5168W3t4.js.map} +1 -1
- package/dist/app/server/assets/Tooltip-DR3nssae.js +2 -0
- package/dist/app/server/assets/Tooltip-DR3nssae.js.map +1 -0
- package/dist/app/server/assets/Tooltip-d3y9ESUJ.css +1 -0
- package/dist/app/server/assets/___-I98bns4o.css +1 -0
- package/dist/app/server/assets/___.flows-D_J822MU.js +6 -0
- package/dist/app/server/assets/___.flows-D_J822MU.js.map +1 -0
- package/dist/app/server/assets/_tanstack-start-manifest_v-DQjMcFpU.js +1 -0
- package/dist/app/server/assets/{_zyzz__2Fhome_2Frunner_2Fwork_2Fid_2Fid_2Fsrc_2Fapp_2Froutes_2F_5B__5D.flows.tsx-Drf_Iqhc.js → _zyzz__2Fhome_2Frunner_2Fwork_2Fid_2Fid_2Fsrc_2Fapp_2Froutes_2F_5B__5D.flows.tsx-EmCsnNUQ.js} +2 -2
- package/dist/app/server/assets/{_zyzz__2Fhome_2Frunner_2Fwork_2Fid_2Fid_2Fsrc_2Fapp_2Froutes_2F_5B__5D.flows.tsx-Drf_Iqhc.js.map → _zyzz__2Fhome_2Frunner_2Fwork_2Fid_2Fid_2Fsrc_2Fapp_2Froutes_2F_5B__5D.flows.tsx-EmCsnNUQ.js.map} +1 -1
- package/dist/app/server/assets/{accessKey-CxNqjouy.js → accessKey-DlBe71R7.js} +4 -4
- package/dist/app/server/assets/{accessKey-CxNqjouy.js.map → accessKey-DlBe71R7.js.map} +1 -1
- package/dist/app/server/assets/{authorize-D_5EG0WN.js → authorize-C3nY01zc.js} +2 -2
- package/dist/app/server/assets/{authorize-D_5EG0WN.js.map → authorize-C3nY01zc.js.map} +1 -1
- package/dist/app/server/assets/{authorize-pZETCSux.js → authorize-C9tfZ34z.js} +2 -2
- package/dist/app/server/assets/{authorize-pZETCSux.js.map → authorize-C9tfZ34z.js.map} +1 -1
- package/dist/app/server/assets/{authorize-DXYo-K2n-08rIhXFT.js → authorize-DXYo-K2n-Bc8o9t1x.js} +2 -2
- package/dist/app/server/assets/{authorize-DXYo-K2n-08rIhXFT.js.map → authorize-DXYo-K2n-Bc8o9t1x.js.map} +1 -1
- package/dist/app/server/assets/{choose-account-BOPrs9l7.js → choose-account-DNfcLweT.js} +2 -2
- package/dist/app/server/assets/{choose-account-BOPrs9l7.js.map → choose-account-DNfcLweT.js.map} +1 -1
- package/dist/app/server/assets/{choose-account-MDW4jp29.js → choose-account-Lq0qFqBr.js} +2 -2
- package/dist/app/server/assets/{choose-account-MDW4jp29.js.map → choose-account-Lq0qFqBr.js.map} +1 -1
- package/dist/app/server/assets/{core-Dxqe4Tzf.js → core-Ci_AVqAl.js} +2 -2
- package/dist/app/server/assets/{core-Dxqe4Tzf.js.map → core-Ci_AVqAl.js.map} +1 -1
- package/dist/app/server/assets/default-u_dwuiYb-D3URkhAV.js +2 -0
- package/dist/app/server/assets/{default-u_dwuiYb-BZX-cEte.js.map → default-u_dwuiYb-D3URkhAV.js.map} +1 -1
- package/dist/app/server/assets/{deposit-AgLrOoA3.js → deposit-Ch8VqCtG.js} +2 -2
- package/dist/app/server/assets/{deposit-AgLrOoA3.js.map → deposit-Ch8VqCtG.js.map} +1 -1
- package/dist/app/server/assets/{deposit-Cjt69KmJ.js → deposit-xQrouL3f.js} +2 -2
- package/dist/app/server/assets/{deposit-Cjt69KmJ.js.map → deposit-xQrouL3f.js.map} +1 -1
- package/dist/app/server/assets/{device-TEgIth9V.js → device-BAsgIC7D.js} +2 -2
- package/dist/app/server/assets/{device-TEgIth9V.js.map → device-BAsgIC7D.js.map} +1 -1
- package/dist/app/server/assets/{device-DO_RH0Or.js → device-BV99aHMG.js} +2 -2
- package/dist/app/server/assets/{device-DO_RH0Or.js.map → device-BV99aHMG.js.map} +1 -1
- package/dist/app/server/assets/dist-BhIyCFP8.js +1 -0
- package/dist/app/server/assets/{dist-C9wLcfH8.js → dist-C-Rzwa6V.js} +2 -2
- package/dist/app/server/assets/{dist-C9wLcfH8.js.map → dist-C-Rzwa6V.js.map} +1 -1
- package/dist/app/server/assets/{dist-SBl0rlY-.js → dist-CJN10pUl.js} +2 -2
- package/dist/app/server/assets/{dist-SBl0rlY-.js.map → dist-CJN10pUl.js.map} +1 -1
- package/dist/app/server/assets/{effect-QlVUlMFu-aB2jdYth.js → effect-QlVUlMFu-svPBY1dH.js} +2 -2
- package/dist/app/server/assets/{effect-QlVUlMFu-aB2jdYth.js.map → effect-QlVUlMFu-svPBY1dH.js.map} +1 -1
- package/dist/app/server/assets/{error-BDVg4EUJ.js → error-CHeOE_lh.js} +2 -2
- package/dist/app/server/assets/{error-BDVg4EUJ.js.map → error-CHeOE_lh.js.map} +1 -1
- package/dist/app/server/assets/{error-Yg6jqry-.js → error-PecJkSHO.js} +2 -2
- package/dist/app/server/assets/{error-Yg6jqry-.js.map → error-PecJkSHO.js.map} +1 -1
- package/dist/app/server/assets/{factory-BPswjDEW.js → factory-Bs0vLkBr.js} +2 -2
- package/dist/app/server/assets/{factory-BPswjDEW.js.map → factory-Bs0vLkBr.js.map} +1 -1
- package/dist/app/server/assets/getPseudoElementBounds-DIn3v91B.js +2 -0
- package/dist/app/server/assets/{getPseudoElementBounds-BdqJhx6M.js.map → getPseudoElementBounds-DIn3v91B.js.map} +1 -1
- package/dist/app/server/assets/{index-CLddUTqr-Bavq3Qss.js → index-CLddUTqr-CmUyZRXY.js} +2 -2
- package/dist/app/server/assets/{index-CLddUTqr-Bavq3Qss.js.map → index-CLddUTqr-CmUyZRXY.js.map} +1 -1
- package/dist/app/server/assets/{index-DZEfthgZ--TkOBRwP.js → index-DZEfthgZ-Bkf7F_aP.js} +2 -2
- package/dist/app/server/assets/{index-DZEfthgZ--TkOBRwP.js.map → index-DZEfthgZ-Bkf7F_aP.js.map} +1 -1
- package/dist/app/server/assets/{kysely-adapter-BVql8na5.js → kysely-adapter-DhztbDJz.js} +1 -1
- package/dist/app/server/assets/{lazyRouteComponent-BXabRVTE.js → lazyRouteComponent-DOSE663E.js} +2 -2
- package/dist/app/server/assets/{lazyRouteComponent-BXabRVTE.js.map → lazyRouteComponent-DOSE663E.js.map} +1 -1
- package/dist/app/server/assets/{login-BR3Vh4Jw.js → login-6K4ND-gN.js} +2 -2
- package/dist/app/server/assets/{login-BR3Vh4Jw.js.map → login-6K4ND-gN.js.map} +1 -1
- package/dist/app/server/assets/{login-DtRzF4FQ.js → login-CGq85v-9.js} +2 -2
- package/dist/app/server/assets/{login-DtRzF4FQ.js.map → login-CGq85v-9.js.map} +1 -1
- package/dist/app/server/assets/{matchContext-Cuq8aYzA.js → matchContext-BHbopc_c.js} +2 -2
- package/dist/app/server/assets/{matchContext-Cuq8aYzA.js.map → matchContext-BHbopc_c.js.map} +1 -1
- package/dist/app/server/assets/{mutation-BseSOMT8.js → mutation-D0MCZKRo.js} +2 -2
- package/dist/app/server/assets/{mutation-BseSOMT8.js.map → mutation-D0MCZKRo.js.map} +1 -1
- package/dist/app/server/assets/pathUSD-BMh6ajrW.css +1 -0
- package/dist/app/server/assets/pathUSD-DqRWfB70.js +2 -0
- package/dist/app/server/assets/pathUSD-DqRWfB70.js.map +1 -0
- package/dist/app/server/assets/{query-lzX3sTGO.js → query-BfAOtP6H.js} +2 -2
- package/dist/app/server/assets/{query-lzX3sTGO.js.map → query-BfAOtP6H.js.map} +1 -1
- package/dist/app/server/assets/react-dom-BbDIEd_j.css +1 -0
- package/dist/app/server/assets/{react-dom-DtwtyQPy.js → react-dom-pSpaua7D.js} +1 -1
- package/dist/app/server/assets/{react-dom-DtwtyQPy.js.map → react-dom-pSpaua7D.js.map} +1 -1
- package/dist/app/server/assets/{removable-HVB1MGzn.js → removable-BIS_RRBc.js} +2 -2
- package/dist/app/server/assets/{removable-HVB1MGzn.js.map → removable-BIS_RRBc.js.map} +1 -1
- package/dist/app/server/assets/{resolveError-DSqzEjUE.js → resolveError-DPXmbkOB.js} +2 -2
- package/dist/app/server/assets/{resolveError-DSqzEjUE.js.map → resolveError-DPXmbkOB.js.map} +1 -1
- package/dist/app/server/assets/{router-uhTdTHZE.js → router-nrTsbXpb.js} +2 -2
- package/dist/app/server/assets/router-nrTsbXpb.js.map +1 -0
- package/dist/app/server/assets/routes-BgiIzrOt.css +1 -0
- package/dist/app/server/assets/{routes-CeDOMpI-.js → routes-ClVSwEtU.js} +2 -2
- package/dist/app/server/assets/{routes-CeDOMpI-.js.map → routes-ClVSwEtU.js.map} +1 -1
- package/dist/app/server/assets/routes-DM3C9lXZ.js +2 -0
- package/dist/app/server/assets/routes-DM3C9lXZ.js.map +1 -0
- package/dist/app/server/assets/{schemas-fV27l6kI.js → schemas-CFw4XgfH.js} +2 -2
- package/dist/app/server/assets/{schemas-fV27l6kI.js.map → schemas-CFw4XgfH.js.map} +1 -1
- package/dist/app/server/assets/{secp256k1-5tp4GQIt.js → secp256k1-BmATpikU.js} +2 -2
- package/dist/app/server/assets/{secp256k1-5tp4GQIt.js.map → secp256k1-BmATpikU.js.map} +1 -1
- package/dist/app/server/assets/{sury-CWZTCd75-BPXRo6iz.js → sury-CWZTCd75-B2_9nmQ-.js} +2 -2
- package/dist/app/server/assets/{sury-CWZTCd75-BPXRo6iz.js.map → sury-CWZTCd75-B2_9nmQ-.js.map} +1 -1
- package/dist/app/server/assets/{suspense-CVCU9Kbi.js → suspense-gv0MCXZ8.js} +2 -2
- package/dist/app/server/assets/{suspense-CVCU9Kbi.js.map → suspense-gv0MCXZ8.js.map} +1 -1
- package/dist/app/server/assets/{useNavigate-D9psnozp.js → useNavigate-gn6-bYOz.js} +2 -2
- package/dist/app/server/assets/{useNavigate-D9psnozp.js.map → useNavigate-gn6-bYOz.js.map} +1 -1
- package/dist/app/server/assets/useRegisterFieldControl-DMeVvRtG.js +2 -0
- package/dist/app/server/assets/{useRegisterFieldControl-UOdCWAKS.js.map → useRegisterFieldControl-DMeVvRtG.js.map} +1 -1
- package/dist/app/server/assets/{utils-Dst7Jy9U.js → utils-CJnLBS6t.js} +2 -2
- package/dist/app/server/assets/{utils-Dst7Jy9U.js.map → utils-CJnLBS6t.js.map} +1 -1
- package/dist/app/server/assets/{valibot--1zFm7rT-LDsJca69.js → valibot--1zFm7rT-DAm9l6Yd.js} +2 -2
- package/dist/app/server/assets/{valibot--1zFm7rT-LDsJca69.js.map → valibot--1zFm7rT-DAm9l6Yd.js.map} +1 -1
- package/dist/app/server/assets/{valibot-D_HTw1Gn-DY-tIZ72.js → valibot-D_HTw1Gn-B_uu9X0a.js} +2 -2
- package/dist/app/server/assets/{valibot-D_HTw1Gn-DY-tIZ72.js.map → valibot-D_HTw1Gn-B_uu9X0a.js.map} +1 -1
- package/dist/app/server/assets/{zod-Bwrt9trS-Cf4c1iF8.js → zod-Bwrt9trS-DDq3sdx6.js} +2 -2
- package/dist/app/server/assets/{zod-Bwrt9trS-Cf4c1iF8.js.map → zod-Bwrt9trS-DDq3sdx6.js.map} +1 -1
- package/dist/app/server/assets/{zod-DSgpEGAE-IkLVlUaZ.js → zod-DSgpEGAE-Dzlub58Z.js} +2 -2
- package/dist/app/server/assets/{zod-DSgpEGAE-IkLVlUaZ.js.map → zod-DSgpEGAE-Dzlub58Z.js.map} +1 -1
- package/dist/app/server/assets/zyzz-6R2K52xP.css +1 -0
- package/dist/app/server/assets/{zyzz.config-DYq-16_0.js → zyzz.config-CW977vYL.js} +3 -3
- package/dist/app/server/assets/zyzz.config-CW977vYL.js.map +1 -0
- package/dist/app/server/index.js +3 -3
- package/package.json +1 -1
- package/dist/app/client/assets/Account-DiXbQ7gq.css +0 -1
- package/dist/app/client/assets/Account-JXT-dSA8.js +0 -1
- package/dist/app/client/assets/Amount-C5uw89Ge.js +0 -1
- package/dist/app/client/assets/Amount-Ck6sPRDT.css +0 -1
- package/dist/app/client/assets/Callout-DE0CvxbE.css +0 -1
- package/dist/app/client/assets/Callout-D_dLrptL.js +0 -1
- package/dist/app/client/assets/CodeInput-CXbj-o_B.js +0 -1
- package/dist/app/client/assets/CodeInput-C_clyqA2.css +0 -1
- package/dist/app/client/assets/Deposit-CAkrtNYZ.css +0 -1
- package/dist/app/client/assets/Deposit-Cv7IQBO0.js +0 -1
- package/dist/app/client/assets/DevTools-CnWAfvO2.js +0 -1
- package/dist/app/client/assets/DevTools-DLG9O0YT.css +0 -1
- package/dist/app/client/assets/Grant-B6bmC4rh.css +0 -1
- package/dist/app/client/assets/Hex-BR5nHbFT.js +0 -10
- package/dist/app/client/assets/Hex-CriDfcNg.css +0 -1
- package/dist/app/client/assets/IconChip-BVqRSUpG.css +0 -1
- package/dist/app/client/assets/IconChip-ClKbN-8M.js +0 -1
- package/dist/app/client/assets/InputGroup-4QFqa-T2.css +0 -1
- package/dist/app/client/assets/InputGroup-CEI6gBId.js +0 -1
- package/dist/app/client/assets/Inter-Variable-DiVDrmQJ.woff2 +0 -0
- package/dist/app/client/assets/Loader-CtzJeMeX.js +0 -1
- package/dist/app/client/assets/Rows-DgpXomcK.js +0 -1
- package/dist/app/client/assets/Rows-oSTffNii.css +0 -1
- package/dist/app/client/assets/SignIn-CjGB1wk9.js +0 -1
- package/dist/app/client/assets/SignIn-Dz1G9XNf.css +0 -1
- package/dist/app/client/assets/Stack-90EFgtQe.js +0 -1
- package/dist/app/client/assets/Stack-CKvHhjzW.css +0 -1
- package/dist/app/client/assets/ToolbarRootContext-dnisUzmP.js +0 -1
- package/dist/app/client/assets/Tooltip-9TI_rDvs.css +0 -1
- package/dist/app/client/assets/Tooltip-C3H_9mgz.js +0 -1
- package/dist/app/client/assets/___-7yUISk6H.css +0 -1
- package/dist/app/client/assets/___.flows-DwoJPGMf.js +0 -5
- package/dist/app/client/assets/index-BXTO-7dr.css +0 -1
- package/dist/app/client/assets/index-CkKM7xlX.js +0 -13
- package/dist/app/client/assets/pathUSD-DY3ycgMd.js +0 -1
- package/dist/app/client/assets/pathUSD-Dn2NadYx.css +0 -1
- package/dist/app/client/assets/useNavigate-DsbQ8bTr.js +0 -1
- package/dist/app/client/assets/zyzz-MTPfhrAv.css +0 -1
- package/dist/app/client/assets/zyzz.config-ENEfJGzk.js +0 -2
- package/dist/app/server/assets/Account-BqjoGTzm.js +0 -2
- package/dist/app/server/assets/Account-BqjoGTzm.js.map +0 -1
- package/dist/app/server/assets/Account-DiXbQ7gq.css +0 -1
- package/dist/app/server/assets/Amount-Ck6sPRDT.css +0 -1
- package/dist/app/server/assets/Amount-CmypanEu.js +0 -2
- package/dist/app/server/assets/Amount-CmypanEu.js.map +0 -1
- package/dist/app/server/assets/Callout-DE0CvxbE.css +0 -1
- package/dist/app/server/assets/Callout-_eafmkya.js +0 -2
- package/dist/app/server/assets/Callout-_eafmkya.js.map +0 -1
- package/dist/app/server/assets/CodeInput-CRxIP0KX.js +0 -2
- package/dist/app/server/assets/CodeInput-CRxIP0KX.js.map +0 -1
- package/dist/app/server/assets/CodeInput-C_clyqA2.css +0 -1
- package/dist/app/server/assets/Deposit-CAkrtNYZ.css +0 -1
- package/dist/app/server/assets/Deposit-CiWidviP.js +0 -2
- package/dist/app/server/assets/Deposit-CiWidviP.js.map +0 -1
- package/dist/app/server/assets/DevTools-BJcNvNjx.js +0 -2
- package/dist/app/server/assets/DevTools-BJcNvNjx.js.map +0 -1
- package/dist/app/server/assets/DevTools-DLG9O0YT.css +0 -1
- package/dist/app/server/assets/Grant-B6bmC4rh.css +0 -1
- package/dist/app/server/assets/Grant-N8RQy7lZ.js +0 -2
- package/dist/app/server/assets/Grant-N8RQy7lZ.js.map +0 -1
- package/dist/app/server/assets/Hex-CriDfcNg.css +0 -1
- package/dist/app/server/assets/Hex-vNjxlXvk.js +0 -11
- package/dist/app/server/assets/Hex-vNjxlXvk.js.map +0 -1
- package/dist/app/server/assets/IconChip-BQdjH8i6.js +0 -2
- package/dist/app/server/assets/IconChip-BQdjH8i6.js.map +0 -1
- package/dist/app/server/assets/IconChip-BVqRSUpG.css +0 -1
- package/dist/app/server/assets/InputGroup-4QFqa-T2.css +0 -1
- package/dist/app/server/assets/InputGroup-BhUIBTgI.js +0 -2
- package/dist/app/server/assets/InputGroup-BhUIBTgI.js.map +0 -1
- package/dist/app/server/assets/Inter-Variable-DiVDrmQJ.woff2 +0 -0
- package/dist/app/server/assets/Loader-Ivf5dWFl.js +0 -2
- package/dist/app/server/assets/PopoverPopup-D98JOZVe.js +0 -2
- package/dist/app/server/assets/Rows-BuyZXkPa.js +0 -2
- package/dist/app/server/assets/Rows-BuyZXkPa.js.map +0 -1
- package/dist/app/server/assets/Rows-oSTffNii.css +0 -1
- package/dist/app/server/assets/SignIn-D7jl6zbw.js +0 -2
- package/dist/app/server/assets/SignIn-D7jl6zbw.js.map +0 -1
- package/dist/app/server/assets/SignIn-Dz1G9XNf.css +0 -1
- package/dist/app/server/assets/Stack-C3ecM7vx.js +0 -2
- package/dist/app/server/assets/Stack-C3ecM7vx.js.map +0 -1
- package/dist/app/server/assets/Stack-CKvHhjzW.css +0 -1
- package/dist/app/server/assets/ToolbarRootContext-BCmWBQ7n.js +0 -2
- package/dist/app/server/assets/Tooltip-9TI_rDvs.css +0 -1
- package/dist/app/server/assets/Tooltip-D3NLigmC.js +0 -2
- package/dist/app/server/assets/Tooltip-D3NLigmC.js.map +0 -1
- package/dist/app/server/assets/___-7yUISk6H.css +0 -1
- package/dist/app/server/assets/___.flows-DRvHKxBR.js +0 -6
- package/dist/app/server/assets/___.flows-DRvHKxBR.js.map +0 -1
- package/dist/app/server/assets/_tanstack-start-manifest_v-BIobT_5u.js +0 -1
- package/dist/app/server/assets/default-u_dwuiYb-BZX-cEte.js +0 -2
- package/dist/app/server/assets/dist-k0uWU-Rh.js +0 -1
- package/dist/app/server/assets/getPseudoElementBounds-BdqJhx6M.js +0 -2
- package/dist/app/server/assets/pathUSD-CVs71wGH.js +0 -2
- package/dist/app/server/assets/pathUSD-CVs71wGH.js.map +0 -1
- package/dist/app/server/assets/pathUSD-Dn2NadYx.css +0 -1
- package/dist/app/server/assets/react-dom-bupMaze0.css +0 -1
- package/dist/app/server/assets/router-uhTdTHZE.js.map +0 -1
- package/dist/app/server/assets/routes-ZveUsG66.js +0 -2
- package/dist/app/server/assets/routes-ZveUsG66.js.map +0 -1
- package/dist/app/server/assets/routes-dxKeFXjL.css +0 -1
- package/dist/app/server/assets/useRegisterFieldControl-UOdCWAKS.js +0 -2
- package/dist/app/server/assets/zyzz-DuvTIyXM.css +0 -1
- package/dist/app/server/assets/zyzz.config-DYq-16_0.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{s as e}from"./react-dom-
|
|
2
|
-
//# sourceMappingURL=Check-
|
|
1
|
+
import{s as e}from"./react-dom-pSpaua7D.js";var t=e();function n(e){return(0,t.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:(0,t.jsx)(`path`,{d:`M12.4112 2.89832C12.5597 2.66559 12.8689 2.59669 13.1016 2.745C13.3344 2.89349 13.4024 3.20263 13.254 3.43543L7.08796 13.1024C6.90444 13.3901 6.49333 13.4133 6.27839 13.1483L2.77742 8.83289C2.60384 8.6186 2.63676 8.30373 2.85066 8.12976C3.06513 7.95582 3.38082 7.98853 3.55476 8.203L6.61726 11.9784L12.4112 2.89832Z`,fill:`currentColor`})})}export{n as t};
|
|
2
|
+
//# sourceMappingURL=Check-CQIa-Y5d.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Check-
|
|
1
|
+
{"version":3,"file":"Check-CQIa-Y5d.js","names":["_jsx","require_jsx_runtime","import_jsx_runtime","Check","props"],"sources":["../../../../../node_modules/.pnpm/@tempoxyz+ds@0.2.6_@types+react@19.3.0_react-dom@19.3.0_react@19.3.0__react-native@0.86_f564df10a26f3190a3aaf6288ad1f3d1/node_modules/@tempoxyz/ds/dist/web/icons/Check.js"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nexport function Check(props) {\n return (_jsx(\"svg\", { width: \"1em\", height: \"1em\", viewBox: \"0 0 16 16\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", \"aria-hidden\": props['aria-label'] || props['aria-labelledby'] ? undefined : true, role: props['aria-label'] || props['aria-labelledby'] ? 'img' : undefined, ...props, children: _jsx(\"path\", { d: \"M12.4112 2.89832C12.5597 2.66559 12.8689 2.59669 13.1016 2.745C13.3344 2.89349 13.4024 3.20263 13.254 3.43543L7.08796 13.1024C6.90444 13.3901 6.49333 13.4133 6.27839 13.1483L2.77742 8.83289C2.60384 8.6186 2.63676 8.30373 2.85066 8.12976C3.06513 7.95582 3.38082 7.98853 3.55476 8.203L6.61726 11.9784L12.4112 2.89832Z\", fill: \"currentColor\" }) }));\n}\n//# sourceMappingURL=Check.js.map"],"ignoreList":[0],"mappings":"A,sDACA,SAAgBG,EAAM,EAAO,CACzB,OAAA,EAAQH,EAAAA,IAAAA,CAAK,MAAO,CAAE,MAAO,MAAO,OAAQ,MAAO,QAAS,YAAa,KAAM,OAAQ,MAAO,6BAA8B,cAAeI,EAAM,eAAiBA,EAAM,mBAAqB,IAAA,GAAY,GAAM,KAAMA,EAAM,eAAiBA,EAAM,mBAAqB,MAAQ,IAAA,GAAW,GAAGA,EAAO,UAAA,EAAUJ,EAAAA,IAAAA,CAAK,OAAQ,CAAE,EAAG,8TAA+T,KAAM,cAAe,CAAC,CAAE,CAAC,CAC5pB,C"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{s as e}from"./react-dom-
|
|
2
|
-
//# sourceMappingURL=ChevronRight-
|
|
1
|
+
import{s as e}from"./react-dom-pSpaua7D.js";var t=e();function n(e){return(0,t.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:(0,t.jsx)(`path`,{d:`M6.1464 3.3135C6.34166 3.11824 6.65816 3.11824 6.85343 3.3135L10.7157 7.1758C11.1706 7.63138 11.1709 8.36981 10.7157 8.82522L6.85334 12.6875C6.6582 12.8824 6.34152 12.8823 6.14631 12.6875C5.95114 12.4923 5.95132 12.1758 6.14631 11.9805L10.0087 8.11819C10.0734 8.05331 10.0731 7.94789 10.0087 7.88284L6.1464 4.02053C5.95117 3.8253 5.95124 3.50877 6.1464 3.3135Z`,fill:`currentColor`})})}export{n as t};
|
|
2
|
+
//# sourceMappingURL=ChevronRight-wzF9Mh2e.js.map
|
package/dist/app/server/assets/{ChevronRight-B_ft-uyS.js.map → ChevronRight-wzF9Mh2e.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChevronRight-
|
|
1
|
+
{"version":3,"file":"ChevronRight-wzF9Mh2e.js","names":["_jsx","require_jsx_runtime","import_jsx_runtime","ChevronRight","props"],"sources":["../../../../../node_modules/.pnpm/@tempoxyz+ds@0.2.6_@types+react@19.3.0_react-dom@19.3.0_react@19.3.0__react-native@0.86_f564df10a26f3190a3aaf6288ad1f3d1/node_modules/@tempoxyz/ds/dist/web/icons/ChevronRight.js"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nexport function ChevronRight(props) {\n return (_jsx(\"svg\", { width: \"1em\", height: \"1em\", viewBox: \"0 0 16 16\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", \"aria-hidden\": props['aria-label'] || props['aria-labelledby'] ? undefined : true, role: props['aria-label'] || props['aria-labelledby'] ? 'img' : undefined, ...props, children: _jsx(\"path\", { d: \"M6.1464 3.3135C6.34166 3.11824 6.65816 3.11824 6.85343 3.3135L10.7157 7.1758C11.1706 7.63138 11.1709 8.36981 10.7157 8.82522L6.85334 12.6875C6.6582 12.8824 6.34152 12.8823 6.14631 12.6875C5.95114 12.4923 5.95132 12.1758 6.14631 11.9805L10.0087 8.11819C10.0734 8.05331 10.0731 7.94789 10.0087 7.88284L6.1464 4.02053C5.95117 3.8253 5.95124 3.50877 6.1464 3.3135Z\", fill: \"currentColor\" }) }));\n}\n//# sourceMappingURL=ChevronRight.js.map"],"ignoreList":[0],"mappings":"A,sDACA,SAAgBG,EAAa,EAAO,CAChC,OAAA,EAAQH,EAAAA,IAAAA,CAAK,MAAO,CAAE,MAAO,MAAO,OAAQ,MAAO,QAAS,YAAa,KAAM,OAAQ,MAAO,6BAA8B,cAAeI,EAAM,eAAiBA,EAAM,mBAAqB,IAAA,GAAY,GAAM,KAAMA,EAAM,eAAiBA,EAAM,mBAAqB,MAAQ,IAAA,GAAW,GAAGA,EAAO,UAAA,EAAUJ,EAAAA,IAAAA,CAAK,OAAQ,CAAE,EAAG,2WAA4W,KAAM,cAAe,CAAC,CAAE,CAAC,CACzsB,C"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{s as e}from"./react-dom-
|
|
2
|
-
//# sourceMappingURL=ChooseAccount-
|
|
1
|
+
import{s as e}from"./react-dom-pSpaua7D.js";import{t}from"./Stack-DQMZBUUB.js";import{i as n}from"./zyzz.config-CW977vYL.js";import{t as r}from"./Amount-BXSuv2fx.js";import{t as i}from"./Callout-DlcQ5BUo.js";import{n as a}from"./Hex-67thYs-f.js";import{t as o}from"./IconChip-Cmufss8d.js";import{t as s}from"./Rows-eTPur_py.js";import{t as c}from"./Cloud-CYXeneSe.js";import{t as l}from"./Fingerprint-CAqjOS3T.js";var u=e();function d(e){return(0,u.jsxs)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:[(0,u.jsx)(`path`,{d:`M10.334 9C10.7019 9.00026 11.001 9.29897 11.001 9.66699C11.0007 10.0348 10.7018 10.3337 10.334 10.334C9.96597 10.334 9.66726 10.0349 9.66699 9.66699C9.66699 9.29881 9.9658 9 10.334 9Z`,fill:`currentColor`}),(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M10.3125 2C10.8761 2 11.3328 2.45688 11.333 3.02051V5.33301H12.833C13.4774 5.33301 14 5.85568 14 6.5V12.833C14 13.4774 13.4774 14 12.833 14H4.5C3.1193 14 2 12.8807 2 11.5V4.33301C2.00018 3.0446 3.0446 2.00018 4.33301 2H10.3125ZM3 11.5C3 12.3285 3.67157 13 4.5 13H12.833C12.9251 13 13 12.9251 13 12.833V6.5C13 6.40795 12.9251 6.33301 12.833 6.33301H4C3.6353 6.33301 3.2944 6.234 3 6.06348V11.5ZM4.33301 3C3.59689 3.00018 3.00018 3.59689 3 4.33301C3 4.88529 3.44772 5.33301 4 5.33301H10.333V3.02051C10.3328 3.00914 10.3238 3 10.3125 3H4.33301Z`,fill:`currentColor`})]})}function f(e){let f=e.heading??`h1`,m=e.selecting!==void 0,h=new Set(e.accounts.map(e=>e.realm));return(0,u.jsxs)(t,{className:p.column?`z_tempo_2d_id-isY5HSn z_tempo_2d_id-isY5HSo`:p.column().className,gap:`32`,children:[(0,u.jsxs)(t,{className:p.header?`z_tempo_2d_id-isY5HS12`:p.header().className,align:`center`,gap:`8`,render:(0,u.jsx)(`header`,{}),children:[(0,u.jsx)(o,{className:p.avatar?`z_tempo_2d_id-isY5HSc z_tempo_2d_id-isY5HSd z_tempo_2d_id-isY5HSe z_tempo_2d_id-isY5HSf z_tempo_2d_id-isY5HSg`:p.avatar().className,"aria-hidden":!0,children:(0,u.jsx)(d,{})}),(0,u.jsx)(f,{className:p.title?`z_tempo_2d_id-isY5HS19 z_tempo_2d_id-isY5HS1a z_tempo_2d_id-isY5HS1b z_tempo_2d_id-isY5HS1c z_tempo_2d_id-isY5HS1d z_tempo_2d_id-isY5HS1e`:p.title().className,children:`Choose a wallet`}),(0,u.jsxs)(`p`,{className:p.description?`z_tempo_2d_id-isY5HSp z_tempo_2d_id-isY5HSq z_tempo_2d_id-isY5HSr z_tempo_2d_id-isY5HSs z_tempo_2d_id-isY5HSt z_tempo_2d_id-isY5HSu z_tempo_2d_id-isY5HSv z_tempo_2d_id-isY5HSw z_tempo_2d_id-isY5HSx z_tempo_2d_id-isY5HSy z_tempo_2d_id-isY5HSz z_tempo_2d_id-isY5HS10 z_tempo_2d_id-isY5HS11`:p.description().className,children:[(0,u.jsx)(`strong`,{children:e.app}),` uses the account you choose. You can choose again after you sign out of Tempo ID.`]})]}),(0,u.jsx)(s,{className:p.accounts?`z_tempo_2d_id-isY5HS0 z_tempo_2d_id-isY5HS1 z_tempo_2d_id-isY5HS2 z_tempo_2d_id-isY5HS3 z_tempo_2d_id-isY5HS4 z_tempo_2d_id-isY5HS5 z_tempo_2d_id-isY5HS6`:p.accounts().className,"aria-label":`Accounts`,dividers:`none`,role:`list`,children:e.accounts.map(t=>(0,u.jsx)(`div`,{role:`listitem`,children:(0,u.jsxs)(s.Row,{action:e.selecting===t.address?`none`:`navigation`,"aria-busy":e.selecting===t.address||void 0,disabled:m&&e.selecting!==t.address,onClick:()=>{m||e.onChoose(t.address)},children:[(0,u.jsx)(o,{className:p.chip?`z_tempo_2d_id-isY5HSc`:p.chip().className,"aria-hidden":!0,size:`40`,children:t.owner===`webAuthn`?(0,u.jsx)(l,{}):(0,u.jsx)(c,{})}),(0,u.jsxs)(s.Info,{children:[(0,u.jsxs)(s.Title,{children:[h.size>1&&t.realm?`${t.realm} · `:null,t.owner===`webAuthn`?`Passkey`:`Cloud`]}),(0,u.jsx)(s.Description,{className:p.address?`z_tempo_2d_id-isY5HS7 z_tempo_2d_id-isY5HS8 z_tempo_2d_id-isY5HS9 z_tempo_2d_id-isY5HSa z_tempo_2d_id-isY5HSb`:p.address().className,children:a(t.address)})]}),t.balance?(0,u.jsx)(r,{className:p.balance?`z_tempo_2d_id-isY5HSh z_tempo_2d_id-isY5HSi z_tempo_2d_id-isY5HSj z_tempo_2d_id-isY5HSk z_tempo_2d_id-isY5HSl z_tempo_2d_id-isY5HSm`:p.balance().className,currency:t.balance.currency,"data-testid":`balance`,value:t.balance.amount}):(0,u.jsx)(`span`,{className:p.unavailable?`z_tempo_2d_id-isY5HS1f z_tempo_2d_id-isY5HS1g z_tempo_2d_id-isY5HS1h z_tempo_2d_id-isY5HS1i z_tempo_2d_id-isY5HS1j z_tempo_2d_id-isY5HS1k z_tempo_2d_id-isY5HS1l`:p.unavailable().className,"data-testid":`balance`,children:`Balance unavailable`}),e.selecting===t.address?(0,u.jsx)(n,{"aria-hidden":!0,size:`large`}):null]})},t.address))}),e.error?(0,u.jsxs)(i,{intent:`negative`,children:[(0,u.jsx)(i.Icon,{}),(0,u.jsx)(i.Content,{children:e.error})]}):null,(0,u.jsx)(`p`,{className:p.status?`z_tempo_2d_id-isY5HS13 z_tempo_2d_id-isY5HS14 z_tempo_2d_id-isY5HS15 z_tempo_2d_id-isY5HS16 z_tempo_2d_id-isY5HS17 z_tempo_2d_id-isY5HS18`:p.status().className,"aria-live":`polite`,role:`status`,children:m?`Continuing to ${e.app}.`:void 0})]})}var p;(function(e){e.accounts=1,e.address=1,e.avatar=1,e.balance=1,e.chip=1,e.column=1,e.description=1,e.header=1,e.status=1,e.title=1,e.unavailable=1})(p||={});export{f as t};
|
|
2
|
+
//# sourceMappingURL=ChooseAccount-De_YweJM.js.map
|
package/dist/app/server/assets/{ChooseAccount-FJJ2kRPk.js.map → ChooseAccount-De_YweJM.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChooseAccount-FJJ2kRPk.js","names":["_jsxs","_jsx","require_jsx_runtime","Spinner","Rows","Amount","Callout","formatHex","IconChip","Cloud","Fingerprint","import_jsx_runtime","Wallet","props","ChooseAccount","Title","pending","realms","account","Stack","styles"],"sources":["../../../../../node_modules/.pnpm/@tempoxyz+ds@0.2.5_@types+react@19.3.0_react-dom@19.3.0_react@19.3.0__react-native@0.86_bbc03918b3aa42ad595cf90afc2ac3af/node_modules/@tempoxyz/ds/dist/web/icons/Wallet.js","../../../screens/ChooseAccount.tsx"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport function Wallet(props) {\n return (_jsxs(\"svg\", { width: \"1em\", height: \"1em\", viewBox: \"0 0 16 16\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", \"aria-hidden\": props['aria-label'] || props['aria-labelledby'] ? undefined : true, role: props['aria-label'] || props['aria-labelledby'] ? 'img' : undefined, ...props, children: [_jsx(\"path\", { d: \"M10.334 9C10.7019 9.00026 11.001 9.29897 11.001 9.66699C11.0007 10.0348 10.7018 10.3337 10.334 10.334C9.96597 10.334 9.66726 10.0349 9.66699 9.66699C9.66699 9.29881 9.9658 9 10.334 9Z\", fill: \"currentColor\" }), _jsx(\"path\", { fillRule: \"evenodd\", clipRule: \"evenodd\", d: \"M10.3125 2C10.8761 2 11.3328 2.45688 11.333 3.02051V5.33301H12.833C13.4774 5.33301 14 5.85568 14 6.5V12.833C14 13.4774 13.4774 14 12.833 14H4.5C3.1193 14 2 12.8807 2 11.5V4.33301C2.00018 3.0446 3.0446 2.00018 4.33301 2H10.3125ZM3 11.5C3 12.3285 3.67157 13 4.5 13H12.833C12.9251 13 13 12.9251 13 12.833V6.5C13 6.40795 12.9251 6.33301 12.833 6.33301H4C3.6353 6.33301 3.2944 6.234 3 6.06348V11.5ZM4.33301 3C3.59689 3.00018 3.00018 3.59689 3 4.33301C3 4.88529 3.44772 5.33301 4 5.33301H10.333V3.02051C10.3328 3.00914 10.3238 3 10.3125 3H4.33301Z\", fill: \"currentColor\" })] }));\n}\n//# sourceMappingURL=Wallet.js.map","/** The account step: a user with several Tempo Accounts in an app's realms chooses one. @module */\nimport {\n Amount,\n Callout,\n formatHex,\n IconChip,\n Rows,\n Spinner,\n Stack,\n} from '@tempoxyz/ds'\nimport { Cloud, Fingerprint, Wallet } from '@tempoxyz/ds/icons'\nimport type { ReactNode } from 'react'\nimport { style } from '../zyzz.config.js'\n\n/** The account step. Each row shows an account's owner, address, balance, and realm. */\nexport function ChooseAccount(props: ChooseAccount.Props): ReactNode {\n const Title = props.heading ?? 'h1'\n const pending = props.selecting !== undefined\n // A row names its realm only when the accounts span several realms, and never the `default` realm.\n const realms = new Set(props.accounts.map((account) => account.realm))\n\n return (\n <Stack {...styles.column()} gap=\"32\">\n <Stack {...styles.header()} align=\"center\" gap=\"8\" render={<header />}>\n <IconChip {...styles.avatar()} aria-hidden>\n <Wallet />\n </IconChip>\n <Title {...styles.title()}>Choose a wallet</Title>\n <p {...styles.description()}>\n <strong>{props.app}</strong> uses the account you choose. You can\n choose again after you sign out of Tempo ID.\n </p>\n </Stack>\n\n {/* Each row is a button inside its list item, so the list keeps its items and the rows their role. */}\n <Rows\n {...styles.accounts()}\n aria-label=\"Accounts\"\n dividers=\"none\"\n role=\"list\"\n >\n {props.accounts.map((account) => (\n <div key={account.address} role=\"listitem\">\n <Rows.Row\n // The spinner takes the chevron's place while the row's choice runs.\n action={\n props.selecting === account.address ? 'none' : 'navigation'\n }\n aria-busy={props.selecting === account.address || undefined}\n // The chosen row stays undimmed while its choice runs, and ignores a second press.\n disabled={pending && props.selecting !== account.address}\n onClick={() => {\n if (!pending) props.onChoose(account.address)\n }}\n >\n <IconChip {...styles.chip()} aria-hidden size=\"40\">\n {account.owner === 'webAuthn' ? <Fingerprint /> : <Cloud />}\n </IconChip>\n <Rows.Info>\n <Rows.Title>\n {realms.size > 1 && account.realm\n ? `${account.realm} · `\n : null}\n {account.owner === 'webAuthn' ? 'Passkey' : 'Cloud'}\n </Rows.Title>\n {/* The address tells apart two accounts with the same owner kind. */}\n <Rows.Description {...styles.address()}>\n {formatHex(account.address)}\n </Rows.Description>\n </Rows.Info>\n {account.balance ? (\n <Amount\n {...styles.balance()}\n currency={account.balance.currency}\n data-testid=\"balance\"\n value={account.balance.amount}\n />\n ) : (\n <span {...styles.unavailable()} data-testid=\"balance\">\n Balance unavailable\n </span>\n )}\n {props.selecting === account.address ? (\n <Spinner aria-hidden size=\"large\" />\n ) : null}\n </Rows.Row>\n </div>\n ))}\n </Rows>\n\n {props.error ? (\n <Callout intent=\"negative\">\n <Callout.Icon />\n <Callout.Content>{props.error}</Callout.Content>\n </Callout>\n ) : null}\n <p {...styles.status()} aria-live=\"polite\" role=\"status\">\n {pending ? `Continuing to ${props.app}.` : undefined}\n </p>\n </Stack>\n )\n}\n\nexport declare namespace ChooseAccount {\n type Props = {\n /** Oldest first. */\n accounts: readonly Account[]\n /** The app's display name. */\n app: string\n /** Why the selection failed. */\n error?: string | undefined\n /** The title's level: `h1` by default, or `h4` on the flows canvas. */\n heading?: 'h1' | 'h4' | undefined\n /** Chooses the account at `address`. */\n onChoose: (address: `0x${string}`) => void\n /** The address of the choice in progress, which holds every row. */\n selecting?: `0x${string}` | undefined\n }\n\n /** One account's row. */\n type Account = {\n /** The account's address. */\n address: `0x${string}`\n /** The balance on the key's chain, or `null` if it failed to load. */\n balance: Balance | null\n /** The owner key's holder: `privy`, `secp256k1` in development, or a passkey (`webAuthn`). */\n owner: 'privy' | 'secp256k1' | 'webAuthn'\n /** The realm's display name, such as `Tempo Cash`, or `null` for the `default` realm. */\n realm: string | null\n }\n\n /** A balance in one currency. */\n type Balance = {\n /** A decimal string, such as `12.5`. */\n amount: string\n /** The ISO 4217 currency code, such as `USD`. */\n currency: string\n }\n}\n\nnamespace styles {\n // Each account is its own gray card. The chip sits as far from the card's start as from its top and\n // bottom, and the chevron keeps the row's end padding.\n export const accounts = style({\n display: 'grid',\n gap: '8',\n '& > [role=\"listitem\"]': {\n backgroundColor: 'gray.100',\n borderRadius: '16',\n overflow: 'hidden',\n },\n '& > [role=\"listitem\"] > *': {\n paddingInlineEnd: '12',\n paddingInlineStart: '8',\n },\n })\n\n export const address = style({ typography: 'copy.13.mono' })\n\n // IconChip has no 64 size, so the header chip sets the size of the account screen's avatar.\n export const avatar = style({\n borderRadius: 'full',\n fontSize: '24',\n height: '64',\n marginBottom: '12',\n width: '64',\n })\n\n export const balance = style({ flexShrink: 0, typography: 'label.14' })\n\n export const chip = style({ borderRadius: 'full' })\n\n export const column = style({ maxWidth: '384', width: '100% !custom' })\n\n export const description = style({\n color: 'gray.900',\n textWrap: 'balance',\n typography: 'copy.16',\n '& strong': { color: 'foreground', typography: 'copy.16.strong' },\n })\n\n export const header = style({ textAlign: 'center' })\n\n // Screen readers announce the progress, which the button's spinner shows visually.\n export const status = style({\n clipPath: 'inset(50%)',\n height: '1',\n overflow: 'hidden',\n position: 'absolute',\n whiteSpace: 'nowrap',\n width: '1',\n })\n\n export const title = style({\n textWrap: 'balance',\n typography: 'heading.24',\n })\n\n // A failed read is muted, so it reads as a missing value and not as an amount. Its label wraps on\n // a narrow screen.\n export const unavailable = style({\n color: 'gray.900',\n textAlign: 'right',\n typography: 'label.14',\n })\n}\n"],"ignoreList":[0],"mappings":"A,waACA,SAAgBY,EAAO,EAAO,CAC1B,OAAA,EAAQZ,EAAAA,KAAAA,CAAM,MAAO,CAAE,MAAO,MAAO,OAAQ,MAAO,QAAS,YAAa,KAAM,OAAQ,MAAO,6BAA8B,cAAea,EAAM,eAAiBA,EAAM,mBAAqB,IAAA,GAAY,GAAM,KAAMA,EAAM,eAAiBA,EAAM,mBAAqB,MAAQ,IAAA,GAAW,GAAGA,EAAO,SAAU,EAAA,EAACZ,EAAAA,IAAAA,CAAK,OAAQ,CAAE,EAAG,0LAA2L,KAAM,cAAe,CAAC,GAAA,EAAGA,EAAAA,IAAAA,CAAK,OAAQ,CAAE,SAAU,UAAW,SAAU,UAAW,EAAG,giBAAiiB,KAAM,cAAe,CAAC,CAAC,CAAE,CAAC,CACjpC,CCYA,SAAgBa,EAAc,EAAuC,CACnE,IAAMC,EAAQF,EAAM,SAAW,KACzBG,EAAUH,EAAM,YAAc,IAAA,GAE9BI,EAAS,IAAI,IAAIJ,EAAM,SAAS,IAAK,GAAYK,EAAQ,KAAK,CAAC,EAErE,OACE,EAAAP,EAAA,KAAA,CAACQ,EAAD,CAAO,UAAAC,EAAA,OAAA,8CAAAA,EAAA,OAAA,CAAA,CAAA,UAAqB,IAAI,KAAhC,SAAA,EACE,EAAAT,EAAA,KAAA,CAACQ,EAAD,CAAO,UAAAC,EAAA,OAAA,yBAAAA,EAAA,OAA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AS,EAAA,OAAA,4IAAAA,EAAA,OAAA,CAAA,CAAA,UAAqB,YAAU,SAAS,KAAK,SAC7C,SAAAJ,EAAU,iBAAiBH,EAAM,IAAI,GAAK,IAAA,EAC1C,CAAA,CACE,C,EAEX,CAuCA,IAAUO,GAAV,SAAA,EAAA,CAGe,EAAA,SAAW,EAcX,EAAA,QAAU,EAGV,EAAA,OAAS,EAQT,EAAA,QAAU,EAEV,EAAA,KAAO,EAEP,EAAA,OAAS,EAET,EAAA,YAAc,EAOd,EAAA,OAAS,EAGT,EAAA,OAAS,EAST,EAAA,MAAQ,EAOR,EAAA,YAAc,CAK7B,EAAA,CAAA,AAAAA,IAAA,CAAA,CAAA,E"}
|
|
1
|
+
{"version":3,"file":"ChooseAccount-De_YweJM.js","names":["_jsxs","_jsx","require_jsx_runtime","Spinner","Amount","Callout","formatHex","IconChip","Rows","Cloud","Fingerprint","import_jsx_runtime","Wallet","props","ChooseAccount","Title","pending","realms","account","Stack","styles"],"sources":["../../../../../node_modules/.pnpm/@tempoxyz+ds@0.2.6_@types+react@19.3.0_react-dom@19.3.0_react@19.3.0__react-native@0.86_f564df10a26f3190a3aaf6288ad1f3d1/node_modules/@tempoxyz/ds/dist/web/icons/Wallet.js","../../../screens/ChooseAccount.tsx"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport function Wallet(props) {\n return (_jsxs(\"svg\", { width: \"1em\", height: \"1em\", viewBox: \"0 0 16 16\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", \"aria-hidden\": props['aria-label'] || props['aria-labelledby'] ? undefined : true, role: props['aria-label'] || props['aria-labelledby'] ? 'img' : undefined, ...props, children: [_jsx(\"path\", { d: \"M10.334 9C10.7019 9.00026 11.001 9.29897 11.001 9.66699C11.0007 10.0348 10.7018 10.3337 10.334 10.334C9.96597 10.334 9.66726 10.0349 9.66699 9.66699C9.66699 9.29881 9.9658 9 10.334 9Z\", fill: \"currentColor\" }), _jsx(\"path\", { fillRule: \"evenodd\", clipRule: \"evenodd\", d: \"M10.3125 2C10.8761 2 11.3328 2.45688 11.333 3.02051V5.33301H12.833C13.4774 5.33301 14 5.85568 14 6.5V12.833C14 13.4774 13.4774 14 12.833 14H4.5C3.1193 14 2 12.8807 2 11.5V4.33301C2.00018 3.0446 3.0446 2.00018 4.33301 2H10.3125ZM3 11.5C3 12.3285 3.67157 13 4.5 13H12.833C12.9251 13 13 12.9251 13 12.833V6.5C13 6.40795 12.9251 6.33301 12.833 6.33301H4C3.6353 6.33301 3.2944 6.234 3 6.06348V11.5ZM4.33301 3C3.59689 3.00018 3.00018 3.59689 3 4.33301C3 4.88529 3.44772 5.33301 4 5.33301H10.333V3.02051C10.3328 3.00914 10.3238 3 10.3125 3H4.33301Z\", fill: \"currentColor\" })] }));\n}\n//# sourceMappingURL=Wallet.js.map","/** The account step: a user with several Tempo Accounts in an app's realms chooses one. @module */\nimport {\n Amount,\n Callout,\n formatHex,\n IconChip,\n Rows,\n Spinner,\n Stack,\n} from '@tempoxyz/ds'\nimport { Cloud, Fingerprint, Wallet } from '@tempoxyz/ds/icons'\nimport type { ReactNode } from 'react'\nimport { style } from '../zyzz.config.js'\n\n/** The account step. Each row shows an account's owner, address, balance, and realm. */\nexport function ChooseAccount(props: ChooseAccount.Props): ReactNode {\n const Title = props.heading ?? 'h1'\n const pending = props.selecting !== undefined\n // A row names its realm only when the accounts span several realms, and never the `default` realm.\n const realms = new Set(props.accounts.map((account) => account.realm))\n\n return (\n <Stack {...styles.column()} gap=\"32\">\n <Stack {...styles.header()} align=\"center\" gap=\"8\" render={<header />}>\n <IconChip {...styles.avatar()} aria-hidden>\n <Wallet />\n </IconChip>\n <Title {...styles.title()}>Choose a wallet</Title>\n <p {...styles.description()}>\n <strong>{props.app}</strong> uses the account you choose. You can\n choose again after you sign out of Tempo ID.\n </p>\n </Stack>\n\n {/* Each row is a button inside its list item, so the list keeps its items and the rows their role. */}\n <Rows\n {...styles.accounts()}\n aria-label=\"Accounts\"\n dividers=\"none\"\n role=\"list\"\n >\n {props.accounts.map((account) => (\n <div key={account.address} role=\"listitem\">\n <Rows.Row\n // The spinner takes the chevron's place while the row's choice runs.\n action={\n props.selecting === account.address ? 'none' : 'navigation'\n }\n aria-busy={props.selecting === account.address || undefined}\n // The chosen row stays undimmed while its choice runs, and ignores a second press.\n disabled={pending && props.selecting !== account.address}\n onClick={() => {\n if (!pending) props.onChoose(account.address)\n }}\n >\n <IconChip {...styles.chip()} aria-hidden size=\"40\">\n {account.owner === 'webAuthn' ? <Fingerprint /> : <Cloud />}\n </IconChip>\n <Rows.Info>\n <Rows.Title>\n {realms.size > 1 && account.realm\n ? `${account.realm} · `\n : null}\n {account.owner === 'webAuthn' ? 'Passkey' : 'Cloud'}\n </Rows.Title>\n {/* The address tells apart two accounts with the same owner kind. */}\n <Rows.Description {...styles.address()}>\n {formatHex(account.address)}\n </Rows.Description>\n </Rows.Info>\n {account.balance ? (\n <Amount\n {...styles.balance()}\n currency={account.balance.currency}\n data-testid=\"balance\"\n value={account.balance.amount}\n />\n ) : (\n <span {...styles.unavailable()} data-testid=\"balance\">\n Balance unavailable\n </span>\n )}\n {props.selecting === account.address ? (\n <Spinner aria-hidden size=\"large\" />\n ) : null}\n </Rows.Row>\n </div>\n ))}\n </Rows>\n\n {props.error ? (\n <Callout intent=\"negative\">\n <Callout.Icon />\n <Callout.Content>{props.error}</Callout.Content>\n </Callout>\n ) : null}\n <p {...styles.status()} aria-live=\"polite\" role=\"status\">\n {pending ? `Continuing to ${props.app}.` : undefined}\n </p>\n </Stack>\n )\n}\n\nexport declare namespace ChooseAccount {\n type Props = {\n /** Oldest first. */\n accounts: readonly Account[]\n /** The app's display name. */\n app: string\n /** Why the selection failed. */\n error?: string | undefined\n /** The title's level: `h1` by default, or `h4` on the flows canvas. */\n heading?: 'h1' | 'h4' | undefined\n /** Chooses the account at `address`. */\n onChoose: (address: `0x${string}`) => void\n /** The address of the choice in progress, which holds every row. */\n selecting?: `0x${string}` | undefined\n }\n\n /** One account's row. */\n type Account = {\n /** The account's address. */\n address: `0x${string}`\n /** The balance on the key's chain, or `null` if it failed to load. */\n balance: Balance | null\n /** The owner key's holder: `privy`, `secp256k1` in development, or a passkey (`webAuthn`). */\n owner: 'privy' | 'secp256k1' | 'webAuthn'\n /** The realm's display name, such as `Tempo Cash`, or `null` for the `default` realm. */\n realm: string | null\n }\n\n /** A balance in one currency. */\n type Balance = {\n /** A decimal string, such as `12.5`. */\n amount: string\n /** The ISO 4217 currency code, such as `USD`. */\n currency: string\n }\n}\n\nnamespace styles {\n // Each account is its own gray card. The chip sits as far from the card's start as from its top and\n // bottom, and the chevron keeps the row's end padding.\n export const accounts = style({\n display: 'grid',\n gap: '8',\n '& > [role=\"listitem\"]': {\n backgroundColor: 'gray.100',\n borderRadius: '16',\n overflow: 'hidden',\n },\n '& > [role=\"listitem\"] > *': {\n paddingInlineEnd: '12',\n paddingInlineStart: '8',\n },\n })\n\n export const address = style({ typography: 'copy.13.mono' })\n\n // IconChip has no 64 size, so the header chip sets the size of the account screen's avatar.\n export const avatar = style({\n borderRadius: 'full',\n fontSize: '24',\n height: '64',\n marginBottom: '12',\n width: '64',\n })\n\n export const balance = style({ flexShrink: 0, typography: 'label.14' })\n\n export const chip = style({ borderRadius: 'full' })\n\n export const column = style({ maxWidth: '384', width: '100% !custom' })\n\n export const description = style({\n color: 'gray.900',\n textWrap: 'balance',\n typography: 'copy.16',\n '& strong': { color: 'foreground', typography: 'copy.16.strong' },\n })\n\n export const header = style({ textAlign: 'center' })\n\n // Screen readers announce the progress, which the button's spinner shows visually.\n export const status = style({\n clipPath: 'inset(50%)',\n height: '1',\n overflow: 'hidden',\n position: 'absolute',\n whiteSpace: 'nowrap',\n width: '1',\n })\n\n export const title = style({\n textWrap: 'balance',\n typography: 'heading.24',\n })\n\n // A failed read is muted, so it reads as a missing value and not as an amount. Its label wraps on\n // a narrow screen.\n export const unavailable = style({\n color: 'gray.900',\n textAlign: 'right',\n typography: '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T,EAAA,OAAS,EAST,EAAA,MAAQ,EAOR,EAAA,YAAc,CAK7B,EAAA,CAAA,AAAAA,IAAA,CAAA,CAAA,E"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{E as e,j as t}from"./react-dom-
|
|
2
|
-
//# sourceMappingURL=Client-
|
|
1
|
+
import{E as e,j as t}from"./react-dom-pSpaua7D.js";import{m as n,r}from"./cookie-d6FDU2Yq.js";var i=()=>{let e=n().contextAfterGlobalMiddlewares;if(!e)throw Error(`Global context not set yet, you are calling getGlobalStartContext() before the global middlewares are applied.`);return e},a=new Set([101,204,205,304]);async function o(e){let t=await e;if((t.body||t._bodyInit)&&!a.has(t.status)&&(t._data=await t[l(t)]()),!t.ok)throw new s(`${t.status} ${t.statusText}`,{statusCode:t?.status,detail:{data:t?._data,statusText:t?.statusText}});return t._data}var s=class extends Error{detail;code;log;statusCode;constructor(e,t={}){super(e),this.name=`DetailedError`,this.log=t.log,this.detail=t.detail,this.code=t.code,this.statusCode=t.statusCode}},c=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(?:;.+)?$/i;function l(e){let t=e.headers.get(`content-type`);if(!t)return`text`;let n=t.split(`;`).shift();return c.test(n)?`json`:`text`}var u=(e,t)=>(e=e.replace(/\/+$/,``),e+=`/`,t=t.replace(/^\/+/,``),e+t),d=(e,t)=>{for(let[n,r]of Object.entries(t)){let t=RegExp(`/:`+n+`(?:{[^/]+})?\\??(?=/|$)`);e=e.replace(t,()=>r?`/${r}`:``)}return e},f=e=>{let t=new URLSearchParams;for(let[n,r]of Object.entries(e))if(r!==void 0){if(Array.isArray(r))for(let e of r)e!==void 0&&t.append(n,e);else t.set(n,r)}return t},p=(e,t)=>{switch(t){case`ws`:return e.replace(/^http/,`ws`);case`http`:return e.replace(/^ws/,`http`)}},m=e=>/^https?:\/\/[^\/]+?\/index(?=\?|$)/.test(e)?e.replace(/\/index(?=\?|$)/,`/`):e.replace(/\/index(?=\?|$)/,``);function h(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function g(e,t){if(!h(e)&&!h(t))return t;let n={...e};for(let e in t){let r=t[e];n[e]=h(n[e])&&h(r)?g(n[e],r):r}return n}async function _(e){return o(e)}var v=(e,t)=>new Proxy(()=>{},{get(n,r){if(typeof r==`string`&&r!==`then`)return v(e,[...t,r])},apply(n,r,i){return e({path:t,args:i})}}),y=(e,t)=>{let n=t.toString();return n?`${e}?${n}`:e},b=class{url;method;buildSearchParams;queryParams=void 0;pathParams={};rBody;cType=void 0;constructor(e,t,n){this.url=e,this.method=t,this.buildSearchParams=n.buildSearchParams}fetch=async(e,t)=>{if(e){if(e.query&&(this.queryParams=this.buildSearchParams(e.query)),e.form){let t=new FormData;for(let[n,r]of Object.entries(e.form))if(r!==void 0){if(Array.isArray(r))for(let e of r)e!==void 0&&t.append(n,e);else t.append(n,r)}this.rBody=t}e.json!==void 0&&(this.rBody=JSON.stringify(e.json),this.cType=`application/json`),e.param&&(this.pathParams=e.param)}let n=this.method.toUpperCase(),i={...e?.header,...typeof t?.headers==`function`?await t.headers():t?.headers};if(e?.cookie){let t=[];for(let[n,i]of Object.entries(e.cookie))i!==void 0&&t.push(r(n,i));t.length>0&&(i.Cookie=t.join(`; `))}this.cType&&(i[`Content-Type`]=this.cType);let a=new Headers;for(let[e,t]of Object.entries(i))t!==void 0&&a.set(e,t);let o=this.url;o=m(o),o=d(o,this.pathParams),this.queryParams&&(o=y(o,this.queryParams)),n=this.method.toUpperCase();let s=n!==`GET`&&n!==`HEAD`;return(t?.fetch||fetch)(o,{body:s?this.rBody:void 0,method:n,headers:a,...t?.init})}},x=(e,t)=>v(function n(r){let i=t?.buildSearchParams??f,a=[...r.path],o=a.slice(-3).reverse();if(o[0]===`toString`)return o[1]===`name`?o[2]||``:n.toString();if(o[0]===`valueOf`)return o[1]===`name`?o[2]||``:n;let s=``;if(/^\$/.test(o[0])){let e=a.pop();e&&(s=e.replace(/^\$/,``))}let c=u(e,a.join(`/`));if(s===`url`||s===`path`){let t=m(c);return r.args[0]&&(r.args[0].param&&(t=d(t,r.args[0].param)),r.args[0].query&&(t=y(t,i(r.args[0].query)))),s===`url`?new URL(t):t.slice(e.replace(/\/+$/,``).length).replace(/^\/?/,`/`)}if(s===`ws`){let e=m(c),n=p(r.args[0]?.param?d(e,r.args[0].param):e,`ws`),a=new URL(n),o=r.args[0]?.query;return o&&i(o).forEach((e,t)=>{a.searchParams.append(t,e)}),((...e)=>t?.webSocket!==void 0&&typeof t.webSocket==`function`?t.webSocket(...e):new WebSocket(...e))(a.toString())}let l=new b(c,s,{buildSearchParams:i});if(s){t??={};let e={...r.args[1]},n=t.headers,i=e.headers;n&&i&&(e.headers=async()=>({...typeof n==`function`?await n():n,...typeof i==`function`?await i():i}));let a=g(t,e);return l.fetch(r.args[0],a)}return l},[]),S=t(e(),1),C=()=>i().fetch,w=()=>i().origin,T=(0,S.createContext)(void 0);function E(){return x(w(),{fetch:C()})}function D(e){if(e instanceof s){let t=e.detail?.data;return typeof t==`object`&&t&&`error_description`in t&&typeof t.error_description==`string`?t.error_description:`Something went wrong. Try again.`}return`Tempo ID cannot be reached. Check the connection, and try again.`}function O(e){if(!(e instanceof s))return;let t=e.detail?.data;if(typeof t==`object`&&t&&`reason`in t&&typeof t.reason==`string`)return t.reason}function k(){let e=(0,S.useContext)(T);if(!e)throw Error(`The client is used outside the root route.`);return e}export{k as a,O as i,E as n,_ as o,D as r,s,T as t};
|
|
2
|
+
//# sourceMappingURL=Client-BAXSFa9e.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Client-D3gnMDTr.js","names":["getStartContext","getGlobalStartContext","context","contextAfterGlobalMiddlewares","Error","getGlobalStartContext","DetailedError","hc","createContext","useContext","fetcher","fetch","origin","Context","Client","undefined","create","App","message","error","data","detail","error_description","reason","use","client","Error","createContext","useContext","require_react","__toESM","getStartContext","getGlobalStartContext","context","nullBodyResponses","fetchRP","_fetchRes","fetchRes","detectResponseType","DetailedError","message","options","jsonRegex","_contentType","response","contentType","mergePath","base","path","replaceUrlParam","k","v","params","reg","urlString","buildSearchParams","searchParams","query","v2","replaceUrlProtocol","protocol","removeIndexString","isObject","item","deepMerge","target","source","merged","key","value","parseResponse","createProxy","callback","appendQueryParams","queryString","url","ClientRequestImpl","method","args","form","methodUpperCase","headerValues","opt","cookies","serialize","\"Cookie\"","headers","setBody","hc","proxyCallback","buildSearchParamsOption","parts","opts","lastParts","last","baseUrl","result","normalizedUrl","webSocketUrl","targetUrl","queryParams","req","reqOptions","baseHeaders","reqHeaders","import_react","fetcher","origin","Context","create","error","data","reason","use","client"],"sources":["../../../../../node_modules/.pnpm/@tanstack+start-client-core@1.170.34/node_modules/@tanstack/start-client-core/dist/esm/getGlobalStartContext.js","../../../../../node_modules/.pnpm/hono@4.13.13/node_modules/hono/dist/client/fetch-result-please.js","../../../../../node_modules/.pnpm/hono@4.13.13/node_modules/hono/dist/client/utils.js","../../../../../node_modules/.pnpm/hono@4.13.13/node_modules/hono/dist/client/client.js","../../../lib/Client.ts"],"sourcesContent":["import { createIsomorphicFn } from \"@tanstack/start-fn-stubs\";\nimport { getStartContext } from \"@tanstack/start-storage-context\";\n//#region src/getGlobalStartContext.ts\nvar getGlobalStartContext = createIsomorphicFn().client(() => void 0).server(() => {\n\tconst context = getStartContext().contextAfterGlobalMiddlewares;\n\tif (!context) throw new Error(`Global context not set yet, you are calling getGlobalStartContext() before the global middlewares are applied.`);\n\treturn context;\n});\n//#endregion\nexport { getGlobalStartContext };\n\n//# sourceMappingURL=getGlobalStartContext.js.map","//#region src/client/fetch-result-please.ts\n/**\n* @description This file is a modified version of `fetch-result-please` (`ofetch`), minimalized and adapted to Hono's custom needs.\n*\n* @link https://www.npmjs.com/package/fetch-result-please\n*/\nconst nullBodyResponses = /* @__PURE__ */ new Set([\n\t101,\n\t204,\n\t205,\n\t304\n]);\n/**\n* Smartly parses and return the consumable result from a fetch `Response`.\n*\n* Throwing a structured error if the response is not `ok`. ({@link DetailedError})\n*/\nasync function fetchRP(fetchRes) {\n\tconst _fetchRes = await fetchRes;\n\tif ((_fetchRes.body || _fetchRes._bodyInit) && !nullBodyResponses.has(_fetchRes.status)) _fetchRes._data = await _fetchRes[detectResponseType(_fetchRes)]();\n\tif (!_fetchRes.ok) throw new DetailedError(`${_fetchRes.status} ${_fetchRes.statusText}`, {\n\t\tstatusCode: _fetchRes?.status,\n\t\tdetail: {\n\t\t\tdata: _fetchRes?._data,\n\t\t\tstatusText: _fetchRes?.statusText\n\t\t}\n\t});\n\treturn _fetchRes._data;\n}\nvar DetailedError = class extends Error {\n\t/**\n\t* Additional `message` that will be logged AND returned to client\n\t*/\n\tdetail;\n\t/**\n\t* Additional `code` that will be logged AND returned to client\n\t*/\n\tcode;\n\t/**\n\t* Additional value that will be logged AND NOT returned to client\n\t*/\n\tlog;\n\t/**\n\t* Optionally set the status code to return, in a web server context\n\t*/\n\tstatusCode;\n\tconstructor(message, options = {}) {\n\t\tsuper(message);\n\t\tthis.name = \"DetailedError\";\n\t\tthis.log = options.log;\n\t\tthis.detail = options.detail;\n\t\tthis.code = options.code;\n\t\tthis.statusCode = options.statusCode;\n\t}\n};\nconst jsonRegex = /^application\\/(?:[\\w!#$%&*.^`~-]*\\+)?json(?:;.+)?$/i;\nfunction detectResponseType(response) {\n\tconst _contentType = response.headers.get(\"content-type\");\n\tif (!_contentType) return \"text\";\n\tconst contentType = _contentType.split(\";\").shift();\n\tif (jsonRegex.test(contentType)) return \"json\";\n\treturn \"text\";\n}\n//#endregion\nexport { DetailedError, fetchRP };\n","import { DetailedError, fetchRP } from \"./fetch-result-please.js\";\n//#region src/client/utils.ts\nconst mergePath = (base, path) => {\n\tbase = base.replace(/\\/+$/, \"\");\n\tbase = base + \"/\";\n\tpath = path.replace(/^\\/+/, \"\");\n\treturn base + path;\n};\nconst replaceUrlParam = (urlString, params) => {\n\tfor (const [k, v] of Object.entries(params)) {\n\t\tconst reg = new RegExp(\"/:\" + k + \"(?:{[^/]+})?\\\\??(?=/|$)\");\n\t\turlString = urlString.replace(reg, () => v ? `/${v}` : \"\");\n\t}\n\treturn urlString;\n};\nconst buildSearchParams = (query) => {\n\tconst searchParams = new URLSearchParams();\n\tfor (const [k, v] of Object.entries(query)) {\n\t\tif (v === void 0) continue;\n\t\tif (Array.isArray(v)) for (const v2 of v) {\n\t\t\tif (v2 === void 0) continue;\n\t\t\tsearchParams.append(k, v2);\n\t\t}\n\t\telse searchParams.set(k, v);\n\t}\n\treturn searchParams;\n};\nconst replaceUrlProtocol = (urlString, protocol) => {\n\tswitch (protocol) {\n\t\tcase \"ws\": return urlString.replace(/^http/, \"ws\");\n\t\tcase \"http\": return urlString.replace(/^ws/, \"http\");\n\t}\n};\nconst removeIndexString = (urlString) => {\n\tif (/^https?:\\/\\/[^\\/]+?\\/index(?=\\?|$)/.test(urlString)) return urlString.replace(/\\/index(?=\\?|$)/, \"/\");\n\treturn urlString.replace(/\\/index(?=\\?|$)/, \"\");\n};\nfunction isObject(item) {\n\treturn typeof item === \"object\" && item !== null && !Array.isArray(item);\n}\nfunction deepMerge(target, source) {\n\tif (!isObject(target) && !isObject(source)) return source;\n\tconst merged = { ...target };\n\tfor (const key in source) {\n\t\tconst value = source[key];\n\t\tif (isObject(merged[key]) && isObject(value)) merged[key] = deepMerge(merged[key], value);\n\t\telse merged[key] = value;\n\t}\n\treturn merged;\n}\n/**\n* Shortcut to get a consumable response from `hc`'s fetch calls (Response), with types inference.\n*\n* Smartly parse the response data, throwing a structured error if the response is not `ok`. ({@link DetailedError})\n*\n* @example const result = await parseResponse(client.posts.$get())\n*/\nasync function parseResponse(fetchRes) {\n\treturn fetchRP(fetchRes);\n}\n//#endregion\nexport { DetailedError, buildSearchParams, deepMerge, mergePath, parseResponse, removeIndexString, replaceUrlParam, replaceUrlProtocol };\n","import { serialize } from \"../utils/cookie.js\";\nimport { buildSearchParams, deepMerge, mergePath, removeIndexString, replaceUrlParam, replaceUrlProtocol } from \"./utils.js\";\n//#region src/client/client.ts\nconst createProxy = (callback, path) => {\n\treturn new Proxy(() => {}, {\n\t\tget(_obj, key) {\n\t\t\tif (typeof key !== \"string\" || key === \"then\") return;\n\t\t\treturn createProxy(callback, [...path, key]);\n\t\t},\n\t\tapply(_1, _2, args) {\n\t\t\treturn callback({\n\t\t\t\tpath,\n\t\t\t\targs\n\t\t\t});\n\t\t}\n\t});\n};\nconst appendQueryParams = (url, searchParams) => {\n\tconst queryString = searchParams.toString();\n\treturn queryString ? `${url}?${queryString}` : url;\n};\nvar ClientRequestImpl = class {\n\turl;\n\tmethod;\n\tbuildSearchParams;\n\tqueryParams = void 0;\n\tpathParams = {};\n\trBody;\n\tcType = void 0;\n\tconstructor(url, method, options) {\n\t\tthis.url = url;\n\t\tthis.method = method;\n\t\tthis.buildSearchParams = options.buildSearchParams;\n\t}\n\tfetch = async (args, opt) => {\n\t\tif (args) {\n\t\t\tif (args.query) this.queryParams = this.buildSearchParams(args.query);\n\t\t\tif (args.form) {\n\t\t\t\tconst form = new FormData();\n\t\t\t\tfor (const [k, v] of Object.entries(args.form)) {\n\t\t\t\t\tif (v === void 0) continue;\n\t\t\t\t\tif (Array.isArray(v)) for (const v2 of v) {\n\t\t\t\t\t\tif (v2 === void 0) continue;\n\t\t\t\t\t\tform.append(k, v2);\n\t\t\t\t\t}\n\t\t\t\t\telse form.append(k, v);\n\t\t\t\t}\n\t\t\t\tthis.rBody = form;\n\t\t\t}\n\t\t\tif (args.json !== void 0) {\n\t\t\t\tthis.rBody = JSON.stringify(args.json);\n\t\t\t\tthis.cType = \"application/json\";\n\t\t\t}\n\t\t\tif (args.param) this.pathParams = args.param;\n\t\t}\n\t\tlet methodUpperCase = this.method.toUpperCase();\n\t\tconst headerValues = {\n\t\t\t...args?.header,\n\t\t\t...typeof opt?.headers === \"function\" ? await opt.headers() : opt?.headers\n\t\t};\n\t\tif (args?.cookie) {\n\t\t\tconst cookies = [];\n\t\t\tfor (const [key, value] of Object.entries(args.cookie)) {\n\t\t\t\tif (value === void 0) continue;\n\t\t\t\tcookies.push(serialize(key, value));\n\t\t\t}\n\t\t\tif (cookies.length > 0) headerValues[\"Cookie\"] = cookies.join(\"; \");\n\t\t}\n\t\tif (this.cType) headerValues[\"Content-Type\"] = this.cType;\n\t\tconst headers = new Headers();\n\t\tfor (const [key, value] of Object.entries(headerValues)) if (value !== void 0) headers.set(key, value);\n\t\tlet url = this.url;\n\t\turl = removeIndexString(url);\n\t\turl = replaceUrlParam(url, this.pathParams);\n\t\tif (this.queryParams) url = appendQueryParams(url, this.queryParams);\n\t\tmethodUpperCase = this.method.toUpperCase();\n\t\tconst setBody = !(methodUpperCase === \"GET\" || methodUpperCase === \"HEAD\");\n\t\treturn (opt?.fetch || fetch)(url, {\n\t\t\tbody: setBody ? this.rBody : void 0,\n\t\t\tmethod: methodUpperCase,\n\t\t\theaders,\n\t\t\t...opt?.init\n\t\t});\n\t};\n};\nconst hc = (baseUrl, options) => createProxy(function proxyCallback(opts) {\n\tconst buildSearchParamsOption = options?.buildSearchParams ?? buildSearchParams;\n\tconst parts = [...opts.path];\n\tconst lastParts = parts.slice(-3).reverse();\n\tif (lastParts[0] === \"toString\") {\n\t\tif (lastParts[1] === \"name\") return lastParts[2] || \"\";\n\t\treturn proxyCallback.toString();\n\t}\n\tif (lastParts[0] === \"valueOf\") {\n\t\tif (lastParts[1] === \"name\") return lastParts[2] || \"\";\n\t\treturn proxyCallback;\n\t}\n\tlet method = \"\";\n\tif (/^\\$/.test(lastParts[0])) {\n\t\tconst last = parts.pop();\n\t\tif (last) method = last.replace(/^\\$/, \"\");\n\t}\n\tconst path = parts.join(\"/\");\n\tconst url = mergePath(baseUrl, path);\n\tif (method === \"url\" || method === \"path\") {\n\t\tlet result = removeIndexString(url);\n\t\tif (opts.args[0]) {\n\t\t\tif (opts.args[0].param) result = replaceUrlParam(result, opts.args[0].param);\n\t\t\tif (opts.args[0].query) result = appendQueryParams(result, buildSearchParamsOption(opts.args[0].query));\n\t\t}\n\t\tif (method === \"url\") return new URL(result);\n\t\treturn result.slice(baseUrl.replace(/\\/+$/, \"\").length).replace(/^\\/?/, \"/\");\n\t}\n\tif (method === \"ws\") {\n\t\tconst normalizedUrl = removeIndexString(url);\n\t\tconst webSocketUrl = replaceUrlProtocol(opts.args[0]?.param ? replaceUrlParam(normalizedUrl, opts.args[0].param) : normalizedUrl, \"ws\");\n\t\tconst targetUrl = new URL(webSocketUrl);\n\t\tconst queryParams = opts.args[0]?.query;\n\t\tif (queryParams) buildSearchParamsOption(queryParams).forEach((value, key) => {\n\t\t\ttargetUrl.searchParams.append(key, value);\n\t\t});\n\t\tconst establishWebSocket = (...args) => {\n\t\t\tif (options?.webSocket !== void 0 && typeof options.webSocket === \"function\") return options.webSocket(...args);\n\t\t\treturn new WebSocket(...args);\n\t\t};\n\t\treturn establishWebSocket(targetUrl.toString());\n\t}\n\tconst req = new ClientRequestImpl(url, method, { buildSearchParams: buildSearchParamsOption });\n\tif (method) {\n\t\toptions ??= {};\n\t\tconst reqOptions = { ...opts.args[1] };\n\t\tconst baseHeaders = options.headers;\n\t\tconst reqHeaders = reqOptions.headers;\n\t\tif (baseHeaders && reqHeaders) reqOptions.headers = async () => ({\n\t\t\t...typeof baseHeaders === \"function\" ? await baseHeaders() : baseHeaders,\n\t\t\t...typeof reqHeaders === \"function\" ? await reqHeaders() : reqHeaders\n\t\t});\n\t\tconst args = deepMerge(options, reqOptions);\n\t\treturn req.fetch(opts.args[0], args);\n\t}\n\treturn req;\n}, []);\n//#endregion\nexport { hc };\n","/** Calls Tempo ID's JSON API with `hc`, in process during server rendering. @module */\nimport {\n createIsomorphicFn,\n getGlobalStartContext,\n} from '@tanstack/react-start'\nimport { DetailedError, hc } from 'hono/client'\nimport { createContext, useContext } from 'react'\nimport type { App } from '../../Api.js'\n\n/** A client for Tempo ID's JSON API. */\nexport type Client = ReturnType<typeof create>\n\n/** Returns the `fetch` for the API: in process on the server, the network in the browser. */\nconst fetcher = createIsomorphicFn()\n .server(() => getGlobalStartContext()!.fetch)\n .client(() => fetch)\n\n/** Returns the page's origin. */\nconst origin = createIsomorphicFn()\n .server(() => getGlobalStartContext()!.origin)\n .client(() => window.location.origin)\n\n/** The client that the root route provides. */\nexport const Context = createContext<Client | undefined>(undefined)\n\n/** Creates a client for the page's origin, so each request carries the session cookie. */\nexport function create() {\n return hc<App>(origin(), { fetch: fetcher() })\n}\n\n/** Returns the `error_description` of a refusal from `parseResponse`, or a generic message. */\nexport function message(error: unknown) {\n if (error instanceof DetailedError) {\n const data: unknown = error.detail?.data\n if (\n typeof data === 'object' &&\n data !== null &&\n 'error_description' in data &&\n typeof data.error_description === 'string'\n )\n return data.error_description\n return 'Something went wrong. Try again.'\n }\n return 'Tempo ID cannot be reached. Check the connection, and try again.'\n}\n\n/** Returns the `reason` of a refusal from `parseResponse`, or `undefined`. */\nexport function reason(error: unknown) {\n if (!(error instanceof DetailedError)) return undefined\n const data: unknown = error.detail?.data\n if (\n typeof data === 'object' &&\n data !== null &&\n 'reason' in data &&\n typeof data.reason === 'string'\n )\n return data.reason\n return undefined\n}\n\n/**\n * Returns the root route's client.\n * @throws {Error} Outside the root route.\n */\nexport function use() {\n const client = useContext(Context)\n if (!client) throw new Error('The client is used outside the root route.')\n return client\n}\n"],"ignoreList":[0,1,2,3],"mappings":"A,8FAGA,IAAIC,MAA+E,CAClF,IAAMC,EAAUF,EAAgB,CAAC,CAACG,8BAClC,GAAI,CAACD,EAAS,MAAUE,MAAM,gHAAgH,EAC9I,OAAOF,CACR,ECDMgC,EAAoC,IAAI,IAAI,CACjD,IACA,IACA,IACA,GACD,CAAC,EAMD,eAAeC,EAAQ,EAAU,CAChC,IAAMC,EAAY,MAAMC,EAExB,IADKD,EAAU,MAAQA,EAAU,YAAc,CAACF,EAAkB,IAAIE,EAAU,MAAM,IAAG,EAAU,MAAQ,MAAMA,EAAUE,EAAmBF,CAAS,EAAE,CAAC,GACtJ,CAACA,EAAU,GAAI,MAAM,IAAIG,EAAc,GAAGH,EAAU,OAAO,GAAGA,EAAU,aAAc,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AsB,CAAC,CAAEM,MAInCC,MACUP,EAAsB,CAAC,CAAEO,OAI5BC,GAAAA,EAAUL,EAAAA,cAAAA,CAAkCO,IAAAA,EAAS,EAGlE,SAAgBC,GAAS,CACvB,OAAOT,EAAQK,EAAO,EAAG,CAAED,MAAOD,EAAQ,CAAE,CAAC,CAC/C,CAGA,SAAgBQ,EAAQC,EAAgB,CACtC,GAAIA,aAAiBb,EAAe,CAClC,IAAMc,EAAgBD,EAAME,QAAQD,KAQpC,OANE,OAAOA,GAAS,UAChBA,GACA,sBAAuBA,GACvB,OAAOA,EAAKE,mBAAsB,SAE3BF,EAAKE,kBACP,kCACT,CACA,MAAO,kEACT,CAGA,SAAgBC,EAAOJ,EAAgB,CACrC,GAAI,EAAEA,aAAiBb,GAAgB,OACvC,IAAMc,EAAgBD,EAAME,QAAQD,KACpC,GACE,OAAOA,GAAS,UAChBA,GACA,WAAYA,GACZ,OAAOA,EAAKG,QAAW,SAEvB,OAAOH,EAAKG,MAEhB,CAMA,SAAgBC,GAAM,CACpB,IAAMC,GAAAA,EAAShB,EAAAA,WAAAA,CAAWI,CAAO,EACjC,GAAI,CAACY,EAAQ,MAAUC,MAAM,4CAA4C,EACzE,OAAOD,CACT,C"}
|
|
1
|
+
{"version":3,"file":"Client-BAXSFa9e.js","names":["getStartContext","getGlobalStartContext","context","contextAfterGlobalMiddlewares","Error","getGlobalStartContext","DetailedError","hc","createContext","useContext","fetcher","fetch","origin","Context","Client","undefined","create","App","message","error","data","detail","error_description","reason","use","client","Error","createContext","useContext","require_react","__toESM","getStartContext","getGlobalStartContext","context","nullBodyResponses","fetchRP","_fetchRes","fetchRes","detectResponseType","DetailedError","message","options","jsonRegex","_contentType","response","contentType","mergePath","base","path","replaceUrlParam","k","v","params","reg","urlString","buildSearchParams","searchParams","query","v2","replaceUrlProtocol","protocol","removeIndexString","isObject","item","deepMerge","target","source","merged","key","value","parseResponse","createProxy","callback","appendQueryParams","queryString","url","ClientRequestImpl","method","args","form","methodUpperCase","headerValues","opt","cookies","serialize","\"Cookie\"","headers","setBody","hc","proxyCallback","buildSearchParamsOption","parts","opts","lastParts","last","baseUrl","result","normalizedUrl","webSocketUrl","targetUrl","queryParams","req","reqOptions","baseHeaders","reqHeaders","import_react","fetcher","origin","Context","create","error","data","reason","use","client"],"sources":["../../../../../node_modules/.pnpm/@tanstack+start-client-core@1.170.34/node_modules/@tanstack/start-client-core/dist/esm/getGlobalStartContext.js","../../../../../node_modules/.pnpm/hono@4.13.13/node_modules/hono/dist/client/fetch-result-please.js","../../../../../node_modules/.pnpm/hono@4.13.13/node_modules/hono/dist/client/utils.js","../../../../../node_modules/.pnpm/hono@4.13.13/node_modules/hono/dist/client/client.js","../../../lib/Client.ts"],"sourcesContent":["import { createIsomorphicFn } from \"@tanstack/start-fn-stubs\";\nimport { getStartContext } from \"@tanstack/start-storage-context\";\n//#region src/getGlobalStartContext.ts\nvar getGlobalStartContext = createIsomorphicFn().client(() => void 0).server(() => {\n\tconst context = getStartContext().contextAfterGlobalMiddlewares;\n\tif (!context) throw new Error(`Global context not set yet, you are calling getGlobalStartContext() before the global middlewares are applied.`);\n\treturn context;\n});\n//#endregion\nexport { getGlobalStartContext };\n\n//# sourceMappingURL=getGlobalStartContext.js.map","//#region src/client/fetch-result-please.ts\n/**\n* @description This file is a modified version of `fetch-result-please` (`ofetch`), minimalized and adapted to Hono's custom needs.\n*\n* @link https://www.npmjs.com/package/fetch-result-please\n*/\nconst nullBodyResponses = /* @__PURE__ */ new Set([\n\t101,\n\t204,\n\t205,\n\t304\n]);\n/**\n* Smartly parses and return the consumable result from a fetch `Response`.\n*\n* Throwing a structured error if the response is not `ok`. ({@link DetailedError})\n*/\nasync function fetchRP(fetchRes) {\n\tconst _fetchRes = await fetchRes;\n\tif ((_fetchRes.body || _fetchRes._bodyInit) && !nullBodyResponses.has(_fetchRes.status)) _fetchRes._data = await _fetchRes[detectResponseType(_fetchRes)]();\n\tif (!_fetchRes.ok) throw new DetailedError(`${_fetchRes.status} ${_fetchRes.statusText}`, {\n\t\tstatusCode: _fetchRes?.status,\n\t\tdetail: {\n\t\t\tdata: _fetchRes?._data,\n\t\t\tstatusText: _fetchRes?.statusText\n\t\t}\n\t});\n\treturn _fetchRes._data;\n}\nvar DetailedError = class extends Error {\n\t/**\n\t* Additional `message` that will be logged AND returned to client\n\t*/\n\tdetail;\n\t/**\n\t* Additional `code` that will be logged AND returned to client\n\t*/\n\tcode;\n\t/**\n\t* Additional value that will be logged AND NOT returned to client\n\t*/\n\tlog;\n\t/**\n\t* Optionally set the status code to return, in a web server context\n\t*/\n\tstatusCode;\n\tconstructor(message, options = {}) {\n\t\tsuper(message);\n\t\tthis.name = \"DetailedError\";\n\t\tthis.log = options.log;\n\t\tthis.detail = options.detail;\n\t\tthis.code = options.code;\n\t\tthis.statusCode = options.statusCode;\n\t}\n};\nconst jsonRegex = /^application\\/(?:[\\w!#$%&*.^`~-]*\\+)?json(?:;.+)?$/i;\nfunction detectResponseType(response) {\n\tconst _contentType = response.headers.get(\"content-type\");\n\tif (!_contentType) return \"text\";\n\tconst contentType = _contentType.split(\";\").shift();\n\tif (jsonRegex.test(contentType)) return \"json\";\n\treturn \"text\";\n}\n//#endregion\nexport { DetailedError, fetchRP };\n","import { DetailedError, fetchRP } from \"./fetch-result-please.js\";\n//#region src/client/utils.ts\nconst mergePath = (base, path) => {\n\tbase = base.replace(/\\/+$/, \"\");\n\tbase = base + \"/\";\n\tpath = path.replace(/^\\/+/, \"\");\n\treturn base + path;\n};\nconst replaceUrlParam = (urlString, params) => {\n\tfor (const [k, v] of Object.entries(params)) {\n\t\tconst reg = new RegExp(\"/:\" + k + \"(?:{[^/]+})?\\\\??(?=/|$)\");\n\t\turlString = urlString.replace(reg, () => v ? `/${v}` : \"\");\n\t}\n\treturn urlString;\n};\nconst buildSearchParams = (query) => {\n\tconst searchParams = new URLSearchParams();\n\tfor (const [k, v] of Object.entries(query)) {\n\t\tif (v === void 0) continue;\n\t\tif (Array.isArray(v)) for (const v2 of v) {\n\t\t\tif (v2 === void 0) continue;\n\t\t\tsearchParams.append(k, v2);\n\t\t}\n\t\telse searchParams.set(k, v);\n\t}\n\treturn searchParams;\n};\nconst replaceUrlProtocol = (urlString, protocol) => {\n\tswitch (protocol) {\n\t\tcase \"ws\": return urlString.replace(/^http/, \"ws\");\n\t\tcase \"http\": return urlString.replace(/^ws/, \"http\");\n\t}\n};\nconst removeIndexString = (urlString) => {\n\tif (/^https?:\\/\\/[^\\/]+?\\/index(?=\\?|$)/.test(urlString)) return urlString.replace(/\\/index(?=\\?|$)/, \"/\");\n\treturn urlString.replace(/\\/index(?=\\?|$)/, \"\");\n};\nfunction isObject(item) {\n\treturn typeof item === \"object\" && item !== null && !Array.isArray(item);\n}\nfunction deepMerge(target, source) {\n\tif (!isObject(target) && !isObject(source)) return source;\n\tconst merged = { ...target };\n\tfor (const key in source) {\n\t\tconst value = source[key];\n\t\tif (isObject(merged[key]) && isObject(value)) merged[key] = deepMerge(merged[key], value);\n\t\telse merged[key] = value;\n\t}\n\treturn merged;\n}\n/**\n* Shortcut to get a consumable response from `hc`'s fetch calls (Response), with types inference.\n*\n* Smartly parse the response data, throwing a structured error if the response is not `ok`. ({@link DetailedError})\n*\n* @example const result = await parseResponse(client.posts.$get())\n*/\nasync function parseResponse(fetchRes) {\n\treturn fetchRP(fetchRes);\n}\n//#endregion\nexport { DetailedError, buildSearchParams, deepMerge, mergePath, parseResponse, removeIndexString, replaceUrlParam, replaceUrlProtocol };\n","import { serialize } from \"../utils/cookie.js\";\nimport { buildSearchParams, deepMerge, mergePath, removeIndexString, replaceUrlParam, replaceUrlProtocol } from \"./utils.js\";\n//#region src/client/client.ts\nconst createProxy = (callback, path) => {\n\treturn new Proxy(() => {}, {\n\t\tget(_obj, key) {\n\t\t\tif (typeof key !== \"string\" || key === \"then\") return;\n\t\t\treturn createProxy(callback, [...path, key]);\n\t\t},\n\t\tapply(_1, _2, args) {\n\t\t\treturn callback({\n\t\t\t\tpath,\n\t\t\t\targs\n\t\t\t});\n\t\t}\n\t});\n};\nconst appendQueryParams = (url, searchParams) => {\n\tconst queryString = searchParams.toString();\n\treturn queryString ? `${url}?${queryString}` : url;\n};\nvar ClientRequestImpl = class {\n\turl;\n\tmethod;\n\tbuildSearchParams;\n\tqueryParams = void 0;\n\tpathParams = {};\n\trBody;\n\tcType = void 0;\n\tconstructor(url, method, options) {\n\t\tthis.url = url;\n\t\tthis.method = method;\n\t\tthis.buildSearchParams = options.buildSearchParams;\n\t}\n\tfetch = async (args, opt) => {\n\t\tif (args) {\n\t\t\tif (args.query) this.queryParams = this.buildSearchParams(args.query);\n\t\t\tif (args.form) {\n\t\t\t\tconst form = new FormData();\n\t\t\t\tfor (const [k, v] of Object.entries(args.form)) {\n\t\t\t\t\tif (v === void 0) continue;\n\t\t\t\t\tif (Array.isArray(v)) for (const v2 of v) {\n\t\t\t\t\t\tif (v2 === void 0) continue;\n\t\t\t\t\t\tform.append(k, v2);\n\t\t\t\t\t}\n\t\t\t\t\telse form.append(k, v);\n\t\t\t\t}\n\t\t\t\tthis.rBody = form;\n\t\t\t}\n\t\t\tif (args.json !== void 0) {\n\t\t\t\tthis.rBody = JSON.stringify(args.json);\n\t\t\t\tthis.cType = \"application/json\";\n\t\t\t}\n\t\t\tif (args.param) this.pathParams = args.param;\n\t\t}\n\t\tlet methodUpperCase = this.method.toUpperCase();\n\t\tconst headerValues = {\n\t\t\t...args?.header,\n\t\t\t...typeof opt?.headers === \"function\" ? await opt.headers() : opt?.headers\n\t\t};\n\t\tif (args?.cookie) {\n\t\t\tconst cookies = [];\n\t\t\tfor (const [key, value] of Object.entries(args.cookie)) {\n\t\t\t\tif (value === void 0) continue;\n\t\t\t\tcookies.push(serialize(key, value));\n\t\t\t}\n\t\t\tif (cookies.length > 0) headerValues[\"Cookie\"] = cookies.join(\"; \");\n\t\t}\n\t\tif (this.cType) headerValues[\"Content-Type\"] = this.cType;\n\t\tconst headers = new Headers();\n\t\tfor (const [key, value] of Object.entries(headerValues)) if (value !== void 0) headers.set(key, value);\n\t\tlet url = this.url;\n\t\turl = removeIndexString(url);\n\t\turl = replaceUrlParam(url, this.pathParams);\n\t\tif (this.queryParams) url = appendQueryParams(url, this.queryParams);\n\t\tmethodUpperCase = this.method.toUpperCase();\n\t\tconst setBody = !(methodUpperCase === \"GET\" || methodUpperCase === \"HEAD\");\n\t\treturn (opt?.fetch || fetch)(url, {\n\t\t\tbody: setBody ? this.rBody : void 0,\n\t\t\tmethod: methodUpperCase,\n\t\t\theaders,\n\t\t\t...opt?.init\n\t\t});\n\t};\n};\nconst hc = (baseUrl, options) => createProxy(function proxyCallback(opts) {\n\tconst buildSearchParamsOption = options?.buildSearchParams ?? buildSearchParams;\n\tconst parts = [...opts.path];\n\tconst lastParts = parts.slice(-3).reverse();\n\tif (lastParts[0] === \"toString\") {\n\t\tif (lastParts[1] === \"name\") return lastParts[2] || \"\";\n\t\treturn proxyCallback.toString();\n\t}\n\tif (lastParts[0] === \"valueOf\") {\n\t\tif (lastParts[1] === \"name\") return lastParts[2] || \"\";\n\t\treturn proxyCallback;\n\t}\n\tlet method = \"\";\n\tif (/^\\$/.test(lastParts[0])) {\n\t\tconst last = parts.pop();\n\t\tif (last) method = last.replace(/^\\$/, \"\");\n\t}\n\tconst path = parts.join(\"/\");\n\tconst url = mergePath(baseUrl, path);\n\tif (method === \"url\" || method === \"path\") {\n\t\tlet result = removeIndexString(url);\n\t\tif (opts.args[0]) {\n\t\t\tif (opts.args[0].param) result = replaceUrlParam(result, opts.args[0].param);\n\t\t\tif (opts.args[0].query) result = appendQueryParams(result, buildSearchParamsOption(opts.args[0].query));\n\t\t}\n\t\tif (method === \"url\") return new URL(result);\n\t\treturn result.slice(baseUrl.replace(/\\/+$/, \"\").length).replace(/^\\/?/, \"/\");\n\t}\n\tif (method === \"ws\") {\n\t\tconst normalizedUrl = removeIndexString(url);\n\t\tconst webSocketUrl = replaceUrlProtocol(opts.args[0]?.param ? replaceUrlParam(normalizedUrl, opts.args[0].param) : normalizedUrl, \"ws\");\n\t\tconst targetUrl = new URL(webSocketUrl);\n\t\tconst queryParams = opts.args[0]?.query;\n\t\tif (queryParams) buildSearchParamsOption(queryParams).forEach((value, key) => {\n\t\t\ttargetUrl.searchParams.append(key, value);\n\t\t});\n\t\tconst establishWebSocket = (...args) => {\n\t\t\tif (options?.webSocket !== void 0 && typeof options.webSocket === \"function\") return options.webSocket(...args);\n\t\t\treturn new WebSocket(...args);\n\t\t};\n\t\treturn establishWebSocket(targetUrl.toString());\n\t}\n\tconst req = new ClientRequestImpl(url, method, { buildSearchParams: buildSearchParamsOption });\n\tif (method) {\n\t\toptions ??= {};\n\t\tconst reqOptions = { ...opts.args[1] };\n\t\tconst baseHeaders = options.headers;\n\t\tconst reqHeaders = reqOptions.headers;\n\t\tif (baseHeaders && reqHeaders) reqOptions.headers = async () => ({\n\t\t\t...typeof baseHeaders === \"function\" ? await baseHeaders() : baseHeaders,\n\t\t\t...typeof reqHeaders === \"function\" ? await reqHeaders() : reqHeaders\n\t\t});\n\t\tconst args = deepMerge(options, reqOptions);\n\t\treturn req.fetch(opts.args[0], args);\n\t}\n\treturn req;\n}, []);\n//#endregion\nexport { hc };\n","/** Calls Tempo ID's JSON API with `hc`, in process during server rendering. @module */\nimport {\n createIsomorphicFn,\n getGlobalStartContext,\n} from '@tanstack/react-start'\nimport { DetailedError, hc } from 'hono/client'\nimport { createContext, useContext } from 'react'\nimport type { App } from '../../Api.js'\n\n/** A client for Tempo ID's JSON API. */\nexport type Client = ReturnType<typeof create>\n\n/** Returns the `fetch` for the API: in process on the server, the network in the browser. */\nconst fetcher = createIsomorphicFn()\n .server(() => getGlobalStartContext()!.fetch)\n .client(() => fetch)\n\n/** Returns the page's origin. */\nconst origin = createIsomorphicFn()\n .server(() => getGlobalStartContext()!.origin)\n .client(() => window.location.origin)\n\n/** The client that the root route provides. */\nexport const Context = createContext<Client | undefined>(undefined)\n\n/** Creates a client for the page's origin, so each request carries the session cookie. */\nexport function create() {\n return hc<App>(origin(), { fetch: fetcher() })\n}\n\n/** Returns the `error_description` of a refusal from `parseResponse`, or a generic message. */\nexport function message(error: unknown) {\n if (error instanceof DetailedError) {\n const data: unknown = error.detail?.data\n if (\n typeof data === 'object' &&\n data !== null &&\n 'error_description' in data &&\n typeof data.error_description === 'string'\n )\n return data.error_description\n return 'Something went wrong. Try again.'\n }\n return 'Tempo ID cannot be reached. Check the connection, and try again.'\n}\n\n/** Returns the `reason` of a refusal from `parseResponse`, or `undefined`. */\nexport function reason(error: unknown) {\n if (!(error instanceof DetailedError)) return undefined\n const data: unknown = error.detail?.data\n if (\n typeof data === 'object' &&\n data !== null &&\n 'reason' in data &&\n typeof data.reason === 'string'\n )\n return data.reason\n return undefined\n}\n\n/**\n * Returns the root route's client.\n * @throws {Error} Outside the root route.\n */\nexport function use() {\n const client = useContext(Context)\n if (!client) throw new Error('The client is used outside the root route.')\n return client\n}\n"],"ignoreList":[0,1,2,3],"mappings":"A,8FAGA,IAAIC,MAA+E,CAClF,IAAMC,EAAUF,EAAgB,CAAC,CAACG,8BAClC,GAAI,CAACD,EAAS,MAAUE,MAAM,gHAAgH,EAC9I,OAAOF,CACR,ECDMgC,EAAoC,IAAI,IAAI,CACjD,IACA,IACA,IACA,GACD,CAAC,EAMD,eAAeC,EAAQ,EAAU,CAChC,IAAMC,EAAY,MAAMC,EAExB,IADKD,EAAU,MAAQA,EAAU,YAAc,CAACF,EAAkB,IAAIE,EAAU,MAAM,IAAG,EAAU,MAAQ,MAAMA,EAAUE,EAAmBF,CAAS,EAAE,CAAC,GACtJ,CAACA,EAAU,GAAI,MAAM,IAAIG,EAAc,GAAGH,EAAU,OAAO,GAAGA,EAAU,aAAc,CACzF,WAAYA,GAAW,OACvB,OAAQ,CACP,KAAMA,GAAW,MACjB,WAAYA,GAAW,UACxB,CACD,CAAC,EACD,OAAOA,EAAU,KAClB,CACA,IAAIG,EAAgB,cAAc,KAAM,CAIvC,OAIA,KAIA,IAIA,WACA,YAAY,EAAS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,CAAE,CAAC,CAC/C,CAGA,SAAgBQ,EAAQC,EAAgB,CACtC,GAAIA,aAAiBb,EAAe,CAClC,IAAMc,EAAgBD,EAAME,QAAQD,KAQpC,OANE,OAAOA,GAAS,UAChBA,GACA,sBAAuBA,GACvB,OAAOA,EAAKE,mBAAsB,SAE3BF,EAAKE,kBACP,kCACT,CACA,MAAO,kEACT,CAGA,SAAgBC,EAAOJ,EAAgB,CACrC,GAAI,EAAEA,aAAiBb,GAAgB,OACvC,IAAMc,EAAgBD,EAAME,QAAQD,KACpC,GACE,OAAOA,GAAS,UAChBA,GACA,WAAYA,GACZ,OAAOA,EAAKG,QAAW,SAEvB,OAAOH,EAAKG,MAEhB,CAMA,SAAgBC,GAAM,CACpB,IAAMC,GAAAA,EAAShB,EAAAA,WAAAA,CAAWI,CAAO,EACjC,GAAI,CAACY,EAAQ,MAAUC,MAAM,4CAA4C,EACzE,OAAOD,CACT,C"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{E as e,S as t,j as n,s as r}from"./react-dom-
|
|
2
|
-
//# sourceMappingURL=ClientOnly-
|
|
1
|
+
import{E as e,S as t,j as n,s as r}from"./react-dom-pSpaua7D.js";function i(e){return e.replace(/\/{2,}/g,`/`)}function a(e){return e===`/`?e:e.replace(/^\/+/,``)}function o(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/+$/,``):e}function s(e){return o(a(e))}function c(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function l(e,n,r=`never`,a){if(n.includes(`//`)&&(n=i(n)),n.startsWith(`/`))return n.length===1||r===`preserve`?n:r===`always`?n.endsWith(`/`)?n:`${n}/`:n.endsWith(`/`)?n.slice(0,-1):n;let o=n===`.`,s;if(a){s=o?e:e+`\0`+n;let t=a.get(s);if(t)return t}let c;if(o)c=e.split(`/`);else{for(e.includes(`//`)&&(e=i(e)),c=e.split(`/`);c.length>1&&t(c)===``;)c.pop();let r=n.split(`/`);for(let e=0,t=r.length;e<t;e++){let n=r[e];n===``?e?e===t-1&&c.push(n):c=[n]:n===`..`?c.length>1?c.pop():c=[``]:n===`.`||c.push(n)}}c.length>1&&(t(c)===``?r===`never`&&c.pop():r===`always`&&c.push(``));let l=c.join(`/`),u=(o?i(l):l)||`/`;return s&&a&&a.set(s,u),u}function u(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=new RegExp([...t.keys()].join(`|`).replace(/[.*()]/g,`\\$&`),`g`);return e=>e.replace(n,e=>t.get(e)??e)}function d(e){return e==null||e===``}function f(e,t,n){if(typeof t!=`string`)return``+(t??void 0);let r=e===`_splat`;if(r&&(!t||/^[a-zA-Z0-9\-._~!/]*$/.test(t)))return t;let i=encodeURIComponent(t);return r&&(i=i.replaceAll(`%2F`,`/`)),n?n(i):i}function p(e,t,n,r,i){let a=e.endsWith(`/`)?`/`:``,o=``;for(let e of t){if(typeof e==`string`){o+=e;continue}let[t,s,c,l]=e,u=t===2,p=u&&l!==void 0?l+a:l,m=n[s];if(t!==3||m!=null){if(i&&(i[s]=m,u&&(i[`*`]=m)),u&&d(m)){if(c===`/`&&!p)continue;m=``}o+=c+f(s,m,r)+(p||``)}}return o+a||`/`}var m=n(e(),1),h=r(),g=()=>!0,_=()=>!1;function v({children:e,fallback:t=null}){return(0,h.jsx)(m.Fragment,{children:y()?e:t})}function y(e=!0){return m.useSyncExternalStore(b,g,e?_:g)}function b(){return()=>{}}export{p as a,s as c,u as i,a as l,y as n,c as o,i as r,l as s,v as t,o as u};
|
|
2
|
+
//# sourceMappingURL=ClientOnly-B8k5xDwz.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientOnly-CbQVNHub.js","names":["require_react","last","__toESM","require_jsx_runtime","cleanPath","path","trimPathLeft","trimPathRight","len","trimPath","removeTrailingSlash","value","basepath","resolvePath","to","trailingSlash","isBase","key","cache","base","cached","baseSegments","toSegments","index","length","joined","result","compileDecodeCharMap","charMap","pathParamsAllowedCharacters","char","regex","encoded","match","isMissingSplat","encodeParam","splat","decoder","interpolatePath","part","segments","kind","prefix","rawSuffix","suffix","paramValue","params","usedParams","import_react","import_jsx_runtime","getSnapshot","getServerSnapshot","ClientOnly","useHydrated","children","fallback","subscribe","enabled"],"sources":["../../../../../node_modules/.pnpm/@tanstack+router-core@1.171.34/node_modules/@tanstack/router-core/dist/esm/path.js","../../../../../node_modules/.pnpm/@tanstack+react-router@1.170.41_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@tanstack/react-router/dist/esm/ClientOnly.js"],"sourcesContent":["import { last } from \"./utils.js\";\n//#region src/path.ts\n/** Join path segments, cleaning duplicate slashes between parts. */\nfunction joinPaths(paths) {\n\treturn cleanPath(paths.filter((val) => {\n\t\treturn val !== void 0;\n\t}).join(\"/\"));\n}\n/** Remove repeated slashes from a path string. */\nfunction cleanPath(path) {\n\treturn path.replace(/\\/{2,}/g, \"/\");\n}\n/** Trim leading slashes (except preserving root '/'). */\nfunction trimPathLeft(path) {\n\treturn path === \"/\" ? path : path.replace(/^\\/+/, \"\");\n}\n/** Trim trailing slashes (except preserving root '/'). */\nfunction trimPathRight(path) {\n\tconst len = path.length;\n\treturn len > 1 && path[len - 1] === \"/\" ? path.replace(/\\/+$/, \"\") : path;\n}\n/** Trim both leading and trailing slashes. */\nfunction trimPath(path) {\n\treturn trimPathRight(trimPathLeft(path));\n}\n/** Remove a trailing slash from value when appropriate for comparisons. */\nfunction removeTrailingSlash(value, basepath) {\n\tif (value?.endsWith(\"/\") && value !== \"/\" && value !== `${basepath}/`) return value.slice(0, -1);\n\treturn value;\n}\n/**\n* Compare two pathnames for exact equality after normalizing trailing slashes\n* relative to the provided `basepath`.\n*/\nfunction exactPathTest(pathName1, pathName2, basepath) {\n\treturn removeTrailingSlash(pathName1, basepath) === removeTrailingSlash(pathName2, basepath);\n}\n/**\n* Resolve a destination path against a base, honoring trailing-slash policy\n* and supporting relative segments (`.`/`..`) and absolute `to` values.\n*\n* Internal: parameters are positional so the router's hot callers pass no\n* options object.\n*/\nfunction resolvePath(base, to, trailingSlash = \"never\", cache) {\n\tif (to.includes(\"//\")) to = cleanPath(to);\n\tif (to.startsWith(\"/\")) {\n\t\tif (to.length === 1 || trailingSlash === \"preserve\") return to;\n\t\tif (trailingSlash === \"always\") return to.endsWith(\"/\") ? to : `${to}/`;\n\t\treturn to.endsWith(\"/\") ? to.slice(0, -1) : to;\n\t}\n\tconst isBase = to === \".\";\n\tlet key;\n\tif (cache) {\n\t\tkey = isBase ? base : base + \"\\0\" + to;\n\t\tconst cached = cache.get(key);\n\t\tif (cached) return cached;\n\t}\n\tlet baseSegments;\n\tif (isBase) baseSegments = base.split(\"/\");\n\telse {\n\t\tif (base.includes(\"//\")) base = cleanPath(base);\n\t\tbaseSegments = base.split(\"/\");\n\t\twhile (baseSegments.length > 1 && last(baseSegments) === \"\") baseSegments.pop();\n\t\tconst toSegments = to.split(\"/\");\n\t\tfor (let index = 0, length = toSegments.length; index < length; index++) {\n\t\t\tconst value = toSegments[index];\n\t\t\tif (value === \"\") {\n\t\t\t\tif (!index) baseSegments = [value];\n\t\t\t\telse if (index === length - 1) baseSegments.push(value);\n\t\t\t} else if (value === \"..\") if (baseSegments.length > 1) baseSegments.pop();\n\t\t\telse baseSegments = [\"\"];\n\t\t\telse if (value === \".\") {} else baseSegments.push(value);\n\t\t}\n\t}\n\tif (baseSegments.length > 1) {\n\t\tif (last(baseSegments) === \"\") {\n\t\t\tif (trailingSlash === \"never\") baseSegments.pop();\n\t\t} else if (trailingSlash === \"always\") baseSegments.push(\"\");\n\t}\n\tconst joined = baseSegments.join(\"/\");\n\tconst result = (isBase ? cleanPath(joined) : joined) || \"/\";\n\tif (key && cache) cache.set(key, result);\n\treturn result;\n}\n/**\n* Create a pre-compiled decode config from allowed characters.\n* Created once for the router's fixed encoding configuration.\n*/\nfunction compileDecodeCharMap(pathParamsAllowedCharacters) {\n\tconst charMap = new Map(pathParamsAllowedCharacters.map((char) => [encodeURIComponent(char), char]));\n\tconst regex = new RegExp([...charMap.keys()].join(\"|\").replace(/[.*()]/g, \"\\\\$&\"), \"g\");\n\treturn (encoded) => encoded.replace(regex, (match) => charMap.get(match) ?? match);\n}\nfunction getRouteSegments(route) {\n\treturn route._interpolation;\n}\n/** A splat is missing when it has no value; `0` and `false` are stringified like any other param. */\nfunction isMissingSplat(value) {\n\treturn value == null || value === \"\";\n}\n/** Devtools checks navigation availability separately from the hot formatter. */\nfunction hasMissingPathParams(segments, params) {\n\treturn segments.some((part) => {\n\t\tif (typeof part === \"string\") return false;\n\t\tconst [kind, key] = part;\n\t\treturn kind === 2 ? isMissingSplat(params[key]) : kind === 1 && !(key in params);\n\t});\n}\nfunction encodeParam(key, value, decoder) {\n\tif (typeof value !== \"string\") return \"\" + (value ?? void 0);\n\tconst splat = key === \"_splat\";\n\tif (splat && (!value || /^[a-zA-Z0-9\\-._~!/]*$/.test(value))) return value;\n\tlet encoded = encodeURIComponent(value);\n\tif (splat) encoded = encoded.replaceAll(\"%2F\", \"/\");\n\treturn decoder ? decoder(encoded) : encoded;\n}\n/** Substitute current values into parsed segments, optionally collecting raw params. */\nfunction interpolatePath(path, segments, params, decoder, usedParams) {\n\tconst trailingSlash = path.endsWith(\"/\") ? \"/\" : \"\";\n\tlet joined = \"\";\n\tfor (const part of segments) {\n\t\tif (typeof part === \"string\") {\n\t\t\tjoined += part;\n\t\t\tcontinue;\n\t\t}\n\t\tconst [kind, key, prefix, rawSuffix] = part;\n\t\tconst splat = kind === 2;\n\t\tconst suffix = splat && rawSuffix !== void 0 ? rawSuffix + trailingSlash : rawSuffix;\n\t\tlet paramValue = params[key];\n\t\tif (kind === 3 && paramValue == null) continue;\n\t\tif (usedParams) {\n\t\t\tusedParams[key] = paramValue;\n\t\t\tif (splat) usedParams[\"*\"] = paramValue;\n\t\t}\n\t\tif (splat && isMissingSplat(paramValue)) {\n\t\t\tif (prefix === \"/\" && !suffix) continue;\n\t\t\tparamValue = \"\";\n\t\t}\n\t\tjoined += prefix + encodeParam(key, paramValue, decoder) + (suffix || \"\");\n\t}\n\treturn joined + trailingSlash || \"/\";\n}\n//#endregion\nexport { cleanPath, compileDecodeCharMap, exactPathTest, getRouteSegments, hasMissingPathParams, interpolatePath, joinPaths, removeTrailingSlash, resolvePath, trimPath, trimPathLeft, trimPathRight };\n\n//# sourceMappingURL=path.js.map","\"use client\";\nimport React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\n//#region src/ClientOnly.tsx\nvar getSnapshot = () => true;\nvar getServerSnapshot = () => false;\n/**\n* Render the children only after the JS has loaded client-side. Use an optional\n* fallback component if the JS is not yet loaded.\n*\n* @example\n* Render a Chart component if JS loads, renders a simple FakeChart\n* component server-side or if there is no JS. The FakeChart can have only the\n* UI without the behavior or be a loading spinner or skeleton.\n*\n* ```tsx\n* return (\n* <ClientOnly fallback={<FakeChart />}>\n* <Chart />\n* </ClientOnly>\n* )\n* ```\n*/\nfunction ClientOnly({ children, fallback = null }) {\n\treturn /* @__PURE__ */ jsx(React.Fragment, { children: useHydrated() ? children : fallback });\n}\n/** @internal */\nfunction useHydrated(enabled = true) {\n\treturn React.useSyncExternalStore(subscribe, getSnapshot, enabled ? getServerSnapshot : getSnapshot);\n}\nfunction subscribe() {\n\treturn () => {};\n}\n//#endregion\nexport { ClientOnly, useHydrated };\n\n//# sourceMappingURL=ClientOnly.js.map"],"ignoreList":[0,1],"mappings":"A,iEASA,SAASI,EAAU,EAAM,CACxB,OAAOC,EAAK,QAAQ,UAAW,GAAG,CACnC,CAEA,SAASC,EAAa,EAAM,CAC3B,OAAOD,IAAS,IAAMA,EAAOA,EAAK,QAAQ,OAAQ,EAAE,CACrD,CAEA,SAASE,EAAc,EAAM,CAC5B,IAAMC,EAAMH,EAAK,OACjB,OAAOG,EAAM,GAAKH,EAAKG,EAAM,KAAO,IAAMH,EAAK,QAAQ,OAAQ,EAAE,EAAIA,CACtE,CAEA,SAASI,EAAS,EAAM,CACvB,OAAOF,EAAcD,EAAaD,CAA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B,EAAQC,GAAaJ,EACjCH,EAAQK,IAAS,EACjBG,EAASR,GAASO,IAAc,IAAK,GAAIA,EAAY5B,EAAgB4B,EACvEE,EAAaC,EAAO7B,GACxB,GAAIwB,IAAS,GAAKI,GAAc,KAChC,CAIA,GAJIE,IACH,EAAW9B,GAAO4B,EACdT,IAAO,EAAW,KAAOS,IAE1BT,GAASF,EAAeW,CAAU,EAAG,CACxC,GAAIH,IAAW,KAAO,CAACE,EAAQ,SAC/B,EAAa,EACd,CACA,GAAUF,EAASP,EAAYlB,EAAK4B,EAAYR,CAAO,GAAKO,GAAU,GALtE,CAMD,CACA,OAAOnB,EAASV,GAAiB,GAClC,C,qBC1IImC,MAAoB,GACpBC,MAA0B,GAkB9B,SAASC,EAAW,CAAE,WAAU,WAAW,MAAQ,CAClD,OAAuB,EAAAH,EAAA,IAAA,CAAAD,EAAU,SAAU,CAAE,SAAUK,EAAY,EAAIC,EAAWC,CAAS,CAAC,CAC7F,CAEA,SAASF,EAAY,EAAU,GAAM,CACpC,OAAAL,EAAa,qBAAqBQ,EAAWN,EAAaO,EAAUN,EAAoBD,CAAW,CACpG,CACA,SAASM,GAAY,CACpB,UAAa,CAAC,CACf,C"}
|
|
1
|
+
{"version":3,"file":"ClientOnly-B8k5xDwz.js","names":["require_react","last","__toESM","require_jsx_runtime","cleanPath","path","trimPathLeft","trimPathRight","len","trimPath","removeTrailingSlash","value","basepath","resolvePath","to","trailingSlash","isBase","key","cache","base","cached","baseSegments","toSegments","index","length","joined","result","compileDecodeCharMap","charMap","pathParamsAllowedCharacters","char","regex","encoded","match","isMissingSplat","encodeParam","splat","decoder","interpolatePath","part","segments","kind","prefix","rawSuffix","suffix","paramValue","params","usedParams","import_react","import_jsx_runtime","getSnapshot","getServerSnapshot","ClientOnly","useHydrated","children","fallback","subscribe","enabled"],"sources":["../../../../../node_modules/.pnpm/@tanstack+router-core@1.171.34/node_modules/@tanstack/router-core/dist/esm/path.js","../../../../../node_modules/.pnpm/@tanstack+react-router@1.170.41_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@tanstack/react-router/dist/esm/ClientOnly.js"],"sourcesContent":["import { last } from \"./utils.js\";\n//#region src/path.ts\n/** Join path segments, cleaning duplicate slashes between parts. */\nfunction joinPaths(paths) {\n\treturn cleanPath(paths.filter((val) => {\n\t\treturn val !== void 0;\n\t}).join(\"/\"));\n}\n/** Remove repeated slashes from a path string. */\nfunction cleanPath(path) {\n\treturn path.replace(/\\/{2,}/g, \"/\");\n}\n/** Trim leading slashes (except preserving root '/'). */\nfunction trimPathLeft(path) {\n\treturn path === \"/\" ? path : path.replace(/^\\/+/, \"\");\n}\n/** Trim trailing slashes (except preserving root '/'). */\nfunction trimPathRight(path) {\n\tconst len = path.length;\n\treturn len > 1 && path[len - 1] === \"/\" ? path.replace(/\\/+$/, \"\") : path;\n}\n/** Trim both leading and trailing slashes. */\nfunction trimPath(path) {\n\treturn trimPathRight(trimPathLeft(path));\n}\n/** Remove a trailing slash from value when appropriate for comparisons. */\nfunction removeTrailingSlash(value, basepath) {\n\tif (value?.endsWith(\"/\") && value !== \"/\" && value !== `${basepath}/`) return value.slice(0, -1);\n\treturn value;\n}\n/**\n* Compare two pathnames for exact equality after normalizing trailing slashes\n* relative to the provided `basepath`.\n*/\nfunction exactPathTest(pathName1, pathName2, basepath) {\n\treturn removeTrailingSlash(pathName1, basepath) === removeTrailingSlash(pathName2, basepath);\n}\n/**\n* Resolve a destination path against a base, honoring trailing-slash policy\n* and supporting relative segments (`.`/`..`) and absolute `to` values.\n*\n* Internal: parameters are positional so the router's hot callers pass no\n* options object.\n*/\nfunction resolvePath(base, to, trailingSlash = \"never\", cache) {\n\tif (to.includes(\"//\")) to = cleanPath(to);\n\tif (to.startsWith(\"/\")) {\n\t\tif (to.length === 1 || trailingSlash === \"preserve\") return to;\n\t\tif (trailingSlash === \"always\") return to.endsWith(\"/\") ? to : `${to}/`;\n\t\treturn to.endsWith(\"/\") ? to.slice(0, -1) : to;\n\t}\n\tconst isBase = to === \".\";\n\tlet key;\n\tif (cache) {\n\t\tkey = isBase ? base : base + \"\\0\" + to;\n\t\tconst cached = cache.get(key);\n\t\tif (cached) return cached;\n\t}\n\tlet baseSegments;\n\tif (isBase) baseSegments = base.split(\"/\");\n\telse {\n\t\tif (base.includes(\"//\")) base = cleanPath(base);\n\t\tbaseSegments = base.split(\"/\");\n\t\twhile (baseSegments.length > 1 && last(baseSegments) === \"\") baseSegments.pop();\n\t\tconst toSegments = to.split(\"/\");\n\t\tfor (let index = 0, length = toSegments.length; index < length; index++) {\n\t\t\tconst value = toSegments[index];\n\t\t\tif (value === \"\") {\n\t\t\t\tif (!index) baseSegments = [value];\n\t\t\t\telse if (index === length - 1) baseSegments.push(value);\n\t\t\t} else if (value === \"..\") if (baseSegments.length > 1) baseSegments.pop();\n\t\t\telse baseSegments = [\"\"];\n\t\t\telse if (value === \".\") {} else baseSegments.push(value);\n\t\t}\n\t}\n\tif (baseSegments.length > 1) {\n\t\tif (last(baseSegments) === \"\") {\n\t\t\tif (trailingSlash === \"never\") baseSegments.pop();\n\t\t} else if (trailingSlash === \"always\") baseSegments.push(\"\");\n\t}\n\tconst joined = baseSegments.join(\"/\");\n\tconst result = (isBase ? cleanPath(joined) : joined) || \"/\";\n\tif (key && cache) cache.set(key, result);\n\treturn result;\n}\n/**\n* Create a pre-compiled decode config from allowed characters.\n* Created once for the router's fixed encoding configuration.\n*/\nfunction compileDecodeCharMap(pathParamsAllowedCharacters) {\n\tconst charMap = new Map(pathParamsAllowedCharacters.map((char) => [encodeURIComponent(char), char]));\n\tconst regex = new RegExp([...charMap.keys()].join(\"|\").replace(/[.*()]/g, \"\\\\$&\"), \"g\");\n\treturn (encoded) => encoded.replace(regex, (match) => charMap.get(match) ?? match);\n}\nfunction getRouteSegments(route) {\n\treturn route._interpolation;\n}\n/** A splat is missing when it has no value; `0` and `false` are stringified like any other param. */\nfunction isMissingSplat(value) {\n\treturn value == null || value === \"\";\n}\n/** Devtools checks navigation availability separately from the hot formatter. */\nfunction hasMissingPathParams(segments, params) {\n\treturn segments.some((part) => {\n\t\tif (typeof part === \"string\") return false;\n\t\tconst [kind, key] = part;\n\t\treturn kind === 2 ? isMissingSplat(params[key]) : kind === 1 && !(key in params);\n\t});\n}\nfunction encodeParam(key, value, decoder) {\n\tif (typeof value !== \"string\") return \"\" + (value ?? void 0);\n\tconst splat = key === \"_splat\";\n\tif (splat && (!value || /^[a-zA-Z0-9\\-._~!/]*$/.test(value))) return value;\n\tlet encoded = encodeURIComponent(value);\n\tif (splat) encoded = encoded.replaceAll(\"%2F\", \"/\");\n\treturn decoder ? decoder(encoded) : encoded;\n}\n/** Substitute current values into parsed segments, optionally collecting raw params. */\nfunction interpolatePath(path, segments, params, decoder, usedParams) {\n\tconst trailingSlash = path.endsWith(\"/\") ? \"/\" : \"\";\n\tlet joined = \"\";\n\tfor (const part of segments) {\n\t\tif (typeof part === \"string\") {\n\t\t\tjoined += part;\n\t\t\tcontinue;\n\t\t}\n\t\tconst [kind, key, prefix, rawSuffix] = part;\n\t\tconst splat = kind === 2;\n\t\tconst suffix = splat && rawSuffix !== void 0 ? rawSuffix + trailingSlash : rawSuffix;\n\t\tlet paramValue = params[key];\n\t\tif (kind === 3 && paramValue == null) continue;\n\t\tif (usedParams) {\n\t\t\tusedParams[key] = paramValue;\n\t\t\tif (splat) usedParams[\"*\"] = paramValue;\n\t\t}\n\t\tif (splat && isMissingSplat(paramValue)) {\n\t\t\tif (prefix === \"/\" && !suffix) continue;\n\t\t\tparamValue = \"\";\n\t\t}\n\t\tjoined += prefix + encodeParam(key, paramValue, decoder) + (suffix || \"\");\n\t}\n\treturn joined + trailingSlash || \"/\";\n}\n//#endregion\nexport { cleanPath, compileDecodeCharMap, exactPathTest, getRouteSegments, hasMissingPathParams, interpolatePath, joinPaths, removeTrailingSlash, resolvePath, trimPath, trimPathLeft, trimPathRight };\n\n//# sourceMappingURL=path.js.map","\"use client\";\nimport React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\n//#region src/ClientOnly.tsx\nvar getSnapshot = () => true;\nvar getServerSnapshot = () => false;\n/**\n* Render the children only after the JS has loaded client-side. Use an optional\n* fallback component if the JS is not yet loaded.\n*\n* @example\n* Render a Chart component if JS loads, renders a simple FakeChart\n* component server-side or if there is no JS. The FakeChart can have only the\n* UI without the behavior or be a loading spinner or skeleton.\n*\n* ```tsx\n* return (\n* <ClientOnly fallback={<FakeChart />}>\n* <Chart />\n* </ClientOnly>\n* )\n* ```\n*/\nfunction ClientOnly({ children, fallback = null }) {\n\treturn /* @__PURE__ */ jsx(React.Fragment, { children: useHydrated() ? children : fallback });\n}\n/** @internal */\nfunction useHydrated(enabled = true) {\n\treturn React.useSyncExternalStore(subscribe, getSnapshot, enabled ? getServerSnapshot : getSnapshot);\n}\nfunction subscribe() {\n\treturn () => {};\n}\n//#endregion\nexport { ClientOnly, useHydrated };\n\n//# sourceMappingURL=ClientOnly.js.map"],"ignoreList":[0,1],"mappings":"A,iEASA,SAASI,EAAU,EAAM,CACxB,OAAOC,EAAK,QAAQ,UAAW,GAAG,CACnC,CAEA,SAASC,EAAa,EAAM,CAC3B,OAAOD,IAAS,IAAMA,EAAOA,EAAK,QAAQ,OAAQ,EAAE,CACrD,CAEA,SAASE,EAAc,EAAM,CAC5B,IAAMC,EAAMH,EAAK,OACjB,OAAOG,EAAM,GAAKH,EAAKG,EAAM,KAAO,IAAMH,EAAK,QAAQ,OAAQ,EAAE,EAAIA,CACtE,CAEA,SAASI,EAAS,EAAM,CACvB,OAAOF,EAAcD,EAAaD,CAAI,CAAC,CACxC,CAEA,SAASK,EAAoB,EAAO,EAAU,CAE7C,OADIC,GAAO,SAAS,GAAG,GAAKA,IAAU,KAAOA,IAAU,GAAGC,EAAS,GAAWD,EAAM,MAAM,EAAG,EAAE,EACxFA,CACR,CAeA,SAASE,EAAY,EAAM,EAAI,EAAgB,QAAS,EAAO,CAE9D,GADIC,EAAG,SAAS,IAAI,IAAG,EAAKV,EAAUU,CAAE,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AW,KAAO,CAACE,EAAQ,SAC/B,EAAa,EACd,CACA,GAAUF,EAASP,EAAYlB,EAAK4B,EAAYR,CAAO,GAAKO,GAAU,GALtE,CAMD,CACA,OAAOnB,EAASV,GAAiB,GAClC,C,qBC1IImC,MAAoB,GACpBC,MAA0B,GAkB9B,SAASC,EAAW,CAAE,WAAU,WAAW,MAAQ,CAClD,OAAuB,EAAAH,EAAA,IAAA,CAAAD,EAAU,SAAU,CAAE,SAAUK,EAAY,EAAIC,EAAWC,CAAS,CAAC,CAC7F,CAEA,SAASF,EAAY,EAAU,GAAM,CACpC,OAAAL,EAAa,qBAAqBQ,EAAWN,EAAaO,EAAUN,EAAoBD,CAAW,CACpG,CACA,SAASM,GAAY,CACpB,UAAa,CAAC,CACf,C"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{s as e}from"./react-dom-
|
|
2
|
-
//# sourceMappingURL=Close-
|
|
1
|
+
import{s as e}from"./react-dom-pSpaua7D.js";var t=e();function n(e){return(0,t.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:(0,t.jsx)(`path`,{d:`M11.4804 3.8135C11.6757 3.6184 11.9922 3.61829 12.1874 3.8135C12.3822 4.00874 12.3824 4.32539 12.1874 4.52053L8.70694 8.00002L12.1874 11.4805C12.3821 11.6758 12.3825 11.9925 12.1874 12.1875C11.9923 12.3825 11.6757 12.3822 11.4804 12.1875L7.99991 8.70705L4.52042 12.1875C4.32527 12.3824 4.00859 12.3823 3.81339 12.1875C3.61821 11.9923 3.61839 11.6758 3.81339 11.4805L7.29288 8.00002L3.81339 4.52053C3.61816 4.3253 3.61823 4.00877 3.81339 3.8135C4.00865 3.61824 4.32516 3.61824 4.52042 3.8135L7.99991 7.29299L11.4804 3.8135Z`,fill:`currentColor`})})}export{n as t};
|
|
2
|
+
//# sourceMappingURL=Close-C74hwnOn.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Close-
|
|
1
|
+
{"version":3,"file":"Close-C74hwnOn.js","names":["_jsx","require_jsx_runtime","import_jsx_runtime","Close","props"],"sources":["../../../../../node_modules/.pnpm/@tempoxyz+ds@0.2.6_@types+react@19.3.0_react-dom@19.3.0_react@19.3.0__react-native@0.86_f564df10a26f3190a3aaf6288ad1f3d1/node_modules/@tempoxyz/ds/dist/web/icons/Close.js"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nexport function Close(props) {\n return (_jsx(\"svg\", { width: \"1em\", height: \"1em\", viewBox: \"0 0 16 16\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", \"aria-hidden\": props['aria-label'] || props['aria-labelledby'] ? undefined : true, role: props['aria-label'] || props['aria-labelledby'] ? 'img' : undefined, ...props, children: _jsx(\"path\", { d: \"M11.4804 3.8135C11.6757 3.6184 11.9922 3.61829 12.1874 3.8135C12.3822 4.00874 12.3824 4.32539 12.1874 4.52053L8.70694 8.00002L12.1874 11.4805C12.3821 11.6758 12.3825 11.9925 12.1874 12.1875C11.9923 12.3825 11.6757 12.3822 11.4804 12.1875L7.99991 8.70705L4.52042 12.1875C4.32527 12.3824 4.00859 12.3823 3.81339 12.1875C3.61821 11.9923 3.61839 11.6758 3.81339 11.4805L7.29288 8.00002L3.81339 4.52053C3.61816 4.3253 3.61823 4.00877 3.81339 3.8135C4.00865 3.61824 4.32516 3.61824 4.52042 3.8135L7.99991 7.29299L11.4804 3.8135Z\", fill: \"currentColor\" }) }));\n}\n//# sourceMappingURL=Close.js.map"],"ignoreList":[0],"mappings":"A,sDACA,SAAgBG,EAAM,EAAO,CACzB,OAAA,EAAQH,EAAAA,IAAAA,CAAK,MAAO,CAAE,MAAO,MAAO,OAAQ,MAAO,QAAS,YAAa,KAAM,OAAQ,MAAO,6BAA8B,cAAeI,EAAM,eAAiBA,EAAM,mBAAqB,IAAA,GAAY,GAAM,KAAMA,EAAM,eAAiBA,EAAM,mBAAqB,MAAQ,IAAA,GAAW,GAAGA,EAAO,UAAA,EAAUJ,EAAAA,IAAAA,CAAK,OAAQ,CAAE,EAAG,6gBAA8gB,KAAM,cAAe,CAAC,CAAE,CAAC,CAC32B,C"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{s as e}from"./react-dom-
|
|
2
|
-
//# sourceMappingURL=Cloud-
|
|
1
|
+
import{s as e}from"./react-dom-pSpaua7D.js";var t=e();function n(e){return(0,t.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:(0,t.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8.5 3.16699C10.8819 3.16699 12.8301 5.01762 12.9883 7.35938C14.5922 7.55863 15.834 8.92613 15.834 10.584C15.8336 12.3785 14.3785 13.8338 12.584 13.834H5.16699C2.95808 13.834 1.16737 12.0428 1.16699 9.83398C1.16699 7.90307 2.53477 6.29168 4.35449 5.91602C5.03729 4.30133 6.63535 3.16712 8.5 3.16699ZM8.5 4.16699C6.96768 4.16713 5.66397 5.15244 5.19043 6.52539C5.1283 6.70485 4.96965 6.83427 4.78125 6.8584C3.30682 7.04738 2.16699 8.30803 2.16699 9.83398C2.16737 11.4905 3.51037 12.834 5.16699 12.834H12.584C13.8262 12.8338 14.8336 11.8262 14.834 10.584C14.834 9.34145 13.8265 8.33416 12.584 8.33398C12.5603 8.33398 12.5363 8.33423 12.5127 8.33496C12.374 8.33926 12.2393 8.28511 12.1416 8.18652C12.044 8.08793 11.9915 7.95303 11.9971 7.81445C11.9991 7.76574 12 7.71627 12 7.66699C12 5.734 10.433 4.16699 8.5 4.16699Z`,fill:`currentColor`})})}export{n as t};
|
|
2
|
+
//# sourceMappingURL=Cloud-CYXeneSe.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Cloud-
|
|
1
|
+
{"version":3,"file":"Cloud-CYXeneSe.js","names":["_jsx","require_jsx_runtime","import_jsx_runtime","Cloud","props"],"sources":["../../../../../node_modules/.pnpm/@tempoxyz+ds@0.2.6_@types+react@19.3.0_react-dom@19.3.0_react@19.3.0__react-native@0.86_f564df10a26f3190a3aaf6288ad1f3d1/node_modules/@tempoxyz/ds/dist/web/icons/Cloud.js"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nexport function Cloud(props) {\n return (_jsx(\"svg\", { width: \"1em\", height: \"1em\", viewBox: \"0 0 16 16\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", \"aria-hidden\": props['aria-label'] || props['aria-labelledby'] ? undefined : true, role: props['aria-label'] || props['aria-labelledby'] ? 'img' : undefined, ...props, children: _jsx(\"path\", { fillRule: \"evenodd\", clipRule: \"evenodd\", d: \"M8.5 3.16699C10.8819 3.16699 12.8301 5.01762 12.9883 7.35938C14.5922 7.55863 15.834 8.92613 15.834 10.584C15.8336 12.3785 14.3785 13.8338 12.584 13.834H5.16699C2.95808 13.834 1.16737 12.0428 1.16699 9.83398C1.16699 7.90307 2.53477 6.29168 4.35449 5.91602C5.03729 4.30133 6.63535 3.16712 8.5 3.16699ZM8.5 4.16699C6.96768 4.16713 5.66397 5.15244 5.19043 6.52539C5.1283 6.70485 4.96965 6.83427 4.78125 6.8584C3.30682 7.04738 2.16699 8.30803 2.16699 9.83398C2.16737 11.4905 3.51037 12.834 5.16699 12.834H12.584C13.8262 12.8338 14.8336 11.8262 14.834 10.584C14.834 9.34145 13.8265 8.33416 12.584 8.33398C12.5603 8.33398 12.5363 8.33423 12.5127 8.33496C12.374 8.33926 12.2393 8.28511 12.1416 8.18652C12.044 8.08793 11.9915 7.95303 11.9971 7.81445C11.9991 7.76574 12 7.71627 12 7.66699C12 5.734 10.433 4.16699 8.5 4.16699Z\", fill: \"currentColor\" }) }));\n}\n//# sourceMappingURL=Cloud.js.map"],"ignoreList":[0],"mappings":"A,sDACA,SAAgBG,EAAM,EAAO,CACzB,OAAA,EAAQH,EAAAA,IAAAA,CAAK,MAAO,CAAE,MAAO,MAAO,OAAQ,MAAO,QAAS,YAAa,KAAM,OAAQ,MAAO,6BAA8B,cAAeI,EAAM,eAAiBA,EAAM,mBAAqB,IAAA,GAAY,GAAM,KAAMA,EAAM,eAAiBA,EAAM,mBAAqB,MAAQ,IAAA,GAAW,GAAGA,EAAO,UAAA,EAAUJ,EAAAA,IAAAA,CAAK,OAAQ,CAAE,SAAU,UAAW,SAAU,UAAW,EAAG,kzBAAmzB,KAAM,cAAe,CAAC,CAAE,CAAC,CAC1rC,C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.z_tds_2f_web-iELgRU0{appearance:none}.z_tds_2f_web-iELgRU1{background-color:var(--z-tds_2f_web-color-grayAlpha-100,light-dark(#0000000d,#ffffff12))}.z_tds_2f_web-iELgRU2{border:none}.z_tds_2f_web-iELgRU3{box-sizing:border-box}.z_tds_2f_web-iELgRU4{caret-color:var(--z-tds_2f_web-color-blue-700,#4471ed)}.z_tds_2f_web-iELgRU5{color:var(--z-tds_2f_web-color-foreground,light-dark(#171717,#fff))}.z_tds_2f_web-iELgRU6{outline-color:#0000}.z_tds_2f_web-iELgRU7{outline-offset:var(--z-tds_2f_web-outlineOffset-0,0px)}.z_tds_2f_web-iELgRU8{outline-style:solid}.z_tds_2f_web-iELgRU9{outline-width:var(--z-tds_2f_web-outlineWidth-2,2px)}.z_tds_2f_web-iELgRUa{padding:var(--z-tds_2f_web-spacing-0,0rem)}.z_tds_2f_web-iELgRUb{text-align:center}.z_tds_2f_web-iELgRUc{transition-duration:var(--z-tds_2f_web-transitionDuration-200,.2s)}.z_tds_2f_web-iELgRUd{transition-property:background-color,color,opacity,outline-color,outline-offset,scale}.z_tds_2f_web-iELgRUe{transition-timing-function:var(--z-tds_2f_web-ease-overshoot,cubic-bezier(.34, 1.36, .64, 1))}.z_tds_2f_web-iELgRUf{&:disabled{opacity:var(--z-tds_2f_web-opacity-disabled,.4)}}.z_tds_2f_web-iELgRUg{&:focus{scale:1.06}}.z_tds_2f_web-iELgRUh{&:focus-visible{outline-color:var(--z-tds_2f_web-color-blue-700,#4471ed)}}.z_tds_2f_web-iELgRUi{&:focus-visible{outline-offset:var(--z-tds_2f_web-outlineOffset-2,2px)}}.z_tds_2f_web-iELgRUj{&:hover:not(:disabled){background-color:var(--z-tds_2f_web-color-grayAlpha-200,light-dark(#00000014,#ffffff1a))}}.z_tds_2f_web-iELgRUk{&[data-invalid],[data-invalid] &{caret-color:var(--z-tds_2f_web-color-red-900,light-dark(#cf2203,#f55c45))}}.z_tds_2f_web-iELgRUl{&[data-invalid],[data-invalid] &{color:var(--z-tds_2f_web-color-red-900,light-dark(#cf2203,#f55c45))}}.z_tds_2f_web-iELgRUm{&[data-invalid],[data-invalid] &{outline-color:var(--z-tds_2f_web-color-red-800,light-dark(#e02401,#d8351f))}}.z_tds_2f_web-iELgRUn{&[data-invalid],[data-invalid] &{outline-offset:-2px}}.z_tds_2f_web-iELgRUo{[data-success] &{animation:z-kid-tds_2f_web_2f_otp_2d_field_2f_pop .32s var(--z-tds_2f_web-ease-overshoot,cubic-bezier(.34, 1.36, .64, 1)) both}}.z_tds_2f_web-iELgRUp{[data-success] &{background-color:light-dark(#13a9631f,#13a96329)}}.z_tds_2f_web-iELgRUq{[data-success] &{caret-color:var(--z-tds_2f_web-color-green-900,light-dark(#037c46,#59e5a4))}}.z_tds_2f_web-iELgRUr{[data-success] &{color:var(--z-tds_2f_web-color-green-900,light-dark(#037c46,#59e5a4))}}.z_tds_2f_web-iELgRUs{[data-success] &{outline-color:var(--z-tds_2f_web-color-green-700,#13a963)}}.z_tds_2f_web-iELgRUt{[data-success] &{outline-offset:-2px}}.z_tds_2f_web-iELgRUu{[data-success] &:hover:not(:disabled){background-color:light-dark(#13a9632e,#13a9633d)}}.z_tds_2f_web-iELgRUv{&[data-invalid]:focus-visible,[data-invalid] &:focus-visible,[data-success] &:focus-visible{outline-offset:2px}}.z_tds_2f_web-iELgRUw{[data-success] &:nth-child(2){animation-delay:40ms}}.z_tds_2f_web-iELgRUx{[data-success] &:nth-child(3){animation-delay:80ms}}.z_tds_2f_web-iELgRUy{[data-success] &:nth-child(4){animation-delay:.12s}}.z_tds_2f_web-iELgRUz{[data-success] &:nth-child(5){animation-delay:.16s}}.z_tds_2f_web-iELgRU10{[data-success] &:nth-child(6){animation-delay:.2s}}.z_tds_2f_web-iELgRU11{[data-success] &:nth-child(7){animation-delay:.24s}}.z_tds_2f_web-iELgRU12{[data-success] &:nth-child(8){animation-delay:.28s}}@media (prefers-reduced-motion:reduce){.z_tds_2f_web-iELgRU13{transition-property:background-color,color,opacity,outline-color}.z_tds_2f_web-iELgRU14{&:focus{scale:none}}.z_tds_2f_web-iELgRU15{[data-success] &{animation:none}}}.z_tds_2f_web-iELgRU16{align-items:center}.z_tds_2f_web-iELgRU17{display:inline-flex}.z_tds_2f_web-iELgRU18{flex-wrap:nowrap}.z_tds_2f_web-iELgRU19{max-width:100%}.z_tds_2f_web-iELgRU1a{min-width:var(--z-tds_2f_web-spacing-0,0rem)}.z_tds_2f_web-iELgRU1b{&[data-invalid]{animation:z-kid-tds_2f_web_2f_otp_2d_field_2f_nudge .36s var(--z-tds_2f_web-ease-snappy,cubic-bezier(.23, 1, .32, 1))}}@media (prefers-reduced-motion:reduce){.z_tds_2f_web-iELgRU1c{&[data-invalid]{animation:none}}}.z_tds_2f_web-iELgRU1d{&:where([data-size=large]){column-gap:var(--z-tds_2f_web-spacing-8,.5rem)}}.z_tds_2f_web-iELgRU1e{&:where([data-size=large]){&>input{aspect-ratio:6/7}}}.z_tds_2f_web-iELgRU1f{&:where([data-size=large]){&>input{border-radius:var(--z-tds_2f_web-radius-16,1rem)}}}.z_tds_2f_web-iELgRU1g{&:where([data-size=large]){&>input{flex:0 3rem}}}.z_tds_2f_web-iELgRU1h{&:where([data-size=large]){&>input{min-width:var(--z-tds_2f_web-spacing-0,0rem)}}}.z_tds_2f_web-iELgRU1i{&:where([data-size=large]){&>input{font-family:var(--z-tds_2f_web-typography-copy-24-fontFamily,Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji")}}}.z_tds_2f_web-iELgRU1j{&:where([data-size=large]){&>input{font-size:var(--z-tds_2f_web-typography-copy-24-fontSize,24px)}}}.z_tds_2f_web-iELgRU1k{&:where([data-size=large]){&>input{font-weight:var(--z-tds_2f_web-typography-copy-24-fontWeight,450)}}}.z_tds_2f_web-iELgRU1l{&:where([data-size=large]){&>input{letter-spacing:var(--z-tds_2f_web-typography-copy-24-letterSpacing,-.47px)}}}.z_tds_2f_web-iELgRU1m{&:where([data-size=large]){&>input{line-height:var(--z-tds_2f_web-typography-copy-24-lineHeight,36px)}}}.z_tds_2f_web-iELgRU1n{&:where([data-size=medium]){column-gap:var(--z-tds_2f_web-spacing-8,.5rem)}}.z_tds_2f_web-iELgRU1o{&:where([data-size=medium]){&>input{aspect-ratio:9/10}}}.z_tds_2f_web-iELgRU1p{&:where([data-size=medium]){&>input{border-radius:var(--z-tds_2f_web-radius-12,.75rem)}}}.z_tds_2f_web-iELgRU1q{&:where([data-size=medium]){&>input{flex:0 2.25rem}}}.z_tds_2f_web-iELgRU1r{&:where([data-size=medium]){&>input{min-width:var(--z-tds_2f_web-spacing-0,0rem)}}}.z_tds_2f_web-iELgRU1s{&:where([data-size=medium]){&>input{font-family:var(--z-tds_2f_web-typography-copy-18-fontFamily,Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji")}}}.z_tds_2f_web-iELgRU1t{&:where([data-size=medium]){&>input{font-size:var(--z-tds_2f_web-typography-copy-18-fontSize,18px)}}}.z_tds_2f_web-iELgRU1u{&:where([data-size=medium]){&>input{font-weight:var(--z-tds_2f_web-typography-copy-18-fontWeight,450)}}}.z_tds_2f_web-iELgRU1v{&:where([data-size=medium]){&>input{letter-spacing:var(--z-tds_2f_web-typography-copy-18-letterSpacing,-.26px)}}}.z_tds_2f_web-iELgRU1w{&:where([data-size=medium]){&>input{line-height:var(--z-tds_2f_web-typography-copy-18-lineHeight,28px)}}}.z_tds_2f_web-iELgRU1x{&:where([data-size=small]){column-gap:var(--z-tds_2f_web-spacing-4,.25rem)}}.z_tds_2f_web-iELgRU1y{&:where([data-size=small]){&>input{aspect-ratio:7/8}}}.z_tds_2f_web-iELgRU1z{&:where([data-size=small]){&>input{border-radius:var(--z-tds_2f_web-radius-8,.5rem)}}}.z_tds_2f_web-iELgRU20{&:where([data-size=small]){&>input{flex:0 1.75rem}}}.z_tds_2f_web-iELgRU21{&:where([data-size=small]){&>input{min-width:var(--z-tds_2f_web-spacing-0,0rem)}}}.z_tds_2f_web-iELgRU22{&:where([data-size=small]){&>input{font-family:var(--z-tds_2f_web-typography-copy-14-fontFamily,Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji")}}}.z_tds_2f_web-iELgRU23{&:where([data-size=small]){&>input{font-size:var(--z-tds_2f_web-typography-copy-14-fontSize,14px)}}}.z_tds_2f_web-iELgRU24{&:where([data-size=small]){&>input{font-weight:var(--z-tds_2f_web-typography-copy-14-fontWeight,450)}}}.z_tds_2f_web-iELgRU25{&:where([data-size=small]){&>input{letter-spacing:var(--z-tds_2f_web-typography-copy-14-letterSpacing,-.09px)}}}.z_tds_2f_web-iELgRU26{&:where([data-size=small]){&>input{line-height:var(--z-tds_2f_web-typography-copy-14-lineHeight,20px)}}}.z_tempo_2d_id-3w2jki0{clip-path:inset(50%)}.z_tempo_2d_id-3w2jki1{height:var(--z-tempo_2d_id-spacing-1,1px)}.z_tempo_2d_id-3w2jki2{overflow:hidden}.z_tempo_2d_id-3w2jki3{position:absolute}.z_tempo_2d_id-3w2jki4{white-space:nowrap}.z_tempo_2d_id-3w2jki5{width:var(--z-tempo_2d_id-spacing-1,1px)}.z_tempo_2d_id-3w2jki6{justify-content:center}.z_tempo_2d_id-3w2jki7{width:100%}.z_tempo_2d_id-3w2jki8{background-color:var(--z-tempo_2d_id-color-gray-500,light-dark(#c9c9c9,#484747))}.z_tempo_2d_id-3w2jki9{flex-shrink:0}.z_tempo_2d_id-3w2jkia{width:var(--z-tempo_2d_id-spacing-12,.75rem)}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{E as e,j as t,s as n}from"./react-dom-pSpaua7D.js";import{$ as r,Ct as i,J as a,Kt as o,O as s,X as c,Y as l,_ as u,dt as ee,hn as d,l as f,lt as p,pt as te,ut as ne,vn as m,wt as h}from"./zyzz.config-CW977vYL.js";import{H as re,X as g,a as _,o as v}from"./Tooltip-DR3nssae.js";import{s as y}from"./ToolbarRootContext-5168W3t4.js";import{a as ie,c as ae,i as oe,l as se,n as ce,o as le,r as ue,s as b,t as x,u as de}from"./useRegisterFieldControl-DMeVvRtG.js";var S=t(e(),1);function fe(e,t,n,r=!0,i,a){let[o,s]=S.useState(),c=v(i?`${i}-label`:void 0),l=!!a?.trim(),u=e??(l?void 0:t)??o;return m(()=>{let i=e||t||l||!r?void 0:C(n.current,c);o!==i&&s(i)}),u}function C(e,t){let n=w(e);if(n)return!n.id&&t&&(n.id=t),n.id||void 0}function w(e){if(!e)return;let t=e.parentElement;if(t&&t.tagName===`LABEL`)return t;let n=e.id;if(n){let t=e.nextElementSibling;if(t&&t.htmlFor===n)return t}let r=e.labels;return r&&r[0]}var pe=S.createContext(void 0);function T(){let e=S.useContext(pe);if(e===void 0)throw Error(u(98));return e}function E(e,t,n){return{...e,value:t,index:n,filled:t!==``}}var me={value:()=>null,length:()=>null,...b},he={value:()=>null,index:()=>null,...b},ge={numeric:{slotPattern:`\\d{1}`,getRootPattern:e=>`\\d{${e}}`,regexp:/[^\d]/g,inputMode:`numeric`},alpha:{slotPattern:`[a-zA-Z]{1}`,getRootPattern:e=>`[a-zA-Z]{${e}}`,regexp:/[^a-zA-Z]/g,inputMode:`text`},alphanumeric:{slotPattern:`[a-zA-Z0-9]{1}`,getRootPattern:e=>`[a-zA-Z0-9]{${e}}`,regexp:/[^a-zA-Z0-9]/g,inputMode:`text`}};function D(e){return e===`none`?null:ge[e]}function _e(e){return(e??``).replace(/\s/g,``)}function O(e,t){return t?e.replace(t.regexp,``):e}function k(e,t,n,r){let i=_e(e),a=D(n),o=O(i,a),s=i.length>o.length;if(r){let e=r(o);s||=o.length>e.length,o=O(e,a),s||=e.length>o.length}let c=t<0?0:t,l=Array.from(o);return[l.slice(0,c).join(``),s||l.length>c]}function A(e,t,n,r){return k(e,t,n,r)[0]}function ve(e,t,n,r,i,a){let o=A(n,r,i,a);return A(`${e.slice(0,t)}${o}${e.slice(t+o.length)}`,r,i,a)}function j(e,t){return t<0||t>=e.length?e:`${e.slice(0,t)}${e.slice(t+1)}`}var M=n(),N=S.forwardRef(function(e,t){let{"aria-describedby":n,"aria-labelledby":u,id:ee,autoComplete:d=`one-time-code`,defaultValue:f=``,value:p,onValueChange:te,onValueComplete:ne,form:g,length:_,autoSubmit:v=!1,mask:ae=!1,inputMode:ce,validationType:b=`numeric`,normalizeValue:C,disabled:w=!1,readOnly:T=!1,required:E=!1,name:he,onValueInvalid:ge,render:_e,className:O,style:ve,...j}=e,{setDirty:N,validityData:F,disabled:I,setFilled:L,invalid:R,name:z,state:B,validation:V,validationMode:ye,setFocused:H,setTouched:U}=le(),{clearErrors:be}=ie(),{getDescriptionProps:xe,labelId:Se}=oe(),W=I||w,G=z??he,[Ce,we]=de({controlled:p,default:f,name:`OTPField`,state:`value`}),Te=S.useRef(null),K=S.useRef([]),Ee=S.useRef(null),q=S.useRef(null),De=S.useMemo(()=>({get current(){return K.current[0]??null}}),[]),J=ue({id:ee}),Oe=fe(u,Se,De,!0,J),ke=u==null?Oe:void 0,Ae=P(n,xe({})[`aria-describedby`]),je=D(b),Me=je?.slotPattern,Ne=je?.getRootPattern(_),Pe=ce??je?.inputMode,Fe=Number.isInteger(_)&&_>0,Y=A(Ce,_,b,C),X=re(Y),Z=Y!==``,[Ie,Le]=S.useState(0),[Re,ze]=S.useState(()=>Math.min(Y.length,_-1)),[Be,Q]=S.useState(!1),Ve=Be?Math.min(Re,Math.max(_-1,0)):Math.min(Y.length,_-1);m(()=>{L(Z)},[Z,L]),x(De,J,Y,void 0,!W,he);let $=r(e=>{let t=Math.min(Math.max(e,0),Math.max(K.current.length-1,0)),n=K.current[t];n?.focus(),n?.select()}),He=r((e,t)=>{Ee.current={index:e,value:t}});function Ue(){let e=V.inputRef.current?.form??K.current[0]?.form??null;if(g){let t=c(Te.current).getElementById(g);t?.tagName===`FORM`&&(e=t)}e&&typeof e.requestSubmit==`function`&&e.requestSubmit()}function We(e,t){ne?.(e,t),v&&Ue()}y(Y,()=>{be(G),N(Y!==F.initialValue),V.change(Y);let e=Ee.current;e!=null&&(Ee.current=null,e.value===Y&&$(e.index));let t=q.current;t!=null&&(q.current=null,t.value===Y&&We(Y,t.eventDetails))});let Ge=r((e,t)=>{let n=A(e,_,b,C),r=(t.reason===`input-change`||t.reason===`input-paste`)&&n.length===_&&(X.current.length!==_||t.reason===`input-paste`)?h(t.reason,t.event):null;return n===X.current?(r!=null&&We(n,r),null):(te?.(n,t),t.isCanceled?null:(we(n),r==null?n.length!==_&&(q.current=null):q.current={value:n,eventDetails:r},n))}),Ke=r((e,t)=>{ge?.(e,t)}),qe=r((e,t)=>{e>X.current.length?$(Math.min(X.current.length,_-1)):(ze(e),t.currentTarget.select())}),Je=r(e=>{o(Te.current,e.relatedTarget)||(U(!0),Q(!1),H(!1),ye===`onBlur`&&V.commit(X.current))}),Ye=S.useCallback(e=>{if(J!=null)return e===0?J:`${J}-${e+1}`},[J]),Xe=S.useMemo(()=>({...B,complete:Y.length===_,disabled:W,filled:Z,focused:Be,length:_,readOnly:T,required:E,value:Y}),[W,B,Z,Be,_,T,E,Y]),Ze=S.useMemo(()=>({autoComplete:d,activeIndex:Ve,disabled:W,form:g,focusInput:$,queueFocusInput:He,getInputId:Ye,handleInputBlur:Je,handleInputFocus:qe,inputMode:Pe,inputAriaLabelledBy:ke,invalid:R,length:_,mask:ae,pattern:Me,reportValueInvalid:Ke,readOnly:T,required:E,normalizeValue:C,setValue:Ge,setFocused:Q,state:Xe,validationType:b,value:Y}),[Ve,d,W,$,g,Ye,Je,qe,Pe,ke,R,_,ae,Me,He,T,Ke,E,C,Ge,Q,Xe,b,Y]),Qe=s(`div`,e,{ref:[t,Te],state:Xe,props:[{role:`group`,"aria-describedby":Ae,"aria-labelledby":Oe},j],stateAttributesMapping:me});return(0,M.jsx)(se,{elementsRef:K,onMapChange:e=>{Le(e.size)},children:(0,M.jsxs)(pe.Provider,{value:Ze,children:[Qe,Fe&&(0,M.jsx)(`input`,{...V.getValidationProps(W,{onFocus(){$(0)},onChange(e){if(e.nativeEvent.defaultPrevented||W||T)return;let t=e.currentTarget.value,[n,r]=k(t,_,b,C);r&&Ke(t,h(`input-change`,e.nativeEvent));let a=Ge(n,i(`input-change`,e.nativeEvent));a!=null&&a!==``&&He(a.length-1,a)}}),ref:V.inputRef,type:`text`,id:J&&G==null?`${J}-hidden-input`:void 0,form:g,name:G,value:Y,autoComplete:d,inputMode:Pe,minLength:_,maxLength:_,pattern:Ne,disabled:W,readOnly:T,required:E,"aria-hidden":!0,tabIndex:-1,style:G?l:a})]})})});function P(...e){let t=e.flatMap(e=>e?.split(/\s+/).filter(Boolean)??[]);return t.length>0?Array.from(new Set(t)).join(` `):void 0}var F=S.forwardRef(function(e,t){let{"aria-label":n,"aria-labelledby":r,render:a,className:o,style:c,...l}=e,{activeIndex:u,autoComplete:f,disabled:m,form:re,focusInput:v,queueFocusInput:y,getInputId:ie,handleInputBlur:oe,handleInputFocus:se,inputMode:le,inputAriaLabelledBy:ue,invalid:b,length:x,mask:de,pattern:fe,reportValueInvalid:C,readOnly:w,required:pe,normalizeValue:me,setFocused:ge,setValue:D,state:_e,validationType:O,value:A}=T(),{ref:M,index:N}=ae({guess:!0}),P=S.useRef(null),F=ce(m,P,ge),I=_(),[L,R]=S.useState(null),z=A[N]??``,B=E(_e,z,N),V=n,ye=r??ue,H=N===0?void 0:V;function U(e,t,n){let[r,a]=k(e,x,O,me);if(a&&C(e,h(t,n.nativeEvent)),r===``){t===`input-change`&&(e===``?D(j(A,N),i(ne,n.nativeEvent)):z!==``&&(n.currentTarget.value=z,n.currentTarget.select()));return}let o=D(ve(A,N,r,x,O,me),i(t,n.nativeEvent));o!=null&&y(Math.min(N+r.length,x-1),o)}let be={id:ie(N),value:L??z,type:de?`password`:`text`,inputMode:le,autoComplete:N===0?f:`off`,autoCorrect:`off`,spellCheck:`false`,enterKeyHint:N===x-1?`done`:`next`,maxLength:N===0?x:void 0,tabIndex:u===N?0:-1,disabled:m,form:re,pattern:fe,readOnly:w,required:pe,"aria-labelledby":H==null?ye:void 0,"aria-invalid":!m&&b?!0:void 0,"aria-label":H,onMouseDown(e){e.defaultPrevented||m||(e.preventDefault(),v(N))},onFocus(e){e.defaultPrevented||m||(F(!0),se(N,e))},onBlur(e){e.defaultPrevented||oe(e)},onCompositionStart(){d||R(z)},onCompositionEnd(e){L!=null&&(R(null),!m&&!w&&U(e.currentTarget.value,p,e))},onChange(e){e.defaultPrevented||m||w||(L==null?U(e.currentTarget.value,p,e):R(e.currentTarget.value))},onKeyDown(e){if(e.defaultPrevented||m||L!=null)return;let t=Math.max(x-1,0),n=Math.min(A.length,t),r=(e.ctrlKey||e.metaKey)&&!e.altKey,a=I===`rtl`,o=a?`ArrowRight`:`ArrowLeft`,s=a?`ArrowLeft`:`ArrowRight`;if(e.key===o){g(e),v(r?0:Math.max(0,N-1));return}if(e.key===s){g(e),v(r?n:Math.min(t,N+1));return}if(e.key===`Home`||e.key===`ArrowUp`){g(e),v(0);return}if(e.key===`End`||e.key===`ArrowDown`){g(e),v(n);return}if(w)return;function c(t,n){let r=D(t,i(te,e.nativeEvent));r!=null&&y(n,r)}if(e.key===`Backspace`&&r){g(e),c(``,0);return}if(e.key===`Delete`){g(e),c(j(A,N),N);return}let l=e.currentTarget.value,u=e.currentTarget.selectionStart===0&&e.currentTarget.selectionEnd===l.length;if(e.key.length===1&&u&&z===e.key)g(e),N<x-1&&v(N+1);else if(e.key===`Backspace`){g(e);let t=Math.max(0,N-1);c(j(A,z===``?t:N),t)}},onPaste(e){if(e.defaultPrevented||m||w)return;let t=``;try{t=e.clipboardData?.getData(`text/plain`)??``}catch{return}e.preventDefault(),U(t,ee,e)}};return s(`input`,e,{ref:[t,M,P],state:B,props:[be,l],stateAttributesMapping:he})}),I=(0,S.createContext)(!1),L;(function(e){function t(e){let{children:t,className:r,invalid:i=!1,length:a,size:o,success:s=!1,vars:c,...l}=e;return(0,M.jsx)(I.Provider,{value:i,children:(0,M.jsx)(N,{...l,...R.root({className:r,size:o,style:e.style,vars:c}),"data-invalid":i||void 0,"data-success":s||void 0,length:a,children:t??Array.from({length:a},(e,t)=>(0,M.jsx)(n,{},t))})})}e.Root=t;function n(e){let{className:t,vars:n,...r}=e,i=(0,S.useContext)(I);return(0,M.jsx)(F,{"aria-invalid":i||void 0,...r,...R.input({className:t,style:e.style,vars:n}),"data-invalid":i||void 0})}e.Input=n})(L||={});var R;(function(e){e.input=f({className:`z_tds_2f_web-iELgRU0 z_tds_2f_web-iELgRU1 z_tds_2f_web-iELgRU2 z_tds_2f_web-iELgRU3 z_tds_2f_web-iELgRU4 z_tds_2f_web-iELgRU5 z_tds_2f_web-iELgRU6 z_tds_2f_web-iELgRU7 z_tds_2f_web-iELgRU8 z_tds_2f_web-iELgRU9 z_tds_2f_web-iELgRUa z_tds_2f_web-iELgRUb z_tds_2f_web-iELgRUc z_tds_2f_web-iELgRUd z_tds_2f_web-iELgRUe z_tds_2f_web-iELgRUf z_tds_2f_web-iELgRUg z_tds_2f_web-iELgRUh z_tds_2f_web-iELgRUi z_tds_2f_web-iELgRUj z_tds_2f_web-iELgRUk z_tds_2f_web-iELgRUl z_tds_2f_web-iELgRUm z_tds_2f_web-iELgRUn z_tds_2f_web-iELgRUo z_tds_2f_web-iELgRUp z_tds_2f_web-iELgRUq z_tds_2f_web-iELgRUr z_tds_2f_web-iELgRUs z_tds_2f_web-iELgRUt z_tds_2f_web-iELgRUu z_tds_2f_web-iELgRUv z_tds_2f_web-iELgRUw z_tds_2f_web-iELgRUx z_tds_2f_web-iELgRUy z_tds_2f_web-iELgRUz z_tds_2f_web-iELgRU10 z_tds_2f_web-iELgRU11 z_tds_2f_web-iELgRU12 z_tds_2f_web-iELgRU13 z_tds_2f_web-iELgRU14 z_tds_2f_web-iELgRU15`}),e.root=((e={})=>{let t=e.className,n=e.style,r=e.vars,i=r?{...r,...n}:n,a=t?`z_tds_2f_web-iELgRU16 z_tds_2f_web-iELgRU17 z_tds_2f_web-iELgRU18 z_tds_2f_web-iELgRU19 z_tds_2f_web-iELgRU1a z_tds_2f_web-iELgRU1b z_tds_2f_web-iELgRU1c z_tds_2f_web-iELgRU1d z_tds_2f_web-iELgRU1e z_tds_2f_web-iELgRU1f z_tds_2f_web-iELgRU1g z_tds_2f_web-iELgRU1h z_tds_2f_web-iELgRU1i z_tds_2f_web-iELgRU1j z_tds_2f_web-iELgRU1k z_tds_2f_web-iELgRU1l z_tds_2f_web-iELgRU1m z_tds_2f_web-iELgRU1n z_tds_2f_web-iELgRU1o z_tds_2f_web-iELgRU1p z_tds_2f_web-iELgRU1q z_tds_2f_web-iELgRU1r z_tds_2f_web-iELgRU1s z_tds_2f_web-iELgRU1t z_tds_2f_web-iELgRU1u z_tds_2f_web-iELgRU1v z_tds_2f_web-iELgRU1w z_tds_2f_web-iELgRU1x z_tds_2f_web-iELgRU1y z_tds_2f_web-iELgRU1z z_tds_2f_web-iELgRU20 z_tds_2f_web-iELgRU21 z_tds_2f_web-iELgRU22 z_tds_2f_web-iELgRU23 z_tds_2f_web-iELgRU24 z_tds_2f_web-iELgRU25 z_tds_2f_web-iELgRU26 `+t:`z_tds_2f_web-iELgRU16 z_tds_2f_web-iELgRU17 z_tds_2f_web-iELgRU18 z_tds_2f_web-iELgRU19 z_tds_2f_web-iELgRU1a z_tds_2f_web-iELgRU1b z_tds_2f_web-iELgRU1c z_tds_2f_web-iELgRU1d z_tds_2f_web-iELgRU1e z_tds_2f_web-iELgRU1f z_tds_2f_web-iELgRU1g z_tds_2f_web-iELgRU1h z_tds_2f_web-iELgRU1i z_tds_2f_web-iELgRU1j z_tds_2f_web-iELgRU1k z_tds_2f_web-iELgRU1l z_tds_2f_web-iELgRU1m z_tds_2f_web-iELgRU1n z_tds_2f_web-iELgRU1o z_tds_2f_web-iELgRU1p z_tds_2f_web-iELgRU1q z_tds_2f_web-iELgRU1r z_tds_2f_web-iELgRU1s z_tds_2f_web-iELgRU1t z_tds_2f_web-iELgRU1u z_tds_2f_web-iELgRU1v z_tds_2f_web-iELgRU1w z_tds_2f_web-iELgRU1x z_tds_2f_web-iELgRU1y z_tds_2f_web-iELgRU1z z_tds_2f_web-iELgRU20 z_tds_2f_web-iELgRU21 z_tds_2f_web-iELgRU22 z_tds_2f_web-iELgRU23 z_tds_2f_web-iELgRU24 z_tds_2f_web-iELgRU25 z_tds_2f_web-iELgRU26`,o=i?{className:a,style:i}:{className:a},s;return s=Object.hasOwn(e,`size`)?e.size:void 0,s===void 0&&(s=`medium`),s!=null&&(o[`data-size`]=String(s)),o})})(R||={});function z(e){let{length:t,separator:n}=e,r=e.characters===`digits`,[i,a]=(0,S.useState)(!1),[o,s]=(0,S.useState)(0),c=(0,S.useRef)(null),l=(0,S.useId)(),u=(0,S.useRef)(e.invalid);return(0,S.useEffect)(()=>{let t=e.invalid&&!u.current;u.current=e.invalid,t&&(a(!1),s(e=>e+1))},[e.invalid]),(0,S.useEffect)(()=>{o&&c.current?.focus()},[o]),(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`label`,{className:B.label?`z_tempo_2d_id-3w2jki0 z_tempo_2d_id-3w2jki1 z_tempo_2d_id-3w2jki2 z_tempo_2d_id-3w2jki3 z_tempo_2d_id-3w2jki4 z_tempo_2d_id-3w2jki5`:B.label().className,htmlFor:l,children:e[`aria-label`]}),(0,M.jsx)(L.Root,{className:B.root?`z_tempo_2d_id-3w2jki6 z_tempo_2d_id-3w2jki7`:B.root().className,autoComplete:e.autoComplete,autoSubmit:e.autoSubmit,defaultValue:o?void 0:e.defaultValue,id:l,invalid:!!e.invalid&&!i,length:t,name:e.name,inputMode:r?`numeric`:`text`,normalizeValue:e=>e.replace(r?/\D/g:/[^0-9a-z]/gi,``).toUpperCase(),onValueChange:()=>a(!0),readOnly:e.readOnly,required:e.required,size:e.size,success:e.success,validationType:`none`,children:Array.from({length:t},(r,i)=>(0,M.jsxs)(S.Fragment,{children:[i===n?(0,M.jsx)(`span`,{className:B.separator?`z_tempo_2d_id-3w2jki8 z_tempo_2d_id-3w2jki9 z_tempo_2d_id-3w2jki1 z_tempo_2d_id-3w2jkia`:B.separator().className,"aria-hidden":!0}):null,i===0?(0,M.jsx)(L.Input,{"aria-describedby":e[`aria-describedby`],autoFocus:e.autoFocus,ref:c}):(0,M.jsx)(L.Input,{"aria-label":`Character ${i+1} of ${t}`})]},i))},o)]})}var B;(function(e){e.label=1,e.root=1,e.separator=1})(B||={});export{z as t};
|
|
2
|
+
//# sourceMappingURL=CodeInput-DdkMKOyq.js.map
|