@lovrabet/rabetbase-cli 2.5.3-beta.3 → 2.5.3-beta.4

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 (361) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/api/legacy-api-file.js +1 -1
  7. package/lib/api/model-registry-file.js +1 -1
  8. package/lib/api/model-registry-scaffold.js +1 -1
  9. package/lib/api/model-source.js +1 -1
  10. package/lib/auth/auth-server-ui.js +1 -1
  11. package/lib/auth/auth-server.js +1 -1
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.js +1 -1
  14. package/lib/auth/get-session-user.js +1 -1
  15. package/lib/auth/is-session-valid.js +1 -1
  16. package/lib/auth/login-success-html.js +1 -1
  17. package/lib/auth/logout.js +1 -1
  18. package/lib/cli-flags.js +1 -1
  19. package/lib/cli.js +1 -1
  20. package/lib/commands/api/generate.js +1 -1
  21. package/lib/commands/api/index.js +1 -1
  22. package/lib/commands/api/list.js +1 -1
  23. package/lib/commands/api/pull.js +1 -1
  24. package/lib/commands/api/shared.js +1 -1
  25. package/lib/commands/app/index.js +1 -1
  26. package/lib/commands/app/list.js +1 -1
  27. package/lib/commands/app/members-list.js +1 -1
  28. package/lib/commands/app/remote-directory.js +1 -1
  29. package/lib/commands/app/shared.js +1 -1
  30. package/lib/commands/app-config/delete.js +1 -1
  31. package/lib/commands/app-config/get.js +1 -1
  32. package/lib/commands/app-config/index.js +1 -1
  33. package/lib/commands/app-config/list.js +1 -1
  34. package/lib/commands/app-config/set.js +1 -1
  35. package/lib/commands/app-config/shared.js +1 -1
  36. package/lib/commands/auth/index.js +1 -1
  37. package/lib/commands/bff/create.js +1 -1
  38. package/lib/commands/bff/delete.js +1 -1
  39. package/lib/commands/bff/detail.js +1 -1
  40. package/lib/commands/bff/index.js +1 -1
  41. package/lib/commands/bff/list.js +1 -1
  42. package/lib/commands/bff/logs.js +1 -1
  43. package/lib/commands/bff/pull.js +1 -1
  44. package/lib/commands/bff/push.js +1 -1
  45. package/lib/commands/bff/status.js +1 -1
  46. package/lib/commands/cli-skill/index.js +1 -1
  47. package/lib/commands/cli-update.js +1 -1
  48. package/lib/commands/codegen/index.js +1 -1
  49. package/lib/commands/codegen/sdk.js +1 -1
  50. package/lib/commands/codegen/sql.js +1 -1
  51. package/lib/commands/common/app-registry.js +1 -1
  52. package/lib/commands/common/app-selector.js +1 -1
  53. package/lib/commands/common/async-task.js +1 -1
  54. package/lib/commands/common/dry-run.js +1 -1
  55. package/lib/commands/common/flags.js +1 -1
  56. package/lib/commands/common/local-file.js +1 -1
  57. package/lib/commands/common/validate.js +1 -1
  58. package/lib/commands/config/delete.js +1 -1
  59. package/lib/commands/config/get.js +1 -1
  60. package/lib/commands/config/index.js +1 -1
  61. package/lib/commands/config/init.js +1 -1
  62. package/lib/commands/config/list.js +1 -1
  63. package/lib/commands/config/set.js +1 -1
  64. package/lib/commands/config/shared.js +1 -1
  65. package/lib/commands/dataset/batch-design.js +1 -1
  66. package/lib/commands/dataset/business-group-update.js +1 -1
  67. package/lib/commands/dataset/business-groups.js +1 -1
  68. package/lib/commands/dataset/capability.js +1 -1
  69. package/lib/commands/dataset/cross-relation-create.js +1 -1
  70. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  71. package/lib/commands/dataset/cross-relation-list.js +1 -1
  72. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  73. package/lib/commands/dataset/cross-relation-update.js +1 -1
  74. package/lib/commands/dataset/delete.js +1 -1
  75. package/lib/commands/dataset/detail.js +1 -1
  76. package/lib/commands/dataset/extend-update.js +1 -1
  77. package/lib/commands/dataset/field-restore.js +1 -1
  78. package/lib/commands/dataset/field-update.js +1 -1
  79. package/lib/commands/dataset/generate.js +1 -1
  80. package/lib/commands/dataset/index.js +1 -1
  81. package/lib/commands/dataset/list.js +1 -1
  82. package/lib/commands/dataset/operations.js +1 -1
  83. package/lib/commands/dataset/relation-audit.js +1 -1
  84. package/lib/commands/dataset/relation-create.js +1 -1
  85. package/lib/commands/dataset/relation-delete.js +1 -1
  86. package/lib/commands/dataset/relation-shared.js +1 -1
  87. package/lib/commands/dataset/relation-update.js +1 -1
  88. package/lib/commands/dataset/relations.js +1 -1
  89. package/lib/commands/dataset/rename.js +1 -1
  90. package/lib/commands/dataset/restore.js +1 -1
  91. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  92. package/lib/commands/db/analysis-batching.js +1 -1
  93. package/lib/commands/db/analyze-batch-plan.js +1 -1
  94. package/lib/commands/db/analyze-cancel.js +1 -1
  95. package/lib/commands/db/analyze-start.js +1 -1
  96. package/lib/commands/db/analyze-status.js +1 -1
  97. package/lib/commands/db/create.js +1 -1
  98. package/lib/commands/db/delete.js +1 -1
  99. package/lib/commands/db/detail.js +1 -1
  100. package/lib/commands/db/diff-refresh-start.js +1 -1
  101. package/lib/commands/db/diff-refresh-status.js +1 -1
  102. package/lib/commands/db/diff.js +1 -1
  103. package/lib/commands/db/index.js +1 -1
  104. package/lib/commands/db/list.js +1 -1
  105. package/lib/commands/db/shared.js +1 -1
  106. package/lib/commands/db/table-diff-shared.js +1 -1
  107. package/lib/commands/db/tables.js +1 -1
  108. package/lib/commands/db/test.js +1 -1
  109. package/lib/commands/db/update.js +1 -1
  110. package/lib/commands/deployment/index.js +1 -1
  111. package/lib/commands/deployment/sync-all.js +1 -1
  112. package/lib/commands/deployment/sync-jobs.js +1 -1
  113. package/lib/commands/deployment/sync-status.js +1 -1
  114. package/lib/commands/doctor.js +1 -1
  115. package/lib/commands/file/index.js +1 -1
  116. package/lib/commands/flow/create.js +1 -1
  117. package/lib/commands/flow/detail.js +1 -1
  118. package/lib/commands/flow/index.js +1 -1
  119. package/lib/commands/flow/list.js +1 -1
  120. package/lib/commands/flow/publish.js +1 -1
  121. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  122. package/lib/commands/flow/runtime-role-list.js +1 -1
  123. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  124. package/lib/commands/flow/runtime-user-search.js +1 -1
  125. package/lib/commands/flow/shared.js +1 -1
  126. package/lib/commands/flow/update.js +1 -1
  127. package/lib/commands/flow/validate.js +1 -1
  128. package/lib/commands/instant-api-policy/current.js +1 -1
  129. package/lib/commands/instant-api-policy/index.js +1 -1
  130. package/lib/commands/instant-api-policy/init.js +1 -1
  131. package/lib/commands/instant-api-policy/publish.js +1 -1
  132. package/lib/commands/instant-api-policy/pull.js +1 -1
  133. package/lib/commands/instant-api-policy/revision.js +1 -1
  134. package/lib/commands/instant-api-policy/revisions.js +1 -1
  135. package/lib/commands/instant-api-policy/rollback.js +1 -1
  136. package/lib/commands/instant-api-policy/shared.js +1 -1
  137. package/lib/commands/instant-api-policy/validate.js +1 -1
  138. package/lib/commands/issue/index.js +1 -1
  139. package/lib/commands/issue/nudge.js +1 -1
  140. package/lib/commands/issue/report.js +1 -1
  141. package/lib/commands/issue/shared.js +1 -1
  142. package/lib/commands/kb/create.js +1 -1
  143. package/lib/commands/kb/delete.js +1 -1
  144. package/lib/commands/kb/detail.js +1 -1
  145. package/lib/commands/kb/index.js +1 -1
  146. package/lib/commands/kb/list.js +1 -1
  147. package/lib/commands/kb/search.js +1 -1
  148. package/lib/commands/kb/shared.js +1 -1
  149. package/lib/commands/kb/update.js +1 -1
  150. package/lib/commands/logs/index.js +1 -1
  151. package/lib/commands/menu/asset-update.js +1 -1
  152. package/lib/commands/menu/delete.js +1 -1
  153. package/lib/commands/menu/external-link-create.js +1 -1
  154. package/lib/commands/menu/external-link-update.js +1 -1
  155. package/lib/commands/menu/group-create.js +1 -1
  156. package/lib/commands/menu/group-update.js +1 -1
  157. package/lib/commands/menu/index.js +1 -1
  158. package/lib/commands/menu/list.js +1 -1
  159. package/lib/commands/menu/move.js +1 -1
  160. package/lib/commands/menu/regroup-start.js +1 -1
  161. package/lib/commands/menu/rename.js +1 -1
  162. package/lib/commands/menu/shared/compare-table.js +1 -1
  163. package/lib/commands/menu/shared/delete-plan.js +1 -1
  164. package/lib/commands/menu/shared/facts.js +1 -1
  165. package/lib/commands/menu/shared/index.js +1 -1
  166. package/lib/commands/menu/shared/inquirer.js +1 -1
  167. package/lib/commands/menu/shared/local-pages.js +1 -1
  168. package/lib/commands/menu/shared/logic.js +1 -1
  169. package/lib/commands/menu/shared/mutations.js +1 -1
  170. package/lib/commands/menu/shared/service.js +1 -1
  171. package/lib/commands/menu/shared/sync-core.js +1 -1
  172. package/lib/commands/menu/shared/update-core.js +1 -1
  173. package/lib/commands/menu/shared/valid-url.js +1 -1
  174. package/lib/commands/menu/sync.js +1 -1
  175. package/lib/commands/menu/visibility-update.js +1 -1
  176. package/lib/commands/notification/config-create.js +1 -1
  177. package/lib/commands/notification/config-delete.js +1 -1
  178. package/lib/commands/notification/config-list.js +1 -1
  179. package/lib/commands/notification/config-update.js +1 -1
  180. package/lib/commands/notification/index.js +1 -1
  181. package/lib/commands/notification/shared.js +1 -1
  182. package/lib/commands/ocr/index.js +1 -1
  183. package/lib/commands/page/create.js +1 -1
  184. package/lib/commands/page/custom/detail.js +1 -1
  185. package/lib/commands/page/custom/list.js +1 -1
  186. package/lib/commands/page/custom/publish.js +1 -1
  187. package/lib/commands/page/custom/shared.js +1 -1
  188. package/lib/commands/page/custom/syntax.js +1 -1
  189. package/lib/commands/page/custom/update.js +1 -1
  190. package/lib/commands/page/data-list-status.js +1 -1
  191. package/lib/commands/page/generate-start.js +1 -1
  192. package/lib/commands/page/generate-status.js +1 -1
  193. package/lib/commands/page/index.js +1 -1
  194. package/lib/commands/page/pull.js +1 -1
  195. package/lib/commands/page/push.js +1 -1
  196. package/lib/commands/page/relation-audit.js +1 -1
  197. package/lib/commands/page/restore.js +1 -1
  198. package/lib/commands/page/shared.js +1 -1
  199. package/lib/commands/page/sync.js +1 -1
  200. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  201. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  202. package/lib/commands/project/create/format-elapsed.js +1 -1
  203. package/lib/commands/project/create/main.js +1 -1
  204. package/lib/commands/project/create/materialize-project-template.js +1 -1
  205. package/lib/commands/project/create/project-name.js +1 -1
  206. package/lib/commands/project/create/project-template-archive.js +1 -1
  207. package/lib/commands/project/create/project-template-path.js +1 -1
  208. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  209. package/lib/commands/project/create/use-format-code.js +1 -1
  210. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  211. package/lib/commands/project/domain-routing-sync.js +1 -1
  212. package/lib/commands/project/index.js +1 -1
  213. package/lib/commands/project/upgrade.js +1 -1
  214. package/lib/commands/registry.js +1 -1
  215. package/lib/commands/role/delete.js +1 -1
  216. package/lib/commands/role/detail.js +1 -1
  217. package/lib/commands/role/index.js +1 -1
  218. package/lib/commands/role/list.js +1 -1
  219. package/lib/commands/role/shared.js +1 -1
  220. package/lib/commands/role/update.js +1 -1
  221. package/lib/commands/role/user-add.js +1 -1
  222. package/lib/commands/role/user-remove.js +1 -1
  223. package/lib/commands/role/user-resolve.js +1 -1
  224. package/lib/commands/rule/get.js +1 -1
  225. package/lib/commands/rule/index.js +1 -1
  226. package/lib/commands/rule/list.js +1 -1
  227. package/lib/commands/rule/set.js +1 -1
  228. package/lib/commands/rule/shared.js +1 -1
  229. package/lib/commands/run/index.js +1 -1
  230. package/lib/commands/schema.js +1 -1
  231. package/lib/commands/sql/create.js +1 -1
  232. package/lib/commands/sql/delete.js +1 -1
  233. package/lib/commands/sql/detail.js +1 -1
  234. package/lib/commands/sql/exec.js +1 -1
  235. package/lib/commands/sql/index.js +1 -1
  236. package/lib/commands/sql/list.js +1 -1
  237. package/lib/commands/sql/pull.js +1 -1
  238. package/lib/commands/sql/push.js +1 -1
  239. package/lib/commands/sql/shared.js +1 -1
  240. package/lib/commands/sql/status.js +1 -1
  241. package/lib/commands/sql/validate.js +1 -1
  242. package/lib/commands/task/index.js +1 -1
  243. package/lib/commands/task/status.js +1 -1
  244. package/lib/commands/tenant/index.js +1 -1
  245. package/lib/commands/tenant/members-list.js +1 -1
  246. package/lib/commands/tenant/shared.js +1 -1
  247. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  248. package/lib/commands/user-account/index.js +1 -1
  249. package/lib/commands/workspace/add.js +1 -1
  250. package/lib/commands/workspace/index.js +1 -1
  251. package/lib/commands/workspace/remove.js +1 -1
  252. package/lib/config/domain-config.js +1 -1
  253. package/lib/config/project-domain-routing.js +1 -1
  254. package/lib/config/region-config.js +1 -1
  255. package/lib/config/schema.js +1 -1
  256. package/lib/constant/cdn.d.ts +5 -3
  257. package/lib/constant/cdn.js +1 -1
  258. package/lib/constant/cli.js +1 -1
  259. package/lib/constant/defaults.js +1 -1
  260. package/lib/constant/domain.js +1 -1
  261. package/lib/constant/env.js +1 -1
  262. package/lib/constant/output.js +1 -1
  263. package/lib/constant/paths.js +1 -1
  264. package/lib/constant/region.js +1 -1
  265. package/lib/constant/risk.js +1 -1
  266. package/lib/constant/routing-profile.js +1 -1
  267. package/lib/context/app-resolver.js +1 -1
  268. package/lib/context/auth-resolver.js +1 -1
  269. package/lib/context/config-loader.js +1 -1
  270. package/lib/context.js +1 -1
  271. package/lib/core/alias-resolver.js +1 -1
  272. package/lib/core/api-client.js +1 -1
  273. package/lib/core/bff/config.js +1 -1
  274. package/lib/core/bff/file-system.js +1 -1
  275. package/lib/core/bff/hash.js +1 -1
  276. package/lib/core/bff/hook-directory.js +1 -1
  277. package/lib/core/bff/lock.js +1 -1
  278. package/lib/core/bff/utils.js +1 -1
  279. package/lib/core/cross-db-relation.js +1 -1
  280. package/lib/core/db-resolver.js +1 -1
  281. package/lib/core/flow-config.js +1 -1
  282. package/lib/core/instant-api-policy/config.js +1 -1
  283. package/lib/core/kb-search-client.js +1 -1
  284. package/lib/core/page/file-system.js +1 -1
  285. package/lib/core/page/hash.js +1 -1
  286. package/lib/core/page/lock.js +1 -1
  287. package/lib/core/page/lr-smart-jsx.js +1 -1
  288. package/lib/core/sql-index-auditor.js +1 -1
  289. package/lib/core/sql-sync/config.js +1 -1
  290. package/lib/core/sql-sync/file-system.js +1 -1
  291. package/lib/core/sql-sync/hash.js +1 -1
  292. package/lib/core/sql-sync/lock.js +1 -1
  293. package/lib/core/sql-sync/utils.js +1 -1
  294. package/lib/core/sql-validator.js +1 -1
  295. package/lib/errors.js +1 -1
  296. package/lib/framework/build-all-flags.js +1 -1
  297. package/lib/framework/error-output.js +1 -1
  298. package/lib/framework/explicit-yes.js +1 -1
  299. package/lib/framework/flags.js +1 -1
  300. package/lib/framework/help.js +1 -1
  301. package/lib/framework/index.js +1 -1
  302. package/lib/framework/output.js +1 -1
  303. package/lib/framework/response.js +1 -1
  304. package/lib/framework/runner-alias.js +1 -1
  305. package/lib/framework/runner.js +1 -1
  306. package/lib/framework/schema-export.js +1 -1
  307. package/lib/framework/supported-flags.js +1 -1
  308. package/lib/framework/types.js +1 -1
  309. package/lib/generated/build-info.d.ts +4 -4
  310. package/lib/generated/build-info.js +1 -1
  311. package/lib/generated/official-routing.js +1 -1
  312. package/lib/generated/routing-contract.js +1 -1
  313. package/lib/help.js +1 -1
  314. package/lib/postinstall.js +1 -1
  315. package/lib/runtime/confirmation.js +1 -1
  316. package/lib/runtime/event.js +1 -1
  317. package/lib/runtime/index.js +1 -1
  318. package/lib/runtime/queue.js +1 -1
  319. package/lib/runtime/resolve.js +1 -1
  320. package/lib/skills/builtin-skill.js +1 -1
  321. package/lib/skills/main.js +1 -1
  322. package/lib/skills/npx-skills-add.js +1 -1
  323. package/lib/skills/skill-presence.js +1 -1
  324. package/lib/telemetry/cli-command-trace.js +1 -1
  325. package/lib/telemetry/cli-help-trace.js +1 -1
  326. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  327. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  328. package/lib/telemetry/send-cli-trace-log.js +1 -1
  329. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  330. package/lib/utils/ai_config.js +1 -1
  331. package/lib/utils/apply-jq-filter.js +1 -1
  332. package/lib/utils/cdn-config.js +1 -1
  333. package/lib/utils/check-sdk-version.js +1 -1
  334. package/lib/utils/cli-version-check.js +1 -1
  335. package/lib/utils/cli-version-policy.d.ts +7 -0
  336. package/lib/utils/cli-version-policy.js +1 -1
  337. package/lib/utils/config.js +1 -1
  338. package/lib/utils/entity-with-id.js +1 -1
  339. package/lib/utils/file-utils.js +1 -1
  340. package/lib/utils/guides-cdn.js +1 -1
  341. package/lib/utils/http-client.js +1 -1
  342. package/lib/utils/is-non-interactive.js +1 -1
  343. package/lib/utils/logger.js +1 -1
  344. package/lib/utils/params.js +1 -1
  345. package/lib/utils/platform.js +1 -1
  346. package/lib/utils/sleep.js +1 -1
  347. package/lib/utils/template-replacer.js +1 -1
  348. package/lib/utils/update-notice.js +1 -1
  349. package/lib/utils/version.js +1 -1
  350. package/lib/utils/with-active-cookie.js +1 -1
  351. package/lib/utils/write-cli-side-channel.js +1 -1
  352. package/package.json +3 -1
  353. package/skills/rabetbase/SKILL.md +7 -5
  354. package/skills/rabetbase/guides/backend-function.md +5 -1
  355. package/skills/rabetbase/guides/bff-creation-workflow.md +3 -1
  356. package/skills/rabetbase/guides/cross-database-bff.md +70 -0
  357. package/skills/rabetbase/guides/data-api-guidelines.md +35 -33
  358. package/skills/rabetbase/guides/sql-creation-workflow.md +2 -0
  359. package/skills/rabetbase/references/rabetbase-dataset-cross-relations.md +5 -1
  360. package/skills/rabetbase.manifest.json +4 -3
  361. package/templates/README.md +41 -13
