@lovrabet/rabetbase-cli 2.4.5 → 2.4.6-beta.2

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 (347) hide show
  1. package/README.md +3 -2
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/members-list.js +1 -1
  23. package/lib/commands/app/remote-directory.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/get.js +1 -1
  53. package/lib/commands/config/index.js +1 -1
  54. package/lib/commands/config/list.js +1 -1
  55. package/lib/commands/config/set.js +1 -1
  56. package/lib/commands/config/shared.js +1 -1
  57. package/lib/commands/data/filter.js +1 -1
  58. package/lib/commands/data/getOne.js +1 -1
  59. package/lib/commands/data/index.js +1 -1
  60. package/lib/commands/data/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/business-groups.js +1 -1
  63. package/lib/commands/dataset/capability.js +1 -1
  64. package/lib/commands/dataset/delete.js +1 -1
  65. package/lib/commands/dataset/detail.js +1 -1
  66. package/lib/commands/dataset/extend-update.js +1 -1
  67. package/lib/commands/dataset/field-update.js +1 -1
  68. package/lib/commands/dataset/generate.js +1 -1
  69. package/lib/commands/dataset/index.js +1 -1
  70. package/lib/commands/dataset/list.js +1 -1
  71. package/lib/commands/dataset/operations.js +1 -1
  72. package/lib/commands/dataset/relation-audit.js +1 -1
  73. package/lib/commands/dataset/relation-create.js +1 -1
  74. package/lib/commands/dataset/relation-delete.js +1 -1
  75. package/lib/commands/dataset/relation-shared.js +1 -1
  76. package/lib/commands/dataset/relation-update.js +1 -1
  77. package/lib/commands/dataset/relations.js +1 -1
  78. package/lib/commands/dataset/rename.js +1 -1
  79. package/lib/commands/dataset/restore.js +1 -1
  80. package/lib/commands/db/analysis-batching.js +1 -1
  81. package/lib/commands/db/analyze-batch-plan.js +1 -1
  82. package/lib/commands/db/analyze-cancel.js +1 -1
  83. package/lib/commands/db/analyze-start.js +1 -1
  84. package/lib/commands/db/analyze-status.js +1 -1
  85. package/lib/commands/db/create.js +1 -1
  86. package/lib/commands/db/delete.js +1 -1
  87. package/lib/commands/db/detail.js +1 -1
  88. package/lib/commands/db/diff-refresh-start.js +1 -1
  89. package/lib/commands/db/diff-refresh-status.js +1 -1
  90. package/lib/commands/db/diff.js +1 -1
  91. package/lib/commands/db/index.js +1 -1
  92. package/lib/commands/db/list.js +1 -1
  93. package/lib/commands/db/shared.js +1 -1
  94. package/lib/commands/db/tables.js +1 -1
  95. package/lib/commands/db/test.js +1 -1
  96. package/lib/commands/db/update.js +1 -1
  97. package/lib/commands/doctor.js +1 -1
  98. package/lib/commands/file/index.js +1 -1
  99. package/lib/commands/init/index.js +1 -1
  100. package/lib/commands/issue/index.js +1 -1
  101. package/lib/commands/issue/nudge.js +1 -1
  102. package/lib/commands/issue/report.js +1 -1
  103. package/lib/commands/issue/shared.js +1 -1
  104. package/lib/commands/kb/create.js +1 -1
  105. package/lib/commands/kb/delete.js +1 -1
  106. package/lib/commands/kb/detail.js +1 -1
  107. package/lib/commands/kb/index.js +1 -1
  108. package/lib/commands/kb/list.js +1 -1
  109. package/lib/commands/kb/shared.js +1 -1
  110. package/lib/commands/kb/update.js +1 -1
  111. package/lib/commands/logs/index.js +1 -1
  112. package/lib/commands/menu/asset-update.js +1 -1
  113. package/lib/commands/menu/delete.js +1 -1
  114. package/lib/commands/menu/external-link-create.js +1 -1
  115. package/lib/commands/menu/external-link-update.js +1 -1
  116. package/lib/commands/menu/group-create.js +1 -1
  117. package/lib/commands/menu/group-update.js +1 -1
  118. package/lib/commands/menu/index.js +1 -1
  119. package/lib/commands/menu/list.js +1 -1
  120. package/lib/commands/menu/move.js +1 -1
  121. package/lib/commands/menu/regroup-start.js +1 -1
  122. package/lib/commands/menu/rename.js +1 -1
  123. package/lib/commands/menu/shared/compare-table.js +1 -1
  124. package/lib/commands/menu/shared/delete-plan.js +1 -1
  125. package/lib/commands/menu/shared/facts.js +1 -1
  126. package/lib/commands/menu/shared/index.js +1 -1
  127. package/lib/commands/menu/shared/inquirer.js +1 -1
  128. package/lib/commands/menu/shared/local-pages.js +1 -1
  129. package/lib/commands/menu/shared/logic.js +1 -1
  130. package/lib/commands/menu/shared/mutations.d.ts +8 -7
  131. package/lib/commands/menu/shared/mutations.js +1 -1
  132. package/lib/commands/menu/shared/service.js +1 -1
  133. package/lib/commands/menu/shared/sync-core.js +1 -1
  134. package/lib/commands/menu/shared/types.d.ts +17 -2
  135. package/lib/commands/menu/shared/update-core.js +1 -1
  136. package/lib/commands/menu/shared/valid-url.js +1 -1
  137. package/lib/commands/menu/sync.js +1 -1
  138. package/lib/commands/{page/standard-page-status.d.ts → menu/visibility-update.d.ts} +1 -1
  139. package/lib/commands/menu/visibility-update.js +1 -0
  140. package/lib/commands/notification/config-create.js +1 -1
  141. package/lib/commands/notification/config-delete.js +1 -1
  142. package/lib/commands/notification/config-list.js +1 -1
  143. package/lib/commands/notification/config-update.js +1 -1
  144. package/lib/commands/notification/index.js +1 -1
  145. package/lib/commands/notification/shared.js +1 -1
  146. package/lib/commands/ocr/index.js +1 -1
  147. package/lib/commands/page/create.d.ts +2 -0
  148. package/lib/commands/page/create.js +1 -0
  149. package/lib/commands/page/{react → custom}/detail.d.ts +1 -1
  150. package/lib/commands/page/custom/detail.js +1 -0
  151. package/lib/commands/page/{react → custom}/list.d.ts +1 -1
  152. package/lib/commands/page/custom/list.js +1 -0
  153. package/lib/commands/page/{react → custom}/publish.d.ts +1 -1
  154. package/lib/commands/page/custom/publish.js +1 -0
  155. package/lib/commands/page/{react → custom}/shared.d.ts +15 -15
  156. package/lib/commands/page/custom/shared.js +1 -0
  157. package/lib/commands/page/{react → custom}/syntax.d.ts +2 -2
  158. package/lib/commands/page/custom/syntax.js +1 -0
  159. package/lib/commands/page/custom/template.js +1 -0
  160. package/lib/commands/page/{react → custom}/update.d.ts +1 -1
  161. package/lib/commands/page/custom/update.js +1 -0
  162. package/lib/commands/page/data-list-status.d.ts +2 -0
  163. package/lib/commands/page/data-list-status.js +1 -0
  164. package/lib/commands/page/generate-start.js +1 -1
  165. package/lib/commands/page/generate-status.js +1 -1
  166. package/lib/commands/page/index.js +1 -1
  167. package/lib/commands/page/pull.js +1 -1
  168. package/lib/commands/page/push.js +1 -1
  169. package/lib/commands/page/relation-audit.js +1 -1
  170. package/lib/commands/page/restore.js +1 -1
  171. package/lib/commands/page/shared.d.ts +18 -18
  172. package/lib/commands/page/shared.js +1 -1
  173. package/lib/commands/page/sync.js +1 -1
  174. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  175. package/lib/commands/project/create/format-elapsed.js +1 -1
  176. package/lib/commands/project/create/main.js +1 -1
  177. package/lib/commands/project/create/materialize-project-template.js +1 -1
  178. package/lib/commands/project/create/project-name.js +1 -1
  179. package/lib/commands/project/create/project-template-archive.js +1 -1
  180. package/lib/commands/project/create/project-template-path.js +1 -1
  181. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  182. package/lib/commands/project/create/use-format-code.js +1 -1
  183. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  184. package/lib/commands/project/index.js +1 -1
  185. package/lib/commands/project/upgrade.js +1 -1
  186. package/lib/commands/registry.js +1 -1
  187. package/lib/commands/role/delete.js +1 -1
  188. package/lib/commands/role/detail.js +1 -1
  189. package/lib/commands/role/index.js +1 -1
  190. package/lib/commands/role/list.js +1 -1
  191. package/lib/commands/role/shared.js +1 -1
  192. package/lib/commands/role/update.js +1 -1
  193. package/lib/commands/role/user-add.js +1 -1
  194. package/lib/commands/role/user-remove.js +1 -1
  195. package/lib/commands/role/user-resolve.js +1 -1
  196. package/lib/commands/run/index.js +1 -1
  197. package/lib/commands/schema.js +1 -1
  198. package/lib/commands/sql/create.js +1 -1
  199. package/lib/commands/sql/delete.js +1 -1
  200. package/lib/commands/sql/detail.js +1 -1
  201. package/lib/commands/sql/exec.js +1 -1
  202. package/lib/commands/sql/index.js +1 -1
  203. package/lib/commands/sql/list.js +1 -1
  204. package/lib/commands/sql/pull.js +1 -1
  205. package/lib/commands/sql/push.js +1 -1
  206. package/lib/commands/sql/shared.js +1 -1
  207. package/lib/commands/sql/status.js +1 -1
  208. package/lib/commands/sql/validate.js +1 -1
  209. package/lib/commands/task/index.js +1 -1
  210. package/lib/commands/task/status.js +1 -1
  211. package/lib/commands/tenant/index.js +1 -1
  212. package/lib/commands/tenant/members-list.js +1 -1
  213. package/lib/commands/tenant/shared.js +1 -1
  214. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  215. package/lib/commands/user-account/index.js +1 -1
  216. package/lib/commands/workspace/add.js +1 -1
  217. package/lib/commands/workspace/index.js +1 -1
  218. package/lib/commands/workspace/remove.js +1 -1
  219. package/lib/config/schema.js +1 -1
  220. package/lib/constant/cdn.js +1 -1
  221. package/lib/constant/cli.js +1 -1
  222. package/lib/constant/defaults.js +1 -1
  223. package/lib/constant/domain.js +1 -1
  224. package/lib/constant/env.js +1 -1
  225. package/lib/constant/output.js +1 -1
  226. package/lib/constant/paths.js +1 -1
  227. package/lib/constant/risk.js +1 -1
  228. package/lib/context/app-resolver.js +1 -1
  229. package/lib/context/auth-resolver.js +1 -1
  230. package/lib/context/config-loader.js +1 -1
  231. package/lib/context.js +1 -1
  232. package/lib/core/alias-resolver.js +1 -1
  233. package/lib/core/api-client.d.ts +43 -43
  234. package/lib/core/api-client.js +1 -1
  235. package/lib/core/bff/config.js +1 -1
  236. package/lib/core/bff/file-system.js +1 -1
  237. package/lib/core/bff/hash.js +1 -1
  238. package/lib/core/bff/lock.js +1 -1
  239. package/lib/core/bff/utils.d.ts +3 -1
  240. package/lib/core/bff/utils.js +1 -1
  241. package/lib/core/db-resolver.js +1 -1
  242. package/lib/core/page/file-system.js +1 -1
  243. package/lib/core/page/hash.js +1 -1
  244. package/lib/core/page/lock.js +1 -1
  245. package/lib/core/sql-index-auditor.js +1 -1
  246. package/lib/core/sql-sync/config.js +1 -1
  247. package/lib/core/sql-sync/file-system.js +1 -1
  248. package/lib/core/sql-sync/hash.js +1 -1
  249. package/lib/core/sql-sync/lock.js +1 -1
  250. package/lib/core/sql-sync/utils.js +1 -1
  251. package/lib/core/sql-validator.js +1 -1
  252. package/lib/errors.js +1 -1
  253. package/lib/framework/build-all-flags.js +1 -1
  254. package/lib/framework/error-output.js +1 -1
  255. package/lib/framework/explicit-yes.js +1 -1
  256. package/lib/framework/flags.js +1 -1
  257. package/lib/framework/help.js +1 -1
  258. package/lib/framework/index.js +1 -1
  259. package/lib/framework/output.js +1 -1
  260. package/lib/framework/response.js +1 -1
  261. package/lib/framework/runner-alias.js +1 -1
  262. package/lib/framework/runner.js +1 -1
  263. package/lib/framework/schema-export.js +1 -1
  264. package/lib/framework/types.js +1 -1
  265. package/lib/generated/build-info.d.ts +4 -4
  266. package/lib/generated/build-info.js +1 -1
  267. package/lib/help.js +1 -1
  268. package/lib/postinstall.js +1 -1
  269. package/lib/runtime/confirmation.js +1 -1
  270. package/lib/runtime/event.js +1 -1
  271. package/lib/runtime/index.js +1 -1
  272. package/lib/runtime/queue.js +1 -1
  273. package/lib/runtime/resolve.js +1 -1
  274. package/lib/skills/builtin-skill.js +1 -1
  275. package/lib/skills/main.js +1 -1
  276. package/lib/skills/npx-skills-add.js +1 -1
  277. package/lib/skills/skill-presence.js +1 -1
  278. package/lib/telemetry/cli-command-trace.js +1 -1
  279. package/lib/telemetry/cli-help-trace.js +1 -1
  280. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  281. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  282. package/lib/telemetry/send-cli-trace-log.js +1 -1
  283. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  284. package/lib/utils/ai_config.js +1 -1
  285. package/lib/utils/apply-jq-filter.js +1 -1
  286. package/lib/utils/cdn-config.js +1 -1
  287. package/lib/utils/check-sdk-version.js +1 -1
  288. package/lib/utils/cli-version-check.js +1 -1
  289. package/lib/utils/cli-version-policy.js +1 -1
  290. package/lib/utils/config.js +1 -1
  291. package/lib/utils/entity-with-id.js +1 -1
  292. package/lib/utils/file-utils.js +1 -1
  293. package/lib/utils/guides-cdn.js +1 -1
  294. package/lib/utils/http-client.js +1 -1
  295. package/lib/utils/is-non-interactive.js +1 -1
  296. package/lib/utils/logger.js +1 -1
  297. package/lib/utils/params.js +1 -1
  298. package/lib/utils/platform.js +1 -1
  299. package/lib/utils/rules-cdn.js +1 -1
  300. package/lib/utils/sleep.js +1 -1
  301. package/lib/utils/template-replacer.js +1 -1
  302. package/lib/utils/update-notice.js +1 -1
  303. package/lib/utils/version.js +1 -1
  304. package/lib/utils/with-active-cookie.js +1 -1
  305. package/lib/utils/write-cli-side-channel.js +1 -1
  306. package/package.json +1 -1
  307. package/skills/rabetbase/SKILL.md +35 -34
  308. package/skills/rabetbase/guides/backend-function.md +63 -18
  309. package/skills/rabetbase/guides/bff-creation-workflow.md +2 -0
  310. package/skills/rabetbase/guides/{react-custom-page-workflow.md → custom-page-workflow.md} +45 -45
  311. package/skills/rabetbase/guides/page-development-workflow.md +22 -22
  312. package/skills/rabetbase/knowledge/{react-page → custom-page}/components.md +2 -2
  313. package/skills/rabetbase/knowledge/{react-page → custom-page}/generation-standards.md +6 -6
  314. package/skills/rabetbase/knowledge/page-schema/LrSmartTable.md +6 -6
  315. package/skills/rabetbase/knowledge/page-schema/external-resources-usage.md +1 -1
  316. package/skills/rabetbase/references/rabetbase-bff-create.md +2 -0
  317. package/skills/rabetbase/references/{rabetbase-standard-page-status.md → rabetbase-data-list-status.md} +6 -6
  318. package/skills/rabetbase/references/rabetbase-dataset-generate.md +1 -1
  319. package/skills/rabetbase/references/rabetbase-dataset-relation-mutations.md +1 -1
  320. package/skills/rabetbase/references/rabetbase-dataset-relations.md +1 -1
  321. package/skills/rabetbase/references/rabetbase-dataset-restore.md +1 -1
  322. package/skills/rabetbase/references/rabetbase-menu-list.md +4 -2
  323. package/skills/rabetbase/references/rabetbase-menu-visibility-update.md +59 -0
  324. package/skills/rabetbase/references/rabetbase-page-create.md +31 -0
  325. package/skills/rabetbase/references/{rabetbase-page-react-detail.md → rabetbase-page-custom-detail.md} +5 -5
  326. package/skills/rabetbase/references/{rabetbase-page-react-list.md → rabetbase-page-custom-list.md} +4 -4
  327. package/skills/rabetbase/references/{rabetbase-page-react-publish.md → rabetbase-page-custom-publish.md} +6 -6
  328. package/skills/rabetbase/references/{rabetbase-page-react-update.md → rabetbase-page-custom-update.md} +6 -6
  329. package/skills/rabetbase/references/rabetbase-page-generate-start.md +5 -4
  330. package/skills/rabetbase/references/rabetbase-page-generate-status.md +4 -4
  331. package/skills/rabetbase/references/rabetbase-page-pull.md +2 -2
  332. package/skills/rabetbase/references/rabetbase-page-relation-binding.md +1 -1
  333. package/skills/rabetbase/references/rabetbase-page-restore.md +7 -7
  334. package/skills/rabetbase/references/rabetbase-page-sync.md +3 -3
  335. package/skills/rabetbase.manifest.json +13 -12
  336. package/lib/commands/page/react/create.d.ts +0 -2
  337. package/lib/commands/page/react/create.js +0 -1
  338. package/lib/commands/page/react/detail.js +0 -1
  339. package/lib/commands/page/react/list.js +0 -1
  340. package/lib/commands/page/react/publish.js +0 -1
  341. package/lib/commands/page/react/shared.js +0 -1
  342. package/lib/commands/page/react/syntax.js +0 -1
  343. package/lib/commands/page/react/template.js +0 -1
  344. package/lib/commands/page/react/update.js +0 -1
  345. package/lib/commands/page/standard-page-status.js +0 -1
  346. package/skills/rabetbase/references/rabetbase-page-react-create.md +0 -29
  347. /package/lib/commands/page/{react → custom}/template.d.ts +0 -0
