@localazy/strapi-plugin 0.2.13 → 1.0.0-beta.1

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 (392) hide show
  1. package/README.md +3 -1
  2. package/dist/_chunks/App-BSFfgZKU.mjs +5278 -0
  3. package/dist/_chunks/App-D1QaIMHX.js +5278 -0
  4. package/dist/_chunks/ContentTransferSetup-DHXJIxAp.js +1552 -0
  5. package/dist/_chunks/ContentTransferSetup-DtjcF_jM.mjs +1550 -0
  6. package/dist/_chunks/GlobalSettings-BON3kjHK.js +228 -0
  7. package/dist/_chunks/GlobalSettings-BcdibqNS.mjs +228 -0
  8. package/dist/_chunks/LanguagesSelector-BeijBEjg.js +47 -0
  9. package/dist/_chunks/LanguagesSelector-fyAIUp7M.mjs +48 -0
  10. package/dist/_chunks/en-BTf8goGM.mjs +8 -0
  11. package/dist/_chunks/en-CRtsEFtl.js +8 -0
  12. package/dist/_chunks/fr-C8Qw4iPZ.js +4 -0
  13. package/dist/_chunks/fr-hkSxFuzl.mjs +4 -0
  14. package/dist/_chunks/has-model-changed-BMCQX2Dd.js +316 -0
  15. package/dist/_chunks/has-model-changed-Dvtzpc9v.mjs +317 -0
  16. package/dist/_chunks/index-BQw2qi2G.js +2679 -0
  17. package/dist/_chunks/index-CN3Gyh5F.mjs +2678 -0
  18. package/dist/_chunks/isEqual-B-YVnzrp.js +205 -0
  19. package/dist/_chunks/isEqual-CEyT97-3.mjs +206 -0
  20. package/dist/_chunks/set-DUdH3vE5.js +54557 -0
  21. package/dist/_chunks/set-DulHAQhq.mjs +54542 -0
  22. package/dist/admin/index.js +4 -0
  23. package/dist/admin/index.mjs +5 -0
  24. package/dist/admin/src/components/Initializer.d.ts +5 -0
  25. package/dist/admin/src/config/development/index.d.ts +15 -0
  26. package/dist/admin/src/config/example/index.example.d.ts +15 -0
  27. package/dist/admin/src/config/index.d.ts +15 -0
  28. package/dist/admin/src/config/local/index.d.ts +15 -0
  29. package/dist/admin/src/config/production/index.d.ts +15 -0
  30. package/dist/admin/src/i18n.d.ts +2 -0
  31. package/dist/admin/src/index.d.ts +10 -0
  32. package/dist/admin/src/modules/@common/api/strapi-api-base.d.ts +6 -0
  33. package/dist/admin/src/modules/@common/components/Icons/House.d.ts +2 -0
  34. package/dist/admin/src/modules/@common/components/Icons/Localazy.d.ts +2 -0
  35. package/dist/admin/src/modules/@common/components/LanguagesSelector.d.ts +11 -0
  36. package/dist/admin/src/modules/@common/components/PluginPageLoader.d.ts +2 -0
  37. package/dist/admin/src/modules/@common/components/SideNav.d.ts +2 -0
  38. package/dist/admin/src/modules/@common/components/TransferReport.d.ts +5 -0
  39. package/dist/admin/src/modules/@common/functions/flatten-deep.d.ts +2 -0
  40. package/dist/admin/src/modules/@common/locale/en.d.ts +14 -0
  41. package/dist/admin/src/modules/@common/models/supported-content-type-fields.d.ts +2 -0
  42. package/dist/admin/src/modules/@common/models/supported-custom-field-plugins.d.ts +2 -0
  43. package/dist/admin/src/modules/@common/services/i18n-service.d.ts +3 -0
  44. package/dist/admin/src/modules/@common/services/plugin.service.d.ts +3 -0
  45. package/dist/admin/src/modules/@common/services/product-analytics-service.d.ts +14 -0
  46. package/dist/admin/src/modules/@common/services/project-service.d.ts +4 -0
  47. package/dist/admin/src/modules/@common/services/user-service.d.ts +5 -0
  48. package/dist/admin/src/modules/@common/utils/are-locales-compatible.d.ts +2 -0
  49. package/dist/admin/src/modules/@common/utils/format-number.d.ts +2 -0
  50. package/dist/admin/src/modules/@common/utils/get-default-locale.d.ts +2 -0
  51. package/dist/admin/src/modules/@common/utils/history.d.ts +2 -0
  52. package/dist/admin/src/modules/@common/utils/is-plugin-route.d.ts +2 -0
  53. package/dist/admin/src/modules/@common/utils/iso-locales-utils.d.ts +3 -0
  54. package/dist/admin/src/modules/@common/utils/redirect-to-plugin-route.d.ts +13 -0
  55. package/dist/admin/src/modules/@common/utils/sort-by-model-name.d.ts +2 -0
  56. package/dist/admin/src/modules/@common/utils/use-header-subtitle.d.ts +2 -0
  57. package/dist/admin/src/modules/@common/utils/use-header-title.d.ts +2 -0
  58. package/dist/admin/src/modules/@common/utils/use-nav.d.ts +11 -0
  59. package/dist/admin/src/modules/alerts/constants/channels.d.ts +1 -0
  60. package/dist/admin/src/modules/alerts/constants/events.d.ts +4 -0
  61. package/dist/admin/src/modules/alerts/services/alerts-service.d.ts +8 -0
  62. package/dist/admin/src/modules/localazy-download/locale/en.d.ts +24 -0
  63. package/dist/admin/src/modules/localazy-download/services/download-alerts-service.d.ts +5 -0
  64. package/dist/admin/src/modules/localazy-download/services/localazy-download-service.d.ts +3 -0
  65. package/dist/admin/src/modules/localazy-upload/components/ReadDocsButton.d.ts +3 -0
  66. package/dist/admin/src/modules/localazy-upload/locale/en.d.ts +19 -0
  67. package/dist/admin/src/modules/localazy-upload/services/localazy-upload-service.d.ts +3 -0
  68. package/dist/admin/src/modules/localazy-upload/services/upload-alerts-service.d.ts +5 -0
  69. package/dist/admin/src/modules/login/components/FetchIdentity.d.ts +3 -0
  70. package/dist/admin/src/modules/login/components/LoginButton.d.ts +12 -0
  71. package/dist/admin/src/modules/login/components/LogoutButton.d.ts +6 -0
  72. package/dist/admin/src/modules/login/locale/en.d.ts +8 -0
  73. package/dist/admin/src/modules/login/services/localazy-login-service.d.ts +4 -0
  74. package/dist/admin/src/modules/overview/components/OverviewItem.d.ts +7 -0
  75. package/dist/admin/src/modules/overview/components/OverviewItemLink.d.ts +7 -0
  76. package/dist/admin/src/modules/overview/components/PrerequisitiesInfo.d.ts +3 -0
  77. package/dist/admin/src/modules/overview/locale/en.d.ts +14 -0
  78. package/dist/admin/src/modules/plugin-settings/components/ContentTransferSetupEmpty.d.ts +2 -0
  79. package/dist/admin/src/modules/plugin-settings/components/Tree.d.ts +8 -0
  80. package/dist/admin/src/modules/plugin-settings/components/TreeItem.d.ts +10 -0
  81. package/dist/admin/src/modules/plugin-settings/functions/build-content-transfer-setup-schema.d.ts +2 -0
  82. package/dist/admin/src/modules/plugin-settings/functions/get-content-transfer-setup-keys-sets.d.ts +8 -0
  83. package/dist/admin/src/modules/plugin-settings/functions/has-model-changed.d.ts +6 -0
  84. package/dist/admin/src/modules/plugin-settings/locale/en.d.ts +49 -0
  85. package/dist/admin/src/modules/plugin-settings/services/plugin-settings-service.d.ts +6 -0
  86. package/dist/admin/src/modules/plugin-settings/services/strapi-model-service.d.ts +4 -0
  87. package/dist/admin/src/modules/plugin-settings/services/strapi-users-service.d.ts +3 -0
  88. package/dist/admin/src/modules/plugin-settings/utils/array-of-models-to-object.d.ts +2 -0
  89. package/dist/admin/src/modules/plugin-settings/utils/find-model-value-by-key.d.ts +2 -0
  90. package/dist/admin/src/modules/plugin-settings/utils/get-filtered-models-schemas.d.ts +7 -0
  91. package/dist/admin/src/modules/plugin-settings/utils/get-models-tree.d.ts +5 -0
  92. package/dist/admin/src/modules/strapi/utils/get-default-theme.d.ts +3 -0
  93. package/dist/admin/src/modules/user/model/localazy-identity.d.ts +15 -0
  94. package/dist/admin/src/modules/user/services/localazy-user-service.d.ts +6 -0
  95. package/dist/admin/src/pages/App.d.ts +3 -0
  96. package/dist/admin/src/pages/ContentTransferSetup.d.ts +4 -0
  97. package/dist/admin/src/pages/Download.d.ts +7 -0
  98. package/dist/admin/src/pages/GlobalSettings.d.ts +4 -0
  99. package/dist/admin/src/pages/HomePage.d.ts +2 -0
  100. package/dist/admin/src/pages/Login.d.ts +8 -0
  101. package/dist/admin/src/pages/Overview.d.ts +8 -0
  102. package/dist/admin/src/pages/Upload.d.ts +7 -0
  103. package/dist/admin/src/pluginId.d.ts +2 -0
  104. package/dist/admin/src/plugins/generic-connector-client.d.ts +3 -0
  105. package/dist/admin/src/state/localazy-identity.d.ts +13 -0
  106. package/dist/admin/src/utils/getTranslation.d.ts +2 -0
  107. package/dist/server/index.js +26000 -0
  108. package/dist/server/index.mjs +25989 -0
  109. package/dist/server/src/bootstrap.d.ts +5 -0
  110. package/dist/server/src/config/core/config.d.ts +1 -0
  111. package/dist/server/src/config/development/index.d.ts +15 -0
  112. package/dist/server/src/config/example/index.example.d.ts +15 -0
  113. package/dist/server/src/config/index.d.ts +18 -0
  114. package/dist/server/src/config/local/index.d.ts +15 -0
  115. package/dist/server/src/config/production/index.d.ts +15 -0
  116. package/dist/server/src/constants/channels.d.ts +3 -0
  117. package/dist/server/src/constants/events.d.ts +6 -0
  118. package/dist/server/src/content-types/index.d.ts +2 -0
  119. package/dist/server/src/controllers/index.d.ts +43 -0
  120. package/dist/server/src/controllers/localazy-auth-controller.d.ts +8 -0
  121. package/dist/server/src/controllers/localazy-project-controller.d.ts +7 -0
  122. package/dist/server/src/controllers/localazy-transfer-controller.d.ts +8 -0
  123. package/dist/server/src/controllers/localazy-user-controller.d.ts +9 -0
  124. package/dist/server/src/controllers/plugin-settings-controller.d.ts +10 -0
  125. package/dist/server/src/controllers/strapi-controller.d.ts +10 -0
  126. package/dist/server/src/core/index.d.ts +71 -0
  127. package/dist/server/src/db/model/content-transfer-setup.d.ts +4 -0
  128. package/dist/server/src/db/model/localazy-user.d.ts +17 -0
  129. package/dist/server/src/db/model/plugin-settings.d.ts +5 -0
  130. package/dist/server/src/db/model/utils/get-strapi-store.d.ts +26 -0
  131. package/dist/server/src/destroy.d.ts +5 -0
  132. package/dist/server/src/functions/should-set-downloaded-property.d.ts +12 -0
  133. package/dist/server/src/index.d.ts +189 -0
  134. package/dist/server/src/lifecycles/deep-populate-hook.d.ts +20 -0
  135. package/dist/server/src/lifecycles/deprecate-event-entry-in-localazy-hook.d.ts +4 -0
  136. package/dist/server/src/lifecycles/upload-event-entry-to-localazy-hook.d.ts +12 -0
  137. package/dist/server/src/middlewares/index.d.ts +2 -0
  138. package/dist/server/src/models/plugin/content-transfer-setup.d.ts +13 -0
  139. package/dist/server/src/models/strapi/locale.d.ts +8 -0
  140. package/dist/server/src/policies/index.d.ts +2 -0
  141. package/dist/server/src/register.d.ts +5 -0
  142. package/dist/server/src/routes/index.d.ts +25 -0
  143. package/dist/server/src/routes/localazy-auth-routes.d.ts +9 -0
  144. package/dist/server/src/routes/localazy-project-routes.d.ts +9 -0
  145. package/dist/server/src/routes/localazy-transfer-routes.d.ts +9 -0
  146. package/dist/server/src/routes/localazy-user-routes.d.ts +9 -0
  147. package/dist/server/src/routes/plugin-settings-routes.d.ts +9 -0
  148. package/dist/server/src/routes/strapi-routes.d.ts +9 -0
  149. package/dist/server/src/services/helpers/job-notification-service.d.ts +14 -0
  150. package/dist/server/src/services/helpers/plugin-settings-service-helper.d.ts +16 -0
  151. package/dist/server/src/services/index.d.ts +92 -0
  152. package/dist/server/src/services/localazy-pubapi-service.d.ts +12 -0
  153. package/dist/server/src/services/localazy-transfer-download-service.d.ts +11 -0
  154. package/dist/server/src/services/localazy-transfer-upload-service.d.ts +11 -0
  155. package/dist/server/src/services/localazy-upload-service.d.ts +28 -0
  156. package/dist/server/src/services/localazy-user-service.d.ts +11 -0
  157. package/dist/server/src/services/plugin-settings-service.d.ts +16 -0
  158. package/dist/server/src/services/strapi-i18n-service.d.ts +19 -0
  159. package/dist/server/src/services/strapi-localazy-i18n-service.d.ts +9 -0
  160. package/dist/server/src/services/strapi-service.d.ts +10 -0
  161. package/dist/server/src/utils/delay.d.ts +1 -0
  162. package/dist/server/src/utils/drop-property-deep.d.ts +1 -0
  163. package/dist/server/src/utils/flatten-object.d.ts +2 -0
  164. package/dist/server/src/utils/generate-random-id.d.ts +2 -0
  165. package/dist/server/src/utils/get-full-populate-localazy-download-object.d.ts +17 -0
  166. package/dist/server/src/utils/get-full-populate-localazy-upload-object.d.ts +9 -0
  167. package/dist/server/src/utils/get-full-populate-object.d.ts +17 -0
  168. package/dist/server/src/utils/get-main-keys-of-nested-array-objects.d.ts +2 -0
  169. package/dist/server/src/utils/get-picked-flatten-keys-for-hook-entry.d.ts +5 -0
  170. package/dist/server/src/utils/intl-display-name.d.ts +1 -0
  171. package/dist/server/src/utils/is-generally-applicable-content-type.d.ts +2 -0
  172. package/dist/server/src/utils/is-localazy-applicable-content-type.d.ts +2 -0
  173. package/dist/server/src/utils/iso-locales-utils.d.ts +3 -0
  174. package/dist/server/src/utils/localazy-api-client-factory.d.ts +3 -0
  175. package/dist/server/src/utils/localazy-generic-connector-client-factory.d.ts +3 -0
  176. package/dist/server/src/utils/model-utils.d.ts +7 -0
  177. package/dist/server/src/utils/omit-deep.d.ts +2 -0
  178. package/dist/server/src/utils/parsed-localazy-entry-to-create-entry.d.ts +7 -0
  179. package/dist/server/src/utils/parsed-localazy-entry-to-update-entry.d.ts +1 -0
  180. package/dist/server/src/utils/pick-entries.d.ts +2 -0
  181. package/dist/server/src/utils/populate-create-update-entry-with-base-entry.d.ts +1 -0
  182. package/dist/server/src/utils/request-initiator-helper.d.ts +9 -0
  183. package/dist/server/src/utils/reset-array-keys-deep.d.ts +1 -0
  184. package/dist/server/src/utils/transfer-setup-utils.d.ts +7 -0
  185. package/install/index.mjs +88 -34
  186. package/install/vite.config.example.js +40 -0
  187. package/install/vite.config.example.ts +41 -0
  188. package/install/{webpack.example.js → webpack.config.example.js} +2 -2
  189. package/install/webpack.config.example.ts +30 -0
  190. package/package.json +93 -55
  191. package/.babelrc +0 -7
  192. package/.eslintrc +0 -13
  193. package/.github/workflows/qa.yml +0 -25
  194. package/.github/workflows/release.yml +0 -46
  195. package/.nvmrc +0 -1
  196. package/.strapi-updater.json +0 -4
  197. package/CHANGELOG.md +0 -68
  198. package/LICENSE +0 -21
  199. package/admin/src/components/Initializer/index.js +0 -26
  200. package/admin/src/components/PluginIcon/index.js +0 -14
  201. package/admin/src/config/development/index.js +0 -14
  202. package/admin/src/config/example/index.js +0 -14
  203. package/admin/src/config/index.js +0 -19
  204. package/admin/src/config/local/index.js +0 -14
  205. package/admin/src/config/production/index.js +0 -15
  206. package/admin/src/i18n.js +0 -41
  207. package/admin/src/index.js +0 -138
  208. package/admin/src/modules/@common/components/Icons/Localazy/index.js +0 -12
  209. package/admin/src/modules/@common/components/LanguagesSelector/index.js +0 -67
  210. package/admin/src/modules/@common/components/PluginPageLoader/index.js +0 -20
  211. package/admin/src/modules/@common/components/SideNav/index.js +0 -46
  212. package/admin/src/modules/@common/components/TransferReport/index.js +0 -53
  213. package/admin/src/modules/@common/locale/en.js +0 -14
  214. package/admin/src/modules/@common/models/supported-content-type-fields.js +0 -9
  215. package/admin/src/modules/@common/models/supported-custom-field-plugins.js +0 -6
  216. package/admin/src/modules/@common/services/i18n-service.js +0 -15
  217. package/admin/src/modules/@common/services/plugin.service.js +0 -16
  218. package/admin/src/modules/@common/services/product-analytics-service.js +0 -86
  219. package/admin/src/modules/@common/services/project-service.js +0 -15
  220. package/admin/src/modules/@common/services/user-service.js +0 -38
  221. package/admin/src/modules/@common/utils/__tests__/iso-locales-utils.test.js +0 -102
  222. package/admin/src/modules/@common/utils/are-locales-compatible.js +0 -42
  223. package/admin/src/modules/@common/utils/format-number.js +0 -1
  224. package/admin/src/modules/@common/utils/functions/flatten-deep.js +0 -23
  225. package/admin/src/modules/@common/utils/get-default-locale.js +0 -32
  226. package/admin/src/modules/@common/utils/get-header-subtitle.js +0 -21
  227. package/admin/src/modules/@common/utils/get-header-title.js +0 -24
  228. package/admin/src/modules/@common/utils/get-nav.js +0 -35
  229. package/admin/src/modules/@common/utils/history.js +0 -6
  230. package/admin/src/modules/@common/utils/is-plugin-route.js +0 -15
  231. package/admin/src/modules/@common/utils/iso-locales-utils.js +0 -58
  232. package/admin/src/modules/@common/utils/redirect-to-plugin-route.js +0 -22
  233. package/admin/src/modules/@common/utils/sort-by-model-name.js +0 -10
  234. package/admin/src/modules/alerts/constants/channels.js +0 -1
  235. package/admin/src/modules/alerts/constants/events.js +0 -4
  236. package/admin/src/modules/alerts/services/alerts-service.js +0 -41
  237. package/admin/src/modules/localazy-download/locale/en.js +0 -25
  238. package/admin/src/modules/localazy-download/services/download-alerts-service.js +0 -12
  239. package/admin/src/modules/localazy-download/services/localazy-download-service.js +0 -16
  240. package/admin/src/modules/localazy-upload/components/ReadDocsButton.js +0 -20
  241. package/admin/src/modules/localazy-upload/locale/en.js +0 -20
  242. package/admin/src/modules/localazy-upload/services/localazy-upload-service.js +0 -16
  243. package/admin/src/modules/localazy-upload/services/upload-alerts-service.js +0 -12
  244. package/admin/src/modules/login/components/LoginButton/index.js +0 -55
  245. package/admin/src/modules/login/components/LogoutButton/index.js +0 -49
  246. package/admin/src/modules/login/locale/en.js +0 -7
  247. package/admin/src/modules/login/services/localazy-login-service.js +0 -29
  248. package/admin/src/modules/plugin-settings/components/ContentTransferSetup/index.js +0 -308
  249. package/admin/src/modules/plugin-settings/components/ContentTransferSetupEmpty/index.js +0 -86
  250. package/admin/src/modules/plugin-settings/components/GlobalSettings/index.js +0 -269
  251. package/admin/src/modules/plugin-settings/components/Tree/index.js +0 -145
  252. package/admin/src/modules/plugin-settings/components/TreeItem/index.js +0 -48
  253. package/admin/src/modules/plugin-settings/functions/build-content-transfer-setup-schema.js +0 -57
  254. package/admin/src/modules/plugin-settings/functions/get-content-transfer-setup-keys-sets.js +0 -85
  255. package/admin/src/modules/plugin-settings/functions/has-model-changed.js +0 -75
  256. package/admin/src/modules/plugin-settings/locale/en.js +0 -61
  257. package/admin/src/modules/plugin-settings/services/plugin-settings-service.js +0 -55
  258. package/admin/src/modules/plugin-settings/services/strapi-model-service.js +0 -26
  259. package/admin/src/modules/plugin-settings/services/strapi-users-service.js +0 -26
  260. package/admin/src/modules/plugin-settings/utils/__tests__/get-models-tree.test.js +0 -135
  261. package/admin/src/modules/plugin-settings/utils/array-of-models-to-object.js +0 -6
  262. package/admin/src/modules/plugin-settings/utils/find-model-value-by-key.js +0 -8
  263. package/admin/src/modules/plugin-settings/utils/get-filtered-models-schemas.js +0 -31
  264. package/admin/src/modules/plugin-settings/utils/get-models-tree.js +0 -94
  265. package/admin/src/modules/settings/components/OverviewItem/index.js +0 -44
  266. package/admin/src/modules/settings/components/OverviewItemLink/index.js +0 -34
  267. package/admin/src/modules/settings/components/PrerequisitiesInfo/index.js +0 -28
  268. package/admin/src/modules/settings/locale/en.js +0 -13
  269. package/admin/src/modules/user/model/localazy-identity.js +0 -14
  270. package/admin/src/modules/user/services/localazy-user-service.js +0 -38
  271. package/admin/src/pages/App/index.js +0 -154
  272. package/admin/src/pages/Download/index.js +0 -280
  273. package/admin/src/pages/Index/index.js +0 -8
  274. package/admin/src/pages/Login/index.js +0 -109
  275. package/admin/src/pages/PluginSettings/index.js +0 -56
  276. package/admin/src/pages/Settings/index.js +0 -132
  277. package/admin/src/pages/Upload/index.js +0 -241
  278. package/admin/src/pluginId.js +0 -5
  279. package/admin/src/plugins/generic-connector-client.js +0 -9
  280. package/admin/src/state/localazy-identity.js +0 -29
  281. package/admin/src/tests/fixtures/all-models.js +0 -877
  282. package/admin/src/tests/fixtures/restaurant-model.js +0 -230
  283. package/admin/src/translations/en.json +0 -4
  284. package/admin/src/translations/fr.json +0 -1
  285. package/admin/src/utils/createAxiosInstance.js +0 -54
  286. package/admin/src/utils/getTrad.js +0 -5
  287. package/jest.config.js +0 -0
  288. package/server/bootstrap.js +0 -63
  289. package/server/config/development/index.js +0 -16
  290. package/server/config/example/index.js +0 -16
  291. package/server/config/index.js +0 -20
  292. package/server/config/local/index.js +0 -16
  293. package/server/config/production/index.js +0 -17
  294. package/server/config/schema.graphql.js +0 -21
  295. package/server/constants/channels.js +0 -3
  296. package/server/constants/events.js +0 -6
  297. package/server/content-types/index.js +0 -3
  298. package/server/controllers/index.js +0 -17
  299. package/server/controllers/localazy-auth-controller.js +0 -22
  300. package/server/controllers/localazy-project-controller.js +0 -21
  301. package/server/controllers/localazy-transfer-controller.js +0 -62
  302. package/server/controllers/localazy-user-controller.js +0 -24
  303. package/server/controllers/plugin-settings-controller.js +0 -31
  304. package/server/controllers/strapi-controller.js +0 -27
  305. package/server/db/model/content-transfer-setup.js +0 -13
  306. package/server/db/model/localazy-user.js +0 -23
  307. package/server/db/model/plugin-settings.js +0 -13
  308. package/server/db/model/utils/get-strapi-store.js +0 -9
  309. package/server/destroy.js +0 -5
  310. package/server/functions/should-set-downloaded-property.js +0 -94
  311. package/server/index.js +0 -25
  312. package/server/lifecycles/deep-populate-hook.js +0 -12
  313. package/server/lifecycles/deprecate-event-entry-in-localazy-hook.js +0 -73
  314. package/server/lifecycles/upload-event-entry-to-localazy-hook.js +0 -36
  315. package/server/middlewares/index.js +0 -7
  316. package/server/middlewares/verify-webhook.js +0 -76
  317. package/server/models/supported-content-type-fields.js +0 -9
  318. package/server/models/supported-custom-field-plugins.js +0 -6
  319. package/server/policies/index.js +0 -3
  320. package/server/register.js +0 -5
  321. package/server/routes/index.js +0 -28
  322. package/server/routes/localazy-auth.js +0 -22
  323. package/server/routes/localazy-project.js +0 -14
  324. package/server/routes/localazy-public-transfer.js +0 -20
  325. package/server/routes/localazy-transfer.js +0 -22
  326. package/server/routes/localazy-user.js +0 -30
  327. package/server/routes/plugin-settings.js +0 -38
  328. package/server/routes/strapi.js +0 -38
  329. package/server/services/helpers/job-notification-service.js +0 -30
  330. package/server/services/helpers/plugin-settings-service-helper.js +0 -52
  331. package/server/services/index.js +0 -23
  332. package/server/services/localazy-pubapi-service.js +0 -53
  333. package/server/services/localazy-transfer-download-service.js +0 -445
  334. package/server/services/localazy-transfer-upload-service.js +0 -178
  335. package/server/services/localazy-upload-service.js +0 -52
  336. package/server/services/localazy-user-service.js +0 -29
  337. package/server/services/plugin-settings-service.js +0 -53
  338. package/server/services/strapi-i18n-service.js +0 -151
  339. package/server/services/strapi-localazy-i18n-service.js +0 -130
  340. package/server/services/strapi-service.js +0 -26
  341. package/server/tests/fixtures/all-models.js +0 -869
  342. package/server/tests/fixtures/parsed-localazy-entry-to-create-entry-cookbook.js +0 -5761
  343. package/server/tests/fixtures/parsed-localazy-entry-to-create-entry-lesson-dz.js +0 -402
  344. package/server/tests/fixtures/parsed-localazy-entry-to-create-entry-page-dz.js +0 -658
  345. package/server/tests/fixtures/parsed-localazy-entry-to-create-entry-restaurant-simple-menu.js +0 -536
  346. package/server/tests/fixtures/parsed-localazy-entry-to-update-entry.js +0 -35157
  347. package/server/tests/fixtures/populate-create-update-entry-with-base-entry-cookbook-empty-recipes.js +0 -202
  348. package/server/tests/fixtures/populate-create-update-entry-with-base-entry-cookbook.js +0 -2700
  349. package/server/tests/fixtures/populate-create-update-entry-with-base-entry-lesson-dz.js +0 -309
  350. package/server/tests/fixtures/populate-create-update-entry-with-base-entry-restaurant-simple-flat-simple.js +0 -47
  351. package/server/tests/fixtures/populate-create-update-entry-with-base-entry-restaurant-simple-flat-with-media.js +0 -169
  352. package/server/tests/fixtures/populate-create-update-entry-with-base-entry-restaurant-simple-menu-empty.js +0 -3003
  353. package/server/tests/fixtures/populate-create-update-entry-with-base-entry-restaurant-simple-menu-with-media.js +0 -2057
  354. package/server/tests/fixtures/populate-create-update-entry-with-base-entry-sample-json-dz.js +0 -884
  355. package/server/tests/fixtures/populate-create-update-entry-with-base-entry-sample-json.js +0 -46
  356. package/server/tests/fixtures/strapi-plugin-all-models.js +0 -7000
  357. package/server/utils/__tests__/build-populate.test.js +0 -85
  358. package/server/utils/__tests__/flatten-object.test.js +0 -171
  359. package/server/utils/__tests__/get-models-tree.test.js +0 -170
  360. package/server/utils/__tests__/iso-locales-utils.test.js +0 -104
  361. package/server/utils/__tests__/parsed-localazy-entry-to-create-entry.test.js +0 -258
  362. package/server/utils/__tests__/parsed-localazy-entry-to-update-entry.test.js +0 -456
  363. package/server/utils/__tests__/pick-entries.test.js +0 -963
  364. package/server/utils/__tests__/populate-create-update-entry-with-base-entry.test.js +0 -1176
  365. package/server/utils/build-populate.js +0 -48
  366. package/server/utils/delay.js +0 -6
  367. package/server/utils/flatten-object.js +0 -61
  368. package/server/utils/generate-random-id.js +0 -3
  369. package/server/utils/get-full-populate-object.js +0 -66
  370. package/server/utils/get-main-keys-of-nested-array-objects.js +0 -5
  371. package/server/utils/get-models-tree.js +0 -47
  372. package/server/utils/get-picked-flatten-keys-for-hook-entry.js +0 -270
  373. package/server/utils/intl-display-name.js +0 -4
  374. package/server/utils/is-generally-applicable-content-type.js +0 -33
  375. package/server/utils/is-localazy-applicable-content-type.js +0 -36
  376. package/server/utils/iso-locales-utils.js +0 -60
  377. package/server/utils/localazy-api-client-factory.js +0 -22
  378. package/server/utils/localazy-generic-connector-client-factory.js +0 -15
  379. package/server/utils/model-utils.js +0 -43
  380. package/server/utils/objectivise-entry.js +0 -41
  381. package/server/utils/omit-deep.js +0 -24
  382. package/server/utils/parsed-localazy-entry-to-create-entry.js +0 -194
  383. package/server/utils/parsed-localazy-entry-to-update-entry.js +0 -83
  384. package/server/utils/pick-deep.js +0 -22
  385. package/server/utils/pick-entries.js +0 -37
  386. package/server/utils/populate-create-update-entry-with-base-entry.js +0 -264
  387. package/server/utils/request-initiator-helper.js +0 -36
  388. package/server/utils/reset-array-keys-deep.js +0 -19
  389. package/server/utils/transfer-setup-utils.js +0 -93
  390. package/strapi-admin.js +0 -14
  391. package/strapi-server.js +0 -5
  392. package/test/helpers/mocks.js +0 -9
