@sheetxl/studio-vanilla 0.8.0-beta.10 → 0.8.0-beta.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (477) hide show
  1. package/browser/esm/1oQRbol_4RzeM8pE.mjs +12 -0
  2. package/{cdn/assets/CwqRA5h1u92Cyit-.js → browser/esm/30kI2LkOs3zgefE5.mjs} +2 -2
  3. package/browser/esm/{BCWTI3jdTPG37r8W.mjs → 4JJNcz4YU6jhtSoO.mjs} +3 -3
  4. package/browser/esm/4o4C9bFlmQd0jPCw.mjs +310 -0
  5. package/browser/esm/6bLEYJYXAK-pOt4_.mjs +294 -0
  6. package/{cdn/assets/J3hutJxqQiHENpIe.js → browser/esm/8j7_68o_ftwk3Slv.mjs} +120 -118
  7. package/browser/esm/{BN2d5U1nw7pRtOrn.mjs → 9MTXF6MTjOgoHb-7.mjs} +1 -1
  8. package/browser/esm/9nCLSPKkGRmkIcuH.mjs +1694 -0
  9. package/browser/esm/{Dwxz0s23ra1tRtsH.mjs → 9wo9OtQmIPqM31Sy.mjs} +2 -2
  10. package/browser/esm/B-O2rWzzFV43__aU.mjs +9523 -0
  11. package/browser/esm/{B7iV5qzlmJlM2nQv.mjs → B-iVqSEgzuf6m47x.mjs} +2 -2
  12. package/browser/esm/{x6GcENwqoUVbd60j.mjs → B0ko2JVTNhsWWWTe.mjs} +1 -1
  13. package/{cdn/assets/pc49xtHdprXZLW2X.js → browser/esm/B1SstI4rcUe8OJ-b.mjs} +1 -1
  14. package/browser/esm/{CqoHxlGpZ3yzPj5V.mjs → B31Krc6W_iL-2TQt.mjs} +12 -12
  15. package/browser/esm/{B00ixdmb8-O5ijEp.mjs → B3ZFz_Z4E28AFJS3.mjs} +1 -1
  16. package/browser/esm/{PtGiIWFBYP-ujLmf.mjs → B5XpACGLcy3zYqlT.mjs} +1 -1
  17. package/browser/esm/{BsUrrzAgfyAdcCJW.mjs → B5cwFaYPxXTSh6vo.mjs} +2 -2
  18. package/browser/esm/{BAdRecWK1maKGOZd.mjs → B8VbElyA5zbjFNs1.mjs} +1 -1
  19. package/browser/esm/B90jZwl6n7fpLoRK.mjs +89 -0
  20. package/browser/esm/{ZbGPiRN9j0629JJQ.mjs → BBS47_AI2p2r0QxX.mjs} +2 -2
  21. package/browser/esm/BBrVIUFf4NJSXblH.mjs +3716 -0
  22. package/browser/esm/{DRm1R4uVOkaMfXNI.mjs → BDWKrgmyLVPkX3h0.mjs} +1 -1
  23. package/browser/esm/{qYca4mdySLkACfo1.mjs → BF9tQV6iUGvJK6QH.mjs} +1 -1
  24. package/browser/esm/{CRAzVh3CaAa16avf.mjs → BFL9_-ur7Lhhkg2F.mjs} +36 -35
  25. package/browser/esm/{ErIXJFPDFXwGEL8V.mjs → BFvZ5JI-hBk3FNJW.mjs} +2 -2
  26. package/browser/esm/{CSEMxasVyGCekxKf.mjs → BGDndra6U64QPYm4.mjs} +1 -1
  27. package/browser/esm/BHAYf-zNKfoCTsTT.mjs +86 -0
  28. package/browser/esm/{ClJvUf8aR8vNC_3Z.mjs → BHKm0iIUckEaUMLV.mjs} +3 -3
  29. package/browser/esm/{_MPToH4oMe4rhTdZ.mjs → BIo-ELlYF8kzkLvH.mjs} +3 -3
  30. package/browser/esm/{CCd192S7yVpc6iOe.mjs → BJKUgLha2XmF08mO.mjs} +17 -16
  31. package/browser/esm/{DvWCBuY0jAL-RmJV.mjs → BKS9kx_PEanwLUuU.mjs} +793 -787
  32. package/browser/esm/BLoUmwvJ5t1eBdZ8.mjs +104 -0
  33. package/browser/esm/{DSviq1TNoiIAGW7W.mjs → BN630GsmoKmNU7ur.mjs} +1 -1
  34. package/browser/esm/{CVxlfyE-gnJM8hOz.mjs → BNWxTMoiH1NkkmAh.mjs} +8 -8
  35. package/{cdn/assets/DQIRFXG4MveFkK3I.js → browser/esm/BNavcunnTVMpcxDs.mjs} +1 -1
  36. package/browser/esm/BRXV-NrDDC3ZrpMt.mjs +55466 -0
  37. package/browser/esm/{FO1Jezau486fH4kN.mjs → BRxDfB_xWCqmT-hR.mjs} +1 -1
  38. package/browser/esm/{DnyZmrwPxShyeUjm.mjs → BT-Bqh_7C0pZ5FlX.mjs} +118 -269
  39. package/{cdn/assets/DfESVLC8CAi8m8A7.js → browser/esm/BUWDOAY73JPQoNzs.mjs} +1 -1
  40. package/browser/esm/{CHMqT9DzYKTxPfP6.mjs → BV2wamfivt6aMUhk.mjs} +1 -1
  41. package/browser/esm/BWQqT6R8MZkUWAe9.mjs +7 -0
  42. package/browser/esm/BYBEZ_hZVBDv3eEU.mjs +1389 -0
  43. package/browser/esm/B_9GaCdaUs6AlWf3.mjs +1417 -0
  44. package/browser/esm/BaNdc_0Lf4FVPUW5.mjs +9715 -0
  45. package/{cdn/assets/BuYS_ZjSlcvWZ1JC.js → browser/esm/BaWDPv9pjRGmAQva.mjs} +2667 -2091
  46. package/{cdn/assets/i0P63Wd0RRlgJotb.js → browser/esm/BaaB1nz3Z8IIy5XL.mjs} +1 -1
  47. package/browser/esm/BbUF-CQBg3zQ_h9S.mjs +323 -0
  48. package/browser/esm/{cwuYkcKwsKkPe3gG.mjs → BdN5nsKULzTfOgkY.mjs} +2 -2
  49. package/{cdn/assets/DXo8mR6t5HGsmTcu.js → browser/esm/Bdt5IdX6u9CLkJdC.mjs} +1 -1
  50. package/browser/esm/BfyWJYjj89_N0zfg.mjs +213 -0
  51. package/browser/esm/{sDVzjXC1mS5rucF5.mjs → BgE-AWbezo3ZcNQU.mjs} +576 -696
  52. package/browser/esm/Bi8dy2A1euGZeE4C.mjs +780 -0
  53. package/browser/esm/{f1OJemsiZnbwnds-.mjs → BiJSAELjvcGbbrB5.mjs} +15 -15
  54. package/browser/esm/{sxxbiJiCMOW2Eivd.mjs → BiLb98_m7AwaRkX6.mjs} +7477 -5995
  55. package/{cdn/assets/FjNOhkR7-JAIaRP6.js → browser/esm/BiSGu7XE2wP-COS-.mjs} +1 -1
  56. package/browser/esm/Bj5v_mMZnT65-EYm.mjs +521 -0
  57. package/browser/esm/Bkf3SJynCJKiDDk9.mjs +1552 -0
  58. package/browser/esm/{iC69oOND5T8khIWf.mjs → BlC9vz791AaVSbC5.mjs} +6 -6
  59. package/browser/esm/{vGKTE7yjY8y-XnsW.mjs → BldyCakCtPYtGXcm.mjs} +2 -2
  60. package/{cdn/assets/DVpi1vC8ixXvUQG_.js → browser/esm/BovxopS-62ImjzWq.mjs} +1 -1
  61. package/browser/esm/BpJup_wq5-qM4TIN.mjs +390 -0
  62. package/browser/esm/Bqf1HNOGA-pPTdl2.mjs +322 -0
  63. package/browser/esm/{BlPn_DXaEXOPxMxC.mjs → Br1Vf_O1YcX7sOJE.mjs} +1 -1
  64. package/{cdn/assets/W1d6GQyySAHrtjEu.js → browser/esm/BsVFvNqmAQw6ai0x.mjs} +1626 -1018
  65. package/browser/esm/Bt4FhwPuIE1PRsBM.mjs +193 -0
  66. package/{cdn/assets/C3r_9RqlWrEmlXZ1.js → browser/esm/Bx9qg5bL1Fzbvk1z.mjs} +1 -1
  67. package/browser/esm/BzZWDsHSEnXClrlJ.mjs +7 -0
  68. package/browser/esm/{CaS8_J5HfBRk5_Nw.mjs → C02QWvfYw-El2r9j.mjs} +32 -32
  69. package/{cdn/assets/BSCja5yvevmKZPBB.js → browser/esm/C4Vjb-3d4J7GxBGw.mjs} +1 -1
  70. package/{cdn/assets/DjtXfgbmXjUAoG0y.js → browser/esm/C635yBozh_t0DPLr.mjs} +1 -1
  71. package/browser/esm/{djM9mJznx8GzVq51.mjs → C7GZIkD5Jz7A5r_a.mjs} +14 -14
  72. package/{cdn/assets/_t0Mx-mUFVtmVNkU.js → browser/esm/C7Yr6jxJx_xXDUR2.mjs} +1 -1
  73. package/browser/esm/C8XNRmzAp2MWyeej.mjs +42 -0
  74. package/{cdn/assets/CQOyeq_-pg3CM-uA.js → browser/esm/C9oBHe1kBAevREtg.mjs} +1 -1
  75. package/browser/esm/{_zRV52yhE4gPf3XI.mjs → C9oIU866QVMlgGyQ.mjs} +55 -55
  76. package/browser/esm/{SNze-adFJwKuGSQW.mjs → CAeD2o0Ls4sIyokt.mjs} +1 -1
  77. package/browser/esm/{C9NyIoUahFiyRCxP.mjs → CBRVZmrwcMfEHc5P.mjs} +1 -1
  78. package/browser/esm/{DTn9oYyiIYgyijAk.mjs → CDWuursC7HDw-bO8.mjs} +25 -24
  79. package/browser/esm/{DoS1sE431fEhdOQb.mjs → CF6TsrZkUX12RY9E.mjs} +4 -4
  80. package/browser/esm/{C4VT6lNbpaDXCpBb.mjs → CFPaTEuxUxH48Dnc.mjs} +2 -2
  81. package/browser/esm/{Dy44qJVkwNseMG-3.mjs → CHGtyPsxQrhRB5bz.mjs} +1 -1
  82. package/browser/esm/{pKc_RPdZPLAgvNDh.mjs → CI2oW6QUhftq4Zxe.mjs} +2 -2
  83. package/browser/esm/CIoNg-5VkB5Nf7xb.mjs +256 -0
  84. package/browser/esm/{CnWNviK4qlX2GVl6.mjs → CJJ6JyOoWWElIIFf.mjs} +12 -13
  85. package/{cdn/assets/gpQ4FdJMbIScKnS_.js → browser/esm/CJdgS3TQ_2BcjCW6.mjs} +8 -8
  86. package/browser/esm/{DNaPo7BQu6hr1fWq.mjs → CK5tMP35Iv98na5Z.mjs} +1 -1
  87. package/browser/esm/CLesyjpCdfNlo_s3.mjs +210 -0
  88. package/browser/esm/CMCV8PICIpUjWafw.mjs +12816 -0
  89. package/browser/esm/{D2coM-dNrlLpnUu5.mjs → CN1_Dq2VdyHJ8cMR.mjs} +6 -6
  90. package/browser/esm/{DLhK_oSGg71ry6-m.mjs → CNTmB0u0Mmzslqit.mjs} +6 -6
  91. package/browser/esm/{D-55MlIn7Wo_hdjI.mjs → CNsG-HP7MrYv4ANy.mjs} +328 -110
  92. package/browser/esm/{DAE3Kv0Vs0VuBecT.mjs → COtPL6l443kTvLpc.mjs} +1 -1
  93. package/browser/esm/{D7DWH3-5fBNx8jtc.mjs → CP_GYwZVbwA9vzxA.mjs} +2 -2
  94. package/{cdn/assets/CFvKDDbrL3wpXnQH.js → browser/esm/CRc3MloTINO1cx9Y.mjs} +1 -1
  95. package/browser/esm/{C5EKgE9Owsc_juw-.mjs → CSUhHtPXRx-MiOJ0.mjs} +1 -1
  96. package/browser/esm/CVB9R-zt99a3DSPN.mjs +3091 -0
  97. package/{cdn/assets/BoFx07POTorOb5g-.js → browser/esm/CVGsocXM6EdK3av8.mjs} +2538 -1728
  98. package/browser/esm/CVg6x0dnCUjr2iMY.mjs +7723 -0
  99. package/browser/esm/{DxwprgjYhcmfDbXH.mjs → CWLvkJU2bOMidhWV.mjs} +17 -17
  100. package/browser/esm/{BBjgqNlHm-ssbSAG.mjs → C_lz-BVnapcDsXH0.mjs} +1 -1
  101. package/browser/esm/C_x94fC0O4_OpNRB.mjs +101 -0
  102. package/browser/esm/CczQS-TJwiXbRhYC.mjs +200 -0
  103. package/{cdn/assets/RfHd1JATBlcsfLPv.js → browser/esm/CdOK8MepIC51cdz1.mjs} +1 -1
  104. package/browser/esm/{rkTVQiYG3wd8oPom.mjs → Cdg4TpupUeYIiz2B.mjs} +3 -3
  105. package/browser/esm/Cf-LLddGP5wUU4hH.mjs +8 -0
  106. package/browser/esm/Cf5dlM0Pkqz1y7Nw.mjs +387 -0
  107. package/{cdn/assets/BI6afPOpgNYkzIWv.js → browser/esm/CfGCIpWOVrKyroeI.mjs} +1775 -1731
  108. package/browser/esm/Cgff_mU98dEc-kSv.mjs +1723 -0
  109. package/browser/esm/{CvWGtHslTdesJik-.mjs → ChTKR1wEz8hgPWRE.mjs} +10 -9
  110. package/{cdn/assets/BAH_cWcQEIBKWnl6.js → browser/esm/Cl1bVTUk0rQUQT9p.mjs} +1 -1
  111. package/browser/esm/{CDsuiN--qdALFyql.mjs → ClKS_5IuXertzGEp.mjs} +2 -2
  112. package/browser/esm/{CWJzHmEgahdOfNjH.mjs → Cnx0vOv2ePi94hMN.mjs} +1 -1
  113. package/browser/esm/{BVJUL2HhoedhbwVy.mjs → CpUZbIdONEC6mghF.mjs} +11 -10
  114. package/browser/esm/{BxhKgo_rPQ2d12HT.mjs → CpzzMIebww7p4m_V.mjs} +4 -4
  115. package/browser/esm/CtX8ODZQGoUqUie3.mjs +162 -0
  116. package/browser/esm/{BeMLfv6hWo15VCIL.mjs → CwIcsETflE-gpYF6.mjs} +23 -23
  117. package/{cdn/assets/CVcCUfSRsiZ1-6hs.js → browser/esm/CzpnOqHBXxESl5Ts.mjs} +1 -1
  118. package/browser/esm/{mZ92wNrHVpYdli1U.mjs → D3HgYapmfdL-RhEV.mjs} +5 -5
  119. package/browser/esm/{ByUcqyCNfqi5Mm7w.mjs → D46u8d3O49bDLflJ.mjs} +1 -1
  120. package/browser/esm/{px-aQ8dMjiWag_pV.mjs → D5KlrP1rlBZO7HyP.mjs} +1 -1
  121. package/{cdn/assets/DONxZZT2Iwu7psS5.js → browser/esm/D5wm_fLXLK3Ve1ir.mjs} +6 -5
  122. package/browser/esm/{DLqc11Pf8vaE4Q5B.mjs → D90zUAjsvdYt4zAc.mjs} +1 -1
  123. package/browser/esm/DAEoN5lF7Xw1VMoH.mjs +520 -0
  124. package/browser/esm/DCA1pexOA5sUcYVT.mjs +181 -0
  125. package/browser/esm/{D0r2MPlWLnStWJNW.mjs → DD6l6wL5lCLFdLOw.mjs} +144 -134
  126. package/browser/esm/DFFX8FaN8Xyq2YvS.mjs +131 -0
  127. package/browser/esm/DFzpsLSn8pIrTlLO.mjs +95 -0
  128. package/browser/esm/DJMHQzwcPgTpS0f5.mjs +1240 -0
  129. package/browser/esm/{VwGokBaawZfZiV2X.mjs → DJhxuNvyE7FzNXTv.mjs} +1 -1
  130. package/{cdn/assets/H-JnJQMcZQbpvjdb.js → browser/esm/DK3BYp4NTX8n36q5.mjs} +1 -1
  131. package/browser/esm/DKXz55ACPsNADpJo.mjs +9 -0
  132. package/browser/esm/{CZOJogyZqMfUxcXj.mjs → DKxCeh3yib-owCxs.mjs} +1 -1
  133. package/browser/esm/{ycmpAs4kQfeh78Pa.mjs → DL57MpyMuNosTcrB.mjs} +1 -1
  134. package/browser/esm/DN14h84frphTmQnr.mjs +367 -0
  135. package/browser/esm/{Cpza4AeltEVHASij.mjs → DPE3kSrS3RMPgCwe.mjs} +3 -3
  136. package/browser/esm/DQsUwoGymfvPjfBo.mjs +86 -0
  137. package/browser/esm/{DJqj66SnUcx0QmSN.mjs → DUZyG-8cyY9A0Zg-.mjs} +1 -1
  138. package/browser/esm/{DNCqTF9EbT-U1TdV.mjs → DWlIofDXtKiTFRl3.mjs} +3 -3
  139. package/browser/esm/{CfltjY8hY-RPwwpd.mjs → DWs_Iccs4ADzMYw7.mjs} +7 -7
  140. package/browser/esm/DZU9jkqaNCYuvDzi.mjs +8196 -0
  141. package/browser/esm/DZxgKlZVMKS5Ta04.mjs +199 -0
  142. package/browser/esm/D_RNoIZHUhzXpaw6.mjs +232 -0
  143. package/{cdn/assets/anQDUZhHMDPi1eha.js → browser/esm/DaJhQHZ8na6yCHir.mjs} +149 -149
  144. package/{cdn/assets/BWo1N4YbK_zGU0nu.js → browser/esm/DagxhIjpKea9MwI8.mjs} +1 -1
  145. package/browser/esm/{DjdkGy-EI1kSo226.mjs → DbewMnLKZoGLGFNh.mjs} +1 -1
  146. package/browser/esm/DcuXU4w8jFVnuLgh.mjs +60 -0
  147. package/browser/esm/Df4WRA6refKZ9x9I.mjs +141 -0
  148. package/browser/esm/Dg8kGViumXiDAGwT.mjs +569 -0
  149. package/{cdn/assets/DWgp4t9N9u0eWthH.js → browser/esm/DhLN5r1sTHL_BWeH.mjs} +1 -1
  150. package/browser/esm/{ZxsFYopF0_WWqw4Q.mjs → DhU_l9pcEddg9s24.mjs} +1 -1
  151. package/browser/esm/{CTI-mCJbJzitJZwj.mjs → DiabpzKzIUUyat-1.mjs} +1 -1
  152. package/browser/esm/Dic2cHiohtgkK2jT.mjs +89 -0
  153. package/browser/esm/DizmXzo0RwB1aISW.mjs +86 -0
  154. package/browser/esm/{DrI_S0A9TQvriTua.mjs → Dl29uXIaOLiBIDEI.mjs} +1 -1
  155. package/browser/esm/{BtGmrIqU9W1L8zfZ.mjs → Dl40S1lFKvsN0DvK.mjs} +1 -1
  156. package/{cdn/assets/DxcRLd7wmBGDgJsA.js → browser/esm/DlWoVcsWZHiN-EYf.mjs} +1 -1
  157. package/{cdn/assets/DQjxp9lDP9DzP8ah.js → browser/esm/DmkrxPsGTgcfP5Rz.mjs} +56 -56
  158. package/browser/esm/{rY-dC3WB558TIbum.mjs → Dn6OF7owJvTQrrts.mjs} +4 -4
  159. package/browser/esm/DpRsbOf9X17if0J7.mjs +1645 -0
  160. package/browser/esm/Drw9hD1JE7JCMign.mjs +422 -0
  161. package/browser/esm/{BThOwSja2ra4xejQ.mjs → DsHzYBPSadCXZi-n.mjs} +1466 -1388
  162. package/browser/esm/{LAbUYeLiPG8z9cmA.mjs → DtegXHCQSKTTGQeu.mjs} +15 -15
  163. package/browser/esm/{C-0viTjg1dT2F-sk.mjs → Dut7EHGO0G5wuZvA.mjs} +2 -2
  164. package/browser/esm/{kVBPUUnVyZfb8pf3.mjs → DwhGTfGva3F7vuwp.mjs} +5 -5
  165. package/{cdn/assets/DYvBgX17ZerZSHEJ.js → browser/esm/DxwdHqgA78DuBgP5.mjs} +30 -31
  166. package/browser/esm/{aUREGNA8H7p4BpMK.mjs → DychvmektExlalXS.mjs} +3 -3
  167. package/{cdn/assets/CBdNC7BOfc5TewHU.js → browser/esm/DyeYHUP9q10K48wL.mjs} +1 -1
  168. package/{cdn/assets/BsTFy_iJXJYmaO3Z.js → browser/esm/DyvMwqOmBhQFYxOo.mjs} +5 -5
  169. package/browser/esm/{Cy00y9b9j17Txyv1.mjs → DzF6mYUZfggTAjhM.mjs} +1 -1
  170. package/browser/esm/Dzj3KK6YPVXSha8q.mjs +5117 -0
  171. package/browser/esm/Dzyz_pks7xPGZbyH.mjs +23434 -0
  172. package/browser/esm/{Dv8aQFTTaQBJKDDk.mjs → GA5X6vLsOcXufGyF.mjs} +1 -1
  173. package/browser/esm/Hx70AIfSA_0RVX86.mjs +415 -0
  174. package/browser/esm/{DaMKWQQTgIF08cT7.mjs → JIICfCUe6qam-nnP.mjs} +7 -7
  175. package/browser/esm/{UTZcodQydbuMfCOS.mjs → Jn0_AtebABdIzyQ8.mjs} +1 -1
  176. package/browser/esm/{CtZPEkaldpJpoGtW.mjs → KG-A3VX4kcf2uLJI.mjs} +67 -67
  177. package/browser/esm/{CMxbiQ5J79M3n1tk.mjs → PD_ckP5IyZurtALu.mjs} +723 -373
  178. package/{cdn/assets/lqknEt3DTma5Juxs.js → browser/esm/PFd1HLX9x3NbZS0Q.mjs} +1 -1
  179. package/browser/esm/{D2aQPiGg0ZoMYzuf.mjs → Q4gowihHveaVg346.mjs} +5 -5
  180. package/browser/esm/TEqlVdpb4Wjm-WJR.mjs +281 -0
  181. package/browser/esm/{DGcvio2uhlrsE3ZY.mjs → Ub7lo1Zsgc4OkWHw.mjs} +10 -10
  182. package/browser/esm/{CxCipDFamYSOctBo.mjs → VHANuEgclliEVOJy.mjs} +48 -46
  183. package/browser/esm/{Db6Tvr45TS9J5Qsb.mjs → WGYh_LRO1dkbp-TV.mjs} +35 -33
  184. package/browser/esm/{ByqhqEMBLrnkaPKE.mjs → WeD0V8DDCj3KQ_8p.mjs} +26 -24
  185. package/browser/esm/{DG3BfxRsbjey-B7E.mjs → XYN8zIYF95HfOLO2.mjs} +2 -2
  186. package/browser/esm/XvS1NvLqAFQgx6eS.mjs +7 -0
  187. package/{cdn/assets/Dc2ZwgbIEgYWwAsF.js → browser/esm/Z10MZFA0Sc2Zcelz.mjs} +1 -1
  188. package/browser/esm/{-LoBx7J6imeqaxCq.mjs → bFtJ6ds2ojy78Wre.mjs} +7 -7
  189. package/browser/esm/{DqBj-9o7UdXu4qhb.mjs → bTZCD31OE4KkUy4u.mjs} +1 -1
  190. package/browser/esm/{CQuv-nk5jtXUfu7C.mjs → bYlwY2JZnvT1cbtL.mjs} +2 -2
  191. package/browser/esm/{BaEZmurTZnX_yfKD.mjs → buJRIWKU9gQ4TTK_.mjs} +323 -369
  192. package/{cdn/assets/BPrHgyAsm2Htx15h.js → browser/esm/c6MwBF7fqj-4Wqct.mjs} +1 -1
  193. package/browser/esm/d3pzf6IOaGjo_S-F.mjs +2213 -0
  194. package/browser/esm/{DSf-Db1h8rlW2A6n.mjs → e5QfIq2gAzQVRtfG.mjs} +5 -5
  195. package/browser/esm/{DGuynZFJ9tqziqQs.mjs → gTTt3H5M0Lh8VxjO.mjs} +7 -7
  196. package/browser/esm/index.mjs +49 -645
  197. package/{cdn/assets/BhkeuRcx8RlLCQ5E.js → browser/esm/lPeOxAutCOlSB-aC.mjs} +1 -1
  198. package/browser/esm/{BRfat1fV3oGLwvin.mjs → mjkAWxWBrwQpoEkc.mjs} +15 -15
  199. package/browser/esm/{Bi5-feQLtwpV6Ai8.mjs → nmaneEnoRhUuMliV.mjs} +5 -5
  200. package/browser/esm/{DeUXRggj8Oz9ru_i.mjs → oLOwgPmipnKc68nJ.mjs} +1 -1
  201. package/browser/esm/{BMlPFJ1glExv-70Z.mjs → oY2yN-_0_AcCI46E.mjs} +1 -1
  202. package/browser/esm/szeZ7VgnRHyi2DxR.mjs +381 -0
  203. package/{cdn/assets/CTdFZ_I-41Vr6Dy4.js → browser/esm/tQAwA9RKsgzjziNe.mjs} +1 -1
  204. package/{cdn/assets/J9i3r1fU0H10b2hX.js → browser/esm/t_7A_GdY394OUV4v.mjs} +1 -1
  205. package/browser/esm/uBm_7th3ordJJKKM.mjs +1298 -0
  206. package/browser/esm/vY2ZLR024kVOwWej.mjs +36 -0
  207. package/browser/esm/{DQEjvIGMgEkiaP6J.mjs → xUNkyQFYnzQAzsVs.mjs} +1 -1
  208. package/browser/esm/xhVehZswNSGVAhdd.mjs +195 -0
  209. package/{cdn/assets/BwOxnbR61WFJwy0A.js → browser/esm/y-iW7vsJV47pYbw4.mjs} +1 -1
  210. package/browser/esm/y5zzqXzWZt9iBT17.mjs +5632 -0
  211. package/{cdn/assets/B0Wjc3lwtjKMwnvn.js → browser/esm/y8mfWM7VlyfJEEwg.mjs} +1 -1
  212. package/{browser/esm/M7RYrx20B_Yl_euJ.mjs → cdn/assets/03NnLxMlQLUwCU6J.js} +8 -8
  213. package/cdn/assets/1oQRbol_4RzeM8pE.js +12 -0
  214. package/cdn/assets/{CILUMtSddGz7WXEv.js → 3Oqq1u2C8zC0TeW9.js} +84 -84
  215. package/cdn/assets/4uPsJWrLx7xRHQAh.js +639 -0
  216. package/cdn/assets/{ENtt4kmaU9mJfVEp.js → 6GgPtwsOcxg8XpRN.js} +10 -10
  217. package/cdn/assets/{D8DghdqjOtBzO2Wx.js → 7twUDisI3AH_vo2v.js} +4 -4
  218. package/cdn/assets/{BeQ95CzwR65il0CK.js → 8CW-puLLSNyeaGce.js} +2 -3
  219. package/cdn/assets/{BB4MW8sSYEXjPvvf.js → 8yRVrfAZmWoSynP2.js} +5 -5
  220. package/cdn/assets/{BN2d5U1nw7pRtOrn.js → 9MTXF6MTjOgoHb-7.js} +1 -1
  221. package/cdn/assets/9zx-c-XsXQJu3H6F.js +237 -0
  222. package/cdn/assets/B-aF0nVKMi0rBQ-X.js +257 -0
  223. package/cdn/assets/{x6GcENwqoUVbd60j.js → B0ko2JVTNhsWWWTe.js} +1 -1
  224. package/{browser/esm/pc49xtHdprXZLW2X.mjs → cdn/assets/B1SstI4rcUe8OJ-b.js} +1 -1
  225. package/cdn/assets/{B00ixdmb8-O5ijEp.js → B3ZFz_Z4E28AFJS3.js} +1 -1
  226. package/cdn/assets/B4zK-38sPk49SiBE.js +9524 -0
  227. package/cdn/assets/{PtGiIWFBYP-ujLmf.js → B5XpACGLcy3zYqlT.js} +1 -1
  228. package/cdn/assets/B6hsm_RseP5jRKxa.js +100 -0
  229. package/cdn/assets/{DHH_uKVzQ_kRYO2N.js → B71MtA2mmixmeooi.js} +18 -18
  230. package/cdn/assets/B7L2gEZlcb8lr2A4.js +8196 -0
  231. package/cdn/assets/{BAdRecWK1maKGOZd.js → B8VbElyA5zbjFNs1.js} +1 -1
  232. package/cdn/assets/B9dUWlxApLMvjz60.js +220 -0
  233. package/cdn/assets/B9w9g_nectPJhun5.js +1724 -0
  234. package/cdn/assets/{AjMG7Fb9r4Fk7Hsf.js → BCypA6VuKdd2n_ru.js} +19 -18
  235. package/cdn/assets/{DRm1R4uVOkaMfXNI.js → BDWKrgmyLVPkX3h0.js} +1 -1
  236. package/cdn/assets/BETDm_1AaWuW6BVj.js +516 -0
  237. package/cdn/assets/{C32co-XulWTkEKrW.js → BEvqzG-mTBe_4aVC.js} +2 -2
  238. package/cdn/assets/{qYca4mdySLkACfo1.js → BF9tQV6iUGvJK6QH.js} +1 -1
  239. package/cdn/assets/BFKaVO5u424S8iQa.js +86 -0
  240. package/cdn/assets/{CSEMxasVyGCekxKf.js → BGDndra6U64QPYm4.js} +1 -1
  241. package/cdn/assets/BI1IDPvx--ARef3O.js +196 -0
  242. package/cdn/assets/{Cw7AJWd0S2sjRmr6.js → BJ5RRYxWA_yTbVpr.js} +1478 -1400
  243. package/cdn/assets/BJV4kSnvZHNfd68y.js +193 -0
  244. package/cdn/assets/BK2u8-YC8sG_k5G1.js +1299 -0
  245. package/cdn/assets/{DSviq1TNoiIAGW7W.js → BN630GsmoKmNU7ur.js} +1 -1
  246. package/{browser/esm/DQIRFXG4MveFkK3I.mjs → cdn/assets/BNavcunnTVMpcxDs.js} +1 -1
  247. package/cdn/assets/BORHWDUKR6caukc5.js +199 -0
  248. package/cdn/assets/BOeafp2_IuiQUCy9.js +7 -0
  249. package/cdn/assets/{FO1Jezau486fH4kN.js → BRxDfB_xWCqmT-hR.js} +1 -1
  250. package/{browser/esm/DfESVLC8CAi8m8A7.mjs → cdn/assets/BUWDOAY73JPQoNzs.js} +1 -1
  251. package/cdn/assets/{0vqRTRN0wEzWao1c.js → BUsC6YAGDNArajFL.js} +75 -74
  252. package/{browser/esm/ztqpWR65YYMZ3EPk.mjs → cdn/assets/BV13zVUdMca1rMPB.js} +120 -118
  253. package/cdn/assets/{C9NyIoUahFiyRCxP.js → BV2wamfivt6aMUhk.js} +1 -1
  254. package/cdn/assets/BWbSAM8vJA9oOVLo.js +46 -0
  255. package/cdn/assets/{De2z8LdHaWRFiR5T.js → BXVCl_xwTk61fpO9.js} +2 -2
  256. package/cdn/assets/BZEFRQpz68GXn6T9.js +96 -0
  257. package/cdn/assets/{wM7DzeOpoEGBVDBe.js → B_sANJqcUwqmlTx5.js} +2 -2
  258. package/{browser/esm/i0P63Wd0RRlgJotb.mjs → cdn/assets/BaaB1nz3Z8IIy5XL.js} +1 -1
  259. package/cdn/assets/{DckmFyHxGX4Y1gOq.js → BbO2UBFWu05VAtNb.js} +18 -17
  260. package/cdn/assets/{CCvBdPu7W2ZF6A9J.js → BdW05SsbRlVhxGr6.js} +3 -3
  261. package/cdn/assets/BdnTLvN0grpQAsLF.js +8 -0
  262. package/{browser/esm/DXo8mR6t5HGsmTcu.mjs → cdn/assets/Bdt5IdX6u9CLkJdC.js} +1 -1
  263. package/cdn/assets/Bebab8nHNHqve2AI.js +233 -0
  264. package/{browser/esm/FjNOhkR7-JAIaRP6.mjs → cdn/assets/BiSGu7XE2wP-COS-.js} +1 -1
  265. package/cdn/assets/BjAnEBtnBD5O0-sc.js +106 -0
  266. package/cdn/assets/{hg8WYI0Yy4WPPPoP.js → BmWMHgdcbZuZUGtm.js} +11 -11
  267. package/{browser/esm/DVpi1vC8ixXvUQG_.mjs → cdn/assets/BovxopS-62ImjzWq.js} +1 -1
  268. package/cdn/assets/Bqlj5Zz-vJpMDs6i.js +311 -0
  269. package/cdn/assets/{BlPn_DXaEXOPxMxC.js → Br1Vf_O1YcX7sOJE.js} +1 -1
  270. package/cdn/assets/{CSIZpJClc66_20kP.js → BuHsbgcxlvkOHGGR.js} +118 -269
  271. package/{browser/esm/C3r_9RqlWrEmlXZ1.mjs → cdn/assets/Bx9qg5bL1Fzbvk1z.js} +1 -1
  272. package/cdn/assets/BzZTldYRBXUqOINX.js +781 -0
  273. package/cdn/assets/C-_jzDXetpu0rH2K.js +8 -0
  274. package/cdn/assets/C2ydnpxcrFknfLw1.js +214 -0
  275. package/{browser/esm/BSCja5yvevmKZPBB.mjs → cdn/assets/C4Vjb-3d4J7GxBGw.js} +1 -1
  276. package/{browser/esm/DjtXfgbmXjUAoG0y.mjs → cdn/assets/C635yBozh_t0DPLr.js} +1 -1
  277. package/cdn/assets/C7FA7N-GON7DscOD.js +19 -0
  278. package/{browser/esm/_t0Mx-mUFVtmVNkU.mjs → cdn/assets/C7Yr6jxJx_xXDUR2.js} +1 -1
  279. package/cdn/assets/C7fZFw4yQ9VNHtnV.js +17 -0
  280. package/cdn/assets/C8XNRmzAp2MWyeej.js +42 -0
  281. package/{browser/esm/DAprxR00V9qvNLL2.mjs → cdn/assets/C9_WZzkqVDNPA1d0.js} +1708 -1660
  282. package/{browser/esm/CQOyeq_-pg3CM-uA.mjs → cdn/assets/C9oBHe1kBAevREtg.js} +1 -1
  283. package/cdn/assets/{SNze-adFJwKuGSQW.js → CAeD2o0Ls4sIyokt.js} +1 -1
  284. package/cdn/assets/{CHMqT9DzYKTxPfP6.js → CBRVZmrwcMfEHc5P.js} +1 -1
  285. package/cdn/assets/CBsadiIVpXoTVHLj.js +183 -0
  286. package/{browser/esm/D88StfSjZJi5E8Xb.mjs → cdn/assets/CDv_hXnUZNB1HY3N.js} +2384 -1905
  287. package/cdn/assets/{CFBgmXap8kmumhoz.js → CELW1QxGUlPfcuHG.js} +144 -134
  288. package/cdn/assets/CF6YxjWkuaqaHcCi.js +2230 -0
  289. package/cdn/assets/{CbTN0q6XnYGJqyEp.js → CGklNVK7pkjOQ6XF.js} +261 -261
  290. package/cdn/assets/{Dy44qJVkwNseMG-3.js → CHGtyPsxQrhRB5bz.js} +1 -1
  291. package/cdn/assets/{D32D_biNXRCZ24vG.js → CIa9t2NsEFKqvGac.js} +10 -10
  292. package/cdn/assets/CIfJsifn66BBcj2W.js +86 -0
  293. package/cdn/assets/CIscj5V7u9g5ZxM3.js +7 -0
  294. package/cdn/assets/{BNsqqoZY7a4N1wWC.js → CJgN6A7fquRRWJ9h.js} +328 -110
  295. package/cdn/assets/{DNaPo7BQu6hr1fWq.js → CK5tMP35Iv98na5Z.js} +1 -1
  296. package/cdn/assets/CLDXVyr5jbJC7Ldf.js +7 -0
  297. package/cdn/assets/CLesyjpCdfNlo_s3.js +210 -0
  298. package/cdn/assets/{Dp-GJXOMz_b8qAxD.js → CMRiIxUHB5XcDtA8.js} +2 -2
  299. package/cdn/assets/{DAE3Kv0Vs0VuBecT.js → COtPL6l443kTvLpc.js} +1 -1
  300. package/{browser/esm/CFvKDDbrL3wpXnQH.mjs → cdn/assets/CRc3MloTINO1cx9Y.js} +1 -1
  301. package/cdn/assets/CS7L0XE_IvJKdpQH.js +416 -0
  302. package/cdn/assets/{C5EKgE9Owsc_juw-.js → CSUhHtPXRx-MiOJ0.js} +1 -1
  303. package/cdn/assets/{D-yz3V2UC54rwctD.js → CSpWGMyjLegYuwTq.js} +2 -2
  304. package/cdn/assets/CVCFVKDhgOFbBNWn.js +382 -0
  305. package/cdn/assets/{DSXJHEORGmMQX_Mb.js → CViBm-zHl4k8Znzm.js} +12 -12
  306. package/cdn/assets/{DZRm4H75lnEtOG8e.js → CWRXS9rkz8fCwbZH.js} +48 -46
  307. package/cdn/assets/CZ0iN5i3edmVHcRK.js +323 -0
  308. package/cdn/assets/{B3NWCYKXucbHhOix.js → C_Q71OCVP6nPyP4U.js} +26 -26
  309. package/cdn/assets/{BBjgqNlHm-ssbSAG.js → C_lz-BVnapcDsXH0.js} +1 -1
  310. package/cdn/assets/CbKXmBz5CY-IwYsS.js +132 -0
  311. package/cdn/assets/CbqZMJ1c683b5iE7.js +278 -0
  312. package/cdn/assets/CdDIc0DsAwHzxpeO.js +5117 -0
  313. package/{browser/esm/RfHd1JATBlcsfLPv.mjs → cdn/assets/CdOK8MepIC51cdz1.js} +1 -1
  314. package/cdn/assets/{C6INLvBy8kdzFpsX.js → CdW0mis0FyG90paw.js} +576 -696
  315. package/cdn/assets/{DicTo_3G-KZyWDiE.js → CevaeSbWdKO5qeRu.js} +294 -340
  316. package/cdn/assets/{DxisV9_27l_WU-nk.js → CeySvrdNiT00QQJC.js} +5 -5
  317. package/cdn/assets/Cf-LLddGP5wUU4hH.js +8 -0
  318. package/cdn/assets/{CIyaijfp6itgRpFM.js → Cf0bbHHOW6iwvyXg.js} +2 -2
  319. package/cdn/assets/CixdB4xXcQhebm5U.js +73 -0
  320. package/cdn/assets/{BelX6bvQPsGuo-x3.js → Cj2lJ05kVoDb5HGx.js} +2 -2
  321. package/cdn/assets/{CsrTRThObSryov1b.js → CkfqUcoAlpPupbbK.js} +2 -2
  322. package/cdn/assets/CkgK3CrVsGp5FE2i.js +2213 -0
  323. package/{browser/esm/BAH_cWcQEIBKWnl6.mjs → cdn/assets/Cl1bVTUk0rQUQT9p.js} +1 -1
  324. package/cdn/assets/Cl3d4ILjFxp4IdO9.js +3716 -0
  325. package/cdn/assets/ClY9HTqosClkllrU.js +522 -0
  326. package/cdn/assets/Cllqhal9LBm1K8Yq.js +391 -0
  327. package/cdn/assets/CnVY0qezymE7-eML.js +89 -0
  328. package/cdn/assets/{CWJzHmEgahdOfNjH.js → Cnx0vOv2ePi94hMN.js} +1 -1
  329. package/cdn/assets/{C7fu6LrSMBlHqwUy.js → CqmrD2Xs8MKJTO4v.js} +4 -4
  330. package/cdn/assets/Cw6ozEzvtFq_HVef.js +8 -0
  331. package/cdn/assets/{BzbP4jaN13wC9aSi.js → CzG0p4x8L99XEdym.js} +40 -40
  332. package/{browser/esm/CVcCUfSRsiZ1-6hs.mjs → cdn/assets/CzpnOqHBXxESl5Ts.js} +1 -1
  333. package/cdn/assets/D-hAYmuTa0x0_oI-.js +1552 -0
  334. package/{browser/esm/By3a43qwWICwXRmw.mjs → cdn/assets/D2H92O2Ji36qebTp.js} +2667 -2091
  335. package/cdn/assets/{ByUcqyCNfqi5Mm7w.js → D46u8d3O49bDLflJ.js} +1 -1
  336. package/cdn/assets/D51TEwta0ZXmlNrx.js +570 -0
  337. package/cdn/assets/{px-aQ8dMjiWag_pV.js → D5KlrP1rlBZO7HyP.js} +1 -1
  338. package/cdn/assets/{Cfg4Dtndwurxv9LM.js → D7g9SLSLSONiRP8_.js} +8 -8
  339. package/cdn/assets/D8fBDoXy-QzJqIfC.js +132 -0
  340. package/cdn/assets/D97AuczhOIBnqMXI.js +55466 -0
  341. package/cdn/assets/DBnswN0nPHV8TM2q.js +8 -0
  342. package/cdn/assets/DE9bhDAlUdLUngdj.js +1646 -0
  343. package/cdn/assets/{D_pMOq6FdH4RSBLc.js → DG4PyKuuGu6RkAEv.js} +810 -804
  344. package/cdn/assets/DG8R6bLrQPHjouy2.js +86 -0
  345. package/cdn/assets/{VwGokBaawZfZiV2X.js → DJhxuNvyE7FzNXTv.js} +1 -1
  346. package/{browser/esm/H-JnJQMcZQbpvjdb.mjs → cdn/assets/DK3BYp4NTX8n36q5.js} +1 -1
  347. package/cdn/assets/{CZOJogyZqMfUxcXj.js → DKxCeh3yib-owCxs.js} +1 -1
  348. package/cdn/assets/{ycmpAs4kQfeh78Pa.js → DL57MpyMuNosTcrB.js} +1 -1
  349. package/{browser/esm/Dme0qpRinBnhzp53.mjs → cdn/assets/DLEPPn_cPPydMrpU.js} +150 -148
  350. package/cdn/assets/{D-bNmX0QsA8SuT0m.js → DP1jRSok-1NvqrBz.js} +34 -34
  351. package/cdn/assets/{DJqj66SnUcx0QmSN.js → DUZyG-8cyY9A0Zg-.js} +1 -1
  352. package/cdn/assets/{Cv5PLuhEmh5IDHjb.js → DWoFVKQrI917IanL.js} +23 -23
  353. package/cdn/assets/DXhizwpX3GUT2ECx.js +90 -0
  354. package/cdn/assets/DYbOfw0BRA2hWOCP.js +1390 -0
  355. package/cdn/assets/DZo_DGKkHCqIyM5N.js +388 -0
  356. package/{browser/esm/DlOVZD0OiAjouS6-.mjs → cdn/assets/D_d2cK3aSl0eMBpj.js} +1626 -1018
  357. package/{browser/esm/BWo1N4YbK_zGU0nu.mjs → cdn/assets/DagxhIjpKea9MwI8.js} +1 -1
  358. package/cdn/assets/{DjdkGy-EI1kSo226.js → DbewMnLKZoGLGFNh.js} +1 -1
  359. package/{browser/esm/8-jmVNNbOHuXFdVQ.mjs → cdn/assets/DdXikMOzMIALd8bz.js} +120 -118
  360. package/cdn/assets/Dg3UJabBou63ReiH.js +12816 -0
  361. package/cdn/assets/Dg9ALylpMhftKvuI.js +23434 -0
  362. package/cdn/assets/DgQFdPeLRIkg5O3C.js +3093 -0
  363. package/{browser/esm/DWgp4t9N9u0eWthH.mjs → cdn/assets/DhLN5r1sTHL_BWeH.js} +1 -1
  364. package/cdn/assets/{ZxsFYopF0_WWqw4Q.js → DhU_l9pcEddg9s24.js} +1 -1
  365. package/cdn/assets/{CTI-mCJbJzitJZwj.js → DiabpzKzIUUyat-1.js} +1 -1
  366. package/cdn/assets/{DrI_S0A9TQvriTua.js → Dl29uXIaOLiBIDEI.js} +1 -1
  367. package/cdn/assets/{BtGmrIqU9W1L8zfZ.js → Dl40S1lFKvsN0DvK.js} +1 -1
  368. package/{browser/esm/DxcRLd7wmBGDgJsA.mjs → cdn/assets/DlWoVcsWZHiN-EYf.js} +1 -1
  369. package/cdn/assets/{B27vTQlxbHhSQJx8.js → DliTwLXIImeC0eub.js} +7803 -6320
  370. package/cdn/assets/{aHTKr1ijZ6bRi3Zg.js → DsRSG0tf_a2zWfcu.js} +4 -4
  371. package/cdn/assets/{7i4WSxDsu2ApJJ2_.js → DsXc1EO6csuKfV4l.js} +3 -3
  372. package/cdn/assets/DtO07D35O2tAh7f4.js +1241 -0
  373. package/cdn/assets/{C-0viTjg1dT2F-sk.js → Dut7EHGO0G5wuZvA.js} +2 -2
  374. package/cdn/assets/DvBV9E2CaadV0-OK.js +104 -0
  375. package/cdn/assets/{CakrxSS_RXtKmcUX.js → Dw7mCCAZtWzy1kDg.js} +99 -98
  376. package/{browser/esm/DEvZj68igS7Q8SZE.mjs → cdn/assets/DwITQzYKh_c7vCO8.js} +5 -5
  377. package/cdn/assets/{C0CeCYdLWLjySEFe.js → DwTdBuvtngstv-Ee.js} +15 -15
  378. package/cdn/assets/{CMVTwWHsRgyfSEDM.js → Dwb9z-Om5vH_9GFX.js} +67 -65
  379. package/{browser/esm/D-KZpU6HMaP4VUva.mjs → cdn/assets/Dwd9mENEUTKk45OD.js} +56 -56
  380. package/cdn/assets/{BvlfKrfrDhE9Jw4d.js → Dwm4Q509nQKTAHZp.js} +2 -2
  381. package/cdn/assets/{mK8HcIZyXkOTvL6E.js → DxI14nqCsNi-yexx.js} +7 -7
  382. package/cdn/assets/Dy07J9xUgFU8srvP.js +7723 -0
  383. package/{browser/esm/CBdNC7BOfc5TewHU.mjs → cdn/assets/DyeYHUP9q10K48wL.js} +1 -1
  384. package/cdn/assets/{Cy00y9b9j17Txyv1.js → DzF6mYUZfggTAjhM.js} +1 -1
  385. package/cdn/assets/{BpZ7P0CO148rR4zW.js → Dzlfx9-RfNxYludH.js} +20 -20
  386. package/cdn/assets/FjjP2q5AOiFod5IL.js +282 -0
  387. package/cdn/assets/{Dv8aQFTTaQBJKDDk.js → GA5X6vLsOcXufGyF.js} +1 -1
  388. package/cdn/assets/Ga_dmEQPXt-tMjfv.js +7 -0
  389. package/cdn/assets/HMCOTgDNR6bpWL7f.js +163 -0
  390. package/cdn/assets/{UTZcodQydbuMfCOS.js → Jn0_AtebABdIzyQ8.js} +1 -1
  391. package/cdn/assets/{CMxbiQ5J79M3n1tk.js → PD_ckP5IyZurtALu.js} +723 -373
  392. package/{browser/esm/lqknEt3DTma5Juxs.mjs → cdn/assets/PFd1HLX9x3NbZS0Q.js} +1 -1
  393. package/{browser/esm/B3Ii8x6RquHW1jMc.mjs → cdn/assets/PlCjmMBePH7hotkL.js} +12 -11
  394. package/cdn/assets/{Bgbi7BFR3rN5qj51.js → RZYxEHY1tap8fDMU.js} +22 -22
  395. package/cdn/assets/{w5IQWbJETgHhqMsY.js → V3xJfVu5YgTJE15l.js} +33 -33
  396. package/cdn/assets/{dn69mDhY7Xcc91kF.js → VtDou2czLTs_x_lJ.js} +20 -20
  397. package/cdn/assets/Xr_m9JQCcD2iBqdf.js +324 -0
  398. package/cdn/assets/{VCiu_neIjCTg2NUa.js → Y0Uf_lVRToNYi395.js} +634 -634
  399. package/{browser/esm/Dc2ZwgbIEgYWwAsF.mjs → cdn/assets/Z10MZFA0Sc2Zcelz.js} +1 -1
  400. package/cdn/assets/ZHMYKkw9GtA9PmwP.js +61 -0
  401. package/cdn/assets/ZaFy1hzL6cnNlROy.js +1302 -0
  402. package/cdn/assets/__mMW0v3QyR1pQYO.js +294 -0
  403. package/cdn/assets/{DqBj-9o7UdXu4qhb.js → bTZCD31OE4KkUy4u.js} +1 -1
  404. package/{browser/esm/BPrHgyAsm2Htx15h.mjs → cdn/assets/c6MwBF7fqj-4Wqct.js} +1 -1
  405. package/cdn/assets/csh4FIrA7Yz0oQR4.js +9 -0
  406. package/cdn/assets/{CDAYVaQYywqaxg4O.js → eyjrmBPp0a3kmDM1.js} +2 -2
  407. package/{browser/esm/BtdRr6IbtO6Gypsk.mjs → cdn/assets/hlphmhe3M3MZPvOh.js} +6 -5
  408. package/cdn/assets/jJoDPeW_80P8c7ET.js +201 -0
  409. package/cdn/assets/kLmFvtw68s1_Kbq9.js +142 -0
  410. package/cdn/assets/kTq1x8_s5V2PwKeX.js +9715 -0
  411. package/{browser/esm/BhkeuRcx8RlLCQ5E.mjs → cdn/assets/lPeOxAutCOlSB-aC.js} +1 -1
  412. package/cdn/assets/{DeUXRggj8Oz9ru_i.js → oLOwgPmipnKc68nJ.js} +1 -1
  413. package/cdn/assets/{BMlPFJ1glExv-70Z.js → oY2yN-_0_AcCI46E.js} +1 -1
  414. package/cdn/assets/{G5z0uVlyF6CLw_PA.js → pS2054G_Le7EvgyY.js} +2 -2
  415. package/cdn/assets/qwL1y5daLJePT9OL.js +7 -0
  416. package/cdn/assets/rNuTuxLduwMl4Fyb.js +182 -0
  417. package/cdn/assets/sCeaYn7GnW1N9bKn.js +423 -0
  418. package/cdn/assets/{Bsn-tUx172sEG2kR.js → t8Ps76FWzb3VX_wg.js} +20 -20
  419. package/{browser/esm/CTdFZ_I-41Vr6Dy4.mjs → cdn/assets/tQAwA9RKsgzjziNe.js} +1 -1
  420. package/{browser/esm/J9i3r1fU0H10b2hX.mjs → cdn/assets/t_7A_GdY394OUV4v.js} +1 -1
  421. package/{browser/esm/CWoPWWRwMgkGPFFP.mjs → cdn/assets/u8iMUyjw60ayROFo.js} +2538 -1728
  422. package/cdn/assets/ubUqS2NO2sn4DX3v.js +1694 -0
  423. package/cdn/assets/vY2ZLR024kVOwWej.js +36 -0
  424. package/cdn/assets/{DQEjvIGMgEkiaP6J.js → xUNkyQFYnzQAzsVs.js} +1 -1
  425. package/{browser/esm/BwOxnbR61WFJwy0A.mjs → cdn/assets/y-iW7vsJV47pYbw4.js} +1 -1
  426. package/{browser/esm/B0Wjc3lwtjKMwnvn.mjs → cdn/assets/y8mfWM7VlyfJEEwg.js} +1 -1
  427. package/cdn/assets/{BIsbcP5RXRU2XPfx.js → yI2dKrysDG0lqxjX.js} +2 -2
  428. package/cdn/assets/{Ba8taVvLslFcKS72.js → yzl98RXbYvgX5DfY.js} +28 -27
  429. package/cdn/assets/z4XcPMxN5hfqRHIt.js +367 -0
  430. package/cdn/assets/{ZSYS1J3uR7UQuHwZ.js → zm4ZwKXeSetbtx9Z.js} +10 -10
  431. package/cdn/index.js +27 -17
  432. package/package.json +3 -3
  433. package/types/src/sheetxl.d.ts +1 -0
  434. package/browser/esm/BNIInlJQbJjH8B6G.mjs +0 -84250
  435. package/browser/esm/B_HB4y7AA88Z775Z.mjs +0 -91
  436. package/browser/esm/CdeXXPCp5cCYvGyD.mjs +0 -14
  437. package/browser/esm/Chr_TXM-48IsK8Va.mjs +0 -155
  438. package/browser/esm/Clx8vvGDOTWK_M2l.mjs +0 -484
  439. package/browser/esm/Cw-4uoMuq_m7ziA3.mjs +0 -36
  440. package/browser/esm/D-9f1NKcpuYSgond.mjs +0 -412
  441. package/browser/esm/D7CGuQcwpkiuesEI.mjs +0 -229
  442. package/browser/esm/D7kkzIFPqKBK94kO.mjs +0 -17952
  443. package/browser/esm/D8exjrado9TJrBp-.mjs +0 -1946
  444. package/browser/esm/DGCOPbZbEmt0x9z0.mjs +0 -155
  445. package/browser/esm/DZRmBfjn2TgOTu5e.mjs +0 -3604
  446. package/browser/esm/D_7BWdsu8yejhUxy.mjs +0 -2353
  447. package/browser/esm/D_thhK0vSez8Yfle.mjs +0 -798
  448. package/browser/esm/Dv2z0548SZRGTN3l.mjs +0 -149
  449. package/browser/esm/DyeY6XwMQ_XNUHiW.mjs +0 -89
  450. package/browser/esm/RLU85PsAYtKPUf6N.mjs +0 -71
  451. package/browser/esm/WMYR09ZOR8JbZEnx.mjs +0 -4748
  452. package/browser/esm/r2Az2Yc4_qj2-sn0.mjs +0 -398
  453. package/cdn/assets/514mXPTuNvdNgw35.js +0 -412
  454. package/cdn/assets/7Sg0ht_ZCMJkPurt.js +0 -516
  455. package/cdn/assets/B_3Musz0q2MSZ5H-.js +0 -799
  456. package/cdn/assets/BgyY4zVPZSXljoCZ.js +0 -14
  457. package/cdn/assets/BlIZ30huelIxNo6S.js +0 -91
  458. package/cdn/assets/BxqXOiOyI_XiOmvN.js +0 -156
  459. package/cdn/assets/CEYyp6Qrr_IopxpL.js +0 -22597
  460. package/cdn/assets/CL6Tgu_rUO6G-fyq.js +0 -2352
  461. package/cdn/assets/COMOqucXq7X1vi0P.js +0 -230
  462. package/cdn/assets/CRXSrbGNABtzf532.js +0 -399
  463. package/cdn/assets/CTvPIYWTcjwlJeEA.js +0 -237
  464. package/cdn/assets/CU5cKipVT1X8Xz7F.js +0 -156
  465. package/cdn/assets/ChAKLV5zrGAHAof2.js +0 -130
  466. package/cdn/assets/Cw-4uoMuq_m7ziA3.js +0 -36
  467. package/cdn/assets/DCnWyVXikb_8Dat3.js +0 -61
  468. package/cdn/assets/DHugYwX4_ZyqGn-C.js +0 -1947
  469. package/cdn/assets/DOHh3pUXxMM09UY5.js +0 -3604
  470. package/cdn/assets/DlpgIJxNq2V4gdDq.js +0 -74
  471. package/cdn/assets/DuAbY54w5gJpQgss.js +0 -84250
  472. package/cdn/assets/DviEoeWW0EvDg1hr.js +0 -149
  473. package/cdn/assets/PzWqv-oXxEuzKdaT.js +0 -484
  474. package/cdn/assets/QJ4AkDD269D1MzmI.js +0 -89
  475. package/cdn/assets/fm3mUdTDo-STB36M.js +0 -4749
  476. package/cdn/assets/lWY3TbG2NDscy9He.js +0 -72
  477. package/cdn/assets/xlXDq-qoj7eOE6_T.js +0 -5153
