@lovrabet/rabetbase-cli 2.5.2-beta.4 → 2.5.2-beta.6

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 (330) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/api/generate-sdk-config-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/delete.js +1 -1
  53. package/lib/commands/config/get.js +1 -1
  54. package/lib/commands/config/index.js +1 -1
  55. package/lib/commands/config/init.js +1 -1
  56. package/lib/commands/config/list.js +1 -1
  57. package/lib/commands/config/set.js +1 -1
  58. package/lib/commands/config/shared.js +1 -1
  59. package/lib/commands/dataset/business-group-update.js +1 -1
  60. package/lib/commands/dataset/business-groups.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-restore.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/dataset/user-deleted-field-list.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/table-diff-shared.js +1 -1
  95. package/lib/commands/db/tables.js +1 -1
  96. package/lib/commands/db/test.js +1 -1
  97. package/lib/commands/db/update.js +1 -1
  98. package/lib/commands/deployment/index.js +1 -1
  99. package/lib/commands/deployment/sync-all.js +1 -1
  100. package/lib/commands/deployment/sync-jobs.js +1 -1
  101. package/lib/commands/deployment/sync-status.js +1 -1
  102. package/lib/commands/doctor.js +1 -1
  103. package/lib/commands/file/index.js +1 -1
  104. package/lib/commands/instant-api-policy/current.js +1 -1
  105. package/lib/commands/instant-api-policy/index.js +1 -1
  106. package/lib/commands/instant-api-policy/init.js +1 -1
  107. package/lib/commands/instant-api-policy/publish.js +1 -1
  108. package/lib/commands/instant-api-policy/pull.js +1 -1
  109. package/lib/commands/instant-api-policy/revision.js +1 -1
  110. package/lib/commands/instant-api-policy/revisions.js +1 -1
  111. package/lib/commands/instant-api-policy/rollback.js +1 -1
  112. package/lib/commands/instant-api-policy/shared.js +1 -1
  113. package/lib/commands/instant-api-policy/validate.js +1 -1
  114. package/lib/commands/issue/index.js +1 -1
  115. package/lib/commands/issue/nudge.js +1 -1
  116. package/lib/commands/issue/report.js +1 -1
  117. package/lib/commands/issue/shared.js +1 -1
  118. package/lib/commands/kb/create.js +1 -1
  119. package/lib/commands/kb/delete.js +1 -1
  120. package/lib/commands/kb/detail.js +1 -1
  121. package/lib/commands/kb/index.js +1 -1
  122. package/lib/commands/kb/list.js +1 -1
  123. package/lib/commands/kb/search.js +1 -1
  124. package/lib/commands/kb/shared.js +1 -1
  125. package/lib/commands/kb/update.js +1 -1
  126. package/lib/commands/logs/index.js +1 -1
  127. package/lib/commands/menu/asset-update.js +1 -1
  128. package/lib/commands/menu/delete.js +1 -1
  129. package/lib/commands/menu/external-link-create.js +1 -1
  130. package/lib/commands/menu/external-link-update.js +1 -1
  131. package/lib/commands/menu/group-create.js +1 -1
  132. package/lib/commands/menu/group-update.js +1 -1
  133. package/lib/commands/menu/index.js +1 -1
  134. package/lib/commands/menu/list.js +1 -1
  135. package/lib/commands/menu/move.js +1 -1
  136. package/lib/commands/menu/regroup-start.js +1 -1
  137. package/lib/commands/menu/rename.js +1 -1
  138. package/lib/commands/menu/shared/compare-table.js +1 -1
  139. package/lib/commands/menu/shared/delete-plan.js +1 -1
  140. package/lib/commands/menu/shared/facts.js +1 -1
  141. package/lib/commands/menu/shared/index.js +1 -1
  142. package/lib/commands/menu/shared/inquirer.js +1 -1
  143. package/lib/commands/menu/shared/local-pages.js +1 -1
  144. package/lib/commands/menu/shared/logic.js +1 -1
  145. package/lib/commands/menu/shared/mutations.js +1 -1
  146. package/lib/commands/menu/shared/service.js +1 -1
  147. package/lib/commands/menu/shared/sync-core.js +1 -1
  148. package/lib/commands/menu/shared/update-core.js +1 -1
  149. package/lib/commands/menu/shared/valid-url.js +1 -1
  150. package/lib/commands/menu/sync.js +1 -1
  151. package/lib/commands/menu/visibility-update.js +1 -1
  152. package/lib/commands/notification/config-create.js +1 -1
  153. package/lib/commands/notification/config-delete.js +1 -1
  154. package/lib/commands/notification/config-list.js +1 -1
  155. package/lib/commands/notification/config-update.js +1 -1
  156. package/lib/commands/notification/index.js +1 -1
  157. package/lib/commands/notification/shared.js +1 -1
  158. package/lib/commands/ocr/index.js +1 -1
  159. package/lib/commands/page/create.js +1 -1
  160. package/lib/commands/page/custom/detail.js +1 -1
  161. package/lib/commands/page/custom/list.js +1 -1
  162. package/lib/commands/page/custom/publish.js +1 -1
  163. package/lib/commands/page/custom/shared.js +1 -1
  164. package/lib/commands/page/custom/syntax.js +1 -1
  165. package/lib/commands/page/custom/update.js +1 -1
  166. package/lib/commands/page/data-list-status.js +1 -1
  167. package/lib/commands/page/generate-start.js +1 -1
  168. package/lib/commands/page/generate-status.js +1 -1
  169. package/lib/commands/page/index.js +1 -1
  170. package/lib/commands/page/pull.js +1 -1
  171. package/lib/commands/page/push.js +1 -1
  172. package/lib/commands/page/relation-audit.js +1 -1
  173. package/lib/commands/page/restore.js +1 -1
  174. package/lib/commands/page/shared.js +1 -1
  175. package/lib/commands/page/sync.js +1 -1
  176. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  177. package/lib/commands/project/create/format-elapsed.js +1 -1
  178. package/lib/commands/project/create/main.js +1 -1
  179. package/lib/commands/project/create/materialize-project-template.js +1 -1
  180. package/lib/commands/project/create/project-name.js +1 -1
  181. package/lib/commands/project/create/project-template-archive.js +1 -1
  182. package/lib/commands/project/create/project-template-path.js +1 -1
  183. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  184. package/lib/commands/project/create/use-format-code.js +1 -1
  185. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  186. package/lib/commands/project/domain-routing-sync.js +1 -1
  187. package/lib/commands/project/index.js +1 -1
  188. package/lib/commands/project/upgrade.js +1 -1
  189. package/lib/commands/registry.js +1 -1
  190. package/lib/commands/role/delete.js +1 -1
  191. package/lib/commands/role/detail.js +1 -1
  192. package/lib/commands/role/index.js +1 -1
  193. package/lib/commands/role/list.js +1 -1
  194. package/lib/commands/role/shared.js +1 -1
  195. package/lib/commands/role/update.js +1 -1
  196. package/lib/commands/role/user-add.js +1 -1
  197. package/lib/commands/role/user-remove.js +1 -1
  198. package/lib/commands/role/user-resolve.js +1 -1
  199. package/lib/commands/rule/get.js +1 -1
  200. package/lib/commands/rule/index.js +1 -1
  201. package/lib/commands/rule/list.js +1 -1
  202. package/lib/commands/rule/set.js +1 -1
  203. package/lib/commands/rule/shared.js +1 -1
  204. package/lib/commands/run/index.js +1 -1
  205. package/lib/commands/schema.js +1 -1
  206. package/lib/commands/sql/create.js +1 -1
  207. package/lib/commands/sql/delete.js +1 -1
  208. package/lib/commands/sql/detail.js +1 -1
  209. package/lib/commands/sql/exec.js +1 -1
  210. package/lib/commands/sql/index.js +1 -1
  211. package/lib/commands/sql/list.js +1 -1
  212. package/lib/commands/sql/pull.js +1 -1
  213. package/lib/commands/sql/push.js +1 -1
  214. package/lib/commands/sql/shared.js +1 -1
  215. package/lib/commands/sql/status.js +1 -1
  216. package/lib/commands/sql/validate.js +1 -1
  217. package/lib/commands/task/index.js +1 -1
  218. package/lib/commands/task/status.js +1 -1
  219. package/lib/commands/tenant/index.js +1 -1
  220. package/lib/commands/tenant/members-list.js +1 -1
  221. package/lib/commands/tenant/shared.js +1 -1
  222. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  223. package/lib/commands/user-account/index.js +1 -1
  224. package/lib/commands/workspace/add.js +1 -1
  225. package/lib/commands/workspace/index.js +1 -1
  226. package/lib/commands/workspace/remove.js +1 -1
  227. package/lib/config/domain-config.js +1 -1
  228. package/lib/config/project-domain-routing.js +1 -1
  229. package/lib/config/schema.js +1 -1
  230. package/lib/constant/cdn.js +1 -1
  231. package/lib/constant/cli.js +1 -1
  232. package/lib/constant/defaults.js +1 -1
  233. package/lib/constant/domain.js +1 -1
  234. package/lib/constant/env.js +1 -1
  235. package/lib/constant/output.js +1 -1
  236. package/lib/constant/paths.js +1 -1
  237. package/lib/constant/region.js +1 -1
  238. package/lib/constant/risk.js +1 -1
  239. package/lib/constant/routing-profile.js +1 -1
  240. package/lib/context/app-resolver.js +1 -1
  241. package/lib/context/auth-resolver.js +1 -1
  242. package/lib/context/config-loader.js +1 -1
  243. package/lib/context.js +1 -1
  244. package/lib/core/alias-resolver.js +1 -1
  245. package/lib/core/api-client.d.ts +0 -17
  246. package/lib/core/api-client.js +1 -1
  247. package/lib/core/bff/config.js +1 -1
  248. package/lib/core/bff/file-system.js +1 -1
  249. package/lib/core/bff/hash.js +1 -1
  250. package/lib/core/bff/lock.js +1 -1
  251. package/lib/core/bff/utils.js +1 -1
  252. package/lib/core/db-resolver.js +1 -1
  253. package/lib/core/instant-api-policy/config.js +1 -1
  254. package/lib/core/kb-search-client.js +1 -1
  255. package/lib/core/page/file-system.js +1 -1
  256. package/lib/core/page/hash.js +1 -1
  257. package/lib/core/page/lock.js +1 -1
  258. package/lib/core/sql-index-auditor.js +1 -1
  259. package/lib/core/sql-sync/config.js +1 -1
  260. package/lib/core/sql-sync/file-system.js +1 -1
  261. package/lib/core/sql-sync/hash.js +1 -1
  262. package/lib/core/sql-sync/lock.js +1 -1
  263. package/lib/core/sql-sync/utils.js +1 -1
  264. package/lib/core/sql-validator.js +1 -1
  265. package/lib/errors.js +1 -1
  266. package/lib/framework/build-all-flags.js +1 -1
  267. package/lib/framework/error-output.js +1 -1
  268. package/lib/framework/explicit-yes.js +1 -1
  269. package/lib/framework/flags.js +1 -1
  270. package/lib/framework/help.js +1 -1
  271. package/lib/framework/index.js +1 -1
  272. package/lib/framework/output.js +1 -1
  273. package/lib/framework/response.js +1 -1
  274. package/lib/framework/runner-alias.js +1 -1
  275. package/lib/framework/runner.js +1 -1
  276. package/lib/framework/schema-export.js +1 -1
  277. package/lib/framework/supported-flags.js +1 -1
  278. package/lib/framework/types.js +1 -1
  279. package/lib/generated/build-info.d.ts +4 -4
  280. package/lib/generated/build-info.js +1 -1
  281. package/lib/generated/official-routing.js +1 -1
  282. package/lib/generated/routing-contract.js +1 -1
  283. package/lib/help.js +1 -1
  284. package/lib/postinstall.js +1 -1
  285. package/lib/runtime/confirmation.js +1 -1
  286. package/lib/runtime/event.js +1 -1
  287. package/lib/runtime/index.js +1 -1
  288. package/lib/runtime/queue.js +1 -1
  289. package/lib/runtime/resolve.js +1 -1
  290. package/lib/skills/builtin-skill.js +1 -1
  291. package/lib/skills/main.js +1 -1
  292. package/lib/skills/npx-skills-add.js +1 -1
  293. package/lib/skills/skill-presence.js +1 -1
  294. package/lib/telemetry/cli-command-trace.js +1 -1
  295. package/lib/telemetry/cli-help-trace.js +1 -1
  296. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  297. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  298. package/lib/telemetry/send-cli-trace-log.js +1 -1
  299. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  300. package/lib/utils/ai_config.js +1 -1
  301. package/lib/utils/apply-jq-filter.js +1 -1
  302. package/lib/utils/cdn-config.js +1 -1
  303. package/lib/utils/check-sdk-version.js +1 -1
  304. package/lib/utils/cli-version-check.js +1 -1
  305. package/lib/utils/cli-version-policy.js +1 -1
  306. package/lib/utils/config.js +1 -1
  307. package/lib/utils/entity-with-id.js +1 -1
  308. package/lib/utils/file-utils.js +1 -1
  309. package/lib/utils/guides-cdn.js +1 -1
  310. package/lib/utils/http-client.js +1 -1
  311. package/lib/utils/is-non-interactive.js +1 -1
  312. package/lib/utils/logger.js +1 -1
  313. package/lib/utils/params.js +1 -1
  314. package/lib/utils/platform.d.ts +6 -5
  315. package/lib/utils/platform.js +1 -1
  316. package/lib/utils/sleep.js +1 -1
  317. package/lib/utils/template-replacer.js +1 -1
  318. package/lib/utils/update-notice.js +1 -1
  319. package/lib/utils/version.js +1 -1
  320. package/lib/utils/with-active-cookie.js +1 -1
  321. package/lib/utils/write-cli-side-channel.js +1 -1
  322. package/package.json +1 -1
  323. package/skills/rabetbase/SKILL.md +5 -6
  324. package/skills/rabetbase/references/rabetbase-deployment-sync-all.md +56 -0
  325. package/skills/rabetbase.manifest.json +4 -4
  326. package/lib/commands/deployment/auto-sync.d.ts +0 -20
  327. package/lib/commands/deployment/auto-sync.js +0 -1
  328. package/lib/commands/deployment/sync.d.ts +0 -2
  329. package/lib/commands/deployment/sync.js +0 -1
  330. package/skills/rabetbase/references/rabetbase-deployment-sync.md +0 -100