@@ -1 +1 @@
1
- const a130_0x21e9e4=a130_0x39b6;function a130_0x504d(){const _0x2c1307=['47665ntArfk','686539yUXzFO','5325388rDflrU','map','string','path','24IQxzVd','4911591BpwksF','225DngHHa','\x0a\x20\x20Available\x20local\x20paths:\x20','1056PIlYiO','Invalid\x20--params\x20fields:\x20','join','Menu\x20sync\x20completed','54AXxQLz','field','procode','JS\x20URL\x20is\x20unreachable:\x20','setLogPath','info','34786jEdBVl','label','import','cwd','136FhpcDB','10397024oliIAS','isArray','get','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','cssUrl','trim','dryRun','jsUrl','hasOwn','menu-sync','length','push','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','pages','keys',':\x20expected\x20a\x20non-empty\x20string.','160010YhyowD','has','Invalid\x20--params:\x20expected\x20a\x20JSON\x20object.','--params.pages\x20is\x20no\x20longer\x20supported.\x20Use\x20--paths\x20with\x20exact\x20local\x20page\x20paths.','filter','Invalid\x20--params\x20JSON.','message'];a130_0x504d=function(){return _0x2c1307;};return a130_0x504d();}(function(_0x3e9b3a,_0x5d9838){const _0x2b3a59=a130_0x39b6,_0x68d60d=_0x3e9b3a();while(!![]){try{const _0x5dd721=-parseInt(_0x2b3a59(0xf0))/0x1*(parseInt(_0x2b3a59(0xc6))/0x2)+parseInt(_0x2b3a59(0xe9))/0x3+-parseInt(_0x2b3a59(0xe4))/0x4+parseInt(_0x2b3a59(0xe2))/0x5*(parseInt(_0x2b3a59(0xec))/0x6)+parseInt(_0x2b3a59(0xe3))/0x7*(-parseInt(_0x2b3a59(0xca))/0x8)+parseInt(_0x2b3a59(0xea))/0x9*(-parseInt(_0x2b3a59(0xdb))/0xa)+parseInt(_0x2b3a59(0xcb))/0xb*(parseInt(_0x2b3a59(0xe8))/0xc);if(_0x5dd721===_0x5d9838)break;else _0x68d60d['push'](_0x68d60d['shift']());}catch(_0x4eb0dd){_0x68d60d['push'](_0x68d60d['shift']());}}}(a130_0x504d,0xd3c8e));function a130_0x39b6(_0x345bfc,_0x7297f3){_0x345bfc=_0x345bfc-0xc2;const _0x504d0b=a130_0x504d();let _0x39b65c=_0x504d0b[_0x345bfc];return _0x39b65c;}import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';import{getOnlineMenuList,createMenus}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';import{logger}from'../../../utils/logger.js';const MENU_SYNC_PARAM_KEYS=new Set([a130_0x21e9e4(0xd2),a130_0x21e9e4(0xcf)]);function validateParams(_0x246266){const _0x3cefb1=a130_0x21e9e4,_0x1b25cc=[];return _0x246266['jsUrl']&&!isValidJsHttpsUrl(_0x246266['jsUrl'])&&_0x1b25cc[_0x3cefb1(0xd6)]({'field':_0x3cefb1(0xd2),'message':_0x3cefb1(0xce)}),_0x246266['cssUrl']&&!isValidCssHttpsUrl(_0x246266['cssUrl'])&&_0x1b25cc[_0x3cefb1(0xd6)]({'field':_0x3cefb1(0xcf),'message':_0x3cefb1(0xd7)}),_0x1b25cc;}export async function runMenuSyncCore(_0x54cb39,_0x16ae5b,_0x229341=[],_0x30249d,_0x23b831={}){const _0x4d6b56=a130_0x21e9e4,_0x369900=parseMenuSyncParams(_0x30249d),_0x503658=[...new Set(_0x229341['map'](_0x281155=>_0x281155['trim']())['filter'](Boolean))],_0x47edfb=_0x369900[_0x4d6b56(0xd2)],_0x7dfd43=_0x369900['cssUrl'],_0x2f68a7=[];if(_0x47edfb)_0x2f68a7[_0x4d6b56(0xd6)](_0x47edfb);if(_0x7dfd43)_0x2f68a7[_0x4d6b56(0xd6)](_0x7dfd43);const _0x5d2808=validateParams(_0x369900);if(_0x5d2808[_0x4d6b56(0xd5)]>0x0){const _0x687ff2=_0x5d2808[_0x4d6b56(0xe5)](_0x32dd4a=>'--params.'+_0x32dd4a[_0x4d6b56(0xf1)]+':\x20'+_0x32dd4a[_0x4d6b56(0xe1)])['join'](';\x20');throw new Error('Invalid\x20--params:\x20'+_0x687ff2);}logger[_0x4d6b56(0xc4)](process[_0x4d6b56(0xc9)]()),logger[_0x4d6b56(0xc5)](_0x4d6b56(0xd4),'Start\x20non-interactive\x20menu\x20sync',{'appCode':_0x54cb39,'selectedCount':_0x503658[_0x4d6b56(0xd5)],'jsUrl':_0x47edfb,'cssUrl':_0x7dfd43});if(_0x47edfb){const _0x20ac6c=await isUrlReachable(_0x47edfb);if(!_0x20ac6c)throw new Error(_0x4d6b56(0xc3)+_0x47edfb);}if(_0x7dfd43){const _0x32baa5=await isUrlReachable(_0x7dfd43);if(!_0x32baa5)throw new Error('CSS\x20URL\x20is\x20unreachable:\x20'+_0x7dfd43);}const _0x3477d2=getLocalPages();if(_0x3477d2[_0x4d6b56(0xd5)]===0x0){if(_0x503658[_0x4d6b56(0xd5)]>0x0)throw new Error('No\x20local\x20pages\x20matched\x20paths:\x20'+_0x503658[_0x4d6b56(0xee)](',\x20'));return{'created':0x0,'skipped':!![],'dryRun':_0x23b831[_0x4d6b56(0xd1)]===!![],'targetPages':[],'plannedMenus':[]};}const _0x958096=await getOnlineMenuList(_0x54cb39,_0x16ae5b),_0xf7591=new Set(_0x958096[_0x4d6b56(0xe5)](_0x5b8d72=>_0x5b8d72[_0x4d6b56(0xe7)]));let _0x4b8591;if(_0x503658[_0x4d6b56(0xd5)]>0x0){const _0x4ebd9d=new Map(_0x3477d2[_0x4d6b56(0xe5)](_0x4fcf79=>[_0x4fcf79[_0x4d6b56(0xe7)],_0x4fcf79])),_0x380bf6=_0x503658[_0x4d6b56(0xdf)](_0x1b194f=>!_0x4ebd9d[_0x4d6b56(0xdc)](_0x1b194f));if(_0x380bf6[_0x4d6b56(0xd5)]>0x0){const _0xb010b6=_0x3477d2[_0x4d6b56(0xe5)](_0x109197=>_0x109197[_0x4d6b56(0xe7)])['join'](',\x20');throw new Error('No\x20local\x20pages\x20matched\x20paths:\x20'+_0x380bf6[_0x4d6b56(0xee)](',\x20')+_0x4d6b56(0xeb)+_0xb010b6);}const _0x4aca5f=_0x503658[_0x4d6b56(0xdf)](_0x5493c9=>_0xf7591[_0x4d6b56(0xdc)](_0x5493c9));if(_0x4aca5f[_0x4d6b56(0xd5)]>0x0)throw new Error('Local\x20page\x20paths\x20are\x20already\x20on\x20the\x20platform:\x20'+_0x4aca5f[_0x4d6b56(0xee)](',\x20'));_0x4b8591=_0x503658[_0x4d6b56(0xe5)](_0x4696b9=>_0x4ebd9d[_0x4d6b56(0xcd)](_0x4696b9));}else _0x4b8591=_0x3477d2['filter'](_0x782d7e=>!_0xf7591[_0x4d6b56(0xdc)](_0x782d7e['path']));if(_0x4b8591[_0x4d6b56(0xd5)]===0x0)return{'created':0x0,'skipped':!![],'dryRun':_0x23b831[_0x4d6b56(0xd1)]===!![],'targetPages':[],'plannedMenus':[]};const _0x4f0606=_0x4b8591[_0x4d6b56(0xe5)](_0xd8c165=>({'type':_0x4d6b56(0xc2),'path':_0xd8c165[_0x4d6b56(0xe7)],'label':_0xd8c165[_0x4d6b56(0xc7)],'loadScriptMode':_0x4d6b56(0xc8),'resources':[..._0x2f68a7]}));if(_0x23b831[_0x4d6b56(0xd1)])return{'created':0x0,'skipped':![],'dryRun':!![],'targetPages':_0x4b8591,'plannedMenus':_0x4f0606};const _0x548da5=await createMenus(_0x54cb39,_0x16ae5b,_0x4b8591,_0x2f68a7['length']>0x0?_0x2f68a7:undefined);return logger[_0x4d6b56(0xc5)](_0x4d6b56(0xd4),_0x4d6b56(0xef),{'count':_0x4b8591[_0x4d6b56(0xd5)],'resources':_0x2f68a7}),{'created':_0x548da5['length'],'skipped':![],'dryRun':![],'targetPages':_0x4b8591,'plannedMenus':_0x4f0606,'menus':_0x548da5};}export function parseMenuSyncParams(_0x36f5db){const _0x5d5686=a130_0x21e9e4;if(!_0x36f5db||typeof _0x36f5db!==_0x5d5686(0xe6))return{};let _0x307a42;try{_0x307a42=JSON['parse'](_0x36f5db);}catch{throw new Error(_0x5d5686(0xe0));}if(typeof _0x307a42!=='object'||_0x307a42===null||Array[_0x5d5686(0xcc)](_0x307a42))throw new Error(_0x5d5686(0xdd));const _0x3651aa=_0x307a42;if(Object[_0x5d5686(0xd3)](_0x3651aa,_0x5d5686(0xd8)))throw new Error(_0x5d5686(0xde));const _0x3eba9e=Object[_0x5d5686(0xd9)](_0x3651aa)['filter'](_0x208089=>!MENU_SYNC_PARAM_KEYS['has'](_0x208089));if(_0x3eba9e['length']>0x0)throw new Error(_0x5d5686(0xed)+_0x3eba9e[_0x5d5686(0xee)](',\x20')+'.');for(const _0x52aecc of MENU_SYNC_PARAM_KEYS){const _0x324e06=_0x3651aa[_0x52aecc];if(_0x324e06!==undefined&&(typeof _0x324e06!=='string'||_0x324e06[_0x5d5686(0xd0)]()===''))throw new Error('Invalid\x20--params.'+_0x52aecc+_0x5d5686(0xda));}return{'jsUrl':typeof _0x3651aa[_0x5d5686(0xd2)]==='string'?_0x3651aa['jsUrl'][_0x5d5686(0xd0)]():undefined,'cssUrl':typeof _0x3651aa['cssUrl']===_0x5d5686(0xe6)?_0x3651aa[_0x5d5686(0xcf)]['trim']():undefined};}
1
+ (function(_0x26aaab,_0x2314a9){const _0x5ef835=a130_0x1620,_0x57ce97=_0x26aaab();while(!![]){try{const _0x6a9255=parseInt(_0x5ef835(0x127))/0x1+parseInt(_0x5ef835(0x126))/0x2*(-parseInt(_0x5ef835(0x12b))/0x3)+-parseInt(_0x5ef835(0x144))/0x4+parseInt(_0x5ef835(0x130))/0x5*(parseInt(_0x5ef835(0x134))/0x6)+parseInt(_0x5ef835(0x12a))/0x7*(-parseInt(_0x5ef835(0x140))/0x8)+-parseInt(_0x5ef835(0x14a))/0x9*(-parseInt(_0x5ef835(0x124))/0xa)+-parseInt(_0x5ef835(0x136))/0xb*(parseInt(_0x5ef835(0x121))/0xc);if(_0x6a9255===_0x2314a9)break;else _0x57ce97['push'](_0x57ce97['shift']());}catch(_0x1b6f6a){_0x57ce97['push'](_0x57ce97['shift']());}}}(a130_0x1547,0xcd311));function a130_0x1547(){const _0x2c4665=['110869eveYAO','hasOwn','message','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','menu-sync','trim','parse','--params.','dryRun','No\x20local\x20pages\x20matched\x20paths:\x20','12341928rVtZhq','join','isArray','has','1680164BbOZYb','path','CSS\x20URL\x20is\x20unreachable:\x20','cssUrl','\x0a\x20\x20Available\x20local\x20paths:\x20','Local\x20page\x20paths\x20are\x20already\x20on\x20the\x20platform:\x20','9sDGcZi','label','get','Invalid\x20--params:\x20expected\x20a\x20JSON\x20object.','Start\x20non-interactive\x20menu\x20sync','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','Invalid\x20--params\x20JSON.','procode','filter','field','cwd','60iuRLqm','JS\x20URL\x20is\x20unreachable:\x20','map','15909050ctcdHK','--params.pages\x20is\x20no\x20longer\x20supported.\x20Use\x20--paths\x20with\x20exact\x20local\x20page\x20paths.','1003736mWsOXF','1558743diRVKf','import',':\x20expected\x20a\x20non-empty\x20string.','7Kcfadx','3zHpsGn','Invalid\x20--params\x20fields:\x20','jsUrl','push','string','5ODEkZc','info','length','object','1235172ZdFBVo','Invalid\x20--params.'];a130_0x1547=function(){return _0x2c4665;};return a130_0x1547();}function a130_0x1620(_0xa00fc5,_0x4052a3){_0xa00fc5=_0xa00fc5-0x11b;const _0x1547fc=a130_0x1547();let _0x16202b=_0x1547fc[_0xa00fc5];return _0x16202b;}import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';import{getOnlineMenuList,createMenus}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';import{logger}from'../../../utils/logger.js';const MENU_SYNC_PARAM_KEYS=new Set(['jsUrl','cssUrl']);function validateParams(_0x3d2692){const _0x496ae8=a130_0x1620,_0x77c17f=[];return _0x3d2692[_0x496ae8(0x12d)]&&!isValidJsHttpsUrl(_0x3d2692['jsUrl'])&&_0x77c17f[_0x496ae8(0x12e)]({'field':_0x496ae8(0x12d),'message':_0x496ae8(0x11b)}),_0x3d2692['cssUrl']&&!isValidCssHttpsUrl(_0x3d2692[_0x496ae8(0x147)])&&_0x77c17f[_0x496ae8(0x12e)]({'field':_0x496ae8(0x147),'message':_0x496ae8(0x139)}),_0x77c17f;}export async function runMenuSyncCore(_0x11da61,_0x4884bb,_0x2bc497=[],_0x167d6f,_0x4d23ad={}){const _0x7c0c6d=a130_0x1620,_0x2f1c8d=parseMenuSyncParams(_0x167d6f),_0x57b750=[...new Set(_0x2bc497[_0x7c0c6d(0x123)](_0x817e4e=>_0x817e4e[_0x7c0c6d(0x13b)]())[_0x7c0c6d(0x11e)](Boolean))],_0xa5720b=_0x2f1c8d['jsUrl'],_0x54b105=_0x2f1c8d[_0x7c0c6d(0x147)],_0x562f5e=[];if(_0xa5720b)_0x562f5e[_0x7c0c6d(0x12e)](_0xa5720b);if(_0x54b105)_0x562f5e['push'](_0x54b105);const _0x8bb358=validateParams(_0x2f1c8d);if(_0x8bb358['length']>0x0){const _0x229ba5=_0x8bb358['map'](_0x7654d6=>_0x7c0c6d(0x13d)+_0x7654d6[_0x7c0c6d(0x11f)]+':\x20'+_0x7654d6[_0x7c0c6d(0x138)])[_0x7c0c6d(0x141)](';\x20');throw new Error('Invalid\x20--params:\x20'+_0x229ba5);}logger['setLogPath'](process[_0x7c0c6d(0x120)]()),logger[_0x7c0c6d(0x131)](_0x7c0c6d(0x13a),_0x7c0c6d(0x14e),{'appCode':_0x11da61,'selectedCount':_0x57b750['length'],'jsUrl':_0xa5720b,'cssUrl':_0x54b105});if(_0xa5720b){const _0xc39727=await isUrlReachable(_0xa5720b);if(!_0xc39727)throw new Error(_0x7c0c6d(0x122)+_0xa5720b);}if(_0x54b105){const _0x2b7fe0=await isUrlReachable(_0x54b105);if(!_0x2b7fe0)throw new Error(_0x7c0c6d(0x146)+_0x54b105);}const _0x17b2af=getLocalPages();if(_0x17b2af['length']===0x0){if(_0x57b750[_0x7c0c6d(0x132)]>0x0)throw new Error(_0x7c0c6d(0x13f)+_0x57b750['join'](',\x20'));return{'created':0x0,'skipped':!![],'dryRun':_0x4d23ad[_0x7c0c6d(0x13e)]===!![],'targetPages':[],'plannedMenus':[]};}const _0x3fa34a=await getOnlineMenuList(_0x11da61,_0x4884bb),_0x27a932=new Set(_0x3fa34a[_0x7c0c6d(0x123)](_0x4f0831=>_0x4f0831[_0x7c0c6d(0x145)]));let _0x556d49;if(_0x57b750['length']>0x0){const _0x3633d2=new Map(_0x17b2af['map'](_0x3f18bb=>[_0x3f18bb['path'],_0x3f18bb])),_0x3e4d91=_0x57b750[_0x7c0c6d(0x11e)](_0x45dda6=>!_0x3633d2['has'](_0x45dda6));if(_0x3e4d91[_0x7c0c6d(0x132)]>0x0){const _0x6360e4=_0x17b2af[_0x7c0c6d(0x123)](_0x25489c=>_0x25489c[_0x7c0c6d(0x145)])[_0x7c0c6d(0x141)](',\x20');throw new Error(_0x7c0c6d(0x13f)+_0x3e4d91[_0x7c0c6d(0x141)](',\x20')+_0x7c0c6d(0x148)+_0x6360e4);}const _0xe7ef1c=_0x57b750[_0x7c0c6d(0x11e)](_0x5775e5=>_0x27a932[_0x7c0c6d(0x143)](_0x5775e5));if(_0xe7ef1c[_0x7c0c6d(0x132)]>0x0)throw new Error(_0x7c0c6d(0x149)+_0xe7ef1c['join'](',\x20'));_0x556d49=_0x57b750[_0x7c0c6d(0x123)](_0x2604d6=>_0x3633d2[_0x7c0c6d(0x14c)](_0x2604d6));}else _0x556d49=_0x17b2af[_0x7c0c6d(0x11e)](_0x11127f=>!_0x27a932[_0x7c0c6d(0x143)](_0x11127f['path']));if(_0x556d49[_0x7c0c6d(0x132)]===0x0)return{'created':0x0,'skipped':!![],'dryRun':_0x4d23ad['dryRun']===!![],'targetPages':[],'plannedMenus':[]};const _0x1bd727=_0x556d49['map'](_0x34a9ac=>({'type':_0x7c0c6d(0x11d),'path':_0x34a9ac['path'],'label':_0x34a9ac[_0x7c0c6d(0x14b)],'loadScriptMode':_0x7c0c6d(0x128),'resources':[..._0x562f5e]}));if(_0x4d23ad[_0x7c0c6d(0x13e)])return{'created':0x0,'skipped':![],'dryRun':!![],'targetPages':_0x556d49,'plannedMenus':_0x1bd727};const _0x2b9fd0=await createMenus(_0x11da61,_0x4884bb,_0x556d49,_0x562f5e[_0x7c0c6d(0x132)]>0x0?_0x562f5e:undefined);return logger[_0x7c0c6d(0x131)]('menu-sync','Menu\x20sync\x20completed',{'count':_0x556d49[_0x7c0c6d(0x132)],'resources':_0x562f5e}),{'created':_0x2b9fd0[_0x7c0c6d(0x132)],'skipped':![],'dryRun':![],'targetPages':_0x556d49,'plannedMenus':_0x1bd727,'menus':_0x2b9fd0};}export function parseMenuSyncParams(_0x2285ab){const _0x24bd18=a130_0x1620;if(!_0x2285ab||typeof _0x2285ab!==_0x24bd18(0x12f))return{};let _0x174ce2;try{_0x174ce2=JSON[_0x24bd18(0x13c)](_0x2285ab);}catch{throw new Error(_0x24bd18(0x11c));}if(typeof _0x174ce2!==_0x24bd18(0x133)||_0x174ce2===null||Array[_0x24bd18(0x142)](_0x174ce2))throw new Error(_0x24bd18(0x14d));const _0x566e2d=_0x174ce2;if(Object[_0x24bd18(0x137)](_0x566e2d,'pages'))throw new Error(_0x24bd18(0x125));const _0x469b51=Object['keys'](_0x566e2d)[_0x24bd18(0x11e)](_0x3ddc31=>!MENU_SYNC_PARAM_KEYS[_0x24bd18(0x143)](_0x3ddc31));if(_0x469b51[_0x24bd18(0x132)]>0x0)throw new Error(_0x24bd18(0x12c)+_0x469b51[_0x24bd18(0x141)](',\x20')+'.');for(const _0x27669f of MENU_SYNC_PARAM_KEYS){const _0x41d772=_0x566e2d[_0x27669f];if(_0x41d772!==undefined&&(typeof _0x41d772!=='string'||_0x41d772[_0x24bd18(0x13b)]()===''))throw new Error(_0x24bd18(0x135)+_0x27669f+_0x24bd18(0x129));}return{'jsUrl':typeof _0x566e2d[_0x24bd18(0x12d)]==='string'?_0x566e2d[_0x24bd18(0x12d)][_0x24bd18(0x13b)]():undefined,'cssUrl':typeof _0x566e2d[_0x24bd18(0x147)]===_0x24bd18(0x12f)?_0x566e2d['cssUrl'][_0x24bd18(0x13b)]():undefined};}
@@ -61,7 +61,7 @@ export interface MenuMutationError {
61
61
  message: string;
62
62
  hint?: string;
63
63
  }
