@lovrabet/rabetbase-cli 2.5.8-beta.2 → 2.5.8

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 (376) 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/detail.js +1 -1
  26. package/lib/commands/app/index.js +1 -1
  27. package/lib/commands/app/list.js +1 -1
  28. package/lib/commands/app/members-list.js +1 -1
  29. package/lib/commands/app/remote-directory.js +1 -1
  30. package/lib/commands/app/shared.js +1 -1
  31. package/lib/commands/app-config/delete.js +1 -1
  32. package/lib/commands/app-config/get.js +1 -1
  33. package/lib/commands/app-config/index.js +1 -1
  34. package/lib/commands/app-config/list.js +1 -1
  35. package/lib/commands/app-config/set.js +1 -1
  36. package/lib/commands/app-config/shared.js +1 -1
  37. package/lib/commands/auth/index.js +1 -1
  38. package/lib/commands/bff/create.js +1 -1
  39. package/lib/commands/bff/delete.js +1 -1
  40. package/lib/commands/bff/detail.js +1 -1
  41. package/lib/commands/bff/index.js +1 -1
  42. package/lib/commands/bff/list.js +1 -1
  43. package/lib/commands/bff/logs.js +1 -1
  44. package/lib/commands/bff/pull.js +1 -1
  45. package/lib/commands/bff/push.js +1 -1
  46. package/lib/commands/bff/status.js +1 -1
  47. package/lib/commands/cli-skill/index.js +1 -1
  48. package/lib/commands/cli-update.js +1 -1
  49. package/lib/commands/codegen/index.js +1 -1
  50. package/lib/commands/codegen/sdk.js +1 -1
  51. package/lib/commands/codegen/sql.js +1 -1
  52. package/lib/commands/common/app-registry.js +1 -1
  53. package/lib/commands/common/app-selector.js +1 -1
  54. package/lib/commands/common/async-task.js +1 -1
  55. package/lib/commands/common/dry-run.js +1 -1
  56. package/lib/commands/common/flags.js +1 -1
  57. package/lib/commands/common/local-file.js +1 -1
  58. package/lib/commands/common/validate.js +1 -1
  59. package/lib/commands/config/delete.js +1 -1
  60. package/lib/commands/config/get.js +1 -1
  61. package/lib/commands/config/index.js +1 -1
  62. package/lib/commands/config/init.js +1 -1
  63. package/lib/commands/config/list.js +1 -1
  64. package/lib/commands/config/set.js +1 -1
  65. package/lib/commands/config/shared.js +1 -1
  66. package/lib/commands/dataset/batch-design.js +1 -1
  67. package/lib/commands/dataset/business-group-update.js +1 -1
  68. package/lib/commands/dataset/business-groups.js +1 -1
  69. package/lib/commands/dataset/capability.js +1 -1
  70. package/lib/commands/dataset/cross-relation-create.js +1 -1
  71. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  72. package/lib/commands/dataset/cross-relation-list.js +1 -1
  73. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  74. package/lib/commands/dataset/cross-relation-update.js +1 -1
  75. package/lib/commands/dataset/delete.js +1 -1
  76. package/lib/commands/dataset/design-context.js +1 -1
  77. package/lib/commands/dataset/design-start.js +1 -1
  78. package/lib/commands/dataset/design-status.js +1 -1
  79. package/lib/commands/dataset/design-sync-retry.js +1 -1
  80. package/lib/commands/dataset/design-sync-status.js +1 -1
  81. package/lib/commands/dataset/design-validate.js +1 -1
  82. package/lib/commands/dataset/detail.js +1 -1
  83. package/lib/commands/dataset/extend-update.js +1 -1
  84. package/lib/commands/dataset/field-restore.js +1 -1
  85. package/lib/commands/dataset/field-update.js +1 -1
  86. package/lib/commands/dataset/generate.js +1 -1
  87. package/lib/commands/dataset/index.js +1 -1
  88. package/lib/commands/dataset/list.js +1 -1
  89. package/lib/commands/dataset/operations.js +1 -1
  90. package/lib/commands/dataset/relation-audit.js +1 -1
  91. package/lib/commands/dataset/relation-create.js +1 -1
  92. package/lib/commands/dataset/relation-delete.js +1 -1
  93. package/lib/commands/dataset/relation-shared.js +1 -1
  94. package/lib/commands/dataset/relation-update.js +1 -1
  95. package/lib/commands/dataset/relations.js +1 -1
  96. package/lib/commands/dataset/rename.js +1 -1
  97. package/lib/commands/dataset/restore.js +1 -1
  98. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  99. package/lib/commands/db/analysis-batching.js +1 -1
  100. package/lib/commands/db/analyze-batch-plan.js +1 -1
  101. package/lib/commands/db/analyze-cancel.js +1 -1
  102. package/lib/commands/db/analyze-start.js +1 -1
  103. package/lib/commands/db/analyze-status.js +1 -1
  104. package/lib/commands/db/create.js +1 -1
  105. package/lib/commands/db/cross-db-analysis-shared.js +1 -1
  106. package/lib/commands/db/cross-db-analyze-latest.js +1 -1
  107. package/lib/commands/db/cross-db-analyze-start.js +1 -1
  108. package/lib/commands/db/cross-db-analyze-status.js +1 -1
  109. package/lib/commands/db/delete.js +1 -1
  110. package/lib/commands/db/detail.js +1 -1
  111. package/lib/commands/db/diff-refresh-start.js +1 -1
  112. package/lib/commands/db/diff-refresh-status.js +1 -1
  113. package/lib/commands/db/diff.js +1 -1
  114. package/lib/commands/db/index.js +1 -1
  115. package/lib/commands/db/list.js +1 -1
  116. package/lib/commands/db/shared.js +1 -1
  117. package/lib/commands/db/table-diff-shared.js +1 -1
  118. package/lib/commands/db/tables.js +1 -1
  119. package/lib/commands/db/test.js +1 -1
  120. package/lib/commands/db/update.js +1 -1
  121. package/lib/commands/deployment/index.js +1 -1
  122. package/lib/commands/deployment/sync-all.js +1 -1
  123. package/lib/commands/deployment/sync-jobs.js +1 -1
  124. package/lib/commands/deployment/sync-status.js +1 -1
  125. package/lib/commands/doctor.js +1 -1
  126. package/lib/commands/file/index.js +1 -1
  127. package/lib/commands/flow/create.js +1 -1
  128. package/lib/commands/flow/detail.js +1 -1
  129. package/lib/commands/flow/index.js +1 -1
  130. package/lib/commands/flow/list.js +1 -1
  131. package/lib/commands/flow/page-list.js +1 -1
  132. package/lib/commands/flow/publish.js +1 -1
  133. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  134. package/lib/commands/flow/runtime-role-list.js +1 -1
  135. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  136. package/lib/commands/flow/runtime-user-search.js +1 -1
  137. package/lib/commands/flow/shared.js +1 -1
  138. package/lib/commands/flow/update.js +1 -1
  139. package/lib/commands/flow/validate.js +1 -1
  140. package/lib/commands/instant-api-policy/current.js +1 -1
  141. package/lib/commands/instant-api-policy/index.js +1 -1
  142. package/lib/commands/instant-api-policy/init.js +1 -1
  143. package/lib/commands/instant-api-policy/publish.js +1 -1
  144. package/lib/commands/instant-api-policy/pull.js +1 -1
  145. package/lib/commands/instant-api-policy/revision.js +1 -1
  146. package/lib/commands/instant-api-policy/revisions.js +1 -1
  147. package/lib/commands/instant-api-policy/rollback.js +1 -1
  148. package/lib/commands/instant-api-policy/shared.js +1 -1
  149. package/lib/commands/instant-api-policy/validate.js +1 -1
  150. package/lib/commands/issue/index.js +1 -1
  151. package/lib/commands/issue/nudge.js +1 -1
  152. package/lib/commands/issue/report.js +1 -1
  153. package/lib/commands/issue/shared.js +1 -1
  154. package/lib/commands/kb/create.js +1 -1
  155. package/lib/commands/kb/delete.js +1 -1
  156. package/lib/commands/kb/detail.js +1 -1
  157. package/lib/commands/kb/index.js +1 -1
  158. package/lib/commands/kb/list.js +1 -1
  159. package/lib/commands/kb/search.js +1 -1
  160. package/lib/commands/kb/shared.js +1 -1
  161. package/lib/commands/kb/update.js +1 -1
  162. package/lib/commands/logs/index.js +1 -1
  163. package/lib/commands/menu/asset-update.js +1 -1
  164. package/lib/commands/menu/delete.js +1 -1
  165. package/lib/commands/menu/external-link-create.js +1 -1
  166. package/lib/commands/menu/external-link-update.js +1 -1
  167. package/lib/commands/menu/group-create.js +1 -1
  168. package/lib/commands/menu/group-update.js +1 -1
  169. package/lib/commands/menu/index.js +1 -1
  170. package/lib/commands/menu/list.js +1 -1
  171. package/lib/commands/menu/move.js +1 -1
  172. package/lib/commands/menu/regroup-start.js +1 -1
  173. package/lib/commands/menu/rename.js +1 -1
  174. package/lib/commands/menu/shared/compare-table.js +1 -1
  175. package/lib/commands/menu/shared/delete-plan.js +1 -1
  176. package/lib/commands/menu/shared/facts.js +1 -1
  177. package/lib/commands/menu/shared/index.js +1 -1
  178. package/lib/commands/menu/shared/inquirer.js +1 -1
  179. package/lib/commands/menu/shared/local-pages.js +1 -1
  180. package/lib/commands/menu/shared/logic.js +1 -1
  181. package/lib/commands/menu/shared/mutations.js +1 -1
  182. package/lib/commands/menu/shared/path.js +1 -1
  183. package/lib/commands/menu/shared/service.js +1 -1
  184. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  185. package/lib/commands/menu/shared/sync-core.js +1 -1
  186. package/lib/commands/menu/shared/update-core.js +1 -1
  187. package/lib/commands/menu/shared/valid-url.js +1 -1
  188. package/lib/commands/menu/subapp-assets-status.js +1 -1
  189. package/lib/commands/menu/subapp-assets-update.js +1 -1
  190. package/lib/commands/menu/sync.js +1 -1
  191. package/lib/commands/menu/visibility-update.js +1 -1
  192. package/lib/commands/notification/config-create.js +1 -1
  193. package/lib/commands/notification/config-delete.js +1 -1
  194. package/lib/commands/notification/config-list.js +1 -1
  195. package/lib/commands/notification/config-update.js +1 -1
  196. package/lib/commands/notification/index.js +1 -1
  197. package/lib/commands/notification/shared.js +1 -1
  198. package/lib/commands/ocr/index.js +1 -1
  199. package/lib/commands/page/create.js +1 -1
  200. package/lib/commands/page/custom/detail.js +1 -1
  201. package/lib/commands/page/custom/list.js +1 -1
  202. package/lib/commands/page/custom/publish.js +1 -1
  203. package/lib/commands/page/custom/shared.js +1 -1
  204. package/lib/commands/page/custom/syntax.js +1 -1
  205. package/lib/commands/page/custom/update.js +1 -1
  206. package/lib/commands/page/data-list-status.js +1 -1
  207. package/lib/commands/page/generate-start.js +1 -1
  208. package/lib/commands/page/generate-status.js +1 -1
  209. package/lib/commands/page/index.js +1 -1
  210. package/lib/commands/page/pull.js +1 -1
  211. package/lib/commands/page/push.js +1 -1
  212. package/lib/commands/page/relation-audit.js +1 -1
  213. package/lib/commands/page/restore.js +1 -1
  214. package/lib/commands/page/shared.js +1 -1
  215. package/lib/commands/page/sync.js +1 -1
  216. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  217. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  218. package/lib/commands/project/create/format-elapsed.js +1 -1
  219. package/lib/commands/project/create/main.js +1 -1
  220. package/lib/commands/project/create/materialize-project-template.js +1 -1
  221. package/lib/commands/project/create/project-name.js +1 -1
  222. package/lib/commands/project/create/project-template-archive.js +1 -1
  223. package/lib/commands/project/create/project-template-path.js +1 -1
  224. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  225. package/lib/commands/project/create/use-format-code.js +1 -1
  226. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  227. package/lib/commands/project/domain-routing-sync.js +1 -1
  228. package/lib/commands/project/index.js +1 -1
  229. package/lib/commands/project/upgrade.js +1 -1
  230. package/lib/commands/registry.js +1 -1
  231. package/lib/commands/role/delete.js +1 -1
  232. package/lib/commands/role/detail.js +1 -1
  233. package/lib/commands/role/index.js +1 -1
  234. package/lib/commands/role/list.js +1 -1
  235. package/lib/commands/role/shared.js +1 -1
  236. package/lib/commands/role/update.js +1 -1
  237. package/lib/commands/role/user-add.js +1 -1
  238. package/lib/commands/role/user-remove.js +1 -1
  239. package/lib/commands/role/user-resolve.js +1 -1
  240. package/lib/commands/rule/get.js +1 -1
  241. package/lib/commands/rule/index.js +1 -1
  242. package/lib/commands/rule/list.js +1 -1
  243. package/lib/commands/rule/set.js +1 -1
  244. package/lib/commands/rule/shared.js +1 -1
  245. package/lib/commands/run/index.js +1 -1
  246. package/lib/commands/schema.js +1 -1
  247. package/lib/commands/sql/create.js +1 -1
  248. package/lib/commands/sql/delete.js +1 -1
  249. package/lib/commands/sql/detail.js +1 -1
  250. package/lib/commands/sql/exec.js +1 -1
  251. package/lib/commands/sql/index.js +1 -1
  252. package/lib/commands/sql/list.js +1 -1
  253. package/lib/commands/sql/pull.js +1 -1
  254. package/lib/commands/sql/push.js +1 -1
  255. package/lib/commands/sql/shared.js +1 -1
  256. package/lib/commands/sql/status.js +1 -1
  257. package/lib/commands/sql/validate.js +1 -1
  258. package/lib/commands/task/index.js +1 -1
  259. package/lib/commands/task/status.js +1 -1
  260. package/lib/commands/tenant/index.js +1 -1
  261. package/lib/commands/tenant/members-list.js +1 -1
  262. package/lib/commands/tenant/shared.js +1 -1
  263. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  264. package/lib/commands/user-account/feishu-bind.js +1 -1
  265. package/lib/commands/user-account/index.js +1 -1
  266. package/lib/commands/workspace/add.js +1 -1
  267. package/lib/commands/workspace/index.js +1 -1
  268. package/lib/commands/workspace/remove.js +1 -1
  269. package/lib/config/domain-config.js +1 -1
  270. package/lib/config/project-domain-routing.js +1 -1
  271. package/lib/config/region-config.js +1 -1
  272. package/lib/config/schema.js +1 -1
  273. package/lib/constant/cdn.js +1 -1
  274. package/lib/constant/cli.js +1 -1
  275. package/lib/constant/defaults.js +1 -1
  276. package/lib/constant/domain.js +1 -1
  277. package/lib/constant/env.js +1 -1
  278. package/lib/constant/output.js +1 -1
  279. package/lib/constant/paths.js +1 -1
  280. package/lib/constant/region.js +1 -1
  281. package/lib/constant/risk.js +1 -1
  282. package/lib/constant/routing-profile.js +1 -1
  283. package/lib/context/app-resolver.js +1 -1
  284. package/lib/context/auth-resolver.js +1 -1
  285. package/lib/context/config-loader.js +1 -1
  286. package/lib/context.js +1 -1
  287. package/lib/core/alias-resolver.js +1 -1
  288. package/lib/core/api-client.js +1 -1
  289. package/lib/core/bff/config.js +1 -1
  290. package/lib/core/bff/file-system.js +1 -1
  291. package/lib/core/bff/hash.js +1 -1
  292. package/lib/core/bff/hook-directory.js +1 -1
  293. package/lib/core/bff/lock.js +1 -1
  294. package/lib/core/bff/utils.js +1 -1
  295. package/lib/core/cross-db-analysis.js +1 -1
  296. package/lib/core/cross-db-relation.js +1 -1
  297. package/lib/core/db-resolver.js +1 -1
  298. package/lib/core/flow-config.js +1 -1
  299. package/lib/core/instant-api-policy/config.js +1 -1
  300. package/lib/core/kb-management-client.js +1 -1
  301. package/lib/core/kb-search-client.js +1 -1
  302. package/lib/core/page/file-system.js +1 -1
  303. package/lib/core/page/hash.js +1 -1
  304. package/lib/core/page/lock.js +1 -1
  305. package/lib/core/page/lr-smart-jsx.js +1 -1
  306. package/lib/core/sql-index-auditor.js +1 -1
  307. package/lib/core/sql-sync/config.js +1 -1
  308. package/lib/core/sql-sync/file-system.js +1 -1
  309. package/lib/core/sql-sync/hash.js +1 -1
  310. package/lib/core/sql-sync/lock.js +1 -1
  311. package/lib/core/sql-sync/utils.js +1 -1
  312. package/lib/core/sql-validator.js +1 -1
  313. package/lib/errors.js +1 -1
  314. package/lib/framework/build-all-flags.js +1 -1
  315. package/lib/framework/error-output.js +1 -1
  316. package/lib/framework/explicit-yes.js +1 -1
  317. package/lib/framework/flags.js +1 -1
  318. package/lib/framework/help.js +1 -1
  319. package/lib/framework/index.js +1 -1
  320. package/lib/framework/output.js +1 -1
  321. package/lib/framework/response.js +1 -1
  322. package/lib/framework/runner-alias.js +1 -1
  323. package/lib/framework/runner.js +1 -1
  324. package/lib/framework/schema-export.js +1 -1
  325. package/lib/framework/supported-flags.js +1 -1
  326. package/lib/framework/types.js +1 -1
  327. package/lib/generated/build-info.d.ts +4 -4
  328. package/lib/generated/build-info.js +1 -1
  329. package/lib/generated/official-routing.js +1 -1
  330. package/lib/generated/routing-contract.js +1 -1
  331. package/lib/help.js +1 -1
  332. package/lib/postinstall.js +1 -1
  333. package/lib/runtime/confirmation.js +1 -1
  334. package/lib/runtime/event.js +1 -1
  335. package/lib/runtime/index.js +1 -1
  336. package/lib/runtime/queue.js +1 -1
  337. package/lib/runtime/resolve.js +1 -1
  338. package/lib/services/dataset-design/checkpoint.js +1 -1
  339. package/lib/services/dataset-design/commands.js +1 -1
  340. package/lib/services/dataset-design/contract.js +1 -1
  341. package/lib/skills/builtin-skill.js +1 -1
  342. package/lib/skills/main.js +1 -1
  343. package/lib/skills/npx-skills-add.js +1 -1
  344. package/lib/skills/skill-presence.js +1 -1
  345. package/lib/telemetry/cli-command-trace.js +1 -1
  346. package/lib/telemetry/cli-help-trace.js +1 -1
  347. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  348. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  349. package/lib/telemetry/send-cli-trace-log.js +1 -1
  350. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  351. package/lib/utils/ai_config.js +1 -1
  352. package/lib/utils/apply-jq-filter.js +1 -1
  353. package/lib/utils/cdn-config.js +1 -1
  354. package/lib/utils/check-sdk-version.js +1 -1
  355. package/lib/utils/cli-version-check.js +1 -1
  356. package/lib/utils/cli-version-policy.js +1 -1
  357. package/lib/utils/config.js +1 -1
  358. package/lib/utils/entity-with-id.js +1 -1
  359. package/lib/utils/file-utils.js +1 -1
  360. package/lib/utils/guides-cdn.js +1 -1
  361. package/lib/utils/http-client.js +1 -1
  362. package/lib/utils/is-non-interactive.js +1 -1
  363. package/lib/utils/logger.js +1 -1
  364. package/lib/utils/params.js +1 -1
  365. package/lib/utils/platform.js +1 -1
  366. package/lib/utils/sleep.js +1 -1
  367. package/lib/utils/template-replacer.js +1 -1
  368. package/lib/utils/update-notice.js +1 -1
  369. package/lib/utils/version.js +1 -1
  370. package/lib/utils/with-active-cookie.js +1 -1
  371. package/lib/utils/write-cli-side-channel.js +1 -1
  372. package/package.json +1 -1
  373. package/skills/rabetbase/SKILL.md +1 -1
  374. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  375. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  376. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0x2413bc,_0x2a4124){const _0x5f0103=a186_0xc246,_0x1d40f6=_0x2413bc();while(!![]){try{const _0x1f3c95=-parseInt(_0x5f0103(0xcd))/0x1+parseInt(_0x5f0103(0xd1))/0x2+parseInt(_0x5f0103(0xd0))/0x3+parseInt(_0x5f0103(0xa5))/0x4+-parseInt(_0x5f0103(0xdd))/0x5*(parseInt(_0x5f0103(0xc6))/0x6)+parseInt(_0x5f0103(0xbd))/0x7+-parseInt(_0x5f0103(0xab))/0x8;if(_0x1f3c95===_0x2a4124)break;else _0x1d40f6['push'](_0x1d40f6['shift']());}catch(_0x281eb8){_0x1d40f6['push'](_0x1d40f6['shift']());}}}(a186_0x5568,0xa0fce));import{updateMenuCdnUrl,getOnlineMenuList}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';function a186_0xc246(_0x1a46b2,_0x3a780a){_0x1a46b2=_0x1a46b2-0xa2;const _0x5568c=a186_0x5568();let _0xc2463c=_0x5568c[_0x1a46b2];return _0xc2463c;}import{logger}from'../../../utils/logger.js';function validateParams(_0x207f07){const _0x3f2258=a186_0xc246,_0x167dd4=[];return _0x207f07[_0x3f2258(0xce)]&&!isValidJsHttpsUrl(_0x207f07[_0x3f2258(0xce)])&&_0x167dd4['push']({'field':'jsUrl','message':_0x3f2258(0xcc)}),_0x207f07[_0x3f2258(0xa8)]&&!isValidCssHttpsUrl(_0x207f07[_0x3f2258(0xa8)])&&_0x167dd4[_0x3f2258(0xbb)]({'field':_0x3f2258(0xa8),'message':_0x3f2258(0xcb)}),_0x167dd4;}export async function runMenuUpdateCore(_0x2c5b77,_0x44479f,_0x205613,_0x4d119b={}){const _0x25ff99=a186_0xc246,_0x4c42cb=parseUpdateParamsFlag(_0x205613),_0x505b4d=normalizeMode(_0x4d119b[_0x25ff99(0xd9)]);validateSelection(_0x4d119b['selection']);const _0x596f5d=[];if(_0x4c42cb[_0x25ff99(0xce)])_0x596f5d[_0x25ff99(0xbb)](_0x4c42cb[_0x25ff99(0xce)]);if(_0x4c42cb[_0x25ff99(0xa8)])_0x596f5d[_0x25ff99(0xbb)](_0x4c42cb['cssUrl']);const _0x2f03b6=validateParams(_0x4c42cb);if(_0x2f03b6[_0x25ff99(0xbc)]>0x0){const _0x12e754=_0x2f03b6['map'](_0x58ba34=>_0x25ff99(0xc7)+_0x58ba34['field']+':\x20'+_0x58ba34['message'])['join'](';\x20');throw new Error(_0x25ff99(0xb3)+_0x12e754);}if(_0x596f5d['length']===0x0)throw new Error(_0x25ff99(0xa2)+_0x25ff99(0xb1));logger[_0x25ff99(0xca)](process['cwd']()),logger[_0x25ff99(0xae)](_0x25ff99(0xe1),_0x25ff99(0xd4),{'appCode':_0x2c5b77,'jsUrl':_0x4c42cb[_0x25ff99(0xce)],'cssUrl':_0x4c42cb[_0x25ff99(0xa8)],'mode':_0x505b4d,'dryRun':_0x4d119b[_0x25ff99(0xb2)]===!![]});if(_0x4c42cb['jsUrl']){const _0x32a5b9=await isUrlReachable(_0x4c42cb[_0x25ff99(0xce)]);if(!_0x32a5b9)throw new Error(_0x25ff99(0xcf)+_0x4c42cb[_0x25ff99(0xce)]);}if(_0x4c42cb[_0x25ff99(0xa8)]){const _0x272e75=await isUrlReachable(_0x4c42cb[_0x25ff99(0xa8)]);if(!_0x272e75)throw new Error('CSS\x20URL\x20is\x20unreachable:\x20'+_0x4c42cb[_0x25ff99(0xa8)]);}const _0x5eba9e=await getOnlineMenuList(_0x2c5b77,_0x44479f),_0x122602=_0x5eba9e[_0x25ff99(0xdf)](_0x1baa44=>_0x1baa44[_0x25ff99(0xe4)]['length']>0x0),_0x2dfbab=selectMenusForUpdate(_0x122602,_0x4d119b[_0x25ff99(0xc1)]);if(_0x2dfbab['length']===0x0)return{'updated':0x0,'failed':0x0,'skipped':!![],'dryRun':_0x4d119b['dryRun']===!![]};const _0x3897ba=_0x2dfbab[_0x25ff99(0xad)](_0x27ecab=>buildMenuUpdateDiff(_0x27ecab,_0x4c42cb,_0x505b4d,_0x4d119b[_0x25ff99(0xc3)]===!![],_0x4d119b[_0x25ff99(0xaa)]));if(_0x4d119b['dryRun'])return{'updated':0x0,'failed':0x0,'skipped':![],'dryRun':!![],'diffs':_0x3897ba};const _0x50b5c4=await Promise[_0x25ff99(0xc9)](_0x2dfbab['map']((_0x34ae76,_0x5b4304)=>updateMenuCdnUrl(_0x2c5b77,_0x44479f,{'id':_0x34ae76['id'],'label':_0x34ae76['label'],'path':_0x34ae76[_0x25ff99(0xe2)],'resources':_0x3897ba[_0x5b4304][_0x25ff99(0xa7)][_0x25ff99(0xe4)],'extend':_0x34ae76['extend']??null,'loadScriptMode':_0x4d119b['loadScriptMode']}))),_0x4a19fb=_0x50b5c4[_0x25ff99(0xdf)](_0x542899=>_0x542899[_0x25ff99(0xb4)]===_0x25ff99(0xe0))[_0x25ff99(0xad)](_0x53b968=>_0x53b968['value']),_0x37a9f1=_0x50b5c4[_0x25ff99(0xdf)](_0x12d4c2=>_0x12d4c2[_0x25ff99(0xb4)]===_0x25ff99(0xd8))[_0x25ff99(0xbc)];return logger[_0x25ff99(0xae)](_0x25ff99(0xe1),_0x25ff99(0xa6),{'count':_0x2dfbab[_0x25ff99(0xbc)],'resources':_0x596f5d}),{'updated':_0x4a19fb[_0x25ff99(0xbc)],'failed':_0x37a9f1,'skipped':![],'menus':_0x4a19fb};}function validateSelection(_0x37a5d9){const _0x16eca1=a186_0xc246;if(!_0x37a5d9)throw new Error(_0x16eca1(0xb9));if(_0x37a5d9[_0x16eca1(0xac)]&&(_0x37a5d9[_0x16eca1(0xd5)][_0x16eca1(0xbc)]>0x0||_0x37a5d9['paths'][_0x16eca1(0xbc)]>0x0))throw new Error(_0x16eca1(0xa9));if(!_0x37a5d9[_0x16eca1(0xac)]&&_0x37a5d9[_0x16eca1(0xd5)]['length']===0x0&&_0x37a5d9[_0x16eca1(0xc5)]['length']===0x0)throw new Error(_0x16eca1(0xb9));}export function selectMenusForUpdate(_0x9c42d7,_0x28c2eb){const _0xc2a77f=a186_0xc246;validateSelection(_0x28c2eb);if(_0x28c2eb[_0xc2a77f(0xac)])return _0x9c42d7;const _0x51a758=new Set(_0x9c42d7[_0xc2a77f(0xad)](_0x1a9f9c=>_0x1a9f9c['id'])),_0x159628=new Set(_0x9c42d7[_0xc2a77f(0xad)](_0x503370=>_0x503370[_0xc2a77f(0xe2)])),_0x35f129=_0x28c2eb[_0xc2a77f(0xd5)]['filter'](_0x5cea5c=>!_0x51a758['has'](_0x5cea5c)),_0x4db505=_0x28c2eb[_0xc2a77f(0xc5)][_0xc2a77f(0xdf)](_0x1b24c8=>!_0x159628[_0xc2a77f(0xda)](_0x1b24c8));if(_0x35f129[_0xc2a77f(0xbc)]>0x0||_0x4db505['length']>0x0){const _0xea4d64=[..._0x35f129['map'](_0xa42ad5=>String(_0xa42ad5)),..._0x4db505]['join'](',\x20');throw new Error('menu\x20asset-update\x20selectors\x20did\x20not\x20match\x20resource-bearing\x20menus:\x20'+_0xea4d64);}const _0x576fe7=new Set(_0x28c2eb[_0xc2a77f(0xd5)]),_0x27aeaf=new Set(_0x28c2eb[_0xc2a77f(0xc5)]);return _0x9c42d7[_0xc2a77f(0xdf)](_0x146646=>_0x576fe7[_0xc2a77f(0xda)](_0x146646['id'])||_0x27aeaf['has'](_0x146646[_0xc2a77f(0xe2)]));}function normalizeMode(_0x5e828f){const _0x13d67e=a186_0xc246;if(!_0x5e828f)return _0x13d67e(0xe3);if(_0x5e828f===_0x13d67e(0xd7)||_0x5e828f===_0x13d67e(0xe3))return _0x5e828f;throw new Error(_0x13d67e(0xc4)+_0x5e828f+_0x13d67e(0xba));}function buildMenuUpdateDiff(_0x1f5419,_0x3ac8c6,_0x22e898,_0x296430,_0x52cf06){const _0x188c55=a186_0xc246,_0xedfa03=[..._0x1f5419[_0x188c55(0xe4)]];_0x22e898===_0x188c55(0xe3)&&assertUnambiguousPatchResources(_0x1f5419,_0xedfa03,_0x3ac8c6);const _0x47f2ff=_0x22e898===_0x188c55(0xe3)?patchResources(_0xedfa03,_0x3ac8c6):replaceResources(_0x3ac8c6),_0x496082=[],_0x2b1b89=_0xedfa03['some'](isJsResource),_0x534951=_0x47f2ff['some'](isJsResource);if(_0x2b1b89&&!_0x534951){const _0x167fc3=_0x188c55(0xdb)+_0x1f5419[_0x188c55(0xd6)]+_0x188c55(0xbe)+_0x1f5419[_0x188c55(0xe2)]+').\x20'+'Use\x20--mode\x20patch\x20to\x20preserve\x20it,\x20pass\x20jsUrl,\x20or\x20add\x20--force\x20for\x20an\x20intentional\x20removal.';if(!_0x296430)throw new Error(_0x167fc3);_0x496082[_0x188c55(0xbb)](_0x167fc3);}const _0x19a16c=_0xedfa03[_0x188c55(0xb8)](isCssResource),_0x27f010=_0x47f2ff[_0x188c55(0xb8)](isCssResource);_0x19a16c&&!_0x27f010&&_0x496082[_0x188c55(0xbb)](_0x188c55(0xc8)+_0x1f5419[_0x188c55(0xd6)]+_0x188c55(0xbe)+_0x1f5419[_0x188c55(0xe2)]+').');const _0x4a54de=typeof _0x1f5419[_0x188c55(0xbf)]?.[_0x188c55(0xaa)]===_0x188c55(0xd3)?_0x1f5419[_0x188c55(0xbf)][_0x188c55(0xaa)]:null,_0x4d52dd=_0x52cf06?{'loadScriptMode':_0x4a54de}:{},_0x3eb557=_0x52cf06?{'loadScriptMode':_0x52cf06}:{};return{'id':_0x1f5419['id'],'label':_0x1f5419[_0x188c55(0xd6)],'path':_0x1f5419[_0x188c55(0xe2)],'mode':_0x22e898,'before':{'resources':_0xedfa03,..._0x4d52dd},'after':{'resources':_0x47f2ff,..._0x3eb557},'warnings':_0x496082};}function a186_0x5568(){const _0x720d3b=['menu\x20asset-update\x20requires\x20an\x20explicit\x20target:\x20pass\x20--all,\x20--menu-ids,\x20or\x20--paths.','.\x20Allowed\x20values:\x20replace,\x20patch','push','length','4946669vPXuWm','\x22\x20(','extend','with\x20a\x20single\x20cssUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.','selection','menu\x20asset-update\x20cannot\x20patch\x20','force','Invalid\x20--mode:\x20','paths','36bphSjv','--params.','menu\x20asset-update\x20will\x20remove\x20existing\x20CSS\x20resource\x20for\x20\x22','allSettled','setLogPath','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','254426ONSKUl','jsUrl','JS\x20URL\x20is\x20unreachable:\x20','1181100WduAbB','147322zBGdWc','\x20existing\x20CSS\x20resources\x20for\x20\x22','string','Start\x20non-interactive\x20menu\x20asset\x20update','menuIds','label','replace','rejected','mode','has','menu\x20asset-update\x20would\x20remove\x20existing\x20JS\x20resource\x20for\x20\x22','\x20existing\x20JS\x20resources\x20for\x20\x22','310610xBfNSY','trim','filter','fulfilled','menu-asset-update','path','patch','resources','Invalid\x20--params:\x20menu\x20asset-update\x20requires\x20at\x20least\x20one\x20explicit\x20JS/CSS\x20URL.\x20','endsWith','parse','4427668TVhRjC','Menu\x20asset\x20update\x20completed','after','cssUrl','--all\x20cannot\x20be\x20combined\x20with\x20--menu-ids\x20or\x20--paths.','loadScriptMode','7955048UdHIWD','all','map','info','isArray','with\x20a\x20single\x20jsUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.','Pass\x20--params\x20\x27{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}\x27\x20to\x20update\x20assets.','dryRun','Invalid\x20--params:\x20','status','.css','toLowerCase','.js','some'];a186_0x5568=function(){return _0x720d3b;};return a186_0x5568();}function replaceResources(_0x56c4f0){const _0x14ad0d=a186_0xc246;return[_0x56c4f0[_0x14ad0d(0xce)],_0x56c4f0[_0x14ad0d(0xa8)]][_0x14ad0d(0xdf)](_0x3a8ab3=>!!_0x3a8ab3);}function assertUnambiguousPatchResources(_0x3e71cf,_0x49291e,_0x5dbbea){const _0x47ef59=a186_0xc246,_0x53863f=_0x49291e[_0x47ef59(0xdf)](isJsResource)[_0x47ef59(0xbc)];if(_0x5dbbea[_0x47ef59(0xce)]&&_0x53863f>0x1)throw new Error(_0x47ef59(0xc2)+_0x53863f+_0x47ef59(0xdc)+_0x3e71cf[_0x47ef59(0xd6)]+_0x47ef59(0xbe)+_0x3e71cf[_0x47ef59(0xe2)]+')\x20'+_0x47ef59(0xb0));const _0x1bdc33=_0x49291e['filter'](isCssResource)['length'];if(_0x5dbbea[_0x47ef59(0xa8)]&&_0x1bdc33>0x1)throw new Error('menu\x20asset-update\x20cannot\x20patch\x20'+_0x1bdc33+_0x47ef59(0xd2)+_0x3e71cf[_0x47ef59(0xd6)]+'\x22\x20('+_0x3e71cf[_0x47ef59(0xe2)]+')\x20'+_0x47ef59(0xc0));}function patchResources(_0x42760f,_0x32276f){const _0x3b0012=a186_0xc246;let _0x24d352=![],_0x212215=![];const _0x29437a=[];for(const _0x4e4aa0 of _0x42760f){if(isJsResource(_0x4e4aa0)){if(_0x32276f[_0x3b0012(0xce)]&&!_0x24d352)_0x29437a[_0x3b0012(0xbb)](_0x32276f[_0x3b0012(0xce)]),_0x24d352=!![];else!_0x32276f['jsUrl']&&_0x29437a['push'](_0x4e4aa0);continue;}if(isCssResource(_0x4e4aa0)){if(_0x32276f[_0x3b0012(0xa8)]&&!_0x212215)_0x29437a[_0x3b0012(0xbb)](_0x32276f['cssUrl']),_0x212215=!![];else!_0x32276f['cssUrl']&&_0x29437a[_0x3b0012(0xbb)](_0x4e4aa0);continue;}_0x29437a['push'](_0x4e4aa0);}return _0x32276f[_0x3b0012(0xce)]&&!_0x24d352&&_0x29437a['unshift'](_0x32276f[_0x3b0012(0xce)]),_0x32276f[_0x3b0012(0xa8)]&&!_0x212215&&_0x29437a[_0x3b0012(0xbb)](_0x32276f[_0x3b0012(0xa8)]),_0x29437a;}function isJsResource(_0x59b75d){const _0x25defe=a186_0xc246;return stripQuery(_0x59b75d)[_0x25defe(0xb6)]()[_0x25defe(0xa3)](_0x25defe(0xb7));}function isCssResource(_0x5ead66){const _0x1f04f5=a186_0xc246;return stripQuery(_0x5ead66)[_0x1f04f5(0xb6)]()[_0x1f04f5(0xa3)](_0x1f04f5(0xb5));}function stripQuery(_0x8720b0){return _0x8720b0['split']('?')[0x0]??_0x8720b0;}function parseUpdateParamsFlag(_0x178c5d){const _0x4e8b1e=a186_0xc246;if(!_0x178c5d||typeof _0x178c5d!==_0x4e8b1e(0xd3))return{};try{const _0x59d01b=JSON[_0x4e8b1e(0xa4)](_0x178c5d);if(typeof _0x59d01b!=='object'||_0x59d01b===null||Array[_0x4e8b1e(0xaf)](_0x59d01b))return{};return{'jsUrl':typeof _0x59d01b[_0x4e8b1e(0xce)]===_0x4e8b1e(0xd3)?_0x59d01b[_0x4e8b1e(0xce)][_0x4e8b1e(0xde)]():undefined,'cssUrl':typeof _0x59d01b['cssUrl']===_0x4e8b1e(0xd3)?_0x59d01b['cssUrl'][_0x4e8b1e(0xde)]():undefined};}catch{return{};}}