@@ -1 +1 @@
1
- const a148_0x4a8640=a148_0x3b90;(function(_0x1dac36,_0x2b2225){const _0x52073c=a148_0x3b90,_0x154b44=_0x1dac36();while(!![]){try{const _0x1b7eb8=parseInt(_0x52073c(0xba))/0x1*(-parseInt(_0x52073c(0x96))/0x2)+parseInt(_0x52073c(0x9d))/0x3+parseInt(_0x52073c(0xa3))/0x4*(-parseInt(_0x52073c(0xa4))/0x5)+-parseInt(_0x52073c(0xbe))/0x6*(parseInt(_0x52073c(0xc0))/0x7)+-parseInt(_0x52073c(0x9c))/0x8*(parseInt(_0x52073c(0x99))/0x9)+-parseInt(_0x52073c(0xa2))/0xa*(-parseInt(_0x52073c(0xbb))/0xb)+parseInt(_0x52073c(0xab))/0xc*(parseInt(_0x52073c(0xbf))/0xd);if(_0x1b7eb8===_0x2b2225)break;else _0x154b44['push'](_0x154b44['shift']());}catch(_0x51ee47){_0x154b44['push'](_0x154b44['shift']());}}}(a148_0x5291,0x93ef0));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';function a148_0x3b90(_0x1a1319,_0x1a85ca){_0x1a1319=_0x1a1319-0x91;const _0x52911c=a148_0x5291();let _0x3b90a9=_0x52911c[_0x1a1319];return _0x3b90a9;}import{logger}from'../../../utils/logger.js';const MENU_SYNC_PARAM_KEYS=new Set([a148_0x4a8640(0x92),a148_0x4a8640(0x97)]);function a148_0x5291(){const _0x2202ce=['847620VewBVo','--params.','info','setLogPath','message','3790ziUaSO','20bezJFb','620285WfGxhp','map','has','Invalid\x20--params.','trim','object','field','1284mJzOMa','JS\x20URL\x20is\x20unreachable:\x20','label','No\x20local\x20pages\x20matched\x20paths:\x20','CSS\x20URL\x20is\x20unreachable:\x20','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','parse','Menu\x20sync\x20completed','string','import','Start\x20non-interactive\x20menu\x20sync','menu-sync','Invalid\x20--params:\x20expected\x20a\x20JSON\x20object.','pages','join','3vIepMc','10329sQTYcr','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','filter','12EABlVN','280293kgkzLt','3119102dMRJqp','--params.pages\x20is\x20no\x20longer\x20supported.\x20Use\x20--paths\x20with\x20exact\x20local\x20page\x20paths.','hasOwn','keys','isArray','dryRun','path','length','jsUrl','Invalid\x20--params:\x20','cwd','Invalid\x20--params\x20fields:\x20','405906jQluXb','cssUrl','procode','9ABKorK','Local\x20page\x20paths\x20are\x20already\x20on\x20the\x20platform:\x20','push','1753568EuPwtr'];a148_0x5291=function(){return _0x2202ce;};return a148_0x5291();}function validateParams(_0x2517c1){const _0xfcee6=a148_0x4a8640,_0x5b6857=[];return _0x2517c1[_0xfcee6(0x92)]&&!isValidJsHttpsUrl(_0x2517c1[_0xfcee6(0x92)])&&_0x5b6857[_0xfcee6(0x9b)]({'field':'jsUrl','message':_0xfcee6(0xb0)}),_0x2517c1[_0xfcee6(0x97)]&&!isValidCssHttpsUrl(_0x2517c1['cssUrl'])&&_0x5b6857[_0xfcee6(0x9b)]({'field':_0xfcee6(0x97),'message':_0xfcee6(0xbc)}),_0x5b6857;}export async function runMenuSyncCore(_0x33ac63,_0x26c019,_0x2de4b2=[],_0x1bf6ac,_0x1fbb17={}){const _0x569b96=a148_0x4a8640,_0x3f0ada=parseMenuSyncParams(_0x1bf6ac),_0x16ec41=[...new Set(_0x2de4b2[_0x569b96(0xa5)](_0x3280be=>_0x3280be[_0x569b96(0xa8)]())['filter'](Boolean))],_0x27638f=_0x3f0ada[_0x569b96(0x92)],_0x589c11=_0x3f0ada[_0x569b96(0x97)],_0xb2d82c=[];if(_0x27638f)_0xb2d82c[_0x569b96(0x9b)](_0x27638f);if(_0x589c11)_0xb2d82c[_0x569b96(0x9b)](_0x589c11);const _0x59191c=validateParams(_0x3f0ada);if(_0x59191c[_0x569b96(0x91)]>0x0){const _0x1183c7=_0x59191c[_0x569b96(0xa5)](_0x3d3952=>_0x569b96(0x9e)+_0x3d3952[_0x569b96(0xaa)]+':\x20'+_0x3d3952[_0x569b96(0xa1)])[_0x569b96(0xb9)](';\x20');throw new Error(_0x569b96(0x93)+_0x1183c7);}logger[_0x569b96(0xa0)](process[_0x569b96(0x94)]()),logger[_0x569b96(0x9f)](_0x569b96(0xb6),_0x569b96(0xb5),{'appCode':_0x33ac63,'selectedCount':_0x16ec41[_0x569b96(0x91)],'jsUrl':_0x27638f,'cssUrl':_0x589c11});if(_0x27638f){const _0x29fba6=await isUrlReachable(_0x27638f);if(!_0x29fba6)throw new Error(_0x569b96(0xac)+_0x27638f);}if(_0x589c11){const _0x57de4a=await isUrlReachable(_0x589c11);if(!_0x57de4a)throw new Error(_0x569b96(0xaf)+_0x589c11);}const _0x5468ec=getLocalPages();if(_0x5468ec['length']===0x0){if(_0x16ec41[_0x569b96(0x91)]>0x0)throw new Error(_0x569b96(0xae)+_0x16ec41['join'](',\x20'));return{'created':0x0,'skipped':!![],'dryRun':_0x1fbb17['dryRun']===!![],'targetPages':[],'plannedMenus':[]};}const _0x40d309=await getOnlineMenuList(_0x33ac63,_0x26c019),_0x28fcef=new Set(_0x40d309['map'](_0x3289bc=>_0x3289bc[_0x569b96(0xc6)]));let _0x591d54;if(_0x16ec41[_0x569b96(0x91)]>0x0){const _0x55d8c=new Map(_0x5468ec[_0x569b96(0xa5)](_0x134898=>[_0x134898[_0x569b96(0xc6)],_0x134898])),_0xd045ab=_0x16ec41[_0x569b96(0xbd)](_0xd01061=>!_0x55d8c[_0x569b96(0xa6)](_0xd01061));if(_0xd045ab[_0x569b96(0x91)]>0x0){const _0x11b5de=_0x5468ec[_0x569b96(0xa5)](_0x4bae39=>_0x4bae39['path'])[_0x569b96(0xb9)](',\x20');throw new Error(_0x569b96(0xae)+_0xd045ab[_0x569b96(0xb9)](',\x20')+'\x0a\x20\x20Available\x20local\x20paths:\x20'+_0x11b5de);}const _0xd633bf=_0x16ec41[_0x569b96(0xbd)](_0x498f7c=>_0x28fcef['has'](_0x498f7c));if(_0xd633bf['length']>0x0)throw new Error(_0x569b96(0x9a)+_0xd633bf[_0x569b96(0xb9)](',\x20'));_0x591d54=_0x16ec41[_0x569b96(0xa5)](_0x387c2d=>_0x55d8c['get'](_0x387c2d));}else _0x591d54=_0x5468ec[_0x569b96(0xbd)](_0x27cc77=>!_0x28fcef['has'](_0x27cc77[_0x569b96(0xc6)]));if(_0x591d54[_0x569b96(0x91)]===0x0)return{'created':0x0,'skipped':!![],'dryRun':_0x1fbb17[_0x569b96(0xc5)]===!![],'targetPages':[],'plannedMenus':[]};const _0x27f45e=_0x591d54['map'](_0x53efbb=>({'type':_0x569b96(0x98),'path':_0x53efbb[_0x569b96(0xc6)],'label':_0x53efbb[_0x569b96(0xad)],'loadScriptMode':_0x569b96(0xb4),'resources':[..._0xb2d82c]}));if(_0x1fbb17['dryRun'])return{'created':0x0,'skipped':![],'dryRun':!![],'targetPages':_0x591d54,'plannedMenus':_0x27f45e};const _0xd104ee=await createMenus(_0x33ac63,_0x26c019,_0x591d54,_0xb2d82c['length']>0x0?_0xb2d82c:undefined);return logger[_0x569b96(0x9f)](_0x569b96(0xb6),_0x569b96(0xb2),{'count':_0x591d54[_0x569b96(0x91)],'resources':_0xb2d82c}),{'created':_0xd104ee[_0x569b96(0x91)],'skipped':![],'dryRun':![],'targetPages':_0x591d54,'plannedMenus':_0x27f45e,'menus':_0xd104ee};}export function parseMenuSyncParams(_0x335b75){const _0x53e186=a148_0x4a8640;if(!_0x335b75||typeof _0x335b75!==_0x53e186(0xb3))return{};let _0x58d428;try{_0x58d428=JSON[_0x53e186(0xb1)](_0x335b75);}catch{throw new Error('Invalid\x20--params\x20JSON.');}if(typeof _0x58d428!==_0x53e186(0xa9)||_0x58d428===null||Array[_0x53e186(0xc4)](_0x58d428))throw new Error(_0x53e186(0xb7));const _0x1b582f=_0x58d428;if(Object[_0x53e186(0xc2)](_0x1b582f,_0x53e186(0xb8)))throw new Error(_0x53e186(0xc1));const _0x193f7a=Object[_0x53e186(0xc3)](_0x1b582f)[_0x53e186(0xbd)](_0x4e6174=>!MENU_SYNC_PARAM_KEYS[_0x53e186(0xa6)](_0x4e6174));if(_0x193f7a['length']>0x0)throw new Error(_0x53e186(0x95)+_0x193f7a['join'](',\x20')+'.');for(const _0x376727 of MENU_SYNC_PARAM_KEYS){const _0x21d591=_0x1b582f[_0x376727];if(_0x21d591!==undefined&&(typeof _0x21d591!=='string'||_0x21d591[_0x53e186(0xa8)]()===''))throw new Error(_0x53e186(0xa7)+_0x376727+':\x20expected\x20a\x20non-empty\x20string.');}return{'jsUrl':typeof _0x1b582f[_0x53e186(0x92)]===_0x53e186(0xb3)?_0x1b582f['jsUrl'][_0x53e186(0xa8)]():undefined,'cssUrl':typeof _0x1b582f['cssUrl']===_0x53e186(0xb3)?_0x1b582f[_0x53e186(0x97)][_0x53e186(0xa8)]():undefined};}
1
+ const a146_0x98596e=a146_0x39ff;(function(_0x5d1bbb,_0x3d2725){const _0x8e1292=a146_0x39ff,_0x22132c=_0x5d1bbb();while(!![]){try{const _0x21da86=-parseInt(_0x8e1292(0x70))/0x1*(parseInt(_0x8e1292(0x82))/0x2)+parseInt(_0x8e1292(0x90))/0x3*(parseInt(_0x8e1292(0x81))/0x4)+-parseInt(_0x8e1292(0x7b))/0x5+-parseInt(_0x8e1292(0x75))/0x6*(-parseInt(_0x8e1292(0x7c))/0x7)+parseInt(_0x8e1292(0x8b))/0x8*(-parseInt(_0x8e1292(0x97))/0x9)+-parseInt(_0x8e1292(0x6b))/0xa*(-parseInt(_0x8e1292(0x8c))/0xb)+parseInt(_0x8e1292(0x7e))/0xc*(parseInt(_0x8e1292(0x6f))/0xd);if(_0x21da86===_0x3d2725)break;else _0x22132c['push'](_0x22132c['shift']());}catch(_0x3a1dd7){_0x22132c['push'](_0x22132c['shift']());}}}(a146_0x77ec,0x21066));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';function a146_0x39ff(_0x2b8d78,_0x411963){_0x2b8d78=_0x2b8d78-0x68;const _0x77ecd=a146_0x77ec();let _0x39ffb8=_0x77ecd[_0x2b8d78];return _0x39ffb8;}function a146_0x77ec(){const _0x44e2a0=['771030oScZba','7gDHTHh','has','3996lnnIkH','length','string','92OULesv','40786RYRyvw','--params.pages\x20is\x20no\x20longer\x20supported.\x20Use\x20--paths\x20with\x20exact\x20local\x20page\x20paths.','Start\x20non-interactive\x20menu\x20sync',':\x20expected\x20a\x20non-empty\x20string.','Menu\x20sync\x20completed','cwd','info','JS\x20URL\x20is\x20unreachable:\x20','filter','48NKuNGD','11nPeNbL','join','Local\x20page\x20paths\x20are\x20already\x20on\x20the\x20platform:\x20','Invalid\x20--params\x20JSON.','5421EqLZuF','path','isArray','trim','menu-sync','push','parse','386649DztRGF','label','map','dryRun','import','No\x20local\x20pages\x20matched\x20paths:\x20','1567810KloriO','hasOwn','field','Invalid\x20--params\x20fields:\x20','9074xPXaHN','1dhGlcj','get','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','jsUrl','cssUrl','821154usJIom','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','CSS\x20URL\x20is\x20unreachable:\x20','--params.','Invalid\x20--params:\x20','Invalid\x20--params.'];a146_0x77ec=function(){return _0x44e2a0;};return a146_0x77ec();}const MENU_SYNC_PARAM_KEYS=new Set([a146_0x98596e(0x73),a146_0x98596e(0x74)]);function validateParams(_0x26b827){const _0x332aa1=a146_0x98596e,_0xc00bca=[];return _0x26b827[_0x332aa1(0x73)]&&!isValidJsHttpsUrl(_0x26b827[_0x332aa1(0x73)])&&_0xc00bca['push']({'field':'jsUrl','message':_0x332aa1(0x72)}),_0x26b827[_0x332aa1(0x74)]&&!isValidCssHttpsUrl(_0x26b827['cssUrl'])&&_0xc00bca[_0x332aa1(0x95)]({'field':_0x332aa1(0x74),'message':_0x332aa1(0x76)}),_0xc00bca;}export async function runMenuSyncCore(_0x1c28b3,_0x445ef3,_0x5a25f9=[],_0x1219ea,_0x5aeb6c={}){const _0x5766f8=a146_0x98596e,_0x152f3b=parseMenuSyncParams(_0x1219ea),_0x3ba84a=[...new Set(_0x5a25f9[_0x5766f8(0x99)](_0x30f109=>_0x30f109[_0x5766f8(0x93)]())['filter'](Boolean))],_0x2ca3e3=_0x152f3b['jsUrl'],_0x4d31f5=_0x152f3b[_0x5766f8(0x74)],_0x51e5d2=[];if(_0x2ca3e3)_0x51e5d2[_0x5766f8(0x95)](_0x2ca3e3);if(_0x4d31f5)_0x51e5d2[_0x5766f8(0x95)](_0x4d31f5);const _0x52f458=validateParams(_0x152f3b);if(_0x52f458['length']>0x0){const _0x5b08ef=_0x52f458['map'](_0x38a140=>_0x5766f8(0x78)+_0x38a140[_0x5766f8(0x6d)]+':\x20'+_0x38a140['message'])[_0x5766f8(0x8d)](';\x20');throw new Error(_0x5766f8(0x79)+_0x5b08ef);}logger['setLogPath'](process[_0x5766f8(0x87)]()),logger['info']('menu-sync',_0x5766f8(0x84),{'appCode':_0x1c28b3,'selectedCount':_0x3ba84a[_0x5766f8(0x7f)],'jsUrl':_0x2ca3e3,'cssUrl':_0x4d31f5});if(_0x2ca3e3){const _0x5ce72b=await isUrlReachable(_0x2ca3e3);if(!_0x5ce72b)throw new Error(_0x5766f8(0x89)+_0x2ca3e3);}if(_0x4d31f5){const _0x4ec360=await isUrlReachable(_0x4d31f5);if(!_0x4ec360)throw new Error(_0x5766f8(0x77)+_0x4d31f5);}const _0x431c1b=getLocalPages();if(_0x431c1b['length']===0x0){if(_0x3ba84a[_0x5766f8(0x7f)]>0x0)throw new Error(_0x5766f8(0x6a)+_0x3ba84a['join'](',\x20'));return{'created':0x0,'skipped':!![],'dryRun':_0x5aeb6c['dryRun']===!![],'targetPages':[],'plannedMenus':[]};}const _0x27e1ac=await getOnlineMenuList(_0x1c28b3,_0x445ef3),_0x10fc80=new Set(_0x27e1ac[_0x5766f8(0x99)](_0x1568cb=>_0x1568cb['path']));let _0x49551f;if(_0x3ba84a[_0x5766f8(0x7f)]>0x0){const _0x5ccddb=new Map(_0x431c1b[_0x5766f8(0x99)](_0x22622e=>[_0x22622e[_0x5766f8(0x91)],_0x22622e])),_0x15fbac=_0x3ba84a['filter'](_0x5d0b6c=>!_0x5ccddb['has'](_0x5d0b6c));if(_0x15fbac[_0x5766f8(0x7f)]>0x0){const _0x10bfc3=_0x431c1b['map'](_0x4c2ee5=>_0x4c2ee5[_0x5766f8(0x91)])[_0x5766f8(0x8d)](',\x20');throw new Error(_0x5766f8(0x6a)+_0x15fbac[_0x5766f8(0x8d)](',\x20')+'\x0a\x20\x20Available\x20local\x20paths:\x20'+_0x10bfc3);}const _0x1dd1e6=_0x3ba84a[_0x5766f8(0x8a)](_0x4f5282=>_0x10fc80[_0x5766f8(0x7d)](_0x4f5282));if(_0x1dd1e6[_0x5766f8(0x7f)]>0x0)throw new Error(_0x5766f8(0x8e)+_0x1dd1e6[_0x5766f8(0x8d)](',\x20'));_0x49551f=_0x3ba84a['map'](_0x2ff9c0=>_0x5ccddb[_0x5766f8(0x71)](_0x2ff9c0));}else _0x49551f=_0x431c1b[_0x5766f8(0x8a)](_0x4ac01f=>!_0x10fc80[_0x5766f8(0x7d)](_0x4ac01f[_0x5766f8(0x91)]));if(_0x49551f[_0x5766f8(0x7f)]===0x0)return{'created':0x0,'skipped':!![],'dryRun':_0x5aeb6c[_0x5766f8(0x68)]===!![],'targetPages':[],'plannedMenus':[]};const _0x41b146=_0x49551f[_0x5766f8(0x99)](_0x5c8bfe=>({'type':'procode','path':_0x5c8bfe[_0x5766f8(0x91)],'label':_0x5c8bfe[_0x5766f8(0x98)],'loadScriptMode':_0x5766f8(0x69),'resources':[..._0x51e5d2]}));if(_0x5aeb6c[_0x5766f8(0x68)])return{'created':0x0,'skipped':![],'dryRun':!![],'targetPages':_0x49551f,'plannedMenus':_0x41b146};const _0x2a2b97=await createMenus(_0x1c28b3,_0x445ef3,_0x49551f,_0x51e5d2['length']>0x0?_0x51e5d2:undefined);return logger[_0x5766f8(0x88)](_0x5766f8(0x94),_0x5766f8(0x86),{'count':_0x49551f[_0x5766f8(0x7f)],'resources':_0x51e5d2}),{'created':_0x2a2b97[_0x5766f8(0x7f)],'skipped':![],'dryRun':![],'targetPages':_0x49551f,'plannedMenus':_0x41b146,'menus':_0x2a2b97};}export function parseMenuSyncParams(_0x373bc5){const _0x2a15ff=a146_0x98596e;if(!_0x373bc5||typeof _0x373bc5!==_0x2a15ff(0x80))return{};let _0x1427be;try{_0x1427be=JSON[_0x2a15ff(0x96)](_0x373bc5);}catch{throw new Error(_0x2a15ff(0x8f));}if(typeof _0x1427be!=='object'||_0x1427be===null||Array[_0x2a15ff(0x92)](_0x1427be))throw new Error('Invalid\x20--params:\x20expected\x20a\x20JSON\x20object.');const _0x275f8d=_0x1427be;if(Object[_0x2a15ff(0x6c)](_0x275f8d,'pages'))throw new Error(_0x2a15ff(0x83));const _0x2b5638=Object['keys'](_0x275f8d)[_0x2a15ff(0x8a)](_0x230e99=>!MENU_SYNC_PARAM_KEYS['has'](_0x230e99));if(_0x2b5638[_0x2a15ff(0x7f)]>0x0)throw new Error(_0x2a15ff(0x6e)+_0x2b5638[_0x2a15ff(0x8d)](',\x20')+'.');for(const _0x5cd36e of MENU_SYNC_PARAM_KEYS){const _0x2ce1b3=_0x275f8d[_0x5cd36e];if(_0x2ce1b3!==undefined&&(typeof _0x2ce1b3!==_0x2a15ff(0x80)||_0x2ce1b3[_0x2a15ff(0x93)]()===''))throw new Error(_0x2a15ff(0x7a)+_0x5cd36e+_0x2a15ff(0x85));}return{'jsUrl':typeof _0x275f8d[_0x2a15ff(0x73)]==='string'?_0x275f8d['jsUrl'][_0x2a15ff(0x93)]():undefined,'cssUrl':typeof _0x275f8d['cssUrl']===_0x2a15ff(0x80)?_0x275f8d[_0x2a15ff(0x74)]['trim']():undefined};}
@@ -1 +1 @@
1
- (function(_0x33bb29,_0x5ac990){const _0x5c8977=a150_0x406c,_0x2e2664=_0x33bb29();while(!![]){try{const _0x175d74=parseInt(_0x5c8977(0x20f))/0x1+parseInt(_0x5c8977(0x1e1))/0x2*(parseInt(_0x5c8977(0x1f0))/0x3)+parseInt(_0x5c8977(0x1e9))/0x4+-parseInt(_0x5c8977(0x1e6))/0x5*(parseInt(_0x5c8977(0x216))/0x6)+parseInt(_0x5c8977(0x202))/0x7*(parseInt(_0x5c8977(0x207))/0x8)+-parseInt(_0x5c8977(0x1f3))/0x9*(-parseInt(_0x5c8977(0x1fd))/0xa)+parseInt(_0x5c8977(0x214))/0xb*(-parseInt(_0x5c8977(0x1fa))/0xc);if(_0x175d74===_0x5ac990)break;else _0x2e2664['push'](_0x2e2664['shift']());}catch(_0xb06457){_0x2e2664['push'](_0x2e2664['shift']());}}}(a150_0x2fb3,0xb99a1));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 a150_0x406c(_0x4ade77,_0x2b97db){_0x4ade77=_0x4ade77-0x1d3;const _0x2fb32a=a150_0x2fb3();let _0x406cea=_0x2fb32a[_0x4ade77];return _0x406cea;}function validateParams(_0x86258f){const _0xb1540e=a150_0x406c,_0x23b8dc=[];return _0x86258f[_0xb1540e(0x1e8)]&&!isValidJsHttpsUrl(_0x86258f[_0xb1540e(0x1e8)])&&_0x23b8dc[_0xb1540e(0x1ea)]({'field':_0xb1540e(0x1e8),'message':_0xb1540e(0x1fc)}),_0x86258f[_0xb1540e(0x1f6)]&&!isValidCssHttpsUrl(_0x86258f[_0xb1540e(0x1f6)])&&_0x23b8dc[_0xb1540e(0x1ea)]({'field':_0xb1540e(0x1f6),'message':'CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'}),_0x23b8dc;}function a150_0x2fb3(){const _0x50b99a=['menu-asset-update','\x20existing\x20CSS\x20resources\x20for\x20\x22','resources','paths','Pass\x20--params\x20\x27{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}\x27\x20to\x20update\x20assets.','label','has','value','menu\x20asset-update\x20requires\x20an\x20explicit\x20target:\x20pass\x20--all,\x20--menu-ids,\x20or\x20--paths.','isArray','Invalid\x20--params:\x20menu\x20asset-update\x20requires\x20at\x20least\x20one\x20explicit\x20JS/CSS\x20URL.\x20','loadScriptMode','toLowerCase','94ciRPNz','menuIds','cwd','Use\x20--mode\x20patch\x20to\x20preserve\x20it,\x20pass\x20jsUrl,\x20or\x20add\x20--force\x20for\x20an\x20intentional\x20removal.','force','10egWeCd','dryRun','jsUrl','2629276MfDMXB','push','\x22\x20(','menu\x20asset-update\x20will\x20remove\x20existing\x20CSS\x20resource\x20for\x20\x22','parse','--params.','map','5955ZYzExw','object','.css','405VLzXrR','some','join','cssUrl','Start\x20non-interactive\x20menu\x20asset\x20update','patch','info','96PDtbEB','mode','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','20860HODMFT','JS\x20URL\x20is\x20unreachable:\x20','filter','trim','status','49FhejKT','all','rejected','with\x20a\x20single\x20cssUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.','string','1107688vtHWXY','field','menu\x20asset-update\x20cannot\x20patch\x20','length','Invalid\x20--params:\x20','extend','Menu\x20asset\x20update\x20completed','CSS\x20URL\x20is\x20unreachable:\x20','561386sYLzcP','message','after','endsWith','selection','862411rUMaHH','.js','2962992WXMkCo','.\x20Allowed\x20values:\x20replace,\x20patch','allSettled','path'];a150_0x2fb3=function(){return _0x50b99a;};return a150_0x2fb3();}export async function runMenuUpdateCore(_0x522183,_0x326f5b,_0x31e195,_0x4e1b8e={}){const _0x20389a=a150_0x406c,_0x43cc42=parseUpdateParamsFlag(_0x31e195),_0x53442e=normalizeMode(_0x4e1b8e[_0x20389a(0x1fb)]);validateSelection(_0x4e1b8e[_0x20389a(0x213)]);const _0x556584=[];if(_0x43cc42[_0x20389a(0x1e8)])_0x556584[_0x20389a(0x1ea)](_0x43cc42[_0x20389a(0x1e8)]);if(_0x43cc42[_0x20389a(0x1f6)])_0x556584['push'](_0x43cc42[_0x20389a(0x1f6)]);const _0xd23e76=validateParams(_0x43cc42);if(_0xd23e76[_0x20389a(0x20a)]>0x0){const _0x3dd817=_0xd23e76[_0x20389a(0x1ef)](_0x10a2dc=>_0x20389a(0x1ee)+_0x10a2dc[_0x20389a(0x208)]+':\x20'+_0x10a2dc[_0x20389a(0x210)])[_0x20389a(0x1f5)](';\x20');throw new Error(_0x20389a(0x20b)+_0x3dd817);}if(_0x556584['length']===0x0)throw new Error(_0x20389a(0x1de)+_0x20389a(0x1d8));logger['setLogPath'](process[_0x20389a(0x1e3)]()),logger[_0x20389a(0x1f9)](_0x20389a(0x1d4),_0x20389a(0x1f7),{'appCode':_0x522183,'jsUrl':_0x43cc42[_0x20389a(0x1e8)],'cssUrl':_0x43cc42[_0x20389a(0x1f6)],'mode':_0x53442e,'dryRun':_0x4e1b8e[_0x20389a(0x1e7)]===!![]});if(_0x43cc42[_0x20389a(0x1e8)]){const _0x14584a=await isUrlReachable(_0x43cc42[_0x20389a(0x1e8)]);if(!_0x14584a)throw new Error(_0x20389a(0x1fe)+_0x43cc42[_0x20389a(0x1e8)]);}if(_0x43cc42['cssUrl']){const _0x55b354=await isUrlReachable(_0x43cc42[_0x20389a(0x1f6)]);if(!_0x55b354)throw new Error(_0x20389a(0x20e)+_0x43cc42[_0x20389a(0x1f6)]);}const _0x3f46c9=await getOnlineMenuList(_0x522183,_0x326f5b),_0xb50377=_0x3f46c9['filter'](_0x2d81f=>_0x2d81f[_0x20389a(0x1d6)]['length']>0x0),_0x36c273=selectMenusForUpdate(_0xb50377,_0x4e1b8e[_0x20389a(0x213)]);if(_0x36c273[_0x20389a(0x20a)]===0x0)return{'updated':0x0,'failed':0x0,'skipped':!![],'dryRun':_0x4e1b8e[_0x20389a(0x1e7)]===!![]};const _0x3780b0=_0x36c273['map'](_0x5aeb8b=>buildMenuUpdateDiff(_0x5aeb8b,_0x43cc42,_0x53442e,_0x4e1b8e[_0x20389a(0x1e5)]===!![],_0x4e1b8e[_0x20389a(0x1df)]));if(_0x4e1b8e[_0x20389a(0x1e7)])return{'updated':0x0,'failed':0x0,'skipped':![],'dryRun':!![],'diffs':_0x3780b0};const _0x25055e=await Promise[_0x20389a(0x218)](_0x36c273[_0x20389a(0x1ef)]((_0x21dacb,_0x55cd99)=>updateMenuCdnUrl(_0x522183,_0x326f5b,{'id':_0x21dacb['id'],'label':_0x21dacb[_0x20389a(0x1d9)],'path':_0x21dacb['path'],'resources':_0x3780b0[_0x55cd99][_0x20389a(0x211)]['resources'],'extend':_0x21dacb[_0x20389a(0x20c)]??null,'loadScriptMode':_0x4e1b8e['loadScriptMode']}))),_0x52e503=_0x25055e[_0x20389a(0x1ff)](_0x1c8ce6=>_0x1c8ce6[_0x20389a(0x201)]==='fulfilled')[_0x20389a(0x1ef)](_0x6bbbba=>_0x6bbbba[_0x20389a(0x1db)]),_0x2ad0ec=_0x25055e['filter'](_0x5b23ff=>_0x5b23ff['status']===_0x20389a(0x204))[_0x20389a(0x20a)];return logger['info']('menu-asset-update',_0x20389a(0x20d),{'count':_0x36c273[_0x20389a(0x20a)],'resources':_0x556584}),{'updated':_0x52e503[_0x20389a(0x20a)],'failed':_0x2ad0ec,'skipped':![],'menus':_0x52e503};}function validateSelection(_0x239229){const _0xd41e55=a150_0x406c;if(!_0x239229)throw new Error(_0xd41e55(0x1dc));if(_0x239229[_0xd41e55(0x203)]&&(_0x239229[_0xd41e55(0x1e2)][_0xd41e55(0x20a)]>0x0||_0x239229['paths'][_0xd41e55(0x20a)]>0x0))throw new Error('--all\x20cannot\x20be\x20combined\x20with\x20--menu-ids\x20or\x20--paths.');if(!_0x239229[_0xd41e55(0x203)]&&_0x239229[_0xd41e55(0x1e2)][_0xd41e55(0x20a)]===0x0&&_0x239229[_0xd41e55(0x1d7)][_0xd41e55(0x20a)]===0x0)throw new Error(_0xd41e55(0x1dc));}export function selectMenusForUpdate(_0x181d23,_0x31cad5){const _0x45a295=a150_0x406c;validateSelection(_0x31cad5);if(_0x31cad5[_0x45a295(0x203)])return _0x181d23;const _0x5423b6=new Set(_0x181d23[_0x45a295(0x1ef)](_0x5b5a5b=>_0x5b5a5b['id'])),_0x5b9f7b=new Set(_0x181d23[_0x45a295(0x1ef)](_0x5520f4=>_0x5520f4[_0x45a295(0x1d3)])),_0xcd3cbd=_0x31cad5['menuIds']['filter'](_0xc8c6b1=>!_0x5423b6[_0x45a295(0x1da)](_0xc8c6b1)),_0x481a16=_0x31cad5['paths']['filter'](_0xed2e80=>!_0x5b9f7b['has'](_0xed2e80));if(_0xcd3cbd['length']>0x0||_0x481a16[_0x45a295(0x20a)]>0x0){const _0xaea89d=[..._0xcd3cbd[_0x45a295(0x1ef)](_0x4e016a=>String(_0x4e016a)),..._0x481a16][_0x45a295(0x1f5)](',\x20');throw new Error('menu\x20asset-update\x20selectors\x20did\x20not\x20match\x20resource-bearing\x20menus:\x20'+_0xaea89d);}const _0x248701=new Set(_0x31cad5[_0x45a295(0x1e2)]),_0x2eb898=new Set(_0x31cad5[_0x45a295(0x1d7)]);return _0x181d23['filter'](_0x585093=>_0x248701[_0x45a295(0x1da)](_0x585093['id'])||_0x2eb898[_0x45a295(0x1da)](_0x585093[_0x45a295(0x1d3)]));}function normalizeMode(_0x5a9492){const _0x5c89e4=a150_0x406c;if(!_0x5a9492)return _0x5c89e4(0x1f8);if(_0x5a9492==='replace'||_0x5a9492==='patch')return _0x5a9492;throw new Error('Invalid\x20--mode:\x20'+_0x5a9492+_0x5c89e4(0x217));}function buildMenuUpdateDiff(_0x12a084,_0x31f62b,_0x4a729a,_0x3b9533,_0x3dcfd4){const _0x27251a=a150_0x406c,_0x26cd5f=[..._0x12a084[_0x27251a(0x1d6)]];_0x4a729a===_0x27251a(0x1f8)&&assertUnambiguousPatchResources(_0x12a084,_0x26cd5f,_0x31f62b);const _0x1e406b=_0x4a729a===_0x27251a(0x1f8)?patchResources(_0x26cd5f,_0x31f62b):replaceResources(_0x31f62b),_0x1749ba=[],_0x353791=_0x26cd5f[_0x27251a(0x1f4)](isJsResource),_0x5ad90f=_0x1e406b['some'](isJsResource);if(_0x353791&&!_0x5ad90f){const _0x27ab0='menu\x20asset-update\x20would\x20remove\x20existing\x20JS\x20resource\x20for\x20\x22'+_0x12a084[_0x27251a(0x1d9)]+_0x27251a(0x1eb)+_0x12a084[_0x27251a(0x1d3)]+').\x20'+_0x27251a(0x1e4);if(!_0x3b9533)throw new Error(_0x27ab0);_0x1749ba[_0x27251a(0x1ea)](_0x27ab0);}const _0x528a7e=_0x26cd5f[_0x27251a(0x1f4)](isCssResource),_0x31c837=_0x1e406b[_0x27251a(0x1f4)](isCssResource);_0x528a7e&&!_0x31c837&&_0x1749ba[_0x27251a(0x1ea)](_0x27251a(0x1ec)+_0x12a084[_0x27251a(0x1d9)]+'\x22\x20('+_0x12a084[_0x27251a(0x1d3)]+').');const _0x380828=typeof _0x12a084['extend']?.[_0x27251a(0x1df)]===_0x27251a(0x206)?_0x12a084['extend'][_0x27251a(0x1df)]:null,_0x4cb626=_0x3dcfd4?{'loadScriptMode':_0x380828}:{},_0x286449=_0x3dcfd4?{'loadScriptMode':_0x3dcfd4}:{};return{'id':_0x12a084['id'],'label':_0x12a084[_0x27251a(0x1d9)],'path':_0x12a084[_0x27251a(0x1d3)],'mode':_0x4a729a,'before':{'resources':_0x26cd5f,..._0x4cb626},'after':{'resources':_0x1e406b,..._0x286449},'warnings':_0x1749ba};}function replaceResources(_0x29e216){const _0x42cd79=a150_0x406c;return[_0x29e216['jsUrl'],_0x29e216['cssUrl']][_0x42cd79(0x1ff)](_0x57f3cd=>!!_0x57f3cd);}function assertUnambiguousPatchResources(_0x36045b,_0x34518c,_0x410b23){const _0x1c63a8=a150_0x406c,_0x4136e6=_0x34518c[_0x1c63a8(0x1ff)](isJsResource)['length'];if(_0x410b23['jsUrl']&&_0x4136e6>0x1)throw new Error(_0x1c63a8(0x209)+_0x4136e6+'\x20existing\x20JS\x20resources\x20for\x20\x22'+_0x36045b[_0x1c63a8(0x1d9)]+_0x1c63a8(0x1eb)+_0x36045b['path']+')\x20'+'with\x20a\x20single\x20jsUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.');const _0x3aebfc=_0x34518c['filter'](isCssResource)[_0x1c63a8(0x20a)];if(_0x410b23['cssUrl']&&_0x3aebfc>0x1)throw new Error(_0x1c63a8(0x209)+_0x3aebfc+_0x1c63a8(0x1d5)+_0x36045b[_0x1c63a8(0x1d9)]+_0x1c63a8(0x1eb)+_0x36045b[_0x1c63a8(0x1d3)]+')\x20'+_0x1c63a8(0x205));}function patchResources(_0x383044,_0x463281){const _0x478579=a150_0x406c;let _0x5c221c=![],_0x4f764a=![];const _0x69482e=[];for(const _0x21624f of _0x383044){if(isJsResource(_0x21624f)){if(_0x463281['jsUrl']&&!_0x5c221c)_0x69482e[_0x478579(0x1ea)](_0x463281[_0x478579(0x1e8)]),_0x5c221c=!![];else!_0x463281[_0x478579(0x1e8)]&&_0x69482e[_0x478579(0x1ea)](_0x21624f);continue;}if(isCssResource(_0x21624f)){if(_0x463281[_0x478579(0x1f6)]&&!_0x4f764a)_0x69482e[_0x478579(0x1ea)](_0x463281['cssUrl']),_0x4f764a=!![];else!_0x463281['cssUrl']&&_0x69482e[_0x478579(0x1ea)](_0x21624f);continue;}_0x69482e['push'](_0x21624f);}return _0x463281['jsUrl']&&!_0x5c221c&&_0x69482e['unshift'](_0x463281['jsUrl']),_0x463281[_0x478579(0x1f6)]&&!_0x4f764a&&_0x69482e[_0x478579(0x1ea)](_0x463281[_0x478579(0x1f6)]),_0x69482e;}function isJsResource(_0x3a33a0){const _0xd2c1cf=a150_0x406c;return stripQuery(_0x3a33a0)[_0xd2c1cf(0x1e0)]()[_0xd2c1cf(0x212)](_0xd2c1cf(0x215));}function isCssResource(_0x4526c9){const _0x4fec5b=a150_0x406c;return stripQuery(_0x4526c9)[_0x4fec5b(0x1e0)]()[_0x4fec5b(0x212)](_0x4fec5b(0x1f2));}function stripQuery(_0x7923f5){return _0x7923f5['split']('?')[0x0]??_0x7923f5;}function parseUpdateParamsFlag(_0xd7a209){const _0x182831=a150_0x406c;if(!_0xd7a209||typeof _0xd7a209!=='string')return{};try{const _0x724f6d=JSON[_0x182831(0x1ed)](_0xd7a209);if(typeof _0x724f6d!==_0x182831(0x1f1)||_0x724f6d===null||Array[_0x182831(0x1dd)](_0x724f6d))return{};return{'jsUrl':typeof _0x724f6d[_0x182831(0x1e8)]==='string'?_0x724f6d[_0x182831(0x1e8)]['trim']():undefined,'cssUrl':typeof _0x724f6d[_0x182831(0x1f6)]===_0x182831(0x206)?_0x724f6d[_0x182831(0x1f6)][_0x182831(0x200)]():undefined};}catch{return{};}}
1
+ (function(_0x5c2f71,_0x278d52){const _0x32b4dc=a148_0x250c,_0x300435=_0x5c2f71();while(!![]){try{const _0x10b367=parseInt(_0x32b4dc(0xf8))/0x1*(parseInt(_0x32b4dc(0xe7))/0x2)+-parseInt(_0x32b4dc(0xfc))/0x3*(-parseInt(_0x32b4dc(0x104))/0x4)+-parseInt(_0x32b4dc(0x108))/0x5+parseInt(_0x32b4dc(0xf0))/0x6+-parseInt(_0x32b4dc(0x103))/0x7+-parseInt(_0x32b4dc(0xfe))/0x8*(parseInt(_0x32b4dc(0x116))/0x9)+parseInt(_0x32b4dc(0x114))/0xa;if(_0x10b367===_0x278d52)break;else _0x300435['push'](_0x300435['shift']());}catch(_0x22fa6d){_0x300435['push'](_0x300435['shift']());}}}(a148_0x1f90,0xbccb2));function a148_0x1f90(){const _0x193caa=['label','has','split','menu\x20asset-update\x20cannot\x20patch\x20','force','Invalid\x20--params:\x20menu\x20asset-update\x20requires\x20at\x20least\x20one\x20explicit\x20JS/CSS\x20URL.\x20','\x20existing\x20JS\x20resources\x20for\x20\x22','\x20existing\x20CSS\x20resources\x20for\x20\x22','some','JS\x20URL\x20is\x20unreachable:\x20','7058610cmBpmA','join','436464wfCXCd','map','isArray','allSettled','status','filter','menu\x20asset-update\x20would\x20remove\x20existing\x20JS\x20resource\x20for\x20\x22','all','field','Pass\x20--params\x20\x27{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}\x27\x20to\x20update\x20assets.','Invalid\x20--params:\x20','toLowerCase',').\x20','parse','replace','CSS\x20URL\x20is\x20unreachable:\x20','message','value','string','length','133890spmBSU','cssUrl','.js','dryRun','Use\x20--mode\x20patch\x20to\x20preserve\x20it,\x20pass\x20jsUrl,\x20or\x20add\x20--force\x20for\x20an\x20intentional\x20removal.','push','patch','after','mode','3801348VSEwfd','endsWith','path','\x22\x20(','resources','menuIds','--params.','menu-asset-update','5VJZxLa','cwd','loadScriptMode','info','2574699XcVxIq','unshift','128YJkHQj','jsUrl','selection','menu\x20asset-update\x20requires\x20an\x20explicit\x20target:\x20pass\x20--all,\x20--menu-ids,\x20or\x20--paths.','Menu\x20asset\x20update\x20completed','4935952Vxcuaj','4MMytbP','with\x20a\x20single\x20jsUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.','object','rejected','1390035fPHLql','paths'];a148_0x1f90=function(){return _0x193caa;};return a148_0x1f90();}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(_0x27eaac){const _0x3ce6f7=a148_0x250c,_0x129374=[];return _0x27eaac['jsUrl']&&!isValidJsHttpsUrl(_0x27eaac['jsUrl'])&&_0x129374[_0x3ce6f7(0xec)]({'field':_0x3ce6f7(0xff),'message':'JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'}),_0x27eaac[_0x3ce6f7(0xe8)]&&!isValidCssHttpsUrl(_0x27eaac[_0x3ce6f7(0xe8)])&&_0x129374[_0x3ce6f7(0xec)]({'field':_0x3ce6f7(0xe8),'message':'CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'}),_0x129374;}export async function runMenuUpdateCore(_0x5b06f1,_0x5bc0e7,_0x3925bf,_0x242b82={}){const _0x294baa=a148_0x250c,_0x2150f0=parseUpdateParamsFlag(_0x3925bf),_0x35f6bf=normalizeMode(_0x242b82[_0x294baa(0xef)]);validateSelection(_0x242b82['selection']);const _0x108a4f=[];if(_0x2150f0['jsUrl'])_0x108a4f[_0x294baa(0xec)](_0x2150f0[_0x294baa(0xff)]);if(_0x2150f0['cssUrl'])_0x108a4f['push'](_0x2150f0['cssUrl']);const _0x1a2220=validateParams(_0x2150f0);if(_0x1a2220[_0x294baa(0xe6)]>0x0){const _0x27c881=_0x1a2220[_0x294baa(0x117)](_0x1bb852=>_0x294baa(0xf6)+_0x1bb852[_0x294baa(0xdb)]+':\x20'+_0x1bb852[_0x294baa(0xe3)])[_0x294baa(0x115)](';\x20');throw new Error(_0x294baa(0xdd)+_0x27c881);}if(_0x108a4f[_0x294baa(0xe6)]===0x0)throw new Error(_0x294baa(0x10f)+_0x294baa(0xdc));logger['setLogPath'](process[_0x294baa(0xf9)]()),logger[_0x294baa(0xfb)](_0x294baa(0xf7),'Start\x20non-interactive\x20menu\x20asset\x20update',{'appCode':_0x5b06f1,'jsUrl':_0x2150f0[_0x294baa(0xff)],'cssUrl':_0x2150f0[_0x294baa(0xe8)],'mode':_0x35f6bf,'dryRun':_0x242b82['dryRun']===!![]});if(_0x2150f0[_0x294baa(0xff)]){const _0x3fea93=await isUrlReachable(_0x2150f0['jsUrl']);if(!_0x3fea93)throw new Error(_0x294baa(0x113)+_0x2150f0[_0x294baa(0xff)]);}if(_0x2150f0['cssUrl']){const _0x350a66=await isUrlReachable(_0x2150f0[_0x294baa(0xe8)]);if(!_0x350a66)throw new Error(_0x294baa(0xe2)+_0x2150f0[_0x294baa(0xe8)]);}const _0x2b49b7=await getOnlineMenuList(_0x5b06f1,_0x5bc0e7),_0x655e85=_0x2b49b7[_0x294baa(0x11b)](_0x35a181=>_0x35a181[_0x294baa(0xf4)][_0x294baa(0xe6)]>0x0),_0x3a25e8=selectMenusForUpdate(_0x655e85,_0x242b82[_0x294baa(0x100)]);if(_0x3a25e8['length']===0x0)return{'updated':0x0,'failed':0x0,'skipped':!![],'dryRun':_0x242b82[_0x294baa(0xea)]===!![]};const _0x139cd0=_0x3a25e8[_0x294baa(0x117)](_0x442e0e=>buildMenuUpdateDiff(_0x442e0e,_0x2150f0,_0x35f6bf,_0x242b82[_0x294baa(0x10e)]===!![],_0x242b82[_0x294baa(0xfa)]));if(_0x242b82['dryRun'])return{'updated':0x0,'failed':0x0,'skipped':![],'dryRun':!![],'diffs':_0x139cd0};const _0x48c840=await Promise[_0x294baa(0x119)](_0x3a25e8[_0x294baa(0x117)]((_0x11b806,_0x13eb10)=>updateMenuCdnUrl(_0x5b06f1,_0x5bc0e7,{'id':_0x11b806['id'],'label':_0x11b806[_0x294baa(0x10a)],'path':_0x11b806[_0x294baa(0xf2)],'resources':_0x139cd0[_0x13eb10][_0x294baa(0xee)]['resources'],'extend':_0x11b806['extend']??null,'loadScriptMode':_0x242b82[_0x294baa(0xfa)]}))),_0x4eaffb=_0x48c840[_0x294baa(0x11b)](_0x2119b7=>_0x2119b7['status']==='fulfilled')[_0x294baa(0x117)](_0x52d6ae=>_0x52d6ae[_0x294baa(0xe4)]),_0x4299f2=_0x48c840[_0x294baa(0x11b)](_0x2b30b1=>_0x2b30b1[_0x294baa(0x11a)]===_0x294baa(0x107))[_0x294baa(0xe6)];return logger[_0x294baa(0xfb)]('menu-asset-update',_0x294baa(0x102),{'count':_0x3a25e8[_0x294baa(0xe6)],'resources':_0x108a4f}),{'updated':_0x4eaffb[_0x294baa(0xe6)],'failed':_0x4299f2,'skipped':![],'menus':_0x4eaffb};}function validateSelection(_0x53eab0){const _0x5db014=a148_0x250c;if(!_0x53eab0)throw new Error('menu\x20asset-update\x20requires\x20an\x20explicit\x20target:\x20pass\x20--all,\x20--menu-ids,\x20or\x20--paths.');if(_0x53eab0[_0x5db014(0x11d)]&&(_0x53eab0[_0x5db014(0xf5)][_0x5db014(0xe6)]>0x0||_0x53eab0[_0x5db014(0x109)][_0x5db014(0xe6)]>0x0))throw new Error('--all\x20cannot\x20be\x20combined\x20with\x20--menu-ids\x20or\x20--paths.');if(!_0x53eab0['all']&&_0x53eab0[_0x5db014(0xf5)][_0x5db014(0xe6)]===0x0&&_0x53eab0[_0x5db014(0x109)][_0x5db014(0xe6)]===0x0)throw new Error(_0x5db014(0x101));}export function selectMenusForUpdate(_0x116d8c,_0x1f8f38){const _0xd61a83=a148_0x250c;validateSelection(_0x1f8f38);if(_0x1f8f38[_0xd61a83(0x11d)])return _0x116d8c;const _0x1aea65=new Set(_0x116d8c[_0xd61a83(0x117)](_0x3afd63=>_0x3afd63['id'])),_0x595539=new Set(_0x116d8c['map'](_0x421e68=>_0x421e68['path'])),_0x1af921=_0x1f8f38[_0xd61a83(0xf5)][_0xd61a83(0x11b)](_0x3b3890=>!_0x1aea65[_0xd61a83(0x10b)](_0x3b3890)),_0x42b96e=_0x1f8f38[_0xd61a83(0x109)]['filter'](_0x7dee7a=>!_0x595539[_0xd61a83(0x10b)](_0x7dee7a));if(_0x1af921[_0xd61a83(0xe6)]>0x0||_0x42b96e['length']>0x0){const _0x5129ed=[..._0x1af921[_0xd61a83(0x117)](_0x561950=>String(_0x561950)),..._0x42b96e][_0xd61a83(0x115)](',\x20');throw new Error('menu\x20asset-update\x20selectors\x20did\x20not\x20match\x20resource-bearing\x20menus:\x20'+_0x5129ed);}const _0x3dd495=new Set(_0x1f8f38[_0xd61a83(0xf5)]),_0x4c0f9f=new Set(_0x1f8f38[_0xd61a83(0x109)]);return _0x116d8c[_0xd61a83(0x11b)](_0x20a2b1=>_0x3dd495['has'](_0x20a2b1['id'])||_0x4c0f9f[_0xd61a83(0x10b)](_0x20a2b1[_0xd61a83(0xf2)]));}function a148_0x250c(_0x320574,_0x18923a){_0x320574=_0x320574-0xdb;const _0x1f9096=a148_0x1f90();let _0x250c15=_0x1f9096[_0x320574];return _0x250c15;}function normalizeMode(_0x5253ed){const _0x550efd=a148_0x250c;if(!_0x5253ed)return _0x550efd(0xed);if(_0x5253ed===_0x550efd(0xe1)||_0x5253ed===_0x550efd(0xed))return _0x5253ed;throw new Error('Invalid\x20--mode:\x20'+_0x5253ed+'.\x20Allowed\x20values:\x20replace,\x20patch');}function buildMenuUpdateDiff(_0xe1af0e,_0x15e153,_0x353a78,_0x2588a4,_0x157160){const _0x398b0e=a148_0x250c,_0x577d15=[..._0xe1af0e[_0x398b0e(0xf4)]];_0x353a78===_0x398b0e(0xed)&&assertUnambiguousPatchResources(_0xe1af0e,_0x577d15,_0x15e153);const _0x1fce1a=_0x353a78===_0x398b0e(0xed)?patchResources(_0x577d15,_0x15e153):replaceResources(_0x15e153),_0x33198e=[],_0x5e2dab=_0x577d15['some'](isJsResource),_0x3753e9=_0x1fce1a['some'](isJsResource);if(_0x5e2dab&&!_0x3753e9){const _0x6d0a48=_0x398b0e(0x11c)+_0xe1af0e[_0x398b0e(0x10a)]+_0x398b0e(0xf3)+_0xe1af0e[_0x398b0e(0xf2)]+_0x398b0e(0xdf)+_0x398b0e(0xeb);if(!_0x2588a4)throw new Error(_0x6d0a48);_0x33198e[_0x398b0e(0xec)](_0x6d0a48);}const _0x4eaf9a=_0x577d15['some'](isCssResource),_0x3a5530=_0x1fce1a[_0x398b0e(0x112)](isCssResource);_0x4eaf9a&&!_0x3a5530&&_0x33198e[_0x398b0e(0xec)]('menu\x20asset-update\x20will\x20remove\x20existing\x20CSS\x20resource\x20for\x20\x22'+_0xe1af0e['label']+'\x22\x20('+_0xe1af0e[_0x398b0e(0xf2)]+').');const _0x2857db=typeof _0xe1af0e['extend']?.['loadScriptMode']===_0x398b0e(0xe5)?_0xe1af0e['extend'][_0x398b0e(0xfa)]:null,_0x2a44ec=_0x157160?{'loadScriptMode':_0x2857db}:{},_0x58f373=_0x157160?{'loadScriptMode':_0x157160}:{};return{'id':_0xe1af0e['id'],'label':_0xe1af0e[_0x398b0e(0x10a)],'path':_0xe1af0e[_0x398b0e(0xf2)],'mode':_0x353a78,'before':{'resources':_0x577d15,..._0x2a44ec},'after':{'resources':_0x1fce1a,..._0x58f373},'warnings':_0x33198e};}function replaceResources(_0x5b78fa){const _0x49cbfc=a148_0x250c;return[_0x5b78fa['jsUrl'],_0x5b78fa[_0x49cbfc(0xe8)]][_0x49cbfc(0x11b)](_0x1778d8=>!!_0x1778d8);}function assertUnambiguousPatchResources(_0x2e42e3,_0x4fb162,_0x48afda){const _0x2c436a=a148_0x250c,_0x4e264a=_0x4fb162[_0x2c436a(0x11b)](isJsResource)[_0x2c436a(0xe6)];if(_0x48afda['jsUrl']&&_0x4e264a>0x1)throw new Error('menu\x20asset-update\x20cannot\x20patch\x20'+_0x4e264a+_0x2c436a(0x110)+_0x2e42e3[_0x2c436a(0x10a)]+_0x2c436a(0xf3)+_0x2e42e3[_0x2c436a(0xf2)]+')\x20'+_0x2c436a(0x105));const _0x138ac7=_0x4fb162[_0x2c436a(0x11b)](isCssResource)[_0x2c436a(0xe6)];if(_0x48afda[_0x2c436a(0xe8)]&&_0x138ac7>0x1)throw new Error(_0x2c436a(0x10d)+_0x138ac7+_0x2c436a(0x111)+_0x2e42e3[_0x2c436a(0x10a)]+'\x22\x20('+_0x2e42e3[_0x2c436a(0xf2)]+')\x20'+'with\x20a\x20single\x20cssUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.');}function patchResources(_0x1806c6,_0x369b40){const _0x9aad2b=a148_0x250c;let _0x2cff6d=![],_0x591aa7=![];const _0x3cfc1e=[];for(const _0x2a3608 of _0x1806c6){if(isJsResource(_0x2a3608)){if(_0x369b40[_0x9aad2b(0xff)]&&!_0x2cff6d)_0x3cfc1e[_0x9aad2b(0xec)](_0x369b40[_0x9aad2b(0xff)]),_0x2cff6d=!![];else!_0x369b40[_0x9aad2b(0xff)]&&_0x3cfc1e['push'](_0x2a3608);continue;}if(isCssResource(_0x2a3608)){if(_0x369b40['cssUrl']&&!_0x591aa7)_0x3cfc1e[_0x9aad2b(0xec)](_0x369b40[_0x9aad2b(0xe8)]),_0x591aa7=!![];else!_0x369b40[_0x9aad2b(0xe8)]&&_0x3cfc1e[_0x9aad2b(0xec)](_0x2a3608);continue;}_0x3cfc1e[_0x9aad2b(0xec)](_0x2a3608);}return _0x369b40[_0x9aad2b(0xff)]&&!_0x2cff6d&&_0x3cfc1e[_0x9aad2b(0xfd)](_0x369b40['jsUrl']),_0x369b40[_0x9aad2b(0xe8)]&&!_0x591aa7&&_0x3cfc1e[_0x9aad2b(0xec)](_0x369b40[_0x9aad2b(0xe8)]),_0x3cfc1e;}function isJsResource(_0x444532){const _0x5a2949=a148_0x250c;return stripQuery(_0x444532)[_0x5a2949(0xde)]()[_0x5a2949(0xf1)](_0x5a2949(0xe9));}function isCssResource(_0x36d770){const _0x107aef=a148_0x250c;return stripQuery(_0x36d770)[_0x107aef(0xde)]()[_0x107aef(0xf1)]('.css');}function stripQuery(_0x40f790){const _0x383889=a148_0x250c;return _0x40f790[_0x383889(0x10c)]('?')[0x0]??_0x40f790;}function parseUpdateParamsFlag(_0x4c65ad){const _0x686695=a148_0x250c;if(!_0x4c65ad||typeof _0x4c65ad!==_0x686695(0xe5))return{};try{const _0x21c6a1=JSON[_0x686695(0xe0)](_0x4c65ad);if(typeof _0x21c6a1!==_0x686695(0x106)||_0x21c6a1===null||Array[_0x686695(0x118)](_0x21c6a1))return{};return{'jsUrl':typeof _0x21c6a1[_0x686695(0xff)]===_0x686695(0xe5)?_0x21c6a1['jsUrl']['trim']():undefined,'cssUrl':typeof _0x21c6a1[_0x686695(0xe8)]==='string'?_0x21c6a1['cssUrl']['trim']():undefined};}catch{return{};}}
@@ -1 +1 @@
1
- (function(_0x5e44cd,_0x44afea){const _0x58bf59=a151_0x22f1,_0x2ef37f=_0x5e44cd();while(!![]){try{const _0x461ea7=parseInt(_0x58bf59(0x148))/0x1*(-parseInt(_0x58bf59(0x13e))/0x2)+parseInt(_0x58bf59(0x149))/0x3+-parseInt(_0x58bf59(0x140))/0x4*(-parseInt(_0x58bf59(0x13f))/0x5)+-parseInt(_0x58bf59(0x145))/0x6*(parseInt(_0x58bf59(0x144))/0x7)+-parseInt(_0x58bf59(0x13d))/0x8+-parseInt(_0x58bf59(0x141))/0x9+parseInt(_0x58bf59(0x142))/0xa;if(_0x461ea7===_0x44afea)break;else _0x2ef37f['push'](_0x2ef37f['shift']());}catch(_0x4e46d3){_0x2ef37f['push'](_0x2ef37f['shift']());}}}(a151_0x1c39,0xac312));export function isValidJsHttpsUrl(_0xd02861){const _0xd06579=a151_0x22f1;return/^https:\/\/.+\.js(\?.*)?$/[_0xd06579(0x143)](_0xd02861[_0xd06579(0x146)]());}function a151_0x22f1(_0xe4c9bd,_0x233992){_0xe4c9bd=_0xe4c9bd-0x13d;const _0x1c392f=a151_0x1c39();let _0x22f103=_0x1c392f[_0xe4c9bd];return _0x22f103;}export function isValidCssHttpsUrl(_0x3e0a88){const _0x43626c=a151_0x22f1;return/^https:\/\/.+\.css(\?.*)?$/[_0x43626c(0x143)](_0x3e0a88[_0x43626c(0x146)]());}export async function isUrlReachable(_0x32e6d7){const _0x81ae97=a151_0x22f1;try{const _0x5ec474=await fetch(_0x32e6d7,{'method':_0x81ae97(0x147)});return _0x5ec474['ok'];}catch{return![];}}function a151_0x1c39(){const _0x41c5ca=['1mkYDkM','3116961MArbGA','4412192YHekkJ','971206ssTHwn','67345cbzHut','288pNLLXQ','11046690WNvloJ','20255710Kvamrf','test','7wNibFO','6386946mTfVAd','trim','HEAD'];a151_0x1c39=function(){return _0x41c5ca;};return a151_0x1c39();}
1
+ function a149_0x23f0(){const _0x2e15b4=['44099VKQmEO','7554568JyaySe','9170NlqQvF','4344PYhiGd','HEAD','13513xdJNTg','528072ifnYFj','5864652uftVWO','204hHBqzy','9044655JUTSjC','trim','90PPGrDM','4197uQQfSp','test'];a149_0x23f0=function(){return _0x2e15b4;};return a149_0x23f0();}(function(_0x1bc9ca,_0x45d4a9){const _0xd856=a149_0x45a1,_0xd2d71e=_0x1bc9ca();while(!![]){try{const _0x2bd44b=parseInt(_0xd856(0x197))/0x1*(parseInt(_0xd856(0x19a))/0x2)+parseInt(_0xd856(0x19e))/0x3*(-parseInt(_0xd856(0x195))/0x4)+-parseInt(_0xd856(0x19b))/0x5+parseInt(_0xd856(0x199))/0x6+-parseInt(_0xd856(0x193))/0x7+-parseInt(_0xd856(0x198))/0x8*(parseInt(_0xd856(0x19d))/0x9)+parseInt(_0xd856(0x194))/0xa*(parseInt(_0xd856(0x192))/0xb);if(_0x2bd44b===_0x45d4a9)break;else _0xd2d71e['push'](_0xd2d71e['shift']());}catch(_0x4c8154){_0xd2d71e['push'](_0xd2d71e['shift']());}}}(a149_0x23f0,0xeb76e));function a149_0x45a1(_0x1c80f6,_0x5a5b16){_0x1c80f6=_0x1c80f6-0x191;const _0x23f023=a149_0x23f0();let _0x45a19c=_0x23f023[_0x1c80f6];return _0x45a19c;}export function isValidJsHttpsUrl(_0x35e9cd){const _0x562a0f=a149_0x45a1;return/^https:\/\/.+\.js(\?.*)?$/[_0x562a0f(0x191)](_0x35e9cd[_0x562a0f(0x19c)]());}export function isValidCssHttpsUrl(_0x253063){const _0x5ef251=a149_0x45a1;return/^https:\/\/.+\.css(\?.*)?$/['test'](_0x253063[_0x5ef251(0x19c)]());}export async function isUrlReachable(_0x521101){const _0x515dea=a149_0x45a1;try{const _0x4d5334=await fetch(_0x521101,{'method':_0x515dea(0x196)});return _0x4d5334['ok'];}catch{return![];}}
@@ -1 +1 @@
1
- const a152_0x442635=a152_0x3ff1;(function(_0x22ccd8,_0x28c43f){const _0x977b1d=a152_0x3ff1,_0x5839c1=_0x22ccd8();while(!![]){try{const _0x269beb=-parseInt(_0x977b1d(0x1be))/0x1*(parseInt(_0x977b1d(0x1e9))/0x2)+-parseInt(_0x977b1d(0x1b7))/0x3*(-parseInt(_0x977b1d(0x1aa))/0x4)+-parseInt(_0x977b1d(0x1e1))/0x5+-parseInt(_0x977b1d(0x1ab))/0x6+parseInt(_0x977b1d(0x1b4))/0x7+-parseInt(_0x977b1d(0x1e7))/0x8+parseInt(_0x977b1d(0x1cf))/0x9;if(_0x269beb===_0x28c43f)break;else _0x5839c1['push'](_0x5839c1['shift']());}catch(_0xb9e44e){_0x5839c1['push'](_0x5839c1['shift']());}}}(a152_0x5dd9,0x2bcb1));import a152_0x591a9c from'chalk';function a152_0x5dd9(){const _0x119d78=['3OoKzoi','targetPages','str','validation','params','rawFlags','sync','1BctAOZ','Exact\x20comma-separated\x20local\x20page\x20paths\x20to\x20sync','failed','trim','cookie','\x20\x20Continue\x20with\x20creation?','localPages','menu\x20sync\x20requires\x20a\x20project\x20context\x20or\x20explicit\x20--appcode.\x20','filter','\x20\x20✓\x20Selected:\x20','jsUrl','appcode','split','onlineMenuList','\x20menu(s)','yellow','\x20page(s)','3324231fRaixu','Menu\x20sync\x20completed:\x20','paths','created','write','\x20menu(s)\x20created','JSON:\x20{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}','Non-interactive\x20menu\x20sync\x20requires\x20--yes.','✓\x20Menu\x20sync\x20completed:\x20','string','cssUrl','/smartapi/menu/create','Run\x20inside\x20a\x20directory\x20with\x20.rabetbase.json,\x20or\x20pass\x20--appcode\x20<code>.','\x20menu(s)\x20with\x20JS:\x20','length','Would\x20create\x20','\x20menu(s)...','\x20and\x20CSS:\x20','1679125LyjFvx','onlinePaths','\x20created,\x20','size','Menu\x20sync\x20skipped','Pre-fill\x20JS/CSS\x20URLs.\x20','513072MFogOi','skipped','246814HwDIFw','\x20\x20Create\x20','Created\x20','gray','Failed\x20to\x20fetch\x20online\x20menu\x20list','\x20\x20Cancelled.','yes','!\x20No\x20local\x20pages\x20found\x20in\x20src/pages','1340116BWxPOy','344478QkmRJE','No\x20local\x20microfrontend\x20menus\x20would\x20be\x20created.','\x20created.','✓\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform','Confirm\x20non-interactive\x20sync;\x20without\x20--paths,\x20create\x20all\x20missing\x20local\x20pages','appCode','selectedAppName','cyan','Sync\x20local\x20pages\x20as\x20platform\x20menus','390376YWakvS','flag','Preview\x20with\x20--dry-run,\x20then\x20reuse\x20the\x20same\x20--paths\x20and\x20--params\x20with\x20--yes.'];a152_0x5dd9=function(){return _0x119d78;};return a152_0x5dd9();}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';import{getLocalPages}from'../../commands/menu/shared/local-pages.js';import{isInProject}from'../../context.js';function a152_0x3ff1(_0x2288b8,_0x4c88fe){_0x2288b8=_0x2288b8-0x1a4;const _0x5dd9dd=a152_0x5dd9();let _0x3ff1e1=_0x5dd9dd[_0x2288b8];return _0x3ff1e1;}export const menuSync={'service':'menu','command':a152_0x442635(0x1bd),'description':a152_0x442635(0x1b3),'risk':a152_0x442635(0x1d3),'flags':[{'name':a152_0x442635(0x1bb),'type':'string','description':a152_0x442635(0x1e6)+a152_0x442635(0x1d5)},{'name':a152_0x442635(0x1d1),'type':a152_0x442635(0x1d8),'description':a152_0x442635(0x1bf)},{'name':'yes','type':'boolean','description':a152_0x442635(0x1af)}],async 'dryRun'(_0x3c0645){const _0x4de05f=a152_0x442635;ensureRunnableContext(_0x3c0645[_0x4de05f(0x1bc)],_0x3c0645[_0x4de05f(0x1b1)]);const _0x26800d=await runMenuSyncCore(_0x3c0645['appCode'],_0x3c0645['cookie'],parsePaths(_0x3c0645['str']('paths')),_0x3c0645['str'](_0x4de05f(0x1bb)),{'dryRun':!![]});return{'method':'POST','url':_0x4de05f(0x1da),'body':_0x26800d,'description':_0x26800d[_0x4de05f(0x1e8)]?_0x4de05f(0x1ac):_0x4de05f(0x1de)+_0x26800d[_0x4de05f(0x1b8)][_0x4de05f(0x1dd)]+'\x20local\x20microfrontend\x20menu(s).'};},async 'execute'(_0x514d4c){const _0x2db5f3=a152_0x442635;ensureRunnableContext(_0x514d4c[_0x2db5f3(0x1bc)],_0x514d4c[_0x2db5f3(0x1b1)]);const _0x4b2a75=_0x514d4c[_0x2db5f3(0x1b5)](_0x2db5f3(0x1a8)),_0x511534=_0x514d4c[_0x2db5f3(0x1b9)]('params'),_0x490ecf=parsePaths(_0x514d4c[_0x2db5f3(0x1b9)](_0x2db5f3(0x1d1))),_0x38c796=parseMenuSyncParams(_0x511534);if(_0x4b2a75){const _0x5a7c3f=await runMenuSyncCore(_0x514d4c[_0x2db5f3(0x1b0)],_0x514d4c[_0x2db5f3(0x1c2)],_0x490ecf,_0x511534);if(_0x5a7c3f[_0x2db5f3(0x1e8)]){const _0x185437=getLocalPages();_0x185437[_0x2db5f3(0x1dd)]===0x0?writeCliSideChannelLine(_0x2db5f3(0x1a9)):writeCliSideChannelLine(_0x2db5f3(0x1ae));}else writeCliSideChannelLine(_0x2db5f3(0x1d7)+_0x5a7c3f[_0x2db5f3(0x1d2)]+_0x2db5f3(0x1d4));return{'ok':!![],'data':_0x5a7c3f,'message':_0x5a7c3f[_0x2db5f3(0x1e8)]?_0x2db5f3(0x1e5):_0x2db5f3(0x1d0)+_0x5a7c3f[_0x2db5f3(0x1d2)]+_0x2db5f3(0x1ad)};}if(_0x490ecf[_0x2db5f3(0x1dd)]>0x0)throw CliErrors[_0x2db5f3(0x1ba)]('menu\x20sync\x20--paths\x20requires\x20--yes\x20for\x20execution.',_0x2db5f3(0x1b6));if(!isInteractive()&&_0x511534)throw CliErrors[_0x2db5f3(0x1ba)](_0x2db5f3(0x1d6),_0x2db5f3(0x1b6));requireInteractive();const _0x5f098f=startSpinner('Fetching\x20online\x20menu\x20list...');let _0x27aae9,_0x4c37d2,_0x5e81da;try{const _0x2af6f0=await fetchMenuData(_0x514d4c[_0x2db5f3(0x1b0)],_0x514d4c[_0x2db5f3(0x1c2)]);_0x27aae9=_0x2af6f0[_0x2db5f3(0x1c4)],_0x4c37d2=_0x2af6f0[_0x2db5f3(0x1e2)],_0x5e81da=_0x2af6f0[_0x2db5f3(0x1cb)],stopSpinner(_0x5f098f,'Online\x20menu\x20list\x20fetched',!![]);}catch(_0x36a91d){stopSpinner(_0x5f098f,_0x2db5f3(0x1a6),![]);throw CliErrors[_0x2db5f3(0x1ba)](_0x36a91d instanceof Error?_0x36a91d['message']:_0x2db5f3(0x1a6));}if(_0x27aae9[_0x2db5f3(0x1dd)]===0x0)return writeCliSideChannelLine(a152_0x591a9c[_0x2db5f3(0x1cd)]('\x20\x20!\x20No\x20local\x20pages\x20found,\x20please\x20create\x20pages\x20first')),{'ok':!![]};const _0x38fa56=buildCompareRows(_0x27aae9,_0x4c37d2);writeCliSideChannelLine(renderCompareTable(_0x38fa56)),writeCliSideChannelLine('');const _0x5b65a0=await selectPages(_0x27aae9,_0x4c37d2);writeCliSideChannelLine(''),writeCliSideChannelLine(a152_0x591a9c[_0x2db5f3(0x1b2)](_0x2db5f3(0x1c7)+_0x5b65a0['length']+_0x2db5f3(0x1ce)));const _0xa472e2=_0x38c796[_0x2db5f3(0x1c8)]&&_0x38c796[_0x2db5f3(0x1d9)];if(!_0xa472e2){writeCliSideChannelLine(renderSyncSummary(_0x5b65a0,_0x4c37d2[_0x2db5f3(0x1e4)]>0x0));const _0x5c71b6=await askConfirm(_0x2db5f3(0x1c3));if(!_0x5c71b6)return writeCliSideChannelLine(a152_0x591a9c[_0x2db5f3(0x1a5)](_0x2db5f3(0x1a7))),{'ok':!![]};}let _0x550f5e=_0x38c796['jsUrl'],_0x13c6f1=_0x38c796[_0x2db5f3(0x1d9)];!_0x550f5e&&(_0x550f5e=await askJsUrl());!_0x13c6f1&&(_0x13c6f1=await askCssUrl());const _0x503567=await askConfirm(_0x2db5f3(0x1ea)+_0x5b65a0['length']+_0x2db5f3(0x1dc)+_0x550f5e+_0x2db5f3(0x1e0)+_0x13c6f1+'?');if(!_0x503567)return writeCliSideChannelLine(a152_0x591a9c[_0x2db5f3(0x1a5)]('\x20\x20Cancelled.')),{'ok':!![]};const _0xca44da=[_0x550f5e,_0x13c6f1],_0x29e37d=startSpinner('Creating\x20'+_0x5b65a0[_0x2db5f3(0x1dd)]+_0x2db5f3(0x1df));try{const _0x2f0a44=await doCreateMenus(_0x514d4c[_0x2db5f3(0x1b0)],_0x514d4c['cookie'],_0x5b65a0,_0xca44da);return stopSpinner(_0x29e37d,_0x2db5f3(0x1a4)+_0x2f0a44[_0x2db5f3(0x1d2)]+_0x2db5f3(0x1cc),!![]),{'ok':!![],'data':_0x2f0a44,'message':_0x2db5f3(0x1d0)+_0x2f0a44[_0x2db5f3(0x1d2)]+_0x2db5f3(0x1e3)+_0x2f0a44[_0x2db5f3(0x1c0)]+'\x20failed.'};}catch(_0x363e5b){stopSpinner(_0x29e37d,'Menu\x20creation\x20failed',![]);throw CliErrors['validation'](_0x363e5b instanceof Error?_0x363e5b['message']:'Menu\x20creation\x20failed');}}};function ensureRunnableContext(_0x26ee30,_0x41ab3e){const _0x987b6c=a152_0x442635,_0xedf0d9=_0x26ee30[_0x987b6c(0x1c9)]?String(_0x26ee30[_0x987b6c(0x1c9)])[_0x987b6c(0x1c1)]():'';if(!isInProject()&&!_0x41ab3e&&!_0xedf0d9)throw CliErrors[_0x987b6c(0x1ba)](_0x987b6c(0x1c5)+_0x987b6c(0x1db));}function parsePaths(_0x524866){const _0x30a359=a152_0x442635;return[...new Set(_0x524866[_0x30a359(0x1ca)](',')['map'](_0x414494=>_0x414494['trim']())[_0x30a359(0x1c6)](Boolean))];}
1
+ const a150_0x18c962=a150_0x3d45;(function(_0x2a0b97,_0x343f73){const _0x2c9f16=a150_0x3d45,_0x2f64fc=_0x2a0b97();while(!![]){try{const _0x348883=-parseInt(_0x2c9f16(0x84))/0x1*(parseInt(_0x2c9f16(0xaf))/0x2)+parseInt(_0x2c9f16(0x9b))/0x3*(parseInt(_0x2c9f16(0xb2))/0x4)+-parseInt(_0x2c9f16(0xa8))/0x5+-parseInt(_0x2c9f16(0x67))/0x6*(-parseInt(_0x2c9f16(0x9f))/0x7)+-parseInt(_0x2c9f16(0x8b))/0x8*(parseInt(_0x2c9f16(0x7a))/0x9)+-parseInt(_0x2c9f16(0x6e))/0xa*(parseInt(_0x2c9f16(0xb1))/0xb)+parseInt(_0x2c9f16(0xae))/0xc;if(_0x348883===_0x343f73)break;else _0x2f64fc['push'](_0x2f64fc['shift']());}catch(_0x2a3a32){_0x2f64fc['push'](_0x2f64fc['shift']());}}}(a150_0x20df,0x76ee9));import a150_0x25e113 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';import{getLocalPages}from'../../commands/menu/shared/local-pages.js';import{isInProject}from'../../context.js';export const menuSync={'service':a150_0x18c962(0x6c),'command':a150_0x18c962(0xa6),'description':a150_0x18c962(0xaa),'risk':'write','flags':[{'name':a150_0x18c962(0x95),'type':a150_0x18c962(0x97),'description':'Pre-fill\x20JS/CSS\x20URLs.\x20'+a150_0x18c962(0x7e)},{'name':'paths','type':'string','description':a150_0x18c962(0x96)},{'name':a150_0x18c962(0x86),'type':a150_0x18c962(0x68),'description':a150_0x18c962(0x82)}],async 'dryRun'(_0x1a5435){const _0x4989c0=a150_0x18c962;ensureRunnableContext(_0x1a5435[_0x4989c0(0x93)],_0x1a5435['selectedAppName']);const _0x616740=await runMenuSyncCore(_0x1a5435[_0x4989c0(0x73)],_0x1a5435[_0x4989c0(0xac)],parsePaths(_0x1a5435[_0x4989c0(0x9e)]('paths')),_0x1a5435[_0x4989c0(0x9e)]('params'),{'dryRun':!![]});return{'method':_0x4989c0(0x7f),'url':'/smartapi/menu/create','body':_0x616740,'description':_0x616740['skipped']?_0x4989c0(0xa5):_0x4989c0(0x7d)+_0x616740[_0x4989c0(0x8f)][_0x4989c0(0x81)]+_0x4989c0(0x9a)};},async 'execute'(_0x2f80e5){const _0x5dd0ef=a150_0x18c962;ensureRunnableContext(_0x2f80e5[_0x5dd0ef(0x93)],_0x2f80e5[_0x5dd0ef(0x75)]);const _0x52f1f5=_0x2f80e5[_0x5dd0ef(0x9c)](_0x5dd0ef(0x86)),_0x304353=_0x2f80e5[_0x5dd0ef(0x9e)]('params'),_0x820ad8=parsePaths(_0x2f80e5[_0x5dd0ef(0x9e)](_0x5dd0ef(0xa4))),_0x238e1d=parseMenuSyncParams(_0x304353);if(_0x52f1f5){const _0x1b8fd8=await runMenuSyncCore(_0x2f80e5['appCode'],_0x2f80e5['cookie'],_0x820ad8,_0x304353);if(_0x1b8fd8[_0x5dd0ef(0x78)]){const _0x8cca20=getLocalPages();_0x8cca20[_0x5dd0ef(0x81)]===0x0?writeCliSideChannelLine(_0x5dd0ef(0xb5)):writeCliSideChannelLine(_0x5dd0ef(0xa2));}else writeCliSideChannelLine(_0x5dd0ef(0x70)+_0x1b8fd8[_0x5dd0ef(0x79)]+_0x5dd0ef(0x91));return{'ok':!![],'data':_0x1b8fd8,'message':_0x1b8fd8[_0x5dd0ef(0x78)]?_0x5dd0ef(0x6a):_0x5dd0ef(0x99)+_0x1b8fd8[_0x5dd0ef(0x79)]+_0x5dd0ef(0x8a)};}if(_0x820ad8[_0x5dd0ef(0x81)]>0x0)throw CliErrors[_0x5dd0ef(0xb3)](_0x5dd0ef(0x80),'Preview\x20with\x20--dry-run,\x20then\x20reuse\x20the\x20same\x20--paths\x20and\x20--params\x20with\x20--yes.');if(!isInteractive()&&_0x304353)throw CliErrors[_0x5dd0ef(0xb3)]('Non-interactive\x20menu\x20sync\x20requires\x20--yes.',_0x5dd0ef(0x83));requireInteractive();const _0x5cd742=startSpinner('Fetching\x20online\x20menu\x20list...');let _0x200637,_0x3f0e91,_0x15b0e4;try{const _0x53b350=await fetchMenuData(_0x2f80e5['appCode'],_0x2f80e5['cookie']);_0x200637=_0x53b350[_0x5dd0ef(0x88)],_0x3f0e91=_0x53b350[_0x5dd0ef(0x69)],_0x15b0e4=_0x53b350[_0x5dd0ef(0x6d)],stopSpinner(_0x5cd742,'Online\x20menu\x20list\x20fetched',!![]);}catch(_0x534330){stopSpinner(_0x5cd742,_0x5dd0ef(0x6f),![]);throw CliErrors[_0x5dd0ef(0xb3)](_0x534330 instanceof Error?_0x534330[_0x5dd0ef(0xa7)]:'Failed\x20to\x20fetch\x20online\x20menu\x20list');}if(_0x200637[_0x5dd0ef(0x81)]===0x0)return writeCliSideChannelLine(a150_0x25e113[_0x5dd0ef(0xa1)](_0x5dd0ef(0xab))),{'ok':!![]};const _0x24d79b=buildCompareRows(_0x200637,_0x3f0e91);writeCliSideChannelLine(renderCompareTable(_0x24d79b)),writeCliSideChannelLine('');const _0x369290=await selectPages(_0x200637,_0x3f0e91);writeCliSideChannelLine(''),writeCliSideChannelLine(a150_0x25e113[_0x5dd0ef(0xb0)](_0x5dd0ef(0x74)+_0x369290[_0x5dd0ef(0x81)]+_0x5dd0ef(0x8e)));const _0x9dabbc=_0x238e1d[_0x5dd0ef(0xa9)]&&_0x238e1d[_0x5dd0ef(0x8d)];if(!_0x9dabbc){writeCliSideChannelLine(renderSyncSummary(_0x369290,_0x3f0e91[_0x5dd0ef(0xa0)]>0x0));const _0x430d95=await askConfirm('\x20\x20Continue\x20with\x20creation?');if(!_0x430d95)return writeCliSideChannelLine(a150_0x25e113[_0x5dd0ef(0x76)](_0x5dd0ef(0x87))),{'ok':!![]};}let _0x323dfe=_0x238e1d[_0x5dd0ef(0xa9)],_0x5ed461=_0x238e1d[_0x5dd0ef(0x8d)];!_0x323dfe&&(_0x323dfe=await askJsUrl());!_0x5ed461&&(_0x5ed461=await askCssUrl());const _0x13965c=await askConfirm(_0x5dd0ef(0x6b)+_0x369290[_0x5dd0ef(0x81)]+_0x5dd0ef(0xad)+_0x323dfe+_0x5dd0ef(0x9d)+_0x5ed461+'?');if(!_0x13965c)return writeCliSideChannelLine(a150_0x25e113[_0x5dd0ef(0x76)]('\x20\x20Cancelled.')),{'ok':!![]};const _0x1689d3=[_0x323dfe,_0x5ed461],_0x299f57=startSpinner(_0x5dd0ef(0xa3)+_0x369290['length']+'\x20menu(s)...');try{const _0x1988da=await doCreateMenus(_0x2f80e5['appCode'],_0x2f80e5['cookie'],_0x369290,_0x1689d3);return stopSpinner(_0x299f57,_0x5dd0ef(0x94)+_0x1988da['created']+_0x5dd0ef(0x77),!![]),{'ok':!![],'data':_0x1988da,'message':_0x5dd0ef(0x99)+_0x1988da[_0x5dd0ef(0x79)]+_0x5dd0ef(0x98)+_0x1988da[_0x5dd0ef(0x8c)]+_0x5dd0ef(0x7c)};}catch(_0x5dcbcc){stopSpinner(_0x299f57,_0x5dd0ef(0x90),![]);throw CliErrors[_0x5dd0ef(0xb3)](_0x5dcbcc instanceof Error?_0x5dcbcc[_0x5dd0ef(0xa7)]:_0x5dd0ef(0x90));}}};function ensureRunnableContext(_0x50b6a1,_0x33cbe0){const _0x41bf1a=a150_0x18c962,_0x50fa54=_0x50b6a1['appcode']?String(_0x50b6a1[_0x41bf1a(0x72)])[_0x41bf1a(0x89)]():'';if(!isInProject()&&!_0x33cbe0&&!_0x50fa54)throw CliErrors['validation'](_0x41bf1a(0x85)+_0x41bf1a(0xb4));}function a150_0x3d45(_0x4836bc,_0x438a42){_0x4836bc=_0x4836bc-0x67;const _0x20df32=a150_0x20df();let _0x3d4539=_0x20df32[_0x4836bc];return _0x3d4539;}function parsePaths(_0x205f5d){const _0x3fa558=a150_0x18c962;return[...new Set(_0x205f5d[_0x3fa558(0x71)](',')[_0x3fa558(0x7b)](_0x1b75bd=>_0x1b75bd[_0x3fa558(0x89)]())[_0x3fa558(0x92)](Boolean))];}function a150_0x20df(){const _0x231bb8=['4223475euNoXG','jsUrl','Sync\x20local\x20pages\x20as\x20platform\x20menus','\x20\x20!\x20No\x20local\x20pages\x20found,\x20please\x20create\x20pages\x20first','cookie','\x20menu(s)\x20with\x20JS:\x20','24800736kxviVb','914dGoVId','cyan','11YBNOrj','976660qapdKp','validation','Run\x20inside\x20a\x20directory\x20with\x20.rabetbase.json,\x20or\x20pass\x20--appcode\x20<code>.','!\x20No\x20local\x20pages\x20found\x20in\x20src/pages','6gofYzA','boolean','onlinePaths','Menu\x20sync\x20skipped','\x20\x20Create\x20','menu','onlineMenuList','6115220JzlEjo','Failed\x20to\x20fetch\x20online\x20menu\x20list','✓\x20Menu\x20sync\x20completed:\x20','split','appcode','appCode','\x20\x20✓\x20Selected:\x20','selectedAppName','gray','\x20menu(s)','skipped','created','3860694IulfWj','map','\x20failed.','Would\x20create\x20','JSON:\x20{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}','POST','menu\x20sync\x20--paths\x20requires\x20--yes\x20for\x20execution.','length','Confirm\x20non-interactive\x20sync;\x20without\x20--paths,\x20create\x20all\x20missing\x20local\x20pages','Preview\x20with\x20--dry-run,\x20then\x20reuse\x20the\x20same\x20--paths\x20and\x20--params\x20with\x20--yes.','823kxKkCL','menu\x20sync\x20requires\x20a\x20project\x20context\x20or\x20explicit\x20--appcode.\x20','yes','\x20\x20Cancelled.','localPages','trim','\x20created.','8QqKLvi','failed','cssUrl','\x20page(s)','targetPages','Menu\x20creation\x20failed','\x20menu(s)\x20created','filter','rawFlags','Created\x20','params','Exact\x20comma-separated\x20local\x20page\x20paths\x20to\x20sync','string','\x20created,\x20','Menu\x20sync\x20completed:\x20','\x20local\x20microfrontend\x20menu(s).','6gsdZob','flag','\x20and\x20CSS:\x20','str','1353667SVGYUm','size','yellow','✓\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform','Creating\x20','paths','No\x20local\x20microfrontend\x20menus\x20would\x20be\x20created.','sync','message'];a150_0x20df=function(){return _0x231bb8;};return a150_0x20df();}
@@ -1 +1 @@
1
- const a153_0x78a82f=a153_0xf1cd;(function(_0x598b08,_0x209e96){const _0x576b3a=a153_0xf1cd,_0x50b7a4=_0x598b08();while(!![]){try{const _0x224ffa=parseInt(_0x576b3a(0x122))/0x1*(parseInt(_0x576b3a(0x154))/0x2)+-parseInt(_0x576b3a(0x103))/0x3*(-parseInt(_0x576b3a(0xf9))/0x4)+-parseInt(_0x576b3a(0xe4))/0x5*(parseInt(_0x576b3a(0x164))/0x6)+-parseInt(_0x576b3a(0x11f))/0x7*(-parseInt(_0x576b3a(0xfc))/0x8)+-parseInt(_0x576b3a(0x153))/0x9+-parseInt(_0x576b3a(0x10b))/0xa*(parseInt(_0x576b3a(0x132))/0xb)+-parseInt(_0x576b3a(0x139))/0xc*(-parseInt(_0x576b3a(0x121))/0xd);if(_0x224ffa===_0x209e96)break;else _0x50b7a4['push'](_0x50b7a4['shift']());}catch(_0x3c2748){_0x50b7a4['push'](_0x50b7a4['shift']());}}}(a153_0x3bf9,0x5d7b2));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a153_0x3bf9(){const _0x137555=['plan','beforeById','\x20visibility\x20could\x20not\x20be\x20verified\x20safely','split','Updated\x20visibility\x20for\x20','datasetCode','rawFlags','pageId','menu-ids','string','appCode','\x20menu(s),\x20expected\x20','The\x20update\x20may\x20have\x20taken\x20effect;\x20inspect\x20the\x20latest\x20menu\x20facts\x20before\x20retrying.','get','12otAQZK','menu_selector_not_found','visible','childrenCount','1831985dtfQks','menu','\x20and\x20final\x20state\x20could\x20not\x20be\x20read.','update-menu-visibility','datasetId','expect-visible','visibility-update','Menu\x20path\x20selector\x20not\x20found:\x20','--expected-count\x20must\x20be\x20a\x20non-negative\x20integer.','depth','parentId','byId','requestedVisible','expectVisible','\x20changed\x20unexpectedly.','Inspect\x20current\x20menu\x20facts\x20before\x20retrying\x20any\x20target.','expectedCount','number','filter','some','values','8868gyGEwo','\x20failed.','One\x20or\x20more\x20updates\x20may\x20have\x20changed\x20fields\x20outside\x20visibility;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','8xJYQTm','Selected\x20menu\x20visibility\x20changed\x20for\x20id(s):\x20','Menu\x20visibility\x20update\x20completed:\x20','targets','POST','isSafeInteger','menu_selector_ambiguous','921EAFXKL','Response\x20was\x20lost\x20for\x20menu\x20','expected-count','Use\x20--menu-ids\x20with\x20one\x20or\x20more\x20of:\x20','cookie','\x20menu(s);\x20skip\x20','num','hash','40xGLGvx','paths','Would\x20update\x20visibility\x20for\x20','Selected\x20','\x20must\x20be\x20true\x20or\x20false.','isArray','trim','label','false','Final\x20menu\x20visibility\x20readback\x20failed.','rabetbase\x20menu\x20list\x20--format\x20compress','\x20was\x20not\x20found\x20during\x20visibility\x20verification.','Every\x20selected\x20menu\x20already\x20has\x20the\x20requested\x20visibility;\x20no\x20write\x20is\x20needed.','path','type','Response\x20was\x20lost\x20and\x20menu\x20','str','map','failed','Abort\x20unless\x20the\x20exact\x20number\x20of\x20selected\x20menus\x20matches','1528394pzHgZK','sort','102453GssEGb','126QqmwCB','menu_verification_failed','update\x20visibility\x20for','menuIds','Exact\x20comma-separated\x20menu\x20IDs\x20to\x20update','warnings','resources','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20exact\x20current\x20ids.','\x20unchanged\x20menu(s).','push','Menu\x20','verify\x20menu\x20visibility\x20update','/smartapi/menu/update','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expect-visible.','Menu\x20id\x20selector(s)\x20not\x20found:\x20','pageType','1163932hnXKRI','Failed\x20update\x20requests\x20were\x20not\x20retried;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','menu_state_drift','set','code','has','\x20skipped,\x20','1296xCBkWO','\x20updated,\x20','resourcesValid','validation','modelType','childrenIds','flagMissing','--menu-ids\x20must\x20contain\x20positive\x20safe\x20integers.','verification','length','Menu\x20visibility\x20update\x20could\x20not\x20be\x20verified\x20for\x20id(s):\x20','message','menu\x20list','url','stringify','Set\x20exact\x20menus\x20visible\x20or\x20hidden\x20without\x20changing\x20their\x20routes\x20or\x20resources','join','Exact\x20comma-separated\x20menu\x20paths\x20to\x20update','menus','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20an\x20exact\x20current\x20path.','Abort\x20unless\x20every\x20selected\x20menu\x20has\x20this\x20visibility','menu_permission_denied','\x20visibility\x20update\x20could\x20not\x20be\x20verified','update-recovery','update\x20menu\x20visibility','before','4205943MyOXXm','4066yKmLiQ','Visibility\x20update\x20requests\x20completed\x20but\x20readback\x20could\x20not\x20confirm\x20the\x20requested\x20state'];a153_0x3bf9=function(){return _0x137555;};return a153_0x3bf9();}import{fetchMenuSnapshot}from'../../commands/menu/shared/facts.js';function a153_0xf1cd(_0x2e6ed5,_0x4fa790){_0x2e6ed5=_0x2e6ed5-0xe2;const _0x3bf904=a153_0x3bf9();let _0xf1cd69=_0x3bf904[_0x2e6ed5];return _0xf1cd69;}import{asVerificationError,assertVerified,describeMenuErrorCause,fetchMutationSnapshot,hasFlag,isMenuResponseLoss,mapMenuApiError,menuDryRunResult,menuError,menuFailure,mutationResult,recheckMutationSnapshot,requireExplicitYes}from'../../commands/menu/shared/mutations.js';import{updateMenuEntity}from'../../commands/menu/shared/service.js';import{CliErrors}from'../../errors.js';const BACKEND=[{'method':a153_0x78a82f(0x100),'path':a153_0x78a82f(0x12e)}];export const menuVisibilityUpdate={'service':a153_0x78a82f(0xe5),'command':'visibility-update','description':a153_0x78a82f(0x148),'risk':'high-risk-write','structuredErrors':!![],'flags':[{'name':a153_0x78a82f(0x15e),'type':a153_0x78a82f(0x15f),'description':a153_0x78a82f(0x126)},{'name':a153_0x78a82f(0x10c),'type':a153_0x78a82f(0x15f),'description':a153_0x78a82f(0x14a)},{'name':'visible','type':'boolean','required':!![],'description':'Requested\x20menu\x20visibility'},{'name':a153_0x78a82f(0xe9),'type':'boolean','description':a153_0x78a82f(0x14d)},{'name':a153_0x78a82f(0x105),'type':a153_0x78a82f(0xf5),'description':a153_0x78a82f(0x11e)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0xfbd2e6){parseInput(_0xfbd2e6),requireExplicitYes(_0xfbd2e6);},async 'dryRun'(_0xff268d){const _0xd5ad50=a153_0x78a82f,_0x19c073=await buildPlan(_0xff268d,!![]),_0x138833=_0x19c073['plan']['plannedActions']?.[_0xd5ad50(0x142)]??0x0,_0xe98581=_0x19c073['plan'][_0xd5ad50(0xff)][_0xd5ad50(0x142)]-_0x138833;return menuDryRunResult(_0x19c073['plan'],{'method':_0xd5ad50(0x100),'url':_0xd5ad50(0x12e),'body':{'updates':_0x19c073['plan']['plannedActions']?.[_0xd5ad50(0x11c)](_0x3d58ef=>_0x3d58ef['body'])??[]},'description':_0xd5ad50(0x10d)+_0x138833+_0xd5ad50(0x108)+_0xe98581+_0xd5ad50(0x12a)});},async 'execute'(_0x13c42d){const _0x1e5ce6=a153_0x78a82f;requireExplicitYes(_0x13c42d);const _0x5023e3=await buildPlan(_0x13c42d,![]);await recheckMutationSnapshot(_0x13c42d,_0x5023e3[_0x1e5ce6(0x156)],'update\x20menu\x20visibility');const _0x5a3f77=[],_0x1f8afb=[],_0x23fdd8=[];for(const _0x8dd8d0 of _0x5023e3[_0x1e5ce6(0x156)][_0x1e5ce6(0xff)]){if(_0x8dd8d0[_0x1e5ce6(0x152)][_0x1e5ce6(0xe2)]===_0x5023e3[_0x1e5ce6(0x156)][_0x1e5ce6(0xf0)]){_0x5a3f77['push']({'id':_0x8dd8d0['id'],'updated':![],'skipped':!![]});continue;}try{await updateMenuEntity(_0x13c42d['appCode'],_0x13c42d[_0x1e5ce6(0x107)],{'id':_0x8dd8d0['id'],'visible':_0x5023e3[_0x1e5ce6(0x156)][_0x1e5ce6(0xf0)]}),_0x5a3f77[_0x1e5ce6(0x12b)]({'id':_0x8dd8d0['id'],'updated':!![],'skipped':![]});}catch(_0x3c82af){const _0x34bfaf=mapMenuApiError(_0x3c82af,_0x1e5ce6(0x124),_0x8dd8d0['id']);if(isMenuResponseLoss(_0x3c82af)&&_0x34bfaf[_0x1e5ce6(0x136)]!==_0x1e5ce6(0x14e)){_0x23fdd8[_0x1e5ce6(0x12b)](_0x8dd8d0['id']);continue;}_0x1f8afb['push']({'id':_0x8dd8d0['id'],'stage':'update','code':_0x34bfaf[_0x1e5ce6(0x136)],'message':_0x34bfaf[_0x1e5ce6(0x144)]});}}let _0x5c54bb;try{_0x5c54bb=await fetchMenuSnapshot(_0x13c42d[_0x1e5ce6(0x160)],_0x13c42d[_0x1e5ce6(0x107)]);}catch(_0x159771){const _0x395295=describeMenuErrorCause(_0x159771,_0x1e5ce6(0x12d)),_0xbeb795=_0x23fdd8[_0x1e5ce6(0x11c)](_0x26c106=>({'id':_0x26c106,'stage':_0x1e5ce6(0x150),'code':_0x1e5ce6(0x123),'message':_0x1e5ce6(0x104)+_0x26c106+_0x1e5ce6(0xe6),'requestedStateConfirmed':![],'recovered':![]})),_0x335012={'stage':'verification','code':_0x1e5ce6(0x123),'message':_0x1e5ce6(0x114),'targetIds':_0x5023e3[_0x1e5ce6(0x156)][_0x1e5ce6(0xff)]['map'](_0x4d79e1=>_0x4d79e1['id']),'requestedStateConfirmed':![],..._0x395295};throw menuFailure(asVerificationError(_0x159771,_0x1e5ce6(0x155)),_0x5023e3[_0x1e5ce6(0x156)],{'stage':_0x1e5ce6(0x141),'succeeded':_0x5a3f77,'failedRecords':[..._0x1f8afb,..._0xbeb795,_0x335012],'warnings':[_0x1e5ce6(0x162)],'verification':{'status':_0x1e5ce6(0x11d),'recoveredCount':0x0,'lookupCommand':_0x1e5ce6(0x115)}});}const _0x2da106=[];for(const _0x9800c3 of _0x5a3f77){const _0x42b9c=Number(_0x9800c3['id']),_0x29f6a9=_0x5023e3[_0x1e5ce6(0x157)][_0x1e5ce6(0x163)](_0x42b9c),_0x57ed20=_0x5c54bb[_0x1e5ce6(0xef)]['get'](_0x42b9c);try{verifyVisibilityUpdate(_0x29f6a9,_0x57ed20,_0x5023e3[_0x1e5ce6(0x156)][_0x1e5ce6(0xf0)]);}catch(_0x24be5e){const _0x33fbdf=asVerificationError(_0x24be5e,_0x1e5ce6(0x12c)+_0x42b9c+_0x1e5ce6(0x14f));_0x2da106[_0x1e5ce6(0x12b)]({'id':_0x42b9c,'stage':_0x1e5ce6(0x141),'code':_0x33fbdf[_0x1e5ce6(0x136)],'message':_0x33fbdf['message'],'requestedStateConfirmed':![]});}}for(const _0x1ea7b9 of _0x23fdd8){const _0x321db6=_0x5023e3[_0x1e5ce6(0x157)]['get'](_0x1ea7b9),_0x38e175=_0x5c54bb[_0x1e5ce6(0xef)]['get'](_0x1ea7b9);try{verifyVisibilityUpdate(_0x321db6,_0x38e175,_0x5023e3[_0x1e5ce6(0x156)][_0x1e5ce6(0xf0)]),_0x5a3f77[_0x1e5ce6(0x12b)]({'id':_0x1ea7b9,'updated':!![],'skipped':![],'recovered':!![]});}catch(_0x3b557c){const _0xd4b803=asVerificationError(_0x3b557c,_0x1e5ce6(0x11a)+_0x1ea7b9+_0x1e5ce6(0x158));_0x2da106['push']({'id':_0x1ea7b9,'stage':_0x1e5ce6(0x150),'code':_0xd4b803[_0x1e5ce6(0x136)],'message':_0xd4b803['message'],'requestedStateConfirmed':![],'recovered':![]});}}if(_0x2da106[_0x1e5ce6(0x142)]>0x0){const _0x2be24a=_0x2da106[_0x1e5ce6(0x11c)](_0xcb4b6a=>Number(_0xcb4b6a['id'])),_0x5a316a=_0x5a3f77[_0x1e5ce6(0xf6)](_0x46aa5d=>_0x46aa5d['recovered']===!![])['length'],_0x5858e7=menuError(_0x1e5ce6(0x123),_0x1e5ce6(0x143)+_0x2be24a['join'](',\x20')+'.',_0x1e5ce6(0xf3));throw menuFailure(_0x5858e7,_0x5023e3[_0x1e5ce6(0x156)],{'stage':'verification','succeeded':_0x5a3f77,'failedRecords':[..._0x1f8afb,..._0x2da106],'warnings':[_0x1e5ce6(0xfb)],'verification':{'status':_0x1e5ce6(0x11d),..._0x2be24a[_0x1e5ce6(0x142)]===0x1?{'targetId':_0x2be24a[0x0]}:{'targetIds':_0x2be24a},'recoveredCount':_0x5a316a,'lookupCommand':_0x1e5ce6(0x115)}});}const _0x292c30=_0x5a3f77[_0x1e5ce6(0xf6)](_0x121bd3=>_0x121bd3['updated']===!![])[_0x1e5ce6(0x142)],_0x1439b7=_0x5a3f77[_0x1e5ce6(0x142)]-_0x292c30,_0x279ed6={..._0x5023e3['plan'],'succeeded':_0x5a3f77,'failed':_0x1f8afb,'warnings':_0x1f8afb[_0x1e5ce6(0x142)]>0x0?[..._0x5023e3[_0x1e5ce6(0x156)][_0x1e5ce6(0x127)],_0x1e5ce6(0x133)]:_0x5023e3[_0x1e5ce6(0x156)][_0x1e5ce6(0x127)],'verification':{'checkedBy':_0x1e5ce6(0x145),'snapshotHash':_0x5c54bb[_0x1e5ce6(0x10a)],'matchesRequestedState':_0x1f8afb[_0x1e5ce6(0x142)]===0x0,'recoveredCount':_0x23fdd8[_0x1e5ce6(0x142)]}};return{'ok':_0x1f8afb[_0x1e5ce6(0x142)]===0x0,'data':_0x279ed6,'message':_0x1f8afb[_0x1e5ce6(0x142)]===0x0?_0x1e5ce6(0x15a)+_0x292c30+'\x20menu(s);\x20skipped\x20'+_0x1439b7+_0x1e5ce6(0x12a):_0x1e5ce6(0xfe)+_0x292c30+_0x1e5ce6(0x13a)+_0x1439b7+_0x1e5ce6(0x138)+_0x1f8afb['length']+_0x1e5ce6(0xfa)};}};function parseInput(_0x402792){const _0xc67635=a153_0x78a82f,_0x3109cf=parseMenuIds(_0x402792['str'](_0xc67635(0x15e))),_0x21e7f7=parseCsv(_0x402792[_0xc67635(0x11b)](_0xc67635(0x10c)));if(_0x3109cf[_0xc67635(0x142)]===0x0&&_0x21e7f7[_0xc67635(0x142)]===0x0)throw CliErrors['validation']('menu\x20visibility-update\x20requires\x20--menu-ids\x20or\x20--paths.');const _0x4609ff=parseBooleanFlag(_0x402792,_0xc67635(0xe2),!![]),_0x3efc28=parseBooleanFlag(_0x402792,_0xc67635(0xe9),![]);let _0x46b14b;if(hasFlag(_0x402792,_0xc67635(0x105))){_0x46b14b=_0x402792[_0xc67635(0x109)](_0xc67635(0x105));if(!Number[_0xc67635(0x101)](_0x46b14b)||_0x46b14b<0x0)throw CliErrors[_0xc67635(0x13c)](_0xc67635(0xec));}return{'menuIds':_0x3109cf,'paths':_0x21e7f7,'visible':_0x4609ff,'expectVisible':_0x3efc28,'expectedCount':_0x46b14b};}async function buildPlan(_0x5dfd61,_0x344c53){const _0x5dd53c=a153_0x78a82f,_0x288a97=parseInput(_0x5dfd61),_0x21ccc0=await fetchMutationSnapshot(_0x5dfd61,_0x5dd53c(0x151)),_0x567e8e=selectTargets(_0x21ccc0[_0x5dd53c(0x14b)],_0x288a97[_0x5dd53c(0x125)],_0x288a97[_0x5dd53c(0x10c)]);if(_0x288a97['expectedCount']!==undefined&&_0x567e8e[_0x5dd53c(0x142)]!==_0x288a97[_0x5dd53c(0xf4)])throw menuError('menu_expected_count_mismatch',_0x5dd53c(0x10e)+_0x567e8e[_0x5dd53c(0x142)]+_0x5dd53c(0x161)+_0x288a97['expectedCount']+'.','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expected-count.');if(_0x288a97[_0x5dd53c(0xf1)]!==undefined){const _0x3f1bb3=_0x567e8e[_0x5dd53c(0xf6)](_0x3c8ca6=>_0x3c8ca6['visible']!==_0x288a97[_0x5dd53c(0xf1)]);if(_0x3f1bb3[_0x5dd53c(0x142)]>0x0)throw menuError(_0x5dd53c(0x134),_0x5dd53c(0xfd)+_0x3f1bb3['map'](_0x39b36a=>_0x39b36a['id'])[_0x5dd53c(0x149)](',\x20')+'.',_0x5dd53c(0x12f));}const _0x2e108f=_0x567e8e[_0x5dd53c(0x11c)](_0x1c8279=>({'id':_0x1c8279['id'],'label':_0x1c8279[_0x5dd53c(0x112)],'path':_0x1c8279[_0x5dd53c(0x118)],'before':{'visible':_0x1c8279[_0x5dd53c(0xe2)]},'after':{'visible':_0x288a97['visible']}})),_0x1e2472=_0x2e108f[_0x5dd53c(0xf6)](_0x3fdd5a=>_0x3fdd5a[_0x5dd53c(0x152)][_0x5dd53c(0xe2)]!==_0x288a97[_0x5dd53c(0xe2)])['map'](_0x53336c=>({'stage':_0x5dd53c(0xe7),'method':_0x5dd53c(0x100),'path':_0x5dd53c(0x12e),'body':{'appCode':_0x5dfd61['appCode'],'id':_0x53336c['id'],'visible':_0x288a97[_0x5dd53c(0xe2)]}})),_0x2b9263=mutationResult({'operation':_0x5dd53c(0xea),'selector':{'menuIds':_0x288a97[_0x5dd53c(0x125)],'paths':_0x288a97[_0x5dd53c(0x10c)]},'before':{'menus':_0x567e8e[_0x5dd53c(0x11c)](_0x3e538d=>({'id':_0x3e538d['id'],'path':_0x3e538d[_0x5dd53c(0x118)],'visible':_0x3e538d[_0x5dd53c(0xe2)]}))},'after':{'menus':_0x567e8e[_0x5dd53c(0x11c)](_0x491871=>({'id':_0x491871['id'],'path':_0x491871[_0x5dd53c(0x118)],'visible':_0x288a97[_0x5dd53c(0xe2)]}))},'dryRun':_0x344c53,'backend':[...BACKEND],'plannedActions':_0x1e2472,'snapshotHash':_0x21ccc0['hash'],'warnings':_0x1e2472[_0x5dd53c(0x142)]===0x0?[_0x5dd53c(0x117)]:[]});return{'plan':{..._0x2b9263,'requestedVisible':_0x288a97[_0x5dd53c(0xe2)],'targets':_0x2e108f},'beforeById':new Map(_0x567e8e[_0x5dd53c(0x11c)](_0x52b364=>[_0x52b364['id'],_0x52b364]))};}function selectTargets(_0x7a9108,_0x1a1f31,_0x497e62){const _0x3b56e1=a153_0x78a82f,_0x22a85c=new Map(_0x7a9108[_0x3b56e1(0x11c)](_0x66cd35=>[_0x66cd35['id'],_0x66cd35])),_0x85c219=new Map(),_0x51d7fd=_0x1a1f31[_0x3b56e1(0xf6)](_0x195c1b=>!_0x22a85c[_0x3b56e1(0x137)](_0x195c1b));if(_0x51d7fd[_0x3b56e1(0x142)]>0x0)throw menuError(_0x3b56e1(0x165),_0x3b56e1(0x130)+_0x51d7fd['join'](',\x20')+'.',_0x3b56e1(0x129));for(const _0x107775 of _0x1a1f31){_0x85c219[_0x3b56e1(0x135)](_0x107775,_0x22a85c['get'](_0x107775));}for(const _0x5553e7 of _0x497e62){const _0x440f8e=_0x7a9108[_0x3b56e1(0xf6)](_0x5edc5e=>_0x5edc5e[_0x3b56e1(0x118)]===_0x5553e7);if(_0x440f8e['length']===0x0)throw menuError(_0x3b56e1(0x165),_0x3b56e1(0xeb)+JSON['stringify'](_0x5553e7)+'.',_0x3b56e1(0x14c));if(_0x440f8e[_0x3b56e1(0x142)]>0x1)throw menuError(_0x3b56e1(0x102),'Menu\x20path\x20selector\x20matched\x20multiple\x20menus:\x20'+JSON[_0x3b56e1(0x147)](_0x5553e7)+'.',_0x3b56e1(0x106)+_0x440f8e[_0x3b56e1(0x11c)](_0x3b16c6=>_0x3b16c6['id'])[_0x3b56e1(0x149)](',\x20')+'.');const _0x47ee12=_0x440f8e[0x0];_0x85c219[_0x3b56e1(0x135)](_0x47ee12['id'],_0x47ee12);}return[..._0x85c219[_0x3b56e1(0xf8)]()];}function parseMenuIds(_0x1e42d2){const _0x478a22=a153_0x78a82f,_0x40211d=parseCsv(_0x1e42d2),_0x2c8050=_0x40211d[_0x478a22(0x11c)](Number);if(_0x2c8050[_0x478a22(0xf7)](_0x39241c=>!Number['isSafeInteger'](_0x39241c)||_0x39241c<=0x0))throw CliErrors[_0x478a22(0x13c)](_0x478a22(0x140));return[...new Set(_0x2c8050)];}function parseCsv(_0x504c08){const _0x4321a7=a153_0x78a82f;return[...new Set(_0x504c08[_0x4321a7(0x159)](',')[_0x4321a7(0x11c)](_0x365be6=>_0x365be6[_0x4321a7(0x111)]())['filter'](Boolean))];}function parseBooleanFlag(_0x32b558,_0x531a00,_0x29ab3d){const _0x55abe9=a153_0x78a82f;if(!hasFlag(_0x32b558,_0x531a00)){if(_0x29ab3d)throw CliErrors[_0x55abe9(0x13f)](_0x531a00);return undefined;}const _0x262ce0=_0x32b558[_0x55abe9(0x15c)][_0x531a00];if(_0x262ce0===!![]||_0x262ce0===![])return _0x262ce0;if(_0x262ce0==='true')return!![];if(_0x262ce0===_0x55abe9(0x113))return![];throw CliErrors[_0x55abe9(0x13c)]('--'+_0x531a00+_0x55abe9(0x10f));}function verifyVisibilityUpdate(_0x34201e,_0x4e61b6,_0x4ffce2){const _0x569309=a153_0x78a82f;assertVerified(!!_0x4e61b6,_0x569309(0x12c)+_0x34201e['id']+_0x569309(0x116)),assertVerified(_0x4e61b6[_0x569309(0xe2)]===_0x4ffce2,_0x569309(0x12c)+_0x34201e['id']+'\x20visible\x20did\x20not\x20match\x20the\x20requested\x20state.');const _0x376b2c=[['id',_0x4e61b6['id'],_0x34201e['id']],['parentId',_0x4e61b6[_0x569309(0xee)],_0x34201e[_0x569309(0xee)]],[_0x569309(0xed),_0x4e61b6['depth'],_0x34201e[_0x569309(0xed)]],['label',_0x4e61b6['label'],_0x34201e[_0x569309(0x112)]],[_0x569309(0x118),_0x4e61b6['path'],_0x34201e[_0x569309(0x118)]],[_0x569309(0x146),_0x4e61b6[_0x569309(0x146)],_0x34201e['url']],[_0x569309(0x119),_0x4e61b6['type'],_0x34201e[_0x569309(0x119)]],[_0x569309(0x120),_0x4e61b6[_0x569309(0x120)],_0x34201e[_0x569309(0x120)]],[_0x569309(0x128),_0x4e61b6[_0x569309(0x128)],_0x34201e[_0x569309(0x128)]],[_0x569309(0x13b),_0x4e61b6['resourcesValid'],_0x34201e[_0x569309(0x13b)]],[_0x569309(0x13e),_0x4e61b6[_0x569309(0x13e)],_0x34201e[_0x569309(0x13e)]],[_0x569309(0xe3),_0x4e61b6[_0x569309(0xe3)],_0x34201e[_0x569309(0xe3)]],[_0x569309(0x15d),_0x4e61b6[_0x569309(0x15d)],_0x34201e['pageId']],[_0x569309(0x131),_0x4e61b6[_0x569309(0x131)],_0x34201e[_0x569309(0x131)]],[_0x569309(0x13d),_0x4e61b6[_0x569309(0x13d)],_0x34201e[_0x569309(0x13d)]],[_0x569309(0xe8),_0x4e61b6[_0x569309(0xe8)],_0x34201e[_0x569309(0xe8)]],[_0x569309(0x15b),_0x4e61b6[_0x569309(0x15b)],_0x34201e[_0x569309(0x15b)]]];for(const [_0x1c9d50,_0x38c895,_0x19c0b6]of _0x376b2c){assertVerified(sameValue(_0x38c895,_0x19c0b6),_0x569309(0x12c)+_0x34201e['id']+'\x20'+_0x1c9d50+_0x569309(0xf2));}}function sameValue(_0x4d2f18,_0x43ef1e){const _0xddf263=a153_0x78a82f;if(Array['isArray'](_0x4d2f18)||Array[_0xddf263(0x110)](_0x43ef1e))return JSON['stringify'](_0x4d2f18)===JSON['stringify'](_0x43ef1e);return _0x4d2f18===_0x43ef1e;}
1
+ const a151_0x5214f5=a151_0x5611;(function(_0x27ef71,_0x25e09f){const _0x4a00f9=a151_0x5611,_0x180c6a=_0x27ef71();while(!![]){try{const _0x3cae4b=-parseInt(_0x4a00f9(0x12b))/0x1+parseInt(_0x4a00f9(0xfe))/0x2*(-parseInt(_0x4a00f9(0xf5))/0x3)+parseInt(_0x4a00f9(0xe4))/0x4+parseInt(_0x4a00f9(0x111))/0x5+parseInt(_0x4a00f9(0x120))/0x6+parseInt(_0x4a00f9(0x147))/0x7+parseInt(_0x4a00f9(0x139))/0x8*(-parseInt(_0x4a00f9(0xdf))/0x9);if(_0x3cae4b===_0x25e09f)break;else _0x180c6a['push'](_0x180c6a['shift']());}catch(_0x41008b){_0x180c6a['push'](_0x180c6a['shift']());}}}(a151_0x5c41,0x8744d));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';import{updateMenuEntity}from'../../commands/menu/shared/service.js';function a151_0x5611(_0x5581aa,_0x27f811){_0x5581aa=_0x5581aa-0xd8;const _0x5c413d=a151_0x5c41();let _0x5611ec=_0x5c413d[_0x5581aa];return _0x5611ec;}import{CliErrors}from'../../errors.js';const BACKEND=[{'method':'POST','path':a151_0x5214f5(0x119)}];export const menuVisibilityUpdate={'service':a151_0x5214f5(0x125),'command':a151_0x5214f5(0x10b),'description':'Set\x20exact\x20menus\x20visible\x20or\x20hidden\x20without\x20changing\x20their\x20routes\x20or\x20resources','risk':a151_0x5214f5(0x105),'structuredErrors':!![],'flags':[{'name':a151_0x5214f5(0xff),'type':a151_0x5214f5(0x133),'description':'Exact\x20comma-separated\x20menu\x20IDs\x20to\x20update'},{'name':a151_0x5214f5(0x127),'type':a151_0x5214f5(0x133),'description':a151_0x5214f5(0xed)},{'name':a151_0x5214f5(0x141),'type':'boolean','required':!![],'description':a151_0x5214f5(0x132)},{'name':'expect-visible','type':a151_0x5214f5(0xdd),'description':'Abort\x20unless\x20every\x20selected\x20menu\x20has\x20this\x20visibility'},{'name':a151_0x5214f5(0x131),'type':'number','description':a151_0x5214f5(0x121)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x42836e){parseInput(_0x42836e),requireExplicitYes(_0x42836e);},async 'dryRun'(_0x519a13){const _0x52b4f9=a151_0x5214f5,_0x6536f9=await buildPlan(_0x519a13,!![]),_0x2c5e25=_0x6536f9['plan'][_0x52b4f9(0xea)]?.[_0x52b4f9(0xe8)]??0x0,_0x7b995b=_0x6536f9[_0x52b4f9(0x10f)]['targets'][_0x52b4f9(0xe8)]-_0x2c5e25;return menuDryRunResult(_0x6536f9[_0x52b4f9(0x10f)],{'method':_0x52b4f9(0x149),'url':_0x52b4f9(0x119),'body':{'updates':_0x6536f9['plan'][_0x52b4f9(0xea)]?.[_0x52b4f9(0x12e)](_0x14ef54=>_0x14ef54[_0x52b4f9(0x11c)])??[]},'description':_0x52b4f9(0x130)+_0x2c5e25+_0x52b4f9(0xd9)+_0x7b995b+'\x20unchanged\x20menu(s).'});},async 'execute'(_0x5ba18d){const _0x5b4c23=a151_0x5214f5;requireExplicitYes(_0x5ba18d);const _0x3e8baf=await buildPlan(_0x5ba18d,![]);await recheckMutationSnapshot(_0x5ba18d,_0x3e8baf[_0x5b4c23(0x10f)],_0x5b4c23(0x118));const _0x70d2b0=[],_0x21bcfb=[],_0x30265c=[];for(const _0x27aac7 of _0x3e8baf['plan'][_0x5b4c23(0x11b)]){if(_0x27aac7[_0x5b4c23(0x136)]['visible']===_0x3e8baf[_0x5b4c23(0x10f)][_0x5b4c23(0xe1)]){_0x70d2b0[_0x5b4c23(0xeb)]({'id':_0x27aac7['id'],'updated':![],'skipped':!![]});continue;}try{await updateMenuEntity(_0x5ba18d[_0x5b4c23(0xe3)],_0x5ba18d[_0x5b4c23(0xe0)],{'id':_0x27aac7['id'],'visible':_0x3e8baf[_0x5b4c23(0x10f)]['requestedVisible']}),_0x70d2b0['push']({'id':_0x27aac7['id'],'updated':!![],'skipped':![]});}catch(_0x142aa7){const _0x434b23=mapMenuApiError(_0x142aa7,'update\x20visibility\x20for',_0x27aac7['id']);if(isMenuResponseLoss(_0x142aa7)&&_0x434b23[_0x5b4c23(0x110)]!=='menu_permission_denied'){_0x30265c[_0x5b4c23(0xeb)](_0x27aac7['id']);continue;}_0x21bcfb[_0x5b4c23(0xeb)]({'id':_0x27aac7['id'],'stage':_0x5b4c23(0x104),'code':_0x434b23[_0x5b4c23(0x110)],'message':_0x434b23[_0x5b4c23(0x102)]});}}let _0x44be02;try{_0x44be02=await fetchMenuSnapshot(_0x5ba18d[_0x5b4c23(0xe3)],_0x5ba18d[_0x5b4c23(0xe0)]);}catch(_0x253da7){const _0x38c3a5=describeMenuErrorCause(_0x253da7,_0x5b4c23(0xde)),_0x298615=_0x30265c[_0x5b4c23(0x12e)](_0x5af285=>({'id':_0x5af285,'stage':'update-recovery','code':_0x5b4c23(0x13a),'message':_0x5b4c23(0x14b)+_0x5af285+_0x5b4c23(0x134),'requestedStateConfirmed':![],'recovered':![]})),_0x1b9aae={'stage':'verification','code':_0x5b4c23(0x13a),'message':_0x5b4c23(0x108),'targetIds':_0x3e8baf[_0x5b4c23(0x10f)][_0x5b4c23(0x11b)][_0x5b4c23(0x12e)](_0x3a0533=>_0x3a0533['id']),'requestedStateConfirmed':![],..._0x38c3a5};throw menuFailure(asVerificationError(_0x253da7,_0x5b4c23(0x13e)),_0x3e8baf['plan'],{'stage':_0x5b4c23(0x10a),'succeeded':_0x70d2b0,'failedRecords':[..._0x21bcfb,..._0x298615,_0x1b9aae],'warnings':[_0x5b4c23(0x122)],'verification':{'status':_0x5b4c23(0xe2),'recoveredCount':0x0,'lookupCommand':_0x5b4c23(0xfc)}});}const _0x274f39=[];for(const _0x5acc7c of _0x70d2b0){const _0x2de832=Number(_0x5acc7c['id']),_0x3493e1=_0x3e8baf[_0x5b4c23(0x109)]['get'](_0x2de832),_0x4cb0db=_0x44be02[_0x5b4c23(0x113)][_0x5b4c23(0xdc)](_0x2de832);try{verifyVisibilityUpdate(_0x3493e1,_0x4cb0db,_0x3e8baf['plan'][_0x5b4c23(0xe1)]);}catch(_0x45a598){const _0xa41540=asVerificationError(_0x45a598,'Menu\x20'+_0x2de832+_0x5b4c23(0xef));_0x274f39[_0x5b4c23(0xeb)]({'id':_0x2de832,'stage':_0x5b4c23(0x10a),'code':_0xa41540[_0x5b4c23(0x110)],'message':_0xa41540[_0x5b4c23(0x102)],'requestedStateConfirmed':![]});}}for(const _0x40bf56 of _0x30265c){const _0x3f4f5b=_0x3e8baf[_0x5b4c23(0x109)]['get'](_0x40bf56),_0x20f51f=_0x44be02[_0x5b4c23(0x113)][_0x5b4c23(0xdc)](_0x40bf56);try{verifyVisibilityUpdate(_0x3f4f5b,_0x20f51f,_0x3e8baf[_0x5b4c23(0x10f)][_0x5b4c23(0xe1)]),_0x70d2b0['push']({'id':_0x40bf56,'updated':!![],'skipped':![],'recovered':!![]});}catch(_0x273cb3){const _0x23d3de=asVerificationError(_0x273cb3,_0x5b4c23(0x129)+_0x40bf56+_0x5b4c23(0x138));_0x274f39[_0x5b4c23(0xeb)]({'id':_0x40bf56,'stage':_0x5b4c23(0x13b),'code':_0x23d3de[_0x5b4c23(0x110)],'message':_0x23d3de[_0x5b4c23(0x102)],'requestedStateConfirmed':![],'recovered':![]});}}if(_0x274f39[_0x5b4c23(0xe8)]>0x0){const _0x59ced9=_0x274f39[_0x5b4c23(0x12e)](_0x1c0e3c=>Number(_0x1c0e3c['id'])),_0x230b7d=_0x70d2b0[_0x5b4c23(0x117)](_0x2da3d1=>_0x2da3d1['recovered']===!![])[_0x5b4c23(0xe8)],_0x217aa8=menuError('menu_verification_failed',_0x5b4c23(0x13c)+_0x59ced9[_0x5b4c23(0x10c)](',\x20')+'.',_0x5b4c23(0xd8));throw menuFailure(_0x217aa8,_0x3e8baf['plan'],{'stage':_0x5b4c23(0x10a),'succeeded':_0x70d2b0,'failedRecords':[..._0x21bcfb,..._0x274f39],'warnings':['One\x20or\x20more\x20updates\x20may\x20have\x20changed\x20fields\x20outside\x20visibility;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.'],'verification':{'status':_0x5b4c23(0xe2),..._0x59ced9[_0x5b4c23(0xe8)]===0x1?{'targetId':_0x59ced9[0x0]}:{'targetIds':_0x59ced9},'recoveredCount':_0x230b7d,'lookupCommand':_0x5b4c23(0xfc)}});}const _0x3e2a62=_0x70d2b0[_0x5b4c23(0x117)](_0x19e961=>_0x19e961[_0x5b4c23(0x11a)]===!![])[_0x5b4c23(0xe8)],_0x3ddb0f=_0x70d2b0[_0x5b4c23(0xe8)]-_0x3e2a62,_0x6d7551={..._0x3e8baf[_0x5b4c23(0x10f)],'succeeded':_0x70d2b0,'failed':_0x21bcfb,'warnings':_0x21bcfb[_0x5b4c23(0xe8)]>0x0?[..._0x3e8baf[_0x5b4c23(0x10f)][_0x5b4c23(0xee)],'Failed\x20update\x20requests\x20were\x20not\x20retried;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.']:_0x3e8baf[_0x5b4c23(0x10f)]['warnings'],'verification':{'checkedBy':_0x5b4c23(0xf7),'snapshotHash':_0x44be02[_0x5b4c23(0x11e)],'matchesRequestedState':_0x21bcfb[_0x5b4c23(0xe8)]===0x0,'recoveredCount':_0x30265c[_0x5b4c23(0xe8)]}};return{'ok':_0x21bcfb[_0x5b4c23(0xe8)]===0x0,'data':_0x6d7551,'message':_0x21bcfb[_0x5b4c23(0xe8)]===0x0?_0x5b4c23(0x14d)+_0x3e2a62+_0x5b4c23(0x114)+_0x3ddb0f+_0x5b4c23(0x12a):_0x5b4c23(0x116)+_0x3e2a62+_0x5b4c23(0xe5)+_0x3ddb0f+_0x5b4c23(0xe9)+_0x21bcfb[_0x5b4c23(0xe8)]+'\x20failed.'};}};function parseInput(_0x56c2bd){const _0x4fa171=a151_0x5214f5,_0x21bd52=parseMenuIds(_0x56c2bd[_0x4fa171(0x123)]('menu-ids')),_0x3544bb=parseCsv(_0x56c2bd[_0x4fa171(0x123)]('paths'));if(_0x21bd52[_0x4fa171(0xe8)]===0x0&&_0x3544bb[_0x4fa171(0xe8)]===0x0)throw CliErrors['validation']('menu\x20visibility-update\x20requires\x20--menu-ids\x20or\x20--paths.');const _0x147585=parseBooleanFlag(_0x56c2bd,_0x4fa171(0x141),!![]),_0x5e6bf7=parseBooleanFlag(_0x56c2bd,_0x4fa171(0x12c),![]);let _0x2279e3;if(hasFlag(_0x56c2bd,_0x4fa171(0x131))){_0x2279e3=_0x56c2bd[_0x4fa171(0x10e)](_0x4fa171(0x131));if(!Number[_0x4fa171(0xf1)](_0x2279e3)||_0x2279e3<0x0)throw CliErrors[_0x4fa171(0xfb)]('--expected-count\x20must\x20be\x20a\x20non-negative\x20integer.');}return{'menuIds':_0x21bd52,'paths':_0x3544bb,'visible':_0x147585,'expectVisible':_0x5e6bf7,'expectedCount':_0x2279e3};}function a151_0x5c41(){const _0x5d42e9=['push','values','Exact\x20comma-separated\x20menu\x20paths\x20to\x20update','warnings','\x20visibility\x20update\x20could\x20not\x20be\x20verified','depth','isSafeInteger','update-menu-visibility','resources','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expected-count.','101613OjjACv','pageId','menu\x20list','datasetId','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20an\x20exact\x20current\x20path.','childrenIds','validation','rabetbase\x20menu\x20list\x20--format\x20compress','Use\x20--menu-ids\x20with\x20one\x20or\x20more\x20of:\x20','62SkStpo','menu-ids','menu_selector_ambiguous','menu_expected_count_mismatch','message','label','update','high-risk-write','menus','sort','Final\x20menu\x20visibility\x20readback\x20failed.','beforeById','verification','visibility-update','join','datasetCode','num','plan','code','2216775wHXpLk','has','byId','\x20menu(s);\x20skipped\x20','type','Menu\x20visibility\x20update\x20completed:\x20','filter','update\x20menu\x20visibility','/smartapi/menu/update','updated','targets','body','split','hash','childrenCount','5995332tKUseh','Abort\x20unless\x20the\x20exact\x20number\x20of\x20selected\x20menus\x20matches','The\x20update\x20may\x20have\x20taken\x20effect;\x20inspect\x20the\x20latest\x20menu\x20facts\x20before\x20retrying.','str','expectVisible','menu','resourcesValid','paths','set','Response\x20was\x20lost\x20and\x20menu\x20','\x20unchanged\x20menu(s).','253900pwkfUx','expect-visible','\x20menu(s),\x20expected\x20','map','expectedCount','Would\x20update\x20visibility\x20for\x20','expected-count','Requested\x20menu\x20visibility','string','\x20and\x20final\x20state\x20could\x20not\x20be\x20read.','parentId','before','url','\x20visibility\x20could\x20not\x20be\x20verified\x20safely','16232YYwcdO','menu_verification_failed','update-recovery','Menu\x20visibility\x20update\x20could\x20not\x20be\x20verified\x20for\x20id(s):\x20','menuIds','Visibility\x20update\x20requests\x20completed\x20but\x20readback\x20could\x20not\x20confirm\x20the\x20requested\x20state','flagMissing','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20exact\x20current\x20ids.','visible','modelType','--menu-ids\x20must\x20contain\x20positive\x20safe\x20integers.','\x20changed\x20unexpectedly.','Menu\x20','path','4695278JtEZhI','menu_selector_not_found','POST','isArray','Response\x20was\x20lost\x20for\x20menu\x20','stringify','Updated\x20visibility\x20for\x20','pageType','Inspect\x20current\x20menu\x20facts\x20before\x20retrying\x20any\x20target.','\x20menu(s);\x20skip\x20','\x20visible\x20did\x20not\x20match\x20the\x20requested\x20state.','\x20must\x20be\x20true\x20or\x20false.','get','boolean','verify\x20menu\x20visibility\x20update','1638wsLbHX','cookie','requestedVisible','failed','appCode','455636ZbVTDd','\x20updated,\x20','menu_state_drift','some','length','\x20skipped,\x20','plannedActions'];a151_0x5c41=function(){return _0x5d42e9;};return a151_0x5c41();}async function buildPlan(_0x48fc5a,_0x1f9ef3){const _0x1001bb=a151_0x5214f5,_0x545934=parseInput(_0x48fc5a),_0xccb95b=await fetchMutationSnapshot(_0x48fc5a,_0x1001bb(0x118)),_0x50b20e=selectTargets(_0xccb95b[_0x1001bb(0x106)],_0x545934[_0x1001bb(0x13d)],_0x545934[_0x1001bb(0x127)]);if(_0x545934[_0x1001bb(0x12f)]!==undefined&&_0x50b20e['length']!==_0x545934[_0x1001bb(0x12f)])throw menuError(_0x1001bb(0x101),'Selected\x20'+_0x50b20e[_0x1001bb(0xe8)]+_0x1001bb(0x12d)+_0x545934[_0x1001bb(0x12f)]+'.',_0x1001bb(0xf4));if(_0x545934[_0x1001bb(0x124)]!==undefined){const _0x3a824a=_0x50b20e['filter'](_0x1dafeb=>_0x1dafeb['visible']!==_0x545934[_0x1001bb(0x124)]);if(_0x3a824a['length']>0x0)throw menuError(_0x1001bb(0xe6),'Selected\x20menu\x20visibility\x20changed\x20for\x20id(s):\x20'+_0x3a824a[_0x1001bb(0x12e)](_0x49686d=>_0x49686d['id'])[_0x1001bb(0x10c)](',\x20')+'.','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expect-visible.');}const _0x11c51e=_0x50b20e[_0x1001bb(0x12e)](_0x403419=>({'id':_0x403419['id'],'label':_0x403419['label'],'path':_0x403419['path'],'before':{'visible':_0x403419[_0x1001bb(0x141)]},'after':{'visible':_0x545934[_0x1001bb(0x141)]}})),_0x1c9a12=_0x11c51e['filter'](_0x229e43=>_0x229e43['before'][_0x1001bb(0x141)]!==_0x545934[_0x1001bb(0x141)])[_0x1001bb(0x12e)](_0x39ac24=>({'stage':_0x1001bb(0xf2),'method':_0x1001bb(0x149),'path':_0x1001bb(0x119),'body':{'appCode':_0x48fc5a[_0x1001bb(0xe3)],'id':_0x39ac24['id'],'visible':_0x545934[_0x1001bb(0x141)]}})),_0x3744cb=mutationResult({'operation':'visibility-update','selector':{'menuIds':_0x545934['menuIds'],'paths':_0x545934['paths']},'before':{'menus':_0x50b20e[_0x1001bb(0x12e)](_0xa98960=>({'id':_0xa98960['id'],'path':_0xa98960[_0x1001bb(0x146)],'visible':_0xa98960[_0x1001bb(0x141)]}))},'after':{'menus':_0x50b20e['map'](_0x51cd12=>({'id':_0x51cd12['id'],'path':_0x51cd12[_0x1001bb(0x146)],'visible':_0x545934[_0x1001bb(0x141)]}))},'dryRun':_0x1f9ef3,'backend':[...BACKEND],'plannedActions':_0x1c9a12,'snapshotHash':_0xccb95b['hash'],'warnings':_0x1c9a12[_0x1001bb(0xe8)]===0x0?['Every\x20selected\x20menu\x20already\x20has\x20the\x20requested\x20visibility;\x20no\x20write\x20is\x20needed.']:[]});return{'plan':{..._0x3744cb,'requestedVisible':_0x545934[_0x1001bb(0x141)],'targets':_0x11c51e},'beforeById':new Map(_0x50b20e[_0x1001bb(0x12e)](_0x1876c2=>[_0x1876c2['id'],_0x1876c2]))};}function selectTargets(_0x46f5db,_0x5c8744,_0x4fa8c3){const _0x46f310=a151_0x5214f5,_0x3b7569=new Map(_0x46f5db['map'](_0x5c5924=>[_0x5c5924['id'],_0x5c5924])),_0x327865=new Map(),_0x197d7d=_0x5c8744[_0x46f310(0x117)](_0x4169bd=>!_0x3b7569[_0x46f310(0x112)](_0x4169bd));if(_0x197d7d[_0x46f310(0xe8)]>0x0)throw menuError(_0x46f310(0x148),'Menu\x20id\x20selector(s)\x20not\x20found:\x20'+_0x197d7d[_0x46f310(0x10c)](',\x20')+'.',_0x46f310(0x140));for(const _0x5b0c3a of _0x5c8744){_0x327865[_0x46f310(0x128)](_0x5b0c3a,_0x3b7569[_0x46f310(0xdc)](_0x5b0c3a));}for(const _0x4efe52 of _0x4fa8c3){const _0x2980ca=_0x46f5db[_0x46f310(0x117)](_0x120820=>_0x120820[_0x46f310(0x146)]===_0x4efe52);if(_0x2980ca[_0x46f310(0xe8)]===0x0)throw menuError(_0x46f310(0x148),'Menu\x20path\x20selector\x20not\x20found:\x20'+JSON[_0x46f310(0x14c)](_0x4efe52)+'.',_0x46f310(0xf9));if(_0x2980ca[_0x46f310(0xe8)]>0x1)throw menuError(_0x46f310(0x100),'Menu\x20path\x20selector\x20matched\x20multiple\x20menus:\x20'+JSON[_0x46f310(0x14c)](_0x4efe52)+'.',_0x46f310(0xfd)+_0x2980ca[_0x46f310(0x12e)](_0x193f14=>_0x193f14['id'])[_0x46f310(0x10c)](',\x20')+'.');const _0x5a054a=_0x2980ca[0x0];_0x327865[_0x46f310(0x128)](_0x5a054a['id'],_0x5a054a);}return[..._0x327865[_0x46f310(0xec)]()];}function parseMenuIds(_0x26181a){const _0x22731a=a151_0x5214f5,_0x3cd93e=parseCsv(_0x26181a),_0x31fb5b=_0x3cd93e[_0x22731a(0x12e)](Number);if(_0x31fb5b[_0x22731a(0xe7)](_0x54d8d7=>!Number[_0x22731a(0xf1)](_0x54d8d7)||_0x54d8d7<=0x0))throw CliErrors[_0x22731a(0xfb)](_0x22731a(0x143));return[...new Set(_0x31fb5b)];}function parseCsv(_0x5173aa){const _0x506c72=a151_0x5214f5;return[...new Set(_0x5173aa[_0x506c72(0x11d)](',')[_0x506c72(0x12e)](_0x501b1d=>_0x501b1d['trim']())[_0x506c72(0x117)](Boolean))];}function parseBooleanFlag(_0x5c1f64,_0x28aac0,_0x3deada){const _0x4c223a=a151_0x5214f5;if(!hasFlag(_0x5c1f64,_0x28aac0)){if(_0x3deada)throw CliErrors[_0x4c223a(0x13f)](_0x28aac0);return undefined;}const _0x41af73=_0x5c1f64['rawFlags'][_0x28aac0];if(_0x41af73===!![]||_0x41af73===![])return _0x41af73;if(_0x41af73==='true')return!![];if(_0x41af73==='false')return![];throw CliErrors[_0x4c223a(0xfb)]('--'+_0x28aac0+_0x4c223a(0xdb));}function verifyVisibilityUpdate(_0x5bddc3,_0xf45284,_0x2bbbe0){const _0x243a18=a151_0x5214f5;assertVerified(!!_0xf45284,_0x243a18(0x145)+_0x5bddc3['id']+'\x20was\x20not\x20found\x20during\x20visibility\x20verification.'),assertVerified(_0xf45284['visible']===_0x2bbbe0,_0x243a18(0x145)+_0x5bddc3['id']+_0x243a18(0xda));const _0x179eb2=[['id',_0xf45284['id'],_0x5bddc3['id']],[_0x243a18(0x135),_0xf45284[_0x243a18(0x135)],_0x5bddc3[_0x243a18(0x135)]],[_0x243a18(0xf0),_0xf45284[_0x243a18(0xf0)],_0x5bddc3[_0x243a18(0xf0)]],['label',_0xf45284[_0x243a18(0x103)],_0x5bddc3[_0x243a18(0x103)]],[_0x243a18(0x146),_0xf45284[_0x243a18(0x146)],_0x5bddc3[_0x243a18(0x146)]],[_0x243a18(0x137),_0xf45284[_0x243a18(0x137)],_0x5bddc3[_0x243a18(0x137)]],[_0x243a18(0x115),_0xf45284[_0x243a18(0x115)],_0x5bddc3[_0x243a18(0x115)]],[_0x243a18(0x107),_0xf45284['sort'],_0x5bddc3[_0x243a18(0x107)]],[_0x243a18(0xf3),_0xf45284['resources'],_0x5bddc3['resources']],[_0x243a18(0x126),_0xf45284[_0x243a18(0x126)],_0x5bddc3['resourcesValid']],[_0x243a18(0xfa),_0xf45284['childrenIds'],_0x5bddc3['childrenIds']],[_0x243a18(0x11f),_0xf45284[_0x243a18(0x11f)],_0x5bddc3[_0x243a18(0x11f)]],[_0x243a18(0xf6),_0xf45284[_0x243a18(0xf6)],_0x5bddc3[_0x243a18(0xf6)]],['pageType',_0xf45284['pageType'],_0x5bddc3[_0x243a18(0x14e)]],[_0x243a18(0x142),_0xf45284['modelType'],_0x5bddc3[_0x243a18(0x142)]],[_0x243a18(0xf8),_0xf45284[_0x243a18(0xf8)],_0x5bddc3[_0x243a18(0xf8)]],[_0x243a18(0x10d),_0xf45284[_0x243a18(0x10d)],_0x5bddc3[_0x243a18(0x10d)]]];for(const [_0x4210cc,_0x57591e,_0x5995b5]of _0x179eb2){assertVerified(sameValue(_0x57591e,_0x5995b5),'Menu\x20'+_0x5bddc3['id']+'\x20'+_0x4210cc+_0x243a18(0x144));}}function sameValue(_0x3268d9,_0x2542fe){const _0x354bd7=a151_0x5214f5;if(Array[_0x354bd7(0x14a)](_0x3268d9)||Array[_0x354bd7(0x14a)](_0x2542fe))return JSON[_0x354bd7(0x14c)](_0x3268d9)===JSON[_0x354bd7(0x14c)](_0x2542fe);return _0x3268d9===_0x2542fe;}
@@ -1 +1 @@
1
- const a154_0x16f1db=a154_0xa804;(function(_0x374a26,_0x560c38){const _0x1ff071=a154_0xa804,_0x4328a1=_0x374a26();while(!![]){try{const _0x4dc7d5=parseInt(_0x1ff071(0x100))/0x1+parseInt(_0x1ff071(0x104))/0x2+parseInt(_0x1ff071(0xf2))/0x3*(parseInt(_0x1ff071(0xec))/0x4)+-parseInt(_0x1ff071(0x106))/0x5+-parseInt(_0x1ff071(0xf4))/0x6+-parseInt(_0x1ff071(0xf5))/0x7*(-parseInt(_0x1ff071(0xfa))/0x8)+parseInt(_0x1ff071(0x10b))/0x9*(-parseInt(_0x1ff071(0xf0))/0xa);if(_0x4dc7d5===_0x560c38)break;else _0x4328a1['push'](_0x4328a1['shift']());}catch(_0x2bbb35){_0x4328a1['push'](_0x4328a1['shift']());}}}(a154_0x4567,0xa8456));import{asDryRunResult}from'../../commands/common/dry-run.js';function a154_0xa804(_0x26b804,_0x18e6c2){_0x26b804=_0x26b804-0xec;const _0x456730=a154_0x4567();let _0xa8048f=_0x456730[_0x26b804];return _0xa8048f;}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 a154_0x4567(){const _0x2712ae=['Notification\x20config\x20create\x20returned\x20no\x20usable\x20server\x20ID.','channelType','document','2120332jYWiej','POST','2003165wkugbG','Inspect\x20with\x20',';\x20do\x20not\x20resubmit\x20automatically.','Created\x20notification\x20config\x20','create','225qvbSLU','32BZStiH','input','isSafeInteger',';\x20do\x20not\x20resubmit.','472130DIfOzx','Create\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20source','309561TmBLHY','verified','123204kfFoHj','7CAXQLC','appCode','config-create',';\x20no\x20automatic\x20retry\x20was\x20attempted.','description','1731792zOBhdH','channelConfig','planned','notification','Notification\x20config\x20create\x20outcome\x20is\x20unknown\x20because\x20no\x20server\x20ID\x20was\x20received.','readTimeout','188594LEtpsx'];a154_0x4567=function(){return _0x2712ae;};return a154_0x4567();}const CREATE_PATH='/notification/channel-config/create';async function prepareCreate(_0x3ca203){const _0xd3388a=a154_0xa804,_0x273846=await readNotificationDocument(_0x3ca203,_0xd3388a(0x10a)),_0x136d72=createMutationInput(_0x3ca203[_0xd3388a(0xf6)],_0x273846);return{'document':_0x273846,'input':_0x136d72,'planned':projectNotificationConfig({'appCode':_0x3ca203[_0xd3388a(0xf6)],'configName':_0x273846['configName'],'channelType':_0x273846[_0xd3388a(0x102)],'endpointUrl':_0x273846['endpointUrl'],'channelConfig':_0x273846[_0xd3388a(0xfb)],'description':_0x273846[_0xd3388a(0xf9)],'connectTimeout':_0x273846['connectTimeout']??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,'readTimeout':_0x273846[_0xd3388a(0xff)]??DEFAULT_NOTIFICATION_READ_TIMEOUT})};}export const notificationConfigCreate={'service':a154_0x16f1db(0xfd),'command':a154_0x16f1db(0xf7),'description':a154_0x16f1db(0xf1),'risk':'write','requiresAppCode':!![],'structuredErrors':!![],'flags':[...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x33a2ba){assertSingleNotificationSource(_0x33a2ba);},async 'dryRun'(_0x2f0fe1){const _0x2e0054=a154_0x16f1db,_0x3b7c78=await prepareCreate(_0x2f0fe1),_0x44df36=notificationLookupCommand(_0x2f0fe1['appCode'],_0x3b7c78[_0x2e0054(0x103)][_0x2e0054(0x102)]);return asDryRunResult({'operation':_0x2e0054(0x10a),'selector':{'appCode':_0x2f0fe1[_0x2e0054(0xf6)],'configName':_0x3b7c78[_0x2e0054(0x103)]['configName'],'channelType':_0x3b7c78[_0x2e0054(0x103)][_0x2e0054(0x102)]},'before':null,'after':_0x3b7c78[_0x2e0054(0xfc)],'dryRun':!![],'backend':{'method':_0x2e0054(0x105),'path':CREATE_PATH},'warnings':[],'verification':{'status':_0x2e0054(0xfc),'lookupCommand':_0x44df36}},{'method':_0x2e0054(0x105),'url':CREATE_PATH});},async 'execute'(_0x118e51){const _0x2a0c16=a154_0x16f1db,_0x1065d4=await prepareCreate(_0x118e51),_0x5d5d98=notificationLookupCommand(_0x118e51[_0x2a0c16(0xf6)],_0x1065d4[_0x2a0c16(0x103)]['channelType']);let _0x14a838;try{_0x14a838=await createNotificationChannelConfig(_0x1065d4[_0x2a0c16(0xed)]);}catch(_0x5be590){if(isPlatformTransportFailure(_0x5be590))throw notificationError('notification_config_create_outcome_unknown',_0x2a0c16(0xfe),_0x2a0c16(0x107)+_0x5d5d98+_0x2a0c16(0xef));throw safeApiFailure(_0x2a0c16(0x10a),'mutation',_0x2a0c16(0x107)+_0x5d5d98+_0x2a0c16(0xf8));}if(!Number[_0x2a0c16(0xee)](_0x14a838)||_0x14a838<=0x0)throw notificationError('notification_config_create_outcome_unknown',_0x2a0c16(0x101),_0x2a0c16(0x107)+_0x5d5d98+';\x20do\x20not\x20resubmit.');let _0x5a4e1a;try{const _0x3cc505=await getNotificationChannelConfig(_0x14a838,_0x118e51[_0x2a0c16(0xf6)]);_0x5a4e1a=normalizeExactNotificationConfig(_0x3cc505,_0x14a838,_0x118e51[_0x2a0c16(0xf6)]);}catch{throw safeApiFailure('create','verification',_0x2a0c16(0x107)+_0x5d5d98+_0x2a0c16(0x108));}return{'ok':!![],'data':{'operation':_0x2a0c16(0x10a),'selector':{'appCode':_0x5a4e1a[_0x2a0c16(0xf6)],'id':_0x5a4e1a['id'],'configCode':_0x5a4e1a['configCode'],'configName':_0x5a4e1a['configName'],'channelType':_0x5a4e1a['channelType']},'before':null,'after':projectNotificationConfig(_0x5a4e1a),'dryRun':![],'backend':{'method':'POST','path':CREATE_PATH},'warnings':[],'verification':{'status':_0x2a0c16(0xf3),'lookupCommand':_0x5d5d98}},'message':_0x2a0c16(0x109)+_0x5a4e1a['id']};}};
1
+ const a152_0x360dea=a152_0x22a6;function a152_0x22a6(_0x50a3b2,_0x57f86c){_0x50a3b2=_0x50a3b2-0x121;const _0x3d9b92=a152_0x3d9b();let _0x22a6ba=_0x3d9b92[_0x50a3b2];return _0x22a6ba;}(function(_0x4b21ad,_0x469866){const _0x3f1b55=a152_0x22a6,_0x277df3=_0x4b21ad();while(!![]){try{const _0x137dc9=-parseInt(_0x3f1b55(0x132))/0x1+-parseInt(_0x3f1b55(0x128))/0x2+parseInt(_0x3f1b55(0x13a))/0x3*(parseInt(_0x3f1b55(0x130))/0x4)+parseInt(_0x3f1b55(0x134))/0x5+-parseInt(_0x3f1b55(0x137))/0x6*(-parseInt(_0x3f1b55(0x13b))/0x7)+-parseInt(_0x3f1b55(0x13c))/0x8+parseInt(_0x3f1b55(0x136))/0x9*(-parseInt(_0x3f1b55(0x129))/0xa);if(_0x137dc9===_0x469866)break;else _0x277df3['push'](_0x277df3['shift']());}catch(_0x4d4357){_0x277df3['push'](_0x277df3['shift']());}}}(a152_0x3d9b,0x6b603));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';const CREATE_PATH=a152_0x360dea(0x13f);function a152_0x3d9b(){const _0x587b9f=['1277875hShQoK','description','1521OyTPTR','66SYZjaD','verified','channelType','3tFzOnj','377335jgGoSH','2843304osLgbS','connectTimeout','Created\x20notification\x20config\x20','/notification/channel-config/create','appCode','readTimeout',';\x20do\x20not\x20resubmit\x20automatically.','write','configCode','Notification\x20config\x20create\x20returned\x20no\x20usable\x20server\x20ID.','isSafeInteger','Inspect\x20with\x20','notification_config_create_outcome_unknown','document','configName','697160IHgCUX','8870DRxOuJ','Notification\x20config\x20create\x20outcome\x20is\x20unknown\x20because\x20no\x20server\x20ID\x20was\x20received.','POST','create',';\x20do\x20not\x20resubmit.','notification','planned','2903656VGAXWU','channelConfig','280737fNajVn',';\x20no\x20automatic\x20retry\x20was\x20attempted.'];a152_0x3d9b=function(){return _0x587b9f;};return a152_0x3d9b();}async function prepareCreate(_0x4efcbb){const _0x6a12eb=a152_0x360dea,_0x3bf662=await readNotificationDocument(_0x4efcbb,_0x6a12eb(0x12c)),_0x527c24=createMutationInput(_0x4efcbb[_0x6a12eb(0x140)],_0x3bf662);return{'document':_0x3bf662,'input':_0x527c24,'planned':projectNotificationConfig({'appCode':_0x4efcbb[_0x6a12eb(0x140)],'configName':_0x3bf662[_0x6a12eb(0x127)],'channelType':_0x3bf662[_0x6a12eb(0x139)],'endpointUrl':_0x3bf662['endpointUrl'],'channelConfig':_0x3bf662[_0x6a12eb(0x131)],'description':_0x3bf662[_0x6a12eb(0x135)],'connectTimeout':_0x3bf662[_0x6a12eb(0x13d)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,'readTimeout':_0x3bf662[_0x6a12eb(0x141)]??DEFAULT_NOTIFICATION_READ_TIMEOUT})};}export const notificationConfigCreate={'service':a152_0x360dea(0x12e),'command':'config-create','description':'Create\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20source','risk':a152_0x360dea(0x143),'requiresAppCode':!![],'structuredErrors':!![],'flags':[...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x2b5586){assertSingleNotificationSource(_0x2b5586);},async 'dryRun'(_0x48c344){const _0x561461=a152_0x360dea,_0x1af924=await prepareCreate(_0x48c344),_0x5620d2=notificationLookupCommand(_0x48c344[_0x561461(0x140)],_0x1af924[_0x561461(0x126)]['channelType']);return asDryRunResult({'operation':_0x561461(0x12c),'selector':{'appCode':_0x48c344[_0x561461(0x140)],'configName':_0x1af924['document'][_0x561461(0x127)],'channelType':_0x1af924[_0x561461(0x126)][_0x561461(0x139)]},'before':null,'after':_0x1af924['planned'],'dryRun':!![],'backend':{'method':_0x561461(0x12b),'path':CREATE_PATH},'warnings':[],'verification':{'status':_0x561461(0x12f),'lookupCommand':_0x5620d2}},{'method':_0x561461(0x12b),'url':CREATE_PATH});},async 'execute'(_0x452c81){const _0x58fed5=a152_0x360dea,_0x2b286e=await prepareCreate(_0x452c81),_0x140656=notificationLookupCommand(_0x452c81[_0x58fed5(0x140)],_0x2b286e[_0x58fed5(0x126)]['channelType']);let _0x18c1ba;try{_0x18c1ba=await createNotificationChannelConfig(_0x2b286e['input']);}catch(_0x4e45b7){if(isPlatformTransportFailure(_0x4e45b7))throw notificationError('notification_config_create_outcome_unknown',_0x58fed5(0x12a),'Inspect\x20with\x20'+_0x140656+_0x58fed5(0x12d));throw safeApiFailure(_0x58fed5(0x12c),'mutation',_0x58fed5(0x124)+_0x140656+_0x58fed5(0x133));}if(!Number[_0x58fed5(0x123)](_0x18c1ba)||_0x18c1ba<=0x0)throw notificationError(_0x58fed5(0x125),_0x58fed5(0x122),'Inspect\x20with\x20'+_0x140656+_0x58fed5(0x12d));let _0x28eb63;try{const _0x18e5b5=await getNotificationChannelConfig(_0x18c1ba,_0x452c81[_0x58fed5(0x140)]);_0x28eb63=normalizeExactNotificationConfig(_0x18e5b5,_0x18c1ba,_0x452c81['appCode']);}catch{throw safeApiFailure(_0x58fed5(0x12c),'verification',_0x58fed5(0x124)+_0x140656+_0x58fed5(0x142));}return{'ok':!![],'data':{'operation':_0x58fed5(0x12c),'selector':{'appCode':_0x28eb63[_0x58fed5(0x140)],'id':_0x28eb63['id'],'configCode':_0x28eb63[_0x58fed5(0x121)],'configName':_0x28eb63[_0x58fed5(0x127)],'channelType':_0x28eb63[_0x58fed5(0x139)]},'before':null,'after':projectNotificationConfig(_0x28eb63),'dryRun':![],'backend':{'method':_0x58fed5(0x12b),'path':CREATE_PATH},'warnings':[],'verification':{'status':_0x58fed5(0x138),'lookupCommand':_0x140656}},'message':_0x58fed5(0x13e)+_0x28eb63['id']};}};
@@ -1 +1 @@
1
- const a155_0xda553e=a155_0x4b18;(function(_0x116113,_0x3f9e94){const _0x5716dc=a155_0x4b18,_0x411767=_0x116113();while(!![]){try{const _0xf0c470=parseInt(_0x5716dc(0x180))/0x1+parseInt(_0x5716dc(0x187))/0x2*(-parseInt(_0x5716dc(0x16f))/0x3)+parseInt(_0x5716dc(0x182))/0x4+parseInt(_0x5716dc(0x186))/0x5*(parseInt(_0x5716dc(0x174))/0x6)+-parseInt(_0x5716dc(0x175))/0x7+-parseInt(_0x5716dc(0x18a))/0x8+parseInt(_0x5716dc(0x17c))/0x9;if(_0xf0c470===_0x3f9e94)break;else _0x411767['push'](_0x411767['shift']());}catch(_0x3e5066){_0x411767['push'](_0x411767['shift']());}}}(a155_0x1158,0xb8290));function a155_0x4b18(_0x2dad61,_0x1113fe){_0x2dad61=_0x2dad61-0x16f;const _0x115887=a155_0x1158();let _0x4b184e=_0x115887[_0x2dad61];return _0x4b184e;}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=a155_0xda553e(0x181),REFERENCE_WARNING=a155_0xda553e(0x18c);async function prepareDelete(_0x5b49f0){const _0x135e04=a155_0xda553e,_0x1d95f5=readNotificationId(_0x5b49f0),_0xe5ed4b=await requireExactNotificationConfig(_0x5b49f0['appCode'],_0x1d95f5,_0x135e04(0x173));return{'id':_0x1d95f5,'before':_0xe5ed4b};}export const notificationConfigDelete={'service':a155_0xda553e(0x179),'command':'config-delete','description':a155_0xda553e(0x176),'risk':a155_0xda553e(0x185),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,NOTIFICATION_APP_FLAG],async 'validate'(_0x1e49e8){readNotificationId(_0x1e49e8),requireNotificationExplicitYes(_0x1e49e8);},async 'dryRun'(_0x215af7){const _0x3bbc05=a155_0xda553e,_0x3f450d=await prepareDelete(_0x215af7),_0x5f0a97=notificationLookupCommand(_0x215af7[_0x3bbc05(0x170)],_0x3f450d[_0x3bbc05(0x171)][_0x3bbc05(0x18e)]);return asDryRunResult({'operation':_0x3bbc05(0x173),'selector':notificationSelector(_0x3f450d[_0x3bbc05(0x171)]),'before':projectNotificationConfig(_0x3f450d['before']),'after':null,'dryRun':!![],'backend':{'method':_0x3bbc05(0x189),'path':DELETE_PATH},'warnings':[REFERENCE_WARNING],'verification':{'status':_0x3bbc05(0x17b),'lookupCommand':_0x5f0a97}},{'method':_0x3bbc05(0x189),'url':DELETE_PATH});},async 'execute'(_0x3fc516){const _0x4d8de3=a155_0xda553e;requireNotificationExplicitYes(_0x3fc516);const _0x71b461=await prepareDelete(_0x3fc516),_0x4bbe4a=notificationLookupCommand(_0x3fc516[_0x4d8de3(0x170)],_0x71b461['before']['channelType']);let _0x2d07d6=![];try{await deleteNotificationChannelConfig(_0x71b461['id'],_0x3fc516[_0x4d8de3(0x170)]);}catch(_0x1f11a9){if(!isPlatformTransportFailure(_0x1f11a9))throw safeApiFailure(_0x4d8de3(0x173),_0x4d8de3(0x18d),_0x4d8de3(0x183)+_0x4bbe4a+_0x4d8de3(0x177));_0x2d07d6=!![];}let _0x1f348f;try{_0x1f348f=await listNotificationChannelConfigs(_0x3fc516['appCode'],_0x71b461[_0x4d8de3(0x171)][_0x4d8de3(0x18e)]),validateNotificationDeleteReadback(_0x1f348f,_0x3fc516[_0x4d8de3(0x170)],_0x71b461[_0x4d8de3(0x171)][_0x4d8de3(0x18e)]);}catch{throw notificationError(_0x2d07d6?_0x4d8de3(0x178):_0x4d8de3(0x17d),'Notification\x20config\x20'+_0x71b461['id']+'\x20delete\x20could\x20not\x20be\x20verified.',_0x4d8de3(0x183)+_0x4bbe4a+_0x4d8de3(0x17a));}if(_0x1f348f[_0x4d8de3(0x188)](_0x5a7495=>_0x5a7495['id']===_0x71b461['id']))throw notificationError(_0x2d07d6?_0x4d8de3(0x178):_0x4d8de3(0x17f),'Notification\x20config\x20'+_0x71b461['id']+_0x4d8de3(0x17e),'Inspect\x20with\x20'+_0x4bbe4a+_0x4d8de3(0x17a));const _0xb57ae=[REFERENCE_WARNING];return _0x2d07d6&&_0xb57ae['unshift'](_0x4d8de3(0x18b)),{'ok':!![],'data':{'operation':_0x4d8de3(0x173),'selector':notificationSelector(_0x71b461['before']),'before':projectNotificationConfig(_0x71b461['before']),'after':null,'dryRun':![],'backend':{'method':_0x4d8de3(0x189),'path':DELETE_PATH},'warnings':_0xb57ae,'verification':{'status':_0x4d8de3(0x184),'absenceConfirmed':!![],'recoveredAfterUnknownResponse':_0x2d07d6,'lookupCommand':_0x4bbe4a}},'message':_0x4d8de3(0x172)+_0x71b461['id']};}};function a155_0x1158(){const _0x565e9d=['before','Deleted\x20notification\x20config\x20','delete','22332elbAiH','1340353gJYlyP','Delete\x20an\x20app-level\x20notification\x20config\x20after\x20exact\x20preflight',';\x20no\x20automatic\x20retry\x20was\x20attempted.','notification_config_delete_outcome_unknown','notification',';\x20do\x20not\x20resubmit\x20automatically.','planned','3881655xyteWX','notification_config_delete_verification_unavailable','\x20remains\x20present\x20after\x20delete.','notification_config_delete_verification_failed','765213GFhyFo','/notification/channel-config/delete','1392952IXBkEn','Inspect\x20with\x20','verified','high-risk-write','635WUvKNT','26PIGVNH','some','POST','5361504ZflJCX','Delete\x20response\x20was\x20unavailable;\x20list\x20readback\x20proved\x20ID\x20absence\x20without\x20resubmitting.','Deleting\x20this\x20app-level\x20config\x20may\x20make\x20dataset-level\x20channels\x20that\x20reference\x20it\x20unavailable;\x20dataset\x20references\x20were\x20not\x20verified\x20by\x20the\x20CLI.','mutation','channelType','92643nAMaEV','appCode'];a155_0x1158=function(){return _0x565e9d;};return a155_0x1158();}
1
+ const a153_0x50af89=a153_0x45b9;function a153_0x4992(){const _0x1d816b=['1225OkiqTz','planned','412512AQLReF','Delete\x20response\x20was\x20unavailable;\x20list\x20readback\x20proved\x20ID\x20absence\x20without\x20resubmitting.','523932aSJHdP','mutation','1042156bSCxBt','high-risk-write','Inspect\x20with\x20','1750014tuOVCf','\x20delete\x20could\x20not\x20be\x20verified.','Delete\x20an\x20app-level\x20notification\x20config\x20after\x20exact\x20preflight','Deleted\x20notification\x20config\x20',';\x20do\x20not\x20resubmit\x20automatically.','Notification\x20config\x20','unshift','before','notification','306538JacWAy','POST','Deleting\x20this\x20app-level\x20config\x20may\x20make\x20dataset-level\x20channels\x20that\x20reference\x20it\x20unavailable;\x20dataset\x20references\x20were\x20not\x20verified\x20by\x20the\x20CLI.','/notification/channel-config/delete','channelType','some','\x20remains\x20present\x20after\x20delete.',';\x20no\x20automatic\x20retry\x20was\x20attempted.','17176eLerZY','1433915tADbwQ','notification_config_delete_outcome_unknown','delete','appCode','notification_config_delete_verification_failed'];a153_0x4992=function(){return _0x1d816b;};return a153_0x4992();}(function(_0x5b87ec,_0x5e6761){const _0x4e5332=a153_0x45b9,_0x296369=_0x5b87ec();while(!![]){try{const _0x17b99b=parseInt(_0x4e5332(0x1a3))/0x1+-parseInt(_0x4e5332(0x193))/0x2+parseInt(_0x4e5332(0x195))/0x3+parseInt(_0x4e5332(0x197))/0x4+parseInt(_0x4e5332(0x18c))/0x5+-parseInt(_0x4e5332(0x19a))/0x6+-parseInt(_0x4e5332(0x191))/0x7*(parseInt(_0x4e5332(0x18b))/0x8);if(_0x17b99b===_0x5e6761)break;else _0x296369['push'](_0x296369['shift']());}catch(_0x3ba912){_0x296369['push'](_0x296369['shift']());}}}(a153_0x4992,0x25ce6));function a153_0x45b9(_0x319f66,_0x203c3b){_0x319f66=_0x319f66-0x185;const _0x4992a3=a153_0x4992();let _0x45b912=_0x4992a3[_0x319f66];return _0x45b912;}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=a153_0x50af89(0x186),REFERENCE_WARNING=a153_0x50af89(0x185);async function prepareDelete(_0x3d6b60){const _0x4f2ccf=a153_0x50af89,_0x38530a=readNotificationId(_0x3d6b60),_0x47cc8f=await requireExactNotificationConfig(_0x3d6b60[_0x4f2ccf(0x18f)],_0x38530a,_0x4f2ccf(0x18e));return{'id':_0x38530a,'before':_0x47cc8f};}export const notificationConfigDelete={'service':a153_0x50af89(0x1a2),'command':'config-delete','description':a153_0x50af89(0x19c),'risk':a153_0x50af89(0x198),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,NOTIFICATION_APP_FLAG],async 'validate'(_0x1ad15f){readNotificationId(_0x1ad15f),requireNotificationExplicitYes(_0x1ad15f);},async 'dryRun'(_0x2fa5dd){const _0x1e11e0=a153_0x50af89,_0x5f324c=await prepareDelete(_0x2fa5dd),_0x19f958=notificationLookupCommand(_0x2fa5dd[_0x1e11e0(0x18f)],_0x5f324c[_0x1e11e0(0x1a1)][_0x1e11e0(0x187)]);return asDryRunResult({'operation':_0x1e11e0(0x18e),'selector':notificationSelector(_0x5f324c[_0x1e11e0(0x1a1)]),'before':projectNotificationConfig(_0x5f324c['before']),'after':null,'dryRun':!![],'backend':{'method':_0x1e11e0(0x1a4),'path':DELETE_PATH},'warnings':[REFERENCE_WARNING],'verification':{'status':_0x1e11e0(0x192),'lookupCommand':_0x19f958}},{'method':_0x1e11e0(0x1a4),'url':DELETE_PATH});},async 'execute'(_0x27fb6e){const _0x2d17f4=a153_0x50af89;requireNotificationExplicitYes(_0x27fb6e);const _0x12a138=await prepareDelete(_0x27fb6e),_0x2e37b6=notificationLookupCommand(_0x27fb6e[_0x2d17f4(0x18f)],_0x12a138[_0x2d17f4(0x1a1)][_0x2d17f4(0x187)]);let _0x2d2b0a=![];try{await deleteNotificationChannelConfig(_0x12a138['id'],_0x27fb6e['appCode']);}catch(_0x33ad10){if(!isPlatformTransportFailure(_0x33ad10))throw safeApiFailure(_0x2d17f4(0x18e),_0x2d17f4(0x196),_0x2d17f4(0x199)+_0x2e37b6+_0x2d17f4(0x18a));_0x2d2b0a=!![];}let _0x16acbd;try{_0x16acbd=await listNotificationChannelConfigs(_0x27fb6e[_0x2d17f4(0x18f)],_0x12a138[_0x2d17f4(0x1a1)][_0x2d17f4(0x187)]),validateNotificationDeleteReadback(_0x16acbd,_0x27fb6e['appCode'],_0x12a138[_0x2d17f4(0x1a1)]['channelType']);}catch{throw notificationError(_0x2d2b0a?'notification_config_delete_outcome_unknown':'notification_config_delete_verification_unavailable',_0x2d17f4(0x19f)+_0x12a138['id']+_0x2d17f4(0x19b),_0x2d17f4(0x199)+_0x2e37b6+';\x20do\x20not\x20resubmit\x20automatically.');}if(_0x16acbd[_0x2d17f4(0x188)](_0x3a32ab=>_0x3a32ab['id']===_0x12a138['id']))throw notificationError(_0x2d2b0a?_0x2d17f4(0x18d):_0x2d17f4(0x190),_0x2d17f4(0x19f)+_0x12a138['id']+_0x2d17f4(0x189),'Inspect\x20with\x20'+_0x2e37b6+_0x2d17f4(0x19e));const _0x4ba842=[REFERENCE_WARNING];return _0x2d2b0a&&_0x4ba842[_0x2d17f4(0x1a0)](_0x2d17f4(0x194)),{'ok':!![],'data':{'operation':_0x2d17f4(0x18e),'selector':notificationSelector(_0x12a138[_0x2d17f4(0x1a1)]),'before':projectNotificationConfig(_0x12a138['before']),'after':null,'dryRun':![],'backend':{'method':'POST','path':DELETE_PATH},'warnings':_0x4ba842,'verification':{'status':'verified','absenceConfirmed':!![],'recoveredAfterUnknownResponse':_0x2d2b0a,'lookupCommand':_0x2e37b6}},'message':_0x2d17f4(0x19d)+_0x12a138['id']};}};
@@ -1 +1 @@
1
- function a156_0x4ec8(){const _0x328221=['config-list','\x20notification\x20config(s)','Found\x20','19723693dqvRVh','length','6445089xAqeQu','Notification\x20channel\x20type','2554956kGhJla','265552oycYkR','12jvunfU','2773820IffMPl','2335vnWtVW','map','appCode','1bbGFIo','1138996VVaOhY','9042JrofNQ','119RgvhfN','10aEhuGZ'];a156_0x4ec8=function(){return _0x328221;};return a156_0x4ec8();}const a156_0x523e0d=a156_0x4daf;(function(_0x2f2e70,_0xa81cde){const _0x24db4c=a156_0x4daf,_0x784abc=_0x2f2e70();while(!![]){try{const _0x383c47=-parseInt(_0x24db4c(0x1f3))/0x1*(parseInt(_0x24db4c(0x1f4))/0x2)+parseInt(_0x24db4c(0x1ec))/0x3+-parseInt(_0x24db4c(0x1ef))/0x4+-parseInt(_0x24db4c(0x1f0))/0x5*(parseInt(_0x24db4c(0x1f5))/0x6)+parseInt(_0x24db4c(0x1f6))/0x7*(parseInt(_0x24db4c(0x1ed))/0x8)+-parseInt(_0x24db4c(0x1ea))/0x9*(parseInt(_0x24db4c(0x1f7))/0xa)+parseInt(_0x24db4c(0x1e8))/0xb*(parseInt(_0x24db4c(0x1ee))/0xc);if(_0x383c47===_0xa81cde)break;else _0x784abc['push'](_0x784abc['shift']());}catch(_0x31b9fc){_0x784abc['push'](_0x784abc['shift']());}}}(a156_0x4ec8,0x8075a));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listNotificationChannelConfigs}from'../../core/api-client.js';function a156_0x4daf(_0x399659,_0xcba601){_0x399659=_0x399659-0x1e8;const _0x4ec809=a156_0x4ec8();let _0x4dafcf=_0x4ec809[_0x399659];return _0x4dafcf;}import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':'notification','command':a156_0x523e0d(0x1f8),'description':'List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':'type','type':'string','description':a156_0x523e0d(0x1eb),'enum':NOTIFICATION_CHANNEL_TYPES,'default':'EMAIL'}],async 'validate'(_0x52a734){readNotificationChannelType(_0x52a734);},async 'execute'(_0x5e7649){const _0x22c9ac=a156_0x523e0d,_0x2202cc=readNotificationChannelType(_0x5e7649),_0x43efd0=await listNotificationChannelConfigs(_0x5e7649[_0x22c9ac(0x1f2)],_0x2202cc),_0x289d80=_0x43efd0[_0x22c9ac(0x1f1)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x5e7649[_0x22c9ac(0x1f2)],'channelType':_0x2202cc,'count':_0x289d80[_0x22c9ac(0x1e9)],'configs':_0x289d80},'message':_0x22c9ac(0x1fa)+_0x289d80[_0x22c9ac(0x1e9)]+'\x20'+_0x2202cc+_0x22c9ac(0x1f9)};}};
1
+ const a154_0x4571cf=a154_0x3652;function a154_0x5b2d(){const _0x8ab113=['9IIYXkW','8403ejMUdq','13393890cHIDjM','string','config-list','length','1246555OyYAuE','862316OCLBSx','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','read','250952oKqiRJ','type','EMAIL','Found\x20','appCode','notification','273xEhwfc','12334531YQTiwK','Notification\x20channel\x20type','2583454TlkGgd','map','30yPLNxL','1388UasUxz'];a154_0x5b2d=function(){return _0x8ab113;};return a154_0x5b2d();}(function(_0x371813,_0x1302db){const _0x1df3c7=a154_0x3652,_0x179194=_0x371813();while(!![]){try{const _0x50ee61=parseInt(_0x1df3c7(0xdd))/0x1+parseInt(_0x1df3c7(0xd2))/0x2+parseInt(_0x1df3c7(0xd7))/0x3*(-parseInt(_0x1df3c7(0xd5))/0x4)+-parseInt(_0x1df3c7(0xdc))/0x5*(parseInt(_0x1df3c7(0xd4))/0x6)+parseInt(_0x1df3c7(0xcf))/0x7*(parseInt(_0x1df3c7(0xe0))/0x8)+parseInt(_0x1df3c7(0xd6))/0x9*(-parseInt(_0x1df3c7(0xd8))/0xa)+parseInt(_0x1df3c7(0xd0))/0xb;if(_0x50ee61===_0x1302db)break;else _0x179194['push'](_0x179194['shift']());}catch(_0x51bf04){_0x179194['push'](_0x179194['shift']());}}}(a154_0x5b2d,0xe5b40));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';function a154_0x3652(_0x32041d,_0x20e51b){_0x32041d=_0x32041d-0xcd;const _0x5b2dcf=a154_0x5b2d();let _0x365275=_0x5b2dcf[_0x32041d];return _0x365275;}export const notificationConfigList={'service':a154_0x4571cf(0xce),'command':a154_0x4571cf(0xda),'description':a154_0x4571cf(0xde),'risk':a154_0x4571cf(0xdf),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a154_0x4571cf(0xe1),'type':a154_0x4571cf(0xd9),'description':a154_0x4571cf(0xd1),'enum':NOTIFICATION_CHANNEL_TYPES,'default':a154_0x4571cf(0xe2)}],async 'validate'(_0x269de9){readNotificationChannelType(_0x269de9);},async 'execute'(_0x426af7){const _0x1849df=a154_0x4571cf,_0x32939c=readNotificationChannelType(_0x426af7),_0x25a160=await listNotificationChannelConfigs(_0x426af7['appCode'],_0x32939c),_0x587b22=_0x25a160[_0x1849df(0xd3)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x426af7[_0x1849df(0xcd)],'channelType':_0x32939c,'count':_0x587b22[_0x1849df(0xdb)],'configs':_0x587b22},'message':_0x1849df(0xe3)+_0x587b22[_0x1849df(0xdb)]+'\x20'+_0x32939c+'\x20notification\x20config(s)'};}};
@@ -1 +1 @@
1
- const a157_0x1baa2d=a157_0x2839;(function(_0x209ac0,_0x301f24){const _0x2aeaf6=a157_0x2839,_0x237df4=_0x209ac0();while(!![]){try{const _0x44b67e=-parseInt(_0x2aeaf6(0x1cd))/0x1+-parseInt(_0x2aeaf6(0x1c2))/0x2+-parseInt(_0x2aeaf6(0x1c1))/0x3+-parseInt(_0x2aeaf6(0x1bc))/0x4+-parseInt(_0x2aeaf6(0x1dd))/0x5+parseInt(_0x2aeaf6(0x1c5))/0x6+-parseInt(_0x2aeaf6(0x1ce))/0x7*(-parseInt(_0x2aeaf6(0x1cb))/0x8);if(_0x44b67e===_0x301f24)break;else _0x237df4['push'](_0x237df4['shift']());}catch(_0x3f7046){_0x237df4['push'](_0x237df4['shift']());}}}(a157_0x258b,0xe6de6));import{asDryRunResult}from'../../commands/common/dry-run.js';import{getNotificationChannelConfig,isPlatformTransportFailure,updateNotificationChannelConfig}from'../../core/api-client.js';function a157_0x2839(_0x3623f0,_0x2e8fcc){_0x3623f0=_0x3623f0-0x1bc;const _0x258b08=a157_0x258b();let _0x283984=_0x258b08[_0x3623f0];return _0x283984;}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=a157_0x1baa2d(0x1c0);async function prepareUpdate(_0x174845){const _0x5411a5=a157_0x1baa2d,_0x474150=readNotificationId(_0x174845),_0x568485=await readNotificationDocument(_0x174845,_0x5411a5(0x1ca)),_0x2246d6=await requireExactNotificationConfig(_0x174845[_0x5411a5(0x1db)],_0x474150,_0x5411a5(0x1ca));return{'id':_0x474150,'patch':_0x568485,'before':_0x2246d6,'payload':mergeUpdateInput(_0x2246d6,_0x568485),'planned':plannedUpdateProjection(_0x2246d6,_0x568485)};}export const notificationConfigUpdate={'service':'notification','command':a157_0x1baa2d(0x1c3),'description':a157_0x1baa2d(0x1bd),'risk':'high-risk-write','requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x4497f7){readNotificationId(_0x4497f7),assertSingleNotificationSource(_0x4497f7),requireNotificationExplicitYes(_0x4497f7);},async 'dryRun'(_0x1dde15){const _0x58b584=a157_0x1baa2d,_0x33566c=await prepareUpdate(_0x1dde15),_0x446a2f=notificationLookupCommand(_0x1dde15[_0x58b584(0x1db)],_0x33566c[_0x58b584(0x1c8)][_0x58b584(0x1c9)]);return asDryRunResult({'operation':'update','selector':notificationSelector(_0x33566c[_0x58b584(0x1c8)]),'before':projectNotificationConfig(_0x33566c[_0x58b584(0x1c8)]),'after':_0x33566c[_0x58b584(0x1cc)],'dryRun':!![],'backend':{'method':_0x58b584(0x1d3),'path':UPDATE_PATH},'warnings':[],'verification':{'status':_0x58b584(0x1cc),'lookupCommand':_0x446a2f}},{'method':_0x58b584(0x1d3),'url':UPDATE_PATH});},async 'execute'(_0x27c859){const _0x3e9b10=a157_0x1baa2d;requireNotificationExplicitYes(_0x27c859);const _0x3a0247=await prepareUpdate(_0x27c859),_0x40b0a5=notificationLookupCommand(_0x27c859[_0x3e9b10(0x1db)],_0x3a0247[_0x3e9b10(0x1c8)]['channelType']);let _0x1e31d0=![];try{await updateNotificationChannelConfig(_0x3a0247[_0x3e9b10(0x1d4)]);}catch(_0xe4e4b1){if(!isPlatformTransportFailure(_0xe4e4b1))throw safeApiFailure(_0x3e9b10(0x1ca),_0x3e9b10(0x1c7),_0x3e9b10(0x1bf)+_0x3a0247['id']+_0x3e9b10(0x1d8)+_0x40b0a5+';\x20no\x20automatic\x20retry\x20was\x20attempted.');_0x1e31d0=!![];}let _0x103345;try{const _0x26bc23=await getNotificationChannelConfig(_0x3a0247['id'],_0x27c859['appCode']);_0x103345=normalizeExactNotificationConfig(_0x26bc23,_0x3a0247['id'],_0x27c859[_0x3e9b10(0x1db)]);}catch{throw notificationError(_0x1e31d0?_0x3e9b10(0x1cf):'notification_config_update_verification_unavailable',_0x3e9b10(0x1c6)+_0x3a0247['id']+_0x3e9b10(0x1d0),_0x3e9b10(0x1d6)+_0x3a0247['id']+_0x3e9b10(0x1d9)+_0x40b0a5+';\x20do\x20not\x20resubmit\x20automatically.');}const _0x584c3d=requestedSafeFieldsMatch(_0x3a0247[_0x3e9b10(0x1c8)],_0x103345,_0x3a0247[_0x3e9b10(0x1d7)]);if(!_0x584c3d[_0x3e9b10(0x1c4)]||_0x1e31d0&&!_0x584c3d[_0x3e9b10(0x1dc)])throw notificationError(_0x1e31d0?_0x3e9b10(0x1cf):'notification_config_update_verification_failed','Notification\x20config\x20'+_0x3a0247['id']+_0x3e9b10(0x1de),_0x3e9b10(0x1d6)+_0x3a0247['id']+_0x3e9b10(0x1d9)+_0x40b0a5+_0x3e9b10(0x1da));const _0x4ace9a=_0x1e31d0?[_0x3e9b10(0x1d1)]:[];return{'ok':!![],'data':{'operation':_0x3e9b10(0x1ca),'selector':notificationSelector(_0x103345),'before':projectNotificationConfig(_0x3a0247[_0x3e9b10(0x1c8)]),'after':projectNotificationConfig(_0x103345),'dryRun':![],'backend':{'method':_0x3e9b10(0x1d3),'path':UPDATE_PATH},'warnings':_0x4ace9a,'verification':{'status':_0x3e9b10(0x1d5),'recoveredAfterUnknownResponse':_0x1e31d0,'verifiedFields':_0x584c3d[_0x3e9b10(0x1d2)],'lookupCommand':_0x40b0a5}},'message':_0x3e9b10(0x1be)+_0x103345['id']};}};function a157_0x258b(){const _0x3e9c0e=['\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20update.','5259240lUzuQt','Update\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20patch','Updated\x20notification\x20config\x20','Inspect\x20ID\x20','/notification/channel-config/update','4765524jmXZyH','1022490vRyESR','config-update','allMatch','7550856sDVBxi','Notification\x20config\x20','mutation','before','channelType','update','104WFapOO','planned','851958BzByOW','2736965eMQSVu','notification_config_update_outcome_unknown','\x20update\x20could\x20not\x20be\x20verified\x20by\x20exact\x20ID.','Update\x20response\x20was\x20unavailable;\x20exact-ID\x20readback\x20proved\x20changed\x20safe\x20fields\x20without\x20resubmitting.','verifiedFields','POST','payload','verified','Inspect\x20with\x20--id\x20','patch','\x20with\x20','\x20via\x20',';\x20do\x20not\x20resubmit\x20automatically.','appCode','provesChange','5646260sZMTWh'];a157_0x258b=function(){return _0x3e9c0e;};return a157_0x258b();}
1
+ const a155_0x164462=a155_0x510a;(function(_0x3797b6,_0x305b46){const _0x4eb463=a155_0x510a,_0x1139d3=_0x3797b6();while(!![]){try{const _0x7ded15=parseInt(_0x4eb463(0x16f))/0x1*(parseInt(_0x4eb463(0x177))/0x2)+-parseInt(_0x4eb463(0x169))/0x3+-parseInt(_0x4eb463(0x17c))/0x4*(parseInt(_0x4eb463(0x17a))/0x5)+parseInt(_0x4eb463(0x16b))/0x6+parseInt(_0x4eb463(0x184))/0x7*(parseInt(_0x4eb463(0x179))/0x8)+-parseInt(_0x4eb463(0x188))/0x9+-parseInt(_0x4eb463(0x178))/0xa*(parseInt(_0x4eb463(0x180))/0xb);if(_0x7ded15===_0x305b46)break;else _0x1139d3['push'](_0x1139d3['shift']());}catch(_0x112d8d){_0x1139d3['push'](_0x1139d3['shift']());}}}(a155_0x18fa,0x60617));import{asDryRunResult}from'../../commands/common/dry-run.js';function a155_0x510a(_0x27b9df,_0x4d2261){_0x27b9df=_0x27b9df-0x166;const _0x18fa75=a155_0x18fa();let _0x510ae6=_0x18fa75[_0x27b9df];return _0x510ae6;}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='/notification/channel-config/update';async function prepareUpdate(_0xf767ef){const _0x38b6fc=a155_0x510a,_0x187f8e=readNotificationId(_0xf767ef),_0x2d9de1=await readNotificationDocument(_0xf767ef,'update'),_0x35611b=await requireExactNotificationConfig(_0xf767ef[_0x38b6fc(0x173)],_0x187f8e,_0x38b6fc(0x181));return{'id':_0x187f8e,'patch':_0x2d9de1,'before':_0x35611b,'payload':mergeUpdateInput(_0x35611b,_0x2d9de1),'planned':plannedUpdateProjection(_0x35611b,_0x2d9de1)};}function a155_0x18fa(){const _0x2fcb3c=['\x20update\x20could\x20not\x20be\x20verified\x20by\x20exact\x20ID.','notification_config_update_verification_failed','notification_config_update_outcome_unknown','665457AWywTb','config-update','4094598fasmrV','patch','POST','high-risk-write','2xvlZPg','\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20update.','\x20via\x20','Notification\x20config\x20','appCode','Updated\x20notification\x20config\x20','planned',';\x20do\x20not\x20resubmit\x20automatically.','313576JllKRL','3617170IHYYmZ','26504IGYQGR','3035HBHLLJ','channelType','692SXbPNE','payload','Update\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20patch','before','11ZUiskQ','update','notification_config_update_verification_unavailable',';\x20no\x20automatic\x20retry\x20was\x20attempted.','987DVdZin','allMatch','Update\x20response\x20was\x20unavailable;\x20exact-ID\x20readback\x20proved\x20changed\x20safe\x20fields\x20without\x20resubmitting.','Inspect\x20with\x20--id\x20','3418380gHjHkx','mutation'];a155_0x18fa=function(){return _0x2fcb3c;};return a155_0x18fa();}export const notificationConfigUpdate={'service':'notification','command':a155_0x164462(0x16a),'description':a155_0x164462(0x17e),'risk':a155_0x164462(0x16e),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x2efbae){readNotificationId(_0x2efbae),assertSingleNotificationSource(_0x2efbae),requireNotificationExplicitYes(_0x2efbae);},async 'dryRun'(_0x2f6b5c){const _0x44266f=a155_0x164462,_0x1ff88f=await prepareUpdate(_0x2f6b5c),_0x54cb75=notificationLookupCommand(_0x2f6b5c['appCode'],_0x1ff88f[_0x44266f(0x17f)][_0x44266f(0x17b)]);return asDryRunResult({'operation':_0x44266f(0x181),'selector':notificationSelector(_0x1ff88f[_0x44266f(0x17f)]),'before':projectNotificationConfig(_0x1ff88f['before']),'after':_0x1ff88f[_0x44266f(0x175)],'dryRun':!![],'backend':{'method':_0x44266f(0x16d),'path':UPDATE_PATH},'warnings':[],'verification':{'status':_0x44266f(0x175),'lookupCommand':_0x54cb75}},{'method':'POST','url':UPDATE_PATH});},async 'execute'(_0x375686){const _0x1ea25c=a155_0x164462;requireNotificationExplicitYes(_0x375686);const _0x1808dd=await prepareUpdate(_0x375686),_0x56857d=notificationLookupCommand(_0x375686[_0x1ea25c(0x173)],_0x1808dd[_0x1ea25c(0x17f)][_0x1ea25c(0x17b)]);let _0x2ea5c6=![];try{await updateNotificationChannelConfig(_0x1808dd[_0x1ea25c(0x17d)]);}catch(_0x4cd47f){if(!isPlatformTransportFailure(_0x4cd47f))throw safeApiFailure(_0x1ea25c(0x181),_0x1ea25c(0x189),'Inspect\x20ID\x20'+_0x1808dd['id']+'\x20with\x20'+_0x56857d+_0x1ea25c(0x183));_0x2ea5c6=!![];}let _0x46419a;try{const _0x5633b9=await getNotificationChannelConfig(_0x1808dd['id'],_0x375686[_0x1ea25c(0x173)]);_0x46419a=normalizeExactNotificationConfig(_0x5633b9,_0x1808dd['id'],_0x375686[_0x1ea25c(0x173)]);}catch{throw notificationError(_0x2ea5c6?_0x1ea25c(0x168):_0x1ea25c(0x182),_0x1ea25c(0x172)+_0x1808dd['id']+_0x1ea25c(0x166),_0x1ea25c(0x187)+_0x1808dd['id']+_0x1ea25c(0x171)+_0x56857d+_0x1ea25c(0x176));}const _0x109917=requestedSafeFieldsMatch(_0x1808dd[_0x1ea25c(0x17f)],_0x46419a,_0x1808dd[_0x1ea25c(0x16c)]);if(!_0x109917[_0x1ea25c(0x185)]||_0x2ea5c6&&!_0x109917['provesChange'])throw notificationError(_0x2ea5c6?_0x1ea25c(0x168):_0x1ea25c(0x167),_0x1ea25c(0x172)+_0x1808dd['id']+_0x1ea25c(0x170),_0x1ea25c(0x187)+_0x1808dd['id']+_0x1ea25c(0x171)+_0x56857d+_0x1ea25c(0x176));const _0x7bc53f=_0x2ea5c6?[_0x1ea25c(0x186)]:[];return{'ok':!![],'data':{'operation':_0x1ea25c(0x181),'selector':notificationSelector(_0x46419a),'before':projectNotificationConfig(_0x1808dd[_0x1ea25c(0x17f)]),'after':projectNotificationConfig(_0x46419a),'dryRun':![],'backend':{'method':_0x1ea25c(0x16d),'path':UPDATE_PATH},'warnings':_0x7bc53f,'verification':{'status':'verified','recoveredAfterUnknownResponse':_0x2ea5c6,'verifiedFields':_0x109917['verifiedFields'],'lookupCommand':_0x56857d}},'message':_0x1ea25c(0x174)+_0x46419a['id']};}};
@@ -1 +1 @@
1
- (function(_0x389335,_0x3ac507){const _0x3e7488=a158_0x2321,_0x313761=_0x389335();while(!![]){try{const _0x495022=parseInt(_0x3e7488(0xb4))/0x1+parseInt(_0x3e7488(0xb2))/0x2+-parseInt(_0x3e7488(0xb8))/0x3+parseInt(_0x3e7488(0xb3))/0x4+parseInt(_0x3e7488(0xb5))/0x5+parseInt(_0x3e7488(0xb9))/0x6*(parseInt(_0x3e7488(0xb7))/0x7)+-parseInt(_0x3e7488(0xba))/0x8*(parseInt(_0x3e7488(0xb6))/0x9);if(_0x495022===_0x3ac507)break;else _0x313761['push'](_0x313761['shift']());}catch(_0x5253c2){_0x313761['push'](_0x313761['shift']());}}}(a158_0x3619,0xf15b0));import{notificationConfigList}from'../../commands/notification/config-list.js';function a158_0x2321(_0x3cb2f3,_0x40b67f){_0x3cb2f3=_0x3cb2f3-0xb2;const _0x361977=a158_0x3619();let _0x23212e=_0x361977[_0x3cb2f3];return _0x23212e;}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];function a158_0x3619(){const _0x5df3d6=['273092VWXXry','11329tEutWO','919525TmGDhS','12447ngGApe','28PZShAf','2208594PBBtaf','1387662XEQbJS','6632BZbtDe','3365364Rkprea'];a158_0x3619=function(){return _0x5df3d6;};return a158_0x3619();}
1
+ (function(_0x380c74,_0x203f29){const _0x47ed4c=a156_0x1e7e,_0x5c22b9=_0x380c74();while(!![]){try{const _0x26302c=parseInt(_0x47ed4c(0x95))/0x1+-parseInt(_0x47ed4c(0x91))/0x2+parseInt(_0x47ed4c(0x8f))/0x3+-parseInt(_0x47ed4c(0x8e))/0x4+parseInt(_0x47ed4c(0x92))/0x5+-parseInt(_0x47ed4c(0x94))/0x6*(parseInt(_0x47ed4c(0x93))/0x7)+parseInt(_0x47ed4c(0x90))/0x8;if(_0x26302c===_0x203f29)break;else _0x5c22b9['push'](_0x5c22b9['shift']());}catch(_0x16459d){_0x5c22b9['push'](_0x5c22b9['shift']());}}}(a156_0x4e30,0xb41be));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';function a156_0x4e30(){const _0x423a1a=['435066KIOkwT','10989904ODLDBL','2282220LArFth','5106550zhPbhF','56qjgMRl','637122zOsjIV','933977fppeRe','2982860HzIYms'];a156_0x4e30=function(){return _0x423a1a;};return a156_0x4e30();}function a156_0x1e7e(_0x1709ba,_0x2a4ae8){_0x1709ba=_0x1709ba-0x8e;const _0x4e3048=a156_0x4e30();let _0x1e7ea3=_0x4e3048[_0x1709ba];return _0x1e7ea3;}export const notificationDefinitions=[notificationConfigList,notificationConfigCreate,notificationConfigUpdate,notificationConfigDelete];