@@ -1 +1 @@
1
- (function(_0x38dc0d,_0x111a62){const _0x59922a=a170_0x429d,_0x249577=_0x38dc0d();while(!![]){try{const _0x1bd71a=parseInt(_0x59922a(0x111))/0x1+parseInt(_0x59922a(0x113))/0x2*(parseInt(_0x59922a(0x120))/0x3)+parseInt(_0x59922a(0x11e))/0x4*(parseInt(_0x59922a(0x103))/0x5)+-parseInt(_0x59922a(0x102))/0x6*(parseInt(_0x59922a(0x109))/0x7)+-parseInt(_0x59922a(0x107))/0x8+-parseInt(_0x59922a(0x129))/0x9+-parseInt(_0x59922a(0x116))/0xa;if(_0x1bd71a===_0x111a62)break;else _0x249577['push'](_0x249577['shift']());}catch(_0xd29c17){_0x249577['push'](_0x249577['shift']());}}}(a170_0x4464,0x3ce53));import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';import{getOnlineMenuList,createMenus}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';import{logger}from'../../../utils/logger.js';const MENU_SYNC_PARAM_KEYS=new Set(['jsUrl','cssUrl']);function a170_0x429d(_0x581ebc,_0x3dd28f){_0x581ebc=_0x581ebc-0x100;const _0x446405=a170_0x4464();let _0x429da4=_0x446405[_0x581ebc];return _0x429da4;}function a170_0x4464(){const _0x3c906e=['308036fNKNbr','parse','1399311iXDusg','path','field','Menu\x20sync\x20completed','Invalid\x20--params.','cssUrl','isArray','Local\x20page\x20paths\x20are\x20already\x20on\x20the\x20platform:\x20','import','3259017dZHHch','length','--params.pages\x20is\x20no\x20longer\x20supported.\x20Use\x20--paths\x20with\x20exact\x20local\x20page\x20paths.','Invalid\x20--params:\x20expected\x20a\x20JSON\x20object.','dryRun','has','object','jsUrl','--params.','trim','procode','1110qhplyD','15bzGDLd','No\x20local\x20pages\x20matched\x20paths:\x20','keys','CSS\x20URL\x20is\x20unreachable:\x20','634656bLPtAo','Invalid\x20--params\x20JSON.','5523fzEAIa','setLogPath','label','Start\x20non-interactive\x20menu\x20sync','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL',':\x20expected\x20a\x20non-empty\x20string.','JS\x20URL\x20is\x20unreachable:\x20','hasOwn','272350LXVtNr','push','2oyWfDT','menu-sync','map','1329770lxPBxF','Invalid\x20--params\x20fields:\x20','info','join','filter','pages','message','string'];a170_0x4464=function(){return _0x3c906e;};return a170_0x4464();}function validateParams(_0x44dcf6){const _0x3574ce=a170_0x429d,_0x1eff16=[];return _0x44dcf6['jsUrl']&&!isValidJsHttpsUrl(_0x44dcf6[_0x3574ce(0x130)])&&_0x1eff16[_0x3574ce(0x112)]({'field':_0x3574ce(0x130),'message':_0x3574ce(0x10d)}),_0x44dcf6[_0x3574ce(0x125)]&&!isValidCssHttpsUrl(_0x44dcf6[_0x3574ce(0x125)])&&_0x1eff16[_0x3574ce(0x112)]({'field':_0x3574ce(0x125),'message':'CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'}),_0x1eff16;}export async function runMenuSyncCore(_0x2be851,_0x4ac7d3,_0x415900=[],_0x2dae5b,_0x4b2a17={}){const _0x4a4804=a170_0x429d,_0x512d25=parseMenuSyncParams(_0x2dae5b),_0x1b997c=[...new Set(_0x415900[_0x4a4804(0x115)](_0x3b3e36=>_0x3b3e36[_0x4a4804(0x100)]())[_0x4a4804(0x11a)](Boolean))],_0x2dcd3b=_0x512d25['jsUrl'],_0x57f4a6=_0x512d25[_0x4a4804(0x125)],_0x300136=[];if(_0x2dcd3b)_0x300136[_0x4a4804(0x112)](_0x2dcd3b);if(_0x57f4a6)_0x300136[_0x4a4804(0x112)](_0x57f4a6);const _0x883783=validateParams(_0x512d25);if(_0x883783[_0x4a4804(0x12a)]>0x0){const _0x20878a=_0x883783[_0x4a4804(0x115)](_0x488c44=>_0x4a4804(0x131)+_0x488c44[_0x4a4804(0x122)]+':\x20'+_0x488c44[_0x4a4804(0x11c)])['join'](';\x20');throw new Error('Invalid\x20--params:\x20'+_0x20878a);}logger[_0x4a4804(0x10a)](process['cwd']()),logger[_0x4a4804(0x118)](_0x4a4804(0x114),_0x4a4804(0x10c),{'appCode':_0x2be851,'selectedCount':_0x1b997c[_0x4a4804(0x12a)],'jsUrl':_0x2dcd3b,'cssUrl':_0x57f4a6});if(_0x2dcd3b){const _0x2bc0f3=await isUrlReachable(_0x2dcd3b);if(!_0x2bc0f3)throw new Error(_0x4a4804(0x10f)+_0x2dcd3b);}if(_0x57f4a6){const _0x2ce733=await isUrlReachable(_0x57f4a6);if(!_0x2ce733)throw new Error(_0x4a4804(0x106)+_0x57f4a6);}const _0x234642=getLocalPages();if(_0x234642['length']===0x0){if(_0x1b997c['length']>0x0)throw new Error(_0x4a4804(0x104)+_0x1b997c[_0x4a4804(0x119)](',\x20'));return{'created':0x0,'skipped':!![],'dryRun':_0x4b2a17[_0x4a4804(0x12d)]===!![],'targetPages':[],'plannedMenus':[]};}const _0x181ed9=await getOnlineMenuList(_0x2be851,_0x4ac7d3),_0x42be56=new Set(_0x181ed9[_0x4a4804(0x115)](_0x2dfb53=>_0x2dfb53[_0x4a4804(0x121)]));let _0x5cf577;if(_0x1b997c[_0x4a4804(0x12a)]>0x0){const _0x4b4bca=new Map(_0x234642[_0x4a4804(0x115)](_0x1211c1=>[_0x1211c1[_0x4a4804(0x121)],_0x1211c1])),_0x22ab30=_0x1b997c[_0x4a4804(0x11a)](_0x2bff87=>!_0x4b4bca[_0x4a4804(0x12e)](_0x2bff87));if(_0x22ab30[_0x4a4804(0x12a)]>0x0){const _0x30b683=_0x234642[_0x4a4804(0x115)](_0x32e08b=>_0x32e08b[_0x4a4804(0x121)])[_0x4a4804(0x119)](',\x20');throw new Error(_0x4a4804(0x104)+_0x22ab30[_0x4a4804(0x119)](',\x20')+'\x0a\x20\x20Available\x20local\x20paths:\x20'+_0x30b683);}const _0x34e7f1=_0x1b997c[_0x4a4804(0x11a)](_0x538b48=>_0x42be56[_0x4a4804(0x12e)](_0x538b48));if(_0x34e7f1[_0x4a4804(0x12a)]>0x0)throw new Error(_0x4a4804(0x127)+_0x34e7f1[_0x4a4804(0x119)](',\x20'));_0x5cf577=_0x1b997c[_0x4a4804(0x115)](_0x10684e=>_0x4b4bca['get'](_0x10684e));}else _0x5cf577=_0x234642['filter'](_0x47c166=>!_0x42be56['has'](_0x47c166['path']));if(_0x5cf577[_0x4a4804(0x12a)]===0x0)return{'created':0x0,'skipped':!![],'dryRun':_0x4b2a17[_0x4a4804(0x12d)]===!![],'targetPages':[],'plannedMenus':[]};const _0x27edaf=_0x5cf577[_0x4a4804(0x115)](_0x476bb3=>({'type':_0x4a4804(0x101),'path':_0x476bb3[_0x4a4804(0x121)],'label':_0x476bb3[_0x4a4804(0x10b)],'loadScriptMode':_0x4a4804(0x128),'resources':[..._0x300136]}));if(_0x4b2a17[_0x4a4804(0x12d)])return{'created':0x0,'skipped':![],'dryRun':!![],'targetPages':_0x5cf577,'plannedMenus':_0x27edaf};const _0x19e7cd=await createMenus(_0x2be851,_0x4ac7d3,_0x5cf577,_0x300136[_0x4a4804(0x12a)]>0x0?_0x300136:undefined);return logger[_0x4a4804(0x118)](_0x4a4804(0x114),_0x4a4804(0x123),{'count':_0x5cf577[_0x4a4804(0x12a)],'resources':_0x300136}),{'created':_0x19e7cd[_0x4a4804(0x12a)],'skipped':![],'dryRun':![],'targetPages':_0x5cf577,'plannedMenus':_0x27edaf,'menus':_0x19e7cd};}export function parseMenuSyncParams(_0x132055){const _0xbd12df=a170_0x429d;if(!_0x132055||typeof _0x132055!==_0xbd12df(0x11d))return{};let _0x2ab14a;try{_0x2ab14a=JSON[_0xbd12df(0x11f)](_0x132055);}catch{throw new Error(_0xbd12df(0x108));}if(typeof _0x2ab14a!==_0xbd12df(0x12f)||_0x2ab14a===null||Array[_0xbd12df(0x126)](_0x2ab14a))throw new Error(_0xbd12df(0x12c));const _0x2530ed=_0x2ab14a;if(Object[_0xbd12df(0x110)](_0x2530ed,_0xbd12df(0x11b)))throw new Error(_0xbd12df(0x12b));const _0x468066=Object[_0xbd12df(0x105)](_0x2530ed)[_0xbd12df(0x11a)](_0x99c4e5=>!MENU_SYNC_PARAM_KEYS['has'](_0x99c4e5));if(_0x468066[_0xbd12df(0x12a)]>0x0)throw new Error(_0xbd12df(0x117)+_0x468066[_0xbd12df(0x119)](',\x20')+'.');for(const _0x21ffd0 of MENU_SYNC_PARAM_KEYS){const _0x9c2f49=_0x2530ed[_0x21ffd0];if(_0x9c2f49!==undefined&&(typeof _0x9c2f49!==_0xbd12df(0x11d)||_0x9c2f49[_0xbd12df(0x100)]()===''))throw new Error(_0xbd12df(0x124)+_0x21ffd0+_0xbd12df(0x10e));}return{'jsUrl':typeof _0x2530ed[_0xbd12df(0x130)]==='string'?_0x2530ed['jsUrl'][_0xbd12df(0x100)]():undefined,'cssUrl':typeof _0x2530ed[_0xbd12df(0x125)]==='string'?_0x2530ed[_0xbd12df(0x125)]['trim']():undefined};}
1
+ (function(_0x46e140,_0x41b6aa){const _0x265c26=a170_0x5e30,_0x970bc0=_0x46e140();while(!![]){try{const _0x152b24=parseInt(_0x265c26(0x1fa))/0x1+parseInt(_0x265c26(0x1f1))/0x2*(-parseInt(_0x265c26(0x1ed))/0x3)+-parseInt(_0x265c26(0x1fd))/0x4*(parseInt(_0x265c26(0x200))/0x5)+parseInt(_0x265c26(0x1ec))/0x6+parseInt(_0x265c26(0x1e7))/0x7*(parseInt(_0x265c26(0x1f8))/0x8)+-parseInt(_0x265c26(0x1ea))/0x9*(parseInt(_0x265c26(0x1e8))/0xa)+parseInt(_0x265c26(0x1f5))/0xb;if(_0x152b24===_0x41b6aa)break;else _0x970bc0['push'](_0x970bc0['shift']());}catch(_0x8412bf){_0x970bc0['push'](_0x970bc0['shift']());}}}(a170_0x12e0,0x5a6a6));function a170_0x12e0(){const _0x28b479=['import','Invalid\x20--params\x20fields:\x20','82uyYWSg','Start\x20non-interactive\x20menu\x20sync','push','menu-sync','10344664IMAjVl','Menu\x20sync\x20completed','\x0a\x20\x20Available\x20local\x20paths:\x20','8BDDYvw','cwd','385593qQxVRf','map','dryRun','4VHRlmZ','jsUrl','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','3447265OZbciF','--params.pages\x20is\x20no\x20longer\x20supported.\x20Use\x20--paths\x20with\x20exact\x20local\x20page\x20paths.','cssUrl','join','trim','has','pages','path','string','filter','Invalid\x20--params:\x20','hasOwn','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','parse','object','setLogPath','info','4635715iazqea','2380HtHTrT','length','24237HYuyYO','CSS\x20URL\x20is\x20unreachable:\x20','2518548FtooGg','51753ZSRiLf','message'];a170_0x12e0=function(){return _0x28b479;};return a170_0x12e0();}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 a170_0x5e30(_0x31b913,_0x12f61d){_0x31b913=_0x31b913-0x1d9;const _0x12e01c=a170_0x12e0();let _0x5e30a9=_0x12e01c[_0x31b913];return _0x5e30a9;}import{logger}from'../../../utils/logger.js';const MENU_SYNC_PARAM_KEYS=new Set(['jsUrl','cssUrl']);function validateParams(_0x5991eb){const _0x37ed91=a170_0x5e30,_0x2736ff=[];return _0x5991eb[_0x37ed91(0x1fe)]&&!isValidJsHttpsUrl(_0x5991eb['jsUrl'])&&_0x2736ff[_0x37ed91(0x1f3)]({'field':_0x37ed91(0x1fe),'message':_0x37ed91(0x1e2)}),_0x5991eb[_0x37ed91(0x202)]&&!isValidCssHttpsUrl(_0x5991eb[_0x37ed91(0x202)])&&_0x2736ff[_0x37ed91(0x1f3)]({'field':_0x37ed91(0x202),'message':_0x37ed91(0x1ff)}),_0x2736ff;}export async function runMenuSyncCore(_0x2c1c97,_0x1730b2,_0x57a8c7=[],_0x3c934b,_0x25292f={}){const _0x57b1c2=a170_0x5e30,_0x2e32a1=parseMenuSyncParams(_0x3c934b),_0x3ea68b=[...new Set(_0x57a8c7[_0x57b1c2(0x1fb)](_0x2a109e=>_0x2a109e['trim']())[_0x57b1c2(0x1df)](Boolean))],_0x5bb627=_0x2e32a1[_0x57b1c2(0x1fe)],_0x4442c4=_0x2e32a1[_0x57b1c2(0x202)],_0x37924c=[];if(_0x5bb627)_0x37924c[_0x57b1c2(0x1f3)](_0x5bb627);if(_0x4442c4)_0x37924c[_0x57b1c2(0x1f3)](_0x4442c4);const _0x559e31=validateParams(_0x2e32a1);if(_0x559e31[_0x57b1c2(0x1e9)]>0x0){const _0xcb1925=_0x559e31[_0x57b1c2(0x1fb)](_0x6e8ff3=>'--params.'+_0x6e8ff3['field']+':\x20'+_0x6e8ff3[_0x57b1c2(0x1ee)])[_0x57b1c2(0x1d9)](';\x20');throw new Error(_0x57b1c2(0x1e0)+_0xcb1925);}logger[_0x57b1c2(0x1e5)](process[_0x57b1c2(0x1f9)]()),logger[_0x57b1c2(0x1e6)](_0x57b1c2(0x1f4),_0x57b1c2(0x1f2),{'appCode':_0x2c1c97,'selectedCount':_0x3ea68b[_0x57b1c2(0x1e9)],'jsUrl':_0x5bb627,'cssUrl':_0x4442c4});if(_0x5bb627){const _0x52ba68=await isUrlReachable(_0x5bb627);if(!_0x52ba68)throw new Error('JS\x20URL\x20is\x20unreachable:\x20'+_0x5bb627);}if(_0x4442c4){const _0x178f3c=await isUrlReachable(_0x4442c4);if(!_0x178f3c)throw new Error(_0x57b1c2(0x1eb)+_0x4442c4);}const _0xf3e125=getLocalPages();if(_0xf3e125[_0x57b1c2(0x1e9)]===0x0){if(_0x3ea68b[_0x57b1c2(0x1e9)]>0x0)throw new Error('No\x20local\x20pages\x20matched\x20paths:\x20'+_0x3ea68b['join'](',\x20'));return{'created':0x0,'skipped':!![],'dryRun':_0x25292f[_0x57b1c2(0x1fc)]===!![],'targetPages':[],'plannedMenus':[]};}const _0x5a9077=await getOnlineMenuList(_0x2c1c97,_0x1730b2),_0x5625e0=new Set(_0x5a9077[_0x57b1c2(0x1fb)](_0x32f2d1=>_0x32f2d1[_0x57b1c2(0x1dd)]));let _0x4477da;if(_0x3ea68b['length']>0x0){const _0x5ac44b=new Map(_0xf3e125[_0x57b1c2(0x1fb)](_0x1f88b0=>[_0x1f88b0['path'],_0x1f88b0])),_0x589065=_0x3ea68b[_0x57b1c2(0x1df)](_0x2ac6cc=>!_0x5ac44b[_0x57b1c2(0x1db)](_0x2ac6cc));if(_0x589065[_0x57b1c2(0x1e9)]>0x0){const _0x18c3a7=_0xf3e125[_0x57b1c2(0x1fb)](_0x5812c9=>_0x5812c9['path'])['join'](',\x20');throw new Error('No\x20local\x20pages\x20matched\x20paths:\x20'+_0x589065[_0x57b1c2(0x1d9)](',\x20')+_0x57b1c2(0x1f7)+_0x18c3a7);}const _0xe03d3f=_0x3ea68b['filter'](_0x1946e0=>_0x5625e0[_0x57b1c2(0x1db)](_0x1946e0));if(_0xe03d3f['length']>0x0)throw new Error('Local\x20page\x20paths\x20are\x20already\x20on\x20the\x20platform:\x20'+_0xe03d3f['join'](',\x20'));_0x4477da=_0x3ea68b['map'](_0x30ad40=>_0x5ac44b['get'](_0x30ad40));}else _0x4477da=_0xf3e125[_0x57b1c2(0x1df)](_0x350a81=>!_0x5625e0[_0x57b1c2(0x1db)](_0x350a81['path']));if(_0x4477da[_0x57b1c2(0x1e9)]===0x0)return{'created':0x0,'skipped':!![],'dryRun':_0x25292f['dryRun']===!![],'targetPages':[],'plannedMenus':[]};const _0x157d9c=_0x4477da[_0x57b1c2(0x1fb)](_0x59946a=>({'type':'procode','path':_0x59946a[_0x57b1c2(0x1dd)],'label':_0x59946a['label'],'loadScriptMode':_0x57b1c2(0x1ef),'resources':[..._0x37924c]}));if(_0x25292f[_0x57b1c2(0x1fc)])return{'created':0x0,'skipped':![],'dryRun':!![],'targetPages':_0x4477da,'plannedMenus':_0x157d9c};const _0x5191d2=await createMenus(_0x2c1c97,_0x1730b2,_0x4477da,_0x37924c[_0x57b1c2(0x1e9)]>0x0?_0x37924c:undefined);return logger['info']('menu-sync',_0x57b1c2(0x1f6),{'count':_0x4477da[_0x57b1c2(0x1e9)],'resources':_0x37924c}),{'created':_0x5191d2[_0x57b1c2(0x1e9)],'skipped':![],'dryRun':![],'targetPages':_0x4477da,'plannedMenus':_0x157d9c,'menus':_0x5191d2};}export function parseMenuSyncParams(_0x280d09){const _0xf76969=a170_0x5e30;if(!_0x280d09||typeof _0x280d09!==_0xf76969(0x1de))return{};let _0x23f920;try{_0x23f920=JSON[_0xf76969(0x1e3)](_0x280d09);}catch{throw new Error('Invalid\x20--params\x20JSON.');}if(typeof _0x23f920!==_0xf76969(0x1e4)||_0x23f920===null||Array['isArray'](_0x23f920))throw new Error('Invalid\x20--params:\x20expected\x20a\x20JSON\x20object.');const _0x4d67d2=_0x23f920;if(Object[_0xf76969(0x1e1)](_0x4d67d2,_0xf76969(0x1dc)))throw new Error(_0xf76969(0x201));const _0x35e39b=Object['keys'](_0x4d67d2)['filter'](_0x34602e=>!MENU_SYNC_PARAM_KEYS[_0xf76969(0x1db)](_0x34602e));if(_0x35e39b[_0xf76969(0x1e9)]>0x0)throw new Error(_0xf76969(0x1f0)+_0x35e39b[_0xf76969(0x1d9)](',\x20')+'.');for(const _0x3f8dfa of MENU_SYNC_PARAM_KEYS){const _0x3e1660=_0x4d67d2[_0x3f8dfa];if(_0x3e1660!==undefined&&(typeof _0x3e1660!==_0xf76969(0x1de)||_0x3e1660[_0xf76969(0x1da)]()===''))throw new Error('Invalid\x20--params.'+_0x3f8dfa+':\x20expected\x20a\x20non-empty\x20string.');}return{'jsUrl':typeof _0x4d67d2[_0xf76969(0x1fe)]==='string'?_0x4d67d2[_0xf76969(0x1fe)][_0xf76969(0x1da)]():undefined,'cssUrl':typeof _0x4d67d2[_0xf76969(0x202)]===_0xf76969(0x1de)?_0x4d67d2[_0xf76969(0x202)][_0xf76969(0x1da)]():undefined};}
@@ -1 +1 @@
1
- (function(_0x3c9dbc,_0x172e35){const _0x36826d=a172_0x132b,_0x23b962=_0x3c9dbc();while(!![]){try{const _0x350312=-parseInt(_0x36826d(0x1da))/0x1*(-parseInt(_0x36826d(0x1c1))/0x2)+-parseInt(_0x36826d(0x1dc))/0x3*(parseInt(_0x36826d(0x1b5))/0x4)+parseInt(_0x36826d(0x1a8))/0x5*(-parseInt(_0x36826d(0x1cf))/0x6)+parseInt(_0x36826d(0x1c3))/0x7+-parseInt(_0x36826d(0x1ac))/0x8*(-parseInt(_0x36826d(0x1e6))/0x9)+parseInt(_0x36826d(0x1d7))/0xa*(-parseInt(_0x36826d(0x1d2))/0xb)+parseInt(_0x36826d(0x1ba))/0xc;if(_0x350312===_0x172e35)break;else _0x23b962['push'](_0x23b962['shift']());}catch(_0xe43d99){_0x23b962['push'](_0x23b962['shift']());}}}(a172_0x4b74,0xba3d8));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(_0x238fe4){const _0x240a40=a172_0x132b,_0x5d569b=[];return _0x238fe4[_0x240a40(0x1db)]&&!isValidJsHttpsUrl(_0x238fe4[_0x240a40(0x1db)])&&_0x5d569b['push']({'field':'jsUrl','message':_0x240a40(0x1b6)}),_0x238fe4[_0x240a40(0x1c0)]&&!isValidCssHttpsUrl(_0x238fe4[_0x240a40(0x1c0)])&&_0x5d569b[_0x240a40(0x1b4)]({'field':_0x240a40(0x1c0),'message':_0x240a40(0x1a9)}),_0x5d569b;}export async function runMenuUpdateCore(_0x35f81f,_0x5cc95d,_0x52d812,_0x5e1f89={}){const _0x36905b=a172_0x132b,_0x2ca2de=parseUpdateParamsFlag(_0x52d812),_0x3160b7=normalizeMode(_0x5e1f89['mode']);validateSelection(_0x5e1f89[_0x36905b(0x1ae)]);const _0x56b460=[];if(_0x2ca2de[_0x36905b(0x1db)])_0x56b460[_0x36905b(0x1b4)](_0x2ca2de[_0x36905b(0x1db)]);if(_0x2ca2de[_0x36905b(0x1c0)])_0x56b460[_0x36905b(0x1b4)](_0x2ca2de['cssUrl']);const _0x2cab3e=validateParams(_0x2ca2de);if(_0x2cab3e[_0x36905b(0x1e4)]>0x0){const _0x14f047=_0x2cab3e[_0x36905b(0x1bd)](_0x52d132=>_0x36905b(0x1ea)+_0x52d132[_0x36905b(0x1e5)]+':\x20'+_0x52d132[_0x36905b(0x1e0)])['join'](';\x20');throw new Error(_0x36905b(0x1d9)+_0x14f047);}if(_0x56b460['length']===0x0)throw new Error(_0x36905b(0x1b8)+_0x36905b(0x1c9));logger[_0x36905b(0x1d3)](process[_0x36905b(0x1ab)]()),logger['info'](_0x36905b(0x1c5),_0x36905b(0x1d6),{'appCode':_0x35f81f,'jsUrl':_0x2ca2de[_0x36905b(0x1db)],'cssUrl':_0x2ca2de[_0x36905b(0x1c0)],'mode':_0x3160b7,'dryRun':_0x5e1f89[_0x36905b(0x1d1)]===!![]});if(_0x2ca2de['jsUrl']){const _0x9b0fdb=await isUrlReachable(_0x2ca2de[_0x36905b(0x1db)]);if(!_0x9b0fdb)throw new Error('JS\x20URL\x20is\x20unreachable:\x20'+_0x2ca2de[_0x36905b(0x1db)]);}if(_0x2ca2de['cssUrl']){const _0x50102c=await isUrlReachable(_0x2ca2de['cssUrl']);if(!_0x50102c)throw new Error(_0x36905b(0x1ca)+_0x2ca2de[_0x36905b(0x1c0)]);}const _0x1a5b25=await getOnlineMenuList(_0x35f81f,_0x5cc95d),_0x1456c9=_0x1a5b25[_0x36905b(0x1b9)](_0x1065a0=>_0x1065a0['resources'][_0x36905b(0x1e4)]>0x0),_0x21a446=selectMenusForUpdate(_0x1456c9,_0x5e1f89[_0x36905b(0x1ae)]);if(_0x21a446[_0x36905b(0x1e4)]===0x0)return{'updated':0x0,'failed':0x0,'skipped':!![],'dryRun':_0x5e1f89[_0x36905b(0x1d1)]===!![]};const _0x51ee58=_0x21a446[_0x36905b(0x1bd)](_0x127d13=>buildMenuUpdateDiff(_0x127d13,_0x2ca2de,_0x3160b7,_0x5e1f89[_0x36905b(0x1d0)]===!![],_0x5e1f89[_0x36905b(0x1e1)]));if(_0x5e1f89['dryRun'])return{'updated':0x0,'failed':0x0,'skipped':![],'dryRun':!![],'diffs':_0x51ee58};const _0x963576=await Promise['allSettled'](_0x21a446[_0x36905b(0x1bd)]((_0x1d5171,_0x32a1e0)=>updateMenuCdnUrl(_0x35f81f,_0x5cc95d,{'id':_0x1d5171['id'],'label':_0x1d5171[_0x36905b(0x1dd)],'path':_0x1d5171[_0x36905b(0x1bb)],'resources':_0x51ee58[_0x32a1e0]['after'][_0x36905b(0x1e3)],'extend':_0x1d5171['extend']??null,'loadScriptMode':_0x5e1f89[_0x36905b(0x1e1)]}))),_0x571101=_0x963576['filter'](_0x31ea83=>_0x31ea83[_0x36905b(0x1cb)]===_0x36905b(0x1b2))[_0x36905b(0x1bd)](_0x569f31=>_0x569f31[_0x36905b(0x1bf)]),_0x244d91=_0x963576[_0x36905b(0x1b9)](_0x35fa4e=>_0x35fa4e[_0x36905b(0x1cb)]===_0x36905b(0x1d4))[_0x36905b(0x1e4)];return logger[_0x36905b(0x1ad)](_0x36905b(0x1c5),'Menu\x20asset\x20update\x20completed',{'count':_0x21a446[_0x36905b(0x1e4)],'resources':_0x56b460}),{'updated':_0x571101[_0x36905b(0x1e4)],'failed':_0x244d91,'skipped':![],'menus':_0x571101};}function validateSelection(_0x3afbe2){const _0x51d245=a172_0x132b;if(!_0x3afbe2)throw new Error(_0x51d245(0x1aa));if(_0x3afbe2[_0x51d245(0x1c8)]&&(_0x3afbe2[_0x51d245(0x1de)]['length']>0x0||_0x3afbe2[_0x51d245(0x1b0)]['length']>0x0))throw new Error(_0x51d245(0x1e2));if(!_0x3afbe2[_0x51d245(0x1c8)]&&_0x3afbe2[_0x51d245(0x1de)][_0x51d245(0x1e4)]===0x0&&_0x3afbe2[_0x51d245(0x1b0)]['length']===0x0)throw new Error('menu\x20asset-update\x20requires\x20an\x20explicit\x20target:\x20pass\x20--all,\x20--menu-ids,\x20or\x20--paths.');}export function selectMenusForUpdate(_0x2a9c94,_0x39ee40){const _0x3e120c=a172_0x132b;validateSelection(_0x39ee40);if(_0x39ee40[_0x3e120c(0x1c8)])return _0x2a9c94;const _0x2d2d71=new Set(_0x2a9c94[_0x3e120c(0x1bd)](_0x3e7a16=>_0x3e7a16['id'])),_0xb5c3d6=new Set(_0x2a9c94[_0x3e120c(0x1bd)](_0x3c0fe6=>_0x3c0fe6[_0x3e120c(0x1bb)])),_0x37e72b=_0x39ee40[_0x3e120c(0x1de)][_0x3e120c(0x1b9)](_0x2f39f0=>!_0x2d2d71[_0x3e120c(0x1cd)](_0x2f39f0)),_0x5e2770=_0x39ee40[_0x3e120c(0x1b0)][_0x3e120c(0x1b9)](_0x37a562=>!_0xb5c3d6[_0x3e120c(0x1cd)](_0x37a562));if(_0x37e72b[_0x3e120c(0x1e4)]>0x0||_0x5e2770[_0x3e120c(0x1e4)]>0x0){const _0xe26a38=[..._0x37e72b[_0x3e120c(0x1bd)](_0x49370b=>String(_0x49370b)),..._0x5e2770][_0x3e120c(0x1e7)](',\x20');throw new Error(_0x3e120c(0x1df)+_0xe26a38);}const _0x511ea8=new Set(_0x39ee40[_0x3e120c(0x1de)]),_0x5aeb24=new Set(_0x39ee40[_0x3e120c(0x1b0)]);return _0x2a9c94[_0x3e120c(0x1b9)](_0x5a3064=>_0x511ea8[_0x3e120c(0x1cd)](_0x5a3064['id'])||_0x5aeb24[_0x3e120c(0x1cd)](_0x5a3064[_0x3e120c(0x1bb)]));}function a172_0x132b(_0x360c46,_0x2f41eb){_0x360c46=_0x360c46-0x1a7;const _0x4b7482=a172_0x4b74();let _0x132b77=_0x4b7482[_0x360c46];return _0x132b77;}function normalizeMode(_0x46f1e1){const _0x135a1d=a172_0x132b;if(!_0x46f1e1)return _0x135a1d(0x1bc);if(_0x46f1e1===_0x135a1d(0x1c2)||_0x46f1e1==='patch')return _0x46f1e1;throw new Error('Invalid\x20--mode:\x20'+_0x46f1e1+_0x135a1d(0x1eb));}function buildMenuUpdateDiff(_0x51c471,_0x1e5ba5,_0x11598d,_0x66d1cb,_0x5938a0){const _0x32c1c6=a172_0x132b,_0x32b182=[..._0x51c471[_0x32c1c6(0x1e3)]];_0x11598d===_0x32c1c6(0x1bc)&&assertUnambiguousPatchResources(_0x51c471,_0x32b182,_0x1e5ba5);const _0x156fc5=_0x11598d===_0x32c1c6(0x1bc)?patchResources(_0x32b182,_0x1e5ba5):replaceResources(_0x1e5ba5),_0x9c82=[],_0x517321=_0x32b182[_0x32c1c6(0x1b7)](isJsResource),_0x3e6a80=_0x156fc5[_0x32c1c6(0x1b7)](isJsResource);if(_0x517321&&!_0x3e6a80){const _0x49f492='menu\x20asset-update\x20would\x20remove\x20existing\x20JS\x20resource\x20for\x20\x22'+_0x51c471[_0x32c1c6(0x1dd)]+_0x32c1c6(0x1b1)+_0x51c471[_0x32c1c6(0x1bb)]+').\x20'+_0x32c1c6(0x1c4);if(!_0x66d1cb)throw new Error(_0x49f492);_0x9c82[_0x32c1c6(0x1b4)](_0x49f492);}const _0x970dc7=_0x32b182['some'](isCssResource),_0x37ab97=_0x156fc5['some'](isCssResource);_0x970dc7&&!_0x37ab97&&_0x9c82[_0x32c1c6(0x1b4)](_0x32c1c6(0x1d8)+_0x51c471[_0x32c1c6(0x1dd)]+_0x32c1c6(0x1b1)+_0x51c471[_0x32c1c6(0x1bb)]+').');const _0x33e268=typeof _0x51c471[_0x32c1c6(0x1e9)]?.['loadScriptMode']===_0x32c1c6(0x1af)?_0x51c471[_0x32c1c6(0x1e9)][_0x32c1c6(0x1e1)]:null,_0x59b7bd=_0x5938a0?{'loadScriptMode':_0x33e268}:{},_0xa2fbe3=_0x5938a0?{'loadScriptMode':_0x5938a0}:{};return{'id':_0x51c471['id'],'label':_0x51c471['label'],'path':_0x51c471[_0x32c1c6(0x1bb)],'mode':_0x11598d,'before':{'resources':_0x32b182,..._0x59b7bd},'after':{'resources':_0x156fc5,..._0xa2fbe3},'warnings':_0x9c82};}function replaceResources(_0x880dbe){const _0xef2ddb=a172_0x132b;return[_0x880dbe[_0xef2ddb(0x1db)],_0x880dbe[_0xef2ddb(0x1c0)]][_0xef2ddb(0x1b9)](_0x3e2df1=>!!_0x3e2df1);}function assertUnambiguousPatchResources(_0x35f505,_0x1d98fc,_0x3f32e2){const _0x405441=a172_0x132b,_0x4394bd=_0x1d98fc['filter'](isJsResource)[_0x405441(0x1e4)];if(_0x3f32e2[_0x405441(0x1db)]&&_0x4394bd>0x1)throw new Error(_0x405441(0x1c6)+_0x4394bd+'\x20existing\x20JS\x20resources\x20for\x20\x22'+_0x35f505[_0x405441(0x1dd)]+_0x405441(0x1b1)+_0x35f505[_0x405441(0x1bb)]+')\x20'+'with\x20a\x20single\x20jsUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.');const _0x1c139e=_0x1d98fc['filter'](isCssResource)[_0x405441(0x1e4)];if(_0x3f32e2[_0x405441(0x1c0)]&&_0x1c139e>0x1)throw new Error(_0x405441(0x1c6)+_0x1c139e+'\x20existing\x20CSS\x20resources\x20for\x20\x22'+_0x35f505[_0x405441(0x1dd)]+_0x405441(0x1b1)+_0x35f505[_0x405441(0x1bb)]+')\x20'+_0x405441(0x1a7));}function patchResources(_0x265cd2,_0x109bdb){const _0x39ec1f=a172_0x132b;let _0x487be1=![],_0x298448=![];const _0x1c748d=[];for(const _0xbd09d1 of _0x265cd2){if(isJsResource(_0xbd09d1)){if(_0x109bdb[_0x39ec1f(0x1db)]&&!_0x487be1)_0x1c748d[_0x39ec1f(0x1b4)](_0x109bdb[_0x39ec1f(0x1db)]),_0x487be1=!![];else!_0x109bdb['jsUrl']&&_0x1c748d[_0x39ec1f(0x1b4)](_0xbd09d1);continue;}if(isCssResource(_0xbd09d1)){if(_0x109bdb[_0x39ec1f(0x1c0)]&&!_0x298448)_0x1c748d[_0x39ec1f(0x1b4)](_0x109bdb[_0x39ec1f(0x1c0)]),_0x298448=!![];else!_0x109bdb[_0x39ec1f(0x1c0)]&&_0x1c748d[_0x39ec1f(0x1b4)](_0xbd09d1);continue;}_0x1c748d[_0x39ec1f(0x1b4)](_0xbd09d1);}return _0x109bdb[_0x39ec1f(0x1db)]&&!_0x487be1&&_0x1c748d[_0x39ec1f(0x1b3)](_0x109bdb[_0x39ec1f(0x1db)]),_0x109bdb[_0x39ec1f(0x1c0)]&&!_0x298448&&_0x1c748d[_0x39ec1f(0x1b4)](_0x109bdb[_0x39ec1f(0x1c0)]),_0x1c748d;}function isJsResource(_0x293e69){const _0x425723=a172_0x132b;return stripQuery(_0x293e69)[_0x425723(0x1be)]()[_0x425723(0x1cc)](_0x425723(0x1c7));}function isCssResource(_0x4dea68){const _0x628cce=a172_0x132b;return stripQuery(_0x4dea68)[_0x628cce(0x1be)]()[_0x628cce(0x1cc)](_0x628cce(0x1d5));}function a172_0x4b74(){const _0x159c5d=['unshift','push','83960ZafWIu','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','some','Invalid\x20--params:\x20menu\x20asset-update\x20requires\x20at\x20least\x20one\x20explicit\x20JS/CSS\x20URL.\x20','filter','5326656iQdRjc','path','patch','map','toLowerCase','value','cssUrl','20wXzqKy','replace','6978678fdEPxS','Use\x20--mode\x20patch\x20to\x20preserve\x20it,\x20pass\x20jsUrl,\x20or\x20add\x20--force\x20for\x20an\x20intentional\x20removal.','menu-asset-update','menu\x20asset-update\x20cannot\x20patch\x20','.js','all','Pass\x20--params\x20\x27{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}\x27\x20to\x20update\x20assets.','CSS\x20URL\x20is\x20unreachable:\x20','status','endsWith','has','trim','31338yQNVhC','force','dryRun','3398461TxZfIK','setLogPath','rejected','.css','Start\x20non-interactive\x20menu\x20asset\x20update','10RLynjH','menu\x20asset-update\x20will\x20remove\x20existing\x20CSS\x20resource\x20for\x20\x22','Invalid\x20--params:\x20','50071Ylfjlb','jsUrl','186LCHrDC','label','menuIds','menu\x20asset-update\x20selectors\x20did\x20not\x20match\x20resource-bearing\x20menus:\x20','message','loadScriptMode','--all\x20cannot\x20be\x20combined\x20with\x20--menu-ids\x20or\x20--paths.','resources','length','field','4260627GPcGUg','join','isArray','extend','--params.','.\x20Allowed\x20values:\x20replace,\x20patch','with\x20a\x20single\x20cssUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.','40Lkrhxc','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','menu\x20asset-update\x20requires\x20an\x20explicit\x20target:\x20pass\x20--all,\x20--menu-ids,\x20or\x20--paths.','cwd','8wvVQMy','info','selection','string','paths','\x22\x20(','fulfilled'];a172_0x4b74=function(){return _0x159c5d;};return a172_0x4b74();}function stripQuery(_0x2bd70e){return _0x2bd70e['split']('?')[0x0]??_0x2bd70e;}function parseUpdateParamsFlag(_0x415d7e){const _0xbbc153=a172_0x132b;if(!_0x415d7e||typeof _0x415d7e!==_0xbbc153(0x1af))return{};try{const _0x5cd142=JSON['parse'](_0x415d7e);if(typeof _0x5cd142!=='object'||_0x5cd142===null||Array[_0xbbc153(0x1e8)](_0x5cd142))return{};return{'jsUrl':typeof _0x5cd142[_0xbbc153(0x1db)]==='string'?_0x5cd142['jsUrl'][_0xbbc153(0x1ce)]():undefined,'cssUrl':typeof _0x5cd142[_0xbbc153(0x1c0)]===_0xbbc153(0x1af)?_0x5cd142[_0xbbc153(0x1c0)][_0xbbc153(0x1ce)]():undefined};}catch{return{};}}
1
+ (function(_0xacce8a,_0x1284c){const _0x1e5f06=a172_0x5cd9,_0x15d938=_0xacce8a();while(!![]){try{const _0xa8e3e=-parseInt(_0x1e5f06(0x18e))/0x1*(-parseInt(_0x1e5f06(0x18c))/0x2)+-parseInt(_0x1e5f06(0x170))/0x3+parseInt(_0x1e5f06(0x18b))/0x4+parseInt(_0x1e5f06(0x16c))/0x5*(parseInt(_0x1e5f06(0x17e))/0x6)+parseInt(_0x1e5f06(0x171))/0x7*(parseInt(_0x1e5f06(0x17f))/0x8)+-parseInt(_0x1e5f06(0x176))/0x9+-parseInt(_0x1e5f06(0x15b))/0xa;if(_0xa8e3e===_0x1284c)break;else _0x15d938['push'](_0x15d938['shift']());}catch(_0x5edcc5){_0x15d938['push'](_0x15d938['shift']());}}}(a172_0x6f9e,0xbcd41));import{updateMenuCdnUrl,getOnlineMenuList}from'../../../commands/menu/shared/service.js';function a172_0x6f9e(){const _0xb94e66=['object','patch','Pass\x20--params\x20\x27{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}\x27\x20to\x20update\x20assets.','.js','3520368mVDlDl','has','fulfilled','map','some','allSettled','message','JS\x20URL\x20is\x20unreachable:\x20','2862876OJTPTm','63688TGivMk','extend','path','trim','Invalid\x20--params:\x20menu\x20asset-update\x20requires\x20at\x20least\x20one\x20explicit\x20JS/CSS\x20URL.\x20','\x20existing\x20JS\x20resources\x20for\x20\x22','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','status',').\x20','after','replace','paths','4746088nQmJWg','46KPneQn','resources','55315MBwTje','cwd','dryRun','label','filter','Menu\x20asset\x20update\x20completed','menuIds','with\x20a\x20single\x20cssUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.','info','menu\x20asset-update\x20would\x20remove\x20existing\x20JS\x20resource\x20for\x20\x22','menu\x20asset-update\x20requires\x20an\x20explicit\x20target:\x20pass\x20--all,\x20--menu-ids,\x20or\x20--paths.','loadScriptMode','--params.','unshift','cssUrl','value','force','mode','\x22\x20(','menu\x20asset-update\x20will\x20remove\x20existing\x20CSS\x20resource\x20for\x20\x22','25550650JdedGC','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','all','Start\x20non-interactive\x20menu\x20asset\x20update','--all\x20cannot\x20be\x20combined\x20with\x20--menu-ids\x20or\x20--paths.','parse','selection','Invalid\x20--mode:\x20','length','.\x20Allowed\x20values:\x20replace,\x20patch','endsWith','toLowerCase','.css','menu\x20asset-update\x20cannot\x20patch\x20','string','menu-asset-update','push','10iGMXtq','jsUrl','Use\x20--mode\x20patch\x20to\x20preserve\x20it,\x20pass\x20jsUrl,\x20or\x20add\x20--force\x20for\x20an\x20intentional\x20removal.','join','1564035GdddGV','728rWokZa'];a172_0x6f9e=function(){return _0xb94e66;};return a172_0x6f9e();}import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';import{logger}from'../../../utils/logger.js';function validateParams(_0xaf7d68){const _0x126efd=a172_0x5cd9,_0x545a7e=[];return _0xaf7d68[_0x126efd(0x16d)]&&!isValidJsHttpsUrl(_0xaf7d68['jsUrl'])&&_0x545a7e[_0x126efd(0x16b)]({'field':_0x126efd(0x16d),'message':_0x126efd(0x15c)}),_0xaf7d68[_0x126efd(0x155)]&&!isValidCssHttpsUrl(_0xaf7d68[_0x126efd(0x155)])&&_0x545a7e[_0x126efd(0x16b)]({'field':_0x126efd(0x155),'message':_0x126efd(0x185)}),_0x545a7e;}export async function runMenuUpdateCore(_0xf10824,_0x5366f4,_0x186565,_0x358b22={}){const _0x507c13=a172_0x5cd9,_0x37aebc=parseUpdateParamsFlag(_0x186565),_0x153011=normalizeMode(_0x358b22[_0x507c13(0x158)]);validateSelection(_0x358b22[_0x507c13(0x161)]);const _0xad22b6=[];if(_0x37aebc['jsUrl'])_0xad22b6[_0x507c13(0x16b)](_0x37aebc[_0x507c13(0x16d)]);if(_0x37aebc['cssUrl'])_0xad22b6[_0x507c13(0x16b)](_0x37aebc[_0x507c13(0x155)]);const _0x4bafdf=validateParams(_0x37aebc);if(_0x4bafdf['length']>0x0){const _0x43b8ae=_0x4bafdf['map'](_0x27a7fe=>_0x507c13(0x153)+_0x27a7fe['field']+':\x20'+_0x27a7fe[_0x507c13(0x17c)])['join'](';\x20');throw new Error('Invalid\x20--params:\x20'+_0x43b8ae);}if(_0xad22b6['length']===0x0)throw new Error(_0x507c13(0x183)+_0x507c13(0x174));logger['setLogPath'](process[_0x507c13(0x18f)]()),logger[_0x507c13(0x196)](_0x507c13(0x16a),_0x507c13(0x15e),{'appCode':_0xf10824,'jsUrl':_0x37aebc[_0x507c13(0x16d)],'cssUrl':_0x37aebc[_0x507c13(0x155)],'mode':_0x153011,'dryRun':_0x358b22[_0x507c13(0x190)]===!![]});if(_0x37aebc['jsUrl']){const _0x5e24b3=await isUrlReachable(_0x37aebc[_0x507c13(0x16d)]);if(!_0x5e24b3)throw new Error(_0x507c13(0x17d)+_0x37aebc['jsUrl']);}if(_0x37aebc[_0x507c13(0x155)]){const _0x1191ae=await isUrlReachable(_0x37aebc[_0x507c13(0x155)]);if(!_0x1191ae)throw new Error('CSS\x20URL\x20is\x20unreachable:\x20'+_0x37aebc[_0x507c13(0x155)]);}const _0x3a955d=await getOnlineMenuList(_0xf10824,_0x5366f4),_0x3e232f=_0x3a955d[_0x507c13(0x192)](_0x12330d=>_0x12330d[_0x507c13(0x18d)][_0x507c13(0x163)]>0x0),_0x4993f3=selectMenusForUpdate(_0x3e232f,_0x358b22[_0x507c13(0x161)]);if(_0x4993f3[_0x507c13(0x163)]===0x0)return{'updated':0x0,'failed':0x0,'skipped':!![],'dryRun':_0x358b22['dryRun']===!![]};const _0x23edcc=_0x4993f3['map'](_0x5505c7=>buildMenuUpdateDiff(_0x5505c7,_0x37aebc,_0x153011,_0x358b22[_0x507c13(0x157)]===!![],_0x358b22[_0x507c13(0x152)]));if(_0x358b22[_0x507c13(0x190)])return{'updated':0x0,'failed':0x0,'skipped':![],'dryRun':!![],'diffs':_0x23edcc};const _0x350b22=await Promise[_0x507c13(0x17b)](_0x4993f3[_0x507c13(0x179)]((_0x2a7709,_0x3a6899)=>updateMenuCdnUrl(_0xf10824,_0x5366f4,{'id':_0x2a7709['id'],'label':_0x2a7709[_0x507c13(0x191)],'path':_0x2a7709[_0x507c13(0x181)],'resources':_0x23edcc[_0x3a6899][_0x507c13(0x188)]['resources'],'extend':_0x2a7709[_0x507c13(0x180)]??null,'loadScriptMode':_0x358b22[_0x507c13(0x152)]}))),_0x300b54=_0x350b22['filter'](_0x20244c=>_0x20244c[_0x507c13(0x186)]===_0x507c13(0x178))[_0x507c13(0x179)](_0x2b2ec3=>_0x2b2ec3[_0x507c13(0x156)]),_0x36e363=_0x350b22[_0x507c13(0x192)](_0x487442=>_0x487442[_0x507c13(0x186)]==='rejected')[_0x507c13(0x163)];return logger['info'](_0x507c13(0x16a),_0x507c13(0x193),{'count':_0x4993f3[_0x507c13(0x163)],'resources':_0xad22b6}),{'updated':_0x300b54[_0x507c13(0x163)],'failed':_0x36e363,'skipped':![],'menus':_0x300b54};}function validateSelection(_0x390904){const _0x3331c6=a172_0x5cd9;if(!_0x390904)throw new Error(_0x3331c6(0x198));if(_0x390904[_0x3331c6(0x15d)]&&(_0x390904[_0x3331c6(0x194)]['length']>0x0||_0x390904[_0x3331c6(0x18a)][_0x3331c6(0x163)]>0x0))throw new Error(_0x3331c6(0x15f));if(!_0x390904['all']&&_0x390904[_0x3331c6(0x194)]['length']===0x0&&_0x390904[_0x3331c6(0x18a)][_0x3331c6(0x163)]===0x0)throw new Error(_0x3331c6(0x198));}function a172_0x5cd9(_0x2269b0,_0x19f07d){_0x2269b0=_0x2269b0-0x152;const _0x6f9e10=a172_0x6f9e();let _0x5cd98e=_0x6f9e10[_0x2269b0];return _0x5cd98e;}export function selectMenusForUpdate(_0x4ccca6,_0x59f0d1){const _0x23b710=a172_0x5cd9;validateSelection(_0x59f0d1);if(_0x59f0d1[_0x23b710(0x15d)])return _0x4ccca6;const _0x28b8c9=new Set(_0x4ccca6[_0x23b710(0x179)](_0xd348f0=>_0xd348f0['id'])),_0xf3d389=new Set(_0x4ccca6[_0x23b710(0x179)](_0x3a01f8=>_0x3a01f8['path'])),_0x2781e6=_0x59f0d1[_0x23b710(0x194)][_0x23b710(0x192)](_0x207f03=>!_0x28b8c9[_0x23b710(0x177)](_0x207f03)),_0x38ff45=_0x59f0d1['paths']['filter'](_0x578eb9=>!_0xf3d389[_0x23b710(0x177)](_0x578eb9));if(_0x2781e6[_0x23b710(0x163)]>0x0||_0x38ff45['length']>0x0){const _0x22d08e=[..._0x2781e6[_0x23b710(0x179)](_0x5f398c=>String(_0x5f398c)),..._0x38ff45][_0x23b710(0x16f)](',\x20');throw new Error('menu\x20asset-update\x20selectors\x20did\x20not\x20match\x20resource-bearing\x20menus:\x20'+_0x22d08e);}const _0x4613a8=new Set(_0x59f0d1[_0x23b710(0x194)]),_0x477ce1=new Set(_0x59f0d1['paths']);return _0x4ccca6[_0x23b710(0x192)](_0x36cad4=>_0x4613a8[_0x23b710(0x177)](_0x36cad4['id'])||_0x477ce1[_0x23b710(0x177)](_0x36cad4[_0x23b710(0x181)]));}function normalizeMode(_0x278b54){const _0x50325a=a172_0x5cd9;if(!_0x278b54)return'patch';if(_0x278b54===_0x50325a(0x189)||_0x278b54===_0x50325a(0x173))return _0x278b54;throw new Error(_0x50325a(0x162)+_0x278b54+_0x50325a(0x164));}function buildMenuUpdateDiff(_0x4bb865,_0x697c19,_0xecb5eb,_0x368c81,_0x54668f){const _0x45c7b2=a172_0x5cd9,_0x1cc8c5=[..._0x4bb865[_0x45c7b2(0x18d)]];_0xecb5eb===_0x45c7b2(0x173)&&assertUnambiguousPatchResources(_0x4bb865,_0x1cc8c5,_0x697c19);const _0x271a13=_0xecb5eb===_0x45c7b2(0x173)?patchResources(_0x1cc8c5,_0x697c19):replaceResources(_0x697c19),_0x18d732=[],_0x365ef7=_0x1cc8c5['some'](isJsResource),_0x46d40c=_0x271a13[_0x45c7b2(0x17a)](isJsResource);if(_0x365ef7&&!_0x46d40c){const _0x5d331d=_0x45c7b2(0x197)+_0x4bb865['label']+_0x45c7b2(0x159)+_0x4bb865[_0x45c7b2(0x181)]+_0x45c7b2(0x187)+_0x45c7b2(0x16e);if(!_0x368c81)throw new Error(_0x5d331d);_0x18d732[_0x45c7b2(0x16b)](_0x5d331d);}const _0x399985=_0x1cc8c5[_0x45c7b2(0x17a)](isCssResource),_0x2b156b=_0x271a13[_0x45c7b2(0x17a)](isCssResource);_0x399985&&!_0x2b156b&&_0x18d732['push'](_0x45c7b2(0x15a)+_0x4bb865['label']+_0x45c7b2(0x159)+_0x4bb865[_0x45c7b2(0x181)]+').');const _0x3680d4=typeof _0x4bb865[_0x45c7b2(0x180)]?.[_0x45c7b2(0x152)]===_0x45c7b2(0x169)?_0x4bb865[_0x45c7b2(0x180)][_0x45c7b2(0x152)]:null,_0x3fecd9=_0x54668f?{'loadScriptMode':_0x3680d4}:{},_0x314b08=_0x54668f?{'loadScriptMode':_0x54668f}:{};return{'id':_0x4bb865['id'],'label':_0x4bb865['label'],'path':_0x4bb865[_0x45c7b2(0x181)],'mode':_0xecb5eb,'before':{'resources':_0x1cc8c5,..._0x3fecd9},'after':{'resources':_0x271a13,..._0x314b08},'warnings':_0x18d732};}function replaceResources(_0x1cb490){const _0x48e95e=a172_0x5cd9;return[_0x1cb490['jsUrl'],_0x1cb490[_0x48e95e(0x155)]][_0x48e95e(0x192)](_0x1460f7=>!!_0x1460f7);}function assertUnambiguousPatchResources(_0x1f9651,_0x538cb2,_0x17dd77){const _0x20ca38=a172_0x5cd9,_0x1477e9=_0x538cb2[_0x20ca38(0x192)](isJsResource)['length'];if(_0x17dd77[_0x20ca38(0x16d)]&&_0x1477e9>0x1)throw new Error(_0x20ca38(0x168)+_0x1477e9+_0x20ca38(0x184)+_0x1f9651[_0x20ca38(0x191)]+_0x20ca38(0x159)+_0x1f9651['path']+')\x20'+'with\x20a\x20single\x20jsUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.');const _0x2ec4d3=_0x538cb2[_0x20ca38(0x192)](isCssResource)[_0x20ca38(0x163)];if(_0x17dd77[_0x20ca38(0x155)]&&_0x2ec4d3>0x1)throw new Error(_0x20ca38(0x168)+_0x2ec4d3+'\x20existing\x20CSS\x20resources\x20for\x20\x22'+_0x1f9651[_0x20ca38(0x191)]+'\x22\x20('+_0x1f9651['path']+')\x20'+_0x20ca38(0x195));}function patchResources(_0x58115d,_0x16427e){const _0xc7c8d6=a172_0x5cd9;let _0x3bb6d2=![],_0x14b45b=![];const _0x48dff7=[];for(const _0x5ba921 of _0x58115d){if(isJsResource(_0x5ba921)){if(_0x16427e[_0xc7c8d6(0x16d)]&&!_0x3bb6d2)_0x48dff7[_0xc7c8d6(0x16b)](_0x16427e[_0xc7c8d6(0x16d)]),_0x3bb6d2=!![];else!_0x16427e['jsUrl']&&_0x48dff7[_0xc7c8d6(0x16b)](_0x5ba921);continue;}if(isCssResource(_0x5ba921)){if(_0x16427e[_0xc7c8d6(0x155)]&&!_0x14b45b)_0x48dff7[_0xc7c8d6(0x16b)](_0x16427e[_0xc7c8d6(0x155)]),_0x14b45b=!![];else!_0x16427e[_0xc7c8d6(0x155)]&&_0x48dff7[_0xc7c8d6(0x16b)](_0x5ba921);continue;}_0x48dff7[_0xc7c8d6(0x16b)](_0x5ba921);}return _0x16427e['jsUrl']&&!_0x3bb6d2&&_0x48dff7[_0xc7c8d6(0x154)](_0x16427e[_0xc7c8d6(0x16d)]),_0x16427e[_0xc7c8d6(0x155)]&&!_0x14b45b&&_0x48dff7[_0xc7c8d6(0x16b)](_0x16427e[_0xc7c8d6(0x155)]),_0x48dff7;}function isJsResource(_0x2d8618){const _0x53194e=a172_0x5cd9;return stripQuery(_0x2d8618)['toLowerCase']()[_0x53194e(0x165)](_0x53194e(0x175));}function isCssResource(_0x30a66e){const _0x3b6be2=a172_0x5cd9;return stripQuery(_0x30a66e)[_0x3b6be2(0x166)]()[_0x3b6be2(0x165)](_0x3b6be2(0x167));}function stripQuery(_0x2a0490){return _0x2a0490['split']('?')[0x0]??_0x2a0490;}function parseUpdateParamsFlag(_0x1d7fe1){const _0x46de44=a172_0x5cd9;if(!_0x1d7fe1||typeof _0x1d7fe1!==_0x46de44(0x169))return{};try{const _0x14b857=JSON[_0x46de44(0x160)](_0x1d7fe1);if(typeof _0x14b857!==_0x46de44(0x172)||_0x14b857===null||Array['isArray'](_0x14b857))return{};return{'jsUrl':typeof _0x14b857[_0x46de44(0x16d)]==='string'?_0x14b857[_0x46de44(0x16d)][_0x46de44(0x182)]():undefined,'cssUrl':typeof _0x14b857[_0x46de44(0x155)]===_0x46de44(0x169)?_0x14b857[_0x46de44(0x155)][_0x46de44(0x182)]():undefined};}catch{return{};}}
@@ -1 +1 @@
1
- (function(_0x345b03,_0x251965){const _0x4556cf=a173_0x18de,_0x1f5432=_0x345b03();while(!![]){try{const _0x258c2f=-parseInt(_0x4556cf(0xad))/0x1+parseInt(_0x4556cf(0xa8))/0x2+parseInt(_0x4556cf(0xb7))/0x3*(-parseInt(_0x4556cf(0xb3))/0x4)+parseInt(_0x4556cf(0xb6))/0x5*(-parseInt(_0x4556cf(0xb4))/0x6)+parseInt(_0x4556cf(0xb2))/0x7*(-parseInt(_0x4556cf(0xa6))/0x8)+parseInt(_0x4556cf(0xaf))/0x9*(-parseInt(_0x4556cf(0xb0))/0xa)+-parseInt(_0x4556cf(0xb5))/0xb*(-parseInt(_0x4556cf(0xaa))/0xc);if(_0x258c2f===_0x251965)break;else _0x1f5432['push'](_0x1f5432['shift']());}catch(_0x408c78){_0x1f5432['push'](_0x1f5432['shift']());}}}(a173_0x52db,0x701c9));export function isValidJsHttpsUrl(_0x28b5e1){const _0x114b5f=a173_0x18de;return/^https:\/\/.+\.js(\?.*)?$/['test'](_0x28b5e1[_0x114b5f(0xae)]());}export function isValidCssHttpsUrl(_0xff7e06){return/^https:\/\/.+\.css(\?.*)?$/['test'](_0xff7e06['trim']());}function a173_0x52db(){const _0x7e5d57=['1180644QEEvqO','cancel','389220KAxXga','HEAD','bytes=0-0','355274jvRVcO','trim','5261958YxuNLV','10DSKnQF','body','31584ygVypB','164264LdxcGz','4167114Fiyrxt','770okjzib','5xOxRgW','30JlCvdF','632CSdKUx','GET'];a173_0x52db=function(){return _0x7e5d57;};return a173_0x52db();}function a173_0x18de(_0x344d33,_0x29619b){_0x344d33=_0x344d33-0xa6;const _0x52dbd2=a173_0x52db();let _0x18dec4=_0x52dbd2[_0x344d33];return _0x18dec4;}export async function isUrlReachable(_0x419992){const _0x4ef581=a173_0x18de;try{const _0x3865fa=await fetch(_0x419992,{'method':_0x4ef581(0xab)});if(_0x3865fa['ok'])return!![];}catch{}try{const _0x31a6ed=await fetch(_0x419992,{'method':_0x4ef581(0xa7),'headers':{'Range':_0x4ef581(0xac)}}),_0x3ba3aa=_0x31a6ed['ok'];try{await _0x31a6ed[_0x4ef581(0xb1)]?.[_0x4ef581(0xa9)]();}catch{}return _0x3ba3aa;}catch{return![];}}
1
+ (function(_0x1c6347,_0x3bea10){const _0x1e325c=a173_0x4cdb,_0x3279bd=_0x1c6347();while(!![]){try{const _0x40016b=parseInt(_0x1e325c(0x1a3))/0x1*(parseInt(_0x1e325c(0x1a5))/0x2)+parseInt(_0x1e325c(0x1a4))/0x3*(parseInt(_0x1e325c(0x19e))/0x4)+parseInt(_0x1e325c(0x1a9))/0x5*(-parseInt(_0x1e325c(0x19b))/0x6)+parseInt(_0x1e325c(0x1a1))/0x7*(-parseInt(_0x1e325c(0x1a2))/0x8)+parseInt(_0x1e325c(0x1a8))/0x9+parseInt(_0x1e325c(0x19c))/0xa+-parseInt(_0x1e325c(0x1a0))/0xb;if(_0x40016b===_0x3bea10)break;else _0x3279bd['push'](_0x3279bd['shift']());}catch(_0xd462c6){_0x3279bd['push'](_0x3279bd['shift']());}}}(a173_0x6a84,0xdbe92));export function isValidJsHttpsUrl(_0xe4962a){const _0x2223b4=a173_0x4cdb;return/^https:\/\/.+\.js(\?.*)?$/[_0x2223b4(0x19f)](_0xe4962a['trim']());}function a173_0x6a84(){const _0x27cd69=['14106XqWZzP','13605910GVvkzX','bytes=0-0','860160TAZOCD','test','7461344MwqumS','3321598yAiWYD','24xUnoeR','240297mrKSay','3qPDpaP','10FCIikY','trim','body','7128675SFOMjh','1205QWDcRc','HEAD'];a173_0x6a84=function(){return _0x27cd69;};return a173_0x6a84();}function a173_0x4cdb(_0x16a7df,_0x51646a){_0x16a7df=_0x16a7df-0x19a;const _0x6a8479=a173_0x6a84();let _0x4cdb4a=_0x6a8479[_0x16a7df];return _0x4cdb4a;}export function isValidCssHttpsUrl(_0x57bd0e){const _0x2f36d2=a173_0x4cdb;return/^https:\/\/.+\.css(\?.*)?$/[_0x2f36d2(0x19f)](_0x57bd0e[_0x2f36d2(0x1a6)]());}export async function isUrlReachable(_0x3e5b94){const _0xebaed6=a173_0x4cdb;try{const _0x1c32d6=await fetch(_0x3e5b94,{'method':_0xebaed6(0x19a)});if(_0x1c32d6['ok'])return!![];}catch{}try{const _0x422fb2=await fetch(_0x3e5b94,{'method':'GET','headers':{'Range':_0xebaed6(0x19d)}}),_0x435475=_0x422fb2['ok'];try{await _0x422fb2[_0xebaed6(0x1a7)]?.['cancel']();}catch{}return _0x435475;}catch{return![];}}
@@ -1 +1 @@
1
- const a174_0x244357=a174_0x166b;(function(_0x169d10,_0x42feb2){const _0xa9ef94=a174_0x166b,_0x2ba1c1=_0x169d10();while(!![]){try{const _0x2a07df=-parseInt(_0xa9ef94(0xb5))/0x1*(-parseInt(_0xa9ef94(0x8e))/0x2)+parseInt(_0xa9ef94(0xbb))/0x3+-parseInt(_0xa9ef94(0xb1))/0x4*(-parseInt(_0xa9ef94(0x94))/0x5)+-parseInt(_0xa9ef94(0xbc))/0x6+-parseInt(_0xa9ef94(0xad))/0x7+-parseInt(_0xa9ef94(0xa3))/0x8*(-parseInt(_0xa9ef94(0xac))/0x9)+parseInt(_0xa9ef94(0x7d))/0xa*(-parseInt(_0xa9ef94(0xb9))/0xb);if(_0x2a07df===_0x42feb2)break;else _0x2ba1c1['push'](_0x2ba1c1['shift']());}catch(_0x2422c6){_0x2ba1c1['push'](_0x2ba1c1['shift']());}}}(a174_0x5434,0x34024));import a174_0x18a395 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';function a174_0x5434(){const _0x5b03dd=['Exact\x20comma-separated\x20local\x20page\x20paths\x20to\x20sync','474135izXwhr','Failed\x20to\x20fetch\x20online\x20menu\x20list','\x20local\x20microfrontend\x20menu(s).','✓\x20Menu\x20sync\x20completed:\x20','yes','params','string','\x20\x20Cancelled.','Creating\x20','flag','split','\x20menu(s)','No\x20local\x20microfrontend\x20menus\x20would\x20be\x20created.','gray','skipped','1552PyLiIa','Online\x20menu\x20list\x20fetched','Run\x20inside\x20a\x20directory\x20with\x20.rabetbase.json,\x20or\x20pass\x20--appcode\x20<code>.','Fetching\x20online\x20menu\x20list...','appCode','onlinePaths','\x20page(s)','onlineMenuList','paths','1521tNOLPK','2726703DpawWa','selectedAppName','length','JSON:\x20{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}','4ehNvFr','/smartapi/menu/create','\x20menu(s)\x20with\x20JS:\x20','Menu\x20creation\x20failed','29ZnFiZA','menu','trim','Menu\x20sync\x20skipped','93192gEfSYc','\x20\x20!\x20No\x20local\x20pages\x20found,\x20please\x20create\x20pages\x20first','518928sbNmqu','335010xwfhxN','message','Created\x20','failed','\x20menu(s)...','menu\x20sync\x20requires\x20a\x20project\x20context\x20or\x20explicit\x20--appcode.\x20','sync','str','\x20and\x20CSS:\x20','appcode','Preview\x20with\x20--dry-run,\x20then\x20reuse\x20the\x20same\x20--paths\x20and\x20--params\x20with\x20--yes.','70kQVWwV','Would\x20create\x20','!\x20No\x20local\x20pages\x20found\x20in\x20src/pages','Confirm\x20non-interactive\x20sync;\x20without\x20--paths,\x20create\x20all\x20missing\x20local\x20pages','Non-interactive\x20menu\x20sync\x20requires\x20--yes.','menu\x20sync\x20--paths\x20requires\x20--yes\x20for\x20execution.','localPages','Pre-fill\x20JS/CSS\x20URLs.\x20','cssUrl','Sync\x20local\x20pages\x20as\x20platform\x20menus','jsUrl','boolean','validation','created','map','rawFlags','✓\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform','28766sJWfJa','yellow','cookie','\x20failed.','Menu\x20sync\x20completed:\x20'];a174_0x5434=function(){return _0x5b03dd;};return a174_0x5434();}function a174_0x166b(_0xc72fb6,_0x55c894){_0xc72fb6=_0xc72fb6-0x7b;const _0x543428=a174_0x5434();let _0x166b39=_0x543428[_0xc72fb6];return _0x166b39;}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':a174_0x244357(0xb6),'command':a174_0x244357(0xc2),'description':a174_0x244357(0x86),'risk':'write','flags':[{'name':a174_0x244357(0x99),'type':a174_0x244357(0x9a),'description':a174_0x244357(0x84)+a174_0x244357(0xb0)},{'name':a174_0x244357(0xab),'type':'string','description':a174_0x244357(0x93)},{'name':a174_0x244357(0x98),'type':a174_0x244357(0x88),'description':a174_0x244357(0x80)}],async 'dryRun'(_0x98fcd4){const _0x4a5496=a174_0x244357;ensureRunnableContext(_0x98fcd4['rawFlags'],_0x98fcd4[_0x4a5496(0xae)]);const _0x13879a=await runMenuSyncCore(_0x98fcd4['appCode'],_0x98fcd4[_0x4a5496(0x90)],parsePaths(_0x98fcd4[_0x4a5496(0xc3)]('paths')),_0x98fcd4[_0x4a5496(0xc3)](_0x4a5496(0x99)),{'dryRun':!![]});return{'method':'POST','url':_0x4a5496(0xb2),'body':_0x13879a,'description':_0x13879a[_0x4a5496(0xa2)]?_0x4a5496(0xa0):_0x4a5496(0x7e)+_0x13879a['targetPages'][_0x4a5496(0xaf)]+_0x4a5496(0x96)};},async 'execute'(_0x4a0377){const _0x3ae2b5=a174_0x244357;ensureRunnableContext(_0x4a0377[_0x3ae2b5(0x8c)],_0x4a0377[_0x3ae2b5(0xae)]);const _0x114476=_0x4a0377[_0x3ae2b5(0x9d)](_0x3ae2b5(0x98)),_0x483c77=_0x4a0377[_0x3ae2b5(0xc3)]('params'),_0x5aa5f5=parsePaths(_0x4a0377[_0x3ae2b5(0xc3)]('paths')),_0x218673=parseMenuSyncParams(_0x483c77);if(_0x114476){const _0x35eb28=await runMenuSyncCore(_0x4a0377['appCode'],_0x4a0377[_0x3ae2b5(0x90)],_0x5aa5f5,_0x483c77);if(_0x35eb28[_0x3ae2b5(0xa2)]){const _0x10089d=getLocalPages();_0x10089d[_0x3ae2b5(0xaf)]===0x0?writeCliSideChannelLine(_0x3ae2b5(0x7f)):writeCliSideChannelLine(_0x3ae2b5(0x8d));}else writeCliSideChannelLine(_0x3ae2b5(0x97)+_0x35eb28[_0x3ae2b5(0x8a)]+'\x20menu(s)\x20created');return{'ok':!![],'data':_0x35eb28,'message':_0x35eb28[_0x3ae2b5(0xa2)]?_0x3ae2b5(0xb8):_0x3ae2b5(0x92)+_0x35eb28[_0x3ae2b5(0x8a)]+'\x20created.'};}if(_0x5aa5f5[_0x3ae2b5(0xaf)]>0x0)throw CliErrors['validation'](_0x3ae2b5(0x82),_0x3ae2b5(0x7c));if(!isInteractive()&&_0x483c77)throw CliErrors[_0x3ae2b5(0x89)](_0x3ae2b5(0x81),_0x3ae2b5(0x7c));requireInteractive();const _0x4c6881=startSpinner(_0x3ae2b5(0xa6));let _0x323966,_0x4ad914,_0x4f25ad;try{const _0x2ec4d1=await fetchMenuData(_0x4a0377['appCode'],_0x4a0377[_0x3ae2b5(0x90)]);_0x323966=_0x2ec4d1[_0x3ae2b5(0x83)],_0x4ad914=_0x2ec4d1[_0x3ae2b5(0xa8)],_0x4f25ad=_0x2ec4d1[_0x3ae2b5(0xaa)],stopSpinner(_0x4c6881,_0x3ae2b5(0xa4),!![]);}catch(_0x3d21c0){stopSpinner(_0x4c6881,_0x3ae2b5(0x95),![]);throw CliErrors[_0x3ae2b5(0x89)](_0x3d21c0 instanceof Error?_0x3d21c0[_0x3ae2b5(0xbd)]:'Failed\x20to\x20fetch\x20online\x20menu\x20list');}if(_0x323966['length']===0x0)return writeCliSideChannelLine(a174_0x18a395[_0x3ae2b5(0x8f)](_0x3ae2b5(0xba))),{'ok':!![]};const _0xc8a150=buildCompareRows(_0x323966,_0x4ad914);writeCliSideChannelLine(renderCompareTable(_0xc8a150)),writeCliSideChannelLine('');const _0x53cf76=await selectPages(_0x323966,_0x4ad914);writeCliSideChannelLine(''),writeCliSideChannelLine(a174_0x18a395['cyan']('\x20\x20✓\x20Selected:\x20'+_0x53cf76[_0x3ae2b5(0xaf)]+_0x3ae2b5(0xa9)));const _0x541182=_0x218673[_0x3ae2b5(0x87)]&&_0x218673[_0x3ae2b5(0x85)];if(!_0x541182){writeCliSideChannelLine(renderSyncSummary(_0x53cf76,_0x4ad914['size']>0x0));const _0x1e6784=await askConfirm('\x20\x20Continue\x20with\x20creation?');if(!_0x1e6784)return writeCliSideChannelLine(a174_0x18a395[_0x3ae2b5(0xa1)](_0x3ae2b5(0x9b))),{'ok':!![]};}let _0x10e9aa=_0x218673['jsUrl'],_0x2bfb28=_0x218673[_0x3ae2b5(0x85)];!_0x10e9aa&&(_0x10e9aa=await askJsUrl());!_0x2bfb28&&(_0x2bfb28=await askCssUrl());const _0x1b18a4=await askConfirm('\x20\x20Create\x20'+_0x53cf76['length']+_0x3ae2b5(0xb3)+_0x10e9aa+_0x3ae2b5(0xc4)+_0x2bfb28+'?');if(!_0x1b18a4)return writeCliSideChannelLine(a174_0x18a395[_0x3ae2b5(0xa1)](_0x3ae2b5(0x9b))),{'ok':!![]};const _0x32a444=[_0x10e9aa,_0x2bfb28],_0x1b92a7=startSpinner(_0x3ae2b5(0x9c)+_0x53cf76[_0x3ae2b5(0xaf)]+_0x3ae2b5(0xc0));try{const _0x2f27e3=await doCreateMenus(_0x4a0377[_0x3ae2b5(0xa7)],_0x4a0377['cookie'],_0x53cf76,_0x32a444);return stopSpinner(_0x1b92a7,_0x3ae2b5(0xbe)+_0x2f27e3[_0x3ae2b5(0x8a)]+_0x3ae2b5(0x9f),!![]),{'ok':!![],'data':_0x2f27e3,'message':'Menu\x20sync\x20completed:\x20'+_0x2f27e3['created']+'\x20created,\x20'+_0x2f27e3[_0x3ae2b5(0xbf)]+_0x3ae2b5(0x91)};}catch(_0x489600){stopSpinner(_0x1b92a7,_0x3ae2b5(0xb4),![]);throw CliErrors[_0x3ae2b5(0x89)](_0x489600 instanceof Error?_0x489600[_0x3ae2b5(0xbd)]:_0x3ae2b5(0xb4));}}};function ensureRunnableContext(_0x3928e0,_0xf2a428){const _0x23e612=a174_0x244357,_0x31aa7e=_0x3928e0['appcode']?String(_0x3928e0[_0x23e612(0x7b)])[_0x23e612(0xb7)]():'';if(!isInProject()&&!_0xf2a428&&!_0x31aa7e)throw CliErrors[_0x23e612(0x89)](_0x23e612(0xc1)+_0x23e612(0xa5));}function parsePaths(_0x131641){const _0x4e9216=a174_0x244357;return[...new Set(_0x131641[_0x4e9216(0x9e)](',')[_0x4e9216(0x8b)](_0x37cd15=>_0x37cd15[_0x4e9216(0xb7)]())['filter'](Boolean))];}
1
+ const a174_0x2c6b5b=a174_0x2a40;(function(_0x5ca510,_0x5dfa96){const _0x6e92d5=a174_0x2a40,_0x420a69=_0x5ca510();while(!![]){try{const _0x2f0fd3=-parseInt(_0x6e92d5(0x1be))/0x1+parseInt(_0x6e92d5(0x18d))/0x2*(parseInt(_0x6e92d5(0x1bd))/0x3)+parseInt(_0x6e92d5(0x1c9))/0x4+-parseInt(_0x6e92d5(0x18c))/0x5*(-parseInt(_0x6e92d5(0x1cc))/0x6)+parseInt(_0x6e92d5(0x1c8))/0x7+-parseInt(_0x6e92d5(0x1c4))/0x8+-parseInt(_0x6e92d5(0x192))/0x9*(parseInt(_0x6e92d5(0x1c3))/0xa);if(_0x2f0fd3===_0x5dfa96)break;else _0x420a69['push'](_0x420a69['shift']());}catch(_0x4b0cc5){_0x420a69['push'](_0x420a69['shift']());}}}(a174_0x3767,0xaedd7));import a174_0x495d47 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';function a174_0x3767(){const _0x507924=['108280IPOGjA','Sync\x20local\x20pages\x20as\x20platform\x20menus','\x20and\x20CSS:\x20','flag','6570158vlOHfq','4290132uBSDqT','\x20\x20Create\x20','write','252pWBcvx','POST','Menu\x20sync\x20skipped','menu','✓\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform','appCode','onlinePaths','Preview\x20with\x20--dry-run,\x20then\x20reuse\x20the\x20same\x20--paths\x20and\x20--params\x20with\x20--yes.','Would\x20create\x20','cssUrl','\x20menu(s)\x20created','JSON:\x20{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}','163615ajwfMK','640996FuaBIQ','\x20local\x20microfrontend\x20menu(s).','\x20created.','cookie','\x20\x20Cancelled.','246933TcgGdH','failed','Menu\x20creation\x20failed','menu\x20sync\x20--paths\x20requires\x20--yes\x20for\x20execution.','yes','filter','map','length','\x20menu(s)...','✓\x20Menu\x20sync\x20completed:\x20','Run\x20inside\x20a\x20directory\x20with\x20.rabetbase.json,\x20or\x20pass\x20--appcode\x20<code>.','\x20\x20✓\x20Selected:\x20','onlineMenuList','\x20menu(s)','appcode','params','Fetching\x20online\x20menu\x20list...','boolean','Failed\x20to\x20fetch\x20online\x20menu\x20list','Menu\x20sync\x20completed:\x20','validation','Online\x20menu\x20list\x20fetched','trim','string','\x20failed.','sync','split','/smartapi/menu/create','message','Pre-fill\x20JS/CSS\x20URLs.\x20','\x20created,\x20','jsUrl','targetPages','Created\x20','gray','paths','No\x20local\x20microfrontend\x20menus\x20would\x20be\x20created.','skipped','\x20\x20Continue\x20with\x20creation?','!\x20No\x20local\x20pages\x20found\x20in\x20src/pages','str','\x20menu(s)\x20with\x20JS:\x20','yellow','9FDuVVA','626572dCZICe','created','Non-interactive\x20menu\x20sync\x20requires\x20--yes.','selectedAppName','rawFlags','1090COnqEf'];a174_0x3767=function(){return _0x507924;};return a174_0x3767();}export const menuSync={'service':a174_0x2c6b5b(0x183),'command':a174_0x2c6b5b(0x1ab),'description':a174_0x2c6b5b(0x1c5),'risk':a174_0x2c6b5b(0x1cb),'flags':[{'name':a174_0x2c6b5b(0x1a1),'type':a174_0x2c6b5b(0x1a9),'description':a174_0x2c6b5b(0x1af)+a174_0x2c6b5b(0x18b)},{'name':a174_0x2c6b5b(0x1b5),'type':'string','description':'Exact\x20comma-separated\x20local\x20page\x20paths\x20to\x20sync'},{'name':a174_0x2c6b5b(0x196),'type':a174_0x2c6b5b(0x1a3),'description':'Confirm\x20non-interactive\x20sync;\x20without\x20--paths,\x20create\x20all\x20missing\x20local\x20pages'}],async 'dryRun'(_0x269198){const _0x414f78=a174_0x2c6b5b;ensureRunnableContext(_0x269198[_0x414f78(0x1c2)],_0x269198['selectedAppName']);const _0x49f8f9=await runMenuSyncCore(_0x269198[_0x414f78(0x185)],_0x269198[_0x414f78(0x190)],parsePaths(_0x269198[_0x414f78(0x1ba)]('paths')),_0x269198[_0x414f78(0x1ba)](_0x414f78(0x1a1)),{'dryRun':!![]});return{'method':_0x414f78(0x1cd),'url':_0x414f78(0x1ad),'body':_0x49f8f9,'description':_0x49f8f9[_0x414f78(0x1b7)]?_0x414f78(0x1b6):_0x414f78(0x188)+_0x49f8f9[_0x414f78(0x1b2)][_0x414f78(0x199)]+_0x414f78(0x18e)};},async 'execute'(_0x1e9c0a){const _0x40fa55=a174_0x2c6b5b;ensureRunnableContext(_0x1e9c0a['rawFlags'],_0x1e9c0a[_0x40fa55(0x1c1)]);const _0x5a6b78=_0x1e9c0a[_0x40fa55(0x1c7)](_0x40fa55(0x196)),_0xdbe8e=_0x1e9c0a[_0x40fa55(0x1ba)](_0x40fa55(0x1a1)),_0x622a85=parsePaths(_0x1e9c0a[_0x40fa55(0x1ba)]('paths')),_0x1f1965=parseMenuSyncParams(_0xdbe8e);if(_0x5a6b78){const _0x34daef=await runMenuSyncCore(_0x1e9c0a[_0x40fa55(0x185)],_0x1e9c0a[_0x40fa55(0x190)],_0x622a85,_0xdbe8e);if(_0x34daef[_0x40fa55(0x1b7)]){const _0x12bcac=getLocalPages();_0x12bcac['length']===0x0?writeCliSideChannelLine(_0x40fa55(0x1b9)):writeCliSideChannelLine(_0x40fa55(0x184));}else writeCliSideChannelLine(_0x40fa55(0x19b)+_0x34daef[_0x40fa55(0x1bf)]+_0x40fa55(0x18a));return{'ok':!![],'data':_0x34daef,'message':_0x34daef['skipped']?_0x40fa55(0x1ce):_0x40fa55(0x1a5)+_0x34daef[_0x40fa55(0x1bf)]+_0x40fa55(0x18f)};}if(_0x622a85['length']>0x0)throw CliErrors[_0x40fa55(0x1a6)](_0x40fa55(0x195),_0x40fa55(0x187));if(!isInteractive()&&_0xdbe8e)throw CliErrors[_0x40fa55(0x1a6)](_0x40fa55(0x1c0),'Preview\x20with\x20--dry-run,\x20then\x20reuse\x20the\x20same\x20--paths\x20and\x20--params\x20with\x20--yes.');requireInteractive();const _0x2d176a=startSpinner(_0x40fa55(0x1a2));let _0x2a0dcb,_0x4f7856,_0x46c27b;try{const _0x1a840f=await fetchMenuData(_0x1e9c0a['appCode'],_0x1e9c0a['cookie']);_0x2a0dcb=_0x1a840f['localPages'],_0x4f7856=_0x1a840f[_0x40fa55(0x186)],_0x46c27b=_0x1a840f[_0x40fa55(0x19e)],stopSpinner(_0x2d176a,_0x40fa55(0x1a7),!![]);}catch(_0x216932){stopSpinner(_0x2d176a,_0x40fa55(0x1a4),![]);throw CliErrors[_0x40fa55(0x1a6)](_0x216932 instanceof Error?_0x216932['message']:_0x40fa55(0x1a4));}if(_0x2a0dcb[_0x40fa55(0x199)]===0x0)return writeCliSideChannelLine(a174_0x495d47[_0x40fa55(0x1bc)]('\x20\x20!\x20No\x20local\x20pages\x20found,\x20please\x20create\x20pages\x20first')),{'ok':!![]};const _0x24de54=buildCompareRows(_0x2a0dcb,_0x4f7856);writeCliSideChannelLine(renderCompareTable(_0x24de54)),writeCliSideChannelLine('');const _0x19c35a=await selectPages(_0x2a0dcb,_0x4f7856);writeCliSideChannelLine(''),writeCliSideChannelLine(a174_0x495d47['cyan'](_0x40fa55(0x19d)+_0x19c35a['length']+'\x20page(s)'));const _0x1d4927=_0x1f1965[_0x40fa55(0x1b1)]&&_0x1f1965[_0x40fa55(0x189)];if(!_0x1d4927){writeCliSideChannelLine(renderSyncSummary(_0x19c35a,_0x4f7856['size']>0x0));const _0x59b07a=await askConfirm(_0x40fa55(0x1b8));if(!_0x59b07a)return writeCliSideChannelLine(a174_0x495d47['gray'](_0x40fa55(0x191))),{'ok':!![]};}let _0x49a086=_0x1f1965['jsUrl'],_0x102271=_0x1f1965['cssUrl'];!_0x49a086&&(_0x49a086=await askJsUrl());!_0x102271&&(_0x102271=await askCssUrl());const _0x1c55fc=await askConfirm(_0x40fa55(0x1ca)+_0x19c35a[_0x40fa55(0x199)]+_0x40fa55(0x1bb)+_0x49a086+_0x40fa55(0x1c6)+_0x102271+'?');if(!_0x1c55fc)return writeCliSideChannelLine(a174_0x495d47[_0x40fa55(0x1b4)](_0x40fa55(0x191))),{'ok':!![]};const _0xdb4351=[_0x49a086,_0x102271],_0x21464b=startSpinner('Creating\x20'+_0x19c35a[_0x40fa55(0x199)]+_0x40fa55(0x19a));try{const _0x290ddf=await doCreateMenus(_0x1e9c0a['appCode'],_0x1e9c0a[_0x40fa55(0x190)],_0x19c35a,_0xdb4351);return stopSpinner(_0x21464b,_0x40fa55(0x1b3)+_0x290ddf[_0x40fa55(0x1bf)]+_0x40fa55(0x19f),!![]),{'ok':!![],'data':_0x290ddf,'message':_0x40fa55(0x1a5)+_0x290ddf['created']+_0x40fa55(0x1b0)+_0x290ddf[_0x40fa55(0x193)]+_0x40fa55(0x1aa)};}catch(_0x52ffdf){stopSpinner(_0x21464b,'Menu\x20creation\x20failed',![]);throw CliErrors[_0x40fa55(0x1a6)](_0x52ffdf instanceof Error?_0x52ffdf[_0x40fa55(0x1ae)]:_0x40fa55(0x194));}}};function ensureRunnableContext(_0x501e5b,_0xabd8a4){const _0x268c79=a174_0x2c6b5b,_0x7f9d2b=_0x501e5b[_0x268c79(0x1a0)]?String(_0x501e5b[_0x268c79(0x1a0)])[_0x268c79(0x1a8)]():'';if(!isInProject()&&!_0xabd8a4&&!_0x7f9d2b)throw CliErrors[_0x268c79(0x1a6)]('menu\x20sync\x20requires\x20a\x20project\x20context\x20or\x20explicit\x20--appcode.\x20'+_0x268c79(0x19c));}function a174_0x2a40(_0x42dca7,_0x3f4856){_0x42dca7=_0x42dca7-0x183;const _0x3767a1=a174_0x3767();let _0x2a40e9=_0x3767a1[_0x42dca7];return _0x2a40e9;}function parsePaths(_0x12eee4){const _0xd933a1=a174_0x2c6b5b;return[...new Set(_0x12eee4[_0xd933a1(0x1ac)](',')[_0xd933a1(0x198)](_0x1e23c9=>_0x1e23c9[_0xd933a1(0x1a8)]())[_0xd933a1(0x197)](Boolean))];}
@@ -1 +1 @@
1
- const a175_0x533931=a175_0x2079;(function(_0x4ca04e,_0x3dce8c){const _0x2bc3e5=a175_0x2079,_0x5485cf=_0x4ca04e();while(!![]){try{const _0x509703=-parseInt(_0x2bc3e5(0x187))/0x1*(-parseInt(_0x2bc3e5(0x1f3))/0x2)+parseInt(_0x2bc3e5(0x1d9))/0x3+parseInt(_0x2bc3e5(0x1d4))/0x4+parseInt(_0x2bc3e5(0x1fd))/0x5*(-parseInt(_0x2bc3e5(0x1f4))/0x6)+parseInt(_0x2bc3e5(0x19d))/0x7+-parseInt(_0x2bc3e5(0x1b6))/0x8*(-parseInt(_0x2bc3e5(0x1ac))/0x9)+-parseInt(_0x2bc3e5(0x1c5))/0xa;if(_0x509703===_0x3dce8c)break;else _0x5485cf['push'](_0x5485cf['shift']());}catch(_0x1267ac){_0x5485cf['push'](_0x5485cf['shift']());}}}(a175_0x5a72,0x6e7f1));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../commands/menu/shared/facts.js';function a175_0x5a72(){const _0x45af0e=['resourcesValid','Menu\x20path\x20selector\x20not\x20found:\x20','label','flagMissing','path','Every\x20selected\x20menu\x20already\x20has\x20the\x20requested\x20visibility;\x20no\x20write\x20is\x20needed.','verification','resources','url','before','Menu\x20id\x20selector(s)\x20not\x20found:\x20','2143834tblEoK','paths','plan','\x20was\x20not\x20found\x20during\x20visibility\x20verification.','requestedVisible','\x20unchanged\x20menu(s).','code','map','isSafeInteger','\x20menu(s);\x20skip\x20','failed','expectVisible','boolean','Set\x20exact\x20menus\x20visible\x20or\x20hidden\x20without\x20changing\x20their\x20routes\x20or\x20resources','Inspect\x20current\x20menu\x20facts\x20before\x20retrying\x20any\x20target.','40842WbLjsm','visibility-update','str','\x20visibility\x20update\x20could\x20not\x20be\x20verified','POST','childrenIds','menu_selector_not_found','--expected-count\x20must\x20be\x20a\x20non-negative\x20integer.','\x20failed.','type','1368iLJkQg','Menu\x20visibility\x20update\x20could\x20not\x20be\x20verified\x20for\x20id(s):\x20','recovered','depth','Visibility\x20update\x20requests\x20completed\x20but\x20readback\x20could\x20not\x20confirm\x20the\x20requested\x20state','validation','Selected\x20','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20an\x20exact\x20current\x20path.','beforeById','pageType','childrenCount','false','Menu\x20path\x20selector\x20matched\x20multiple\x20menus:\x20','Response\x20was\x20lost\x20for\x20menu\x20','expectedCount','22046920eVllRV','menu','set','menu\x20visibility-update\x20requires\x20--menu-ids\x20or\x20--paths.','true','\x20updated,\x20','stringify','string','expected-count','One\x20or\x20more\x20updates\x20may\x20have\x20changed\x20fields\x20outside\x20visibility;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','datasetId','Abort\x20unless\x20every\x20selected\x20menu\x20has\x20this\x20visibility','pageId','join','menus','1567288SvIuzx','Failed\x20update\x20requests\x20were\x20not\x20retried;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','trim','Use\x20--menu-ids\x20with\x20one\x20or\x20more\x20of:\x20','Response\x20was\x20lost\x20and\x20menu\x20','1049037CrflpE','cookie','Menu\x20','datasetCode','Exact\x20comma-separated\x20menu\x20IDs\x20to\x20update','appCode','Exact\x20comma-separated\x20menu\x20paths\x20to\x20update','Final\x20menu\x20visibility\x20readback\x20failed.','visible','\x20menu(s),\x20expected\x20','updated','\x20changed\x20unexpectedly.','filter','\x20must\x20be\x20true\x20or\x20false.','Would\x20update\x20visibility\x20for\x20','update-recovery','message','values','update\x20menu\x20visibility','push','Selected\x20menu\x20visibility\x20changed\x20for\x20id(s):\x20','targets','\x20visible\x20did\x20not\x20match\x20the\x20requested\x20state.','rabetbase\x20menu\x20list\x20--format\x20compress','menu_permission_denied','menu_expected_count_mismatch','2NkPqHK','6xLfCmH','modelType','menu_state_drift','length','/smartapi/menu/update','\x20visibility\x20could\x20not\x20be\x20verified\x20safely','has','sort','byId','91625TfJanT','\x20and\x20final\x20state\x20could\x20not\x20be\x20read.','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expect-visible.','--menu-ids\x20must\x20contain\x20positive\x20safe\x20integers.','isArray','split','851849gChaua','parentId','menu-ids','The\x20update\x20may\x20have\x20taken\x20effect;\x20inspect\x20the\x20latest\x20menu\x20facts\x20before\x20retrying.','Requested\x20menu\x20visibility','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20exact\x20current\x20ids.','menu_verification_failed','expect-visible','get','num','plannedActions'];a175_0x5a72=function(){return _0x45af0e;};return a175_0x5a72();}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';function a175_0x2079(_0x399968,_0x3d10bb){_0x399968=_0x399968-0x187;const _0x5a72f3=a175_0x5a72();let _0x2079b0=_0x5a72f3[_0x399968];return _0x2079b0;}const BACKEND=[{'method':'POST','path':a175_0x533931(0x1f8)}];export const menuVisibilityUpdate={'service':a175_0x533931(0x1c6),'command':a175_0x533931(0x1ad),'description':a175_0x533931(0x1aa),'risk':'high-risk-write','structuredErrors':!![],'flags':[{'name':a175_0x533931(0x189),'type':a175_0x533931(0x1cc),'description':a175_0x533931(0x1dd)},{'name':a175_0x533931(0x19e),'type':a175_0x533931(0x1cc),'description':a175_0x533931(0x1df)},{'name':'visible','type':a175_0x533931(0x1a9),'required':!![],'description':a175_0x533931(0x18b)},{'name':a175_0x533931(0x18e),'type':a175_0x533931(0x1a9),'description':a175_0x533931(0x1d0)},{'name':a175_0x533931(0x1cd),'type':'number','description':'Abort\x20unless\x20the\x20exact\x20number\x20of\x20selected\x20menus\x20matches'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x2bb526){parseInput(_0x2bb526),requireExplicitYes(_0x2bb526);},async 'dryRun'(_0x1db8b7){const _0x525e0e=a175_0x533931,_0x4da932=await buildPlan(_0x1db8b7,!![]),_0x1face8=_0x4da932[_0x525e0e(0x19f)][_0x525e0e(0x191)]?.['length']??0x0,_0x13d55c=_0x4da932['plan'][_0x525e0e(0x1ee)][_0x525e0e(0x1f7)]-_0x1face8;return menuDryRunResult(_0x4da932[_0x525e0e(0x19f)],{'method':_0x525e0e(0x1b0),'url':_0x525e0e(0x1f8),'body':{'updates':_0x4da932[_0x525e0e(0x19f)]['plannedActions']?.[_0x525e0e(0x1a4)](_0x5ea5c6=>_0x5ea5c6['body'])??[]},'description':_0x525e0e(0x1e7)+_0x1face8+_0x525e0e(0x1a6)+_0x13d55c+_0x525e0e(0x1a2)});},async 'execute'(_0x4075c6){const _0x3f841=a175_0x533931;requireExplicitYes(_0x4075c6);const _0x152200=await buildPlan(_0x4075c6,![]);await recheckMutationSnapshot(_0x4075c6,_0x152200[_0x3f841(0x19f)],_0x3f841(0x1eb));const _0x1271b8=[],_0x2c2b65=[],_0x5deeef=[];for(const _0x21bf4c of _0x152200[_0x3f841(0x19f)][_0x3f841(0x1ee)]){if(_0x21bf4c[_0x3f841(0x19b)][_0x3f841(0x1e1)]===_0x152200[_0x3f841(0x19f)][_0x3f841(0x1a1)]){_0x1271b8['push']({'id':_0x21bf4c['id'],'updated':![],'skipped':!![]});continue;}try{await updateMenuEntity(_0x4075c6[_0x3f841(0x1de)],_0x4075c6[_0x3f841(0x1da)],{'id':_0x21bf4c['id'],'visible':_0x152200[_0x3f841(0x19f)][_0x3f841(0x1a1)]}),_0x1271b8[_0x3f841(0x1ec)]({'id':_0x21bf4c['id'],'updated':!![],'skipped':![]});}catch(_0x377835){const _0x49c256=mapMenuApiError(_0x377835,'update\x20visibility\x20for',_0x21bf4c['id']);if(isMenuResponseLoss(_0x377835)&&_0x49c256[_0x3f841(0x1a3)]!==_0x3f841(0x1f1)){_0x5deeef['push'](_0x21bf4c['id']);continue;}_0x2c2b65['push']({'id':_0x21bf4c['id'],'stage':'update','code':_0x49c256['code'],'message':_0x49c256[_0x3f841(0x1e9)]});}}let _0x1e6998;try{_0x1e6998=await fetchMenuSnapshot(_0x4075c6[_0x3f841(0x1de)],_0x4075c6[_0x3f841(0x1da)]);}catch(_0x547b0e){const _0xf744a4=describeMenuErrorCause(_0x547b0e,'verify\x20menu\x20visibility\x20update'),_0x1df36d=_0x5deeef[_0x3f841(0x1a4)](_0x27c924=>({'id':_0x27c924,'stage':_0x3f841(0x1e8),'code':'menu_verification_failed','message':_0x3f841(0x1c3)+_0x27c924+_0x3f841(0x1fe),'requestedStateConfirmed':![],'recovered':![]})),_0x2213ec={'stage':_0x3f841(0x198),'code':_0x3f841(0x18d),'message':_0x3f841(0x1e0),'targetIds':_0x152200[_0x3f841(0x19f)][_0x3f841(0x1ee)][_0x3f841(0x1a4)](_0x28ffc2=>_0x28ffc2['id']),'requestedStateConfirmed':![],..._0xf744a4};throw menuFailure(asVerificationError(_0x547b0e,_0x3f841(0x1ba)),_0x152200[_0x3f841(0x19f)],{'stage':_0x3f841(0x198),'succeeded':_0x1271b8,'failedRecords':[..._0x2c2b65,..._0x1df36d,_0x2213ec],'warnings':[_0x3f841(0x18a)],'verification':{'status':_0x3f841(0x1a7),'recoveredCount':0x0,'lookupCommand':_0x3f841(0x1f0)}});}const _0x5653d9=[];for(const _0x15a656 of _0x1271b8){const _0xb8ee3f=Number(_0x15a656['id']),_0x307567=_0x152200[_0x3f841(0x1be)][_0x3f841(0x18f)](_0xb8ee3f),_0x34d7e4=_0x1e6998[_0x3f841(0x1fc)][_0x3f841(0x18f)](_0xb8ee3f);try{verifyVisibilityUpdate(_0x307567,_0x34d7e4,_0x152200['plan'][_0x3f841(0x1a1)]);}catch(_0x2b573b){const _0x48c577=asVerificationError(_0x2b573b,'Menu\x20'+_0xb8ee3f+_0x3f841(0x1af));_0x5653d9[_0x3f841(0x1ec)]({'id':_0xb8ee3f,'stage':'verification','code':_0x48c577['code'],'message':_0x48c577['message'],'requestedStateConfirmed':![]});}}for(const _0x1fba08 of _0x5deeef){const _0x1bc0b5=_0x152200['beforeById'][_0x3f841(0x18f)](_0x1fba08),_0x286326=_0x1e6998[_0x3f841(0x1fc)][_0x3f841(0x18f)](_0x1fba08);try{verifyVisibilityUpdate(_0x1bc0b5,_0x286326,_0x152200[_0x3f841(0x19f)][_0x3f841(0x1a1)]),_0x1271b8[_0x3f841(0x1ec)]({'id':_0x1fba08,'updated':!![],'skipped':![],'recovered':!![]});}catch(_0x49db6c){const _0x36a1cd=asVerificationError(_0x49db6c,_0x3f841(0x1d8)+_0x1fba08+_0x3f841(0x1f9));_0x5653d9[_0x3f841(0x1ec)]({'id':_0x1fba08,'stage':'update-recovery','code':_0x36a1cd[_0x3f841(0x1a3)],'message':_0x36a1cd[_0x3f841(0x1e9)],'requestedStateConfirmed':![],'recovered':![]});}}if(_0x5653d9[_0x3f841(0x1f7)]>0x0){const _0x442ed1=_0x5653d9['map'](_0x5514aa=>Number(_0x5514aa['id'])),_0x50ae0c=_0x1271b8[_0x3f841(0x1e5)](_0x459677=>_0x459677[_0x3f841(0x1b8)]===!![])['length'],_0x496f56=menuError(_0x3f841(0x18d),_0x3f841(0x1b7)+_0x442ed1[_0x3f841(0x1d2)](',\x20')+'.',_0x3f841(0x1ab));throw menuFailure(_0x496f56,_0x152200[_0x3f841(0x19f)],{'stage':_0x3f841(0x198),'succeeded':_0x1271b8,'failedRecords':[..._0x2c2b65,..._0x5653d9],'warnings':[_0x3f841(0x1ce)],'verification':{'status':_0x3f841(0x1a7),..._0x442ed1[_0x3f841(0x1f7)]===0x1?{'targetId':_0x442ed1[0x0]}:{'targetIds':_0x442ed1},'recoveredCount':_0x50ae0c,'lookupCommand':'rabetbase\x20menu\x20list\x20--format\x20compress'}});}const _0x3a8650=_0x1271b8['filter'](_0x19380d=>_0x19380d[_0x3f841(0x1e3)]===!![])['length'],_0x5e1edd=_0x1271b8['length']-_0x3a8650,_0x161323={..._0x152200['plan'],'succeeded':_0x1271b8,'failed':_0x2c2b65,'warnings':_0x2c2b65[_0x3f841(0x1f7)]>0x0?[..._0x152200[_0x3f841(0x19f)]['warnings'],_0x3f841(0x1d5)]:_0x152200[_0x3f841(0x19f)]['warnings'],'verification':{'checkedBy':'menu\x20list','snapshotHash':_0x1e6998['hash'],'matchesRequestedState':_0x2c2b65[_0x3f841(0x1f7)]===0x0,'recoveredCount':_0x5deeef[_0x3f841(0x1f7)]}};return{'ok':_0x2c2b65['length']===0x0,'data':_0x161323,'message':_0x2c2b65['length']===0x0?'Updated\x20visibility\x20for\x20'+_0x3a8650+'\x20menu(s);\x20skipped\x20'+_0x5e1edd+_0x3f841(0x1a2):'Menu\x20visibility\x20update\x20completed:\x20'+_0x3a8650+_0x3f841(0x1ca)+_0x5e1edd+'\x20skipped,\x20'+_0x2c2b65[_0x3f841(0x1f7)]+_0x3f841(0x1b4)};}};function parseInput(_0x28443f){const _0x22255d=a175_0x533931,_0x3ac765=parseMenuIds(_0x28443f[_0x22255d(0x1ae)](_0x22255d(0x189))),_0x1f1355=parseCsv(_0x28443f[_0x22255d(0x1ae)](_0x22255d(0x19e)));if(_0x3ac765[_0x22255d(0x1f7)]===0x0&&_0x1f1355['length']===0x0)throw CliErrors['validation'](_0x22255d(0x1c8));const _0x280cbe=parseBooleanFlag(_0x28443f,_0x22255d(0x1e1),!![]),_0x39fbcc=parseBooleanFlag(_0x28443f,_0x22255d(0x18e),![]);let _0x593318;if(hasFlag(_0x28443f,_0x22255d(0x1cd))){_0x593318=_0x28443f[_0x22255d(0x190)](_0x22255d(0x1cd));if(!Number[_0x22255d(0x1a5)](_0x593318)||_0x593318<0x0)throw CliErrors[_0x22255d(0x1bb)](_0x22255d(0x1b3));}return{'menuIds':_0x3ac765,'paths':_0x1f1355,'visible':_0x280cbe,'expectVisible':_0x39fbcc,'expectedCount':_0x593318};}async function buildPlan(_0x856712,_0x2e58b8){const _0x3cffcc=a175_0x533931,_0x3e2c50=parseInput(_0x856712),_0x2d88eb=await fetchMutationSnapshot(_0x856712,_0x3cffcc(0x1eb)),_0x30b3f1=selectTargets(_0x2d88eb[_0x3cffcc(0x1d3)],_0x3e2c50['menuIds'],_0x3e2c50[_0x3cffcc(0x19e)]);if(_0x3e2c50[_0x3cffcc(0x1c4)]!==undefined&&_0x30b3f1[_0x3cffcc(0x1f7)]!==_0x3e2c50[_0x3cffcc(0x1c4)])throw menuError(_0x3cffcc(0x1f2),_0x3cffcc(0x1bc)+_0x30b3f1[_0x3cffcc(0x1f7)]+_0x3cffcc(0x1e2)+_0x3e2c50['expectedCount']+'.','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expected-count.');if(_0x3e2c50[_0x3cffcc(0x1a8)]!==undefined){const _0x105fff=_0x30b3f1[_0x3cffcc(0x1e5)](_0x41e4b1=>_0x41e4b1['visible']!==_0x3e2c50[_0x3cffcc(0x1a8)]);if(_0x105fff['length']>0x0)throw menuError(_0x3cffcc(0x1f6),_0x3cffcc(0x1ed)+_0x105fff[_0x3cffcc(0x1a4)](_0x20e337=>_0x20e337['id'])[_0x3cffcc(0x1d2)](',\x20')+'.',_0x3cffcc(0x1ff));}const _0x3cf75a=_0x30b3f1[_0x3cffcc(0x1a4)](_0x406d14=>({'id':_0x406d14['id'],'label':_0x406d14['label'],'path':_0x406d14[_0x3cffcc(0x196)],'before':{'visible':_0x406d14[_0x3cffcc(0x1e1)]},'after':{'visible':_0x3e2c50[_0x3cffcc(0x1e1)]}})),_0x23e08a=_0x3cf75a[_0x3cffcc(0x1e5)](_0x3eff50=>_0x3eff50[_0x3cffcc(0x19b)][_0x3cffcc(0x1e1)]!==_0x3e2c50[_0x3cffcc(0x1e1)])[_0x3cffcc(0x1a4)](_0x24c159=>({'stage':'update-menu-visibility','method':_0x3cffcc(0x1b0),'path':'/smartapi/menu/update','body':{'appCode':_0x856712[_0x3cffcc(0x1de)],'id':_0x24c159['id'],'visible':_0x3e2c50['visible']}})),_0x1690e1=mutationResult({'operation':'visibility-update','selector':{'menuIds':_0x3e2c50['menuIds'],'paths':_0x3e2c50[_0x3cffcc(0x19e)]},'before':{'menus':_0x30b3f1[_0x3cffcc(0x1a4)](_0x225b05=>({'id':_0x225b05['id'],'path':_0x225b05[_0x3cffcc(0x196)],'visible':_0x225b05[_0x3cffcc(0x1e1)]}))},'after':{'menus':_0x30b3f1[_0x3cffcc(0x1a4)](_0x1dc58c=>({'id':_0x1dc58c['id'],'path':_0x1dc58c[_0x3cffcc(0x196)],'visible':_0x3e2c50[_0x3cffcc(0x1e1)]}))},'dryRun':_0x2e58b8,'backend':[...BACKEND],'plannedActions':_0x23e08a,'snapshotHash':_0x2d88eb['hash'],'warnings':_0x23e08a[_0x3cffcc(0x1f7)]===0x0?[_0x3cffcc(0x197)]:[]});return{'plan':{..._0x1690e1,'requestedVisible':_0x3e2c50[_0x3cffcc(0x1e1)],'targets':_0x3cf75a},'beforeById':new Map(_0x30b3f1[_0x3cffcc(0x1a4)](_0x896867=>[_0x896867['id'],_0x896867]))};}function selectTargets(_0x343468,_0x47c7ca,_0x3978b3){const _0x21f516=a175_0x533931,_0x3f8f8e=new Map(_0x343468[_0x21f516(0x1a4)](_0xaa4807=>[_0xaa4807['id'],_0xaa4807])),_0x2ab04c=new Map(),_0x30abea=_0x47c7ca['filter'](_0x34af71=>!_0x3f8f8e[_0x21f516(0x1fa)](_0x34af71));if(_0x30abea[_0x21f516(0x1f7)]>0x0)throw menuError(_0x21f516(0x1b2),_0x21f516(0x19c)+_0x30abea[_0x21f516(0x1d2)](',\x20')+'.',_0x21f516(0x18c));for(const _0x2afe15 of _0x47c7ca){_0x2ab04c[_0x21f516(0x1c7)](_0x2afe15,_0x3f8f8e[_0x21f516(0x18f)](_0x2afe15));}for(const _0x477691 of _0x3978b3){const _0x3cc1a3=_0x343468[_0x21f516(0x1e5)](_0x5761ce=>_0x5761ce[_0x21f516(0x196)]===_0x477691);if(_0x3cc1a3[_0x21f516(0x1f7)]===0x0)throw menuError(_0x21f516(0x1b2),_0x21f516(0x193)+JSON[_0x21f516(0x1cb)](_0x477691)+'.',_0x21f516(0x1bd));if(_0x3cc1a3[_0x21f516(0x1f7)]>0x1)throw menuError('menu_selector_ambiguous',_0x21f516(0x1c2)+JSON[_0x21f516(0x1cb)](_0x477691)+'.',_0x21f516(0x1d7)+_0x3cc1a3[_0x21f516(0x1a4)](_0x3af806=>_0x3af806['id'])[_0x21f516(0x1d2)](',\x20')+'.');const _0xc8e240=_0x3cc1a3[0x0];_0x2ab04c[_0x21f516(0x1c7)](_0xc8e240['id'],_0xc8e240);}return[..._0x2ab04c[_0x21f516(0x1ea)]()];}function parseMenuIds(_0x3b0074){const _0x38b904=a175_0x533931,_0x2f0783=parseCsv(_0x3b0074),_0x4def7e=_0x2f0783[_0x38b904(0x1a4)](Number);if(_0x4def7e['some'](_0x1a3265=>!Number['isSafeInteger'](_0x1a3265)||_0x1a3265<=0x0))throw CliErrors[_0x38b904(0x1bb)](_0x38b904(0x200));return[...new Set(_0x4def7e)];}function parseCsv(_0x5446b0){const _0x342342=a175_0x533931;return[...new Set(_0x5446b0[_0x342342(0x202)](',')['map'](_0x4b1c32=>_0x4b1c32[_0x342342(0x1d6)]())['filter'](Boolean))];}function parseBooleanFlag(_0x469cb7,_0x53e518,_0x125568){const _0x36975a=a175_0x533931;if(!hasFlag(_0x469cb7,_0x53e518)){if(_0x125568)throw CliErrors[_0x36975a(0x195)](_0x53e518);return undefined;}const _0x13e9c6=_0x469cb7['rawFlags'][_0x53e518];if(_0x13e9c6===!![]||_0x13e9c6===![])return _0x13e9c6;if(_0x13e9c6===_0x36975a(0x1c9))return!![];if(_0x13e9c6===_0x36975a(0x1c1))return![];throw CliErrors[_0x36975a(0x1bb)]('--'+_0x53e518+_0x36975a(0x1e6));}function verifyVisibilityUpdate(_0x1534fd,_0x4d3333,_0x250b63){const _0x2d7454=a175_0x533931;assertVerified(!!_0x4d3333,_0x2d7454(0x1db)+_0x1534fd['id']+_0x2d7454(0x1a0)),assertVerified(_0x4d3333[_0x2d7454(0x1e1)]===_0x250b63,_0x2d7454(0x1db)+_0x1534fd['id']+_0x2d7454(0x1ef));const _0x10b2fc=[['id',_0x4d3333['id'],_0x1534fd['id']],['parentId',_0x4d3333[_0x2d7454(0x188)],_0x1534fd[_0x2d7454(0x188)]],[_0x2d7454(0x1b9),_0x4d3333['depth'],_0x1534fd['depth']],[_0x2d7454(0x194),_0x4d3333[_0x2d7454(0x194)],_0x1534fd['label']],[_0x2d7454(0x196),_0x4d3333[_0x2d7454(0x196)],_0x1534fd['path']],[_0x2d7454(0x19a),_0x4d3333[_0x2d7454(0x19a)],_0x1534fd[_0x2d7454(0x19a)]],[_0x2d7454(0x1b5),_0x4d3333['type'],_0x1534fd[_0x2d7454(0x1b5)]],[_0x2d7454(0x1fb),_0x4d3333['sort'],_0x1534fd[_0x2d7454(0x1fb)]],[_0x2d7454(0x199),_0x4d3333[_0x2d7454(0x199)],_0x1534fd['resources']],['resourcesValid',_0x4d3333[_0x2d7454(0x192)],_0x1534fd[_0x2d7454(0x192)]],['childrenIds',_0x4d3333[_0x2d7454(0x1b1)],_0x1534fd['childrenIds']],[_0x2d7454(0x1c0),_0x4d3333['childrenCount'],_0x1534fd[_0x2d7454(0x1c0)]],[_0x2d7454(0x1d1),_0x4d3333['pageId'],_0x1534fd['pageId']],[_0x2d7454(0x1bf),_0x4d3333[_0x2d7454(0x1bf)],_0x1534fd['pageType']],[_0x2d7454(0x1f5),_0x4d3333[_0x2d7454(0x1f5)],_0x1534fd[_0x2d7454(0x1f5)]],[_0x2d7454(0x1cf),_0x4d3333['datasetId'],_0x1534fd[_0x2d7454(0x1cf)]],['datasetCode',_0x4d3333[_0x2d7454(0x1dc)],_0x1534fd['datasetCode']]];for(const [_0x532bc5,_0x401a7e,_0x529503]of _0x10b2fc){assertVerified(sameValue(_0x401a7e,_0x529503),'Menu\x20'+_0x1534fd['id']+'\x20'+_0x532bc5+_0x2d7454(0x1e4));}}function sameValue(_0x1bff84,_0x183487){const _0x4cd0c1=a175_0x533931;if(Array[_0x4cd0c1(0x201)](_0x1bff84)||Array[_0x4cd0c1(0x201)](_0x183487))return JSON[_0x4cd0c1(0x1cb)](_0x1bff84)===JSON[_0x4cd0c1(0x1cb)](_0x183487);return _0x1bff84===_0x183487;}
1
+ const a175_0xc3a003=a175_0x39ff;function a175_0x1abf(){const _0x475236=['11709170HFsrMt','map','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expected-count.','POST','Exact\x20comma-separated\x20menu\x20paths\x20to\x20update','expect-visible','/smartapi/menu/update','841npQeJT','Set\x20exact\x20menus\x20visible\x20or\x20hidden\x20without\x20changing\x20their\x20routes\x20or\x20resources','rabetbase\x20menu\x20list\x20--format\x20compress','menu_selector_not_found','menus','Menu\x20visibility\x20update\x20completed:\x20','\x20and\x20final\x20state\x20could\x20not\x20be\x20read.','visibility-update','\x20skipped,\x20','pageId','verify\x20menu\x20visibility\x20update','42498yhgeuj','1861748pxveSL','string','Failed\x20update\x20requests\x20were\x20not\x20retried;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','boolean','length','expected-count','Selected\x20menu\x20visibility\x20changed\x20for\x20id(s):\x20','\x20was\x20not\x20found\x20during\x20visibility\x20verification.','resources','menu_state_drift','\x20menu(s);\x20skipped\x20','Menu\x20visibility\x20update\x20could\x20not\x20be\x20verified\x20for\x20id(s):\x20','isArray','depth','split','menu-ids','--menu-ids\x20must\x20contain\x20positive\x20safe\x20integers.','update-recovery','some','filter','Abort\x20unless\x20the\x20exact\x20number\x20of\x20selected\x20menus\x20matches','update\x20visibility\x20for','label','before','One\x20or\x20more\x20updates\x20may\x20have\x20changed\x20fields\x20outside\x20visibility;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','trim','plan','visible','\x20visibility\x20could\x20not\x20be\x20verified\x20safely','Abort\x20unless\x20every\x20selected\x20menu\x20has\x20this\x20visibility','str','\x20visible\x20did\x20not\x20match\x20the\x20requested\x20state.','18372rlPdRG','has','menu_verification_failed','verification','1685kQAgXo','Use\x20--menu-ids\x20with\x20one\x20or\x20more\x20of:\x20','set','hash','childrenIds','expectVisible','\x20visibility\x20update\x20could\x20not\x20be\x20verified','resourcesValid','menuIds','path','appCode','12rxfDop','3604876LqFrJM','Menu\x20id\x20selector(s)\x20not\x20found:\x20','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expect-visible.','validation','menu\x20list','targets','isSafeInteger','Would\x20update\x20visibility\x20for\x20','1712OcqWkS','Requested\x20menu\x20visibility','datasetId','Menu\x20path\x20selector\x20not\x20found:\x20','num','\x20updated,\x20','message','modelType','childrenCount','high-risk-write','menu_permission_denied','paths','update-menu-visibility','plannedActions','Final\x20menu\x20visibility\x20readback\x20failed.','Selected\x20','3IvUVhg','Visibility\x20update\x20requests\x20completed\x20but\x20readback\x20could\x20not\x20confirm\x20the\x20requested\x20state','body','10teDWKx','menu\x20visibility-update\x20requires\x20--menu-ids\x20or\x20--paths.','join','push','Menu\x20','get','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20an\x20exact\x20current\x20path.','menu','Response\x20was\x20lost\x20and\x20menu\x20','requestedVisible','warnings','beforeById','\x20unchanged\x20menu(s).','parentId','\x20must\x20be\x20true\x20or\x20false.','cookie','stringify','Every\x20selected\x20menu\x20already\x20has\x20the\x20requested\x20visibility;\x20no\x20write\x20is\x20needed.','\x20menu(s);\x20skip\x20','--expected-count\x20must\x20be\x20a\x20non-negative\x20integer.','Inspect\x20current\x20menu\x20facts\x20before\x20retrying\x20any\x20target.','\x20menu(s),\x20expected\x20','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20exact\x20current\x20ids.','url','1002qCqzir','datasetCode','type','Response\x20was\x20lost\x20for\x20menu\x20','code','sort','update\x20menu\x20visibility','11263057xYYdAJ','expectedCount','true','byId'];a175_0x1abf=function(){return _0x475236;};return a175_0x1abf();}(function(_0x3562e9,_0x1fc911){const _0x34d2ea=a175_0x39ff,_0x1e6d4c=_0x3562e9();while(!![]){try{const _0xe2cf0d=parseInt(_0x34d2ea(0x7e))/0x1*(-parseInt(_0x34d2ea(0xed))/0x2)+-parseInt(_0x34d2ea(0xd2))/0x3*(-parseInt(_0x34d2ea(0xba))/0x4)+-parseInt(_0x34d2ea(0xae))/0x5*(-parseInt(_0x34d2ea(0xaa))/0x6)+parseInt(_0x34d2ea(0x8a))/0x7+parseInt(_0x34d2ea(0xc2))/0x8*(-parseInt(_0x34d2ea(0x89))/0x9)+-parseInt(_0x34d2ea(0xd5))/0xa*(parseInt(_0x34d2ea(0x77))/0xb)+parseInt(_0x34d2ea(0xb9))/0xc*(parseInt(_0x34d2ea(0x73))/0xd);if(_0xe2cf0d===_0x1fc911)break;else _0x1e6d4c['push'](_0x1e6d4c['shift']());}catch(_0x1e80f5){_0x1e6d4c['push'](_0x1e6d4c['shift']());}}}(a175_0x1abf,0x8af3b));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 a175_0x39ff(_0x25978f,_0xfcd833){_0x25978f=_0x25978f-0x6e;const _0x1abf5e=a175_0x1abf();let _0x39ffb3=_0x1abf5e[_0x25978f];return _0x39ffb3;}import{CliErrors}from'../../errors.js';const BACKEND=[{'method':'POST','path':a175_0xc3a003(0x7d)}];export const menuVisibilityUpdate={'service':a175_0xc3a003(0xdc),'command':a175_0xc3a003(0x85),'description':a175_0xc3a003(0x7f),'risk':a175_0xc3a003(0xcb),'structuredErrors':!![],'flags':[{'name':a175_0xc3a003(0x99),'type':a175_0xc3a003(0x8b),'description':'Exact\x20comma-separated\x20menu\x20IDs\x20to\x20update'},{'name':a175_0xc3a003(0xcd),'type':'string','description':a175_0xc3a003(0x7b)},{'name':a175_0xc3a003(0xa5),'type':a175_0xc3a003(0x8d),'required':!![],'description':a175_0xc3a003(0xc3)},{'name':a175_0xc3a003(0x7c),'type':a175_0xc3a003(0x8d),'description':a175_0xc3a003(0xa7)},{'name':a175_0xc3a003(0x8f),'type':'number','description':a175_0xc3a003(0x9e)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x30c0b0){parseInput(_0x30c0b0),requireExplicitYes(_0x30c0b0);},async 'dryRun'(_0xcf0aa4){const _0x4bbe53=a175_0xc3a003,_0x2bcc4e=await buildPlan(_0xcf0aa4,!![]),_0x31cbc5=_0x2bcc4e['plan'][_0x4bbe53(0xcf)]?.[_0x4bbe53(0x8e)]??0x0,_0x45599b=_0x2bcc4e[_0x4bbe53(0xa4)]['targets'][_0x4bbe53(0x8e)]-_0x31cbc5;return menuDryRunResult(_0x2bcc4e['plan'],{'method':'POST','url':_0x4bbe53(0x7d),'body':{'updates':_0x2bcc4e[_0x4bbe53(0xa4)][_0x4bbe53(0xcf)]?.[_0x4bbe53(0x78)](_0x3fc07c=>_0x3fc07c[_0x4bbe53(0xd4)])??[]},'description':_0x4bbe53(0xc1)+_0x31cbc5+_0x4bbe53(0xe7)+_0x45599b+_0x4bbe53(0xe1)});},async 'execute'(_0x2772ba){const _0xa0da53=a175_0xc3a003;requireExplicitYes(_0x2772ba);const _0x3b0745=await buildPlan(_0x2772ba,![]);await recheckMutationSnapshot(_0x2772ba,_0x3b0745[_0xa0da53(0xa4)],_0xa0da53(0x72));const _0x3c7d23=[],_0x2c56b5=[],_0x52cc1c=[];for(const _0x38ecc6 of _0x3b0745[_0xa0da53(0xa4)][_0xa0da53(0xbf)]){if(_0x38ecc6[_0xa0da53(0xa1)]['visible']===_0x3b0745[_0xa0da53(0xa4)][_0xa0da53(0xde)]){_0x3c7d23['push']({'id':_0x38ecc6['id'],'updated':![],'skipped':!![]});continue;}try{await updateMenuEntity(_0x2772ba['appCode'],_0x2772ba[_0xa0da53(0xe4)],{'id':_0x38ecc6['id'],'visible':_0x3b0745[_0xa0da53(0xa4)][_0xa0da53(0xde)]}),_0x3c7d23['push']({'id':_0x38ecc6['id'],'updated':!![],'skipped':![]});}catch(_0x4f7bf1){const _0x4f7a8a=mapMenuApiError(_0x4f7bf1,_0xa0da53(0x9f),_0x38ecc6['id']);if(isMenuResponseLoss(_0x4f7bf1)&&_0x4f7a8a['code']!==_0xa0da53(0xcc)){_0x52cc1c[_0xa0da53(0xd8)](_0x38ecc6['id']);continue;}_0x2c56b5['push']({'id':_0x38ecc6['id'],'stage':'update','code':_0x4f7a8a[_0xa0da53(0x70)],'message':_0x4f7a8a[_0xa0da53(0xc8)]});}}let _0x507c03;try{_0x507c03=await fetchMenuSnapshot(_0x2772ba[_0xa0da53(0xb8)],_0x2772ba[_0xa0da53(0xe4)]);}catch(_0x4fcb7b){const _0x590ee3=describeMenuErrorCause(_0x4fcb7b,_0xa0da53(0x88)),_0x3b3761=_0x52cc1c[_0xa0da53(0x78)](_0x1e4911=>({'id':_0x1e4911,'stage':_0xa0da53(0x9b),'code':_0xa0da53(0xac),'message':_0xa0da53(0x6f)+_0x1e4911+_0xa0da53(0x84),'requestedStateConfirmed':![],'recovered':![]})),_0x2cea28={'stage':_0xa0da53(0xad),'code':_0xa0da53(0xac),'message':_0xa0da53(0xd0),'targetIds':_0x3b0745['plan'][_0xa0da53(0xbf)]['map'](_0x59bb6a=>_0x59bb6a['id']),'requestedStateConfirmed':![],..._0x590ee3};throw menuFailure(asVerificationError(_0x4fcb7b,_0xa0da53(0xd3)),_0x3b0745[_0xa0da53(0xa4)],{'stage':_0xa0da53(0xad),'succeeded':_0x3c7d23,'failedRecords':[..._0x2c56b5,..._0x3b3761,_0x2cea28],'warnings':['The\x20update\x20may\x20have\x20taken\x20effect;\x20inspect\x20the\x20latest\x20menu\x20facts\x20before\x20retrying.'],'verification':{'status':'failed','recoveredCount':0x0,'lookupCommand':_0xa0da53(0x80)}});}const _0x43c3fb=[];for(const _0x5cc299 of _0x3c7d23){const _0x53860a=Number(_0x5cc299['id']),_0x15afb2=_0x3b0745[_0xa0da53(0xe0)]['get'](_0x53860a),_0x1b0a1a=_0x507c03[_0xa0da53(0x76)]['get'](_0x53860a);try{verifyVisibilityUpdate(_0x15afb2,_0x1b0a1a,_0x3b0745[_0xa0da53(0xa4)][_0xa0da53(0xde)]);}catch(_0xb95a65){const _0x460eb2=asVerificationError(_0xb95a65,_0xa0da53(0xd9)+_0x53860a+_0xa0da53(0xb4));_0x43c3fb[_0xa0da53(0xd8)]({'id':_0x53860a,'stage':_0xa0da53(0xad),'code':_0x460eb2[_0xa0da53(0x70)],'message':_0x460eb2[_0xa0da53(0xc8)],'requestedStateConfirmed':![]});}}for(const _0x86b4e5 of _0x52cc1c){const _0x1ba90e=_0x3b0745['beforeById'][_0xa0da53(0xda)](_0x86b4e5),_0x399d8e=_0x507c03[_0xa0da53(0x76)][_0xa0da53(0xda)](_0x86b4e5);try{verifyVisibilityUpdate(_0x1ba90e,_0x399d8e,_0x3b0745['plan'][_0xa0da53(0xde)]),_0x3c7d23['push']({'id':_0x86b4e5,'updated':!![],'skipped':![],'recovered':!![]});}catch(_0x2b375d){const _0x54f22d=asVerificationError(_0x2b375d,_0xa0da53(0xdd)+_0x86b4e5+_0xa0da53(0xa6));_0x43c3fb['push']({'id':_0x86b4e5,'stage':_0xa0da53(0x9b),'code':_0x54f22d[_0xa0da53(0x70)],'message':_0x54f22d[_0xa0da53(0xc8)],'requestedStateConfirmed':![],'recovered':![]});}}if(_0x43c3fb[_0xa0da53(0x8e)]>0x0){const _0x293f5c=_0x43c3fb[_0xa0da53(0x78)](_0xf831c6=>Number(_0xf831c6['id'])),_0xcab98a=_0x3c7d23['filter'](_0x1360e3=>_0x1360e3['recovered']===!![])[_0xa0da53(0x8e)],_0x380f57=menuError(_0xa0da53(0xac),_0xa0da53(0x95)+_0x293f5c[_0xa0da53(0xd7)](',\x20')+'.',_0xa0da53(0xe9));throw menuFailure(_0x380f57,_0x3b0745['plan'],{'stage':_0xa0da53(0xad),'succeeded':_0x3c7d23,'failedRecords':[..._0x2c56b5,..._0x43c3fb],'warnings':[_0xa0da53(0xa2)],'verification':{'status':'failed',..._0x293f5c[_0xa0da53(0x8e)]===0x1?{'targetId':_0x293f5c[0x0]}:{'targetIds':_0x293f5c},'recoveredCount':_0xcab98a,'lookupCommand':_0xa0da53(0x80)}});}const _0x48bc66=_0x3c7d23[_0xa0da53(0x9d)](_0x3cac83=>_0x3cac83['updated']===!![])[_0xa0da53(0x8e)],_0x46194f=_0x3c7d23['length']-_0x48bc66,_0x182f24={..._0x3b0745[_0xa0da53(0xa4)],'succeeded':_0x3c7d23,'failed':_0x2c56b5,'warnings':_0x2c56b5[_0xa0da53(0x8e)]>0x0?[..._0x3b0745['plan'][_0xa0da53(0xdf)],_0xa0da53(0x8c)]:_0x3b0745[_0xa0da53(0xa4)][_0xa0da53(0xdf)],'verification':{'checkedBy':_0xa0da53(0xbe),'snapshotHash':_0x507c03[_0xa0da53(0xb1)],'matchesRequestedState':_0x2c56b5['length']===0x0,'recoveredCount':_0x52cc1c['length']}};return{'ok':_0x2c56b5['length']===0x0,'data':_0x182f24,'message':_0x2c56b5[_0xa0da53(0x8e)]===0x0?'Updated\x20visibility\x20for\x20'+_0x48bc66+_0xa0da53(0x94)+_0x46194f+_0xa0da53(0xe1):_0xa0da53(0x83)+_0x48bc66+_0xa0da53(0xc7)+_0x46194f+_0xa0da53(0x86)+_0x2c56b5[_0xa0da53(0x8e)]+'\x20failed.'};}};function parseInput(_0x37173d){const _0x3d7fc0=a175_0xc3a003,_0x3a8b41=parseMenuIds(_0x37173d[_0x3d7fc0(0xa8)](_0x3d7fc0(0x99))),_0x4f9050=parseCsv(_0x37173d['str']('paths'));if(_0x3a8b41[_0x3d7fc0(0x8e)]===0x0&&_0x4f9050[_0x3d7fc0(0x8e)]===0x0)throw CliErrors[_0x3d7fc0(0xbd)](_0x3d7fc0(0xd6));const _0x2ce9cd=parseBooleanFlag(_0x37173d,_0x3d7fc0(0xa5),!![]),_0x1db070=parseBooleanFlag(_0x37173d,_0x3d7fc0(0x7c),![]);let _0x209dc4;if(hasFlag(_0x37173d,_0x3d7fc0(0x8f))){_0x209dc4=_0x37173d[_0x3d7fc0(0xc6)](_0x3d7fc0(0x8f));if(!Number[_0x3d7fc0(0xc0)](_0x209dc4)||_0x209dc4<0x0)throw CliErrors['validation'](_0x3d7fc0(0xe8));}return{'menuIds':_0x3a8b41,'paths':_0x4f9050,'visible':_0x2ce9cd,'expectVisible':_0x1db070,'expectedCount':_0x209dc4};}async function buildPlan(_0x22cdd,_0xbabb25){const _0x3dcb0b=a175_0xc3a003,_0x86541=parseInput(_0x22cdd),_0x1f368d=await fetchMutationSnapshot(_0x22cdd,_0x3dcb0b(0x72)),_0x253741=selectTargets(_0x1f368d[_0x3dcb0b(0x82)],_0x86541['menuIds'],_0x86541[_0x3dcb0b(0xcd)]);if(_0x86541['expectedCount']!==undefined&&_0x253741[_0x3dcb0b(0x8e)]!==_0x86541[_0x3dcb0b(0x74)])throw menuError('menu_expected_count_mismatch',_0x3dcb0b(0xd1)+_0x253741[_0x3dcb0b(0x8e)]+_0x3dcb0b(0xea)+_0x86541[_0x3dcb0b(0x74)]+'.',_0x3dcb0b(0x79));if(_0x86541['expectVisible']!==undefined){const _0x2d76ae=_0x253741[_0x3dcb0b(0x9d)](_0x19fcb9=>_0x19fcb9['visible']!==_0x86541[_0x3dcb0b(0xb3)]);if(_0x2d76ae['length']>0x0)throw menuError(_0x3dcb0b(0x93),_0x3dcb0b(0x90)+_0x2d76ae['map'](_0xcd6e70=>_0xcd6e70['id'])[_0x3dcb0b(0xd7)](',\x20')+'.',_0x3dcb0b(0xbc));}const _0x58f2c9=_0x253741[_0x3dcb0b(0x78)](_0x456ed9=>({'id':_0x456ed9['id'],'label':_0x456ed9[_0x3dcb0b(0xa0)],'path':_0x456ed9[_0x3dcb0b(0xb7)],'before':{'visible':_0x456ed9[_0x3dcb0b(0xa5)]},'after':{'visible':_0x86541[_0x3dcb0b(0xa5)]}})),_0x55d3ef=_0x58f2c9[_0x3dcb0b(0x9d)](_0x44e516=>_0x44e516[_0x3dcb0b(0xa1)][_0x3dcb0b(0xa5)]!==_0x86541['visible'])[_0x3dcb0b(0x78)](_0x31f03b=>({'stage':_0x3dcb0b(0xce),'method':_0x3dcb0b(0x7a),'path':_0x3dcb0b(0x7d),'body':{'appCode':_0x22cdd[_0x3dcb0b(0xb8)],'id':_0x31f03b['id'],'visible':_0x86541[_0x3dcb0b(0xa5)]}})),_0x35e91e=mutationResult({'operation':'visibility-update','selector':{'menuIds':_0x86541[_0x3dcb0b(0xb6)],'paths':_0x86541[_0x3dcb0b(0xcd)]},'before':{'menus':_0x253741[_0x3dcb0b(0x78)](_0x4de299=>({'id':_0x4de299['id'],'path':_0x4de299[_0x3dcb0b(0xb7)],'visible':_0x4de299['visible']}))},'after':{'menus':_0x253741[_0x3dcb0b(0x78)](_0x2beaaf=>({'id':_0x2beaaf['id'],'path':_0x2beaaf[_0x3dcb0b(0xb7)],'visible':_0x86541[_0x3dcb0b(0xa5)]}))},'dryRun':_0xbabb25,'backend':[...BACKEND],'plannedActions':_0x55d3ef,'snapshotHash':_0x1f368d[_0x3dcb0b(0xb1)],'warnings':_0x55d3ef[_0x3dcb0b(0x8e)]===0x0?[_0x3dcb0b(0xe6)]:[]});return{'plan':{..._0x35e91e,'requestedVisible':_0x86541[_0x3dcb0b(0xa5)],'targets':_0x58f2c9},'beforeById':new Map(_0x253741[_0x3dcb0b(0x78)](_0x867732=>[_0x867732['id'],_0x867732]))};}function selectTargets(_0x59043c,_0x20dafa,_0x39e2be){const _0x1f8bd1=a175_0xc3a003,_0x184eef=new Map(_0x59043c[_0x1f8bd1(0x78)](_0x122ecb=>[_0x122ecb['id'],_0x122ecb])),_0x9482c1=new Map(),_0x5bd2ee=_0x20dafa[_0x1f8bd1(0x9d)](_0x36ea37=>!_0x184eef[_0x1f8bd1(0xab)](_0x36ea37));if(_0x5bd2ee[_0x1f8bd1(0x8e)]>0x0)throw menuError(_0x1f8bd1(0x81),_0x1f8bd1(0xbb)+_0x5bd2ee[_0x1f8bd1(0xd7)](',\x20')+'.',_0x1f8bd1(0xeb));for(const _0x4c4350 of _0x20dafa){_0x9482c1[_0x1f8bd1(0xb0)](_0x4c4350,_0x184eef[_0x1f8bd1(0xda)](_0x4c4350));}for(const _0x340d4f of _0x39e2be){const _0xb773a5=_0x59043c[_0x1f8bd1(0x9d)](_0x45aac4=>_0x45aac4[_0x1f8bd1(0xb7)]===_0x340d4f);if(_0xb773a5['length']===0x0)throw menuError(_0x1f8bd1(0x81),_0x1f8bd1(0xc5)+JSON[_0x1f8bd1(0xe5)](_0x340d4f)+'.',_0x1f8bd1(0xdb));if(_0xb773a5[_0x1f8bd1(0x8e)]>0x1)throw menuError('menu_selector_ambiguous','Menu\x20path\x20selector\x20matched\x20multiple\x20menus:\x20'+JSON[_0x1f8bd1(0xe5)](_0x340d4f)+'.',_0x1f8bd1(0xaf)+_0xb773a5['map'](_0xd429b6=>_0xd429b6['id'])[_0x1f8bd1(0xd7)](',\x20')+'.');const _0x2adb1e=_0xb773a5[0x0];_0x9482c1['set'](_0x2adb1e['id'],_0x2adb1e);}return[..._0x9482c1['values']()];}function parseMenuIds(_0x485bce){const _0x8936c8=a175_0xc3a003,_0x4467e8=parseCsv(_0x485bce),_0x525643=_0x4467e8[_0x8936c8(0x78)](Number);if(_0x525643[_0x8936c8(0x9c)](_0x15b8be=>!Number[_0x8936c8(0xc0)](_0x15b8be)||_0x15b8be<=0x0))throw CliErrors['validation'](_0x8936c8(0x9a));return[...new Set(_0x525643)];}function parseCsv(_0x20d778){const _0x5cd44d=a175_0xc3a003;return[...new Set(_0x20d778[_0x5cd44d(0x98)](',')[_0x5cd44d(0x78)](_0x482598=>_0x482598[_0x5cd44d(0xa3)]())['filter'](Boolean))];}function parseBooleanFlag(_0x366eb4,_0x2a06e8,_0x538464){const _0x3ccc72=a175_0xc3a003;if(!hasFlag(_0x366eb4,_0x2a06e8)){if(_0x538464)throw CliErrors['flagMissing'](_0x2a06e8);return undefined;}const _0x43f647=_0x366eb4['rawFlags'][_0x2a06e8];if(_0x43f647===!![]||_0x43f647===![])return _0x43f647;if(_0x43f647===_0x3ccc72(0x75))return!![];if(_0x43f647==='false')return![];throw CliErrors[_0x3ccc72(0xbd)]('--'+_0x2a06e8+_0x3ccc72(0xe3));}function verifyVisibilityUpdate(_0x2b918f,_0x5efe5b,_0x5a35a5){const _0x5e7fbc=a175_0xc3a003;assertVerified(!!_0x5efe5b,'Menu\x20'+_0x2b918f['id']+_0x5e7fbc(0x91)),assertVerified(_0x5efe5b[_0x5e7fbc(0xa5)]===_0x5a35a5,'Menu\x20'+_0x2b918f['id']+_0x5e7fbc(0xa9));const _0x3a3241=[['id',_0x5efe5b['id'],_0x2b918f['id']],[_0x5e7fbc(0xe2),_0x5efe5b['parentId'],_0x2b918f['parentId']],['depth',_0x5efe5b['depth'],_0x2b918f[_0x5e7fbc(0x97)]],[_0x5e7fbc(0xa0),_0x5efe5b['label'],_0x2b918f[_0x5e7fbc(0xa0)]],['path',_0x5efe5b['path'],_0x2b918f[_0x5e7fbc(0xb7)]],[_0x5e7fbc(0xec),_0x5efe5b[_0x5e7fbc(0xec)],_0x2b918f['url']],[_0x5e7fbc(0x6e),_0x5efe5b['type'],_0x2b918f[_0x5e7fbc(0x6e)]],['sort',_0x5efe5b[_0x5e7fbc(0x71)],_0x2b918f[_0x5e7fbc(0x71)]],[_0x5e7fbc(0x92),_0x5efe5b[_0x5e7fbc(0x92)],_0x2b918f[_0x5e7fbc(0x92)]],[_0x5e7fbc(0xb5),_0x5efe5b[_0x5e7fbc(0xb5)],_0x2b918f['resourcesValid']],[_0x5e7fbc(0xb2),_0x5efe5b['childrenIds'],_0x2b918f[_0x5e7fbc(0xb2)]],[_0x5e7fbc(0xca),_0x5efe5b['childrenCount'],_0x2b918f[_0x5e7fbc(0xca)]],[_0x5e7fbc(0x87),_0x5efe5b[_0x5e7fbc(0x87)],_0x2b918f[_0x5e7fbc(0x87)]],['pageType',_0x5efe5b['pageType'],_0x2b918f['pageType']],[_0x5e7fbc(0xc9),_0x5efe5b[_0x5e7fbc(0xc9)],_0x2b918f[_0x5e7fbc(0xc9)]],[_0x5e7fbc(0xc4),_0x5efe5b[_0x5e7fbc(0xc4)],_0x2b918f[_0x5e7fbc(0xc4)]],['datasetCode',_0x5efe5b['datasetCode'],_0x2b918f[_0x5e7fbc(0xee)]]];for(const [_0x1e20eb,_0x4efd4f,_0x54df3d]of _0x3a3241){assertVerified(sameValue(_0x4efd4f,_0x54df3d),_0x5e7fbc(0xd9)+_0x2b918f['id']+'\x20'+_0x1e20eb+'\x20changed\x20unexpectedly.');}}function sameValue(_0x52caa8,_0x1ee71d){const _0x18c536=a175_0xc3a003;if(Array['isArray'](_0x52caa8)||Array[_0x18c536(0x96)](_0x1ee71d))return JSON[_0x18c536(0xe5)](_0x52caa8)===JSON[_0x18c536(0xe5)](_0x1ee71d);return _0x52caa8===_0x1ee71d;}
@@ -1 +1 @@
1
- const a176_0x2ecb6b=a176_0x1a41;function a176_0x1a41(_0x4f35ef,_0xef725f){_0x4f35ef=_0x4f35ef-0x65;const _0x589747=a176_0x5897();let _0x1a41ca=_0x589747[_0x4f35ef];return _0x1a41ca;}(function(_0x4ee58b,_0x4f427e){const _0x5cc87b=a176_0x1a41,_0x2df67c=_0x4ee58b();while(!![]){try{const _0x5f4625=parseInt(_0x5cc87b(0x6d))/0x1+parseInt(_0x5cc87b(0x66))/0x2*(-parseInt(_0x5cc87b(0x6f))/0x3)+-parseInt(_0x5cc87b(0x6a))/0x4+-parseInt(_0x5cc87b(0x68))/0x5+-parseInt(_0x5cc87b(0x6c))/0x6+parseInt(_0x5cc87b(0x72))/0x7*(-parseInt(_0x5cc87b(0x84))/0x8)+parseInt(_0x5cc87b(0x83))/0x9;if(_0x5f4625===_0x4f427e)break;else _0x2df67c['push'](_0x2df67c['shift']());}catch(_0x282ef3){_0x2df67c['push'](_0x2df67c['shift']());}}}(a176_0x5897,0x35e85));function a176_0x5897(){const _0x1416e8=['configName','write','input','channelType',';\x20do\x20not\x20resubmit.','appCode','channelConfig','13047804CLSaWU','8UrCOJT','notification','mutation','8278ChdXwR','configCode','2126715nlMETr','verification','1415112ViVskj','document','1718856yeURur','181119vftMUC','/notification/channel-config/create','198BfRawg','Created\x20notification\x20config\x20','Inspect\x20with\x20','499093UJmbzi','config-create','POST','Notification\x20config\x20create\x20returned\x20no\x20usable\x20server\x20ID.','notification_config_create_outcome_unknown','connectTimeout','create','readTimeout','Create\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20source','endpointUrl'];a176_0x5897=function(){return _0x1416e8;};return a176_0x5897();}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=a176_0x2ecb6b(0x6e);async function prepareCreate(_0x3295f9){const _0x1e7552=a176_0x2ecb6b,_0xde7005=await readNotificationDocument(_0x3295f9,_0x1e7552(0x78)),_0x3d3495=createMutationInput(_0x3295f9[_0x1e7552(0x81)],_0xde7005);return{'document':_0xde7005,'input':_0x3d3495,'planned':projectNotificationConfig({'appCode':_0x3295f9[_0x1e7552(0x81)],'configName':_0xde7005[_0x1e7552(0x7c)],'channelType':_0xde7005[_0x1e7552(0x7f)],'endpointUrl':_0xde7005[_0x1e7552(0x7b)],'channelConfig':_0xde7005[_0x1e7552(0x82)],'description':_0xde7005['description'],'connectTimeout':_0xde7005[_0x1e7552(0x77)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,'readTimeout':_0xde7005[_0x1e7552(0x79)]??DEFAULT_NOTIFICATION_READ_TIMEOUT})};}export const notificationConfigCreate={'service':a176_0x2ecb6b(0x85),'command':a176_0x2ecb6b(0x73),'description':a176_0x2ecb6b(0x7a),'risk':a176_0x2ecb6b(0x7d),'requiresAppCode':!![],'structuredErrors':!![],'flags':[...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x494dd2){assertSingleNotificationSource(_0x494dd2);},async 'dryRun'(_0xeed35c){const _0x196a26=a176_0x2ecb6b,_0x2a44e8=await prepareCreate(_0xeed35c),_0x189023=notificationLookupCommand(_0xeed35c['appCode'],_0x2a44e8[_0x196a26(0x6b)][_0x196a26(0x7f)]);return asDryRunResult({'operation':_0x196a26(0x78),'selector':{'appCode':_0xeed35c[_0x196a26(0x81)],'configName':_0x2a44e8[_0x196a26(0x6b)][_0x196a26(0x7c)],'channelType':_0x2a44e8['document']['channelType']},'before':null,'after':_0x2a44e8['planned'],'dryRun':!![],'backend':{'method':_0x196a26(0x74),'path':CREATE_PATH},'warnings':[],'verification':{'status':'planned','lookupCommand':_0x189023}},{'method':'POST','url':CREATE_PATH});},async 'execute'(_0x1f57ef){const _0xdbcf32=a176_0x2ecb6b,_0x4155c3=await prepareCreate(_0x1f57ef),_0x47da81=notificationLookupCommand(_0x1f57ef[_0xdbcf32(0x81)],_0x4155c3['document'][_0xdbcf32(0x7f)]);let _0x41269e;try{_0x41269e=await createNotificationChannelConfig(_0x4155c3[_0xdbcf32(0x7e)]);}catch(_0x9f12bf){if(isPlatformTransportFailure(_0x9f12bf))throw notificationError('notification_config_create_outcome_unknown','Notification\x20config\x20create\x20outcome\x20is\x20unknown\x20because\x20no\x20server\x20ID\x20was\x20received.','Inspect\x20with\x20'+_0x47da81+_0xdbcf32(0x80));throw safeApiFailure(_0xdbcf32(0x78),_0xdbcf32(0x65),'Inspect\x20with\x20'+_0x47da81+';\x20no\x20automatic\x20retry\x20was\x20attempted.');}if(!Number['isSafeInteger'](_0x41269e)||_0x41269e<=0x0)throw notificationError(_0xdbcf32(0x76),_0xdbcf32(0x75),_0xdbcf32(0x71)+_0x47da81+_0xdbcf32(0x80));let _0x9a00bb;try{const _0x4309a3=await getNotificationChannelConfig(_0x41269e,_0x1f57ef[_0xdbcf32(0x81)]);_0x9a00bb=normalizeExactNotificationConfig(_0x4309a3,_0x41269e,_0x1f57ef[_0xdbcf32(0x81)]);}catch{throw safeApiFailure('create',_0xdbcf32(0x69),_0xdbcf32(0x71)+_0x47da81+';\x20do\x20not\x20resubmit\x20automatically.');}return{'ok':!![],'data':{'operation':_0xdbcf32(0x78),'selector':{'appCode':_0x9a00bb[_0xdbcf32(0x81)],'id':_0x9a00bb['id'],'configCode':_0x9a00bb[_0xdbcf32(0x67)],'configName':_0x9a00bb[_0xdbcf32(0x7c)],'channelType':_0x9a00bb[_0xdbcf32(0x7f)]},'before':null,'after':projectNotificationConfig(_0x9a00bb),'dryRun':![],'backend':{'method':'POST','path':CREATE_PATH},'warnings':[],'verification':{'status':'verified','lookupCommand':_0x47da81}},'message':_0xdbcf32(0x70)+_0x9a00bb['id']};}};
1
+ const a176_0x451087=a176_0x482a;(function(_0x3fce97,_0x4140ea){const _0x5209b6=a176_0x482a,_0x3d816a=_0x3fce97();while(!![]){try{const _0x328bb2=parseInt(_0x5209b6(0x1bb))/0x1+-parseInt(_0x5209b6(0x1af))/0x2*(-parseInt(_0x5209b6(0x1bc))/0x3)+-parseInt(_0x5209b6(0x1a8))/0x4*(-parseInt(_0x5209b6(0x1a9))/0x5)+parseInt(_0x5209b6(0x1b4))/0x6+-parseInt(_0x5209b6(0x1b1))/0x7*(-parseInt(_0x5209b6(0x1b0))/0x8)+parseInt(_0x5209b6(0x1b2))/0x9*(parseInt(_0x5209b6(0x1aa))/0xa)+-parseInt(_0x5209b6(0x1a6))/0xb;if(_0x328bb2===_0x4140ea)break;else _0x3d816a['push'](_0x3d816a['shift']());}catch(_0x2242c8){_0x3d816a['push'](_0x3d816a['shift']());}}}(a176_0x2bdb,0xa1f92));function a176_0x2bdb(){const _0x43c3ce=['1989099XAePIo','appCode','6970860xiVeWd','Inspect\x20with\x20','Notification\x20config\x20create\x20returned\x20no\x20usable\x20server\x20ID.','isSafeInteger','POST','planned','channelConfig','474661jVEjEi','46239kHlaUd',';\x20do\x20not\x20resubmit\x20automatically.','/notification/channel-config/create','channelType','notification_config_create_outcome_unknown','Notification\x20config\x20create\x20outcome\x20is\x20unknown\x20because\x20no\x20server\x20ID\x20was\x20received.','verified','document','verification','connectTimeout','config-create','54524800McckDT','create','2200wLRBpE','11095LPKcTs','50OEIaZi','configName',';\x20do\x20not\x20resubmit.','Create\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20source','description','106EvmTFa','77368DFDFvf','609IRIHpg'];a176_0x2bdb=function(){return _0x43c3ce;};return a176_0x2bdb();}import{asDryRunResult}from'../../commands/common/dry-run.js';function a176_0x482a(_0x2cdcd7,_0x24c5e9){_0x2cdcd7=_0x2cdcd7-0x1a5;const _0x2bdb2e=a176_0x2bdb();let _0x482afb=_0x2bdb2e[_0x2cdcd7];return _0x482afb;}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=a176_0x451087(0x1be);async function prepareCreate(_0x3a9f69){const _0x439811=a176_0x451087,_0x1c0e5f=await readNotificationDocument(_0x3a9f69,_0x439811(0x1a7)),_0x336e8b=createMutationInput(_0x3a9f69[_0x439811(0x1b3)],_0x1c0e5f);return{'document':_0x1c0e5f,'input':_0x336e8b,'planned':projectNotificationConfig({'appCode':_0x3a9f69[_0x439811(0x1b3)],'configName':_0x1c0e5f['configName'],'channelType':_0x1c0e5f[_0x439811(0x1bf)],'endpointUrl':_0x1c0e5f['endpointUrl'],'channelConfig':_0x1c0e5f[_0x439811(0x1ba)],'description':_0x1c0e5f[_0x439811(0x1ae)],'connectTimeout':_0x1c0e5f[_0x439811(0x1c5)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,'readTimeout':_0x1c0e5f['readTimeout']??DEFAULT_NOTIFICATION_READ_TIMEOUT})};}export const notificationConfigCreate={'service':'notification','command':a176_0x451087(0x1a5),'description':a176_0x451087(0x1ad),'risk':'write','requiresAppCode':!![],'structuredErrors':!![],'flags':[...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x3b5afa){assertSingleNotificationSource(_0x3b5afa);},async 'dryRun'(_0x4ed6e3){const _0x201692=a176_0x451087,_0x19d0ae=await prepareCreate(_0x4ed6e3),_0x313bf6=notificationLookupCommand(_0x4ed6e3[_0x201692(0x1b3)],_0x19d0ae['document']['channelType']);return asDryRunResult({'operation':_0x201692(0x1a7),'selector':{'appCode':_0x4ed6e3[_0x201692(0x1b3)],'configName':_0x19d0ae[_0x201692(0x1c3)][_0x201692(0x1ab)],'channelType':_0x19d0ae[_0x201692(0x1c3)]['channelType']},'before':null,'after':_0x19d0ae['planned'],'dryRun':!![],'backend':{'method':_0x201692(0x1b8),'path':CREATE_PATH},'warnings':[],'verification':{'status':_0x201692(0x1b9),'lookupCommand':_0x313bf6}},{'method':_0x201692(0x1b8),'url':CREATE_PATH});},async 'execute'(_0x3bc4de){const _0x1163e0=a176_0x451087,_0xc2a1aa=await prepareCreate(_0x3bc4de),_0x340a41=notificationLookupCommand(_0x3bc4de['appCode'],_0xc2a1aa[_0x1163e0(0x1c3)][_0x1163e0(0x1bf)]);let _0x51808a;try{_0x51808a=await createNotificationChannelConfig(_0xc2a1aa['input']);}catch(_0x380c13){if(isPlatformTransportFailure(_0x380c13))throw notificationError(_0x1163e0(0x1c0),_0x1163e0(0x1c1),_0x1163e0(0x1b5)+_0x340a41+_0x1163e0(0x1ac));throw safeApiFailure(_0x1163e0(0x1a7),'mutation','Inspect\x20with\x20'+_0x340a41+';\x20no\x20automatic\x20retry\x20was\x20attempted.');}if(!Number[_0x1163e0(0x1b7)](_0x51808a)||_0x51808a<=0x0)throw notificationError(_0x1163e0(0x1c0),_0x1163e0(0x1b6),_0x1163e0(0x1b5)+_0x340a41+_0x1163e0(0x1ac));let _0x3509a3;try{const _0x3ab0ef=await getNotificationChannelConfig(_0x51808a,_0x3bc4de[_0x1163e0(0x1b3)]);_0x3509a3=normalizeExactNotificationConfig(_0x3ab0ef,_0x51808a,_0x3bc4de[_0x1163e0(0x1b3)]);}catch{throw safeApiFailure(_0x1163e0(0x1a7),_0x1163e0(0x1c4),'Inspect\x20with\x20'+_0x340a41+_0x1163e0(0x1bd));}return{'ok':!![],'data':{'operation':_0x1163e0(0x1a7),'selector':{'appCode':_0x3509a3[_0x1163e0(0x1b3)],'id':_0x3509a3['id'],'configCode':_0x3509a3['configCode'],'configName':_0x3509a3['configName'],'channelType':_0x3509a3[_0x1163e0(0x1bf)]},'before':null,'after':projectNotificationConfig(_0x3509a3),'dryRun':![],'backend':{'method':_0x1163e0(0x1b8),'path':CREATE_PATH},'warnings':[],'verification':{'status':_0x1163e0(0x1c2),'lookupCommand':_0x340a41}},'message':'Created\x20notification\x20config\x20'+_0x3509a3['id']};}};
@@ -1 +1 @@
1
- const a177_0x3519af=a177_0x4184;(function(_0x575b9d,_0x3d8f3b){const _0x1b8e7c=a177_0x4184,_0x2669a9=_0x575b9d();while(!![]){try{const _0x31741b=-parseInt(_0x1b8e7c(0x131))/0x1+parseInt(_0x1b8e7c(0x145))/0x2+parseInt(_0x1b8e7c(0x144))/0x3*(-parseInt(_0x1b8e7c(0x129))/0x4)+parseInt(_0x1b8e7c(0x12c))/0x5+-parseInt(_0x1b8e7c(0x137))/0x6*(-parseInt(_0x1b8e7c(0x136))/0x7)+parseInt(_0x1b8e7c(0x134))/0x8+-parseInt(_0x1b8e7c(0x141))/0x9*(parseInt(_0x1b8e7c(0x139))/0xa);if(_0x31741b===_0x3d8f3b)break;else _0x2669a9['push'](_0x2669a9['shift']());}catch(_0x14399a){_0x2669a9['push'](_0x2669a9['shift']());}}}(a177_0x1f5c,0xa263e));import{asDryRunResult}from'../../commands/common/dry-run.js';function a177_0x4184(_0x40f59e,_0x397e63){_0x40f59e=_0x40f59e-0x129;const _0x1f5cb1=a177_0x1f5c();let _0x418479=_0x1f5cb1[_0x40f59e];return _0x418479;}function a177_0x1f5c(){const _0x5c5e7d=['500hqEBCt','delete','Delete\x20response\x20was\x20unavailable;\x20list\x20readback\x20proved\x20ID\x20absence\x20without\x20resubmitting.','POST','notification_config_delete_outcome_unknown','notification_config_delete_verification_unavailable','\x20remains\x20present\x20after\x20delete.','Delete\x20an\x20app-level\x20notification\x20config\x20after\x20exact\x20preflight','188739ireAaN','channelType','before','63027yFVyYh','2546900ZuaIZj','unshift','156qHkWFC','planned','Deleted\x20notification\x20config\x20','2301745OUmkSn','\x20delete\x20could\x20not\x20be\x20verified.','appCode','Notification\x20config\x20','notification','512404bAtZqB','some','notification_config_delete_verification_failed','3493728zmrEzc','config-delete','14FvYhUE','2624820lOYKyC','Inspect\x20with\x20'];a177_0x1f5c=function(){return _0x5c5e7d;};return a177_0x1f5c();}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='/notification/channel-config/delete',REFERENCE_WARNING='Deleting\x20this\x20app-level\x20config\x20may\x20make\x20dataset-level\x20channels\x20that\x20reference\x20it\x20unavailable;\x20dataset\x20references\x20were\x20not\x20verified\x20by\x20the\x20CLI.';async function prepareDelete(_0x1ff452){const _0x8da82f=a177_0x4184,_0x1b07c5=readNotificationId(_0x1ff452),_0x4a20b8=await requireExactNotificationConfig(_0x1ff452['appCode'],_0x1b07c5,_0x8da82f(0x13a));return{'id':_0x1b07c5,'before':_0x4a20b8};}export const notificationConfigDelete={'service':a177_0x3519af(0x130),'command':a177_0x3519af(0x135),'description':a177_0x3519af(0x140),'risk':'high-risk-write','requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,NOTIFICATION_APP_FLAG],async 'validate'(_0x41f0b5){readNotificationId(_0x41f0b5),requireNotificationExplicitYes(_0x41f0b5);},async 'dryRun'(_0x44a1c6){const _0x2c2e98=a177_0x3519af,_0x210fef=await prepareDelete(_0x44a1c6),_0x4b549d=notificationLookupCommand(_0x44a1c6[_0x2c2e98(0x12e)],_0x210fef[_0x2c2e98(0x143)][_0x2c2e98(0x142)]);return asDryRunResult({'operation':'delete','selector':notificationSelector(_0x210fef['before']),'before':projectNotificationConfig(_0x210fef['before']),'after':null,'dryRun':!![],'backend':{'method':_0x2c2e98(0x13c),'path':DELETE_PATH},'warnings':[REFERENCE_WARNING],'verification':{'status':_0x2c2e98(0x12a),'lookupCommand':_0x4b549d}},{'method':_0x2c2e98(0x13c),'url':DELETE_PATH});},async 'execute'(_0x54e690){const _0x12ac0c=a177_0x3519af;requireNotificationExplicitYes(_0x54e690);const _0x5d1741=await prepareDelete(_0x54e690),_0x235b9e=notificationLookupCommand(_0x54e690[_0x12ac0c(0x12e)],_0x5d1741['before'][_0x12ac0c(0x142)]);let _0x1c6f1e=![];try{await deleteNotificationChannelConfig(_0x5d1741['id'],_0x54e690[_0x12ac0c(0x12e)]);}catch(_0x652415){if(!isPlatformTransportFailure(_0x652415))throw safeApiFailure(_0x12ac0c(0x13a),'mutation',_0x12ac0c(0x138)+_0x235b9e+';\x20no\x20automatic\x20retry\x20was\x20attempted.');_0x1c6f1e=!![];}let _0x1a3227;try{_0x1a3227=await listNotificationChannelConfigs(_0x54e690['appCode'],_0x5d1741[_0x12ac0c(0x143)][_0x12ac0c(0x142)]),validateNotificationDeleteReadback(_0x1a3227,_0x54e690[_0x12ac0c(0x12e)],_0x5d1741[_0x12ac0c(0x143)][_0x12ac0c(0x142)]);}catch{throw notificationError(_0x1c6f1e?'notification_config_delete_outcome_unknown':_0x12ac0c(0x13e),_0x12ac0c(0x12f)+_0x5d1741['id']+_0x12ac0c(0x12d),'Inspect\x20with\x20'+_0x235b9e+';\x20do\x20not\x20resubmit\x20automatically.');}if(_0x1a3227[_0x12ac0c(0x132)](_0x4e2b62=>_0x4e2b62['id']===_0x5d1741['id']))throw notificationError(_0x1c6f1e?_0x12ac0c(0x13d):_0x12ac0c(0x133),_0x12ac0c(0x12f)+_0x5d1741['id']+_0x12ac0c(0x13f),'Inspect\x20with\x20'+_0x235b9e+';\x20do\x20not\x20resubmit\x20automatically.');const _0x119bf1=[REFERENCE_WARNING];return _0x1c6f1e&&_0x119bf1[_0x12ac0c(0x146)](_0x12ac0c(0x13b)),{'ok':!![],'data':{'operation':_0x12ac0c(0x13a),'selector':notificationSelector(_0x5d1741[_0x12ac0c(0x143)]),'before':projectNotificationConfig(_0x5d1741[_0x12ac0c(0x143)]),'after':null,'dryRun':![],'backend':{'method':_0x12ac0c(0x13c),'path':DELETE_PATH},'warnings':_0x119bf1,'verification':{'status':'verified','absenceConfirmed':!![],'recoveredAfterUnknownResponse':_0x1c6f1e,'lookupCommand':_0x235b9e}},'message':_0x12ac0c(0x12b)+_0x5d1741['id']};}};
1
+ const a177_0x2c646e=a177_0x340b;(function(_0x1d7814,_0x2df274){const _0x59a844=a177_0x340b,_0x5da148=_0x1d7814();while(!![]){try{const _0x3d7244=parseInt(_0x59a844(0x67))/0x1+parseInt(_0x59a844(0x84))/0x2+-parseInt(_0x59a844(0x73))/0x3*(parseInt(_0x59a844(0x70))/0x4)+parseInt(_0x59a844(0x72))/0x5+parseInt(_0x59a844(0x7d))/0x6*(-parseInt(_0x59a844(0x6c))/0x7)+-parseInt(_0x59a844(0x7e))/0x8+parseInt(_0x59a844(0x77))/0x9*(parseInt(_0x59a844(0x7c))/0xa);if(_0x3d7244===_0x2df274)break;else _0x5da148['push'](_0x5da148['shift']());}catch(_0xa4a496){_0x5da148['push'](_0x5da148['shift']());}}}(a177_0xf9ca,0x37bc3));import{asDryRunResult}from'../../commands/common/dry-run.js';import{deleteNotificationChannelConfig,isPlatformTransportFailure,listNotificationChannelConfigs}from'../../core/api-client.js';function a177_0xf9ca(){const _0x342756=['331079hMRrsC','high-risk-write','Notification\x20config\x20','planned','POST','2576UIwoLF',';\x20no\x20automatic\x20retry\x20was\x20attempted.','Inspect\x20with\x20','appCode','44dRgtts','mutation','798290pGcRDo','26628tRmxZQ','Delete\x20response\x20was\x20unavailable;\x20list\x20readback\x20proved\x20ID\x20absence\x20without\x20resubmitting.','verified','before','1701OLXHlk','notification_config_delete_outcome_unknown','channelType','\x20delete\x20could\x20not\x20be\x20verified.','Delete\x20an\x20app-level\x20notification\x20config\x20after\x20exact\x20preflight','12730azSVtX','4434EVXUvZ','3399000ATPLDF','\x20remains\x20present\x20after\x20delete.',';\x20do\x20not\x20resubmit\x20automatically.','delete','some','Deleted\x20notification\x20config\x20','582840nhxHtL','notification','notification_config_delete_verification_failed'];a177_0xf9ca=function(){return _0x342756;};return a177_0xf9ca();}import{notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,projectNotificationConfig,readNotificationId,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure,validateNotificationDeleteReadback}from'../../commands/notification/shared.js';function a177_0x340b(_0x56bfa8,_0x3f3639){_0x56bfa8=_0x56bfa8-0x65;const _0xf9ca4a=a177_0xf9ca();let _0x340ba1=_0xf9ca4a[_0x56bfa8];return _0x340ba1;}const DELETE_PATH='/notification/channel-config/delete',REFERENCE_WARNING='Deleting\x20this\x20app-level\x20config\x20may\x20make\x20dataset-level\x20channels\x20that\x20reference\x20it\x20unavailable;\x20dataset\x20references\x20were\x20not\x20verified\x20by\x20the\x20CLI.';async function prepareDelete(_0x57c121){const _0x50818b=readNotificationId(_0x57c121),_0x1dc11c=await requireExactNotificationConfig(_0x57c121['appCode'],_0x50818b,'delete');return{'id':_0x50818b,'before':_0x1dc11c};}export const notificationConfigDelete={'service':a177_0x2c646e(0x65),'command':'config-delete','description':a177_0x2c646e(0x7b),'risk':a177_0x2c646e(0x68),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,NOTIFICATION_APP_FLAG],async 'validate'(_0x54e86e){readNotificationId(_0x54e86e),requireNotificationExplicitYes(_0x54e86e);},async 'dryRun'(_0x42a283){const _0x2ce3c1=a177_0x2c646e,_0x33129=await prepareDelete(_0x42a283),_0x3acbd0=notificationLookupCommand(_0x42a283['appCode'],_0x33129[_0x2ce3c1(0x76)][_0x2ce3c1(0x79)]);return asDryRunResult({'operation':_0x2ce3c1(0x81),'selector':notificationSelector(_0x33129[_0x2ce3c1(0x76)]),'before':projectNotificationConfig(_0x33129[_0x2ce3c1(0x76)]),'after':null,'dryRun':!![],'backend':{'method':_0x2ce3c1(0x6b),'path':DELETE_PATH},'warnings':[REFERENCE_WARNING],'verification':{'status':_0x2ce3c1(0x6a),'lookupCommand':_0x3acbd0}},{'method':_0x2ce3c1(0x6b),'url':DELETE_PATH});},async 'execute'(_0x59499){const _0x328f6d=a177_0x2c646e;requireNotificationExplicitYes(_0x59499);const _0x579770=await prepareDelete(_0x59499),_0x3eb560=notificationLookupCommand(_0x59499[_0x328f6d(0x6f)],_0x579770[_0x328f6d(0x76)][_0x328f6d(0x79)]);let _0x131dcb=![];try{await deleteNotificationChannelConfig(_0x579770['id'],_0x59499[_0x328f6d(0x6f)]);}catch(_0x1cb5c4){if(!isPlatformTransportFailure(_0x1cb5c4))throw safeApiFailure(_0x328f6d(0x81),_0x328f6d(0x71),_0x328f6d(0x6e)+_0x3eb560+_0x328f6d(0x6d));_0x131dcb=!![];}let _0x2a7cda;try{_0x2a7cda=await listNotificationChannelConfigs(_0x59499[_0x328f6d(0x6f)],_0x579770[_0x328f6d(0x76)][_0x328f6d(0x79)]),validateNotificationDeleteReadback(_0x2a7cda,_0x59499['appCode'],_0x579770[_0x328f6d(0x76)][_0x328f6d(0x79)]);}catch{throw notificationError(_0x131dcb?_0x328f6d(0x78):'notification_config_delete_verification_unavailable',_0x328f6d(0x69)+_0x579770['id']+_0x328f6d(0x7a),_0x328f6d(0x6e)+_0x3eb560+_0x328f6d(0x80));}if(_0x2a7cda[_0x328f6d(0x82)](_0x1e03e9=>_0x1e03e9['id']===_0x579770['id']))throw notificationError(_0x131dcb?_0x328f6d(0x78):_0x328f6d(0x66),'Notification\x20config\x20'+_0x579770['id']+_0x328f6d(0x7f),_0x328f6d(0x6e)+_0x3eb560+_0x328f6d(0x80));const _0x1bb6ff=[REFERENCE_WARNING];return _0x131dcb&&_0x1bb6ff['unshift'](_0x328f6d(0x74)),{'ok':!![],'data':{'operation':_0x328f6d(0x81),'selector':notificationSelector(_0x579770['before']),'before':projectNotificationConfig(_0x579770['before']),'after':null,'dryRun':![],'backend':{'method':'POST','path':DELETE_PATH},'warnings':_0x1bb6ff,'verification':{'status':_0x328f6d(0x75),'absenceConfirmed':!![],'recoveredAfterUnknownResponse':_0x131dcb,'lookupCommand':_0x3eb560}},'message':_0x328f6d(0x83)+_0x579770['id']};}};
@@ -1 +1 @@
1
- function a178_0x23e7(_0x5580f1,_0x144a35){_0x5580f1=_0x5580f1-0x144;const _0x2f910c=a178_0x2f91();let _0x23e7aa=_0x2f910c[_0x5580f1];return _0x23e7aa;}const a178_0x3d9166=a178_0x23e7;(function(_0x2e88ba,_0x18f7ed){const _0xddcfc=a178_0x23e7,_0xb72e65=_0x2e88ba();while(!![]){try{const _0x20de4c=-parseInt(_0xddcfc(0x15f))/0x1+parseInt(_0xddcfc(0x154))/0x2*(-parseInt(_0xddcfc(0x148))/0x3)+-parseInt(_0xddcfc(0x155))/0x4*(-parseInt(_0xddcfc(0x14c))/0x5)+-parseInt(_0xddcfc(0x152))/0x6*(parseInt(_0xddcfc(0x15b))/0x7)+-parseInt(_0xddcfc(0x150))/0x8+parseInt(_0xddcfc(0x14f))/0x9*(parseInt(_0xddcfc(0x144))/0xa)+parseInt(_0xddcfc(0x159))/0xb;if(_0x20de4c===_0x18f7ed)break;else _0xb72e65['push'](_0xb72e65['shift']());}catch(_0x510db8){_0xb72e65['push'](_0xb72e65['shift']());}}}(a178_0x2f91,0xd2130));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listNotificationChannelConfigs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a178_0x2f91(){const _0x38f27f=['Notification\x20channel\x20type','48UWrZPs','length','1925604IMwxsi','4267972RelqhR','trim','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','bool','22030008cmLqwQ','List\x20configs\x20for\x20every\x20supported\x20notification\x20channel\x20type','90517JiTonY','map','boolean','all','793419xucYUx','string','Found\x20','4000310KzdjMZ','Use\x20--all,\x20or\x20query\x20one\x20explicit\x20--type.','flat','type','3mbXgjW','\x20notification\x20config(s)','notification','appCode','5rhqvvA','config-list','str','18zZvEzl','9197200MrEMlK'];a178_0x2f91=function(){return _0x38f27f;};return a178_0x2f91();}import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':a178_0x3d9166(0x14a),'command':a178_0x3d9166(0x14d),'description':a178_0x3d9166(0x157),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':'type','type':a178_0x3d9166(0x160),'description':a178_0x3d9166(0x151),'enum':NOTIFICATION_CHANNEL_TYPES},{'name':a178_0x3d9166(0x15e),'type':a178_0x3d9166(0x15d),'default':![],'description':a178_0x3d9166(0x15a)}],async 'validate'(_0x54d7a9){const _0x4fa941=a178_0x3d9166;if(_0x54d7a9[_0x4fa941(0x158)]('all')&&_0x54d7a9[_0x4fa941(0x14e)](_0x4fa941(0x147))[_0x4fa941(0x156)]())throw CliErrors['validation']('--all\x20and\x20--type\x20are\x20mutually\x20exclusive.',_0x4fa941(0x145));if(_0x54d7a9[_0x4fa941(0x158)](_0x4fa941(0x15e)))return;readNotificationChannelType(_0x54d7a9);},async 'execute'(_0x33ec98){const _0x23a3d0=a178_0x3d9166;if(_0x33ec98[_0x23a3d0(0x158)]('all')){const _0x1ec3f6=await Promise[_0x23a3d0(0x15e)](NOTIFICATION_CHANNEL_TYPES[_0x23a3d0(0x15c)](_0x36921d=>listNotificationChannelConfigs(_0x33ec98[_0x23a3d0(0x14b)],_0x36921d))),_0x11e626=_0x1ec3f6[_0x23a3d0(0x146)]()['map'](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x33ec98['appCode'],'channelTypes':NOTIFICATION_CHANNEL_TYPES,'count':_0x11e626['length'],'configs':_0x11e626},'message':_0x23a3d0(0x161)+_0x11e626[_0x23a3d0(0x153)]+'\x20notification\x20config(s)\x20across\x20all\x20channel\x20types'};}const _0x1c09d3=readNotificationChannelType(_0x33ec98),_0x1b44d6=await listNotificationChannelConfigs(_0x33ec98[_0x23a3d0(0x14b)],_0x1c09d3),_0x29c48f=_0x1b44d6[_0x23a3d0(0x15c)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x33ec98[_0x23a3d0(0x14b)],'channelType':_0x1c09d3,'count':_0x29c48f[_0x23a3d0(0x153)],'configs':_0x29c48f},'message':_0x23a3d0(0x161)+_0x29c48f[_0x23a3d0(0x153)]+'\x20'+_0x1c09d3+_0x23a3d0(0x149)};}};
1
+ const a178_0xeb4801=a178_0x2a1b;(function(_0x74bada,_0x32cfba){const _0x17cd24=a178_0x2a1b,_0x56700c=_0x74bada();while(!![]){try{const _0x310304=parseInt(_0x17cd24(0x19a))/0x1*(-parseInt(_0x17cd24(0x187))/0x2)+parseInt(_0x17cd24(0x18b))/0x3*(-parseInt(_0x17cd24(0x193))/0x4)+-parseInt(_0x17cd24(0x180))/0x5*(-parseInt(_0x17cd24(0x17e))/0x6)+parseInt(_0x17cd24(0x185))/0x7*(-parseInt(_0x17cd24(0x192))/0x8)+-parseInt(_0x17cd24(0x189))/0x9+-parseInt(_0x17cd24(0x194))/0xa+parseInt(_0x17cd24(0x199))/0xb;if(_0x310304===_0x32cfba)break;else _0x56700c['push'](_0x56700c['shift']());}catch(_0x31d46d){_0x56700c['push'](_0x56700c['shift']());}}}(a178_0x4fee,0x83351));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a178_0x2a1b(_0x1f2d2d,_0x40c3bd){_0x1f2d2d=_0x1f2d2d-0x17e;const _0x4fee33=a178_0x4fee();let _0x2a1bd6=_0x4fee33[_0x1f2d2d];return _0x2a1bd6;}import{listNotificationChannelConfigs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a178_0x4fee(){const _0xc067fc=['validation','672314nANSkA','string','7981227erELAA','config-list','27zkuQEF','flat','boolean','str','all','Found\x20','appCode','8gjgfCX','221276MbdYom','2536960abEvZj','List\x20configs\x20for\x20every\x20supported\x20notification\x20channel\x20type','map','length','\x20notification\x20config(s)','26206972iAPafL','1RWMgxc','type','18NcZfCK','read','238295lNJrsY','trim','Use\x20--all,\x20or\x20query\x20one\x20explicit\x20--type.','bool','--all\x20and\x20--type\x20are\x20mutually\x20exclusive.','94339tVIUvN'];a178_0x4fee=function(){return _0xc067fc;};return a178_0x4fee();}import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':'notification','command':a178_0xeb4801(0x18a),'description':'List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','risk':a178_0xeb4801(0x17f),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a178_0xeb4801(0x19b),'type':a178_0xeb4801(0x188),'description':'Notification\x20channel\x20type','enum':NOTIFICATION_CHANNEL_TYPES},{'name':a178_0xeb4801(0x18f),'type':a178_0xeb4801(0x18d),'default':![],'description':a178_0xeb4801(0x195)}],async 'validate'(_0x389225){const _0x3dc04a=a178_0xeb4801;if(_0x389225[_0x3dc04a(0x183)]('all')&&_0x389225[_0x3dc04a(0x18e)](_0x3dc04a(0x19b))[_0x3dc04a(0x181)]())throw CliErrors[_0x3dc04a(0x186)](_0x3dc04a(0x184),_0x3dc04a(0x182));if(_0x389225[_0x3dc04a(0x183)](_0x3dc04a(0x18f)))return;readNotificationChannelType(_0x389225);},async 'execute'(_0x24dac7){const _0x4a4c02=a178_0xeb4801;if(_0x24dac7[_0x4a4c02(0x183)]('all')){const _0x3ba7f0=await Promise['all'](NOTIFICATION_CHANNEL_TYPES['map'](_0x2ab2d1=>listNotificationChannelConfigs(_0x24dac7['appCode'],_0x2ab2d1))),_0x269e88=_0x3ba7f0[_0x4a4c02(0x18c)]()[_0x4a4c02(0x196)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x24dac7[_0x4a4c02(0x191)],'channelTypes':NOTIFICATION_CHANNEL_TYPES,'count':_0x269e88[_0x4a4c02(0x197)],'configs':_0x269e88},'message':_0x4a4c02(0x190)+_0x269e88[_0x4a4c02(0x197)]+'\x20notification\x20config(s)\x20across\x20all\x20channel\x20types'};}const _0x375695=readNotificationChannelType(_0x24dac7),_0x479858=await listNotificationChannelConfigs(_0x24dac7[_0x4a4c02(0x191)],_0x375695),_0x5f59eb=_0x479858[_0x4a4c02(0x196)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x24dac7['appCode'],'channelType':_0x375695,'count':_0x5f59eb[_0x4a4c02(0x197)],'configs':_0x5f59eb},'message':_0x4a4c02(0x190)+_0x5f59eb[_0x4a4c02(0x197)]+'\x20'+_0x375695+_0x4a4c02(0x198)};}};
@@ -1 +1 @@
1
- const a179_0x3bacbd=a179_0x5797;(function(_0x215e09,_0x2ca505){const _0x18eca0=a179_0x5797,_0x5e9e32=_0x215e09();while(!![]){try{const _0x170688=-parseInt(_0x18eca0(0x152))/0x1+parseInt(_0x18eca0(0x14e))/0x2+parseInt(_0x18eca0(0x14b))/0x3+-parseInt(_0x18eca0(0x146))/0x4+parseInt(_0x18eca0(0x149))/0x5*(-parseInt(_0x18eca0(0x148))/0x6)+-parseInt(_0x18eca0(0x13c))/0x7+parseInt(_0x18eca0(0x156))/0x8*(parseInt(_0x18eca0(0x14f))/0x9);if(_0x170688===_0x2ca505)break;else _0x5e9e32['push'](_0x5e9e32['shift']());}catch(_0x127b6a){_0x5e9e32['push'](_0x5e9e32['shift']());}}}(a179_0x2aae,0xd1b82));import{asDryRunResult}from'../../commands/common/dry-run.js';function a179_0x5797(_0xe4506a,_0x268e25){_0xe4506a=_0xe4506a-0x139;const _0x2aae6c=a179_0x2aae();let _0x5797c2=_0x2aae6c[_0xe4506a];return _0x5797c2;}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';function a179_0x2aae(){const _0x59872b=['Inspect\x20with\x20--id\x20','2858660CcgTgS','notification_config_update_outcome_unknown','2482212ncLpza','15IzUxPD','notification','5021064WPSjpA','\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20update.','POST','1259378nBwndt','14367105QBqhoo','verified','Updated\x20notification\x20config\x20','1622986yLWGBM','patch','verifiedFields','before','16IXLxbg','config-update','\x20with\x20','provesChange','update',';\x20do\x20not\x20resubmit\x20automatically.','notification_config_update_verification_unavailable','Inspect\x20ID\x20','mutation','\x20via\x20','7408100KFLXLy','Update\x20response\x20was\x20unavailable;\x20exact-ID\x20readback\x20proved\x20changed\x20safe\x20fields\x20without\x20resubmitting.',';\x20no\x20automatic\x20retry\x20was\x20attempted.','Notification\x20config\x20','planned','appCode','channelType','payload','notification_config_update_verification_failed'];a179_0x2aae=function(){return _0x59872b;};return a179_0x2aae();}async function prepareUpdate(_0x2ac079){const _0x3bb2b1=a179_0x5797,_0x4402d6=readNotificationId(_0x2ac079),_0x5b36ef=await readNotificationDocument(_0x2ac079,_0x3bb2b1(0x15a)),_0x567ad2=await requireExactNotificationConfig(_0x2ac079[_0x3bb2b1(0x141)],_0x4402d6,_0x3bb2b1(0x15a));return{'id':_0x4402d6,'patch':_0x5b36ef,'before':_0x567ad2,'payload':mergeUpdateInput(_0x567ad2,_0x5b36ef),'planned':plannedUpdateProjection(_0x567ad2,_0x5b36ef)};}export const notificationConfigUpdate={'service':a179_0x3bacbd(0x14a),'command':a179_0x3bacbd(0x157),'description':'Update\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20patch','risk':'high-risk-write','requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x3b7001){readNotificationId(_0x3b7001),assertSingleNotificationSource(_0x3b7001),requireNotificationExplicitYes(_0x3b7001);},async 'dryRun'(_0x2ff77c){const _0x436582=a179_0x3bacbd,_0x30d522=await prepareUpdate(_0x2ff77c),_0x43cd9f=notificationLookupCommand(_0x2ff77c['appCode'],_0x30d522[_0x436582(0x155)]['channelType']);return asDryRunResult({'operation':_0x436582(0x15a),'selector':notificationSelector(_0x30d522[_0x436582(0x155)]),'before':projectNotificationConfig(_0x30d522[_0x436582(0x155)]),'after':_0x30d522[_0x436582(0x140)],'dryRun':!![],'backend':{'method':_0x436582(0x14d),'path':UPDATE_PATH},'warnings':[],'verification':{'status':_0x436582(0x140),'lookupCommand':_0x43cd9f}},{'method':_0x436582(0x14d),'url':UPDATE_PATH});},async 'execute'(_0x47d2e9){const _0x4b046f=a179_0x3bacbd;requireNotificationExplicitYes(_0x47d2e9);const _0x453f8d=await prepareUpdate(_0x47d2e9),_0x3a83a8=notificationLookupCommand(_0x47d2e9['appCode'],_0x453f8d[_0x4b046f(0x155)][_0x4b046f(0x142)]);let _0x1359a3=![];try{await updateNotificationChannelConfig(_0x453f8d[_0x4b046f(0x143)]);}catch(_0x13fc8e){if(!isPlatformTransportFailure(_0x13fc8e))throw safeApiFailure(_0x4b046f(0x15a),_0x4b046f(0x13a),_0x4b046f(0x139)+_0x453f8d['id']+_0x4b046f(0x158)+_0x3a83a8+_0x4b046f(0x13e));_0x1359a3=!![];}let _0x1a31e0;try{const _0x3f3b8f=await getNotificationChannelConfig(_0x453f8d['id'],_0x47d2e9[_0x4b046f(0x141)]);_0x1a31e0=normalizeExactNotificationConfig(_0x3f3b8f,_0x453f8d['id'],_0x47d2e9['appCode']);}catch{throw notificationError(_0x1359a3?_0x4b046f(0x147):_0x4b046f(0x15c),_0x4b046f(0x13f)+_0x453f8d['id']+'\x20update\x20could\x20not\x20be\x20verified\x20by\x20exact\x20ID.',_0x4b046f(0x145)+_0x453f8d['id']+_0x4b046f(0x13b)+_0x3a83a8+_0x4b046f(0x15b));}const _0xbb5f3=requestedSafeFieldsMatch(_0x453f8d[_0x4b046f(0x155)],_0x1a31e0,_0x453f8d[_0x4b046f(0x153)]);if(!_0xbb5f3['allMatch']||_0x1359a3&&!_0xbb5f3[_0x4b046f(0x159)])throw notificationError(_0x1359a3?_0x4b046f(0x147):_0x4b046f(0x144),_0x4b046f(0x13f)+_0x453f8d['id']+_0x4b046f(0x14c),_0x4b046f(0x145)+_0x453f8d['id']+_0x4b046f(0x13b)+_0x3a83a8+_0x4b046f(0x15b));const _0x511df5=_0x1359a3?[_0x4b046f(0x13d)]:[];return{'ok':!![],'data':{'operation':_0x4b046f(0x15a),'selector':notificationSelector(_0x1a31e0),'before':projectNotificationConfig(_0x453f8d[_0x4b046f(0x155)]),'after':projectNotificationConfig(_0x1a31e0),'dryRun':![],'backend':{'method':_0x4b046f(0x14d),'path':UPDATE_PATH},'warnings':_0x511df5,'verification':{'status':_0x4b046f(0x150),'recoveredAfterUnknownResponse':_0x1359a3,'verifiedFields':_0xbb5f3[_0x4b046f(0x154)],'lookupCommand':_0x3a83a8}},'message':_0x4b046f(0x151)+_0x1a31e0['id']};}};
1
+ const a179_0x329bad=a179_0x2895;(function(_0xe63cbd,_0x40546e){const _0x216ade=a179_0x2895,_0x416077=_0xe63cbd();while(!![]){try{const _0x25f682=parseInt(_0x216ade(0xa5))/0x1*(-parseInt(_0x216ade(0xbc))/0x2)+parseInt(_0x216ade(0xb5))/0x3+parseInt(_0x216ade(0xaa))/0x4+-parseInt(_0x216ade(0xbe))/0x5*(-parseInt(_0x216ade(0xb6))/0x6)+parseInt(_0x216ade(0xc0))/0x7+parseInt(_0x216ade(0xc5))/0x8+parseInt(_0x216ade(0xa0))/0x9*(-parseInt(_0x216ade(0xc1))/0xa);if(_0x25f682===_0x40546e)break;else _0x416077['push'](_0x416077['shift']());}catch(_0x8573f9){_0x416077['push'](_0x416077['shift']());}}}(a179_0x24fd,0xde44f));import{asDryRunResult}from'../../commands/common/dry-run.js';function a179_0x2895(_0x20b22f,_0x5452ac){_0x20b22f=_0x20b22f-0xa0;const _0x24fdd9=a179_0x24fd();let _0x289531=_0x24fdd9[_0x20b22f];return _0x289531;}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';function a179_0x24fd(){const _0x413494=['406487yVHgKj','planned','notification_config_update_verification_failed',';\x20do\x20not\x20resubmit\x20automatically.','allMatch','2044392uUHnBO','Notification\x20config\x20','mutation','\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20update.',';\x20no\x20automatic\x20retry\x20was\x20attempted.','high-risk-write','payload','channelType','notification_config_update_outcome_unknown','Update\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20patch','Updated\x20notification\x20config\x20','3468111HCkbCy','3310134WPXhoX','config-update','verified','POST','provesChange','\x20update\x20could\x20not\x20be\x20verified\x20by\x20exact\x20ID.','2rENkWy','appCode','5HgKVqQ','update','5278770CPVPOY','20dSMyNh','before','patch','verifiedFields','2195008FNsxvw','8686836PJGRtK','Update\x20response\x20was\x20unavailable;\x20exact-ID\x20readback\x20proved\x20changed\x20safe\x20fields\x20without\x20resubmitting.','\x20via\x20','notification_config_update_verification_unavailable','Inspect\x20with\x20--id\x20'];a179_0x24fd=function(){return _0x413494;};return a179_0x24fd();}async function prepareUpdate(_0x1a2d99){const _0x1cc24f=a179_0x2895,_0x5300a2=readNotificationId(_0x1a2d99),_0x10a5dd=await readNotificationDocument(_0x1a2d99,_0x1cc24f(0xbf)),_0x15c48c=await requireExactNotificationConfig(_0x1a2d99[_0x1cc24f(0xbd)],_0x5300a2,_0x1cc24f(0xbf));return{'id':_0x5300a2,'patch':_0x10a5dd,'before':_0x15c48c,'payload':mergeUpdateInput(_0x15c48c,_0x10a5dd),'planned':plannedUpdateProjection(_0x15c48c,_0x10a5dd)};}export const notificationConfigUpdate={'service':'notification','command':a179_0x329bad(0xb7),'description':a179_0x329bad(0xb3),'risk':a179_0x329bad(0xaf),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0xa1e3fc){readNotificationId(_0xa1e3fc),assertSingleNotificationSource(_0xa1e3fc),requireNotificationExplicitYes(_0xa1e3fc);},async 'dryRun'(_0x32d2ab){const _0x7a63cc=a179_0x329bad,_0x3d47fe=await prepareUpdate(_0x32d2ab),_0x4db27a=notificationLookupCommand(_0x32d2ab[_0x7a63cc(0xbd)],_0x3d47fe[_0x7a63cc(0xc2)]['channelType']);return asDryRunResult({'operation':_0x7a63cc(0xbf),'selector':notificationSelector(_0x3d47fe[_0x7a63cc(0xc2)]),'before':projectNotificationConfig(_0x3d47fe[_0x7a63cc(0xc2)]),'after':_0x3d47fe[_0x7a63cc(0xa6)],'dryRun':!![],'backend':{'method':_0x7a63cc(0xb9),'path':UPDATE_PATH},'warnings':[],'verification':{'status':_0x7a63cc(0xa6),'lookupCommand':_0x4db27a}},{'method':'POST','url':UPDATE_PATH});},async 'execute'(_0x4c8c6c){const _0x36bf17=a179_0x329bad;requireNotificationExplicitYes(_0x4c8c6c);const _0x251d67=await prepareUpdate(_0x4c8c6c),_0x1d4c5c=notificationLookupCommand(_0x4c8c6c[_0x36bf17(0xbd)],_0x251d67['before'][_0x36bf17(0xb1)]);let _0x392953=![];try{await updateNotificationChannelConfig(_0x251d67[_0x36bf17(0xb0)]);}catch(_0x132c1e){if(!isPlatformTransportFailure(_0x132c1e))throw safeApiFailure('update',_0x36bf17(0xac),'Inspect\x20ID\x20'+_0x251d67['id']+'\x20with\x20'+_0x1d4c5c+_0x36bf17(0xae));_0x392953=!![];}let _0x562b4e;try{const _0x149d3b=await getNotificationChannelConfig(_0x251d67['id'],_0x4c8c6c[_0x36bf17(0xbd)]);_0x562b4e=normalizeExactNotificationConfig(_0x149d3b,_0x251d67['id'],_0x4c8c6c['appCode']);}catch{throw notificationError(_0x392953?_0x36bf17(0xb2):_0x36bf17(0xa3),_0x36bf17(0xab)+_0x251d67['id']+_0x36bf17(0xbb),_0x36bf17(0xa4)+_0x251d67['id']+_0x36bf17(0xa2)+_0x1d4c5c+_0x36bf17(0xa8));}const _0x57587e=requestedSafeFieldsMatch(_0x251d67[_0x36bf17(0xc2)],_0x562b4e,_0x251d67[_0x36bf17(0xc3)]);if(!_0x57587e[_0x36bf17(0xa9)]||_0x392953&&!_0x57587e[_0x36bf17(0xba)])throw notificationError(_0x392953?'notification_config_update_outcome_unknown':_0x36bf17(0xa7),'Notification\x20config\x20'+_0x251d67['id']+_0x36bf17(0xad),_0x36bf17(0xa4)+_0x251d67['id']+_0x36bf17(0xa2)+_0x1d4c5c+';\x20do\x20not\x20resubmit\x20automatically.');const _0x186518=_0x392953?[_0x36bf17(0xa1)]:[];return{'ok':!![],'data':{'operation':_0x36bf17(0xbf),'selector':notificationSelector(_0x562b4e),'before':projectNotificationConfig(_0x251d67[_0x36bf17(0xc2)]),'after':projectNotificationConfig(_0x562b4e),'dryRun':![],'backend':{'method':'POST','path':UPDATE_PATH},'warnings':_0x186518,'verification':{'status':_0x36bf17(0xb8),'recoveredAfterUnknownResponse':_0x392953,'verifiedFields':_0x57587e[_0x36bf17(0xc4)],'lookupCommand':_0x1d4c5c}},'message':_0x36bf17(0xb4)+_0x562b4e['id']};}};
@@ -1 +1 @@
1
- (function(_0x9753e6,_0x4beefb){const _0x467394=a180_0x2949,_0x5ab27d=_0x9753e6();while(!![]){try{const _0xcd679c=-parseInt(_0x467394(0x1a8))/0x1+parseInt(_0x467394(0x1aa))/0x2*(-parseInt(_0x467394(0x1a5))/0x3)+parseInt(_0x467394(0x1a7))/0x4+parseInt(_0x467394(0x1a4))/0x5+parseInt(_0x467394(0x1a2))/0x6*(-parseInt(_0x467394(0x1ac))/0x7)+parseInt(_0x467394(0x1a9))/0x8*(-parseInt(_0x467394(0x1a3))/0x9)+parseInt(_0x467394(0x1ab))/0xa*(parseInt(_0x467394(0x1a6))/0xb);if(_0xcd679c===_0x4beefb)break;else _0x5ab27d['push'](_0x5ab27d['shift']());}catch(_0x16ad99){_0x5ab27d['push'](_0x5ab27d['shift']());}}}(a180_0x2885,0xad887));import{notificationConfigList}from'../../commands/notification/config-list.js';import{notificationConfigCreate}from'../../commands/notification/config-create.js';import{notificationConfigUpdate}from'../../commands/notification/config-update.js';function a180_0x2949(_0x36cb86,_0x56c6d5){_0x36cb86=_0x36cb86-0x1a2;const _0x28850f=a180_0x2885();let _0x294951=_0x28850f[_0x36cb86];return _0x294951;}import{notificationConfigDelete}from'../../commands/notification/config-delete.js';function a180_0x2885(){const _0xffb8c4=['30CJGXtM','2079oJWtYf','398732pxIGpR','643962SsQQLy','241808HUYUji','131302QusoeX','90190AsOraH','35lubdiR','168780EYrOJo','198moxOCQ','5063055vlwLgJ'];a180_0x2885=function(){return _0xffb8c4;};return a180_0x2885();}export const notificationDefinitions=[notificationConfigList,notificationConfigCreate,notificationConfigUpdate,notificationConfigDelete];
1
+ (function(_0x51ad2e,_0x3da7ce){const _0x4bba4c=a180_0xe5d4,_0x8dc462=_0x51ad2e();while(!![]){try{const _0x269be4=parseInt(_0x4bba4c(0x187))/0x1+parseInt(_0x4bba4c(0x189))/0x2+-parseInt(_0x4bba4c(0x18b))/0x3+parseInt(_0x4bba4c(0x188))/0x4+-parseInt(_0x4bba4c(0x18c))/0x5+parseInt(_0x4bba4c(0x185))/0x6+-parseInt(_0x4bba4c(0x186))/0x7*(-parseInt(_0x4bba4c(0x18a))/0x8);if(_0x269be4===_0x3da7ce)break;else _0x8dc462['push'](_0x8dc462['shift']());}catch(_0x1a3743){_0x8dc462['push'](_0x8dc462['shift']());}}}(a180_0x5c09,0x66751));import{notificationConfigList}from'../../commands/notification/config-list.js';import{notificationConfigCreate}from'../../commands/notification/config-create.js';function a180_0xe5d4(_0x5da419,_0x2d2430){_0x5da419=_0x5da419-0x185;const _0x5c0911=a180_0x5c09();let _0xe5d47f=_0x5c0911[_0x5da419];return _0xe5d47f;}function a180_0x5c09(){const _0x11f3aa=['74616CnlAdb','72GSwaIC','1922490kPVPwV','3316830WvZtUX','1877256iilncU','394751blTNeo','311421DODoul','2218876OZrrmN'];a180_0x5c09=function(){return _0x11f3aa;};return a180_0x5c09();}import{notificationConfigUpdate}from'../../commands/notification/config-update.js';import{notificationConfigDelete}from'../../commands/notification/config-delete.js';export const notificationDefinitions=[notificationConfigList,notificationConfigCreate,notificationConfigUpdate,notificationConfigDelete];