@@ -0,0 +1,1550 @@
1
+ import { jsxs, jsx, Fragment as Fragment$1 } from "react/jsx-runtime";
2
+ import { createElement, isValidElement, cloneElement, Children, Fragment, useContext, forwardRef, useState, useEffect } from "react";
3
+ import { i as isEqual } from "./isEqual-CEyT97-3.mjs";
4
+ import { g as getDefaultExportFromCjs, x as warnOnce, y as getI18n, z as getDefaults, C as isString, E as warn, H as isObject, I as I18nContext, s as set, J as CheckboxImpl, K as keys, N as isArrayLike, O as arrayEach, Q as isArray, R as isObject$1, d as Box, U as Accordion, c as Flex, V as SwitchImpl, u as useTranslation, T as Typography, B as Button, p as ForwardRef$4z, A as Alert, D as Divider, P as PluginSettingsService, n as cloneDeep } from "./set-DulHAQhq.mjs";
5
+ import { Layouts } from "@strapi/strapi/admin";
6
+ import { S as SUPPORTED_CONTENT_TYPE_FIELDS, a as SUPPORTED_CUSTOM_FIELD_PLUGINS, g as getContentTransferSetupKeysSets, b as get, f as findModelValueByKey, c as StrapiModelService, d as getModelsTree, h as hasModelChanged } from "./has-model-changed-Dvtzpc9v.mjs";
7
+ import styled from "styled-components";
8
+ var voidElements = {
9
+ "area": true,
10
+ "base": true,
11
+ "br": true,
12
+ "col": true,
13
+ "embed": true,
14
+ "hr": true,
15
+ "img": true,
16
+ "input": true,
17
+ "link": true,
18
+ "meta": true,
19
+ "param": true,
20
+ "source": true,
21
+ "track": true,
22
+ "wbr": true
23
+ };
24
+ const e = /* @__PURE__ */ getDefaultExportFromCjs(voidElements);
25
+ var t = /\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;
26
+ function n(n2) {
27
+ var r2 = { type: "tag", name: "", voidElement: false, attrs: {}, children: [] }, i2 = n2.match(/<\/?([^\s]+?)[/\s>]/);
28
+ if (i2 && (r2.name = i2[1], (e[i2[1]] || "/" === n2.charAt(n2.length - 2)) && (r2.voidElement = true), r2.name.startsWith("!--"))) {
29
+ var s2 = n2.indexOf("-->");
30
+ return { type: "comment", comment: -1 !== s2 ? n2.slice(4, s2) : "" };
31
+ }
32
+ for (var a2 = new RegExp(t), c2 = null; null !== (c2 = a2.exec(n2)); ) if (c2[0].trim()) if (c2[1]) {
33
+ var o = c2[1].trim(), l = [o, ""];
34
+ o.indexOf("=") > -1 && (l = o.split("=")), r2.attrs[l[0]] = l[1], a2.lastIndex--;
35
+ } else c2[2] && (r2.attrs[c2[2]] = c2[3].trim().substring(1, c2[3].length - 1));
36
+ return r2;
37
+ }
38
+ var r = /<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g, i = /^\s*$/, s = /* @__PURE__ */ Object.create(null);
39
+ function a(e2, t2) {
40
+ switch (t2.type) {
41
+ case "text":
42
+ return e2 + t2.content;
43
+ case "tag":
44
+ return e2 += "<" + t2.name + (t2.attrs ? function(e3) {
45
+ var t3 = [];
46
+ for (var n2 in e3) t3.push(n2 + '="' + e3[n2] + '"');
47
+ return t3.length ? " " + t3.join(" ") : "";
48
+ }(t2.attrs) : "") + (t2.voidElement ? "/>" : ">"), t2.voidElement ? e2 : e2 + t2.children.reduce(a, "") + "</" + t2.name + ">";
49
+ case "comment":
50
+ return e2 + "<!--" + t2.comment + "-->";
51
+ }
52
+ }
53
+ var c = { parse: function(e2, t2) {
54
+ t2 || (t2 = {}), t2.components || (t2.components = s);
55
+ var a2, c2 = [], o = [], l = -1, m = false;
56
+ if (0 !== e2.indexOf("<")) {
57
+ var u = e2.indexOf("<");
58
+ c2.push({ type: "text", content: -1 === u ? e2 : e2.substring(0, u) });
59
+ }
60
+ return e2.replace(r, function(r2, s2) {
61
+ if (m) {
62
+ if (r2 !== "</" + a2.name + ">") return;
63
+ m = false;
64
+ }
65
+ var u2, f = "/" !== r2.charAt(1), h = r2.startsWith("<!--"), p = s2 + r2.length, d = e2.charAt(p);
66
+ if (h) {
67
+ var v = n(r2);
68
+ return l < 0 ? (c2.push(v), c2) : ((u2 = o[l]).children.push(v), c2);
69
+ }
70
+ if (f && (l++, "tag" === (a2 = n(r2)).type && t2.components[a2.name] && (a2.type = "component", m = true), a2.voidElement || m || !d || "<" === d || a2.children.push({ type: "text", content: e2.slice(p, e2.indexOf("<", p)) }), 0 === l && c2.push(a2), (u2 = o[l - 1]) && u2.children.push(a2), o[l] = a2), (!f || a2.voidElement) && (l > -1 && (a2.voidElement || a2.name === r2.slice(2, -1)) && (l--, a2 = -1 === l ? c2 : o[l]), !m && "<" !== d && d)) {
71
+ u2 = -1 === l ? c2 : o[l].children;
72
+ var x = e2.indexOf("<", p), g = e2.slice(p, -1 === x ? void 0 : x);
73
+ i.test(g) && (g = " "), (x > -1 && l + u2.length >= 0 || " " !== g) && u2.push({ type: "text", content: g });
74
+ }
75
+ }), c2;
76
+ }, stringify: function(e2) {
77
+ return e2.reduce(function(e3, t2) {
78
+ return e3 + a("", t2);
79
+ }, "");
80
+ } };
81
+ const hasChildren = (node, checkLength) => {
82
+ if (!node) return false;
83
+ const base = node.props?.children ?? node.children;
84
+ if (checkLength) return base.length > 0;
85
+ return !!base;
86
+ };
87
+ const getChildren = (node) => {
88
+ if (!node) return [];
89
+ const children = node.props?.children ?? node.children;
90
+ return node.props?.i18nIsDynamicList ? getAsArray(children) : children;
91
+ };
92
+ const hasValidReactChildren = (children) => Array.isArray(children) && children.every(isValidElement);
93
+ const getAsArray = (data) => Array.isArray(data) ? data : [data];
94
+ const mergeProps = (source, target) => {
95
+ const newTarget = {
96
+ ...target
97
+ };
98
+ newTarget.props = Object.assign(source.props, target.props);
99
+ return newTarget;
100
+ };
101
+ const nodesToString = (children, i18nOptions, i18n, i18nKey) => {
102
+ if (!children) return "";
103
+ let stringNode = "";
104
+ const childrenArray = getAsArray(children);
105
+ const keepArray = i18nOptions?.transSupportBasicHtmlNodes ? i18nOptions.transKeepBasicHtmlNodesFor ?? [] : [];
106
+ childrenArray.forEach((child, childIndex) => {
107
+ if (isString(child)) {
108
+ stringNode += `${child}`;
109
+ return;
110
+ }
111
+ if (isValidElement(child)) {
112
+ const {
113
+ props,
114
+ type
115
+ } = child;
116
+ const childPropsCount = Object.keys(props).length;
117
+ const shouldKeepChild = keepArray.indexOf(type) > -1;
118
+ const childChildren = props.children;
119
+ if (!childChildren && shouldKeepChild && !childPropsCount) {
120
+ stringNode += `<${type}/>`;
121
+ return;
122
+ }
123
+ if (!childChildren && (!shouldKeepChild || childPropsCount) || props.i18nIsDynamicList) {
124
+ stringNode += `<${childIndex}></${childIndex}>`;
125
+ return;
126
+ }
127
+ if (shouldKeepChild && childPropsCount === 1 && isString(childChildren)) {
128
+ stringNode += `<${type}>${childChildren}</${type}>`;
129
+ return;
130
+ }
131
+ const content = nodesToString(childChildren, i18nOptions, i18n, i18nKey);
132
+ stringNode += `<${childIndex}>${content}</${childIndex}>`;
133
+ return;
134
+ }
135
+ if (child === null) {
136
+ warn(i18n, "TRANS_NULL_VALUE", `Passed in a null value as child`, {
137
+ i18nKey
138
+ });
139
+ return;
140
+ }
141
+ if (isObject(child)) {
142
+ const {
143
+ format,
144
+ ...clone
145
+ } = child;
146
+ const keys2 = Object.keys(clone);
147
+ if (keys2.length === 1) {
148
+ const value = format ? `${keys2[0]}, ${format}` : keys2[0];
149
+ stringNode += `{{${value}}}`;
150
+ return;
151
+ }
152
+ warn(i18n, "TRANS_INVALID_OBJ", `Invalid child - Object should only have keys {{ value, format }} (format is optional).`, {
153
+ i18nKey,
154
+ child
155
+ });
156
+ return;
157
+ }
158
+ warn(i18n, "TRANS_INVALID_VAR", `Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.`, {
159
+ i18nKey,
160
+ child
161
+ });
162
+ });
163
+ return stringNode;
164
+ };
165
+ const renderNodes = (children, targetString, i18n, i18nOptions, combinedTOpts, shouldUnescape) => {
166
+ if (targetString === "") return [];
167
+ const keepArray = i18nOptions.transKeepBasicHtmlNodesFor || [];
168
+ const emptyChildrenButNeedsHandling = targetString && new RegExp(keepArray.map((keep) => `<${keep}`).join("|")).test(targetString);
169
+ if (!children && !emptyChildrenButNeedsHandling && !shouldUnescape) return [targetString];
170
+ const data = {};
171
+ const getData = (childs) => {
172
+ const childrenArray = getAsArray(childs);
173
+ childrenArray.forEach((child) => {
174
+ if (isString(child)) return;
175
+ if (hasChildren(child)) getData(getChildren(child));
176
+ else if (isObject(child) && !isValidElement(child)) Object.assign(data, child);
177
+ });
178
+ };
179
+ getData(children);
180
+ const ast = c.parse(`<0>${targetString}</0>`);
181
+ const opts = {
182
+ ...data,
183
+ ...combinedTOpts
184
+ };
185
+ const renderInner = (child, node, rootReactNode) => {
186
+ const childs = getChildren(child);
187
+ const mappedChildren = mapAST(childs, node.children, rootReactNode);
188
+ return hasValidReactChildren(childs) && mappedChildren.length === 0 || child.props?.i18nIsDynamicList ? childs : mappedChildren;
189
+ };
190
+ const pushTranslatedJSX = (child, inner, mem, i2, isVoid) => {
191
+ if (child.dummy) {
192
+ child.children = inner;
193
+ mem.push(cloneElement(child, {
194
+ key: i2
195
+ }, isVoid ? void 0 : inner));
196
+ } else {
197
+ mem.push(...Children.map([child], (c2) => {
198
+ const props = {
199
+ ...c2.props
200
+ };
201
+ delete props.i18nIsDynamicList;
202
+ return createElement(c2.type, {
203
+ ...props,
204
+ key: i2,
205
+ ref: c2.ref
206
+ }, isVoid ? null : inner);
207
+ }));
208
+ }
209
+ };
210
+ const mapAST = (reactNode, astNode, rootReactNode) => {
211
+ const reactNodes = getAsArray(reactNode);
212
+ const astNodes = getAsArray(astNode);
213
+ return astNodes.reduce((mem, node, i2) => {
214
+ const translationContent = node.children?.[0]?.content && i18n.services.interpolator.interpolate(node.children[0].content, opts, i18n.language);
215
+ if (node.type === "tag") {
216
+ let tmp = reactNodes[parseInt(node.name, 10)];
217
+ if (rootReactNode.length === 1 && !tmp) tmp = rootReactNode[0][node.name];
218
+ if (!tmp) tmp = {};
219
+ const child = Object.keys(node.attrs).length !== 0 ? mergeProps({
220
+ props: node.attrs
221
+ }, tmp) : tmp;
222
+ const isElement = isValidElement(child);
223
+ const isValidTranslationWithChildren = isElement && hasChildren(node, true) && !node.voidElement;
224
+ const isEmptyTransWithHTML = emptyChildrenButNeedsHandling && isObject(child) && child.dummy && !isElement;
225
+ const isKnownComponent = isObject(children) && Object.hasOwnProperty.call(children, node.name);
226
+ if (isString(child)) {
227
+ const value = i18n.services.interpolator.interpolate(child, opts, i18n.language);
228
+ mem.push(value);
229
+ } else if (hasChildren(child) || isValidTranslationWithChildren) {
230
+ const inner = renderInner(child, node, rootReactNode);
231
+ pushTranslatedJSX(child, inner, mem, i2);
232
+ } else if (isEmptyTransWithHTML) {
233
+ const inner = mapAST(reactNodes, node.children, rootReactNode);
234
+ pushTranslatedJSX(child, inner, mem, i2);
235
+ } else if (Number.isNaN(parseFloat(node.name))) {
236
+ if (isKnownComponent) {
237
+ const inner = renderInner(child, node, rootReactNode);
238
+ pushTranslatedJSX(child, inner, mem, i2, node.voidElement);
239
+ } else if (i18nOptions.transSupportBasicHtmlNodes && keepArray.indexOf(node.name) > -1) {
240
+ if (node.voidElement) {
241
+ mem.push(createElement(node.name, {
242
+ key: `${node.name}-${i2}`
243
+ }));
244
+ } else {
245
+ const inner = mapAST(reactNodes, node.children, rootReactNode);
246
+ mem.push(createElement(node.name, {
247
+ key: `${node.name}-${i2}`
248
+ }, inner));
249
+ }
250
+ } else if (node.voidElement) {
251
+ mem.push(`<${node.name} />`);
252
+ } else {
253
+ const inner = mapAST(reactNodes, node.children, rootReactNode);
254
+ mem.push(`<${node.name}>${inner}</${node.name}>`);
255
+ }
256
+ } else if (isObject(child) && !isElement) {
257
+ const content = node.children[0] ? translationContent : null;
258
+ if (content) mem.push(content);
259
+ } else {
260
+ pushTranslatedJSX(child, translationContent, mem, i2, node.children.length !== 1 || !translationContent);
261
+ }
262
+ } else if (node.type === "text") {
263
+ const wrapTextNodes = i18nOptions.transWrapTextNodes;
264
+ const content = shouldUnescape ? i18nOptions.unescape(i18n.services.interpolator.interpolate(node.content, opts, i18n.language)) : i18n.services.interpolator.interpolate(node.content, opts, i18n.language);
265
+ if (wrapTextNodes) {
266
+ mem.push(createElement(wrapTextNodes, {
267
+ key: `${node.name}-${i2}`
268
+ }, content));
269
+ } else {
270
+ mem.push(content);
271
+ }
272
+ }
273
+ return mem;
274
+ }, []);
275
+ };
276
+ const result = mapAST([{
277
+ dummy: true,
278
+ children: children || []
279
+ }], ast, getAsArray(children || []));
280
+ return getChildren(result[0]);
281
+ };
282
+ const fixComponentProps = (component, index, translation) => {
283
+ const componentKey = component.key || index;
284
+ const comp = cloneElement(component, {
285
+ key: componentKey
286
+ });
287
+ if (!comp.props || !comp.props.children || translation.indexOf(`${index}/>`) < 0 && translation.indexOf(`${index} />`) < 0) {
288
+ return comp;
289
+ }
290
+ function Componentized() {
291
+ return createElement(Fragment, null, comp);
292
+ }
293
+ return createElement(Componentized);
294
+ };
295
+ const generateArrayComponents = (components, translation) => components.map((c2, index) => fixComponentProps(c2, index, translation));
296
+ const generateObjectComponents = (components, translation) => {
297
+ const componentMap = {};
298
+ Object.keys(components).forEach((c2) => {
299
+ Object.assign(componentMap, {
300
+ [c2]: fixComponentProps(components[c2], c2, translation)
301
+ });
302
+ });
303
+ return componentMap;
304
+ };
305
+ const generateComponents = (components, translation, i18n, i18nKey) => {
306
+ if (!components) return null;
307
+ if (Array.isArray(components)) {
308
+ return generateArrayComponents(components, translation);
309
+ }
310
+ if (isObject(components)) {
311
+ return generateObjectComponents(components, translation);
312
+ }
313
+ warnOnce(i18n, "TRANS_INVALID_COMPONENTS", `<Trans /> "components" prop expects an object or array`, {
314
+ i18nKey
315
+ });
316
+ return null;
317
+ };
318
+ function Trans$1({
319
+ children,
320
+ count,
321
+ parent,
322
+ i18nKey,
323
+ context,
324
+ tOptions = {},
325
+ values,
326
+ defaults,
327
+ components,
328
+ ns,
329
+ i18n: i18nFromProps,
330
+ t: tFromProps,
331
+ shouldUnescape,
332
+ ...additionalProps
333
+ }) {
334
+ const i18n = i18nFromProps || getI18n();
335
+ if (!i18n) {
336
+ warnOnce(i18n, "NO_I18NEXT_INSTANCE", `Trans: You need to pass in an i18next instance using i18nextReactModule`, {
337
+ i18nKey
338
+ });
339
+ return children;
340
+ }
341
+ const t2 = tFromProps || i18n.t.bind(i18n) || ((k) => k);
342
+ const reactI18nextOptions = {
343
+ ...getDefaults(),
344
+ ...i18n.options?.react
345
+ };
346
+ let namespaces = ns || t2.ns || i18n.options?.defaultNS;
347
+ namespaces = isString(namespaces) ? [namespaces] : namespaces || ["translation"];
348
+ const nodeAsString = nodesToString(children, reactI18nextOptions, i18n, i18nKey);
349
+ const defaultValue = defaults || nodeAsString || reactI18nextOptions.transEmptyNodeValue || i18nKey;
350
+ const {
351
+ hashTransKey
352
+ } = reactI18nextOptions;
353
+ const key = i18nKey || (hashTransKey ? hashTransKey(nodeAsString || defaultValue) : nodeAsString || defaultValue);
354
+ if (i18n.options?.interpolation?.defaultVariables) {
355
+ values = values && Object.keys(values).length > 0 ? {
356
+ ...values,
357
+ ...i18n.options.interpolation.defaultVariables
358
+ } : {
359
+ ...i18n.options.interpolation.defaultVariables
360
+ };
361
+ }
362
+ const interpolationOverride = values || count !== void 0 && !i18n.options?.interpolation?.alwaysFormat || !children ? tOptions.interpolation : {
363
+ interpolation: {
364
+ ...tOptions.interpolation,
365
+ prefix: "#$?",
366
+ suffix: "?$#"
367
+ }
368
+ };
369
+ const combinedTOpts = {
370
+ ...tOptions,
371
+ context: context || tOptions.context,
372
+ count,
373
+ ...values,
374
+ ...interpolationOverride,
375
+ defaultValue,
376
+ ns: namespaces
377
+ };
378
+ const translation = key ? t2(key, combinedTOpts) : defaultValue;
379
+ const generatedComponents = generateComponents(components, translation, i18n, i18nKey);
380
+ const content = renderNodes(generatedComponents || children, translation, i18n, reactI18nextOptions, combinedTOpts, shouldUnescape);
381
+ const useAsParent = parent ?? reactI18nextOptions.defaultTransParent;
382
+ return useAsParent ? createElement(useAsParent, additionalProps, content) : content;
383
+ }
384
+ function Trans({
385
+ children,
386
+ count,
387
+ parent,
388
+ i18nKey,
389
+ context,
390
+ tOptions = {},
391
+ values,
392
+ defaults,
393
+ components,
394
+ ns,
395
+ i18n: i18nFromProps,
396
+ t: tFromProps,
397
+ shouldUnescape,
398
+ ...additionalProps
399
+ }) {
400
+ const {
401
+ i18n: i18nFromContext,
402
+ defaultNS: defaultNSFromContext
403
+ } = useContext(I18nContext) || {};
404
+ const i18n = i18nFromProps || i18nFromContext || getI18n();
405
+ const t2 = tFromProps || i18n?.t.bind(i18n);
406
+ return Trans$1({
407
+ children,
408
+ count,
409
+ parent,
410
+ i18nKey,
411
+ context,
412
+ tOptions,
413
+ values,
414
+ defaults,
415
+ components,
416
+ ns: ns || t2?.ns || defaultNSFromContext || i18n?.options?.defaultNS,
417
+ i18n,
418
+ t: tFromProps,
419
+ shouldUnescape,
420
+ ...additionalProps
421
+ });
422
+ }
423
+ const getFilteredModelsSchemas = (models) => {
424
+ if (!models) {
425
+ return [];
426
+ }
427
+ return models.map((model) => {
428
+ const attributesKeys = Object.keys(model.__schema__.attributes);
429
+ const attributes = attributesKeys.map((attributeKey) => {
430
+ const type = model.__schema__.attributes[attributeKey].type;
431
+ const customField = model.__schema__.attributes[attributeKey].customField;
432
+ if (!(SUPPORTED_CONTENT_TYPE_FIELDS.includes(type.toLowerCase()) || type.toLowerCase() === "customfield" && SUPPORTED_CUSTOM_FIELD_PLUGINS.includes(customField))) {
433
+ return null;
434
+ }
435
+ return attributeKey;
436
+ });
437
+ return {
438
+ modelUid: model.uid,
439
+ collectionName: model.collectionName,
440
+ displayName: model.info.displayName,
441
+ attributes: attributes.filter((attribute) => !!attribute)
442
+ };
443
+ });
444
+ };
445
+ const buildContentTransferSetupSchema = (localizableTree = [], storedSetupSchema = [], allModelsTree = []) => {
446
+ const { oLocalizableTree, oStoredSetupSchema, newKeys, filteredStoredSetupSchemaKeys } = getContentTransferSetupKeysSets(localizableTree, storedSetupSchema);
447
+ const destinationObject = {};
448
+ filteredStoredSetupSchemaKeys.forEach((key) => {
449
+ const localizableTreeValueToSet = get(oStoredSetupSchema, key);
450
+ const allModelsTreeValueToSet = findModelValueByKey(allModelsTree, key);
451
+ if (allModelsTreeValueToSet === null) {
452
+ set(destinationObject, key, null);
453
+ } else if (localizableTreeValueToSet !== null) {
454
+ set(destinationObject, key, localizableTreeValueToSet);
455
+ } else {
456
+ const newValueToSet = findModelValueByKey(allModelsTree, key);
457
+ set(destinationObject, key, newValueToSet);
458
+ }
459
+ });
460
+ newKeys.forEach((key) => {
461
+ set(destinationObject, key, get(oLocalizableTree, key));
462
+ });
463
+ const destinationArray = [];
464
+ const sortedDestinationObjectKeys = Object.keys(destinationObject).sort((a2, b) => {
465
+ if (a2 < b) return -1;
466
+ if (a2 > b) return 1;
467
+ return 0;
468
+ });
469
+ for (const key of sortedDestinationObjectKeys) {
470
+ destinationArray.push(destinationObject[key]);
471
+ }
472
+ return destinationArray;
473
+ };
474
+ const SvgBlocksField = (props, ref) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [
475
+ /* @__PURE__ */ jsx("rect", { width: 31, height: 23, x: 0.5, y: 4.5, fill: "#EAF5FF", stroke: "#B8E1FF", rx: 2.5 }),
476
+ /* @__PURE__ */ jsx(
477
+ "path",
478
+ {
479
+ fill: "#0C75AF",
480
+ d: "M14.75 11.75a1 1 0 1 1-2 0 1 1 0 0 1 2 0m3.5 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2M13.75 15a1 1 0 1 0 0 2 1 1 0 0 0 0-2m4.5 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2m-4.5 4.25a1 1 0 1 0 0 2 1 1 0 0 0 0-2m4.5 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2"
481
+ }
482
+ )
483
+ ] });
484
+ forwardRef(SvgBlocksField);
485
+ const SvgBooleanField = (props, ref) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [
486
+ /* @__PURE__ */ jsx("rect", { width: 31, height: 23, x: 0.5, y: 4.5, fill: "#EAFBE7", stroke: "#C6F0C2", rx: 2.5 }),
487
+ /* @__PURE__ */ jsx(
488
+ "path",
489
+ {
490
+ fill: "#328048",
491
+ d: "M19 11.5h-6a4.5 4.5 0 1 0 0 9h6a4.5 4.5 0 1 0 0-9m0 7a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5"
492
+ }
493
+ )
494
+ ] });
495
+ forwardRef(SvgBooleanField);
496
+ const SvgCodeSquare = (props, ref) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [
497
+ /* @__PURE__ */ jsx("path", { fill: "#D9822F", d: "M0 4a4 4 0 0 1 4-4h24a4 4 0 0 1 4 4v24a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4z" }),
498
+ /* @__PURE__ */ jsx(
499
+ "path",
500
+ {
501
+ fill: "#fff",
502
+ fillRule: "evenodd",
503
+ d: "M17.143 18.659v2.912l6.856-3.878v-2.815L17.143 11v2.906l4.16 2.38zm-2.287 0-4.16-2.374 4.16-2.38V11L8 14.877v2.816l6.856 3.878z",
504
+ clipRule: "evenodd"
505
+ }
506
+ )
507
+ ] });
508
+ forwardRef(SvgCodeSquare);
509
+ const SvgCollectionType = (props, ref) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [
510
+ /* @__PURE__ */ jsx("rect", { width: 31, height: 23, x: 0.5, y: 4.5, fill: "#4945FF", stroke: "#4945FF", rx: 2.5 }),
511
+ /* @__PURE__ */ jsx(
512
+ "path",
513
+ {
514
+ fill: "#fff",
515
+ d: "M14.328 14.54v-.083c-.04-.937-.75-1.559-1.787-1.559-1.535 0-2.725 1.57-2.725 3.65 0 1.302.71 2.104 1.846 2.104.961 0 1.787-.545 2.063-1.37h1.752c-.37 1.78-1.922 2.935-3.967 2.935-2.121 0-3.504-1.395-3.504-3.545 0-3.123 1.951-5.344 4.646-5.344 1.94 0 3.41 1.283 3.41 2.96 0 .087 0 .163-.011.251zM20.053 20H18.27l1.489-6.943h-2.532l.311-1.512h6.844l-.31 1.512H21.54z"
516
+ }
517
+ )
518
+ ] });
519
+ forwardRef(SvgCollectionType);
520
+ const SvgComponentField = (props, ref) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [
521
+ /* @__PURE__ */ jsx("rect", { width: 31, height: 23, x: 0.5, y: 4.5, fill: "#F6F6F9", stroke: "#DCDCE4", rx: 2.5 }),
522
+ /* @__PURE__ */ jsx(
523
+ "path",
524
+ {
525
+ fill: "#666687",
526
+ d: "M20.5 17.5c-.358 0-.71.085-1.029.25l-1.337-1.04q.11-.326.116-.67l.647-.214a2.25 2.25 0 1 0-.637-1.37l-.486.162A2.25 2.25 0 0 0 16 13.75c-.062 0-.117 0-.176.008l-.278-.625A2.25 2.25 0 1 0 14 13.75c.063 0 .117 0 .176-.008l.278.625a2.24 2.24 0 0 0-.537 2.482l-1.33 1.182a2.25 2.25 0 1 0 .996 1.12l1.33-1.182a2.25 2.25 0 0 0 2.3-.075l1.224.954A2.25 2.25 0 1 0 20.5 17.5m0-4a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-7.25-2a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0m-1.75 9.25a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5M15.25 16a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0m5.25 4.5a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5"
527
+ }
528
+ )
529
+ ] });
530
+ forwardRef(SvgComponentField);
531
+ const SvgDateField = (props, ref) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [
532
+ /* @__PURE__ */ jsx("rect", { width: 31, height: 23, x: 0.5, y: 4.5, fill: "#FDF4DC", stroke: "#FAE7B9", rx: 2.5 }),
533
+ /* @__PURE__ */ jsx(
534
+ "path",
535
+ {
536
+ fill: "#D9822F",
537
+ d: "M21 10h-1.5v-.5a.5.5 0 0 0-1 0v.5h-5v-.5a.5.5 0 0 0-1 0v.5H11a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V11a1 1 0 0 0-1-1m0 3H11v-2h1.5v.5a.5.5 0 0 0 1 0V11h5v.5a.5.5 0 0 0 1 0V11H21z"
538
+ }
539
+ )
540
+ ] });
541
+ forwardRef(SvgDateField);
542
+ const SvgDiscord = (props, ref) => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: /* @__PURE__ */ jsx(
543
+ "path",
544
+ {
545
+ fill: "#5865F2",
546
+ d: "M27.107 5.911a26.5 26.5 0 0 0-6.602-2.031 18 18 0 0 0-.845 1.72 24.6 24.6 0 0 0-7.327 0 18 18 0 0 0-.846-1.72A26.7 26.7 0 0 0 4.88 5.916C.702 12.098-.43 18.126.136 24.068a26.6 26.6 0 0 0 8.097 4.065 19.6 19.6 0 0 0 1.734-2.796c-.947-.354-1.86-.79-2.73-1.304.228-.166.452-.337.669-.504a19.02 19.02 0 0 0 16.188 0q.33.271.67.504c-.872.515-1.788.952-2.736 1.306a19.4 19.4 0 0 0 1.734 2.794 26.5 26.5 0 0 0 8.102-4.062c.665-6.892-1.135-12.864-4.757-18.16M10.684 20.414c-1.578 0-2.882-1.433-2.882-3.194 0-1.762 1.259-3.207 2.877-3.207 1.619 0 2.912 1.445 2.885 3.207s-1.271 3.194-2.88 3.194m10.632 0c-1.581 0-2.88-1.433-2.88-3.194 0-1.762 1.259-3.207 2.88-3.207s2.904 1.445 2.877 3.207-1.269 3.194-2.877 3.194"
547
+ }
548
+ ) });
549
+ forwardRef(SvgDiscord);
550
+ const SvgDiscourse = (props, ref) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [
551
+ /* @__PURE__ */ jsx(
552
+ "path",
553
+ {
554
+ fill: "#231F20",
555
+ d: "M15.659.302C7.158.302 0 7.194 0 15.698v15.943l15.656-.015c8.501 0 15.396-7.158 15.396-15.66 0-8.5-6.901-15.664-15.393-15.664"
556
+ }
557
+ ),
558
+ /* @__PURE__ */ jsx(
559
+ "path",
560
+ {
561
+ fill: "#FFF9AE",
562
+ d: "M15.81 6.261a9.546 9.546 0 0 0-8.39 14.09l-1.726 5.554 6.2-1.4A9.541 9.541 0 1 0 15.82 6.26z"
563
+ }
564
+ ),
565
+ /* @__PURE__ */ jsx(
566
+ "path",
567
+ {
568
+ fill: "#00AEEF",
569
+ d: "M23.381 9.999a9.54 9.54 0 0 1-11.487 14.49l-6.2 1.419 6.312-.746A9.54 9.54 0 0 0 23.381 10"
570
+ }
571
+ ),
572
+ /* @__PURE__ */ jsx(
573
+ "path",
574
+ {
575
+ fill: "#00A94F",
576
+ d: "M21.624 8.239a9.54 9.54 0 0 1-9.91 15.61l-6.02 2.059 6.2-1.404a9.54 9.54 0 0 0 9.73-16.265"
577
+ }
578
+ ),
579
+ /* @__PURE__ */ jsx("path", { fill: "#F15D22", d: "M7.991 20.562A9.542 9.542 0 0 1 23.387 9.994 9.543 9.543 0 0 0 7.42 20.35l-1.726 5.555z" }),
580
+ /* @__PURE__ */ jsx("path", { fill: "#E31B23", d: "M7.42 20.35A9.543 9.543 0 0 1 21.624 8.238 9.543 9.543 0 0 0 6.832 20.202l-1.135 5.706z" })
581
+ ] });
582
+ forwardRef(SvgDiscourse);
583
+ const SvgDynamicZoneField = (props, ref) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [
584
+ /* @__PURE__ */ jsx("rect", { width: 31, height: 23, x: 0.5, y: 4.5, fill: "#F6F6F9", stroke: "#DCDCE4", rx: 2.5 }),
585
+ /* @__PURE__ */ jsx(
586
+ "path",
587
+ {
588
+ fill: "#666687",
589
+ d: "M23.75 16a3.75 3.75 0 0 1-6.402 2.652l-.03-.033-3.742-4.225a2.25 2.25 0 1 0 0 3.212l.193-.218a.75.75 0 1 1 1.125.994l-.21.237-.03.033a3.75 3.75 0 1 1 0-5.304l.03.033 3.742 4.225a2.25 2.25 0 1 0 0-3.212l-.193.218a.751.751 0 1 1-1.125-.995l.21-.236.03-.033A3.75 3.75 0 0 1 23.75 16"
590
+ }
591
+ )
592
+ ] });
593
+ const ForwardRef$O = forwardRef(SvgDynamicZoneField);
594
+ const ForwardRef$P = ForwardRef$O;
595
+ const SvgEmailField = (props, ref) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [
596
+ /* @__PURE__ */ jsx("rect", { width: 31, height: 23, x: 0.5, y: 4.5, fill: "#FCECEA", stroke: "#F5C0B8", rx: 2.5 }),
597
+ /* @__PURE__ */ jsx(
598
+ "path",
599
+ {
600
+ fill: "#D02B20",
601
+ d: "M16 9.25a6.75 6.75 0 0 0 0 13.5c1.392 0 2.856-.42 3.915-1.125a.75.75 0 1 0-.83-1.25c-.813.54-1.994.875-3.085.875A5.25 5.25 0 1 1 21.25 16c0 .58-.104 1.067-.293 1.372-.165.265-.375.378-.707.378s-.542-.113-.707-.378c-.187-.305-.293-.791-.293-1.372v-2.5a.75.75 0 0 0-1.468-.216 3.25 3.25 0 1 0 .554 4.973c.433.637 1.09.993 1.914.993 1.542 0 2.5-1.245 2.5-3.25A6.76 6.76 0 0 0 16 9.25m0 8.5a1.75 1.75 0 1 1 0-3.5 1.75 1.75 0 0 1 0 3.5"
602
+ }
603
+ )
604
+ ] });
605
+ forwardRef(SvgEmailField);
606
+ const SvgEmptyData = (props, ref) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, fill: "none", viewBox: "0 0 217 121", ref, ...props, children: [
607
+ /* @__PURE__ */ jsxs("g", { clipPath: "url(#EmptyData_svg__a)", children: [
608
+ /* @__PURE__ */ jsx(
609
+ "path",
610
+ {
611
+ stroke: "#EEEEFA",
612
+ strokeDasharray: "3.93 4.91",
613
+ strokeLinecap: "round",
614
+ strokeWidth: 0.982,
615
+ d: "M1.158 99.652h215.018M1.158 80.015h215.018M1.158 59.397h215.018M1.158 38.779h215.018M1.158 20.124h215.018"
616
+ }
617
+ ),
618
+ /* @__PURE__ */ jsx(
619
+ "path",
620
+ {
621
+ fill: "#D9D8FF",
622
+ fillOpacity: 0.8,
623
+ fillRule: "evenodd",
624
+ d: "M182.63 25.086c4.112 0 7.446 3.279 7.446 7.323s-3.334 7.324-7.446 7.324h-42.545c4.112 0 7.445 3.279 7.445 7.323s-3.333 7.324-7.445 7.324h23.4c4.112 0 7.445 3.278 7.445 7.323 0 4.044-3.333 7.323-7.445 7.323h-10.821c-5.185 0-9.388 3.28-9.388 7.324q0 2.847 3.162 5.314c1.968 1.536 4.676 1.736 6.861 2.943 2.27 1.255 3.804 3.646 3.804 6.39 0 4.044-3.333 7.323-7.445 7.323H61.376c-4.112 0-7.446-3.279-7.446-7.323s3.334-7.324 7.446-7.324H19.894c-4.112 0-7.445-3.279-7.445-7.323s3.333-7.324 7.445-7.324H62.44c4.112 0 7.445-3.278 7.445-7.323s-3.334-7.324-7.446-7.324H35.85c-4.112 0-7.446-3.278-7.446-7.323 0-4.044 3.334-7.323 7.446-7.323h42.545c-4.112 0-7.445-3.28-7.445-7.324s3.333-7.323 7.445-7.323zm0 29.294c4.112 0 7.446 3.278 7.446 7.323 0 4.044-3.334 7.323-7.446 7.323s-7.445-3.278-7.445-7.323 3.333-7.324 7.445-7.324",
625
+ clipRule: "evenodd"
626
+ }
627
+ ),
628
+ /* @__PURE__ */ jsx(
629
+ "rect",
630
+ {
631
+ width: 27,
632
+ height: 79.036,
633
+ x: 109.403,
634
+ y: 33.133,
635
+ fill: "#fff",
636
+ stroke: "#7B79FF",
637
+ strokeWidth: 2.455,
638
+ rx: 4.173
639
+ }
640
+ ),
641
+ /* @__PURE__ */ jsx("rect", { width: 27, height: 102.6, x: 74.058, y: 9.57, fill: "#fff", stroke: "#7B79FF", strokeWidth: 2.455, rx: 4.173 }),
642
+ /* @__PURE__ */ jsx(
643
+ "rect",
644
+ {
645
+ width: 27,
646
+ height: 58.418,
647
+ x: 39.203,
648
+ y: 53.26,
649
+ fill: "#fff",
650
+ stroke: "#7B79FF",
651
+ strokeWidth: 2.455,
652
+ rx: 4.173
653
+ }
654
+ ),
655
+ /* @__PURE__ */ jsx(
656
+ "rect",
657
+ {
658
+ width: 27,
659
+ height: 55.473,
660
+ x: 144.748,
661
+ y: 56.697,
662
+ fill: "#fff",
663
+ stroke: "#7B79FF",
664
+ strokeWidth: 2.455,
665
+ rx: 4.173
666
+ }
667
+ ),
668
+ /* @__PURE__ */ jsx("rect", { width: 21.6, height: 53.018, x: 41.903, y: 55.961, fill: "#EEEEFA", rx: 1.964 }),
669
+ /* @__PURE__ */ jsx("rect", { width: 21.6, height: 73.636, x: 112.103, y: 35.833, fill: "#EEEEFA", rx: 1.964 })
670
+ ] }),
671
+ /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "EmptyData_svg__a", children: /* @__PURE__ */ jsx("path", { fill: "#fff", d: "M.667.797h216v120h-216z" }) }) })
672
+ ] });
673
+ forwardRef(SvgEmptyData);
674
+ const SvgEmptyDocuments = (props, ref) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, fill: "none", viewBox: "0 0 217 121", ref, ...props, children: [
675
+ /* @__PURE__ */ jsxs("g", { clipPath: "url(#EmptyDocuments_svg__a)", opacity: 0.84, children: [
676
+ /* @__PURE__ */ jsx(
677
+ "path",
678
+ {
679
+ fill: "#D9D8FF",
680
+ fillOpacity: 0.8,
681
+ fillRule: "evenodd",
682
+ d: "M189.917 20.442a7.583 7.583 0 0 1 0 15.167h-43.334a7.584 7.584 0 1 1 0 15.167h23.834a7.583 7.583 0 0 1 0 15.166h-11.022c-5.281 0-9.562 3.396-9.562 7.584q0 2.934 3.19 5.479c2.017 1.608 4.824 1.818 7.065 3.097a7.584 7.584 0 0 1-3.755 14.174H66.417a7.583 7.583 0 1 1 0-15.167h-42.25a7.583 7.583 0 0 1 0-15.167H67.5a7.583 7.583 0 0 0 0-15.166H40.417a7.583 7.583 0 0 1 0-15.167H83.75a7.583 7.583 0 0 1 0-15.167zm0 30.334a7.583 7.583 0 0 1 0 15.166 7.584 7.584 0 0 1 0-15.166",
683
+ clipRule: "evenodd"
684
+ }
685
+ ),
686
+ /* @__PURE__ */ jsx(
687
+ "path",
688
+ {
689
+ fill: "#fff",
690
+ fillRule: "evenodd",
691
+ d: "m133.228 20.443 10.077 73.496.905 7.373a4.33 4.33 0 0 1-3.773 4.829l-63.44 7.79a4.334 4.334 0 0 1-4.83-3.773l-9.766-79.547a2.167 2.167 0 0 1 1.886-2.414l.023-.003 5.263-.59zm-59.4 6.683 4.97-.557z",
692
+ clipRule: "evenodd"
693
+ }
694
+ ),
695
+ /* @__PURE__ */ jsx(
696
+ "path",
697
+ {
698
+ stroke: "#7B79FF",
699
+ strokeWidth: 2.5,
700
+ d: "m73.829 27.126 4.97-.557m54.429-6.126 10.077 73.496.905 7.373a4.33 4.33 0 0 1-3.773 4.829l-63.44 7.79a4.334 4.334 0 0 1-4.83-3.773l-9.766-79.547a2.167 2.167 0 0 1 1.886-2.414l.023-.003 5.263-.59z"
701
+ }
702
+ ),
703
+ /* @__PURE__ */ jsx(
704
+ "path",
705
+ {
706
+ fill: "#F0F0FF",
707
+ fillRule: "evenodd",
708
+ d: "m130.485 25.068 9.121 66.607.821 6.683c.264 2.152-1.246 4.109-3.373 4.37l-56.812 6.976c-2.128.261-4.066-1.272-4.33-3.425l-8.83-71.908a2.166 2.166 0 0 1 1.887-2.414l7.028-.863",
709
+ clipRule: "evenodd"
710
+ }
711
+ ),
712
+ /* @__PURE__ */ jsx(
713
+ "path",
714
+ {
715
+ fill: "#fff",
716
+ fillRule: "evenodd",
717
+ stroke: "#7B79FF",
718
+ strokeWidth: 2.5,
719
+ d: "M135.998 6.63H86.645a2.97 2.97 0 0 0-2.107.872 2.97 2.97 0 0 0-.873 2.107v82.333c0 .823.334 1.568.873 2.107a2.97 2.97 0 0 0 2.106.872h63.917a2.97 2.97 0 0 0 2.107-.872 2.97 2.97 0 0 0 .872-2.107V24.164a2.98 2.98 0 0 0-.873-2.108L138.104 7.502a2.98 2.98 0 0 0-2.106-.872Z",
720
+ clipRule: "evenodd"
721
+ }
722
+ ),
723
+ /* @__PURE__ */ jsx(
724
+ "path",
725
+ {
726
+ stroke: "#7B79FF",
727
+ strokeLinecap: "round",
728
+ strokeLinejoin: "round",
729
+ strokeWidth: 2.5,
730
+ d: "M136.478 7.879v12.563a3.25 3.25 0 0 0 3.25 3.25h8.595M95.311 78.942h28.167m-28.167-55.25h28.167zm0 13h46.583zm0 14.084h46.583zm0 14.083h46.583z"
731
+ }
732
+ )
733
+ ] }),
734
+ /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "EmptyDocuments_svg__a", children: /* @__PURE__ */ jsx("path", { fill: "#fff", d: "M.667.797h216v120h-216z" }) }) })
735
+ ] });
736
+ forwardRef(SvgEmptyDocuments);
737
+ const SvgEmptyPermissions = (props, ref) => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, fill: "none", viewBox: "0 0 193 121", ref, ...props, children: /* @__PURE__ */ jsxs("g", { opacity: 0.88, children: [
738
+ /* @__PURE__ */ jsx(
739
+ "path",
740
+ {
741
+ fill: "#DBDBFA",
742
+ fillRule: "evenodd",
743
+ d: "M160.947 53.823a4 4 0 0 0-.15-.281c-3.5-5.96-7.289-11.263-11.52-15.858h18.096c4.445 0 8.048 3.613 8.048 8.07 0 4.456-3.603 8.069-8.048 8.069zm-8.493 16.139c-11.562 11.57-31.953 19.597-55.21 19.597-31.435 0-54.384-16.705-55.701-35.736H29.409c-4.445 0-8.048 3.613-8.048 8.07 0 4.456 3.603 8.069 8.048 8.069h11.697c5.604 0 10.148 3.612 10.148 8.069q0 3.786-4.98 6.963c-.942.601-2.034.876-3.123 1.15-.33.083-.658.166-.983.257a8.07 8.07 0 0 0-5.86 7.768c0 4.457 3.602 8.07 8.047 8.07h95.425c4.445 0 8.048-3.613 8.048-8.07 0-4.456-3.603-8.069-8.048-8.069h44.839c4.444 0 8.048-3.613 8.048-8.07 0-4.456-3.604-8.068-8.048-8.068zM68.723 21.546H8.715c-4.445 0-8.048 3.613-8.048 8.07 0 4.456 3.603 8.068 8.048 8.068h37.314c4.606-6.843 12.5-12.477 22.694-16.138M.667 61.892c0-4.456 3.603-8.069 8.048-8.069 4.444 0 8.047 3.613 8.047 8.07 0 4.456-3.603 8.069-8.047 8.069S.667 66.349.667 61.892",
744
+ clipRule: "evenodd"
745
+ }
746
+ ),
747
+ /* @__PURE__ */ jsx(
748
+ "path",
749
+ {
750
+ stroke: "#7B79FF",
751
+ strokeLinecap: "round",
752
+ strokeLinejoin: "round",
753
+ strokeWidth: 2.5,
754
+ d: "m158.091 49.212 1.446 2.131"
755
+ }
756
+ ),
757
+ /* @__PURE__ */ jsx(
758
+ "path",
759
+ {
760
+ fill: "#fff",
761
+ d: "M154.862 59.69c-45.683-57.683-95.639-25.812-117.374.01-1.404 1.668-1.426 4.117-.15 5.882 47.31 65.454 96.71 29.044 117.704-.133 1.24-1.722 1.138-4.094-.18-5.758"
762
+ }
763
+ ),
764
+ /* @__PURE__ */ jsx(
765
+ "path",
766
+ {
767
+ fill: "#7B79FF",
768
+ fillRule: "evenodd",
769
+ d: "M113.536 28.091c-9.141-2.486-18.085-2.558-26.571-.94-21.301 4.058-39.458 18.707-50.43 31.742-1.794 2.132-1.798 5.217-.206 7.42C48.246 82.798 60.36 92.962 72.218 98.41q1.186.544 2.367 1.027l1.206-2.209a57 57 0 0 1-2.53-1.09c-11.366-5.222-23.168-15.052-34.905-31.291-.961-1.33-.92-3.143.092-4.345 10.764-12.787 28.453-26.985 48.985-30.897 7.905-1.506 16.271-1.495 24.869.745zm-28.277 71.966c7.097 1.397 13.98 1.155 20.536-.279 20.46-4.474 37.826-20.593 48.237-35.062.899-1.25.84-3.007-.146-4.252-10.728-13.547-21.653-22.062-32.351-26.854l1.201-2.2c11.026 4.98 22.21 13.738 33.11 27.502 1.649 2.083 1.795 5.069.215 7.265-10.584 14.708-28.416 31.382-49.732 36.044-7.115 1.556-14.607 1.77-22.323.131z",
770
+ clipRule: "evenodd"
771
+ }
772
+ ),
773
+ /* @__PURE__ */ jsx(
774
+ "path",
775
+ {
776
+ stroke: "#7B79FF",
777
+ strokeLinecap: "round",
778
+ strokeLinejoin: "round",
779
+ strokeWidth: 2.5,
780
+ d: "M127.159 22.08c13.23 6.32 21.864 14.378 27.624 21.78M34.068 48.642C53.002 23.337 89.197 8.3 117.953 18.635"
781
+ }
782
+ ),
783
+ /* @__PURE__ */ jsx("ellipse", { cx: 94.98, cy: 66.505, fill: "#F0F0FF", rx: 18.395, ry: 18.444 }),
784
+ /* @__PURE__ */ jsx(
785
+ "path",
786
+ {
787
+ fill: "#7B79FF",
788
+ fillRule: "evenodd",
789
+ d: "M104.76 44.362a24 24 0 0 0-9.776-2.067c-13.334 0-24.144 10.838-24.144 24.208 0 8.428 4.296 15.85 10.813 20.186l1.203-2.204c-5.741-3.903-9.516-10.498-9.516-17.982 0-11.995 9.696-21.708 21.644-21.708 3.045 0 5.944.631 8.574 1.77zM91.95 87.999q1.488.211 3.034.212c11.947 0 21.643-9.713 21.643-21.708a21.66 21.66 0 0 0-5.222-14.142l1.272-2.33a24.16 24.16 0 0 1 6.45 16.472c0 13.37-10.809 24.207-24.143 24.207-1.47 0-2.908-.131-4.305-.383z",
790
+ clipRule: "evenodd"
791
+ }
792
+ ),
793
+ /* @__PURE__ */ jsx(
794
+ "path",
795
+ {
796
+ fill: "#fff",
797
+ stroke: "#7B79FF",
798
+ strokeWidth: 2.5,
799
+ d: "M116.729 54.977c0 4.406-3.562 7.972-7.948 7.972s-7.948-3.566-7.948-7.972 3.562-7.972 7.948-7.972 7.948 3.566 7.948 7.972Z"
800
+ }
801
+ ),
802
+ /* @__PURE__ */ jsx(
803
+ "path",
804
+ {
805
+ fill: "#fff",
806
+ d: "M110.472 33.635c1.275-2.324 4.078-3.019 6.296-1.56 2.264 1.49 3.053 4.654 1.751 7.027l-31.287 57.05c-1.275 2.324-4.079 3.018-6.296 1.559-2.265-1.49-3.053-4.653-1.751-7.027z"
807
+ }
808
+ ),
809
+ /* @__PURE__ */ jsx(
810
+ "rect",
811
+ {
812
+ width: 3.668,
813
+ height: 134.376,
814
+ fill: "#7B79FF",
815
+ rx: 1.834,
816
+ transform: "matrix(.82817 .56048 -.47918 .87772 127.181 .797)"
817
+ }
818
+ )
819
+ ] }) });
820
+ forwardRef(SvgEmptyPermissions);
821
+ const SvgEmptyPictures = (props, ref) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, fill: "none", viewBox: "0 0 217 121", ref, ...props, children: [
822
+ /* @__PURE__ */ jsx("g", { clipPath: "url(#EmptyPictures_svg__a)", children: /* @__PURE__ */ jsxs("g", { clipPath: "url(#EmptyPictures_svg__b)", opacity: 0.88, children: [
823
+ /* @__PURE__ */ jsx(
824
+ "path",
825
+ {
826
+ fill: "#D9D8FF",
827
+ fillOpacity: 0.8,
828
+ fillRule: "evenodd",
829
+ d: "M119.667 28.797a7 7 0 1 1 0 14h64a7 7 0 1 1 0 14h22a7 7 0 1 1 0 14h-19a7 7 0 1 0 0 14h6a7 7 0 1 1 0 14h-52a7 7 0 0 1-1.5-.161 7 7 0 0 1-1.5.16h-91a7 7 0 0 1 0-14h-39a7 7 0 1 1 0-14h40a7 7 0 0 0 0-14h-25a7 7 0 1 1 0-14h40a7 7 0 1 1 0-14zm90 56a7 7 0 1 1 0 14 7 7 0 0 1 0-14",
830
+ clipRule: "evenodd"
831
+ }
832
+ ),
833
+ /* @__PURE__ */ jsx(
834
+ "path",
835
+ {
836
+ fill: "#fff",
837
+ fillRule: "evenodd",
838
+ d: "m74.497 103.07-8.622 1.422a4 4 0 0 1-4.518-3.404L50.224 21.866a4 4 0 0 1 3.404-4.518l78.231-10.994a4 4 0 0 1 4.518 3.404c.474 3.377 2.408 16.468 2.571 17.63",
839
+ clipRule: "evenodd"
840
+ }
841
+ ),
842
+ /* @__PURE__ */ jsx(
843
+ "path",
844
+ {
845
+ fill: "#F0F0FF",
846
+ fillRule: "evenodd",
847
+ d: "m72.472 99.51-3.696.525a3.62 3.62 0 0 1-4.096-3.085l-9.996-71.925a3.646 3.646 0 0 1 3.097-4.107L128.82 10.82a3.62 3.62 0 0 1 4.096 3.085l.859 6.18 9.206 66.599c.306 2.212-1.22 4.257-3.408 4.566l-.07.01z",
848
+ clipRule: "evenodd"
849
+ }
850
+ ),
851
+ /* @__PURE__ */ jsx(
852
+ "path",
853
+ {
854
+ stroke: "#7B79FF",
855
+ strokeLinecap: "round",
856
+ strokeWidth: 2.5,
857
+ d: "m69.945 103.92-4.07.572a4 4 0 0 1-4.518-3.405L50.223 21.866a4 4 0 0 1 3.405-4.518l78.231-10.994a4 4 0 0 1 4.518 3.404l.956 6.808M138.167 21.177l.5 3.12"
858
+ }
859
+ ),
860
+ /* @__PURE__ */ jsx(
861
+ "path",
862
+ {
863
+ fill: "#fff",
864
+ fillRule: "evenodd",
865
+ stroke: "#7B79FF",
866
+ strokeWidth: 2.5,
867
+ d: "m165.078 31.096-78.567-8.258a2.74 2.74 0 0 0-2.018.598 2.74 2.74 0 0 0-1.005 1.85l-8.362 79.561a2.748 2.748 0 0 0 2.447 3.023l78.568 8.258a2.74 2.74 0 0 0 2.018-.598 2.74 2.74 0 0 0 1.004-1.85l8.362-79.562a2.74 2.74 0 0 0-.597-2.018 2.74 2.74 0 0 0-1.85-1.004Z",
868
+ clipRule: "evenodd"
869
+ }
870
+ ),
871
+ /* @__PURE__ */ jsx(
872
+ "path",
873
+ {
874
+ fill: "#fff",
875
+ fillRule: "evenodd",
876
+ d: "m93.657 31.382 62.655 6.585a3 3 0 0 1 2.67 3.297l-5.54 52.71a3 3 0 0 1-3.298 2.67L87.49 90.059a3 3 0 0 1-2.67-3.297l5.54-52.71a3 3 0 0 1 3.297-2.67",
877
+ clipRule: "evenodd"
878
+ }
879
+ ),
880
+ /* @__PURE__ */ jsx(
881
+ "path",
882
+ {
883
+ fill: "#F0F0FF",
884
+ fillRule: "evenodd",
885
+ d: "m93.407 74.676 9.798-6.609a4 4 0 0 1 5.167.595l7.174 7.722a1 1 0 0 0 1.362.097l15.34-12.43a4 4 0 0 1 5.877.936l9.981 15.438 1.433 2.392-.686 8.124a1 1 0 0 1-1.107.91l-56.963-6.329a1 1 0 0 1-.885-1.085l.755-8.199z",
886
+ clipRule: "evenodd"
887
+ }
888
+ ),
889
+ /* @__PURE__ */ jsx(
890
+ "path",
891
+ {
892
+ stroke: "#7B79FF",
893
+ strokeWidth: 2.5,
894
+ d: "m156.181 39.21-62.655-6.585c-.48-.05-.936.099-1.284.38a1.75 1.75 0 0 0-.64 1.178l-5.54 52.71c-.05.48.1.936.381 1.284s.697.588 1.177.639l62.655 6.585c.481.05.936-.099 1.284-.38s.589-.697.639-1.177l5.54-52.71a1.74 1.74 0 0 0-.38-1.284 1.74 1.74 0 0 0-1.177-.64Z",
895
+ clipRule: "evenodd"
896
+ }
897
+ ),
898
+ /* @__PURE__ */ jsx(
899
+ "path",
900
+ {
901
+ fill: "#F0F0FF",
902
+ stroke: "#7B79FF",
903
+ strokeWidth: 2.5,
904
+ d: "M105.071 56.714a6 6 0 1 0 1.254-11.936 6 6 0 0 0-1.254 11.936Z"
905
+ }
906
+ ),
907
+ /* @__PURE__ */ jsx(
908
+ "path",
909
+ {
910
+ stroke: "#7B79FF",
911
+ strokeLinecap: "round",
912
+ strokeWidth: 2.5,
913
+ d: "m91.396 76.222 11.809-8.155a4 4 0 0 1 5.167.594l7.174 7.723a1 1 0 0 0 1.362.096l15.34-12.43a4 4 0 0 1 5.877.936l11.064 17.556"
914
+ }
915
+ )
916
+ ] }) }),
917
+ /* @__PURE__ */ jsxs("defs", { children: [
918
+ /* @__PURE__ */ jsx("clipPath", { id: "EmptyPictures_svg__a", children: /* @__PURE__ */ jsx("path", { fill: "#fff", d: "M.667.797h216v120h-216z" }) }),
919
+ /* @__PURE__ */ jsx("clipPath", { id: "EmptyPictures_svg__b", children: /* @__PURE__ */ jsx("path", { fill: "#fff", d: "M.667.797h216v120h-216z" }) })
920
+ ] })
921
+ ] });
922
+ forwardRef(SvgEmptyPictures);
923
+ const SvgEnumerationField = (props, ref) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [
924
+ /* @__PURE__ */ jsx("rect", { width: 31, height: 23, x: 0.5, y: 4.5, fill: "#F6ECFC", stroke: "#E0C1F4", rx: 2.5 }),
925
+ /* @__PURE__ */ jsx(
926
+ "path",
927
+ {
928
+ fill: "#9736E8",
929
+ d: "M12.75 12a.75.75 0 0 1 .75-.75h8a.75.75 0 1 1 0 1.5h-8a.75.75 0 0 1-.75-.75m8.75 3.25h-8a.75.75 0 1 0 0 1.5h8a.75.75 0 1 0 0-1.5m0 4h-8a.75.75 0 1 0 0 1.5h8a.75.75 0 1 0 0-1.5M10.75 15a1 1 0 1 0 0 2 1 1 0 0 0 0-2m0-4a1 1 0 1 0 0 2 1 1 0 0 0 0-2m0 8a1 1 0 1 0 0 2 1 1 0 0 0 0-2"
930
+ }
931
+ )
932
+ ] });
933
+ forwardRef(SvgEnumerationField);
934
+ const SvgFacebook = (props, ref) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [
935
+ /* @__PURE__ */ jsx(
936
+ "path",
937
+ {
938
+ fill: "#1977F3",
939
+ d: "M32 16c0-8.836-7.164-16-16-16S0 7.164 0 16c0 7.985 5.85 14.605 13.5 15.807v-11.18H9.437V16H13.5v-3.526c0-4.01 2.39-6.226 6.044-6.226 1.75 0 3.582.313 3.582.313V10.5h-2.018c-1.987 0-2.608 1.233-2.608 2.5V16h4.437l-.709 4.626H18.5v11.18C26.15 30.607 32 23.989 32 16"
940
+ }
941
+ ),
942
+ /* @__PURE__ */ jsx(
943
+ "path",
944
+ {
945
+ fill: "#FEFEFE",
946
+ d: "M22.228 20.626 22.937 16H18.5v-3.002c0-1.264.619-2.5 2.608-2.5h2.018V6.562s-1.832-.313-3.582-.313c-3.654 0-6.044 2.214-6.044 6.226V16H9.437v4.626H13.5v11.18Q14.724 32 16 32c.85 0 1.685-.068 2.5-.194v-11.18z"
947
+ }
948
+ )
949
+ ] });
950
+ forwardRef(SvgFacebook);
951
+ const SvgFeatherSquare = (props, ref) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [
952
+ /* @__PURE__ */ jsx("path", { fill: "#9736E8", d: "M0 4a4 4 0 0 1 4-4h24a4 4 0 0 1 4 4v24a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4z" }),
953
+ /* @__PURE__ */ jsx(
954
+ "path",
955
+ {
956
+ fill: "#fff",
957
+ d: "M18.037 11.774a28.6 28.6 0 0 0-2.948 2.706c-1.995 2.109-3.55 4.093-4.761 6.06-.289.469-.574.945-.855 1.418a9 9 0 0 0-.463 1.536c-.074.37.275.68.577.395.312-.299.587-.64.851-.985.467-.608.906-1.237 1.342-1.867 3.37.242 7.27-2.048 8.933-4.857a.2.2 0 0 0 .017-.167.18.18 0 0 0-.114-.118c-.809-.27-1.798-.44-2.207-.462-.017 0-.034-.014-.037-.035a.04.04 0 0 1 .024-.043c1.113-.58 1.924-.647 2.877-.505.07.01.134-.046.16-.114.095-.217.356-.87.537-1.404a.2.2 0 0 0-.087-.239c-.71-.384-1.656-.643-2.035-.682-.017 0-.03-.018-.034-.036a.04.04 0 0 1 .024-.043c1.1-.483 1.485-.497 2.364-.302.087.018.17-.05.19-.142.433-1.714.574-3.197.608-3.68a.2.2 0 0 0-.057-.157.18.18 0 0 0-.148-.05c-2.444.356-4.403.865-6.093 1.55-.057.022-.11.072-.11.136.144.551-.242 1.209-.845 1.703a.04.04 0 0 1-.044.018.05.05 0 0 1-.027-.043c.004-.046.158-.665.067-1.116-.013-.064-.033-.125-.084-.16a.17.17 0 0 0-.17-.014c-7.924 3.811-5.922 10.098-5.922 10.098q.015.004.03.007c.895-1.86 1.904-3.232 3.49-5.035 1.178-1.337 2.331-2.425 3.525-3.325.75-.565 2.448-1.738 3.51-2.144a.3.3 0 0 1 .105-.021c.097 0 .177.064.2.16a.26.26 0 0 1-.046.228z"
958
+ }
959
+ )
960
+ ] });
961
+ forwardRef(SvgFeatherSquare);
962
+ const SvgGitHub = (props, ref) => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: /* @__PURE__ */ jsx(
963
+ "path",
964
+ {
965
+ fill: "#24292F",
966
+ fillRule: "evenodd",
967
+ d: "M15.952 0C7.132 0 0 7.184 0 16.07c0 7.105 4.57 13.118 10.908 15.247.792.16 1.083-.346 1.083-.772 0-.372-.027-1.65-.027-2.98-4.437.958-5.361-1.916-5.361-1.916-.713-1.862-1.77-2.34-1.77-2.34-1.452-.985.106-.985.106-.985 1.61.106 2.456 1.65 2.456 1.65 1.426 2.447 3.724 1.755 4.648 1.33.132-1.038.555-1.757 1.004-2.156-3.54-.372-7.263-1.756-7.263-7.929 0-1.756.634-3.193 1.637-4.31-.158-.399-.713-2.049.16-4.257 0 0 1.346-.426 4.383 1.65 1.3-.352 2.641-.531 3.988-.533 1.347 0 2.72.187 3.988.532 3.038-2.075 4.385-1.65 4.385-1.65.871 2.21.316 3.859.158 4.258 1.03 1.117 1.637 2.554 1.637 4.31 0 6.173-3.723 7.53-7.289 7.93.581.505 1.083 1.463 1.083 2.98 0 2.154-.026 3.884-.026 4.416 0 .426.29.932 1.082.772 6.34-2.13 10.908-8.142 10.908-15.246C31.904 7.184 24.748 0 15.952 0",
968
+ clipRule: "evenodd"
969
+ }
970
+ ) });
971
+ forwardRef(SvgGitHub);
972
+ const SvgGlassesSquare = (props, ref) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [
973
+ /* @__PURE__ */ jsx("path", { fill: "#AC73E6", d: "M0 4a4 4 0 0 1 4-4h24a4 4 0 0 1 4 4v24a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4z" }),
974
+ /* @__PURE__ */ jsx(
975
+ "path",
976
+ {
977
+ fill: "#fff",
978
+ fillRule: "evenodd",
979
+ d: "M15.027 13.839c-3.19-.836-6.305-1.064-10.18-.608-1.215.152-1.063 1.975.076 2.203.304.836.456 2.355.912 3.267.987 2.279 5.622 1.975 7.369.835 1.14-.683 1.443-2.279 1.9-3.494.227-.684 1.595-.684 1.822 0 .38 1.215.76 2.81 1.9 3.494 1.747 1.14 6.381 1.444 7.369-.835.456-.912.607-2.431.911-3.267 1.14-.228 1.216-2.051.076-2.203-3.874-.456-6.989-.228-10.18.608-.455.075-1.519.075-1.975 0",
980
+ clipRule: "evenodd"
981
+ }
982
+ )
983
+ ] });
984
+ forwardRef(SvgGlassesSquare);
985
+ const SvgInformationSquare = (props, ref) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [
986
+ /* @__PURE__ */ jsx("path", { fill: "#4945FF", d: "M0 4a4 4 0 0 1 4-4h24a4 4 0 0 1 4 4v24a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4z" }),
987
+ /* @__PURE__ */ jsx(
988
+ "path",
989
+ {
990
+ fill: "#fff",
991
+ d: "M15.733 8c.343 0 .678.108.963.31s.507.49.639.826c.13.337.165.707.098 1.064a1.9 1.9 0 0 1-.474.942 1.7 1.7 0 0 1-.887.504 1.64 1.64 0 0 1-1.002-.105 1.76 1.76 0 0 1-.778-.678A1.9 1.9 0 0 1 14 9.841a1.9 1.9 0 0 1 .508-1.302c.325-.345.766-.539 1.225-.539M20 24h-8v-2.265h2.933v-6.23H12.8v-2.266h4.267v8.496H20z"
992
+ }
993
+ )
994
+ ] });
995
+ forwardRef(SvgInformationSquare);
996
+ const SvgJsonField = (props, ref) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [
997
+ /* @__PURE__ */ jsx("rect", { width: 31, height: 23, x: 0.5, y: 4.5, fill: "#EAF5FF", stroke: "#B8E1FF", rx: 2.5 }),
998
+ /* @__PURE__ */ jsx(
999
+ "path",
1000
+ {
1001
+ fill: "#0C75AF",
1002
+ d: "M11.425 15.468a2.2 2.2 0 0 1-.36.532q.22.24.36.532c.325.67.325 1.457.325 2.218 0 1.621.115 2 1.25 2a.75.75 0 1 1 0 1.5c-1.196 0-2.012-.431-2.425-1.282-.325-.67-.325-1.457-.325-2.218 0-1.621-.115-2-1.25-2a.75.75 0 1 1 0-1.5c1.135 0 1.25-.379 1.25-2 0-.76 0-1.547.325-2.218.413-.85 1.229-1.282 2.425-1.282a.75.75 0 1 1 0 1.5c-1.135 0-1.25.379-1.25 2 0 .76 0 1.547-.325 2.218M23 15.25c-1.135 0-1.25-.379-1.25-2 0-.76 0-1.547-.325-2.218-.413-.85-1.229-1.282-2.425-1.282a.75.75 0 1 0 0 1.5c1.135 0 1.25.379 1.25 2 0 .76 0 1.547.325 2.218q.142.292.363.532a2.2 2.2 0 0 0-.36.532c-.328.67-.328 1.457-.328 2.218 0 1.621-.115 2-1.25 2a.75.75 0 1 0 0 1.5c1.196 0 2.012-.431 2.425-1.282.325-.67.325-1.457.325-2.218 0-1.621.115-2 1.25-2a.75.75 0 1 0 0-1.5"
1003
+ }
1004
+ )
1005
+ ] });
1006
+ forwardRef(SvgJsonField);
1007
+ const SvgMarkdownField = (props, ref) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [
1008
+ /* @__PURE__ */ jsx("rect", { width: 31, height: 23, x: 0.5, y: 4.5, fill: "#EAF5FF", stroke: "#B8E1FF", rx: 2.5 }),
1009
+ /* @__PURE__ */ jsx(
1010
+ "path",
1011
+ {
1012
+ fill: "#0C75AF",
1013
+ d: "M9.75 12a.75.75 0 0 1 .75-.75h11a.75.75 0 1 1 0 1.5h-11a.75.75 0 0 1-.75-.75m.75 3.25h8a.75.75 0 1 0 0-1.5h-8a.75.75 0 1 0 0 1.5m11 1h-11a.75.75 0 1 0 0 1.5h11a.75.75 0 1 0 0-1.5m-3 2.5h-8a.75.75 0 1 0 0 1.5h8a.75.75 0 1 0 0-1.5"
1014
+ }
1015
+ )
1016
+ ] });
1017
+ forwardRef(SvgMarkdownField);
1018
+ const SvgMediaField = (props, ref) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [
1019
+ /* @__PURE__ */ jsx("rect", { width: 31, height: 23, x: 0.5, y: 4.5, fill: "#F6ECFC", stroke: "#E0C1F4", rx: 2.5 }),
1020
+ /* @__PURE__ */ jsx(
1021
+ "path",
1022
+ {
1023
+ fill: "#9736E8",
1024
+ d: "M21.5 10.5h-11a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1v-9a1 1 0 0 0-1-1m-3.75 3a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-7.25 7v-1.75l3.25-3.25 5 5zm11 0h-1.336l-2.25-2.25 1.25-1.25 2.336 2.336z"
1025
+ }
1026
+ )
1027
+ ] });
1028
+ forwardRef(SvgMediaField);
1029
+ const SvgMedium = (props, ref) => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: /* @__PURE__ */ jsx(
1030
+ "path",
1031
+ {
1032
+ fill: "#32324D",
1033
+ d: "M18.05 16.007c0 5.019-4.04 9.087-9.025 9.087-4.984 0-9.025-4.07-9.025-9.087C0 10.99 4.04 6.92 9.025 6.92s9.025 4.069 9.025 9.087M27.95 16.007c0 4.724-2.02 8.555-4.512 8.555s-4.513-3.831-4.513-8.555 2.02-8.555 4.513-8.555 4.512 3.83 4.512 8.555M32 16.007c0 4.231-.71 7.664-1.587 7.664s-1.587-3.432-1.587-7.664.71-7.664 1.587-7.664c.876 0 1.587 3.432 1.587 7.664"
1034
+ }
1035
+ ) });
1036
+ forwardRef(SvgMedium);
1037
+ const SvgNumberField = (props, ref) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [
1038
+ /* @__PURE__ */ jsx("rect", { width: 31, height: 23, x: 0.5, y: 4.5, fill: "#FCECEA", stroke: "#F5C0B8", rx: 2.5 }),
1039
+ /* @__PURE__ */ jsx(
1040
+ "path",
1041
+ {
1042
+ fill: "#D02B20",
1043
+ d: "M8.68 20v-6.22h-.096l-1.902 1.322V13.64l2.004-1.392h1.616V20zm3.733 0v-1.09l2.498-2.466c1.09-1.058 1.385-1.45 1.385-1.992v-.017c0-.66-.45-1.122-1.192-1.122-.757 0-1.278.505-1.278 1.24v.028h-1.499l-.005-.022c0-1.488 1.16-2.508 2.857-2.508 1.595 0 2.713.913 2.713 2.25v.016c0 .881-.457 1.612-1.87 2.917l-1.434 1.337v.124h3.416V20zm9.974.172c-1.75 0-2.906-.94-3.013-2.326l-.005-.07h1.552l.005.06c.07.601.623 1.03 1.461 1.03.827 0 1.37-.461 1.37-1.116v-.011c0-.741-.553-1.15-1.493-1.15h-.887v-1.154h.865c.817 0 1.343-.43 1.343-1.059v-.01c0-.645-.446-1.042-1.209-1.042-.762 0-1.273.413-1.337 1.058l-.005.048H19.54l.005-.064c.113-1.386 1.203-2.288 2.83-2.288 1.665 0 2.74.838 2.74 2.073v.01c0 .967-.71 1.596-1.617 1.784v.032c1.155.107 1.907.773 1.907 1.826v.011c0 1.407-1.209 2.358-3.019 2.358"
1044
+ }
1045
+ )
1046
+ ] });
1047
+ forwardRef(SvgNumberField);
1048
+ const SvgPasswordField = (props, ref) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [
1049
+ /* @__PURE__ */ jsx("rect", { width: 31, height: 23, x: 0.5, y: 4.5, fill: "#FDF4DC", stroke: "#FAE7B9", rx: 2.5 }),
1050
+ /* @__PURE__ */ jsx(
1051
+ "path",
1052
+ {
1053
+ fill: "#D9822F",
1054
+ d: "M21 13h-2v-1.5a3 3 0 0 0-6 0V13h-2a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1v-7a1 1 0 0 0-1-1m-5 5.25a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5M18 13h-4v-1.5a2 2 0 0 1 4 0z"
1055
+ }
1056
+ )
1057
+ ] });
1058
+ forwardRef(SvgPasswordField);
1059
+ const SvgPlaySquare = (props, ref) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [
1060
+ /* @__PURE__ */ jsx("path", { fill: "#66B7F1", d: "M0 4a4 4 0 0 1 4-4h24a4 4 0 0 1 4 4v24a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4z" }),
1061
+ /* @__PURE__ */ jsx(
1062
+ "path",
1063
+ {
1064
+ fill: "#fff",
1065
+ fillRule: "evenodd",
1066
+ d: "M12 10.921a.5.5 0 0 1 .773-.419l8.582 5.579a.5.5 0 0 1 0 .838l-8.582 5.579a.5.5 0 0 1-.773-.42z",
1067
+ clipRule: "evenodd"
1068
+ }
1069
+ )
1070
+ ] });
1071
+ forwardRef(SvgPlaySquare);
1072
+ const SvgReddit = (props, ref) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [
1073
+ /* @__PURE__ */ jsx(
1074
+ "path",
1075
+ {
1076
+ fill: "#FF4500",
1077
+ d: "M16 0C7.164 0 0 7.164 0 16a15.95 15.95 0 0 0 4.686 11.314L1.64 30.36c-.605.605-.177 1.639.678 1.639H16c8.836 0 16-7.164 16-16S24.836 0 16 0"
1078
+ }
1079
+ ),
1080
+ /* @__PURE__ */ jsx(
1081
+ "path",
1082
+ {
1083
+ fill: "#fff",
1084
+ d: "M19.255 7.545a2.668 2.668 0 0 0 5.261-.614 2.666 2.666 0 0 0-5.277-.54 4.307 4.307 0 0 0-3.84 4.277v.013c-2.345.099-4.487.767-6.187 1.82a3.736 3.736 0 1 0-3.869 6.34c.124 4.338 4.85 7.826 10.664 7.826s10.547-3.492 10.664-7.833a3.737 3.737 0 0 0-1.602-7.111c-.857 0-1.645.288-2.275.773-1.715-1.061-3.88-1.729-6.25-1.817v-.01a3.16 3.16 0 0 1 2.71-3.121zM9.062 17.829c.063-1.355.963-2.395 2.01-2.395 1.045 0 1.845 1.098 1.783 2.454-.063 1.354-.844 1.847-1.891 1.847S9 19.184 9.062 17.829m11.883-2.395c1.047 0 1.947 1.04 2.009 2.395s-.855 1.906-1.902 1.906-1.828-.491-1.89-1.848c-.063-1.355.735-2.453 1.783-2.453m-1.245 5.53c.196.02.321.224.245.406a4.268 4.268 0 0 1-7.875 0 .296.296 0 0 1 .245-.406c1.15-.116 2.394-.18 3.692-.18 1.3 0 2.542.064 3.693.18"
1085
+ }
1086
+ )
1087
+ ] });
1088
+ forwardRef(SvgReddit);
1089
+ const SvgRelationField = (props, ref) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [
1090
+ /* @__PURE__ */ jsx("rect", { width: 31, height: 23, x: 0.5, y: 4.5, fill: "#F0F0FF", stroke: "#D9D8FF", rx: 2.5 }),
1091
+ /* @__PURE__ */ jsx(
1092
+ "path",
1093
+ {
1094
+ fill: "#4945FF",
1095
+ d: "M16.523 19.72a.75.75 0 0 1 0 1.063l-.371.371a3.751 3.751 0 1 1-5.305-5.305l1.507-1.507a3.75 3.75 0 0 1 5.146-.155.753.753 0 0 1-1 1.126 2.25 2.25 0 0 0-3.086.091l-1.506 1.505a2.25 2.25 0 0 0 3.183 3.183l.37-.371a.747.747 0 0 1 1.062 0m4.63-8.874a3.755 3.755 0 0 0-5.305 0l-.371.37a.751.751 0 1 0 1.062 1.063l.372-.37a2.25 2.25 0 1 1 3.182 3.182l-1.507 1.507a2.25 2.25 0 0 1-3.086.09.755.755 0 0 0-1.211.315.75.75 0 0 0 .211.81 3.75 3.75 0 0 0 5.144-.152l1.507-1.507a3.756 3.756 0 0 0 .002-5.307z"
1096
+ }
1097
+ )
1098
+ ] });
1099
+ forwardRef(SvgRelationField);
1100
+ const SvgSingleType = (props, ref) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [
1101
+ /* @__PURE__ */ jsx("rect", { width: 31, height: 23, x: 0.5, y: 4.5, fill: "#0C75AF", stroke: "#0C75AF", rx: 2.5 }),
1102
+ /* @__PURE__ */ jsx(
1103
+ "path",
1104
+ {
1105
+ fill: "#fff",
1106
+ d: "M8.523 17.586h1.711c.123.727.844 1.195 1.758 1.195.95 0 1.606-.445 1.606-1.107 0-.492-.352-.797-1.266-1.084l-.879-.276c-1.248-.386-1.963-1.218-1.963-2.308 0-1.547 1.418-2.678 3.328-2.678 1.858 0 3.164 1.078 3.217 2.62h-1.67c-.105-.71-.744-1.184-1.617-1.184-.826 0-1.459.433-1.459 1.03 0 .47.34.815 1.137 1.067l.867.27c1.436.451 2.086 1.154 2.086 2.297 0 1.675-1.418 2.789-3.516 2.789-1.922 0-3.234-.99-3.34-2.631M20.107 20h-1.78l1.487-6.943h-2.53l.31-1.512h6.843l-.31 1.512h-2.531z"
1107
+ }
1108
+ )
1109
+ ] });
1110
+ forwardRef(SvgSingleType);
1111
+ const SvgStrapi = (props, ref) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [
1112
+ /* @__PURE__ */ jsx(
1113
+ "path",
1114
+ {
1115
+ fill: "#4945FF",
1116
+ d: "M0 11.093c0-5.23 0-7.844 1.625-9.468C3.249 0 5.864 0 11.093 0h9.814c5.23 0 7.844 0 9.468 1.625C32 3.249 32 5.864 32 11.093v9.814c0 5.23 0 7.844-1.625 9.468C28.751 32 26.136 32 20.907 32h-9.814c-5.23 0-7.844 0-9.468-1.625C0 28.751 0 26.136 0 20.907z"
1117
+ }
1118
+ ),
1119
+ /* @__PURE__ */ jsx(
1120
+ "path",
1121
+ {
1122
+ fill: "#fff",
1123
+ fillRule: "evenodd",
1124
+ d: "M22.08 9.707H11.307V15.2H16.8v5.493h5.493V9.92a.213.213 0 0 0-.213-.213",
1125
+ clipRule: "evenodd"
1126
+ }
1127
+ ),
1128
+ /* @__PURE__ */ jsx("path", { fill: "#fff", d: "M16.8 15.2h-.213v.213h.213z" }),
1129
+ /* @__PURE__ */ jsx(
1130
+ "path",
1131
+ {
1132
+ fill: "#9593FF",
1133
+ d: "M11.307 15.2h5.28c.117 0 .213.096.213.213v5.28h-5.28a.213.213 0 0 1-.213-.213zM16.8 20.693h5.493l-5.31 5.312a.107.107 0 0 1-.183-.076zM11.307 15.2H6.07a.107.107 0 0 1-.076-.182l5.312-5.311z"
1134
+ }
1135
+ )
1136
+ ] });
1137
+ forwardRef(SvgStrapi);
1138
+ const SvgTextField = (props, ref) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [
1139
+ /* @__PURE__ */ jsx("rect", { width: 31, height: 23, x: 0.5, y: 4.5, fill: "#EAFBE7", stroke: "#C6F0C2", rx: 2.5 }),
1140
+ /* @__PURE__ */ jsx(
1141
+ "path",
1142
+ {
1143
+ fill: "#328048",
1144
+ d: "M13.679 11.18a.75.75 0 0 0-1.358 0l-4 8.5a.75.75 0 0 0 1.357.64l.974-2.07h4.695l.974 2.07a.75.75 0 1 0 1.358-.64zm-2.32 5.57 1.64-3.489 1.643 3.489zm9.14-3c-.865 0-1.547.241-2.027.717a.749.749 0 1 0 1.056 1.063c.188-.187.516-.283.972-.283.584 0 1.074.323 1.21.757a3 3 0 0 0-1.21-.254c-1.516 0-2.75 1.121-2.75 2.5s1.234 2.5 2.75 2.5c.479.001.95-.114 1.375-.336A.75.75 0 0 0 23.25 20v-3.75c0-1.379-1.234-2.5-2.75-2.5m0 5.5c-.687 0-1.25-.449-1.25-1s.563-1 1.25-1 1.25.449 1.25 1-.562 1-1.25 1"
1145
+ }
1146
+ )
1147
+ ] });
1148
+ forwardRef(SvgTextField);
1149
+ const SvgUidField = (props, ref) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [
1150
+ /* @__PURE__ */ jsx("rect", { width: 31, height: 23, x: 0.5, y: 4.5, fill: "#F0F0FF", stroke: "#D9D8FF", rx: 2.5 }),
1151
+ /* @__PURE__ */ jsx(
1152
+ "path",
1153
+ {
1154
+ fill: "#4945FF",
1155
+ d: "M18 9a5.005 5.005 0 0 0-4.756 6.549l-3.598 3.597a.5.5 0 0 0-.146.354V22a.5.5 0 0 0 .5.5h2.5a.5.5 0 0 0 .5-.5v-1h1a.5.5 0 0 0 .5-.5v-1h1a.5.5 0 0 0 .354-.146l.597-.598A5 5 0 1 0 18 9m1.25 4.75a1 1 0 1 1 0-2 1 1 0 0 1 0 2"
1156
+ }
1157
+ )
1158
+ ] });
1159
+ forwardRef(SvgUidField);
1160
+ const SvgX = (props, ref) => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: /* @__PURE__ */ jsxs("g", { fillRule: "evenodd", clipRule: "evenodd", children: [
1161
+ /* @__PURE__ */ jsx(
1162
+ "path",
1163
+ {
1164
+ fill: "#FAFAFA",
1165
+ d: "M6.566 6.533c.064.092 1.557 2.264 3.317 4.828l3.617 5.268c.23.334.418.614.418.622s-.086.114-.19.234-.4.462-.654.76l-3.258 3.787c-1.153 1.34-1.32 1.534-2.197 2.556-.47.546-.919 1.068-1 1.16s-.146.177-.146.189c0 .014.295.021.83.021h.83l.911-1.062 1.1-1.279a888 888 0 0 0 2.243-2.61c.043-.048.377-.437.744-.864s.676-.787.689-.8l.431-.502a9 9 0 0 1 .424-.478c.009 0 1.164 1.672 2.567 3.717l2.608 3.797.055.08h2.846c2.34.001 2.843-.004 2.834-.027-.01-.025-1.373-2.013-4.87-7.103-2.517-3.665-2.852-4.157-2.843-4.182.01-.024.353-.425 2.607-3.049l1.779-2.07c.062-.07.388-.45.724-.84l1.96-2.283c.027-.035-.02-.038-.814-.038h-.842l-.375.437a1174 1174 0 0 1-2.23 2.594c-.084.096-.506.586-.938 1.09a129 129 0 0 1-1.004 1.167c-.186.22-.374.44-1.239 1.442-.38.44-.399.459-.43.418-.02-.023-1.132-1.64-2.473-3.594L12.16 6.366H6.45zm2.228 1.165 1.186 1.7c1.196 1.71 5.895 8.436 8.917 12.763a421 421 0 0 0 1.783 2.54c.02.022.301.026 1.314.022l1.287-.005-3.37-4.823-5.963-8.534-2.593-3.712-1.3-.005-1.3-.006z"
1166
+ }
1167
+ ),
1168
+ /* @__PURE__ */ jsx(
1169
+ "path",
1170
+ {
1171
+ fill: "#040404",
1172
+ d: "M0 16v16l16.005-.005 16.006-.006.005-15.994L32.022 0H0zm.01.01c0 8.8.003 12.4.006 8s.003-11.6 0-16-.005-.8-.005 8m6.556-9.477c.064.092 1.557 2.264 3.317 4.828l3.617 5.268c.23.334.418.614.418.622s-.086.114-.19.234-.399.462-.654.76l-2.014 2.34-1.244 1.447c-1.153 1.34-1.32 1.534-2.197 2.556-.469.546-.918 1.068-1 1.16-.08.092-.146.177-.146.189 0 .014.295.021.83.021h.83l.911-1.062c.502-.585.996-1.16 1.1-1.279a888 888 0 0 0 2.243-2.61c.043-.048.377-.437.744-.864l.689-.8.431-.502a9 9 0 0 1 .424-.478c.009 0 1.164 1.672 2.567 3.717l2.608 3.797.056.08h2.845c2.34.001 2.843-.004 2.834-.027-.01-.025-1.373-2.013-4.87-7.103-2.517-3.665-2.852-4.157-2.842-4.182.009-.024.352-.425 2.606-3.049l1.78-2.07.723-.84 1.96-2.283c.027-.035-.02-.038-.814-.038h-.842l-.375.437a1129 1129 0 0 1-2.23 2.594c-.084.096-.506.586-.938 1.09a129 129 0 0 1-1.004 1.167c-.186.22-.374.44-1.239 1.442-.38.44-.399.459-.43.418-.02-.023-1.132-1.64-2.473-3.594L12.16 6.366H6.45zm2.228 1.165 1.186 1.7 8.918 12.763a416 416 0 0 0 1.782 2.54c.02.022.301.026 1.314.022l1.287-.005-3.37-4.823-5.963-8.534-2.593-3.712-1.3-.005-1.3-.006z"
1173
+ }
1174
+ )
1175
+ ] }) });
1176
+ forwardRef(SvgX);
1177
+ const TreeItem = ({ label, value, children, passedKey = "", onTreeItemClick }) => {
1178
+ const onChange = (key, currentValue) => {
1179
+ onTreeItemClick(key, currentValue);
1180
+ };
1181
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [
1182
+ typeof value === "boolean" && /* @__PURE__ */ jsx(CheckboxImpl, { checked: value, onCheckedChange: () => onChange([passedKey], value), children: label || "-" }),
1183
+ value === null && /* @__PURE__ */ jsx(CheckboxImpl, { checked: false, disabled: true, children: label || "-" }),
1184
+ children && /* @__PURE__ */ jsx("div", { children }, passedKey)
1185
+ ] });
1186
+ };
1187
+ function createBaseFor(fromRight) {
1188
+ return function(object, iteratee, keysFunc) {
1189
+ var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
1190
+ while (length--) {
1191
+ var key = props[++index];
1192
+ if (iteratee(iterable[key], key, iterable) === false) {
1193
+ break;
1194
+ }
1195
+ }
1196
+ return object;
1197
+ };
1198
+ }
1199
+ var baseFor = createBaseFor();
1200
+ function baseForOwn(object, iteratee) {
1201
+ return object && baseFor(object, iteratee, keys);
1202
+ }
1203
+ function createBaseEach(eachFunc, fromRight) {
1204
+ return function(collection, iteratee) {
1205
+ if (collection == null) {
1206
+ return collection;
1207
+ }
1208
+ if (!isArrayLike(collection)) {
1209
+ return eachFunc(collection, iteratee);
1210
+ }
1211
+ var length = collection.length, index = -1, iterable = Object(collection);
1212
+ while (++index < length) {
1213
+ if (iteratee(iterable[index], index, iterable) === false) {
1214
+ break;
1215
+ }
1216
+ }
1217
+ return collection;
1218
+ };
1219
+ }
1220
+ var baseEach = createBaseEach(baseForOwn);
1221
+ function identity(value) {
1222
+ return value;
1223
+ }
1224
+ function castFunction(value) {
1225
+ return typeof value == "function" ? value : identity;
1226
+ }
1227
+ function forEach(collection, iteratee) {
1228
+ var func = isArray(collection) ? arrayEach : baseEach;
1229
+ return func(collection, castFunction(iteratee));
1230
+ }
1231
+ function flattenObject(obj, delimiter = ".") {
1232
+ const nobj = {};
1233
+ forEach(obj, (val, key) => {
1234
+ if (isObject$1(val) && !isArray(val)) {
1235
+ const strip = flattenObject(val, delimiter);
1236
+ forEach(strip, (v, k) => {
1237
+ nobj[key + delimiter + k] = v;
1238
+ });
1239
+ } else {
1240
+ nobj[key] = val;
1241
+ }
1242
+ });
1243
+ return nobj;
1244
+ }
1245
+ const Tree = ({ objects, onTreeItemClick, initiallyExpanded = false }) => {
1246
+ const [, setIsExpanded] = useState(initiallyExpanded);
1247
+ useEffect(() => {
1248
+ setIsExpanded(initiallyExpanded);
1249
+ }, [initiallyExpanded]);
1250
+ const getCheckedState = (hasTruthyValue, hasFalsyValue) => {
1251
+ if (hasTruthyValue && !hasFalsyValue) {
1252
+ return true;
1253
+ }
1254
+ if (hasTruthyValue && hasFalsyValue) {
1255
+ return "indeterminate";
1256
+ }
1257
+ return false;
1258
+ };
1259
+ const createTree = (name, branch, path = "") => {
1260
+ const isBranchObject = typeof branch === "object" && branch !== null;
1261
+ if (isBranchObject) {
1262
+ return /* @__PURE__ */ jsx(Fragment$1, { children: Object.entries(branch).map(([key, value]) => {
1263
+ const isSubbranchObject = typeof value === "object" && value !== null;
1264
+ let flattened = flattenObject(value);
1265
+ flattened = Object.fromEntries(Object.entries(flattened).filter(([key2]) => !key2.includes("__component__")));
1266
+ const flattenedKeys = Object.keys(flattened).map((k) => `${path}.${key}.${k}`);
1267
+ const hasTruthyValue = Object.values(flattened).some((v) => v);
1268
+ const hasFalsyValue = Object.values(flattened).some((v) => !v && v !== null);
1269
+ const hasAllNullValue = Object.values(flattened).every((v) => v === null);
1270
+ const RESERVED_KEYS_TO_SKIP = ["__model__", "__component__"];
1271
+ if (RESERVED_KEYS_TO_SKIP.includes(key)) {
1272
+ return false;
1273
+ }
1274
+ const passedKey = `${path}.${key}`;
1275
+ return /* @__PURE__ */ jsxs(Box, { marginTop: 6, marginBottom: 6, marginLeft: 6, children: [
1276
+ isSubbranchObject && /* @__PURE__ */ jsx(
1277
+ CheckboxImpl,
1278
+ {
1279
+ disabled: hasAllNullValue,
1280
+ checked: getCheckedState(hasTruthyValue, hasFalsyValue),
1281
+ onCheckedChange: () => onTreeItemClick(flattenedKeys, hasTruthyValue),
1282
+ children: /* @__PURE__ */ jsxs(Flex, { alignItems: "center", children: [
1283
+ !!value?.__component__ && /* @__PURE__ */ jsx(Flex, { alignItems: "center", marginRight: 2, children: /* @__PURE__ */ jsx(ForwardRef$P, { width: "1rem", height: "1rem" }) }),
1284
+ value?.__component__ || key || "-"
1285
+ ] })
1286
+ }
1287
+ ),
1288
+ /* @__PURE__ */ jsx(TreeItem, { onTreeItemClick, passedKey, children: createTree(key, value, passedKey) })
1289
+ ] }, passedKey);
1290
+ }) });
1291
+ }
1292
+ return /* @__PURE__ */ jsx(TreeItem, { onTreeItemClick, passedKey: path, label: name, value: branch }, path);
1293
+ };
1294
+ return /* @__PURE__ */ jsx(Box, { children: Object.entries(objects).map(([key, value]) => {
1295
+ return value.__model__ !== void 0 && /* @__PURE__ */ jsx(Box, { borderColor: "neutral200", hasRadius: true, children: /* @__PURE__ */ jsx(Accordion.Root, { size: "S", children: /* @__PURE__ */ jsxs(Accordion.Item, { value: key, children: [
1296
+ /* @__PURE__ */ jsxs(Flex, { alignItems: "center", justifyContent: "space-between", children: [
1297
+ /* @__PURE__ */ jsx(Accordion.Header, { style: { flex: 1 }, children: /* @__PURE__ */ jsx(Accordion.Trigger, { description: key, children: key }) }),
1298
+ /* @__PURE__ */ jsx(
1299
+ SwitchImpl,
1300
+ {
1301
+ label: `switch_tree_${key}`,
1302
+ onCheckedChange: () => onTreeItemClick([`${key}.__model__`], value.__model__),
1303
+ checked: !!value.__model__,
1304
+ style: { marginRight: "1rem" }
1305
+ }
1306
+ )
1307
+ ] }),
1308
+ /* @__PURE__ */ jsx(Accordion.Content, { children: createTree(key, value, key) })
1309
+ ] }) }) }, `key`);
1310
+ }) });
1311
+ };
1312
+ const CustomBullet = styled.div`
1313
+ width: ${4 / 16}rem;
1314
+ height: ${4 / 16}rem;
1315
+ margin-right: ${12 / 16}rem;
1316
+ background-color: ${({ theme }) => theme.colors.neutral600};
1317
+ border-radius: 50%;
1318
+ `;
1319
+ function ContentTransferSetupEmpty() {
1320
+ const { t: t2 } = useTranslation();
1321
+ return /* @__PURE__ */ jsxs("div", { children: [
1322
+ /* @__PURE__ */ jsx(Typography, { textColor: "neutral600", variant: "beta", children: t2("plugin_settings.there_is_nothing_to_transfer") }),
1323
+ /* @__PURE__ */ jsx("br", {}),
1324
+ /* @__PURE__ */ jsx("br", {}),
1325
+ /* @__PURE__ */ jsx(Typography, { textColor: "neutral600", variant: "omega", children: t2("plugin_settings.please_check_that_you_have_entered_a_valid_collection") }),
1326
+ /* @__PURE__ */ jsx("br", {}),
1327
+ /* @__PURE__ */ jsxs(Flex, { marginTop: 1, alignItems: "center", children: [
1328
+ /* @__PURE__ */ jsx(CustomBullet, {}),
1329
+ /* @__PURE__ */ jsx(Typography, { textColor: "neutral600", variant: "omega", children: /* @__PURE__ */ jsx(
1330
+ Trans,
1331
+ {
1332
+ i18nKey: "plugin_settings.step_1",
1333
+ components: { 1: /* @__PURE__ */ jsx(Typography, { variant: "omega", fontWeight: "semiBold" }) }
1334
+ }
1335
+ ) })
1336
+ ] }),
1337
+ /* @__PURE__ */ jsxs(Flex, { marginTop: 1, alignItems: "center", children: [
1338
+ /* @__PURE__ */ jsx(CustomBullet, {}),
1339
+ /* @__PURE__ */ jsx(Typography, { textColor: "neutral600", variant: "omega", children: /* @__PURE__ */ jsx(
1340
+ Trans,
1341
+ {
1342
+ i18nKey: "plugin_settings.step_2",
1343
+ components: { 1: /* @__PURE__ */ jsx(Typography, { variant: "omega", fontWeight: "semiBold" }) }
1344
+ }
1345
+ ) })
1346
+ ] }),
1347
+ /* @__PURE__ */ jsxs(Flex, { marginTop: 1, alignItems: "center", children: [
1348
+ /* @__PURE__ */ jsx(CustomBullet, {}),
1349
+ /* @__PURE__ */ jsx(Typography, { textColor: "neutral600", variant: "omega", children: /* @__PURE__ */ jsx(
1350
+ Trans,
1351
+ {
1352
+ i18nKey: "plugin_settings.step_3",
1353
+ components: { 1: /* @__PURE__ */ jsx(Typography, { variant: "omega", fontWeight: "semiBold" }) }
1354
+ }
1355
+ ) })
1356
+ ] }),
1357
+ /* @__PURE__ */ jsxs(Flex, { marginTop: 1, alignItems: "center", children: [
1358
+ /* @__PURE__ */ jsx(CustomBullet, {}),
1359
+ /* @__PURE__ */ jsx(Typography, { textColor: "neutral600", variant: "omega", children: /* @__PURE__ */ jsx(
1360
+ Trans,
1361
+ {
1362
+ i18nKey: "plugin_settings.step_4",
1363
+ components: { 1: /* @__PURE__ */ jsx(Typography, { variant: "omega", fontWeight: "semiBold" }) }
1364
+ }
1365
+ ) })
1366
+ ] }),
1367
+ /* @__PURE__ */ jsxs(Flex, { marginTop: 1, alignItems: "center", children: [
1368
+ /* @__PURE__ */ jsx(CustomBullet, {}),
1369
+ /* @__PURE__ */ jsx(Typography, { textColor: "neutral600", variant: "omega", children: /* @__PURE__ */ jsx(
1370
+ Trans,
1371
+ {
1372
+ i18nKey: "plugin_settings.step_5",
1373
+ components: { 1: /* @__PURE__ */ jsx(Typography, { variant: "omega", fontWeight: "semiBold" }) }
1374
+ }
1375
+ ) })
1376
+ ] })
1377
+ ] });
1378
+ }
1379
+ const ContentTransferSetup = () => {
1380
+ const { t: t2 } = useTranslation();
1381
+ const [isLoading, setIsLoading] = useState(true);
1382
+ const [showAlert, setShowAlert] = useState(false);
1383
+ const [showModalChangedAlert, setShowModalChangedAlert] = useState(false);
1384
+ const [, setItemsExpandedModel] = useState([]);
1385
+ const buildItemsExpandedModel = (models) => {
1386
+ const r2 = {};
1387
+ getFilteredModelsSchemas(models).forEach((model, index) => {
1388
+ r2[model.modelUid] = index === 0;
1389
+ });
1390
+ return r2;
1391
+ };
1392
+ const [, setTreeModelsSchemas] = useState([]);
1393
+ const [originalFormModel, setOriginalFormModel] = useState([]);
1394
+ const [formModel, setFormModel] = useState([]);
1395
+ const [hasUnsavedChanges, setHasUnsavedChanges] = useState(false);
1396
+ const onCancelClick = () => {
1397
+ setFormModel(cloneDeep(originalFormModel));
1398
+ setHasUnsavedChanges(false);
1399
+ };
1400
+ const saveContentTransferSetup = async (data) => {
1401
+ try {
1402
+ await PluginSettingsService.updateContentTransferSetup(data);
1403
+ setOriginalFormModel(cloneDeep(data));
1404
+ setHasUnsavedChanges(false);
1405
+ setShowAlert(true);
1406
+ setShowModalChangedAlert(false);
1407
+ } catch (e2) {
1408
+ throw e2.data;
1409
+ }
1410
+ };
1411
+ const onTreeItemClick = (keys2, currentValue) => {
1412
+ console.log("keys", keys2);
1413
+ console.log("currentValue", currentValue);
1414
+ setFormModel((prevState) => {
1415
+ const modelName = keys2[0].split(".")[0];
1416
+ let arrayIndex;
1417
+ const model = prevState.find((m, index) => {
1418
+ if (Object.keys(m).includes(modelName)) {
1419
+ arrayIndex = index;
1420
+ return true;
1421
+ }
1422
+ return false;
1423
+ });
1424
+ if (model === void 0) {
1425
+ return prevState;
1426
+ }
1427
+ const newState = cloneDeep(prevState);
1428
+ keys2.forEach((key) => {
1429
+ if (key.includes("__component__")) {
1430
+ return;
1431
+ }
1432
+ const isEditable = get(model, key) !== null;
1433
+ if (isEditable) {
1434
+ set(model, key, !currentValue);
1435
+ }
1436
+ });
1437
+ newState.splice(arrayIndex, 1, model);
1438
+ setHasUnsavedChanges(!isEqual(originalFormModel, newState) || showModalChangedAlert);
1439
+ return newState;
1440
+ });
1441
+ };
1442
+ const link = "https://localazy.com/docs/strapi";
1443
+ const onReadDocumentationClick = () => {
1444
+ window.open(link, "_blank");
1445
+ };
1446
+ useEffect(() => {
1447
+ async function fetchData() {
1448
+ setIsLoading(true);
1449
+ const [models, localizableModels] = await Promise.all([
1450
+ StrapiModelService.getModels(),
1451
+ StrapiModelService.getLocalizableModels()
1452
+ ]);
1453
+ const storedContentTransferSetup = await PluginSettingsService.getContentTransferSetup();
1454
+ const itemsExpandedModel = buildItemsExpandedModel(localizableModels);
1455
+ setItemsExpandedModel(itemsExpandedModel);
1456
+ const allModelsTree = getModelsTree(models, models);
1457
+ const localizableTree = getModelsTree(models, localizableModels);
1458
+ setTreeModelsSchemas(localizableTree);
1459
+ const computedFormModel = buildContentTransferSetupSchema(
1460
+ localizableTree,
1461
+ storedContentTransferSetup.setup,
1462
+ allModelsTree
1463
+ );
1464
+ setFormModel(computedFormModel);
1465
+ setOriginalFormModel(cloneDeep(computedFormModel));
1466
+ console.log("computedFormModel");
1467
+ console.log(computedFormModel);
1468
+ const localHasModelChanged = await hasModelChanged(localizableTree, storedContentTransferSetup.setup);
1469
+ setShowModalChangedAlert(localHasModelChanged);
1470
+ setHasUnsavedChanges(localHasModelChanged);
1471
+ setIsLoading(false);
1472
+ }
1473
+ fetchData();
1474
+ }, []);
1475
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [
1476
+ /* @__PURE__ */ jsx(
1477
+ Layouts.Header,
1478
+ {
1479
+ title: t2("plugin_settings.content_transfer_setup"),
1480
+ subtitle: t2("plugin_settings.content_transfer_setup_description"),
1481
+ primaryAction: /* @__PURE__ */ jsxs(Flex, { gap: 2, children: [
1482
+ /* @__PURE__ */ jsx(Button, { variant: "secondary", disabled: !hasUnsavedChanges, onClick: onCancelClick, children: t2("plugin_settings.cancel") }),
1483
+ /* @__PURE__ */ jsx(
1484
+ Button,
1485
+ {
1486
+ startIcon: /* @__PURE__ */ jsx(ForwardRef$4z, {}),
1487
+ disabled: !hasUnsavedChanges,
1488
+ onClick: () => {
1489
+ saveContentTransferSetup(formModel);
1490
+ },
1491
+ children: t2("plugin_settings.save")
1492
+ }
1493
+ )
1494
+ ] }),
1495
+ as: "h2"
1496
+ }
1497
+ ),
1498
+ /* @__PURE__ */ jsxs(Box, { marginRight: 10, marginLeft: 10, children: [
1499
+ !isLoading && showAlert && /* @__PURE__ */ jsx(Box, { marginBottom: 8, children: /* @__PURE__ */ jsx(
1500
+ Alert,
1501
+ {
1502
+ onClose: () => setShowAlert(false),
1503
+ closeLabel: t2("plugin_settings.close"),
1504
+ title: t2("plugin_settings.content_transfer_setup_saved"),
1505
+ variant: "success",
1506
+ children: t2("plugin_settings.content_transfer_setup_saved_successfully")
1507
+ }
1508
+ ) }),
1509
+ !isLoading && showModalChangedAlert && /* @__PURE__ */ jsx(Box, { marginBottom: 8, children: /* @__PURE__ */ jsx(
1510
+ Alert,
1511
+ {
1512
+ onClose: () => setShowModalChangedAlert(false),
1513
+ closeLabel: t2("plugin_settings.close"),
1514
+ title: t2("plugin_settings.content_types_model_changed"),
1515
+ variant: "default",
1516
+ children: t2("plugin_settings.please_update_your_content")
1517
+ }
1518
+ ) }),
1519
+ !isLoading && /* @__PURE__ */ jsxs(Box, { background: "neutral0", padding: 7, paddingTop: 6, shadow: "tableShadow", hasRadius: true, children: [
1520
+ !formModel.length && // empty state
1521
+ /* @__PURE__ */ jsx(ContentTransferSetupEmpty, {}),
1522
+ formModel.map((tree, index) => {
1523
+ return /* @__PURE__ */ jsx(Box, { marginBottom: 3, children: /* @__PURE__ */ jsx(Tree, { onTreeItemClick, objects: tree, initiallyExpanded: index === 0 }) }, `box_tree_${index}`);
1524
+ }),
1525
+ !!formModel.length && /* @__PURE__ */ jsxs(Box, { children: [
1526
+ /* @__PURE__ */ jsx(Box, { paddingTop: 6, paddingBottom: 6, children: /* @__PURE__ */ jsx(Divider, {}) }),
1527
+ /* @__PURE__ */ jsx(Typography, { variant: "omega", children: t2("plugin_settings.you_can_upload_download") }),
1528
+ /* @__PURE__ */ jsx(Typography, { variant: "omega", fontWeight: "semiBold", children: t2("plugin_settings.only_text_based_content") }),
1529
+ /* @__PURE__ */ jsx("br", {}),
1530
+ /* @__PURE__ */ jsx("br", {}),
1531
+ /* @__PURE__ */ jsx(Typography, { variant: "omega", children: t2("plugin_settings.learn_more_in_docs_message_a") }),
1532
+ /* @__PURE__ */ jsx(
1533
+ Typography,
1534
+ {
1535
+ onClick: onReadDocumentationClick,
1536
+ variant: "omega",
1537
+ fontWeight: "semiBold",
1538
+ textColor: "primary600",
1539
+ style: { cursor: "pointer" },
1540
+ children: t2("plugin_settings.learn_more_in_docs_message_b")
1541
+ }
1542
+ )
1543
+ ] })
1544
+ ] })
1545
+ ] })
1546
+ ] });
1547
+ };
1548
+ export {
1549
+ ContentTransferSetup
1550
+ };