@@ -1,1947 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.8.0-beta.10
3
- *
4
- * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */
7
- import { t as e } from "./CIyaijfp6itgRpFM.js";
8
- import { t } from "./BeQ95CzwR65il0CK.js";
9
- import { _ as n, b as r, w as i } from "./CMxbiQ5J79M3n1tk.js";
10
- import { E as a, M as o, N as s, m as c } from "./BoFx07POTorOb5g-.js";
11
- import { a as l } from "./DOHh3pUXxMM09UY5.js";
12
- import { r as u } from "./hg8WYI0Yy4WPPPoP.js";
13
- import { D as d, V as f, ft as p, m, mt as h, tt as g, z as _ } from "./Cw7AJWd0S2sjRmr6.js";
14
- import { n as v, t as y } from "./mK8HcIZyXkOTvL6E.js";
15
- import { N as b, Q as x, T as S, a as C, i as w, j as T, t as E } from "./CbTN0q6XnYGJqyEp.js";
16
- import { m as D, t as O, y as ee } from "./VCiu_neIjCTg2NUa.js";
17
- import { t as k } from "./CTvPIYWTcjwlJeEA.js";
18
- import { A, I as j, S as M, T as N, V as P, _ as F, d as I, o as te } from "./D_pMOq6FdH4RSBLc.js";
19
- import { t as L } from "./BzbP4jaN13wC9aSi.js";
20
- import { Ft as R, L as z } from "./B27vTQlxbHhSQJx8.js";
21
- import { t as B } from "./B3NWCYKXucbHhOix.js";
22
- import { t as V } from "./DjdkGy-EI1kSo226.js";
23
- import { t as ne } from "./CU5cKipVT1X8Xz7F.js";
24
- import { t as H } from "./Cfg4Dtndwurxv9LM.js";
25
- import { r as re } from "./DCnWyVXikb_8Dat3.js";
26
- var U = re(e(), 1), W = t(), ie = {
27
- Preset: "preset",
28
- Custom: "custom"
29
- }, G = {
30
- Start: "start",
31
- End: "end"
32
- }, ae = (0, U.memo)((e) => {
33
- let { selectedColor: t, onSelectColor: n, onPreviewColor: r, onClick: i, onKeyDown: a, onMouseOver: o, onMouseLeave: s, onFocus: c, style: l = _.EmptyCssProperties, children: u, alphaWhite: d, alphaGrey: f, darkMode: p, alphaCheckSize: m = 7, ...g } = e;
34
- if (!t) throw Error("a selectedColor is required");
35
- let v = (0, U.useCallback)((e) => {
36
- i?.(e), e.isDefaultPrevented() || (e.ctrlKey ? r?.(t.toRGBA()) : n?.(t.toRGBA()));
37
- }, [
38
- n,
39
- r,
40
- i,
41
- t
42
- ]), y = (0, U.useCallback)((e) => {
43
- o?.(e), e.isDefaultPrevented() || r?.(t.toRGBA());
44
- }, [
45
- r,
46
- o,
47
- t
48
- ]), b = (0, U.useCallback)((e) => {
49
- s?.(e), e.isDefaultPrevented();
50
- }, [r, s]), x = (0, U.useCallback)((e) => {
51
- c?.(e), e.isDefaultPrevented() || r?.(t.toRGBA());
52
- }, [
53
- r,
54
- c,
55
- t
56
- ]), S = (0, U.useCallback)((e) => {
57
- a?.(e), e.isDefaultPrevented() || e.keyCode === h.Enter && n?.(t.toRGBA());
58
- }, [
59
- n,
60
- a,
61
- t
62
- ]), C = (0, U.useMemo)(() => t.toRGBA().alpha === 1 ? null : (0, W.jsx)(H, {
63
- size: m,
64
- white: d,
65
- grey: f,
66
- style: {
67
- position: "absolute",
68
- width: "calc(100% - 1.5px)",
69
- height: "calc(100% - 1.5px)",
70
- top: "0.75px",
71
- left: "0.75px"
72
- }
73
- }), [
74
- d,
75
- f,
76
- t
77
- ]);
78
- return (0, W.jsxs)("div", {
79
- style: {
80
- position: "absolute",
81
- height: "100%",
82
- width: "100%",
83
- top: "0px",
84
- left: "0px",
85
- cursor: "pointer",
86
- outline: "none",
87
- ...l
88
- },
89
- tabIndex: 0,
90
- ...g,
91
- onClick: v,
92
- onKeyDown: S,
93
- onMouseOver: y,
94
- onMouseLeave: b,
95
- onFocus: x,
96
- children: [C, (0, W.jsx)("div", {
97
- style: {
98
- position: "absolute",
99
- top: "0px",
100
- left: "0px",
101
- height: "100%",
102
- width: "100%",
103
- background: t.toCSS(p)
104
- },
105
- children: u
106
- })]
107
- });
108
- }), oe = (0, U.memo)((e) => {
109
- let { schemeColorLookup: t, selectedColor: n, previewColor: r, colorDef: i, onSelectColorDef: a, onPreviewColorDef: o, propsSwatch: l, defaultButtonSize: u = 24, isLarge: d = !1, compareRGB: f = !1, darkMode: p = !1, ...m } = e, h = new s({
110
- val: i.definition.val,
111
- adjs: i.definition.adjs
112
- }, (e) => t(e)), g = f ? h.toRGBA().toString() : h.toString(), _ = n && (f ? n.toRGBA().toString() : n.toString()) === g, v = r && (f ? r.toRGBA().toString() : r.toString()) === g, y = [];
113
- y.push({ [c.AdjustmentType.Inv]: !0 }), y.push({ [c.AdjustmentType.Alpha]: 100 });
114
- let b = h.toRGBA().alpha === 0 && l?.alphaGrey ? l.alphaGrey : h.adjust(y).toRGBA(p).toString(), x = (0, U.useCallback)(() => {
115
- a?.(i);
116
- }, [a, i]), S = (0, U.useCallback)((e) => {
117
- o?.(i);
118
- }, [o, i]);
119
- return (0, W.jsx)(C, {
120
- disableInteractive: !0,
121
- slotProps: { popper: {
122
- style: { pointerEvents: "none" },
123
- disablePortal: !0,
124
- popperOptions: {
125
- strategy: "fixed",
126
- modifiers: [{
127
- name: "preventOverflow",
128
- enabled: !0,
129
- options: { boundariesElement: "viewport" }
130
- }]
131
- }
132
- } },
133
- title: i.description,
134
- placement: "bottom-start",
135
- children: (0, W.jsx)("div", {
136
- style: {
137
- width: u * (d ? 1.2 : 1) + "px",
138
- height: u * (d ? 1.2 : 1) + "px",
139
- position: "relative",
140
- boxSizing: "border-box",
141
- cursor: "pointer",
142
- outline: "none"
143
- },
144
- ...m,
145
- children: (0, W.jsxs)(ae, {
146
- selectedColor: h,
147
- title: void 0,
148
- onSelectColor: x,
149
- onPreviewColor: S,
150
- alphaCheckSize: d ? 9 : void 0,
151
- darkMode: p,
152
- ...l,
153
- children: [(0, W.jsx)("div", { style: {
154
- position: "absolute",
155
- width: "100%",
156
- height: "100%",
157
- top: "0px",
158
- left: "0px",
159
- pointerEvents: "none",
160
- borderColor: b,
161
- borderWidth: "2px",
162
- borderStyle: "solid",
163
- boxSizing: "border-box",
164
- opacity: _ ? "1" : "0"
165
- } }), (0, W.jsx)("div", { style: {
166
- position: "absolute",
167
- width: .33 * u * (d ? 1.2 : 1) + "px",
168
- height: .33 * u * (d ? 1.2 : 1) + "px",
169
- left: "calc(50% - 0.5px)",
170
- top: "calc(50% - 0.5px)",
171
- transform: "translate(-50%,-50%)",
172
- pointerEvents: "none",
173
- background: b,
174
- borderRadius: "50%",
175
- opacity: v ? "1" : "0"
176
- } })]
177
- })
178
- })
179
- });
180
- }), K = (0, U.memo)((e) => {
181
- let t, { title: n, schemeColorLookup: r, colorDefs: i, selectedColor: a, previewColor: o, onSelectColorDef: s, onPreviewColorDef: c, style: l = _.EmptyCssProperties, compareRGB: u = !1, darkMode: d, propsSwatch: f, ...p } = e;
182
- if (Array.isArray(i[0])) t = i;
183
- else {
184
- t = [];
185
- for (let e = 0; e < i.length; e++) t.push([i[e]]);
186
- }
187
- let m = (0, U.useCallback)((e) => {
188
- s?.(e);
189
- }, [s]), h = (0, U.useCallback)((e) => {
190
- c?.(e);
191
- }, [c]), g = (0, U.useMemo)(() => {
192
- let e = [];
193
- for (let n = 0; n < t.length; n++) {
194
- let i = [], s = t[n];
195
- for (let e = 0; e < s.length; e++) {
196
- let t = s[e];
197
- i.push((0, W.jsx)(oe, {
198
- schemeColorLookup: r,
199
- colorDef: t,
200
- selectedColor: a,
201
- previewColor: o,
202
- onSelectColorDef: m,
203
- onPreviewColorDef: h,
204
- propsSwatch: f,
205
- compareRGB: u,
206
- darkMode: d
207
- }, n + " " + e));
208
- }
209
- let c = (0, W.jsx)(y, {
210
- className: "button-col",
211
- sx: {
212
- display: "flex",
213
- flexDirection: "column",
214
- justifyContent: "space-between",
215
- boxShadow: (e) => e.shadows[2],
216
- borderRadius: "2px",
217
- overflow: "hidden"
218
- },
219
- children: i
220
- }, "" + n);
221
- e.push(c);
222
- }
223
- return e;
224
- }, [
225
- t,
226
- a,
227
- o,
228
- m,
229
- h
230
- ]), v = (0, U.useMemo)(() => n ? (0, W.jsx)(T, {
231
- noWrap: !0,
232
- component: "div",
233
- sx: {
234
- display: "flex",
235
- flexShrink: "0",
236
- paddingLeft: "6px",
237
- paddingBottom: "4px",
238
- paddingTop: "0px",
239
- userSelect: "none",
240
- color: (e) => e.palette.text.secondary
241
- },
242
- children: n
243
- }) : null, [n]);
244
- return (0, W.jsxs)(y, {
245
- style: { ...l },
246
- children: [v, (0, W.jsx)(y, {
247
- sx: {
248
- display: "flex",
249
- flexDirection: "row",
250
- gap: "6px",
251
- marginBottom: "14px",
252
- flexWrap: "wrap",
253
- justifyContent: "flex-start"
254
- },
255
- ...p,
256
- children: g
257
- })]
258
- });
259
- }), se = (e, t) => ({
260
- description: e,
261
- definition: {
262
- val: t,
263
- adjs: []
264
- }
265
- }), q = (e, t, n, r, i, a) => {
266
- let o = se(e, t);
267
- r?.push(o);
268
- let c = new s({
269
- val: o.definition.val,
270
- adjs: o.definition.adjs
271
- }, n), l = c.toString();
272
- i?.set(l, c);
273
- let u = c.toRGBA().toString();
274
- a?.set(u, c);
275
- }, ce = f(i("studio:customColorPanel", () => import("./Bgbi7BFR3rN5qj51.js")).load, { renderError: (e) => (0, W.jsx)(F, { error: e }) }), le = (0, U.memo)((0, U.forwardRef)((e, t) => {
276
- let { selectedColor: i = null, previewColor: a = e.selectedColor ?? null, recentColors: o, schemeLookup: c, disableAlpha: d = !1, previewDebounceTime: f = 100, initialPanelType: p, defaultButtonSize: h = 24, width: _, onElementLoad: x, onDone: C, onEyeDropStart: w, onEyeDropStop: E, onPreviewColor: D, onPreviewColorImmediate: O, onSelectColor: ee, autoColor: k, autoColorLabel: A, autoColorLabelKey: j, autoColorPosition: M = G.Start, compareRGB: N = !1, darkMode: F = !1, style: I, ...L } = e, z = g(), B = A ?? z(j ?? r("color.automatic")), V = a || i, ne = m(D ?? ((e) => {}), [D]), H = m(O ?? ((e) => {}), [O]), re = m(ee ?? ((e, t) => {}), [ee]), ae = m(w ?? (() => {}), [w]), se = m(E ?? (() => {}), [E]), [le, ue] = (0, U.useState)(!1), J = v(), Y = (0, U.useMemo)(() => c || s.getDefaultSchemeLookup(), [c]), X = (0, U.useMemo)(() => {
277
- let e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map(), n = [];
278
- q(z("color.scheme.bg1"), "bg1", Y, n, e, t), q(z("color.scheme.tx1"), "tx1", Y, n, e, t), q(z("color.scheme.bg2"), "bg2", Y, n, e, t), q(z("color.scheme.tx2"), "tx2", Y, n, e, t), q(z("color.scheme.accent", { n: 1 }), "accent1", Y, n, e, t), q(z("color.scheme.accent", { n: 2 }), "accent2", Y, n, e, t), q(z("color.scheme.accent", { n: 3 }), "accent3", Y, n, e, t), q(z("color.scheme.accent", { n: 4 }), "accent4", Y, n, e, t), q(z("color.scheme.accent", { n: 5 }), "accent5", Y, n, e, t), q(z("color.scheme.accent", { n: 6 }), "accent6", Y, n, e, t);
279
- let r = l.buildPalette(n, Y, e, t), i = [];
280
- if (q(z("color.standard.darkRed"), "C00000", Y, i, e, t), q(z("color.standard.red"), "FF0000", Y, i, e, t), q(z("color.standard.orange"), "FFC000", Y, i, e, t), q(z("color.standard.yellow"), "FFFF00", Y, i, e, t), q(z("color.standard.lightGreen"), "92D050", Y, i, e, t), q(z("color.standard.green"), "00B050", Y, i, e, t), q(z("color.standard.lightBlue"), "00B0F0", Y, i, e, t), q(z("color.standard.blue"), "0070C0", Y, i, e, t), q(z("color.standard.darkBlue"), "002060", Y, i, e, t), d ? q(z("color.standard.purpleFruit"), "7030A0", Y, i, e, t) : q(z("color.standard.transparent"), "00000000", Y, i, e, t), k) {
281
- let t = k.toString();
282
- e.set(t, k);
283
- }
284
- let a = /* @__PURE__ */ new Map(), s = typeof o == "function" ? o() : o, c = [];
285
- for (let e = 0; s && e < s.length; e++) {
286
- let t = s[e].toString();
287
- a.set(t, s[e]), c.push({
288
- description: z("color.recent", { n: e + 1 }),
289
- definition: { val: s[e].toString() }
290
- });
291
- }
292
- return {
293
- primaryColors: n,
294
- modifiedPresets: r,
295
- standardColors: i,
296
- recentColorsLimited: c,
297
- mapAllPresets: e,
298
- mapAllPresetsRGB: t,
299
- mapRecent: a
300
- };
301
- }, [
302
- Y,
303
- o,
304
- d,
305
- k
306
- ]);
307
- (0, U.useEffect)(() => {
308
- x?.();
309
- }, []);
310
- let [Z, de] = (0, U.useState)(!1), fe = (0, U.useCallback)(() => {
311
- de((e) => !e);
312
- }, []);
313
- (0, U.useEffect)(() => {
314
- if (p) de(p === ie.Custom);
315
- else if (i) {
316
- let e = i.toString(), t = X.mapAllPresets.get(e);
317
- t ||= (e = i.toRGBA().toString(), X.mapAllPresetsRGB.get(e));
318
- let n = X.mapRecent.get(e);
319
- de(!t && !n);
320
- }
321
- }, [i, p]);
322
- let pe = (0, U.useCallback)(n.debounce((e) => {
323
- ne?.(e);
324
- }, f), [ne, f]), [me, he] = (0, U.useState)();
325
- (0, U.useEffect)(() => {
326
- he(a || i);
327
- }, [a, i]);
328
- let ge = m((e) => {
329
- H && (H(e), pe(e));
330
- }, [H]), _e = m((e) => {
331
- ge(e ? new s({
332
- val: e.definition.val,
333
- adjs: e.definition.adjs
334
- }, Y) : null);
335
- }, [Y]), ve = (0, U.useCallback)((e) => {
336
- e.ctrlKey && de(!0);
337
- }, []), ye = m((e) => {
338
- let t = !1;
339
- if (e) {
340
- let n = e.toString();
341
- t = !X.mapAllPresets.has(n);
342
- }
343
- re?.(e, t);
344
- }, [re, X]), be = m((e) => {
345
- let t = e ? new s({
346
- val: e.definition.val,
347
- adjs: e.definition.adjs
348
- }, Y) : null;
349
- Promise.resolve(C?.()).then(() => {
350
- ye(t);
351
- });
352
- }, [Y, C]), xe = m((e) => {
353
- ge(e ? new s(e, Y) : null);
354
- }, [Y]), Se = (0, U.useMemo)(() => window.EyeDropper === void 0 ? (0, W.jsx)(W.Fragment, {}) : (0, W.jsx)(b, {
355
- "aria-label": z("color.eyeDropper"),
356
- size: "small",
357
- sx: { color: (e) => e.palette.text.icon ?? e.palette.action.active },
358
- onClick: async () => {
359
- ue(!0), ae?.(), await new EyeDropper().open().then((e) => {
360
- ue(!1), se?.();
361
- let t = new s(e.sRGBHex), n = t.toString(), r = X.mapAllPresets.get(n);
362
- if (r ||= (n = t.toRGBA().toString(), X.mapAllPresetsRGB.get(n)), !r) {
363
- let e = t.toRGBA();
364
- X.mapAllPresetsRGB.forEach((t, n) => {
365
- let i = t.toRGBA(), a = Math.abs(i.red - e.red) + Math.abs(i.blue - e.blue) + Math.abs(i.green - e.green);
366
- a < 3 && a < 255 && (r = t);
367
- });
368
- }
369
- de(!r), ge(r || t);
370
- }).catch((e) => {
371
- ue(!1), e?.name !== "AbortError" && console.error(e);
372
- });
373
- },
374
- children: (0, W.jsx)(u, { iconKey: "Colorize" })
375
- }), [X, F]), Ce = (0, U.useMemo)(() => {
376
- if (!Z) return;
377
- let e = {
378
- opacity: Z ? 1 : "0",
379
- position: "absolute",
380
- top: "0px",
381
- left: "0px",
382
- width: "100%",
383
- height: "100%",
384
- boxSizing: "border-box"
385
- };
386
- return (0, W.jsx)(U.Suspense, {
387
- fallback: (0, W.jsx)("div", {
388
- style: e,
389
- children: (0, W.jsx)(te, {})
390
- }),
391
- children: (0, W.jsx)(ce, {
392
- style: e,
393
- selectedColor: V ? V.toRGBA().toString() : "transparent",
394
- onColorChange: xe,
395
- disableAlpha: d
396
- })
397
- });
398
- }, [Z, V]), Q = (0, U.useMemo)(() => ({
399
- onClick: ve,
400
- alphaGrey: J.palette.text.icon ?? J.palette.action.active
401
- }), [ve, J]), we = (0, U.useMemo)(() => {
402
- if (!k) return null;
403
- let e = {
404
- description: B,
405
- definition: {
406
- val: k.getVal(),
407
- adjs: k.getAdjustments()
408
- }
409
- };
410
- return (0, W.jsx)(W.Fragment, { children: (0, W.jsxs)(P, {
411
- sx: {
412
- display: "flex",
413
- color: (e) => e.palette.text.secondary
414
- },
415
- onMouseOver: () => {
416
- _e(null);
417
- },
418
- onClick: () => {
419
- be(null);
420
- },
421
- children: [(0, W.jsx)(y, {
422
- sx: {
423
- flex: "none",
424
- boxShadow: (e) => e.shadows[2],
425
- borderRadius: (e) => e.spacing(.5),
426
- overflow: "hidden"
427
- },
428
- children: (0, W.jsx)(oe, {
429
- schemeColorLookup: Y,
430
- colorDef: e,
431
- selectedColor: i === null ? k : i,
432
- previewColor: a === null ? k : a,
433
- defaultButtonSize: h,
434
- isLarge: !0,
435
- darkMode: F,
436
- compareRGB: N,
437
- propsSwatch: Q
438
- })
439
- }), (0, W.jsx)(T, {
440
- noWrap: !0,
441
- component: "div",
442
- style: {
443
- display: "flex",
444
- flex: "1 1 100%",
445
- marginLeft: "8px",
446
- userSelect: "none"
447
- },
448
- children: B
449
- })]
450
- }) });
451
- }, [
452
- k,
453
- B,
454
- Y,
455
- i,
456
- a,
457
- F,
458
- N,
459
- h,
460
- Q
461
- ]);
462
- return (0, W.jsxs)(y, {
463
- ref: t,
464
- sx: {
465
- width: _,
466
- outline: "none",
467
- padding: "10px 10px",
468
- overflow: "hidden",
469
- boxSizing: "content-box"
470
- },
471
- style: I,
472
- ...L,
473
- children: [
474
- (0, W.jsxs)("div", {
475
- style: {
476
- position: "relative",
477
- display: "flex"
478
- },
479
- children: [(0, W.jsxs)("div", {
480
- style: { opacity: Z ? "0" : 1 },
481
- children: [
482
- we && M === G.Start ? (0, W.jsxs)(W.Fragment, { children: [we, (0, W.jsx)(R, { style: {
483
- marginTop: "2px",
484
- marginBottom: "10px"
485
- } })] }) : null,
486
- (0, W.jsx)(K, {
487
- title: z("color.themeColors"),
488
- schemeColorLookup: Y,
489
- colorDefs: X.primaryColors,
490
- selectedColor: i,
491
- previewColor: a === void 0 ? i : a,
492
- propsSwatch: Q,
493
- onPreviewColorDef: _e,
494
- onSelectColorDef: be,
495
- compareRGB: N,
496
- darkMode: F
497
- }),
498
- (0, W.jsx)(K, {
499
- schemeColorLookup: Y,
500
- colorDefs: X.modifiedPresets,
501
- selectedColor: i,
502
- previewColor: a === void 0 ? i : a,
503
- propsSwatch: Q,
504
- onPreviewColorDef: _e,
505
- onSelectColorDef: be,
506
- compareRGB: N,
507
- darkMode: F
508
- }),
509
- (0, W.jsx)(R, { style: { marginBottom: "10px" } }),
510
- (0, W.jsx)(K, {
511
- title: z("color.standardColors"),
512
- schemeColorLookup: Y,
513
- colorDefs: X.standardColors,
514
- selectedColor: i,
515
- previewColor: a === void 0 ? i : a,
516
- propsSwatch: Q,
517
- onPreviewColorDef: _e,
518
- onSelectColorDef: be,
519
- compareRGB: N,
520
- darkMode: F
521
- }),
522
- (0, W.jsxs)("div", {
523
- style: {
524
- opacity: X.recentColorsLimited.length === 0 ? "0" : void 0,
525
- display: X.recentColorsLimited.length === 0 ? "none" : void 0
526
- },
527
- children: [(0, W.jsx)(R, { style: { marginBottom: "10px" } }), (0, W.jsx)(K, {
528
- title: z("color.recentColors"),
529
- schemeColorLookup: Y,
530
- colorDefs: X.recentColorsLimited,
531
- selectedColor: i,
532
- previewColor: a === void 0 ? i : a,
533
- propsSwatch: Q,
534
- onPreviewColorDef: _e,
535
- onSelectColorDef: be,
536
- compareRGB: N,
537
- darkMode: F
538
- })]
539
- }),
540
- we && M === G.End ? (0, W.jsxs)(W.Fragment, { children: [
541
- (0, W.jsx)(R, { sx: {
542
- marginTop: "2px",
543
- marginBottom: "2px"
544
- } }),
545
- we,
546
- (0, W.jsx)("div", { style: { marginBottom: "2px" } })
547
- ] }) : null
548
- ]
549
- }), Ce]
550
- }),
551
- (0, W.jsx)(R, { style: { marginBottom: "10px" } }),
552
- (0, W.jsxs)("div", {
553
- style: {
554
- display: "flex",
555
- flexDirection: "row",
556
- alignItems: "center",
557
- gap: "8px",
558
- paddingLeft: "2px",
559
- paddingRight: "2px"
560
- },
561
- children: [
562
- Se,
563
- (0, W.jsx)("div", { style: { flex: "1 1 0%" } }),
564
- (0, W.jsxs)("div", {
565
- style: {
566
- flex: "0 0 auto",
567
- display: "flex",
568
- gap: "8px"
569
- },
570
- children: [(0, W.jsx)(S, {
571
- style: { minWidth: "75px" },
572
- value: "check",
573
- variant: "outlined",
574
- size: "small",
575
- onClick: () => {
576
- fe();
577
- },
578
- children: (0, W.jsxs)("span", {
579
- style: {
580
- display: "grid",
581
- alignItems: "center"
582
- },
583
- children: [(0, W.jsx)("span", {
584
- style: {
585
- gridArea: "1 / 1",
586
- visibility: Z ? "hidden" : "visible"
587
- },
588
- children: z("color.custom")
589
- }), (0, W.jsx)("span", {
590
- style: {
591
- gridArea: "1 / 1",
592
- visibility: Z ? "visible" : "hidden"
593
- },
594
- children: z("color.preset")
595
- })]
596
- })
597
- }), (0, W.jsx)(S, {
598
- variant: "contained",
599
- size: "small",
600
- style: { minWidth: "75px" },
601
- onClick: () => {
602
- Promise.resolve(C?.()).then(() => {
603
- ye(me ?? null);
604
- });
605
- },
606
- children: z("color.done")
607
- })]
608
- })
609
- ]
610
- })
611
- ]
612
- });
613
- })), ue = (0, W.jsx)(u, { iconKey: "circle.colored" }), J = (0, U.memo)((0, U.forwardRef)((e, t) => {
614
- let { selectedColor: n, quickColor: r, icon: i = ue, tooltip: a, label: o, onPreviewColor: s, onPreviewColorImmediate: c, onSelectColor: l, variant: d = I.Toolbar, propsPanel: f, shouldCloseFloatAll: p = !0, compareRGB: g = !1, darkMode: _ = !1, ...v } = e, b = m(s ?? ((e) => {}), [s]), x = m(c ?? ((e) => {}), [c]), S = m(l ?? ((e, t) => {}), [l]), [C, w] = (0, U.useState)(() => {}), [T, E] = (0, U.useState)(!1), D = r || (T ? C : void 0) || n || f?.autoColor, O = (0, U.useRef)(!1), ee = (0, U.useCallback)(() => {
615
- E(!1);
616
- }, []), k = m(() => {
617
- w(n), E(!0);
618
- }, [n]), A = m((e) => {
619
- O.current || (w(e), b?.(e));
620
- }, [b]), N = m((e) => {
621
- O.current || (w(e), x?.(e));
622
- }, [x]), P = m((e, t) => {
623
- O.current || (w(void 0), S?.(e, t));
624
- }, [S]), F = (0, U.useMemo)(() => {
625
- let e = typeof i == "function" ? i() : i;
626
- typeof e == "string" && (e = (0, W.jsx)(u, { iconKey: e }));
627
- let t = (e) => e && e !== "none" ? e : void 0, n = t(D?.toCSS(_)) ?? t(f?.autoColor?.toCSS(_)) ?? "transparent";
628
- return (0, W.jsx)(y, {
629
- className: "color-wrapper",
630
- sx: {
631
- lineHeight: "0",
632
- color: "inherit",
633
- "& .activeColor": { fill: n },
634
- "& .style_grey": { fill: (e) => e.palette.text.icon ?? e.palette.action.active }
635
- },
636
- children: e
637
- });
638
- }, [
639
- D,
640
- f?.autoColor,
641
- i,
642
- _
643
- ]), te = m((e) => {
644
- S?.(r ?? null, !1);
645
- }, [S, r]), [L, R] = (0, U.useState)(!1), z = (0, U.useCallback)((e) => {
646
- let { closeFloat: t, closeFloatAll: r } = e;
647
- return (0, W.jsx)(le, {
648
- ...f,
649
- selectedColor: n,
650
- previewColor: C,
651
- onDone: p ? r : t,
652
- onKeyDown: (e) => {
653
- e.which === h.Enter && (p ? r?.() : t?.());
654
- },
655
- onPreviewColorImmediate: N,
656
- onPreviewColor: A,
657
- onSelectColor: P,
658
- onEyeDropStart: () => R(!0),
659
- onEyeDropStop: () => R(!1),
660
- compareRGB: g,
661
- darkMode: _
662
- });
663
- }, [
664
- n,
665
- C,
666
- p,
667
- D,
668
- f?.autoColor,
669
- _
670
- ]), B = {
671
- onQuickClick: r ? te : void 0,
672
- createPopupPanel: z,
673
- propsPopup: { propsPopper: { resizeOnOverflow: !1 } },
674
- onPopupOpen: k,
675
- onPopupClose: ee,
676
- tooltip: a || o || "Color",
677
- label: o,
678
- icon: F,
679
- ...v
680
- };
681
- return d === I.Toolbar ? (0, W.jsx)(M, {
682
- ref: t,
683
- ...B
684
- }) : (0, W.jsx)(j, {
685
- ref: t,
686
- ...B
687
- });
688
- })), Y = 82;
689
- function X(e, t) {
690
- if (!t) return "";
691
- switch (t.style) {
692
- case o.StrokeStyle.None: return e("border.style.none");
693
- case o.StrokeStyle.Hair: return e("border.style.hair");
694
- case o.StrokeStyle.Dotted: return e("border.style.dotted");
695
- case o.StrokeStyle.Dashed: return e("border.style.dashed");
696
- case o.StrokeStyle.DashDot: return e("border.style.dashDot");
697
- case o.StrokeStyle.DashDotDot: return e("border.style.dashDotDot");
698
- case o.StrokeStyle.Double: return e("border.style.double");
699
- case o.StrokeStyle.Thin: return e("border.style.thin");
700
- case o.StrokeStyle.Medium: return e("border.style.medium");
701
- case o.StrokeStyle.MediumDashed: return e("border.style.mediumDashed");
702
- case o.StrokeStyle.MediumDashDot: return e("border.style.mediumDashDot");
703
- case o.StrokeStyle.MediumDashDotDot: return e("border.style.mediumDashDotDot");
704
- case o.StrokeStyle.SlantDashDot: return e("border.style.slantDashDot");
705
- case o.StrokeStyle.Thick: return e("border.style.thick");
706
- default: return t.description;
707
- }
708
- }
709
- var Z = (e) => {
710
- let { styleColor: t, length: n = Y, width: r = 1, dashArray: i, sx: a, isDouble: o = !1, isAngled: s = !1, darkMode: c = !1, ...l } = e;
711
- return (0, W.jsx)(x, {
712
- sx: {
713
- width: `${n}px`,
714
- height: `${r}px`,
715
- color: "inherit",
716
- overflow: "visible",
717
- "& .activeColor": { stroke: (e) => `${t ? t.toRGBA(c).toString() : e.palette.text.icon ?? e.palette.action.active}` },
718
- "& .style_grey": { stroke: (e) => e.palette.text.icon ?? e.palette.action.active },
719
- ...a
720
- },
721
- height: r,
722
- width: n,
723
- viewBox: `0 0 ${n} ${r}`,
724
- ...l,
725
- children: (0, W.jsx)(z, {
726
- length: n,
727
- width: r,
728
- dashArray: i,
729
- isDouble: o,
730
- isAngled: s,
731
- className: "activeColor"
732
- })
733
- });
734
- }, de = (0, U.memo)((0, U.forwardRef)((e, t) => {
735
- let { variant: n, showLabels: r = !1, disabled: i, createPopupPanel: a, styleColor: s, selectedStyle: c, onSelectStyle: l, showNone: u = !0, darkMode: d, sx: f, ...p } = e, _ = m(l ?? ((e) => {}), []), v = g(), b = (0, U.useCallback)((e) => {
736
- let { popupContainer: t, closeFloat: n, ...a } = e, l = [], f = o.BuiltInDefinitionsArray;
737
- for (let e = 0; e < f.length; e++) {
738
- let t = f[e];
739
- if (t.description === "None" && !u) continue;
740
- let a = (0, W.jsx)(Z, {
741
- styleColor: s,
742
- length: Y,
743
- width: t.width,
744
- darkMode: d,
745
- dashArray: t.pattern,
746
- isDouble: t.description.toLowerCase().includes("double"),
747
- isAngled: t.description.toLowerCase().includes("slant")
748
- }), o = null;
749
- o = r ? (0, W.jsxs)(W.Fragment, { children: [(0, W.jsx)(y, {
750
- sx: { marginRight: "6px" },
751
- children: X(v, t)
752
- }), (0, W.jsxs)(y, {
753
- sx: {
754
- marginLeft: "6px",
755
- marginRight: "6px",
756
- display: "flex",
757
- alignItems: "center",
758
- flex: "1 1 100%"
759
- },
760
- children: [(0, W.jsx)("div", { style: { flex: "1 1 100%" } }), a]
761
- })] }) : t.description === "None" ? X(v, t) : a, l.push((0, W.jsx)(A, {
762
- className: "border-stroke",
763
- tabIndex: 0,
764
- sx: {
765
- height: "28px",
766
- "& svg path.activeColor": { filter: E(4) },
767
- paddingLeft: "16px"
768
- },
769
- propsTooltip: { description: r ? "" : X(v, t) },
770
- icon: null,
771
- disabled: i,
772
- onMouseDown: (e) => e.preventDefault(),
773
- onMouseUp: () => {
774
- n?.(), _(t.style);
775
- },
776
- onKeyDown: (e) => {
777
- e.which === h.Enter && n?.();
778
- },
779
- selected: t.style === c,
780
- children: o
781
- }, e));
782
- }
783
- return (0, W.jsx)(y, {
784
- sx: {
785
- display: "flex",
786
- flexDirection: "column",
787
- paddingTop: "4px",
788
- paddingBottom: "4px"
789
- },
790
- children: l
791
- });
792
- }, [
793
- i,
794
- u,
795
- s,
796
- c,
797
- d,
798
- v
799
- ]), x = {
800
- disabled: i,
801
- icon: (0, U.useMemo)(() => {
802
- let e, t = o.BuiltInDefinitions.get(c);
803
- return t ? (e = t.description === "None" ? (0, W.jsx)(y, {
804
- sx: { minWidth: `${Y}px` },
805
- children: X(v, t)
806
- }) : (0, W.jsx)(Z, {
807
- styleColor: s,
808
- length: Y,
809
- width: t.width,
810
- dashArray: t.pattern,
811
- darkMode: d,
812
- isDouble: t.description.toLowerCase().includes("double"),
813
- isAngled: t.description.toLowerCase().includes("slant")
814
- }), (0, W.jsx)(y, {
815
- className: "border-stroke",
816
- sx: {
817
- paddingLeft: "12px",
818
- marginLeft: "4px",
819
- marginRight: "4px",
820
- height: "24px",
821
- display: "flex",
822
- alignItems: "center",
823
- "& svg path.activeColor": { filter: E() }
824
- },
825
- children: e
826
- })) : null;
827
- }, [
828
- c,
829
- s,
830
- v
831
- ]),
832
- tooltip: v("border.styleTooltip", { style: X(v, (0, U.useMemo)(() => o.BuiltInDefinitions.get(c), [c])) }),
833
- sx: f,
834
- createPopupPanel: b,
835
- ...p
836
- };
837
- return n === I.Toolbar ? (0, W.jsx)(M, { ...x }) : (0, W.jsx)(j, { ...x });
838
- }));
839
- function fe(e, t, n) {
840
- return e === a.BuiltInSheetPattern.Solid ? {
841
- foreground: n,
842
- background: t
843
- } : {
844
- foreground: t,
845
- background: n
846
- };
847
- }
848
- var pe = (0, U.memo)((e) => {
849
- let { patternType: t, foreground: n, background: r, createCell: i, darkMode: o = !1, className: s, style: c, ...l } = e, u = (0, U.useMemo)(() => {
850
- let e = fe(t, n, r);
851
- return i({ style: { fill: {
852
- type: a.Type.Pattern,
853
- patternType: t,
854
- foreground: e.foreground ?? void 0,
855
- background: e.background ?? void 0
856
- } } })?.getStyle().getFill().toCSS(o) ?? {};
857
- }, [
858
- t,
859
- n,
860
- r,
861
- i,
862
- o
863
- ]);
864
- return (0, W.jsx)("div", {
865
- className: V("sxl-pattern-swatch", s),
866
- style: {
867
- width: "100%",
868
- height: "100%",
869
- ...u,
870
- ...c
871
- },
872
- ...l
873
- });
874
- });
875
- pe.displayName = "PatternSwatch";
876
- var me = Object.freeze([
877
- a.BuiltInSheetPattern.Solid,
878
- a.BuiltInSheetPattern.DarkGray,
879
- a.BuiltInSheetPattern.MediumGray,
880
- a.BuiltInSheetPattern.LightGray,
881
- a.BuiltInSheetPattern.Gray125,
882
- a.BuiltInSheetPattern.Gray0625,
883
- a.BuiltInSheetPattern.DarkHorizontal,
884
- a.BuiltInSheetPattern.DarkVertical,
885
- a.BuiltInSheetPattern.DarkDown,
886
- a.BuiltInSheetPattern.DarkUp,
887
- a.BuiltInSheetPattern.DarkGrid,
888
- a.BuiltInSheetPattern.DarkTrellis,
889
- a.BuiltInSheetPattern.LightHorizontal,
890
- a.BuiltInSheetPattern.LightVertical,
891
- a.BuiltInSheetPattern.LightDown,
892
- a.BuiltInSheetPattern.LightUp,
893
- a.BuiltInSheetPattern.LightGrid,
894
- a.BuiltInSheetPattern.LightTrellis
895
- ]);
896
- function he(e, t) {
897
- switch (t) {
898
- case a.BuiltInSheetPattern.None: return e("fill.pattern.none");
899
- case a.BuiltInSheetPattern.Solid: return e("fill.pattern.solid");
900
- case a.BuiltInSheetPattern.Gray0625: return e("fill.pattern.gray0625");
901
- case a.BuiltInSheetPattern.Gray125: return e("fill.pattern.gray125");
902
- case a.BuiltInSheetPattern.LightGray: return e("fill.pattern.lightGray");
903
- case a.BuiltInSheetPattern.MediumGray: return e("fill.pattern.mediumGray");
904
- case a.BuiltInSheetPattern.DarkGray: return e("fill.pattern.darkGray");
905
- case a.BuiltInSheetPattern.LightHorizontal: return e("fill.pattern.lightHorizontal");
906
- case a.BuiltInSheetPattern.LightVertical: return e("fill.pattern.lightVertical");
907
- case a.BuiltInSheetPattern.LightDown: return e("fill.pattern.lightDown");
908
- case a.BuiltInSheetPattern.LightUp: return e("fill.pattern.lightUp");
909
- case a.BuiltInSheetPattern.LightGrid: return e("fill.pattern.lightGrid");
910
- case a.BuiltInSheetPattern.LightTrellis: return e("fill.pattern.lightTrellis");
911
- case a.BuiltInSheetPattern.DarkHorizontal: return e("fill.pattern.darkHorizontal");
912
- case a.BuiltInSheetPattern.DarkVertical: return e("fill.pattern.darkVertical");
913
- case a.BuiltInSheetPattern.DarkDown: return e("fill.pattern.darkDown");
914
- case a.BuiltInSheetPattern.DarkUp: return e("fill.pattern.darkUp");
915
- case a.BuiltInSheetPattern.DarkGrid: return e("fill.pattern.darkGrid");
916
- case a.BuiltInSheetPattern.DarkTrellis: return e("fill.pattern.darkTrellis");
917
- default: return t;
918
- }
919
- }
920
- var ge = (0, U.memo)((e) => {
921
- let { selectedPattern: t, foreground: n, background: r, onSelectPattern: i, createCell: a, darkMode: o = !1, disabled: s, ...c } = e, l = g(), u = m(i ?? ((e) => {}), [i]), d = (0, U.useCallback)((e) => {
922
- let { closeFloat: i } = e;
923
- return (0, W.jsx)(y, {
924
- sx: {
925
- display: "grid",
926
- gridTemplateColumns: "repeat(6, 34px)",
927
- gap: "4px",
928
- padding: "8px"
929
- },
930
- children: me.map((e) => (0, W.jsx)(w, {
931
- label: he(l, e),
932
- children: (0, W.jsx)(y, {
933
- role: "button",
934
- tabIndex: 0,
935
- "aria-label": he(l, e),
936
- "aria-pressed": e === t,
937
- onMouseDown: (e) => e.preventDefault(),
938
- onMouseUp: () => {
939
- i?.(), u(e);
940
- },
941
- onKeyDown: (t) => {
942
- t.key !== "Enter" && t.key !== " " || (t.preventDefault(), i?.(), u(e));
943
- },
944
- sx: {
945
- width: "34px",
946
- height: "34px",
947
- cursor: "pointer",
948
- borderRadius: "2px",
949
- outline: (n) => e === t ? `2px solid ${n.palette.primary.main}` : `1px solid ${n.palette.divider}`,
950
- outlineOffset: "-1px",
951
- "&:hover": { outline: (e) => `2px solid ${e.palette.primary.light}` }
952
- },
953
- children: (0, W.jsx)(pe, {
954
- patternType: e,
955
- foreground: n,
956
- background: r,
957
- createCell: a,
958
- darkMode: o
959
- })
960
- })
961
- }, e))
962
- });
963
- }, [
964
- t,
965
- n,
966
- r,
967
- a,
968
- o,
969
- u,
970
- l
971
- ]);
972
- return (0, W.jsx)(M, {
973
- disabled: s,
974
- tooltip: l("fill.patternTooltip", { pattern: he(l, t) }),
975
- createPopupPanel: d,
976
- icon: (0, W.jsx)(y, {
977
- sx: {
978
- width: "48px",
979
- height: "20px",
980
- borderRadius: "2px",
981
- outline: (e) => `1px solid ${e.palette.divider}`,
982
- outlineOffset: "-1px",
983
- overflow: "hidden"
984
- },
985
- children: (0, W.jsx)(pe, {
986
- patternType: t,
987
- foreground: n,
988
- background: r,
989
- createCell: a,
990
- darkMode: o
991
- })
992
- }),
993
- ...c
994
- });
995
- });
996
- ge.displayName = "PatternPopupButton";
997
- var _e = {
998
- resizeOnOverflow: !1,
999
- placement: "bottom",
1000
- offsets: [0, 2],
1001
- shift: { padding: 8 }
1002
- }, ve = ((e) => {
1003
- let t = [], n = e.length;
1004
- for (let r = 0; r < n; r++) {
1005
- let [i, a] = e[(r + n - 1) % n], [o, s, c] = e[r], [l, u] = e[(r + 1) % n], d = (e, t) => {
1006
- let n = Math.hypot(e - o, t - s) || 1, r = Math.min(c, n / 2);
1007
- return [o + (e - o) / n * r, s + (t - s) / n * r];
1008
- }, [f, p] = d(i, a), [m, h] = d(l, u);
1009
- t.push(`${r === 0 ? "M" : "L"}${f.toFixed(2)} ${p.toFixed(2)} Q${o} ${s} ${m.toFixed(2)} ${h.toFixed(2)}`);
1010
- }
1011
- return t.join(" ") + " Z";
1012
- })([
1013
- [
1014
- 7,
1015
- .5,
1016
- 1
1017
- ],
1018
- [
1019
- 13.5,
1020
- 6,
1021
- 1.5
1022
- ],
1023
- [
1024
- 13.5,
1025
- 16.5,
1026
- 2
1027
- ],
1028
- [
1029
- .5,
1030
- 16.5,
1031
- 2
1032
- ],
1033
- [
1034
- .5,
1035
- 6,
1036
- 1.5
1037
- ]
1038
- ]), ye = (e) => Math.max(0, Math.min(1, e)), be = (e, t, n) => {
1039
- try {
1040
- return (e instanceof s ? e : new s(e, t)).toCSS(n);
1041
- } catch {
1042
- return "transparent";
1043
- }
1044
- }, xe = (e, t, n) => {
1045
- try {
1046
- let r = new s(e, n).toRGBA(), i = new s(t, n).toRGBA(), a = (e, t) => Math.round((e + t) / 2).toString(16).padStart(2, "0");
1047
- return `${a(r.red, i.red)}${a(r.green, i.green)}${a(r.blue, i.blue)}`;
1048
- } catch {
1049
- return e;
1050
- }
1051
- }, Se = (e, t) => e.offset === t.offset && String(e.color) === String(t.color), Ce = (e, t) => e.length === t.length && e.every((e, n) => Se(e, t[n])), Q = (0, U.memo)((e) => {
1052
- let { percent: t, disabled: n, inputRef: r, onChange: i } = e, a = g(), [o, s] = (0, U.useState)(String(t)), [c, l] = (0, U.useState)(!1);
1053
- return (0, U.useEffect)(() => {
1054
- c || s(String(t));
1055
- }, [t, c]), (0, W.jsx)(k, {
1056
- type: "number",
1057
- size: "small",
1058
- disabled: n,
1059
- inputRef: r,
1060
- label: a("fill.gradientPosition"),
1061
- value: o,
1062
- onFocus: () => l(!0),
1063
- onBlur: () => {
1064
- l(!1), s(String(t));
1065
- },
1066
- onChange: (e) => {
1067
- if (s(e.target.value), e.target.value === "") return;
1068
- let t = Math.max(0, Math.min(100, parseInt(e.target.value, 10) || 0));
1069
- i(t);
1070
- },
1071
- slotProps: {
1072
- htmlInput: {
1073
- min: 0,
1074
- max: 100,
1075
- step: 5,
1076
- style: { textAlign: "right" }
1077
- },
1078
- inputLabel: { shrink: !0 },
1079
- input: { endAdornment: (0, W.jsx)(B, {
1080
- position: "end",
1081
- disableTypography: !0,
1082
- children: "%"
1083
- }) }
1084
- },
1085
- sx: { width: 120 }
1086
- });
1087
- });
1088
- Q.displayName = "StopPositionField";
1089
- var we = (0, U.memo)((e) => {
1090
- let { index: t, stop: n, offset: r, schemeLookup: i, recentColors: a, darkMode: o, disabled: c, canRemove: l, rampRef: f, onDrag: p, onMove: h, onPreviewColor: _, onChangeColor: b, onRemove: x, onOpenChange: S } = e, w = g(), T = v(), E = (0, U.useMemo)(() => new s(n.color, i), [n.color, i]), [D, O] = (0, U.useState)(void 0), [ee, k] = (0, U.useState)(null), [A, j] = (0, U.useState)(!1), [M, P] = (0, U.useState)(!1), [F, I] = (0, U.useState)(!1), [te, L] = (0, U.useState)(!1), R = (0, U.useRef)(null), z = (0, U.useRef)(!1), B = m((e) => {
1091
- O(e), _(t, e ?? null);
1092
- }, [t, _]), ne = m((e) => {
1093
- h(t, e / 100);
1094
- }, [t, h]), H = Math.round(100 * r), re = be(D ?? E, i, o), ie = (0, U.useCallback)((e) => {
1095
- let { closeFloat: n } = e;
1096
- return (0, W.jsxs)(y, {
1097
- className: "sxl-gradient-stop-popup",
1098
- sx: {
1099
- display: "flex",
1100
- flexDirection: "column"
1101
- },
1102
- children: [(0, W.jsx)(le, {
1103
- selectedColor: E,
1104
- previewColor: D,
1105
- disableAlpha: !0,
1106
- schemeLookup: i,
1107
- recentColors: a,
1108
- darkMode: o,
1109
- onDone: n,
1110
- onPreviewColor: B,
1111
- onPreviewColorImmediate: B,
1112
- onSelectColor: (e) => {
1113
- B(void 0), e && b(t, e);
1114
- }
1115
- }), (0, W.jsx)(y, {
1116
- sx: {
1117
- display: "flex",
1118
- alignItems: "center",
1119
- gap: 1,
1120
- paddingX: 1,
1121
- paddingBottom: 1
1122
- },
1123
- children: (0, W.jsx)(Q, {
1124
- percent: H,
1125
- disabled: c,
1126
- inputRef: R,
1127
- onChange: ne
1128
- })
1129
- })]
1130
- });
1131
- }, [
1132
- E,
1133
- D,
1134
- H,
1135
- t,
1136
- i,
1137
- a,
1138
- o,
1139
- c,
1140
- B,
1141
- b,
1142
- ne
1143
- ]), G = d({
1144
- anchor: ee,
1145
- label: "gradient-stop",
1146
- createPopupPanel: ie,
1147
- propsPopper: _e,
1148
- onOpen: () => {
1149
- j(!0), S(t, !0), z.current && (z.current = !1, requestAnimationFrame(() => R.current?.focus()));
1150
- },
1151
- onClose: () => {
1152
- j(!1), S(t, !1), B(void 0);
1153
- }
1154
- }), ae = m((e) => {
1155
- z.current = e, G.reference.open(0);
1156
- }, [G]), oe = m(() => {
1157
- A ? G.reference.close(0) : ae(!1);
1158
- }, [
1159
- A,
1160
- G,
1161
- ae
1162
- ]), K = (0, U.useRef)(null), se = m((e) => {
1163
- c || e.button !== 0 || (e.currentTarget.setPointerCapture(e.pointerId), K.current = {
1164
- pointerId: e.pointerId,
1165
- startX: e.clientX,
1166
- startOffset: r,
1167
- moved: !1,
1168
- offset: r
1169
- });
1170
- }, [c, r]), q = m((e) => {
1171
- let n = K.current;
1172
- if (!n || n.pointerId !== e.pointerId) return;
1173
- let r = e.clientX - n.startX;
1174
- if (!n.moved) {
1175
- if (Math.abs(r) < 3) return;
1176
- n.moved = !0, P(!0), L(!1), G.reference.close(0);
1177
- }
1178
- let i = f.current?.getBoundingClientRect().width ?? 0;
1179
- n.offset = i > 0 ? ye(n.startOffset + r / i) : n.startOffset, p(t, n.offset, !1);
1180
- }, [
1181
- t,
1182
- f,
1183
- G,
1184
- p
1185
- ]), ce = m((e) => {
1186
- let n = K.current;
1187
- if (n && n.pointerId === e.pointerId) {
1188
- if (K.current = null, n.moved) return P(!1), p(t, n.offset, !0), void h(t, n.offset);
1189
- oe();
1190
- }
1191
- }, [
1192
- t,
1193
- p,
1194
- h,
1195
- oe
1196
- ]), ue = m((e) => {
1197
- let n = K.current;
1198
- n && n.pointerId === e.pointerId && (K.current = null, n.moved && (P(!1), p(t, n.startOffset, !0)));
1199
- }, [t, p]), J = m((e) => {
1200
- if (c) return;
1201
- let n = e.shiftKey ? .1 : .01;
1202
- switch (e.key) {
1203
- case "ArrowLeft":
1204
- h(t, ye(r - n));
1205
- break;
1206
- case "ArrowRight":
1207
- h(t, ye(r + n));
1208
- break;
1209
- case "Home":
1210
- h(t, 0);
1211
- break;
1212
- case "End":
1213
- h(t, 1);
1214
- break;
1215
- case "Delete":
1216
- case "Backspace":
1217
- l && x(t);
1218
- break;
1219
- case "Enter":
1220
- case " ":
1221
- ae(!0);
1222
- break;
1223
- case "Escape":
1224
- if (!A) return;
1225
- G.reference.close(0);
1226
- break;
1227
- default: return;
1228
- }
1229
- e.preventDefault();
1230
- }, [
1231
- c,
1232
- t,
1233
- r,
1234
- l,
1235
- A,
1236
- G,
1237
- ae,
1238
- h,
1239
- x
1240
- ]), Y = A || M || F, X = !c && !M && !A && te, Z = (0, W.jsxs)(y, {
1241
- className: "sxl-gradient-stop-toolbar",
1242
- onPointerDown: (e) => {
1243
- e.stopPropagation();
1244
- },
1245
- sx: {
1246
- display: "flex",
1247
- alignItems: "center",
1248
- gap: .25
1249
- },
1250
- children: [(0, W.jsx)(N, {
1251
- tabIndex: -1,
1252
- propsTooltip: {
1253
- label: w("fill.gradientStopColor"),
1254
- simple: !0
1255
- },
1256
- icon: (0, W.jsx)(y, {
1257
- className: "color-wrapper",
1258
- sx: {
1259
- lineHeight: 0,
1260
- "& .activeColor": { fill: re }
1261
- },
1262
- children: (0, W.jsx)(u, { iconKey: "circle.colored" })
1263
- }),
1264
- onClick: () => {
1265
- L(!1), oe();
1266
- }
1267
- }), (0, W.jsx)(N, {
1268
- tabIndex: -1,
1269
- disabled: !l,
1270
- propsTooltip: {
1271
- label: w("fill.gradientRemoveStop"),
1272
- simple: !0
1273
- },
1274
- icon: (0, W.jsx)(u, { iconKey: "Close" }),
1275
- onClick: () => x(t)
1276
- })]
1277
- });
1278
- return (0, W.jsxs)(W.Fragment, { children: [(0, W.jsx)(C, {
1279
- title: Z,
1280
- open: X,
1281
- onOpen: () => L(!0),
1282
- onClose: () => L(!1),
1283
- enterDelay: 250,
1284
- enterNextDelay: 250,
1285
- leaveDelay: 400,
1286
- placement: "bottom",
1287
- disableFocusListener: !0,
1288
- disableTouchListener: !0,
1289
- slotProps: { tooltip: { sx: {
1290
- backgroundColor: (e) => e.palette.background.paper,
1291
- color: (e) => e.palette.text.primary,
1292
- border: (e) => `1px solid ${e.palette.divider}`,
1293
- boxShadow: (e) => e.shadows[3],
1294
- padding: "2px",
1295
- marginTop: "4px !important"
1296
- } } },
1297
- children: (0, W.jsx)(y, {
1298
- ref: k,
1299
- role: "button",
1300
- tabIndex: c ? -1 : 0,
1301
- "aria-label": w("fill.gradientStop", { position: H }),
1302
- "aria-disabled": c || void 0,
1303
- className: V("sxl-gradient-stop", {
1304
- "sxl-gradient-stop-open": A,
1305
- "sxl-gradient-stop-dragging": M
1306
- }),
1307
- onPointerDown: se,
1308
- onPointerMove: q,
1309
- onPointerUp: ce,
1310
- onPointerCancel: ue,
1311
- onFocus: () => I(!0),
1312
- onBlur: () => I(!1),
1313
- onKeyDown: J,
1314
- sx: {
1315
- position: "absolute",
1316
- left: 100 * r + "%",
1317
- top: "calc(100% - 4px)",
1318
- width: 14,
1319
- height: 17,
1320
- transform: "translateX(-50%)",
1321
- transition: M ? "none" : "left 120ms ease-out",
1322
- lineHeight: 0,
1323
- cursor: c ? "default" : M ? "grabbing" : "grab",
1324
- touchAction: "none",
1325
- outline: "none",
1326
- zIndex: +!!M,
1327
- filter: Y ? `drop-shadow(0 1px 2px ${T.palette.action.active})` : void 0
1328
- },
1329
- children: (0, W.jsx)("svg", {
1330
- width: 14,
1331
- height: 17,
1332
- viewBox: "0 0 14 17",
1333
- "aria-hidden": "true",
1334
- children: (0, W.jsx)("path", {
1335
- d: ve,
1336
- fill: re,
1337
- stroke: Y ? T.palette.primary.main : T.palette.text.secondary,
1338
- strokeWidth: Y ? 1.5 : 1,
1339
- strokeLinejoin: "round"
1340
- })
1341
- })
1342
- })
1343
- }), G.component] });
1344
- });
1345
- we.displayName = "StopHandle";
1346
- var Te = (0, U.memo)((e) => {
1347
- let { stops: t, onChange: n, minStops: r = 2, maxStops: i = 8, schemeLookup: a, recentColors: o, darkMode: s = !1, disabled: c = !1, className: l, ...d } = e, f = g(), p = (0, U.useRef)(null), h = (0, U.useRef)({
1348
- known: [],
1349
- next: 1
1350
- }), _ = (0, U.useMemo)(() => {
1351
- let e = h.current, n = ((e, t, n) => {
1352
- for (let n of t) if (Ce(e, n.stops)) return n.keys;
1353
- let r = /* @__PURE__ */ new Set();
1354
- return e.map((e) => {
1355
- for (let n of t) {
1356
- let t = n.stops.findIndex((t, i) => !r.has(n.keys[i]) && Se(t, e));
1357
- if (t >= 0) return r.add(n.keys[t]), n.keys[t];
1358
- }
1359
- return -1;
1360
- }).map((e) => e >= 0 ? e : n());
1361
- })(t, e.known, () => e.next++);
1362
- return e.known[0]?.keys !== n && (e.known = [{
1363
- stops: t,
1364
- keys: n
1365
- }, ...e.known].slice(0, 3)), n;
1366
- }, [t]), [v, b] = (0, U.useState)(null), [x, S] = (0, U.useState)(null), [C, w] = (0, U.useState)(null);
1367
- (0, U.useLayoutEffect)(() => {
1368
- b((e) => {
1369
- if (!e?.released) return e;
1370
- let n = _.indexOf(e.key);
1371
- return n >= 0 && t[n].offset === e.offset ? null : e;
1372
- });
1373
- }, [t, _]), (0, U.useLayoutEffect)(() => {
1374
- if (!v?.released) return;
1375
- let e = window.setTimeout(() => b((e) => e?.released ? null : e), 1e3);
1376
- return () => window.clearTimeout(e);
1377
- }, [v]);
1378
- let T = !c && t.length < i, E = !c && t.length > r, D = m((e) => {
1379
- let t = [...e].sort((e, t) => e.stop.offset - t.stop.offset), r = {
1380
- stops: t.map((e) => e.stop),
1381
- keys: t.map((e) => e.key)
1382
- }, i = h.current;
1383
- i.known = [r, ...i.known].slice(0, 3), n(r.stops.slice());
1384
- }, [n]), O = m(() => t.map((e, t) => ({
1385
- stop: e,
1386
- key: _[t]
1387
- })), [t, _]), ee = m((e, t, n) => {
1388
- b({
1389
- key: _[e],
1390
- offset: t,
1391
- released: n
1392
- });
1393
- }, [_]), k = m((e, t) => {
1394
- D(O().map((n, r) => r === e ? {
1395
- ...n,
1396
- stop: {
1397
- ...n.stop,
1398
- offset: t
1399
- }
1400
- } : n));
1401
- }, [O, D]), A = m((e, t) => {
1402
- S(t ? {
1403
- key: _[e],
1404
- color: t
1405
- } : null);
1406
- }, [_]), j = m((e, t) => {
1407
- let n = _[e];
1408
- w((e) => t ? n : e === n ? null : e);
1409
- }, [_]), M = m((e, t) => {
1410
- D(O().map((n, r) => r === e ? {
1411
- ...n,
1412
- stop: {
1413
- ...n.stop,
1414
- color: t.toString()
1415
- }
1416
- } : n));
1417
- }, [O, D]), P = m((e) => {
1418
- t.length <= r || D(O().filter((t, n) => n !== e));
1419
- }, [
1420
- t,
1421
- r,
1422
- O,
1423
- D
1424
- ]), F = m((e) => {
1425
- if (t.length >= i) return;
1426
- let n = [...t].sort((e, t) => e.offset - t.offset), r = e;
1427
- if (r === void 0) {
1428
- let e = -1;
1429
- for (let t = 0; t + 1 < n.length; t++) {
1430
- let i = n[t + 1].offset - n[t].offset;
1431
- i > e && (e = i, r = (n[t].offset + n[t + 1].offset) / 2);
1432
- }
1433
- r === void 0 && (r = 1);
1434
- }
1435
- let o = [...n].reverse().find((e) => e.offset <= r) ?? n[0], s = n.find((e) => e.offset >= r) ?? n[n.length - 1];
1436
- D([...O(), {
1437
- stop: {
1438
- offset: r,
1439
- color: xe(o.color, s.color, a)
1440
- },
1441
- key: h.current.next++
1442
- }]);
1443
- }, [
1444
- t,
1445
- i,
1446
- a,
1447
- O,
1448
- D
1449
- ]), I = m((e) => {
1450
- if (!T || e.button !== 0 || C !== null || e.target.closest(".sxl-gradient-stop")) return;
1451
- let t = e.currentTarget.getBoundingClientRect();
1452
- t.width <= 0 || F(ye((e.clientX - t.left) / t.width));
1453
- }, [
1454
- T,
1455
- C,
1456
- F
1457
- ]), te = (0, U.useMemo)(() => {
1458
- let e = t.map((e, t) => ({
1459
- offset: v?.key === _[t] ? v.offset : e.offset,
1460
- css: be(x?.key === _[t] ? x.color : e.color, a, s)
1461
- }));
1462
- return e.sort((e, t) => e.offset - t.offset), `linear-gradient(90deg, ${e.map((e) => `${e.css} ${(100 * e.offset).toFixed(2)}%`).join(", ")})`;
1463
- }, [
1464
- t,
1465
- _,
1466
- v,
1467
- x,
1468
- a,
1469
- s
1470
- ]);
1471
- return (0, W.jsxs)(y, {
1472
- className: V("sxl-gradient-stops", l),
1473
- sx: {
1474
- display: "flex",
1475
- alignItems: "flex-start",
1476
- gap: .5,
1477
- minWidth: 0
1478
- },
1479
- ...d,
1480
- children: [(0, W.jsx)(y, {
1481
- sx: {
1482
- flex: 1,
1483
- minWidth: 0,
1484
- paddingX: "7px",
1485
- paddingBottom: "15px"
1486
- },
1487
- children: (0, W.jsx)(y, {
1488
- ref: p,
1489
- className: "sxl-gradient-stops-ramp",
1490
- onPointerDown: I,
1491
- sx: {
1492
- position: "relative",
1493
- height: 18,
1494
- borderRadius: 1,
1495
- border: (e) => `1px solid ${e.palette.divider}`,
1496
- backgroundImage: te,
1497
- backgroundRepeat: "no-repeat",
1498
- cursor: T ? "copy" : "default",
1499
- opacity: c ? .5 : 1
1500
- },
1501
- children: t.map((e, t) => (0, W.jsx)(we, {
1502
- index: t,
1503
- stop: e,
1504
- offset: v?.key === _[t] ? v.offset : e.offset,
1505
- schemeLookup: a,
1506
- recentColors: o,
1507
- darkMode: s,
1508
- disabled: c,
1509
- canRemove: E,
1510
- rampRef: p,
1511
- onDrag: ee,
1512
- onMove: k,
1513
- onPreviewColor: A,
1514
- onChangeColor: M,
1515
- onRemove: P,
1516
- onOpenChange: j
1517
- }, _[t]))
1518
- })
1519
- }), (0, W.jsx)(N, {
1520
- disabled: !T,
1521
- propsTooltip: {
1522
- label: f("fill.gradientAddStop"),
1523
- simple: !0
1524
- },
1525
- icon: (0, W.jsx)(u, { iconKey: "Add" }),
1526
- onClick: () => F(),
1527
- sx: { marginTop: "-3px" }
1528
- })]
1529
- });
1530
- });
1531
- Te.displayName = "GradientStopsBar";
1532
- var Ee = (0, U.memo)((e) => {
1533
- let { value: t, onChange: n, minStops: r, maxStops: i, schemeLookup: o, recentColors: s, darkMode: c = !1, disabled: l = !1, className: u, ...d } = e, f = g(), p = m((e) => {
1534
- n({
1535
- ...t,
1536
- ...e
1537
- });
1538
- }, [t, n]), h = t.gradientType === a.GradientType.Linear;
1539
- return (0, W.jsxs)(y, {
1540
- className: V("sxl-gradient-editor", u),
1541
- sx: {
1542
- display: "flex",
1543
- flexDirection: "column",
1544
- gap: 1.25,
1545
- minWidth: 0
1546
- },
1547
- ...d,
1548
- children: [(0, W.jsxs)(y, {
1549
- sx: {
1550
- display: "flex",
1551
- flexWrap: "wrap",
1552
- gap: 1,
1553
- alignItems: "center"
1554
- },
1555
- children: [(0, W.jsxs)(ee, {
1556
- size: "small",
1557
- sx: {
1558
- minWidth: 132,
1559
- flex: "1 1 132px"
1560
- },
1561
- children: [(0, W.jsx)(D, {
1562
- shrink: !0,
1563
- children: f("fill.gradientStyle")
1564
- }), (0, W.jsxs)(O, {
1565
- label: f("fill.gradientStyle"),
1566
- notched: !0,
1567
- disabled: l,
1568
- value: t.gradientType,
1569
- onChange: (e) => p({ gradientType: e.target.value }),
1570
- children: [(0, W.jsx)(L, {
1571
- value: a.GradientType.Linear,
1572
- children: f("fill.gradientLinear")
1573
- }), (0, W.jsx)(L, {
1574
- value: a.GradientType.Path,
1575
- children: f("fill.gradientRadial")
1576
- })]
1577
- })]
1578
- }), (0, W.jsx)(k, {
1579
- label: f("fill.gradientAngle"),
1580
- type: "number",
1581
- size: "small",
1582
- disabled: l || !h,
1583
- value: t.angle,
1584
- onChange: (e) => {
1585
- let t = parseInt(e.target.value, 10) || 0;
1586
- p({ angle: (t % 360 + 360) % 360 });
1587
- },
1588
- slotProps: {
1589
- htmlInput: {
1590
- min: 0,
1591
- max: 359,
1592
- step: 15
1593
- },
1594
- inputLabel: { shrink: !0 }
1595
- },
1596
- sx: { width: 104 }
1597
- })]
1598
- }), (0, W.jsxs)(y, {
1599
- sx: {
1600
- display: "flex",
1601
- flexDirection: "column",
1602
- gap: .5,
1603
- minWidth: 0
1604
- },
1605
- children: [(0, W.jsx)(T, {
1606
- variant: "caption",
1607
- component: "div",
1608
- sx: { color: "text.secondary" },
1609
- children: f("fill.gradientStops")
1610
- }), (0, W.jsx)(Te, {
1611
- stops: t.stops,
1612
- onChange: (e) => p({ stops: e }),
1613
- minStops: r,
1614
- maxStops: i,
1615
- schemeLookup: o,
1616
- recentColors: s,
1617
- darkMode: c,
1618
- disabled: l
1619
- })]
1620
- })]
1621
- });
1622
- });
1623
- Ee.displayName = "GradientEditor";
1624
- var De = (e) => {
1625
- let t = e.getStops();
1626
- return {
1627
- gradientType: e.getGradientType(),
1628
- angle: e.getAngle() ?? 0,
1629
- stops: t.length >= 2 ? t.map((e) => ({
1630
- offset: e.getOffset(),
1631
- color: e.getColor().toString()
1632
- })) : [...Oe.stops]
1633
- };
1634
- }, Oe = Object.freeze({
1635
- gradientType: a.GradientType.Linear,
1636
- angle: 90,
1637
- stops: [{
1638
- offset: 0,
1639
- color: "ffffff"
1640
- }, {
1641
- offset: 1,
1642
- color: "4472c4"
1643
- }]
1644
- }), ke = (e, t, n) => () => {
1645
- t === e && n();
1646
- }, Ae = (0, U.memo)((e) => {
1647
- let { label: t, value: n, min: r, max: i, step: a = 1, decimals: o = !1, width: s, disabled: c, onChange: l } = e, u = (0, U.useRef)(null), d = (e) => Math.max(r, Math.min(i, e)), f = (e) => {
1648
- let t = o ? parseFloat(e) : parseInt(e, 10);
1649
- return Number.isNaN(t) ? null : d(t);
1650
- };
1651
- return (0, W.jsx)(ne, {
1652
- label: t,
1653
- value: String(n),
1654
- disabled: c,
1655
- hideAdornment: !0,
1656
- helperText: null,
1657
- propsInput: {
1658
- type: "number",
1659
- min: r,
1660
- max: i,
1661
- step: a
1662
- },
1663
- sx: {
1664
- width: s,
1665
- minWidth: 0,
1666
- "& input": { textAlign: "right" }
1667
- },
1668
- onChangeInput: (e) => {
1669
- let t = f(e);
1670
- t !== null && (u.current = t, l(t));
1671
- },
1672
- onDone: (e) => {
1673
- let t = f(e) ?? d(0), n = u.current;
1674
- u.current = null, n !== t && l(t);
1675
- }
1676
- });
1677
- });
1678
- Ae.displayName = "FormatNumberField";
1679
- var je = {
1680
- display: "flex",
1681
- flexDirection: "column",
1682
- gap: 1.5,
1683
- minWidth: 0
1684
- }, $ = (0, U.memo)((e) => {
1685
- let { label: t, children: n, sx: r, ...i } = e;
1686
- return (0, W.jsxs)(y, {
1687
- sx: {
1688
- display: "flex",
1689
- flexDirection: "column",
1690
- gap: .75,
1691
- minWidth: 0,
1692
- ...r
1693
- },
1694
- ...i,
1695
- children: [t ? (0, W.jsx)(T, {
1696
- variant: "caption",
1697
- component: "div",
1698
- sx: {
1699
- color: "text.secondary",
1700
- lineHeight: 1.4
1701
- },
1702
- children: t
1703
- }) : null, n]
1704
- });
1705
- });
1706
- $.displayName = "FormatSection";
1707
- var Me = (0, U.memo)((e) => {
1708
- let { children: t, sx: n, ...r } = e;
1709
- return (0, W.jsx)(y, {
1710
- sx: {
1711
- display: "flex",
1712
- flexWrap: "wrap",
1713
- alignItems: "center",
1714
- gap: 1,
1715
- minWidth: 0,
1716
- ...n
1717
- },
1718
- ...r,
1719
- children: t
1720
- });
1721
- });
1722
- Me.displayName = "FormatRow";
1723
- var Ne = (0, U.memo)((e) => {
1724
- let { children: t, sx: n, ...r } = e;
1725
- return (0, W.jsx)(y, {
1726
- sx: {
1727
- display: "flex",
1728
- alignItems: "center",
1729
- gap: .25,
1730
- flexWrap: "wrap",
1731
- minWidth: 0,
1732
- ...n
1733
- },
1734
- ...r,
1735
- children: t
1736
- });
1737
- });
1738
- Ne.displayName = "FormatButtonGroup";
1739
- var Pe = a.BuiltInSheetPattern.Gray125, Fe = new s(c.Named.Transparent), Ie = (e) => ({
1740
- fill: e.style.getFill(),
1741
- styles: e.styles,
1742
- schemeLookup: e.schemeLookup,
1743
- darkMode: e.darkMode,
1744
- disabled: e.disabled,
1745
- createCell: e.createCell,
1746
- applyFill: (t, n) => e.applyStyle({ fill: t }, n)
1747
- }), Le = (0, U.memo)((e) => {
1748
- let { selection: t, disabled: n, maxGradientStops: i, className: o, ...l } = e, u = g(), { fill: d, applyFill: f, createCell: h, schemeLookup: _, styles: v, darkMode: b } = t, x = n || t.disabled, S = m((e, t) => {
1749
- f(e.fill, t);
1750
- }, [f]), C = d.getType(), w = C === a.Type.None ? a.Type.Solid : C, T = C === a.Type.Pattern ? d : null, E = T?.getPatternType() ?? Pe, k = T ? fe(E, T.getForeground(), T.getBackground()) : null, A = (0, U.useMemo)(() => new s(c.Scheme.Tx1, _), [_]), j = k?.foreground ?? A, M = k?.background ?? new s(c.Named.Transparent, _), N = C === a.Type.Solid ? d.getColor() : null, P = m(() => v.recentColors(), [v]), [F] = p(["formatFillColor"]), I = F?.getContext(), te = I?.quickColor ?? null, R = m((e, t) => {
1751
- e && t && v.addRecentColor(e), I?.onColorSelect?.(e), e ? S({ fill: {
1752
- type: a.Type.Solid,
1753
- color: e.toString()
1754
- } }, r("op.setFillColor")) : S({ fill: { type: a.Type.None } }, r("op.setFillNone"));
1755
- }, [
1756
- S,
1757
- v,
1758
- I
1759
- ]), z = m((e) => {
1760
- let t = e.patternType ?? E, n = fe(t, e.foreground ?? j.toString(), e.background ?? M.toString());
1761
- S({ fill: {
1762
- type: a.Type.Pattern,
1763
- patternType: t,
1764
- foreground: n.foreground,
1765
- background: n.background
1766
- } }, r("op.setFillPattern"));
1767
- }, [
1768
- S,
1769
- E,
1770
- j,
1771
- M
1772
- ]), B = m((e) => {
1773
- S({ fill: {
1774
- type: a.Type.Gradient,
1775
- gradientType: e.gradientType,
1776
- angle: e.angle,
1777
- stops: e.stops.map((e) => ({
1778
- offset: e.offset,
1779
- color: e.color
1780
- }))
1781
- } }, r("op.setFillGradient"));
1782
- }, [S]), ne = m((e) => {
1783
- if (e !== w) switch (e) {
1784
- case a.Type.Solid:
1785
- S({ fill: {
1786
- type: a.Type.Solid,
1787
- color: (te ?? d.getColor())?.toString() ?? "ffffff"
1788
- } }, r("op.setFillSolid"));
1789
- break;
1790
- case a.Type.Pattern:
1791
- z({});
1792
- break;
1793
- case a.Type.Gradient: B(Oe);
1794
- }
1795
- }, [
1796
- w,
1797
- d,
1798
- te,
1799
- S,
1800
- z,
1801
- B
1802
- ]), H = m(() => {
1803
- switch (C) {
1804
- case a.Type.Pattern:
1805
- z({});
1806
- break;
1807
- case a.Type.Gradient:
1808
- B(De(d));
1809
- break;
1810
- case a.Type.Solid:
1811
- S({ fill: {
1812
- type: a.Type.Solid,
1813
- color: d.getColor().toString()
1814
- } }, r("op.setFillColor"));
1815
- break;
1816
- default: S({ fill: { type: a.Type.None } }, r("op.setFillNone"));
1817
- }
1818
- }, [
1819
- C,
1820
- d,
1821
- S,
1822
- z,
1823
- B
1824
- ]);
1825
- return (0, W.jsxs)(y, {
1826
- className: V("sxl-format-fill-panel", o),
1827
- sx: je,
1828
- ...l,
1829
- children: [
1830
- (0, W.jsx)($, { children: (0, W.jsxs)(ee, {
1831
- size: "small",
1832
- fullWidth: !0,
1833
- children: [(0, W.jsx)(D, {
1834
- shrink: !0,
1835
- children: u("fill.type")
1836
- }), (0, W.jsxs)(O, {
1837
- label: u("fill.type"),
1838
- notched: !0,
1839
- disabled: x,
1840
- value: w,
1841
- onChange: (e) => ne(e.target.value),
1842
- children: [
1843
- (0, W.jsx)(L, {
1844
- value: a.Type.Solid,
1845
- onClick: ke(w, a.Type.Solid, H),
1846
- children: u("fill.typeSolid")
1847
- }),
1848
- (0, W.jsx)(L, {
1849
- value: a.Type.Pattern,
1850
- onClick: ke(w, a.Type.Pattern, H),
1851
- children: u("fill.typePattern")
1852
- }),
1853
- (0, W.jsx)(L, {
1854
- value: a.Type.Gradient,
1855
- onClick: ke(w, a.Type.Gradient, H),
1856
- children: u("fill.typeGradient")
1857
- }),
1858
- C === a.Type.Image ? (0, W.jsx)(L, {
1859
- value: a.Type.Image,
1860
- disabled: !0,
1861
- children: u("fill.typeImage")
1862
- }) : null
1863
- ]
1864
- })]
1865
- }) }),
1866
- w === a.Type.Solid ? (0, W.jsx)($, {
1867
- label: u("fill.backgroundColor"),
1868
- children: (0, W.jsx)(Me, { children: (0, W.jsx)(J, {
1869
- icon: "fill.colored",
1870
- disabled: x,
1871
- darkMode: b,
1872
- compareRGB: !0,
1873
- selectedColor: N,
1874
- onSelectColor: R,
1875
- propsPanel: {
1876
- disableAlpha: !0,
1877
- autoColor: Fe,
1878
- autoColorLabelKey: r("color.noFill"),
1879
- autoColorPosition: G.End,
1880
- schemeLookup: _,
1881
- recentColors: P
1882
- }
1883
- }) })
1884
- }) : null,
1885
- C === a.Type.Pattern ? (0, W.jsxs)(W.Fragment, { children: [
1886
- (0, W.jsx)($, {
1887
- label: u("fill.patternStyle"),
1888
- children: (0, W.jsx)(Me, { children: (0, W.jsx)(ge, {
1889
- disabled: x,
1890
- darkMode: b,
1891
- selectedPattern: E,
1892
- foreground: j.toString(),
1893
- background: M.toString(),
1894
- createCell: h,
1895
- onSelectPattern: (e) => z({ patternType: e })
1896
- }) })
1897
- }),
1898
- (0, W.jsx)($, {
1899
- label: u("fill.patternForeground"),
1900
- children: (0, W.jsx)(Me, { children: (0, W.jsx)(J, {
1901
- disabled: x,
1902
- darkMode: b,
1903
- selectedColor: j,
1904
- onSelectColor: (e) => {
1905
- z({ foreground: (e ?? A).toString() });
1906
- },
1907
- propsPanel: {
1908
- disableAlpha: !0,
1909
- autoColor: A,
1910
- schemeLookup: _,
1911
- recentColors: P
1912
- }
1913
- }) })
1914
- }),
1915
- (0, W.jsx)($, {
1916
- label: u("fill.patternBackground"),
1917
- children: (0, W.jsx)(Me, { children: (0, W.jsx)(J, {
1918
- disabled: x,
1919
- darkMode: b,
1920
- selectedColor: M,
1921
- onSelectColor: (e) => {
1922
- z({ background: (e ?? Fe).toString() });
1923
- },
1924
- propsPanel: {
1925
- disableAlpha: !0,
1926
- autoColor: Fe,
1927
- autoColorLabelKey: r("color.noFill"),
1928
- schemeLookup: _,
1929
- recentColors: P
1930
- }
1931
- }) })
1932
- })
1933
- ] }) : null,
1934
- C === a.Type.Gradient ? (0, W.jsx)($, { children: (0, W.jsx)(Ee, {
1935
- disabled: x,
1936
- maxStops: i,
1937
- darkMode: b,
1938
- schemeLookup: _,
1939
- recentColors: P,
1940
- value: De(d),
1941
- onChange: B
1942
- }) }) : null
1943
- ]
1944
- });
1945
- });
1946
- Le.displayName = "FillPanel";
1947
- export { fe as C, Me as E, oe as S, pe as T, K as _, je as a, Te as b, Oe as c, Ie as d, Le as f, ie as g, me as h, G as i, $ as l, de as m, ke as n, Ee as o, J as p, Ae as r, De as s, Ne as t, ge as u, se as v, he as w, le as x, Z as y };