iobroker.admin 7.6.11 → 7.6.13

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 (260) hide show
  1. package/README.md +1 -1
  2. package/adminWww/assets/AdapterUpdateDialog-B8g_ZuhP.js +2 -0
  3. package/adminWww/assets/Adapters-XtPWdL3s.js +7 -0
  4. package/adminWww/assets/Alarm Systems-DXWic1Ai.svg +19 -0
  5. package/adminWww/assets/Alarm Systems-gR7dS0A2.js +1 -0
  6. package/adminWww/assets/Amplifier-25Guwmsj.js +1 -0
  7. package/adminWww/assets/Anteroom-BCnZwT5D.svg +53 -0
  8. package/adminWww/assets/Anteroom-DPbAOJ_i.js +1 -0
  9. package/adminWww/assets/Attic-CGXtMIdp.js +1 -0
  10. package/adminWww/assets/Awnings-Co-hmfUH.js +1 -0
  11. package/adminWww/assets/Balcony-DfK6N3aX.js +1 -0
  12. package/adminWww/assets/Barn-Lc8i72_q.js +1 -0
  13. package/adminWww/assets/Basement-DPN5xOB9.js +1 -0
  14. package/adminWww/assets/Bathroom-DzUiTIHs.js +1 -0
  15. package/adminWww/assets/Battery Status-B87Kvv-I.js +1 -0
  16. package/adminWww/assets/Bedroom-xMBCTCFq.js +1 -0
  17. package/adminWww/assets/Boiler Room-Bor2zD5L.js +1 -0
  18. package/adminWww/assets/Carport-C8HtrUXH.js +1 -0
  19. package/adminWww/assets/Ceiling Spotlights-DtqldpdR.js +1 -0
  20. package/adminWww/assets/Cellar-CcNx3DhR.svg +89 -0
  21. package/adminWww/assets/Cellar-DRGc9D6m.js +1 -0
  22. package/adminWww/assets/Chamber-D3f_uF0H.js +1 -0
  23. package/adminWww/assets/Chandelier-Cd8E2Wtu.js +1 -0
  24. package/adminWww/assets/Climate-BgafUEB4.svg +12 -0
  25. package/adminWww/assets/Climate-D413u9id.js +1 -0
  26. package/adminWww/assets/Coffee Makers-KF4ZcNxS.js +1 -0
  27. package/adminWww/assets/Cold Water-CkeFWerW.js +1 -0
  28. package/adminWww/assets/Computer-BTE1qsMK.js +1 -0
  29. package/adminWww/assets/Config-Dhj9WMpz.js +1 -0
  30. package/adminWww/assets/Consumption-kn0jqZNL.js +1 -0
  31. package/adminWww/assets/Corridor-CasyPy4F.js +1 -0
  32. package/adminWww/assets/Curtains-CHoQr379.js +1 -0
  33. package/adminWww/assets/CustomModal-4eTuDNla.js +1 -0
  34. package/adminWww/assets/CustomTab-CSgGzXlh.js +1 -0
  35. package/adminWww/assets/DefaultPropsProvider-BrbE0teb.js +30 -0
  36. package/adminWww/assets/Dining Area-9890E2Je.js +1 -0
  37. package/adminWww/assets/Dining Room-9890E2Je.js +1 -0
  38. package/adminWww/assets/Dining-9890E2Je.js +1 -0
  39. package/adminWww/assets/Dishwashers-B-Sw8Agt.js +1 -0
  40. package/adminWww/assets/Dishwashers-ukkJyBxN.svg +12 -0
  41. package/adminWww/assets/Doors-CGplwj0G.js +1 -0
  42. package/adminWww/assets/Doorstep-CDxK6WGU.js +1 -0
  43. package/adminWww/assets/Dressing Room-Dr_mWZjM.js +1 -0
  44. package/adminWww/assets/Driveway-BehcXrKD.js +1 -0
  45. package/adminWww/assets/Driveway-Ds2bQhX-.svg +15 -0
  46. package/adminWww/assets/Dryer-Cq6roMKB.js +1 -0
  47. package/adminWww/assets/EasyMode-Bwx_UimW.js +1 -0
  48. package/adminWww/assets/Entrance-BYqUyt1q.js +1 -0
  49. package/adminWww/assets/Entrance-C7nWCpgl.svg +44 -0
  50. package/adminWww/assets/Enums-B-PrqYys.js +111 -0
  51. package/adminWww/assets/Equipment Room-B5AsGJCs.js +1 -0
  52. package/adminWww/assets/Equipment Room-TfVcmx_W.svg +15 -0
  53. package/adminWww/assets/Fan-JaXmdymA.js +1 -0
  54. package/adminWww/assets/Fields-CYjxm_8L.js +1 -0
  55. package/adminWww/assets/Files-CsBMd5VX.js +6 -0
  56. package/adminWww/assets/FilledInput-D-tz8rvg.js +2 -0
  57. package/adminWww/assets/Floor Lamps-CRZ476zt.js +1 -0
  58. package/adminWww/assets/Front Yard-7bZ4bXgS.svg +64 -0
  59. package/adminWww/assets/Front Yard-CsV9sTio.js +1 -0
  60. package/adminWww/assets/Gallery-BEeOHkIW.svg +14 -0
  61. package/adminWww/assets/Gallery-Cz16BrQ3.js +1 -0
  62. package/adminWww/assets/Garage Doors-CkWxHxVX.js +1 -0
  63. package/adminWww/assets/Garage-BxcK0Mpu.js +1 -0
  64. package/adminWww/assets/Garden-C1wfb2Zv.svg +13 -0
  65. package/adminWww/assets/Garden-C67u1ESp.js +1 -0
  66. package/adminWww/assets/Gates-C78n8Uvq.js +1 -0
  67. package/adminWww/assets/Ground Floor-0zPWVd6I.js +1 -0
  68. package/adminWww/assets/Ground Floor-C3WGH1kZ.svg +95 -0
  69. package/adminWww/assets/Guest Bathroom-DSAlkwqV.js +1 -0
  70. package/adminWww/assets/Guest Room-DijMrEih.js +1 -0
  71. package/adminWww/assets/Gym-D5EhuzLI.js +1 -0
  72. package/adminWww/assets/Hairdryer-CWFjS2Ij.js +1 -0
  73. package/adminWww/assets/Hall-BXwSgCh7.js +1 -0
  74. package/adminWww/assets/Handle-wHYWJ26z.js +1 -0
  75. package/adminWww/assets/Hanging Lamps-MotocLIk.js +1 -0
  76. package/adminWww/assets/Heater-ceSMUh-t.js +1 -0
  77. package/adminWww/assets/Heater-oN6ojaUX.svg +44 -0
  78. package/adminWww/assets/Home Theater-BQrgVzZw.svg +8 -0
  79. package/adminWww/assets/Home Theater-BcYqHMU1.js +1 -0
  80. package/adminWww/assets/Hoods-Bz4IVHgt.js +1 -0
  81. package/adminWww/assets/Hosts-D7aAXH9U.js +121 -0
  82. package/adminWww/assets/Hot Water-HJAmxfSV.js +1 -0
  83. package/adminWww/assets/Humidity-CVLTW-gm.js +1 -0
  84. package/adminWww/assets/Humidity-Ck1f_Evq.svg +41 -0
  85. package/adminWww/assets/Instances-Bj8CqStT.js +2 -0
  86. package/adminWww/assets/Intro-sAT0x17e.js +2 -0
  87. package/adminWww/assets/Iron-BmVcdQDM.js +1 -0
  88. package/adminWww/assets/Irrigation-BhJPKg6k.js +1 -0
  89. package/adminWww/assets/Irrigation-DyPFlYm5.svg +25 -0
  90. package/adminWww/assets/Kitchen-CfzTeEPK.js +1 -0
  91. package/adminWww/assets/Laundry Room-zhlszIKu.js +1 -0
  92. package/adminWww/assets/Led Strip-BcmH_zbj.js +1 -0
  93. package/adminWww/assets/Light-ChIiCfYD.js +1 -0
  94. package/adminWww/assets/Light-D-PLOjiE.svg +30 -0
  95. package/adminWww/assets/Lightings-C0WZ69yF.js +1 -0
  96. package/adminWww/assets/Lightings-yVkfbnXC.svg +46 -0
  97. package/adminWww/assets/Living Area-CB250xNe.svg +11 -0
  98. package/adminWww/assets/Living Area-CqhYSGQI.js +1 -0
  99. package/adminWww/assets/Living Room-C7AE21A_.js +1 -0
  100. package/adminWww/assets/Lock-BMJY64TO.js +1 -0
  101. package/adminWww/assets/Locker Room-CyyDtimo.js +1 -0
  102. package/adminWww/assets/Logs-Bb16bYuu.js +1 -0
  103. package/adminWww/assets/Louvre-2ag13BIo.svg +7 -0
  104. package/adminWww/assets/Louvre-C5YcNLVm.js +1 -0
  105. package/adminWww/assets/Mowing Machine-8EOTsqgg.js +1 -0
  106. package/adminWww/assets/Music-GTFyD3_A.js +1 -0
  107. package/adminWww/assets/Nursery-Cxrv-xmv.js +1 -0
  108. package/adminWww/assets/Objects-C7k5tHdx.js +60 -0
  109. package/adminWww/assets/Office-CIXVNXkh.js +1 -0
  110. package/adminWww/assets/Outdoor Blinds-CXkkQc7j.js +1 -0
  111. package/adminWww/assets/Outdoors-BL5-A5jB.js +1 -0
  112. package/adminWww/assets/People-D60rnvXq.js +1 -0
  113. package/adminWww/assets/Playroom-Cq-XMXTL.js +1 -0
  114. package/adminWww/assets/Pool-DA49roJI.js +1 -0
  115. package/adminWww/assets/Pool-DLG0SZJN.js +1 -0
  116. package/adminWww/assets/Pool-jdz5Y8AB.svg +8 -0
  117. package/adminWww/assets/Power Consumption-CKf-DuPt.js +1 -0
  118. package/adminWww/assets/Printer-BBdg5KQ0.js +1 -0
  119. package/adminWww/assets/Pump-CAMAGxMm.svg +10 -0
  120. package/adminWww/assets/Pump-qElQ0u4I.js +1 -0
  121. package/adminWww/assets/Rear Wall-BNvjPc7z.js +1 -0
  122. package/adminWww/assets/Receiver-CM3as5YE.js +1 -0
  123. package/adminWww/assets/Sconces-C-gkKtaK.js +1 -0
  124. package/adminWww/assets/Second Floor-G72pwGsQ.svg +95 -0
  125. package/adminWww/assets/Second Floor-V-mYDL2A.js +1 -0
  126. package/adminWww/assets/Security-BD-3hOtV.js +1 -0
  127. package/adminWww/assets/Shading-BYTX3uGs.js +1 -0
  128. package/adminWww/assets/Shed-liUNwlvT.js +1 -0
  129. package/adminWww/assets/Shutters-C0RWQwOf.js +1 -0
  130. package/adminWww/assets/Shutters-HpXYtyYZ.svg +11 -0
  131. package/adminWww/assets/Sleeping Area-41NoHRj5.js +1 -0
  132. package/adminWww/assets/SmokeDetector-BI7HtY1L.js +1 -0
  133. package/adminWww/assets/Sockets-DGwEYIEX.js +1 -0
  134. package/adminWww/assets/Speaker-DYDUjQxp.js +1 -0
  135. package/adminWww/assets/Stairway-DlYPygtf.js +1 -0
  136. package/adminWww/assets/Stairwell-DbZPzEAa.js +1 -0
  137. package/adminWww/assets/State-DPLzxZ6D.js +1 -0
  138. package/adminWww/assets/Storeroom-DVXZ_Y0f.js +1 -0
  139. package/adminWww/assets/Stove-C_JAiJBF.js +1 -0
  140. package/adminWww/assets/Stove-DGkkEz5V.svg +12 -0
  141. package/adminWww/assets/Summer House-l_7dnk-K.js +1 -0
  142. package/adminWww/assets/Swimming Pool-CQBR5mIg.js +1 -0
  143. package/adminWww/assets/Table Lamps-G4idrhKm.js +1 -0
  144. package/adminWww/assets/Tabs-CFvfAcjP.js +137 -0
  145. package/adminWww/assets/Temperature Sensors-BzDeIhhc.js +1 -0
  146. package/adminWww/assets/Terrace-YmL9ugkA.js +1 -0
  147. package/adminWww/assets/Toilet-BKoDvjLo.js +1 -0
  148. package/adminWww/assets/Tv-GicrNRwV.js +1 -0
  149. package/adminWww/assets/Upstairs-W8fYn1Q6.js +1 -0
  150. package/adminWww/assets/Users-BQ3pWAxq.js +1 -0
  151. package/adminWww/assets/Vacuum Cleaner-BazNfd2m.js +1 -0
  152. package/adminWww/assets/Ventilation-D7F0rbZK.js +1 -0
  153. package/adminWww/assets/Wardrobe-0A_Xfr0y.svg +60 -0
  154. package/adminWww/assets/Wardrobe-Bns8F0nU.js +1 -0
  155. package/adminWww/assets/Washing Machines-DcDxpz1D.svg +16 -0
  156. package/adminWww/assets/Washing Machines-DyIMTxKc.js +1 -0
  157. package/adminWww/assets/Washroom-BqiNyqrk.js +1 -0
  158. package/adminWww/assets/Water Consumption-C0sLvwRF.js +1 -0
  159. package/adminWww/assets/Water Heater-Byq4Q86V.js +1 -0
  160. package/adminWww/assets/Water-Dcu-ZixL.js +1 -0
  161. package/adminWww/assets/Wc-BKoDvjLo.js +1 -0
  162. package/adminWww/assets/Weather-pQkhBG6o.js +1 -0
  163. package/adminWww/assets/Window-B0emTnKi.js +1 -0
  164. package/adminWww/assets/Windscreen-BOfsyYOM.svg +60 -0
  165. package/adminWww/assets/Windscreen-x8wYPJWL.js +1 -0
  166. package/adminWww/assets/Workshop-CKHcsro_.js +1 -0
  167. package/adminWww/assets/Workspace-DS72Rvmo.js +1 -0
  168. package/adminWww/assets/_commonjsHelpers-D6-XlEtG.js +1 -0
  169. package/adminWww/assets/ace-j1VT51C2.js +984 -0
  170. package/adminWww/assets/blueGrey-B0oIowPK.js +29 -0
  171. package/adminWww/assets/bootstrap-BNkcLa73.js +2024 -0
  172. package/adminWww/assets/bootstrap-CrpeRPv0.css +1 -0
  173. package/adminWww/assets/createSvgIcon-DH-uXnd0.js +1 -0
  174. package/adminWww/assets/echarts-BDq-rBJC.png +0 -0
  175. package/adminWww/assets/emotion-cache.browser.esm-B8BFze5o.js +1 -0
  176. package/adminWww/assets/emotion-react.browser.esm-DApPKwaj.js +8 -0
  177. package/adminWww/assets/emotion-serialize.esm-BUa21YfQ.js +1 -0
  178. package/adminWww/assets/emotion-styled.browser.esm-Dc05hmeu.js +1 -0
  179. package/adminWww/assets/emotion-utils.browser.esm-DOjH6Olm.js +1 -0
  180. package/adminWww/assets/extends-CF3RwP-h.js +1 -0
  181. package/adminWww/assets/geosearch.module-CWfRtxrN.js +1 -0
  182. package/adminWww/assets/group1-CmFsZszo.svg +92 -0
  183. package/adminWww/assets/group1-DBYxcyxq.js +1 -0
  184. package/adminWww/assets/group10-BIcZMfE3.js +1 -0
  185. package/adminWww/assets/group10-Dp9tRs6I.svg +148 -0
  186. package/adminWww/assets/group2-BUQSell7.js +1 -0
  187. package/adminWww/assets/group2-CuvSswwx.svg +136 -0
  188. package/adminWww/assets/group3-B0AdMrOp.js +1 -0
  189. package/adminWww/assets/group3-COTQs_Rv.svg +69 -0
  190. package/adminWww/assets/group4-TeCgDok7.js +1 -0
  191. package/adminWww/assets/group4-m2Zjf7r0.svg +93 -0
  192. package/adminWww/assets/group5-CJ_-VPxg.js +1 -0
  193. package/adminWww/assets/group5-T3CGkJFm.svg +83 -0
  194. package/adminWww/assets/group6-CLVorg7G.svg +67 -0
  195. package/adminWww/assets/group6-JW-nEhw_.js +1 -0
  196. package/adminWww/assets/group7-CWpVuR4T.js +1 -0
  197. package/adminWww/assets/group7-D-h4KR6w.svg +99 -0
  198. package/adminWww/assets/group8-BXzJmR7Y.svg +146 -0
  199. package/adminWww/assets/group8-CRGBxCwd.js +1 -0
  200. package/adminWww/assets/group9-BXRQchYG.js +1 -0
  201. package/adminWww/assets/hostInit-WWj7Ma6O.js +2 -0
  202. package/adminWww/assets/iconBase-CgxZ5MMC.js +1 -0
  203. package/adminWww/assets/index-8HslT92O.js +14 -0
  204. package/adminWww/assets/index-Bj8P5tgE.js +55 -0
  205. package/adminWww/assets/index-Bsv_DXxB.js +24 -0
  206. package/adminWww/assets/index-C1TmeS7j.js +1 -0
  207. package/adminWww/assets/index-C6O1p4S2.js +2 -0
  208. package/adminWww/assets/index-CJvbfjSs.js +1 -0
  209. package/adminWww/assets/index-Cm4u8yKm.js +7 -0
  210. package/adminWww/assets/index-Co3YA5NW.js +9 -0
  211. package/adminWww/assets/index-D7Rlw-5R.js +5 -0
  212. package/adminWww/assets/index-DiMYzxTU.js +1 -0
  213. package/adminWww/assets/index-HOidq_rM.js +1 -0
  214. package/adminWww/assets/index-gHyOgbGJ.js +1 -0
  215. package/adminWww/assets/index-jZ28cZd6.js +10 -0
  216. package/adminWww/assets/iobroker_admin__loadShare___mf_0_emotion_mf_1_react__loadShare__-gw2iqPBS.js +1 -0
  217. package/adminWww/assets/iobroker_admin__loadShare__leaflet__loadShare__-B1OZ7tj-.js +1 -0
  218. package/adminWww/assets/iobroker_admin__loadShare__prop_mf_2_types__loadShare__-BGyJCibC.js +1 -0
  219. package/adminWww/assets/iobroker_admin__loadShare__react__loadShare__-DtlEM_52.js +1 -0
  220. package/adminWww/assets/iobroker_admin__mf_v__runtimeInit__mf_v__-VDoBF19b.js +10 -0
  221. package/adminWww/assets/leaflet-src-A2ZHl6nF.js +4 -0
  222. package/adminWww/assets/locale-9HzB0nxi.js +1 -0
  223. package/adminWww/assets/longLogo-Cq2C5cCK.svg +99 -0
  224. package/adminWww/assets/material-nACPaH8J.woff +0 -0
  225. package/adminWww/assets/material-peAUziEw.woff2 +0 -0
  226. package/adminWww/assets/preload-helper-C1FmrZbK.js +1 -0
  227. package/adminWww/assets/sentry-9i5rBs6L.js +1 -0
  228. package/adminWww/assets/user1-BFYoPwj1.svg +103 -0
  229. package/adminWww/assets/user1-BHHH0LIq.js +1 -0
  230. package/adminWww/assets/user10-DvWuZ_uc.svg +61 -0
  231. package/adminWww/assets/user10-Dvmqf8l1.js +1 -0
  232. package/adminWww/assets/user11-C8ly5pY7.js +1 -0
  233. package/adminWww/assets/user11-Ch5DvO34.svg +89 -0
  234. package/adminWww/assets/user12-CHtaF3qG.js +1 -0
  235. package/adminWww/assets/user12-DEiNnJWd.svg +108 -0
  236. package/adminWww/assets/user2-BN56rMPt.js +1 -0
  237. package/adminWww/assets/user2-kVvfO6hI.svg +21 -0
  238. package/adminWww/assets/user3-B1MPu8jB.svg +21 -0
  239. package/adminWww/assets/user3-Mx6XZSLK.js +1 -0
  240. package/adminWww/assets/user4-DmVDIOoi.svg +57 -0
  241. package/adminWww/assets/user4-DpEs_YiD.js +1 -0
  242. package/adminWww/assets/user5-CVfrnlXE.js +1 -0
  243. package/adminWww/assets/user5-DwFpzcW1.svg +47 -0
  244. package/adminWww/assets/user6-C7HkYnq4.js +1 -0
  245. package/adminWww/assets/user6-DHgFm0fc.svg +94 -0
  246. package/adminWww/assets/user7-DkJFgUmb.svg +54 -0
  247. package/adminWww/assets/user7-VAQcubFn.js +1 -0
  248. package/adminWww/assets/user8-BOYrpMoH.svg +80 -0
  249. package/adminWww/assets/user8-CwACr_jq.js +1 -0
  250. package/adminWww/assets/user9-BLdaSIG0.svg +79 -0
  251. package/adminWww/assets/user9-Dk4Mlhcc.js +1 -0
  252. package/adminWww/assets/virtualExposes-BIHI7g3E.js +1 -0
  253. package/adminWww/assets/wizard-finish-B2y4teLv.jpg +0 -0
  254. package/adminWww/assets/wizard-welcome-BhniCBF1.jpg +0 -0
  255. package/adminWww/assets/zh-cn-CULr7ytT.js +24 -0
  256. package/adminWww/index.html +107 -0
  257. package/adminWww/mf-manifest.json +1 -0
  258. package/adminWww/remoteEntry.js +2 -0
  259. package/io-package.json +2 -2
  260. package/package.json +4 -4
package/README.md CHANGED
@@ -87,7 +87,7 @@ The icons may not be reused in other projects without the proper flaticon licens
87
87
  <!--
88
88
  ### **WORK IN PROGRESS**
89
89
  -->
90
- ### 7.6.11 (2025-04-22)
90
+ ### 7.6.13 (2025-04-22)
91
91
 
92
92
  - (@GermanBluefox) Added the device type selector and icon to adapter-react-v5
93
93
  - (@GermanBluefox) Fixed authentication issues with oauth2