64
- export interface MenuMutationResult {
64
+ export interface MenuMutationResult<TTarget = MenuFact> {
65
65
  operation: string;
66
66
  selector: Record<string, unknown>;
67
67
  before: MenuFact | Record<string, unknown> | null;
@@ -78,7 +78,7 @@ export interface MenuMutationResult {
78
78
  body: Record<string, unknown>;
79
79
  condition?: string;
80
80
  }>;
81
- targets?: MenuFact[];
81
+ targets?: TTarget[];
82
82
  deleteOrder?: number[];
83
83
  snapshotHash: string;
84
84
  cascade?: {
@@ -126,6 +126,21 @@ export interface MenuUpdateDiff {
126
126
  };
127
127
  warnings: string[];
128
128
  }
129
+ export interface MenuVisibilityDiff {
130
+ id: number;
131
+ label: string;
132
+ path: string;
133
+ before: {
134
+ visible: boolean | null;
135
+ };
136
+ after: {
137
+ visible: boolean;
138
+ };
139
+ }
140
+ export type MenuVisibilityUpdateResult = MenuMutationResult<MenuVisibilityDiff> & {
141
+ requestedVisible: boolean;
142
+ targets: MenuVisibilityDiff[];
143
+ };
129
144
  export interface MenuSyncResult {
130
145
  created: number;
131
146
  failed: number;
@@ -1 +1 @@
1
- (function(_0x34c837,_0x34ebd2){const _0x781f4e=a132_0x10f2,_0x657372=_0x34c837();while(!![]){try{const _0x4f6b0b=parseInt(_0x781f4e(0xf7))/0x1+parseInt(_0x781f4e(0xfd))/0x2+parseInt(_0x781f4e(0x10b))/0x3*(-parseInt(_0x781f4e(0xfa))/0x4)+parseInt(_0x781f4e(0x115))/0x5+-parseInt(_0x781f4e(0x101))/0x6*(parseInt(_0x781f4e(0xf6))/0x7)+parseInt(_0x781f4e(0x10f))/0x8+parseInt(_0x781f4e(0x108))/0x9*(parseInt(_0x781f4e(0x100))/0xa);if(_0x4f6b0b===_0x34ebd2)break;else _0x657372['push'](_0x657372['shift']());}catch(_0x36cbfb){_0x657372['push'](_0x657372['shift']());}}}(a132_0x3f85,0xb69f8));import{updateMenuCdnUrl,getOnlineMenuList}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';import{logger}from'../../../utils/logger.js';function validateParams(_0x52396b){const _0x1bfb30=a132_0x10f2,_0x530eed=[];return _0x52396b[_0x1bfb30(0xf4)]&&!isValidJsHttpsUrl(_0x52396b['jsUrl'])&&_0x530eed['push']({'field':'jsUrl','message':_0x1bfb30(0x117)}),_0x52396b['cssUrl']&&!isValidCssHttpsUrl(_0x52396b[_0x1bfb30(0x106)])&&_0x530eed[_0x1bfb30(0xdc)]({'field':'cssUrl','message':_0x1bfb30(0x102)}),_0x530eed;}export async function runMenuUpdateCore(_0x749224,_0x49754d,_0x3769fe,_0x318974={}){const _0x1bedaf=a132_0x10f2,_0xe35370=parseUpdateParamsFlag(_0x3769fe),_0x464d41=normalizeMode(_0x318974[_0x1bedaf(0x110)]);validateSelection(_0x318974['selection']);const _0x35a11b=[];if(_0xe35370['jsUrl'])_0x35a11b[_0x1bedaf(0xdc)](_0xe35370[_0x1bedaf(0xf4)]);if(_0xe35370[_0x1bedaf(0x106)])_0x35a11b[_0x1bedaf(0xdc)](_0xe35370[_0x1bedaf(0x106)]);const _0x8e9386=validateParams(_0xe35370);if(_0x8e9386['length']>0x0){const _0x9fa535=_0x8e9386[_0x1bedaf(0x104)](_0x30d7e7=>_0x1bedaf(0x119)+_0x30d7e7[_0x1bedaf(0xee)]+':\x20'+_0x30d7e7[_0x1bedaf(0xe6)])[_0x1bedaf(0x105)](';\x20');throw new Error(_0x1bedaf(0xd6)+_0x9fa535);}if(_0x35a11b[_0x1bedaf(0xda)]===0x0)throw new Error(_0x1bedaf(0xf9)+'Pass\x20--params\x20\x27{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}\x27\x20to\x20update\x20assets.');logger[_0x1bedaf(0xe9)](process[_0x1bedaf(0xe2)]()),logger['info'](_0x1bedaf(0x111),_0x1bedaf(0x103),{'appCode':_0x749224,'jsUrl':_0xe35370[_0x1bedaf(0xf4)],'cssUrl':_0xe35370[_0x1bedaf(0x106)],'mode':_0x464d41,'dryRun':_0x318974[_0x1bedaf(0xff)]===!![]});if(_0xe35370[_0x1bedaf(0xf4)]){const _0x58daac=await isUrlReachable(_0xe35370['jsUrl']);if(!_0x58daac)throw new Error(_0x1bedaf(0xe8)+_0xe35370['jsUrl']);}if(_0xe35370[_0x1bedaf(0x106)]){const _0x2bbbaf=await isUrlReachable(_0xe35370[_0x1bedaf(0x106)]);if(!_0x2bbbaf)throw new Error(_0x1bedaf(0x113)+_0xe35370[_0x1bedaf(0x106)]);}const _0x31ff64=await getOnlineMenuList(_0x749224,_0x49754d),_0x3d68b4=_0x31ff64['filter'](_0x21c023=>_0x21c023[_0x1bedaf(0xd3)]['length']>0x0),_0x304e5d=selectMenusForUpdate(_0x3d68b4,_0x318974[_0x1bedaf(0xf2)]);if(_0x304e5d['length']===0x0)return{'updated':0x0,'failed':0x0,'skipped':!![],'dryRun':_0x318974[_0x1bedaf(0xff)]===!![]};const _0x60f8d8=_0x304e5d[_0x1bedaf(0x104)](_0x2d5fd2=>buildMenuUpdateDiff(_0x2d5fd2,_0xe35370,_0x464d41,_0x318974[_0x1bedaf(0xd4)]===!![],_0x318974[_0x1bedaf(0x114)]));if(_0x318974[_0x1bedaf(0xff)])return{'updated':0x0,'failed':0x0,'skipped':![],'dryRun':!![],'diffs':_0x60f8d8};const _0x4c807=await Promise[_0x1bedaf(0x109)](_0x304e5d['map']((_0x37fc89,_0x5ebeb6)=>updateMenuCdnUrl(_0x749224,_0x49754d,{'id':_0x37fc89['id'],'label':_0x37fc89[_0x1bedaf(0xe7)],'path':_0x37fc89[_0x1bedaf(0xfe)],'resources':_0x60f8d8[_0x5ebeb6][_0x1bedaf(0xed)][_0x1bedaf(0xd3)],'extend':_0x37fc89['extend']??null,'loadScriptMode':_0x318974['loadScriptMode']}))),_0xac8b6c=_0x4c807[_0x1bedaf(0xf8)](_0x471aa5=>_0x471aa5[_0x1bedaf(0xea)]==='fulfilled')['map'](_0x7d36c3=>_0x7d36c3[_0x1bedaf(0xe0)]),_0x5eacab=_0x4c807[_0x1bedaf(0xf8)](_0x5e0aa1=>_0x5e0aa1[_0x1bedaf(0xea)]==='rejected')[_0x1bedaf(0xda)];return logger[_0x1bedaf(0xf0)](_0x1bedaf(0x111),_0x1bedaf(0x112),{'count':_0x304e5d[_0x1bedaf(0xda)],'resources':_0x35a11b}),{'updated':_0xac8b6c[_0x1bedaf(0xda)],'failed':_0x5eacab,'skipped':![],'menus':_0xac8b6c};}function a132_0x10f2(_0xf747c,_0x23fc06){_0xf747c=_0xf747c-0xd3;const _0x3f85f8=a132_0x3f85();let _0x10f2e7=_0x3f85f8[_0xf747c];return _0x10f2e7;}function validateSelection(_0x2a55c4){const _0x38f5eb=a132_0x10f2;if(!_0x2a55c4)throw new Error(_0x38f5eb(0xe3));if(_0x2a55c4[_0x38f5eb(0x10a)]&&(_0x2a55c4['menuIds'][_0x38f5eb(0xda)]>0x0||_0x2a55c4[_0x38f5eb(0xd9)][_0x38f5eb(0xda)]>0x0))throw new Error(_0x38f5eb(0xf1));if(!_0x2a55c4[_0x38f5eb(0x10a)]&&_0x2a55c4['menuIds'][_0x38f5eb(0xda)]===0x0&&_0x2a55c4[_0x38f5eb(0xd9)][_0x38f5eb(0xda)]===0x0)throw new Error(_0x38f5eb(0xe3));}export function selectMenusForUpdate(_0x2baac4,_0x16ce4a){const _0x185557=a132_0x10f2;validateSelection(_0x16ce4a);if(_0x16ce4a[_0x185557(0x10a)])return _0x2baac4;const _0x5276d5=new Set(_0x2baac4[_0x185557(0x104)](_0x5eb3d8=>_0x5eb3d8['id'])),_0x47bc06=new Set(_0x2baac4[_0x185557(0x104)](_0x1f2566=>_0x1f2566['path'])),_0x59954a=_0x16ce4a[_0x185557(0xfc)][_0x185557(0xf8)](_0xa89b68=>!_0x5276d5['has'](_0xa89b68)),_0x212b1a=_0x16ce4a[_0x185557(0xd9)][_0x185557(0xf8)](_0x2b5898=>!_0x47bc06[_0x185557(0xf3)](_0x2b5898));if(_0x59954a[_0x185557(0xda)]>0x0||_0x212b1a[_0x185557(0xda)]>0x0){const _0x84585c=[..._0x59954a[_0x185557(0x104)](_0x3b2568=>String(_0x3b2568)),..._0x212b1a][_0x185557(0x105)](',\x20');throw new Error(_0x185557(0xd7)+_0x84585c);}const _0x209f12=new Set(_0x16ce4a[_0x185557(0xfc)]),_0x19014a=new Set(_0x16ce4a[_0x185557(0xd9)]);return _0x2baac4['filter'](_0x26abfd=>_0x209f12[_0x185557(0xf3)](_0x26abfd['id'])||_0x19014a['has'](_0x26abfd['path']));}function normalizeMode(_0x3a8ca2){const _0x4324d0=a132_0x10f2;if(!_0x3a8ca2)return _0x4324d0(0xe4);if(_0x3a8ca2===_0x4324d0(0xef)||_0x3a8ca2==='patch')return _0x3a8ca2;throw new Error(_0x4324d0(0xfb)+_0x3a8ca2+_0x4324d0(0xe5));}function buildMenuUpdateDiff(_0x992410,_0x1329d9,_0x4c570d,_0x4505e3,_0x488175){const _0x3805fa=a132_0x10f2,_0x23a56a=[..._0x992410[_0x3805fa(0xd3)]];_0x4c570d==='patch'&&assertUnambiguousPatchResources(_0x992410,_0x23a56a,_0x1329d9);const _0x59f9ba=_0x4c570d==='patch'?patchResources(_0x23a56a,_0x1329d9):replaceResources(_0x1329d9),_0x27fdad=[],_0x5072e7=_0x23a56a[_0x3805fa(0xd5)](isJsResource),_0x5a6f1e=_0x59f9ba[_0x3805fa(0xd5)](isJsResource);if(_0x5072e7&&!_0x5a6f1e){const _0x418df5='menu\x20asset-update\x20would\x20remove\x20existing\x20JS\x20resource\x20for\x20\x22'+_0x992410[_0x3805fa(0xe7)]+_0x3805fa(0xec)+_0x992410[_0x3805fa(0xfe)]+_0x3805fa(0xf5)+_0x3805fa(0x10c);if(!_0x4505e3)throw new Error(_0x418df5);_0x27fdad[_0x3805fa(0xdc)](_0x418df5);}const _0x2418b6=_0x23a56a[_0x3805fa(0xd5)](isCssResource),_0x3dcec5=_0x59f9ba[_0x3805fa(0xd5)](isCssResource);_0x2418b6&&!_0x3dcec5&&_0x27fdad[_0x3805fa(0xdc)](_0x3805fa(0x10e)+_0x992410[_0x3805fa(0xe7)]+_0x3805fa(0xec)+_0x992410['path']+').');const _0x3876bf=typeof _0x992410['extend']?.['loadScriptMode']===_0x3805fa(0x116)?_0x992410['extend'][_0x3805fa(0x114)]:null,_0x3d628d=_0x488175?{'loadScriptMode':_0x3876bf}:{},_0x4ab335=_0x488175?{'loadScriptMode':_0x488175}:{};return{'id':_0x992410['id'],'label':_0x992410[_0x3805fa(0xe7)],'path':_0x992410[_0x3805fa(0xfe)],'mode':_0x4c570d,'before':{'resources':_0x23a56a,..._0x3d628d},'after':{'resources':_0x59f9ba,..._0x4ab335},'warnings':_0x27fdad};}function replaceResources(_0x3582f2){const _0x143941=a132_0x10f2;return[_0x3582f2['jsUrl'],_0x3582f2[_0x143941(0x106)]][_0x143941(0xf8)](_0x620021=>!!_0x620021);}function a132_0x3f85(){const _0x286946=['jsUrl',').\x20','9330811CuUIFf','389532smxbYE','filter','Invalid\x20--params:\x20menu\x20asset-update\x20requires\x20at\x20least\x20one\x20explicit\x20JS/CSS\x20URL.\x20','5759524sYXTii','Invalid\x20--mode:\x20','menuIds','387744rNXIdt','path','dryRun','10iKQfKX','6xmDByR','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','Start\x20non-interactive\x20menu\x20asset\x20update','map','join','cssUrl','menu\x20asset-update\x20cannot\x20patch\x20','10926108Uoeblp','allSettled','all','3DBygcx','Use\x20--mode\x20patch\x20to\x20preserve\x20it,\x20pass\x20jsUrl,\x20or\x20add\x20--force\x20for\x20an\x20intentional\x20removal.','.js','menu\x20asset-update\x20will\x20remove\x20existing\x20CSS\x20resource\x20for\x20\x22','8351424CanOSn','mode','menu-asset-update','Menu\x20asset\x20update\x20completed','CSS\x20URL\x20is\x20unreachable:\x20','loadScriptMode','3397670oQcTax','string','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','toLowerCase','--params.','resources','force','some','Invalid\x20--params:\x20','menu\x20asset-update\x20selectors\x20did\x20not\x20match\x20resource-bearing\x20menus:\x20','with\x20a\x20single\x20cssUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.','paths','length','trim','push','endsWith','.css','with\x20a\x20single\x20jsUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.','value','\x20existing\x20CSS\x20resources\x20for\x20\x22','cwd','menu\x20asset-update\x20requires\x20an\x20explicit\x20target:\x20pass\x20--all,\x20--menu-ids,\x20or\x20--paths.','patch','.\x20Allowed\x20values:\x20replace,\x20patch','message','label','JS\x20URL\x20is\x20unreachable:\x20','setLogPath','status','unshift','\x22\x20(','after','field','replace','info','--all\x20cannot\x20be\x20combined\x20with\x20--menu-ids\x20or\x20--paths.','selection','has'];a132_0x3f85=function(){return _0x286946;};return a132_0x3f85();}function assertUnambiguousPatchResources(_0x55378e,_0x188900,_0x23c145){const _0x48de3a=a132_0x10f2,_0x13e616=_0x188900[_0x48de3a(0xf8)](isJsResource)[_0x48de3a(0xda)];if(_0x23c145[_0x48de3a(0xf4)]&&_0x13e616>0x1)throw new Error('menu\x20asset-update\x20cannot\x20patch\x20'+_0x13e616+'\x20existing\x20JS\x20resources\x20for\x20\x22'+_0x55378e[_0x48de3a(0xe7)]+_0x48de3a(0xec)+_0x55378e[_0x48de3a(0xfe)]+')\x20'+_0x48de3a(0xdf));const _0x4671eb=_0x188900[_0x48de3a(0xf8)](isCssResource)['length'];if(_0x23c145[_0x48de3a(0x106)]&&_0x4671eb>0x1)throw new Error(_0x48de3a(0x107)+_0x4671eb+_0x48de3a(0xe1)+_0x55378e[_0x48de3a(0xe7)]+'\x22\x20('+_0x55378e[_0x48de3a(0xfe)]+')\x20'+_0x48de3a(0xd8));}function patchResources(_0x8e6f73,_0x191d23){const _0x582fb5=a132_0x10f2;let _0x1bec91=![],_0x1c4bc6=![];const _0xbed5af=[];for(const _0x261fd0 of _0x8e6f73){if(isJsResource(_0x261fd0)){if(_0x191d23[_0x582fb5(0xf4)]&&!_0x1bec91)_0xbed5af[_0x582fb5(0xdc)](_0x191d23[_0x582fb5(0xf4)]),_0x1bec91=!![];else!_0x191d23[_0x582fb5(0xf4)]&&_0xbed5af[_0x582fb5(0xdc)](_0x261fd0);continue;}if(isCssResource(_0x261fd0)){if(_0x191d23[_0x582fb5(0x106)]&&!_0x1c4bc6)_0xbed5af[_0x582fb5(0xdc)](_0x191d23[_0x582fb5(0x106)]),_0x1c4bc6=!![];else!_0x191d23[_0x582fb5(0x106)]&&_0xbed5af['push'](_0x261fd0);continue;}_0xbed5af['push'](_0x261fd0);}return _0x191d23[_0x582fb5(0xf4)]&&!_0x1bec91&&_0xbed5af[_0x582fb5(0xeb)](_0x191d23['jsUrl']),_0x191d23[_0x582fb5(0x106)]&&!_0x1c4bc6&&_0xbed5af[_0x582fb5(0xdc)](_0x191d23[_0x582fb5(0x106)]),_0xbed5af;}function isJsResource(_0x481ad6){const _0x197804=a132_0x10f2;return stripQuery(_0x481ad6)[_0x197804(0x118)]()[_0x197804(0xdd)](_0x197804(0x10d));}function isCssResource(_0x42112d){const _0x1e8eeb=a132_0x10f2;return stripQuery(_0x42112d)[_0x1e8eeb(0x118)]()[_0x1e8eeb(0xdd)](_0x1e8eeb(0xde));}function stripQuery(_0x51c507){return _0x51c507['split']('?')[0x0]??_0x51c507;}function parseUpdateParamsFlag(_0x343889){const _0x546286=a132_0x10f2;if(!_0x343889||typeof _0x343889!==_0x546286(0x116))return{};try{const _0x2c39c4=JSON['parse'](_0x343889);if(typeof _0x2c39c4!=='object'||_0x2c39c4===null||Array['isArray'](_0x2c39c4))return{};return{'jsUrl':typeof _0x2c39c4[_0x546286(0xf4)]===_0x546286(0x116)?_0x2c39c4[_0x546286(0xf4)][_0x546286(0xdb)]():undefined,'cssUrl':typeof _0x2c39c4[_0x546286(0x106)]===_0x546286(0x116)?_0x2c39c4[_0x546286(0x106)][_0x546286(0xdb)]():undefined};}catch{return{};}}
1
+ function a132_0xdd16(_0x4bcf68,_0xec0baf){_0x4bcf68=_0x4bcf68-0xbd;const _0x5e19f1=a132_0x5e19();let _0xdd16e8=_0x5e19f1[_0x4bcf68];return _0xdd16e8;}function a132_0x5e19(){const _0x187c1e=['length','trim','string','7964862WCfRHC','120627cnTZJo','path','loadScriptMode','patch','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','menu\x20asset-update\x20requires\x20an\x20explicit\x20target:\x20pass\x20--all,\x20--menu-ids,\x20or\x20--paths.','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','menu\x20asset-update\x20selectors\x20did\x20not\x20match\x20resource-bearing\x20menus:\x20','584dotDjk','fulfilled','extend','force','\x22\x20(','isArray','map','118678TuDTwv','resources','--all\x20cannot\x20be\x20combined\x20with\x20--menu-ids\x20or\x20--paths.','selection','menu\x20asset-update\x20would\x20remove\x20existing\x20JS\x20resource\x20for\x20\x22','menu\x20asset-update\x20cannot\x20patch\x20','1438356bJEtFk','Start\x20non-interactive\x20menu\x20asset\x20update','all','paths','with\x20a\x20single\x20jsUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.','some','object','status','endsWith','has','after','setLogPath','menuIds','Invalid\x20--params:\x20','cssUrl','.css','250zIkqvH','toLowerCase','join','unshift','1773240BFWVNb','filter','Invalid\x20--mode:\x20','JS\x20URL\x20is\x20unreachable:\x20','dryRun','push','cwd','3ahnxUg','field','7teCCFJ','info','value','22385eYLVCT','mode','menu-asset-update','9630577PFsjDD','allSettled',').\x20','Pass\x20--params\x20\x27{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}\x27\x20to\x20update\x20assets.','label','jsUrl','CSS\x20URL\x20is\x20unreachable:\x20'];a132_0x5e19=function(){return _0x187c1e;};return a132_0x5e19();}(function(_0x2922b1,_0x11130a){const _0x45704d=a132_0xdd16,_0x170dd8=_0x2922b1();while(!![]){try{const _0x4592d0=-parseInt(_0x45704d(0xe7))/0x1*(-parseInt(_0x45704d(0xc6))/0x2)+-parseInt(_0x45704d(0xcc))/0x3+parseInt(_0x45704d(0xbf))/0x4*(parseInt(_0x45704d(0xec))/0x5)+-parseInt(_0x45704d(0xf9))/0x6*(-parseInt(_0x45704d(0xe9))/0x7)+parseInt(_0x45704d(0xe0))/0x8+-parseInt(_0x45704d(0xfa))/0x9*(parseInt(_0x45704d(0xdc))/0xa)+-parseInt(_0x45704d(0xef))/0xb;if(_0x4592d0===_0x11130a)break;else _0x170dd8['push'](_0x170dd8['shift']());}catch(_0x2dbfd7){_0x170dd8['push'](_0x170dd8['shift']());}}}(a132_0x5e19,0xa8a45));import{updateMenuCdnUrl,getOnlineMenuList}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';import{logger}from'../../../utils/logger.js';function validateParams(_0x58a7b3){const _0x2b7f9a=a132_0xdd16,_0x189679=[];return _0x58a7b3['jsUrl']&&!isValidJsHttpsUrl(_0x58a7b3[_0x2b7f9a(0xf4)])&&_0x189679[_0x2b7f9a(0xe5)]({'field':'jsUrl','message':_0x2b7f9a(0xfe)}),_0x58a7b3[_0x2b7f9a(0xda)]&&!isValidCssHttpsUrl(_0x58a7b3['cssUrl'])&&_0x189679[_0x2b7f9a(0xe5)]({'field':_0x2b7f9a(0xda),'message':_0x2b7f9a(0xbd)}),_0x189679;}export async function runMenuUpdateCore(_0x3760a1,_0x10b4f6,_0x4ea96e,_0x28abf0={}){const _0x3cc1c4=a132_0xdd16,_0x3d99e8=parseUpdateParamsFlag(_0x4ea96e),_0x3e0e6d=normalizeMode(_0x28abf0[_0x3cc1c4(0xed)]);validateSelection(_0x28abf0['selection']);const _0x37cec7=[];if(_0x3d99e8['jsUrl'])_0x37cec7[_0x3cc1c4(0xe5)](_0x3d99e8['jsUrl']);if(_0x3d99e8[_0x3cc1c4(0xda)])_0x37cec7[_0x3cc1c4(0xe5)](_0x3d99e8[_0x3cc1c4(0xda)]);const _0xd801e6=validateParams(_0x3d99e8);if(_0xd801e6['length']>0x0){const _0x28df65=_0xd801e6['map'](_0x4f171b=>'--params.'+_0x4f171b[_0x3cc1c4(0xe8)]+':\x20'+_0x4f171b['message'])[_0x3cc1c4(0xde)](';\x20');throw new Error(_0x3cc1c4(0xd9)+_0x28df65);}if(_0x37cec7['length']===0x0)throw new Error('Invalid\x20--params:\x20menu\x20asset-update\x20requires\x20at\x20least\x20one\x20explicit\x20JS/CSS\x20URL.\x20'+_0x3cc1c4(0xf2));logger[_0x3cc1c4(0xd7)](process[_0x3cc1c4(0xe6)]()),logger[_0x3cc1c4(0xea)](_0x3cc1c4(0xee),_0x3cc1c4(0xcd),{'appCode':_0x3760a1,'jsUrl':_0x3d99e8[_0x3cc1c4(0xf4)],'cssUrl':_0x3d99e8[_0x3cc1c4(0xda)],'mode':_0x3e0e6d,'dryRun':_0x28abf0[_0x3cc1c4(0xe4)]===!![]});if(_0x3d99e8['jsUrl']){const _0xaa7cc8=await isUrlReachable(_0x3d99e8[_0x3cc1c4(0xf4)]);if(!_0xaa7cc8)throw new Error(_0x3cc1c4(0xe3)+_0x3d99e8[_0x3cc1c4(0xf4)]);}if(_0x3d99e8['cssUrl']){const _0x4cb8bd=await isUrlReachable(_0x3d99e8['cssUrl']);if(!_0x4cb8bd)throw new Error(_0x3cc1c4(0xf5)+_0x3d99e8['cssUrl']);}const _0x3a1ed7=await getOnlineMenuList(_0x3760a1,_0x10b4f6),_0x78fa84=_0x3a1ed7[_0x3cc1c4(0xe1)](_0x2424dc=>_0x2424dc[_0x3cc1c4(0xc7)][_0x3cc1c4(0xf6)]>0x0),_0xd84b6d=selectMenusForUpdate(_0x78fa84,_0x28abf0[_0x3cc1c4(0xc9)]);if(_0xd84b6d['length']===0x0)return{'updated':0x0,'failed':0x0,'skipped':!![],'dryRun':_0x28abf0[_0x3cc1c4(0xe4)]===!![]};const _0x69e693=_0xd84b6d[_0x3cc1c4(0xc5)](_0x27a8d0=>buildMenuUpdateDiff(_0x27a8d0,_0x3d99e8,_0x3e0e6d,_0x28abf0[_0x3cc1c4(0xc2)]===!![],_0x28abf0['loadScriptMode']));if(_0x28abf0['dryRun'])return{'updated':0x0,'failed':0x0,'skipped':![],'dryRun':!![],'diffs':_0x69e693};const _0x4a0329=await Promise[_0x3cc1c4(0xf0)](_0xd84b6d[_0x3cc1c4(0xc5)]((_0x4d7f1c,_0xa25ccc)=>updateMenuCdnUrl(_0x3760a1,_0x10b4f6,{'id':_0x4d7f1c['id'],'label':_0x4d7f1c[_0x3cc1c4(0xf3)],'path':_0x4d7f1c[_0x3cc1c4(0xfb)],'resources':_0x69e693[_0xa25ccc][_0x3cc1c4(0xd6)]['resources'],'extend':_0x4d7f1c[_0x3cc1c4(0xc1)]??null,'loadScriptMode':_0x28abf0['loadScriptMode']}))),_0x2105dc=_0x4a0329[_0x3cc1c4(0xe1)](_0x4244f5=>_0x4244f5[_0x3cc1c4(0xd3)]===_0x3cc1c4(0xc0))[_0x3cc1c4(0xc5)](_0x979f5a=>_0x979f5a[_0x3cc1c4(0xeb)]),_0x959064=_0x4a0329[_0x3cc1c4(0xe1)](_0x452895=>_0x452895[_0x3cc1c4(0xd3)]==='rejected')[_0x3cc1c4(0xf6)];return logger[_0x3cc1c4(0xea)](_0x3cc1c4(0xee),'Menu\x20asset\x20update\x20completed',{'count':_0xd84b6d[_0x3cc1c4(0xf6)],'resources':_0x37cec7}),{'updated':_0x2105dc[_0x3cc1c4(0xf6)],'failed':_0x959064,'skipped':![],'menus':_0x2105dc};}function validateSelection(_0x37fc62){const _0x432a3f=a132_0xdd16;if(!_0x37fc62)throw new Error('menu\x20asset-update\x20requires\x20an\x20explicit\x20target:\x20pass\x20--all,\x20--menu-ids,\x20or\x20--paths.');if(_0x37fc62['all']&&(_0x37fc62['menuIds'][_0x432a3f(0xf6)]>0x0||_0x37fc62[_0x432a3f(0xcf)][_0x432a3f(0xf6)]>0x0))throw new Error(_0x432a3f(0xc8));if(!_0x37fc62['all']&&_0x37fc62['menuIds'][_0x432a3f(0xf6)]===0x0&&_0x37fc62[_0x432a3f(0xcf)][_0x432a3f(0xf6)]===0x0)throw new Error(_0x432a3f(0xff));}export function selectMenusForUpdate(_0x25a82b,_0xde221b){const _0x2d3913=a132_0xdd16;validateSelection(_0xde221b);if(_0xde221b[_0x2d3913(0xce)])return _0x25a82b;const _0x458d86=new Set(_0x25a82b[_0x2d3913(0xc5)](_0x2a2979=>_0x2a2979['id'])),_0x24c102=new Set(_0x25a82b['map'](_0x3b82bb=>_0x3b82bb['path'])),_0x28aeca=_0xde221b[_0x2d3913(0xd8)][_0x2d3913(0xe1)](_0x4ddc76=>!_0x458d86['has'](_0x4ddc76)),_0x4bd4b2=_0xde221b['paths'][_0x2d3913(0xe1)](_0x56770d=>!_0x24c102[_0x2d3913(0xd5)](_0x56770d));if(_0x28aeca['length']>0x0||_0x4bd4b2[_0x2d3913(0xf6)]>0x0){const _0x233b3c=[..._0x28aeca[_0x2d3913(0xc5)](_0x68d8fc=>String(_0x68d8fc)),..._0x4bd4b2][_0x2d3913(0xde)](',\x20');throw new Error(_0x2d3913(0xbe)+_0x233b3c);}const _0x3fc423=new Set(_0xde221b[_0x2d3913(0xd8)]),_0x12e3fd=new Set(_0xde221b['paths']);return _0x25a82b[_0x2d3913(0xe1)](_0x47fbc1=>_0x3fc423[_0x2d3913(0xd5)](_0x47fbc1['id'])||_0x12e3fd[_0x2d3913(0xd5)](_0x47fbc1[_0x2d3913(0xfb)]));}function normalizeMode(_0x3b7cdd){const _0x18d165=a132_0xdd16;if(!_0x3b7cdd)return _0x18d165(0xfd);if(_0x3b7cdd==='replace'||_0x3b7cdd===_0x18d165(0xfd))return _0x3b7cdd;throw new Error(_0x18d165(0xe2)+_0x3b7cdd+'.\x20Allowed\x20values:\x20replace,\x20patch');}function buildMenuUpdateDiff(_0x41dc5e,_0x47d555,_0x327194,_0x516d7a,_0x3fbb2a){const _0x188631=a132_0xdd16,_0x37ecf5=[..._0x41dc5e[_0x188631(0xc7)]];_0x327194===_0x188631(0xfd)&&assertUnambiguousPatchResources(_0x41dc5e,_0x37ecf5,_0x47d555);const _0x397e0e=_0x327194===_0x188631(0xfd)?patchResources(_0x37ecf5,_0x47d555):replaceResources(_0x47d555),_0x3822b0=[],_0x23aaac=_0x37ecf5[_0x188631(0xd1)](isJsResource),_0x1a2fe8=_0x397e0e['some'](isJsResource);if(_0x23aaac&&!_0x1a2fe8){const _0x14a0c3=_0x188631(0xca)+_0x41dc5e[_0x188631(0xf3)]+'\x22\x20('+_0x41dc5e[_0x188631(0xfb)]+_0x188631(0xf1)+'Use\x20--mode\x20patch\x20to\x20preserve\x20it,\x20pass\x20jsUrl,\x20or\x20add\x20--force\x20for\x20an\x20intentional\x20removal.';if(!_0x516d7a)throw new Error(_0x14a0c3);_0x3822b0[_0x188631(0xe5)](_0x14a0c3);}const _0x50bef1=_0x37ecf5[_0x188631(0xd1)](isCssResource),_0xf2023c=_0x397e0e[_0x188631(0xd1)](isCssResource);_0x50bef1&&!_0xf2023c&&_0x3822b0[_0x188631(0xe5)]('menu\x20asset-update\x20will\x20remove\x20existing\x20CSS\x20resource\x20for\x20\x22'+_0x41dc5e['label']+_0x188631(0xc3)+_0x41dc5e[_0x188631(0xfb)]+').');const _0x17443e=typeof _0x41dc5e[_0x188631(0xc1)]?.[_0x188631(0xfc)]===_0x188631(0xf8)?_0x41dc5e[_0x188631(0xc1)][_0x188631(0xfc)]:null,_0x3fb414=_0x3fbb2a?{'loadScriptMode':_0x17443e}:{},_0xc97ca9=_0x3fbb2a?{'loadScriptMode':_0x3fbb2a}:{};return{'id':_0x41dc5e['id'],'label':_0x41dc5e['label'],'path':_0x41dc5e['path'],'mode':_0x327194,'before':{'resources':_0x37ecf5,..._0x3fb414},'after':{'resources':_0x397e0e,..._0xc97ca9},'warnings':_0x3822b0};}function replaceResources(_0x526045){const _0x1f90ed=a132_0xdd16;return[_0x526045['jsUrl'],_0x526045['cssUrl']][_0x1f90ed(0xe1)](_0x2cdbda=>!!_0x2cdbda);}function assertUnambiguousPatchResources(_0x4106e2,_0x1a60bd,_0x5d4abc){const _0x6cb55b=a132_0xdd16,_0x1166c8=_0x1a60bd[_0x6cb55b(0xe1)](isJsResource)[_0x6cb55b(0xf6)];if(_0x5d4abc[_0x6cb55b(0xf4)]&&_0x1166c8>0x1)throw new Error('menu\x20asset-update\x20cannot\x20patch\x20'+_0x1166c8+'\x20existing\x20JS\x20resources\x20for\x20\x22'+_0x4106e2['label']+_0x6cb55b(0xc3)+_0x4106e2[_0x6cb55b(0xfb)]+')\x20'+_0x6cb55b(0xd0));const _0x26f3e3=_0x1a60bd[_0x6cb55b(0xe1)](isCssResource)['length'];if(_0x5d4abc['cssUrl']&&_0x26f3e3>0x1)throw new Error(_0x6cb55b(0xcb)+_0x26f3e3+'\x20existing\x20CSS\x20resources\x20for\x20\x22'+_0x4106e2[_0x6cb55b(0xf3)]+'\x22\x20('+_0x4106e2[_0x6cb55b(0xfb)]+')\x20'+'with\x20a\x20single\x20cssUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.');}function patchResources(_0x3af289,_0xc32684){const _0x3e19fb=a132_0xdd16;let _0x3f946c=![],_0x3d96ba=![];const _0x5cc2a1=[];for(const _0x2aeef4 of _0x3af289){if(isJsResource(_0x2aeef4)){if(_0xc32684['jsUrl']&&!_0x3f946c)_0x5cc2a1[_0x3e19fb(0xe5)](_0xc32684['jsUrl']),_0x3f946c=!![];else!_0xc32684[_0x3e19fb(0xf4)]&&_0x5cc2a1[_0x3e19fb(0xe5)](_0x2aeef4);continue;}if(isCssResource(_0x2aeef4)){if(_0xc32684[_0x3e19fb(0xda)]&&!_0x3d96ba)_0x5cc2a1[_0x3e19fb(0xe5)](_0xc32684['cssUrl']),_0x3d96ba=!![];else!_0xc32684['cssUrl']&&_0x5cc2a1[_0x3e19fb(0xe5)](_0x2aeef4);continue;}_0x5cc2a1[_0x3e19fb(0xe5)](_0x2aeef4);}return _0xc32684[_0x3e19fb(0xf4)]&&!_0x3f946c&&_0x5cc2a1[_0x3e19fb(0xdf)](_0xc32684[_0x3e19fb(0xf4)]),_0xc32684[_0x3e19fb(0xda)]&&!_0x3d96ba&&_0x5cc2a1['push'](_0xc32684[_0x3e19fb(0xda)]),_0x5cc2a1;}function isJsResource(_0x16bcb0){const _0x2aa4fb=a132_0xdd16;return stripQuery(_0x16bcb0)[_0x2aa4fb(0xdd)]()[_0x2aa4fb(0xd4)]('.js');}function isCssResource(_0x271b5f){const _0x34f596=a132_0xdd16;return stripQuery(_0x271b5f)[_0x34f596(0xdd)]()[_0x34f596(0xd4)](_0x34f596(0xdb));}function stripQuery(_0x4d59ed){return _0x4d59ed['split']('?')[0x0]??_0x4d59ed;}function parseUpdateParamsFlag(_0x4a29e6){const _0x5609bb=a132_0xdd16;if(!_0x4a29e6||typeof _0x4a29e6!==_0x5609bb(0xf8))return{};try{const _0x3caaaa=JSON['parse'](_0x4a29e6);if(typeof _0x3caaaa!==_0x5609bb(0xd2)||_0x3caaaa===null||Array[_0x5609bb(0xc4)](_0x3caaaa))return{};return{'jsUrl':typeof _0x3caaaa[_0x5609bb(0xf4)]===_0x5609bb(0xf8)?_0x3caaaa[_0x5609bb(0xf4)]['trim']():undefined,'cssUrl':typeof _0x3caaaa[_0x5609bb(0xda)]==='string'?_0x3caaaa['cssUrl'][_0x5609bb(0xf7)]():undefined};}catch{return{};}}
@@ -1 +1 @@
1
- (function(_0x460b98,_0x1ee9dc){const _0x1d916e=a133_0x41db,_0x1a60fe=_0x460b98();while(!![]){try{const _0x5a36c0=parseInt(_0x1d916e(0x1d2))/0x1*(parseInt(_0x1d916e(0x1d5))/0x2)+-parseInt(_0x1d916e(0x1d3))/0x3+parseInt(_0x1d916e(0x1d4))/0x4*(parseInt(_0x1d916e(0x1d0))/0x5)+parseInt(_0x1d916e(0x1d6))/0x6+-parseInt(_0x1d916e(0x1cc))/0x7*(-parseInt(_0x1d916e(0x1d7))/0x8)+-parseInt(_0x1d916e(0x1cb))/0x9*(parseInt(_0x1d916e(0x1d1))/0xa)+parseInt(_0x1d916e(0x1ca))/0xb;if(_0x5a36c0===_0x1ee9dc)break;else _0x1a60fe['push'](_0x1a60fe['shift']());}catch(_0x48256a){_0x1a60fe['push'](_0x1a60fe['shift']());}}}(a133_0x3e41,0x62bd5));export function isValidJsHttpsUrl(_0x55f39a){const _0x3a1203=a133_0x41db;return/^https:\/\/.+\.js(\?.*)?$/[_0x3a1203(0x1cf)](_0x55f39a['trim']());}export function isValidCssHttpsUrl(_0x3fa387){const _0xcc7eb3=a133_0x41db;return/^https:\/\/.+\.css(\?.*)?$/[_0xcc7eb3(0x1cf)](_0x3fa387[_0xcc7eb3(0x1ce)]());}function a133_0x41db(_0x4c7876,_0x49869d){_0x4c7876=_0x4c7876-0x1ca;const _0x3e416f=a133_0x3e41();let _0x41db56=_0x3e416f[_0x4c7876];return _0x41db56;}function a133_0x3e41(){const _0x12f96b=['7668410molKxb','50981bdEEVq','2244012QYEvyV','1137572LGtHmX','26mqbCsw','3184752YLWZpp','8umHXaf','942216nAprUI','9JXaIKQ','2489816ncmhXL','HEAD','trim','test','5yiOCwr'];a133_0x3e41=function(){return _0x12f96b;};return a133_0x3e41();}export async function isUrlReachable(_0x58e565){const _0x406887=a133_0x41db;try{const _0x8d47a9=await fetch(_0x58e565,{'method':_0x406887(0x1cd)});return _0x8d47a9['ok'];}catch{return![];}}
1
+ function a133_0x118b(_0x2100a4,_0x13f32d){_0x2100a4=_0x2100a4-0xb9;const _0xb48779=a133_0xb487();let _0x118b0c=_0xb48779[_0x2100a4];return _0x118b0c;}function a133_0xb487(){const _0x1d72d0=['3549415LtCgIs','2492384wZwPVV','736048ZfaBdn','120FiBsdO','test','729248vvczws','trim','34870AYyoUN','3141YZwXPh','413fByonV','19138yHStzN','36618bHgoEj'];a133_0xb487=function(){return _0x1d72d0;};return a133_0xb487();}(function(_0x7a9b9d,_0x2e7647){const _0x1e59fa=a133_0x118b,_0x166731=_0x7a9b9d();while(!![]){try{const _0x43e25a=-parseInt(_0x1e59fa(0xbb))/0x1+-parseInt(_0x1e59fa(0xc0))/0x2*(-parseInt(_0x1e59fa(0xb9))/0x3)+-parseInt(_0x1e59fa(0xc4))/0x4+-parseInt(_0x1e59fa(0xc2))/0x5+-parseInt(_0x1e59fa(0xc1))/0x6*(-parseInt(_0x1e59fa(0xbf))/0x7)+parseInt(_0x1e59fa(0xc3))/0x8+parseInt(_0x1e59fa(0xbe))/0x9*(parseInt(_0x1e59fa(0xbd))/0xa);if(_0x43e25a===_0x2e7647)break;else _0x166731['push'](_0x166731['shift']());}catch(_0xe69294){_0x166731['push'](_0x166731['shift']());}}}(a133_0xb487,0x9e40d));export function isValidJsHttpsUrl(_0xf4d90a){return/^https:\/\/.+\.js(\?.*)?$/['test'](_0xf4d90a['trim']());}export function isValidCssHttpsUrl(_0x52e0e9){const _0x1e1587=a133_0x118b;return/^https:\/\/.+\.css(\?.*)?$/[_0x1e1587(0xba)](_0x52e0e9[_0x1e1587(0xbc)]());}export async function isUrlReachable(_0x386097){try{const _0x22fcec=await fetch(_0x386097,{'method':'HEAD'});return _0x22fcec['ok'];}catch{return![];}}
@@ -1 +1 @@
1
- function a134_0x2c97(){const _0x532e86=['6zdvLGq','/smartapi/menu/create','1671796LDrikW','selectedAppName','Non-interactive\x20menu\x20sync\x20requires\x20--yes.','POST','appcode','Would\x20create\x20','onlineMenuList','Pre-fill\x20JS/CSS\x20URLs.\x20','string','\x20\x20!\x20No\x20local\x20pages\x20found,\x20please\x20create\x20pages\x20first','Exact\x20comma-separated\x20local\x20page\x20paths\x20to\x20sync','Menu\x20creation\x20failed','str','cyan','map','\x20\x20Continue\x20with\x20creation?','4583655KOFwuy','Menu\x20sync\x20completed:\x20','3850885lJorXP','targetPages','skipped','paths','901202ClggdN','875971kefAVA','cookie','Failed\x20to\x20fetch\x20online\x20menu\x20list','menu\x20sync\x20--paths\x20requires\x20--yes\x20for\x20execution.','\x20menu(s)','\x20local\x20microfrontend\x20menu(s).','Created\x20','Menu\x20sync\x20skipped','menu','gray','\x20and\x20CSS:\x20','failed','created','appCode','localPages','jsUrl','\x20menu(s)...','menu\x20sync\x20requires\x20a\x20project\x20context\x20or\x20explicit\x20--appcode.\x20','1844252PYItGa','length','write','\x20menu(s)\x20with\x20JS:\x20','size','\x20created.','✓\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform','yellow','Online\x20menu\x20list\x20fetched','6uUeYIK','cssUrl','sync','\x20\x20Cancelled.','JSON:\x20{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}','No\x20local\x20microfrontend\x20menus\x20would\x20be\x20created.','Run\x20inside\x20a\x20directory\x20with\x20.rabetbase.json,\x20or\x20pass\x20--appcode\x20<code>.','filter','flag','message','✓\x20Menu\x20sync\x20completed:\x20','validation','trim','5739624ujFSmX'];a134_0x2c97=function(){return _0x532e86;};return a134_0x2c97();}const a134_0x18b31c=a134_0x8df3;(function(_0x5f0d6b,_0x10124f){const _0x4ada99=a134_0x8df3,_0xaac293=_0x5f0d6b();while(!![]){try{const _0x16aaeb=parseInt(_0x4ada99(0xc8))/0x1+parseInt(_0x4ada99(0xc7))/0x2*(parseInt(_0x4ada99(0xaf))/0x3)+-parseInt(_0x4ada99(0xda))/0x4+-parseInt(_0x4ada99(0xc3))/0x5+parseInt(_0x4ada99(0xa1))/0x6*(parseInt(_0x4ada99(0xb1))/0x7)+-parseInt(_0x4ada99(0xae))/0x8+parseInt(_0x4ada99(0xc1))/0x9;if(_0x16aaeb===_0x10124f)break;else _0xaac293['push'](_0xaac293['shift']());}catch(_0x580cdd){_0xaac293['push'](_0xaac293['shift']());}}}(a134_0x2c97,0x8cc5b));import a134_0x367112 from'chalk';import{buildCompareRows,doCreateMenus,fetchMenuData}from'../../commands/menu/shared/logic.js';import{renderCompareTable,renderSyncSummary}from'../../commands/menu/shared/compare-table.js';import{selectPages,askJsUrl,askCssUrl,askConfirm,startSpinner,stopSpinner,isInteractive,requireInteractive}from'../../commands/menu/shared/inquirer.js';import{CliErrors}from'../../errors.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{parseMenuSyncParams,runMenuSyncCore}from'../../commands/menu/shared/sync-core.js';function a134_0x8df3(_0x4a868e,_0x343d6c){_0x4a868e=_0x4a868e-0x9c;const _0x2c9702=a134_0x2c97();let _0x8df324=_0x2c9702[_0x4a868e];return _0x8df324;}import{getLocalPages}from'../../commands/menu/shared/local-pages.js';import{isInProject}from'../../context.js';export const menuSync={'service':a134_0x18b31c(0xd0),'command':a134_0x18b31c(0xa3),'description':'Sync\x20local\x20pages\x20as\x20platform\x20menus','risk':a134_0x18b31c(0xdc),'flags':[{'name':'params','type':a134_0x18b31c(0xb9),'description':a134_0x18b31c(0xb8)+a134_0x18b31c(0xa5)},{'name':'paths','type':'string','description':a134_0x18b31c(0xbb)},{'name':'yes','type':'boolean','description':'Confirm\x20non-interactive\x20sync;\x20without\x20--paths,\x20create\x20all\x20missing\x20local\x20pages'}],async 'dryRun'(_0x2ac711){const _0x430e40=a134_0x18b31c;ensureRunnableContext(_0x2ac711['rawFlags'],_0x2ac711[_0x430e40(0xb2)]);const _0x2023ed=await runMenuSyncCore(_0x2ac711['appCode'],_0x2ac711['cookie'],parsePaths(_0x2ac711[_0x430e40(0xbd)](_0x430e40(0xc6))),_0x2ac711['str']('params'),{'dryRun':!![]});return{'method':_0x430e40(0xb4),'url':_0x430e40(0xb0),'body':_0x2023ed,'description':_0x2023ed[_0x430e40(0xc5)]?_0x430e40(0xa6):_0x430e40(0xb6)+_0x2023ed[_0x430e40(0xc4)][_0x430e40(0xdb)]+_0x430e40(0xcd)};},async 'execute'(_0x1e9a21){const _0x33f59a=a134_0x18b31c;ensureRunnableContext(_0x1e9a21['rawFlags'],_0x1e9a21[_0x33f59a(0xb2)]);const _0x56d79b=_0x1e9a21[_0x33f59a(0xa9)]('yes'),_0x1c9bf1=_0x1e9a21[_0x33f59a(0xbd)]('params'),_0x58872f=parsePaths(_0x1e9a21[_0x33f59a(0xbd)](_0x33f59a(0xc6))),_0xa1e788=parseMenuSyncParams(_0x1c9bf1);if(_0x56d79b){const _0x4c03dc=await runMenuSyncCore(_0x1e9a21[_0x33f59a(0xd5)],_0x1e9a21[_0x33f59a(0xc9)],_0x58872f,_0x1c9bf1);if(_0x4c03dc[_0x33f59a(0xc5)]){const _0x376d0e=getLocalPages();_0x376d0e[_0x33f59a(0xdb)]===0x0?writeCliSideChannelLine('!\x20No\x20local\x20pages\x20found\x20in\x20src/pages'):writeCliSideChannelLine(_0x33f59a(0x9e));}else writeCliSideChannelLine(_0x33f59a(0xab)+_0x4c03dc['created']+'\x20menu(s)\x20created');return{'ok':!![],'data':_0x4c03dc,'message':_0x4c03dc['skipped']?_0x33f59a(0xcf):'Menu\x20sync\x20completed:\x20'+_0x4c03dc[_0x33f59a(0xd4)]+_0x33f59a(0x9d)};}if(_0x58872f['length']>0x0)throw CliErrors[_0x33f59a(0xac)](_0x33f59a(0xcb),'Preview\x20with\x20--dry-run,\x20then\x20reuse\x20the\x20same\x20--paths\x20and\x20--params\x20with\x20--yes.');if(!isInteractive()&&_0x1c9bf1)throw CliErrors[_0x33f59a(0xac)](_0x33f59a(0xb3),'Preview\x20with\x20--dry-run,\x20then\x20reuse\x20the\x20same\x20--paths\x20and\x20--params\x20with\x20--yes.');requireInteractive();const _0x2362c6=startSpinner('Fetching\x20online\x20menu\x20list...');let _0x4ef3cf,_0x10ad23,_0x11ca66;try{const _0xc61ef9=await fetchMenuData(_0x1e9a21[_0x33f59a(0xd5)],_0x1e9a21[_0x33f59a(0xc9)]);_0x4ef3cf=_0xc61ef9[_0x33f59a(0xd6)],_0x10ad23=_0xc61ef9['onlinePaths'],_0x11ca66=_0xc61ef9[_0x33f59a(0xb7)],stopSpinner(_0x2362c6,_0x33f59a(0xa0),!![]);}catch(_0x4059e7){stopSpinner(_0x2362c6,_0x33f59a(0xca),![]);throw CliErrors[_0x33f59a(0xac)](_0x4059e7 instanceof Error?_0x4059e7[_0x33f59a(0xaa)]:_0x33f59a(0xca));}if(_0x4ef3cf[_0x33f59a(0xdb)]===0x0)return writeCliSideChannelLine(a134_0x367112[_0x33f59a(0x9f)](_0x33f59a(0xba))),{'ok':!![]};const _0x150216=buildCompareRows(_0x4ef3cf,_0x10ad23);writeCliSideChannelLine(renderCompareTable(_0x150216)),writeCliSideChannelLine('');const _0x41b1c0=await selectPages(_0x4ef3cf,_0x10ad23);writeCliSideChannelLine(''),writeCliSideChannelLine(a134_0x367112[_0x33f59a(0xbe)]('\x20\x20✓\x20Selected:\x20'+_0x41b1c0[_0x33f59a(0xdb)]+'\x20page(s)'));const _0x2281c6=_0xa1e788[_0x33f59a(0xd7)]&&_0xa1e788[_0x33f59a(0xa2)];if(!_0x2281c6){writeCliSideChannelLine(renderSyncSummary(_0x41b1c0,_0x10ad23[_0x33f59a(0x9c)]>0x0));const _0x183dca=await askConfirm(_0x33f59a(0xc0));if(!_0x183dca)return writeCliSideChannelLine(a134_0x367112[_0x33f59a(0xd1)](_0x33f59a(0xa4))),{'ok':!![]};}let _0x4fec8d=_0xa1e788[_0x33f59a(0xd7)],_0x33cced=_0xa1e788[_0x33f59a(0xa2)];!_0x4fec8d&&(_0x4fec8d=await askJsUrl());!_0x33cced&&(_0x33cced=await askCssUrl());const _0xac26a7=await askConfirm('\x20\x20Create\x20'+_0x41b1c0[_0x33f59a(0xdb)]+_0x33f59a(0xdd)+_0x4fec8d+_0x33f59a(0xd2)+_0x33cced+'?');if(!_0xac26a7)return writeCliSideChannelLine(a134_0x367112[_0x33f59a(0xd1)](_0x33f59a(0xa4))),{'ok':!![]};const _0x4dbc5c=[_0x4fec8d,_0x33cced],_0x2299cb=startSpinner('Creating\x20'+_0x41b1c0[_0x33f59a(0xdb)]+_0x33f59a(0xd8));try{const _0x5cec1b=await doCreateMenus(_0x1e9a21['appCode'],_0x1e9a21['cookie'],_0x41b1c0,_0x4dbc5c);return stopSpinner(_0x2299cb,_0x33f59a(0xce)+_0x5cec1b[_0x33f59a(0xd4)]+_0x33f59a(0xcc),!![]),{'ok':!![],'data':_0x5cec1b,'message':_0x33f59a(0xc2)+_0x5cec1b['created']+'\x20created,\x20'+_0x5cec1b[_0x33f59a(0xd3)]+'\x20failed.'};}catch(_0x4c9f3c){stopSpinner(_0x2299cb,_0x33f59a(0xbc),![]);throw CliErrors['validation'](_0x4c9f3c instanceof Error?_0x4c9f3c[_0x33f59a(0xaa)]:'Menu\x20creation\x20failed');}}};function ensureRunnableContext(_0x1d411f,_0x49e2ce){const _0x4c9da3=a134_0x18b31c,_0x2f99d7=_0x1d411f[_0x4c9da3(0xb5)]?String(_0x1d411f['appcode'])[_0x4c9da3(0xad)]():'';if(!isInProject()&&!_0x49e2ce&&!_0x2f99d7)throw CliErrors[_0x4c9da3(0xac)](_0x4c9da3(0xd9)+_0x4c9da3(0xa7));}function parsePaths(_0x532e37){const _0x25ccee=a134_0x18b31c;return[...new Set(_0x532e37['split'](',')[_0x25ccee(0xbf)](_0x12fd40=>_0x12fd40[_0x25ccee(0xad)]())[_0x25ccee(0xa8)](Boolean))];}
1
+ const a134_0x58a356=a134_0x1271;(function(_0x575ad6,_0x6980f0){const _0x5be1ca=a134_0x1271,_0x2c638a=_0x575ad6();while(!![]){try{const _0x2e358b=parseInt(_0x5be1ca(0xdb))/0x1+parseInt(_0x5be1ca(0xcc))/0x2+parseInt(_0x5be1ca(0xd3))/0x3+parseInt(_0x5be1ca(0xef))/0x4+parseInt(_0x5be1ca(0xf7))/0x5+-parseInt(_0x5be1ca(0xde))/0x6+-parseInt(_0x5be1ca(0xcf))/0x7*(parseInt(_0x5be1ca(0x103))/0x8);if(_0x2e358b===_0x6980f0)break;else _0x2c638a['push'](_0x2c638a['shift']());}catch(_0x35c602){_0x2c638a['push'](_0x2c638a['shift']());}}}(a134_0x4d4e,0xec728));import a134_0x20aa8d from'chalk';import{buildCompareRows,doCreateMenus,fetchMenuData}from'../../commands/menu/shared/logic.js';import{renderCompareTable,renderSyncSummary}from'../../commands/menu/shared/compare-table.js';import{selectPages,askJsUrl,askCssUrl,askConfirm,startSpinner,stopSpinner,isInteractive,requireInteractive}from'../../commands/menu/shared/inquirer.js';function a134_0x1271(_0x5a5bb5,_0xfd4286){_0x5a5bb5=_0x5a5bb5-0xc6;const _0x4d4ec9=a134_0x4d4e();let _0x12718e=_0x4d4ec9[_0x5a5bb5];return _0x12718e;}import{CliErrors}from'../../errors.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{parseMenuSyncParams,runMenuSyncCore}from'../../commands/menu/shared/sync-core.js';import{getLocalPages}from'../../commands/menu/shared/local-pages.js';function a134_0x4d4e(){const _0x5201e0=['Created\x20','message','jsUrl','\x20\x20!\x20No\x20local\x20pages\x20found,\x20please\x20create\x20pages\x20first','onlinePaths','map','\x20\x20Cancelled.','\x20created,\x20','skipped','menu\x20sync\x20--paths\x20requires\x20--yes\x20for\x20execution.','paths','496JgzMZD','params','No\x20local\x20microfrontend\x20menus\x20would\x20be\x20created.','/smartapi/menu/create','✓\x20Menu\x20sync\x20completed:\x20','Menu\x20creation\x20failed','Fetching\x20online\x20menu\x20list...','Online\x20menu\x20list\x20fetched','appCode','rawFlags','Preview\x20with\x20--dry-run,\x20then\x20reuse\x20the\x20same\x20--paths\x20and\x20--params\x20with\x20--yes.','3870742GlkyTl','trim','size','192899nnulcm','Menu\x20sync\x20completed:\x20','\x20menu(s)\x20with\x20JS:\x20','Exact\x20comma-separated\x20local\x20page\x20paths\x20to\x20sync','2833689orYnCQ','Non-interactive\x20menu\x20sync\x20requires\x20--yes.','created','split','Sync\x20local\x20pages\x20as\x20platform\x20menus','Creating\x20','Menu\x20sync\x20skipped','Confirm\x20non-interactive\x20sync;\x20without\x20--paths,\x20create\x20all\x20missing\x20local\x20pages','22737CLOMGL','POST','\x20\x20Create\x20','8586702HPPMGD','✓\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform','cssUrl','failed','length','gray','\x20failed.','flag','validation','sync','!\x20No\x20local\x20pages\x20found\x20in\x20src/pages','appcode','Failed\x20to\x20fetch\x20online\x20menu\x20list','\x20\x20✓\x20Selected:\x20','Run\x20inside\x20a\x20directory\x20with\x20.rabetbase.json,\x20or\x20pass\x20--appcode\x20<code>.','string','yellow','2659660nceKxR','\x20and\x20CSS:\x20','cookie','boolean','\x20created.','yes','str','menu','2702765qjqywj'];a134_0x4d4e=function(){return _0x5201e0;};return a134_0x4d4e();}import{isInProject}from'../../context.js';export const menuSync={'service':a134_0x58a356(0xf6),'command':a134_0x58a356(0xe7),'description':a134_0x58a356(0xd7),'risk':'write','flags':[{'name':a134_0x58a356(0x104),'type':a134_0x58a356(0xed),'description':'Pre-fill\x20JS/CSS\x20URLs.\x20'+'JSON:\x20{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}'},{'name':a134_0x58a356(0x102),'type':a134_0x58a356(0xed),'description':a134_0x58a356(0xd2)},{'name':a134_0x58a356(0xf4),'type':a134_0x58a356(0xf2),'description':a134_0x58a356(0xda)}],async 'dryRun'(_0xd17ade){const _0x5d0e01=a134_0x58a356;ensureRunnableContext(_0xd17ade[_0x5d0e01(0xca)],_0xd17ade['selectedAppName']);const _0x51adc2=await runMenuSyncCore(_0xd17ade['appCode'],_0xd17ade[_0x5d0e01(0xf1)],parsePaths(_0xd17ade[_0x5d0e01(0xf5)](_0x5d0e01(0x102))),_0xd17ade[_0x5d0e01(0xf5)]('params'),{'dryRun':!![]});return{'method':_0x5d0e01(0xdc),'url':_0x5d0e01(0x106),'body':_0x51adc2,'description':_0x51adc2[_0x5d0e01(0x100)]?_0x5d0e01(0x105):'Would\x20create\x20'+_0x51adc2['targetPages'][_0x5d0e01(0xe2)]+'\x20local\x20microfrontend\x20menu(s).'};},async 'execute'(_0x12d040){const _0x37b177=a134_0x58a356;ensureRunnableContext(_0x12d040['rawFlags'],_0x12d040['selectedAppName']);const _0x16c5a5=_0x12d040[_0x37b177(0xe5)](_0x37b177(0xf4)),_0x1958be=_0x12d040[_0x37b177(0xf5)](_0x37b177(0x104)),_0x1751b5=parsePaths(_0x12d040['str'](_0x37b177(0x102))),_0x4d0e7f=parseMenuSyncParams(_0x1958be);if(_0x16c5a5){const _0x642d10=await runMenuSyncCore(_0x12d040[_0x37b177(0xc9)],_0x12d040[_0x37b177(0xf1)],_0x1751b5,_0x1958be);if(_0x642d10[_0x37b177(0x100)]){const _0x1feb2c=getLocalPages();_0x1feb2c[_0x37b177(0xe2)]===0x0?writeCliSideChannelLine(_0x37b177(0xe8)):writeCliSideChannelLine(_0x37b177(0xdf));}else writeCliSideChannelLine(_0x37b177(0x107)+_0x642d10['created']+'\x20menu(s)\x20created');return{'ok':!![],'data':_0x642d10,'message':_0x642d10[_0x37b177(0x100)]?_0x37b177(0xd9):_0x37b177(0xd0)+_0x642d10[_0x37b177(0xd5)]+_0x37b177(0xf3)};}if(_0x1751b5[_0x37b177(0xe2)]>0x0)throw CliErrors[_0x37b177(0xe6)](_0x37b177(0x101),_0x37b177(0xcb));if(!isInteractive()&&_0x1958be)throw CliErrors[_0x37b177(0xe6)](_0x37b177(0xd4),_0x37b177(0xcb));requireInteractive();const _0x51e922=startSpinner(_0x37b177(0xc7));let _0x4900d2,_0x19b21f,_0x4da321;try{const _0x44101c=await fetchMenuData(_0x12d040[_0x37b177(0xc9)],_0x12d040[_0x37b177(0xf1)]);_0x4900d2=_0x44101c['localPages'],_0x19b21f=_0x44101c[_0x37b177(0xfc)],_0x4da321=_0x44101c['onlineMenuList'],stopSpinner(_0x51e922,_0x37b177(0xc8),!![]);}catch(_0x537b0b){stopSpinner(_0x51e922,'Failed\x20to\x20fetch\x20online\x20menu\x20list',![]);throw CliErrors[_0x37b177(0xe6)](_0x537b0b instanceof Error?_0x537b0b[_0x37b177(0xf9)]:_0x37b177(0xea));}if(_0x4900d2['length']===0x0)return writeCliSideChannelLine(a134_0x20aa8d[_0x37b177(0xee)](_0x37b177(0xfb))),{'ok':!![]};const _0xb24d63=buildCompareRows(_0x4900d2,_0x19b21f);writeCliSideChannelLine(renderCompareTable(_0xb24d63)),writeCliSideChannelLine('');const _0x5d32fe=await selectPages(_0x4900d2,_0x19b21f);writeCliSideChannelLine(''),writeCliSideChannelLine(a134_0x20aa8d['cyan'](_0x37b177(0xeb)+_0x5d32fe[_0x37b177(0xe2)]+'\x20page(s)'));const _0x453fa4=_0x4d0e7f[_0x37b177(0xfa)]&&_0x4d0e7f[_0x37b177(0xe0)];if(!_0x453fa4){writeCliSideChannelLine(renderSyncSummary(_0x5d32fe,_0x19b21f[_0x37b177(0xce)]>0x0));const _0x274c3f=await askConfirm('\x20\x20Continue\x20with\x20creation?');if(!_0x274c3f)return writeCliSideChannelLine(a134_0x20aa8d[_0x37b177(0xe3)](_0x37b177(0xfe))),{'ok':!![]};}let _0x24f1d7=_0x4d0e7f['jsUrl'],_0x57ef04=_0x4d0e7f[_0x37b177(0xe0)];!_0x24f1d7&&(_0x24f1d7=await askJsUrl());!_0x57ef04&&(_0x57ef04=await askCssUrl());const _0x18e48b=await askConfirm(_0x37b177(0xdd)+_0x5d32fe['length']+_0x37b177(0xd1)+_0x24f1d7+_0x37b177(0xf0)+_0x57ef04+'?');if(!_0x18e48b)return writeCliSideChannelLine(a134_0x20aa8d[_0x37b177(0xe3)](_0x37b177(0xfe))),{'ok':!![]};const _0x323c95=[_0x24f1d7,_0x57ef04],_0x40b340=startSpinner(_0x37b177(0xd8)+_0x5d32fe['length']+'\x20menu(s)...');try{const _0x2a4b22=await doCreateMenus(_0x12d040[_0x37b177(0xc9)],_0x12d040[_0x37b177(0xf1)],_0x5d32fe,_0x323c95);return stopSpinner(_0x40b340,_0x37b177(0xf8)+_0x2a4b22[_0x37b177(0xd5)]+'\x20menu(s)',!![]),{'ok':!![],'data':_0x2a4b22,'message':_0x37b177(0xd0)+_0x2a4b22['created']+_0x37b177(0xff)+_0x2a4b22[_0x37b177(0xe1)]+_0x37b177(0xe4)};}catch(_0x1c729d){stopSpinner(_0x40b340,_0x37b177(0xc6),![]);throw CliErrors[_0x37b177(0xe6)](_0x1c729d instanceof Error?_0x1c729d[_0x37b177(0xf9)]:'Menu\x20creation\x20failed');}}};function ensureRunnableContext(_0x33dd03,_0x9fe50a){const _0x3397fa=a134_0x58a356,_0x3ccf87=_0x33dd03[_0x3397fa(0xe9)]?String(_0x33dd03[_0x3397fa(0xe9)])[_0x3397fa(0xcd)]():'';if(!isInProject()&&!_0x9fe50a&&!_0x3ccf87)throw CliErrors[_0x3397fa(0xe6)]('menu\x20sync\x20requires\x20a\x20project\x20context\x20or\x20explicit\x20--appcode.\x20'+_0x3397fa(0xec));}function parsePaths(_0x3278c3){const _0x4379c2=a134_0x58a356;return[...new Set(_0x3278c3[_0x4379c2(0xd6)](',')[_0x4379c2(0xfd)](_0xb237ec=>_0xb237ec['trim']())['filter'](Boolean))];}
@@ -1,2 +1,2 @@
1
1
  import type { CommandDefinition } from "../../framework/types.js";