1
+ (function(_0x730652,_0x4f315d){const _0x383ca0=a186_0x86ea,_0x575243=_0x730652();while(!![]){try{const _0x30aed9=-parseInt(_0x383ca0(0xd3))/0x1*(-parseInt(_0x383ca0(0xbd))/0x2)+parseInt(_0x383ca0(0xcf))/0x3+-parseInt(_0x383ca0(0xc8))/0x4+-parseInt(_0x383ca0(0xa5))/0x5*(parseInt(_0x383ca0(0xe9))/0x6)+-parseInt(_0x383ca0(0xed))/0x7*(-parseInt(_0x383ca0(0xc7))/0x8)+parseInt(_0x383ca0(0xca))/0x9*(parseInt(_0x383ca0(0xc9))/0xa)+-parseInt(_0x383ca0(0xaf))/0xb*(parseInt(_0x383ca0(0xeb))/0xc);if(_0x30aed9===_0x4f315d)break;else _0x575243['push'](_0x575243['shift']());}catch(_0x286f53){_0x575243['push'](_0x575243['shift']());}}}(a186_0x4592,0xeb3fc));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(_0x202883){const _0x51830f=a186_0x86ea,_0x2d8115=[];return _0x202883[_0x51830f(0xe4)]&&!isValidJsHttpsUrl(_0x202883[_0x51830f(0xe4)])&&_0x2d8115[_0x51830f(0xe6)]({'field':_0x51830f(0xe4),'message':_0x51830f(0xd4)}),_0x202883[_0x51830f(0xde)]&&!isValidCssHttpsUrl(_0x202883[_0x51830f(0xde)])&&_0x2d8115[_0x51830f(0xe6)]({'field':_0x51830f(0xde),'message':_0x51830f(0xce)}),_0x2d8115;}export async function runMenuUpdateCore(_0x463044,_0x5ab627,_0x20838e,_0x1f31f8={}){const _0x28b73d=a186_0x86ea,_0x8ff921=parseUpdateParamsFlag(_0x20838e),_0x15883b=normalizeMode(_0x1f31f8[_0x28b73d(0xc4)]);validateSelection(_0x1f31f8[_0x28b73d(0xad)]);const _0x5f262f=[];if(_0x8ff921['jsUrl'])_0x5f262f[_0x28b73d(0xe6)](_0x8ff921[_0x28b73d(0xe4)]);if(_0x8ff921[_0x28b73d(0xde)])_0x5f262f[_0x28b73d(0xe6)](_0x8ff921[_0x28b73d(0xde)]);const _0xe2e0e4=validateParams(_0x8ff921);if(_0xe2e0e4[_0x28b73d(0xb7)]>0x0){const _0x569504=_0xe2e0e4[_0x28b73d(0xb6)](_0x28974a=>_0x28b73d(0xc0)+_0x28974a[_0x28b73d(0xab)]+':\x20'+_0x28974a[_0x28b73d(0xe5)])[_0x28b73d(0xdf)](';\x20');throw new Error(_0x28b73d(0xa3)+_0x569504);}if(_0x5f262f[_0x28b73d(0xb7)]===0x0)throw new Error('Invalid\x20--params:\x20menu\x20asset-update\x20requires\x20at\x20least\x20one\x20explicit\x20JS/CSS\x20URL.\x20'+'Pass\x20--params\x20\x27{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}\x27\x20to\x20update\x20assets.');logger[_0x28b73d(0xec)](process[_0x28b73d(0xf0)]()),logger['info'](_0x28b73d(0xf1),_0x28b73d(0xd5),{'appCode':_0x463044,'jsUrl':_0x8ff921[_0x28b73d(0xe4)],'cssUrl':_0x8ff921[_0x28b73d(0xde)],'mode':_0x15883b,'dryRun':_0x1f31f8[_0x28b73d(0xcb)]===!![]});if(_0x8ff921['jsUrl']){const _0xe750d0=await isUrlReachable(_0x8ff921[_0x28b73d(0xe4)]);if(!_0xe750d0)throw new Error(_0x28b73d(0xa9)+_0x8ff921['jsUrl']);}if(_0x8ff921[_0x28b73d(0xde)]){const _0x277dde=await isUrlReachable(_0x8ff921[_0x28b73d(0xde)]);if(!_0x277dde)throw new Error(_0x28b73d(0xdc)+_0x8ff921['cssUrl']);}const _0x53795b=await getOnlineMenuList(_0x463044,_0x5ab627),_0x286180=_0x53795b['filter'](_0x26331a=>_0x26331a[_0x28b73d(0xd1)][_0x28b73d(0xb7)]>0x0),_0x29a01d=selectMenusForUpdate(_0x286180,_0x1f31f8[_0x28b73d(0xad)]);if(_0x29a01d['length']===0x0)return{'updated':0x0,'failed':0x0,'skipped':!![],'dryRun':_0x1f31f8[_0x28b73d(0xcb)]===!![]};const _0x2bd7f1=_0x29a01d[_0x28b73d(0xb6)](_0x93760c=>buildMenuUpdateDiff(_0x93760c,_0x8ff921,_0x15883b,_0x1f31f8[_0x28b73d(0xba)]===!![],_0x1f31f8['loadScriptMode']));if(_0x1f31f8[_0x28b73d(0xcb)])return{'updated':0x0,'failed':0x0,'skipped':![],'dryRun':!![],'diffs':_0x2bd7f1};const _0x29c04f=await Promise[_0x28b73d(0xb1)](_0x29a01d[_0x28b73d(0xb6)]((_0x31a241,_0x240cbb)=>updateMenuCdnUrl(_0x463044,_0x5ab627,{'id':_0x31a241['id'],'label':_0x31a241[_0x28b73d(0xda)],'path':_0x31a241['path'],'resources':_0x2bd7f1[_0x240cbb]['after'][_0x28b73d(0xd1)],'extend':_0x31a241[_0x28b73d(0xd7)]??null,'loadScriptMode':_0x1f31f8['loadScriptMode']}))),_0x31ac05=_0x29c04f[_0x28b73d(0xd0)](_0x2bf8df=>_0x2bf8df[_0x28b73d(0xc5)]===_0x28b73d(0xee))[_0x28b73d(0xb6)](_0x581dcd=>_0x581dcd[_0x28b73d(0xb4)]),_0x5cd9d5=_0x29c04f[_0x28b73d(0xd0)](_0x3f852b=>_0x3f852b[_0x28b73d(0xc5)]===_0x28b73d(0xb5))[_0x28b73d(0xb7)];return logger[_0x28b73d(0xef)](_0x28b73d(0xf1),_0x28b73d(0xd2),{'count':_0x29a01d[_0x28b73d(0xb7)],'resources':_0x5f262f}),{'updated':_0x31ac05[_0x28b73d(0xb7)],'failed':_0x5cd9d5,'skipped':![],'menus':_0x31ac05};}function validateSelection(_0x5199fc){const _0x40af56=a186_0x86ea;if(!_0x5199fc)throw new Error(_0x40af56(0xc2));if(_0x5199fc[_0x40af56(0xe1)]&&(_0x5199fc['menuIds'][_0x40af56(0xb7)]>0x0||_0x5199fc['paths'][_0x40af56(0xb7)]>0x0))throw new Error(_0x40af56(0xe0));if(!_0x5199fc[_0x40af56(0xe1)]&&_0x5199fc[_0x40af56(0xc6)][_0x40af56(0xb7)]===0x0&&_0x5199fc['paths']['length']===0x0)throw new Error(_0x40af56(0xc2));}function a186_0x86ea(_0x5ae814,_0x5963b9){_0x5ae814=_0x5ae814-0xa3;const _0x459285=a186_0x4592();let _0x86ea8=_0x459285[_0x5ae814];return _0x86ea8;}export function selectMenusForUpdate(_0x9a40c7,_0x15ac5f){const _0xf9c769=a186_0x86ea;validateSelection(_0x15ac5f);if(_0x15ac5f[_0xf9c769(0xe1)])return _0x9a40c7;const _0x537a82=new Set(_0x9a40c7[_0xf9c769(0xb6)](_0x3855e6=>_0x3855e6['id'])),_0x5d928a=new Set(_0x9a40c7['map'](_0x4bf895=>_0x4bf895[_0xf9c769(0xcc)])),_0x2645c5=_0x15ac5f[_0xf9c769(0xc6)][_0xf9c769(0xd0)](_0xdb8ba7=>!_0x537a82['has'](_0xdb8ba7)),_0x41e701=_0x15ac5f[_0xf9c769(0xd8)][_0xf9c769(0xd0)](_0x4357f5=>!_0x5d928a[_0xf9c769(0xdb)](_0x4357f5));if(_0x2645c5[_0xf9c769(0xb7)]>0x0||_0x41e701[_0xf9c769(0xb7)]>0x0){const _0x56d413=[..._0x2645c5[_0xf9c769(0xb6)](_0x1bfc49=>String(_0x1bfc49)),..._0x41e701][_0xf9c769(0xdf)](',\x20');throw new Error(_0xf9c769(0xae)+_0x56d413);}const _0x32f6e1=new Set(_0x15ac5f[_0xf9c769(0xc6)]),_0x4a7753=new Set(_0x15ac5f[_0xf9c769(0xd8)]);return _0x9a40c7[_0xf9c769(0xd0)](_0x188c81=>_0x32f6e1[_0xf9c769(0xdb)](_0x188c81['id'])||_0x4a7753[_0xf9c769(0xdb)](_0x188c81[_0xf9c769(0xcc)]));}function normalizeMode(_0x3a5a85){const _0x2d64c1=a186_0x86ea;if(!_0x3a5a85)return _0x2d64c1(0xa6);if(_0x3a5a85===_0x2d64c1(0xe7)||_0x3a5a85===_0x2d64c1(0xa6))return _0x3a5a85;throw new Error(_0x2d64c1(0xd9)+_0x3a5a85+_0x2d64c1(0xbf));}function buildMenuUpdateDiff(_0x4d1dcf,_0x4fc285,_0x59b567,_0x17dcbc,_0x34329f){const _0x16a798=a186_0x86ea,_0x1cf485=[..._0x4d1dcf[_0x16a798(0xd1)]];_0x59b567===_0x16a798(0xa6)&&assertUnambiguousPatchResources(_0x4d1dcf,_0x1cf485,_0x4fc285);const _0x372465=_0x59b567===_0x16a798(0xa6)?patchResources(_0x1cf485,_0x4fc285):replaceResources(_0x4fc285),_0x2588cf=[],_0x3b2b80=_0x1cf485['some'](isJsResource),_0x3f078a=_0x372465[_0x16a798(0xa7)](isJsResource);if(_0x3b2b80&&!_0x3f078a){const _0x5127c7=_0x16a798(0xbc)+_0x4d1dcf[_0x16a798(0xda)]+_0x16a798(0xc3)+_0x4d1dcf['path']+_0x16a798(0xdd)+_0x16a798(0xa4);if(!_0x17dcbc)throw new Error(_0x5127c7);_0x2588cf[_0x16a798(0xe6)](_0x5127c7);}const _0x468b89=_0x1cf485[_0x16a798(0xa7)](isCssResource),_0x1650d1=_0x372465['some'](isCssResource);_0x468b89&&!_0x1650d1&&_0x2588cf[_0x16a798(0xe6)](_0x16a798(0xb0)+_0x4d1dcf[_0x16a798(0xda)]+_0x16a798(0xc3)+_0x4d1dcf[_0x16a798(0xcc)]+').');const _0x2c2a03=typeof _0x4d1dcf[_0x16a798(0xd7)]?.[_0x16a798(0xb3)]==='string'?_0x4d1dcf[_0x16a798(0xd7)]['loadScriptMode']:null,_0x283875=_0x34329f?{'loadScriptMode':_0x2c2a03}:{},_0x31aa2d=_0x34329f?{'loadScriptMode':_0x34329f}:{};return{'id':_0x4d1dcf['id'],'label':_0x4d1dcf['label'],'path':_0x4d1dcf[_0x16a798(0xcc)],'mode':_0x59b567,'before':{'resources':_0x1cf485,..._0x283875},'after':{'resources':_0x372465,..._0x31aa2d},'warnings':_0x2588cf};}function replaceResources(_0x1e7ae2){const _0x5a326b=a186_0x86ea;return[_0x1e7ae2[_0x5a326b(0xe4)],_0x1e7ae2[_0x5a326b(0xde)]][_0x5a326b(0xd0)](_0xb9512=>!!_0xb9512);}function a186_0x4592(){const _0x84c177=[').\x20','cssUrl','join','--all\x20cannot\x20be\x20combined\x20with\x20--menu-ids\x20or\x20--paths.','all','unshift','isArray','jsUrl','message','push','replace','menu\x20asset-update\x20cannot\x20patch\x20','66yCylMG','string','852VRhofM','setLogPath','14UUqdOs','fulfilled','info','cwd','menu-asset-update','Invalid\x20--params:\x20','Use\x20--mode\x20patch\x20to\x20preserve\x20it,\x20pass\x20jsUrl,\x20or\x20add\x20--force\x20for\x20an\x20intentional\x20removal.','448965inhITQ','patch','some','.css','JS\x20URL\x20is\x20unreachable:\x20','split','field','endsWith','selection','menu\x20asset-update\x20selectors\x20did\x20not\x20match\x20resource-bearing\x20menus:\x20','319121zGxQrH','menu\x20asset-update\x20will\x20remove\x20existing\x20CSS\x20resource\x20for\x20\x22','allSettled','\x20existing\x20CSS\x20resources\x20for\x20\x22','loadScriptMode','value','rejected','map','length','.js','trim','force','object','menu\x20asset-update\x20would\x20remove\x20existing\x20JS\x20resource\x20for\x20\x22','652CqbTnk','with\x20a\x20single\x20jsUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.','.\x20Allowed\x20values:\x20replace,\x20patch','--params.','toLowerCase','menu\x20asset-update\x20requires\x20an\x20explicit\x20target:\x20pass\x20--all,\x20--menu-ids,\x20or\x20--paths.','\x22\x20(','mode','status','menuIds','3933160EIKkGA','259644VMMoGj','60DrWmDm','183564JRTJMc','dryRun','path','\x20existing\x20JS\x20resources\x20for\x20\x22','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','4933461FMUgFa','filter','resources','Menu\x20asset\x20update\x20completed','4067Meszff','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','Start\x20non-interactive\x20menu\x20asset\x20update','with\x20a\x20single\x20cssUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.','extend','paths','Invalid\x20--mode:\x20','label','has','CSS\x20URL\x20is\x20unreachable:\x20'];a186_0x4592=function(){return _0x84c177;};return a186_0x4592();}function assertUnambiguousPatchResources(_0x315c14,_0xcda089,_0x211cd7){const _0x131a9e=a186_0x86ea,_0x1c13f1=_0xcda089[_0x131a9e(0xd0)](isJsResource)[_0x131a9e(0xb7)];if(_0x211cd7['jsUrl']&&_0x1c13f1>0x1)throw new Error(_0x131a9e(0xe8)+_0x1c13f1+_0x131a9e(0xcd)+_0x315c14[_0x131a9e(0xda)]+'\x22\x20('+_0x315c14[_0x131a9e(0xcc)]+')\x20'+_0x131a9e(0xbe));const _0x3b5319=_0xcda089[_0x131a9e(0xd0)](isCssResource)[_0x131a9e(0xb7)];if(_0x211cd7[_0x131a9e(0xde)]&&_0x3b5319>0x1)throw new Error(_0x131a9e(0xe8)+_0x3b5319+_0x131a9e(0xb2)+_0x315c14['label']+_0x131a9e(0xc3)+_0x315c14[_0x131a9e(0xcc)]+')\x20'+_0x131a9e(0xd6));}function patchResources(_0x20c2ce,_0x422802){const _0x172025=a186_0x86ea;let _0x38de98=![],_0x38ab25=![];const _0x2321d1=[];for(const _0x25bc8b of _0x20c2ce){if(isJsResource(_0x25bc8b)){if(_0x422802[_0x172025(0xe4)]&&!_0x38de98)_0x2321d1[_0x172025(0xe6)](_0x422802[_0x172025(0xe4)]),_0x38de98=!![];else!_0x422802[_0x172025(0xe4)]&&_0x2321d1['push'](_0x25bc8b);continue;}if(isCssResource(_0x25bc8b)){if(_0x422802[_0x172025(0xde)]&&!_0x38ab25)_0x2321d1['push'](_0x422802[_0x172025(0xde)]),_0x38ab25=!![];else!_0x422802[_0x172025(0xde)]&&_0x2321d1[_0x172025(0xe6)](_0x25bc8b);continue;}_0x2321d1[_0x172025(0xe6)](_0x25bc8b);}return _0x422802['jsUrl']&&!_0x38de98&&_0x2321d1[_0x172025(0xe2)](_0x422802['jsUrl']),_0x422802[_0x172025(0xde)]&&!_0x38ab25&&_0x2321d1[_0x172025(0xe6)](_0x422802[_0x172025(0xde)]),_0x2321d1;}function isJsResource(_0x5ca3ca){const _0x4a65ae=a186_0x86ea;return stripQuery(_0x5ca3ca)['toLowerCase']()[_0x4a65ae(0xac)](_0x4a65ae(0xb8));}function isCssResource(_0x266b8e){const _0x33f5e7=a186_0x86ea;return stripQuery(_0x266b8e)[_0x33f5e7(0xc1)]()[_0x33f5e7(0xac)](_0x33f5e7(0xa8));}function stripQuery(_0x158caa){const _0x5e8f62=a186_0x86ea;return _0x158caa[_0x5e8f62(0xaa)]('?')[0x0]??_0x158caa;}function parseUpdateParamsFlag(_0x5e7b9c){const _0x263c12=a186_0x86ea;if(!_0x5e7b9c||typeof _0x5e7b9c!==_0x263c12(0xea))return{};try{const _0x4d4e01=JSON['parse'](_0x5e7b9c);if(typeof _0x4d4e01!==_0x263c12(0xbb)||_0x4d4e01===null||Array[_0x263c12(0xe3)](_0x4d4e01))return{};return{'jsUrl':typeof _0x4d4e01['jsUrl']===_0x263c12(0xea)?_0x4d4e01[_0x263c12(0xe4)][_0x263c12(0xb9)]():undefined,'cssUrl':typeof _0x4d4e01['cssUrl']===_0x263c12(0xea)?_0x4d4e01[_0x263c12(0xde)][_0x263c12(0xb9)]():undefined};}catch{return{};}}
@@ -1 +1 @@
1
- (function(_0x4b2d98,_0x2dabf8){const _0x1f58db=a187_0x1576,_0x30409c=_0x4b2d98();while(!![]){try{const _0x336860=parseInt(_0x1f58db(0x1bd))/0x1+-parseInt(_0x1f58db(0x1b7))/0x2+parseInt(_0x1f58db(0x1b8))/0x3*(parseInt(_0x1f58db(0x1bf))/0x4)+-parseInt(_0x1f58db(0x1b6))/0x5*(parseInt(_0x1f58db(0x1be))/0x6)+parseInt(_0x1f58db(0x1b3))/0x7+-parseInt(_0x1f58db(0x1ba))/0x8+parseInt(_0x1f58db(0x1bb))/0x9*(parseInt(_0x1f58db(0x1b5))/0xa);if(_0x336860===_0x2dabf8)break;else _0x30409c['push'](_0x30409c['shift']());}catch(_0x5d1afd){_0x30409c['push'](_0x30409c['shift']());}}}(a187_0x512b,0x1ad79));export function isValidJsHttpsUrl(_0x58ebbf){const _0x32368a=a187_0x1576;return/^https:\/\/.+\.js(\?.*)?$/['test'](_0x58ebbf[_0x32368a(0x1bc)]());}function a187_0x1576(_0x4684f7,_0x3f63d3){_0x4684f7=_0x4684f7-0x1b3;const _0x512bb2=a187_0x512b();let _0x15768b=_0x512bb2[_0x4684f7];return _0x15768b;}export function isValidCssHttpsUrl(_0x45814a){const _0x53e73a=a187_0x1576;return/^https:\/\/.+\.css(\?.*)?$/[_0x53e73a(0x1b4)](_0x45814a[_0x53e73a(0x1bc)]());}function a187_0x512b(){const _0x3234c4=['386902twAxVE','9OwWCQn','cancel','1361656nbSBQc','18curLtB','trim','160287WQVuhB','438niCKjf','111412LduDWu','HEAD','body','bytes=0-0','GET','1218091Foxjtp','test','492610frVCdH','2930uRswnp'];a187_0x512b=function(){return _0x3234c4;};return a187_0x512b();}export async function isUrlReachable(_0x4ddebf){const _0x304d33=a187_0x1576;try{const _0x247b4b=await fetch(_0x4ddebf,{'method':_0x304d33(0x1c0)});if(_0x247b4b['ok'])return!![];}catch{}try{const _0x2253ea=await fetch(_0x4ddebf,{'method':_0x304d33(0x1c3),'headers':{'Range':_0x304d33(0x1c2)}}),_0x40b769=_0x2253ea['ok'];try{await _0x2253ea[_0x304d33(0x1c1)]?.[_0x304d33(0x1b9)]();}catch{}return _0x40b769;}catch{return![];}}
1
+ (function(_0x217576,_0x4cc439){const _0x269f45=a187_0x37eb,_0x1c77cf=_0x217576();while(!![]){try{const _0x3851f6=-parseInt(_0x269f45(0x85))/0x1+-parseInt(_0x269f45(0x87))/0x2+parseInt(_0x269f45(0x83))/0x3+parseInt(_0x269f45(0x84))/0x4*(parseInt(_0x269f45(0x7c))/0x5)+-parseInt(_0x269f45(0x7f))/0x6*(-parseInt(_0x269f45(0x7d))/0x7)+parseInt(_0x269f45(0x8a))/0x8+-parseInt(_0x269f45(0x81))/0x9*(-parseInt(_0x269f45(0x86))/0xa);if(_0x3851f6===_0x4cc439)break;else _0x1c77cf['push'](_0x1c77cf['shift']());}catch(_0x16fbad){_0x1c77cf['push'](_0x1c77cf['shift']());}}}(a187_0x111b,0x99567));function a187_0x37eb(_0x51712f,_0x3e7966){_0x51712f=_0x51712f-0x7c;const _0x111bea=a187_0x111b();let _0x37eb29=_0x111bea[_0x51712f];return _0x37eb29;}function a187_0x111b(){const _0x5cf2bd=['884106VVKHpe','148bNhmko','769769LYwcXz','61760NNtkRc','2481792dHsOPB','bytes=0-0','trim','5904840ngGUoe','5740tSmoHB','27923TJbyWu','test','438Spjgtl','GET','1854RKokes','HEAD'];a187_0x111b=function(){return _0x5cf2bd;};return a187_0x111b();}export function isValidJsHttpsUrl(_0x410f42){const _0x3a31ab=a187_0x37eb;return/^https:\/\/.+\.js(\?.*)?$/[_0x3a31ab(0x7e)](_0x410f42[_0x3a31ab(0x89)]());}export function isValidCssHttpsUrl(_0x2b61c8){const _0x5b8996=a187_0x37eb;return/^https:\/\/.+\.css(\?.*)?$/[_0x5b8996(0x7e)](_0x2b61c8[_0x5b8996(0x89)]());}export async function isUrlReachable(_0x3a56ba){const _0x2723d5=a187_0x37eb;try{const _0xac43b7=await fetch(_0x3a56ba,{'method':_0x2723d5(0x82)});if(_0xac43b7['ok'])return!![];}catch{}try{const _0x4fef4b=await fetch(_0x3a56ba,{'method':_0x2723d5(0x80),'headers':{'Range':_0x2723d5(0x88)}}),_0x58262f=_0x4fef4b['ok'];try{await _0x4fef4b['body']?.['cancel']();}catch{}return _0x58262f;}catch{return![];}}
@@ -1 +1 @@
1
- const a188_0x284b9c=a188_0x175a;(function(_0x3ec123,_0x46b026){const _0x4b29a0=a188_0x175a,_0x15b749=_0x3ec123();while(!![]){try{const _0x2b45a1=parseInt(_0x4b29a0(0x1c5))/0x1+parseInt(_0x4b29a0(0x1c6))/0x2+parseInt(_0x4b29a0(0x1bf))/0x3+-parseInt(_0x4b29a0(0x1c1))/0x4+-parseInt(_0x4b29a0(0x1c7))/0x5*(parseInt(_0x4b29a0(0x1cb))/0x6)+parseInt(_0x4b29a0(0x1cc))/0x7+-parseInt(_0x4b29a0(0x1cd))/0x8;if(_0x2b45a1===_0x46b026)break;else _0x15b749['push'](_0x15b749['shift']());}catch(_0x2a65ef){_0x15b749['push'](_0x15b749['shift']());}}}(a188_0x26af,0x332bc));import{getSmartAppRecord}from'../../core/api-client.js';function a188_0x26af(){const _0x427900=['20208ZDZVeq','70oudjrK','all','menu','cookie','127056zNmbhS','1532720AYZFMb','201464pRCAtO','\x20in\x20menu\x20host\x20','Inspected\x20','boundMenus','1185177svcVNU','\x20menu(s)\x20for\x20','958356EsWhgC','Inspect\x20shared\x20frontend\x20subapp\x20resources\x20and\x20menu\x20fallbacks\x20in\x20the\x20selected\x20menu\x20host','subapp-assets-status','read','146709NYWKZg'];a188_0x26af=function(){return _0x427900;};return a188_0x26af();}function a188_0x175a(_0x246e62,_0x5cfc6c){_0x246e62=_0x246e62-0x1bc;const _0x26aff9=a188_0x26af();let _0x175ad5=_0x26aff9[_0x246e62];return _0x175ad5;}import{getOnlineMenuList}from'../../commands/menu/shared/service.js';import{buildSubappAssetsStatus,getSubappSelector,SUBAPP_ASSET_SELECTOR_FLAGS}from'../../commands/menu/shared/subapp-assets.js';export const menuSubappAssetsStatus={'service':a188_0x284b9c(0x1c9),'command':a188_0x284b9c(0x1c3),'description':a188_0x284b9c(0x1c2),'risk':a188_0x284b9c(0x1c4),'strictFlags':!![],'flags':SUBAPP_ASSET_SELECTOR_FLAGS,async 'validate'(_0x38d104){getSubappSelector(_0x38d104);},async 'execute'(_0x8c824e){const _0x147ba1=a188_0x284b9c,{appCode:_0x2366ac,appName:_0x4963eb}=getSubappSelector(_0x8c824e),[_0x59c76e,_0x55f305]=await Promise[_0x147ba1(0x1c8)]([getSmartAppRecord(_0x2366ac,_0x8c824e[_0x147ba1(0x1ca)]),getOnlineMenuList(_0x2366ac,_0x8c824e[_0x147ba1(0x1ca)])]),_0x3e60a4={'appCode':_0x2366ac,...buildSubappAssetsStatus(_0x59c76e,_0x55f305,_0x4963eb)};return{'ok':!![],'data':_0x3e60a4,'message':_0x147ba1(0x1bd)+_0x3e60a4[_0x147ba1(0x1be)]+_0x147ba1(0x1c0)+_0x4963eb+_0x147ba1(0x1bc)+_0x2366ac+'.'};}};
1
+ const a188_0x4a783e=a188_0x1977;(function(_0x1230ae,_0x11c585){const _0x3aeb05=a188_0x1977,_0x1f5677=_0x1230ae();while(!![]){try{const _0x115d4f=-parseInt(_0x3aeb05(0x17a))/0x1*(parseInt(_0x3aeb05(0x173))/0x2)+-parseInt(_0x3aeb05(0x180))/0x3+-parseInt(_0x3aeb05(0x178))/0x4+-parseInt(_0x3aeb05(0x183))/0x5+parseInt(_0x3aeb05(0x179))/0x6+parseInt(_0x3aeb05(0x172))/0x7*(parseInt(_0x3aeb05(0x177))/0x8)+parseInt(_0x3aeb05(0x182))/0x9*(parseInt(_0x3aeb05(0x17b))/0xa);if(_0x115d4f===_0x11c585)break;else _0x1f5677['push'](_0x1f5677['shift']());}catch(_0x78d4ea){_0x1f5677['push'](_0x1f5677['shift']());}}}(a188_0x4ed7,0x2e74d));import{getSmartAppRecord}from'../../core/api-client.js';function a188_0x1977(_0x21e70a,_0x527bdc){_0x21e70a=_0x21e70a-0x172;const _0x4ed703=a188_0x4ed7();let _0x197718=_0x4ed703[_0x21e70a];return _0x197718;}import{getOnlineMenuList}from'../../commands/menu/shared/service.js';import{buildSubappAssetsStatus,getSubappSelector,SUBAPP_ASSET_SELECTOR_FLAGS}from'../../commands/menu/shared/subapp-assets.js';export const menuSubappAssetsStatus={'service':a188_0x4a783e(0x181),'command':a188_0x4a783e(0x176),'description':a188_0x4a783e(0x174),'risk':a188_0x4a783e(0x17f),'strictFlags':!![],'flags':SUBAPP_ASSET_SELECTOR_FLAGS,async 'validate'(_0x535d57){getSubappSelector(_0x535d57);},async 'execute'(_0x3394ed){const _0x460e68=a188_0x4a783e,{appCode:_0x164d05,appName:_0x1a3da0}=getSubappSelector(_0x3394ed),[_0x131a5e,_0x195480]=await Promise[_0x460e68(0x17e)]([getSmartAppRecord(_0x164d05,_0x3394ed[_0x460e68(0x175)]),getOnlineMenuList(_0x164d05,_0x3394ed[_0x460e68(0x175)])]),_0x4a69c6={'appCode':_0x164d05,...buildSubappAssetsStatus(_0x131a5e,_0x195480,_0x1a3da0)};return{'ok':!![],'data':_0x4a69c6,'message':_0x460e68(0x17c)+_0x4a69c6[_0x460e68(0x17d)]+_0x460e68(0x185)+_0x1a3da0+_0x460e68(0x184)+_0x164d05+'.'};}};function a188_0x4ed7(){const _0x96ef98=['89878BsrIcU','1706460vxiTNG','Inspected\x20','boundMenus','all','read','508671oKkSyZ','menu','9kzIwGH','633120FyIyKQ','\x20in\x20menu\x20host\x20','\x20menu(s)\x20for\x20','4179BCxBad','4jaJupb','Inspect\x20shared\x20frontend\x20subapp\x20resources\x20and\x20menu\x20fallbacks\x20in\x20the\x20selected\x20menu\x20host','cookie','subapp-assets-status','4712oIztaA','844308tiLAsB','2130120rsRCcE'];a188_0x4ed7=function(){return _0x96ef98;};return a188_0x4ed7();}
@@ -1 +1 @@
1
- const a189_0x4c80e2=a189_0x33e8;(function(_0x4568f6,_0x1aeb2b){const _0x1955f0=a189_0x33e8,_0x411963=_0x4568f6();while(!![]){try{const _0x1a0985=-parseInt(_0x1955f0(0x122))/0x1*(parseInt(_0x1955f0(0x136))/0x2)+parseInt(_0x1955f0(0x137))/0x3*(parseInt(_0x1955f0(0x13d))/0x4)+-parseInt(_0x1955f0(0x14e))/0x5*(-parseInt(_0x1955f0(0x14c))/0x6)+-parseInt(_0x1955f0(0x14d))/0x7*(-parseInt(_0x1955f0(0x13a))/0x8)+parseInt(_0x1955f0(0x160))/0x9*(parseInt(_0x1955f0(0x169))/0xa)+parseInt(_0x1955f0(0x139))/0xb*(-parseInt(_0x1955f0(0x154))/0xc)+-parseInt(_0x1955f0(0x11f))/0xd;if(_0x1a0985===_0x1aeb2b)break;else _0x411963['push'](_0x411963['shift']());}catch(_0x3328e8){_0x411963['push'](_0x411963['shift']());}}}(a189_0xc204,0x54756));import{createHash}from'node:crypto';function a189_0xc204(){const _0x4375a9=['1496560vvbiFn','Updated\x20shared\x20resources\x20for\x20','--resources\x20must\x20be\x20a\x20JSON\x20array\x20of\x20HTTPS\x20URLs.','152443cJzWAs','appCode','length','assets','Expected\x20exactly\x20one\x20existing\x20subapp\x20entry\x20for\x20','cookie','size','\x20in\x20menu\x20host\x20','not\x20HTTPS','subapp-assets-update','\x20contains\x20invalid\x20JSON.','directDbEnabled','app.extend.assets','At\x20least\x20one\x20resource\x20URL\x20is\x20required.','str','/smartapi/app/update','directDbId','sha256','tenantColumn','unchanged','4bmdcpB','3dgracy','appPublishStatus','484979ajfqcU','3048OxQpVh','Update\x20one\x20frontend\x20subapp\x20resource\x20URL\x20set\x20in\x20the\x20selected\x20menu\x20host','App\x20asset\x20update\x20verification\x20failed;\x20inspect\x20the\x20app\x20before\x20retrying.','2063140JzWnqL','map','join','isSafeInteger','test','accessKey','validation','before','enableOpenApi','filter','nextExtend','string','extend','Resources\x20need\x20one\x20JS\x20entry\x20and\x20no\x20duplicate\x20URLs.','App\x20ID\x20or\x20publish\x20status\x20is\x20missing;\x20refusing\x20a\x20generic\x20app\x20update.','25278lqgEfO','4795PsFAek','5TurFgB','expected-hash','App\x20assets\x20or\x20update\x20target\x20changed\x20since\x20preview;\x20the\x20fingerprint\x20does\x20not\x20match.\x20Run\x20a\x20new\x20dry-run.','app.extend','\x20must\x20be\x20a\x20JSON\x20array.','enableAutoSync','24kRLvTX','Preview\x20fingerprint\x20binding\x20the\x20host,\x20subapp,\x20resource\x20URLs\x20and\x20current\x20config;\x20required\x20for\x20writes','\x20must\x20be\x20a\x20JSON\x20object.','https:','.\x20Refusing\x20update.','apiError','resources',']\x20must\x20be\x20a\x20URL\x20string.','resources[','--resources\x20is\x20required.','POST','Existing\x20subapp.resources\x20must\x20be\x20an\x20array\x20of\x20URLs.','729dGxKXe','JSON\x20array\x20of\x20HTTPS\x20resource\x20URLs','enableSample','trim','keys','digest','app.extend.assets\x20must\x20be\x20a\x20JSON\x20string;\x20refusing\x20update.','isArray','verified\x20app.extend','9030TZEuuy','appName','menu','parse','expectedHash',']\x20must\x20be\x20an\x20absolute\x20HTTPS\x20URL.','hex','skinColor','stringify'];a189_0xc204=function(){return _0x4375a9;};return a189_0xc204();}import{isDeepStrictEqual}from'node:util';import{getSmartAppRecord,updateSmartAppRecord}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{getSubappSelector,SUBAPP_ASSET_SELECTOR_FLAGS}from'../../commands/menu/shared/subapp-assets.js';const KNOWN_EXTEND_KEYS=new Set([a189_0x4c80e2(0x11d),a189_0x4c80e2(0x145),a189_0x4c80e2(0x142),'assets',a189_0x4c80e2(0x134),a189_0x4c80e2(0x162),'vipDeploy',a189_0x4c80e2(0x153),a189_0x4c80e2(0x132),a189_0x4c80e2(0x12d)]);function a189_0x33e8(_0x46bcf0,_0x464665){_0x46bcf0=_0x46bcf0-0x11b;const _0xc204c5=a189_0xc204();let _0x33e8e3=_0xc204c5[_0x46bcf0];return _0x33e8e3;}function parseObject(_0x19a3b2,_0x5ee42d){const _0x317b4f=a189_0x4c80e2;let _0x1bc2cb=_0x19a3b2;if(typeof _0x19a3b2==='string')try{_0x1bc2cb=JSON[_0x317b4f(0x16c)](_0x19a3b2);}catch{throw CliErrors[_0x317b4f(0x143)](_0x5ee42d+_0x317b4f(0x12c));}if(!_0x1bc2cb||typeof _0x1bc2cb!=='object'||Array['isArray'](_0x1bc2cb))throw CliErrors['validation'](_0x5ee42d+_0x317b4f(0x156));return _0x1bc2cb;}function parseArray(_0x2932a2,_0x50f449){const _0x355dc7=a189_0x4c80e2;let _0x34bd52;try{_0x34bd52=JSON[_0x355dc7(0x16c)](_0x2932a2);}catch{throw CliErrors[_0x355dc7(0x143)](_0x50f449+_0x355dc7(0x12c));}if(!Array[_0x355dc7(0x167)](_0x34bd52))throw CliErrors[_0x355dc7(0x143)](_0x50f449+_0x355dc7(0x152));return _0x34bd52['map']((_0x355300,_0x5e0e70)=>parseObject(_0x355300,_0x50f449+'['+_0x5e0e70+']'));}function validateResources(_0x145071){const _0x5cd934=a189_0x4c80e2;if(_0x145071[_0x5cd934(0x124)]===0x0)throw CliErrors['validation'](_0x5cd934(0x12f));for(const [_0x378946,_0x46b405]of _0x145071['entries']()){if(typeof _0x46b405!==_0x5cd934(0x148))throw CliErrors[_0x5cd934(0x143)](_0x5cd934(0x15c)+_0x378946+_0x5cd934(0x15b));try{if(new URL(_0x46b405)['protocol']!==_0x5cd934(0x157))throw new Error(_0x5cd934(0x12a));}catch{throw CliErrors[_0x5cd934(0x143)]('resources['+_0x378946+_0x5cd934(0x11b));}}if(new Set(_0x145071)[_0x5cd934(0x128)]!==_0x145071[_0x5cd934(0x124)]||!_0x145071['some'](_0x4f0560=>/\.m?js(?:[?#]|$)/i[_0x5cd934(0x141)](_0x4f0560)))throw CliErrors['validation'](_0x5cd934(0x14a));return _0x145071;}function prepare(_0x5cc57b,_0x349e2d,_0xab59fb){const _0x3e890d=a189_0x4c80e2;if(!Number[_0x3e890d(0x140)](_0x5cc57b['id'])||(_0x5cc57b['id']??0x0)<=0x0||typeof _0x5cc57b[_0x3e890d(0x138)]!=='string'||!_0x5cc57b[_0x3e890d(0x138)])throw CliErrors[_0x3e890d(0x143)](_0x3e890d(0x14b));const _0x36426b=parseObject(_0x5cc57b[_0x3e890d(0x149)],_0x3e890d(0x151)),_0x414ea8=Object[_0x3e890d(0x164)](_0x36426b)[_0x3e890d(0x146)](_0x7e5fc1=>!KNOWN_EXTEND_KEYS['has'](_0x7e5fc1));if(_0x414ea8[_0x3e890d(0x124)])throw CliErrors[_0x3e890d(0x143)]('Unknown\x20app.extend\x20fields:\x20'+_0x414ea8[_0x3e890d(0x13f)](',\x20')+_0x3e890d(0x158));if(typeof _0x36426b[_0x3e890d(0x125)]!==_0x3e890d(0x148))throw CliErrors[_0x3e890d(0x143)](_0x3e890d(0x166));const _0x1d7310=parseArray(_0x36426b[_0x3e890d(0x125)],_0x3e890d(0x12e)),_0x598e0a=_0x1d7310['filter'](_0x390714=>_0x390714[_0x3e890d(0x16a)]===_0x349e2d);if(_0x598e0a[_0x3e890d(0x124)]!==0x1)throw CliErrors['validation'](_0x3e890d(0x126)+_0x349e2d+';\x20found\x20'+_0x598e0a[_0x3e890d(0x124)]+'.');const _0x30e0ec=_0x598e0a[0x0];if(typeof _0x30e0ec[_0x3e890d(0x15a)]!=='string')throw CliErrors['validation']('Existing\x20subapp.resources\x20must\x20be\x20a\x20JSON\x20string.');let _0x551a6c;try{_0x551a6c=JSON[_0x3e890d(0x16c)](_0x30e0ec['resources']);}catch{throw CliErrors[_0x3e890d(0x143)]('Existing\x20subapp.resources\x20contains\x20invalid\x20JSON.');}if(!Array[_0x3e890d(0x167)](_0x551a6c)||_0x551a6c['some'](_0x515ffd=>typeof _0x515ffd!=='string'))throw CliErrors[_0x3e890d(0x143)](_0x3e890d(0x15f));const _0x301c7d=_0x1d7310[_0x3e890d(0x13e)](_0x3c5b04=>_0x3c5b04===_0x30e0ec?{..._0x3c5b04,'resources':JSON[_0x3e890d(0x11e)](_0xab59fb)}:_0x3c5b04),_0x1856bc={..._0x36426b,'assets':JSON[_0x3e890d(0x11e)](_0x301c7d)},_0x46f90a=createHash(_0x3e890d(0x133))['update'](JSON[_0x3e890d(0x11e)]({'appCode':_0x5cc57b[_0x3e890d(0x123)],'id':_0x5cc57b['id'],'appPublishStatus':_0x5cc57b[_0x3e890d(0x138)],'extend':_0x36426b,'appName':_0x349e2d,'resources':_0xab59fb}))[_0x3e890d(0x165)](_0x3e890d(0x11c));return{'before':_0x551a6c,'nextExtend':_0x1856bc,'expectedHash':_0x46f90a,'unchanged':isDeepStrictEqual(_0x551a6c,_0xab59fb)};}function flags(_0x5164fd){const _0x7a4dbc=a189_0x4c80e2,{appCode:_0x1b11bf,appName:_0x40a1ba}=getSubappSelector(_0x5164fd),_0xfdd430=_0x5164fd[_0x7a4dbc(0x130)](_0x7a4dbc(0x15a))['trim']();if(!_0xfdd430)throw CliErrors[_0x7a4dbc(0x143)](_0x7a4dbc(0x15d));let _0x308577;try{_0x308577=JSON['parse'](_0xfdd430);}catch{throw CliErrors['validation']('--resources\x20must\x20be\x20a\x20JSON\x20array\x20of\x20HTTPS\x20URLs.');}if(!Array[_0x7a4dbc(0x167)](_0x308577))throw CliErrors['validation'](_0x7a4dbc(0x121));return{'appCode':_0x1b11bf,'appName':_0x40a1ba,'resources':validateResources(_0x308577)};}export const menuSubappAssetsUpdate={'service':a189_0x4c80e2(0x16b),'command':a189_0x4c80e2(0x12b),'description':a189_0x4c80e2(0x13b),'risk':'write','strictFlags':!![],'flags':[...SUBAPP_ASSET_SELECTOR_FLAGS,{'name':a189_0x4c80e2(0x15a),'type':a189_0x4c80e2(0x148),'required':!![],'description':a189_0x4c80e2(0x161)},{'name':a189_0x4c80e2(0x14f),'type':a189_0x4c80e2(0x148),'description':a189_0x4c80e2(0x155)}],async 'validate'(_0x37e07b){flags(_0x37e07b);},async 'dryRun'(_0x41695d){const _0x14bf33=a189_0x4c80e2,{appCode:_0x117d80,appName:_0x588c17,resources:_0x37bba2}=flags(_0x41695d),_0x5450c1=await getSmartAppRecord(_0x117d80,_0x41695d[_0x14bf33(0x127)]),_0x2e6441=prepare(_0x5450c1,_0x588c17,_0x37bba2);return{'method':_0x14bf33(0x15e),'url':_0x14bf33(0x131),'body':{'preview':{'appCode':_0x117d80,'appName':_0x588c17,'before':_0x2e6441[_0x14bf33(0x144)],'after':_0x37bba2,'expectedHash':_0x2e6441[_0x14bf33(0x16d)],'unchanged':_0x2e6441[_0x14bf33(0x135)],'remoteContentVerified':![],'independentDeploymentVerified':![]}},'description':_0x2e6441[_0x14bf33(0x135)]?'Shared\x20assets\x20already\x20match\x20the\x20requested\x20URLs.':'Would\x20update\x20shared\x20assets\x20for\x20'+_0x588c17+'.'};},async 'execute'(_0x380658){const _0x2f27de=a189_0x4c80e2,{appCode:_0x5275a0,appName:_0x1dc2e1,resources:_0x83826a}=flags(_0x380658),_0x2ddec2=_0x380658['str']('expected-hash')[_0x2f27de(0x163)]();if(!/^[a-f0-9]{64}$/i[_0x2f27de(0x141)](_0x2ddec2))throw CliErrors[_0x2f27de(0x143)]('--expected-hash\x20from\x20a\x20dry-run\x20is\x20required.');const _0x395a37=await getSmartAppRecord(_0x5275a0,_0x380658[_0x2f27de(0x127)]),_0x2ef37a=prepare(_0x395a37,_0x1dc2e1,_0x83826a);if(_0x2ddec2!==_0x2ef37a[_0x2f27de(0x16d)])throw CliErrors[_0x2f27de(0x143)](_0x2f27de(0x150));if(_0x2ef37a['unchanged'])return{'ok':!![],'data':{'appCode':_0x5275a0,'appName':_0x1dc2e1,'updated':![],'managementConfirmed':!![],'independentDeploymentVerified':![],'remoteContentVerified':![]},'message':'Management\x20app\x20assets\x20already\x20match;\x20independent\x20deployment\x20not\x20verified.'};await updateSmartAppRecord({'id':_0x395a37['id'],'appCode':_0x5275a0,'appPublishStatus':_0x395a37[_0x2f27de(0x138)],'extend':_0x2ef37a[_0x2f27de(0x147)]},_0x380658[_0x2f27de(0x127)]);const _0x3a5061=await getSmartAppRecord(_0x5275a0,_0x380658[_0x2f27de(0x127)]),_0x5f2c39=parseObject(_0x3a5061['extend'],_0x2f27de(0x168));if(_0x3a5061['id']!==_0x395a37['id']||_0x3a5061[_0x2f27de(0x138)]!==_0x395a37[_0x2f27de(0x138)]||!isDeepStrictEqual(_0x5f2c39,_0x2ef37a[_0x2f27de(0x147)]))throw CliErrors[_0x2f27de(0x159)](_0x2f27de(0x13c));return{'ok':!![],'data':{'appCode':_0x5275a0,'appName':_0x1dc2e1,'updated':!![],'resources':_0x83826a,'managementConfirmed':!![],'independentDeploymentVerified':![],'remoteContentVerified':![]},'message':_0x2f27de(0x120)+_0x1dc2e1+_0x2f27de(0x129)+_0x5275a0+';\x20independent\x20deployment\x20not\x20verified.'};}};
1
+ const a189_0xfb56cf=a189_0x1ef3;(function(_0x399cd1,_0x593083){const _0x14f13b=a189_0x1ef3,_0x28f7b3=_0x399cd1();while(!![]){try{const _0x28e6a2=parseInt(_0x14f13b(0x180))/0x1*(-parseInt(_0x14f13b(0x18b))/0x2)+-parseInt(_0x14f13b(0x17a))/0x3+parseInt(_0x14f13b(0x1a5))/0x4*(parseInt(_0x14f13b(0x1ab))/0x5)+parseInt(_0x14f13b(0x190))/0x6+-parseInt(_0x14f13b(0x1a1))/0x7*(-parseInt(_0x14f13b(0x16f))/0x8)+parseInt(_0x14f13b(0x158))/0x9*(parseInt(_0x14f13b(0x15d))/0xa)+parseInt(_0x14f13b(0x198))/0xb*(-parseInt(_0x14f13b(0x195))/0xc);if(_0x28e6a2===_0x593083)break;else _0x28f7b3['push'](_0x28f7b3['shift']());}catch(_0x2aff8c){_0x28f7b3['push'](_0x28f7b3['shift']());}}}(a189_0x4c10,0xd3d81));import{createHash}from'node:crypto';import{isDeepStrictEqual}from'node:util';import{getSmartAppRecord,updateSmartAppRecord}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a189_0x4c10(){const _0x158c6c=['7483CMDGdh','length','digest','--resources\x20is\x20required.','5872xmsLtb','protocol','appCode','App\x20assets\x20or\x20update\x20target\x20changed\x20since\x20preview;\x20the\x20fingerprint\x20does\x20not\x20match.\x20Run\x20a\x20new\x20dry-run.','enableOpenApi','expectedHash','4050GvdsdG','Existing\x20subapp.resources\x20must\x20be\x20an\x20array\x20of\x20URLs.','6642FGqOdM','directDbEnabled','filter','\x20must\x20be\x20a\x20JSON\x20array.','isArray','21030PMdWtC','join','appName','tenantColumn','update','apiError','has','Expected\x20exactly\x20one\x20existing\x20subapp\x20entry\x20for\x20','validation','stringify','At\x20least\x20one\x20resource\x20URL\x20is\x20required.','Updated\x20shared\x20resources\x20for\x20','keys','.\x20Refusing\x20update.','Resources\x20need\x20one\x20JS\x20entry\x20and\x20no\x20duplicate\x20URLs.',']\x20must\x20be\x20an\x20absolute\x20HTTPS\x20URL.','object','enableAutoSync','9392eXxFxS','Preview\x20fingerprint\x20binding\x20the\x20host,\x20subapp,\x20resource\x20URLs\x20and\x20current\x20config;\x20required\x20for\x20writes',';\x20found\x20','some','resources','Existing\x20subapp.resources\x20must\x20be\x20a\x20JSON\x20string.','subapp-assets-update','not\x20HTTPS','parse','map','string','2813118PSNIrO','Unknown\x20app.extend\x20fields:\x20','resources[','app.extend.assets\x20must\x20be\x20a\x20JSON\x20string;\x20refusing\x20update.','Would\x20update\x20shared\x20assets\x20for\x20','directDbId','5qUxmUW',']\x20must\x20be\x20a\x20URL\x20string.','App\x20ID\x20or\x20publish\x20status\x20is\x20missing;\x20refusing\x20a\x20generic\x20app\x20update.','skinColor','app.extend.assets','assets','expected-hash','menu','trim','before','Shared\x20assets\x20already\x20match\x20the\x20requested\x20URLs.','129566CMqhFb','str','enableSample','Existing\x20subapp.resources\x20contains\x20invalid\x20JSON.','\x20in\x20menu\x20host\x20','4674708jiuiDV','\x20contains\x20invalid\x20JSON.','isSafeInteger','entries','unchanged','12nvnsnp','--expected-hash\x20from\x20a\x20dry-run\x20is\x20required.','/smartapi/app/update','29104724uIyJjZ','appPublishStatus','accessKey','Management\x20app\x20assets\x20already\x20match;\x20independent\x20deployment\x20not\x20verified.','nextExtend','write','cookie','--resources\x20must\x20be\x20a\x20JSON\x20array\x20of\x20HTTPS\x20URLs.','JSON\x20array\x20of\x20HTTPS\x20resource\x20URLs'];a189_0x4c10=function(){return _0x158c6c;};return a189_0x4c10();}import{getSubappSelector,SUBAPP_ASSET_SELECTOR_FLAGS}from'../../commands/menu/shared/subapp-assets.js';const KNOWN_EXTEND_KEYS=new Set([a189_0xfb56cf(0x183),a189_0xfb56cf(0x1a9),a189_0xfb56cf(0x19a),a189_0xfb56cf(0x185),a189_0xfb56cf(0x160),a189_0xfb56cf(0x18d),'vipDeploy',a189_0xfb56cf(0x16e),a189_0xfb56cf(0x17f),a189_0xfb56cf(0x159)]);function parseObject(_0x30b550,_0x1b2cc5){const _0x13ae65=a189_0xfb56cf;let _0x501b89=_0x30b550;if(typeof _0x30b550===_0x13ae65(0x179))try{_0x501b89=JSON[_0x13ae65(0x177)](_0x30b550);}catch{throw CliErrors[_0x13ae65(0x165)](_0x1b2cc5+_0x13ae65(0x191));}if(!_0x501b89||typeof _0x501b89!==_0x13ae65(0x16d)||Array[_0x13ae65(0x15c)](_0x501b89))throw CliErrors[_0x13ae65(0x165)](_0x1b2cc5+'\x20must\x20be\x20a\x20JSON\x20object.');return _0x501b89;}function a189_0x1ef3(_0x5a6ebf,_0x44184e){_0x5a6ebf=_0x5a6ebf-0x157;const _0x4c1048=a189_0x4c10();let _0x1ef3b3=_0x4c1048[_0x5a6ebf];return _0x1ef3b3;}function parseArray(_0x100b31,_0x3caa96){const _0x2ab074=a189_0xfb56cf;let _0x4a1dcd;try{_0x4a1dcd=JSON[_0x2ab074(0x177)](_0x100b31);}catch{throw CliErrors[_0x2ab074(0x165)](_0x3caa96+_0x2ab074(0x191));}if(!Array[_0x2ab074(0x15c)](_0x4a1dcd))throw CliErrors[_0x2ab074(0x165)](_0x3caa96+_0x2ab074(0x15b));return _0x4a1dcd['map']((_0x257c44,_0x373571)=>parseObject(_0x257c44,_0x3caa96+'['+_0x373571+']'));}function validateResources(_0x3bf77c){const _0x471a24=a189_0xfb56cf;if(_0x3bf77c[_0x471a24(0x1a2)]===0x0)throw CliErrors['validation'](_0x471a24(0x167));for(const [_0x56a5ef,_0x27ee5b]of _0x3bf77c[_0x471a24(0x193)]()){if(typeof _0x27ee5b!==_0x471a24(0x179))throw CliErrors[_0x471a24(0x165)](_0x471a24(0x17c)+_0x56a5ef+_0x471a24(0x181));try{if(new URL(_0x27ee5b)[_0x471a24(0x1a6)]!=='https:')throw new Error(_0x471a24(0x176));}catch{throw CliErrors[_0x471a24(0x165)](_0x471a24(0x17c)+_0x56a5ef+_0x471a24(0x16c));}}if(new Set(_0x3bf77c)['size']!==_0x3bf77c[_0x471a24(0x1a2)]||!_0x3bf77c[_0x471a24(0x172)](_0x4b43ca=>/\.m?js(?:[?#]|$)/i['test'](_0x4b43ca)))throw CliErrors[_0x471a24(0x165)](_0x471a24(0x16b));return _0x3bf77c;}function prepare(_0x7a9831,_0x594ee0,_0x5c0ce6){const _0x59edd1=a189_0xfb56cf;if(!Number[_0x59edd1(0x192)](_0x7a9831['id'])||(_0x7a9831['id']??0x0)<=0x0||typeof _0x7a9831[_0x59edd1(0x199)]!=='string'||!_0x7a9831[_0x59edd1(0x199)])throw CliErrors[_0x59edd1(0x165)](_0x59edd1(0x182));const _0x5251af=parseObject(_0x7a9831['extend'],'app.extend'),_0x2e0de2=Object[_0x59edd1(0x169)](_0x5251af)[_0x59edd1(0x15a)](_0x5eae0d=>!KNOWN_EXTEND_KEYS[_0x59edd1(0x163)](_0x5eae0d));if(_0x2e0de2[_0x59edd1(0x1a2)])throw CliErrors[_0x59edd1(0x165)](_0x59edd1(0x17b)+_0x2e0de2[_0x59edd1(0x15e)](',\x20')+_0x59edd1(0x16a));if(typeof _0x5251af[_0x59edd1(0x185)]!==_0x59edd1(0x179))throw CliErrors[_0x59edd1(0x165)](_0x59edd1(0x17d));const _0x31959c=parseArray(_0x5251af[_0x59edd1(0x185)],_0x59edd1(0x184)),_0x1a7054=_0x31959c[_0x59edd1(0x15a)](_0x3c2dcc=>_0x3c2dcc[_0x59edd1(0x15f)]===_0x594ee0);if(_0x1a7054[_0x59edd1(0x1a2)]!==0x1)throw CliErrors[_0x59edd1(0x165)](_0x59edd1(0x164)+_0x594ee0+_0x59edd1(0x171)+_0x1a7054[_0x59edd1(0x1a2)]+'.');const _0x52acde=_0x1a7054[0x0];if(typeof _0x52acde['resources']!=='string')throw CliErrors[_0x59edd1(0x165)](_0x59edd1(0x174));let _0x337134;try{_0x337134=JSON['parse'](_0x52acde[_0x59edd1(0x173)]);}catch{throw CliErrors['validation'](_0x59edd1(0x18e));}if(!Array[_0x59edd1(0x15c)](_0x337134)||_0x337134['some'](_0x254c95=>typeof _0x254c95!==_0x59edd1(0x179)))throw CliErrors[_0x59edd1(0x165)](_0x59edd1(0x157));const _0x5893a6=_0x31959c[_0x59edd1(0x178)](_0x14cf54=>_0x14cf54===_0x52acde?{..._0x14cf54,'resources':JSON[_0x59edd1(0x166)](_0x5c0ce6)}:_0x14cf54),_0x111546={..._0x5251af,'assets':JSON[_0x59edd1(0x166)](_0x5893a6)},_0x1579e2=createHash('sha256')[_0x59edd1(0x161)](JSON[_0x59edd1(0x166)]({'appCode':_0x7a9831[_0x59edd1(0x1a7)],'id':_0x7a9831['id'],'appPublishStatus':_0x7a9831[_0x59edd1(0x199)],'extend':_0x5251af,'appName':_0x594ee0,'resources':_0x5c0ce6}))[_0x59edd1(0x1a3)]('hex');return{'before':_0x337134,'nextExtend':_0x111546,'expectedHash':_0x1579e2,'unchanged':isDeepStrictEqual(_0x337134,_0x5c0ce6)};}function flags(_0x4316be){const _0x20759e=a189_0xfb56cf,{appCode:_0x1ba1b7,appName:_0x3c303a}=getSubappSelector(_0x4316be),_0x214c68=_0x4316be[_0x20759e(0x18c)](_0x20759e(0x173))['trim']();if(!_0x214c68)throw CliErrors[_0x20759e(0x165)](_0x20759e(0x1a4));let _0x29930f;try{_0x29930f=JSON[_0x20759e(0x177)](_0x214c68);}catch{throw CliErrors[_0x20759e(0x165)](_0x20759e(0x19f));}if(!Array[_0x20759e(0x15c)](_0x29930f))throw CliErrors['validation'](_0x20759e(0x19f));return{'appCode':_0x1ba1b7,'appName':_0x3c303a,'resources':validateResources(_0x29930f)};}export const menuSubappAssetsUpdate={'service':a189_0xfb56cf(0x187),'command':a189_0xfb56cf(0x175),'description':'Update\x20one\x20frontend\x20subapp\x20resource\x20URL\x20set\x20in\x20the\x20selected\x20menu\x20host','risk':a189_0xfb56cf(0x19d),'strictFlags':!![],'flags':[...SUBAPP_ASSET_SELECTOR_FLAGS,{'name':a189_0xfb56cf(0x173),'type':'string','required':!![],'description':a189_0xfb56cf(0x1a0)},{'name':a189_0xfb56cf(0x186),'type':'string','description':a189_0xfb56cf(0x170)}],async 'validate'(_0x35968f){flags(_0x35968f);},async 'dryRun'(_0x2c664c){const _0x368ece=a189_0xfb56cf,{appCode:_0x584b6b,appName:_0x394137,resources:_0x54bb56}=flags(_0x2c664c),_0x107084=await getSmartAppRecord(_0x584b6b,_0x2c664c[_0x368ece(0x19e)]),_0x3be4d0=prepare(_0x107084,_0x394137,_0x54bb56);return{'method':'POST','url':_0x368ece(0x197),'body':{'preview':{'appCode':_0x584b6b,'appName':_0x394137,'before':_0x3be4d0[_0x368ece(0x189)],'after':_0x54bb56,'expectedHash':_0x3be4d0[_0x368ece(0x1aa)],'unchanged':_0x3be4d0[_0x368ece(0x194)],'remoteContentVerified':![],'independentDeploymentVerified':![]}},'description':_0x3be4d0[_0x368ece(0x194)]?_0x368ece(0x18a):_0x368ece(0x17e)+_0x394137+'.'};},async 'execute'(_0x357146){const _0xa9642e=a189_0xfb56cf,{appCode:_0x3c124e,appName:_0x4761b5,resources:_0x4f42c}=flags(_0x357146),_0x21ac84=_0x357146[_0xa9642e(0x18c)]('expected-hash')[_0xa9642e(0x188)]();if(!/^[a-f0-9]{64}$/i['test'](_0x21ac84))throw CliErrors['validation'](_0xa9642e(0x196));const _0x4fe9c0=await getSmartAppRecord(_0x3c124e,_0x357146[_0xa9642e(0x19e)]),_0xc72dc5=prepare(_0x4fe9c0,_0x4761b5,_0x4f42c);if(_0x21ac84!==_0xc72dc5[_0xa9642e(0x1aa)])throw CliErrors['validation'](_0xa9642e(0x1a8));if(_0xc72dc5[_0xa9642e(0x194)])return{'ok':!![],'data':{'appCode':_0x3c124e,'appName':_0x4761b5,'updated':![],'managementConfirmed':!![],'independentDeploymentVerified':![],'remoteContentVerified':![]},'message':_0xa9642e(0x19b)};await updateSmartAppRecord({'id':_0x4fe9c0['id'],'appCode':_0x3c124e,'appPublishStatus':_0x4fe9c0[_0xa9642e(0x199)],'extend':_0xc72dc5[_0xa9642e(0x19c)]},_0x357146[_0xa9642e(0x19e)]);const _0x518153=await getSmartAppRecord(_0x3c124e,_0x357146[_0xa9642e(0x19e)]),_0x42b875=parseObject(_0x518153['extend'],'verified\x20app.extend');if(_0x518153['id']!==_0x4fe9c0['id']||_0x518153[_0xa9642e(0x199)]!==_0x4fe9c0[_0xa9642e(0x199)]||!isDeepStrictEqual(_0x42b875,_0xc72dc5[_0xa9642e(0x19c)]))throw CliErrors[_0xa9642e(0x162)]('App\x20asset\x20update\x20verification\x20failed;\x20inspect\x20the\x20app\x20before\x20retrying.');return{'ok':!![],'data':{'appCode':_0x3c124e,'appName':_0x4761b5,'updated':!![],'resources':_0x4f42c,'managementConfirmed':!![],'independentDeploymentVerified':![],'remoteContentVerified':![]},'message':_0xa9642e(0x168)+_0x4761b5+_0xa9642e(0x18f)+_0x3c124e+';\x20independent\x20deployment\x20not\x20verified.'};}};
@@ -1 +1 @@
1
- const a190_0x4fff8d=a190_0x2a18;(function(_0x251311,_0x28be52){const _0x35c61f=a190_0x2a18,_0x12220b=_0x251311();while(!![]){try{const _0xd2d6d4=parseInt(_0x35c61f(0xdf))/0x1*(parseInt(_0x35c61f(0xfc))/0x2)+parseInt(_0x35c61f(0xf9))/0x3*(-parseInt(_0x35c61f(0xeb))/0x4)+-parseInt(_0x35c61f(0x10c))/0x5*(-parseInt(_0x35c61f(0x122))/0x6)+parseInt(_0x35c61f(0xe6))/0x7+parseInt(_0x35c61f(0x128))/0x8+parseInt(_0x35c61f(0x109))/0x9+-parseInt(_0x35c61f(0x119))/0xa;if(_0xd2d6d4===_0x28be52)break;else _0x12220b['push'](_0x12220b['shift']());}catch(_0x2517d8){_0x12220b['push'](_0x12220b['shift']());}}}(a190_0xfd96,0x76fe8));function a190_0x2a18(_0x685202,_0x371b9f){_0x685202=_0x685202-0xdd;const _0xfd96b1=a190_0xfd96();let _0x2a18f3=_0xfd96b1[_0x685202];return _0x2a18f3;}import a190_0x3fb286 from'chalk';import{buildCompareRows,doCreateMenus,fetchMenuData}from'../../commands/menu/shared/logic.js';import{renderCompareTable,renderSyncSummary}from'../../commands/menu/shared/compare-table.js';import{selectPages,askJsUrl,askCssUrl,askConfirm,startSpinner,stopSpinner,isInteractive,requireInteractive}from'../../commands/menu/shared/inquirer.js';function a190_0xfd96(){const _0x4f8f26=['13263210xvhDBB','string','JSON:\x20{\x22appName\x22:\x22store-app\x22,\x22parentId\x22:42,\x22visible\x22:false};\x20jsUrl\x20and\x20cssUrl\x20remain\x20available\x20for\x20individual\x20menu\x20resources.','validation','\x20\x20!\x20No\x20local\x20pages\x20found,\x20please\x20create\x20pages\x20first','\x20\x20✓\x20Selected:\x20','Menu\x20sync\x20skipped','Tip:\x20For\x20frontend\x20subapps,\x20prefer\x20Agent-planned\x20menu\x20groups\x20and\x20shared\x20resources.\x20This\x20manual\x20sync\x20workflow\x20remains\x20available\x20as\x20a\x20fallback.','menu\x20sync\x20--paths\x20requires\x20--yes\x20for\x20execution.','534nsUXJr','selectedAppName','onlinePaths','Non-interactive\x20menu\x20sync\x20requires\x20--yes.','gray','trim','5553752UcMnsU','\x20page(s)','message','15422sewoHQ','\x20menu(s)...','onlineMenuList','Would\x20create\x20','Confirm\x20non-interactive\x20sync;\x20without\x20--paths,\x20create\x20all\x20missing\x20local\x20pages','failed','rawFlags','496153NCxRZx','cyan','\x20failed.','Menu\x20creation\x20failed','appCode','12ALnQqR','created','str','No\x20local\x20microfrontend\x20menus\x20would\x20be\x20created.','Run\x20inside\x20a\x20directory\x20with\x20.rabetbase.json,\x20or\x20pass\x20--appcode\x20<code>.','\x20\x20Create\x20','filter','\x20created.','localPages','Prefer\x20appName\x20for\x20shared\x20subapp\x20resources\x20and\x20parentId\x20for\x20planned\x20groups.\x20','boolean','paths','Register\x20local\x20pages\x20as\x20platform\x20menus','jsUrl','209130NPErRG','map','Online\x20menu\x20list\x20fetched','2VYfqmU','\x20and\x20CSS:\x20','size','\x20local\x20microfrontend\x20menu(s).','params','Created\x20','write','\x20created,\x20','Exact\x20comma-separated\x20local\x20page\x20paths\x20to\x20sync','Creating\x20','cookie','!\x20No\x20local\x20pages\x20found\x20in\x20src/pages','length','8242110UmhBvH','Failed\x20to\x20fetch\x20online\x20menu\x20list','skipped','18345qsbXtg','menu','sync','POST','appName','Fetching\x20online\x20menu\x20list...','Menu\x20sync\x20completed:\x20','Preview\x20with\x20--dry-run,\x20then\x20reuse\x20the\x20same\x20--paths\x20and\x20--params\x20with\x20--yes.','cssUrl','/smartapi/menu/create','flag','targetPages','\x20\x20Cancelled.'];a190_0xfd96=function(){return _0x4f8f26;};return a190_0xfd96();}import{CliErrors}from'../../errors.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{parseMenuSyncParams,resolvePage,runMenuSyncCore}from'../../commands/menu/shared/sync-core.js';import{getLocalPages}from'../../commands/menu/shared/local-pages.js';import{isInProject}from'../../context.js';import{assertSharedResourcesConfigured}from'../../commands/menu/shared/subapp-assets.js';export const menuSync={'service':a190_0x4fff8d(0x10d),'command':a190_0x4fff8d(0x10e),'description':a190_0x4fff8d(0xf7),'risk':a190_0x4fff8d(0x102),'flags':[{'name':a190_0x4fff8d(0x100),'type':a190_0x4fff8d(0x11a),'description':a190_0x4fff8d(0xf4)+a190_0x4fff8d(0x11b)},{'name':a190_0x4fff8d(0xf6),'type':a190_0x4fff8d(0x11a),'description':a190_0x4fff8d(0x104)},{'name':'yes','type':a190_0x4fff8d(0xf5),'description':a190_0x4fff8d(0xe3)}],async 'dryRun'(_0x448cc0){const _0x1703ba=a190_0x4fff8d;ensureRunnableContext(_0x448cc0[_0x1703ba(0xe5)],_0x448cc0[_0x1703ba(0x123)]);const _0x3918ec=await runMenuSyncCore(_0x448cc0[_0x1703ba(0xea)],_0x448cc0[_0x1703ba(0x106)],parsePaths(_0x448cc0[_0x1703ba(0xed)](_0x1703ba(0xf6))),_0x448cc0[_0x1703ba(0xed)](_0x1703ba(0x100)),{'dryRun':!![]});return{'method':_0x1703ba(0x10f),'url':_0x1703ba(0x115),'body':_0x3918ec,'description':_0x3918ec[_0x1703ba(0x10b)]?_0x1703ba(0xee):_0x1703ba(0xe2)+_0x3918ec[_0x1703ba(0x117)][_0x1703ba(0x108)]+_0x1703ba(0xff)};},async 'execute'(_0x1b430f){const _0x5a9957=a190_0x4fff8d;ensureRunnableContext(_0x1b430f[_0x5a9957(0xe5)],_0x1b430f[_0x5a9957(0x123)]);const _0x20b06a=_0x1b430f[_0x5a9957(0x116)]('yes'),_0x2c4f28=_0x1b430f['str'](_0x5a9957(0x100)),_0x39b970=parsePaths(_0x1b430f['str'](_0x5a9957(0xf6))),_0x4ac77b=parseMenuSyncParams(_0x2c4f28);if(_0x20b06a){const _0x5cdc72=await runMenuSyncCore(_0x1b430f['appCode'],_0x1b430f[_0x5a9957(0x106)],_0x39b970,_0x2c4f28);if(_0x5cdc72[_0x5a9957(0x10b)]){const _0x108950=getLocalPages();_0x108950[_0x5a9957(0x108)]===0x0?writeCliSideChannelLine(_0x5a9957(0x107)):writeCliSideChannelLine('✓\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform');}else writeCliSideChannelLine('✓\x20Menu\x20sync\x20completed:\x20'+_0x5cdc72['created']+'\x20menu(s)\x20created');return{'ok':!![],'data':_0x5cdc72,'message':_0x5cdc72[_0x5a9957(0x10b)]?_0x5a9957(0x11f):_0x5a9957(0x112)+_0x5cdc72[_0x5a9957(0xec)]+_0x5a9957(0xf2)};}if(_0x39b970['length']>0x0)throw CliErrors[_0x5a9957(0x11c)](_0x5a9957(0x121),_0x5a9957(0x113));if(!isInteractive()&&_0x2c4f28)throw CliErrors[_0x5a9957(0x11c)](_0x5a9957(0x125),'Preview\x20with\x20--dry-run,\x20then\x20reuse\x20the\x20same\x20--paths\x20and\x20--params\x20with\x20--yes.');requireInteractive(),writeCliSideChannelLine(_0x5a9957(0x120));const _0x56e968=startSpinner(_0x5a9957(0x111));let _0x262ee6,_0x1e9bd,_0x44f8cf;try{const _0x340a05=await fetchMenuData(_0x1b430f['appCode'],_0x1b430f[_0x5a9957(0x106)]);_0x262ee6=_0x340a05[_0x5a9957(0xf3)],_0x1e9bd=_0x340a05[_0x5a9957(0x124)],_0x44f8cf=_0x340a05[_0x5a9957(0xe1)],stopSpinner(_0x56e968,_0x5a9957(0xfb),!![]);}catch(_0xed0dc9){stopSpinner(_0x56e968,_0x5a9957(0x10a),![]);throw CliErrors['validation'](_0xed0dc9 instanceof Error?_0xed0dc9[_0x5a9957(0xde)]:'Failed\x20to\x20fetch\x20online\x20menu\x20list');}if(_0x262ee6[_0x5a9957(0x108)]===0x0)return writeCliSideChannelLine(a190_0x3fb286['yellow'](_0x5a9957(0x11d))),{'ok':!![]};const _0x4944c4=buildCompareRows(_0x262ee6,_0x1e9bd);writeCliSideChannelLine(renderCompareTable(_0x4944c4)),writeCliSideChannelLine('');const _0x4d3e33=await selectPages(_0x262ee6,_0x1e9bd);writeCliSideChannelLine(''),writeCliSideChannelLine(a190_0x3fb286[_0x5a9957(0xe7)](_0x5a9957(0x11e)+_0x4d3e33[_0x5a9957(0x108)]+_0x5a9957(0xdd)));const _0x4e84a8=_0x4ac77b[_0x5a9957(0xf8)]&&_0x4ac77b[_0x5a9957(0x114)];if(!_0x4e84a8){writeCliSideChannelLine(renderSyncSummary(_0x4d3e33,_0x1e9bd[_0x5a9957(0xfe)]>0x0));const _0x131c6d=await askConfirm('\x20\x20Continue\x20with\x20creation?');if(!_0x131c6d)return writeCliSideChannelLine(a190_0x3fb286[_0x5a9957(0x126)](_0x5a9957(0x118))),{'ok':!![]};}let _0x310954=_0x4ac77b[_0x5a9957(0xf8)],_0x56046e=_0x4ac77b['cssUrl'];!_0x310954&&!_0x4ac77b[_0x5a9957(0x110)]&&(_0x310954=await askJsUrl());!_0x56046e&&!_0x4ac77b['appName']&&(_0x56046e=await askCssUrl());const _0x2addc7=await askConfirm(_0x4ac77b[_0x5a9957(0x110)]?'\x20\x20Create\x20'+_0x4d3e33[_0x5a9957(0x108)]+'\x20menu(s)\x20bound\x20to\x20'+_0x4ac77b[_0x5a9957(0x110)]+'?':_0x5a9957(0xf0)+_0x4d3e33[_0x5a9957(0x108)]+'\x20menu(s)\x20with\x20JS:\x20'+_0x310954+_0x5a9957(0xfd)+_0x56046e+'?');if(!_0x2addc7)return writeCliSideChannelLine(a190_0x3fb286[_0x5a9957(0x126)]('\x20\x20Cancelled.')),{'ok':!![]};const _0x6d8aaf=[_0x310954,_0x56046e][_0x5a9957(0xf1)](_0x355e64=>Boolean(_0x355e64));_0x4ac77b[_0x5a9957(0x110)]&&_0x6d8aaf[_0x5a9957(0x108)]===0x0&&await assertSharedResourcesConfigured(_0x1b430f[_0x5a9957(0xea)],_0x1b430f[_0x5a9957(0x106)],_0x4ac77b['appName']);const _0x44e563=startSpinner(_0x5a9957(0x105)+_0x4d3e33[_0x5a9957(0x108)]+_0x5a9957(0xe0));try{const _0x13619b=_0x4d3e33[_0x5a9957(0xfa)](_0x1d2b20=>resolvePage(_0x1d2b20,_0x4ac77b,_0x44f8cf)),_0x3319de=await doCreateMenus(_0x1b430f[_0x5a9957(0xea)],_0x1b430f[_0x5a9957(0x106)],_0x13619b,_0x6d8aaf,_0x4ac77b[_0x5a9957(0x110)]?{'appName':_0x4ac77b[_0x5a9957(0x110)]}:undefined);return stopSpinner(_0x44e563,_0x5a9957(0x101)+_0x3319de[_0x5a9957(0xec)]+'\x20menu(s)',!![]),{'ok':!![],'data':_0x3319de,'message':_0x5a9957(0x112)+_0x3319de['created']+_0x5a9957(0x103)+_0x3319de[_0x5a9957(0xe4)]+_0x5a9957(0xe8)};}catch(_0x5cbd5b){stopSpinner(_0x44e563,_0x5a9957(0xe9),![]);throw CliErrors[_0x5a9957(0x11c)](_0x5cbd5b instanceof Error?_0x5cbd5b[_0x5a9957(0xde)]:_0x5a9957(0xe9));}}};function ensureRunnableContext(_0x52ee51,_0x495e4b){const _0x29dc0f=a190_0x4fff8d,_0x260288=_0x52ee51['appcode']?String(_0x52ee51['appcode'])[_0x29dc0f(0x127)]():'';if(!isInProject()&&!_0x495e4b&&!_0x260288)throw CliErrors[_0x29dc0f(0x11c)]('menu\x20sync\x20requires\x20a\x20project\x20context\x20or\x20explicit\x20--appcode.\x20'+_0x29dc0f(0xef));}function parsePaths(_0x237080){const _0x26e36d=a190_0x4fff8d;return[...new Set(_0x237080['split'](',')[_0x26e36d(0xfa)](_0x46df21=>_0x46df21['trim']())[_0x26e36d(0xf1)](Boolean))];}
1
+ const a190_0x3ca01a=a190_0x57c1;(function(_0x3748f7,_0x484a53){const _0xcb02dd=a190_0x57c1,_0x424e8f=_0x3748f7();while(!![]){try{const _0x23fc0f=-parseInt(_0xcb02dd(0x202))/0x1*(-parseInt(_0xcb02dd(0x1ca))/0x2)+-parseInt(_0xcb02dd(0x1d0))/0x3*(parseInt(_0xcb02dd(0x203))/0x4)+-parseInt(_0xcb02dd(0x1e4))/0x5*(parseInt(_0xcb02dd(0x1ef))/0x6)+parseInt(_0xcb02dd(0x1d7))/0x7+-parseInt(_0xcb02dd(0x1e2))/0x8+parseInt(_0xcb02dd(0x1dd))/0x9*(parseInt(_0xcb02dd(0x1f1))/0xa)+-parseInt(_0xcb02dd(0x1fe))/0xb*(parseInt(_0xcb02dd(0x204))/0xc);if(_0x23fc0f===_0x484a53)break;else _0x424e8f['push'](_0x424e8f['shift']());}catch(_0x2808ae){_0x424e8f['push'](_0x424e8f['shift']());}}}(a190_0xf6b9,0x704f0));import a190_0x47f50b from'chalk';function a190_0xf6b9(){const _0x3e5934=['Created\x20','filter','\x20\x20✓\x20Selected:\x20','length','localPages','979BXaqpB','message','\x20menu(s)...','\x20menu(s)\x20with\x20JS:\x20','90344oUBZcS','1645516AgBqaZ','11940PnPZOA','selectedAppName','Confirm\x20non-interactive\x20sync;\x20without\x20--paths,\x20create\x20all\x20missing\x20local\x20pages','menu','appName','yellow','cookie','boolean','\x20\x20Cancelled.','menu\x20sync\x20requires\x20a\x20project\x20context\x20or\x20explicit\x20--appcode.\x20','string','onlineMenuList','gray','appcode','\x20local\x20microfrontend\x20menu(s).','\x20menu(s)\x20created','8bxuJVP','No\x20local\x20microfrontend\x20menus\x20would\x20be\x20created.','Register\x20local\x20pages\x20as\x20platform\x20menus','sync','Tip:\x20For\x20frontend\x20subapps,\x20prefer\x20Agent-planned\x20menu\x20groups\x20and\x20shared\x20resources.\x20This\x20manual\x20sync\x20workflow\x20remains\x20available\x20as\x20a\x20fallback.','cyan','3dRfblN','Exact\x20comma-separated\x20local\x20page\x20paths\x20to\x20sync','onlinePaths','Preview\x20with\x20--dry-run,\x20then\x20reuse\x20the\x20same\x20--paths\x20and\x20--params\x20with\x20--yes.','flag','str','failed','3254965HooeuC','jsUrl','created','\x20\x20Create\x20','targetPages','\x20failed.','9EGxtAH','Prefer\x20appName\x20for\x20shared\x20subapp\x20resources\x20and\x20parentId\x20for\x20planned\x20groups.\x20','yes','validation','JSON:\x20{\x22appName\x22:\x22store-app\x22,\x22parentId\x22:42,\x22visible\x22:false};\x20jsUrl\x20and\x20cssUrl\x20remain\x20available\x20for\x20individual\x20menu\x20resources.','2815008FGrjgR','Creating\x20','80MGchZH','Menu\x20creation\x20failed','skipped','params','✓\x20Menu\x20sync\x20completed:\x20','Menu\x20sync\x20completed:\x20','trim','\x20page(s)','paths','Run\x20inside\x20a\x20directory\x20with\x20.rabetbase.json,\x20or\x20pass\x20--appcode\x20<code>.','✓\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform','34416lYyxwc','map','5772310JeuybK','Failed\x20to\x20fetch\x20online\x20menu\x20list','menu\x20sync\x20--paths\x20requires\x20--yes\x20for\x20execution.','\x20menu(s)\x20bound\x20to\x20','appCode','Fetching\x20online\x20menu\x20list...','cssUrl','rawFlags'];a190_0xf6b9=function(){return _0x3e5934;};return a190_0xf6b9();}function a190_0x57c1(_0x34bb25,_0x2f9595){_0x34bb25=_0x34bb25-0x1bc;const _0xf6b9b3=a190_0xf6b9();let _0x57c1e0=_0xf6b9b3[_0x34bb25];return _0x57c1e0;}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,resolvePage,runMenuSyncCore}from'../../commands/menu/shared/sync-core.js';import{getLocalPages}from'../../commands/menu/shared/local-pages.js';import{isInProject}from'../../context.js';import{assertSharedResourcesConfigured}from'../../commands/menu/shared/subapp-assets.js';export const menuSync={'service':a190_0x3ca01a(0x1bd),'command':a190_0x3ca01a(0x1cd),'description':a190_0x3ca01a(0x1cc),'risk':'write','flags':[{'name':a190_0x3ca01a(0x1e7),'type':'string','description':a190_0x3ca01a(0x1de)+a190_0x3ca01a(0x1e1)},{'name':a190_0x3ca01a(0x1ec),'type':a190_0x3ca01a(0x1c4),'description':a190_0x3ca01a(0x1d1)},{'name':a190_0x3ca01a(0x1df),'type':a190_0x3ca01a(0x1c1),'description':a190_0x3ca01a(0x1bc)}],async 'dryRun'(_0x9e7b51){const _0x205bf4=a190_0x3ca01a;ensureRunnableContext(_0x9e7b51['rawFlags'],_0x9e7b51[_0x205bf4(0x205)]);const _0x39e063=await runMenuSyncCore(_0x9e7b51['appCode'],_0x9e7b51['cookie'],parsePaths(_0x9e7b51[_0x205bf4(0x1d5)](_0x205bf4(0x1ec))),_0x9e7b51['str']('params'),{'dryRun':!![]});return{'method':'POST','url':'/smartapi/menu/create','body':_0x39e063,'description':_0x39e063[_0x205bf4(0x1e6)]?_0x205bf4(0x1cb):'Would\x20create\x20'+_0x39e063[_0x205bf4(0x1db)]['length']+_0x205bf4(0x1c8)};},async 'execute'(_0x91ce80){const _0x428c29=a190_0x3ca01a;ensureRunnableContext(_0x91ce80[_0x428c29(0x1f8)],_0x91ce80[_0x428c29(0x205)]);const _0x278246=_0x91ce80[_0x428c29(0x1d4)]('yes'),_0x1010fc=_0x91ce80[_0x428c29(0x1d5)](_0x428c29(0x1e7)),_0x5a0977=parsePaths(_0x91ce80[_0x428c29(0x1d5)]('paths')),_0xe9403d=parseMenuSyncParams(_0x1010fc);if(_0x278246){const _0x27d6a6=await runMenuSyncCore(_0x91ce80[_0x428c29(0x1f5)],_0x91ce80['cookie'],_0x5a0977,_0x1010fc);if(_0x27d6a6['skipped']){const _0x148024=getLocalPages();_0x148024[_0x428c29(0x1fc)]===0x0?writeCliSideChannelLine('!\x20No\x20local\x20pages\x20found\x20in\x20src/pages'):writeCliSideChannelLine(_0x428c29(0x1ee));}else writeCliSideChannelLine(_0x428c29(0x1e8)+_0x27d6a6[_0x428c29(0x1d9)]+_0x428c29(0x1c9));return{'ok':!![],'data':_0x27d6a6,'message':_0x27d6a6['skipped']?'Menu\x20sync\x20skipped':'Menu\x20sync\x20completed:\x20'+_0x27d6a6[_0x428c29(0x1d9)]+'\x20created.'};}if(_0x5a0977[_0x428c29(0x1fc)]>0x0)throw CliErrors['validation'](_0x428c29(0x1f3),_0x428c29(0x1d3));if(!isInteractive()&&_0x1010fc)throw CliErrors[_0x428c29(0x1e0)]('Non-interactive\x20menu\x20sync\x20requires\x20--yes.',_0x428c29(0x1d3));requireInteractive(),writeCliSideChannelLine(_0x428c29(0x1ce));const _0x1025b7=startSpinner(_0x428c29(0x1f6));let _0x372d07,_0x9480af,_0x334ea8;try{const _0xd18165=await fetchMenuData(_0x91ce80[_0x428c29(0x1f5)],_0x91ce80[_0x428c29(0x1c0)]);_0x372d07=_0xd18165[_0x428c29(0x1fd)],_0x9480af=_0xd18165[_0x428c29(0x1d2)],_0x334ea8=_0xd18165[_0x428c29(0x1c5)],stopSpinner(_0x1025b7,'Online\x20menu\x20list\x20fetched',!![]);}catch(_0x1e277b){stopSpinner(_0x1025b7,_0x428c29(0x1f2),![]);throw CliErrors['validation'](_0x1e277b instanceof Error?_0x1e277b[_0x428c29(0x1ff)]:_0x428c29(0x1f2));}if(_0x372d07['length']===0x0)return writeCliSideChannelLine(a190_0x47f50b[_0x428c29(0x1bf)]('\x20\x20!\x20No\x20local\x20pages\x20found,\x20please\x20create\x20pages\x20first')),{'ok':!![]};const _0x5bd618=buildCompareRows(_0x372d07,_0x9480af);writeCliSideChannelLine(renderCompareTable(_0x5bd618)),writeCliSideChannelLine('');const _0x10f2f8=await selectPages(_0x372d07,_0x9480af);writeCliSideChannelLine(''),writeCliSideChannelLine(a190_0x47f50b[_0x428c29(0x1cf)](_0x428c29(0x1fb)+_0x10f2f8[_0x428c29(0x1fc)]+_0x428c29(0x1eb)));const _0x5421fb=_0xe9403d['jsUrl']&&_0xe9403d[_0x428c29(0x1f7)];if(!_0x5421fb){writeCliSideChannelLine(renderSyncSummary(_0x10f2f8,_0x9480af['size']>0x0));const _0x217347=await askConfirm('\x20\x20Continue\x20with\x20creation?');if(!_0x217347)return writeCliSideChannelLine(a190_0x47f50b[_0x428c29(0x1c6)]('\x20\x20Cancelled.')),{'ok':!![]};}let _0x3cae72=_0xe9403d[_0x428c29(0x1d8)],_0x41a93f=_0xe9403d[_0x428c29(0x1f7)];!_0x3cae72&&!_0xe9403d['appName']&&(_0x3cae72=await askJsUrl());!_0x41a93f&&!_0xe9403d['appName']&&(_0x41a93f=await askCssUrl());const _0x415a19=await askConfirm(_0xe9403d[_0x428c29(0x1be)]?_0x428c29(0x1da)+_0x10f2f8[_0x428c29(0x1fc)]+_0x428c29(0x1f4)+_0xe9403d['appName']+'?':_0x428c29(0x1da)+_0x10f2f8[_0x428c29(0x1fc)]+_0x428c29(0x201)+_0x3cae72+'\x20and\x20CSS:\x20'+_0x41a93f+'?');if(!_0x415a19)return writeCliSideChannelLine(a190_0x47f50b[_0x428c29(0x1c6)](_0x428c29(0x1c2))),{'ok':!![]};const _0x53f715=[_0x3cae72,_0x41a93f][_0x428c29(0x1fa)](_0x3efe00=>Boolean(_0x3efe00));_0xe9403d['appName']&&_0x53f715[_0x428c29(0x1fc)]===0x0&&await assertSharedResourcesConfigured(_0x91ce80[_0x428c29(0x1f5)],_0x91ce80[_0x428c29(0x1c0)],_0xe9403d[_0x428c29(0x1be)]);const _0x1d450e=startSpinner(_0x428c29(0x1e3)+_0x10f2f8['length']+_0x428c29(0x200));try{const _0x3f1c47=_0x10f2f8[_0x428c29(0x1f0)](_0x14af47=>resolvePage(_0x14af47,_0xe9403d,_0x334ea8)),_0x375aba=await doCreateMenus(_0x91ce80['appCode'],_0x91ce80[_0x428c29(0x1c0)],_0x3f1c47,_0x53f715,_0xe9403d[_0x428c29(0x1be)]?{'appName':_0xe9403d[_0x428c29(0x1be)]}:undefined);return stopSpinner(_0x1d450e,_0x428c29(0x1f9)+_0x375aba[_0x428c29(0x1d9)]+'\x20menu(s)',!![]),{'ok':!![],'data':_0x375aba,'message':_0x428c29(0x1e9)+_0x375aba[_0x428c29(0x1d9)]+'\x20created,\x20'+_0x375aba[_0x428c29(0x1d6)]+_0x428c29(0x1dc)};}catch(_0x465fc7){stopSpinner(_0x1d450e,_0x428c29(0x1e5),![]);throw CliErrors[_0x428c29(0x1e0)](_0x465fc7 instanceof Error?_0x465fc7[_0x428c29(0x1ff)]:_0x428c29(0x1e5));}}};function ensureRunnableContext(_0x2362f5,_0x540658){const _0x18dc47=a190_0x3ca01a,_0x573eed=_0x2362f5['appcode']?String(_0x2362f5[_0x18dc47(0x1c7)])[_0x18dc47(0x1ea)]():'';if(!isInProject()&&!_0x540658&&!_0x573eed)throw CliErrors[_0x18dc47(0x1e0)](_0x18dc47(0x1c3)+_0x18dc47(0x1ed));}function parsePaths(_0x5b9a85){const _0x1b4f60=a190_0x3ca01a;return[...new Set(_0x5b9a85['split'](',')[_0x1b4f60(0x1f0)](_0xd88efe=>_0xd88efe[_0x1b4f60(0x1ea)]())[_0x1b4f60(0x1fa)](Boolean))];}
@@ -1 +1 @@
1
- const a191_0x2387f3=a191_0x2fc1;(function(_0x3938eb,_0x4bce7b){const _0x5c42d3=a191_0x2fc1,_0x4bf9b9=_0x3938eb();while(!![]){try{const _0x8d5df5=parseInt(_0x5c42d3(0x1ff))/0x1+-parseInt(_0x5c42d3(0x238))/0x2+-parseInt(_0x5c42d3(0x209))/0x3+-parseInt(_0x5c42d3(0x1f9))/0x4+parseInt(_0x5c42d3(0x213))/0x5+-parseInt(_0x5c42d3(0x1f3))/0x6*(parseInt(_0x5c42d3(0x228))/0x7)+-parseInt(_0x5c42d3(0x258))/0x8*(-parseInt(_0x5c42d3(0x24d))/0x9);if(_0x8d5df5===_0x4bce7b)break;else _0x4bf9b9['push'](_0x4bf9b9['shift']());}catch(_0x5c8db9){_0x4bf9b9['push'](_0x4bf9b9['shift']());}}}(a191_0x2873,0xe5820));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}from'../../commands/menu/shared/mutations.js';import{updateMenuEntity}from'../../commands/menu/shared/service.js';import{CliErrors}from'../../errors.js';function a191_0x2873(){const _0x4be784=['appCode','menu-ids','Failed\x20update\x20requests\x20were\x20not\x20retried;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expected-count.','write','3348903eLihxf','menu','One\x20or\x20more\x20updates\x20may\x20have\x20changed\x20fields\x20outside\x20visibility;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','verification','failed','menu_state_drift','type','\x20skipped,\x20','str','requestedVisible','8591150oHAwyS','Abort\x20unless\x20every\x20selected\x20menu\x20has\x20this\x20visibility','Exact\x20comma-separated\x20menu\x20paths\x20to\x20update','length','\x20was\x20not\x20found\x20during\x20visibility\x20verification.','map','Response\x20was\x20lost\x20for\x20menu\x20','Visibility\x20update\x20requests\x20completed\x20but\x20readback\x20could\x20not\x20confirm\x20the\x20requested\x20state','The\x20update\x20may\x20have\x20taken\x20effect;\x20inspect\x20the\x20latest\x20menu\x20facts\x20before\x20retrying.','has','update\x20visibility\x20for','Selected\x20','Requested\x20menu\x20visibility','rawFlags','cookie','visible','expected-count','visibility-update','update\x20menu\x20visibility','\x20changed\x20unexpectedly.','string','775103fTVtJx','menu_permission_denied','hash','plannedActions','isSafeInteger','Final\x20menu\x20visibility\x20readback\x20failed.','label','url','/smartapi/menu/update','paths','Menu\x20visibility\x20update\x20completed:\x20','\x20visible\x20did\x20not\x20match\x20the\x20requested\x20state.','resourcesValid','expect-visible','\x20visibility\x20update\x20could\x20not\x20be\x20verified','datasetCode','2806932gMwJVh','Menu\x20path\x20selector\x20not\x20found:\x20','false','recovered','\x20visibility\x20could\x20not\x20be\x20verified\x20safely','flagMissing','depth','--menu-ids\x20must\x20contain\x20positive\x20safe\x20integers.','menu_verification_failed','\x20unchanged\x20menu(s).','split','rabetbase\x20menu\x20list\x20--format\x20compress','parentId','get','Menu\x20path\x20selector\x20matched\x20multiple\x20menus:\x20','Selected\x20menu\x20visibility\x20changed\x20for\x20id(s):\x20','Updated\x20visibility\x20for\x20','code','childrenIds','join','stringify','31193271tHvqpZ','isArray','message','Menu\x20id\x20selector(s)\x20not\x20found:\x20','--expected-count\x20must\x20be\x20a\x20non-negative\x20integer.','plan','expectedCount','\x20menu(s);\x20skip\x20','path','warnings','validation','8jSfufv','pageId','verify\x20menu\x20visibility\x20update','menu_selector_not_found','Abort\x20unless\x20the\x20exact\x20number\x20of\x20selected\x20menus\x20matches','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expect-visible.','resources','targets','menu\x20list','boolean','before','update-recovery','Response\x20was\x20lost\x20and\x20menu\x20','Would\x20update\x20visibility\x20for\x20','filter','modelType','update-menu-visibility','true','\x20must\x20be\x20true\x20or\x20false.','body','pageType','set','Exact\x20comma-separated\x20menu\x20IDs\x20to\x20update','30FaADJC','Menu\x20','childrenCount','sort','menuIds','trim','5964300fTQzQY','\x20menu(s),\x20expected\x20','\x20failed.','expectVisible','byId','POST','320402tUFuim','datasetId','num','update','push'];a191_0x2873=function(){return _0x4be784;};return a191_0x2873();}const BACKEND=[{'method':a191_0x2387f3(0x1fe),'path':a191_0x2387f3(0x230)}];export const menuVisibilityUpdate={'service':a191_0x2387f3(0x20a),'command':a191_0x2387f3(0x224),'description':'Set\x20exact\x20menus\x20visible\x20or\x20hidden\x20without\x20changing\x20their\x20routes\x20or\x20resources','risk':a191_0x2387f3(0x208),'structuredErrors':!![],'flags':[{'name':'menu-ids','type':a191_0x2387f3(0x227),'description':a191_0x2387f3(0x1f2)},{'name':a191_0x2387f3(0x231),'type':'string','description':a191_0x2387f3(0x215)},{'name':a191_0x2387f3(0x222),'type':a191_0x2387f3(0x1e5),'required':!![],'description':a191_0x2387f3(0x21f)},{'name':a191_0x2387f3(0x235),'type':a191_0x2387f3(0x1e5),'description':a191_0x2387f3(0x214)},{'name':a191_0x2387f3(0x223),'type':'number','description':a191_0x2387f3(0x1e0)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x43dc7e){parseInput(_0x43dc7e);},async 'dryRun'(_0x18b9d0){const _0x67b469=a191_0x2387f3,_0x158fba=await buildPlan(_0x18b9d0,!![]),_0x3e90b8=_0x158fba[_0x67b469(0x252)][_0x67b469(0x22b)]?.[_0x67b469(0x216)]??0x0,_0x11a852=_0x158fba[_0x67b469(0x252)]['targets'][_0x67b469(0x216)]-_0x3e90b8;return menuDryRunResult(_0x158fba[_0x67b469(0x252)],{'method':'POST','url':_0x67b469(0x230),'body':{'updates':_0x158fba[_0x67b469(0x252)][_0x67b469(0x22b)]?.[_0x67b469(0x218)](_0x576576=>_0x576576[_0x67b469(0x1ef)])??[]},'description':_0x67b469(0x1e9)+_0x3e90b8+_0x67b469(0x254)+_0x11a852+'\x20unchanged\x20menu(s).'});},async 'execute'(_0x5e81fd){const _0x23bba9=a191_0x2387f3,_0x153aeb=await buildPlan(_0x5e81fd,![]);await recheckMutationSnapshot(_0x5e81fd,_0x153aeb[_0x23bba9(0x252)],_0x23bba9(0x225));const _0x2ec5de=[],_0x356ba8=[],_0x3f34e2=[];for(const _0x57911e of _0x153aeb['plan'][_0x23bba9(0x1e3)]){if(_0x57911e[_0x23bba9(0x1e6)][_0x23bba9(0x222)]===_0x153aeb['plan'][_0x23bba9(0x212)]){_0x2ec5de[_0x23bba9(0x203)]({'id':_0x57911e['id'],'updated':![],'skipped':!![]});continue;}try{await updateMenuEntity(_0x5e81fd[_0x23bba9(0x204)],_0x5e81fd[_0x23bba9(0x221)],{'id':_0x57911e['id'],'visible':_0x153aeb[_0x23bba9(0x252)][_0x23bba9(0x212)]}),_0x2ec5de[_0x23bba9(0x203)]({'id':_0x57911e['id'],'updated':!![],'skipped':![]});}catch(_0x27c646){const _0x140896=mapMenuApiError(_0x27c646,_0x23bba9(0x21d),_0x57911e['id']);if(isMenuResponseLoss(_0x27c646)&&_0x140896[_0x23bba9(0x249)]!==_0x23bba9(0x229)){_0x3f34e2[_0x23bba9(0x203)](_0x57911e['id']);continue;}_0x356ba8[_0x23bba9(0x203)]({'id':_0x57911e['id'],'stage':_0x23bba9(0x202),'code':_0x140896[_0x23bba9(0x249)],'message':_0x140896[_0x23bba9(0x24f)]});}}let _0x239989;try{_0x239989=await fetchMenuSnapshot(_0x5e81fd[_0x23bba9(0x204)],_0x5e81fd[_0x23bba9(0x221)]);}catch(_0x4368c8){const _0x48b7b7=describeMenuErrorCause(_0x4368c8,_0x23bba9(0x1de)),_0x36165a=_0x3f34e2[_0x23bba9(0x218)](_0x15facd=>({'id':_0x15facd,'stage':_0x23bba9(0x1e7),'code':_0x23bba9(0x240),'message':_0x23bba9(0x219)+_0x15facd+'\x20and\x20final\x20state\x20could\x20not\x20be\x20read.','requestedStateConfirmed':![],'recovered':![]})),_0x57bc19={'stage':'verification','code':_0x23bba9(0x240),'message':_0x23bba9(0x22d),'targetIds':_0x153aeb[_0x23bba9(0x252)][_0x23bba9(0x1e3)][_0x23bba9(0x218)](_0x3cc16b=>_0x3cc16b['id']),'requestedStateConfirmed':![],..._0x48b7b7};throw menuFailure(asVerificationError(_0x4368c8,_0x23bba9(0x21a)),_0x153aeb[_0x23bba9(0x252)],{'stage':_0x23bba9(0x20c),'succeeded':_0x2ec5de,'failedRecords':[..._0x356ba8,..._0x36165a,_0x57bc19],'warnings':[_0x23bba9(0x21b)],'verification':{'status':_0x23bba9(0x20d),'recoveredCount':0x0,'lookupCommand':_0x23bba9(0x243)}});}const _0x3cac62=[];for(const _0xd40354 of _0x2ec5de){const _0x5e17b7=Number(_0xd40354['id']),_0x5303a8=_0x153aeb['beforeById']['get'](_0x5e17b7),_0x154cc0=_0x239989[_0x23bba9(0x1fd)][_0x23bba9(0x245)](_0x5e17b7);try{verifyVisibilityUpdate(_0x5303a8,_0x154cc0,_0x153aeb[_0x23bba9(0x252)][_0x23bba9(0x212)]);}catch(_0x310221){const _0x3e0265=asVerificationError(_0x310221,_0x23bba9(0x1f4)+_0x5e17b7+_0x23bba9(0x236));_0x3cac62[_0x23bba9(0x203)]({'id':_0x5e17b7,'stage':_0x23bba9(0x20c),'code':_0x3e0265[_0x23bba9(0x249)],'message':_0x3e0265['message'],'requestedStateConfirmed':![]});}}for(const _0x39da7c of _0x3f34e2){const _0x27042f=_0x153aeb['beforeById']['get'](_0x39da7c),_0x2ff28b=_0x239989[_0x23bba9(0x1fd)][_0x23bba9(0x245)](_0x39da7c);try{verifyVisibilityUpdate(_0x27042f,_0x2ff28b,_0x153aeb[_0x23bba9(0x252)][_0x23bba9(0x212)]),_0x2ec5de['push']({'id':_0x39da7c,'updated':!![],'skipped':![],'recovered':!![]});}catch(_0x21f3cf){const _0x3a9686=asVerificationError(_0x21f3cf,_0x23bba9(0x1e8)+_0x39da7c+_0x23bba9(0x23c));_0x3cac62[_0x23bba9(0x203)]({'id':_0x39da7c,'stage':'update-recovery','code':_0x3a9686[_0x23bba9(0x249)],'message':_0x3a9686[_0x23bba9(0x24f)],'requestedStateConfirmed':![],'recovered':![]});}}if(_0x3cac62[_0x23bba9(0x216)]>0x0){const _0x10468f=_0x3cac62['map'](_0x2e60be=>Number(_0x2e60be['id'])),_0x1e838d=_0x2ec5de[_0x23bba9(0x1ea)](_0x2cb771=>_0x2cb771[_0x23bba9(0x23b)]===!![])[_0x23bba9(0x216)],_0x6dcd22=menuError(_0x23bba9(0x240),'Menu\x20visibility\x20update\x20could\x20not\x20be\x20verified\x20for\x20id(s):\x20'+_0x10468f[_0x23bba9(0x24b)](',\x20')+'.','Inspect\x20current\x20menu\x20facts\x20before\x20retrying\x20any\x20target.');throw menuFailure(_0x6dcd22,_0x153aeb[_0x23bba9(0x252)],{'stage':_0x23bba9(0x20c),'succeeded':_0x2ec5de,'failedRecords':[..._0x356ba8,..._0x3cac62],'warnings':[_0x23bba9(0x20b)],'verification':{'status':_0x23bba9(0x20d),..._0x10468f[_0x23bba9(0x216)]===0x1?{'targetId':_0x10468f[0x0]}:{'targetIds':_0x10468f},'recoveredCount':_0x1e838d,'lookupCommand':_0x23bba9(0x243)}});}const _0x13ba85=_0x2ec5de[_0x23bba9(0x1ea)](_0x20ac24=>_0x20ac24['updated']===!![])[_0x23bba9(0x216)],_0x501da4=_0x2ec5de['length']-_0x13ba85,_0x4c4a08={..._0x153aeb[_0x23bba9(0x252)],'succeeded':_0x2ec5de,'failed':_0x356ba8,'warnings':_0x356ba8[_0x23bba9(0x216)]>0x0?[..._0x153aeb[_0x23bba9(0x252)][_0x23bba9(0x256)],_0x23bba9(0x206)]:_0x153aeb[_0x23bba9(0x252)][_0x23bba9(0x256)],'verification':{'checkedBy':_0x23bba9(0x1e4),'snapshotHash':_0x239989[_0x23bba9(0x22a)],'matchesRequestedState':_0x356ba8[_0x23bba9(0x216)]===0x0,'recoveredCount':_0x3f34e2[_0x23bba9(0x216)]}};return{'ok':_0x356ba8['length']===0x0,'data':_0x4c4a08,'message':_0x356ba8['length']===0x0?_0x23bba9(0x248)+_0x13ba85+'\x20menu(s);\x20skipped\x20'+_0x501da4+_0x23bba9(0x241):_0x23bba9(0x232)+_0x13ba85+'\x20updated,\x20'+_0x501da4+_0x23bba9(0x210)+_0x356ba8[_0x23bba9(0x216)]+_0x23bba9(0x1fb)};}};function parseInput(_0x59038d){const _0x42569b=a191_0x2387f3,_0x1b3594=parseMenuIds(_0x59038d[_0x42569b(0x211)](_0x42569b(0x205))),_0x23f7f0=parseCsv(_0x59038d['str'](_0x42569b(0x231)));if(_0x1b3594['length']===0x0&&_0x23f7f0[_0x42569b(0x216)]===0x0)throw CliErrors[_0x42569b(0x257)]('menu\x20visibility-update\x20requires\x20--menu-ids\x20or\x20--paths.');const _0x393c06=parseBooleanFlag(_0x59038d,_0x42569b(0x222),!![]),_0x3ac212=parseBooleanFlag(_0x59038d,_0x42569b(0x235),![]);let _0x4c6d33;if(hasFlag(_0x59038d,'expected-count')){_0x4c6d33=_0x59038d[_0x42569b(0x201)]('expected-count');if(!Number[_0x42569b(0x22c)](_0x4c6d33)||_0x4c6d33<0x0)throw CliErrors[_0x42569b(0x257)](_0x42569b(0x251));}return{'menuIds':_0x1b3594,'paths':_0x23f7f0,'visible':_0x393c06,'expectVisible':_0x3ac212,'expectedCount':_0x4c6d33};}async function buildPlan(_0x408dac,_0x2f5712){const _0x464b2e=a191_0x2387f3,_0x4d3259=parseInput(_0x408dac),_0x200943=await fetchMutationSnapshot(_0x408dac,_0x464b2e(0x225)),_0x45fd57=selectTargets(_0x200943['menus'],_0x4d3259['menuIds'],_0x4d3259[_0x464b2e(0x231)]);if(_0x4d3259[_0x464b2e(0x253)]!==undefined&&_0x45fd57[_0x464b2e(0x216)]!==_0x4d3259[_0x464b2e(0x253)])throw menuError('menu_expected_count_mismatch',_0x464b2e(0x21e)+_0x45fd57[_0x464b2e(0x216)]+_0x464b2e(0x1fa)+_0x4d3259[_0x464b2e(0x253)]+'.',_0x464b2e(0x207));if(_0x4d3259[_0x464b2e(0x1fc)]!==undefined){const _0x1700be=_0x45fd57[_0x464b2e(0x1ea)](_0x5335e2=>_0x5335e2['visible']!==_0x4d3259[_0x464b2e(0x1fc)]);if(_0x1700be[_0x464b2e(0x216)]>0x0)throw menuError(_0x464b2e(0x20e),_0x464b2e(0x247)+_0x1700be['map'](_0x268418=>_0x268418['id'])[_0x464b2e(0x24b)](',\x20')+'.',_0x464b2e(0x1e1));}const _0x3e8a27=_0x45fd57[_0x464b2e(0x218)](_0xc68f8e=>({'id':_0xc68f8e['id'],'label':_0xc68f8e[_0x464b2e(0x22e)],'path':_0xc68f8e['path'],'before':{'visible':_0xc68f8e[_0x464b2e(0x222)]},'after':{'visible':_0x4d3259['visible']}})),_0x513b95=_0x3e8a27['filter'](_0x541552=>_0x541552[_0x464b2e(0x1e6)]['visible']!==_0x4d3259[_0x464b2e(0x222)])[_0x464b2e(0x218)](_0x192026=>({'stage':_0x464b2e(0x1ec),'method':_0x464b2e(0x1fe),'path':_0x464b2e(0x230),'body':{'appCode':_0x408dac[_0x464b2e(0x204)],'id':_0x192026['id'],'visible':_0x4d3259[_0x464b2e(0x222)]}})),_0x12bd49=mutationResult({'operation':'visibility-update','selector':{'menuIds':_0x4d3259[_0x464b2e(0x1f7)],'paths':_0x4d3259[_0x464b2e(0x231)]},'before':{'menus':_0x45fd57[_0x464b2e(0x218)](_0x13224c=>({'id':_0x13224c['id'],'path':_0x13224c[_0x464b2e(0x255)],'visible':_0x13224c[_0x464b2e(0x222)]}))},'after':{'menus':_0x45fd57[_0x464b2e(0x218)](_0x40acca=>({'id':_0x40acca['id'],'path':_0x40acca[_0x464b2e(0x255)],'visible':_0x4d3259['visible']}))},'dryRun':_0x2f5712,'backend':[...BACKEND],'plannedActions':_0x513b95,'snapshotHash':_0x200943[_0x464b2e(0x22a)],'warnings':_0x513b95[_0x464b2e(0x216)]===0x0?['Every\x20selected\x20menu\x20already\x20has\x20the\x20requested\x20visibility;\x20no\x20write\x20is\x20needed.']:[]});return{'plan':{..._0x12bd49,'requestedVisible':_0x4d3259['visible'],'targets':_0x3e8a27},'beforeById':new Map(_0x45fd57[_0x464b2e(0x218)](_0x11055a=>[_0x11055a['id'],_0x11055a]))};}function selectTargets(_0x4b9fab,_0x2f4833,_0x1d92a8){const _0x4dd0cf=a191_0x2387f3,_0x51d0a6=new Map(_0x4b9fab[_0x4dd0cf(0x218)](_0x1cc438=>[_0x1cc438['id'],_0x1cc438])),_0x463941=new Map(),_0x4fed58=_0x2f4833[_0x4dd0cf(0x1ea)](_0x1ced1f=>!_0x51d0a6[_0x4dd0cf(0x21c)](_0x1ced1f));if(_0x4fed58[_0x4dd0cf(0x216)]>0x0)throw menuError(_0x4dd0cf(0x1df),_0x4dd0cf(0x250)+_0x4fed58[_0x4dd0cf(0x24b)](',\x20')+'.','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20exact\x20current\x20ids.');for(const _0x4a833c of _0x2f4833){_0x463941['set'](_0x4a833c,_0x51d0a6[_0x4dd0cf(0x245)](_0x4a833c));}for(const _0x1d369a of _0x1d92a8){const _0xdee22=_0x4b9fab[_0x4dd0cf(0x1ea)](_0x14be77=>_0x14be77[_0x4dd0cf(0x255)]===_0x1d369a);if(_0xdee22['length']===0x0)throw menuError(_0x4dd0cf(0x1df),_0x4dd0cf(0x239)+JSON[_0x4dd0cf(0x24c)](_0x1d369a)+'.','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20an\x20exact\x20current\x20path.');if(_0xdee22[_0x4dd0cf(0x216)]>0x1)throw menuError('menu_selector_ambiguous',_0x4dd0cf(0x246)+JSON[_0x4dd0cf(0x24c)](_0x1d369a)+'.','Use\x20--menu-ids\x20with\x20one\x20or\x20more\x20of:\x20'+_0xdee22[_0x4dd0cf(0x218)](_0x19be41=>_0x19be41['id'])[_0x4dd0cf(0x24b)](',\x20')+'.');const _0x604fa4=_0xdee22[0x0];_0x463941[_0x4dd0cf(0x1f1)](_0x604fa4['id'],_0x604fa4);}return[..._0x463941['values']()];}function a191_0x2fc1(_0x54b25b,_0x241590){_0x54b25b=_0x54b25b-0x1de;const _0x28736c=a191_0x2873();let _0x2fc115=_0x28736c[_0x54b25b];return _0x2fc115;}function parseMenuIds(_0x3feaba){const _0x1a73b7=a191_0x2387f3,_0x2e3ffa=parseCsv(_0x3feaba),_0x3520f1=_0x2e3ffa[_0x1a73b7(0x218)](Number);if(_0x3520f1['some'](_0x2933d3=>!Number[_0x1a73b7(0x22c)](_0x2933d3)||_0x2933d3<=0x0))throw CliErrors[_0x1a73b7(0x257)](_0x1a73b7(0x23f));return[...new Set(_0x3520f1)];}function parseCsv(_0x4b6280){const _0x408b2e=a191_0x2387f3;return[...new Set(_0x4b6280[_0x408b2e(0x242)](',')['map'](_0x3abf93=>_0x3abf93[_0x408b2e(0x1f8)]())['filter'](Boolean))];}function parseBooleanFlag(_0x18cf68,_0x23e62b,_0x240d54){const _0xf4f019=a191_0x2387f3;if(!hasFlag(_0x18cf68,_0x23e62b)){if(_0x240d54)throw CliErrors[_0xf4f019(0x23d)](_0x23e62b);return undefined;}const _0x552cb5=_0x18cf68[_0xf4f019(0x220)][_0x23e62b];if(_0x552cb5===!![]||_0x552cb5===![])return _0x552cb5;if(_0x552cb5===_0xf4f019(0x1ed))return!![];if(_0x552cb5===_0xf4f019(0x23a))return![];throw CliErrors['validation']('--'+_0x23e62b+_0xf4f019(0x1ee));}function verifyVisibilityUpdate(_0x160491,_0x502501,_0x38796b){const _0x3ba99c=a191_0x2387f3;assertVerified(!!_0x502501,_0x3ba99c(0x1f4)+_0x160491['id']+_0x3ba99c(0x217)),assertVerified(_0x502501['visible']===_0x38796b,_0x3ba99c(0x1f4)+_0x160491['id']+_0x3ba99c(0x233));const _0x2403c8=[['id',_0x502501['id'],_0x160491['id']],['parentId',_0x502501['parentId'],_0x160491[_0x3ba99c(0x244)]],[_0x3ba99c(0x23e),_0x502501['depth'],_0x160491['depth']],['label',_0x502501[_0x3ba99c(0x22e)],_0x160491[_0x3ba99c(0x22e)]],['path',_0x502501[_0x3ba99c(0x255)],_0x160491[_0x3ba99c(0x255)]],['url',_0x502501[_0x3ba99c(0x22f)],_0x160491[_0x3ba99c(0x22f)]],[_0x3ba99c(0x20f),_0x502501[_0x3ba99c(0x20f)],_0x160491[_0x3ba99c(0x20f)]],[_0x3ba99c(0x1f6),_0x502501[_0x3ba99c(0x1f6)],_0x160491[_0x3ba99c(0x1f6)]],[_0x3ba99c(0x1e2),_0x502501['resources'],_0x160491[_0x3ba99c(0x1e2)]],[_0x3ba99c(0x234),_0x502501[_0x3ba99c(0x234)],_0x160491[_0x3ba99c(0x234)]],[_0x3ba99c(0x24a),_0x502501[_0x3ba99c(0x24a)],_0x160491[_0x3ba99c(0x24a)]],['childrenCount',_0x502501[_0x3ba99c(0x1f5)],_0x160491[_0x3ba99c(0x1f5)]],[_0x3ba99c(0x259),_0x502501['pageId'],_0x160491[_0x3ba99c(0x259)]],['pageType',_0x502501['pageType'],_0x160491[_0x3ba99c(0x1f0)]],[_0x3ba99c(0x1eb),_0x502501['modelType'],_0x160491['modelType']],[_0x3ba99c(0x200),_0x502501[_0x3ba99c(0x200)],_0x160491['datasetId']],[_0x3ba99c(0x237),_0x502501[_0x3ba99c(0x237)],_0x160491[_0x3ba99c(0x237)]]];for(const [_0x107e4b,_0x51a53a,_0x5419cb]of _0x2403c8){assertVerified(sameValue(_0x51a53a,_0x5419cb),_0x3ba99c(0x1f4)+_0x160491['id']+'\x20'+_0x107e4b+_0x3ba99c(0x226));}}function sameValue(_0x33189c,_0xfa32bf){const _0x5b7e7c=a191_0x2387f3;if(Array[_0x5b7e7c(0x24e)](_0x33189c)||Array['isArray'](_0xfa32bf))return JSON[_0x5b7e7c(0x24c)](_0x33189c)===JSON['stringify'](_0xfa32bf);return _0x33189c===_0xfa32bf;}
1
+ const a191_0x10de07=a191_0x5d3c;(function(_0x1c4f2e,_0x11f921){const _0x4a1440=a191_0x5d3c,_0xe22af6=_0x1c4f2e();while(!![]){try{const _0x38d4a9=-parseInt(_0x4a1440(0x146))/0x1*(parseInt(_0x4a1440(0x141))/0x2)+parseInt(_0x4a1440(0x15f))/0x3+-parseInt(_0x4a1440(0x117))/0x4+-parseInt(_0x4a1440(0x168))/0x5+parseInt(_0x4a1440(0x12e))/0x6*(-parseInt(_0x4a1440(0x17e))/0x7)+-parseInt(_0x4a1440(0x160))/0x8+parseInt(_0x4a1440(0x10e))/0x9*(parseInt(_0x4a1440(0x137))/0xa);if(_0x38d4a9===_0x11f921)break;else _0xe22af6['push'](_0xe22af6['shift']());}catch(_0x50a46e){_0xe22af6['push'](_0xe22af6['shift']());}}}(a191_0x5a35,0xa5262));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../commands/menu/shared/facts.js';function a191_0x5a35(){const _0x37135c=['9399456gbaLcC','isSafeInteger','visibility-update','Menu\x20path\x20selector\x20not\x20found:\x20','menu_verification_failed','Menu\x20','\x20skipped,\x20','get','5042525uOaBSi','update-recovery','Menu\x20visibility\x20update\x20completed:\x20','boolean','Selected\x20','warnings','cookie','expectedCount','Response\x20was\x20lost\x20and\x20menu\x20','recovered','paths','Requested\x20menu\x20visibility','set','\x20updated,\x20','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expected-count.','expectVisible','validation','\x20visibility\x20update\x20could\x20not\x20be\x20verified','update-menu-visibility','message','requestedVisible','expect-visible','224eBxXFb','byId','\x20menu(s);\x20skipped\x20','The\x20update\x20may\x20have\x20taken\x20effect;\x20inspect\x20the\x20latest\x20menu\x20facts\x20before\x20retrying.','join','update','menu\x20list','depth','targets','/smartapi/menu/update','flagMissing','rawFlags','menu','values','appCode','45XUiLzD','menu_selector_not_found','menu-ids','verify\x20menu\x20visibility\x20update','Use\x20--menu-ids\x20with\x20one\x20or\x20more\x20of:\x20','code','\x20must\x20be\x20true\x20or\x20false.','Response\x20was\x20lost\x20for\x20menu\x20','Updated\x20visibility\x20for\x20','2560996QrwHdI','Final\x20menu\x20visibility\x20readback\x20failed.','has','menus','type','menuIds','hash','string','length','\x20visible\x20did\x20not\x20match\x20the\x20requested\x20state.','failed','\x20menu(s),\x20expected\x20','--menu-ids\x20must\x20contain\x20positive\x20safe\x20integers.','false','true','childrenIds','update\x20visibility\x20for','Abort\x20unless\x20the\x20exact\x20number\x20of\x20selected\x20menus\x20matches','path','parentId','rabetbase\x20menu\x20list\x20--format\x20compress','update\x20menu\x20visibility','split','150186pKruRM','push','childrenCount','beforeById','num','Menu\x20visibility\x20update\x20could\x20not\x20be\x20verified\x20for\x20id(s):\x20','url','menu_expected_count_mismatch','before','9121550mhUoET','plannedActions','pageId','\x20changed\x20unexpectedly.','sort','menu_selector_ambiguous','Visibility\x20update\x20requests\x20completed\x20but\x20readback\x20could\x20not\x20confirm\x20the\x20requested\x20state','Menu\x20path\x20selector\x20matched\x20multiple\x20menus:\x20','str','\x20failed.','11156AEPfgC','number','stringify','menu_permission_denied','POST','149GnQxwJ','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20an\x20exact\x20current\x20path.','plan','updated','resources','Menu\x20id\x20selector(s)\x20not\x20found:\x20','pageType','Abort\x20unless\x20every\x20selected\x20menu\x20has\x20this\x20visibility','menu\x20visibility-update\x20requires\x20--menu-ids\x20or\x20--paths.','resourcesValid','menu_state_drift','expected-count','datasetCode','filter','modelType','verification','Would\x20update\x20visibility\x20for\x20','label','trim','\x20was\x20not\x20found\x20during\x20visibility\x20verification.','isArray','datasetId','visible','map','Exact\x20comma-separated\x20menu\x20IDs\x20to\x20update','1714425hoDGWr'];a191_0x5a35=function(){return _0x37135c;};return a191_0x5a35();}import{asVerificationError,assertVerified,describeMenuErrorCause,fetchMutationSnapshot,hasFlag,isMenuResponseLoss,mapMenuApiError,menuDryRunResult,menuError,menuFailure,mutationResult,recheckMutationSnapshot}from'../../commands/menu/shared/mutations.js';import{updateMenuEntity}from'../../commands/menu/shared/service.js';import{CliErrors}from'../../errors.js';const BACKEND=[{'method':a191_0x10de07(0x145),'path':'/smartapi/menu/update'}];export const menuVisibilityUpdate={'service':a191_0x10de07(0x10b),'command':a191_0x10de07(0x162),'description':'Set\x20exact\x20menus\x20visible\x20or\x20hidden\x20without\x20changing\x20their\x20routes\x20or\x20resources','risk':'write','structuredErrors':!![],'flags':[{'name':a191_0x10de07(0x110),'type':a191_0x10de07(0x11e),'description':a191_0x10de07(0x15e)},{'name':'paths','type':a191_0x10de07(0x11e),'description':'Exact\x20comma-separated\x20menu\x20paths\x20to\x20update'},{'name':'visible','type':a191_0x10de07(0x16b),'required':!![],'description':a191_0x10de07(0x173)},{'name':a191_0x10de07(0x17d),'type':'boolean','description':a191_0x10de07(0x14d)},{'name':a191_0x10de07(0x151),'type':a191_0x10de07(0x142),'description':a191_0x10de07(0x128)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x2fe318){parseInput(_0x2fe318);},async 'dryRun'(_0x4a2580){const _0x1aec92=a191_0x10de07,_0x136f2a=await buildPlan(_0x4a2580,!![]),_0x523349=_0x136f2a[_0x1aec92(0x148)]['plannedActions']?.[_0x1aec92(0x11f)]??0x0,_0x48c153=_0x136f2a[_0x1aec92(0x148)][_0x1aec92(0x107)][_0x1aec92(0x11f)]-_0x523349;return menuDryRunResult(_0x136f2a[_0x1aec92(0x148)],{'method':_0x1aec92(0x145),'url':_0x1aec92(0x108),'body':{'updates':_0x136f2a[_0x1aec92(0x148)][_0x1aec92(0x138)]?.[_0x1aec92(0x15d)](_0x5a5121=>_0x5a5121['body'])??[]},'description':_0x1aec92(0x156)+_0x523349+'\x20menu(s);\x20skip\x20'+_0x48c153+'\x20unchanged\x20menu(s).'});},async 'execute'(_0x5aa727){const _0x37a0b9=a191_0x10de07,_0x35a03c=await buildPlan(_0x5aa727,![]);await recheckMutationSnapshot(_0x5aa727,_0x35a03c[_0x37a0b9(0x148)],'update\x20menu\x20visibility');const _0x555c48=[],_0x5d573c=[],_0x223be9=[];for(const _0x463a31 of _0x35a03c[_0x37a0b9(0x148)][_0x37a0b9(0x107)]){if(_0x463a31[_0x37a0b9(0x136)]['visible']===_0x35a03c[_0x37a0b9(0x148)][_0x37a0b9(0x17c)]){_0x555c48[_0x37a0b9(0x12f)]({'id':_0x463a31['id'],'updated':![],'skipped':!![]});continue;}try{await updateMenuEntity(_0x5aa727[_0x37a0b9(0x10d)],_0x5aa727[_0x37a0b9(0x16e)],{'id':_0x463a31['id'],'visible':_0x35a03c[_0x37a0b9(0x148)]['requestedVisible']}),_0x555c48[_0x37a0b9(0x12f)]({'id':_0x463a31['id'],'updated':!![],'skipped':![]});}catch(_0x6ea2b1){const _0x541f8e=mapMenuApiError(_0x6ea2b1,_0x37a0b9(0x127),_0x463a31['id']);if(isMenuResponseLoss(_0x6ea2b1)&&_0x541f8e[_0x37a0b9(0x113)]!==_0x37a0b9(0x144)){_0x223be9[_0x37a0b9(0x12f)](_0x463a31['id']);continue;}_0x5d573c[_0x37a0b9(0x12f)]({'id':_0x463a31['id'],'stage':_0x37a0b9(0x104),'code':_0x541f8e['code'],'message':_0x541f8e['message']});}}let _0x49fdc0;try{_0x49fdc0=await fetchMenuSnapshot(_0x5aa727[_0x37a0b9(0x10d)],_0x5aa727[_0x37a0b9(0x16e)]);}catch(_0x3b79eb){const _0x25c599=describeMenuErrorCause(_0x3b79eb,_0x37a0b9(0x111)),_0x9a8ce9=_0x223be9[_0x37a0b9(0x15d)](_0x563bb1=>({'id':_0x563bb1,'stage':_0x37a0b9(0x169),'code':_0x37a0b9(0x164),'message':_0x37a0b9(0x115)+_0x563bb1+'\x20and\x20final\x20state\x20could\x20not\x20be\x20read.','requestedStateConfirmed':![],'recovered':![]})),_0x190620={'stage':'verification','code':_0x37a0b9(0x164),'message':_0x37a0b9(0x118),'targetIds':_0x35a03c['plan']['targets'][_0x37a0b9(0x15d)](_0x52eb1f=>_0x52eb1f['id']),'requestedStateConfirmed':![],..._0x25c599};throw menuFailure(asVerificationError(_0x3b79eb,_0x37a0b9(0x13d)),_0x35a03c[_0x37a0b9(0x148)],{'stage':_0x37a0b9(0x155),'succeeded':_0x555c48,'failedRecords':[..._0x5d573c,..._0x9a8ce9,_0x190620],'warnings':[_0x37a0b9(0x181)],'verification':{'status':_0x37a0b9(0x121),'recoveredCount':0x0,'lookupCommand':_0x37a0b9(0x12b)}});}const _0x372524=[];for(const _0x43d25a of _0x555c48){const _0x7bd1c4=Number(_0x43d25a['id']),_0x1315fb=_0x35a03c['beforeById']['get'](_0x7bd1c4),_0x27c999=_0x49fdc0[_0x37a0b9(0x17f)][_0x37a0b9(0x167)](_0x7bd1c4);try{verifyVisibilityUpdate(_0x1315fb,_0x27c999,_0x35a03c['plan'][_0x37a0b9(0x17c)]);}catch(_0x4497b7){const _0x29b51f=asVerificationError(_0x4497b7,_0x37a0b9(0x165)+_0x7bd1c4+_0x37a0b9(0x179));_0x372524[_0x37a0b9(0x12f)]({'id':_0x7bd1c4,'stage':_0x37a0b9(0x155),'code':_0x29b51f['code'],'message':_0x29b51f[_0x37a0b9(0x17b)],'requestedStateConfirmed':![]});}}for(const _0x48c050 of _0x223be9){const _0x252922=_0x35a03c[_0x37a0b9(0x131)][_0x37a0b9(0x167)](_0x48c050),_0x59bae0=_0x49fdc0[_0x37a0b9(0x17f)][_0x37a0b9(0x167)](_0x48c050);try{verifyVisibilityUpdate(_0x252922,_0x59bae0,_0x35a03c[_0x37a0b9(0x148)]['requestedVisible']),_0x555c48[_0x37a0b9(0x12f)]({'id':_0x48c050,'updated':!![],'skipped':![],'recovered':!![]});}catch(_0x4699f7){const _0x169f0c=asVerificationError(_0x4699f7,_0x37a0b9(0x170)+_0x48c050+'\x20visibility\x20could\x20not\x20be\x20verified\x20safely');_0x372524[_0x37a0b9(0x12f)]({'id':_0x48c050,'stage':_0x37a0b9(0x169),'code':_0x169f0c['code'],'message':_0x169f0c[_0x37a0b9(0x17b)],'requestedStateConfirmed':![],'recovered':![]});}}if(_0x372524['length']>0x0){const _0x41f3b2=_0x372524[_0x37a0b9(0x15d)](_0x405ea8=>Number(_0x405ea8['id'])),_0x3bbd4d=_0x555c48['filter'](_0x4f2448=>_0x4f2448[_0x37a0b9(0x171)]===!![])[_0x37a0b9(0x11f)],_0x162f9d=menuError(_0x37a0b9(0x164),_0x37a0b9(0x133)+_0x41f3b2['join'](',\x20')+'.','Inspect\x20current\x20menu\x20facts\x20before\x20retrying\x20any\x20target.');throw menuFailure(_0x162f9d,_0x35a03c[_0x37a0b9(0x148)],{'stage':_0x37a0b9(0x155),'succeeded':_0x555c48,'failedRecords':[..._0x5d573c,..._0x372524],'warnings':['One\x20or\x20more\x20updates\x20may\x20have\x20changed\x20fields\x20outside\x20visibility;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.'],'verification':{'status':_0x37a0b9(0x121),..._0x41f3b2[_0x37a0b9(0x11f)]===0x1?{'targetId':_0x41f3b2[0x0]}:{'targetIds':_0x41f3b2},'recoveredCount':_0x3bbd4d,'lookupCommand':_0x37a0b9(0x12b)}});}const _0x4e5b0f=_0x555c48[_0x37a0b9(0x153)](_0x4b4e76=>_0x4b4e76[_0x37a0b9(0x149)]===!![])[_0x37a0b9(0x11f)],_0x2a5a9e=_0x555c48[_0x37a0b9(0x11f)]-_0x4e5b0f,_0x491b8d={..._0x35a03c['plan'],'succeeded':_0x555c48,'failed':_0x5d573c,'warnings':_0x5d573c[_0x37a0b9(0x11f)]>0x0?[..._0x35a03c[_0x37a0b9(0x148)][_0x37a0b9(0x16d)],'Failed\x20update\x20requests\x20were\x20not\x20retried;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.']:_0x35a03c['plan'][_0x37a0b9(0x16d)],'verification':{'checkedBy':_0x37a0b9(0x105),'snapshotHash':_0x49fdc0[_0x37a0b9(0x11d)],'matchesRequestedState':_0x5d573c[_0x37a0b9(0x11f)]===0x0,'recoveredCount':_0x223be9[_0x37a0b9(0x11f)]}};return{'ok':_0x5d573c[_0x37a0b9(0x11f)]===0x0,'data':_0x491b8d,'message':_0x5d573c[_0x37a0b9(0x11f)]===0x0?_0x37a0b9(0x116)+_0x4e5b0f+_0x37a0b9(0x180)+_0x2a5a9e+'\x20unchanged\x20menu(s).':_0x37a0b9(0x16a)+_0x4e5b0f+_0x37a0b9(0x175)+_0x2a5a9e+_0x37a0b9(0x166)+_0x5d573c[_0x37a0b9(0x11f)]+_0x37a0b9(0x140)};}};function parseInput(_0x39ec8f){const _0x339647=a191_0x10de07,_0x2d39d9=parseMenuIds(_0x39ec8f[_0x339647(0x13f)](_0x339647(0x110))),_0x557bf4=parseCsv(_0x39ec8f[_0x339647(0x13f)](_0x339647(0x172)));if(_0x2d39d9['length']===0x0&&_0x557bf4[_0x339647(0x11f)]===0x0)throw CliErrors[_0x339647(0x178)](_0x339647(0x14e));const _0x9fa5f0=parseBooleanFlag(_0x39ec8f,_0x339647(0x15c),!![]),_0x1c5709=parseBooleanFlag(_0x39ec8f,_0x339647(0x17d),![]);let _0x3a48d8;if(hasFlag(_0x39ec8f,_0x339647(0x151))){_0x3a48d8=_0x39ec8f[_0x339647(0x132)](_0x339647(0x151));if(!Number[_0x339647(0x161)](_0x3a48d8)||_0x3a48d8<0x0)throw CliErrors[_0x339647(0x178)]('--expected-count\x20must\x20be\x20a\x20non-negative\x20integer.');}return{'menuIds':_0x2d39d9,'paths':_0x557bf4,'visible':_0x9fa5f0,'expectVisible':_0x1c5709,'expectedCount':_0x3a48d8};}async function buildPlan(_0xeba4d9,_0x1ed861){const _0x549c91=a191_0x10de07,_0x268216=parseInput(_0xeba4d9),_0x4a23f4=await fetchMutationSnapshot(_0xeba4d9,_0x549c91(0x12c)),_0x3b7c67=selectTargets(_0x4a23f4[_0x549c91(0x11a)],_0x268216['menuIds'],_0x268216[_0x549c91(0x172)]);if(_0x268216['expectedCount']!==undefined&&_0x3b7c67[_0x549c91(0x11f)]!==_0x268216['expectedCount'])throw menuError(_0x549c91(0x135),_0x549c91(0x16c)+_0x3b7c67[_0x549c91(0x11f)]+_0x549c91(0x122)+_0x268216[_0x549c91(0x16f)]+'.',_0x549c91(0x176));if(_0x268216[_0x549c91(0x177)]!==undefined){const _0x56d3e8=_0x3b7c67[_0x549c91(0x153)](_0x4dbb8e=>_0x4dbb8e[_0x549c91(0x15c)]!==_0x268216[_0x549c91(0x177)]);if(_0x56d3e8[_0x549c91(0x11f)]>0x0)throw menuError(_0x549c91(0x150),'Selected\x20menu\x20visibility\x20changed\x20for\x20id(s):\x20'+_0x56d3e8['map'](_0x3d0f6f=>_0x3d0f6f['id'])[_0x549c91(0x103)](',\x20')+'.','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expect-visible.');}const _0x30907b=_0x3b7c67[_0x549c91(0x15d)](_0x121bda=>({'id':_0x121bda['id'],'label':_0x121bda['label'],'path':_0x121bda[_0x549c91(0x129)],'before':{'visible':_0x121bda['visible']},'after':{'visible':_0x268216[_0x549c91(0x15c)]}})),_0x2be6d4=_0x30907b[_0x549c91(0x153)](_0x13938d=>_0x13938d[_0x549c91(0x136)][_0x549c91(0x15c)]!==_0x268216[_0x549c91(0x15c)])[_0x549c91(0x15d)](_0x169015=>({'stage':_0x549c91(0x17a),'method':_0x549c91(0x145),'path':'/smartapi/menu/update','body':{'appCode':_0xeba4d9['appCode'],'id':_0x169015['id'],'visible':_0x268216[_0x549c91(0x15c)]}})),_0x4d41e2=mutationResult({'operation':_0x549c91(0x162),'selector':{'menuIds':_0x268216[_0x549c91(0x11c)],'paths':_0x268216['paths']},'before':{'menus':_0x3b7c67['map'](_0x55d202=>({'id':_0x55d202['id'],'path':_0x55d202['path'],'visible':_0x55d202['visible']}))},'after':{'menus':_0x3b7c67[_0x549c91(0x15d)](_0x5e1c5a=>({'id':_0x5e1c5a['id'],'path':_0x5e1c5a[_0x549c91(0x129)],'visible':_0x268216[_0x549c91(0x15c)]}))},'dryRun':_0x1ed861,'backend':[...BACKEND],'plannedActions':_0x2be6d4,'snapshotHash':_0x4a23f4[_0x549c91(0x11d)],'warnings':_0x2be6d4[_0x549c91(0x11f)]===0x0?['Every\x20selected\x20menu\x20already\x20has\x20the\x20requested\x20visibility;\x20no\x20write\x20is\x20needed.']:[]});return{'plan':{..._0x4d41e2,'requestedVisible':_0x268216[_0x549c91(0x15c)],'targets':_0x30907b},'beforeById':new Map(_0x3b7c67[_0x549c91(0x15d)](_0x6ae16=>[_0x6ae16['id'],_0x6ae16]))};}function a191_0x5d3c(_0x1f7cb6,_0x5a6efa){_0x1f7cb6=_0x1f7cb6-0x103;const _0x5a35aa=a191_0x5a35();let _0x5d3cef=_0x5a35aa[_0x1f7cb6];return _0x5d3cef;}function selectTargets(_0x47b866,_0x380f62,_0x2db266){const _0x590009=a191_0x10de07,_0xed68cb=new Map(_0x47b866['map'](_0x368a5d=>[_0x368a5d['id'],_0x368a5d])),_0x2d4856=new Map(),_0x2b98bf=_0x380f62[_0x590009(0x153)](_0x4600af=>!_0xed68cb[_0x590009(0x119)](_0x4600af));if(_0x2b98bf[_0x590009(0x11f)]>0x0)throw menuError(_0x590009(0x10f),_0x590009(0x14b)+_0x2b98bf[_0x590009(0x103)](',\x20')+'.','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20exact\x20current\x20ids.');for(const _0x1651ae of _0x380f62){_0x2d4856[_0x590009(0x174)](_0x1651ae,_0xed68cb[_0x590009(0x167)](_0x1651ae));}for(const _0x6459a0 of _0x2db266){const _0x20c294=_0x47b866[_0x590009(0x153)](_0x241cd6=>_0x241cd6[_0x590009(0x129)]===_0x6459a0);if(_0x20c294['length']===0x0)throw menuError(_0x590009(0x10f),_0x590009(0x163)+JSON[_0x590009(0x143)](_0x6459a0)+'.',_0x590009(0x147));if(_0x20c294['length']>0x1)throw menuError(_0x590009(0x13c),_0x590009(0x13e)+JSON[_0x590009(0x143)](_0x6459a0)+'.',_0x590009(0x112)+_0x20c294[_0x590009(0x15d)](_0x1385d2=>_0x1385d2['id'])[_0x590009(0x103)](',\x20')+'.');const _0x1f16b7=_0x20c294[0x0];_0x2d4856['set'](_0x1f16b7['id'],_0x1f16b7);}return[..._0x2d4856[_0x590009(0x10c)]()];}function parseMenuIds(_0x52363a){const _0x4e850e=a191_0x10de07,_0x37c182=parseCsv(_0x52363a),_0x2282af=_0x37c182[_0x4e850e(0x15d)](Number);if(_0x2282af['some'](_0x1c81d1=>!Number[_0x4e850e(0x161)](_0x1c81d1)||_0x1c81d1<=0x0))throw CliErrors[_0x4e850e(0x178)](_0x4e850e(0x123));return[...new Set(_0x2282af)];}function parseCsv(_0x2bfc1c){const _0xdd7f93=a191_0x10de07;return[...new Set(_0x2bfc1c[_0xdd7f93(0x12d)](',')[_0xdd7f93(0x15d)](_0x594898=>_0x594898[_0xdd7f93(0x158)]())[_0xdd7f93(0x153)](Boolean))];}function parseBooleanFlag(_0x24e803,_0x262690,_0x205537){const _0x4a7500=a191_0x10de07;if(!hasFlag(_0x24e803,_0x262690)){if(_0x205537)throw CliErrors[_0x4a7500(0x109)](_0x262690);return undefined;}const _0x16b050=_0x24e803[_0x4a7500(0x10a)][_0x262690];if(_0x16b050===!![]||_0x16b050===![])return _0x16b050;if(_0x16b050===_0x4a7500(0x125))return!![];if(_0x16b050===_0x4a7500(0x124))return![];throw CliErrors['validation']('--'+_0x262690+_0x4a7500(0x114));}function verifyVisibilityUpdate(_0x1bc08c,_0x220106,_0x119276){const _0x4c0793=a191_0x10de07;assertVerified(!!_0x220106,_0x4c0793(0x165)+_0x1bc08c['id']+_0x4c0793(0x159)),assertVerified(_0x220106[_0x4c0793(0x15c)]===_0x119276,_0x4c0793(0x165)+_0x1bc08c['id']+_0x4c0793(0x120));const _0x177a78=[['id',_0x220106['id'],_0x1bc08c['id']],[_0x4c0793(0x12a),_0x220106['parentId'],_0x1bc08c[_0x4c0793(0x12a)]],[_0x4c0793(0x106),_0x220106[_0x4c0793(0x106)],_0x1bc08c[_0x4c0793(0x106)]],[_0x4c0793(0x157),_0x220106[_0x4c0793(0x157)],_0x1bc08c[_0x4c0793(0x157)]],[_0x4c0793(0x129),_0x220106[_0x4c0793(0x129)],_0x1bc08c[_0x4c0793(0x129)]],[_0x4c0793(0x134),_0x220106[_0x4c0793(0x134)],_0x1bc08c[_0x4c0793(0x134)]],['type',_0x220106[_0x4c0793(0x11b)],_0x1bc08c[_0x4c0793(0x11b)]],['sort',_0x220106[_0x4c0793(0x13b)],_0x1bc08c[_0x4c0793(0x13b)]],[_0x4c0793(0x14a),_0x220106['resources'],_0x1bc08c[_0x4c0793(0x14a)]],['resourcesValid',_0x220106[_0x4c0793(0x14f)],_0x1bc08c[_0x4c0793(0x14f)]],[_0x4c0793(0x126),_0x220106['childrenIds'],_0x1bc08c[_0x4c0793(0x126)]],[_0x4c0793(0x130),_0x220106[_0x4c0793(0x130)],_0x1bc08c[_0x4c0793(0x130)]],[_0x4c0793(0x139),_0x220106['pageId'],_0x1bc08c[_0x4c0793(0x139)]],[_0x4c0793(0x14c),_0x220106[_0x4c0793(0x14c)],_0x1bc08c[_0x4c0793(0x14c)]],[_0x4c0793(0x154),_0x220106[_0x4c0793(0x154)],_0x1bc08c[_0x4c0793(0x154)]],[_0x4c0793(0x15b),_0x220106[_0x4c0793(0x15b)],_0x1bc08c[_0x4c0793(0x15b)]],[_0x4c0793(0x152),_0x220106[_0x4c0793(0x152)],_0x1bc08c['datasetCode']]];for(const [_0x242abe,_0x354dfa,_0x3e9edb]of _0x177a78){assertVerified(sameValue(_0x354dfa,_0x3e9edb),_0x4c0793(0x165)+_0x1bc08c['id']+'\x20'+_0x242abe+_0x4c0793(0x13a));}}function sameValue(_0x3bae96,_0x1cfdf5){const _0x12dc85=a191_0x10de07;if(Array[_0x12dc85(0x15a)](_0x3bae96)||Array[_0x12dc85(0x15a)](_0x1cfdf5))return JSON[_0x12dc85(0x143)](_0x3bae96)===JSON[_0x12dc85(0x143)](_0x1cfdf5);return _0x3bae96===_0x1cfdf5;}
@@ -1 +1 @@
1
- const a192_0x3ad2de=a192_0x1b42;(function(_0x151303,_0x6c794){const _0x3f0010=a192_0x1b42,_0x6d9768=_0x151303();while(!![]){try{const _0x522ba2=parseInt(_0x3f0010(0xec))/0x1*(parseInt(_0x3f0010(0xdc))/0x2)+-parseInt(_0x3f0010(0xd9))/0x3+parseInt(_0x3f0010(0xeb))/0x4+-parseInt(_0x3f0010(0xed))/0x5*(-parseInt(_0x3f0010(0xcf))/0x6)+-parseInt(_0x3f0010(0xd1))/0x7+-parseInt(_0x3f0010(0xea))/0x8+parseInt(_0x3f0010(0xe7))/0x9*(parseInt(_0x3f0010(0xdb))/0xa);if(_0x522ba2===_0x6c794)break;else _0x6d9768['push'](_0x6d9768['shift']());}catch(_0x115b98){_0x6d9768['push'](_0x6d9768['shift']());}}}(a192_0x57fa,0x2845e));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='/notification/channel-config/create';function a192_0x57fa(){const _0x299a5f=['appCode','notification_config_create_outcome_unknown','24eGnghb','verified','459116ZgwshF','Create\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20source',';\x20no\x20automatic\x20retry\x20was\x20attempted.','readTimeout','document','POST','channelConfig','Notification\x20config\x20create\x20outcome\x20is\x20unknown\x20because\x20no\x20server\x20ID\x20was\x20received.','392094AighkN','Inspect\x20with\x20','20ZBDePV','2RxAcqt',';\x20do\x20not\x20resubmit.','mutation','configName','connectTimeout','channelType','notification','description',';\x20do\x20not\x20resubmit\x20automatically.','Created\x20notification\x20config\x20','config-create','209781KMiVbP','Notification\x20config\x20create\x20returned\x20no\x20usable\x20server\x20ID.','isSafeInteger','1503600iolowl','278804viJfXN','103479vQGWYf','411745SqamUW','input','create'];a192_0x57fa=function(){return _0x299a5f;};return a192_0x57fa();}function a192_0x1b42(_0x4a6a3f,_0x28c4b1){_0x4a6a3f=_0x4a6a3f-0xcc;const _0x57fa0b=a192_0x57fa();let _0x1b421d=_0x57fa0b[_0x4a6a3f];return _0x1b421d;}async function prepareCreate(_0x47615a){const _0x135f89=a192_0x1b42,_0x29194a=await readNotificationDocument(_0x47615a,_0x135f89(0xcc)),_0x52669e=createMutationInput(_0x47615a['appCode'],_0x29194a);return{'document':_0x29194a,'input':_0x52669e,'planned':projectNotificationConfig({'appCode':_0x47615a[_0x135f89(0xcd)],'configName':_0x29194a['configName'],'channelType':_0x29194a[_0x135f89(0xe1)],'endpointUrl':_0x29194a['endpointUrl'],'channelConfig':_0x29194a[_0x135f89(0xd7)],'description':_0x29194a[_0x135f89(0xe3)],'connectTimeout':_0x29194a[_0x135f89(0xe0)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,'readTimeout':_0x29194a[_0x135f89(0xd4)]??DEFAULT_NOTIFICATION_READ_TIMEOUT})};}export const notificationConfigCreate={'service':a192_0x3ad2de(0xe2),'command':a192_0x3ad2de(0xe6),'description':a192_0x3ad2de(0xd2),'risk':'write','requiresAppCode':!![],'structuredErrors':!![],'flags':[...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x2c2ed4){assertSingleNotificationSource(_0x2c2ed4);},async 'dryRun'(_0x312652){const _0x577fba=a192_0x3ad2de,_0x1940f7=await prepareCreate(_0x312652),_0x1e1979=notificationLookupCommand(_0x312652[_0x577fba(0xcd)],_0x1940f7[_0x577fba(0xd5)][_0x577fba(0xe1)]);return asDryRunResult({'operation':_0x577fba(0xcc),'selector':{'appCode':_0x312652[_0x577fba(0xcd)],'configName':_0x1940f7['document'][_0x577fba(0xdf)],'channelType':_0x1940f7[_0x577fba(0xd5)]['channelType']},'before':null,'after':_0x1940f7['planned'],'dryRun':!![],'backend':{'method':_0x577fba(0xd6),'path':CREATE_PATH},'warnings':[],'verification':{'status':'planned','lookupCommand':_0x1e1979}},{'method':_0x577fba(0xd6),'url':CREATE_PATH});},async 'execute'(_0x2722a3){const _0x200417=a192_0x3ad2de,_0x2b5ac8=await prepareCreate(_0x2722a3),_0x275e23=notificationLookupCommand(_0x2722a3['appCode'],_0x2b5ac8[_0x200417(0xd5)]['channelType']);let _0x1f184b;try{_0x1f184b=await createNotificationChannelConfig(_0x2b5ac8[_0x200417(0xee)]);}catch(_0x4fecea){if(isPlatformTransportFailure(_0x4fecea))throw notificationError(_0x200417(0xce),_0x200417(0xd8),_0x200417(0xda)+_0x275e23+_0x200417(0xdd));throw safeApiFailure(_0x200417(0xcc),_0x200417(0xde),'Inspect\x20with\x20'+_0x275e23+_0x200417(0xd3));}if(!Number[_0x200417(0xe9)](_0x1f184b)||_0x1f184b<=0x0)throw notificationError('notification_config_create_outcome_unknown',_0x200417(0xe8),_0x200417(0xda)+_0x275e23+';\x20do\x20not\x20resubmit.');let _0x449b82;try{const _0x54f0b8=await getNotificationChannelConfig(_0x1f184b,_0x2722a3['appCode']);_0x449b82=normalizeExactNotificationConfig(_0x54f0b8,_0x1f184b,_0x2722a3['appCode']);}catch{throw safeApiFailure(_0x200417(0xcc),'verification',_0x200417(0xda)+_0x275e23+_0x200417(0xe4));}return{'ok':!![],'data':{'operation':_0x200417(0xcc),'selector':{'appCode':_0x449b82[_0x200417(0xcd)],'id':_0x449b82['id'],'configCode':_0x449b82['configCode'],'configName':_0x449b82[_0x200417(0xdf)],'channelType':_0x449b82[_0x200417(0xe1)]},'before':null,'after':projectNotificationConfig(_0x449b82),'dryRun':![],'backend':{'method':_0x200417(0xd6),'path':CREATE_PATH},'warnings':[],'verification':{'status':_0x200417(0xd0),'lookupCommand':_0x275e23}},'message':_0x200417(0xe5)+_0x449b82['id']};}};
1
+ const a192_0x23765b=a192_0x29f7;(function(_0x1d2799,_0x3b3839){const _0x35f3f4=a192_0x29f7,_0x34d52a=_0x1d2799();while(!![]){try{const _0x2f5c5f=-parseInt(_0x35f3f4(0x179))/0x1+-parseInt(_0x35f3f4(0x166))/0x2+-parseInt(_0x35f3f4(0x16a))/0x3*(parseInt(_0x35f3f4(0x172))/0x4)+-parseInt(_0x35f3f4(0x177))/0x5*(-parseInt(_0x35f3f4(0x17b))/0x6)+-parseInt(_0x35f3f4(0x163))/0x7+parseInt(_0x35f3f4(0x16c))/0x8*(parseInt(_0x35f3f4(0x165))/0x9)+parseInt(_0x35f3f4(0x15e))/0xa;if(_0x2f5c5f===_0x3b3839)break;else _0x34d52a['push'](_0x34d52a['shift']());}catch(_0x2f1dde){_0x34d52a['push'](_0x34d52a['shift']());}}}(a192_0x421a,0x2a525));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=a192_0x23765b(0x16f);async function prepareCreate(_0x7b8577){const _0x9ee4a0=a192_0x23765b,_0x1cd0cc=await readNotificationDocument(_0x7b8577,'create'),_0x207852=createMutationInput(_0x7b8577['appCode'],_0x1cd0cc);return{'document':_0x1cd0cc,'input':_0x207852,'planned':projectNotificationConfig({'appCode':_0x7b8577[_0x9ee4a0(0x176)],'configName':_0x1cd0cc[_0x9ee4a0(0x162)],'channelType':_0x1cd0cc[_0x9ee4a0(0x16e)],'endpointUrl':_0x1cd0cc[_0x9ee4a0(0x168)],'channelConfig':_0x1cd0cc['channelConfig'],'description':_0x1cd0cc['description'],'connectTimeout':_0x1cd0cc[_0x9ee4a0(0x171)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,'readTimeout':_0x1cd0cc['readTimeout']??DEFAULT_NOTIFICATION_READ_TIMEOUT})};}export const notificationConfigCreate={'service':a192_0x23765b(0x167),'command':a192_0x23765b(0x160),'description':a192_0x23765b(0x170),'risk':a192_0x23765b(0x15d),'requiresAppCode':!![],'structuredErrors':!![],'flags':[...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x359319){assertSingleNotificationSource(_0x359319);},async 'dryRun'(_0x3e6b97){const _0xcd3226=a192_0x23765b,_0x4e8af8=await prepareCreate(_0x3e6b97),_0x3d1f8d=notificationLookupCommand(_0x3e6b97[_0xcd3226(0x176)],_0x4e8af8['document']['channelType']);return asDryRunResult({'operation':_0xcd3226(0x169),'selector':{'appCode':_0x3e6b97['appCode'],'configName':_0x4e8af8['document'][_0xcd3226(0x162)],'channelType':_0x4e8af8[_0xcd3226(0x15b)][_0xcd3226(0x16e)]},'before':null,'after':_0x4e8af8[_0xcd3226(0x175)],'dryRun':!![],'backend':{'method':_0xcd3226(0x16b),'path':CREATE_PATH},'warnings':[],'verification':{'status':_0xcd3226(0x175),'lookupCommand':_0x3d1f8d}},{'method':'POST','url':CREATE_PATH});},async 'execute'(_0x543334){const _0x2159a1=a192_0x23765b,_0x4bfa1d=await prepareCreate(_0x543334),_0x1c41f4=notificationLookupCommand(_0x543334[_0x2159a1(0x176)],_0x4bfa1d[_0x2159a1(0x15b)][_0x2159a1(0x16e)]);let _0x417e96;try{_0x417e96=await createNotificationChannelConfig(_0x4bfa1d[_0x2159a1(0x174)]);}catch(_0x3226ab){if(isPlatformTransportFailure(_0x3226ab))throw notificationError(_0x2159a1(0x15a),_0x2159a1(0x178),_0x2159a1(0x173)+_0x1c41f4+';\x20do\x20not\x20resubmit.');throw safeApiFailure(_0x2159a1(0x169),_0x2159a1(0x16d),_0x2159a1(0x173)+_0x1c41f4+_0x2159a1(0x15f));}if(!Number['isSafeInteger'](_0x417e96)||_0x417e96<=0x0)throw notificationError(_0x2159a1(0x15a),'Notification\x20config\x20create\x20returned\x20no\x20usable\x20server\x20ID.','Inspect\x20with\x20'+_0x1c41f4+_0x2159a1(0x15c));let _0x1a7c89;try{const _0x2f9ed6=await getNotificationChannelConfig(_0x417e96,_0x543334[_0x2159a1(0x176)]);_0x1a7c89=normalizeExactNotificationConfig(_0x2f9ed6,_0x417e96,_0x543334[_0x2159a1(0x176)]);}catch{throw safeApiFailure(_0x2159a1(0x169),_0x2159a1(0x17a),'Inspect\x20with\x20'+_0x1c41f4+_0x2159a1(0x164));}return{'ok':!![],'data':{'operation':_0x2159a1(0x169),'selector':{'appCode':_0x1a7c89[_0x2159a1(0x176)],'id':_0x1a7c89['id'],'configCode':_0x1a7c89['configCode'],'configName':_0x1a7c89[_0x2159a1(0x162)],'channelType':_0x1a7c89[_0x2159a1(0x16e)]},'before':null,'after':projectNotificationConfig(_0x1a7c89),'dryRun':![],'backend':{'method':'POST','path':CREATE_PATH},'warnings':[],'verification':{'status':_0x2159a1(0x161),'lookupCommand':_0x1c41f4}},'message':_0x2159a1(0x159)+_0x1a7c89['id']};}};function a192_0x29f7(_0x29505d,_0x3630d1){_0x29505d=_0x29505d-0x159;const _0x421af5=a192_0x421a();let _0x29f72f=_0x421af5[_0x29505d];return _0x29f72f;}function a192_0x421a(){const _0x97c148=['config-create','verified','configName','1854167exqPnA',';\x20do\x20not\x20resubmit\x20automatically.','567441lXPkKV','422500BdmJRY','notification','endpointUrl','create','171489VEQSuL','POST','16zPqeil','mutation','channelType','/notification/channel-config/create','Create\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20source','connectTimeout','8vqWCCW','Inspect\x20with\x20','input','planned','appCode','49795OUVVbk','Notification\x20config\x20create\x20outcome\x20is\x20unknown\x20because\x20no\x20server\x20ID\x20was\x20received.','39494CmofvG','verification','30ndzYLb','Created\x20notification\x20config\x20','notification_config_create_outcome_unknown','document',';\x20do\x20not\x20resubmit.','write','6274070FGTxEB',';\x20no\x20automatic\x20retry\x20was\x20attempted.'];a192_0x421a=function(){return _0x97c148;};return a192_0x421a();}
@@ -1 +1 @@
1
- const a193_0xa742f2=a193_0x4aa8;function a193_0x4aa8(_0x5bdfbe,_0x12e041){_0x5bdfbe=_0x5bdfbe-0x1b9;const _0xc97124=a193_0xc971();let _0x4aa833=_0xc97124[_0x5bdfbe];return _0x4aa833;}(function(_0x78be62,_0x5682bc){const _0x4c0332=a193_0x4aa8,_0x378517=_0x78be62();while(!![]){try{const _0x2deae5=parseInt(_0x4c0332(0x1d6))/0x1*(parseInt(_0x4c0332(0x1d7))/0x2)+-parseInt(_0x4c0332(0x1d2))/0x3+-parseInt(_0x4c0332(0x1be))/0x4*(-parseInt(_0x4c0332(0x1c3))/0x5)+parseInt(_0x4c0332(0x1b9))/0x6*(parseInt(_0x4c0332(0x1d1))/0x7)+-parseInt(_0x4c0332(0x1bd))/0x8*(-parseInt(_0x4c0332(0x1c4))/0x9)+-parseInt(_0x4c0332(0x1bc))/0xa+parseInt(_0x4c0332(0x1c9))/0xb*(-parseInt(_0x4c0332(0x1c8))/0xc);if(_0x2deae5===_0x5682bc)break;else _0x378517['push'](_0x378517['shift']());}catch(_0x41bb1b){_0x378517['push'](_0x378517['shift']());}}}(a193_0xc971,0x886de));import{asDryRunResult}from'../../commands/common/dry-run.js';import{deleteNotificationChannelConfig,isPlatformTransportFailure,listNotificationChannelConfigs}from'../../core/api-client.js';import{notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,projectNotificationConfig,readNotificationId,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure,validateNotificationDeleteReadback}from'../../commands/notification/shared.js';const DELETE_PATH=a193_0xa742f2(0x1c7),REFERENCE_WARNING=a193_0xa742f2(0x1c5);async function prepareDelete(_0x3795d7){const _0x4cdf5d=a193_0xa742f2,_0x427f97=readNotificationId(_0x3795d7),_0x556cf7=await requireExactNotificationConfig(_0x3795d7['appCode'],_0x427f97,_0x4cdf5d(0x1ba));return{'id':_0x427f97,'before':_0x556cf7};}export const notificationConfigDelete={'service':a193_0xa742f2(0x1ca),'command':a193_0xa742f2(0x1cd),'description':a193_0xa742f2(0x1d4),'risk':'high-risk-write','requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,NOTIFICATION_APP_FLAG],async 'validate'(_0xf844d2){readNotificationId(_0xf844d2),requireNotificationExplicitYes(_0xf844d2);},async 'dryRun'(_0x1a4d6c){const _0x594b17=a193_0xa742f2,_0x1f223a=await prepareDelete(_0x1a4d6c),_0x2fc4e3=notificationLookupCommand(_0x1a4d6c['appCode'],_0x1f223a[_0x594b17(0x1d8)]['channelType']);return asDryRunResult({'operation':_0x594b17(0x1ba),'selector':notificationSelector(_0x1f223a[_0x594b17(0x1d8)]),'before':projectNotificationConfig(_0x1f223a[_0x594b17(0x1d8)]),'after':null,'dryRun':!![],'backend':{'method':_0x594b17(0x1c1),'path':DELETE_PATH},'warnings':[REFERENCE_WARNING],'verification':{'status':'planned','lookupCommand':_0x2fc4e3}},{'method':'POST','url':DELETE_PATH});},async 'execute'(_0x4a0ba2){const _0x12784e=a193_0xa742f2;requireNotificationExplicitYes(_0x4a0ba2);const _0x426ca=await prepareDelete(_0x4a0ba2),_0x5e379e=notificationLookupCommand(_0x4a0ba2[_0x12784e(0x1cc)],_0x426ca[_0x12784e(0x1d8)]['channelType']);let _0x1fa38c=![];try{await deleteNotificationChannelConfig(_0x426ca['id'],_0x4a0ba2['appCode']);}catch(_0x2d59c6){if(!isPlatformTransportFailure(_0x2d59c6))throw safeApiFailure(_0x12784e(0x1ba),'mutation',_0x12784e(0x1d0)+_0x5e379e+_0x12784e(0x1bb));_0x1fa38c=!![];}let _0x2c57d3;try{_0x2c57d3=await listNotificationChannelConfigs(_0x4a0ba2[_0x12784e(0x1cc)],_0x426ca['before']['channelType']),validateNotificationDeleteReadback(_0x2c57d3,_0x4a0ba2[_0x12784e(0x1cc)],_0x426ca[_0x12784e(0x1d8)][_0x12784e(0x1c6)]);}catch{throw notificationError(_0x1fa38c?'notification_config_delete_outcome_unknown':'notification_config_delete_verification_unavailable',_0x12784e(0x1c2)+_0x426ca['id']+'\x20delete\x20could\x20not\x20be\x20verified.','Inspect\x20with\x20'+_0x5e379e+_0x12784e(0x1cf));}if(_0x2c57d3['some'](_0x1061d0=>_0x1061d0['id']===_0x426ca['id']))throw notificationError(_0x1fa38c?_0x12784e(0x1d3):'notification_config_delete_verification_failed','Notification\x20config\x20'+_0x426ca['id']+_0x12784e(0x1c0),_0x12784e(0x1d0)+_0x5e379e+_0x12784e(0x1cf));const _0x4e13dc=[REFERENCE_WARNING];return _0x1fa38c&&_0x4e13dc[_0x12784e(0x1d5)](_0x12784e(0x1ce)),{'ok':!![],'data':{'operation':_0x12784e(0x1ba),'selector':notificationSelector(_0x426ca[_0x12784e(0x1d8)]),'before':projectNotificationConfig(_0x426ca[_0x12784e(0x1d8)]),'after':null,'dryRun':![],'backend':{'method':_0x12784e(0x1c1),'path':DELETE_PATH},'warnings':_0x4e13dc,'verification':{'status':_0x12784e(0x1cb),'absenceConfirmed':!![],'recoveredAfterUnknownResponse':_0x1fa38c,'lookupCommand':_0x5e379e}},'message':_0x12784e(0x1bf)+_0x426ca['id']};}};function a193_0xc971(){const _0x349d81=['appCode','config-delete','Delete\x20response\x20was\x20unavailable;\x20list\x20readback\x20proved\x20ID\x20absence\x20without\x20resubmitting.',';\x20do\x20not\x20resubmit\x20automatically.','Inspect\x20with\x20','747775EqgwBU','1067148gmcqoD','notification_config_delete_outcome_unknown','Delete\x20an\x20app-level\x20notification\x20config\x20after\x20exact\x20preflight','unshift','276725Qkesvo','8uXfvdY','before','12DGHDuU','delete',';\x20no\x20automatic\x20retry\x20was\x20attempted.','7896050ymWFXx','858704RhkJBf','4TPEPaP','Deleted\x20notification\x20config\x20','\x20remains\x20present\x20after\x20delete.','POST','Notification\x20config\x20','788845KhXgMD','27cAIomY','Deleting\x20this\x20app-level\x20config\x20may\x20make\x20dataset-level\x20channels\x20that\x20reference\x20it\x20unavailable;\x20dataset\x20references\x20were\x20not\x20verified\x20by\x20the\x20CLI.','channelType','/notification/channel-config/delete','24yqAVfO','529089WGwAKq','notification','verified'];a193_0xc971=function(){return _0x349d81;};return a193_0xc971();}
1
+ const a193_0x1de247=a193_0x387f;(function(_0x474e7f,_0x4db15a){const _0x4f01de=a193_0x387f,_0xba42eb=_0x474e7f();while(!![]){try{const _0x495040=parseInt(_0x4f01de(0xc7))/0x1*(-parseInt(_0x4f01de(0xd2))/0x2)+parseInt(_0x4f01de(0xc8))/0x3*(-parseInt(_0x4f01de(0xd8))/0x4)+parseInt(_0x4f01de(0xdd))/0x5*(-parseInt(_0x4f01de(0xca))/0x6)+-parseInt(_0x4f01de(0xd6))/0x7+-parseInt(_0x4f01de(0xcc))/0x8+parseInt(_0x4f01de(0xc3))/0x9*(-parseInt(_0x4f01de(0xc1))/0xa)+-parseInt(_0x4f01de(0xda))/0xb*(-parseInt(_0x4f01de(0xd5))/0xc);if(_0x495040===_0x4db15a)break;else _0xba42eb['push'](_0xba42eb['shift']());}catch(_0x11aa26){_0xba42eb['push'](_0xba42eb['shift']());}}}(a193_0x3b5c,0x2f7df));import{asDryRunResult}from'../../commands/common/dry-run.js';import{deleteNotificationChannelConfig,isPlatformTransportFailure,listNotificationChannelConfigs}from'../../core/api-client.js';function a193_0x3b5c(){const _0x3ad2fd=['mutation','unshift','313998juUvpN','channelType',';\x20no\x20automatic\x20retry\x20was\x20attempted.','4428UpbpTL','2582223EEOCdS','appCode','8732AFeSoa','high-risk-write','46431zWVQQd','\x20delete\x20could\x20not\x20be\x20verified.','Delete\x20an\x20app-level\x20notification\x20config\x20after\x20exact\x20preflight','7505ATiWzc','notification_config_delete_outcome_unknown','Notification\x20config\x20','/notification/channel-config/delete','planned','some','config-delete','notification','10avcITu','verified','686133NRrPzv','POST',';\x20do\x20not\x20resubmit\x20automatically.','delete','1wKgrET','381YxaqGc','Inspect\x20with\x20','996FwbqbF','\x20remains\x20present\x20after\x20delete.','1875920ndeTQZ','notification_config_delete_verification_unavailable','before','Delete\x20response\x20was\x20unavailable;\x20list\x20readback\x20proved\x20ID\x20absence\x20without\x20resubmitting.'];a193_0x3b5c=function(){return _0x3ad2fd;};return a193_0x3b5c();}import{notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,projectNotificationConfig,readNotificationId,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure,validateNotificationDeleteReadback}from'../../commands/notification/shared.js';const DELETE_PATH=a193_0x1de247(0xe0),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(_0x1a97b5){const _0x4a6ead=a193_0x1de247,_0xfea6cd=readNotificationId(_0x1a97b5),_0x34311a=await requireExactNotificationConfig(_0x1a97b5[_0x4a6ead(0xd7)],_0xfea6cd,_0x4a6ead(0xc6));return{'id':_0xfea6cd,'before':_0x34311a};}function a193_0x387f(_0x4650a0,_0x243cdb){_0x4650a0=_0x4650a0-0xbf;const _0x3b5c52=a193_0x3b5c();let _0x387fa7=_0x3b5c52[_0x4650a0];return _0x387fa7;}export const notificationConfigDelete={'service':a193_0x1de247(0xc0),'command':a193_0x1de247(0xbf),'description':a193_0x1de247(0xdc),'risk':a193_0x1de247(0xd9),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,NOTIFICATION_APP_FLAG],async 'validate'(_0x10d214){readNotificationId(_0x10d214),requireNotificationExplicitYes(_0x10d214);},async 'dryRun'(_0x11fa61){const _0x36c49d=a193_0x1de247,_0x546f6b=await prepareDelete(_0x11fa61),_0x413336=notificationLookupCommand(_0x11fa61[_0x36c49d(0xd7)],_0x546f6b['before'][_0x36c49d(0xd3)]);return asDryRunResult({'operation':'delete','selector':notificationSelector(_0x546f6b[_0x36c49d(0xce)]),'before':projectNotificationConfig(_0x546f6b[_0x36c49d(0xce)]),'after':null,'dryRun':!![],'backend':{'method':_0x36c49d(0xc4),'path':DELETE_PATH},'warnings':[REFERENCE_WARNING],'verification':{'status':_0x36c49d(0xe1),'lookupCommand':_0x413336}},{'method':_0x36c49d(0xc4),'url':DELETE_PATH});},async 'execute'(_0x19dc9a){const _0x501d60=a193_0x1de247;requireNotificationExplicitYes(_0x19dc9a);const _0x5f3c6c=await prepareDelete(_0x19dc9a),_0x44c34f=notificationLookupCommand(_0x19dc9a[_0x501d60(0xd7)],_0x5f3c6c[_0x501d60(0xce)][_0x501d60(0xd3)]);let _0x3d90d5=![];try{await deleteNotificationChannelConfig(_0x5f3c6c['id'],_0x19dc9a[_0x501d60(0xd7)]);}catch(_0x2f418f){if(!isPlatformTransportFailure(_0x2f418f))throw safeApiFailure(_0x501d60(0xc6),_0x501d60(0xd0),'Inspect\x20with\x20'+_0x44c34f+_0x501d60(0xd4));_0x3d90d5=!![];}let _0x2b0d42;try{_0x2b0d42=await listNotificationChannelConfigs(_0x19dc9a['appCode'],_0x5f3c6c[_0x501d60(0xce)][_0x501d60(0xd3)]),validateNotificationDeleteReadback(_0x2b0d42,_0x19dc9a[_0x501d60(0xd7)],_0x5f3c6c[_0x501d60(0xce)][_0x501d60(0xd3)]);}catch{throw notificationError(_0x3d90d5?_0x501d60(0xde):_0x501d60(0xcd),_0x501d60(0xdf)+_0x5f3c6c['id']+_0x501d60(0xdb),_0x501d60(0xc9)+_0x44c34f+_0x501d60(0xc5));}if(_0x2b0d42[_0x501d60(0xe2)](_0x5e9b81=>_0x5e9b81['id']===_0x5f3c6c['id']))throw notificationError(_0x3d90d5?'notification_config_delete_outcome_unknown':'notification_config_delete_verification_failed',_0x501d60(0xdf)+_0x5f3c6c['id']+_0x501d60(0xcb),_0x501d60(0xc9)+_0x44c34f+_0x501d60(0xc5));const _0x4185bf=[REFERENCE_WARNING];return _0x3d90d5&&_0x4185bf[_0x501d60(0xd1)](_0x501d60(0xcf)),{'ok':!![],'data':{'operation':_0x501d60(0xc6),'selector':notificationSelector(_0x5f3c6c[_0x501d60(0xce)]),'before':projectNotificationConfig(_0x5f3c6c[_0x501d60(0xce)]),'after':null,'dryRun':![],'backend':{'method':'POST','path':DELETE_PATH},'warnings':_0x4185bf,'verification':{'status':_0x501d60(0xc2),'absenceConfirmed':!![],'recoveredAfterUnknownResponse':_0x3d90d5,'lookupCommand':_0x44c34f}},'message':'Deleted\x20notification\x20config\x20'+_0x5f3c6c['id']};}};
@@ -1 +1 @@
1
- const a194_0x5563b7=a194_0x2d47;(function(_0x363295,_0x14a136){const _0x10cb45=a194_0x2d47,_0x16671a=_0x363295();while(!![]){try{const _0x2562f9=parseInt(_0x10cb45(0x1d8))/0x1*(-parseInt(_0x10cb45(0x1db))/0x2)+-parseInt(_0x10cb45(0x1d7))/0x3*(-parseInt(_0x10cb45(0x1bc))/0x4)+-parseInt(_0x10cb45(0x1bf))/0x5+parseInt(_0x10cb45(0x1c1))/0x6*(parseInt(_0x10cb45(0x1bd))/0x7)+-parseInt(_0x10cb45(0x1d6))/0x8+-parseInt(_0x10cb45(0x1d2))/0x9+parseInt(_0x10cb45(0x1c7))/0xa*(parseInt(_0x10cb45(0x1d5))/0xb);if(_0x2562f9===_0x14a136)break;else _0x16671a['push'](_0x16671a['shift']());}catch(_0xc545fe){_0x16671a['push'](_0x16671a['shift']());}}}(a194_0x1468,0x44455));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a194_0x2d47(_0x4754c9,_0x1561c6){_0x4754c9=_0x4754c9-0x1bc;const _0x1468cd=a194_0x1468();let _0x2d47f3=_0x1468cd[_0x4754c9];return _0x2d47f3;}import{listNotificationChannelConfigs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';function a194_0x1468(){const _0x2ad72f=['str','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','bool','\x20notification\x20config(s)','--all\x20and\x20--type\x20are\x20mutually\x20exclusive.','read','notification','boolean','1926801uhvBTw','validation','Found\x20','10087iXMoPb','1795480AfoHWA','502917gFfOiX','20227nhLaXS','flat','\x20notification\x20config(s)\x20across\x20all\x20channel\x20types','10AKBOBX','12ckOpjh','98UNYbDe','List\x20configs\x20for\x20every\x20supported\x20notification\x20channel\x20type','400470jgQMPC','length','134940iYFQAh','string','trim','Use\x20--all,\x20or\x20query\x20one\x20explicit\x20--type.','all','appCode','890vKQuNb','map','type'];a194_0x1468=function(){return _0x2ad72f;};return a194_0x1468();}export const notificationConfigList={'service':a194_0x5563b7(0x1d0),'command':'config-list','description':a194_0x5563b7(0x1cb),'risk':a194_0x5563b7(0x1cf),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'type','type':a194_0x5563b7(0x1c2),'description':'Notification\x20channel\x20type','enum':NOTIFICATION_CHANNEL_TYPES},{'name':a194_0x5563b7(0x1c5),'type':a194_0x5563b7(0x1d1),'default':![],'description':a194_0x5563b7(0x1be)}],async 'validate'(_0x24dccc){const _0x3291bc=a194_0x5563b7;if(_0x24dccc[_0x3291bc(0x1cc)](_0x3291bc(0x1c5))&&_0x24dccc[_0x3291bc(0x1ca)](_0x3291bc(0x1c9))[_0x3291bc(0x1c3)]())throw CliErrors[_0x3291bc(0x1d3)](_0x3291bc(0x1ce),_0x3291bc(0x1c4));if(_0x24dccc[_0x3291bc(0x1cc)](_0x3291bc(0x1c5)))return;readNotificationChannelType(_0x24dccc);},async 'execute'(_0x1cc57f){const _0x3e8fac=a194_0x5563b7;if(_0x1cc57f[_0x3e8fac(0x1cc)](_0x3e8fac(0x1c5))){const _0x224b23=await Promise[_0x3e8fac(0x1c5)](NOTIFICATION_CHANNEL_TYPES['map'](_0xa1789e=>listNotificationChannelConfigs(_0x1cc57f[_0x3e8fac(0x1c6)],_0xa1789e))),_0x1c0e1b=_0x224b23[_0x3e8fac(0x1d9)]()[_0x3e8fac(0x1c8)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x1cc57f[_0x3e8fac(0x1c6)],'channelTypes':NOTIFICATION_CHANNEL_TYPES,'count':_0x1c0e1b['length'],'configs':_0x1c0e1b},'message':_0x3e8fac(0x1d4)+_0x1c0e1b[_0x3e8fac(0x1c0)]+_0x3e8fac(0x1da)};}const _0x5c2f21=readNotificationChannelType(_0x1cc57f),_0x31a3b4=await listNotificationChannelConfigs(_0x1cc57f[_0x3e8fac(0x1c6)],_0x5c2f21),_0x24dac9=_0x31a3b4['map'](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x1cc57f[_0x3e8fac(0x1c6)],'channelType':_0x5c2f21,'count':_0x24dac9[_0x3e8fac(0x1c0)],'configs':_0x24dac9},'message':_0x3e8fac(0x1d4)+_0x24dac9[_0x3e8fac(0x1c0)]+'\x20'+_0x5c2f21+_0x3e8fac(0x1cd)};}};
1
+ const a194_0x2665d8=a194_0x49a3;function a194_0x49a3(_0x342abf,_0x72b832){_0x342abf=_0x342abf-0x165;const _0x2fce47=a194_0x2fce();let _0x49a384=_0x2fce47[_0x342abf];return _0x49a384;}(function(_0x1b2f01,_0x295665){const _0x349b66=a194_0x49a3,_0x1acbca=_0x1b2f01();while(!![]){try{const _0x3f65e7=parseInt(_0x349b66(0x178))/0x1*(parseInt(_0x349b66(0x17c))/0x2)+parseInt(_0x349b66(0x17a))/0x3*(-parseInt(_0x349b66(0x16a))/0x4)+parseInt(_0x349b66(0x16b))/0x5*(-parseInt(_0x349b66(0x17e))/0x6)+parseInt(_0x349b66(0x168))/0x7+parseInt(_0x349b66(0x16c))/0x8*(-parseInt(_0x349b66(0x177))/0x9)+-parseInt(_0x349b66(0x167))/0xa+parseInt(_0x349b66(0x170))/0xb;if(_0x3f65e7===_0x295665)break;else _0x1acbca['push'](_0x1acbca['shift']());}catch(_0x2d11f8){_0x1acbca['push'](_0x1acbca['shift']());}}}(a194_0x2fce,0x9dd6e));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listNotificationChannelConfigs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a194_0x2fce(){const _0x18a9e2=['trim','all','--all\x20and\x20--type\x20are\x20mutually\x20exclusive.','appCode','length','bool','477boifSn','7KRxZfr','\x20notification\x20config(s)\x20across\x20all\x20channel\x20types','9pCksKF','\x20notification\x20config(s)','185066HrIfoC','List\x20configs\x20for\x20every\x20supported\x20notification\x20channel\x20type','17526WzluKk','Found\x20','map','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','4809720CMlBKe','6166181kevaNN','type','1020716AuizzH','5ptDdMy','99832WAhKgP','Notification\x20channel\x20type','boolean','Use\x20--all,\x20or\x20query\x20one\x20explicit\x20--type.','11315843CoMhVB'];a194_0x2fce=function(){return _0x18a9e2;};return a194_0x2fce();}import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':'notification','command':'config-list','description':a194_0x2665d8(0x166),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':a194_0x2665d8(0x169),'type':'string','description':a194_0x2665d8(0x16d),'enum':NOTIFICATION_CHANNEL_TYPES},{'name':a194_0x2665d8(0x172),'type':a194_0x2665d8(0x16e),'default':![],'description':a194_0x2665d8(0x17d)}],async 'validate'(_0x5e318f){const _0x331ac4=a194_0x2665d8;if(_0x5e318f['bool'](_0x331ac4(0x172))&&_0x5e318f['str'](_0x331ac4(0x169))[_0x331ac4(0x171)]())throw CliErrors['validation'](_0x331ac4(0x173),_0x331ac4(0x16f));if(_0x5e318f[_0x331ac4(0x176)](_0x331ac4(0x172)))return;readNotificationChannelType(_0x5e318f);},async 'execute'(_0x5f5252){const _0x507cfa=a194_0x2665d8;if(_0x5f5252[_0x507cfa(0x176)](_0x507cfa(0x172))){const _0x5e26fb=await Promise[_0x507cfa(0x172)](NOTIFICATION_CHANNEL_TYPES[_0x507cfa(0x165)](_0x409708=>listNotificationChannelConfigs(_0x5f5252[_0x507cfa(0x174)],_0x409708))),_0x345544=_0x5e26fb['flat']()[_0x507cfa(0x165)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x5f5252[_0x507cfa(0x174)],'channelTypes':NOTIFICATION_CHANNEL_TYPES,'count':_0x345544[_0x507cfa(0x175)],'configs':_0x345544},'message':'Found\x20'+_0x345544[_0x507cfa(0x175)]+_0x507cfa(0x179)};}const _0xfecf2a=readNotificationChannelType(_0x5f5252),_0x1ee54b=await listNotificationChannelConfigs(_0x5f5252['appCode'],_0xfecf2a),_0x3d0d5c=_0x1ee54b[_0x507cfa(0x165)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x5f5252[_0x507cfa(0x174)],'channelType':_0xfecf2a,'count':_0x3d0d5c[_0x507cfa(0x175)],'configs':_0x3d0d5c},'message':_0x507cfa(0x17f)+_0x3d0d5c[_0x507cfa(0x175)]+'\x20'+_0xfecf2a+_0x507cfa(0x17b)};}};
@@ -1 +1 @@
1
- const a195_0x1614d0=a195_0x52e9;(function(_0x45b341,_0x27686e){const _0x5ccc91=a195_0x52e9,_0x5ab492=_0x45b341();while(!![]){try{const _0x3e6e9=-parseInt(_0x5ccc91(0x7c))/0x1*(parseInt(_0x5ccc91(0x77))/0x2)+-parseInt(_0x5ccc91(0x76))/0x3+parseInt(_0x5ccc91(0x8b))/0x4+-parseInt(_0x5ccc91(0x82))/0x5+parseInt(_0x5ccc91(0x86))/0x6*(parseInt(_0x5ccc91(0x7d))/0x7)+parseInt(_0x5ccc91(0x80))/0x8+-parseInt(_0x5ccc91(0x8a))/0x9;if(_0x3e6e9===_0x27686e)break;else _0x5ab492['push'](_0x5ab492['shift']());}catch(_0x3757c6){_0x5ab492['push'](_0x5ab492['shift']());}}}(a195_0x2426,0x3f856));import{asDryRunResult}from'../../commands/common/dry-run.js';function a195_0x52e9(_0x1fb926,_0x4346cc){_0x1fb926=_0x1fb926-0x69;const _0x24269c=a195_0x2426();let _0x52e9b6=_0x24269c[_0x1fb926];return _0x52e9b6;}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=a195_0x1614d0(0x8f);async function prepareUpdate(_0x12eba9){const _0x1206f0=a195_0x1614d0,_0x5a502d=readNotificationId(_0x12eba9),_0x2ac5e9=await readNotificationDocument(_0x12eba9,_0x1206f0(0x73)),_0x3990d2=await requireExactNotificationConfig(_0x12eba9[_0x1206f0(0x6f)],_0x5a502d,_0x1206f0(0x73));return{'id':_0x5a502d,'patch':_0x2ac5e9,'before':_0x3990d2,'payload':mergeUpdateInput(_0x3990d2,_0x2ac5e9),'planned':plannedUpdateProjection(_0x3990d2,_0x2ac5e9)};}function a195_0x2426(){const _0x3e8003=['before','6prcQrF','payload','Update\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20patch','config-update','5391000JVLKCg','1353168zovNXs','\x20update\x20could\x20not\x20be\x20verified\x20by\x20exact\x20ID.','Updated\x20notification\x20config\x20','provesChange','/notification/channel-config/update','allMatch','\x20via\x20','notification_config_update_verification_failed','high-risk-write','notification_config_update_outcome_unknown',';\x20no\x20automatic\x20retry\x20was\x20attempted.','appCode','verified','Notification\x20config\x20','Inspect\x20with\x20--id\x20','update','notification_config_update_verification_unavailable','POST','28482cvOHIb','6AyQKaC','channelType',';\x20do\x20not\x20resubmit\x20automatically.','\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20update.','Update\x20response\x20was\x20unavailable;\x20exact-ID\x20readback\x20proved\x20changed\x20safe\x20fields\x20without\x20resubmitting.','50783MxshKg','1569281TeKibJ','mutation','Inspect\x20ID\x20','3890672HHwLHX','notification','138920ldiavU','patch','planned'];a195_0x2426=function(){return _0x3e8003;};return a195_0x2426();}export const notificationConfigUpdate={'service':a195_0x1614d0(0x81),'command':a195_0x1614d0(0x89),'description':a195_0x1614d0(0x88),'risk':a195_0x1614d0(0x6c),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x281863){readNotificationId(_0x281863),assertSingleNotificationSource(_0x281863),requireNotificationExplicitYes(_0x281863);},async 'dryRun'(_0x415508){const _0x170326=a195_0x1614d0,_0x220d7a=await prepareUpdate(_0x415508),_0x4caff5=notificationLookupCommand(_0x415508[_0x170326(0x6f)],_0x220d7a[_0x170326(0x85)][_0x170326(0x78)]);return asDryRunResult({'operation':_0x170326(0x73),'selector':notificationSelector(_0x220d7a[_0x170326(0x85)]),'before':projectNotificationConfig(_0x220d7a[_0x170326(0x85)]),'after':_0x220d7a[_0x170326(0x84)],'dryRun':!![],'backend':{'method':_0x170326(0x75),'path':UPDATE_PATH},'warnings':[],'verification':{'status':_0x170326(0x84),'lookupCommand':_0x4caff5}},{'method':_0x170326(0x75),'url':UPDATE_PATH});},async 'execute'(_0x122133){const _0x20eb6e=a195_0x1614d0;requireNotificationExplicitYes(_0x122133);const _0x5e16f8=await prepareUpdate(_0x122133),_0x4ee613=notificationLookupCommand(_0x122133[_0x20eb6e(0x6f)],_0x5e16f8[_0x20eb6e(0x85)][_0x20eb6e(0x78)]);let _0x2c023f=![];try{await updateNotificationChannelConfig(_0x5e16f8[_0x20eb6e(0x87)]);}catch(_0x5d058c){if(!isPlatformTransportFailure(_0x5d058c))throw safeApiFailure('update',_0x20eb6e(0x7e),_0x20eb6e(0x7f)+_0x5e16f8['id']+'\x20with\x20'+_0x4ee613+_0x20eb6e(0x6e));_0x2c023f=!![];}let _0x4defdb;try{const _0x32ad65=await getNotificationChannelConfig(_0x5e16f8['id'],_0x122133[_0x20eb6e(0x6f)]);_0x4defdb=normalizeExactNotificationConfig(_0x32ad65,_0x5e16f8['id'],_0x122133[_0x20eb6e(0x6f)]);}catch{throw notificationError(_0x2c023f?_0x20eb6e(0x6d):_0x20eb6e(0x74),_0x20eb6e(0x71)+_0x5e16f8['id']+_0x20eb6e(0x8c),_0x20eb6e(0x72)+_0x5e16f8['id']+_0x20eb6e(0x6a)+_0x4ee613+_0x20eb6e(0x79));}const _0x4f34da=requestedSafeFieldsMatch(_0x5e16f8[_0x20eb6e(0x85)],_0x4defdb,_0x5e16f8[_0x20eb6e(0x83)]);if(!_0x4f34da[_0x20eb6e(0x69)]||_0x2c023f&&!_0x4f34da[_0x20eb6e(0x8e)])throw notificationError(_0x2c023f?_0x20eb6e(0x6d):_0x20eb6e(0x6b),'Notification\x20config\x20'+_0x5e16f8['id']+_0x20eb6e(0x7a),_0x20eb6e(0x72)+_0x5e16f8['id']+_0x20eb6e(0x6a)+_0x4ee613+_0x20eb6e(0x79));const _0x13a23e=_0x2c023f?[_0x20eb6e(0x7b)]:[];return{'ok':!![],'data':{'operation':_0x20eb6e(0x73),'selector':notificationSelector(_0x4defdb),'before':projectNotificationConfig(_0x5e16f8[_0x20eb6e(0x85)]),'after':projectNotificationConfig(_0x4defdb),'dryRun':![],'backend':{'method':'POST','path':UPDATE_PATH},'warnings':_0x13a23e,'verification':{'status':_0x20eb6e(0x70),'recoveredAfterUnknownResponse':_0x2c023f,'verifiedFields':_0x4f34da['verifiedFields'],'lookupCommand':_0x4ee613}},'message':_0x20eb6e(0x8d)+_0x4defdb['id']};}};
1
+ function a195_0x4f2f(_0x11614c,_0x38ef58){_0x11614c=_0x11614c-0x1d7;const _0x1412cf=a195_0x1412();let _0x4f2fa7=_0x1412cf[_0x11614c];return _0x4f2fa7;}function a195_0x1412(){const _0x466ebb=['18nhqIJx','mutation','238562RbKeQC','\x20via\x20','appCode','5226UpFvQo','Inspect\x20with\x20--id\x20','4243294eynryw',';\x20do\x20not\x20resubmit\x20automatically.','/notification/channel-config/update','payload','POST','Inspect\x20ID\x20','128429yPutyl','verified','Notification\x20config\x20','high-risk-write','planned','2132220MjWypQ','notification_config_update_verification_failed',';\x20no\x20automatic\x20retry\x20was\x20attempted.','notification_config_update_outcome_unknown','before','patch','142327vgKPRE','10pBZfBD','333010UYizNP','verifiedFields','channelType','provesChange','Update\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20patch','8CGvyfa','update','notification_config_update_verification_unavailable','allMatch','9kPLRfT','notification','\x20with\x20'];a195_0x1412=function(){return _0x466ebb;};return a195_0x1412();}const a195_0x4d8736=a195_0x4f2f;(function(_0x1561ec,_0x24c254){const _0x7c4fa3=a195_0x4f2f,_0x34f4ea=_0x1561ec();while(!![]){try{const _0x199ed5=-parseInt(_0x7c4fa3(0x1dc))/0x1+-parseInt(_0x7c4fa3(0x1ec))/0x2*(parseInt(_0x7c4fa3(0x1e7))/0x3)+parseInt(_0x7c4fa3(0x1fc))/0x4+-parseInt(_0x7c4fa3(0x1dd))/0x5*(parseInt(_0x7c4fa3(0x1ef))/0x6)+parseInt(_0x7c4fa3(0x1f7))/0x7*(parseInt(_0x7c4fa3(0x1e3))/0x8)+-parseInt(_0x7c4fa3(0x1ea))/0x9*(parseInt(_0x7c4fa3(0x1de))/0xa)+parseInt(_0x7c4fa3(0x1f1))/0xb;if(_0x199ed5===_0x24c254)break;else _0x34f4ea['push'](_0x34f4ea['shift']());}catch(_0x1960a4){_0x34f4ea['push'](_0x34f4ea['shift']());}}}(a195_0x1412,0x5a002));import{asDryRunResult}from'../../commands/common/dry-run.js';import{getNotificationChannelConfig,isPlatformTransportFailure,updateNotificationChannelConfig}from'../../core/api-client.js';import{assertSingleNotificationSource,mergeUpdateInput,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,NOTIFICATION_INPUT_FLAGS,plannedUpdateProjection,projectNotificationConfig,readNotificationDocument,readNotificationId,requestedSafeFieldsMatch,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure}from'../../commands/notification/shared.js';const UPDATE_PATH=a195_0x4d8736(0x1f3);async function prepareUpdate(_0x27c91e){const _0x538bd0=a195_0x4d8736,_0x19656e=readNotificationId(_0x27c91e),_0x5cb3fd=await readNotificationDocument(_0x27c91e,_0x538bd0(0x1e4)),_0xc7f24=await requireExactNotificationConfig(_0x27c91e['appCode'],_0x19656e,_0x538bd0(0x1e4));return{'id':_0x19656e,'patch':_0x5cb3fd,'before':_0xc7f24,'payload':mergeUpdateInput(_0xc7f24,_0x5cb3fd),'planned':plannedUpdateProjection(_0xc7f24,_0x5cb3fd)};}export const notificationConfigUpdate={'service':a195_0x4d8736(0x1e8),'command':'config-update','description':a195_0x4d8736(0x1e2),'risk':a195_0x4d8736(0x1fa),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x5a4863){readNotificationId(_0x5a4863),assertSingleNotificationSource(_0x5a4863),requireNotificationExplicitYes(_0x5a4863);},async 'dryRun'(_0x46e8d8){const _0x1993d9=a195_0x4d8736,_0x54905e=await prepareUpdate(_0x46e8d8),_0x8e5c91=notificationLookupCommand(_0x46e8d8['appCode'],_0x54905e[_0x1993d9(0x1da)][_0x1993d9(0x1e0)]);return asDryRunResult({'operation':'update','selector':notificationSelector(_0x54905e[_0x1993d9(0x1da)]),'before':projectNotificationConfig(_0x54905e[_0x1993d9(0x1da)]),'after':_0x54905e['planned'],'dryRun':!![],'backend':{'method':_0x1993d9(0x1f5),'path':UPDATE_PATH},'warnings':[],'verification':{'status':_0x1993d9(0x1fb),'lookupCommand':_0x8e5c91}},{'method':_0x1993d9(0x1f5),'url':UPDATE_PATH});},async 'execute'(_0x47e54c){const _0x137779=a195_0x4d8736;requireNotificationExplicitYes(_0x47e54c);const _0x282dc9=await prepareUpdate(_0x47e54c),_0x58c27e=notificationLookupCommand(_0x47e54c[_0x137779(0x1ee)],_0x282dc9[_0x137779(0x1da)]['channelType']);let _0x40e7a4=![];try{await updateNotificationChannelConfig(_0x282dc9[_0x137779(0x1f4)]);}catch(_0x596205){if(!isPlatformTransportFailure(_0x596205))throw safeApiFailure('update',_0x137779(0x1eb),_0x137779(0x1f6)+_0x282dc9['id']+_0x137779(0x1e9)+_0x58c27e+_0x137779(0x1d8));_0x40e7a4=!![];}let _0x34a920;try{const _0x1a1773=await getNotificationChannelConfig(_0x282dc9['id'],_0x47e54c[_0x137779(0x1ee)]);_0x34a920=normalizeExactNotificationConfig(_0x1a1773,_0x282dc9['id'],_0x47e54c['appCode']);}catch{throw notificationError(_0x40e7a4?_0x137779(0x1d9):_0x137779(0x1e5),_0x137779(0x1f9)+_0x282dc9['id']+'\x20update\x20could\x20not\x20be\x20verified\x20by\x20exact\x20ID.',_0x137779(0x1f0)+_0x282dc9['id']+_0x137779(0x1ed)+_0x58c27e+_0x137779(0x1f2));}const _0x10621d=requestedSafeFieldsMatch(_0x282dc9['before'],_0x34a920,_0x282dc9[_0x137779(0x1db)]);if(!_0x10621d[_0x137779(0x1e6)]||_0x40e7a4&&!_0x10621d[_0x137779(0x1e1)])throw notificationError(_0x40e7a4?_0x137779(0x1d9):_0x137779(0x1d7),_0x137779(0x1f9)+_0x282dc9['id']+'\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20update.',_0x137779(0x1f0)+_0x282dc9['id']+'\x20via\x20'+_0x58c27e+_0x137779(0x1f2));const _0x253737=_0x40e7a4?['Update\x20response\x20was\x20unavailable;\x20exact-ID\x20readback\x20proved\x20changed\x20safe\x20fields\x20without\x20resubmitting.']:[];return{'ok':!![],'data':{'operation':_0x137779(0x1e4),'selector':notificationSelector(_0x34a920),'before':projectNotificationConfig(_0x282dc9[_0x137779(0x1da)]),'after':projectNotificationConfig(_0x34a920),'dryRun':![],'backend':{'method':_0x137779(0x1f5),'path':UPDATE_PATH},'warnings':_0x253737,'verification':{'status':_0x137779(0x1f8),'recoveredAfterUnknownResponse':_0x40e7a4,'verifiedFields':_0x10621d[_0x137779(0x1df)],'lookupCommand':_0x58c27e}},'message':'Updated\x20notification\x20config\x20'+_0x34a920['id']};}};
@@ -1 +1 @@
1
- (function(_0xd38a43,_0x1e511d){const _0x2f66fa=a196_0x1c8b,_0x9a50dd=_0xd38a43();while(!![]){try{const _0xc02a64=parseInt(_0x2f66fa(0x1e4))/0x1+parseInt(_0x2f66fa(0x1e6))/0x2*(parseInt(_0x2f66fa(0x1eb))/0x3)+-parseInt(_0x2f66fa(0x1ec))/0x4*(-parseInt(_0x2f66fa(0x1e9))/0x5)+-parseInt(_0x2f66fa(0x1e8))/0x6+-parseInt(_0x2f66fa(0x1ea))/0x7+-parseInt(_0x2f66fa(0x1e5))/0x8*(parseInt(_0x2f66fa(0x1e3))/0x9)+parseInt(_0x2f66fa(0x1e7))/0xa;if(_0xc02a64===_0x1e511d)break;else _0x9a50dd['push'](_0x9a50dd['shift']());}catch(_0x554520){_0x9a50dd['push'](_0x9a50dd['shift']());}}}(a196_0x162c,0x50e45));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 a196_0x1c8b(_0x161c7d,_0x147231){_0x161c7d=_0x161c7d-0x1e3;const _0x162c9b=a196_0x162c();let _0x1c8b4d=_0x162c9b[_0x161c7d];return _0x1c8b4d;}function a196_0x162c(){const _0x5d53e4=['4672072TkWQVR','45958TMrJPu','9474010gTSGKz','2203884pfDVhf','160mUWuxd','3994221qFIGqy','57VkpbiT','22380jtiztB','9hNIrGK','290217dWjOWc'];a196_0x162c=function(){return _0x5d53e4;};return a196_0x162c();}import{notificationConfigDelete}from'../../commands/notification/config-delete.js';export const notificationDefinitions=[notificationConfigList,notificationConfigCreate,notificationConfigUpdate,notificationConfigDelete];
1
+ function a196_0x67b1(){const _0x1a18d5=['2515702varPyi','81NKxnQy','8TdCSfg','6tdIiLb','3322737LTANZk','436120vHJkSZ','1958316huzeEK','658366fbDSWQ','1wjcRdE','463108heRcbN','1415LEIsgP','5214CqlQYU'];a196_0x67b1=function(){return _0x1a18d5;};return a196_0x67b1();}(function(_0x4e8c55,_0x4304ba){const _0x2d31d8=a196_0x31db,_0x30e78a=_0x4e8c55();while(!![]){try{const _0x590cd4=parseInt(_0x2d31d8(0x11e))/0x1*(parseInt(_0x2d31d8(0x129))/0x2)+-parseInt(_0x2d31d8(0x125))/0x3*(parseInt(_0x2d31d8(0x11f))/0x4)+parseInt(_0x2d31d8(0x120))/0x5*(parseInt(_0x2d31d8(0x121))/0x6)+parseInt(_0x2d31d8(0x122))/0x7*(-parseInt(_0x2d31d8(0x124))/0x8)+-parseInt(_0x2d31d8(0x123))/0x9*(-parseInt(_0x2d31d8(0x127))/0xa)+-parseInt(_0x2d31d8(0x126))/0xb+parseInt(_0x2d31d8(0x128))/0xc;if(_0x590cd4===_0x4304ba)break;else _0x30e78a['push'](_0x30e78a['shift']());}catch(_0x57103a){_0x30e78a['push'](_0x30e78a['shift']());}}}(a196_0x67b1,0x3a0ec));import{notificationConfigList}from'../../commands/notification/config-list.js';import{notificationConfigCreate}from'../../commands/notification/config-create.js';import{notificationConfigUpdate}from'../../commands/notification/config-update.js';import{notificationConfigDelete}from'../../commands/notification/config-delete.js';function a196_0x31db(_0x45eb76,_0x409ae9){_0x45eb76=_0x45eb76-0x11e;const _0x67b18d=a196_0x67b1();let _0x31dba5=_0x67b18d[_0x45eb76];return _0x31dba5;}export const notificationDefinitions=[notificationConfigList,notificationConfigCreate,notificationConfigUpdate,notificationConfigDelete];