@@ -0,0 +1,2 @@
1
+ import{j as t}from"./DefaultPropsProvider-BrbE0teb.js";import{i as k}from"./iobroker_admin__loadShare__react__loadShare__-DtlEM_52.js";import{s as f,ab as T,I as w,i as s,a as u,U as y}from"./bootstrap-BNkcLa73.js";import{h as _}from"./zh-cn-CULr7ytT.js";import{S as C}from"./State-DPLzxZ6D.js";const l={closeButton:c=>({position:"absolute",right:8,top:8,color:c.palette.grey[500]}),languageButton:{position:"absolute",right:60,top:8},languageButtonActive:c=>({color:c.palette.primary.main}),typography:{paddingRight:30},version:c=>({background:"#4dabf5",borderRadius:"3px",pl:"10px",fontWeight:"bold",color:c.palette.mode==="dark"?"black":"white"}),wrapperButton:{"@media screen and (max-width: 465px)":{"& *":{fontSize:10}},"@media screen and (max-width: 380px)":{"& *":{fontSize:9}}},messageText:{},messageIcon:{width:32,height:32,marginRight:8},messageColor_warn:{color:"#cb7642"},messageColor_error:{color:"#f5614d"},messageColor_info:{color:"#5abd29"},messageTitle_warn:c=>({background:"#cb7642",borderRadius:"3px",pl:"10px",fontWeight:"bold",color:c.palette.mode==="dark"?"black":"white"}),messageTitle_error:c=>({background:"#f5614d",borderRadius:"3px",pl:"10px",fontWeight:"bold",color:c.palette.mode==="dark"?"black":"white"}),messageTitle_info:c=>({background:"#5abd29",borderRadius:"3px",pl:"10px",fontWeight:"bold",color:c.palette.mode==="dark"?"black":"white"}),messageDialogText:{fontSize:18},messageDialogTitle:{},versionTime:{fontSize:"smaller",opacity:.5,marginLeft:4},dialogPaper:{maxWidth:880},repoStableVersionText:c=>({color:c.palette.mode==="dark"?"#8dff7a":"#2b9800",fontWeight:"bold",marginLeft:"4px"}),repoLatestVersionText:c=>({color:c.palette.mode==="dark"?"#a3fcff":"#005498",fontWeight:"bold",marginLeft:"4px"})};function D(c,e,d,n){let p=null;return c&&c.forEach(o=>{let g=!o.condition||!o.condition.rules;if(o.condition&&o.condition.rules){const x=(Array.isArray(o.condition.rules)?o.condition.rules:[o.condition.rules]).map(i=>{let r,a,h;if(i.includes("oldVersion"))r=e,i=i.substring(10);else if(i.includes("newVersion"))r=d,i=i.substring(10);else{if(i==="installed")return!!e;if(i==="!"||i==="not-installed")return!e;if(n){const v=i.match(/([a-z][-a-z_0-9]+)([!=<>]+)([.\d]+)/);if(v){const m=Object.keys(n).find(b=>{var j;return((j=n[b])==null?void 0:j.name)===v[1]});if(m){r=n[m].version,a=v[2],h=v[3];try{return a==="=="?f.eq(r,h):a===">"?f.gt(r,h):a==="<"?f.lt(r,h):a===">="?f.gte(r,h):a==="<="?f.lte(r,h):a==="!="?f.neq(r,h):(console.warn(`Unknown rule ${r}${i}`),!1)}catch{return console.warn(`Cannot compare ${r}${i}`),!1}}}else if(i.match(/^[!=<>]+/)){if(i.startsWith("!")){const m=i.substring(1);if(!Object.keys(n).find(b=>{var j;return((j=n[b])==null?void 0:j.name)===m}))return!0}}else if(Object.keys(n).find(m=>{var b;return((b=n[m])==null?void 0:b.name)===i}))return!0;return!1}}i[1]>="0"&&i[1]<="9"?(a=i[0],h=i.substring(1)):(a=i.substring(0,2),h=i.substring(2));try{if(a==="==")return f.eq(r,h);if(a===">")return f.gt(r,h);if(a==="<")return f.lt(r,h);if(a===">=")return f.gte(r,h);if(a==="<=")return f.lte(r,h);if(a==="!=")return f.neq(r,h);console.warn(`Unknown rule ${r}${i}`)}catch{console.warn(`Cannot compare ${r}${i}`)}return!1});o.condition.operand==="or"?g=x.find(i=>i):g=x.findIndex(i=>!i)===-1}g&&(p=p||[],p.push({title:o.title,text:o.text,link:o.link,linkText:o.linkText,buttons:o.buttons,level:o.level}))}),p}class $ extends k.Component{t;mobile;messages;lang;constructor(e){var n,p;super(e),this.t=e.t,this.mobile=window.innerWidth<T,this.state={showMessageDialog:!1};const d=!1;this.messages=D(((n=this.props.adapterObject)==null?void 0:n.messages)||d,this.props.installedVersion,(p=this.props.adapterObject)==null?void 0:p.version,this.props.instances),this.lang=w.getLanguage(),_.locale(this.lang)}getDependencies(){return(this.props.dependencies||[]).map(e=>t.jsx(C,{state:e.rightVersion,children:`${e.name}${e.version?` (${e.version})`:""}: ${e.installed?e.installedVersion:"-"}`},e.name))}getNews(){var p;const e=[];let d,n;return this.props.isStable!==void 0&&(this.props.isStable?(d=this.props.adapterObject.version,n=this.props.adapterObject.latestVersion):(d=this.props.adapterObject.stable,n=this.props.adapterObject.version)),(p=this.props.news)==null||p.forEach(o=>{var x,i,r;const g=(o.news?o.news.split(`
2
+ `):[]).map(a=>a.trim().replace(/^\*\s*/,"").replace(/<!--[^>]*->/,"").replace(/<! -[^>]*->/,"").replace(/<!--|--!?>/g,"").trim()).filter(a=>!!a);(x=this.props.adapterObject)!=null&&x.version&&o.version&&f.gt(o.version,(i=this.props.adapterObject)==null?void 0:i.version)||e.push(t.jsxs(s.Grid2,{children:[t.jsxs(s.Typography,{sx:l.version,children:[o.version,n&&n===o.version?t.jsx(s.Box,{component:"span",sx:l.repoLatestVersionText,children:"(latest)"}):null,d&&d===o.version?t.jsx(s.Box,{component:"span",sx:l.repoStableVersionText,children:`(${w.t("stable")})`}):null,((r=this.props.adapterObject)==null?void 0:r.version)===o.version?t.jsxs("span",{style:l.versionTime,children:["(",_(this.props.adapterObject.versionDate).fromNow(),")"]}):null]}),g.map((a,h)=>t.jsx(s.Typography,{component:"div",variant:"body2",children:`• ${a}`},`${o.version}-${h}`))]},o.version))}),e}getText(e,d){return e&&typeof e=="object"?d?e.en:e[this.lang]||e.en:typeof e=="object"?"":e}renderOneMessage(e,d){return t.jsxs(s.Grid2,{children:[t.jsx(s.Typography,{sx:l[`messageTitle_${e.level||"warn"}`],children:this.getText(e.title,this.props.noTranslation)||""}),t.jsx(s.Typography,{component:"div",variant:"body2",style:l.messageText,children:this.getText(e.text,this.props.noTranslation)||""}),e.link?t.jsx(s.Button,{onClick:()=>{window.open(e.link,"_blank").focus()},startIcon:t.jsx(u.Public,{}),variant:"contained",color:"grey",children:this.getText(e.linkText,this.props.noTranslation)||this.props.t("More info")}):null]},d)}renderMessages(){return this.messages?t.jsx(s.Grid2,{container:!0,spacing:2,direction:"column",wrap:"nowrap",sx:{marginBottom:1},children:this.messages.map((e,d)=>this.renderOneMessage(e,d))}):null}renderMessageDialog(){var n;if(!this.state.showMessageDialog)return null;const e=this.messages.find(p=>p.buttons),d=(n=this.props.adapterObject)==null?void 0:n.version;return t.jsxs(s.Dialog,{onClose:()=>this.setState({showMessageDialog:!1}),open:!0,children:[t.jsx(s.DialogTitle,{style:l.messageDialogTitle,children:this.getText(e.title,this.props.noTranslation)||this.props.t("Please confirm")}),t.jsxs(s.DialogContent,{style:l.messageDialogText,children:[e.level==="warn"?t.jsx(u.Warning,{style:{...l.messageIcon,...l.messageColor_warn}}):null,e.level==="error"?t.jsx(u.Error,{style:{...l.messageIcon,...l.messageColor_error}}):null,e.level==="info"?t.jsx(u.Info,{style:{...l.messageIcon,...l.messageColor_info}}):null,this.getText(e.text,this.props.noTranslation)]}),t.jsxs(s.DialogActions,{children:[e.link?t.jsx(s.Button,{onClick:()=>{window.open(e.link,"_blank").focus()},startIcon:t.jsx(u.Public,{}),variant:"contained",color:"secondary",children:this.getText(e.linkText,this.props.noTranslation)||this.props.t("More info")}):null,e.link?t.jsx("div",{style:{flexGrow:1}}):null,e.buttons.map((p,o)=>p==="ok"?t.jsx(s.Button,{variant:"contained",onClick:()=>this.setState({showMessageDialog:!1},()=>this.props.onUpdate(d)),color:"primary",startIcon:t.jsx(u.Check,{}),children:this.t("Update")},o):p==="agree"?t.jsx(s.Button,{sx:l[`messageTitle_${e.level||"warn"}`],variant:"contained",onClick:()=>this.setState({showMessageDialog:!1},()=>this.props.onUpdate(d)),color:"primary",startIcon:t.jsx(u.Check,{}),children:this.t("Agree")},o):p==="cancel"?t.jsx(s.Button,{variant:"contained",onClick:()=>this.setState({showMessageDialog:!1}),startIcon:t.jsx(u.Close,{}),color:"grey",children:this.t("Cancel")},o):null)]})]})}render(){var p,o;const e=(p=this.props.adapterObject)==null?void 0:p.version,d=(o=this.props.news)==null?void 0:o.every(g=>g.downloaded),n=this.getNews();return t.jsxs(s.Dialog,{onClose:this.props.onClose,open:!0,sx:{"& .MuiDialog-paper":l.dialogPaper},children:[this.renderMessageDialog(),t.jsx(s.DialogTitle,{children:t.jsxs(s.Typography,{component:"h2",variant:"h6",sx:{"&.MuiTypography-root":l.typography},children:[t.jsx("div",{style:{width:"calc(100% - 60px)"},children:this.t('Update "%s" to v%s',this.props.adapter,e)}),t.jsx(s.IconButton,{size:"large",sx:l.closeButton,onClick:this.props.onClose,children:t.jsx(u.Close,{})}),this.lang!=="en"&&this.props.toggleTranslation&&!d?t.jsx(s.IconButton,{size:"large",style:y.getStyle(this.props.theme,l.languageButton,this.props.noTranslation&&l.languageButtonActive),onClick:this.props.toggleTranslation,title:w.t("Disable/Enable translation"),children:t.jsx(u.Language,{})}):null]})}),t.jsxs(s.DialogContent,{dividers:!0,children:[this.renderMessages(),t.jsxs(s.Grid2,{container:!0,direction:"column",spacing:2,wrap:"nowrap",children:[this.props.dependencies&&this.props.dependencies.length>0&&this.props.dependencies.find(g=>!g.rightVersion)&&t.jsxs(s.Grid2,{children:[t.jsx(s.Typography,{variant:"h6",gutterBottom:!0,children:this.t("Dependencies")}),this.getDependencies()]}),n.length?t.jsxs(s.Grid2,{children:[t.jsx(s.Typography,{variant:"h6",gutterBottom:!0,children:this.t("Change log")}),t.jsx(s.Grid2,{container:!0,spacing:2,direction:"column",wrap:"nowrap",children:n})]}):this.t("No change log available")]})]}),t.jsxs(s.DialogActions,{sx:l.wrapperButton,children:[!!this.props.rightDependencies&&this.props.onIgnore&&e&&t.jsx(s.Button,{id:"adapter-update-dialog-ignore",variant:"outlined",onClick:()=>this.props.onIgnore(e),color:"primary",children:this.t("Ignore version %s",e)}),t.jsx(s.Button,{variant:"contained",id:"adapter-update-dialog-ok",autoFocus:!0,disabled:!this.props.rightDependencies||!e||!this.props.adapterObject,onClick:()=>{var g;(g=this.messages)!=null&&g.find(x=>x.buttons)?this.setState({showMessageDialog:!0}):this.props.onUpdate(e)},color:"primary",startIcon:t.jsx(u.Check,{}),children:this.mobile?null:this.props.textUpdate?this.props.textUpdate:this.t("Update")}),this.props.textInstruction?t.jsx(s.Button,{id:"adapter-update-dialog-instructions",variant:"contained",autoFocus:!0,disabled:!this.props.rightDependencies||!e||!this.props.adapterObject,onClick:()=>{var g;(g=this.messages)!=null&&g.find(x=>x.buttons)?this.setState({showMessageDialog:!0}):this.props.onInstruction()},color:"primary",startIcon:t.jsx(u.Book,{}),children:this.mobile?null:this.props.textInstruction}):null,t.jsx(s.Button,{id:"adapter-update-dialog-cancel",variant:"contained",onClick:()=>this.props.onClose(),color:"grey",startIcon:t.jsx(u.Close,{}),children:this.mobile?null:this.t("Close")})]})]})}}export{$ as A,D as c};
@@ -0,0 +1,7 @@
1
+ import{j as e,E as pt,B as mt,J as xt}from"./DefaultPropsProvider-BrbE0teb.js";import{i as L,R as q}from"./iobroker_admin__loadShare__react__loadShare__-DtlEM_52.js";import{s as V,i as o,U as R,I as w,a as u,C as ft,G as yt,b as z,H as wt,L as bt,c as N,A as jt,d as Ct,e as Z,f as dt,T as vt,S as st,g as At,h as Tt}from"./bootstrap-BNkcLa73.js";import{F as ct}from"./index-HOidq_rM.js";import{M as St,s as It,C as it}from"./sentry-9i5rBs6L.js";import{c as Q,A as kt}from"./AdapterUpdateDialog-B8g_ZuhP.js";import{C as Vt}from"./CustomModal-4eTuDNla.js";import{a as ht}from"./blueGrey-B0oIowPK.js";import"./iobroker_admin__loadShare__prop_mf_2_types__loadShare__-BGyJCibC.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./iobroker_admin__mf_v__runtimeInit__mf_v__-VDoBF19b.js";import"./emotion-serialize.esm-BUa21YfQ.js";import"./iobroker_admin__loadShare___mf_0_emotion_mf_1_react__loadShare__-gw2iqPBS.js";import"./ace-j1VT51C2.js";import"./FilledInput-D-tz8rvg.js";import"./preload-helper-C1FmrZbK.js";import"./iobroker_admin__loadShare__leaflet__loadShare__-B1OZ7tj-.js";import"./extends-CF3RwP-h.js";import"./iconBase-CgxZ5MMC.js";import"./zh-cn-CULr7ytT.js";import"./State-DPLzxZ6D.js";import"./emotion-cache.browser.esm-B8BFze5o.js";const A={smallAvatar:{width:24,height:24},listItem:p=>({mb:"2px",background:p.palette.background,"@media screen and (max-width: 400px)":{pl:"2px"}}),toVersion:p=>({color:p.palette.mode==="dark"?"#00dc00":"#008100",fontWeight:"bold",ml:"4px"}),updateDone:{background:"#5ef05e80",opacity:.7},minWidthCss:{"@media screen and (max-width: 400px)":{minWidth:32}},wrapperButton:{},typography:{paddingRight:30},versions:{minWidth:110,display:"inline-block"},closeButton:p=>({position:"absolute",right:8,top:8,color:p.palette.grey[500]}),languageButton:{position:"absolute",right:60,top:8},languageButtonActive:p=>({color:p.palette.primary.main}),versionHeader:p=>({background:"#4dabf5",borderRadius:"3px",pl:"10px",fontWeight:"bold",color:p.palette.mode==="dark"?"black":"white"}),repoStableVersionText:p=>({color:p.palette.mode==="dark"?"#8dff7a":"#2b9800",fontWeight:"bold",marginLeft:"4px"}),repoLatestVersionText:p=>({color:p.palette.mode==="dark"?"#a3fcff":"#005498",fontWeight:"bold",marginLeft:"4px"})};class tt extends L.Component{updateAvailable;initialVersions;currentRef;current;constructor(t){super(t),this.updateAvailable=this.detectUpdates(),this.initialVersions={},this.updateAvailable.forEach(s=>this.initialVersions[s]=this.props.installed[s].version),this.state={showNews:null},this.currentRef=q.createRef(),this.current=t.current,this.props.onUpdateSelected([...this.updateAvailable],this.updateAvailable)}static isUpdateAvailable(t){const{oldVersion:s,newVersion:i,name:r}=t;try{return V.gt(i,s)}catch{return console.warn(`Cannot compare "${i}" and "${s}" of adapter ${r}`),!1}}detectUpdates(){const t=[];return Object.keys(this.props.repository).forEach(s=>{const i=this.props.installed[s];s==="js-controller"||s==="admin"||i&&this.props.repository[s].version&&i.ignoreVersion!==this.props.repository[s].version&&tt.isUpdateAvailable({oldVersion:i.version,newVersion:this.props.repository[s].version,name:s})&&(Q(this.props.repository[s].messages,i.version,this.props.repository[s].version)?console.log(`Adapter ${s} is filtered out from update all functionality, because it has messages which need to be read before update`):t.push(s))}),t.sort(),t}getNews(t){const s=this.props.repository[t],i=this.props.installed[t],r=[];return i&&(s!=null&&s.news)&&Object.keys(s.news).forEach(n=>{try{V.gt(n,i.version)&&r.push({version:n,news:this.props.noTranslation?s.news[n].en:s.news[n][this.props.lang]||s.news[n].en})}catch{console.warn(`Cannot compare "${n}" and "${i.version}"`)}}),r}renderOneAdapter(t){const s=this.props.selected.includes(t);if((this.props.finished||this.props.inProcess)&&!s||!this.props.installed[t])return null;const i=`.${this.props.installed[t].localIcon}`;return e.jsxs(o.ListItem,{dense:!0,sx:{"&.MuiListItem-root":R.getStyle(this.props.theme,A.listItem,this.props.updated.includes(t)&&A.updateDone)},ref:this.props.current===t?this.currentRef:null,secondaryAction:!this.props.finished&&!this.props.inProcess?e.jsx(o.Checkbox,{edge:"end",checked:s,tabIndex:-1,disableRipple:!0,disabled:this.props.inProcess,onClick:()=>{const r=[...this.props.selected],n=r.indexOf(t);n!==-1?r.splice(n,1):(r.push(t),r.sort()),this.props.onUpdateSelected(r)}}):this.props.current===t&&!this.props.stopped&&!this.props.finished&&e.jsx(o.CircularProgress,{}),children:[e.jsx(o.ListItemIcon,{sx:A.minWidthCss,children:e.jsx(o.Avatar,{variant:"square",alt:t,src:i,style:A.smallAvatar})}),e.jsx(o.ListItemText,{primary:t,title:this.getNews(t).map(r=>`${r.version}: ${r.news}`).join(`
2
+ `),secondary:e.jsxs("span",{children:[e.jsxs("div",{style:A.versions,children:[this.initialVersions[t]," →",e.jsx(o.Box,{component:"span",sx:A.toVersion,children:this.props.repository[t].version})]}),e.jsx(o.IconButton,{title:w.t("Show change log"),onClick:()=>this.setState({showNews:{adapter:t,version:this.props.repository[t].version,fromVersion:this.initialVersions[t]}}),size:"small",children:e.jsx(u.Info,{})})]})})]},t)}getReactNews(t,s){var d,a,g,x;const i=this.props.repository[t],r=this.props.installed[t];s=s||r.version;const n=[];let l,c;const h=this.props.repository._repoInfo;return h!=null&&h.stable?(l=(d=this.props.repository[t])==null?void 0:d.version,c=(a=this.props.repository[t])==null?void 0:a.latestVersion):(l=(g=this.props.repository[t])==null?void 0:g.stable,c=(x=this.props.repository[t])==null?void 0:x.version),r&&(i!=null&&i.news)&&Object.keys(i.news).forEach(m=>{try{if(V.gt(m,s)&&i.news[m]){const j=(this.props.noTranslation?i.news[m].en||"":i.news[m][this.props.lang]||i.news[m].en||"").split(`
3
+ `).map(O=>O.trim().replace(/^\*\s?/,"").replace(/<!--[^>]*->/g,"").replace(/<! -[^>]*->/g,"").trim()).filter(O=>!!O);n.push(e.jsxs(o.Grid2,{children:[e.jsxs(o.Typography,{sx:A.versionHeader,children:[m,c===m?e.jsx(o.Box,{component:"span",sx:A.repoLatestVersionText,children:"(latest)"}):null,l===m?e.jsx(o.Box,{component:"span",sx:A.repoStableVersionText,children:`(${w.t("stable")})`}):null]}),j.map((O,S)=>e.jsx(o.Typography,{component:"div",variant:"body2",children:`• ${O}`},`${m}-${S}`))]},m))}}catch{console.warn(`Cannot compare "${m}" and "${s}"`)}}),n}renderShowNews(){if(this.state.showNews){const t=this.getReactNews(this.state.showNews.adapter,this.state.showNews.fromVersion),s=R.getStyle(this.props.theme,A.closeButton),i=R.getStyle(this.props.theme,A.languageButtonActive);return e.jsxs(o.Dialog,{onClose:()=>this.setState({showNews:null}),open:!0,children:[e.jsx(o.DialogTitle,{children:e.jsxs(o.Typography,{component:"h2",variant:"h6",sx:{"&.MuiTypography-root":A.typography},children:[e.jsx("div",{style:{width:"calc(100% - 60px)"},children:w.t('Update "%s" to v%s',this.state.showNews.adapter,this.state.showNews.version)}),e.jsx(o.IconButton,{size:"large",style:s,onClick:()=>this.setState({showNews:null}),children:e.jsx(u.Close,{})}),w.getLanguage()!=="en"&&this.props.toggleTranslation?e.jsx(o.IconButton,{size:"large",style:{...A.languageButton,...this.props.noTranslation?i:void 0},onClick:this.props.toggleTranslation,title:w.t("Disable/Enable translation"),children:e.jsx(u.Language,{})}):null]})}),e.jsx(o.DialogContent,{dividers:!0,children:e.jsx(o.Grid2,{container:!0,direction:"column",spacing:2,wrap:"nowrap",children:t.length?e.jsxs(o.Grid2,{children:[e.jsx(o.Typography,{variant:"h6",gutterBottom:!0,children:w.t("Change log")}),e.jsx(o.Grid2,{container:!0,spacing:2,direction:"column",wrap:"nowrap",children:t})]}):w.t("No change log available")})}),e.jsx(o.DialogActions,{style:A.wrapperButton,children:e.jsx(o.Button,{variant:"contained",onClick:()=>this.setState({showNews:null}),color:"grey",startIcon:e.jsx(u.Close,{}),children:w.t("Close")})})]})}return null}render(){return this.current!==this.props.current&&(this.current=this.props.current,setTimeout(()=>{var t;return(t=this.currentRef.current)==null?void 0:t.scrollIntoView()},200)),e.jsxs(o.List,{style:A.root,children:[this.updateAvailable.map(t=>this.renderOneAdapter(t)),this.renderShowNews()]})}}const P={dialogRoot:{height:"calc(100% - 64px)"},wrapperHead:{justifyContent:"space-between",display:"flex"},checkbox:{marginRight:10},appBar:p=>({flexWrap:"wrap",position:"sticky",bottom:-10,pl:1,background:p.name==="blue"?"#5d6467":p.name==="dark"?"#5b5b5b":"#FFF"}),container:{overflow:"hidden",height:"calc(100% - 48px)","@media screen and (max-width: 602px)":{height:"auto"}},content:{"@media screen and (max-width: 500px)":{p:1}},languageButton:{position:"absolute",right:73,top:11},languageButtonActive:p=>({color:p.palette.primary.main})};class Dt extends L.Component{updateAvailable=[];onAdapterFinished;processList;constructor(t){super(t),this.state={selected:[],inProcess:!1,finished:!1,current:"",updated:[],stopped:!1,debug:(window._localStorage||window.localStorage).getItem("AdaptersUpdaterDialog.debug")==="true",stopOnError:(window._localStorage||window.localStorage).getItem("AdaptersUpdaterDialog.stopOnError")!=="false",closeOnFinished:(window._localStorage||window.localStorage).getItem("AdaptersUpdaterDialog.closeOnFinished")==="true",currentVersion:""},this.updateAvailable=[]}updateAdapter(t,s,i){this.onAdapterFinished=i,this.setState({current:t,currentVersion:s})}onStartUpdate(){this.setState({inProcess:!0},()=>{this.props.onSetCommandRunning(!0),this.processList=[...this.state.selected].map(t=>{var s;return{adapter:t,version:(s=this.props.repository[t])==null?void 0:s.version}}),this.updateAdapters(()=>{this.setState({inProcess:!1,finished:!0},()=>{this.props.onSetCommandRunning(!1),this.state.closeOnFinished&&this.props.onClose(!!this.state.updated.length)})})})}updateAdapters(t){if(!this.processList||!this.processList.length||this.state.stopped)t&&t();else{const{adapter:s,version:i}=this.processList.shift();this.updateAdapter(s,i,()=>{const r=[...this.state.updated];r.push(s),this.setState({updated:r},()=>setTimeout(()=>this.updateAdapters(t),200))})}}render(){const t=this.props.noTranslation?R.getStyle(this.props.theme,P.languageButtonActive):void 0;return e.jsxs(o.Dialog,{open:!0,maxWidth:"lg",fullWidth:!!this.state.current,onClose:()=>this.props.onClose(!!this.state.updated.length),"aria-labelledby":"update-dialog-title","aria-describedby":"update-dialog-description",sx:{"& .MuiPaper-root":P.dialogRoot},scroll:"paper",children:[e.jsx(o.DialogTitle,{id:"update-dialog-title",children:e.jsxs("div",{style:P.wrapperHead,children:[this.props.t("Update %s adapter(s)",this.state.selected.length),!this.state.finished&&!this.state.inProcess&&e.jsx(o.Tooltip,{title:this.props.t("Select/Unselect all"),slotProps:{popper:{sx:{pointerEvents:"none"}}},children:e.jsx(o.Checkbox,{checked:this.state.selected.length===this.updateAvailable.length,style:P.checkbox,tabIndex:-1,indeterminate:this.state.selected.length!==this.updateAvailable.length&&this.state.selected.length!==0,disableRipple:!0,onClick:()=>{let s=[];this.state.selected.length!==this.updateAvailable.length&&(s=[...this.updateAvailable]),this.setState({selected:s})}})}),w.getLanguage()!=="en"&&this.props.toggleTranslation?e.jsx(o.IconButton,{size:"large",style:{...P.languageButton,...t},onClick:()=>this.props.toggleTranslation(),title:w.t("Disable/Enable translation"),children:e.jsx(u.Language,{})}):null]})}),e.jsxs(o.DialogContent,{sx:{"&.MuiDialogContent-root":P.content},style:{height:"100%"},children:[e.jsxs(o.Grid2,{container:!0,direction:"row",sx:P.container,children:[e.jsx(o.Grid2,{style:{height:"100%",overflow:"hidden",width:this.state.current?250:"100%"},children:e.jsx("div",{style:{height:"100%",overflow:"auto"},children:e.jsx(tt,{finished:this.state.finished,inProcess:this.state.inProcess,selected:this.state.selected,current:this.state.current,stopped:this.state.stopped,updated:this.state.updated,lang:this.props.lang,installed:this.props.installed,repository:this.props.repository,noTranslation:this.props.noTranslation,toggleTranslation:this.props.toggleTranslation,onUpdateSelected:(s,i)=>{i&&(this.updateAvailable=i),this.setState({selected:s})},theme:this.props.theme})})}),!!this.state.current&&e.jsx(o.Grid2,{style:{height:"100%",overflow:"hidden",width:"calc(100% - 260px)",minWidth:240},children:e.jsx(ft,{noSpacing:!0,ready:!0,host:this.props.currentHost,socket:this.props.socket,t:this.props.t,cmd:`upgrade ${this.state.current}@${this.state.currentVersion}${this.state.debug?" --debug":""}`,onFinished:()=>this.onAdapterFinished(),errorFunc:()=>{this.state.stopOnError?(this.setState({stopped:!0,finished:!0}),this.onAdapterFinished=null,this.props.onSetCommandRunning(!1)):this.onAdapterFinished()}},this.state.current)})]}),e.jsxs(o.Toolbar,{variant:"dense",disableGutters:!0,sx:P.appBar,children:[e.jsx(o.FormControlLabel,{control:e.jsx(o.Checkbox,{disabled:this.state.finished,checked:this.state.stopOnError,onChange:()=>{(window._localStorage||window.localStorage).setItem("AdaptersUpdaterDialog.stopOnError",this.state.stopOnError?"false":"true"),this.setState({stopOnError:!this.state.stopOnError})}}),label:this.props.t("Stop on error")}),e.jsx(o.FormControlLabel,{control:e.jsx(o.Checkbox,{disabled:this.state.finished,checked:this.state.closeOnFinished,onChange:()=>{(window._localStorage||window.localStorage).setItem("AdaptersUpdaterDialog.closeOnFinished",this.state.closeOnFinished?"false":"true"),this.setState({closeOnFinished:!this.state.closeOnFinished})}}),label:this.props.t("Close on finished")}),e.jsx(o.FormControlLabel,{control:e.jsx(o.Checkbox,{disabled:this.state.finished||this.state.inProcess,checked:this.state.debug,onChange:()=>{(window._localStorage||window.localStorage).setItem("AdaptersUpdaterDialog.debug",this.state.debug?"false":"true"),this.setState({debug:!this.state.debug})}}),label:this.props.t("Debug info")})]})]}),e.jsxs(o.DialogActions,{children:[e.jsx(o.Button,{id:"adapters-update-dialog-update",variant:"contained",disabled:this.state.stopped||this.state.inProcess||this.state.finished||!this.state.selected.length,onClick:()=>this.onStartUpdate(),color:"primary",autoFocus:!0,startIcon:e.jsx(u.Check,{}),children:this.props.t("Update")}),e.jsx(o.Button,{id:"adapters-update-dialog-cancel",variant:"contained",disabled:!this.state.inProcess,color:"grey",startIcon:e.jsx(u.Cancel,{}),onClick:()=>{this.setState({stopped:!0,finished:!0}),this.props.onSetCommandRunning(!1)},children:this.props.t("Cancel")}),e.jsx(o.Button,{id:"adapters-update-dialog-close",variant:"contained",onClick:()=>this.props.onClose(!!this.state.updated.length),disabled:this.state.inProcess&&!this.state.stopped,color:this.state.stopped?"error":"grey",startIcon:e.jsx(u.Close,{}),children:this.props.t("Close")})]})]})}}class ot extends yt{host;prefix;constructor(t,s){super(t,`${s}.adapter`,"adapter"),this.prefix=`${s}.adapter.`,this.host=s}getObject(t){return this.objects&&this.objects[this.prefix+t]||null}getHost(){return this.host}}const Rt="data:image/svg+xml,%3csvg%20viewBox='0%200%202500%202500'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%200h2500v2500H0z'%20fill='%23c00'/%3e%3cpath%20d='M1241.5%20268.5h-973v1962.9h972.9V763.5h495v1467.9h495V268.5z'%20fill='%23fff'/%3e%3c/svg%3e";function Y(p){return{id:`github-install-dialog-tab-${p}`,"aria-controls":`github-install-dialog-panel-${p}`}}const C={root:p=>({backgroundColor:p.palette.background.paper,width:"100%",height:"100%"}),paper:{maxWidth:1e3},tabPaper:{padding:16},title:p=>({mt:"10px",p:1,ml:1,fontSize:18,color:p.palette.primary.main}),warningText:{color:"#f53939"},noteText:{marginTop:16},errorTextNoGit:{fontSize:13,color:"#ff1616"},listIcon:{width:24,height:24},listIconWithMargin:{width:24,height:24,marginRight:8},tabSelected:p=>({color:p.palette.mode==="dark"?p.palette.secondary.contrastText:"#222 !important"})};function Lt(p){const t=[];for(let s=0;s<p.length;s++)typeof p[s]=="object"?p[s].forEach(i=>t.push(i)):t.push(p[s]);return t}const rt=10;class Ot extends q.Component{constructor(t){super(t);let s=[];const i=(window._localstorage||window.localStorage).getItem("App.npmHistory");if(i)try{s=JSON.parse(i)}catch{}this.state={autoCompleteValue:(window._localstorage||window.localStorage).getItem("App.autocomplete")||null,debug:(window._localstorage||window.localStorage).getItem("App.gitDebug")==="true",url:(window._localstorage||window.localStorage).getItem("App.userUrl")||"",currentTab:(window._localstorage||window.localStorage).getItem("App.gitTab")||"npm",customHistory:s}}renderNpm(){return this.state.currentTab==="npm"?e.jsxs(o.Paper,{style:C.tabPaper,id:"github-install-dialog-panel-npm",children:[e.jsx("div",{style:{display:"flex",alignItems:"center"},children:e.jsx(o.FormControlLabel,{control:e.jsx(o.Checkbox,{checked:this.state.debug,onChange:t=>{(window._localstorage||window.localStorage).setItem("App.gitDebug",t.target.checked?"true":"false"),this.setState({debug:t.target.checked})}}),label:this.props.t("Debug outputs")})}),e.jsxs("div",{style:{display:"flex",alignItems:"flex-end"},children:[e.jsx(u.Sms,{style:{marginRight:10}}),e.jsx(o.Autocomplete,{fullWidth:!0,value:this.state.autoCompleteValue,onChange:(t,s)=>{(window._localstorage||window.localStorage).setItem("App.autocomplete",s),this.setState({autoCompleteValue:s})},options:this.getList(),getOptionLabel:t=>(t==null?void 0:t.name)??"",renderInput:t=>{var i;const s={...t};return s.InputProps=s.InputProps||{},s.InputProps.startAdornment=e.jsx(o.InputAdornment,{position:"start",children:e.jsx(z,{src:((i=this.state.autoCompleteValue)==null?void 0:i.icon)||"",style:C.listIcon})}),e.jsx(o.TextField,{variant:"standard",...t,label:w.t("Select adapter")})},renderOption:(t,s)=>e.jsxs(o.Box,{component:"li",sx:{"& > img":{mr:2,flexShrink:0}},...t,children:[e.jsx(z,{src:(s==null?void 0:s.icon)||"",style:C.listIconWithMargin}),(s==null?void 0:s.name)??""]})})]}),e.jsx("div",{style:{fontSize:24,fontWeight:"bold",marginTop:40},children:this.props.t("Warning!")}),e.jsx("div",{style:C.warningText,children:this.props.t("npm_warning","NPM","NPM")}),e.jsx("div",{style:C.noteText,children:this.props.t("github_note")})]}):null}renderGitHub(){return this.state.currentTab==="GitHub"?e.jsxs(o.Paper,{style:C.tabPaper,id:"github-install-dialog-panel-github",children:[e.jsx("div",{style:{display:"flex",alignItems:"center"},children:e.jsx(o.FormControlLabel,{control:e.jsx(o.Checkbox,{checked:this.state.debug,onChange:t=>{(window._localstorage||window.localStorage).setItem("App.gitDebug",t.target.checked?"true":"false"),this.setState({debug:t.target.checked})}}),label:this.props.t("Debug outputs")})}),e.jsxs("div",{style:{display:"flex",alignItems:"flex-end"},children:[e.jsx(u.Sms,{style:{marginRight:10}}),e.jsx(o.Autocomplete,{fullWidth:!0,value:this.state.autoCompleteValue,getOptionDisabled:t=>!!(t!=null&&t.nogit),renderOption:(t,s)=>e.jsxs(o.Box,{component:"li",sx:{"& > img":{mr:2,flexShrink:0}},...t,children:[e.jsx(z,{src:(s==null?void 0:s.icon)||"",style:C.listIconWithMargin}),(s==null?void 0:s.name)??"",(s==null?void 0:s.nogit)&&e.jsx("div",{style:C.errorTextNoGit,children:w.t("This adapter cannot be installed from git as must be built before installation.")})]}),onChange:(t,s)=>{(window._localstorage||window.localStorage).setItem("App.autocomplete",s),this.setState({autoCompleteValue:s})},options:this.getList(),getOptionLabel:t=>(t==null?void 0:t.name)??"",renderInput:t=>{var i;const s={...t};return s.InputProps=s.InputProps||{},s.InputProps.startAdornment=e.jsx(o.InputAdornment,{position:"start",children:e.jsx(z,{src:((i=this.state.autoCompleteValue)==null?void 0:i.icon)||"",style:C.listIconWithMargin})}),e.jsx(o.TextField,{variant:"standard",...t,label:w.t("Select adapter")})}})]}),e.jsx("div",{style:{fontSize:24,fontWeight:"bold",marginTop:40},children:this.props.t("Warning!")}),e.jsx("div",{style:C.warningText,children:this.props.t("github_warning","GitHub","GitHub")}),e.jsx("div",{style:C.noteText,children:this.props.t("github_note")})]}):null}renderCustom(){return this.state.currentTab==="URL"?e.jsxs(o.Paper,{style:C.tabPaper,id:"github-install-dialog-panel-custom",children:[e.jsx("div",{style:{display:"flex",alignItems:"center"},children:e.jsx(o.FormControlLabel,{control:e.jsx(o.Checkbox,{checked:this.state.debug,onChange:t=>{(window._localstorage||window.localStorage).setItem("App.gitDebug",t.target.checked?"true":"false"),this.setState({debug:t.target.checked})}}),label:this.props.t("Debug outputs")})}),e.jsx("div",{style:{display:"flex",alignItems:"center"},children:e.jsx(o.Autocomplete,{fullWidth:!0,value:this.state.url||"",onInputChange:(t,s)=>{(window._localstorage||window.localStorage).setItem("App.userUrl",s||""),this.setState({url:s})},onChange:(t,s)=>{(window._localstorage||window.localStorage).setItem("App.userUrl",s||""),this.setState({url:s})},renderOption:(t,s)=>e.jsxs(o.Box,{component:"li",...t,style:{display:"flex",alignItems:"left"},children:[s,e.jsx("div",{style:{flexGrow:1}}),e.jsx(o.IconButton,{size:"small",onClick:i=>{i.stopPropagation();const r=this.state.customHistory.filter(n=>n!==s);(window._localstorage||window.localStorage).setItem("App.npmHistory",JSON.stringify(r)),this.setState({customHistory:r})},children:e.jsx(u.Delete,{})})]}),freeSolo:!0,options:this.state.customHistory,renderInput:t=>e.jsx(o.TextField,{variant:"standard",...t,onKeyUp:s=>{if(s.key==="Enter"&&this.state.url){const i=[...this.state.customHistory];i.unshift(this.state.url),i.length>rt&&i.pop(),(window._localstorage||window.localStorage).setItem("App.npmHistory",JSON.stringify(i)),this.state.url.includes(".")?this.props.installFromUrl(this.state.url,this.state.debug,!0):this.props.installFromUrl(`iobroker.${this.state.url}`,this.state.debug,!0),this.setState({autoCompleteValue:null,url:""}),this.props.onClose()}},helperText:this.props.t("URL or file path"),label:this.props.t("URL")})})}),e.jsx("div",{style:{fontSize:24,fontWeight:"bold",marginTop:40},children:this.props.t("Warning!")}),e.jsx("div",{style:C.warningText,children:this.props.t("github_warning","URL","URL")}),e.jsx("div",{style:C.noteText,children:this.props.t("github_note")})]}):null}getList(){const t=this.props.categories.map(i=>i.adapters),s=Lt(t);return s.sort(),s.map((i,r)=>{if(r&&s[r-1]===i)return null;const n=this.props.repository[i];if(!(n!=null&&n.controller)){const l=(n.extIcon||n.meta||n.readme||"").toString().split("/");let c=n==null?void 0:n.name;c||(c=n.titleLang,c&&typeof c=="object"?c=c[w.getLanguage()]||c.en:c=n.title||i);const h={value:`${i}/${l[3]}`,name:`${c} [${l[3]}]`,icon:n.extIcon||n.icon,nogit:!!n.nogit,title:i};return this.props.installed[c]&&c!=="admin"&&(h.icon=`/adapter/${i}/${n.icon.split("/admin/").pop()}`),h}return null}).filter(i=>i).sort((i,r)=>i.name<r.name?-1:i.name>r.name?1:0)}render(){var s;const t=()=>this.setState({autoCompleteValue:null,url:""});return e.jsxs(o.Dialog,{onClose:()=>this.props.onClose(),open:!0,sx:{"& .MuiDialog-paper":C.paper},children:[e.jsx(o.DialogContent,{dividers:!0,children:e.jsxs(o.Box,{component:"div",sx:C.root,children:[e.jsx(o.AppBar,{position:"static",color:"default",children:e.jsxs(o.Tabs,{value:this.state.currentTab,onChange:(i,r)=>{(window._localstorage||window.localStorage).setItem("App.gitTab",r),this.setState({currentTab:r})},variant:"fullWidth",indicatorColor:"secondary",children:[e.jsx(o.Tab,{label:this.props.t("From npm"),wrapped:!0,sx:{"&.Mui-selected":C.tabSelected},icon:e.jsx("img",{src:Rt,alt:"npm",width:24,height:24}),...Y("npm"),value:"npm"}),e.jsx(o.Tab,{label:this.props.t("From github"),wrapped:!0,sx:{"&.Mui-selected":C.tabSelected},icon:e.jsx(ct,{style:{width:24,height:24},width:24,height:24}),...Y("github"),value:"GitHub"}),e.jsx(o.Tab,{label:this.props.t("Custom"),wrapped:!0,sx:{"&.Mui-selected":C.tabSelected},icon:e.jsx(u.Language,{width:24,height:24}),...Y("custom"),value:"URL"})]})}),e.jsx(o.Box,{component:"div",sx:C.title,children:this.props.t("Install or update the adapter from %s",this.state.currentTab||"npm")}),this.renderNpm(),this.renderGitHub(),this.renderCustom()]})}),e.jsxs(o.DialogActions,{children:[e.jsx(o.Button,{id:"github-install-dialog-ok",variant:"contained",disabled:(this.state.currentTab==="GitHub"||this.state.currentTab==="npm")&&!((s=this.state.autoCompleteValue)!=null&&s.value)||this.state.currentTab==="URL"&&!this.state.url,autoFocus:!0,onClick:async()=>{var i,r;if(this.state.currentTab==="GitHub"){const n=(((i=this.state.autoCompleteValue)==null?void 0:i.value)||"").split("/"),l=`${n[1]}/ioBroker.${n[0]}`;this.props.installFromUrl(l,this.state.debug,!0)}else if(this.state.currentTab==="URL"){const n=[...this.state.customHistory];n.unshift(this.state.url),n.length>rt&&n.pop(),(window._localstorage||window.localStorage).setItem("App.npmHistory",JSON.stringify(n)),this.state.url.includes(".")?this.props.installFromUrl(this.state.url,this.state.debug,!0):this.props.installFromUrl(`iobroker.${this.state.url}`,this.state.debug,!0)}else if(this.state.currentTab==="npm"){const n=(((r=this.state.autoCompleteValue)==null?void 0:r.value)||"").split("/")[0],l=n.includes(".")?n.split(".")[1]:n;try{await this.props.installFromUrl(`iobroker.${l}@latest`,this.state.debug,!0),this.props.upload(l)}catch(c){console.error(`Installation from url failed: ${c.message}`)}}this.props.onClose(),t()},color:"primary",startIcon:e.jsx(u.Check,{}),children:this.props.t("Install")}),e.jsx(o.Button,{id:"github-install-dialog-close",variant:"contained",onClick:()=>{this.props.onClose(),t()},color:"grey",startIcon:e.jsx(u.Close,{}),children:this.props.t("Close")})]})]})}}const B={formControl:{marginTop:24,width:100},closeButton:p=>({position:"absolute",right:8,top:8,color:p.palette.grey[500]}),languageButton:{position:"absolute",right:60,top:8},languageButtonActive:p=>({color:p.palette.primary.main}),paper:{},typography:{pr:"30px"},messageText:{},messageColor_warn:{color:"#cb7642"},messageColor_error:{color:"#f5614d"},messageColor_info:{color:"#5abd29"},messageTitle_warn:p=>({background:"#cb7642",borderRadius:"3px",pl:"10px",fontWeight:"bold",color:p.palette.mode==="dark"?"black":"white"}),messageTitle_error:p=>({background:"#f5614d",borderRadius:"3px",pl:"10px",fontWeight:"bold",color:p.palette.mode==="dark"?"black":"white"}),messageTitle_info:p=>({background:"#5abd29",borderRadius:"3px",pl:"10px",fontWeight:"bold",color:p.palette.mode==="dark"?"black":"white"}),deps:p=>({m:"10px",fontSize:16,color:p.palette.mode==="dark"?"#e70000":"#840101"})};class Nt extends L.Component{t;messages=null;lang;constructor(t){super(t),this.state={instanceNumbers:[]},this.t=t.t,this.lang=w.getLanguage(),this.messages=Q(t.adapterObject.messages,null,t.adapterObject.version,t.instances)}componentDidMount(){this.props.instancesWorker.getObjects().then(t=>{const s=Object.keys(t).filter(i=>{var r,n;return((n=(r=t[i])==null?void 0:r.common)==null?void 0:n.name)===this.props.adapter}).map(i=>i.substring(i.lastIndexOf(".")+1));this.setState({instanceNumbers:s})})}getAvailableInstances(){const t=[];t.push(e.jsx(o.MenuItem,{value:"auto",children:this.t("auto")},"auto"));for(let s=0;s<=100&&(this.state.instanceNumbers.includes(s.toString())||t.push(e.jsx(o.MenuItem,{value:s.toString(),children:s},s)),!(t.length>11));s++);return t}checkDependencies(t=this.props.dependencies){if(!t)return"";const s=[];for(const i of t)i.installedVersion?i.rightVersion||s.push(`${this.props.t("Invalid version of %s. Required %s. Current ",i.name,i.version)}${i.installedVersion}`):s.push(this.props.t("No version of %s",i.name,i.name));return s.length?s.map(i=>e.jsx("div",{children:i},i)):""}getText(t,s){return t&&typeof t=="object"?s?t.en:t[this.lang]||t.en:typeof t=="object"?"":t}renderOneMessage(t,s){return e.jsxs(o.Grid2,{children:[e.jsx(o.Typography,{sx:B[`messageTitle_${t.level||"warn"}`],children:this.getText(t.title,this.props.noTranslation)||""}),e.jsx(o.Typography,{component:"div",variant:"body2",style:B.messageText,children:this.getText(t.text,this.props.noTranslation)||""}),t.link?e.jsx(o.Button,{onClick:()=>{window.open(t.link,"_blank").focus()},startIcon:e.jsx(u.Public,{}),variant:"contained",color:"grey",children:this.getText(t.linkText,this.props.noTranslation)||this.props.t("More info")}):null]},s)}renderMessages(){return this.messages?e.jsx(o.Grid2,{container:!0,spacing:2,direction:"column",wrap:"nowrap",sx:{marginBottom:1},children:this.messages.map((t,s)=>this.renderOneMessage(t,s))}):null}render(){const t=this.checkDependencies();return e.jsxs(o.Dialog,{onClose:()=>{},open:!0,sx:{"& .MuiDialog-paper":B.paper},children:[e.jsx(o.DialogTitle,{children:e.jsxs(o.Typography,{component:"h2",variant:"h6",sx:{"&.MuiTypography-root":B.typography},children:[this.t("You are going to add new instance:")," ",this.props.adapter,e.jsx(o.IconButton,{size:"large",sx:B.closeButton,onClick:()=>this.props.onClose(!1),children:e.jsx(u.Close,{})}),this.messages&&this.lang!=="en"&&this.props.toggleTranslation?e.jsx(o.IconButton,{size:"large",style:R.getStyle(this.props.theme,B.languageButton,this.props.noTranslation&&B.languageButtonActive),onClick:this.props.toggleTranslation,title:w.t("Disable/Enable translation"),children:e.jsx(u.Language,{})}):null]})}),e.jsxs(o.DialogContent,{dividers:!0,children:[this.renderMessages(),!t&&this.props.expertMode?e.jsxs(o.Grid2,{container:!0,direction:"column",children:[e.jsx(wt,{tooltip:this.t("Select host to add the instance"),expertMode:!0,socket:this.props.socket,hostsWorker:this.props.hostsWorker,currentHost:this.props.currentHost,setCurrentHost:(s,i)=>this.props.onHostChange(i.replace(/^system\.host\./,""))}),e.jsxs(o.FormControl,{variant:"standard",style:B.formControl,children:[e.jsx(o.InputLabel,{id:"instance-label",children:this.t("Instance")}),e.jsx(o.Select,{variant:"standard",labelId:"instance-label",value:this.props.currentInstance,onChange:this.props.onInstanceChange,children:this.getAvailableInstances()})]})]}):null,e.jsx(o.Box,{component:"div",sx:B.deps,children:t})]}),e.jsxs(o.DialogActions,{children:[e.jsx(o.Button,{id:"instance-add-dialog-ok",variant:"contained",autoFocus:!0,disabled:!!t,onClick:()=>this.props.onClose(!0),color:"primary",startIcon:e.jsx(u.Add,{}),children:this.t("Add")}),e.jsx(o.Button,{id:"instance-add-dialog-cancel",variant:"contained",onClick:()=>this.props.onClose(!1),color:"grey",startIcon:e.jsx(u.Close,{}),children:this.t("Close")})]})]})}}function K(p){var s;if(!p)return"";let t=((s=p.licenseInformation)==null?void 0:s.link)||p.licenseUrl;if(!t||!t.includes("/LICENSE")||!t.includes("raw.githubusercontent.com")){if(t=p.extIcon,!t){if(t=p.readme,!t)return console.error(`No extIcon for ${p.name||JSON.stringify(p)}`),"";t=t.replace("github.com","raw.githubusercontent.com").replace("/blob/","/"),t.includes("/main")?t=`${t.split("/main")[0]}/main/LICENSE`:t.includes("/master")&&(t=`${t.split("/master")[0]}/master/LICENSE`)}if(t.includes("/main"))t=`${t.split("/main")[0]}/main/LICENSE`;else if(t.includes("/master"))t=`${t.split("/master")[0]}/master/LICENSE`;else return""}return t}class H extends L.Component{constructor(t){super(t),this.state={showDialog:!1,showLicenseDialog:null,addInstanceHostName:"",addInstanceId:"auto",addInstanceDialog:""}}renderLicenseDialog(t){return this.state.showLicenseDialog?e.jsx(bt,{licenseType:this.state.showLicenseDialog.licenseType,url:this.state.showLicenseDialog.url,onClose:s=>{const i=s?this.state.showLicenseDialog:null;this.setState({showLicenseDialog:null,showDialog:!1},()=>{i&&(i.upload?H.upload(i.adapterName,t):this.addInstance({adapterName:i.adapterName,context:t}).catch(r=>window.alert(`Cannot add instance: ${r}`)))})}}):null}async addInstance(t){if(!t.customUrl){const i=t.context.repository[t.adapterName],r=Q(i.messages,null,i.version,t.context.compactInstances);if(!t.instance&&(t.context.expertMode||r)){this.setState({addInstanceDialog:t.adapterName,showDialog:!0,addInstanceHostName:t.context.currentHost.replace(/^system\.host\./,""),addInstanceId:t.instance||"auto"});return}if(t.instance){const n=await t.context.instancesWorker.getObjects();if(n&&n[`system.adapter.${t.adapterName}.${t.instance}`]){window.alert(t.context.t("Instance %s already exists",`${t.adapterName}.${t.instance}`));return}}}const s=(this.state.addInstanceHostName||t.context.currentHost).replace(/^system\.host\./,"");try{await new Promise((i,r)=>{t.context.executeCommand(`${t.customUrl?"url":"add"} ${t.adapterName} ${t.instance?`${t.instance} `:""}--host ${s} ${t.debug||t.context.expertMode?"--debug":""}`,s,n=>n?r(new Error(`The process returned an exit code of ${n}`)):i())})}catch(i){window.alert(`${w.t("Cannot install")}: ${i}`)}}static getDependencies(t,s){var n,l;const i=s.repository[t],r=[];if(i){i.dependencies&&!Array.isArray(i.dependencies)&&(i.dependencies=[i.dependencies]),i.globalDependencies&&!Array.isArray(i.globalDependencies)&&(i.globalDependencies=[i.globalDependencies]);const c=i.node;if((n=i.dependencies)!=null&&n.length)for(const d of i.dependencies){const a={name:"",version:null,installed:!1,installedVersion:null,rightVersion:!1},g=typeof d!="string",x=Object.keys(d);if(a.name=g?x?x[0]:null:d,a.version=g?d[a.name]:null,a.name){const m=s.installed[a.name];a.installed=!!m,a.installedVersion=m?m.version:null;try{a.rightVersion=m?g?V.satisfies(m.version,a.version,{includePrerelease:!0}):!0:!1}catch{a.rightVersion=!0}}r.push(a)}if((l=i.globalDependencies)!=null&&l.length)for(const d of i.globalDependencies){const a={name:"",version:null,installed:!1,installedVersion:null,rightVersion:!1},g=typeof d!="string",x=Object.keys(d);if(a.name=g?x?x[0]:null:d,a.version=g?d[a.name]:null,a.name){const m=s.installedGlobal[a.name];a.installed=!!m,a.installedVersion=m?m.version:null;try{a.rightVersion=m?g?V.satisfies(m.version,a.version,{includePrerelease:!0}):!0:!1}catch{a.rightVersion=!0}}r.push(a)}const h=i.ifInstalledDependencies;if(h&&typeof h=="object"&&!Array.isArray(h)){const d=Object.keys(h);for(const a of d){const g={name:a,version:h[a],installed:!1,installedVersion:null,rightVersion:!1};if(g.name){const x=s.installedGlobal[g.name];g.installed=!!x,g.installedVersion=x?x.version:null;try{g.rightVersion=x?V.satisfies(x.version,g.version,{includePrerelease:!0}):!0}catch{g.rightVersion=!0}}r.push(g)}}if(c){const d={name:"node",version:c,installed:!0,installedVersion:s.nodeJsVersion,rightVersion:!1};try{d.rightVersion=V.satisfies(s.nodeJsVersion,c)}catch{d.rightVersion=!0}r.push(d)}}return r}renderAddInstanceDialog(t){return this.state.addInstanceDialog?e.jsx(Nt,{adapter:this.state.addInstanceDialog,socket:t.socket,hostsWorker:t.hostsWorker,instancesWorker:t.instancesWorker,dependencies:H.getDependencies(this.state.addInstanceDialog,t),currentHost:`system.host.${this.state.addInstanceHostName}`,currentInstance:this.state.addInstanceId,t:t.t,onClose:s=>{const i=s?this.state.addInstanceDialog:"",r=s?this.state.addInstanceId:"";this.setState({addInstanceDialog:"",addInstanceId:"auto",showDialog:!1},()=>{if(i)try{this.addInstance({adapterName:i,instance:r,context:t})}catch(n){window.alert(`Cannot add instance: ${n}`)}})},onHostChange:s=>this.setState({addInstanceHostName:s.replace(/^system\.host\./,"")}),onInstanceChange:s=>this.setState({addInstanceId:s.target.value.toString()}),adapterObject:t.repository[this.state.addInstanceDialog],instances:t.compactInstances,toggleTranslation:t.toggleTranslation,noTranslation:this.props.noTranslation,expertMode:t.expertMode,theme:t.theme}):null}static upload(t,s){s.executeCommand(`upload ${t}${s.expertMode?" --debug":""}`)}onAddInstance(t,s){var l;const i=s.repository[t],r=K(i),n=((l=i.licenseInformation)==null?void 0:l.license)||i.license;n==="MIT"?this.addInstance({adapterName:t,context:s}).catch(c=>window.alert(`Cannot add instance: ${c}`)):this.setState({showLicenseDialog:{url:r,adapterName:t,licenseType:n},showDialog:!0})}renderDialogs(t){return this.state.showDialog?e.jsxs(e.Fragment,{children:[this.renderAddInstanceDialog(t),this.renderLicenseDialog(t)]}):null}}const _={name:{flexWrap:"nowrap",width:300,marginTop:0},nameDiv:{display:"flex",alignItems:"center"},categoryName:{fontWeight:"bold",cursor:"pointer"},green:{color:pt[500]},blue:{color:mt[700]},category:{backgroundColor:"background.default"},marginRight5:{marginRight:5}};function Ut(p){const{installedCount:t,name:s,categoryName:i}=p;return e.jsxs(o.TableRow,{hover:!1,sx:_.category,children:[e.jsx(o.TableCell,{children:e.jsx(o.Grid2,{container:!0,spacing:1,alignItems:"center",style:_.name,children:e.jsx(o.Grid2,{component:"div",children:e.jsx(o.IconButton,{size:"small",onClick:p.onToggle,children:p.expanded?e.jsx(u.ExpandMore,{}):e.jsx(u.ChevronRight,{})})})})}),e.jsx(o.TableCell,{onClick:p.onToggle,children:e.jsxs("div",{style:{..._.nameDiv,..._.categoryName},children:[e.jsx(St,{iconName:i,style:_.marginRight5}),s]})}),e.jsxs(o.TableCell,{colSpan:p.descHidden?5:6,children:[e.jsx(o.Typography,{component:"span",variant:"body2",style:_.green,children:t}),` ${p.t("of")} `,e.jsx(o.Typography,{component:"span",variant:"body2",style:_.blue,children:p.count}),` ${p.t("Adapters from this Group installed")}`]})]})}const T={rating:{marginBottom:20},listRating:{marginRight:8},listTime:{opacity:.5,fontStyle:"italic"},list:{},listOwn:p=>({backgroundColor:p.name==="colored"||p.name==="light"?"#16516e2e":p.palette.secondary.dark}),listTitle:p=>({backgroundColor:p.palette.primary.dark,pt:"4px",pb:"4px",mb:"4px",color:"#ffffff",textAlign:"center"}),languageFilter:{width:300},ratingTextControl:{width:"calc(100% - 138px)",marginRight:8},ratingLanguageControl:{width:130},noComments:{width:"100%",textAlign:"center",marginTop:16},commentCount:{marginTop:2,marginLeft:8,opacity:.8,fontSize:10,float:"right"},infoText:{textAlign:"left",fontSize:"14px"},infoTextContainer:{display:"flex",paddingBottom:"10px",alignItems:"center",gap:"10px"}},nt=[{id:"en",title:"English"},{id:"de",title:"Deutsch"},{id:"ru",title:"русский"},{id:"pt",title:"Portugues"},{id:"nl",title:"Nederlands"},{id:"fr",title:"français"},{id:"it",title:"Italiano"},{id:"es",title:"Espanol"},{id:"pl",title:"Polski"},{id:"uk",title:"Українська"},{id:"zh-cn",title:"简体中文"}];class Bt extends L.Component{constructor(t){super(t),this.state={ratingNumber:0,ratingComment:"",votings:null,ratingLang:this.props.lang,filterLang:(window._localStorage||window.localStorage).getItem("app.commentLang")||this.props.lang,commentsByLanguage:{}}}componentDidMount(){fetch(`https://rating.iobroker.net/adapter/${this.props.adapter}?uuid=${this.props.uuid}`).then(t=>t.json()).then(t=>{t=t||{},t.rating=t.rating||{};const s=Object.keys(t.rating);s.sort((r,n)=>t.rating[r].ts>t.rating[n].ts?-1:t.rating[r].ts<t.rating[n].ts?1:0);const i={};if(t.comments&&(t.comments.sort((r,n)=>r.ts>n.ts?-1:r.ts<n.ts?1:0),t.comments.forEach(r=>{i[r.lang]=i[r.lang]||0,i[r.lang]++})),s.length){const r=t.rating[s[0]];this.setState({votings:t,ratingNumber:r?r.r:0,commentsByLanguage:i})}else this.setState({votings:t,commentsByLanguage:i})})}setAdapterRating(t,s,i,r,n){return fetch("https://rating.iobroker.net/vote",{method:"POST",headers:{"Content-Type":"application/json"},redirect:"follow",body:JSON.stringify({uuid:this.props.uuid,adapter:t,version:s,rating:i,comment:r,lang:n})}).then(l=>l.json()).then(l=>(window.alert(`${this.props.t("Vote:")} ${t}@${s}=${i}`),delete l.adapter,l)).catch(l=>(window.alert(`Cannot vote: ${l}`),null))}renderInfoText(){return e.jsxs("div",{style:T.infoTextContainer,children:[e.jsx(u.Info,{}),e.jsx(o.Typography,{style:T.infoText,children:this.props.t("use GitHub for issues")})]})}renderComments(){var t;if((t=this.state.votings)!=null&&t.comments&&this.state.votings.comments.length){const s=this.state.votings.comments.find(i=>!(this.state.filterLang&&this.state.filterLang!=="_"&&i.lang!==this.state.filterLang));return e.jsxs("div",{style:{width:"100%",textAlign:"left"},children:[e.jsx(o.Box,{component:"h3",sx:T.listTitle,children:this.props.t("Comments")}),e.jsxs(o.FormControl,{variant:"standard",style:T.languageFilter,children:[e.jsx(o.InputLabel,{children:this.props.t("Show comments in language")}),e.jsxs(o.Select,{variant:"standard",value:this.state.filterLang,onChange:i=>{(window._localStorage||window.localStorage).setItem("app.commentLang",i.target.value),this.setState({filterLang:i.target.value})},children:[e.jsxs(o.MenuItem,{value:"_",children:[this.props.t("All")," ",e.jsx("span",{style:T.commentCount,children:this.state.votings.comments.length})]}),nt.map(i=>e.jsxs(o.MenuItem,{value:i.id,children:[i.title," ",this.state.commentsByLanguage[i.id]?e.jsx("span",{style:T.commentCount,children:this.state.commentsByLanguage[i.id]}):null]},i.id))]})]}),e.jsxs(o.List,{style:T.list,dense:!0,disablePadding:!0,children:[s&&this.state.votings.comments.map((i,r)=>this.state.filterLang&&this.state.filterLang!=="_"&&i.lang!==this.state.filterLang?null:i?e.jsxs(o.ListItem,{title:i.uuid?this.props.t("Your comment"):"",sx:{"&.MuiListItem-root":i.uuid?T.listOwn:void 0},dense:!0,children:[e.jsx(o.ListItemAvatar,{style:T.listRating,children:e.jsx(o.Rating,{readOnly:!0,defaultValue:i.rating,size:"small"})}),e.jsx(o.ListItemText,{primary:i.comment,secondary:`${new Date(i.ts).toLocaleString()} / v${i.version}`,sx:{"& .MuiListItemText-secondary":T.listTime}})]},r):null),!s&&e.jsx("div",{style:T.noComments,children:this.props.t("No comments in selected language")})]})]})}return null}render(){var i,r,n;let t,s;if(this.state.votings){const l=this.state.votings.rating;s=Object.keys(l),s.sort((c,h)=>l[c].ts>l[h].ts?-1:l[c].ts<l[h].ts?1:0),s.length&&(t=l[s[0]])}return e.jsxs(o.Dialog,{open:!0,onClose:()=>this.props.onClose(),children:[e.jsx(o.DialogTitle,{children:`${this.props.t("Review")} ${this.props.adapter}${this.props.version?`@${this.props.version}`:""}`}),e.jsxs(o.DialogContent,{style:{textAlign:"center"},title:((i=this.props.currentRating)==null?void 0:i.title)||"",children:[this.renderInfoText(),e.jsx(o.Rating,{style:T.rating,name:this.props.adapter,value:this.props.version?this.state.ratingNumber:(n=(r=this.props.currentRating)==null?void 0:r.rating)==null?void 0:n.r,size:"large",readOnly:!this.props.version,onChange:(l,c)=>this.setState({ratingNumber:c})}),this.props.version?e.jsxs("div",{style:{width:"100%",textAlign:"left"},children:[e.jsx(o.TextField,{variant:"standard",style:T.ratingTextControl,value:this.state.ratingComment,label:this.props.t("Comment to version"),helperText:this.props.t("Max length %s characters",200),onChange:l=>this.setState({ratingComment:l.target.value}),slotProps:{input:{endAdornment:this.state.ratingComment?e.jsx(o.InputAdornment,{position:"end",children:e.jsx(o.IconButton,{size:"small",onClick:()=>this.setState({ratingComment:""}),children:e.jsx(u.Close,{})})}):null},htmlInput:{maxLength:200}}}),e.jsxs(o.FormControl,{variant:"standard",style:T.ratingLanguageControl,children:[e.jsx(o.InputLabel,{children:this.props.t("Language")}),e.jsx(o.Select,{variant:"standard",value:this.state.ratingLang,onChange:l=>this.setState({ratingLang:l.target.value}),children:nt.map(l=>e.jsx(o.MenuItem,{value:l.id,children:l.title},l.id))})]})]}):null,this.props.version?e.jsx("div",{style:{paddingTop:20,paddingBottom:16},children:this.props.t("Rate how good this version of the adapter works on your system. You can vote for every new version.")}):null,s&&t?e.jsx("div",{children:this.props.t("You voted for %s on %s",s[0],new Date(t.ts).toLocaleDateString())}):null,this.renderComments()]}),e.jsxs(o.DialogActions,{children:[this.props.version&&e.jsx(o.Button,{variant:"contained",autoFocus:!0,color:"primary",disabled:!this.state.ratingNumber||this.state.votings===null,onClick:()=>{this.state.ratingNumber!==(t==null?void 0:t.r)||this.state.ratingComment?this.setAdapterRating(this.props.adapter,this.props.version,this.state.ratingNumber,this.state.ratingComment,this.state.ratingLang).then(l=>this.props.onClose(l)):this.props.onClose()},startIcon:e.jsx(u.HowToVote,{}),children:this.props.t("Rate")}),e.jsx(o.Button,{autoFocus:!this.props.version,variant:"contained",onClick:()=>this.props.onClose(),color:"grey",startIcon:e.jsx(u.Close,{}),children:this.props.t("Close")})]})]})}}const at={closeButton:p=>({position:"absolute",right:8,top:8,color:p.palette.grey[500]}),typography:{paddingRight:30}};class $t extends L.Component{t;constructor(t){super(t),this.state={deleteCustom:!1,deleteCustomSupported:!1},this.t=t.t}componentDidMount(){this.props.socket.checkFeatureSupported("DEL_INSTANCE_CUSTOM").then(t=>{if(t)return this.props.socket.getObject(`system.adapter.${this.props.adapter}`).then(s=>{s!=null&&s.common?s.common.supportCustoms&&this.setState({deleteCustomSupported:s.common.supportCustoms}):this.setState({deleteCustomSupported:!0})})})}render(){return e.jsxs(o.Dialog,{onClose:this.props.onClose,open:!0,children:[e.jsx(o.DialogTitle,{children:e.jsxs(o.Typography,{component:"h2",variant:"h6",sx:{"&.MuiTypography-root":at.typography},children:[this.t("Please confirm"),e.jsx(o.IconButton,{size:"large",sx:at.closeButton,onClick:this.props.onClose,children:e.jsx(u.Close,{})})]})}),e.jsxs(o.DialogContent,{dividers:!0,children:[e.jsx(o.Typography,{gutterBottom:!0,children:this.t("Are you sure you want to delete adapter %s?",this.props.adapter)}),this.state.deleteCustomSupported&&e.jsx(o.FormControlLabel,{control:e.jsx(o.Checkbox,{checked:this.state.deleteCustom,onChange:t=>this.setState({deleteCustom:t.target.checked})}),label:this.t("Delete all custom object settings of this adapter too")})]}),e.jsxs(o.DialogActions,{children:[e.jsx(o.Button,{id:"adapter-delete-dialog-ok",variant:"contained",autoFocus:!0,onClick:()=>{this.props.onClick(this.state.deleteCustom),this.props.onClose()},color:"primary",startIcon:e.jsx(u.Check,{}),children:this.t("Ok")}),e.jsx(o.Button,{id:"adapter-delete-dialog-cancel",variant:"contained",autoFocus:!0,onClick:()=>this.props.onClose(),color:"grey",startIcon:e.jsx(u.Close,{}),children:this.t("Close")})]})]})}}const ut={none:e.jsx(u.HorizontalRule,{}),patch:e.jsx(u.KeyboardDoubleArrowUp,{style:{color:"green"}}),minor:e.jsx(u.North,{style:{color:"orange"}}),major:e.jsx(u.VerticalAlignTop,{style:{color:"red"}})};class Wt extends q.Component{constructor(t){super(t),this.state={currentSavedPolicy:"none",policy:"none",repositories:[],supported:!0}}async componentDidMount(){await this.getConfiguredRepositories(),await this.getCurrentAutoUpgradeSetting()}async getConfiguredRepositories(){var i;const t=await this.props.socket.getObject("system.config");if(!((i=t==null?void 0:t.common)!=null&&i.adapterAutoUpgrade))return;const s=Object.entries(t.common.adapterAutoUpgrade.repositories).filter(([,r])=>r).map(([r])=>r);this.setState({repositories:s})}getAdapterId(){return`${this.props.hostId}.adapter.${this.props.adapter}`}async getCurrentAutoUpgradeSetting(){const t=await this.props.socket.getObject(this.getAdapterId());if(!t){console.error("no adapter object existing"),this.setState({supported:!1});return}this.setState({policy:t.common.automaticUpgrade||"none",currentSavedPolicy:t.common.automaticUpgrade||"none"})}async save(){const t=await this.props.socket.getObject(this.getAdapterId());if(!t){console.error("no adapter object existing"),this.setState({supported:!1});return}t.common.automaticUpgrade=this.state.policy,await this.props.socket.setObject(this.getAdapterId(),t),this.setState({currentSavedPolicy:this.state.policy},()=>this.props.onClose())}render(){return e.jsxs(o.Dialog,{open:!0,maxWidth:"md",fullWidth:!0,children:[e.jsx(o.DialogTitle,{children:w.t("Auto upgrade policy for %s",this.props.adapter)}),e.jsxs(o.DialogContent,{style:{padding:"0 20px",overflow:"hidden"},children:[e.jsx(N,{value:!this.state.supported,children:e.jsx(o.Typography,{children:w.t("This feature is supported up from js-controller Kiera (Version 6)!")})}),e.jsxs(N,{value:this.state.supported,children:[e.jsx(o.Typography,{children:w.t("Allow only the following upgrades to be performed automatically:")}),e.jsx(o.Select,{variant:"standard",style:{marginTop:20,minWidth:150,marginBottom:8},value:this.state.policy,onChange:t=>this.setState({policy:t.target.value}),children:jt.map(t=>e.jsx(o.MenuItem,{value:t,children:e.jsxs("div",{style:{display:"flex",gap:8},children:[ut[t],Ct[t]]})},t))}),e.jsx(N,{value:this.state.repositories.includes("beta")&&this.state.policy!=="none",children:e.jsx(Z,{type:"warning",children:w.t("repo_update_hint")})}),e.jsx(N,{value:this.state.policy==="major",children:e.jsx(Z,{type:"warning",children:w.t("The current selected configuration will allow to automatically pull in incompatible changes of this adapter!")})})]})]}),e.jsxs(o.DialogActions,{children:[e.jsx(o.Button,{disabled:this.state.currentSavedPolicy===this.state.policy,color:"primary",variant:"contained",startIcon:e.jsx(u.Save,{}),onClick:()=>this.save(),children:w.t("Save")}),e.jsx(o.Button,{variant:"contained",onClick:()=>this.props.onClose(),color:"grey",startIcon:e.jsx(u.Close,{}),children:w.t("Close")})]})]})}}const gt={hidden:{display:"none"},buttonUpdate:{border:"1px solid",padding:"0px 7px",borderRadius:5,display:"flex",alignItems:"center",cursor:"pointer",transition:"background 0.5s","&:hover":{background:"#00800026"}},buttonUpdateIcon:{height:20,width:20,marginRight:10},classPoll:{color:"orange"},classPush:{color:"green"},classAssumption:{color:"red",transform:"rotate(90deg)"},marginLeft5:{marginLeft:5},ratingSet:{cursor:"pointer"},sentry:{width:21,height:21,objectFit:"fill",marginTop:3,filter:"invert(0%) sepia(90%) saturate(1267%) hue-rotate(-260deg) brightness(99%) contrast(97%)"},tooltip:{pointerEvents:"none"},wrongDependencies:{color:xt[700]},updateAvailable:{color:pt[700]},currentVersion:p=>({cursor:"pointer",mb:"6px",mr:"8px",mt:"4px","&:hover":{background:p.palette.primary.dark}}),header:p=>({fontWeight:"bold",background:p.palette.secondary.main,p:"10px"}),modalDialog:{height:"calc(100% - 64px)",overflowY:"hidden"},currentVersionText:p=>({color:p.palette.mode==="dark"?"#a3ffa3":"#009800",fontWeight:"bold",marginLeft:"4px"}),repoStableVersionText:p=>({color:p.palette.mode==="dark"?"#8dff7a":"#2b9800",fontWeight:"bold",marginLeft:"4px"}),repoLatestVersionText:p=>({color:p.palette.mode==="dark"?"#a3fcff":"#005498",fontWeight:"bold",marginLeft:"4px"}),rating:{},containerVersion:{},containerSpecificVersion:{},versionWarn:{color:ht[500]},cardContentFlexBetween:{},cardContentFlex:{}};class G extends H{installedVersion="";constructor(t){super(t),Object.assign(this.state,{autoUpgradeDialogOpen:!1,showUpdateDialog:!1,adapterDeletionDialog:!1,adapterInstallSpecificVersion:"",showInstallVersion:!1,showSetRating:null})}static renderImage(t){const{style:s,alt:i,...r}=t,n=s.backgroundImage.substring(5,s.backgroundImage.length-2);return e.jsx("img",{...r,alt:i,src:n,onError:l=>{l.target&&(l.target.onerror=null,l.target.src="img/no-image.svg")}})}renderAddInstanceButton(){const t=this.props.context.repository[this.props.adapterName]?this.props.context.repository[this.props.adapterName].allowAdapterInstall:!0;return e.jsx(N,{value:t,children:e.jsx(o.Tooltip,{title:this.props.context.t("Add instance"),slotProps:{popper:{sx:this.styles.tooltip}},children:e.jsx(o.IconButton,{size:"small",disabled:this.props.commandRunning,style:this.props.cached.rightOs?void 0:this.styles.hidden,onClick:this.props.cached.rightOs?()=>this.onAddInstance(this.props.adapterName,this.props.context):void 0,children:e.jsx(u.Add,{})})})})}renderAutoUpgradeButton(){var i;const t=this.props.context.hostAdapterWorker.getObject(this.props.adapterName);if(!t)return e.jsx("div",{style:{width:34,height:34,display:"inline-block"}});const s=(i=t.common)==null?void 0:i.automaticUpgrade;return e.jsx(o.Tooltip,{title:this.props.context.t("Automatic Upgrade Policy")+(s?`: ${s}`:""),slotProps:{popper:{sx:this.styles.tooltip}},children:e.jsx(o.IconButton,{size:"small",onClick:()=>this.setState({autoUpgradeDialogOpen:!0,showDialog:!0}),children:!s||s==="none"?e.jsx(u.KeyboardArrowUp,{}):ut[s]})})}renderReadmeButton(){const t=this.props.context.repository[this.props.adapterName]?this.props.context.repository[this.props.adapterName].allowAdapterReadme:!0;return e.jsx(N,{value:t,children:e.jsx(o.Tooltip,{title:this.props.context.t("Readme"),slotProps:{popper:{sx:this.styles.tooltip}},children:e.jsx(o.IconButton,{size:"small",onClick:()=>this.openInfoDialog(),children:e.jsx(u.Help,{})})})})}renderRating(){var i,r,n;const t=this.props.context.repository[this.props.adapterName]?this.props.context.repository[this.props.adapterName].allowAdapterRating:!0;return this.props.context.isTileView&&(this.props.context.sortPopularFirst||this.props.context.sortRecentlyUpdated)||!this.props.context.repository[this.props.adapterName].stat||t===!1?null:e.jsx("div",{onClick:()=>this.setState({showSetRating:{version:this.installedVersion,rating:this.props.context.repository[this.props.adapterName].rating},showDialog:!0}),style:{...this.styles.rating,...this.styles.ratingSet},title:(i=this.props.context.repository[this.props.adapterName].rating)==null?void 0:i.title,children:e.jsx(o.Rating,{name:this.props.adapterName,precision:.5,size:"small",readOnly:!0,value:((n=(r=this.props.context.repository[this.props.adapterName].rating)==null?void 0:r.rating)==null?void 0:n.r)||0})})}renderConnectionType(){var s;const t=(s=this.props.context.repository[this.props.adapterName])==null?void 0:s.connectionType;return t==="cloud"?e.jsx(o.Tooltip,{title:this.props.context.t("Adapter requires the specific cloud access for these devices/service"),slotProps:{popper:{sx:this.styles.tooltip}},children:e.jsx(u.Cloud,{})}):t==="local"?e.jsx(o.Tooltip,{title:this.props.context.t("Adapter does not use the cloud for these devices/service"),slotProps:{popper:{sx:this.styles.tooltip}},children:e.jsx(u.CloudOff,{})}):null}renderDataSource(){var s;const t=(s=this.props.context.repository[this.props.adapterName])==null?void 0:s.dataSource;return t?e.jsx("div",{style:this.styles.marginLeft5,children:t==="poll"?e.jsx(o.Tooltip,{title:this.props.context.t("The device or service will be periodically asked"),slotProps:{popper:{sx:this.styles.tooltip}},children:e.jsx(u.ArrowUpward,{style:this.styles.classPoll})}):t==="push"?e.jsx(o.Tooltip,{title:this.props.context.t("The device or service delivers the new state actively"),slotProps:{popper:{sx:this.styles.tooltip}},children:e.jsx(u.ArrowDownward,{style:this.styles.classPush})}):t==="assumption"?e.jsx(o.Tooltip,{slotProps:{popper:{sx:this.styles.tooltip}},title:this.props.context.t("Adapter cannot request the exactly device status and the status will be guessed on the last sent command"),children:e.jsx(u.Remove,{style:this.styles.classAssumption})}):null}):null}renderLicenseInfo(){var i,r,n,l;const t=this.props.context.repository[this.props.adapterName],s=K(t);return(i=t.licenseInformation)!=null&&i.type?e.jsx(o.Link,{href:s,target:"_blank",rel:"noopener",sx:c=>({color:c.palette.mode==="dark"?"white":"black","&:hover":{color:c.palette.mode==="dark"?"white":"black"}}),children:((r=t.licenseInformation)==null?void 0:r.type)==="paid"?e.jsx(o.Tooltip,{title:this.props.context.t("The adapter requires a paid license."),slotProps:{popper:{sx:this.styles.tooltip}},children:e.jsx(u.MonetizationOn,{})}):((n=t.licenseInformation)==null?void 0:n.type)==="commercial"?e.jsx(o.Tooltip,{slotProps:{popper:{sx:this.styles.tooltip}},title:this.props.context.t("The adapter requires a paid license for commercial use."),children:e.jsx(u.MonetizationOn,{opacity:.5})}):((l=t.licenseInformation)==null?void 0:l.type)==="limited"?e.jsx(o.Tooltip,{slotProps:{popper:{sx:this.styles.tooltip}},title:this.props.context.t("The adapter has a limited functionality without a paid license."),children:e.jsx(u.MonetizationOn,{opacity:.5})}):null}):null}renderSentryInfo(){var s,i;return((i=(s=this.props.context.repository[this.props.adapterName])==null?void 0:s.plugins)==null?void 0:i.sentry)?e.jsx("div",{style:this.styles.marginLeft5,children:e.jsx(o.Tooltip,{title:"sentry",slotProps:{popper:{sx:this.styles.tooltip}},children:e.jsx(o.CardMedia,{style:this.styles.sentry,component:"img",image:It})})}):null}renderVersion(){const t=this.props.context.repository[this.props.adapterName]?this.props.context.repository[this.props.adapterName].allowAdapterUpdate:!0;return!this.props.commandRunning&&this.props.cached.updateAvailable&&t!==!1?e.jsx(o.Tooltip,{title:this.props.context.t("Update"),slotProps:{popper:{sx:this.styles.tooltip}},children:e.jsxs("div",{onClick:()=>this.setState({showUpdateDialog:!0,showDialog:!0}),style:{...this.styles.buttonUpdate,...this.props.cached.rightDependencies?this.styles.updateAvailable:void 0},children:[e.jsx(o.IconButton,{style:this.styles.buttonUpdateIcon,size:"small",children:e.jsx(u.Refresh,{})}),this.props.context.repository[this.props.adapterName].version]})}):e.jsx(o.Tooltip,{title:this.props.context.t("Wrong dependencies"),slotProps:{popper:{sx:this.styles.tooltip}},children:e.jsx("span",{style:this.props.cached.rightDependencies?void 0:this.styles.wrongDependencies,children:this.props.context.repository[this.props.adapterName].version})})}renderInstalledVersion(t){var n,l;const s=this.props.context.installed[this.props.adapterName],i=(l=(n=this.props.context.adapters[`system.adapter.${this.props.adapterName}`])==null?void 0:n.common)==null?void 0:l.installedFrom,{adapterName:r}=this.props;if(t){const c=s==null?void 0:s.enabled,h=s==null?void 0:s.count;return e.jsxs(o.Grid2,{container:!0,wrap:"nowrap",alignItems:"center",spacing:1,children:[this.installedVersion?e.jsx(o.Grid2,{children:this.installedVersion+(h?` (${h}${h!==c?"~":""})`:"")}):null,i&&!i.startsWith(`iobroker.${r}@`)&&e.jsx(o.Grid2,{container:!0,children:e.jsx(o.Tooltip,{title:`${this.props.context.t("Non-NPM-Version")}: ${i}`,slotProps:{popper:{sx:this.styles.tooltip}},children:e.jsx(u.GitHub,{fontSize:"small",style:this.styles.versionWarn})})})]})}return this.installedVersion?e.jsxs(o.Typography,{component:"span",style:this.styles.cardContentFlexBetween,children:[e.jsxs("div",{children:[this.props.context.t("Installed version"),":"]}),e.jsxs("div",{style:this.styles.cardContentFlex,children:[i&&!i.startsWith(`iobroker.${r}@`)&&e.jsx(o.Tooltip,{title:`${this.props.context.t("Non-NPM-Version")}: ${i}`,slotProps:{popper:{sx:this.styles.tooltip}},children:e.jsx(u.GitHub,{fontSize:"small",style:this.styles.versionWarn})}),this.installedVersion]})]}):null}renderUploadButton(){return this.props.context.expertMode&&this.installedVersion?e.jsx(o.Tooltip,{title:this.props.context.t("Upload"),slotProps:{popper:{sx:this.styles.tooltip}},children:e.jsx(o.IconButton,{size:"small",disabled:this.props.commandRunning,onClick:()=>this.onUpload(),children:e.jsx(u.Publish,{})})}):null}renderDeleteButton(){const t=this.props.context.repository[this.props.adapterName]?this.props.context.repository[this.props.adapterName].allowAdapterDelete:!0;return e.jsx(N,{value:!!this.installedVersion&&t,children:e.jsx(o.Tooltip,{title:this.props.context.t("Delete adapter"),slotProps:{popper:{sx:this.styles.tooltip}},children:e.jsx(o.IconButton,{size:"small",disabled:this.props.commandRunning,onClick:()=>this.setState({adapterDeletionDialog:!0,showDialog:!0}),children:e.jsx(u.DeleteForever,{})})})})}renderInstallSpecificVersionButton(){const t=this.props.context.repository[this.props.adapterName]?this.props.context.repository[this.props.adapterName].allowAdapterUpdate:!0;return this.props.context.expertMode&&t!==!1&&this.installedVersion&&e.jsx(o.Tooltip,{title:this.props.context.t("Install a specific version"),slotProps:{popper:{sx:this.styles.tooltip}},children:e.jsx(o.IconButton,{disabled:this.props.commandRunning,size:"small",onClick:()=>this.setState({showInstallVersion:!0,showDialog:!0}),children:e.jsx(u.AddToPhotos,{})})})}renderRebuildButton(){return!this.props.context.expertMode||!this.installedVersion?null:e.jsx(o.Tooltip,{title:this.props.context.t("Rebuild"),children:e.jsx(o.IconButton,{size:"small",disabled:this.props.commandRunning,onClick:()=>this.rebuild(),children:e.jsx(u.Build,{})})})}renderAutoUpdateDialog(){return this.state.autoUpgradeDialogOpen?e.jsx(Wt,{onClose:()=>this.setState({autoUpgradeDialogOpen:!1,showDialog:!1}),adapter:this.props.adapterName,hostId:this.props.context.adminHost,socket:this.props.context.socket}):null}renderUpdateAdapterDialog(){var t;return this.state.showUpdateDialog?(this.installedVersion=(t=this.props.context.installed[this.props.adapterName])==null?void 0:t.version,e.jsx(kt,{adapter:this.props.adapterName,adapterObject:this.props.context.repository[this.props.adapterName],t:this.props.context.t,dependencies:H.getDependencies(this.props.adapterName,this.props.context),rightDependencies:this.props.context.rightDependenciesFunc(this.props.adapterName),news:this.getNews(),toggleTranslation:this.props.context.toggleTranslation,noTranslation:this.props.noTranslation,installedVersion:this.installedVersion,onUpdate:s=>this.setState({showUpdateDialog:!1,showDialog:!1},()=>this.update(s)),isStable:this.props.context.repository._repoInfo.stable,onIgnore:s=>this.setState({showUpdateDialog:!1,showDialog:!1},()=>this.props.context.socket.getObject(`system.adapter.${this.props.adapterName}`).then(i=>{i!=null&&i.common?(i.common.ignoreVersion=s,this.props.context.socket.setObject(i._id,i).catch(r=>window.alert(`Cannot write object: ${r}`))):window.alert(`Adapter "${this.props.adapterName}" does not exist!`)}).then(()=>this.props.context.removeUpdateAvailable(this.props.adapterName))),onClose:()=>this.setState({showUpdateDialog:!1,showDialog:!1}),instances:this.props.context.compactInstances,theme:this.props.context.theme})):null}static formatNews(t){return(t||"").toString().split(`
4
+ `).map(i=>i.trim().replace(/^\*+/,"").replace(/^-/,"").replace(/\*+$/,"").replace(/\r/g,"").trim()).filter(i=>i).map((i,r)=>e.jsxs("div",{style:{},children:[e.jsx("span",{children:"- "}),i]},r))}renderAdapterInstallVersion(){var r,n,l,c;if(!this.state.showInstallVersion)return null;let t,s;const i=this.props.context.repository._repoInfo;return i!=null&&i.stable?(t=(r=this.props.context.repository[this.props.adapterName])==null?void 0:r.version,s=(n=this.props.context.repository[this.props.adapterName])==null?void 0:n.latestVersion):(t=(l=this.props.context.repository[this.props.adapterName])==null?void 0:l.stable,s=(c=this.props.context.repository[this.props.adapterName])==null?void 0:c.version),e.jsx(Vt,{title:this.props.context.t("Please select specific version of %s",this.props.adapterName),applyButton:!1,onClose:()=>this.setState({showInstallVersion:!1,adapterInstallSpecificVersion:"",showDialog:!1}),theme:this.props.context.theme,toggleTranslation:this.props.context.toggleTranslation,noTranslation:this.props.noTranslation,children:e.jsxs("div",{style:{height:"100%",overflowY:"hidden"},children:[e.jsxs("div",{style:this.styles.containerSpecificVersion,children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[e.jsx(o.TextField,{variant:"standard",style:{flexGrow:1},label:this.props.context.t("Enter version manually"),value:this.state.adapterInstallSpecificVersion,onChange:h=>this.setState({adapterInstallSpecificVersion:h.target.value}),slotProps:{input:{endAdornment:this.state.adapterInstallSpecificVersion?e.jsx(o.InputAdornment,{position:"end",children:e.jsx(o.IconButton,{size:"small",onClick:()=>this.setState({adapterInstallSpecificVersion:""}),children:e.jsx(u.Close,{})})}):null}}}),e.jsx(o.Button,{color:"primary",variant:"contained",size:"small",disabled:!this.state.adapterInstallSpecificVersion,onClick:()=>{this.state.adapterInstallSpecificVersion&&(this.update(this.state.adapterInstallSpecificVersion),this.setState({showInstallVersion:!1,adapterInstallSpecificVersion:"",showDialog:!1}))},children:this.props.context.t("Install")})]}),e.jsx(o.Tooltip,{title:this.props.context.t("npmjs.com"),slotProps:{popper:{sx:this.styles.tooltip}},children:e.jsx(o.IconButton,{size:"small",onClick:()=>{window.open(`https://www.npmjs.com/package/iobroker.${this.props.adapterName}?activeTab=versions`,this.props.adapterName).focus()},children:e.jsx(u.Link,{})})})]}),e.jsx(o.Box,{component:"div",sx:this.styles.header,children:this.props.context.t("Or select from the list")}),e.jsx("div",{style:{...this.styles.containerVersion,height:"calc(100% - 122px)",overflowY:"auto"},children:this.getNews(!0).map(({version:h,news:d})=>e.jsx(o.Card,{variant:"outlined",sx:this.styles.currentVersion,onClick:()=>{this.update(h),this.setState({showInstallVersion:!1,showDialog:!1})},children:e.jsxs(o.CardContent,{children:[e.jsxs(o.Typography,{sx:R.getStyle(this.props.context.theme,this.installedVersion===h&&this.styles.currentVersionText,{fontSize:16,fontWeight:"bold"}),color:"text.secondary",gutterBottom:!0,children:[h,this.installedVersion===h?e.jsx(o.Box,{component:"span",sx:this.styles.currentVersionText,children:`(${this.props.context.t("current")})`}):null,s===h?e.jsx(o.Box,{component:"span",sx:this.styles.repoLatestVersionText,children:"(latest)"}):null,t===h?e.jsx(o.Box,{component:"span",sx:this.styles.repoStableVersionText,children:`(${this.props.context.t("stable")})`}):null]}),e.jsx(o.Typography,{variant:"body2",style:{opacity:.7},children:G.formatNews(d)})]})},h))})]})})}renderSetRatingDialog(){return this.state.showSetRating?e.jsx(Bt,{t:this.props.context.t,lang:this.props.context.lang,version:this.state.showSetRating.version,adapter:this.props.adapterName,currentRating:this.state.showSetRating.rating,onClose:t=>{t&&this.props.context.updateRating(this.props.adapterName,t),this.setState({showSetRating:null,showDialog:!1})},uuid:this.props.context.uuid}):null}renderAdapterDeletionDialog(){return this.state.adapterDeletionDialog?e.jsx($t,{adapter:this.props.adapterName,socket:this.props.context.socket,t:this.props.context.t,onClick:t=>this.delete(t),onClose:()=>this.setState({adapterDeletionDialog:!1,showDialog:!1})}):null}openInfoDialog(){var i;const s=(i=this.props.context.repository[this.props.adapterName].docs)!=null&&i[this.props.context.lang]?this.props.context.lang:"en";window.open(dt.getDocsLinkForAdapter({lang:s,adapterName:this.props.adapterName}),"help")}getNews(t=!1){const s=this.props.context.repository[this.props.adapterName],i=this.props.context.installed[this.props.adapterName],r=[];return i&&(s!=null&&s.news)&&Object.keys(s.news).forEach(n=>{try{if(V.gt(n,i.version)||t){let l;typeof s.news[n]=="object"?l=this.props.noTranslation?s.news[n].en:s.news[n][this.props.context.lang]||s.news[n].en:l=s.news[n],r.push({version:n,news:l})}}catch{console.warn(`[ADAPTERS] Cannot compare "${n}" and "${i.version}" (${this.props.adapterName})`)}}),r}onUpload(){var r;const t=this.props.context.repository[this.props.adapterName],s=K(t),i=((r=t.licenseInformation)==null?void 0:r.license)||t.license;i!=="MIT"?this.setState({showLicenseDialog:{url:s,upload:!0,adapterName:this.props.adapterName,licenseType:i},showDialog:!0}):H.upload(this.props.adapterName,this.props.context)}delete(t){this.props.context.executeCommand(`del ${this.props.adapterName}${t?" --custom":""}${this.props.context.expertMode?" --debug":""}`)}async update(t){if(this.props.adapterName==="admin"&&this.props.context.adminHost===this.props.context.currentHost&&await this.props.context.socket.checkFeatureSupported("ADAPTER_WEBSERVER_UPGRADE")){this.props.context.setAdminUpgradeTo(t);return}this.props.context.executeCommand(`upgrade ${this.props.adapterName}@${t}${this.props.context.expertMode?" --debug":""}`)}rebuild(){this.props.context.executeCommand(`rebuild ${this.props.adapterName}${this.props.context.expertMode?" --debug":""}`)}renderDialogs(){return this.state.showDialog?e.jsxs(e.Fragment,{children:[this.renderAddInstanceDialog(this.props.context),this.renderLicenseDialog(this.props.context),this.renderUpdateAdapterDialog(),this.renderAdapterInstallVersion(),this.renderSetRatingDialog(),this.renderAdapterDeletionDialog(),this.renderAutoUpdateDialog()]}):null}}const Pt="0 2px 2px 0 rgba(0, 0, 0, .14),0 3px 1px -2px rgba(0, 0, 0, .12),0 1px 5px 0 rgba(0, 0, 0, .2)",Ft="0 8px 17px 0 rgba(0, 0, 0, .2),0 6px 20px 0 rgba(0, 0, 0, .19)",Mt={...gt,type:{color:"tile"},root:p=>({position:"relative",m:"10px",width:300,minHeight:200,background:p.palette.background.default,boxShadow:Pt,display:"flex",flexDirection:"column",transition:"box-shadow 0.5s","&:hover":{boxShadow:Ft}}),imageBlock:p=>({background:p.palette.mode==="dark"?"#848484":"#c0c0c0",minHeight:60,display:"flex",padding:"0 10px 0 10px",position:"relative",justifyContent:"space-between",color:"#000"}),img:{width:45,height:45,margin:"auto 0",position:"relative","&:after":{content:'""',position:"absolute",zIndex:2,top:0,left:0,width:"100%",height:"100%",background:'url("img/no-image.svg") 100% 100% no-repeat',backgroundSize:"cover",backgroundColor:"#fff"}},installed:{background:"#77c7ff8c"},update:{background:"#10ff006b"},fab:{position:"absolute",bottom:-20,width:40,height:40,right:20},greenText:p=>({color:p.palette.success.dark}),collapse:{height:"100%",backgroundColor:"silver",position:"absolute",width:"100%",zIndex:3,marginTop:"auto",bottom:0,justifyContent:"space-between",display:"flex",flexDirection:"column"},close:{width:20,height:20,opacity:.9,cursor:"pointer",position:"relative",marginLeft:"auto",mb:"10px",transition:"all 0.6s ease","&:hover":{transform:"rotate(90deg)"},"&:before":{position:"absolute",left:9,content:'""',height:20,width:3,backgroundColor:"rgba(0, 0, 0, 0.54)",transform:"rotate(45deg)"},"&:after":{position:"absolute",left:9,content:'""',height:20,width:3,backgroundColor:"rgba(0, 0, 0, 0.54)",transform:"rotate(-45deg)"}},footerBlock:p=>({background:p.palette.background.default,p:"10px",display:"flex",justifyContent:"space-between"}),versionDate:{alignSelf:"center"},adapter:p=>({width:"100%",fontWeight:"bold",fontSize:16,verticalAlign:"middle",pl:1,pt:2,color:(p.palette.mode==="dark","#333")}),adapterWithAgo:{width:"calc(100% - 145px)"},description:p=>({color:p.palette.mode==="dark"?"#222":"inherit"}),cardContent:{overflow:"auto"},cardContentDiv:{position:"sticky",right:0,top:0,background:"silver"},cardContentFlex:{display:"flex"},cardContentFlexBetween:{display:"flex",justifyContent:"space-between"},cardContent2:{height:"100%",display:"flex",flexDirection:"column",justifyContent:"space-between"},cardMargin10:{marginTop:10},availableVersion:{display:"flex",justifyContent:"space-between"},curdContentFlexCenter:{display:"flex",alignItems:"center"},versionWarn:{color:ht[500],marginRight:5},rating:{marginTop:20}};class _t extends G{styles=Mt;constructor(t){super(t),Object.assign(this.state,{openCollapse:!1})}renderInfoCard(){return e.jsxs("div",{style:this.styles.collapse,children:[e.jsxs(o.CardContent,{style:this.styles.cardContent,children:[e.jsx("div",{style:this.styles.cardContentDiv,children:e.jsx(o.Box,{component:"div",sx:this.styles.close,onClick:()=>this.setState({openCollapse:!this.state.openCollapse})})}),e.jsx(o.Typography,{gutterBottom:!0,component:"span",variant:"body2",sx:this.styles.description,children:this.props.cached.desc})]}),e.jsxs(o.Box,{component:"div",sx:this.styles.footerBlock,children:[this.renderAddInstanceButton(),e.jsxs("div",{style:this.styles.cardContentFlex,children:[this.renderAutoUpgradeButton(),this.renderReadmeButton(),this.renderUploadButton(),this.renderDeleteButton(),this.renderInstallSpecificVersionButton()]})]})]})}renderCardMedia(){const t=this.props.context.repository[this.props.adapterName],s=t==null?void 0:t.version;return e.jsxs(o.Box,{component:"div",sx:R.getStyle(this.props.context.theme,this.styles.imageBlock,this.installedVersion&&this.styles.installed,this.installedVersion&&s&&this.installedVersion!==s&&this.props.cached.updateAvailable&&this.styles.update),children:[e.jsx(o.CardMedia,{sx:this.styles.img,component:i=>G.renderImage(i),src:this.props.cached.image||"img/no-image.svg",image:this.props.cached.image||"img/no-image.svg"}),e.jsx(o.Box,{component:"div",sx:R.getStyle(this.props.context.theme,this.styles.adapter,(t.stat||this.props.context.sortRecentlyUpdated)&&this.styles.adapterWithAgo),children:this.props.adapterName}),this.props.context.sortPopularFirst?e.jsx("div",{style:this.styles.versionDate,children:t.stat}):null,this.props.context.sortRecentlyUpdated?e.jsx("div",{style:this.styles.versionDate,children:this.props.cached.daysAgoText}):null,!this.props.context.sortPopularFirst&&!this.props.context.sortRecentlyUpdated?this.renderRating():null,this.state.openCollapse?null:e.jsx(o.Tooltip,{title:this.props.context.t("Info"),slotProps:{popper:{sx:{pointerEvents:"none"}}},children:e.jsx(o.Fab,{onClick:()=>this.setState({openCollapse:!this.state.openCollapse}),style:this.styles.fab,color:"primary","aria-label":"add",children:e.jsx(u.MoreVert,{})})})]})}renderCardContent(){const t=this.props.context.repository[this.props.adapterName]?this.props.context.repository[this.props.adapterName].allowAdapterUpdate:!0,s=this.props.context.installed[this.props.adapterName];return e.jsxs(o.CardContent,{style:this.styles.cardContent2,children:[e.jsx(o.Typography,{gutterBottom:!0,variant:"h5",component:"h5",children:this.props.cached.title}),e.jsxs("div",{style:this.styles.cardContentFlex,children:[this.renderConnectionType(),this.renderDataSource(),e.jsx("div",{children:this.renderLicenseInfo()}),this.renderSentryInfo()]}),e.jsxs("div",{style:this.styles.cardMargin10,children:[s!=null&&s.count?e.jsxs(o.Typography,{component:"span",style:this.styles.cardContentFlexBetween,children:[e.jsxs("div",{children:[this.props.context.t("Installed instances"),":"]}),e.jsx("div",{children:s.count})]}):null,e.jsx(N,{value:t,children:e.jsxs(o.Typography,{component:"span",style:this.styles.availableVersion,children:[e.jsx("div",{children:this.props.context.t("Available version:")}),e.jsx(o.Box,{component:"div",sx:R.getStyle(this.props.context.theme,this.props.cached.updateAvailable&&this.styles.greenText,this.styles.curdContentFlexCenter),children:this.renderVersion()})]})}),this.renderInstalledVersion()]})]})}render(){var t;return this.installedVersion=(t=this.props.context.installed[this.props.adapterName])==null?void 0:t.version,e.jsxs(o.Card,{sx:this.styles.root,children:[this.state.openCollapse?this.renderInfoCard():null,this.renderCardMedia(),this.renderCardContent(),this.renderDialogs()]})}}const Ht={...gt,type:{color:"line"},smallAvatar:{width:32,height:32,marginLeft:4},paddingNone:{padding:"0 !important"},name:{flexWrap:"nowrap",width:300,marginTop:0},flex:{display:"flex"},nameCell:{paddingTop:"0 !important",paddingBottom:"0 !important"}};class Et extends G{styles=Ht;render(){var i,r;const t=this.props.context.repository[this.props.adapterName],s=t?t.allowAdapterRating:!0;return this.installedVersion=(i=this.props.context.installed[this.props.adapterName])==null?void 0:i.version,e.jsxs(o.TableRow,{hover:!0,children:[e.jsx(o.TableCell,{}),e.jsx(o.TableCell,{children:e.jsxs(o.Grid2,{container:!0,spacing:1,alignItems:"center",style:this.styles.name,children:[e.jsx(o.Tooltip,{title:this.props.adapterName,slotProps:{popper:{sx:this.styles.tooltip}},children:e.jsx(o.Grid2,{style:this.styles.paddingNone,children:e.jsx(o.Avatar,{variant:"square",alt:this.props.cached.title,src:this.props.cached.image,style:this.styles.smallAvatar})})}),s!==!1?e.jsxs(o.Grid2,{style:this.styles.nameCell,children:[e.jsx("div",{children:this.props.cached.title}),this.renderRating()]}):e.jsx(o.Grid2,{children:this.props.cached.title})]})}),!this.props.context.descHidden&&e.jsx(o.TableCell,{title:this.props.cached.desc,style:{width:20,wordWrap:"break-word"},children:this.props.cached.desc}),e.jsx(o.TableCell,{children:e.jsxs("div",{style:this.styles.flex,children:[this.renderConnectionType()||e.jsx("div",{style:{marginLeft:5,width:24,height:24}}),this.renderDataSource()||e.jsx("div",{style:{width:24,height:24}}),this.renderSentryInfo()||e.jsx("div",{style:{width:24,height:24}}),this.renderLicenseInfo()]})}),e.jsx(o.TableCell,{children:this.renderInstalledVersion(!0)}),e.jsx(o.TableCell,{children:e.jsx(o.Grid2,{container:!0,alignItems:"center",children:this.renderVersion()})}),e.jsx(o.TableCell,{style:{fontSize:"smaller"},children:((r=t==null?void 0:t.licenseInformation)==null?void 0:r.license)||(t==null?void 0:t.license)}),e.jsxs(o.TableCell,{children:[this.renderAddInstanceButton(),this.renderAutoUpgradeButton(),this.renderReadmeButton(),this.renderUploadButton(),this.renderDeleteButton(),this.renderInstallSpecificVersionButton(),this.renderRebuildButton()]}),this.renderDialogs()]})}}const X=34*7+8,$={emptyBlock:50,name:300,connectionType:120,installed:120,available:120,update:40,license:80,install:X},J=Object.keys($).reduce((p,t)=>p+$[t],0),I={container:{height:"100%",width:"100%"},containerNotFullHeight:{height:"calc(100% - 50px)"},containerFullHeight:{height:"100%"},table:{width:"100%",tableLayout:"fixed",minWidth:960,"& td":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",pt:"2px",pb:"2px",pr:"4px",pl:"4px"},"& th":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",pt:"2px",pb:"2px",pr:"4px",pl:"4px"}},name:{flexWrap:"nowrap",width:$.name},emptyBlock:{flexWrap:"nowrap",width:$.emptyBlock},description:{width:`calc(100% - ${J+2}px)`},connectionType:{width:$.connectionType},installed:{width:$.installed},available:{width:$.available,paddingRight:6},license:{width:$.license},install:{width:$.install},viewModeDiv:{display:"flex",flexFlow:"wrap",overflow:"auto",justifyContent:"center"}};class Gt extends L.Component{lastRenderCounter=-1;constructor(t){super(t),this.state={descWidth:t.descWidth,repoName:t.repoName,systemConfig:!!t.systemConfig,tableViewMode:t.tableViewMode,oneListView:t.oneListView,categoriesExpanded:JSON.stringify(t.categoriesExpanded),cachedAdapters:t.cachedAdapters?Object.keys(t.cachedAdapters).length:0,update:t.update,sortByName:t.sortByName,sortPopularFirst:t.sortPopularFirst,sortRecentlyUpdated:t.sortRecentlyUpdated,renderCounter:0,listOfVisibleAdapter:JSON.stringify(t.listOfVisibleAdapter),expertMode:t.context.expertMode,commandRunning:t.commandRunning,noTranslation:t.noTranslation}}getRow(t,s){const i=this.props.cachedAdapters[t];return i?e.jsx(Et,{context:s,adapterName:t,cached:i,commandRunning:this.state.commandRunning,noTranslation:this.state.noTranslation},`adapter-${t}`):null}getRows(t){var r;if(!this.props.listOfVisibleAdapter)return e.jsx(o.TableRow,{children:e.jsx(o.TableCell,{colSpan:8,children:e.jsx(o.LinearProgress,{})})});let s=0,i=[];if(this.props.oneListView){for(let n=0;n<this.props.listOfVisibleAdapter.length;n++){const l=this.props.listOfVisibleAdapter[n];i.length>50&&!((r=this.props.context.installed[l])!=null&&r.version)||i.push(this.getRow(l,t))}if(s=i.length,s&&this.props.listOfVisibleAdapter.length>i.length){const n=this.props.listOfVisibleAdapter.length-i.length,l=n===1?this.props.context.t("Filter adapters to see others. There is %s more",1):this.props.context.t("Filter adapters to see others. There are %s more",n);i.push(e.jsx(o.TableRow,{children:e.jsx(o.TableCell,{colSpan:8,style:{fontSize:20,padding:20,textAlign:"center"},children:l})},"more"))}}else i=this.props.categories.map(n=>{if(!n.adapters.find(d=>this.props.listOfVisibleAdapter.includes(d)))return null;const c=n.name,h=this.props.categoriesExpanded[c];return s++,e.jsxs(L.Fragment,{children:[e.jsx(Ut,{categoryName:c,count:n.count,expanded:h,installedCount:n.installed,name:n.translation,descHidden:t.descHidden,onToggle:()=>this.props.toggleCategory(c),t:this.props.context.t},`category-${c}1`),h&&n.adapters.map(d=>{const a=this.getRow(d,t);return a&&s++,a})]},`category-${c} ${n.adapters.length}`)});return s?i:this.props.update?null:e.jsx("tr",{children:e.jsxs("td",{colSpan:8,style:{textAlign:"center"},children:[this.props.searchFilter||this.props.installedListFilter?e.jsx(o.Button,{variant:"outlined",title:this.props.context.t("Click to clear all filters"),onClick:()=>this.props.clearAllFilters(),children:this.props.context.t("all items are filtered out")}):null,this.props.updateListFilter&&(this.props.searchFilter||this.props.installedListFilter)?e.jsx("br",{}):null,this.props.updateListFilter?e.jsx(o.Button,{style:{marginTop:16},variant:"outlined",onClick:()=>this.props.clearAllFilters(!0),startIcon:e.jsx(u.Update,{}),children:this.props.context.t("Remove filter for updatable adapters")}):null]})})}getTiles(t){var i;if(!this.props.listOfVisibleAdapter)return e.jsx(o.LinearProgress,{});if(!this.props.listOfVisibleAdapter.length)return this.props.update?null:e.jsxs("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:16},children:[this.props.searchFilter||this.props.installedListFilter?e.jsx(o.Tooltip,{title:this.props.context.t("Click to clear all filters"),slotProps:{popper:{sx:{pointerEvents:"none"}}},children:e.jsx(o.Button,{variant:"outlined",onClick:()=>this.props.clearAllFilters(),children:this.props.context.t("all items are filtered out")})}):null,this.props.updateListFilter?e.jsx(o.Button,{variant:"outlined",onClick:()=>this.props.clearAllFilters(!0),startIcon:e.jsx(u.Update,{}),children:this.props.context.t("Remove filter for updatable adapters")}):null]});const s=[];for(let r=0;r<this.props.listOfVisibleAdapter.length;r++){const n=this.props.listOfVisibleAdapter[r],l=this.props.cachedAdapters[n];s.length>50&&!((i=this.props.context.installed[n])!=null&&i.version)||s.push(e.jsx(_t,{context:t,adapterName:n,cached:l,commandRunning:this.state.commandRunning,noTranslation:this.state.noTranslation},`adapter-${n}`))}return this.props.listOfVisibleAdapter.length>s.length&&(s.push(e.jsx("div",{style:{flexBasis:"100%",height:0}},"newLine")),s.push(e.jsx("div",{style:{fontSize:20,margin:20},children:this.props.context.t("Filter adapters to see others. There is %s more",this.props.listOfVisibleAdapter.length-s.length)},"more"))),s}renderTileView(t,s,i){return e.jsxs(e.Fragment,{children:[t?null:e.jsx(o.Box,{sx:{marginX:2,marginTop:1,width:"calc(100% - 32px)"},children:e.jsx(Z,{type:"warning",children:this.props.context.t('Active repo is "%s"',s)})}),e.jsx("div",{style:I.viewModeDiv,children:this.getTiles(i)})]})}renderTableView(t,s,i){return e.jsxs(vt,{children:[t?null:e.jsx(o.Box,{sx:{marginX:2,marginTop:1,width:"calc(100% - 32px)"},children:e.jsx(Z,{type:"warning",children:this.props.context.t('Active repo is "%s"',s)})}),e.jsx(o.TableContainer,{style:{...I.container,...t?I.containerFullHeight:I.containerNotFullHeight},children:e.jsxs(o.Table,{stickyHeader:!0,size:"small",sx:I.table,children:[e.jsx(o.TableHead,{children:e.jsxs(o.TableRow,{children:[e.jsx(o.TableCell,{style:I.emptyBlock}),e.jsx(o.TableCell,{style:I.name,children:e.jsx(o.Typography,{children:this.props.context.t("Name")})}),!i.descHidden&&e.jsx(o.TableCell,{style:{...I.description,width:this.props.descWidth},children:e.jsx(o.Typography,{children:this.props.context.t("Description")})}),e.jsx(o.TableCell,{style:I.connectionType}),e.jsx(o.TableCell,{style:I.installed,children:e.jsx(o.Typography,{children:this.props.context.t("Installed")})}),e.jsx(o.TableCell,{style:I.available,children:e.jsx(o.Typography,{children:this.props.context.t("Available")})}),e.jsx(o.TableCell,{style:I.license,children:e.jsx(o.Typography,{children:this.props.context.t("License")})}),e.jsx(o.TableCell,{style:{...I.install,width:this.state.expertMode?X:X-34*2},children:e.jsx(o.Typography,{children:this.props.context.t("Install")})})]})}),e.jsx(o.TableBody,{children:this.getRows(i)})]})})]})}static getDerivedStateFromProps(t,s){let i=!1;t.descWidth!==s.descWidth&&(console.log("Render because of descWidth"),i=!0),t.repoName!==s.repoName&&(console.log("Render because of repoName"),i=!0),!!t.systemConfig!==s.systemConfig&&(console.log("Render because of systemConfig"),i=!0),t.tableViewMode!==s.tableViewMode&&(console.log("Render because of tableViewMode"),i=!0),t.oneListView!==s.oneListView&&(console.log("Render because of oneListView"),i=!0);const r=JSON.stringify(t.categoriesExpanded);r!==s.categoriesExpanded&&(console.log("Render because of categoriesExpanded"),i=!0);const n=t.cachedAdapters?Object.keys(t.cachedAdapters).length:0;n!==s.cachedAdapters&&(console.log(`Render because of cachedAdapters ${n} <> ${s.cachedAdapters}`),i=!0),t.update!==s.update&&(console.log("Render because of update"),i=!0),t.sortByName!==s.sortByName&&(console.log("Render because of sortByName"),i=!0),t.sortPopularFirst!==s.sortPopularFirst&&(console.log("Render because of sortPopularFirst"),i=!0),t.sortRecentlyUpdated!==s.sortRecentlyUpdated&&(console.log("Render because of sortRecentlyUpdated"),i=!0),t.context.expertMode!==s.expertMode&&(console.log("Render because of expertMode"),i=!0);const l=JSON.stringify(t.listOfVisibleAdapter);return l!==s.listOfVisibleAdapter&&(console.log("Render because of listOfVisibleAdapter"),i=!0),t.commandRunning!==s.commandRunning&&(console.log("Render because of commandRunning"),i=!0),t.noTranslation!==s.noTranslation&&(console.log("Render because of commandRunning"),i=!0),i?{descWidth:t.descWidth,repoName:t.repoName,systemConfig:!!t.systemConfig,tableViewMode:t.tableViewMode,oneListView:t.oneListView,categoriesExpanded:r,cachedAdapters:n,update:t.update,sortByName:t.sortByName,sortPopularFirst:t.sortPopularFirst,sortRecentlyUpdated:t.sortRecentlyUpdated,listOfVisibleAdapter:l,renderCounter:s.renderCounter+1,expertMode:t.context.expertMode,commandRunning:t.commandRunning,noTranslation:t.noTranslation}:null}shouldComponentUpdate(t,s){return this.lastRenderCounter!==s.renderCounter?(this.lastRenderCounter=s.renderCounter,!0):!1}render(){var t,s;return(s=(t=this.props.systemConfig)==null?void 0:t.common)!=null&&s.activeRepo?this.props.tableViewMode?this.renderTableView(this.props.stableRepo,this.props.repoName,this.props.context):this.renderTileView(this.props.stableRepo,this.props.repoName,this.props.context):e.jsx(o.LinearProgress,{})}}class zt extends L.Component{updating;interval;startTimeout;textareaRef;link;oldVersion;constructor(t){super(t),this.state={response:null,error:null,starting:!0,upAgain:!1},this.updating=!1,this.textareaRef=q.createRef(),this.link=`${window.location.protocol}//${window.location.host}/`}setUpdating(t){this.updating!==t&&(this.updating=t,this.props.onUpdating(t))}async getWebserverParams(){const t=await this.props.socket.getObject(`system.adapter.${this.props.adminInstance}`);return{useHttps:t.native.secure,port:t.native.port,certPrivateName:t.native.certPrivate,certPublicName:t.native.certPublic}}async componentDidMount(){const{certPrivateName:t,certPublicName:s,port:i,useHttps:r}=await this.getWebserverParams();this.oldVersion=this.props.currentAdminVersion,await this.props.socket.upgradeAdapterWithWebserver(this.props.host,{version:this.props.version,adapterName:"admin",port:i,useHttps:r,certPublicName:s,certPrivateName:t}),this.setUpdating(!0),this.interval=setInterval(()=>this.checkStatus(),1e3),this.startTimeout=setTimeout(()=>{this.startTimeout=null,this.setState({starting:!1})},1e4)}componentWillUnmount(){this.interval&&(clearInterval(this.interval),this.interval=null),this.startTimeout&&(clearTimeout(this.startTimeout),this.startTimeout=null)}async checkVersion(){try{const s=await(await fetch("./version")).text();return s&&s.length<20&&s!==this.oldVersion?(this.interval&&(clearInterval(this.interval),this.interval=null),this.setState({response:{running:!1,success:!0,stderr:[],stdout:[w.t("Version updated to %s",s)]},upAgain:!0,error:null},()=>this.setUpdating(!1)),!0):s===this.oldVersion}catch{return!1}}async checkStatus(){console.log(`Request update status from: ${this.link}`);try{const s=await(await fetch(this.link)).text();if(console.log(`Received status: ${s}`),s.startsWith("{")&&s.endsWith("}"))try{const i=JSON.parse(s);i!=null&&i.stderr&&(i.stderr=i.stderr.filter(r=>r.trim())),i&&!i.running&&i.success&&i.stdout?(i.stdout.push(""),i.stdout.push("---------------------------------------------------"),i.stdout.push(w.t("%s was successfully updated to %s","admin",this.props.version))):i!=null&&i.stdout&&(i.stdout.unshift(""),i.stdout.unshift("---------------------------------------------------"),i.stdout.unshift(w.t("updating %s to %s...","admin",this.props.version))),this.setState({response:i,error:null},()=>{i&&!i.running?(this.interval&&(clearInterval(this.interval),this.interval=null),this.waitForAdapterStart()):i!=null&&i.running&&this.setUpdating(!0),this.textareaRef.current&&setTimeout(()=>this.textareaRef.current.scrollTop=this.textareaRef.current.scrollHeight,100)})}catch(i){console.error(`Cannot parse response: ${i}`),this.setState({error:s},()=>this.setUpdating(!1))}else await this.checkVersion()||console.error(`Response is not JSON: ${s}`)}catch(t){this.state.starting||this.setState({error:t.toString()},()=>this.setUpdating(!1))}}waitForAdapterStart(){this.interval=setInterval(async()=>{try{await fetch(this.link),clearInterval(this.interval),this.interval=null,this.setState({upAgain:!0})}catch{}},1e3)}render(){var t,s,i,r,n;return e.jsxs(o.Dialog,{onClose:(l,c)=>{c!=="escapeKeyDown"&&c!=="backdropClick"&&this.props.onClose()},open:!0,maxWidth:"lg",fullWidth:!0,children:[e.jsx(o.DialogTitle,{children:w.t("Updating %s...","admin")}),e.jsxs(o.DialogContent,{style:{height:400,padding:"0 20px",overflow:"hidden"},children:[(!this.state.response||this.state.response.running)&&!this.state.error?e.jsx(o.LinearProgress,{}):null,this.state.response||this.state.error?e.jsx("textarea",{ref:this.textareaRef,style:{width:"100%",height:"100%",resize:"none",background:this.props.themeType==="dark"?"#000":"#fff",color:this.props.themeType==="dark"?"#EEE":"#111",boxSizing:"border-box",fontFamily:"Consolas,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New, monospace",border:(t=this.state.response)!=null&&t.success?"2px solid green":this.state.error||this.state.response&&!this.state.response.running&&!this.state.response.success?"2px solid red":void 0},value:this.state.error?this.state.error:this.state.response.stderr&&this.state.response.stderr.length?this.state.response.stderr.join(`
5
+ `):this.state.response.stdout.join(`
6
+ `),readOnly:!0}):null]}),e.jsx(o.DialogActions,{children:e.jsx(o.Button,{variant:"contained",disabled:this.state.starting||!this.state.error&&!this.state.upAgain,onClick:()=>{var l;(l=this.state.response)!=null&&l.success&&window.location.reload(),this.props.onClose()},color:(s=this.state.response)!=null&&s.success?"primary":"grey",startIcon:(i=this.state.response)!=null&&i.success?e.jsx(u.Refresh,{}):e.jsx(u.Close,{}),children:(r=this.state.response)!=null&&r.success&&!this.state.upAgain?e.jsx(o.CircularProgress,{}):(n=this.state.response)!=null&&n.success?w.t("Reload"):w.t("Close")})})]})}}const b={grow:{flexGrow:1},updateAllButton:p=>({position:"relative","& .admin-update-second-icon":{position:"absolute",top:15,left:15,opacity:.4,color:p.palette.mode==="dark"?"#aad5ff":"#007fff"}}),counters:{mr:"10px",minWidth:120,display:"flex","& div":{ml:"3px"}},infoAdapters:p=>({fontSize:10,color:p.palette.mode==="dark"?"#9c9c9c":"#333",cursor:"pointer"}),greenText:{color:"#00a005d1"},tooltip:{pointerEvents:"none"}},lt=[{name:"Description A-Z"},{name:"Name A-Z"},{name:"Popular first",notByList:!0},{name:"Recently updated",notByList:!0}];class k extends H{inputRef;countRef;t;wordCache={};cache={listOfVisibleAdapter:null,adapters:null};listOfVisibleAdapterLength=0;allAdapters=0;installedAdapters=0;recentUpdatedAdapters=0;uuid="";buildCacheTimer=null;updateTimeout=null;typingTimer=null;hostsTimer=null;onHostAdapterTimer=null;tempAdapters=null;tempInstalled=null;tempInstances=null;hostAdapterWorker=null;constructor(t){super(t),Object.assign(this.state,{lastUpdate:0,repository:{},installed:{},installedGlobal:{},adapters:{},compactInstances:{},categories:[],hostData:null,compactRepositories:null,hostOs:"",nodeJsVersion:"",init:!1,update:!1,filterConnectionType:!1,search:(window._localStorage||window.localStorage).getItem("Adapter.search")||"",oneListView:!1,tableViewMode:!1,updateList:!1,installedList:0,categoriesTiles:"All",filterTiles:"Description A-Z",gitHubInstallDialog:!1,updateAvailable:[],filteredList:null,showUpdater:!1,descWidth:300,showStatistics:!1,readTimeoutMs:st.getReadTimeoutMs(),showSlowConnectionWarning:!1,currentHost:t.currentHost,forceUpdateAdapters:t.forceUpdateAdapters,triggerUpdate:t.triggerUpdate,ratings:null,categoriesExpanded:{},adminUpgradeTo:""}),this.inputRef=L.createRef(),this.countRef=L.createRef(),this.t=this.translate}translate=(t,s,i)=>s!==void 0?this.props.t(t,s,i):(this.wordCache[t]||(this.wordCache[t]=this.props.t(t)),this.wordCache[t]);renderSlowConnectionWarning(){return this.state.showSlowConnectionWarning?e.jsx(st,{readTimeoutMs:this.state.readTimeoutMs,t:this.t,onClose:t=>{t?this.setState({showSlowConnectionWarning:!1,readTimeoutMs:t},()=>this.updateAll()):this.setState({showSlowConnectionWarning:!1})}}):null}async componentDidMount(){this.props.ready&&(this.hostAdapterWorker=new ot(this.props.socket,this.props.currentHost),this.hostAdapterWorker.registerHandler(this.onHostAdapterChanged),await this.hostAdapterWorker.getObjects(),await this.updateAll(),this.state.search&&this.filterAdapters(),this.props.adaptersWorker.registerHandler(this.onAdaptersChanged),this.props.instancesWorker.registerHandler(this.onAdaptersChanged))}async updateAll(t,s,i){await this.getAdapters(t,s,i),await this.getAdaptersInfo(t,i)}componentDidUpdate(){const t=this.getDescWidth();this.state.descWidth!==t&&this.setState({descWidth:t}),this.countRef.current&&(this.countRef.current.innerHTML=this.listOfVisibleAdapterLength.toString())}componentWillUnmount(){this.updateTimeout&&(clearTimeout(this.updateTimeout),this.updateTimeout=null),this.buildCacheTimer&&(clearTimeout(this.buildCacheTimer),this.buildCacheTimer=null),this.typingTimer&&(clearTimeout(this.typingTimer),this.typingTimer=null),this.hostsTimer&&(clearTimeout(this.hostsTimer),this.hostsTimer=null),this.onHostAdapterTimer&&(clearTimeout(this.onHostAdapterTimer),this.onHostAdapterTimer=null),this.props.adaptersWorker.unregisterHandler(this.onAdaptersChanged),this.props.instancesWorker.unregisterHandler(this.onAdaptersChanged),this.hostAdapterWorker.destroy(),this.hostAdapterWorker=null}onAdaptersChanged=t=>{this.tempAdapters=this.tempAdapters||JSON.parse(JSON.stringify(this.state.adapters||{})),this.tempInstalled=this.tempInstalled||JSON.parse(JSON.stringify(this.state.installed||{})),this.tempInstances=this.tempInstances||JSON.parse(JSON.stringify(this.state.compactInstances||{})),t.forEach(s=>{if(!!s.id.match(/\.\d+$/))s.type==="deleted"||!s.obj?delete this.tempInstances[s.id]:this.tempInstances[s.id]={enabled:s.obj.common.enabled,icon:s.obj.common.icon,name:s.obj.common.name,adminTab:s.obj.common.adminTab,version:s.obj.common.version};else if(s.type==="deleted"||!s.obj){const r=s.id.split(".");delete this.tempInstalled[r[2]],delete this.tempAdapters[s.id]}else{const r=s.obj.common.name;this.tempInstalled[r]?Object.keys(this.tempInstalled[r]).forEach(n=>{s.obj.common[n]!==void 0&&n!=="installedFrom"&&(this.tempInstalled[r][n]=s.obj.common[n])}):this.tempInstalled[s.id.split(".").pop()]=JSON.parse(JSON.stringify(s.obj.common)),this.tempAdapters[s.id]=s.obj}}),this.updateTimeout&&clearTimeout(this.updateTimeout),this.updateTimeout=setTimeout(()=>{this.updateTimeout=null;const s=this.tempAdapters;this.tempAdapters=null;const i=this.tempInstalled;this.tempInstalled=null;const r=this.tempInstances;this.tempInstances=null,this.analyseInstalled({adapters:s,installedLocal:i,cb:()=>this.calculateInfo(r)})},300)};analyseInstalled(t){let{adapters:s,repository:i}=t;const{cb:r,installedLocal:n}=t;let{installedGlobal:l}=t;s=s||this.state.adapters;const c=n||this.state.installed;l=l||this.state.installedGlobal,i=i||this.state.repository;const h=[];Object.keys(c).forEach(d=>{if(c[d]){const a=c[d].version,g=i[d];g&&g.version!==a&&dt.updateAvailable(a,g.version)&&!h.includes(d)&&h.push(d)}}),this.cache.listOfVisibleAdapter=null,this.setState({adapters:s,updateAvailable:h,installed:c,repository:i,installedGlobal:l},()=>r&&r())}async getInstalled(t){let s,i={};const r=await this.props.socket.getHosts(t);for(const n of r)try{const l=await this.props.socket.getState(`${n._id}.alive`);if(l!=null&&l.val){const c=await this.props.socket.getInstalled(n._id,t,this.state.readTimeoutMs);n._id===this.state.currentHost&&(s=c),i={...i,...c}}}catch(l){window.alert(`Cannot getInstalled from "${n._id}" (timeout ${this.state.readTimeoutMs}ms): ${l}`),l.toString().includes("timeout")&&this.setState({showSlowConnectionWarning:!0})}return{installedLocal:s,installedGlobal:i}}async getAdapters(t,s,i){console.log("[ADAPTERS] getAdapters");const r=this.state.currentHost;t=t||this.props.adaptersWorker.isForceUpdate(),!this.state.update&&(t||i)&&this.setState({update:!0});let n;try{n=await this.props.adaptersWorker.getObjects(t)||{}}catch(d){window.alert(`Cannot getAdapters: ${d}`)}const{installedLocal:l,installedGlobal:c}=await this.getInstalled(t);let h;try{h=await this.props.socket.getRepository(r,{repo:this.props.systemConfig.common.activeRepo,update:s||i},t,this.state.readTimeoutMs)}catch(d){window.alert(`Cannot getRepository: ${d}`),d.toString().includes("timeout")&&this.setState({showSlowConnectionWarning:!0})}return this.analyseInstalled({adapters:n,installedLocal:l,repository:h,installedGlobal:c})}getWordVotes(t){if(t===1)return this.t("vote");if(t>=2&&t<=4)return this.t("votes2");if(t>=5&&t<=20)return this.t("votes");const s=t%10;return s===1?this.t("vote21"):s>=2&&s<=4?this.t("votes2"):this.t("votes")}static getAdapterTitle(t,s,i){if(!s[t])return t;const r=s[t].titleLang||s[t].title;let n;return typeof r=="object"?n=r[i]||r.en:n=r,n=((n||"").toString()||"").replace("ioBroker Visualisation - ",""),n.toLowerCase()}static sortAdapters(t,s,i,r,n,l,c,h){const d={};t.sort((a,g)=>{if(l)return r[g].stat===r[a].stat?(d[a]=d[a]||k.getAdapterTitle(a,r,s),d[g]=d[g]||k.getAdapterTitle(g,r,s),d[a]>d[g]?1:d[a]<d[g]?-1:0):r[g].stat-r[a].stat;if(c)return r[a]?r[g]?r[a].daysAgo===r[g].daysAgo?(d[a]=d[a]||k.getAdapterTitle(a,r,s),d[g]=d[g]||k.getAdapterTitle(g,r,s),d[a]>d[g]?1:d[a]<d[g]?-1:0):r[a].daysAgo-r[g].daysAgo:1:-1;if(h){if(h[a].exact&&!h[g].exact)return-1;if(!h[a].exact&&h[g].exact)return 1}return i[a]&&i[g]?n?a>g?1:a<g?-1:0:(d[a]=d[a]||k.getAdapterTitle(a,r,s),d[g]=d[g]||k.getAdapterTitle(g,r,s),d[a]>d[g]?1:d[a]<d[g]?-1:0):i[a]?-1:i[g]?1:n?a>g?1:a<g?-1:0:(d[a]=d[a]||k.getAdapterTitle(a,r,s),d[g]=d[g]||k.getAdapterTitle(g,r,s),d[a]>d[g]?1:d[a]<d[g]?-1:0)})}calculateInfo(t,s,i,r){i=i||this.state.hostData,s=s||this.state.ratings,t=t||this.state.compactInstances,r!=null&&r._id||(r=this.state.compactRepositories);const n=this.state.adapters,l=JSON.parse(JSON.stringify(this.state.installed)),c=JSON.parse(JSON.stringify(this.state.repository)),h=((i==null?void 0:i["Node.js"])||"").replace("v",""),d=(i==null?void 0:i.os)||"",a={},g=[];let x={};try{x=JSON.parse((window._localStorage||window.localStorage).getItem("Adapters.expandedCategories"))||{}}catch{}Object.keys(l).forEach(f=>{var U,E;const y=l[f];(E=(U=n[f])==null?void 0:U.common)!=null&&E.ignoreVersion&&(y.ignoreVersion=n[f].common.ignoreVersion),!y.controller&&f!=="hosts"&&(c[f]||(c[f]=JSON.parse(JSON.stringify(y)),c[f].version="")),y.count=0,y.enabled=0}),Object.keys(t).forEach(f=>{const y=t[f].name;l[y]&&l[y].count++});const m=Date.now();this.recentUpdatedAdapters=0,this.installedAdapters=0,Object.keys(c).forEach(f=>{var E;if(f==="hosts"||f.startsWith("_"))return;const y=c[f];y.keywords&&(y.keywords=y.keywords.map(D=>D.toLowerCase()));const U=l[f];if(y.rating=s==null?void 0:s[f],(E=y.rating)!=null&&E.rating?y.rating.title=[`${this.t("Total rating:")} ${y.rating.rating.r} (${y.rating.rating.c} ${this.getWordVotes(y.rating.rating.c)})`,U&&U.version&&y.rating[U.version]?`${this.t("Rating for")} v${U.version}: ${y.rating[U.version].r} (${y.rating[U.version].c} ${this.getWordVotes(y.rating.rating.c)})`:""].filter(D=>D).join(`
7
+ `):y.rating={title:this.t("No rating or too few data")},!y.controller){const D=y.type,et=l[f];Math.round((m-new Date(y.versionDate).getTime())/864e5)<=31&&this.recentUpdatedAdapters++,l[f]&&this.installedAdapters++,a[D]?(a[D].count++,a[D].adapters.push(f),et&&a[D].installed++):a[D]={name:D,translation:this.t(`${D}_group`),count:1,installed:et?1:0,adapters:[f]}}}),Object.keys(a).sort((f,y)=>f==="general"&&y!=="general"?-1:f!=="general"&&y==="general"||a[f].translation>a[y].translation?1:a[f].translation<a[y].translation?-1:0).forEach(f=>g.push(a[f]));const v=this.state.filterTiles==="Name A-Z";Object.keys(a).forEach(f=>k.sortAdapters(a[f].adapters,this.props.lang,l,c,v));let j=0;try{j=JSON.parse((window._localStorage||window.localStorage).getItem("Adapters.installedList")),j===!1&&(j=0)}catch{}const O=(window._localStorage||window.localStorage).getItem("Adapters.list")==="true",S=(window._localStorage||window.localStorage).getItem("Adapters.viewMode")==="true",F=(window._localStorage||window.localStorage).getItem("Adapters.updateList")==="true",M=(window._localStorage||window.localStorage).getItem("Adapters.categoriesTiles")||"All";let W=(window._localStorage||window.localStorage).getItem("Adapters.filterTiles")||"Description A-Z";return W==="A-Z"&&(W="Description A-Z"),this.allAdapters=Object.keys(c).length-1,this.cache.listOfVisibleAdapter=null,new Promise(f=>{this.setState({repository:c,installed:l,ratings:s,filterTiles:W,categoriesTiles:M,compactRepositories:r,installedList:j,compactInstances:t,updateList:F,tableViewMode:S,oneListView:O,lastUpdate:Date.now(),hostData:i,hostOs:d,nodeJsVersion:h,categories:g,categoriesExpanded:x,init:!0,update:!1},()=>f())})}async getAdaptersInfo(t,s){var i;if(this.state.currentHost&&Date.now()-this.state.lastUpdate>1e3){console.log("[ADAPTERS] getAdaptersInfo");const r=this.state.currentHost;let n;try{(!this.state.update||s)&&await new Promise(a=>{this.setState({update:!0},()=>a())});const l=await this.props.socket.getHostInfo(r,t,this.state.readTimeoutMs).catch(a=>{window.alert(`Cannot getHostInfo for "${r}": ${a}`),a.toString().includes("timeout")&&this.setState({showSlowConnectionWarning:!0})});if(((i=this.props.adminGuiConfig.admin.adapters)==null?void 0:i.allowAdapterRating)!==!1){try{n=await this.props.socket.getRatings(t)}catch(a){window.alert(`Cannot read ratings: ${a}`)}this.uuid=(n==null?void 0:n.uuid)||null}else n=null;const c=await this.props.socket.getCompactInstances(t).catch(a=>(window.alert(`Cannot read countsOfInstances: ${a}`),{})),d=await this.props.socket.getCompactSystemRepositories(t).catch(a=>(window.alert(`Cannot read getCompactSystemRepositories: ${a}`),{}));await this.calculateInfo(c||{},n,l,d)}catch(l){window.alert(`Cannot get adapters info: ${l}`)}}}toggleCategory(t){this.setState(s=>{const i=s.categoriesExpanded;return i[t]=!i[t],(window._localStorage||window.localStorage).setItem("Adapters.expandedCategories",JSON.stringify(i)),{categoriesExpanded:i}})}rightDependencies=t=>{const s=this.state.repository[t];let i=!0;if(s){const r=s.dependencies,n=s.node;if(r)if(r instanceof Array)r.forEach(c=>{const h=typeof c!="string",d=Object.keys(c),a=h?d?d[0]:null:c;if(i&&a){const g=this.state.installed[a];try{i=g?h?V.satisfies(g.version,c[a],{includePrerelease:!0}):!0:!1}catch{i=!0}}});else if(typeof r=="object"){const c=r;Object.keys(c).forEach(h=>{if(h&&c[h]!==void 0&&i){const d=this.state.installed[h],a=typeof c[h]=="string";try{i=d?a?V.satisfies(d.version,c[h],{includePrerelease:!0}):!0:!1}catch{i=!0}}})}else console.error(`[ADAPTERS] Invalid dependencies for ${t}: ${JSON.stringify(r)}`);const l=s.ifInstalledDependencies;if(l&&typeof l=="object"&&!Array.isArray(l)&&Object.keys(l).forEach(h=>{if(i&&h){const d=this.state.installed[h];try{i=d?V.satisfies(d.version,l[h],{includePrerelease:!0}):!0}catch{i=!0}}}),i&&n)try{i=V.satisfies(this.state.nodeJsVersion,n)}catch{i=!0}}return i};rightOs(t){const s=this.state.repository[t];return s!=null&&s.os?Array.isArray(s.os)?!!s.os.find(i=>this.state.hostOs===i):this.state.hostOs===s.os:!0}handleFilterChange(t){this.typingTimer&&clearTimeout(this.typingTimer),this.typingTimer=setTimeout(s=>{(window._localStorage||window.localStorage).setItem("Adapter.search",s||""),this.typingTimer=null,this.filterAdapters(s)},300,t.target.value)}expandAll(){this.setState(t=>{const s=t.categories,i=t.categoriesExpanded;return s.forEach(r=>i[r.name]=!0),(window._localStorage||window.localStorage).setItem("Adapters.expandedCategories",JSON.stringify(i)),{categoriesExpanded:i}})}collapseAll(){const t={};(window._localStorage||window.localStorage).setItem("Adapters.expandedCategories",JSON.stringify(t)),this.setState({categoriesExpanded:t})}listTable(){const t=!this.state.oneListView;t&&this.expandAll(),(window._localStorage||window.localStorage).setItem("Adapters.list",t?"true":"false"),this.setState({oneListView:t})}changeViewMode(){this.cache.listOfVisibleAdapter=null;const t=!this.state.tableViewMode;let s=this.state.filterTiles;t&&s!=="Description A-Z"&&s!=="Name A-Z"&&(s="Description A-Z",(window._localStorage||window.localStorage).setItem("Adapters.filterTiles",s)),(window._localStorage||window.localStorage).setItem("Adapters.viewMode",t?"true":"false"),this.setState({tableViewMode:t,filterTiles:s})}changeUpdateList(){this.cache.listOfVisibleAdapter=null;const t=!this.state.updateList;(window._localStorage||window.localStorage).setItem("Adapters.updateList",t?"true":"false"),this.setState({updateList:t})}changeInstalledList(t){this.cache.listOfVisibleAdapter=null;let s=this.state.installedList?this.state.installedList<2?2:0:1;!s&&t&&(s=1),(window._localStorage||window.localStorage).setItem("Adapters.installedList",JSON.stringify(s)),this.setState({installedList:s})}changeFilterTiles(t){this.cache.listOfVisibleAdapter=null,(window._localStorage||window.localStorage).setItem("Adapters.filterTiles",t),this.setState({filterTiles:t})}changeCategoriesTiles(t){this.cache.listOfVisibleAdapter=null,(window._localStorage||window.localStorage).setItem("Adapters.categoriesTiles",t),this.setState({categoriesTiles:t})}filterAdapters(t){t=t===void 0?this.state.search:t,t=(t||"").toLowerCase().trim();let s={};t?this.state.categories.forEach(i=>i.adapters.forEach(r=>{var d;const n=this.state.repository[r];if(!n)return;let l,c;const h=n.titleLang||n.title;typeof h=="object"?l=h[this.props.lang]||h.en:l=h,l=((l||"").toString()||"").replace("ioBroker Visualisation - ",""),n.desc?typeof n.desc=="string"?c=n.desc:c=n.desc[this.props.lang]||n.desc.en||"":c="",r.includes(t)?s[r]={exact:r===t,type:"name",start:r.startsWith(t)}:l&&typeof l=="string"&&l.toLowerCase().includes(t)?s[r]={exact:!1,type:"title"}:c&&typeof c=="string"&&c.toLowerCase().includes(t)?s[r]={exact:!1,type:"desc"}:(d=n.keywords)!=null&&d.find(a=>a.includes(t))&&(s[r]={exact:!1,type:"keywords"})})):s=null,this.setState({filteredList:s,search:t},()=>{this.cache.listOfVisibleAdapter=null,this.forceUpdate()})}onHostAdapterChanged=t=>{this.onHostAdapterTimer&&clearTimeout(this.onHostAdapterTimer),this.onHostAdapterTimer=setTimeout(()=>{this.onHostAdapterTimer=null,this.cache.listOfVisibleAdapter=null,this.forceUpdate()},200)};clearAllFilters(t){t?((window._localStorage||window.localStorage).removeItem("Adapters.updateList"),this.setState({updateList:!1},()=>this.filterAdapters())):((window._localStorage||window.localStorage).removeItem("Adapter.search"),(window._localStorage||window.localStorage).removeItem("Adapters.installedList"),(window._localStorage||window.localStorage).removeItem("Adapters.updateList"),this.inputRef.current&&(this.inputRef.current.value=""),this.setState({filteredList:null,updateList:!1,filterConnectionType:!1,installedList:0,search:""},()=>this.filterAdapters()))}getContext(t){return{expertMode:this.props.expertMode,t:this.t,socket:this.props.socket,removeUpdateAvailable:s=>{const i=[...this.state.updateAvailable],r=i.indexOf(s);r!==-1&&(i.splice(r,1),this.setState({updateAvailable:i}))},toggleTranslation:this.props.toggleTranslation,rightDependenciesFunc:this.rightDependencies,lang:this.props.lang,uuid:this.uuid,themeType:this.props.themeType,theme:this.props.theme,onUpdating:this.props.onUpdating,repository:this.state.repository,installed:this.state.installed,installedGlobal:this.state.installedGlobal,compactInstances:this.state.compactInstances||{},adapters:this.state.adapters,nodeJsVersion:this.state.nodeJsVersion,currentHost:this.state.currentHost,adminHost:this.props.adminHost,adminInstance:this.props.adminInstance,instancesWorker:this.props.instancesWorker,hostsWorker:this.props.hostsWorker,executeCommand:this.props.executeCommand,categories:this.state.categories,descHidden:t,sortPopularFirst:!this.state.tableViewMode&&this.state.filterTiles==="Popular first",sortRecentlyUpdated:!this.state.tableViewMode&&this.state.filterTiles==="Recently updated",isTileView:!this.state.tableViewMode,updateRating:(s,i)=>{const r=JSON.parse(JSON.stringify(this.state.repository));Object.assign(r[s].rating,i),this.setState({repository:r})},setAdminUpgradeTo:this.setAdminUpgradeTo,hostAdapterWorker:this.hostAdapterWorker}}setAdminUpgradeTo=t=>this.setState({adminUpgradeTo:t});buildCache(t){this.cache.listOfVisibleAdapter=[],this.cache.adapters={};const s=Date.now(),i=this.t("0 %d days ago"),r=this.t("1 %d days ago"),n=this.t("2 %d days ago"),l=this.t("5 %d days ago");this.state.categories.filter(h=>this.state.tableViewMode||!this.state.categoriesTiles||this.state.categoriesTiles==="All"||h.name===this.state.categoriesTiles).forEach(h=>h.adapters.forEach(d=>{var g;const a=this.state.repository[d];if(a&&!a.controller){const x=a.connectionType?a.connectionType:"-",m=this.state.updateAvailable.includes(d),v=this.state.installed[d];let j=!this.state.filteredList||!!this.state.filteredList[d];if(j&&this.state.filterConnectionType&&(j=x==="local"),j&&this.state.updateList&&(j=m),j&&this.state.installedList&&(j=this.state.installedList<2?!!(v&&v.version):!!(v&&v.version&&!v.count)),j){this.cache.listOfVisibleAdapter.push(d);const O=Math.round((s-new Date(a.versionDate).getTime())/864e4),S=Math.round(O/10),F=a.titleLang||a.title;let M;F&&typeof F=="object"?M=F[this.props.lang]||F.en:M=F||d,M=((M||"").toString()||"").replace("ioBroker Visualisation - ","");let W;a.desc?typeof a.desc=="string"?W=a.desc:W=a.desc[this.props.lang]||a.desc.en||"":W="";const f=S%100<=10||S%100>=20?S%10:5;this.cache.adapters[d]={title:M,desc:W,image:v&&this.state.adapters[`system.adapter.${d}`]?`.${v.localIcon}`:a.extIcon,connectionType:a.connectionType?a.connectionType:"-",updateAvailable:this.state.updateAvailable.includes(d),rightDependencies:this.rightDependencies(d),rightOs:this.rightOs(d),sentry:!!((g=a.plugins)!=null&&g.sentry),daysAgo:O,stat:a.stat||0,daysAgoText:S||S===0?S===0?i:f===1?r.replace("%d",S.toString()):f===2||f===3||f===4?n.replace("%d",S.toString()):l.replace("%d",S.toString()):""}}}})),this.listOfVisibleAdapterLength=this.cache.listOfVisibleAdapter.length;const c=this.state.filterTiles==="Name A-Z";this.state.tableViewMode&&this.state.categories.forEach(h=>k.sortAdapters(h.adapters,this.props.lang,this.state.installed,this.cache.adapters,c)),k.sortAdapters(this.cache.listOfVisibleAdapter,this.props.lang,this.state.installed,this.cache.adapters,c,t.sortPopularFirst,t.sortRecentlyUpdated,this.state.filteredList),console.log(`[ADAPTERS] ${new Date().toISOString()} Update cache!`),this.forceUpdate()}getUpdater(){return this.state.showUpdater?e.jsx(Dt,{theme:this.props.theme,onSetCommandRunning:t=>this.props.onSetCommandRunning(t),t:this.props.t,currentHost:this.state.currentHost,lang:this.props.lang,installed:this.state.installed,repository:this.state.repository,toggleTranslation:this.props.toggleTranslation,noTranslation:this.props.noTranslation,onClose:t=>this.setState({showUpdater:!1},()=>t&&this.updateAll(!0,!1)),socket:this.props.socket}):null}getDescWidth(){return this.props.menuOpened?document.body.scrollWidth-J-180+13:this.props.menuClosed?document.body.scrollWidth-J:document.body.scrollWidth-J-50+13}getStatistics(){return this.state.showStatistics?e.jsxs(o.Dialog,{open:!0,onClose:()=>this.setState({showStatistics:!1}),children:[e.jsx(o.DialogTitle,{children:this.t("Statistics")}),e.jsxs(o.DialogContent,{style:{fontSize:16},children:[e.jsxs(o.Box,{component:"div",sx:b.counters,children:[this.t("Total adapters"),":"," ",e.jsx("span",{style:{paddingLeft:6,fontWeight:"bold"},children:this.allAdapters})]}),e.jsxs(o.Box,{component:"div",sx:b.counters,children:[this.t("Installed adapters"),":"," ",e.jsx("span",{style:{paddingLeft:6,fontWeight:"bold"},children:this.installedAdapters})]}),e.jsxs(o.Box,{component:"div",sx:b.counters,children:[this.t("Last month updated adapters"),":"," ",e.jsx("span",{style:{paddingLeft:6,fontWeight:"bold"},children:this.recentUpdatedAdapters})]})]}),e.jsx(o.DialogActions,{children:e.jsx(o.Button,{variant:"contained",onClick:()=>this.setState({showStatistics:!1}),color:"primary",autoFocus:!0,startIcon:e.jsx(u.Close,{}),children:this.props.t("Close")})})]}):null}renderGitHubInstallDialog(t){return this.state.gitHubInstallDialog?e.jsx(Ot,{t:this.t,categories:this.state.categories,installed:this.state.installedGlobal,upload:s=>this.props.executeCommand(`upload ${s}${this.props.expertMode?" --debug":""}`),installFromUrl:(s,i,r)=>this.addInstance({adapterName:s,debug:i,customUrl:r,context:t}),repository:this.state.repository,onClose:()=>{this.setState({gitHubInstallDialog:!1})}}):null}renderHeader(){var s;let t=!this.props.commandRunning&&!!this.props.ready&&!!this.state.updateList&&this.state.updateAvailable.length>1;return t&&this.state.updateAvailable.length===2&&this.state.updateAvailable.includes("admin")&&(t=!1),e.jsxs(At,{children:[e.jsx(o.Tooltip,{title:this.t("Change view mode"),slotProps:{popper:{sx:b.tooltip}},children:e.jsx(o.IconButton,{size:"large",onClick:()=>this.changeViewMode(),children:this.state.tableViewMode?e.jsx(u.ViewModule,{}):e.jsx(u.ViewList,{})})}),e.jsx(o.Tooltip,{title:this.t("Check adapter for updates"),slotProps:{popper:{sx:b.tooltip}},children:e.jsx(o.IconButton,{size:"large",onClick:()=>this.updateAll(!0,!0),children:e.jsx(u.Refresh,{})})}),this.state.tableViewMode&&!this.state.oneListView&&e.jsx(o.Tooltip,{title:this.t("expand all"),slotProps:{popper:{sx:b.tooltip}},children:e.jsx(o.IconButton,{size:"large",onClick:()=>this.expandAll(),children:e.jsx(u.FolderOpen,{})})}),this.state.tableViewMode&&!this.state.oneListView&&e.jsx(o.Tooltip,{title:this.t("collapse all"),slotProps:{popper:{sx:b.tooltip}},children:e.jsx(o.IconButton,{size:"large",onClick:()=>this.collapseAll(),children:e.jsx(u.Folder,{})})}),this.state.tableViewMode&&e.jsx(o.Tooltip,{title:this.t("list"),slotProps:{popper:{sx:b.tooltip}},children:e.jsx(o.IconButton,{size:"large",onClick:()=>this.listTable(),children:e.jsx(u.List,{color:this.state.oneListView?"primary":"inherit"})})}),this.state.updateList?e.jsx(o.IconButton,{size:"large",onClick:()=>this.changeInstalledList(!0),children:e.jsx(u.Star,{color:"primary",style:{opacity:.3,color:this.state.installedList===2?"red":void 0}})}):e.jsx(o.Tooltip,{slotProps:{popper:{sx:b.tooltip}},title:this.t(this.state.installedList?this.state.installedList===1?"Showed only installed adapters":"Showed only installed adapters without instance.":"Show only installed"),children:e.jsx(o.IconButton,{size:"large",onClick:()=>this.changeInstalledList(),children:e.jsx(u.Star,{style:this.state.installedList===2?{color:"red"}:null,color:this.state.installedList===1?"primary":"inherit"})})}),e.jsx(N,{config:this.props.adminGuiConfig.admin,name:"admin.adapters.filterUpdates",children:e.jsx(o.Tooltip,{title:this.t("Filter adapter with updates"),slotProps:{popper:{sx:b.tooltip}},children:e.jsx(o.IconButton,{size:"large",onClick:()=>this.changeUpdateList(),children:e.jsx(u.Update,{color:this.state.updateList?"primary":"inherit"})})})}),t&&e.jsx(o.Tooltip,{title:this.t("Update all adapters"),slotProps:{popper:{sx:b.tooltip}},children:e.jsxs(o.IconButton,{size:"large",onClick:()=>this.setState({showUpdater:!0}),sx:b.updateAllButton,children:[e.jsx(u.Update,{}),e.jsx(u.Update,{className:"admin-update-second-icon"})]})}),this.props.expertMode&&((s=this.props.adminGuiConfig.admin)==null?void 0:s.adapters.gitHubInstall)!==!1&&e.jsx(o.Tooltip,{title:this.t("Install from custom URL"),slotProps:{popper:{sx:b.tooltip}},children:e.jsx(o.IconButton,{size:"large",onClick:()=>this.setState({gitHubInstallDialog:!0}),children:e.jsx(ct,{})})}),e.jsx("div",{style:b.grow}),e.jsx(o.TextField,{variant:"standard",inputRef:this.inputRef,label:this.t("Filter by name"),defaultValue:this.state.search,onChange:i=>this.handleFilterChange(i),slotProps:{input:{endAdornment:this.state.search?e.jsx(o.InputAdornment,{position:"end",children:e.jsx(o.IconButton,{size:"small",onClick:()=>{(window._localStorage||window.localStorage).removeItem("Adapter.search"),this.inputRef.current.value="",this.setState({search:""},()=>this.filterAdapters())},children:e.jsx(u.Close,{})})}):null}}}),!this.state.tableViewMode&&e.jsx(it,{t:this.t,icons:!0,contained:this.state.categoriesTiles!=="All",translateSuffix:"_group",arrayItem:[{name:"All"},...this.state.categories],onClick:i=>this.changeCategoriesTiles(i),value:this.state.categoriesTiles}),e.jsx(it,{t:this.t,arrayItem:this.state.tableViewMode?lt.filter(i=>!i.notByList):lt,onClick:i=>this.changeFilterTiles(i),value:this.state.filterTiles}),e.jsx("div",{style:b.grow}),e.jsx(N,{config:this.props.adminGuiConfig.admin,name:"admin.adapters.statistics",children:e.jsxs(o.Box,{component:"div",sx:R.getStyle(this.props.theme,b.infoAdapters,{display:{sm:"none",md:"inline-block"}}),onClick:()=>this.setState({showStatistics:!0}),children:[e.jsxs(o.Box,{component:"div",sx:{...b.counters,...b.greenText},children:[this.t("Selected adapters"),e.jsx("div",{ref:this.countRef})]}),e.jsxs(o.Box,{component:"div",sx:b.counters,children:[this.t("Total adapters"),":",e.jsx("div",{children:this.allAdapters})]}),e.jsxs(o.Box,{component:"div",sx:b.counters,children:[this.t("Installed adapters"),":",e.jsx("div",{children:this.installedAdapters})]}),e.jsxs(o.Box,{component:"div",sx:b.counters,children:[this.t("Last month updated adapters"),":",e.jsx("div",{children:this.recentUpdatedAdapters})]})]})})]})}renderWebserverUpgrade(){return this.state.adminUpgradeTo?e.jsx(zt,{socket:this.props.socket,themeType:this.props.themeType,host:this.props.adminHost,onClose:()=>{console.log("Close dialog"),this.setState({adminUpgradeTo:"",showDialog:!1})},version:this.state.adminUpgradeTo,adminInstance:this.props.adminInstance,onUpdating:t=>{this.props.onUpdating(t)},currentAdminVersion:this.props.currentAdminVersion}):null}render(){var n,l,c,h,d,a,g;if(!this.state.init)return e.jsx(o.LinearProgress,{});this.state.triggerUpdate!==this.props.triggerUpdate&&setTimeout(()=>{this.setState({triggerUpdate:this.props.triggerUpdate},()=>this.updateAll(!0))},100),(this.props.currentHost!==this.state.currentHost||this.props.forceUpdateAdapters!==this.state.forceUpdateAdapters)&&(this.hostsTimer=this.hostsTimer||setTimeout(()=>{this.hostsTimer=null,this.setState({currentHost:this.props.currentHost,forceUpdateAdapters:this.props.forceUpdateAdapters},async()=>{this.hostAdapterWorker.getHost()!==this.props.currentHost&&(this.hostAdapterWorker.destroy(),this.hostAdapterWorker=new ot(this.props.socket,this.props.currentHost),this.hostAdapterWorker.registerHandler(this.onHostAdapterChanged),await this.hostAdapterWorker.getObjects()),await this.updateAll(!1,!1,!0)})},200));let t=R.isStableRepository(this.props.systemConfig.common.activeRepo);const s=(l=(n=this.state.compactRepositories)==null?void 0:n.native)==null?void 0:l.repositories;s&&this.props.systemConfig.common.activeRepo&&(Array.isArray(this.props.systemConfig.common.activeRepo)?t=this.props.systemConfig.common.activeRepo.every(x=>{var m,v,j;return x.toLowerCase().startsWith("stable")||((j=(v=(m=s[x])==null?void 0:m.json)==null?void 0:v._repoInfo)==null?void 0:j.stable)}):typeof this.props.systemConfig.common.activeRepo=="string"&&(t=this.props.systemConfig.common.activeRepo.toLowerCase().startsWith("stable")||((d=(h=(c=s[this.props.systemConfig.common.activeRepo])==null?void 0:c.json)==null?void 0:h._repoInfo)==null?void 0:d.stable)));let i;if(!t)if(i=Array.isArray(this.props.systemConfig.common.activeRepo)?this.props.systemConfig.common.activeRepo.join(", "):this.props.systemConfig.common.activeRepo,typeof this.props.systemConfig.common.activeRepo=="string"){const x=s&&((g=(a=s[this.props.systemConfig.common.activeRepo])==null?void 0:a.json)==null?void 0:g._repoInfo);x!=null&&x.name&&(x.name&&typeof x.name=="object"?i=x.name[this.props.lang]||x.name.en:i=x.name)}else this.props.systemConfig.common.activeRepo&&typeof this.props.systemConfig.common.activeRepo!="string"&&(i=this.props.systemConfig.common.activeRepo.map(x=>{var v,j;const m=s&&((j=(v=s[x])==null?void 0:v.json)==null?void 0:j._repoInfo);return m!=null&&m.name?m.name&&typeof m.name=="object"?m.name[this.props.lang]||m.name.en:m.name:x}).join(", "));const r=this.getContext(this.state.descWidth<50);return this.cache.listOfVisibleAdapter||(this.buildCacheTimer=this.buildCacheTimer||setTimeout(()=>{this.buildCacheTimer=null,this.buildCache(r)},0)),e.jsxs(Tt,{children:[this.state.update&&e.jsx(o.Grid2,{children:e.jsx(o.LinearProgress,{})}),this.renderHeader(),e.jsx(Gt,{stableRepo:t,repoName:i,context:r,noTranslation:this.props.noTranslation,systemConfig:this.props.systemConfig,tableViewMode:this.state.tableViewMode,oneListView:this.state.oneListView,update:this.state.update,updateListFilter:this.state.updateList,searchFilter:this.state.search,installedListFilter:this.state.installedList,cachedAdapters:this.cache.adapters,categories:this.state.categories,categoriesExpanded:this.state.categoriesExpanded,listOfVisibleAdapter:this.cache.listOfVisibleAdapter,toggleCategory:x=>this.toggleCategory(x),clearAllFilters:x=>this.clearAllFilters(x),descWidth:this.state.descWidth,sortByName:this.state.filterTiles==="Name A-Z",sortPopularFirst:r.sortPopularFirst,sortRecentlyUpdated:r.sortRecentlyUpdated,commandRunning:this.props.commandRunning}),this.getUpdater(),this.getStatistics(),this.renderSlowConnectionWarning(),this.renderGitHubInstallDialog(r),this.renderWebserverUpgrade(),this.renderDialogs(r)]})}}export{k as default};
@@ -0,0 +1,19 @@
1
+ <svg height="511pt" viewBox="-31 0 511 511.99998" width="511pt" xmlns="http://www.w3.org/2000/svg">
2
+ <g fill="currentColor">
3
+ <path d="m235.328125 119.167969c20.839844 8.058593 35.644531 21.148437 44.632813 41.503906"/>
4
+ <path d="m231.6875 128.585938c18.980469 7.339843 31.382812 18.832031 39.035156 36.164062 1.667969 3.773438 5.363282 6.023438 9.242188 6.023438 1.363281 0 2.746094-.277344 4.070312-.863282 5.105469-2.253906 7.414063-8.214844 5.160156-13.316406-9.820312-22.25-26.25-37.574219-50.226562-46.84375-5.199219-2.011719-11.046875.574219-13.058594 5.777344-2.011718 5.203125.578125 11.046875 5.777344 13.058594zm0 0"/>
5
+ <path d="m207.105469 237.8125c20.089843 0 36.4375-16.34375 36.4375-36.433594 0-20.09375-16.347657-36.4375-36.4375-36.4375-20.089844 0-36.4375 16.34375-36.4375 36.4375 0 20.089844 16.347656 36.433594 36.4375 36.433594zm0-52.675781c8.953125 0 16.242187 7.285156 16.242187 16.242187 0 8.953125-7.289062 16.238282-16.242187 16.238282-8.957031 0-16.242188-7.285157-16.242188-16.238282 0-8.957031 7.285157-16.242187 16.242188-16.242187zm0 0"/>
6
+ <path d="m390.179688 147.015625c3.765624 0 7.398437-.574219 10.820312-1.636719l7.339844 9.871094c13.941406 18.75 21.621094 41.945312 21.621094 65.3125v59.152344c0 5.578125 4.523437 10.097656 10.097656 10.097656 5.574218 0 10.097656-4.519531 10.097656-10.097656v-59.152344c0-27.675781-9.09375-55.152344-25.609375-77.359375l-6.675781-8.980469c5.449218-6.367187 8.746094-14.625 8.746094-23.640625 0-20.09375-16.34375-36.4375-36.4375-36.4375-20.089844 0-36.433594 16.34375-36.433594 36.4375 0 20.089844 16.34375 36.433594 36.433594 36.433594zm0-52.675781c8.957031 0 16.242187 7.285156 16.242187 16.242187 0 8.953125-7.285156 16.242188-16.242187 16.242188-8.953126 0-16.242188-7.289063-16.242188-16.242188 0-8.957031 7.289062-16.242187 16.242188-16.242187zm0 0"/>
7
+ <path d="m440.058594 349.050781c-5.578125 0-10.097656 4.519531-10.097656 10.097657v63.320312c0 14.230469-11.578126 25.808594-25.808594 25.808594h-44.597656v-33.429688c0-5.578125-4.519532-10.097656-10.09375-10.097656h-42.265626v-112.453125c21.855469-24.035156 35.191407-55.949219 35.191407-90.917969 0-74.597656-60.6875-135.285156-135.28125-135.285156s-135.28125 60.6875-135.28125 135.285156c0 33.105469 11.957031 63.464844 31.777343 87.003906v213.519532c0 5.578125 4.523438 10.097656 10.097657 10.097656h235.761719c5.574218 0 10.09375-4.519531 10.09375-10.097656v-33.429688h44.597656c25.367187 0 46.003906-20.636718 46.003906-46.003906v-63.320312c0-5.578126-4.523438-10.097657-10.097656-10.097657zm-232.953125-262.761719c63.457031 0 115.085937 51.628907 115.085937 115.089844 0 63.457032-51.628906 115.085938-115.085937 115.085938-63.460938 0-115.085938-51.628906-115.085938-115.085938 0-63.460937 51.625-115.089844 115.085938-115.089844zm-83.308594 221.601563c22.980469 18.015625 51.910156 28.769531 83.308594 28.769531 29.863281 0 57.492187-9.734375 79.894531-26.1875v181.332032h-163.203125zm215.566406 183.914063h-32.167969v-66.859376h32.167969zm0 0"/>
8
+ <path d="m148.160156 377.789062h17.925782c5.574218 0 10.097656-4.523437 10.097656-10.097656 0-5.578125-4.523438-10.097656-10.097656-10.097656h-17.925782c-5.574218 0-10.097656 4.519531-10.097656 10.097656 0 5.574219 4.523438 10.097656 10.097656 10.097656zm0 0"/>
9
+ <path d="m198.144531 377.789062h17.921875c5.574219 0 10.097656-4.523437 10.097656-10.097656 0-5.578125-4.523437-10.097656-10.097656-10.097656h-17.921875c-5.578125 0-10.097656 4.519531-10.097656 10.097656 0 5.574219 4.519531 10.097656 10.097656 10.097656zm0 0"/>
10
+ <path d="m266.046875 357.59375h-17.921875c-5.574219 0-10.097656 4.519531-10.097656 10.097656 0 5.574219 4.523437 10.097656 10.097656 10.097656h17.921875c5.578125 0 10.097656-4.523437 10.097656-10.097656 0-5.578125-4.519531-10.097656-10.097656-10.097656zm0 0"/>
11
+ <path d="m148.160156 420.675781h67.90625c5.574219 0 10.097656-4.519531 10.097656-10.097656s-4.523437-10.097656-10.097656-10.097656h-67.90625c-5.574218 0-10.097656 4.519531-10.097656 10.097656s4.523438 10.097656 10.097656 10.097656zm0 0"/>
12
+ <path d="m248.125 443.15625h-99.964844c-5.574218 0-10.097656 4.519531-10.097656 10.097656 0 5.574219 4.523438 10.097656 10.097656 10.097656h99.964844c5.574219 0 10.097656-4.523437 10.097656-10.097656 0-5.578125-4.519531-10.097656-10.097656-10.097656zm0 0"/>
13
+ <path d="m106.355469 40.136719c1.84375 3.320312 5.285156 5.191406 8.832031 5.191406 1.660156 0 3.34375-.414063 4.898438-1.277344 4.875-2.710937 6.625-8.859375 3.914062-13.734375l-13.984375-25.128906c-2.710937-4.871094-8.859375-6.625-13.734375-3.910156-4.871094 2.710937-6.625 8.859375-3.914062 13.734375zm0 0"/>
14
+ <path d="m63.144531 83.015625-26.054687-15.039063c-4.832032-2.789062-11.003906-1.132812-13.792969 3.695313s-1.132813 11.003906 3.695313 13.792969l26.054687 15.042968c1.589844.917969 3.328125 1.351563 5.039063 1.351563 3.488281 0 6.882812-1.808594 8.753906-5.046875 2.789062-4.832031 1.132812-11.007812-3.695313-13.796875zm0 0"/>
15
+ <path d="m41.113281 146.210938-30.085937-1.28125c-5.582032-.25-10.28125 4.089843-10.519532 9.660156-.234374 5.570312 4.089844 10.28125 9.660157 10.515625l30.085937 1.28125c.144532.007812.292969.007812.4375.007812 5.378906 0 9.851563-4.242187 10.078125-9.667969.238281-5.570312-4.085937-10.277343-9.65625-10.515624zm0 0"/>
16
+ <path d="m283.640625 198.625.121094.296875c1.589843 3.925781 5.367187 6.304687 9.359375 6.304687 1.261718 0 2.546875-.238281 3.789062-.742187 5.167969-2.09375 7.660156-7.980469 5.566406-13.148437l-.121093-.296876c-2.09375-5.167968-7.980469-7.65625-13.148438-5.5625s-7.660156 7.980469-5.566406 13.148438zm0 0"/>
17
+ <path d="m449.367188 315.667969c-2.078126-5.171875-7.964844-7.679688-13.136719-5.601563-5.171875 2.082032-7.679688 7.960938-5.601563 13.136719l.117188.292969c1.585937 3.941406 5.371094 6.335937 9.375 6.335937 1.253906 0 2.527344-.234375 3.761718-.734375 5.175782-2.078125 7.683594-7.960937 5.601563-13.132812zm0 0"/>
18
+ </g>
19
+ </svg>
@@ -0,0 +1 @@
1
+ const e=""+new URL("Alarm Systems-DXWic1Ai.svg",import.meta.url).href;export{e as default};
@@ -0,0 +1 @@
1
+ const h="data:image/svg+xml,%3csvg%20height='480pt'%20viewBox='0%20-120%20480%20480'%20width='480pt'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='currentColor'%3e%3cpath%20d='m472%200h-464c-4.417969%200-8%203.582031-8%208v192c0%204.417969%203.582031%208%208%208h32v24c0%204.417969%203.582031%208%208%208h40c4.417969%200%208-3.582031%208-8v-24h288v24c0%204.417969%203.582031%208%208%208h40c4.417969%200%208-3.582031%208-8v-24h32c4.417969%200%208-3.582031%208-8v-192c0-4.417969-3.582031-8-8-8zm-392%20224h-24v-16h24zm344%200h-24v-16h24zm40-32h-448v-176h448zm0%200'/%3e%3cpath%20d='m256%20176c35.347656%200%2064-28.652344%2064-64s-28.652344-64-64-64-64%2028.652344-64%2064c.039062%2035.328125%2028.671875%2063.960938%2064%2064zm-8-111.28125v15.28125h16v-15.28125c24.605469%204.160156%2041.917969%2026.476562%2039.832031%2051.34375-2.085937%2024.867188-22.878906%2043.984375-47.832031%2043.984375s-45.746094-19.117187-47.832031-43.984375c-2.085938-24.867188%2015.226562-47.183594%2039.832031-51.34375zm0%200'/%3e%3cpath%20d='m160%2032h16v16h-16zm0%200'/%3e%3cpath%20d='m160%2064h16v16h-16zm0%200'/%3e%3cpath%20d='m128%2032h16v16h-16zm0%200'/%3e%3cpath%20d='m128%2064h16v16h-16zm0%200'/%3e%3cpath%20d='m96%2032h16v16h-16zm0%200'/%3e%3cpath%20d='m96%2064h16v16h-16zm0%200'/%3e%3cpath%20d='m64%2032h16v16h-16zm0%200'/%3e%3cpath%20d='m64%2064h16v16h-16zm0%200'/%3e%3cpath%20d='m32%2032h16v16h-16zm0%200'/%3e%3cpath%20d='m32%2064h16v16h-16zm0%200'/%3e%3cpath%20d='m368%20176c16.09375.019531%2029.6875-11.9375%2031.71875-27.90625%202.035156-15.964844-8.132812-30.945312-23.71875-34.957031v-17.136719h-16v17.136719c-15.585938%204.011719-25.753906%2018.992187-23.71875%2034.957031%202.03125%2015.96875%2015.625%2027.925781%2031.71875%2027.90625zm0-48c8.835938%200%2016%207.164062%2016%2016s-7.164062%2016-16%2016-16-7.164062-16-16%207.164062-16%2016-16zm0%200'/%3e%3cpath%20d='m144%20176c16.09375.019531%2029.6875-11.9375%2031.71875-27.90625%202.035156-15.964844-8.132812-30.945312-23.71875-34.957031v-17.136719h-16v17.136719c-15.585938%204.011719-25.753906%2018.992187-23.71875%2034.957031%202.03125%2015.96875%2015.625%2027.925781%2031.71875%2027.90625zm0-48c8.835938%200%2016%207.164062%2016%2016s-7.164062%2016-16%2016-16-7.164062-16-16%207.164062-16%2016-16zm0%200'/%3e%3cpath%20d='m64%20176c16.09375.019531%2029.6875-11.9375%2031.71875-27.90625%202.035156-15.964844-8.132812-30.945312-23.71875-34.957031v-17.136719h-16v17.136719c-15.585938%204.011719-25.753906%2018.992187-23.71875%2034.957031%202.03125%2015.96875%2015.625%2027.925781%2031.71875%2027.90625zm0-48c8.835938%200%2016%207.164062%2016%2016s-7.164062%2016-16%2016-16-7.164062-16-16%207.164062-16%2016-16zm0%200'/%3e%3cpath%20d='m408%20112h32c4.417969%200%208-3.582031%208-8v-64c0-4.417969-3.582031-8-8-8h-32c-4.417969%200-8%203.582031-8%208v64c0%204.417969%203.582031%208%208%208zm8-64h16v16h-16zm0%2032h16v16h-16zm0%200'/%3e%3cpath%20d='m432%20136c0%204.417969-3.582031%208-8%208s-8-3.582031-8-8%203.582031-8%208-8%208%203.582031%208%208zm0%200'/%3e%3cpath%20d='m432%20168c0%204.417969-3.582031%208-8%208s-8-3.582031-8-8%203.582031-8%208-8%208%203.582031%208%208zm0%200'/%3e%3c/g%3e%3c/svg%3e";export{h as default};
@@ -0,0 +1,53 @@
1
+ <svg height="512pt" viewBox="0 -108 512 512" width="512pt" xmlns="http://www.w3.org/2000/svg">
2
+ <g fill="currentColor">
3
+ <path d="m504 48.015625h-496c-4.425781 0-8-3.574219-8-8v-32.015625c0-4.425781 3.574219-8 8-8h496c4.425781 0 8 3.574219 8 8v32.015625c0 4.425781-3.574219 8-8 8zm-488-16h480v-16.015625h-480zm0 0"/>
4
+ <path d="m16 296.160156c-4.425781 0-8-3.574218-8-8v-246.71875c0-4.425781 3.574219-8 8-8s8 3.574219 8 8v246.71875c0 4.425782-3.574219 8-8 8zm0 0"/>
5
+ <path d="m40 296.160156c-4.425781 0-8-3.574218-8-8v-246.71875c0-4.425781 3.574219-8 8-8s8 3.574219 8 8v246.71875c0 4.425782-3.574219 8-8 8zm0 0"/>
6
+ <path d="m472 296.160156c-4.425781 0-8-3.574218-8-8v-246.71875c0-4.425781 3.574219-8 8-8s8 3.574219 8 8v246.71875c0 4.425782-3.574219 8-8 8zm0 0"/>
7
+ <path d="m496 296.160156c-4.425781 0-8-3.574218-8-8v-246.71875c0-4.425781 3.574219-8 8-8s8 3.574219 8 8v246.71875c0 4.425782-3.574219 8-8 8zm0 0"/>
8
+ <path d="m40 296.160156h-24c-4.425781 0-8-3.574218-8-8 0-4.425781 3.574219-8 8-8h24c4.425781 0 8 3.574219 8 8 0 4.425782-3.574219 8-8 8zm0 0"/>
9
+ <path d="m496 296.160156h-24c-4.425781 0-8-3.574218-8-8 0-4.425781 3.574219-8 8-8h24c4.425781 0 8 3.574219 8 8 0 4.425782-3.574219 8-8 8zm0 0"/>
10
+ <path d="m472 160.113281h-432c-4.425781 0-8-3.578125-8-8 0-4.425781 3.574219-8 8-8h432c4.425781 0 8 3.574219 8 8 0 4.421875-3.574219 8-8 8zm0 0"/>
11
+ <path d="m472 184.128906h-432c-4.425781 0-8-3.578125-8-8 0-4.425781 3.574219-8 8-8h432c4.425781 0 8 3.574219 8 8 0 4.421875-3.574219 8-8 8zm0 0"/>
12
+ <path d="m71.984375 160.128906c-4.425781 0-8-3.578125-8-8 0-22.058594 17.9375-40 39.992187-40 4.421876 0 8 3.574219 8 8 0 4.421875-3.578124 8-8 8-13.222656 0-23.992187 10.765625-23.992187 24 0 4.421875-3.578125 8-8 8zm0 0"/>
13
+ <path d="m152 160.128906c-4.425781 0-8-3.578125-8-8 0-13.234375-10.769531-24-23.992188-24-4.421874 0-8-3.578125-8-8 0-4.425781 3.578126-8 8-8 22.054688 0 39.992188 17.941406 39.992188 40 0 4.421875-3.574219 8-8 8zm0 0"/>
14
+ <path d="m79.984375 138.96875c-4.425781 0-8-3.578125-8-8v-42.839844c0-4.425781 3.574219-8 8-8 4.421875 0 8 3.574219 8 8v42.839844c0 4.421875-3.578125 8-8 8zm0 0"/>
15
+ <path d="m143.96875 138.96875c-4.425781 0-8-3.578125-8-8v-42.839844c0-4.425781 3.574219-8 8-8 4.421875 0 8 3.574219 8 8v42.839844c0 4.421875-3.578125 8-8 8zm0 0"/>
16
+ <path d="m96 104.144531c-4.425781 0-8-3.578125-8-8v-24.015625c0-4.425781 3.574219-8 8-8s8 3.574219 8 8v24.015625c0 4.421875-3.574219 8-8 8zm0 0"/>
17
+ <path d="m128 80.128906h-32c-4.425781 0-8-3.578125-8-8 0-4.425781 3.574219-8 8-8h32c4.425781 0 8 3.574219 8 8 0 4.421875-3.574219 8-8 8zm0 0"/>
18
+ <path d="m128 104.144531c-4.425781 0-8-3.578125-8-8v-24.015625c0-4.425781 3.574219-8 8-8s8 3.574219 8 8v24.015625c0 4.421875-3.574219 8-8 8zm0 0"/>
19
+ <path d="m96 96.128906h-16.015625c-4.425781 0-8-3.578125-8-8 0-4.425781 3.574219-8 8-8h16.015625c4.425781 0 8 3.574219 8 8 0 4.421875-3.574219 8-8 8zm0 0"/>
20
+ <path d="m143.96875 96.128906h-15.96875c-4.425781 0-8-3.578125-8-8 0-4.425781 3.574219-8 8-8h15.96875c4.421875 0 8 3.574219 8 8 0 4.421875-3.578125 8-8 8zm0 0"/>
21
+ <path d="m120.007812 128.128906h-16.03125c-4.425781 0-8-3.578125-8-8 0-4.425781 3.574219-8 8-8h16.03125c4.425782 0 8 3.574219 8 8 0 4.421875-3.574218 8-8 8zm0 0"/>
22
+ <path d="m175.984375 160.128906c-4.425781 0-8-3.578125-8-8 0-22.058594 17.9375-40 39.992187-40 4.421876 0 8 3.574219 8 8 0 4.421875-3.578124 8-8 8-13.222656 0-23.992187 10.765625-23.992187 24 0 4.421875-3.578125 8-8 8zm0 0"/>
23
+ <path d="m256 160.128906c-4.425781 0-8-3.578125-8-8 0-13.234375-10.769531-24-23.992188-24-4.421874 0-8-3.578125-8-8 0-4.425781 3.578126-8 8-8 22.054688 0 39.992188 17.941406 39.992188 40 0 4.421875-3.574219 8-8 8zm0 0"/>
24
+ <path d="m183.984375 138.96875c-4.425781 0-8-3.578125-8-8v-42.839844c0-4.425781 3.574219-8 8-8 4.421875 0 8 3.574219 8 8v42.839844c0 4.421875-3.578125 8-8 8zm0 0"/>
25
+ <path d="m247.96875 138.96875c-4.425781 0-8-3.578125-8-8v-42.839844c0-4.425781 3.574219-8 8-8 4.421875 0 8 3.574219 8 8v42.839844c0 4.421875-3.578125 8-8 8zm0 0"/>
26
+ <path d="m200 104.144531c-4.425781 0-8-3.578125-8-8v-24.015625c0-4.425781 3.574219-8 8-8s8 3.574219 8 8v24.015625c0 4.421875-3.574219 8-8 8zm0 0"/>
27
+ <path d="m232 80.128906h-32c-4.425781 0-8-3.578125-8-8 0-4.425781 3.574219-8 8-8h32c4.425781 0 8 3.574219 8 8 0 4.421875-3.574219 8-8 8zm0 0"/>
28
+ <path d="m232 104.144531c-4.425781 0-8-3.578125-8-8v-24.015625c0-4.425781 3.574219-8 8-8s8 3.574219 8 8v24.015625c0 4.421875-3.574219 8-8 8zm0 0"/>
29
+ <path d="m200 96.128906h-16.015625c-4.425781 0-8-3.578125-8-8 0-4.425781 3.574219-8 8-8h16.015625c4.425781 0 8 3.574219 8 8 0 4.421875-3.574219 8-8 8zm0 0"/>
30
+ <path d="m247.96875 96.128906h-15.96875c-4.425781 0-8-3.578125-8-8 0-4.425781 3.574219-8 8-8h15.96875c4.421875 0 8 3.574219 8 8 0 4.421875-3.578125 8-8 8zm0 0"/>
31
+ <path d="m224.007812 128.128906h-16.03125c-4.425781 0-8-3.578125-8-8 0-4.425781 3.574219-8 8-8h16.03125c4.425782 0 8 3.574219 8 8 0 4.421875-3.574218 8-8 8zm0 0"/>
32
+ <path d="m256.167969 280.144531c-4.425781 0-8-3.578125-8-8 0-13.242187 10.777343-24.015625 24.015625-24.015625 4.425781 0 8 3.574219 8 8 0 4.421875-3.574219 8-8 8-4.421875 0-8.015625 3.589844-8.015625 8.015625 0 4.421875-3.582031 8-8 8zm0 0"/>
33
+ <path d="m336.191406 280.144531c-4.421875 0-8-3.578125-8-8 0-4.417969-3.582031-8-8-8-4.421875 0-8-3.578125-8-8 0-4.425781 3.578125-8 8-8 13.234375 0 24 10.765625 24 24 0 4.421875-3.574218 8-8 8zm0 0"/>
34
+ <path d="m336.191406 296.160156h-80.023437c-4.425781 0-8-3.574218-8-8 0-4.425781 3.574219-8 8-8h80.03125c4.425781 0 8 3.574219 8 8 0 4.425782-3.582031 8-8.007813 8zm0 0"/>
35
+ <path d="m320.832031 264.128906h-49.296875c-4.421875 0-8-3.578125-8-8 0-4.425781 3.578125-8 8-8h49.296875c4.425781 0 8 3.574219 8 8 0 4.421875-3.574219 8-8 8zm0 0"/>
36
+ <path d="m272.167969 264.128906c-4.425781 0-8-3.578125-8-8v-47.984375c0-4.425781 3.574219-8 8-8s8 3.574219 8 8v47.984375c0 4.421875-3.574219 8-8 8zm0 0"/>
37
+ <path d="m320.199219 264.144531c-4.421875 0-8-3.578125-8-8v-48c0-4.425781 3.578125-8 8-8 4.425781 0 8 3.574219 8 8v48c0 4.421875-3.574219 8-8 8zm0 0"/>
38
+ <path d="m256.167969 296.160156c-4.425781 0-8-3.574218-8-8v-16.015625c0-4.425781 3.574219-8 8-8s8 3.574219 8 8v16.015625c0 4.425782-3.582031 8-8 8zm0 0"/>
39
+ <path d="m336.191406 296.160156c-4.421875 0-8-3.574218-8-8v-16.015625c0-4.425781 3.578125-8 8-8 4.425782 0 8 3.574219 8 8v16.015625c0 4.425782-3.574218 8-8 8zm0 0"/>
40
+ <path d="m320.199219 216.144531h-48.03125c-4.425781 0-8-3.578125-8-8 0-4.425781 3.574219-8 8-8h48.03125c4.425781 0 8 3.574219 8 8 0 4.421875-3.574219 8-8 8zm0 0"/>
41
+ <path d="m328.191406 240.144531h-64.023437c-4.425781 0-8-3.578125-8-8 0-4.425781 3.574219-8 8-8h64.023437c4.425782 0 8 3.574219 8 8 0 4.421875-3.574218 8-8 8zm0 0"/>
42
+ <path d="m360.167969 280.144531c-4.425781 0-8-3.578125-8-8 0-13.242187 10.777343-24.015625 24.015625-24.015625 4.425781 0 8 3.574219 8 8 0 4.421875-3.574219 8-8 8-4.421875 0-8.015625 3.589844-8.015625 8.015625 0 4.421875-3.582031 8-8 8zm0 0"/>
43
+ <path d="m440.191406 280.144531c-4.421875 0-8-3.578125-8-8 0-4.417969-3.582031-8-8-8-4.421875 0-8-3.578125-8-8 0-4.425781 3.578125-8 8-8 13.234375 0 24 10.765625 24 24 0 4.421875-3.574218 8-8 8zm0 0"/>
44
+ <path d="m440.191406 296.160156h-80.023437c-4.425781 0-8-3.574218-8-8 0-4.425781 3.574219-8 8-8h80.03125c4.425781 0 8 3.574219 8 8 0 4.425782-3.582031 8-8.007813 8zm0 0"/>
45
+ <path d="m424.832031 264.128906h-49.296875c-4.421875 0-8-3.578125-8-8 0-4.425781 3.578125-8 8-8h49.296875c4.425781 0 8 3.574219 8 8 0 4.421875-3.574219 8-8 8zm0 0"/>
46
+ <path d="m376.167969 264.128906c-4.425781 0-8-3.578125-8-8v-47.984375c0-4.425781 3.574219-8 8-8s8 3.574219 8 8v47.984375c0 4.421875-3.574219 8-8 8zm0 0"/>
47
+ <path d="m424.199219 264.144531c-4.421875 0-8-3.578125-8-8v-48c0-4.425781 3.578125-8 8-8 4.425781 0 8 3.574219 8 8v48c0 4.421875-3.574219 8-8 8zm0 0"/>
48
+ <path d="m360.167969 296.160156c-4.425781 0-8-3.574218-8-8v-16.015625c0-4.425781 3.574219-8 8-8s8 3.574219 8 8v16.015625c0 4.425782-3.582031 8-8 8zm0 0"/>
49
+ <path d="m440.191406 296.160156c-4.421875 0-8-3.574218-8-8v-16.015625c0-4.425781 3.578125-8 8-8 4.425782 0 8 3.574219 8 8v16.015625c0 4.425782-3.574218 8-8 8zm0 0"/>
50
+ <path d="m424.199219 216.144531h-48.03125c-4.425781 0-8-3.578125-8-8 0-4.425781 3.574219-8 8-8h48.03125c4.425781 0 8 3.574219 8 8 0 4.421875-3.574219 8-8 8zm0 0"/>
51
+ <path d="m432.191406 240.144531h-64.023437c-4.425781 0-8-3.578125-8-8 0-4.425781 3.574219-8 8-8h64.023437c4.425782 0 8 3.574219 8 8 0 4.421875-3.574218 8-8 8zm0 0"/>
52
+ </g>
53
+ </svg>
@@ -0,0 +1 @@
1
+ const e=""+new URL("Anteroom-BCnZwT5D.svg",import.meta.url).href;export{e as default};
@@ -0,0 +1 @@
1
+ const c="data:image/svg+xml,%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20362.787%20362.787'%3e%3cg%20fill='currentColor'%3e%3cpath%20d='M260.945,144.979c-2.667,0-5.133,1.416-6.477,3.719l-47.484,81.333c-1.354,2.319-1.365,5.186-0.027,7.516%20c1.337,2.329,3.818,3.766,6.504,3.766h94.968c2.686,0,5.167-1.437,6.504-3.766c1.338-2.33,1.327-5.196-0.027-7.516l-47.483-81.333%20C266.078,146.395,263.612,144.979,260.945,144.979z%20M226.524,226.312l34.421-58.958l34.42,58.958H226.524z'/%3e%3cpath%20d='M355.287,254.69h-175.62l81.278-139.218l62.926,107.783c2.088,3.578,6.683,4.784,10.258,2.696%20c3.577-2.088,4.784-6.681,2.695-10.258L267.422,96.815c-0.021-0.036-0.048-0.067-0.069-0.103c-0.126-0.208-0.262-0.408-0.407-0.603%20c-0.044-0.059-0.086-0.118-0.131-0.176c-0.183-0.23-0.376-0.451-0.584-0.658c-0.024-0.024-0.051-0.045-0.076-0.069%20c-0.186-0.18-0.383-0.349-0.587-0.509c-0.065-0.051-0.132-0.1-0.199-0.148c-0.187-0.137-0.379-0.264-0.578-0.384%20c-0.055-0.033-0.108-0.068-0.164-0.1c-0.261-0.147-0.53-0.282-0.809-0.397c-0.011-0.004-0.022-0.008-0.033-0.012%20c-0.26-0.106-0.528-0.196-0.802-0.273c-0.073-0.021-0.146-0.038-0.22-0.056c-0.222-0.055-0.447-0.1-0.677-0.135%20c-0.079-0.012-0.157-0.026-0.236-0.036c-0.297-0.036-0.598-0.06-0.906-0.06H101.842c-2.667,0-5.133,1.416-6.477,3.719%20L1.023,258.408c-1.354,2.319-1.365,5.186-0.027,7.516c1.337,2.329,3.818,3.766,6.504,3.766h86.538c0.008,0,0.015,0.001,0.023,0.001%20s0.015-0.001,0.023-0.001h35.889c0.008,0,0.015,0.001,0.023,0.001s0.015-0.001,0.023-0.001h36.586h188.684%20c4.143,0,7.5-3.358,7.5-7.5S359.43,254.69,355.287,254.69z%20M162.298,254.69h-19.263l69.43-119.47%20c2.081-3.582,0.865-8.172-2.716-10.253c-3.58-2.083-8.173-0.866-10.253,2.716l-73.81,127.007H107.1l85.192-146.594h55.59%20L162.298,254.69z%20M106.147,108.096h34.091L74.789,220.717c-2.081,3.582-0.865,8.172,2.716,10.253%20c1.186,0.689,2.482,1.017,3.762,1.017c2.584,0,5.1-1.337,6.491-3.733l69.83-120.158h17.356L89.751,254.69H20.563L106.147,108.096z'%20/%3e%3c/g%3e%3c/svg%3e";export{c as default};
@@ -0,0 +1 @@
1
+ const c="data:image/svg+xml,%3csvg%20viewBox='0%200%20512%20512'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='currentColor'%3e%3cpath%20d='m507.546%20105.125c0-1.044-.205-2.091-.647-3.072l-43.93-97.63c-1.21-2.692-3.888-4.423-6.839-4.423h-182.63c-4.143%200-7.5%203.357-7.5%207.5s3.357%207.5%207.5%207.5h23.812v82.63h-82.625v-82.63h23.813c4.143%200%207.5-3.357%207.5-7.5s-3.357-7.5-7.5-7.5h-182.63c-2.951%200-5.629%201.731-6.84%204.423l-43.93%2097.63c-.441.981-.646%202.028-.647%203.072h-.015v12.203c0%2029.514%2022.827%2053.78%2051.751%2056.112l31.865%2058.419h-4.007c-4.143%200-7.5%203.357-7.5%207.5s3.357%207.5%207.5%207.5h16.633c.005%200%20.01.001.015.001s.011-.001.016-.001h16.618c4.143%200%207.5-3.357%207.5-7.5s-3.357-7.5-7.5-7.5h-12.189l-32.456-59.503c15.75-3.413%2029.057-13.433%2036.879-27.003%209.733%2016.887%2027.961%2028.288%2048.812%2028.288s39.079-11.401%2048.812-28.288c9.733%2016.887%2027.961%2028.288%2048.812%2028.288s39.079-11.401%2048.812-28.288c9.733%2016.887%2027.961%2028.288%2048.812%2028.288s39.079-11.401%2048.812-28.288c7.822%2013.571%2021.129%2023.591%2036.879%2027.003l-32.456%2059.503h-12.188c-4.143%200-7.5%203.357-7.5%207.5s3.357%207.5%207.5%207.5h16.618c.005%200%20.011.001.016.001s.01-.001.015-.001h16.633c4.143%200%207.5-3.357%207.5-7.5s-3.357-7.5-7.5-7.5h-4.007l31.865-58.419c28.924-2.332%2051.751-26.598%2051.751-56.112v-12.203zm-19.085-7.495h-78.523v-82.63h41.343zm-93.523-82.63v82.63h-82.625v-82.63zm-195.25%2082.63h-82.625v-82.63h82.625zm-138.968-82.63h41.343v82.63h-78.524zm.034%20143.641c-.011%200-.021-.001-.032-.001-22.767-.015-41.285-18.542-41.285-41.312v-4.698h82.625v4.698c0%2022.778-18.531%2041.31-41.308%2041.313zm97.621%200c-22.779%200-41.312-18.533-41.312-41.312v-4.698h82.625v4.698c0%2022.778-18.534%2041.312-41.313%2041.312zm97.625%200c-22.779%200-41.312-18.533-41.312-41.312v-4.698h82.625v4.698c-.001%2022.778-18.534%2041.312-41.313%2041.312zm97.625%200c-22.779%200-41.312-18.533-41.312-41.312v-4.698h82.625v4.698c0%2022.778-18.534%2041.312-41.313%2041.312zm97.648-.001c-.005%200-.009%200-.014%200-.003%200-.006%200-.009%200-22.779%200-41.312-18.533-41.312-41.312v-4.698h82.625v4.698c-.001%2022.772-18.521%2041.3-41.29%2041.312z'/%3e%3c/g%3e%3c/svg%3e";export{c as default};
@@ -0,0 +1 @@
1
+ const c="data:image/svg+xml,%3csvg%20height='512'%20viewBox='0%200%20512%20512'%20width='512'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='currentColor'%3e%3cpath%20d='m496.704%20272.086h-81.704v-88.073c0-4.142-3.357-7.5-7.5-7.5s-7.5%203.358-7.5%207.5v88.073h-15v-193.71c0-8.249-6.711-14.959-14.959-14.959h-91.582c-8.248%200-14.959%206.71-14.959%2014.959v193.71h-15v-193.71c0-8.249-6.711-14.959-14.959-14.959h-91.582c-8.248%200-14.959%206.71-14.959%2014.959v193.71h-15v-223.669h288v100.596c0%204.142%203.357%207.5%207.5%207.5s7.5-3.358%207.5-7.5v-100.596h3.204c8.435%200%2015.296-6.883%2015.296-15.344v-17.73c0-8.46-6.861-15.343-15.296-15.343h-324.408c-8.435%200-15.296%206.883-15.296%2015.344v17.73c0%208.46%206.861%2015.344%2015.296%2015.344h3.204v223.669h-81.704c-8.435-.001-15.296%206.861-15.296%2015.295v17.622c0%208.435%206.861%2015.296%2015.296%2015.296h.5v143.486h-.5c-8.435%200-15.296%206.862-15.296%2015.296v17.622c0%208.434%206.861%2015.296%2015.296%2015.296h223.204c4.143%200%207.5-3.358%207.5-7.5s-3.357-7.5-7.5-7.5h-223.204c-.163%200-.296-.133-.296-.296v-17.622c0-.163.133-.296.296-.296h481.408c.163%200%20.296.133.296.296v17.622c0%20.163-.133.296-.296.296h-223.204c-4.143%200-7.5%203.358-7.5%207.5s3.357%207.5%207.5%207.5h223.204c8.435%200%2015.296-6.862%2015.296-15.296v-17.622c0-8.434-6.861-15.296-15.296-15.296h-.5v-143.486h.5c8.435%200%2015.296-6.862%2015.296-15.296v-17.622c0-8.434-6.861-15.296-15.296-15.296zm-403.204-239.012v-17.73c0-.212.153-.344.296-.344h324.408c.143%200%20.296.131.296.344v17.73c0%20.212-.153.344-.296.344-15.367%200-309.051%200-324.408%200-.143-.001-.296-.132-.296-.344zm184.959%2045.343%2091.541-.041v193.71h-91.502zm-136.5%200%2091.541-.041v193.71h-91.502zm339.245%20384.817h-450.408v-142.934h450.408zm15.796-158.23c0%20.164-.133.296-.296.296-2.824%200-471.153%200-481.408%200-.163%200-.296-.133-.296-.296v-17.622c0-.163.133-.296.296-.296h481.408c.163%200%20.296.133.296.296z'/%3e%3cpath%20d='m67.655%20442.704h18.99c8.768%200%2015.9-7.133%2015.9-15.901v-69.52c0-8.768-7.133-15.901-15.9-15.901h-18.99c-8.768%200-15.9%207.133-15.9%2015.901v69.52c0%208.768%207.133%2015.901%2015.9%2015.901zm-.9-85.421c0-.497.404-.901.9-.901h18.99c.496%200%20.9.404.9.901v69.52c0%20.497-.404.901-.9.901h-18.99c-.496%200-.9-.404-.9-.901z'/%3e%3cpath%20d='m139.406%20442.704h18.989c8.768%200%2015.901-7.133%2015.901-15.901v-69.52c0-8.768-7.134-15.901-15.901-15.901h-18.989c-8.768%200-15.901%207.133-15.901%2015.901v69.52c0%208.768%207.134%2015.901%2015.901%2015.901zm-.901-85.421c0-.497.404-.901.901-.901h18.989c.497%200%20.901.404.901.901v69.52c0%20.497-.404.901-.901.901h-18.989c-.497%200-.901-.404-.901-.901z'/%3e%3cpath%20d='m210.796%20442.704h18.99c8.768%200%2015.901-7.133%2015.901-15.901v-69.52c0-8.768-7.134-15.901-15.901-15.901h-18.99c-8.768%200-15.9%207.133-15.9%2015.901v69.52c0%208.768%207.132%2015.901%2015.9%2015.901zm-.9-85.421c0-.497.404-.901.9-.901h18.99c.497%200%20.901.404.901.901v69.52c0%20.497-.404.901-.901.901h-18.99c-.496%200-.9-.404-.9-.901z'/%3e%3cpath%20d='m282.547%20442.704h18.989c8.768%200%2015.901-7.133%2015.901-15.901v-69.52c0-8.768-7.134-15.901-15.901-15.901h-18.989c-8.768%200-15.901%207.133-15.901%2015.901v69.52c0%208.768%207.133%2015.901%2015.901%2015.901zm-.901-85.421c0-.497.404-.901.901-.901h18.989c.497%200%20.901.404.901.901v69.52c0%20.497-.404.901-.901.901h-18.989c-.497%200-.901-.404-.901-.901z'/%3e%3cpath%20d='m354.131%20442.704h18.989c8.768%200%2015.901-7.133%2015.901-15.901v-69.52c0-8.768-7.134-15.901-15.901-15.901h-18.989c-8.768%200-15.901%207.133-15.901%2015.901v69.52c-.001%208.768%207.133%2015.901%2015.901%2015.901zm-.902-85.421c0-.497.404-.901.901-.901h18.989c.497%200%20.901.404.901.901v69.52c0%20.497-.404.901-.901.901h-18.989c-.497%200-.901-.404-.901-.901z'/%3e%3cpath%20d='m425.521%20442.704h18.989c8.768%200%2015.901-7.133%2015.901-15.901v-69.52c0-8.768-7.134-15.901-15.901-15.901h-18.989c-8.768%200-15.901%207.133-15.901%2015.901v69.52c0%208.768%207.134%2015.901%2015.901%2015.901zm-.901-85.421c0-.497.404-.901.901-.901h18.989c.497%200%20.901.404.901.901v69.52c0%20.497-.404.901-.901.901h-18.989c-.497%200-.901-.404-.901-.901z'/%3e%3cpath%20d='m316.411%20107.268c-2.93-2.929-7.678-2.929-10.607%200s-2.929%207.678%200%2010.606l23.512%2023.512c2.93%202.929%207.678%202.929%2010.607%200s2.929-7.678%200-10.606z'/%3e%3cpath%20d='m342.604%2092.832c-2.93-2.929-7.678-2.929-10.607%200s-2.929%207.678%200%2010.606l11.756%2011.756c2.93%202.929%207.678%202.929%2010.607%200s2.929-7.678%200-10.606z'/%3e%3c/g%3e%3c/svg%3e";export{c as default};
@@ -0,0 +1 @@
1
+ const c="data:image/svg+xml,%3csvg%20height='512'%20viewBox='0%200%20512%20512'%20width='512'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='currentColor'%3e%3cpath%20d='m413.907%200c-54.104%200-98.122%2044.005-98.122%2098.096v43.582s-69.831-36.912-71.065-37.593c-9.544-5.266-12.185-5.267-21.731%200-1.234.681-136.141%2071.958-136.141%2071.958-11.437%206.017-13.045%207.745-17.878%2015.783-.788%201.311-65.698%20104.23-65.698%20104.23-3.175%205.023-4.077%2010.962-2.539%2016.722%201.617%206.056%205.84%2011.269%2011.577%2014.295%203.646%201.93%207.582%202.85%2011.465%202.85%206.202%200%2012.255-2.358%2016.745-6.688v65.044c0%204.142%203.358%207.5%207.5%207.5s7.5-3.358%207.5-7.5v-87.541s49.134-77.855%2049.652-78.682c2.334-3.729%203.328-5.283%204.496-6.318%201.333-1.181%203.665-2.464%208.665-5.107l113.002-59.649c.801-.425%201.49-.803%202.093-1.133.141-.077.285-.156.428-.234.143.078.287.157.428.234.603.331%201.292.708%202.109%201.142%200%200%20118.193%2062.413%20119.642%2063.31.869.538%201.509.995%202.009%201.438%201.167%201.035%202.162%202.589%204.496%206.318.518.827%2049.651%2078.681%2049.651%2078.681v160.716h-84.921v-104.34h12.625c7.652%200%2013.878-6.226%2013.878-13.878v-21.43c0-7.652-6.226-13.878-13.878-13.878h-85.122c-4.142%200-7.5%203.358-7.5%207.5s3.358%207.5%207.5%207.5h84v19.186h-209.81v-19.186h91.2c4.142%200%207.5-3.358%207.5-7.5s-3.358-7.5-7.5-7.5h-92.322c-7.652%200-13.878%206.226-13.878%2013.878v21.43c0%207.652%206.226%2013.878%2013.878%2013.878h12.625v104.339h-84.947v-38.563c0-4.142-3.358-7.5-7.5-7.5s-7.5%203.358-7.5%207.5v76.536c0%206.934%205.641%2012.574%2012.574%2012.574h445.907c7.167%200%2012.999-5.832%2012.999-12.999v-400.905c.001-54.091-44.004-98.096-98.092-98.096zm-273.44%20497h-84.948v-20.546h84.947v20.546zm159.783-139.886-66.382%2059.845-66.382-59.845zm-144.783%209.359%2067.201%2060.584-67.201%2060.584zm12.02%20130.527%2066.382-59.845%2066.381%2059.845zm144.783-9.359-67.201-60.584%2067.201-60.584zm99.919%209.359h-84.919v-20.546h84.919zm53.445-198.823c-.347-.72-.733-1.427-1.166-2.117l-51.945-82.266h84.477v84.383zm-134.848-200.081c0-45.819%2037.288-83.096%2083.122-83.096%2045.816%200%2083.092%2037.276%2083.092%2083.096v1.287h-166.214zm0%2016.287h166.214v84.412h-93.949s-3.523-5.656-4.312-6.966c-4.831-8.036-6.44-9.766-17.868-15.778l-50.086-26.45v-35.218zm95.246%20180.177s-50.275-79.656-50.78-80.463c-4.799-7.665-6.514-9.825-13.281-13.692-.521-.297-119.929-63.408-120.482-63.711-5.101-2.795-7.847-3.32-12.067-1.572-.037.015-.076.034-.113.05-.616.259-117.985%2062.197-117.985%2062.197-11.727%206.2-12.961%207.295-18.868%2016.729-.505.807-50.78%2080.463-50.78%2080.463-.01.016-.016.033-.026.049l-10.294%2016.31c-2.375%203.767-7.885%205.096-12.039%202.894-2.06-1.086-3.552-2.873-4.093-4.901-.316-1.184-.446-2.984.729-4.843%200%200%2065.037-103.124%2065.872-104.512%203.448-5.734%203.448-5.734%2012.017-10.243%200%200%20139.193-73.639%20140.012-74.013.82.374%20140.012%2074.013%20140.012%2074.013.003.002.007.004.011.006%208.559%204.502%208.559%204.502%2012.007%2010.238.834%201.388%201.816%203.02%203.058%204.987l62.833%2099.509c1.168%201.86%201.034%203.669.716%204.859-.544%202.032-2.032%203.82-4.072%204.899-4.226%202.231-9.645.924-12.069-2.896l-10.292-16.307c-.01-.017-.016-.035-.026-.05zm70.968%20202.44h-69.811v-84.411h69.811zm-69.811-99.411v-74.389c7.313%207.042%2018.763%208.874%2028.238%203.875%205.6-2.965%209.746-8.016%2011.438-13.897h30.135v84.412h-69.811z'/%3e%3cpath%20d='m285.262%20237.873c0-28.347-23.062-51.409-51.408-51.409-28.331%200-51.379%2023.062-51.379%2051.409s23.049%2051.409%2051.379%2051.409c28.347-.001%2051.408-23.063%2051.408-51.409zm-87.787%200c0-20.076%2016.32-36.409%2036.379-36.409%2020.075%200%2036.408%2016.333%2036.408%2036.409s-16.333%2036.409-36.408%2036.409c-20.059-.001-36.379-16.334-36.379-36.409z'/%3e%3c/g%3e%3c/svg%3e";export{c as default};
@@ -0,0 +1 @@
1
+ const c="data:image/svg+xml,%3csvg%20height='512'%20viewBox='0%200%20512%20512'%20width='512'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='currentColor'%3e%3cpath%20d='m492.995%20166.489-31.995-23.996v-112.493c8.284%200%2015-6.716%2015-15s-6.716-15-15-15h-90c-8.284%200-15%206.716-15%2015s6.716%2015%2015%2015v44.992l-88.009-66.006c-15.893-11.904-38.09-11.905-53.989.005l-209.999%20157.5c-19.853%2014.893-23.891%2043.155-9.001%2063.004%207.22%209.62%2017.752%2015.853%2029.657%2017.55%202.157.308%204.31.46%206.45.459%205.109%200%2010.13-.876%2014.891-2.564v252.06c0%208.284%206.716%2015%2015%2015h360c8.284%200%2015-6.716%2015-15v-252.068c4.763%201.685%209.803%202.56%2014.978%202.56%2014.1%200%2027.565-6.729%2036.022-18%2014.888-19.846%2010.849-48.108-9.005-63.003zm-91.995-136.489h30v89.992l-30-22.5zm-120%20272h-50v-92h50zm30%200v-107c0-8.284-6.716-15-15-15h-80c-8.284%200-15%206.716-15%2015v107h-109.999v-77.004l164.999-123.752%20165%20123.753v77.003zm-219.999%2030h209.999v30h-45c-8.284%200-15%206.716-15%2015v45h-45c-8.284%200-15%206.716-15%2015v45h-90zm119.999%20150v-30h45c8.284%200%2015-6.716%2015-15v-45h45c8.284%200%2015-6.716%2015-15v-45h90v150zm267.002-270.511c-2.863%203.815-7.245%206.004-12.024%206.004-3.26%200-6.365-1.036-8.979-2.996l-191.999-144.003c-5.333-4-12.667-4-18%200l-192.008%20144.009c-3.193%202.397-7.136%203.408-11.098%202.842-3.973-.566-7.488-2.647-9.896-5.856-4.961-6.614-3.612-16.035%203.006-21l209.991-157.492c2.652-1.987%205.83-2.979%209.007-2.979%203.175%200%206.349.992%208.996%202.974l209.996%20157.497c6.62%204.966%207.969%2014.386%203.008%2021z'/%3e%3c/g%3e%3c/svg%3e";export{c as default};
@@ -0,0 +1 @@
1
+ const c="data:image/svg+xml,%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20512%20512'%3e%3cg%20fill='currentColor'%3e%3cpath%20d='M485.4,272.067h-8.533v-179.2c0-42.667-34.133-76.8-76.8-76.8c-37.77,0-64.935,28.006-67.974,69.041%20c-19.829,3.748-34.426,20.826-34.426,41.892c0,5.12,3.413,8.533,8.533,8.533h68.267c5.12,0,8.533-3.413,8.533-8.533%20c0-20.833-14.274-37.769-33.767-41.767c2.55-27.116,18.836-52.1,50.834-52.1c33.28,0,59.733,26.453,59.733,59.733v179.2H202.975%20c-3.86-19.681-20.878-34.133-41.841-34.133c-8.533-10.24-20.48-17.067-34.133-17.067c-16.213,0-30.72,9.387-37.547,23.04%20c-6.827-3.413-14.507-5.973-22.187-5.973c-20.963,0-37.981,14.452-41.841,34.133H24.6c-14.507,0-25.6,11.093-25.6,25.6%20c0,14.507,11.093,25.6,25.6,25.6h10.255l23.025,91.307c6.827,26.453,30.72,45.227,58.027,45.227h6.827l-11.093,22.187%20c-2.56,4.267-0.853,9.387,3.413,11.093c0.853,0.853,2.56,0.853,3.413,0.853c3.413,0,5.973-1.707,7.68-4.267L141.08,459.8h236.8%20l14.507,29.013c1.707,3.413,4.267,5.12,7.68,5.12c1.707,0,2.56,0,3.413-1.707c3.413-1.707,5.12-6.827,3.413-11.093%20l-10.689-21.379c26.419-0.938,49.266-19.39,55.916-44.328l23.24-92.16h10.04c14.507,0,25.6-11.093,25.6-25.6%20C511,283.16,499.907,272.067,485.4,272.067z%20M365.08,118.467h-48.64c3.413-10.24,13.653-17.067,24.747-17.067%20S361.667,108.227,365.08,118.467z%20M67.267,255c7.68,0,14.507,3.413,20.48,9.387c1.707,2.56,5.12,3.413,8.533,2.56%20s5.12-3.413,5.973-6.827c2.56-12.8,12.8-22.187,25.6-22.187c9.387,0,17.92,4.267,22.187,12.8c1.707,3.413,5.973,5.12,9.387,4.267%20c0.853,0,1.707,0,2.56,0c11.093,0,20.48,6.827,23.893,17.067H43.373C46.787,261.827,56.173,255,67.267,255z%20M436.76,410.307%20c-5.12,18.773-22.187,32.427-41.813,32.427H116.76c-19.627,0-36.693-13.653-41.813-32.427l-22.187-87.04h404.48L436.76,410.307z%20M485.4,306.2h-17.067H41.667H24.6c-5.12,0-8.533-3.413-8.533-8.533s3.413-8.533,8.533-8.533h8.533h162.133H485.4%20c5.12,0,8.533,3.413,8.533,8.533S490.52,306.2,485.4,306.2z'/%3e%3cpath%20d='M306.2,173.933c5.12,0,8.533-3.413,8.533-8.533v-4.267c0-5.12-3.413-8.533-8.533-8.533s-8.533,3.413-8.533,8.533v4.267%20C297.667,170.52,301.08,173.933,306.2,173.933z'/%3e%3cpath%20d='M306.2,213.187c5.12,0,8.533-4.267,8.533-8.533v-9.387c0-5.12-3.413-8.533-8.533-8.533s-8.533,3.413-8.533,8.533v9.387%20C297.667,209.773,301.08,213.187,306.2,213.187z'/%3e%3cpath%20d='M306.2,246.467c5.12,0,8.533-3.413,8.533-8.533v-4.267c0-5.12-3.413-8.533-8.533-8.533s-8.533,3.413-8.533,8.533v4.267%20C297.667,243.053,301.08,246.467,306.2,246.467z'/%3e%3cpath%20d='M340.333,173.933c5.12,0,8.533-3.413,8.533-8.533v-4.267c0-5.12-3.413-8.533-8.533-8.533%20c-5.12,0-8.533,3.413-8.533,8.533v4.267C331.8,170.52,335.213,173.933,340.333,173.933z'/%3e%3cpath%20d='M331.8,204.653c0,5.12,3.413,8.533,8.533,8.533c5.12,0,8.533-4.267,8.533-8.533v-9.387c0-5.12-3.413-8.533-8.533-8.533%20c-5.12,0-8.533,3.413-8.533,8.533V204.653z'/%3e%3cpath%20d='M331.8,237.933c0,5.12,3.413,8.533,8.533,8.533c5.12,0,8.533-3.413,8.533-8.533v-4.267c0-5.12-3.413-8.533-8.533-8.533%20c-5.12,0-8.533,3.413-8.533,8.533V237.933z'/%3e%3cpath%20d='M374.467,173.933c5.12,0,8.533-3.413,8.533-8.533v-4.267c0-5.12-3.413-8.533-8.533-8.533s-8.533,3.413-8.533,8.533v4.267%20C365.933,170.52,369.347,173.933,374.467,173.933z'/%3e%3cpath%20d='M365.933,204.653c0,5.12,3.413,8.533,8.533,8.533S383,208.92,383,204.653v-9.387c0-5.12-3.413-8.533-8.533-8.533%20s-8.533,3.413-8.533,8.533V204.653z'/%3e%3cpath%20d='M365.933,237.933c0,5.12,3.413,8.533,8.533,8.533s8.533-3.413,8.533-8.533v-4.267c0-5.12-3.413-8.533-8.533-8.533%20s-8.533,3.413-8.533,8.533V237.933z'/%3e%3c/g%3e%3c/svg%3e";export{c as default};
@@ -0,0 +1 @@
1
+ const c="data:image/svg+xml,%3csvg%20height='512'%20viewBox='0%200%20512%20512'%20width='512'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='currentColor'%3e%3cpath%20d='m394.063%20391.996c-9.198-5.29-18.373-10.623-27.558-15.937%205.002-11.769%2010.194-23.902%2014.903-36.053%201.809-4.667%201.189-9.911-1.655-14.028-5.776-8.361-16.863-8.855-24.344-1.74-19.661%2018.7-39.085%2037-58.652%2055.537-3.775%203.577-5.639%208.434-5.11%2013.327.523%204.846%203.339%209.144%207.725%2011.792%209.345%205.641%2018.761%2010.955%2028.098%2016.291-4.644%2010.951-10.372%2024.246-14.92%2036.002-2.887%207.462.421%2015.744%207.693%2019.264%205.714%202.766%2012.28%202.211%2018.299-3.483%2019.344-18.3%2039.343-37.214%2058.67-55.547%203.818-3.622%205.674-8.512%205.09-13.416-.591-4.962-3.594-9.338-8.239-12.009zm-7.174%2014.54c-15.634%2014.832-58.949%2056.973-60.109%2056.412-.118-.057-.306-.178-.24-.349%205.179-13.526%2011.635-28.272%2016.918-40.732%201.493-3.522.907-8.28-3.768-10.97-10.84-6.237-21.791-12.354-32.564-18.845-.802-.483-.767-.71-.051-1.388%2020.874-19.779%2057.959-55.311%2059.803-56.459.396.084.544.299.545.384-5.307%2013.684-11.213%2027.305-16.9%2040.739-1.794%204.237-.293%208.649%203.739%2010.98%204.399%202.54%208.796%205.087%2013.191%207.634%206.374%203.693%2012.748%207.387%2019.134%2011.059%201.106.635%201.136.744.302%201.535zm-81.784-208.4h-201.46c-10.273%200-18.631%208.33-18.631%2018.569v44.276c0%2010.239%208.357%2018.569%2018.631%2018.569h201.461c10.273%200%2018.631-8.33%2018.631-18.569v-44.276c-.001-10.239-8.358-18.569-18.632-18.569zm3.631%2062.845c0%201.968-1.629%203.569-3.631%203.569h-201.46c-2.002%200-3.631-1.601-3.631-3.569v-44.276c0-1.968%201.629-3.569%203.631-3.569h201.461c2.002%200%203.631%201.601%203.631%203.569v44.276zm15-143.898c0-10.239-8.357-18.569-18.631-18.569h-201.46c-10.273%200-18.631%208.33-18.631%2018.569v44.276c0%2010.239%208.357%2018.569%2018.631%2018.569h201.461c10.273%200%2018.631-8.33%2018.631-18.569v-44.276zm-15%2044.277c0%201.968-1.629%203.569-3.631%203.569h-201.46c-2.002%200-3.631-1.601-3.631-3.569v-44.276c0-1.968%201.629-3.569%203.631-3.569h201.461c2.002%200%203.631%201.601%203.631%203.569v44.276zm38.247%20123.857c-18.653%200-36.266%204.529-51.803%2012.542h-191.535c-10.272%200-18.63%208.331-18.63%2018.57v44.27c0%2010.239%208.357%2018.57%2018.63%2018.57h131.621c-1.096%206.318-1.673%2012.812-1.673%2019.438%200%2024.243%207.651%2046.729%2020.66%2065.182h-150.608c-2.002%200-3.63-1.602-3.63-3.57v-44.27c0-1.969%201.628-3.57%203.63-3.57h107.641c4.143%200%207.5-3.358%207.5-7.5s-3.357-7.5-7.5-7.5h-107.641c-10.272%200-18.63%208.331-18.63%2018.57v44.27c0%2010.239%208.357%2018.57%2018.63%2018.57h163.237c7.07%207.063%2015.065%2013.199%2023.785%2018.21h-198.242c-14.227%200-25.8-11.574-25.8-25.8v-365.089c0-14.226%2011.573-25.8%2025.8-25.8h223.9c14.227%200%2025.8%2011.574%2025.8%2025.8v156.64c0%204.142%203.357%207.5%207.5%207.5s7.5-3.358%207.5-7.5v-156.64c0-22.497-18.303-40.8-40.8-40.8h-40.067v-35.611c0-16.376-13.323-29.699-29.699-29.699h-84.367c-16.376%200-29.699%2013.323-29.699%2029.699v35.611h-40.068c-22.497%200-40.8%2018.303-40.8%2040.8v365.09c0%2022.497%2018.303%2040.8%2040.8%2040.8h223.9c3.892%200%207.731-.553%2011.442-1.636%206.248%201.071%2012.667%201.636%2019.216%201.636%2062.524%200%20113.392-50.867%20113.392-113.392%200-62.524-50.867-113.391-113.392-113.391zm-199.491-255.518c0-8.105%206.594-14.699%2014.699-14.699h84.367c8.105%200%2014.699%206.594%2014.699%2014.699v35.611h-113.765zm-43.847%20334.471c-2.002%200-3.63-1.602-3.63-3.57v-44.27c0-1.969%201.628-3.57%203.63-3.57h169.341c-15.666%2013.521-27.6%2031.25-34.041%2051.41zm243.338%20132.83c-54.253%200-98.392-44.138-98.392-98.392%200-54.253%2044.139-98.391%2098.392-98.391s98.392%2044.138%2098.392%2098.391c0%2054.254-44.139%2098.392-98.392%2098.392z'/%3e%3c/g%3e%3c/svg%3e";export{c as default};
@@ -0,0 +1 @@
1
+ const a="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='512'%20height='512'%20viewBox='0%200%20512%20512'%3e%3cg%20fill='currentColor'%3e%3cpath%20d='M496,344h-8V280a32.042,32.042,0,0,0-32-32V112a32.042,32.042,0,0,0-32-32H88a32.042,32.042,0,0,0-32,32V248a32.042,32.042,0,0,0-32,32v64H16a8,8,0,0,0-8,8v32a8,8,0,0,0,8,8h8v32a8,8,0,0,0,8,8H56a7.99,7.99,0,0,0,7.84-6.43L70.56,392H441.44l6.72,33.57A7.99,7.99,0,0,0,456,432h24a8,8,0,0,0,8-8V392h8a8,8,0,0,0,8-8V352A8,8,0,0,0,496,344ZM72,112A16.021,16.021,0,0,1,88,96H424a16.021,16.021,0,0,1,16,16V248H424V216a32.042,32.042,0,0,0-32-32H296a32.042,32.042,0,0,0-32,32v32H248V216a32.042,32.042,0,0,0-32-32H120a32.042,32.042,0,0,0-32,32v32H72ZM408,216v32H280V216a16.021,16.021,0,0,1,16-16h96A16.021,16.021,0,0,1,408,216Zm-176,0v32H104V216a16.021,16.021,0,0,1,16-16h96A16.021,16.021,0,0,1,232,216ZM40,280a16.021,16.021,0,0,1,16-16H456a16.021,16.021,0,0,1,16,16v64H40Zm9.44,136H40V392H54.24ZM472,416h-9.44l-4.8-24H472Zm16-40H24V360H488Z'/%3e%3c/g%3e%3c/svg%3e";export{a as default};
@@ -0,0 +1 @@
1
+ const h="data:image/svg+xml,%3csvg%20height='480pt'%20viewBox='-3%200%20480%20480'%20width='480pt'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='currentColor'%3e%3cpath%20d='m234.96875%2064c-13.253906%200-24%2010.746094-24%2024s10.746094%2024%2024%2024%2024-10.746094%2024-24-10.746094-24-24-24zm0%2032c-4.417969%200-8-3.582031-8-8s3.582031-8%208-8%208%203.582031%208%208-3.582031%208-8%208zm0%200'/%3e%3cpath%20d='m306.96875%20160h-144c-4.417969%200-8%203.582031-8%208v64c0%204.417969%203.582031%208%208%208h144c4.417969%200%208-3.582031%208-8v-64c0-4.417969-3.582031-8-8-8zm-8%2064h-128v-48h128zm0%200'/%3e%3cpath%20d='m186.96875%20192h16v16h-16zm0%200'/%3e%3cpath%20d='m218.96875%20192h32v16h-32zm0%200'/%3e%3cpath%20d='m266.96875%20192h16v16h-16zm0%200'/%3e%3cpath%20d='m138.96875%2072v32h16v-24h16v-16h-24c-4.417969%200-8%203.582031-8%208zm0%200'/%3e%3cpath%20d='m466.96875%200h-32c-4.417969%200-8%203.582031-8%208v192c0%204.417969-3.582031%208-8%208h-56v-56h24c4.417969%200%208-3.582031%208-8v-48c0-4.417969-3.582031-8-8-8h-24v-16c-.027344-22.082031-17.921875-39.972656-40-40h-16v-16h-16v16h-17.761719l-6.480469-25.9375c-.886718-3.5625-4.085937-6.0625-7.757812-6.0625h-48c-3.671875%200-6.871094%202.5-7.761719%206.0625l-6.480469%2025.9375h-17.757812v-16h-16v16h-16c-22.082031.027344-39.972656%2017.917969-40%2040v56h-24c-4.417969%200-8%203.582031-8%208v64c0%204.417969%203.582031%208%208%208h24v224h-24c-4.417969%200-8%203.582031-8%208v32c0%204.417969%203.582031%208%208%208h96c4.417969%200%208-3.582031%208-8v-32c0-4.417969-3.582031-8-8-8h-24v-41.710938c12.371094%206.375%2026.082031%209.703126%2040%209.710938h8v24c0%204.417969%203.582031%208%208%208h48c4.417969%200%208-3.582031%208-8v-24h8c13.914062-.007812%2027.628906-3.335938%2040-9.710938v41.710938h-24c-4.417969%200-8%203.582031-8%208v32c0%204.417969%203.582031%208%208%208h96c4.417969%200%208-3.582031%208-8v-32c0-4.417969-3.582031-8-8-8h-24v-176h56c30.910156-.039062%2055.960938-25.089844%2056-56v-192c0-4.417969-3.582031-8-8-8zm-88%20104v32h-16v-32zm-161.753906-88h35.503906l4%2016h-43.503906zm-94.246094%2056c0-13.253906%2010.746094-24%2024-24h176c13.253906%200%2024%2010.746094%2024%2024v56h-224zm-32%20120v-48h16v48zm80%20272h-80v-16h80zm-32-32h-16v-69.558594c4.535156%206.484375%209.914062%2012.332032%2016%2017.390625zm112-16h-32v-16h32zm128%2048h-80v-16h80zm-32-32h-16v-52.167969c6.082031-5.058593%2011.464844-10.90625%2016-17.390625zm0-120c-.042969%2039.746094-32.253906%2071.957031-72%2072h-80c-39.746094-.042969-71.957031-32.253906-72-72v-168h224zm112-112c-.027344%2022.082031-17.921875%2039.972656-40%2040h-56v-16h56c13.253906%200%2024-10.746094%2024-24v-184h16zm0%200'/%3e%3cpath%20d='m56.625%2053.65625%2010.34375-10.34375%2018.34375%2018.34375%2011.3125-11.3125-24-24c-3.125-3.121094-8.1875-3.121094-11.3125%200l-10.9375%2010.9375-34.398438-27.527344-10.007812%2012.492188%2040%2032c3.183594%202.550781%207.773438%202.292968%2010.65625-.589844zm0%200'/%3e%3cpath%20d='m0%2087.433594%2040%2016c2.972656%201.183594%206.363281.484375%208.625-1.777344l11.917969-11.921875%2026.847656%2013.464844%207.152344-14.320313-32-16c-3.078125-1.535156-6.796875-.929687-9.230469%201.503906l-12.273438%2012.226563-35.101562-14.042969zm0%200'/%3e%3c/g%3e%3c/svg%3e";export{h as default};
@@ -0,0 +1 @@
1
+ const c="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2045.393%2045.393'%3e%3cg%20fill='currentColor'%3e%3cpath%20d='M43.518,12.709L25.178,0.728c-1.511-0.978-3.458-0.968-4.96,0.021L1.859,12.719c-1.14,0.751-1.455,2.284-0.705,3.424%20c0.751,1.14,2.283,1.456,3.424,0.704L22.715,5.021L40.83,16.857c0.416,0.269,0.881,0.396,1.341,0.396%20c0.812,0,1.604-0.397,2.077-1.127C44.99,14.98,44.662,13.452,43.518,12.709z'/%3e%3cpath%20d='M38.879,27.616c-0.151-0.865-0.903-1.505-1.78-1.505h-1.008l-0.383-3.987c-0.409-4.264-3.948-7.49-8.232-7.49H17.92%20c-4.285,0-7.823,3.227-8.233,7.49l-0.382,3.987H8.296c-0.878,0-1.629,0.64-1.782,1.505l-1.5,8.504%20c-0.186,1.054,0.112,2.139,0.8,2.957c0.662,0.788,1.637,1.258,2.657,1.293v1.412c0,1.999,1.602,3.61,3.603,3.61h1.138%20c1.999,0,3.625-1.611,3.625-3.61v-1.389h11.732v1.386c0,2,1.613,3.613,3.612,3.613h1.139c1.999,0,3.614-1.613,3.614-3.613V40.37%20c1.02-0.035,1.989-0.501,2.649-1.288c0.688-0.82,0.982-1.899,0.798-2.955L38.879,27.616z%20M11.642,37.113%20c-1.687,0-3.055-1.367-3.055-3.056c0-1.689,1.368-3.057,3.055-3.057c1.688,0,3.057,1.367,3.057,3.057%20C14.699,35.746,13.33,37.113,11.642,37.113z%20M12.404,26.111l0.353-3.678c0.257-2.674,2.476-4.688,5.163-4.688h0.551v1.156%20c0,1.003,0.797,1.802,1.799,1.802h4.856c1.002,0,1.813-0.799,1.813-1.802v-1.155h0.537c2.687,0,4.906,2.014,5.162,4.688%20l0.354,3.678L12.404,26.111L12.404,26.111z%20M33.75,37.113c-1.687,0-3.055-1.367-3.055-3.056c0-1.689,1.368-3.057,3.055-3.057%20c1.688,0,3.057,1.367,3.057,3.057C36.807,35.746,35.438,37.113,33.75,37.113z'/%3e%3c/g%3e%3c/svg%3e";export{c as default};
@@ -0,0 +1 @@
1
+ const a="data:image/svg+xml,%3csvg%20height='512'%20viewBox='0%200%2074%2074'%20width='512'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='currentColor'%3e%3cpath%20d='m46.44%204h-2.97a1%201%200%200%201%200-2h2.97a1%201%200%200%201%200%202z'/%3e%3cpath%20d='m68.64%2010.38h-63.28a1%201%200%200%201%20-1-1v-6.38a1%201%200%200%201%201-1h21.2a1%201%200%200%201%200%202h-20.2v4.38h61.28v-4.38h-14.2a1%201%200%200%201%200-2h15.2a1%201%200%200%201%201%201v6.38a1%201%200%200%201%20-1%201z'/%3e%3cpath%20d='m36.47%204h-2.91a1%201%200%200%201%200-2h2.91a1%201%200%200%201%200%202z'/%3e%3cpath%20d='m37%2051.207a1%201%200%200%201%20-1-1v-40.828a1%201%200%201%201%202%200v40.828a1%201%200%200%201%20-1%201z'/%3e%3cpath%20d='m46.771%2067.07h-19.542a1%201%200%200%201%20-.977-1.215l3.49-15.855a1%201%200%200%201%20.977-.785h12.562a1%201%200%200%201%20.977.785l3.49%2015.86a1%201%200%200%201%20-.977%201.215zm-18.3-2h17.056l-3.049-13.86h-10.956z'/%3e%3cpath%20d='m37%2072a5.936%205.936%200%200%201%20-5.93-5.93%201%201%200%200%201%202%200%203.93%203.93%200%200%200%207.86%200%201%201%200%200%201%202%200%205.936%205.936%200%200%201%20-5.93%205.93z'/%3e%3cpath%20d='m60.416%2035.114a1%201%200%200%201%20-1-1v-24.735a1%201%200%200%201%202%200v24.735a1%201%200%200%201%20-1%201z'/%3e%3cpath%20d='m69.6%2050.026h-18.37a1%201%200%200%201%20-.976-1.215l3.28-14.911a1%201%200%200%201%20.977-.785h11.809a1%201%200%200%201%20.977.785l3.28%2014.909a1%201%200%200%201%20-.976%201.215zm-17.126-2h15.882l-2.839-12.909h-10.2z'/%3e%3cpath%20d='m60.416%2054.66a5.641%205.641%200%200%201%20-5.634-5.634%201%201%200%201%201%202%200%203.634%203.634%200%201%200%207.268%200%201%201%200%201%201%202%200%205.641%205.641%200%200%201%20-5.634%205.634z'/%3e%3cpath%20d='m13.584%2035.114a1%201%200%200%201%20-1-1v-24.735a1%201%200%200%201%202%200v24.735a1%201%200%200%201%20-1%201z'/%3e%3cpath%20d='m22.77%2050.026h-18.37a1%201%200%200%201%20-.976-1.215l3.276-14.911a1%201%200%200%201%20.977-.785h11.812a1%201%200%200%201%20.977.785l3.28%2014.909a1%201%200%200%201%20-.976%201.215zm-17.126-2h15.881l-2.839-12.909h-10.203z'/%3e%3cpath%20d='m13.584%2054.66a5.641%205.641%200%200%201%20-5.634-5.634%201%201%200%200%201%202%200%203.634%203.634%200%200%200%207.268%200%201%201%200%200%201%202%200%205.641%205.641%200%200%201%20-5.634%205.634z'/%3e%3c/g%3e%3c/svg%3e";export{a as default};