2
- export declare const pageStandardPageStatus: CommandDefinition;
2
+ export declare const menuVisibilityUpdate: CommandDefinition;
@@ -0,0 +1 @@
1
+ const a135_0x23d9fb=a135_0x4928;function a135_0x4818(){const _0x58c841=['parentId','menu_expected_count_mismatch','hash','Abort\x20unless\x20every\x20selected\x20menu\x20has\x20this\x20visibility','Selected\x20menu\x20visibility\x20changed\x20for\x20id(s):\x20','values','Updated\x20visibility\x20for\x20','\x20visibility\x20could\x20not\x20be\x20verified\x20safely','depth','resourcesValid','\x20visible\x20did\x20not\x20match\x20the\x20requested\x20state.','28258OstIIM','Menu\x20id\x20selector(s)\x20not\x20found:\x20','pageId','--expected-count\x20must\x20be\x20a\x20non-negative\x20integer.','isArray','datasetId','Every\x20selected\x20menu\x20already\x20has\x20the\x20requested\x20visibility;\x20no\x20write\x20is\x20needed.','\x20skipped,\x20','264OxUtdJ','Requested\x20menu\x20visibility','validation','Menu\x20visibility\x20update\x20completed:\x20','str','Failed\x20update\x20requests\x20were\x20not\x20retried;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','menu_verification_failed','menuIds','verify\x20menu\x20visibility\x20update','The\x20update\x20may\x20have\x20taken\x20effect;\x20inspect\x20the\x20latest\x20menu\x20facts\x20before\x20retrying.','Menu\x20','pageType','Visibility\x20update\x20requests\x20completed\x20but\x20readback\x20could\x20not\x20confirm\x20the\x20requested\x20state','Final\x20menu\x20visibility\x20readback\x20failed.','One\x20or\x20more\x20updates\x20may\x20have\x20changed\x20fields\x20outside\x20visibility;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expected-count.','sort','menu_selector_not_found','\x20changed\x20unexpectedly.','\x20must\x20be\x20true\x20or\x20false.','expectedCount','modelType','before','expectVisible','failed','6989274sfXJlJ','false','Menu\x20path\x20selector\x20matched\x20multiple\x20menus:\x20','visibility-update','verification','set','filter','Use\x20--menu-ids\x20with\x20one\x20or\x20more\x20of:\x20','join','/smartapi/menu/update','Response\x20was\x20lost\x20and\x20menu\x20','stringify','\x20unchanged\x20menu(s).','true','paths','byId','isSafeInteger','\x20and\x20final\x20state\x20could\x20not\x20be\x20read.','some','Menu\x20visibility\x20update\x20could\x20not\x20be\x20verified\x20for\x20id(s):\x20','\x20menu(s);\x20skipped\x20','--menu-ids\x20must\x20contain\x20positive\x20safe\x20integers.','\x20menu(s);\x20skip\x20','593997PrJRHD','\x20visibility\x20update\x20could\x20not\x20be\x20verified','menu-ids','visible','rabetbase\x20menu\x20list\x20--format\x20compress','message','url','menu_permission_denied','update-menu-visibility','map','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20an\x20exact\x20current\x20path.','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expect-visible.','update\x20visibility\x20for','updated','cookie','Would\x20update\x20visibility\x20for\x20','push','Menu\x20path\x20selector\x20not\x20found:\x20','Inspect\x20current\x20menu\x20facts\x20before\x20retrying\x20any\x20target.','number','num','165020TuxQsx','childrenCount','menu\x20visibility-update\x20requires\x20--menu-ids\x20or\x20--paths.','\x20failed.','appCode','beforeById','label','update\x20menu\x20visibility','get','warnings','requestedVisible','high-risk-write','body','796948TFgevk','split','3243306pTDQDT','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20exact\x20current\x20ids.','boolean','childrenIds','menu\x20list','Selected\x20','plan','\x20was\x20not\x20found\x20during\x20visibility\x20verification.','Exact\x20comma-separated\x20menu\x20IDs\x20to\x20update','trim','length','menu_selector_ambiguous','path','29071jFEyHM','expected-count','POST','code','string','225UWQJcP','resources','targets','plannedActions','rawFlags','expect-visible','update','datasetCode'];a135_0x4818=function(){return _0x58c841;};return a135_0x4818();}(function(_0x3e8996,_0x2b68d8){const _0x42152b=a135_0x4928,_0x599fd3=_0x3e8996();while(!![]){try{const _0x5537a6=-parseInt(_0x42152b(0xfa))/0x1+-parseInt(_0x42152b(0xc2))/0x2*(-parseInt(_0x42152b(0xaf))/0x3)+parseInt(_0x42152b(0x9b))/0x4+parseInt(_0x42152b(0x10f))/0x5+parseInt(_0x42152b(0x9d))/0x6+parseInt(_0x42152b(0xaa))/0x7*(parseInt(_0x42152b(0xca))/0x8)+-parseInt(_0x42152b(0xe3))/0x9;if(_0x5537a6===_0x2b68d8)break;else _0x599fd3['push'](_0x599fd3['shift']());}catch(_0xcc2f71){_0x599fd3['push'](_0x599fd3['shift']());}}}(a135_0x4818,0x92395));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../commands/menu/shared/facts.js';import{asVerificationError,assertVerified,describeMenuErrorCause,fetchMutationSnapshot,hasFlag,isMenuResponseLoss,mapMenuApiError,menuDryRunResult,menuError,menuFailure,mutationResult,recheckMutationSnapshot,requireExplicitYes}from'../../commands/menu/shared/mutations.js';function a135_0x4928(_0x56b4ef,_0x4b01c0){_0x56b4ef=_0x56b4ef-0x99;const _0x481839=a135_0x4818();let _0x4928c0=_0x481839[_0x56b4ef];return _0x4928c0;}import{updateMenuEntity}from'../../commands/menu/shared/service.js';import{CliErrors}from'../../errors.js';const BACKEND=[{'method':a135_0x23d9fb(0xac),'path':a135_0x23d9fb(0xec)}];export const menuVisibilityUpdate={'service':'menu','command':a135_0x23d9fb(0xe6),'description':'Set\x20exact\x20menus\x20visible\x20or\x20hidden\x20without\x20changing\x20their\x20routes\x20or\x20resources','risk':a135_0x23d9fb(0x99),'structuredErrors':!![],'flags':[{'name':a135_0x23d9fb(0xfc),'type':'string','description':a135_0x23d9fb(0xa5)},{'name':'paths','type':a135_0x23d9fb(0xae),'description':'Exact\x20comma-separated\x20menu\x20paths\x20to\x20update'},{'name':a135_0x23d9fb(0xfd),'type':a135_0x23d9fb(0x9f),'required':!![],'description':a135_0x23d9fb(0xcb)},{'name':'expect-visible','type':'boolean','description':a135_0x23d9fb(0xba)},{'name':a135_0x23d9fb(0xab),'type':a135_0x23d9fb(0x10d),'description':'Abort\x20unless\x20the\x20exact\x20number\x20of\x20selected\x20menus\x20matches'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x1374c7){parseInput(_0x1374c7),requireExplicitYes(_0x1374c7);},async 'dryRun'(_0x4b3d71){const _0x243fc7=a135_0x23d9fb,_0x7aefc4=await buildPlan(_0x4b3d71,!![]),_0x32e5ff=_0x7aefc4[_0x243fc7(0xa3)][_0x243fc7(0xb2)]?.[_0x243fc7(0xa7)]??0x0,_0x418123=_0x7aefc4[_0x243fc7(0xa3)][_0x243fc7(0xb1)][_0x243fc7(0xa7)]-_0x32e5ff;return menuDryRunResult(_0x7aefc4['plan'],{'method':_0x243fc7(0xac),'url':'/smartapi/menu/update','body':{'updates':_0x7aefc4[_0x243fc7(0xa3)][_0x243fc7(0xb2)]?.[_0x243fc7(0x103)](_0x4a751f=>_0x4a751f[_0x243fc7(0x9a)])??[]},'description':_0x243fc7(0x109)+_0x32e5ff+_0x243fc7(0xf9)+_0x418123+'\x20unchanged\x20menu(s).'});},async 'execute'(_0xa9f06a){const _0x2c3edb=a135_0x23d9fb;requireExplicitYes(_0xa9f06a);const _0x5ce83b=await buildPlan(_0xa9f06a,![]);await recheckMutationSnapshot(_0xa9f06a,_0x5ce83b[_0x2c3edb(0xa3)],_0x2c3edb(0x116));const _0x1d86e9=[],_0x5b27a3=[],_0x15cc59=[];for(const _0x14d34b of _0x5ce83b[_0x2c3edb(0xa3)][_0x2c3edb(0xb1)]){if(_0x14d34b[_0x2c3edb(0xe0)][_0x2c3edb(0xfd)]===_0x5ce83b[_0x2c3edb(0xa3)][_0x2c3edb(0x119)]){_0x1d86e9['push']({'id':_0x14d34b['id'],'updated':![],'skipped':!![]});continue;}try{await updateMenuEntity(_0xa9f06a['appCode'],_0xa9f06a[_0x2c3edb(0x108)],{'id':_0x14d34b['id'],'visible':_0x5ce83b[_0x2c3edb(0xa3)][_0x2c3edb(0x119)]}),_0x1d86e9[_0x2c3edb(0x10a)]({'id':_0x14d34b['id'],'updated':!![],'skipped':![]});}catch(_0x35b0a4){const _0x3f21a2=mapMenuApiError(_0x35b0a4,_0x2c3edb(0x106),_0x14d34b['id']);if(isMenuResponseLoss(_0x35b0a4)&&_0x3f21a2['code']!==_0x2c3edb(0x101)){_0x15cc59[_0x2c3edb(0x10a)](_0x14d34b['id']);continue;}_0x5b27a3[_0x2c3edb(0x10a)]({'id':_0x14d34b['id'],'stage':_0x2c3edb(0xb5),'code':_0x3f21a2[_0x2c3edb(0xad)],'message':_0x3f21a2[_0x2c3edb(0xff)]});}}let _0x291735;try{_0x291735=await fetchMenuSnapshot(_0xa9f06a['appCode'],_0xa9f06a[_0x2c3edb(0x108)]);}catch(_0x4d2cc4){const _0x479b17=describeMenuErrorCause(_0x4d2cc4,_0x2c3edb(0xd2)),_0x2c6c8a=_0x15cc59[_0x2c3edb(0x103)](_0x1754fa=>({'id':_0x1754fa,'stage':'update-recovery','code':'menu_verification_failed','message':'Response\x20was\x20lost\x20for\x20menu\x20'+_0x1754fa+_0x2c3edb(0xf4),'requestedStateConfirmed':![],'recovered':![]})),_0x16329d={'stage':_0x2c3edb(0xe7),'code':'menu_verification_failed','message':_0x2c3edb(0xd7),'targetIds':_0x5ce83b[_0x2c3edb(0xa3)][_0x2c3edb(0xb1)][_0x2c3edb(0x103)](_0x275bfe=>_0x275bfe['id']),'requestedStateConfirmed':![],..._0x479b17};throw menuFailure(asVerificationError(_0x4d2cc4,_0x2c3edb(0xd6)),_0x5ce83b['plan'],{'stage':_0x2c3edb(0xe7),'succeeded':_0x1d86e9,'failedRecords':[..._0x5b27a3,..._0x2c6c8a,_0x16329d],'warnings':[_0x2c3edb(0xd3)],'verification':{'status':_0x2c3edb(0xe2),'recoveredCount':0x0,'lookupCommand':_0x2c3edb(0xfe)}});}const _0x41f0ee=[];for(const _0x50f592 of _0x1d86e9){const _0x3d8800=Number(_0x50f592['id']),_0x5ccdb6=_0x5ce83b[_0x2c3edb(0x114)][_0x2c3edb(0x117)](_0x3d8800),_0x5acaab=_0x291735[_0x2c3edb(0xf2)]['get'](_0x3d8800);try{verifyVisibilityUpdate(_0x5ccdb6,_0x5acaab,_0x5ce83b['plan'][_0x2c3edb(0x119)]);}catch(_0x52fa63){const _0x58b266=asVerificationError(_0x52fa63,'Menu\x20'+_0x3d8800+_0x2c3edb(0xfb));_0x41f0ee[_0x2c3edb(0x10a)]({'id':_0x3d8800,'stage':'verification','code':_0x58b266['code'],'message':_0x58b266[_0x2c3edb(0xff)],'requestedStateConfirmed':![]});}}for(const _0x3be6eb of _0x15cc59){const _0x34b073=_0x5ce83b[_0x2c3edb(0x114)][_0x2c3edb(0x117)](_0x3be6eb),_0x91c0bf=_0x291735[_0x2c3edb(0xf2)]['get'](_0x3be6eb);try{verifyVisibilityUpdate(_0x34b073,_0x91c0bf,_0x5ce83b[_0x2c3edb(0xa3)][_0x2c3edb(0x119)]),_0x1d86e9[_0x2c3edb(0x10a)]({'id':_0x3be6eb,'updated':!![],'skipped':![],'recovered':!![]});}catch(_0x3b2084){const _0x99ac07=asVerificationError(_0x3b2084,_0x2c3edb(0xed)+_0x3be6eb+_0x2c3edb(0xbe));_0x41f0ee[_0x2c3edb(0x10a)]({'id':_0x3be6eb,'stage':'update-recovery','code':_0x99ac07[_0x2c3edb(0xad)],'message':_0x99ac07[_0x2c3edb(0xff)],'requestedStateConfirmed':![],'recovered':![]});}}if(_0x41f0ee[_0x2c3edb(0xa7)]>0x0){const _0x4d5b29=_0x41f0ee['map'](_0x1e3a5b=>Number(_0x1e3a5b['id'])),_0xc78f67=_0x1d86e9[_0x2c3edb(0xe9)](_0x3379b0=>_0x3379b0['recovered']===!![])[_0x2c3edb(0xa7)],_0x4bc6d3=menuError(_0x2c3edb(0xd0),_0x2c3edb(0xf6)+_0x4d5b29[_0x2c3edb(0xeb)](',\x20')+'.',_0x2c3edb(0x10c));throw menuFailure(_0x4bc6d3,_0x5ce83b[_0x2c3edb(0xa3)],{'stage':'verification','succeeded':_0x1d86e9,'failedRecords':[..._0x5b27a3,..._0x41f0ee],'warnings':[_0x2c3edb(0xd8)],'verification':{'status':_0x2c3edb(0xe2),..._0x4d5b29[_0x2c3edb(0xa7)]===0x1?{'targetId':_0x4d5b29[0x0]}:{'targetIds':_0x4d5b29},'recoveredCount':_0xc78f67,'lookupCommand':'rabetbase\x20menu\x20list\x20--format\x20compress'}});}const _0x51ba89=_0x1d86e9[_0x2c3edb(0xe9)](_0x1a3475=>_0x1a3475[_0x2c3edb(0x107)]===!![])[_0x2c3edb(0xa7)],_0x4bbba2=_0x1d86e9['length']-_0x51ba89,_0x1d49b5={..._0x5ce83b[_0x2c3edb(0xa3)],'succeeded':_0x1d86e9,'failed':_0x5b27a3,'warnings':_0x5b27a3['length']>0x0?[..._0x5ce83b[_0x2c3edb(0xa3)][_0x2c3edb(0x118)],_0x2c3edb(0xcf)]:_0x5ce83b['plan'][_0x2c3edb(0x118)],'verification':{'checkedBy':_0x2c3edb(0xa1),'snapshotHash':_0x291735[_0x2c3edb(0xb9)],'matchesRequestedState':_0x5b27a3[_0x2c3edb(0xa7)]===0x0,'recoveredCount':_0x15cc59['length']}};return{'ok':_0x5b27a3[_0x2c3edb(0xa7)]===0x0,'data':_0x1d49b5,'message':_0x5b27a3['length']===0x0?_0x2c3edb(0xbd)+_0x51ba89+_0x2c3edb(0xf7)+_0x4bbba2+_0x2c3edb(0xef):_0x2c3edb(0xcd)+_0x51ba89+'\x20updated,\x20'+_0x4bbba2+_0x2c3edb(0xc9)+_0x5b27a3['length']+_0x2c3edb(0x112)};}};function parseInput(_0x6c36a6){const _0x75c895=a135_0x23d9fb,_0x1d1e07=parseMenuIds(_0x6c36a6[_0x75c895(0xce)]('menu-ids')),_0x1c9a1f=parseCsv(_0x6c36a6[_0x75c895(0xce)](_0x75c895(0xf1)));if(_0x1d1e07[_0x75c895(0xa7)]===0x0&&_0x1c9a1f[_0x75c895(0xa7)]===0x0)throw CliErrors[_0x75c895(0xcc)](_0x75c895(0x111));const _0x504d9a=parseBooleanFlag(_0x6c36a6,'visible',!![]),_0x5340d1=parseBooleanFlag(_0x6c36a6,_0x75c895(0xb4),![]);let _0xd2d814;if(hasFlag(_0x6c36a6,_0x75c895(0xab))){_0xd2d814=_0x6c36a6[_0x75c895(0x10e)](_0x75c895(0xab));if(!Number[_0x75c895(0xf3)](_0xd2d814)||_0xd2d814<0x0)throw CliErrors['validation'](_0x75c895(0xc5));}return{'menuIds':_0x1d1e07,'paths':_0x1c9a1f,'visible':_0x504d9a,'expectVisible':_0x5340d1,'expectedCount':_0xd2d814};}async function buildPlan(_0x2c0ada,_0x45be9f){const _0x420572=a135_0x23d9fb,_0x22fa79=parseInput(_0x2c0ada),_0x147a26=await fetchMutationSnapshot(_0x2c0ada,_0x420572(0x116)),_0x2fbfc7=selectTargets(_0x147a26['menus'],_0x22fa79['menuIds'],_0x22fa79['paths']);if(_0x22fa79[_0x420572(0xde)]!==undefined&&_0x2fbfc7[_0x420572(0xa7)]!==_0x22fa79[_0x420572(0xde)])throw menuError(_0x420572(0xb8),_0x420572(0xa2)+_0x2fbfc7[_0x420572(0xa7)]+'\x20menu(s),\x20expected\x20'+_0x22fa79[_0x420572(0xde)]+'.',_0x420572(0xd9));if(_0x22fa79[_0x420572(0xe1)]!==undefined){const _0x48ae57=_0x2fbfc7[_0x420572(0xe9)](_0x1ae088=>_0x1ae088[_0x420572(0xfd)]!==_0x22fa79['expectVisible']);if(_0x48ae57[_0x420572(0xa7)]>0x0)throw menuError('menu_state_drift',_0x420572(0xbb)+_0x48ae57[_0x420572(0x103)](_0x3b35b7=>_0x3b35b7['id'])[_0x420572(0xeb)](',\x20')+'.',_0x420572(0x105));}const _0x582737=_0x2fbfc7[_0x420572(0x103)](_0x114648=>({'id':_0x114648['id'],'label':_0x114648[_0x420572(0x115)],'path':_0x114648[_0x420572(0xa9)],'before':{'visible':_0x114648['visible']},'after':{'visible':_0x22fa79[_0x420572(0xfd)]}})),_0x5b5e7f=_0x582737[_0x420572(0xe9)](_0xc893ec=>_0xc893ec[_0x420572(0xe0)][_0x420572(0xfd)]!==_0x22fa79['visible'])['map'](_0x3c7b5f=>({'stage':_0x420572(0x102),'method':_0x420572(0xac),'path':_0x420572(0xec),'body':{'appCode':_0x2c0ada[_0x420572(0x113)],'id':_0x3c7b5f['id'],'visible':_0x22fa79[_0x420572(0xfd)]}})),_0x52314e=mutationResult({'operation':_0x420572(0xe6),'selector':{'menuIds':_0x22fa79[_0x420572(0xd1)],'paths':_0x22fa79[_0x420572(0xf1)]},'before':{'menus':_0x2fbfc7[_0x420572(0x103)](_0x2d480c=>({'id':_0x2d480c['id'],'path':_0x2d480c['path'],'visible':_0x2d480c[_0x420572(0xfd)]}))},'after':{'menus':_0x2fbfc7['map'](_0x4ae47b=>({'id':_0x4ae47b['id'],'path':_0x4ae47b[_0x420572(0xa9)],'visible':_0x22fa79[_0x420572(0xfd)]}))},'dryRun':_0x45be9f,'backend':[...BACKEND],'plannedActions':_0x5b5e7f,'snapshotHash':_0x147a26[_0x420572(0xb9)],'warnings':_0x5b5e7f['length']===0x0?[_0x420572(0xc8)]:[]});return{'plan':{..._0x52314e,'requestedVisible':_0x22fa79[_0x420572(0xfd)],'targets':_0x582737},'beforeById':new Map(_0x2fbfc7['map'](_0x5aaafa=>[_0x5aaafa['id'],_0x5aaafa]))};}function selectTargets(_0x41b790,_0x1a280f,_0x25e35c){const _0x554e6d=a135_0x23d9fb,_0x59315b=new Map(_0x41b790[_0x554e6d(0x103)](_0x3f1cf5=>[_0x3f1cf5['id'],_0x3f1cf5])),_0x22d5f8=new Map(),_0x54fa3b=_0x1a280f[_0x554e6d(0xe9)](_0x33b8a7=>!_0x59315b['has'](_0x33b8a7));if(_0x54fa3b[_0x554e6d(0xa7)]>0x0)throw menuError(_0x554e6d(0xdb),_0x554e6d(0xc3)+_0x54fa3b[_0x554e6d(0xeb)](',\x20')+'.',_0x554e6d(0x9e));for(const _0x269f14 of _0x1a280f){_0x22d5f8[_0x554e6d(0xe8)](_0x269f14,_0x59315b['get'](_0x269f14));}for(const _0x37aae9 of _0x25e35c){const _0x34fc9f=_0x41b790[_0x554e6d(0xe9)](_0x248f40=>_0x248f40[_0x554e6d(0xa9)]===_0x37aae9);if(_0x34fc9f[_0x554e6d(0xa7)]===0x0)throw menuError(_0x554e6d(0xdb),_0x554e6d(0x10b)+JSON[_0x554e6d(0xee)](_0x37aae9)+'.',_0x554e6d(0x104));if(_0x34fc9f['length']>0x1)throw menuError(_0x554e6d(0xa8),_0x554e6d(0xe5)+JSON['stringify'](_0x37aae9)+'.',_0x554e6d(0xea)+_0x34fc9f[_0x554e6d(0x103)](_0x354889=>_0x354889['id'])[_0x554e6d(0xeb)](',\x20')+'.');const _0x4b5c63=_0x34fc9f[0x0];_0x22d5f8[_0x554e6d(0xe8)](_0x4b5c63['id'],_0x4b5c63);}return[..._0x22d5f8[_0x554e6d(0xbc)]()];}function parseMenuIds(_0x44294d){const _0x3a7246=a135_0x23d9fb,_0x1ae329=parseCsv(_0x44294d),_0x31fec9=_0x1ae329[_0x3a7246(0x103)](Number);if(_0x31fec9[_0x3a7246(0xf5)](_0x1e18bd=>!Number[_0x3a7246(0xf3)](_0x1e18bd)||_0x1e18bd<=0x0))throw CliErrors[_0x3a7246(0xcc)](_0x3a7246(0xf8));return[...new Set(_0x31fec9)];}function parseCsv(_0x36bc20){const _0xc273f2=a135_0x23d9fb;return[...new Set(_0x36bc20[_0xc273f2(0x9c)](',')[_0xc273f2(0x103)](_0x3e8a37=>_0x3e8a37[_0xc273f2(0xa6)]())['filter'](Boolean))];}function parseBooleanFlag(_0x18d825,_0x68f698,_0x539dae){const _0xfd2edc=a135_0x23d9fb;if(!hasFlag(_0x18d825,_0x68f698)){if(_0x539dae)throw CliErrors['flagMissing'](_0x68f698);return undefined;}const _0x30e8f3=_0x18d825[_0xfd2edc(0xb3)][_0x68f698];if(_0x30e8f3===!![]||_0x30e8f3===![])return _0x30e8f3;if(_0x30e8f3===_0xfd2edc(0xf0))return!![];if(_0x30e8f3===_0xfd2edc(0xe4))return![];throw CliErrors[_0xfd2edc(0xcc)]('--'+_0x68f698+_0xfd2edc(0xdd));}function verifyVisibilityUpdate(_0x955258,_0x888713,_0x3a0c06){const _0x10bdf9=a135_0x23d9fb;assertVerified(!!_0x888713,_0x10bdf9(0xd4)+_0x955258['id']+_0x10bdf9(0xa4)),assertVerified(_0x888713[_0x10bdf9(0xfd)]===_0x3a0c06,'Menu\x20'+_0x955258['id']+_0x10bdf9(0xc1));const _0x563b54=[['id',_0x888713['id'],_0x955258['id']],[_0x10bdf9(0xb7),_0x888713[_0x10bdf9(0xb7)],_0x955258[_0x10bdf9(0xb7)]],[_0x10bdf9(0xbf),_0x888713[_0x10bdf9(0xbf)],_0x955258[_0x10bdf9(0xbf)]],[_0x10bdf9(0x115),_0x888713['label'],_0x955258['label']],[_0x10bdf9(0xa9),_0x888713['path'],_0x955258[_0x10bdf9(0xa9)]],['url',_0x888713['url'],_0x955258[_0x10bdf9(0x100)]],['type',_0x888713['type'],_0x955258['type']],['sort',_0x888713[_0x10bdf9(0xda)],_0x955258[_0x10bdf9(0xda)]],['resources',_0x888713[_0x10bdf9(0xb0)],_0x955258[_0x10bdf9(0xb0)]],[_0x10bdf9(0xc0),_0x888713['resourcesValid'],_0x955258['resourcesValid']],[_0x10bdf9(0xa0),_0x888713[_0x10bdf9(0xa0)],_0x955258['childrenIds']],[_0x10bdf9(0x110),_0x888713[_0x10bdf9(0x110)],_0x955258[_0x10bdf9(0x110)]],[_0x10bdf9(0xc4),_0x888713[_0x10bdf9(0xc4)],_0x955258[_0x10bdf9(0xc4)]],[_0x10bdf9(0xd5),_0x888713['pageType'],_0x955258['pageType']],[_0x10bdf9(0xdf),_0x888713[_0x10bdf9(0xdf)],_0x955258['modelType']],[_0x10bdf9(0xc7),_0x888713['datasetId'],_0x955258[_0x10bdf9(0xc7)]],['datasetCode',_0x888713['datasetCode'],_0x955258[_0x10bdf9(0xb6)]]];for(const [_0x47a7ce,_0x417b67,_0x15a643]of _0x563b54){assertVerified(sameValue(_0x417b67,_0x15a643),'Menu\x20'+_0x955258['id']+'\x20'+_0x47a7ce+_0x10bdf9(0xdc));}}function sameValue(_0x4a0c60,_0x2432df){const _0x2dfb70=a135_0x23d9fb;if(Array[_0x2dfb70(0xc6)](_0x4a0c60)||Array['isArray'](_0x2432df))return JSON[_0x2dfb70(0xee)](_0x4a0c60)===JSON['stringify'](_0x2432df);return _0x4a0c60===_0x2432df;}
@@ -1 +1 @@
1
- const a135_0x367df9=a135_0x4ecb;(function(_0x1de94e,_0x5cbf87){const _0x1af737=a135_0x4ecb,_0x562b9a=_0x1de94e();while(!![]){try{const _0x21cda6=parseInt(_0x1af737(0x19f))/0x1*(parseInt(_0x1af737(0x18a))/0x2)+parseInt(_0x1af737(0x189))/0x3+-parseInt(_0x1af737(0x197))/0x4*(parseInt(_0x1af737(0x191))/0x5)+-parseInt(_0x1af737(0x1a2))/0x6*(-parseInt(_0x1af737(0x1a0))/0x7)+-parseInt(_0x1af737(0x184))/0x8+parseInt(_0x1af737(0x1a3))/0x9*(-parseInt(_0x1af737(0x188))/0xa)+parseInt(_0x1af737(0x198))/0xb;if(_0x21cda6===_0x5cbf87)break;else _0x562b9a['push'](_0x562b9a['shift']());}catch(_0x36fc4f){_0x562b9a['push'](_0x562b9a['shift']());}}}(a135_0x1bfd,0x4deb8));import{asDryRunResult}from'../../commands/common/dry-run.js';import{createNotificationChannelConfig,getNotificationChannelConfig,isPlatformTransportFailure}from'../../core/api-client.js';function a135_0x4ecb(_0xfedfb9,_0x33bf2c){_0xfedfb9=_0xfedfb9-0x183;const _0x1bfd99=a135_0x1bfd();let _0x4ecb2c=_0x1bfd99[_0xfedfb9];return _0x4ecb2c;}import{assertSingleNotificationSource,createMutationInput,DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,DEFAULT_NOTIFICATION_READ_TIMEOUT,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,NOTIFICATION_APP_FLAG,NOTIFICATION_INPUT_FLAGS,projectNotificationConfig,readNotificationDocument,safeApiFailure}from'../../commands/notification/shared.js';const CREATE_PATH=a135_0x367df9(0x195);function a135_0x1bfd(){const _0x5a9f92=['notification','configCode','configName','Create\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20source','document','4155oPrUxJ','readTimeout','connectTimeout','channelConfig','/notification/channel-config/create','Inspect\x20with\x20','504lktvya','7691112CJWscK','POST','Created\x20notification\x20config\x20',';\x20do\x20not\x20resubmit.','verification','write','Notification\x20config\x20create\x20outcome\x20is\x20unknown\x20because\x20no\x20server\x20ID\x20was\x20received.','7wbhfbW','161Qyoavk','config-create','42174XugXlx','38007kBjcgG','channelType','description','create','mutation','input','notification_config_create_outcome_unknown','3788328CcJVRD','appCode','endpointUrl','Notification\x20config\x20create\x20returned\x20no\x20usable\x20server\x20ID.','1150eVWeld','468384xPneAd','104590fdvbaG','verified'];a135_0x1bfd=function(){return _0x5a9f92;};return a135_0x1bfd();}async function prepareCreate(_0x2ab7bd){const _0x4f3458=a135_0x367df9,_0x409d97=await readNotificationDocument(_0x2ab7bd,_0x4f3458(0x1a6)),_0x1467aa=createMutationInput(_0x2ab7bd['appCode'],_0x409d97);return{'document':_0x409d97,'input':_0x1467aa,'planned':projectNotificationConfig({'appCode':_0x2ab7bd['appCode'],'configName':_0x409d97[_0x4f3458(0x18e)],'channelType':_0x409d97['channelType'],'endpointUrl':_0x409d97[_0x4f3458(0x186)],'channelConfig':_0x409d97[_0x4f3458(0x194)],'description':_0x409d97[_0x4f3458(0x1a5)],'connectTimeout':_0x409d97[_0x4f3458(0x193)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,'readTimeout':_0x409d97[_0x4f3458(0x192)]??DEFAULT_NOTIFICATION_READ_TIMEOUT})};}export const notificationConfigCreate={'service':a135_0x367df9(0x18c),'command':a135_0x367df9(0x1a1),'description':a135_0x367df9(0x18f),'risk':a135_0x367df9(0x19d),'requiresAppCode':!![],'structuredErrors':!![],'flags':[...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x2141fa){assertSingleNotificationSource(_0x2141fa);},async 'dryRun'(_0x34c57d){const _0x25f3fb=a135_0x367df9,_0x3938c4=await prepareCreate(_0x34c57d),_0x9d411a=notificationLookupCommand(_0x34c57d[_0x25f3fb(0x185)],_0x3938c4['document'][_0x25f3fb(0x1a4)]);return asDryRunResult({'operation':_0x25f3fb(0x1a6),'selector':{'appCode':_0x34c57d['appCode'],'configName':_0x3938c4[_0x25f3fb(0x190)][_0x25f3fb(0x18e)],'channelType':_0x3938c4[_0x25f3fb(0x190)][_0x25f3fb(0x1a4)]},'before':null,'after':_0x3938c4['planned'],'dryRun':!![],'backend':{'method':_0x25f3fb(0x199),'path':CREATE_PATH},'warnings':[],'verification':{'status':'planned','lookupCommand':_0x9d411a}},{'method':'POST','url':CREATE_PATH});},async 'execute'(_0x3a0bff){const _0x3c0598=a135_0x367df9,_0x50f582=await prepareCreate(_0x3a0bff),_0x6ffff=notificationLookupCommand(_0x3a0bff[_0x3c0598(0x185)],_0x50f582[_0x3c0598(0x190)][_0x3c0598(0x1a4)]);let _0x5d6f8a;try{_0x5d6f8a=await createNotificationChannelConfig(_0x50f582[_0x3c0598(0x1a8)]);}catch(_0x13ccf0){if(isPlatformTransportFailure(_0x13ccf0))throw notificationError('notification_config_create_outcome_unknown',_0x3c0598(0x19e),_0x3c0598(0x196)+_0x6ffff+_0x3c0598(0x19b));throw safeApiFailure(_0x3c0598(0x1a6),_0x3c0598(0x1a7),_0x3c0598(0x196)+_0x6ffff+';\x20no\x20automatic\x20retry\x20was\x20attempted.');}if(!Number['isSafeInteger'](_0x5d6f8a)||_0x5d6f8a<=0x0)throw notificationError(_0x3c0598(0x183),_0x3c0598(0x187),_0x3c0598(0x196)+_0x6ffff+_0x3c0598(0x19b));let _0x401bf1;try{const _0x1f8116=await getNotificationChannelConfig(_0x5d6f8a,_0x3a0bff[_0x3c0598(0x185)]);_0x401bf1=normalizeExactNotificationConfig(_0x1f8116,_0x5d6f8a,_0x3a0bff[_0x3c0598(0x185)]);}catch{throw safeApiFailure('create',_0x3c0598(0x19c),_0x3c0598(0x196)+_0x6ffff+';\x20do\x20not\x20resubmit\x20automatically.');}return{'ok':!![],'data':{'operation':_0x3c0598(0x1a6),'selector':{'appCode':_0x401bf1[_0x3c0598(0x185)],'id':_0x401bf1['id'],'configCode':_0x401bf1[_0x3c0598(0x18d)],'configName':_0x401bf1[_0x3c0598(0x18e)],'channelType':_0x401bf1[_0x3c0598(0x1a4)]},'before':null,'after':projectNotificationConfig(_0x401bf1),'dryRun':![],'backend':{'method':'POST','path':CREATE_PATH},'warnings':[],'verification':{'status':_0x3c0598(0x18b),'lookupCommand':_0x6ffff}},'message':_0x3c0598(0x19a)+_0x401bf1['id']};}};
1
+ function a136_0x5f49(_0x4b9fe8,_0x29a51e){_0x4b9fe8=_0x4b9fe8-0x152;const _0x128738=a136_0x1287();let _0x5f4948=_0x128738[_0x4b9fe8];return _0x5f4948;}const a136_0xd3d0fd=a136_0x5f49;(function(_0x28f068,_0x1ef1c2){const _0x212650=a136_0x5f49,_0x5d766a=_0x28f068();while(!![]){try{const _0x4eb1e4=parseInt(_0x212650(0x162))/0x1*(-parseInt(_0x212650(0x16d))/0x2)+-parseInt(_0x212650(0x157))/0x3*(-parseInt(_0x212650(0x178))/0x4)+-parseInt(_0x212650(0x164))/0x5*(-parseInt(_0x212650(0x177))/0x6)+-parseInt(_0x212650(0x15d))/0x7*(-parseInt(_0x212650(0x172))/0x8)+-parseInt(_0x212650(0x153))/0x9*(-parseInt(_0x212650(0x15f))/0xa)+-parseInt(_0x212650(0x15e))/0xb*(-parseInt(_0x212650(0x15a))/0xc)+-parseInt(_0x212650(0x176))/0xd;if(_0x4eb1e4===_0x1ef1c2)break;else _0x5d766a['push'](_0x5d766a['shift']());}catch(_0x446715){_0x5d766a['push'](_0x5d766a['shift']());}}}(a136_0x1287,0xbb745));import{asDryRunResult}from'../../commands/common/dry-run.js';import{createNotificationChannelConfig,getNotificationChannelConfig,isPlatformTransportFailure}from'../../core/api-client.js';import{assertSingleNotificationSource,createMutationInput,DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,DEFAULT_NOTIFICATION_READ_TIMEOUT,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,NOTIFICATION_APP_FLAG,NOTIFICATION_INPUT_FLAGS,projectNotificationConfig,readNotificationDocument,safeApiFailure}from'../../commands/notification/shared.js';function a136_0x1287(){const _0x4bd55b=['connectTimeout','planned','channelConfig','9296nAkrmS','description','isSafeInteger','appCode','29145298MAZHgA','517014OmPNBJ','32aLhfnF','/notification/channel-config/create',';\x20no\x20automatic\x20retry\x20was\x20attempted.','verified','608760jCvOcD','verification',';\x20do\x20not\x20resubmit.','Notification\x20config\x20create\x20returned\x20no\x20usable\x20server\x20ID.','165063laqOqh','readTimeout','channelType','7104aHREIc','configName','configCode','4690DjUkLt','18095eaXBMZ','40mIzEUl','Notification\x20config\x20create\x20outcome\x20is\x20unknown\x20because\x20no\x20server\x20ID\x20was\x20received.','Create\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20source','36aVGxOC','mutation','75HtSBvX','notification_config_create_outcome_unknown','POST','config-create','document','Inspect\x20with\x20',';\x20do\x20not\x20resubmit\x20automatically.','endpointUrl','input','41438HovmVP','create'];a136_0x1287=function(){return _0x4bd55b;};return a136_0x1287();}const CREATE_PATH=a136_0xd3d0fd(0x179);async function prepareCreate(_0x35c461){const _0x3689de=a136_0xd3d0fd,_0x4c7c37=await readNotificationDocument(_0x35c461,'create'),_0x41129c=createMutationInput(_0x35c461[_0x3689de(0x175)],_0x4c7c37);return{'document':_0x4c7c37,'input':_0x41129c,'planned':projectNotificationConfig({'appCode':_0x35c461[_0x3689de(0x175)],'configName':_0x4c7c37[_0x3689de(0x15b)],'channelType':_0x4c7c37[_0x3689de(0x159)],'endpointUrl':_0x4c7c37[_0x3689de(0x16b)],'channelConfig':_0x4c7c37[_0x3689de(0x171)],'description':_0x4c7c37[_0x3689de(0x173)],'connectTimeout':_0x4c7c37[_0x3689de(0x16f)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,'readTimeout':_0x4c7c37[_0x3689de(0x158)]??DEFAULT_NOTIFICATION_READ_TIMEOUT})};}export const notificationConfigCreate={'service':'notification','command':a136_0xd3d0fd(0x167),'description':a136_0xd3d0fd(0x161),'risk':'write','requiresAppCode':!![],'structuredErrors':!![],'flags':[...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x2b6583){assertSingleNotificationSource(_0x2b6583);},async 'dryRun'(_0x2cd396){const _0x3fa447=a136_0xd3d0fd,_0x2a54e0=await prepareCreate(_0x2cd396),_0x1a9d71=notificationLookupCommand(_0x2cd396['appCode'],_0x2a54e0[_0x3fa447(0x168)][_0x3fa447(0x159)]);return asDryRunResult({'operation':_0x3fa447(0x16e),'selector':{'appCode':_0x2cd396[_0x3fa447(0x175)],'configName':_0x2a54e0[_0x3fa447(0x168)][_0x3fa447(0x15b)],'channelType':_0x2a54e0[_0x3fa447(0x168)][_0x3fa447(0x159)]},'before':null,'after':_0x2a54e0[_0x3fa447(0x170)],'dryRun':!![],'backend':{'method':_0x3fa447(0x166),'path':CREATE_PATH},'warnings':[],'verification':{'status':_0x3fa447(0x170),'lookupCommand':_0x1a9d71}},{'method':'POST','url':CREATE_PATH});},async 'execute'(_0xd7f6e9){const _0x3a2977=a136_0xd3d0fd,_0x53256c=await prepareCreate(_0xd7f6e9),_0x3759e4=notificationLookupCommand(_0xd7f6e9['appCode'],_0x53256c[_0x3a2977(0x168)][_0x3a2977(0x159)]);let _0x58d7f3;try{_0x58d7f3=await createNotificationChannelConfig(_0x53256c[_0x3a2977(0x16c)]);}catch(_0x8e2979){if(isPlatformTransportFailure(_0x8e2979))throw notificationError(_0x3a2977(0x165),_0x3a2977(0x160),_0x3a2977(0x169)+_0x3759e4+';\x20do\x20not\x20resubmit.');throw safeApiFailure(_0x3a2977(0x16e),_0x3a2977(0x163),_0x3a2977(0x169)+_0x3759e4+_0x3a2977(0x17a));}if(!Number[_0x3a2977(0x174)](_0x58d7f3)||_0x58d7f3<=0x0)throw notificationError(_0x3a2977(0x165),_0x3a2977(0x156),_0x3a2977(0x169)+_0x3759e4+_0x3a2977(0x155));let _0x1b3e49;try{const _0x453997=await getNotificationChannelConfig(_0x58d7f3,_0xd7f6e9[_0x3a2977(0x175)]);_0x1b3e49=normalizeExactNotificationConfig(_0x453997,_0x58d7f3,_0xd7f6e9['appCode']);}catch{throw safeApiFailure('create',_0x3a2977(0x154),_0x3a2977(0x169)+_0x3759e4+_0x3a2977(0x16a));}return{'ok':!![],'data':{'operation':_0x3a2977(0x16e),'selector':{'appCode':_0x1b3e49['appCode'],'id':_0x1b3e49['id'],'configCode':_0x1b3e49[_0x3a2977(0x15c)],'configName':_0x1b3e49[_0x3a2977(0x15b)],'channelType':_0x1b3e49[_0x3a2977(0x159)]},'before':null,'after':projectNotificationConfig(_0x1b3e49),'dryRun':![],'backend':{'method':_0x3a2977(0x166),'path':CREATE_PATH},'warnings':[],'verification':{'status':_0x3a2977(0x152),'lookupCommand':_0x3759e4}},'message':'Created\x20notification\x20config\x20'+_0x1b3e49['id']};}};
@@ -1 +1 @@
1
- const a136_0x5c3a35=a136_0x4eed;(function(_0x25acf8,_0x4a8f96){const _0x2bf000=a136_0x4eed,_0x1c1c36=_0x25acf8();while(!![]){try{const _0x4c72e7=parseInt(_0x2bf000(0x1f9))/0x1+parseInt(_0x2bf000(0x1f1))/0x2+-parseInt(_0x2bf000(0x1e5))/0x3+parseInt(_0x2bf000(0x1e7))/0x4*(-parseInt(_0x2bf000(0x1ed))/0x5)+parseInt(_0x2bf000(0x1fa))/0x6*(-parseInt(_0x2bf000(0x1fc))/0x7)+parseInt(_0x2bf000(0x200))/0x8+parseInt(_0x2bf000(0x1f3))/0x9;if(_0x4c72e7===_0x4a8f96)break;else _0x1c1c36['push'](_0x1c1c36['shift']());}catch(_0x3e00f0){_0x1c1c36['push'](_0x1c1c36['shift']());}}}(a136_0x4e50,0xbda7b));import{asDryRunResult}from'../../commands/common/dry-run.js';import{deleteNotificationChannelConfig,isPlatformTransportFailure,listNotificationChannelConfigs}from'../../core/api-client.js';import{notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,projectNotificationConfig,readNotificationId,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure,validateNotificationDeleteReadback}from'../../commands/notification/shared.js';function a136_0x4e50(){const _0x14992b=['POST','3165561olqgUo','/notification/channel-config/delete','channelType',';\x20do\x20not\x20resubmit\x20automatically.','notification_config_delete_verification_failed','delete','610593xiPnIa','34980vwdjAd','notification','651KbXQra','Inspect\x20with\x20','notification_config_delete_verification_unavailable','Delete\x20response\x20was\x20unavailable;\x20list\x20readback\x20proved\x20ID\x20absence\x20without\x20resubmitting.','5054008dReNYk','Deleting\x20this\x20app-level\x20config\x20may\x20make\x20dataset-level\x20channels\x20that\x20reference\x20it\x20unavailable;\x20dataset\x20references\x20were\x20not\x20verified\x20by\x20the\x20CLI.','\x20delete\x20could\x20not\x20be\x20verified.','config-delete','3056367VlFTAg','Deleted\x20notification\x20config\x20','4uZUlhX','notification_config_delete_outcome_unknown','\x20remains\x20present\x20after\x20delete.','some','appCode','before','1188955JxTlZJ','planned','Notification\x20config\x20','Delete\x20an\x20app-level\x20notification\x20config\x20after\x20exact\x20preflight','1963048EThxnM'];a136_0x4e50=function(){return _0x14992b;};return a136_0x4e50();}const DELETE_PATH=a136_0x5c3a35(0x1f4),REFERENCE_WARNING=a136_0x5c3a35(0x201);async function prepareDelete(_0x240f4b){const _0x36ecca=a136_0x5c3a35,_0x5c36b9=readNotificationId(_0x240f4b),_0x14d30b=await requireExactNotificationConfig(_0x240f4b[_0x36ecca(0x1eb)],_0x5c36b9,_0x36ecca(0x1f8));return{'id':_0x5c36b9,'before':_0x14d30b};}function a136_0x4eed(_0x581f6a,_0x4f01c3){_0x581f6a=_0x581f6a-0x1e4;const _0x4e5050=a136_0x4e50();let _0x4eedb4=_0x4e5050[_0x581f6a];return _0x4eedb4;}export const notificationConfigDelete={'service':a136_0x5c3a35(0x1fb),'command':a136_0x5c3a35(0x1e4),'description':a136_0x5c3a35(0x1f0),'risk':'high-risk-write','requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,NOTIFICATION_APP_FLAG],async 'validate'(_0x1563b7){readNotificationId(_0x1563b7),requireNotificationExplicitYes(_0x1563b7);},async 'dryRun'(_0x4b99fc){const _0x5341e6=a136_0x5c3a35,_0x232dd5=await prepareDelete(_0x4b99fc),_0x2dd51d=notificationLookupCommand(_0x4b99fc[_0x5341e6(0x1eb)],_0x232dd5['before'][_0x5341e6(0x1f5)]);return asDryRunResult({'operation':_0x5341e6(0x1f8),'selector':notificationSelector(_0x232dd5[_0x5341e6(0x1ec)]),'before':projectNotificationConfig(_0x232dd5['before']),'after':null,'dryRun':!![],'backend':{'method':_0x5341e6(0x1f2),'path':DELETE_PATH},'warnings':[REFERENCE_WARNING],'verification':{'status':_0x5341e6(0x1ee),'lookupCommand':_0x2dd51d}},{'method':_0x5341e6(0x1f2),'url':DELETE_PATH});},async 'execute'(_0x192512){const _0x21f6ab=a136_0x5c3a35;requireNotificationExplicitYes(_0x192512);const _0x417b3a=await prepareDelete(_0x192512),_0x3558e7=notificationLookupCommand(_0x192512[_0x21f6ab(0x1eb)],_0x417b3a[_0x21f6ab(0x1ec)][_0x21f6ab(0x1f5)]);let _0x568fc1=![];try{await deleteNotificationChannelConfig(_0x417b3a['id'],_0x192512[_0x21f6ab(0x1eb)]);}catch(_0x1a3a55){if(!isPlatformTransportFailure(_0x1a3a55))throw safeApiFailure(_0x21f6ab(0x1f8),'mutation','Inspect\x20with\x20'+_0x3558e7+';\x20no\x20automatic\x20retry\x20was\x20attempted.');_0x568fc1=!![];}let _0x793346;try{_0x793346=await listNotificationChannelConfigs(_0x192512[_0x21f6ab(0x1eb)],_0x417b3a[_0x21f6ab(0x1ec)]['channelType']),validateNotificationDeleteReadback(_0x793346,_0x192512['appCode'],_0x417b3a[_0x21f6ab(0x1ec)][_0x21f6ab(0x1f5)]);}catch{throw notificationError(_0x568fc1?_0x21f6ab(0x1e8):_0x21f6ab(0x1fe),'Notification\x20config\x20'+_0x417b3a['id']+_0x21f6ab(0x202),_0x21f6ab(0x1fd)+_0x3558e7+';\x20do\x20not\x20resubmit\x20automatically.');}if(_0x793346[_0x21f6ab(0x1ea)](_0x159397=>_0x159397['id']===_0x417b3a['id']))throw notificationError(_0x568fc1?'notification_config_delete_outcome_unknown':_0x21f6ab(0x1f7),_0x21f6ab(0x1ef)+_0x417b3a['id']+_0x21f6ab(0x1e9),_0x21f6ab(0x1fd)+_0x3558e7+_0x21f6ab(0x1f6));const _0x1db81b=[REFERENCE_WARNING];return _0x568fc1&&_0x1db81b['unshift'](_0x21f6ab(0x1ff)),{'ok':!![],'data':{'operation':'delete','selector':notificationSelector(_0x417b3a[_0x21f6ab(0x1ec)]),'before':projectNotificationConfig(_0x417b3a[_0x21f6ab(0x1ec)]),'after':null,'dryRun':![],'backend':{'method':_0x21f6ab(0x1f2),'path':DELETE_PATH},'warnings':_0x1db81b,'verification':{'status':'verified','absenceConfirmed':!![],'recoveredAfterUnknownResponse':_0x568fc1,'lookupCommand':_0x3558e7}},'message':_0x21f6ab(0x1e6)+_0x417b3a['id']};}};
1
+ const a137_0x15a15d=a137_0x3b5c;function a137_0x2da2(){const _0x3accf6=['Inspect\x20with\x20','high-risk-write','1418709rBIHIx','\x20remains\x20present\x20after\x20delete.',';\x20do\x20not\x20resubmit\x20automatically.','/notification/channel-config/delete','POST','62936TzonYX','appCode','2775390QeTKKm','Delete\x20response\x20was\x20unavailable;\x20list\x20readback\x20proved\x20ID\x20absence\x20without\x20resubmitting.','notification_config_delete_outcome_unknown','9242730rXDBeM','Notification\x20config\x20','994MsfaOM','mutation','notification','Delete\x20an\x20app-level\x20notification\x20config\x20after\x20exact\x20preflight',';\x20no\x20automatic\x20retry\x20was\x20attempted.','4epUUTi','delete','3035169ZHMAIT','notification_config_delete_verification_unavailable','channelType','Deleting\x20this\x20app-level\x20config\x20may\x20make\x20dataset-level\x20channels\x20that\x20reference\x20it\x20unavailable;\x20dataset\x20references\x20were\x20not\x20verified\x20by\x20the\x20CLI.','planned','15gpUWHS','notification_config_delete_verification_failed','before','26260880MdSiDy','1801546BEOdqL'];a137_0x2da2=function(){return _0x3accf6;};return a137_0x2da2();}(function(_0x554108,_0x2ced7e){const _0x43445f=a137_0x3b5c,_0x2a7cc1=_0x554108();while(!![]){try{const _0x25176c=-parseInt(_0x43445f(0x20d))/0x1+-parseInt(_0x43445f(0x20a))/0x2+-parseInt(_0x43445f(0x201))/0x3*(parseInt(_0x43445f(0x1ff))/0x4)+parseInt(_0x43445f(0x206))/0x5*(parseInt(_0x43445f(0x1f5))/0x6)+-parseInt(_0x43445f(0x1fa))/0x7*(-parseInt(_0x43445f(0x1f3))/0x8)+-parseInt(_0x43445f(0x1f8))/0x9+parseInt(_0x43445f(0x209))/0xa;if(_0x25176c===_0x2ced7e)break;else _0x2a7cc1['push'](_0x2a7cc1['shift']());}catch(_0x3773ec){_0x2a7cc1['push'](_0x2a7cc1['shift']());}}}(a137_0x2da2,0xbca72));import{asDryRunResult}from'../../commands/common/dry-run.js';import{deleteNotificationChannelConfig,isPlatformTransportFailure,listNotificationChannelConfigs}from'../../core/api-client.js';import{notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,projectNotificationConfig,readNotificationId,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure,validateNotificationDeleteReadback}from'../../commands/notification/shared.js';const DELETE_PATH=a137_0x15a15d(0x210),REFERENCE_WARNING=a137_0x15a15d(0x204);function a137_0x3b5c(_0x9eea9,_0x3f5cf4){_0x9eea9=_0x9eea9-0x1f2;const _0x2da26f=a137_0x2da2();let _0x3b5cda=_0x2da26f[_0x9eea9];return _0x3b5cda;}async function prepareDelete(_0x2218a6){const _0x57d09e=a137_0x15a15d,_0x690be0=readNotificationId(_0x2218a6),_0x10a312=await requireExactNotificationConfig(_0x2218a6[_0x57d09e(0x1f4)],_0x690be0,_0x57d09e(0x200));return{'id':_0x690be0,'before':_0x10a312};}export const notificationConfigDelete={'service':a137_0x15a15d(0x1fc),'command':'config-delete','description':a137_0x15a15d(0x1fd),'risk':a137_0x15a15d(0x20c),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,NOTIFICATION_APP_FLAG],async 'validate'(_0x3b6c35){readNotificationId(_0x3b6c35),requireNotificationExplicitYes(_0x3b6c35);},async 'dryRun'(_0x295f0d){const _0x3982c4=a137_0x15a15d,_0x320df8=await prepareDelete(_0x295f0d),_0x4723e9=notificationLookupCommand(_0x295f0d[_0x3982c4(0x1f4)],_0x320df8[_0x3982c4(0x208)]['channelType']);return asDryRunResult({'operation':_0x3982c4(0x200),'selector':notificationSelector(_0x320df8[_0x3982c4(0x208)]),'before':projectNotificationConfig(_0x320df8[_0x3982c4(0x208)]),'after':null,'dryRun':!![],'backend':{'method':_0x3982c4(0x1f2),'path':DELETE_PATH},'warnings':[REFERENCE_WARNING],'verification':{'status':_0x3982c4(0x205),'lookupCommand':_0x4723e9}},{'method':'POST','url':DELETE_PATH});},async 'execute'(_0x45a9bb){const _0x56146b=a137_0x15a15d;requireNotificationExplicitYes(_0x45a9bb);const _0x28d099=await prepareDelete(_0x45a9bb),_0x420a34=notificationLookupCommand(_0x45a9bb[_0x56146b(0x1f4)],_0x28d099[_0x56146b(0x208)]['channelType']);let _0x22b72e=![];try{await deleteNotificationChannelConfig(_0x28d099['id'],_0x45a9bb[_0x56146b(0x1f4)]);}catch(_0x27c320){if(!isPlatformTransportFailure(_0x27c320))throw safeApiFailure(_0x56146b(0x200),_0x56146b(0x1fb),_0x56146b(0x20b)+_0x420a34+_0x56146b(0x1fe));_0x22b72e=!![];}let _0x4f17cf;try{_0x4f17cf=await listNotificationChannelConfigs(_0x45a9bb['appCode'],_0x28d099['before']['channelType']),validateNotificationDeleteReadback(_0x4f17cf,_0x45a9bb[_0x56146b(0x1f4)],_0x28d099[_0x56146b(0x208)][_0x56146b(0x203)]);}catch{throw notificationError(_0x22b72e?'notification_config_delete_outcome_unknown':_0x56146b(0x202),_0x56146b(0x1f9)+_0x28d099['id']+'\x20delete\x20could\x20not\x20be\x20verified.',_0x56146b(0x20b)+_0x420a34+_0x56146b(0x20f));}if(_0x4f17cf['some'](_0x39ff95=>_0x39ff95['id']===_0x28d099['id']))throw notificationError(_0x22b72e?_0x56146b(0x1f7):_0x56146b(0x207),_0x56146b(0x1f9)+_0x28d099['id']+_0x56146b(0x20e),_0x56146b(0x20b)+_0x420a34+';\x20do\x20not\x20resubmit\x20automatically.');const _0x21cbb5=[REFERENCE_WARNING];return _0x22b72e&&_0x21cbb5['unshift'](_0x56146b(0x1f6)),{'ok':!![],'data':{'operation':'delete','selector':notificationSelector(_0x28d099[_0x56146b(0x208)]),'before':projectNotificationConfig(_0x28d099[_0x56146b(0x208)]),'after':null,'dryRun':![],'backend':{'method':_0x56146b(0x1f2),'path':DELETE_PATH},'warnings':_0x21cbb5,'verification':{'status':'verified','absenceConfirmed':!![],'recoveredAfterUnknownResponse':_0x22b72e,'lookupCommand':_0x420a34}},'message':'Deleted\x20notification\x20config\x20'+_0x28d099['id']};}};
@@ -1 +1 @@
1
- const a137_0x1283d0=a137_0x531d;function a137_0x531d(_0x356091,_0x15b1f0){_0x356091=_0x356091-0xc7;const _0x15a40b=a137_0x15a4();let _0x531d41=_0x15a40b[_0x356091];return _0x531d41;}(function(_0x2227a0,_0x1a62b2){const _0x23488d=a137_0x531d,_0x1798bf=_0x2227a0();while(!![]){try{const _0x51a277=parseInt(_0x23488d(0xda))/0x1+parseInt(_0x23488d(0xcd))/0x2+parseInt(_0x23488d(0xce))/0x3*(-parseInt(_0x23488d(0xcf))/0x4)+parseInt(_0x23488d(0xd2))/0x5+parseInt(_0x23488d(0xcb))/0x6*(parseInt(_0x23488d(0xd3))/0x7)+parseInt(_0x23488d(0xc7))/0x8+-parseInt(_0x23488d(0xd8))/0x9;if(_0x51a277===_0x1a62b2)break;else _0x1798bf['push'](_0x1798bf['shift']());}catch(_0x464396){_0x1798bf['push'](_0x1798bf['shift']());}}}(a137_0x15a4,0xc621a));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listNotificationChannelConfigs}from'../../core/api-client.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':'notification','command':a137_0x1283d0(0xcc),'description':'List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','risk':a137_0x1283d0(0xd1),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a137_0x1283d0(0xd9),'type':a137_0x1283d0(0xd0),'description':a137_0x1283d0(0xd4),'enum':NOTIFICATION_CHANNEL_TYPES,'default':a137_0x1283d0(0xc9)}],async 'validate'(_0x2a1fd9){readNotificationChannelType(_0x2a1fd9);},async 'execute'(_0x478a5a){const _0x871153=a137_0x1283d0,_0x294eca=readNotificationChannelType(_0x478a5a),_0x754712=await listNotificationChannelConfigs(_0x478a5a['appCode'],_0x294eca),_0x330762=_0x754712[_0x871153(0xd6)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x478a5a[_0x871153(0xc8)],'channelType':_0x294eca,'count':_0x330762[_0x871153(0xd7)],'configs':_0x330762},'message':_0x871153(0xca)+_0x330762[_0x871153(0xd7)]+'\x20'+_0x294eca+_0x871153(0xd5)};}};function a137_0x15a4(){const _0xb68c4a=['1619288QRIEix','2122032cMiqow','appCode','EMAIL','Found\x20','6EEGQgd','config-list','2163150NTFySg','84UndKKM','182108RkioYF','string','read','1945855nnMdyp','8612709UwvoIb','Notification\x20channel\x20type','\x20notification\x20config(s)','map','length','22494357XyUPdP','type'];a137_0x15a4=function(){return _0xb68c4a;};return a137_0x15a4();}
1
+ const a138_0x50ce04=a138_0x1860;(function(_0x238377,_0x1fb33d){const _0x219988=a138_0x1860,_0x44a984=_0x238377();while(!![]){try{const _0x572113=-parseInt(_0x219988(0xc3))/0x1*(-parseInt(_0x219988(0xc7))/0x2)+-parseInt(_0x219988(0xb8))/0x3*(-parseInt(_0x219988(0xc5))/0x4)+parseInt(_0x219988(0xba))/0x5+-parseInt(_0x219988(0xbe))/0x6*(parseInt(_0x219988(0xb5))/0x7)+-parseInt(_0x219988(0xc8))/0x8*(-parseInt(_0x219988(0xc0))/0x9)+-parseInt(_0x219988(0xb9))/0xa+-parseInt(_0x219988(0xbd))/0xb;if(_0x572113===_0x1fb33d)break;else _0x44a984['push'](_0x44a984['shift']());}catch(_0x3791c7){_0x44a984['push'](_0x44a984['shift']());}}}(a138_0x1e47,0xe018d));function a138_0x1e47(){const _0x51ade7=['3WzAVOv','6147870ZYEVHp','6351610QkHpER','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','appCode','31875569rRPfjj','3653532aSIOYA','type','14112468SyzqDE','Notification\x20channel\x20type','Found\x20','43vtZVEN','string','3391908EevBLF','EMAIL','62932ihQjkK','8nFArba','7glhMZS','read','config-list'];a138_0x1e47=function(){return _0x51ade7;};return a138_0x1e47();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a138_0x1860(_0x481bc7,_0x1aec28){_0x481bc7=_0x481bc7-0xb5;const _0x1e4711=a138_0x1e47();let _0x186010=_0x1e4711[_0x481bc7];return _0x186010;}import{listNotificationChannelConfigs}from'../../core/api-client.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':'notification','command':a138_0x50ce04(0xb7),'description':a138_0x50ce04(0xbb),'risk':a138_0x50ce04(0xb6),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a138_0x50ce04(0xbf),'type':a138_0x50ce04(0xc4),'description':a138_0x50ce04(0xc1),'enum':NOTIFICATION_CHANNEL_TYPES,'default':a138_0x50ce04(0xc6)}],async 'validate'(_0x57e4b6){readNotificationChannelType(_0x57e4b6);},async 'execute'(_0x3dafdc){const _0xf4ad48=a138_0x50ce04,_0x7e510=readNotificationChannelType(_0x3dafdc),_0x62ef68=await listNotificationChannelConfigs(_0x3dafdc[_0xf4ad48(0xbc)],_0x7e510),_0x2ef30c=_0x62ef68['map'](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x3dafdc[_0xf4ad48(0xbc)],'channelType':_0x7e510,'count':_0x2ef30c['length'],'configs':_0x2ef30c},'message':_0xf4ad48(0xc2)+_0x2ef30c['length']+'\x20'+_0x7e510+'\x20notification\x20config(s)'};}};
@@ -1 +1 @@
1
- const a138_0x3d97f3=a138_0x10f8;function a138_0x256f(){const _0x5584a5=['\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20update.','notification_config_update_verification_failed','4heCKgQ','4275832MOSCGX','POST','before','planned','4001473TUkDla','patch','\x20via\x20','Update\x20response\x20was\x20unavailable;\x20exact-ID\x20readback\x20proved\x20changed\x20safe\x20fields\x20without\x20resubmitting.','Inspect\x20ID\x20',';\x20no\x20automatic\x20retry\x20was\x20attempted.','update','verified','payload','channelType','appCode','notification_config_update_outcome_unknown','Inspect\x20with\x20--id\x20','63390EUhWab','47pRAlNa','5618280cmrLad','8956685CNsXiR','Notification\x20config\x20','10VaDlGI','allMatch',';\x20do\x20not\x20resubmit\x20automatically.','/notification/channel-config/update','\x20with\x20','45186251pMViUP','config-update','notification','mutation','verifiedFields','\x20update\x20could\x20not\x20be\x20verified\x20by\x20exact\x20ID.','419868QFaofA','provesChange','18HkaMdo'];a138_0x256f=function(){return _0x5584a5;};return a138_0x256f();}function a138_0x10f8(_0x598a17,_0x20824a){_0x598a17=_0x598a17-0x194;const _0x256fc6=a138_0x256f();let _0x10f873=_0x256fc6[_0x598a17];return _0x10f873;}(function(_0x1fa927,_0x219668){const _0x4e9c75=a138_0x10f8,_0x5ed631=_0x1fa927();while(!![]){try{const _0x21be4f=parseInt(_0x4e9c75(0x1a6))/0x1*(-parseInt(_0x4e9c75(0x1a5))/0x2)+-parseInt(_0x4e9c75(0x1a7))/0x3+-parseInt(_0x4e9c75(0x1ba))/0x4*(-parseInt(_0x4e9c75(0x1a8))/0x5)+parseInt(_0x4e9c75(0x1b5))/0x6+-parseInt(_0x4e9c75(0x198))/0x7+parseInt(_0x4e9c75(0x194))/0x8*(-parseInt(_0x4e9c75(0x1b7))/0x9)+-parseInt(_0x4e9c75(0x1aa))/0xa*(-parseInt(_0x4e9c75(0x1af))/0xb);if(_0x21be4f===_0x219668)break;else _0x5ed631['push'](_0x5ed631['shift']());}catch(_0x4f6b59){_0x5ed631['push'](_0x5ed631['shift']());}}}(a138_0x256f,0xebdf6));import{asDryRunResult}from'../../commands/common/dry-run.js';import{getNotificationChannelConfig,isPlatformTransportFailure,updateNotificationChannelConfig}from'../../core/api-client.js';import{assertSingleNotificationSource,mergeUpdateInput,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,NOTIFICATION_INPUT_FLAGS,plannedUpdateProjection,projectNotificationConfig,readNotificationDocument,readNotificationId,requestedSafeFieldsMatch,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure}from'../../commands/notification/shared.js';const UPDATE_PATH=a138_0x3d97f3(0x1ad);async function prepareUpdate(_0x3da077){const _0xcd6c3f=a138_0x3d97f3,_0x370190=readNotificationId(_0x3da077),_0xd13e9=await readNotificationDocument(_0x3da077,_0xcd6c3f(0x19e)),_0x5c95e7=await requireExactNotificationConfig(_0x3da077[_0xcd6c3f(0x1a2)],_0x370190,'update');return{'id':_0x370190,'patch':_0xd13e9,'before':_0x5c95e7,'payload':mergeUpdateInput(_0x5c95e7,_0xd13e9),'planned':plannedUpdateProjection(_0x5c95e7,_0xd13e9)};}export const notificationConfigUpdate={'service':a138_0x3d97f3(0x1b1),'command':a138_0x3d97f3(0x1b0),'description':'Update\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20patch','risk':'high-risk-write','requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x120237){readNotificationId(_0x120237),assertSingleNotificationSource(_0x120237),requireNotificationExplicitYes(_0x120237);},async 'dryRun'(_0x21ec6a){const _0x55bba9=a138_0x3d97f3,_0x18f505=await prepareUpdate(_0x21ec6a),_0x599fa6=notificationLookupCommand(_0x21ec6a[_0x55bba9(0x1a2)],_0x18f505[_0x55bba9(0x196)][_0x55bba9(0x1a1)]);return asDryRunResult({'operation':_0x55bba9(0x19e),'selector':notificationSelector(_0x18f505['before']),'before':projectNotificationConfig(_0x18f505[_0x55bba9(0x196)]),'after':_0x18f505[_0x55bba9(0x197)],'dryRun':!![],'backend':{'method':'POST','path':UPDATE_PATH},'warnings':[],'verification':{'status':_0x55bba9(0x197),'lookupCommand':_0x599fa6}},{'method':_0x55bba9(0x195),'url':UPDATE_PATH});},async 'execute'(_0x4174ff){const _0x256f8f=a138_0x3d97f3;requireNotificationExplicitYes(_0x4174ff);const _0x14673f=await prepareUpdate(_0x4174ff),_0x51ebbf=notificationLookupCommand(_0x4174ff[_0x256f8f(0x1a2)],_0x14673f[_0x256f8f(0x196)][_0x256f8f(0x1a1)]);let _0x164a16=![];try{await updateNotificationChannelConfig(_0x14673f[_0x256f8f(0x1a0)]);}catch(_0xe998d){if(!isPlatformTransportFailure(_0xe998d))throw safeApiFailure(_0x256f8f(0x19e),_0x256f8f(0x1b2),_0x256f8f(0x19c)+_0x14673f['id']+_0x256f8f(0x1ae)+_0x51ebbf+_0x256f8f(0x19d));_0x164a16=!![];}let _0x4d6127;try{const _0x1c5e7c=await getNotificationChannelConfig(_0x14673f['id'],_0x4174ff[_0x256f8f(0x1a2)]);_0x4d6127=normalizeExactNotificationConfig(_0x1c5e7c,_0x14673f['id'],_0x4174ff[_0x256f8f(0x1a2)]);}catch{throw notificationError(_0x164a16?_0x256f8f(0x1a3):'notification_config_update_verification_unavailable',_0x256f8f(0x1a9)+_0x14673f['id']+_0x256f8f(0x1b4),'Inspect\x20with\x20--id\x20'+_0x14673f['id']+_0x256f8f(0x19a)+_0x51ebbf+';\x20do\x20not\x20resubmit\x20automatically.');}const _0x792db3=requestedSafeFieldsMatch(_0x14673f[_0x256f8f(0x196)],_0x4d6127,_0x14673f[_0x256f8f(0x199)]);if(!_0x792db3[_0x256f8f(0x1ab)]||_0x164a16&&!_0x792db3[_0x256f8f(0x1b6)])throw notificationError(_0x164a16?'notification_config_update_outcome_unknown':_0x256f8f(0x1b9),_0x256f8f(0x1a9)+_0x14673f['id']+_0x256f8f(0x1b8),_0x256f8f(0x1a4)+_0x14673f['id']+_0x256f8f(0x19a)+_0x51ebbf+_0x256f8f(0x1ac));const _0x1e3d1a=_0x164a16?[_0x256f8f(0x19b)]:[];return{'ok':!![],'data':{'operation':_0x256f8f(0x19e),'selector':notificationSelector(_0x4d6127),'before':projectNotificationConfig(_0x14673f['before']),'after':projectNotificationConfig(_0x4d6127),'dryRun':![],'backend':{'method':_0x256f8f(0x195),'path':UPDATE_PATH},'warnings':_0x1e3d1a,'verification':{'status':_0x256f8f(0x19f),'recoveredAfterUnknownResponse':_0x164a16,'verifiedFields':_0x792db3[_0x256f8f(0x1b3)],'lookupCommand':_0x51ebbf}},'message':'Updated\x20notification\x20config\x20'+_0x4d6127['id']};}};
1
+ const a139_0x268228=a139_0x4c33;(function(_0x42566c,_0x405662){const _0x164d48=a139_0x4c33,_0x5991ff=_0x42566c();while(!![]){try{const _0x16e050=parseInt(_0x164d48(0x162))/0x1+parseInt(_0x164d48(0x150))/0x2*(parseInt(_0x164d48(0x14b))/0x3)+-parseInt(_0x164d48(0x13d))/0x4*(-parseInt(_0x164d48(0x142))/0x5)+parseInt(_0x164d48(0x157))/0x6+parseInt(_0x164d48(0x15c))/0x7*(-parseInt(_0x164d48(0x141))/0x8)+parseInt(_0x164d48(0x161))/0x9*(-parseInt(_0x164d48(0x151))/0xa)+-parseInt(_0x164d48(0x147))/0xb;if(_0x16e050===_0x405662)break;else _0x5991ff['push'](_0x5991ff['shift']());}catch(_0x23a09c){_0x5991ff['push'](_0x5991ff['shift']());}}}(a139_0x4a42,0x1dd4d));import{asDryRunResult}from'../../commands/common/dry-run.js';import{getNotificationChannelConfig,isPlatformTransportFailure,updateNotificationChannelConfig}from'../../core/api-client.js';import{assertSingleNotificationSource,mergeUpdateInput,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,NOTIFICATION_INPUT_FLAGS,plannedUpdateProjection,projectNotificationConfig,readNotificationDocument,readNotificationId,requestedSafeFieldsMatch,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure}from'../../commands/notification/shared.js';function a139_0x4c33(_0x3b595a,_0x2dec82){_0x3b595a=_0x3b595a-0x13d;const _0x4a4238=a139_0x4a42();let _0x4c3319=_0x4a4238[_0x3b595a];return _0x4c3319;}function a139_0x4a42(){const _0xc59aae=['Inspect\x20with\x20--id\x20','payload','2106247EOQubO','\x20via\x20','Inspect\x20ID\x20','\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20update.','55761ZJKoEy','before','Notification\x20config\x20','high-risk-write','planned','6CTcEbq','435790mNnGTP','allMatch','notification','Updated\x20notification\x20config\x20','provesChange','mutation','824898dxJJjf','Update\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20patch','update','POST','\x20update\x20could\x20not\x20be\x20verified\x20by\x20exact\x20ID.','7CidYsc','channelType','notification_config_update_verification_failed',';\x20do\x20not\x20resubmit\x20automatically.','verifiedFields','9sqLWMq','158687AoxHXD','108jLMmdx','notification_config_update_outcome_unknown','patch','appCode','300496hBWDeg','7940ZIdFpx','Update\x20response\x20was\x20unavailable;\x20exact-ID\x20readback\x20proved\x20changed\x20safe\x20fields\x20without\x20resubmitting.','config-update'];a139_0x4a42=function(){return _0xc59aae;};return a139_0x4a42();}const UPDATE_PATH='/notification/channel-config/update';async function prepareUpdate(_0x11680b){const _0x3c5a60=a139_0x4c33,_0x4a0db1=readNotificationId(_0x11680b),_0x3c5928=await readNotificationDocument(_0x11680b,_0x3c5a60(0x159)),_0xa4a6de=await requireExactNotificationConfig(_0x11680b[_0x3c5a60(0x140)],_0x4a0db1,'update');return{'id':_0x4a0db1,'patch':_0x3c5928,'before':_0xa4a6de,'payload':mergeUpdateInput(_0xa4a6de,_0x3c5928),'planned':plannedUpdateProjection(_0xa4a6de,_0x3c5928)};}export const notificationConfigUpdate={'service':a139_0x268228(0x153),'command':a139_0x268228(0x144),'description':a139_0x268228(0x158),'risk':a139_0x268228(0x14e),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x4618fa){readNotificationId(_0x4618fa),assertSingleNotificationSource(_0x4618fa),requireNotificationExplicitYes(_0x4618fa);},async 'dryRun'(_0x28d550){const _0x4fb257=a139_0x268228,_0x3ca33c=await prepareUpdate(_0x28d550),_0x589a96=notificationLookupCommand(_0x28d550[_0x4fb257(0x140)],_0x3ca33c[_0x4fb257(0x14c)]['channelType']);return asDryRunResult({'operation':_0x4fb257(0x159),'selector':notificationSelector(_0x3ca33c[_0x4fb257(0x14c)]),'before':projectNotificationConfig(_0x3ca33c[_0x4fb257(0x14c)]),'after':_0x3ca33c[_0x4fb257(0x14f)],'dryRun':!![],'backend':{'method':_0x4fb257(0x15a),'path':UPDATE_PATH},'warnings':[],'verification':{'status':'planned','lookupCommand':_0x589a96}},{'method':'POST','url':UPDATE_PATH});},async 'execute'(_0xaaedf7){const _0x383b5c=a139_0x268228;requireNotificationExplicitYes(_0xaaedf7);const _0x5b4fd7=await prepareUpdate(_0xaaedf7),_0x2c4829=notificationLookupCommand(_0xaaedf7['appCode'],_0x5b4fd7[_0x383b5c(0x14c)][_0x383b5c(0x15d)]);let _0x288b0b=![];try{await updateNotificationChannelConfig(_0x5b4fd7[_0x383b5c(0x146)]);}catch(_0x4e1d7f){if(!isPlatformTransportFailure(_0x4e1d7f))throw safeApiFailure(_0x383b5c(0x159),_0x383b5c(0x156),_0x383b5c(0x149)+_0x5b4fd7['id']+'\x20with\x20'+_0x2c4829+';\x20no\x20automatic\x20retry\x20was\x20attempted.');_0x288b0b=!![];}let _0x5ce1ff;try{const _0x30b8fa=await getNotificationChannelConfig(_0x5b4fd7['id'],_0xaaedf7['appCode']);_0x5ce1ff=normalizeExactNotificationConfig(_0x30b8fa,_0x5b4fd7['id'],_0xaaedf7[_0x383b5c(0x140)]);}catch{throw notificationError(_0x288b0b?_0x383b5c(0x13e):'notification_config_update_verification_unavailable',_0x383b5c(0x14d)+_0x5b4fd7['id']+_0x383b5c(0x15b),_0x383b5c(0x145)+_0x5b4fd7['id']+_0x383b5c(0x148)+_0x2c4829+_0x383b5c(0x15f));}const _0x228604=requestedSafeFieldsMatch(_0x5b4fd7[_0x383b5c(0x14c)],_0x5ce1ff,_0x5b4fd7[_0x383b5c(0x13f)]);if(!_0x228604[_0x383b5c(0x152)]||_0x288b0b&&!_0x228604[_0x383b5c(0x155)])throw notificationError(_0x288b0b?_0x383b5c(0x13e):_0x383b5c(0x15e),'Notification\x20config\x20'+_0x5b4fd7['id']+_0x383b5c(0x14a),_0x383b5c(0x145)+_0x5b4fd7['id']+_0x383b5c(0x148)+_0x2c4829+_0x383b5c(0x15f));const _0xbbf87d=_0x288b0b?[_0x383b5c(0x143)]:[];return{'ok':!![],'data':{'operation':_0x383b5c(0x159),'selector':notificationSelector(_0x5ce1ff),'before':projectNotificationConfig(_0x5b4fd7['before']),'after':projectNotificationConfig(_0x5ce1ff),'dryRun':![],'backend':{'method':_0x383b5c(0x15a),'path':UPDATE_PATH},'warnings':_0xbbf87d,'verification':{'status':'verified','recoveredAfterUnknownResponse':_0x288b0b,'verifiedFields':_0x228604[_0x383b5c(0x160)],'lookupCommand':_0x2c4829}},'message':_0x383b5c(0x154)+_0x5ce1ff['id']};}};
@@ -1 +1 @@
1
- (function(_0x1208e5,_0x4ac0e1){const _0x274394=a139_0x19bb,_0x3543eb=_0x1208e5();while(!![]){try{const _0x269141=parseInt(_0x274394(0x182))/0x1*(-parseInt(_0x274394(0x185))/0x2)+parseInt(_0x274394(0x183))/0x3*(-parseInt(_0x274394(0x17d))/0x4)+parseInt(_0x274394(0x180))/0x5+parseInt(_0x274394(0x17e))/0x6+parseInt(_0x274394(0x181))/0x7+parseInt(_0x274394(0x17f))/0x8*(-parseInt(_0x274394(0x186))/0x9)+parseInt(_0x274394(0x184))/0xa;if(_0x269141===_0x4ac0e1)break;else _0x3543eb['push'](_0x3543eb['shift']());}catch(_0x1e3382){_0x3543eb['push'](_0x3543eb['shift']());}}}(a139_0xf566,0xe374b));function a139_0xf566(){const _0x25cb9a=['72952UdBWBb','1867255GYmiQx','5863550JRblAF','1vrNgPJ','1779KiXcvd','15505400nwoDyr','2897324eqpAPc','1179gvrhtD','932VwSVzo','5708628QOGjWm'];a139_0xf566=function(){return _0x25cb9a;};return a139_0xf566();}function a139_0x19bb(_0x4c6952,_0x4f9547){_0x4c6952=_0x4c6952-0x17d;const _0xf56618=a139_0xf566();let _0x19bb8d=_0xf56618[_0x4c6952];return _0x19bb8d;}import{notificationConfigList}from'../../commands/notification/config-list.js';import{notificationConfigCreate}from'../../commands/notification/config-create.js';import{notificationConfigUpdate}from'../../commands/notification/config-update.js';import{notificationConfigDelete}from'../../commands/notification/config-delete.js';export const notificationDefinitions=[notificationConfigList,notificationConfigCreate,notificationConfigUpdate,notificationConfigDelete];
1
+ (function(_0x1d67a7,_0x4b5e37){const _0x3bac44=a140_0x260e,_0x11b6fb=_0x1d67a7();while(!![]){try{const _0x3ec499=parseInt(_0x3bac44(0x15c))/0x1+parseInt(_0x3bac44(0x15b))/0x2+parseInt(_0x3bac44(0x15e))/0x3*(-parseInt(_0x3bac44(0x15d))/0x4)+-parseInt(_0x3bac44(0x162))/0x5*(-parseInt(_0x3bac44(0x158))/0x6)+-parseInt(_0x3bac44(0x15f))/0x7*(-parseInt(_0x3bac44(0x159))/0x8)+-parseInt(_0x3bac44(0x163))/0x9*(parseInt(_0x3bac44(0x160))/0xa)+-parseInt(_0x3bac44(0x161))/0xb*(parseInt(_0x3bac44(0x15a))/0xc);if(_0x3ec499===_0x4b5e37)break;else _0x11b6fb['push'](_0x11b6fb['shift']());}catch(_0x43127f){_0x11b6fb['push'](_0x11b6fb['shift']());}}}(a140_0xb613,0xc4dcf));import{notificationConfigList}from'../../commands/notification/config-list.js';import{notificationConfigCreate}from'../../commands/notification/config-create.js';import{notificationConfigUpdate}from'../../commands/notification/config-update.js';function a140_0x260e(_0x8d9858,_0x2a6a6f){_0x8d9858=_0x8d9858-0x158;const _0xb613d6=a140_0xb613();let _0x260ef9=_0xb613d6[_0x8d9858];return _0x260ef9;}function a140_0xb613(){const _0x2d972b=['188qetLxT','7269pJIQWc','4273066kIfTyp','20MWjuPr','11mxJFGR','236035HbLvbW','1088433sFeKJB','84TrgkfX','8dFWgKr','16764864SVfWlC','2010402EBXcpa','282641EYBdjP'];a140_0xb613=function(){return _0x2d972b;};return a140_0xb613();}import{notificationConfigDelete}from'../../commands/notification/config-delete.js';export const notificationDefinitions=[notificationConfigList,notificationConfigCreate,notificationConfigUpdate,notificationConfigDelete];