@lovrabet/rabetbase-cli 2.5.7-beta.1 → 2.5.7

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 (375) 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-search-client.js +1 -1
  301. package/lib/core/page/file-system.js +1 -1
  302. package/lib/core/page/hash.js +1 -1
  303. package/lib/core/page/lock.js +1 -1
  304. package/lib/core/page/lr-smart-jsx.js +1 -1
  305. package/lib/core/sql-index-auditor.js +1 -1
  306. package/lib/core/sql-sync/config.js +1 -1
  307. package/lib/core/sql-sync/file-system.js +1 -1
  308. package/lib/core/sql-sync/hash.js +1 -1
  309. package/lib/core/sql-sync/lock.js +1 -1
  310. package/lib/core/sql-sync/utils.js +1 -1
  311. package/lib/core/sql-validator.js +1 -1
  312. package/lib/errors.js +1 -1
  313. package/lib/framework/build-all-flags.js +1 -1
  314. package/lib/framework/error-output.js +1 -1
  315. package/lib/framework/explicit-yes.js +1 -1
  316. package/lib/framework/flags.js +1 -1
  317. package/lib/framework/help.js +1 -1
  318. package/lib/framework/index.js +1 -1
  319. package/lib/framework/output.js +1 -1
  320. package/lib/framework/response.js +1 -1
  321. package/lib/framework/runner-alias.js +1 -1
  322. package/lib/framework/runner.js +1 -1
  323. package/lib/framework/schema-export.js +1 -1
  324. package/lib/framework/supported-flags.js +1 -1
  325. package/lib/framework/types.js +1 -1
  326. package/lib/generated/build-info.d.ts +4 -4
  327. package/lib/generated/build-info.js +1 -1
  328. package/lib/generated/official-routing.js +1 -1
  329. package/lib/generated/routing-contract.js +1 -1
  330. package/lib/help.js +1 -1
  331. package/lib/postinstall.js +1 -1
  332. package/lib/runtime/confirmation.js +1 -1
  333. package/lib/runtime/event.js +1 -1
  334. package/lib/runtime/index.js +1 -1
  335. package/lib/runtime/queue.js +1 -1
  336. package/lib/runtime/resolve.js +1 -1
  337. package/lib/services/dataset-design/checkpoint.js +1 -1
  338. package/lib/services/dataset-design/commands.js +1 -1
  339. package/lib/services/dataset-design/contract.js +1 -1
  340. package/lib/skills/builtin-skill.js +1 -1
  341. package/lib/skills/main.js +1 -1
  342. package/lib/skills/npx-skills-add.js +1 -1
  343. package/lib/skills/skill-presence.js +1 -1
  344. package/lib/telemetry/cli-command-trace.js +1 -1
  345. package/lib/telemetry/cli-help-trace.js +1 -1
  346. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  347. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  348. package/lib/telemetry/send-cli-trace-log.js +1 -1
  349. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  350. package/lib/utils/ai_config.js +1 -1
  351. package/lib/utils/apply-jq-filter.js +1 -1
  352. package/lib/utils/cdn-config.js +1 -1
  353. package/lib/utils/check-sdk-version.js +1 -1
  354. package/lib/utils/cli-version-check.js +1 -1
  355. package/lib/utils/cli-version-policy.js +1 -1
  356. package/lib/utils/config.js +1 -1
  357. package/lib/utils/entity-with-id.js +1 -1
  358. package/lib/utils/file-utils.js +1 -1
  359. package/lib/utils/guides-cdn.js +1 -1
  360. package/lib/utils/http-client.js +1 -1
  361. package/lib/utils/is-non-interactive.js +1 -1
  362. package/lib/utils/logger.js +1 -1
  363. package/lib/utils/params.js +1 -1
  364. package/lib/utils/platform.js +1 -1
  365. package/lib/utils/sleep.js +1 -1
  366. package/lib/utils/template-replacer.js +1 -1
  367. package/lib/utils/update-notice.js +1 -1
  368. package/lib/utils/version.js +1 -1
  369. package/lib/utils/with-active-cookie.js +1 -1
  370. package/lib/utils/write-cli-side-channel.js +1 -1
  371. package/package.json +1 -1
  372. package/skills/rabetbase/SKILL.md +1 -1
  373. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  374. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  375. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a184_0x49e0dc=a184_0x23be;(function(_0x1bc11c,_0x4e9d38){const _0x326600=a184_0x23be,_0x375475=_0x1bc11c();while(!![]){try{const _0x47d33c=-parseInt(_0x326600(0x18f))/0x1*(parseInt(_0x326600(0x171))/0x2)+-parseInt(_0x326600(0x15f))/0x3*(-parseInt(_0x326600(0x18c))/0x4)+-parseInt(_0x326600(0x183))/0x5+parseInt(_0x326600(0x176))/0x6*(-parseInt(_0x326600(0x17f))/0x7)+parseInt(_0x326600(0x177))/0x8+parseInt(_0x326600(0x169))/0x9*(-parseInt(_0x326600(0x17b))/0xa)+parseInt(_0x326600(0x191))/0xb;if(_0x47d33c===_0x4e9d38)break;else _0x375475['push'](_0x375475['shift']());}catch(_0x4cb4fa){_0x375475['push'](_0x375475['shift']());}}}(a184_0x190e,0x54788));import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';import{getOnlineMenuList,createMenus}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';import{menuPathKey}from'../../../commands/menu/shared/path.js';import{logger}from'../../../utils/logger.js';import{assertSharedResourcesConfigured}from'../../../commands/menu/shared/subapp-assets.js';function a184_0x190e(){const _0x7e9837=['get','6915865sCRoxs','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','Invalid\x20--params:\x20expected\x20a\x20JSON\x20object.','has','setLogPath','pages','parse','label','trim','Invalid\x20--params\x20JSON.','folder','3bOXKFN','Invalid\x20--params.parentId:\x20expected\x20a\x20non-negative\x20integer.','object','appName',':\x20expected\x20a\x20non-empty\x20string.','\x0a\x20\x20Available\x20local\x20paths:\x20','Local\x20page\x20paths\x20are\x20already\x20on\x20the\x20platform:\x20','map','type','CSS\x20URL\x20is\x20unreachable:\x20','99ZmFQiS','cssUrl','jsUrl','Invalid\x20--params:\x20','path','cwd','join','Invalid\x20--params.visible:\x20expected\x20a\x20boolean.','59266bbmwkZ','length','number','hasOwn','push','162588IuYYjl','2856400aolJjl','string','visible','--params.','439610eJhRTE','Start\x20non-interactive\x20menu\x20sync','\x22\x20for\x20','group','56ewbgpn','\x20must\x20be\x20an\x20existing\x20folder\x20in\x20the\x20selected\x20menu\x20host.','filter','info','576450kafGOq','Invalid\x20--params\x20fields:\x20','Invalid\x20--params.','keys','boolean','isInteger','dryRun','parentId','menu-sync','2244404NHOJJk','Parent\x20','isArray','13gezEIH'];a184_0x190e=function(){return _0x7e9837;};return a184_0x190e();}const MENU_SYNC_PARAM_KEYS=new Set([a184_0x49e0dc(0x16b),a184_0x49e0dc(0x16a),a184_0x49e0dc(0x162),a184_0x49e0dc(0x179),a184_0x49e0dc(0x18a)]);export function resolvePage(_0x3cdee6,_0x10ad23,_0x8e173b){const _0x4c465b=a184_0x49e0dc;let _0x420806=_0x10ad23[_0x4c465b(0x18a)]??_0x3cdee6['parentId'];if(_0x420806===undefined&&_0x3cdee6[_0x4c465b(0x17e)]){const _0x172338=_0x8e173b[_0x4c465b(0x181)](_0x197cdd=>_0x197cdd[_0x4c465b(0x167)]===_0x4c465b(0x15e)&&_0x197cdd[_0x4c465b(0x15b)]===_0x3cdee6[_0x4c465b(0x17e)]);if(_0x172338[_0x4c465b(0x172)]!==0x1)throw new Error('Expected\x20one\x20folder\x20named\x20\x22'+_0x3cdee6[_0x4c465b(0x17e)]+_0x4c465b(0x17d)+_0x3cdee6[_0x4c465b(0x16d)]+';\x20found\x20'+_0x172338['length']);_0x420806=_0x172338[0x0]['id'];}if(_0x420806!==undefined&&_0x420806!==0x0&&_0x8e173b[_0x4c465b(0x181)](_0x3df3f8=>_0x3df3f8['id']===_0x420806&&_0x3df3f8[_0x4c465b(0x167)]===_0x4c465b(0x15e))[_0x4c465b(0x172)]!==0x1)throw new Error(_0x4c465b(0x18d)+_0x420806+_0x4c465b(0x180));return{..._0x3cdee6,..._0x420806===undefined?{}:{'parentId':_0x420806},..._0x10ad23[_0x4c465b(0x179)]===undefined?{}:{'visible':_0x10ad23[_0x4c465b(0x179)]}};}function a184_0x23be(_0x49d828,_0x3cb351){_0x49d828=_0x49d828-0x156;const _0x190ec6=a184_0x190e();let _0x23be93=_0x190ec6[_0x49d828];return _0x23be93;}function validateParams(_0x30b1cf){const _0x303216=a184_0x49e0dc,_0x1c7e20=[];return _0x30b1cf['jsUrl']&&!isValidJsHttpsUrl(_0x30b1cf[_0x303216(0x16b)])&&_0x1c7e20[_0x303216(0x175)]({'field':_0x303216(0x16b),'message':_0x303216(0x192)}),_0x30b1cf[_0x303216(0x16a)]&&!isValidCssHttpsUrl(_0x30b1cf['cssUrl'])&&_0x1c7e20['push']({'field':_0x303216(0x16a),'message':'CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'}),_0x1c7e20;}export async function runMenuSyncCore(_0x28a454,_0x3a4a54,_0x2062b5=[],_0x47366c,_0x107ec4={}){const _0x999912=a184_0x49e0dc,_0x121fe8=parseMenuSyncParams(_0x47366c),_0xa7f5f4=[...new Set(_0x2062b5[_0x999912(0x166)](_0x26138=>_0x26138['trim']())[_0x999912(0x181)](Boolean)[_0x999912(0x166)](menuPathKey))],_0x1f5ee2=_0x121fe8[_0x999912(0x16b)],_0x25752a=_0x121fe8['cssUrl'],_0x979139=[];if(_0x1f5ee2)_0x979139[_0x999912(0x175)](_0x1f5ee2);if(_0x25752a)_0x979139[_0x999912(0x175)](_0x25752a);const _0x1ae619=validateParams(_0x121fe8);if(_0x1ae619[_0x999912(0x172)]>0x0){const _0x3753ed=_0x1ae619[_0x999912(0x166)](_0x53baa3=>_0x999912(0x17a)+_0x53baa3['field']+':\x20'+_0x53baa3['message'])[_0x999912(0x16f)](';\x20');throw new Error(_0x999912(0x16c)+_0x3753ed);}logger[_0x999912(0x158)](process[_0x999912(0x16e)]()),logger[_0x999912(0x182)]('menu-sync',_0x999912(0x17c),{'appCode':_0x28a454,'selectedCount':_0xa7f5f4[_0x999912(0x172)],'jsUrl':_0x1f5ee2,'cssUrl':_0x25752a});if(_0x1f5ee2){const _0x14d738=await isUrlReachable(_0x1f5ee2);if(!_0x14d738)throw new Error('JS\x20URL\x20is\x20unreachable:\x20'+_0x1f5ee2);}if(_0x25752a){const _0x3e2358=await isUrlReachable(_0x25752a);if(!_0x3e2358)throw new Error(_0x999912(0x168)+_0x25752a);}const _0x137fe7=getLocalPages();if(_0x137fe7[_0x999912(0x172)]===0x0){if(_0xa7f5f4[_0x999912(0x172)]>0x0)throw new Error('No\x20local\x20pages\x20matched\x20paths:\x20'+_0xa7f5f4[_0x999912(0x16f)](',\x20'));return{'created':0x0,'skipped':!![],'dryRun':_0x107ec4['dryRun']===!![],'targetPages':[],'plannedMenus':[]};}const _0xc04f10=await getOnlineMenuList(_0x28a454,_0x3a4a54),_0x34c6e2=new Set(_0xc04f10[_0x999912(0x166)](_0x1dce8a=>menuPathKey(_0x1dce8a[_0x999912(0x16d)])));let _0xc802c1;if(_0xa7f5f4['length']>0x0){const _0x3cf681=new Map(_0x137fe7[_0x999912(0x166)](_0x3721ae=>[menuPathKey(_0x3721ae[_0x999912(0x16d)]),_0x3721ae])),_0x52f6d9=_0xa7f5f4['filter'](_0x3adeb6=>!_0x3cf681[_0x999912(0x157)](_0x3adeb6));if(_0x52f6d9[_0x999912(0x172)]>0x0){const _0x735a2f=_0x137fe7['map'](_0x32ecbc=>_0x32ecbc[_0x999912(0x16d)])[_0x999912(0x16f)](',\x20');throw new Error('No\x20local\x20pages\x20matched\x20paths:\x20'+_0x52f6d9[_0x999912(0x16f)](',\x20')+_0x999912(0x164)+_0x735a2f);}const _0xa177da=_0xa7f5f4[_0x999912(0x181)](_0x1dbac6=>_0x34c6e2['has'](_0x1dbac6));if(_0xa177da[_0x999912(0x172)]>0x0)throw new Error(_0x999912(0x165)+_0xa177da[_0x999912(0x16f)](',\x20'));_0xc802c1=_0xa7f5f4[_0x999912(0x166)](_0x29002e=>_0x3cf681[_0x999912(0x190)](_0x29002e));}else _0xc802c1=_0x137fe7['filter'](_0x5c9e47=>!_0x34c6e2['has'](menuPathKey(_0x5c9e47[_0x999912(0x16d)])));if(_0xc802c1['length']===0x0)return{'created':0x0,'skipped':!![],'dryRun':_0x107ec4['dryRun']===!![],'targetPages':[],'plannedMenus':[]};_0xc802c1=_0xc802c1[_0x999912(0x166)](_0x313df5=>resolvePage(_0x313df5,_0x121fe8,_0xc04f10));_0x121fe8[_0x999912(0x162)]&&_0x979139[_0x999912(0x172)]===0x0&&await assertSharedResourcesConfigured(_0x28a454,_0x3a4a54,_0x121fe8['appName']);const _0x369634=_0xc802c1['map'](_0x535489=>({'type':'procode','path':_0x535489[_0x999912(0x16d)],'label':_0x535489[_0x999912(0x15b)],'loadScriptMode':'import','resources':[..._0x979139],..._0x535489[_0x999912(0x179)]===undefined?{}:{'visible':_0x535489['visible']},..._0x535489['parentId']===undefined?{}:{'parentId':_0x535489[_0x999912(0x18a)]},..._0x535489['order']===undefined?{}:{'sort':_0x535489['order']},..._0x121fe8[_0x999912(0x162)]===undefined?{}:{'appName':_0x121fe8[_0x999912(0x162)]}}));if(_0x107ec4[_0x999912(0x189)])return{'created':0x0,'skipped':![],'dryRun':!![],'targetPages':_0xc802c1,'plannedMenus':_0x369634};const _0x898968=_0x121fe8[_0x999912(0x162)]?await createMenus(_0x28a454,_0x3a4a54,_0xc802c1,_0x979139[_0x999912(0x172)]>0x0?_0x979139:undefined,{'appName':_0x121fe8['appName']}):await createMenus(_0x28a454,_0x3a4a54,_0xc802c1,_0x979139[_0x999912(0x172)]>0x0?_0x979139:undefined);return logger[_0x999912(0x182)](_0x999912(0x18b),'Menu\x20sync\x20completed',{'count':_0xc802c1[_0x999912(0x172)],'resources':_0x979139}),{'created':_0x898968['length'],'skipped':![],'dryRun':![],'targetPages':_0xc802c1,'plannedMenus':_0x369634,'menus':_0x898968};}export function parseMenuSyncParams(_0x15f20b){const _0x173c22=a184_0x49e0dc;if(!_0x15f20b||typeof _0x15f20b!==_0x173c22(0x178))return{};let _0x1ef9c7;try{_0x1ef9c7=JSON[_0x173c22(0x15a)](_0x15f20b);}catch{throw new Error(_0x173c22(0x15d));}if(typeof _0x1ef9c7!==_0x173c22(0x161)||_0x1ef9c7===null||Array[_0x173c22(0x18e)](_0x1ef9c7))throw new Error(_0x173c22(0x156));const _0x394af2=_0x1ef9c7;if(Object[_0x173c22(0x174)](_0x394af2,_0x173c22(0x159)))throw new Error('--params.pages\x20is\x20no\x20longer\x20supported.\x20Use\x20--paths\x20with\x20exact\x20local\x20page\x20paths.');const _0x1b209b=Object[_0x173c22(0x186)](_0x394af2)[_0x173c22(0x181)](_0x52871d=>!MENU_SYNC_PARAM_KEYS[_0x173c22(0x157)](_0x52871d));if(_0x1b209b[_0x173c22(0x172)]>0x0)throw new Error(_0x173c22(0x184)+_0x1b209b['join'](',\x20')+'.');for(const _0x3340a1 of['jsUrl',_0x173c22(0x16a),_0x173c22(0x162)]){const _0xe36cc2=_0x394af2[_0x3340a1];if(_0xe36cc2!==undefined&&(typeof _0xe36cc2!==_0x173c22(0x178)||_0xe36cc2['trim']()===''))throw new Error(_0x173c22(0x185)+_0x3340a1+_0x173c22(0x163));}if(_0x394af2[_0x173c22(0x179)]!==undefined&&typeof _0x394af2[_0x173c22(0x179)]!=='boolean')throw new Error(_0x173c22(0x170));if(_0x394af2[_0x173c22(0x18a)]!==undefined&&(!Number[_0x173c22(0x188)](_0x394af2['parentId'])||_0x394af2['parentId']<0x0))throw new Error(_0x173c22(0x160));return{'jsUrl':typeof _0x394af2[_0x173c22(0x16b)]===_0x173c22(0x178)?_0x394af2[_0x173c22(0x16b)]['trim']():undefined,'cssUrl':typeof _0x394af2[_0x173c22(0x16a)]===_0x173c22(0x178)?_0x394af2['cssUrl'][_0x173c22(0x15c)]():undefined,'appName':typeof _0x394af2[_0x173c22(0x162)]===_0x173c22(0x178)?_0x394af2[_0x173c22(0x162)]['trim']():undefined,'visible':typeof _0x394af2[_0x173c22(0x179)]===_0x173c22(0x187)?_0x394af2[_0x173c22(0x179)]:undefined,'parentId':typeof _0x394af2[_0x173c22(0x18a)]===_0x173c22(0x173)?_0x394af2[_0x173c22(0x18a)]:undefined};}
1
+ const a184_0x2e3137=a184_0xf634;(function(_0x99ca13,_0x5b41f0){const _0x1c66c7=a184_0xf634,_0x31ffe7=_0x99ca13();while(!![]){try{const _0x39b42e=-parseInt(_0x1c66c7(0x189))/0x1*(-parseInt(_0x1c66c7(0x15a))/0x2)+parseInt(_0x1c66c7(0x167))/0x3+-parseInt(_0x1c66c7(0x194))/0x4*(parseInt(_0x1c66c7(0x179))/0x5)+parseInt(_0x1c66c7(0x163))/0x6*(parseInt(_0x1c66c7(0x185))/0x7)+parseInt(_0x1c66c7(0x159))/0x8+parseInt(_0x1c66c7(0x193))/0x9*(-parseInt(_0x1c66c7(0x17d))/0xa)+-parseInt(_0x1c66c7(0x17a))/0xb;if(_0x39b42e===_0x5b41f0)break;else _0x31ffe7['push'](_0x31ffe7['shift']());}catch(_0x415c03){_0x31ffe7['push'](_0x31ffe7['shift']());}}}(a184_0x2c18,0x537b4));function a184_0x2c18(){const _0x2ebf42=[';\x20found\x20','cssUrl','4829672PWlzby','105762EZHMyL','parse','trim','Invalid\x20--params.','string','Invalid\x20--params.visible:\x20expected\x20a\x20boolean.','Invalid\x20--params\x20JSON.','has','dryRun','222nKcjBD','group','boolean','Local\x20page\x20paths\x20are\x20already\x20on\x20the\x20platform:\x20','2008323kKZXEP','setLogPath','--params.','menu-sync','Parent\x20','info','filter','\x20must\x20be\x20an\x20existing\x20folder\x20in\x20the\x20selected\x20menu\x20host.','number','Menu\x20sync\x20completed','Invalid\x20--params:\x20','hasOwn','--params.pages\x20is\x20no\x20longer\x20supported.\x20Use\x20--paths\x20with\x20exact\x20local\x20page\x20paths.','map','object','Invalid\x20--params.parentId:\x20expected\x20a\x20non-negative\x20integer.','No\x20local\x20pages\x20matched\x20paths:\x20','keys','15gQtzUw','3859515AkMNOY','path','label','107110ZwpGqu','message','import','parentId','field','procode','isArray','length','32893XQKkoJ','get','folder','Expected\x20one\x20folder\x20named\x20\x22','8wzzmvm','jsUrl','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','Invalid\x20--params\x20fields:\x20',':\x20expected\x20a\x20non-empty\x20string.','pages','Start\x20non-interactive\x20menu\x20sync','visible','isInteger','push','477ChZMeI','812764Bssbxd','cwd','Invalid\x20--params:\x20expected\x20a\x20JSON\x20object.','\x22\x20for\x20','join','appName','order'];a184_0x2c18=function(){return _0x2ebf42;};return a184_0x2c18();}import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';import{getOnlineMenuList,createMenus}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';import{menuPathKey}from'../../../commands/menu/shared/path.js';function a184_0xf634(_0x516fdd,_0x181204){_0x516fdd=_0x516fdd-0x156;const _0x2c184b=a184_0x2c18();let _0xf634bd=_0x2c184b[_0x516fdd];return _0xf634bd;}import{logger}from'../../../utils/logger.js';import{assertSharedResourcesConfigured}from'../../../commands/menu/shared/subapp-assets.js';const MENU_SYNC_PARAM_KEYS=new Set([a184_0x2e3137(0x18a),a184_0x2e3137(0x158),a184_0x2e3137(0x199),a184_0x2e3137(0x190),'parentId']);export function resolvePage(_0x1c455c,_0x4d7416,_0x5decdf){const _0x323476=a184_0x2e3137;let _0x3fdc0d=_0x4d7416['parentId']??_0x1c455c[_0x323476(0x180)];if(_0x3fdc0d===undefined&&_0x1c455c[_0x323476(0x164)]){const _0x481733=_0x5decdf[_0x323476(0x16d)](_0xed8d03=>_0xed8d03['type']===_0x323476(0x187)&&_0xed8d03[_0x323476(0x17c)]===_0x1c455c[_0x323476(0x164)]);if(_0x481733['length']!==0x1)throw new Error(_0x323476(0x188)+_0x1c455c[_0x323476(0x164)]+_0x323476(0x197)+_0x1c455c[_0x323476(0x17b)]+_0x323476(0x157)+_0x481733[_0x323476(0x184)]);_0x3fdc0d=_0x481733[0x0]['id'];}if(_0x3fdc0d!==undefined&&_0x3fdc0d!==0x0&&_0x5decdf[_0x323476(0x16d)](_0x1b716a=>_0x1b716a['id']===_0x3fdc0d&&_0x1b716a['type']===_0x323476(0x187))['length']!==0x1)throw new Error(_0x323476(0x16b)+_0x3fdc0d+_0x323476(0x16e));return{..._0x1c455c,..._0x3fdc0d===undefined?{}:{'parentId':_0x3fdc0d},..._0x4d7416[_0x323476(0x190)]===undefined?{}:{'visible':_0x4d7416[_0x323476(0x190)]}};}function validateParams(_0x3cb004){const _0x225858=a184_0x2e3137,_0x321858=[];return _0x3cb004[_0x225858(0x18a)]&&!isValidJsHttpsUrl(_0x3cb004[_0x225858(0x18a)])&&_0x321858[_0x225858(0x192)]({'field':_0x225858(0x18a),'message':'JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'}),_0x3cb004[_0x225858(0x158)]&&!isValidCssHttpsUrl(_0x3cb004['cssUrl'])&&_0x321858[_0x225858(0x192)]({'field':_0x225858(0x158),'message':_0x225858(0x18b)}),_0x321858;}export async function runMenuSyncCore(_0x1c3a46,_0xbe422c,_0x5bc41f=[],_0x2dee51,_0x498559={}){const _0x3ebebc=a184_0x2e3137,_0x38649c=parseMenuSyncParams(_0x2dee51),_0x3f5925=[...new Set(_0x5bc41f[_0x3ebebc(0x174)](_0x45dd9e=>_0x45dd9e['trim']())[_0x3ebebc(0x16d)](Boolean)[_0x3ebebc(0x174)](menuPathKey))],_0x42a695=_0x38649c['jsUrl'],_0x3df3c3=_0x38649c[_0x3ebebc(0x158)],_0x283a2d=[];if(_0x42a695)_0x283a2d[_0x3ebebc(0x192)](_0x42a695);if(_0x3df3c3)_0x283a2d[_0x3ebebc(0x192)](_0x3df3c3);const _0x35e824=validateParams(_0x38649c);if(_0x35e824['length']>0x0){const _0x15fbe4=_0x35e824[_0x3ebebc(0x174)](_0x139684=>_0x3ebebc(0x169)+_0x139684[_0x3ebebc(0x181)]+':\x20'+_0x139684[_0x3ebebc(0x17e)])[_0x3ebebc(0x198)](';\x20');throw new Error(_0x3ebebc(0x171)+_0x15fbe4);}logger[_0x3ebebc(0x168)](process[_0x3ebebc(0x195)]()),logger['info'](_0x3ebebc(0x16a),_0x3ebebc(0x18f),{'appCode':_0x1c3a46,'selectedCount':_0x3f5925[_0x3ebebc(0x184)],'jsUrl':_0x42a695,'cssUrl':_0x3df3c3});if(_0x42a695){const _0x448b69=await isUrlReachable(_0x42a695);if(!_0x448b69)throw new Error('JS\x20URL\x20is\x20unreachable:\x20'+_0x42a695);}if(_0x3df3c3){const _0x236b0b=await isUrlReachable(_0x3df3c3);if(!_0x236b0b)throw new Error('CSS\x20URL\x20is\x20unreachable:\x20'+_0x3df3c3);}const _0x1f42c7=getLocalPages();if(_0x1f42c7[_0x3ebebc(0x184)]===0x0){if(_0x3f5925[_0x3ebebc(0x184)]>0x0)throw new Error(_0x3ebebc(0x177)+_0x3f5925['join'](',\x20'));return{'created':0x0,'skipped':!![],'dryRun':_0x498559[_0x3ebebc(0x162)]===!![],'targetPages':[],'plannedMenus':[]};}const _0x347f8e=await getOnlineMenuList(_0x1c3a46,_0xbe422c),_0x1f99b8=new Set(_0x347f8e[_0x3ebebc(0x174)](_0x5bc47f=>menuPathKey(_0x5bc47f[_0x3ebebc(0x17b)])));let _0x4e971e;if(_0x3f5925['length']>0x0){const _0x29452a=new Map(_0x1f42c7[_0x3ebebc(0x174)](_0x4898da=>[menuPathKey(_0x4898da['path']),_0x4898da])),_0x474401=_0x3f5925[_0x3ebebc(0x16d)](_0x1585bd=>!_0x29452a[_0x3ebebc(0x161)](_0x1585bd));if(_0x474401[_0x3ebebc(0x184)]>0x0){const _0x4ba69a=_0x1f42c7['map'](_0x54683d=>_0x54683d[_0x3ebebc(0x17b)])[_0x3ebebc(0x198)](',\x20');throw new Error(_0x3ebebc(0x177)+_0x474401[_0x3ebebc(0x198)](',\x20')+'\x0a\x20\x20Available\x20local\x20paths:\x20'+_0x4ba69a);}const _0x136702=_0x3f5925[_0x3ebebc(0x16d)](_0x373d04=>_0x1f99b8[_0x3ebebc(0x161)](_0x373d04));if(_0x136702[_0x3ebebc(0x184)]>0x0)throw new Error(_0x3ebebc(0x166)+_0x136702['join'](',\x20'));_0x4e971e=_0x3f5925[_0x3ebebc(0x174)](_0x30fefe=>_0x29452a[_0x3ebebc(0x186)](_0x30fefe));}else _0x4e971e=_0x1f42c7[_0x3ebebc(0x16d)](_0x8d377a=>!_0x1f99b8[_0x3ebebc(0x161)](menuPathKey(_0x8d377a[_0x3ebebc(0x17b)])));if(_0x4e971e[_0x3ebebc(0x184)]===0x0)return{'created':0x0,'skipped':!![],'dryRun':_0x498559[_0x3ebebc(0x162)]===!![],'targetPages':[],'plannedMenus':[]};_0x4e971e=_0x4e971e[_0x3ebebc(0x174)](_0x16985a=>resolvePage(_0x16985a,_0x38649c,_0x347f8e));_0x38649c['appName']&&_0x283a2d[_0x3ebebc(0x184)]===0x0&&await assertSharedResourcesConfigured(_0x1c3a46,_0xbe422c,_0x38649c['appName']);const _0x3445b1=_0x4e971e['map'](_0x5787b3=>({'type':_0x3ebebc(0x182),'path':_0x5787b3[_0x3ebebc(0x17b)],'label':_0x5787b3[_0x3ebebc(0x17c)],'loadScriptMode':_0x3ebebc(0x17f),'resources':[..._0x283a2d],..._0x5787b3['visible']===undefined?{}:{'visible':_0x5787b3[_0x3ebebc(0x190)]},..._0x5787b3[_0x3ebebc(0x180)]===undefined?{}:{'parentId':_0x5787b3[_0x3ebebc(0x180)]},..._0x5787b3[_0x3ebebc(0x156)]===undefined?{}:{'sort':_0x5787b3[_0x3ebebc(0x156)]},..._0x38649c[_0x3ebebc(0x199)]===undefined?{}:{'appName':_0x38649c[_0x3ebebc(0x199)]}}));if(_0x498559[_0x3ebebc(0x162)])return{'created':0x0,'skipped':![],'dryRun':!![],'targetPages':_0x4e971e,'plannedMenus':_0x3445b1};const _0x1606df=_0x38649c[_0x3ebebc(0x199)]?await createMenus(_0x1c3a46,_0xbe422c,_0x4e971e,_0x283a2d['length']>0x0?_0x283a2d:undefined,{'appName':_0x38649c[_0x3ebebc(0x199)]}):await createMenus(_0x1c3a46,_0xbe422c,_0x4e971e,_0x283a2d[_0x3ebebc(0x184)]>0x0?_0x283a2d:undefined);return logger[_0x3ebebc(0x16c)](_0x3ebebc(0x16a),_0x3ebebc(0x170),{'count':_0x4e971e['length'],'resources':_0x283a2d}),{'created':_0x1606df['length'],'skipped':![],'dryRun':![],'targetPages':_0x4e971e,'plannedMenus':_0x3445b1,'menus':_0x1606df};}export function parseMenuSyncParams(_0x5bf8a2){const _0x4f2523=a184_0x2e3137;if(!_0x5bf8a2||typeof _0x5bf8a2!==_0x4f2523(0x15e))return{};let _0x3824e2;try{_0x3824e2=JSON[_0x4f2523(0x15b)](_0x5bf8a2);}catch{throw new Error(_0x4f2523(0x160));}if(typeof _0x3824e2!==_0x4f2523(0x175)||_0x3824e2===null||Array[_0x4f2523(0x183)](_0x3824e2))throw new Error(_0x4f2523(0x196));const _0xdf1019=_0x3824e2;if(Object[_0x4f2523(0x172)](_0xdf1019,_0x4f2523(0x18e)))throw new Error(_0x4f2523(0x173));const _0x49509b=Object[_0x4f2523(0x178)](_0xdf1019)['filter'](_0x5d29b5=>!MENU_SYNC_PARAM_KEYS[_0x4f2523(0x161)](_0x5d29b5));if(_0x49509b[_0x4f2523(0x184)]>0x0)throw new Error(_0x4f2523(0x18c)+_0x49509b[_0x4f2523(0x198)](',\x20')+'.');for(const _0xcb2f6d of[_0x4f2523(0x18a),_0x4f2523(0x158),_0x4f2523(0x199)]){const _0x43a7bc=_0xdf1019[_0xcb2f6d];if(_0x43a7bc!==undefined&&(typeof _0x43a7bc!==_0x4f2523(0x15e)||_0x43a7bc[_0x4f2523(0x15c)]()===''))throw new Error(_0x4f2523(0x15d)+_0xcb2f6d+_0x4f2523(0x18d));}if(_0xdf1019[_0x4f2523(0x190)]!==undefined&&typeof _0xdf1019['visible']!=='boolean')throw new Error(_0x4f2523(0x15f));if(_0xdf1019[_0x4f2523(0x180)]!==undefined&&(!Number[_0x4f2523(0x191)](_0xdf1019['parentId'])||_0xdf1019[_0x4f2523(0x180)]<0x0))throw new Error(_0x4f2523(0x176));return{'jsUrl':typeof _0xdf1019[_0x4f2523(0x18a)]==='string'?_0xdf1019['jsUrl'][_0x4f2523(0x15c)]():undefined,'cssUrl':typeof _0xdf1019[_0x4f2523(0x158)]===_0x4f2523(0x15e)?_0xdf1019[_0x4f2523(0x158)][_0x4f2523(0x15c)]():undefined,'appName':typeof _0xdf1019['appName']===_0x4f2523(0x15e)?_0xdf1019['appName']['trim']():undefined,'visible':typeof _0xdf1019[_0x4f2523(0x190)]===_0x4f2523(0x165)?_0xdf1019[_0x4f2523(0x190)]:undefined,'parentId':typeof _0xdf1019[_0x4f2523(0x180)]===_0x4f2523(0x16f)?_0xdf1019[_0x4f2523(0x180)]:undefined};}
@@ -1 +1 @@
1
- (function(_0x402a7c,_0x275f0e){const _0x465b8a=a186_0x134f,_0x5c8492=_0x402a7c();while(!![]){try{const _0x41e247=-parseInt(_0x465b8a(0x152))/0x1+-parseInt(_0x465b8a(0x16c))/0x2*(-parseInt(_0x465b8a(0x170))/0x3)+-parseInt(_0x465b8a(0x169))/0x4*(-parseInt(_0x465b8a(0x151))/0x5)+-parseInt(_0x465b8a(0x167))/0x6+-parseInt(_0x465b8a(0x14e))/0x7*(parseInt(_0x465b8a(0x148))/0x8)+parseInt(_0x465b8a(0x17a))/0x9+parseInt(_0x465b8a(0x166))/0xa;if(_0x41e247===_0x275f0e)break;else _0x5c8492['push'](_0x5c8492['shift']());}catch(_0x35f422){_0x5c8492['push'](_0x5c8492['shift']());}}}(a186_0x190d,0x866d7));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 a186_0x190d(){const _0x35cc0a=[').\x20','resources','label','Use\x20--mode\x20patch\x20to\x20preserve\x20it,\x20pass\x20jsUrl,\x20or\x20add\x20--force\x20for\x20an\x20intentional\x20removal.','mode','menu\x20asset-update\x20requires\x20an\x20explicit\x20target:\x20pass\x20--all,\x20--menu-ids,\x20or\x20--paths.','4595193eHJInY','replace','paths','map','dryRun','path','menu\x20asset-update\x20will\x20remove\x20existing\x20CSS\x20resource\x20for\x20\x22','menuIds','string','Invalid\x20--params:\x20','rejected','force','menu\x20asset-update\x20cannot\x20patch\x20','\x20existing\x20JS\x20resources\x20for\x20\x22','.\x20Allowed\x20values:\x20replace,\x20patch','field','menu\x20asset-update\x20would\x20remove\x20existing\x20JS\x20resource\x20for\x20\x22','--params.','21224GEkPsU','selection','patch','join','all','.js','2737HlzCgA','loadScriptMode','cwd','594595xleQfQ','552953GOgmph','extend','--all\x20cannot\x20be\x20combined\x20with\x20--menu-ids\x20or\x20--paths.','with\x20a\x20single\x20cssUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.','isArray','some','menu-asset-update','jsUrl','toLowerCase','with\x20a\x20single\x20jsUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.','CSS\x20URL\x20is\x20unreachable:\x20','Pass\x20--params\x20\x27{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}\x27\x20to\x20update\x20assets.','has','unshift','Invalid\x20--params:\x20menu\x20asset-update\x20requires\x20at\x20least\x20one\x20explicit\x20JS/CSS\x20URL.\x20','filter','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','push','after','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','9456920qZahMz','219678MRHQIc','Menu\x20asset\x20update\x20completed','4ewLwJm','.css','endsWith','3042ukfwRj','\x22\x20(','trim','length','1188HrhKuC','fulfilled','cssUrl','JS\x20URL\x20is\x20unreachable:\x20'];a186_0x190d=function(){return _0x35cc0a;};return a186_0x190d();}function validateParams(_0x4efca3){const _0x2238a1=a186_0x134f,_0x44685b=[];return _0x4efca3[_0x2238a1(0x159)]&&!isValidJsHttpsUrl(_0x4efca3[_0x2238a1(0x159)])&&_0x44685b[_0x2238a1(0x163)]({'field':_0x2238a1(0x159),'message':_0x2238a1(0x165)}),_0x4efca3[_0x2238a1(0x172)]&&!isValidCssHttpsUrl(_0x4efca3['cssUrl'])&&_0x44685b[_0x2238a1(0x163)]({'field':_0x2238a1(0x172),'message':_0x2238a1(0x162)}),_0x44685b;}export async function runMenuUpdateCore(_0x11c0fd,_0x4c038c,_0x63bd66,_0x594bdc={}){const _0x3fc780=a186_0x134f,_0x4a0fa5=parseUpdateParamsFlag(_0x63bd66),_0x2fcc19=normalizeMode(_0x594bdc[_0x3fc780(0x178)]);validateSelection(_0x594bdc['selection']);const _0x37d685=[];if(_0x4a0fa5[_0x3fc780(0x159)])_0x37d685[_0x3fc780(0x163)](_0x4a0fa5[_0x3fc780(0x159)]);if(_0x4a0fa5[_0x3fc780(0x172)])_0x37d685['push'](_0x4a0fa5['cssUrl']);const _0x425e6b=validateParams(_0x4a0fa5);if(_0x425e6b[_0x3fc780(0x16f)]>0x0){const _0x46a105=_0x425e6b[_0x3fc780(0x17d)](_0x836790=>_0x3fc780(0x147)+_0x836790[_0x3fc780(0x145)]+':\x20'+_0x836790['message'])[_0x3fc780(0x14b)](';\x20');throw new Error(_0x3fc780(0x183)+_0x46a105);}if(_0x37d685[_0x3fc780(0x16f)]===0x0)throw new Error(_0x3fc780(0x160)+_0x3fc780(0x15d));logger['setLogPath'](process[_0x3fc780(0x150)]()),logger['info'](_0x3fc780(0x158),'Start\x20non-interactive\x20menu\x20asset\x20update',{'appCode':_0x11c0fd,'jsUrl':_0x4a0fa5['jsUrl'],'cssUrl':_0x4a0fa5[_0x3fc780(0x172)],'mode':_0x2fcc19,'dryRun':_0x594bdc[_0x3fc780(0x17e)]===!![]});if(_0x4a0fa5[_0x3fc780(0x159)]){const _0x26267b=await isUrlReachable(_0x4a0fa5['jsUrl']);if(!_0x26267b)throw new Error(_0x3fc780(0x173)+_0x4a0fa5[_0x3fc780(0x159)]);}if(_0x4a0fa5['cssUrl']){const _0x31343a=await isUrlReachable(_0x4a0fa5['cssUrl']);if(!_0x31343a)throw new Error(_0x3fc780(0x15c)+_0x4a0fa5['cssUrl']);}const _0x205c11=await getOnlineMenuList(_0x11c0fd,_0x4c038c),_0x45d2e9=_0x205c11[_0x3fc780(0x161)](_0x3e535d=>_0x3e535d['resources'][_0x3fc780(0x16f)]>0x0),_0x2db70c=selectMenusForUpdate(_0x45d2e9,_0x594bdc[_0x3fc780(0x149)]);if(_0x2db70c[_0x3fc780(0x16f)]===0x0)return{'updated':0x0,'failed':0x0,'skipped':!![],'dryRun':_0x594bdc['dryRun']===!![]};const _0x38c48b=_0x2db70c[_0x3fc780(0x17d)](_0x187ca3=>buildMenuUpdateDiff(_0x187ca3,_0x4a0fa5,_0x2fcc19,_0x594bdc[_0x3fc780(0x185)]===!![],_0x594bdc[_0x3fc780(0x14f)]));if(_0x594bdc[_0x3fc780(0x17e)])return{'updated':0x0,'failed':0x0,'skipped':![],'dryRun':!![],'diffs':_0x38c48b};const _0x2ce807=await Promise['allSettled'](_0x2db70c[_0x3fc780(0x17d)]((_0x4d5019,_0x53d5e0)=>updateMenuCdnUrl(_0x11c0fd,_0x4c038c,{'id':_0x4d5019['id'],'label':_0x4d5019[_0x3fc780(0x176)],'path':_0x4d5019['path'],'resources':_0x38c48b[_0x53d5e0][_0x3fc780(0x164)]['resources'],'extend':_0x4d5019[_0x3fc780(0x153)]??null,'loadScriptMode':_0x594bdc[_0x3fc780(0x14f)]}))),_0x579408=_0x2ce807['filter'](_0x596200=>_0x596200['status']===_0x3fc780(0x171))[_0x3fc780(0x17d)](_0x479a41=>_0x479a41['value']),_0x135be3=_0x2ce807[_0x3fc780(0x161)](_0x229c5f=>_0x229c5f['status']===_0x3fc780(0x184))[_0x3fc780(0x16f)];return logger['info']('menu-asset-update',_0x3fc780(0x168),{'count':_0x2db70c[_0x3fc780(0x16f)],'resources':_0x37d685}),{'updated':_0x579408[_0x3fc780(0x16f)],'failed':_0x135be3,'skipped':![],'menus':_0x579408};}function validateSelection(_0xcd3a){const _0x27a379=a186_0x134f;if(!_0xcd3a)throw new Error(_0x27a379(0x179));if(_0xcd3a[_0x27a379(0x14c)]&&(_0xcd3a[_0x27a379(0x181)]['length']>0x0||_0xcd3a[_0x27a379(0x17c)]['length']>0x0))throw new Error(_0x27a379(0x154));if(!_0xcd3a[_0x27a379(0x14c)]&&_0xcd3a[_0x27a379(0x181)][_0x27a379(0x16f)]===0x0&&_0xcd3a[_0x27a379(0x17c)][_0x27a379(0x16f)]===0x0)throw new Error(_0x27a379(0x179));}export function selectMenusForUpdate(_0x2694c5,_0x1b95b7){const _0x471d79=a186_0x134f;validateSelection(_0x1b95b7);if(_0x1b95b7[_0x471d79(0x14c)])return _0x2694c5;const _0x4485de=new Set(_0x2694c5[_0x471d79(0x17d)](_0x3fe5b0=>_0x3fe5b0['id'])),_0x4b6d27=new Set(_0x2694c5[_0x471d79(0x17d)](_0xd842a9=>_0xd842a9[_0x471d79(0x17f)])),_0x536b78=_0x1b95b7['menuIds'][_0x471d79(0x161)](_0xc3078d=>!_0x4485de['has'](_0xc3078d)),_0x2cbbf7=_0x1b95b7[_0x471d79(0x17c)][_0x471d79(0x161)](_0x5616e5=>!_0x4b6d27[_0x471d79(0x15e)](_0x5616e5));if(_0x536b78['length']>0x0||_0x2cbbf7[_0x471d79(0x16f)]>0x0){const _0x2be5ac=[..._0x536b78[_0x471d79(0x17d)](_0x2fa015=>String(_0x2fa015)),..._0x2cbbf7][_0x471d79(0x14b)](',\x20');throw new Error('menu\x20asset-update\x20selectors\x20did\x20not\x20match\x20resource-bearing\x20menus:\x20'+_0x2be5ac);}const _0xfcab9b=new Set(_0x1b95b7['menuIds']),_0x5373db=new Set(_0x1b95b7[_0x471d79(0x17c)]);return _0x2694c5[_0x471d79(0x161)](_0x335d82=>_0xfcab9b[_0x471d79(0x15e)](_0x335d82['id'])||_0x5373db[_0x471d79(0x15e)](_0x335d82[_0x471d79(0x17f)]));}function normalizeMode(_0x208e73){const _0x5b1c8d=a186_0x134f;if(!_0x208e73)return _0x5b1c8d(0x14a);if(_0x208e73===_0x5b1c8d(0x17b)||_0x208e73===_0x5b1c8d(0x14a))return _0x208e73;throw new Error('Invalid\x20--mode:\x20'+_0x208e73+_0x5b1c8d(0x144));}function buildMenuUpdateDiff(_0x22ac4d,_0xc8c5d4,_0x597119,_0x7ade5c,_0x33210f){const _0x22d7f6=a186_0x134f,_0x4ebd5a=[..._0x22ac4d[_0x22d7f6(0x175)]];_0x597119==='patch'&&assertUnambiguousPatchResources(_0x22ac4d,_0x4ebd5a,_0xc8c5d4);const _0x3dab97=_0x597119===_0x22d7f6(0x14a)?patchResources(_0x4ebd5a,_0xc8c5d4):replaceResources(_0xc8c5d4),_0x14864f=[],_0x53ac5f=_0x4ebd5a['some'](isJsResource),_0x55379b=_0x3dab97[_0x22d7f6(0x157)](isJsResource);if(_0x53ac5f&&!_0x55379b){const _0x176bcb=_0x22d7f6(0x146)+_0x22ac4d[_0x22d7f6(0x176)]+_0x22d7f6(0x16d)+_0x22ac4d[_0x22d7f6(0x17f)]+_0x22d7f6(0x174)+_0x22d7f6(0x177);if(!_0x7ade5c)throw new Error(_0x176bcb);_0x14864f[_0x22d7f6(0x163)](_0x176bcb);}const _0x286d46=_0x4ebd5a['some'](isCssResource),_0x290239=_0x3dab97[_0x22d7f6(0x157)](isCssResource);_0x286d46&&!_0x290239&&_0x14864f[_0x22d7f6(0x163)](_0x22d7f6(0x180)+_0x22ac4d[_0x22d7f6(0x176)]+'\x22\x20('+_0x22ac4d[_0x22d7f6(0x17f)]+').');const _0x328415=typeof _0x22ac4d[_0x22d7f6(0x153)]?.['loadScriptMode']===_0x22d7f6(0x182)?_0x22ac4d[_0x22d7f6(0x153)][_0x22d7f6(0x14f)]:null,_0x4408b4=_0x33210f?{'loadScriptMode':_0x328415}:{},_0x345b95=_0x33210f?{'loadScriptMode':_0x33210f}:{};return{'id':_0x22ac4d['id'],'label':_0x22ac4d[_0x22d7f6(0x176)],'path':_0x22ac4d[_0x22d7f6(0x17f)],'mode':_0x597119,'before':{'resources':_0x4ebd5a,..._0x4408b4},'after':{'resources':_0x3dab97,..._0x345b95},'warnings':_0x14864f};}function replaceResources(_0x108957){const _0x14b14f=a186_0x134f;return[_0x108957[_0x14b14f(0x159)],_0x108957[_0x14b14f(0x172)]]['filter'](_0x2088b7=>!!_0x2088b7);}function assertUnambiguousPatchResources(_0x4e4ebf,_0x7c4230,_0x49fd08){const _0x43378a=a186_0x134f,_0x3502ed=_0x7c4230[_0x43378a(0x161)](isJsResource)[_0x43378a(0x16f)];if(_0x49fd08['jsUrl']&&_0x3502ed>0x1)throw new Error(_0x43378a(0x142)+_0x3502ed+_0x43378a(0x143)+_0x4e4ebf[_0x43378a(0x176)]+_0x43378a(0x16d)+_0x4e4ebf[_0x43378a(0x17f)]+')\x20'+_0x43378a(0x15b));const _0x2fd9e4=_0x7c4230[_0x43378a(0x161)](isCssResource)[_0x43378a(0x16f)];if(_0x49fd08['cssUrl']&&_0x2fd9e4>0x1)throw new Error(_0x43378a(0x142)+_0x2fd9e4+'\x20existing\x20CSS\x20resources\x20for\x20\x22'+_0x4e4ebf[_0x43378a(0x176)]+_0x43378a(0x16d)+_0x4e4ebf['path']+')\x20'+_0x43378a(0x155));}function patchResources(_0x353765,_0x5ab2f1){const _0x7a770c=a186_0x134f;let _0x53972c=![],_0x4f31ad=![];const _0x3d32e2=[];for(const _0x160d9c of _0x353765){if(isJsResource(_0x160d9c)){if(_0x5ab2f1[_0x7a770c(0x159)]&&!_0x53972c)_0x3d32e2['push'](_0x5ab2f1[_0x7a770c(0x159)]),_0x53972c=!![];else!_0x5ab2f1[_0x7a770c(0x159)]&&_0x3d32e2[_0x7a770c(0x163)](_0x160d9c);continue;}if(isCssResource(_0x160d9c)){if(_0x5ab2f1['cssUrl']&&!_0x4f31ad)_0x3d32e2[_0x7a770c(0x163)](_0x5ab2f1[_0x7a770c(0x172)]),_0x4f31ad=!![];else!_0x5ab2f1['cssUrl']&&_0x3d32e2['push'](_0x160d9c);continue;}_0x3d32e2[_0x7a770c(0x163)](_0x160d9c);}return _0x5ab2f1[_0x7a770c(0x159)]&&!_0x53972c&&_0x3d32e2[_0x7a770c(0x15f)](_0x5ab2f1[_0x7a770c(0x159)]),_0x5ab2f1[_0x7a770c(0x172)]&&!_0x4f31ad&&_0x3d32e2[_0x7a770c(0x163)](_0x5ab2f1[_0x7a770c(0x172)]),_0x3d32e2;}function isJsResource(_0x4979a5){const _0x56af31=a186_0x134f;return stripQuery(_0x4979a5)[_0x56af31(0x15a)]()[_0x56af31(0x16b)](_0x56af31(0x14d));}function isCssResource(_0x171aa2){const _0x2c2095=a186_0x134f;return stripQuery(_0x171aa2)[_0x2c2095(0x15a)]()[_0x2c2095(0x16b)](_0x2c2095(0x16a));}function stripQuery(_0x5c4287){return _0x5c4287['split']('?')[0x0]??_0x5c4287;}function a186_0x134f(_0x47599f,_0x18e572){_0x47599f=_0x47599f-0x142;const _0x190d4c=a186_0x190d();let _0x134fdb=_0x190d4c[_0x47599f];return _0x134fdb;}function parseUpdateParamsFlag(_0xbc7e0){const _0x38fab5=a186_0x134f;if(!_0xbc7e0||typeof _0xbc7e0!==_0x38fab5(0x182))return{};try{const _0x45c7f4=JSON['parse'](_0xbc7e0);if(typeof _0x45c7f4!=='object'||_0x45c7f4===null||Array[_0x38fab5(0x156)](_0x45c7f4))return{};return{'jsUrl':typeof _0x45c7f4[_0x38fab5(0x159)]==='string'?_0x45c7f4[_0x38fab5(0x159)][_0x38fab5(0x16e)]():undefined,'cssUrl':typeof _0x45c7f4[_0x38fab5(0x172)]==='string'?_0x45c7f4['cssUrl'][_0x38fab5(0x16e)]():undefined};}catch{return{};}}
1
+ (function(_0xe767b1,_0x4d86b0){const _0x1d8df5=a186_0x1c6d,_0x5a1f1e=_0xe767b1();while(!![]){try{const _0x476858=parseInt(_0x1d8df5(0x1b6))/0x1+-parseInt(_0x1d8df5(0x194))/0x2*(-parseInt(_0x1d8df5(0x1b4))/0x3)+-parseInt(_0x1d8df5(0x1b0))/0x4*(-parseInt(_0x1d8df5(0x1a9))/0x5)+-parseInt(_0x1d8df5(0x1ba))/0x6*(-parseInt(_0x1d8df5(0x1c3))/0x7)+parseInt(_0x1d8df5(0x1d7))/0x8*(-parseInt(_0x1d8df5(0x1ae))/0x9)+parseInt(_0x1d8df5(0x197))/0xa+parseInt(_0x1d8df5(0x1c6))/0xb*(-parseInt(_0x1d8df5(0x1d3))/0xc);if(_0x476858===_0x4d86b0)break;else _0x5a1f1e['push'](_0x5a1f1e['shift']());}catch(_0x27bac7){_0x5a1f1e['push'](_0x5a1f1e['shift']());}}}(a186_0x2366,0x9e993));import{updateMenuCdnUrl,getOnlineMenuList}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';function a186_0x2366(){const _0x52dff7=['343CnXRlZ','Invalid\x20--params:\x20menu\x20asset-update\x20requires\x20at\x20least\x20one\x20explicit\x20JS/CSS\x20URL.\x20','fulfilled','55blWenA','after','resources','message','with\x20a\x20single\x20jsUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','object','Start\x20non-interactive\x20menu\x20asset\x20update','menu-asset-update','menu\x20asset-update\x20would\x20remove\x20existing\x20JS\x20resource\x20for\x20\x22','has','dryRun','join','3607248rWvUhI','jsUrl','info','--all\x20cannot\x20be\x20combined\x20with\x20--menu-ids\x20or\x20--paths.','24xQCned','rejected','field','\x22\x20(','isArray','loadScriptMode','push','38MFIYJb','.css','patch','3285500KxBFIc','value','cssUrl','menu\x20asset-update\x20will\x20remove\x20existing\x20CSS\x20resource\x20for\x20\x22','mode','replace','trim','status','--params.','string','length','JS\x20URL\x20is\x20unreachable:\x20','Invalid\x20--params:\x20','endsWith','\x20existing\x20JS\x20resources\x20for\x20\x22','map','filter','paths','5wsoDZl','allSettled','path','some','menuIds','2680146ErphxP','menu\x20asset-update\x20requires\x20an\x20explicit\x20target:\x20pass\x20--all,\x20--menu-ids,\x20or\x20--paths.','4825468latyFx','unshift','split','setLogPath','15756nhjEdD','menu\x20asset-update\x20cannot\x20patch\x20','666565tewFyO','\x20existing\x20CSS\x20resources\x20for\x20\x22','extend','label','91194cLZMZQ','cwd','selection','Use\x20--mode\x20patch\x20to\x20preserve\x20it,\x20pass\x20jsUrl,\x20or\x20add\x20--force\x20for\x20an\x20intentional\x20removal.','with\x20a\x20single\x20cssUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.','toLowerCase','Pass\x20--params\x20\x27{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}\x27\x20to\x20update\x20assets.','Invalid\x20--mode:\x20','all'];a186_0x2366=function(){return _0x52dff7;};return a186_0x2366();}import{logger}from'../../../utils/logger.js';function validateParams(_0x1a8182){const _0x5241a4=a186_0x1c6d,_0x5d22d5=[];return _0x1a8182[_0x5241a4(0x1d4)]&&!isValidJsHttpsUrl(_0x1a8182['jsUrl'])&&_0x5d22d5[_0x5241a4(0x193)]({'field':_0x5241a4(0x1d4),'message':_0x5241a4(0x1cb)}),_0x1a8182[_0x5241a4(0x199)]&&!isValidCssHttpsUrl(_0x1a8182[_0x5241a4(0x199)])&&_0x5d22d5['push']({'field':'cssUrl','message':'CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'}),_0x5d22d5;}export async function runMenuUpdateCore(_0x1947f6,_0xad0e8b,_0x32084d,_0x42b06d={}){const _0x62d309=a186_0x1c6d,_0x19c75c=parseUpdateParamsFlag(_0x32084d),_0x10f60a=normalizeMode(_0x42b06d[_0x62d309(0x19b)]);validateSelection(_0x42b06d[_0x62d309(0x1bc)]);const _0x45c37b=[];if(_0x19c75c[_0x62d309(0x1d4)])_0x45c37b[_0x62d309(0x193)](_0x19c75c[_0x62d309(0x1d4)]);if(_0x19c75c['cssUrl'])_0x45c37b[_0x62d309(0x193)](_0x19c75c[_0x62d309(0x199)]);const _0x78926a=validateParams(_0x19c75c);if(_0x78926a['length']>0x0){const _0x14a365=_0x78926a['map'](_0x2d73b5=>_0x62d309(0x19f)+_0x2d73b5[_0x62d309(0x18f)]+':\x20'+_0x2d73b5[_0x62d309(0x1c9)])['join'](';\x20');throw new Error(_0x62d309(0x1a3)+_0x14a365);}if(_0x45c37b['length']===0x0)throw new Error(_0x62d309(0x1c4)+_0x62d309(0x1c0));logger[_0x62d309(0x1b3)](process[_0x62d309(0x1bb)]()),logger[_0x62d309(0x1d5)]('menu-asset-update',_0x62d309(0x1cd),{'appCode':_0x1947f6,'jsUrl':_0x19c75c[_0x62d309(0x1d4)],'cssUrl':_0x19c75c['cssUrl'],'mode':_0x10f60a,'dryRun':_0x42b06d[_0x62d309(0x1d1)]===!![]});if(_0x19c75c[_0x62d309(0x1d4)]){const _0x5f15bb=await isUrlReachable(_0x19c75c[_0x62d309(0x1d4)]);if(!_0x5f15bb)throw new Error(_0x62d309(0x1a2)+_0x19c75c[_0x62d309(0x1d4)]);}if(_0x19c75c['cssUrl']){const _0x306136=await isUrlReachable(_0x19c75c['cssUrl']);if(!_0x306136)throw new Error('CSS\x20URL\x20is\x20unreachable:\x20'+_0x19c75c[_0x62d309(0x199)]);}const _0x3d544d=await getOnlineMenuList(_0x1947f6,_0xad0e8b),_0x149370=_0x3d544d[_0x62d309(0x1a7)](_0x58569a=>_0x58569a['resources'][_0x62d309(0x1a1)]>0x0),_0x4a67df=selectMenusForUpdate(_0x149370,_0x42b06d[_0x62d309(0x1bc)]);if(_0x4a67df[_0x62d309(0x1a1)]===0x0)return{'updated':0x0,'failed':0x0,'skipped':!![],'dryRun':_0x42b06d['dryRun']===!![]};const _0x2779f1=_0x4a67df['map'](_0x189ed3=>buildMenuUpdateDiff(_0x189ed3,_0x19c75c,_0x10f60a,_0x42b06d['force']===!![],_0x42b06d[_0x62d309(0x192)]));if(_0x42b06d[_0x62d309(0x1d1)])return{'updated':0x0,'failed':0x0,'skipped':![],'dryRun':!![],'diffs':_0x2779f1};const _0x4a09e4=await Promise[_0x62d309(0x1aa)](_0x4a67df['map']((_0x36205c,_0x1a9cb5)=>updateMenuCdnUrl(_0x1947f6,_0xad0e8b,{'id':_0x36205c['id'],'label':_0x36205c['label'],'path':_0x36205c[_0x62d309(0x1ab)],'resources':_0x2779f1[_0x1a9cb5][_0x62d309(0x1c7)][_0x62d309(0x1c8)],'extend':_0x36205c[_0x62d309(0x1b8)]??null,'loadScriptMode':_0x42b06d[_0x62d309(0x192)]}))),_0x111225=_0x4a09e4[_0x62d309(0x1a7)](_0x1ed6dc=>_0x1ed6dc[_0x62d309(0x19e)]===_0x62d309(0x1c5))[_0x62d309(0x1a6)](_0x4f460e=>_0x4f460e[_0x62d309(0x198)]),_0x5320ff=_0x4a09e4[_0x62d309(0x1a7)](_0x12761c=>_0x12761c[_0x62d309(0x19e)]===_0x62d309(0x1d8))[_0x62d309(0x1a1)];return logger[_0x62d309(0x1d5)](_0x62d309(0x1ce),'Menu\x20asset\x20update\x20completed',{'count':_0x4a67df[_0x62d309(0x1a1)],'resources':_0x45c37b}),{'updated':_0x111225[_0x62d309(0x1a1)],'failed':_0x5320ff,'skipped':![],'menus':_0x111225};}function validateSelection(_0x751622){const _0x40701b=a186_0x1c6d;if(!_0x751622)throw new Error(_0x40701b(0x1af));if(_0x751622[_0x40701b(0x1c2)]&&(_0x751622[_0x40701b(0x1ad)][_0x40701b(0x1a1)]>0x0||_0x751622['paths'][_0x40701b(0x1a1)]>0x0))throw new Error(_0x40701b(0x1d6));if(!_0x751622[_0x40701b(0x1c2)]&&_0x751622[_0x40701b(0x1ad)]['length']===0x0&&_0x751622[_0x40701b(0x1a8)][_0x40701b(0x1a1)]===0x0)throw new Error(_0x40701b(0x1af));}export function selectMenusForUpdate(_0x2d102a,_0x80814d){const _0x4fe534=a186_0x1c6d;validateSelection(_0x80814d);if(_0x80814d['all'])return _0x2d102a;const _0x1159c0=new Set(_0x2d102a[_0x4fe534(0x1a6)](_0x59dfde=>_0x59dfde['id'])),_0x7a4330=new Set(_0x2d102a[_0x4fe534(0x1a6)](_0x418f69=>_0x418f69[_0x4fe534(0x1ab)])),_0x57d5af=_0x80814d[_0x4fe534(0x1ad)][_0x4fe534(0x1a7)](_0x4103a8=>!_0x1159c0[_0x4fe534(0x1d0)](_0x4103a8)),_0x4fccd1=_0x80814d[_0x4fe534(0x1a8)][_0x4fe534(0x1a7)](_0x486d63=>!_0x7a4330[_0x4fe534(0x1d0)](_0x486d63));if(_0x57d5af[_0x4fe534(0x1a1)]>0x0||_0x4fccd1[_0x4fe534(0x1a1)]>0x0){const _0x6e2908=[..._0x57d5af[_0x4fe534(0x1a6)](_0x5716ad=>String(_0x5716ad)),..._0x4fccd1][_0x4fe534(0x1d2)](',\x20');throw new Error('menu\x20asset-update\x20selectors\x20did\x20not\x20match\x20resource-bearing\x20menus:\x20'+_0x6e2908);}const _0xb7edc3=new Set(_0x80814d[_0x4fe534(0x1ad)]),_0x1b6028=new Set(_0x80814d[_0x4fe534(0x1a8)]);return _0x2d102a[_0x4fe534(0x1a7)](_0x65ffbc=>_0xb7edc3[_0x4fe534(0x1d0)](_0x65ffbc['id'])||_0x1b6028[_0x4fe534(0x1d0)](_0x65ffbc[_0x4fe534(0x1ab)]));}function normalizeMode(_0x4f20ae){const _0x537446=a186_0x1c6d;if(!_0x4f20ae)return _0x537446(0x196);if(_0x4f20ae===_0x537446(0x19c)||_0x4f20ae===_0x537446(0x196))return _0x4f20ae;throw new Error(_0x537446(0x1c1)+_0x4f20ae+'.\x20Allowed\x20values:\x20replace,\x20patch');}function buildMenuUpdateDiff(_0xf3ded8,_0x2e9ae4,_0x385d50,_0x3fde2b,_0x139108){const _0x2be76c=a186_0x1c6d,_0x304897=[..._0xf3ded8[_0x2be76c(0x1c8)]];_0x385d50==='patch'&&assertUnambiguousPatchResources(_0xf3ded8,_0x304897,_0x2e9ae4);const _0x366a33=_0x385d50===_0x2be76c(0x196)?patchResources(_0x304897,_0x2e9ae4):replaceResources(_0x2e9ae4),_0x3e0245=[],_0x2fb37f=_0x304897['some'](isJsResource),_0x35e27e=_0x366a33[_0x2be76c(0x1ac)](isJsResource);if(_0x2fb37f&&!_0x35e27e){const _0x3dfd64=_0x2be76c(0x1cf)+_0xf3ded8[_0x2be76c(0x1b9)]+_0x2be76c(0x190)+_0xf3ded8[_0x2be76c(0x1ab)]+').\x20'+_0x2be76c(0x1bd);if(!_0x3fde2b)throw new Error(_0x3dfd64);_0x3e0245['push'](_0x3dfd64);}const _0xd978a8=_0x304897[_0x2be76c(0x1ac)](isCssResource),_0x4a04d8=_0x366a33['some'](isCssResource);_0xd978a8&&!_0x4a04d8&&_0x3e0245[_0x2be76c(0x193)](_0x2be76c(0x19a)+_0xf3ded8[_0x2be76c(0x1b9)]+_0x2be76c(0x190)+_0xf3ded8['path']+').');const _0x153c25=typeof _0xf3ded8[_0x2be76c(0x1b8)]?.[_0x2be76c(0x192)]===_0x2be76c(0x1a0)?_0xf3ded8[_0x2be76c(0x1b8)]['loadScriptMode']:null,_0x123a95=_0x139108?{'loadScriptMode':_0x153c25}:{},_0x211f43=_0x139108?{'loadScriptMode':_0x139108}:{};return{'id':_0xf3ded8['id'],'label':_0xf3ded8['label'],'path':_0xf3ded8[_0x2be76c(0x1ab)],'mode':_0x385d50,'before':{'resources':_0x304897,..._0x123a95},'after':{'resources':_0x366a33,..._0x211f43},'warnings':_0x3e0245};}function replaceResources(_0x48729f){const _0xb5986c=a186_0x1c6d;return[_0x48729f[_0xb5986c(0x1d4)],_0x48729f[_0xb5986c(0x199)]][_0xb5986c(0x1a7)](_0x18f177=>!!_0x18f177);}function assertUnambiguousPatchResources(_0x5120b9,_0x30ff39,_0x513500){const _0x2171ec=a186_0x1c6d,_0x54d132=_0x30ff39[_0x2171ec(0x1a7)](isJsResource)[_0x2171ec(0x1a1)];if(_0x513500[_0x2171ec(0x1d4)]&&_0x54d132>0x1)throw new Error(_0x2171ec(0x1b5)+_0x54d132+_0x2171ec(0x1a5)+_0x5120b9[_0x2171ec(0x1b9)]+_0x2171ec(0x190)+_0x5120b9[_0x2171ec(0x1ab)]+')\x20'+_0x2171ec(0x1ca));const _0xb481a9=_0x30ff39[_0x2171ec(0x1a7)](isCssResource)[_0x2171ec(0x1a1)];if(_0x513500[_0x2171ec(0x199)]&&_0xb481a9>0x1)throw new Error(_0x2171ec(0x1b5)+_0xb481a9+_0x2171ec(0x1b7)+_0x5120b9[_0x2171ec(0x1b9)]+_0x2171ec(0x190)+_0x5120b9[_0x2171ec(0x1ab)]+')\x20'+_0x2171ec(0x1be));}function patchResources(_0x1c9be5,_0x41f9d4){const _0xa92581=a186_0x1c6d;let _0x3913fe=![],_0x45bd54=![];const _0x4915c8=[];for(const _0x40ddea of _0x1c9be5){if(isJsResource(_0x40ddea)){if(_0x41f9d4[_0xa92581(0x1d4)]&&!_0x3913fe)_0x4915c8[_0xa92581(0x193)](_0x41f9d4[_0xa92581(0x1d4)]),_0x3913fe=!![];else!_0x41f9d4['jsUrl']&&_0x4915c8['push'](_0x40ddea);continue;}if(isCssResource(_0x40ddea)){if(_0x41f9d4[_0xa92581(0x199)]&&!_0x45bd54)_0x4915c8['push'](_0x41f9d4['cssUrl']),_0x45bd54=!![];else!_0x41f9d4['cssUrl']&&_0x4915c8[_0xa92581(0x193)](_0x40ddea);continue;}_0x4915c8[_0xa92581(0x193)](_0x40ddea);}return _0x41f9d4['jsUrl']&&!_0x3913fe&&_0x4915c8[_0xa92581(0x1b1)](_0x41f9d4[_0xa92581(0x1d4)]),_0x41f9d4['cssUrl']&&!_0x45bd54&&_0x4915c8['push'](_0x41f9d4[_0xa92581(0x199)]),_0x4915c8;}function isJsResource(_0x20626f){const _0x2efee7=a186_0x1c6d;return stripQuery(_0x20626f)[_0x2efee7(0x1bf)]()[_0x2efee7(0x1a4)]('.js');}function a186_0x1c6d(_0xe0d9cd,_0x2e7117){_0xe0d9cd=_0xe0d9cd-0x18f;const _0x23669b=a186_0x2366();let _0x1c6d1a=_0x23669b[_0xe0d9cd];return _0x1c6d1a;}function isCssResource(_0x302082){const _0x568ba5=a186_0x1c6d;return stripQuery(_0x302082)[_0x568ba5(0x1bf)]()[_0x568ba5(0x1a4)](_0x568ba5(0x195));}function stripQuery(_0x439438){const _0x20e35a=a186_0x1c6d;return _0x439438[_0x20e35a(0x1b2)]('?')[0x0]??_0x439438;}function parseUpdateParamsFlag(_0x174dd9){const _0xc70072=a186_0x1c6d;if(!_0x174dd9||typeof _0x174dd9!==_0xc70072(0x1a0))return{};try{const _0x515bcb=JSON['parse'](_0x174dd9);if(typeof _0x515bcb!==_0xc70072(0x1cc)||_0x515bcb===null||Array[_0xc70072(0x191)](_0x515bcb))return{};return{'jsUrl':typeof _0x515bcb[_0xc70072(0x1d4)]===_0xc70072(0x1a0)?_0x515bcb[_0xc70072(0x1d4)][_0xc70072(0x19d)]():undefined,'cssUrl':typeof _0x515bcb['cssUrl']===_0xc70072(0x1a0)?_0x515bcb['cssUrl'][_0xc70072(0x19d)]():undefined};}catch{return{};}}
@@ -1 +1 @@
1
- (function(_0x3ffd51,_0x11533b){const _0x3c65a9=a187_0x3f07,_0x2432e8=_0x3ffd51();while(!![]){try{const _0x43e147=parseInt(_0x3c65a9(0x1c4))/0x1*(parseInt(_0x3c65a9(0x1c0))/0x2)+-parseInt(_0x3c65a9(0x1c6))/0x3*(-parseInt(_0x3c65a9(0x1ca))/0x4)+parseInt(_0x3c65a9(0x1cb))/0x5*(parseInt(_0x3c65a9(0x1c5))/0x6)+-parseInt(_0x3c65a9(0x1c7))/0x7+parseInt(_0x3c65a9(0x1c9))/0x8+parseInt(_0x3c65a9(0x1be))/0x9+parseInt(_0x3c65a9(0x1bf))/0xa*(-parseInt(_0x3c65a9(0x1cd))/0xb);if(_0x43e147===_0x11533b)break;else _0x2432e8['push'](_0x2432e8['shift']());}catch(_0x521aef){_0x2432e8['push'](_0x2432e8['shift']());}}}(a187_0x15a2,0x72048));function a187_0x15a2(){const _0x18ed0c=['624TyFPzZ','309PbNxfo','41188NYuRJW','cancel','40856GTPxBb','21516sGlTYy','20395KCPZEC','test','8529323ctgDDB','8322939mOkMAU','20SzmaDa','21010ZzpQRX','trim','body','GET','11bWsRmp'];a187_0x15a2=function(){return _0x18ed0c;};return a187_0x15a2();}export function isValidJsHttpsUrl(_0x5869dd){const _0x2021ff=a187_0x3f07;return/^https:\/\/.+\.js(\?.*)?$/['test'](_0x5869dd[_0x2021ff(0x1c1)]());}function a187_0x3f07(_0x3ae788,_0xc1fa1){_0x3ae788=_0x3ae788-0x1be;const _0x15a2cd=a187_0x15a2();let _0x3f079f=_0x15a2cd[_0x3ae788];return _0x3f079f;}export function isValidCssHttpsUrl(_0x1c68b0){const _0x1b383d=a187_0x3f07;return/^https:\/\/.+\.css(\?.*)?$/[_0x1b383d(0x1cc)](_0x1c68b0[_0x1b383d(0x1c1)]());}export async function isUrlReachable(_0x14a3fb){const _0x2aed8c=a187_0x3f07;try{const _0xd09046=await fetch(_0x14a3fb,{'method':'HEAD'});if(_0xd09046['ok'])return!![];}catch{}try{const _0x345aef=await fetch(_0x14a3fb,{'method':_0x2aed8c(0x1c3),'headers':{'Range':'bytes=0-0'}}),_0x37fd3f=_0x345aef['ok'];try{await _0x345aef[_0x2aed8c(0x1c2)]?.[_0x2aed8c(0x1c8)]();}catch{}return _0x37fd3f;}catch{return![];}}
1
+ function a187_0x9205(){const _0x2cb8ad=['bytes=0-0','1317661OBElPi','test','237976yWTenV','HEAD','6crxglP','504nNifui','27126RqfyhV','cancel','GET','693080IZPlTa','2150355GmwnUY','823623QSPBDG','1007718MLmwIi','70IPrPTJ','4nIlLUW','11184KjnECG','trim'];a187_0x9205=function(){return _0x2cb8ad;};return a187_0x9205();}(function(_0x4b2ff9,_0x59fc20){const _0x17d25c=a187_0x3ccb,_0x50293f=_0x4b2ff9();while(!![]){try{const _0x28070c=-parseInt(_0x17d25c(0x148))/0x1+parseInt(_0x17d25c(0x14c))/0x2*(parseInt(_0x17d25c(0x141))/0x3)+parseInt(_0x17d25c(0x144))/0x4*(parseInt(_0x17d25c(0x140))/0x5)+-parseInt(_0x17d25c(0x142))/0x6*(-parseInt(_0x17d25c(0x143))/0x7)+-parseInt(_0x17d25c(0x14a))/0x8*(-parseInt(_0x17d25c(0x14d))/0x9)+-parseInt(_0x17d25c(0x151))/0xa+-parseInt(_0x17d25c(0x14e))/0xb*(parseInt(_0x17d25c(0x145))/0xc);if(_0x28070c===_0x59fc20)break;else _0x50293f['push'](_0x50293f['shift']());}catch(_0xcd562d){_0x50293f['push'](_0x50293f['shift']());}}}(a187_0x9205,0xdf16f));function a187_0x3ccb(_0x445a05,_0x57807f){_0x445a05=_0x445a05-0x140;const _0x920580=a187_0x9205();let _0x3ccb1b=_0x920580[_0x445a05];return _0x3ccb1b;}export function isValidJsHttpsUrl(_0x13f455){const _0x86c0a1=a187_0x3ccb;return/^https:\/\/.+\.js(\?.*)?$/['test'](_0x13f455[_0x86c0a1(0x146)]());}export function isValidCssHttpsUrl(_0x41e4fb){const _0x2a0cea=a187_0x3ccb;return/^https:\/\/.+\.css(\?.*)?$/[_0x2a0cea(0x149)](_0x41e4fb['trim']());}export async function isUrlReachable(_0x268d97){const _0x2d650e=a187_0x3ccb;try{const _0x449535=await fetch(_0x268d97,{'method':_0x2d650e(0x14b)});if(_0x449535['ok'])return!![];}catch{}try{const _0x3541ef=await fetch(_0x268d97,{'method':_0x2d650e(0x150),'headers':{'Range':_0x2d650e(0x147)}}),_0x52cd1f=_0x3541ef['ok'];try{await _0x3541ef['body']?.[_0x2d650e(0x14f)]();}catch{}return _0x52cd1f;}catch{return![];}}
@@ -1 +1 @@
1
- const a188_0x55c8be=a188_0x538f;(function(_0x9901eb,_0x34521a){const _0xfbbb99=a188_0x538f,_0x49faf4=_0x9901eb();while(!![]){try{const _0x2d3af4=parseInt(_0xfbbb99(0x1ec))/0x1+parseInt(_0xfbbb99(0x1e1))/0x2*(parseInt(_0xfbbb99(0x1e8))/0x3)+parseInt(_0xfbbb99(0x1e2))/0x4*(parseInt(_0xfbbb99(0x1ee))/0x5)+-parseInt(_0xfbbb99(0x1df))/0x6+parseInt(_0xfbbb99(0x1ed))/0x7+parseInt(_0xfbbb99(0x1e4))/0x8*(parseInt(_0xfbbb99(0x1e5))/0x9)+-parseInt(_0xfbbb99(0x1eb))/0xa*(parseInt(_0xfbbb99(0x1e3))/0xb);if(_0x2d3af4===_0x34521a)break;else _0x49faf4['push'](_0x49faf4['shift']());}catch(_0x341d4f){_0x49faf4['push'](_0x49faf4['shift']());}}}(a188_0x3366,0xa9123));function a188_0x3366(){const _0x3dee13=['24838JiiPAz','3222264DkTMwm','18HtlkqY','all','subapp-assets-status','6hMPAed','\x20menu(s)\x20for\x20','\x20in\x20menu\x20host\x20','16220effJgM','670305VMRDBI','9003484CxnTfR','446920QnCDdu','cookie','read','3063396NljZSs','Inspected\x20','1120250zAwAML','44WoFbTI'];a188_0x3366=function(){return _0x3dee13;};return a188_0x3366();}import{getSmartAppRecord}from'../../core/api-client.js';import{getOnlineMenuList}from'../../commands/menu/shared/service.js';function a188_0x538f(_0x517938,_0xe85ce4){_0x517938=_0x517938-0x1df;const _0x3366ac=a188_0x3366();let _0x538f81=_0x3366ac[_0x517938];return _0x538f81;}import{buildSubappAssetsStatus,getSubappSelector,SUBAPP_ASSET_SELECTOR_FLAGS}from'../../commands/menu/shared/subapp-assets.js';export const menuSubappAssetsStatus={'service':'menu','command':a188_0x55c8be(0x1e7),'description':'Inspect\x20shared\x20frontend\x20subapp\x20resources\x20and\x20menu\x20fallbacks\x20in\x20the\x20selected\x20menu\x20host','risk':a188_0x55c8be(0x1f0),'strictFlags':!![],'flags':SUBAPP_ASSET_SELECTOR_FLAGS,async 'validate'(_0x79d42b){getSubappSelector(_0x79d42b);},async 'execute'(_0x254068){const _0x284e46=a188_0x55c8be,{appCode:_0x255bff,appName:_0x159539}=getSubappSelector(_0x254068),[_0x32fdd5,_0x29ee8a]=await Promise[_0x284e46(0x1e6)]([getSmartAppRecord(_0x255bff,_0x254068[_0x284e46(0x1ef)]),getOnlineMenuList(_0x255bff,_0x254068[_0x284e46(0x1ef)])]),_0x30dc90={'appCode':_0x255bff,...buildSubappAssetsStatus(_0x32fdd5,_0x29ee8a,_0x159539)};return{'ok':!![],'data':_0x30dc90,'message':_0x284e46(0x1e0)+_0x30dc90['boundMenus']+_0x284e46(0x1e9)+_0x159539+_0x284e46(0x1ea)+_0x255bff+'.'};}};
1
+ const a188_0x4e1a04=a188_0x3e51;function a188_0x5731(){const _0x5222f6=['79486ZgvouC','6OepGla','read','10uawlDa','1625876QwXkZL','2iutdgz','2025135OVPzaG','1171970UdvkhO','\x20menu(s)\x20for\x20','26288VVELag','68GraFoY','172517xifZpC','all','cookie','9231fvzrJi','Inspect\x20shared\x20frontend\x20subapp\x20resources\x20and\x20menu\x20fallbacks\x20in\x20the\x20selected\x20menu\x20host','menu','boundMenus'];a188_0x5731=function(){return _0x5222f6;};return a188_0x5731();}(function(_0x3a347f,_0x474ab7){const _0x458635=a188_0x3e51,_0x502c23=_0x3a347f();while(!![]){try{const _0x43f2a7=parseInt(_0x458635(0x1a6))/0x1*(-parseInt(_0x458635(0x1a0))/0x2)+parseInt(_0x458635(0x1a9))/0x3*(parseInt(_0x458635(0x1a5))/0x4)+parseInt(_0x458635(0x1a2))/0x5+-parseInt(_0x458635(0x19c))/0x6*(-parseInt(_0x458635(0x19f))/0x7)+parseInt(_0x458635(0x1a4))/0x8+-parseInt(_0x458635(0x1a1))/0x9+parseInt(_0x458635(0x19e))/0xa*(parseInt(_0x458635(0x19b))/0xb);if(_0x43f2a7===_0x474ab7)break;else _0x502c23['push'](_0x502c23['shift']());}catch(_0x37f328){_0x502c23['push'](_0x502c23['shift']());}}}(a188_0x5731,0x2036f));function a188_0x3e51(_0x7b73c4,_0x1f367c){_0x7b73c4=_0x7b73c4-0x19b;const _0x57315e=a188_0x5731();let _0x3e511c=_0x57315e[_0x7b73c4];return _0x3e511c;}import{getSmartAppRecord}from'../../core/api-client.js';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_0x4e1a04(0x1ab),'command':'subapp-assets-status','description':a188_0x4e1a04(0x1aa),'risk':a188_0x4e1a04(0x19d),'strictFlags':!![],'flags':SUBAPP_ASSET_SELECTOR_FLAGS,async 'validate'(_0x1458b9){getSubappSelector(_0x1458b9);},async 'execute'(_0x1720e7){const _0x2521fc=a188_0x4e1a04,{appCode:_0x231e19,appName:_0x28a022}=getSubappSelector(_0x1720e7),[_0x2777c8,_0x4897e9]=await Promise[_0x2521fc(0x1a7)]([getSmartAppRecord(_0x231e19,_0x1720e7[_0x2521fc(0x1a8)]),getOnlineMenuList(_0x231e19,_0x1720e7[_0x2521fc(0x1a8)])]),_0x14b319={'appCode':_0x231e19,...buildSubappAssetsStatus(_0x2777c8,_0x4897e9,_0x28a022)};return{'ok':!![],'data':_0x14b319,'message':'Inspected\x20'+_0x14b319[_0x2521fc(0x1ac)]+_0x2521fc(0x1a3)+_0x28a022+'\x20in\x20menu\x20host\x20'+_0x231e19+'.'};}};
@@ -1 +1 @@
1
- const a189_0x4135b7=a189_0x11aa;(function(_0x5d62d8,_0x49ad84){const _0x395681=a189_0x11aa,_0xf7c065=_0x5d62d8();while(!![]){try{const _0x3ffb98=parseInt(_0x395681(0x1f4))/0x1*(parseInt(_0x395681(0x1d9))/0x2)+-parseInt(_0x395681(0x1ee))/0x3+parseInt(_0x395681(0x1cb))/0x4*(parseInt(_0x395681(0x1e6))/0x5)+parseInt(_0x395681(0x1fc))/0x6+parseInt(_0x395681(0x208))/0x7+-parseInt(_0x395681(0x1e7))/0x8+parseInt(_0x395681(0x207))/0x9;if(_0x3ffb98===_0x49ad84)break;else _0xf7c065['push'](_0xf7c065['shift']());}catch(_0x17ace5){_0xf7c065['push'](_0xf7c065['shift']());}}}(a189_0x3d4a,0x97d6e));import{createHash}from'node:crypto';import{isDeepStrictEqual}from'node:util';import{getSmartAppRecord,updateSmartAppRecord}from'../../core/api-client.js';function a189_0x3d4a(){const _0x344a75=['Preview\x20fingerprint\x20binding\x20the\x20host,\x20subapp,\x20resource\x20URLs\x20and\x20current\x20config;\x20required\x20for\x20writes','Updated\x20shared\x20resources\x20for\x20','expected-hash','\x20contains\x20invalid\x20JSON.','Existing\x20subapp.resources\x20contains\x20invalid\x20JSON.','1423431MhAzji','App\x20asset\x20update\x20verification\x20failed;\x20inspect\x20the\x20app\x20before\x20retrying.','appPublishStatus','resources[','object','Resources\x20need\x20one\x20JS\x20entry\x20and\x20no\x20duplicate\x20URLs.','1346SwAVXJ','Existing\x20subapp.resources\x20must\x20be\x20an\x20array\x20of\x20URLs.','before','Existing\x20subapp.resources\x20must\x20be\x20a\x20JSON\x20string.','appName','extend','app.extend','stringify','4120932jjOVSx','enableAutoSync','apiError','JSON\x20array\x20of\x20HTTPS\x20resource\x20URLs','appCode','sha256','validation','length','resources','directDbEnabled','trim','23427tVfHeJ','583667gghbIC','\x20must\x20be\x20a\x20JSON\x20object.','--resources\x20is\x20required.','--expected-hash\x20from\x20a\x20dry-run\x20is\x20required.','app.extend.assets\x20must\x20be\x20a\x20JSON\x20string;\x20refusing\x20update.','str','map','parse','unchanged','string','expectedHash','verified\x20app.extend','menu','enableOpenApi',']\x20must\x20be\x20a\x20URL\x20string.','hex','/smartapi/app/update','44HfueIw','nextExtend','write','cookie','update','some','App\x20ID\x20or\x20publish\x20status\x20is\x20missing;\x20refusing\x20a\x20generic\x20app\x20update.','entries','--resources\x20must\x20be\x20a\x20JSON\x20array\x20of\x20HTTPS\x20URLs.','Expected\x20exactly\x20one\x20existing\x20subapp\x20entry\x20for\x20','Shared\x20assets\x20already\x20match\x20the\x20requested\x20URLs.','tenantColumn','assets','skinColor','438sUsoZp','join',';\x20independent\x20deployment\x20not\x20verified.','app.extend.assets','filter','isSafeInteger','enableSample','test','isArray','.\x20Refusing\x20update.','\x20must\x20be\x20a\x20JSON\x20array.',';\x20found\x20','subapp-assets-update','166485eAMbcF','2699488DTAsWB','protocol'];a189_0x3d4a=function(){return _0x344a75;};return a189_0x3d4a();}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_0x4135b7(0x1d8),a189_0x4135b7(0x1c7),'accessKey','assets',a189_0x4135b7(0x1d6),a189_0x4135b7(0x1df),'vipDeploy',a189_0x4135b7(0x1fd),'directDbId',a189_0x4135b7(0x205)]);function parseObject(_0x16e62d,_0x5d3e5e){const _0x44a8d5=a189_0x4135b7;let _0x2072eb=_0x16e62d;if(typeof _0x16e62d===_0x44a8d5(0x1c3))try{_0x2072eb=JSON[_0x44a8d5(0x20f)](_0x16e62d);}catch{throw CliErrors[_0x44a8d5(0x202)](_0x5d3e5e+_0x44a8d5(0x1ec));}if(!_0x2072eb||typeof _0x2072eb!==_0x44a8d5(0x1f2)||Array[_0x44a8d5(0x1e1)](_0x2072eb))throw CliErrors['validation'](_0x5d3e5e+_0x44a8d5(0x209));return _0x2072eb;}function a189_0x11aa(_0x410eb8,_0x5ef039){_0x410eb8=_0x410eb8-0x1c2;const _0x3d4a82=a189_0x3d4a();let _0x11aa38=_0x3d4a82[_0x410eb8];return _0x11aa38;}function parseArray(_0x118bfe,_0x5b0ba6){const _0x3a47f8=a189_0x4135b7;let _0x20bf9b;try{_0x20bf9b=JSON[_0x3a47f8(0x20f)](_0x118bfe);}catch{throw CliErrors[_0x3a47f8(0x202)](_0x5b0ba6+'\x20contains\x20invalid\x20JSON.');}if(!Array[_0x3a47f8(0x1e1)](_0x20bf9b))throw CliErrors[_0x3a47f8(0x202)](_0x5b0ba6+_0x3a47f8(0x1e3));return _0x20bf9b[_0x3a47f8(0x20e)]((_0x15f508,_0x3e18fb)=>parseObject(_0x15f508,_0x5b0ba6+'['+_0x3e18fb+']'));}function validateResources(_0x4952fb){const _0x50e762=a189_0x4135b7;if(_0x4952fb['length']===0x0)throw CliErrors[_0x50e762(0x202)]('At\x20least\x20one\x20resource\x20URL\x20is\x20required.');for(const [_0xfaf047,_0x24952c]of _0x4952fb[_0x50e762(0x1d2)]()){if(typeof _0x24952c!==_0x50e762(0x1c3))throw CliErrors['validation']('resources['+_0xfaf047+_0x50e762(0x1c8));try{if(new URL(_0x24952c)[_0x50e762(0x1e8)]!=='https:')throw new Error('not\x20HTTPS');}catch{throw CliErrors['validation'](_0x50e762(0x1f1)+_0xfaf047+']\x20must\x20be\x20an\x20absolute\x20HTTPS\x20URL.');}}if(new Set(_0x4952fb)['size']!==_0x4952fb[_0x50e762(0x203)]||!_0x4952fb[_0x50e762(0x1d0)](_0x2fe4e5=>/\.m?js(?:[?#]|$)/i['test'](_0x2fe4e5)))throw CliErrors['validation'](_0x50e762(0x1f3));return _0x4952fb;}function prepare(_0x135944,_0x3aa5b0,_0x1953d1){const _0x5167b8=a189_0x4135b7;if(!Number[_0x5167b8(0x1de)](_0x135944['id'])||(_0x135944['id']??0x0)<=0x0||typeof _0x135944['appPublishStatus']!==_0x5167b8(0x1c3)||!_0x135944[_0x5167b8(0x1f0)])throw CliErrors['validation'](_0x5167b8(0x1d1));const _0x2f9c77=parseObject(_0x135944[_0x5167b8(0x1f9)],_0x5167b8(0x1fa)),_0x19cb3d=Object['keys'](_0x2f9c77)[_0x5167b8(0x1dd)](_0x26982e=>!KNOWN_EXTEND_KEYS['has'](_0x26982e));if(_0x19cb3d[_0x5167b8(0x203)])throw CliErrors[_0x5167b8(0x202)]('Unknown\x20app.extend\x20fields:\x20'+_0x19cb3d[_0x5167b8(0x1da)](',\x20')+_0x5167b8(0x1e2));if(typeof _0x2f9c77[_0x5167b8(0x1d7)]!==_0x5167b8(0x1c3))throw CliErrors['validation'](_0x5167b8(0x20c));const _0x173531=parseArray(_0x2f9c77[_0x5167b8(0x1d7)],_0x5167b8(0x1dc)),_0x339b1c=_0x173531[_0x5167b8(0x1dd)](_0xc6ac53=>_0xc6ac53[_0x5167b8(0x1f8)]===_0x3aa5b0);if(_0x339b1c[_0x5167b8(0x203)]!==0x1)throw CliErrors[_0x5167b8(0x202)](_0x5167b8(0x1d4)+_0x3aa5b0+_0x5167b8(0x1e4)+_0x339b1c[_0x5167b8(0x203)]+'.');const _0x304fe0=_0x339b1c[0x0];if(typeof _0x304fe0[_0x5167b8(0x204)]!==_0x5167b8(0x1c3))throw CliErrors['validation'](_0x5167b8(0x1f7));let _0x19170e;try{_0x19170e=JSON[_0x5167b8(0x20f)](_0x304fe0[_0x5167b8(0x204)]);}catch{throw CliErrors['validation'](_0x5167b8(0x1ed));}if(!Array['isArray'](_0x19170e)||_0x19170e[_0x5167b8(0x1d0)](_0x46d629=>typeof _0x46d629!=='string'))throw CliErrors[_0x5167b8(0x202)](_0x5167b8(0x1f5));const _0x38ee6f=_0x173531[_0x5167b8(0x20e)](_0xb5393c=>_0xb5393c===_0x304fe0?{..._0xb5393c,'resources':JSON[_0x5167b8(0x1fb)](_0x1953d1)}:_0xb5393c),_0x46102c={..._0x2f9c77,'assets':JSON['stringify'](_0x38ee6f)},_0x115215=createHash(_0x5167b8(0x201))[_0x5167b8(0x1cf)](JSON[_0x5167b8(0x1fb)]({'appCode':_0x135944[_0x5167b8(0x200)],'id':_0x135944['id'],'appPublishStatus':_0x135944['appPublishStatus'],'extend':_0x2f9c77,'appName':_0x3aa5b0,'resources':_0x1953d1}))['digest'](_0x5167b8(0x1c9));return{'before':_0x19170e,'nextExtend':_0x46102c,'expectedHash':_0x115215,'unchanged':isDeepStrictEqual(_0x19170e,_0x1953d1)};}function flags(_0x19fe7b){const _0x43a965=a189_0x4135b7,{appCode:_0x27233c,appName:_0x5a2c9e}=getSubappSelector(_0x19fe7b),_0x231f23=_0x19fe7b[_0x43a965(0x20d)]('resources')[_0x43a965(0x206)]();if(!_0x231f23)throw CliErrors[_0x43a965(0x202)](_0x43a965(0x20a));let _0x36a7d4;try{_0x36a7d4=JSON[_0x43a965(0x20f)](_0x231f23);}catch{throw CliErrors[_0x43a965(0x202)]('--resources\x20must\x20be\x20a\x20JSON\x20array\x20of\x20HTTPS\x20URLs.');}if(!Array[_0x43a965(0x1e1)](_0x36a7d4))throw CliErrors[_0x43a965(0x202)](_0x43a965(0x1d3));return{'appCode':_0x27233c,'appName':_0x5a2c9e,'resources':validateResources(_0x36a7d4)};}export const menuSubappAssetsUpdate={'service':a189_0x4135b7(0x1c6),'command':a189_0x4135b7(0x1e5),'description':'Update\x20one\x20frontend\x20subapp\x20resource\x20URL\x20set\x20in\x20the\x20selected\x20menu\x20host','risk':a189_0x4135b7(0x1cd),'strictFlags':!![],'flags':[...SUBAPP_ASSET_SELECTOR_FLAGS,{'name':a189_0x4135b7(0x204),'type':a189_0x4135b7(0x1c3),'required':!![],'description':a189_0x4135b7(0x1ff)},{'name':a189_0x4135b7(0x1eb),'type':a189_0x4135b7(0x1c3),'description':a189_0x4135b7(0x1e9)}],async 'validate'(_0x457146){flags(_0x457146);},async 'dryRun'(_0x1cf194){const _0xc57855=a189_0x4135b7,{appCode:_0x4e6c73,appName:_0x4ee43d,resources:_0x259674}=flags(_0x1cf194),_0x79b96b=await getSmartAppRecord(_0x4e6c73,_0x1cf194[_0xc57855(0x1ce)]),_0x1cb904=prepare(_0x79b96b,_0x4ee43d,_0x259674);return{'method':'POST','url':_0xc57855(0x1ca),'body':{'preview':{'appCode':_0x4e6c73,'appName':_0x4ee43d,'before':_0x1cb904[_0xc57855(0x1f6)],'after':_0x259674,'expectedHash':_0x1cb904[_0xc57855(0x1c4)],'unchanged':_0x1cb904[_0xc57855(0x1c2)],'remoteContentVerified':![],'independentDeploymentVerified':![]}},'description':_0x1cb904[_0xc57855(0x1c2)]?_0xc57855(0x1d5):'Would\x20update\x20shared\x20assets\x20for\x20'+_0x4ee43d+'.'};},async 'execute'(_0x7f4dbf){const _0xada29f=a189_0x4135b7,{appCode:_0x373d1e,appName:_0x909c4,resources:_0x54def6}=flags(_0x7f4dbf),_0xb5f5f9=_0x7f4dbf[_0xada29f(0x20d)](_0xada29f(0x1eb))['trim']();if(!/^[a-f0-9]{64}$/i[_0xada29f(0x1e0)](_0xb5f5f9))throw CliErrors[_0xada29f(0x202)](_0xada29f(0x20b));const _0x24d86d=await getSmartAppRecord(_0x373d1e,_0x7f4dbf[_0xada29f(0x1ce)]),_0x431da6=prepare(_0x24d86d,_0x909c4,_0x54def6);if(_0xb5f5f9!==_0x431da6[_0xada29f(0x1c4)])throw CliErrors[_0xada29f(0x202)]('App\x20assets\x20or\x20update\x20target\x20changed\x20since\x20preview;\x20the\x20fingerprint\x20does\x20not\x20match.\x20Run\x20a\x20new\x20dry-run.');if(_0x431da6['unchanged'])return{'ok':!![],'data':{'appCode':_0x373d1e,'appName':_0x909c4,'updated':![],'managementConfirmed':!![],'independentDeploymentVerified':![],'remoteContentVerified':![]},'message':'Management\x20app\x20assets\x20already\x20match;\x20independent\x20deployment\x20not\x20verified.'};await updateSmartAppRecord({'id':_0x24d86d['id'],'appCode':_0x373d1e,'appPublishStatus':_0x24d86d[_0xada29f(0x1f0)],'extend':_0x431da6[_0xada29f(0x1cc)]},_0x7f4dbf['cookie']);const _0x24b511=await getSmartAppRecord(_0x373d1e,_0x7f4dbf[_0xada29f(0x1ce)]),_0x2261e9=parseObject(_0x24b511[_0xada29f(0x1f9)],_0xada29f(0x1c5));if(_0x24b511['id']!==_0x24d86d['id']||_0x24b511[_0xada29f(0x1f0)]!==_0x24d86d[_0xada29f(0x1f0)]||!isDeepStrictEqual(_0x2261e9,_0x431da6[_0xada29f(0x1cc)]))throw CliErrors[_0xada29f(0x1fe)](_0xada29f(0x1ef));return{'ok':!![],'data':{'appCode':_0x373d1e,'appName':_0x909c4,'updated':!![],'resources':_0x54def6,'managementConfirmed':!![],'independentDeploymentVerified':![],'remoteContentVerified':![]},'message':_0xada29f(0x1ea)+_0x909c4+'\x20in\x20menu\x20host\x20'+_0x373d1e+_0xada29f(0x1db)};}};
1
+ const a189_0x56793d=a189_0x4646;function a189_0x4646(_0x17750f,_0xa41640){_0x17750f=_0x17750f-0x80;const _0x5f4238=a189_0x5f42();let _0x464611=_0x5f4238[_0x17750f];return _0x464611;}(function(_0x56a256,_0x25d687){const _0x320b78=a189_0x4646,_0x3aaeba=_0x56a256();while(!![]){try{const _0x2053c7=-parseInt(_0x320b78(0x80))/0x1+parseInt(_0x320b78(0x81))/0x2*(-parseInt(_0x320b78(0xb6))/0x3)+-parseInt(_0x320b78(0xc6))/0x4*(parseInt(_0x320b78(0xc2))/0x5)+parseInt(_0x320b78(0x9d))/0x6+parseInt(_0x320b78(0xb3))/0x7*(parseInt(_0x320b78(0xbb))/0x8)+parseInt(_0x320b78(0xbe))/0x9*(parseInt(_0x320b78(0xa2))/0xa)+parseInt(_0x320b78(0x85))/0xb;if(_0x2053c7===_0x25d687)break;else _0x3aaeba['push'](_0x3aaeba['shift']());}catch(_0x1aeb2d){_0x3aaeba['push'](_0x3aaeba['shift']());}}}(a189_0x5f42,0xcc890));import{createHash}from'node:crypto';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(['skinColor',a189_0x56793d(0xba),'accessKey',a189_0x56793d(0x9a),a189_0x56793d(0xaa),a189_0x56793d(0xa1),a189_0x56793d(0xb8),'enableAutoSync',a189_0x56793d(0xb7),a189_0x56793d(0x98)]);function a189_0x5f42(){const _0x58f1bc=['App\x20assets\x20or\x20update\x20target\x20changed\x20since\x20preview;\x20the\x20fingerprint\x20does\x20not\x20match.\x20Run\x20a\x20new\x20dry-run.','1396609jpQcfx','1038kflJFw','object','apiError','Updated\x20shared\x20resources\x20for\x20','9306066aatSGv','Unknown\x20app.extend\x20fields:\x20','before','length','entries','app.extend.assets\x20must\x20be\x20a\x20JSON\x20string;\x20refusing\x20update.','digest','resources','subapp-assets-update','unchanged',';\x20found\x20','appPublishStatus','.\x20Refusing\x20update.','Existing\x20subapp.resources\x20must\x20be\x20an\x20array\x20of\x20URLs.','test','expected-hash','map','isArray','string','directDbEnabled','parse','assets','Update\x20one\x20frontend\x20subapp\x20resource\x20URL\x20set\x20in\x20the\x20selected\x20menu\x20host','POST','1982094VDVzuK','filter','isSafeInteger','--resources\x20must\x20be\x20a\x20JSON\x20array\x20of\x20HTTPS\x20URLs.','enableSample','2819150bLbxnS','trim','Would\x20update\x20shared\x20assets\x20for\x20','\x20must\x20be\x20a\x20JSON\x20array.','cookie','stringify','has','some','tenantColumn','write','resources[','Existing\x20subapp.resources\x20contains\x20invalid\x20JSON.','sha256','not\x20HTTPS','https:','\x20must\x20be\x20a\x20JSON\x20object.','menu','147HJsWcK','--resources\x20is\x20required.','At\x20least\x20one\x20resource\x20URL\x20is\x20required.','3273SrqQuv','directDbId','vipDeploy','Preview\x20fingerprint\x20binding\x20the\x20host,\x20subapp,\x20resource\x20URLs\x20and\x20current\x20config;\x20required\x20for\x20writes','enableOpenApi','580664UiwYQd','nextExtend','\x20contains\x20invalid\x20JSON.','9WKkzHK','Shared\x20assets\x20already\x20match\x20the\x20requested\x20URLs.','verified\x20app.extend','extend','909495wYHovP','update','validation','Resources\x20need\x20one\x20JS\x20entry\x20and\x20no\x20duplicate\x20URLs.','4nAqgFw','/smartapi/app/update','Expected\x20exactly\x20one\x20existing\x20subapp\x20entry\x20for\x20','str','Existing\x20subapp.resources\x20must\x20be\x20a\x20JSON\x20string.','protocol','App\x20ID\x20or\x20publish\x20status\x20is\x20missing;\x20refusing\x20a\x20generic\x20app\x20update.'];a189_0x5f42=function(){return _0x58f1bc;};return a189_0x5f42();}function parseObject(_0x28e052,_0x207321){const _0x3dceda=a189_0x56793d;let _0x56231f=_0x28e052;if(typeof _0x28e052===_0x3dceda(0x97))try{_0x56231f=JSON[_0x3dceda(0x99)](_0x28e052);}catch{throw CliErrors['validation'](_0x207321+_0x3dceda(0xbd));}if(!_0x56231f||typeof _0x56231f!==_0x3dceda(0x82)||Array[_0x3dceda(0x96)](_0x56231f))throw CliErrors['validation'](_0x207321+_0x3dceda(0xb1));return _0x56231f;}function parseArray(_0x5eba91,_0x21bf06){const _0x2d2d8e=a189_0x56793d;let _0x24b0c8;try{_0x24b0c8=JSON[_0x2d2d8e(0x99)](_0x5eba91);}catch{throw CliErrors[_0x2d2d8e(0xc4)](_0x21bf06+_0x2d2d8e(0xbd));}if(!Array[_0x2d2d8e(0x96)](_0x24b0c8))throw CliErrors[_0x2d2d8e(0xc4)](_0x21bf06+_0x2d2d8e(0xa5));return _0x24b0c8[_0x2d2d8e(0x95)]((_0x2a54aa,_0x370024)=>parseObject(_0x2a54aa,_0x21bf06+'['+_0x370024+']'));}function validateResources(_0x3e88bf){const _0x5819f1=a189_0x56793d;if(_0x3e88bf['length']===0x0)throw CliErrors[_0x5819f1(0xc4)](_0x5819f1(0xb5));for(const [_0x326245,_0x592f90]of _0x3e88bf[_0x5819f1(0x89)]()){if(typeof _0x592f90!==_0x5819f1(0x97))throw CliErrors['validation'](_0x5819f1(0xac)+_0x326245+']\x20must\x20be\x20a\x20URL\x20string.');try{if(new URL(_0x592f90)[_0x5819f1(0xcb)]!==_0x5819f1(0xb0))throw new Error(_0x5819f1(0xaf));}catch{throw CliErrors[_0x5819f1(0xc4)](_0x5819f1(0xac)+_0x326245+']\x20must\x20be\x20an\x20absolute\x20HTTPS\x20URL.');}}if(new Set(_0x3e88bf)['size']!==_0x3e88bf[_0x5819f1(0x88)]||!_0x3e88bf[_0x5819f1(0xa9)](_0x3d742f=>/\.m?js(?:[?#]|$)/i[_0x5819f1(0x93)](_0x3d742f)))throw CliErrors[_0x5819f1(0xc4)](_0x5819f1(0xc5));return _0x3e88bf;}function prepare(_0x37f1ed,_0x3c8d07,_0xe69cf5){const _0xba18f1=a189_0x56793d;if(!Number[_0xba18f1(0x9f)](_0x37f1ed['id'])||(_0x37f1ed['id']??0x0)<=0x0||typeof _0x37f1ed[_0xba18f1(0x90)]!=='string'||!_0x37f1ed[_0xba18f1(0x90)])throw CliErrors[_0xba18f1(0xc4)](_0xba18f1(0xcc));const _0x46fb1a=parseObject(_0x37f1ed[_0xba18f1(0xc1)],'app.extend'),_0x4526df=Object['keys'](_0x46fb1a)[_0xba18f1(0x9e)](_0x186b3f=>!KNOWN_EXTEND_KEYS[_0xba18f1(0xa8)](_0x186b3f));if(_0x4526df[_0xba18f1(0x88)])throw CliErrors['validation'](_0xba18f1(0x86)+_0x4526df['join'](',\x20')+_0xba18f1(0x91));if(typeof _0x46fb1a[_0xba18f1(0x9a)]!==_0xba18f1(0x97))throw CliErrors[_0xba18f1(0xc4)](_0xba18f1(0x8a));const _0x2f32fd=parseArray(_0x46fb1a[_0xba18f1(0x9a)],'app.extend.assets'),_0x279658=_0x2f32fd[_0xba18f1(0x9e)](_0x12fda9=>_0x12fda9['appName']===_0x3c8d07);if(_0x279658[_0xba18f1(0x88)]!==0x1)throw CliErrors[_0xba18f1(0xc4)](_0xba18f1(0xc8)+_0x3c8d07+_0xba18f1(0x8f)+_0x279658[_0xba18f1(0x88)]+'.');const _0x26e81b=_0x279658[0x0];if(typeof _0x26e81b[_0xba18f1(0x8c)]!==_0xba18f1(0x97))throw CliErrors[_0xba18f1(0xc4)](_0xba18f1(0xca));let _0x5b0005;try{_0x5b0005=JSON['parse'](_0x26e81b['resources']);}catch{throw CliErrors['validation'](_0xba18f1(0xad));}if(!Array[_0xba18f1(0x96)](_0x5b0005)||_0x5b0005['some'](_0x3a87be=>typeof _0x3a87be!==_0xba18f1(0x97)))throw CliErrors[_0xba18f1(0xc4)](_0xba18f1(0x92));const _0x4912d2=_0x2f32fd[_0xba18f1(0x95)](_0x463255=>_0x463255===_0x26e81b?{..._0x463255,'resources':JSON[_0xba18f1(0xa7)](_0xe69cf5)}:_0x463255),_0x57089f={..._0x46fb1a,'assets':JSON[_0xba18f1(0xa7)](_0x4912d2)},_0x11f403=createHash(_0xba18f1(0xae))[_0xba18f1(0xc3)](JSON['stringify']({'appCode':_0x37f1ed['appCode'],'id':_0x37f1ed['id'],'appPublishStatus':_0x37f1ed[_0xba18f1(0x90)],'extend':_0x46fb1a,'appName':_0x3c8d07,'resources':_0xe69cf5}))[_0xba18f1(0x8b)]('hex');return{'before':_0x5b0005,'nextExtend':_0x57089f,'expectedHash':_0x11f403,'unchanged':isDeepStrictEqual(_0x5b0005,_0xe69cf5)};}function flags(_0x5dd20b){const _0x5e5ae1=a189_0x56793d,{appCode:_0xc1ad14,appName:_0x40f230}=getSubappSelector(_0x5dd20b),_0x117cf6=_0x5dd20b[_0x5e5ae1(0xc9)](_0x5e5ae1(0x8c))[_0x5e5ae1(0xa3)]();if(!_0x117cf6)throw CliErrors[_0x5e5ae1(0xc4)](_0x5e5ae1(0xb4));let _0x5b2178;try{_0x5b2178=JSON[_0x5e5ae1(0x99)](_0x117cf6);}catch{throw CliErrors['validation'](_0x5e5ae1(0xa0));}if(!Array[_0x5e5ae1(0x96)](_0x5b2178))throw CliErrors['validation'](_0x5e5ae1(0xa0));return{'appCode':_0xc1ad14,'appName':_0x40f230,'resources':validateResources(_0x5b2178)};}export const menuSubappAssetsUpdate={'service':a189_0x56793d(0xb2),'command':a189_0x56793d(0x8d),'description':a189_0x56793d(0x9b),'risk':a189_0x56793d(0xab),'strictFlags':!![],'flags':[...SUBAPP_ASSET_SELECTOR_FLAGS,{'name':a189_0x56793d(0x8c),'type':'string','required':!![],'description':'JSON\x20array\x20of\x20HTTPS\x20resource\x20URLs'},{'name':a189_0x56793d(0x94),'type':a189_0x56793d(0x97),'description':a189_0x56793d(0xb9)}],async 'validate'(_0x3f7e54){flags(_0x3f7e54);},async 'dryRun'(_0x2d7d35){const _0x5f51fa=a189_0x56793d,{appCode:_0x2f89c6,appName:_0x5b9d8c,resources:_0xf0766e}=flags(_0x2d7d35),_0x4a5801=await getSmartAppRecord(_0x2f89c6,_0x2d7d35['cookie']),_0x24a1ce=prepare(_0x4a5801,_0x5b9d8c,_0xf0766e);return{'method':_0x5f51fa(0x9c),'url':_0x5f51fa(0xc7),'body':{'preview':{'appCode':_0x2f89c6,'appName':_0x5b9d8c,'before':_0x24a1ce[_0x5f51fa(0x87)],'after':_0xf0766e,'expectedHash':_0x24a1ce['expectedHash'],'unchanged':_0x24a1ce[_0x5f51fa(0x8e)],'remoteContentVerified':![],'independentDeploymentVerified':![]}},'description':_0x24a1ce['unchanged']?_0x5f51fa(0xbf):_0x5f51fa(0xa4)+_0x5b9d8c+'.'};},async 'execute'(_0x181360){const _0x10ca66=a189_0x56793d,{appCode:_0x552de8,appName:_0x1303d2,resources:_0x22e08a}=flags(_0x181360),_0x4c611f=_0x181360['str'](_0x10ca66(0x94))['trim']();if(!/^[a-f0-9]{64}$/i[_0x10ca66(0x93)](_0x4c611f))throw CliErrors[_0x10ca66(0xc4)]('--expected-hash\x20from\x20a\x20dry-run\x20is\x20required.');const _0x190084=await getSmartAppRecord(_0x552de8,_0x181360[_0x10ca66(0xa6)]),_0x560024=prepare(_0x190084,_0x1303d2,_0x22e08a);if(_0x4c611f!==_0x560024['expectedHash'])throw CliErrors['validation'](_0x10ca66(0xcd));if(_0x560024['unchanged'])return{'ok':!![],'data':{'appCode':_0x552de8,'appName':_0x1303d2,'updated':![],'managementConfirmed':!![],'independentDeploymentVerified':![],'remoteContentVerified':![]},'message':'Management\x20app\x20assets\x20already\x20match;\x20independent\x20deployment\x20not\x20verified.'};await updateSmartAppRecord({'id':_0x190084['id'],'appCode':_0x552de8,'appPublishStatus':_0x190084[_0x10ca66(0x90)],'extend':_0x560024[_0x10ca66(0xbc)]},_0x181360[_0x10ca66(0xa6)]);const _0x1efa3c=await getSmartAppRecord(_0x552de8,_0x181360['cookie']),_0x5ae52c=parseObject(_0x1efa3c[_0x10ca66(0xc1)],_0x10ca66(0xc0));if(_0x1efa3c['id']!==_0x190084['id']||_0x1efa3c[_0x10ca66(0x90)]!==_0x190084[_0x10ca66(0x90)]||!isDeepStrictEqual(_0x5ae52c,_0x560024[_0x10ca66(0xbc)]))throw CliErrors[_0x10ca66(0x83)]('App\x20asset\x20update\x20verification\x20failed;\x20inspect\x20the\x20app\x20before\x20retrying.');return{'ok':!![],'data':{'appCode':_0x552de8,'appName':_0x1303d2,'updated':!![],'resources':_0x22e08a,'managementConfirmed':!![],'independentDeploymentVerified':![],'remoteContentVerified':![]},'message':_0x10ca66(0x84)+_0x1303d2+'\x20in\x20menu\x20host\x20'+_0x552de8+';\x20independent\x20deployment\x20not\x20verified.'};}};
@@ -1 +1 @@
1
- const a190_0x321164=a190_0x5ae5;(function(_0x572abe,_0xa2706b){const _0x4e3efb=a190_0x5ae5,_0x336c4c=_0x572abe();while(!![]){try{const _0x4a02ad=parseInt(_0x4e3efb(0xcf))/0x1*(parseInt(_0x4e3efb(0xd6))/0x2)+-parseInt(_0x4e3efb(0xff))/0x3*(parseInt(_0x4e3efb(0xca))/0x4)+parseInt(_0x4e3efb(0xde))/0x5*(parseInt(_0x4e3efb(0xe8))/0x6)+-parseInt(_0x4e3efb(0xd0))/0x7*(-parseInt(_0x4e3efb(0x115))/0x8)+parseInt(_0x4e3efb(0x113))/0x9+-parseInt(_0x4e3efb(0x104))/0xa+-parseInt(_0x4e3efb(0xcb))/0xb*(-parseInt(_0x4e3efb(0xdd))/0xc);if(_0x4a02ad===_0xa2706b)break;else _0x336c4c['push'](_0x336c4c['shift']());}catch(_0x661bb1){_0x336c4c['push'](_0x336c4c['shift']());}}}(a190_0x49e5,0xe8aa0));import a190_0x4c5358 from'chalk';function a190_0x49e5(){const _0xfec09=['2547105JfOOvR','created','\x20\x20Create\x20','\x20page(s)','No\x20local\x20microfrontend\x20menus\x20would\x20be\x20created.','Menu\x20sync\x20completed:\x20','Created\x20','Fetching\x20online\x20menu\x20list...','write','menu','6iuAcgx','appCode','onlineMenuList','params','failed','yes','validation','\x20menu(s)\x20bound\x20to\x20','selectedAppName','filter','flag','\x20menu(s)','\x20\x20Continue\x20with\x20creation?','appName','menu\x20sync\x20requires\x20a\x20project\x20context\x20or\x20explicit\x20--appcode.\x20','size','cookie','Failed\x20to\x20fetch\x20online\x20menu\x20list','POST','Confirm\x20non-interactive\x20sync;\x20without\x20--paths,\x20create\x20all\x20missing\x20local\x20pages','✓\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform','skipped','string','3764313SXrrUN','length','message','Run\x20inside\x20a\x20directory\x20with\x20.rabetbase.json,\x20or\x20pass\x20--appcode\x20<code>.','Menu\x20creation\x20failed','15057760TSkhfX','jsUrl','paths','Tip:\x20For\x20frontend\x20subapps,\x20prefer\x20Agent-planned\x20menu\x20groups\x20and\x20shared\x20resources.\x20This\x20manual\x20sync\x20workflow\x20remains\x20available\x20as\x20a\x20fallback.','split','Register\x20local\x20pages\x20as\x20platform\x20menus','\x20created.','appcode','str','Non-interactive\x20menu\x20sync\x20requires\x20--yes.','Prefer\x20appName\x20for\x20shared\x20subapp\x20resources\x20and\x20parentId\x20for\x20planned\x20groups.\x20','JSON:\x20{\x22appName\x22:\x22store-app\x22,\x22parentId\x22:42,\x22visible\x22:false};\x20jsUrl\x20and\x20cssUrl\x20remain\x20available\x20for\x20individual\x20menu\x20resources.','\x20menu(s)\x20created','map','\x20\x20Cancelled.','13180446wjxJOw','\x20\x20✓\x20Selected:\x20','8XQrdBQ','4QPeZKO','857098klwZXr','\x20local\x20microfrontend\x20menu(s).','cssUrl','Preview\x20with\x20--dry-run,\x20then\x20reuse\x20the\x20same\x20--paths\x20and\x20--params\x20with\x20--yes.','1xmOmQn','6613453TAAqSj','\x20menu(s)...','boolean','\x20menu(s)\x20with\x20JS:\x20','trim','\x20and\x20CSS:\x20','1122182EidYZI','rawFlags','\x20created,\x20','\x20\x20!\x20No\x20local\x20pages\x20found,\x20please\x20create\x20pages\x20first','yellow','Exact\x20comma-separated\x20local\x20page\x20paths\x20to\x20sync','Menu\x20sync\x20skipped','36FUkgOt'];a190_0x49e5=function(){return _0xfec09;};return a190_0x49e5();}import{buildCompareRows,doCreateMenus,fetchMenuData}from'../../commands/menu/shared/logic.js';import{renderCompareTable,renderSyncSummary}from'../../commands/menu/shared/compare-table.js';function a190_0x5ae5(_0x44e04c,_0x12d987){_0x44e04c=_0x44e04c-0xca;const _0x49e555=a190_0x49e5();let _0x5ae580=_0x49e555[_0x44e04c];return _0x5ae580;}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_0x321164(0xe7),'command':'sync','description':a190_0x321164(0x109),'risk':a190_0x321164(0xe6),'flags':[{'name':a190_0x321164(0xeb),'type':a190_0x321164(0xfe),'description':a190_0x321164(0x10e)+a190_0x321164(0x10f)},{'name':a190_0x321164(0x106),'type':a190_0x321164(0xfe),'description':a190_0x321164(0xdb)},{'name':'yes','type':a190_0x321164(0xd2),'description':a190_0x321164(0xfb)}],async 'dryRun'(_0x1ffaa0){const _0x1477ab=a190_0x321164;ensureRunnableContext(_0x1ffaa0[_0x1477ab(0xd7)],_0x1ffaa0[_0x1477ab(0xf0)]);const _0x53cf5c=await runMenuSyncCore(_0x1ffaa0[_0x1477ab(0xe9)],_0x1ffaa0[_0x1477ab(0xf8)],parsePaths(_0x1ffaa0['str'](_0x1477ab(0x106))),_0x1ffaa0['str'](_0x1477ab(0xeb)),{'dryRun':!![]});return{'method':_0x1477ab(0xfa),'url':'/smartapi/menu/create','body':_0x53cf5c,'description':_0x53cf5c[_0x1477ab(0xfd)]?_0x1477ab(0xe2):'Would\x20create\x20'+_0x53cf5c['targetPages'][_0x1477ab(0x100)]+_0x1477ab(0xcc)};},async 'execute'(_0x4ca8ff){const _0x2273aa=a190_0x321164;ensureRunnableContext(_0x4ca8ff[_0x2273aa(0xd7)],_0x4ca8ff[_0x2273aa(0xf0)]);const _0xbd161a=_0x4ca8ff[_0x2273aa(0xf2)](_0x2273aa(0xed)),_0x2ca458=_0x4ca8ff[_0x2273aa(0x10c)]('params'),_0x545ebb=parsePaths(_0x4ca8ff['str'](_0x2273aa(0x106))),_0x49babb=parseMenuSyncParams(_0x2ca458);if(_0xbd161a){const _0x385f30=await runMenuSyncCore(_0x4ca8ff[_0x2273aa(0xe9)],_0x4ca8ff[_0x2273aa(0xf8)],_0x545ebb,_0x2ca458);if(_0x385f30[_0x2273aa(0xfd)]){const _0x375ff2=getLocalPages();_0x375ff2[_0x2273aa(0x100)]===0x0?writeCliSideChannelLine('!\x20No\x20local\x20pages\x20found\x20in\x20src/pages'):writeCliSideChannelLine(_0x2273aa(0xfc));}else writeCliSideChannelLine('✓\x20Menu\x20sync\x20completed:\x20'+_0x385f30[_0x2273aa(0xdf)]+_0x2273aa(0x110));return{'ok':!![],'data':_0x385f30,'message':_0x385f30['skipped']?_0x2273aa(0xdc):_0x2273aa(0xe3)+_0x385f30[_0x2273aa(0xdf)]+_0x2273aa(0x10a)};}if(_0x545ebb[_0x2273aa(0x100)]>0x0)throw CliErrors[_0x2273aa(0xee)]('menu\x20sync\x20--paths\x20requires\x20--yes\x20for\x20execution.',_0x2273aa(0xce));if(!isInteractive()&&_0x2ca458)throw CliErrors[_0x2273aa(0xee)](_0x2273aa(0x10d),_0x2273aa(0xce));requireInteractive(),writeCliSideChannelLine(_0x2273aa(0x107));const _0x1e4227=startSpinner(_0x2273aa(0xe5));let _0x2afe96,_0x50868e,_0x1d82e1;try{const _0x1d2355=await fetchMenuData(_0x4ca8ff['appCode'],_0x4ca8ff[_0x2273aa(0xf8)]);_0x2afe96=_0x1d2355['localPages'],_0x50868e=_0x1d2355['onlinePaths'],_0x1d82e1=_0x1d2355[_0x2273aa(0xea)],stopSpinner(_0x1e4227,'Online\x20menu\x20list\x20fetched',!![]);}catch(_0x35de77){stopSpinner(_0x1e4227,_0x2273aa(0xf9),![]);throw CliErrors['validation'](_0x35de77 instanceof Error?_0x35de77[_0x2273aa(0x101)]:_0x2273aa(0xf9));}if(_0x2afe96[_0x2273aa(0x100)]===0x0)return writeCliSideChannelLine(a190_0x4c5358[_0x2273aa(0xda)](_0x2273aa(0xd9))),{'ok':!![]};const _0x1dfea4=buildCompareRows(_0x2afe96,_0x50868e);writeCliSideChannelLine(renderCompareTable(_0x1dfea4)),writeCliSideChannelLine('');const _0x3eb395=await selectPages(_0x2afe96,_0x50868e);writeCliSideChannelLine(''),writeCliSideChannelLine(a190_0x4c5358['cyan'](_0x2273aa(0x114)+_0x3eb395[_0x2273aa(0x100)]+_0x2273aa(0xe1)));const _0x544015=_0x49babb[_0x2273aa(0x105)]&&_0x49babb[_0x2273aa(0xcd)];if(!_0x544015){writeCliSideChannelLine(renderSyncSummary(_0x3eb395,_0x50868e[_0x2273aa(0xf7)]>0x0));const _0x1ec884=await askConfirm(_0x2273aa(0xf4));if(!_0x1ec884)return writeCliSideChannelLine(a190_0x4c5358['gray'](_0x2273aa(0x112))),{'ok':!![]};}let _0x352962=_0x49babb[_0x2273aa(0x105)],_0x382203=_0x49babb[_0x2273aa(0xcd)];!_0x352962&&!_0x49babb[_0x2273aa(0xf5)]&&(_0x352962=await askJsUrl());!_0x382203&&!_0x49babb['appName']&&(_0x382203=await askCssUrl());const _0x52ac21=await askConfirm(_0x49babb[_0x2273aa(0xf5)]?_0x2273aa(0xe0)+_0x3eb395['length']+_0x2273aa(0xef)+_0x49babb['appName']+'?':_0x2273aa(0xe0)+_0x3eb395['length']+_0x2273aa(0xd3)+_0x352962+_0x2273aa(0xd5)+_0x382203+'?');if(!_0x52ac21)return writeCliSideChannelLine(a190_0x4c5358['gray'](_0x2273aa(0x112))),{'ok':!![]};const _0x35b64d=[_0x352962,_0x382203]['filter'](_0x212691=>Boolean(_0x212691));_0x49babb[_0x2273aa(0xf5)]&&_0x35b64d[_0x2273aa(0x100)]===0x0&&await assertSharedResourcesConfigured(_0x4ca8ff[_0x2273aa(0xe9)],_0x4ca8ff[_0x2273aa(0xf8)],_0x49babb[_0x2273aa(0xf5)]);const _0x1579cc=startSpinner('Creating\x20'+_0x3eb395[_0x2273aa(0x100)]+_0x2273aa(0xd1));try{const _0x3c0cb5=_0x3eb395[_0x2273aa(0x111)](_0xbcc12a=>resolvePage(_0xbcc12a,_0x49babb,_0x1d82e1)),_0x2ce2f5=await doCreateMenus(_0x4ca8ff['appCode'],_0x4ca8ff['cookie'],_0x3c0cb5,_0x35b64d,_0x49babb['appName']?{'appName':_0x49babb['appName']}:undefined);return stopSpinner(_0x1579cc,_0x2273aa(0xe4)+_0x2ce2f5[_0x2273aa(0xdf)]+_0x2273aa(0xf3),!![]),{'ok':!![],'data':_0x2ce2f5,'message':_0x2273aa(0xe3)+_0x2ce2f5[_0x2273aa(0xdf)]+_0x2273aa(0xd8)+_0x2ce2f5[_0x2273aa(0xec)]+'\x20failed.'};}catch(_0x352245){stopSpinner(_0x1579cc,_0x2273aa(0x103),![]);throw CliErrors[_0x2273aa(0xee)](_0x352245 instanceof Error?_0x352245[_0x2273aa(0x101)]:_0x2273aa(0x103));}}};function ensureRunnableContext(_0x46fe5d,_0x59d182){const _0xb0359e=a190_0x321164,_0x594619=_0x46fe5d[_0xb0359e(0x10b)]?String(_0x46fe5d[_0xb0359e(0x10b)])[_0xb0359e(0xd4)]():'';if(!isInProject()&&!_0x59d182&&!_0x594619)throw CliErrors['validation'](_0xb0359e(0xf6)+_0xb0359e(0x102));}function parsePaths(_0x1672db){const _0x1d296f=a190_0x321164;return[...new Set(_0x1672db[_0x1d296f(0x108)](',')[_0x1d296f(0x111)](_0x7087c7=>_0x7087c7[_0x1d296f(0xd4)]())[_0x1d296f(0xf1)](Boolean))];}
1
+ const a190_0x453a79=a190_0x3838;(function(_0x44fe08,_0x6186f8){const _0x1e4e41=a190_0x3838,_0x24cde9=_0x44fe08();while(!![]){try{const _0x1070c0=-parseInt(_0x1e4e41(0x11b))/0x1+-parseInt(_0x1e4e41(0x109))/0x2*(parseInt(_0x1e4e41(0x11e))/0x3)+-parseInt(_0x1e4e41(0x151))/0x4+-parseInt(_0x1e4e41(0x116))/0x5*(parseInt(_0x1e4e41(0x122))/0x6)+-parseInt(_0x1e4e41(0x138))/0x7+-parseInt(_0x1e4e41(0x14b))/0x8*(parseInt(_0x1e4e41(0x127))/0x9)+parseInt(_0x1e4e41(0x129))/0xa;if(_0x1070c0===_0x6186f8)break;else _0x24cde9['push'](_0x24cde9['shift']());}catch(_0xab2f6d){_0x24cde9['push'](_0x24cde9['shift']());}}}(a190_0x4767,0x3c3d4));import a190_0x25fa30 from'chalk';import{buildCompareRows,doCreateMenus,fetchMenuData}from'../../commands/menu/shared/logic.js';function a190_0x3838(_0xda2ea3,_0x6a559){_0xda2ea3=_0xda2ea3-0x109;const _0x476758=a190_0x4767();let _0x38380d=_0x476758[_0xda2ea3];return _0x38380d;}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':'menu','command':a190_0x453a79(0x13a),'description':a190_0x453a79(0x11c),'risk':a190_0x453a79(0x120),'flags':[{'name':a190_0x453a79(0x141),'type':a190_0x453a79(0x12e),'description':'Prefer\x20appName\x20for\x20shared\x20subapp\x20resources\x20and\x20parentId\x20for\x20planned\x20groups.\x20'+a190_0x453a79(0x146)},{'name':'paths','type':a190_0x453a79(0x12e),'description':a190_0x453a79(0x140)},{'name':a190_0x453a79(0x11a),'type':a190_0x453a79(0x126),'description':'Confirm\x20non-interactive\x20sync;\x20without\x20--paths,\x20create\x20all\x20missing\x20local\x20pages'}],async 'dryRun'(_0x599f3b){const _0x56cf3e=a190_0x453a79;ensureRunnableContext(_0x599f3b[_0x56cf3e(0x112)],_0x599f3b['selectedAppName']);const _0x37e7ba=await runMenuSyncCore(_0x599f3b[_0x56cf3e(0x121)],_0x599f3b[_0x56cf3e(0x143)],parsePaths(_0x599f3b[_0x56cf3e(0x13e)](_0x56cf3e(0x134))),_0x599f3b[_0x56cf3e(0x13e)](_0x56cf3e(0x141)),{'dryRun':!![]});return{'method':_0x56cf3e(0x13c),'url':_0x56cf3e(0x125),'body':_0x37e7ba,'description':_0x37e7ba[_0x56cf3e(0x128)]?_0x56cf3e(0x117):'Would\x20create\x20'+_0x37e7ba[_0x56cf3e(0x14a)]['length']+'\x20local\x20microfrontend\x20menu(s).'};},async 'execute'(_0x2cd1c0){const _0x10b6f7=a190_0x453a79;ensureRunnableContext(_0x2cd1c0['rawFlags'],_0x2cd1c0[_0x10b6f7(0x13b)]);const _0x41102c=_0x2cd1c0[_0x10b6f7(0x14d)](_0x10b6f7(0x11a)),_0x352e5b=_0x2cd1c0[_0x10b6f7(0x13e)](_0x10b6f7(0x141)),_0x37d948=parsePaths(_0x2cd1c0[_0x10b6f7(0x13e)](_0x10b6f7(0x134))),_0x5a8dc6=parseMenuSyncParams(_0x352e5b);if(_0x41102c){const _0x716991=await runMenuSyncCore(_0x2cd1c0['appCode'],_0x2cd1c0[_0x10b6f7(0x143)],_0x37d948,_0x352e5b);if(_0x716991[_0x10b6f7(0x128)]){const _0x22cf32=getLocalPages();_0x22cf32[_0x10b6f7(0x115)]===0x0?writeCliSideChannelLine(_0x10b6f7(0x12c)):writeCliSideChannelLine('✓\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform');}else writeCliSideChannelLine(_0x10b6f7(0x111)+_0x716991[_0x10b6f7(0x13f)]+_0x10b6f7(0x145));return{'ok':!![],'data':_0x716991,'message':_0x716991[_0x10b6f7(0x128)]?'Menu\x20sync\x20skipped':_0x10b6f7(0x10e)+_0x716991[_0x10b6f7(0x13f)]+_0x10b6f7(0x130)};}if(_0x37d948['length']>0x0)throw CliErrors['validation']('menu\x20sync\x20--paths\x20requires\x20--yes\x20for\x20execution.','Preview\x20with\x20--dry-run,\x20then\x20reuse\x20the\x20same\x20--paths\x20and\x20--params\x20with\x20--yes.');if(!isInteractive()&&_0x352e5b)throw CliErrors['validation']('Non-interactive\x20menu\x20sync\x20requires\x20--yes.',_0x10b6f7(0x135));requireInteractive(),writeCliSideChannelLine(_0x10b6f7(0x12a));const _0x4361fb=startSpinner(_0x10b6f7(0x14c));let _0x3956ed,_0x5e3450,_0x23070d;try{const _0x1e6d25=await fetchMenuData(_0x2cd1c0['appCode'],_0x2cd1c0['cookie']);_0x3956ed=_0x1e6d25[_0x10b6f7(0x150)],_0x5e3450=_0x1e6d25[_0x10b6f7(0x152)],_0x23070d=_0x1e6d25[_0x10b6f7(0x10c)],stopSpinner(_0x4361fb,_0x10b6f7(0x113),!![]);}catch(_0x4653eb){stopSpinner(_0x4361fb,_0x10b6f7(0x11d),![]);throw CliErrors[_0x10b6f7(0x12d)](_0x4653eb instanceof Error?_0x4653eb[_0x10b6f7(0x11f)]:_0x10b6f7(0x11d));}if(_0x3956ed[_0x10b6f7(0x115)]===0x0)return writeCliSideChannelLine(a190_0x25fa30[_0x10b6f7(0x10b)](_0x10b6f7(0x119))),{'ok':!![]};const _0x85d07=buildCompareRows(_0x3956ed,_0x5e3450);writeCliSideChannelLine(renderCompareTable(_0x85d07)),writeCliSideChannelLine('');const _0x2573e4=await selectPages(_0x3956ed,_0x5e3450);writeCliSideChannelLine(''),writeCliSideChannelLine(a190_0x25fa30[_0x10b6f7(0x124)](_0x10b6f7(0x133)+_0x2573e4[_0x10b6f7(0x115)]+_0x10b6f7(0x12f)));const _0x3796dc=_0x5a8dc6[_0x10b6f7(0x14f)]&&_0x5a8dc6[_0x10b6f7(0x136)];if(!_0x3796dc){writeCliSideChannelLine(renderSyncSummary(_0x2573e4,_0x5e3450['size']>0x0));const _0x2135f0=await askConfirm(_0x10b6f7(0x144));if(!_0x2135f0)return writeCliSideChannelLine(a190_0x25fa30[_0x10b6f7(0x142)](_0x10b6f7(0x13d))),{'ok':!![]};}let _0x22b6b5=_0x5a8dc6[_0x10b6f7(0x14f)],_0x5d3f0e=_0x5a8dc6['cssUrl'];!_0x22b6b5&&!_0x5a8dc6[_0x10b6f7(0x118)]&&(_0x22b6b5=await askJsUrl());!_0x5d3f0e&&!_0x5a8dc6[_0x10b6f7(0x118)]&&(_0x5d3f0e=await askCssUrl());const _0x114dfb=await askConfirm(_0x5a8dc6[_0x10b6f7(0x118)]?_0x10b6f7(0x131)+_0x2573e4[_0x10b6f7(0x115)]+_0x10b6f7(0x12b)+_0x5a8dc6[_0x10b6f7(0x118)]+'?':_0x10b6f7(0x131)+_0x2573e4[_0x10b6f7(0x115)]+_0x10b6f7(0x139)+_0x22b6b5+_0x10b6f7(0x10a)+_0x5d3f0e+'?');if(!_0x114dfb)return writeCliSideChannelLine(a190_0x25fa30[_0x10b6f7(0x142)](_0x10b6f7(0x13d))),{'ok':!![]};const _0x416d9e=[_0x22b6b5,_0x5d3f0e][_0x10b6f7(0x114)](_0xa5ad69=>Boolean(_0xa5ad69));_0x5a8dc6['appName']&&_0x416d9e['length']===0x0&&await assertSharedResourcesConfigured(_0x2cd1c0[_0x10b6f7(0x121)],_0x2cd1c0[_0x10b6f7(0x143)],_0x5a8dc6['appName']);const _0x45a5f6=startSpinner(_0x10b6f7(0x123)+_0x2573e4['length']+'\x20menu(s)...');try{const _0x5a25f6=_0x2573e4['map'](_0x14c616=>resolvePage(_0x14c616,_0x5a8dc6,_0x23070d)),_0x284090=await doCreateMenus(_0x2cd1c0[_0x10b6f7(0x121)],_0x2cd1c0[_0x10b6f7(0x143)],_0x5a25f6,_0x416d9e,_0x5a8dc6[_0x10b6f7(0x118)]?{'appName':_0x5a8dc6[_0x10b6f7(0x118)]}:undefined);return stopSpinner(_0x45a5f6,'Created\x20'+_0x284090[_0x10b6f7(0x13f)]+_0x10b6f7(0x10d),!![]),{'ok':!![],'data':_0x284090,'message':'Menu\x20sync\x20completed:\x20'+_0x284090[_0x10b6f7(0x13f)]+_0x10b6f7(0x148)+_0x284090[_0x10b6f7(0x147)]+'\x20failed.'};}catch(_0x11f106){stopSpinner(_0x45a5f6,_0x10b6f7(0x137),![]);throw CliErrors[_0x10b6f7(0x12d)](_0x11f106 instanceof Error?_0x11f106[_0x10b6f7(0x11f)]:_0x10b6f7(0x137));}}};function a190_0x4767(){const _0x2cf085=['yes','461262NTNQGy','Register\x20local\x20pages\x20as\x20platform\x20menus','Failed\x20to\x20fetch\x20online\x20menu\x20list','339ujFBeh','message','write','appCode','18dnUFyH','Creating\x20','cyan','/smartapi/menu/create','boolean','9NsjkdI','skipped','18638380gqsrik','Tip:\x20For\x20frontend\x20subapps,\x20prefer\x20Agent-planned\x20menu\x20groups\x20and\x20shared\x20resources.\x20This\x20manual\x20sync\x20workflow\x20remains\x20available\x20as\x20a\x20fallback.','\x20menu(s)\x20bound\x20to\x20','!\x20No\x20local\x20pages\x20found\x20in\x20src/pages','validation','string','\x20page(s)','\x20created.','\x20\x20Create\x20','trim','\x20\x20✓\x20Selected:\x20','paths','Preview\x20with\x20--dry-run,\x20then\x20reuse\x20the\x20same\x20--paths\x20and\x20--params\x20with\x20--yes.','cssUrl','Menu\x20creation\x20failed','277879rXmvkv','\x20menu(s)\x20with\x20JS:\x20','sync','selectedAppName','POST','\x20\x20Cancelled.','str','created','Exact\x20comma-separated\x20local\x20page\x20paths\x20to\x20sync','params','gray','cookie','\x20\x20Continue\x20with\x20creation?','\x20menu(s)\x20created','JSON:\x20{\x22appName\x22:\x22store-app\x22,\x22parentId\x22:42,\x22visible\x22:false};\x20jsUrl\x20and\x20cssUrl\x20remain\x20available\x20for\x20individual\x20menu\x20resources.','failed','\x20created,\x20','map','targetPages','2611256vaNXns','Fetching\x20online\x20menu\x20list...','flag','appcode','jsUrl','localPages','710408aAVygB','onlinePaths','3928BaOcCU','\x20and\x20CSS:\x20','yellow','onlineMenuList','\x20menu(s)','Menu\x20sync\x20completed:\x20','Run\x20inside\x20a\x20directory\x20with\x20.rabetbase.json,\x20or\x20pass\x20--appcode\x20<code>.','menu\x20sync\x20requires\x20a\x20project\x20context\x20or\x20explicit\x20--appcode.\x20','✓\x20Menu\x20sync\x20completed:\x20','rawFlags','Online\x20menu\x20list\x20fetched','filter','length','650330IYcwcb','No\x20local\x20microfrontend\x20menus\x20would\x20be\x20created.','appName','\x20\x20!\x20No\x20local\x20pages\x20found,\x20please\x20create\x20pages\x20first'];a190_0x4767=function(){return _0x2cf085;};return a190_0x4767();}function ensureRunnableContext(_0x499bb2,_0x260894){const _0x40151c=a190_0x453a79,_0x428902=_0x499bb2[_0x40151c(0x14e)]?String(_0x499bb2[_0x40151c(0x14e)])['trim']():'';if(!isInProject()&&!_0x260894&&!_0x428902)throw CliErrors[_0x40151c(0x12d)](_0x40151c(0x110)+_0x40151c(0x10f));}function parsePaths(_0x5e37fe){const _0x5f1932=a190_0x453a79;return[...new Set(_0x5e37fe['split'](',')[_0x5f1932(0x149)](_0x4bb928=>_0x4bb928[_0x5f1932(0x132)]())[_0x5f1932(0x114)](Boolean))];}
@@ -1 +1 @@
1
- const a191_0x351d3e=a191_0x5427;(function(_0xb85bbe,_0x53913a){const _0x5a6845=a191_0x5427,_0x31c357=_0xb85bbe();while(!![]){try{const _0x485e29=-parseInt(_0x5a6845(0x228))/0x1+-parseInt(_0x5a6845(0x1cf))/0x2*(-parseInt(_0x5a6845(0x232))/0x3)+parseInt(_0x5a6845(0x21b))/0x4*(parseInt(_0x5a6845(0x22c))/0x5)+parseInt(_0x5a6845(0x217))/0x6*(parseInt(_0x5a6845(0x20e))/0x7)+-parseInt(_0x5a6845(0x1ff))/0x8+parseInt(_0x5a6845(0x1c6))/0x9+-parseInt(_0x5a6845(0x206))/0xa*(parseInt(_0x5a6845(0x233))/0xb);if(_0x485e29===_0x53913a)break;else _0x31c357['push'](_0x31c357['shift']());}catch(_0x402b02){_0x31c357['push'](_0x31c357['shift']());}}}(a191_0x45bb,0xed85a));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';const BACKEND=[{'method':a191_0x351d3e(0x21c),'path':a191_0x351d3e(0x204)}];export const menuVisibilityUpdate={'service':'menu','command':a191_0x351d3e(0x1f2),'description':a191_0x351d3e(0x208),'risk':a191_0x351d3e(0x1e7),'structuredErrors':!![],'flags':[{'name':'menu-ids','type':'string','description':a191_0x351d3e(0x235)},{'name':'paths','type':'string','description':a191_0x351d3e(0x1cd)},{'name':a191_0x351d3e(0x1ec),'type':a191_0x351d3e(0x202),'required':!![],'description':a191_0x351d3e(0x1d6)},{'name':a191_0x351d3e(0x212),'type':a191_0x351d3e(0x202),'description':a191_0x351d3e(0x1c4)},{'name':a191_0x351d3e(0x1e8),'type':'number','description':a191_0x351d3e(0x224)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x36dc46){parseInput(_0x36dc46);},async 'dryRun'(_0x3399ec){const _0x2dc83d=a191_0x351d3e,_0x69925c=await buildPlan(_0x3399ec,!![]),_0x40e356=_0x69925c['plan'][_0x2dc83d(0x214)]?.['length']??0x0,_0x59cda7=_0x69925c[_0x2dc83d(0x1ee)]['targets'][_0x2dc83d(0x1bd)]-_0x40e356;return menuDryRunResult(_0x69925c[_0x2dc83d(0x1ee)],{'method':_0x2dc83d(0x21c),'url':'/smartapi/menu/update','body':{'updates':_0x69925c[_0x2dc83d(0x1ee)][_0x2dc83d(0x214)]?.['map'](_0x1d9af5=>_0x1d9af5[_0x2dc83d(0x1d5)])??[]},'description':_0x2dc83d(0x1f3)+_0x40e356+_0x2dc83d(0x22f)+_0x59cda7+'\x20unchanged\x20menu(s).'});},async 'execute'(_0x390ad9){const _0x9b6307=a191_0x351d3e,_0x468250=await buildPlan(_0x390ad9,![]);await recheckMutationSnapshot(_0x390ad9,_0x468250[_0x9b6307(0x1ee)],_0x9b6307(0x22b));const _0x31025e=[],_0x4e0e49=[],_0x3ccf9b=[];for(const _0x2ac94e of _0x468250['plan']['targets']){if(_0x2ac94e[_0x9b6307(0x236)][_0x9b6307(0x1ec)]===_0x468250['plan']['requestedVisible']){_0x31025e[_0x9b6307(0x1c0)]({'id':_0x2ac94e['id'],'updated':![],'skipped':!![]});continue;}try{await updateMenuEntity(_0x390ad9[_0x9b6307(0x1eb)],_0x390ad9[_0x9b6307(0x21a)],{'id':_0x2ac94e['id'],'visible':_0x468250['plan']['requestedVisible']}),_0x31025e[_0x9b6307(0x1c0)]({'id':_0x2ac94e['id'],'updated':!![],'skipped':![]});}catch(_0x592a9e){const _0x4dbed1=mapMenuApiError(_0x592a9e,'update\x20visibility\x20for',_0x2ac94e['id']);if(isMenuResponseLoss(_0x592a9e)&&_0x4dbed1[_0x9b6307(0x1cc)]!=='menu_permission_denied'){_0x3ccf9b[_0x9b6307(0x1c0)](_0x2ac94e['id']);continue;}_0x4e0e49[_0x9b6307(0x1c0)]({'id':_0x2ac94e['id'],'stage':_0x9b6307(0x1d9),'code':_0x4dbed1[_0x9b6307(0x1cc)],'message':_0x4dbed1[_0x9b6307(0x1c5)]});}}let _0x589d2f;try{_0x589d2f=await fetchMenuSnapshot(_0x390ad9[_0x9b6307(0x1eb)],_0x390ad9[_0x9b6307(0x21a)]);}catch(_0x23ee41){const _0x5806e5=describeMenuErrorCause(_0x23ee41,_0x9b6307(0x22d)),_0x201bee=_0x3ccf9b[_0x9b6307(0x20d)](_0x53cbcf=>({'id':_0x53cbcf,'stage':_0x9b6307(0x222),'code':_0x9b6307(0x1f1),'message':_0x9b6307(0x1d8)+_0x53cbcf+_0x9b6307(0x201),'requestedStateConfirmed':![],'recovered':![]})),_0x3f396e={'stage':_0x9b6307(0x1e2),'code':_0x9b6307(0x1f1),'message':_0x9b6307(0x1db),'targetIds':_0x468250[_0x9b6307(0x1ee)][_0x9b6307(0x1c8)][_0x9b6307(0x20d)](_0x1621b6=>_0x1621b6['id']),'requestedStateConfirmed':![],..._0x5806e5};throw menuFailure(asVerificationError(_0x23ee41,_0x9b6307(0x1fd)),_0x468250[_0x9b6307(0x1ee)],{'stage':_0x9b6307(0x1e2),'succeeded':_0x31025e,'failedRecords':[..._0x4e0e49,..._0x201bee,_0x3f396e],'warnings':[_0x9b6307(0x1f9)],'verification':{'status':_0x9b6307(0x1e0),'recoveredCount':0x0,'lookupCommand':_0x9b6307(0x1df)}});}const _0x3f8013=[];for(const _0x889857 of _0x31025e){const _0x675fce=Number(_0x889857['id']),_0x2631db=_0x468250[_0x9b6307(0x1e9)][_0x9b6307(0x211)](_0x675fce),_0x3fb3b6=_0x589d2f[_0x9b6307(0x1ce)]['get'](_0x675fce);try{verifyVisibilityUpdate(_0x2631db,_0x3fb3b6,_0x468250[_0x9b6307(0x1ee)][_0x9b6307(0x227)]);}catch(_0x1d8789){const _0x366380=asVerificationError(_0x1d8789,'Menu\x20'+_0x675fce+'\x20visibility\x20update\x20could\x20not\x20be\x20verified');_0x3f8013['push']({'id':_0x675fce,'stage':_0x9b6307(0x1e2),'code':_0x366380[_0x9b6307(0x1cc)],'message':_0x366380[_0x9b6307(0x1c5)],'requestedStateConfirmed':![]});}}for(const _0xc5457e of _0x3ccf9b){const _0x56fdb8=_0x468250[_0x9b6307(0x1e9)][_0x9b6307(0x211)](_0xc5457e),_0x483319=_0x589d2f[_0x9b6307(0x1ce)]['get'](_0xc5457e);try{verifyVisibilityUpdate(_0x56fdb8,_0x483319,_0x468250[_0x9b6307(0x1ee)][_0x9b6307(0x227)]),_0x31025e[_0x9b6307(0x1c0)]({'id':_0xc5457e,'updated':!![],'skipped':![],'recovered':!![]});}catch(_0x572e29){const _0x49d2e9=asVerificationError(_0x572e29,'Response\x20was\x20lost\x20and\x20menu\x20'+_0xc5457e+_0x9b6307(0x1ef));_0x3f8013['push']({'id':_0xc5457e,'stage':_0x9b6307(0x222),'code':_0x49d2e9['code'],'message':_0x49d2e9['message'],'requestedStateConfirmed':![],'recovered':![]});}}if(_0x3f8013['length']>0x0){const _0x7bce10=_0x3f8013[_0x9b6307(0x20d)](_0x4b29a3=>Number(_0x4b29a3['id'])),_0x1d8088=_0x31025e[_0x9b6307(0x216)](_0x12bdee=>_0x12bdee[_0x9b6307(0x1d0)]===!![])[_0x9b6307(0x1bd)],_0x559927=menuError(_0x9b6307(0x1f1),_0x9b6307(0x229)+_0x7bce10[_0x9b6307(0x1fb)](',\x20')+'.',_0x9b6307(0x20a));throw menuFailure(_0x559927,_0x468250[_0x9b6307(0x1ee)],{'stage':_0x9b6307(0x1e2),'succeeded':_0x31025e,'failedRecords':[..._0x4e0e49,..._0x3f8013],'warnings':['One\x20or\x20more\x20updates\x20may\x20have\x20changed\x20fields\x20outside\x20visibility;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.'],'verification':{'status':_0x9b6307(0x1e0),..._0x7bce10['length']===0x1?{'targetId':_0x7bce10[0x0]}:{'targetIds':_0x7bce10},'recoveredCount':_0x1d8088,'lookupCommand':_0x9b6307(0x1df)}});}const _0x4450af=_0x31025e[_0x9b6307(0x216)](_0x565d19=>_0x565d19['updated']===!![])['length'],_0x50fc99=_0x31025e[_0x9b6307(0x1bd)]-_0x4450af,_0x106cfe={..._0x468250['plan'],'succeeded':_0x31025e,'failed':_0x4e0e49,'warnings':_0x4e0e49['length']>0x0?[..._0x468250[_0x9b6307(0x1ee)]['warnings'],_0x9b6307(0x218)]:_0x468250[_0x9b6307(0x1ee)][_0x9b6307(0x200)],'verification':{'checkedBy':_0x9b6307(0x1ed),'snapshotHash':_0x589d2f[_0x9b6307(0x1dd)],'matchesRequestedState':_0x4e0e49[_0x9b6307(0x1bd)]===0x0,'recoveredCount':_0x3ccf9b['length']}};return{'ok':_0x4e0e49['length']===0x0,'data':_0x106cfe,'message':_0x4e0e49[_0x9b6307(0x1bd)]===0x0?'Updated\x20visibility\x20for\x20'+_0x4450af+_0x9b6307(0x210)+_0x50fc99+_0x9b6307(0x20f):_0x9b6307(0x1d2)+_0x4450af+'\x20updated,\x20'+_0x50fc99+'\x20skipped,\x20'+_0x4e0e49[_0x9b6307(0x1bd)]+_0x9b6307(0x1e1)};}};function parseInput(_0x1d7689){const _0x2fec05=a191_0x351d3e,_0x48ec31=parseMenuIds(_0x1d7689['str']('menu-ids')),_0x1f4269=parseCsv(_0x1d7689[_0x2fec05(0x1da)](_0x2fec05(0x21f)));if(_0x48ec31[_0x2fec05(0x1bd)]===0x0&&_0x1f4269['length']===0x0)throw CliErrors[_0x2fec05(0x209)](_0x2fec05(0x1c2));const _0x21b7d1=parseBooleanFlag(_0x1d7689,_0x2fec05(0x1ec),!![]),_0x1dcbb5=parseBooleanFlag(_0x1d7689,_0x2fec05(0x212),![]);let _0x580e01;if(hasFlag(_0x1d7689,_0x2fec05(0x1e8))){_0x580e01=_0x1d7689['num'](_0x2fec05(0x1e8));if(!Number[_0x2fec05(0x1d3)](_0x580e01)||_0x580e01<0x0)throw CliErrors['validation'](_0x2fec05(0x1c3));}return{'menuIds':_0x48ec31,'paths':_0x1f4269,'visible':_0x21b7d1,'expectVisible':_0x1dcbb5,'expectedCount':_0x580e01};}function a191_0x5427(_0xfa2981,_0x1010f1){_0xfa2981=_0xfa2981-0x1bd;const _0x45bb6f=a191_0x45bb();let _0x5427c0=_0x45bb6f[_0xfa2981];return _0x5427c0;}async function buildPlan(_0x3c7aaf,_0x479a9c){const _0x57137a=a191_0x351d3e,_0x365dac=parseInput(_0x3c7aaf),_0x20bb0e=await fetchMutationSnapshot(_0x3c7aaf,'update\x20menu\x20visibility'),_0x3efb91=selectTargets(_0x20bb0e['menus'],_0x365dac['menuIds'],_0x365dac[_0x57137a(0x21f)]);if(_0x365dac[_0x57137a(0x1e6)]!==undefined&&_0x3efb91[_0x57137a(0x1bd)]!==_0x365dac[_0x57137a(0x1e6)])throw menuError('menu_expected_count_mismatch',_0x57137a(0x1fa)+_0x3efb91['length']+_0x57137a(0x234)+_0x365dac[_0x57137a(0x1e6)]+'.',_0x57137a(0x1e3));if(_0x365dac[_0x57137a(0x1c1)]!==undefined){const _0x551f7f=_0x3efb91[_0x57137a(0x216)](_0x2b5188=>_0x2b5188[_0x57137a(0x1ec)]!==_0x365dac[_0x57137a(0x1c1)]);if(_0x551f7f[_0x57137a(0x1bd)]>0x0)throw menuError('menu_state_drift','Selected\x20menu\x20visibility\x20changed\x20for\x20id(s):\x20'+_0x551f7f[_0x57137a(0x20d)](_0x1e76b8=>_0x1e76b8['id'])[_0x57137a(0x1fb)](',\x20')+'.',_0x57137a(0x20b));}const _0x105d99=_0x3efb91[_0x57137a(0x20d)](_0x20d134=>({'id':_0x20d134['id'],'label':_0x20d134[_0x57137a(0x1f0)],'path':_0x20d134[_0x57137a(0x1e5)],'before':{'visible':_0x20d134[_0x57137a(0x1ec)]},'after':{'visible':_0x365dac[_0x57137a(0x1ec)]}})),_0x2affa3=_0x105d99[_0x57137a(0x216)](_0x23fb1e=>_0x23fb1e[_0x57137a(0x236)][_0x57137a(0x1ec)]!==_0x365dac[_0x57137a(0x1ec)])['map'](_0x23c3c9=>({'stage':_0x57137a(0x223),'method':_0x57137a(0x21c),'path':_0x57137a(0x204),'body':{'appCode':_0x3c7aaf['appCode'],'id':_0x23c3c9['id'],'visible':_0x365dac['visible']}})),_0x40d82a=mutationResult({'operation':_0x57137a(0x1f2),'selector':{'menuIds':_0x365dac['menuIds'],'paths':_0x365dac[_0x57137a(0x21f)]},'before':{'menus':_0x3efb91[_0x57137a(0x20d)](_0x230b63=>({'id':_0x230b63['id'],'path':_0x230b63[_0x57137a(0x1e5)],'visible':_0x230b63[_0x57137a(0x1ec)]}))},'after':{'menus':_0x3efb91[_0x57137a(0x20d)](_0x3918f8=>({'id':_0x3918f8['id'],'path':_0x3918f8[_0x57137a(0x1e5)],'visible':_0x365dac[_0x57137a(0x1ec)]}))},'dryRun':_0x479a9c,'backend':[...BACKEND],'plannedActions':_0x2affa3,'snapshotHash':_0x20bb0e[_0x57137a(0x1dd)],'warnings':_0x2affa3[_0x57137a(0x1bd)]===0x0?[_0x57137a(0x1cb)]:[]});return{'plan':{..._0x40d82a,'requestedVisible':_0x365dac[_0x57137a(0x1ec)],'targets':_0x105d99},'beforeById':new Map(_0x3efb91[_0x57137a(0x20d)](_0x3d65ad=>[_0x3d65ad['id'],_0x3d65ad]))};}function selectTargets(_0x158a47,_0xb6778c,_0x3ce172){const _0x11ee88=a191_0x351d3e,_0x54b89d=new Map(_0x158a47[_0x11ee88(0x20d)](_0x5b0078=>[_0x5b0078['id'],_0x5b0078])),_0x5a26b4=new Map(),_0x2639f8=_0xb6778c['filter'](_0x3897eb=>!_0x54b89d[_0x11ee88(0x1fe)](_0x3897eb));if(_0x2639f8[_0x11ee88(0x1bd)]>0x0)throw menuError('menu_selector_not_found',_0x11ee88(0x213)+_0x2639f8[_0x11ee88(0x1fb)](',\x20')+'.','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20exact\x20current\x20ids.');for(const _0x5a1b3c of _0xb6778c){_0x5a26b4['set'](_0x5a1b3c,_0x54b89d['get'](_0x5a1b3c));}for(const _0x33fb25 of _0x3ce172){const _0x4dd501=_0x158a47['filter'](_0x5b4766=>_0x5b4766['path']===_0x33fb25);if(_0x4dd501[_0x11ee88(0x1bd)]===0x0)throw menuError(_0x11ee88(0x231),_0x11ee88(0x1d7)+JSON[_0x11ee88(0x1c9)](_0x33fb25)+'.',_0x11ee88(0x22e));if(_0x4dd501[_0x11ee88(0x1bd)]>0x1)throw menuError(_0x11ee88(0x205),'Menu\x20path\x20selector\x20matched\x20multiple\x20menus:\x20'+JSON[_0x11ee88(0x1c9)](_0x33fb25)+'.',_0x11ee88(0x1de)+_0x4dd501['map'](_0x171d3d=>_0x171d3d['id'])[_0x11ee88(0x1fb)](',\x20')+'.');const _0x7eb559=_0x4dd501[0x0];_0x5a26b4[_0x11ee88(0x226)](_0x7eb559['id'],_0x7eb559);}return[..._0x5a26b4[_0x11ee88(0x1ea)]()];}function parseMenuIds(_0x3a7e2b){const _0x4b94ac=a191_0x351d3e,_0xf777b5=parseCsv(_0x3a7e2b),_0x332dfe=_0xf777b5['map'](Number);if(_0x332dfe[_0x4b94ac(0x1c7)](_0x4b57d5=>!Number[_0x4b94ac(0x1d3)](_0x4b57d5)||_0x4b57d5<=0x0))throw CliErrors[_0x4b94ac(0x209)](_0x4b94ac(0x1f8));return[...new Set(_0x332dfe)];}function a191_0x45bb(){const _0x23a20a=['Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expected-count.','pageId','path','expectedCount','write','expected-count','beforeById','values','appCode','visible','menu\x20list','plan','\x20visibility\x20could\x20not\x20be\x20verified\x20safely','label','menu_verification_failed','visibility-update','Would\x20update\x20visibility\x20for\x20','type','\x20was\x20not\x20found\x20during\x20visibility\x20verification.','\x20changed\x20unexpectedly.','childrenIds','--menu-ids\x20must\x20contain\x20positive\x20safe\x20integers.','The\x20update\x20may\x20have\x20taken\x20effect;\x20inspect\x20the\x20latest\x20menu\x20facts\x20before\x20retrying.','Selected\x20','join','true','Visibility\x20update\x20requests\x20completed\x20but\x20readback\x20could\x20not\x20confirm\x20the\x20requested\x20state','has','9030992NWwxIV','warnings','\x20and\x20final\x20state\x20could\x20not\x20be\x20read.','boolean','modelType','/smartapi/menu/update','menu_selector_ambiguous','688400qDqgoD','depth','Set\x20exact\x20menus\x20visible\x20or\x20hidden\x20without\x20changing\x20their\x20routes\x20or\x20resources','validation','Inspect\x20current\x20menu\x20facts\x20before\x20retrying\x20any\x20target.','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expect-visible.','resources','map','92834gshFWT','\x20unchanged\x20menu(s).','\x20menu(s);\x20skipped\x20','get','expect-visible','Menu\x20id\x20selector(s)\x20not\x20found:\x20','plannedActions','pageType','filter','666sITjAP','Failed\x20update\x20requests\x20were\x20not\x20retried;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','datasetCode','cookie','1598924YWuEPZ','POST','sort','Menu\x20','paths','url','trim','update-recovery','update-menu-visibility','Abort\x20unless\x20the\x20exact\x20number\x20of\x20selected\x20menus\x20matches','\x20visible\x20did\x20not\x20match\x20the\x20requested\x20state.','set','requestedVisible','1677773eLlWFR','Menu\x20visibility\x20update\x20could\x20not\x20be\x20verified\x20for\x20id(s):\x20','false','update\x20menu\x20visibility','10bxHdsw','verify\x20menu\x20visibility\x20update','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20an\x20exact\x20current\x20path.','\x20menu(s);\x20skip\x20','datasetId','menu_selector_not_found','30186tRLMTT','22LkvBHr','\x20menu(s),\x20expected\x20','Exact\x20comma-separated\x20menu\x20IDs\x20to\x20update','before','length','split','\x20must\x20be\x20true\x20or\x20false.','push','expectVisible','menu\x20visibility-update\x20requires\x20--menu-ids\x20or\x20--paths.','--expected-count\x20must\x20be\x20a\x20non-negative\x20integer.','Abort\x20unless\x20every\x20selected\x20menu\x20has\x20this\x20visibility','message','10011483ZVuxbU','some','targets','stringify','isArray','Every\x20selected\x20menu\x20already\x20has\x20the\x20requested\x20visibility;\x20no\x20write\x20is\x20needed.','code','Exact\x20comma-separated\x20menu\x20paths\x20to\x20update','byId','106PRiyqM','recovered','childrenCount','Menu\x20visibility\x20update\x20completed:\x20','isSafeInteger','flagMissing','body','Requested\x20menu\x20visibility','Menu\x20path\x20selector\x20not\x20found:\x20','Response\x20was\x20lost\x20for\x20menu\x20','update','str','Final\x20menu\x20visibility\x20readback\x20failed.','resourcesValid','hash','Use\x20--menu-ids\x20with\x20one\x20or\x20more\x20of:\x20','rabetbase\x20menu\x20list\x20--format\x20compress','failed','\x20failed.','verification'];a191_0x45bb=function(){return _0x23a20a;};return a191_0x45bb();}function parseCsv(_0x2159b5){const _0x2f51b6=a191_0x351d3e;return[...new Set(_0x2159b5[_0x2f51b6(0x1be)](',')[_0x2f51b6(0x20d)](_0x4aa946=>_0x4aa946[_0x2f51b6(0x221)]())[_0x2f51b6(0x216)](Boolean))];}function parseBooleanFlag(_0x4e0c57,_0x34cdd5,_0x466aa6){const _0x37d86c=a191_0x351d3e;if(!hasFlag(_0x4e0c57,_0x34cdd5)){if(_0x466aa6)throw CliErrors[_0x37d86c(0x1d4)](_0x34cdd5);return undefined;}const _0x83acfb=_0x4e0c57['rawFlags'][_0x34cdd5];if(_0x83acfb===!![]||_0x83acfb===![])return _0x83acfb;if(_0x83acfb===_0x37d86c(0x1fc))return!![];if(_0x83acfb===_0x37d86c(0x22a))return![];throw CliErrors[_0x37d86c(0x209)]('--'+_0x34cdd5+_0x37d86c(0x1bf));}function verifyVisibilityUpdate(_0x18fb33,_0x5a3379,_0xd7d44b){const _0x4c40d5=a191_0x351d3e;assertVerified(!!_0x5a3379,'Menu\x20'+_0x18fb33['id']+_0x4c40d5(0x1f5)),assertVerified(_0x5a3379[_0x4c40d5(0x1ec)]===_0xd7d44b,_0x4c40d5(0x21e)+_0x18fb33['id']+_0x4c40d5(0x225));const _0x16c148=[['id',_0x5a3379['id'],_0x18fb33['id']],['parentId',_0x5a3379['parentId'],_0x18fb33['parentId']],[_0x4c40d5(0x207),_0x5a3379[_0x4c40d5(0x207)],_0x18fb33[_0x4c40d5(0x207)]],['label',_0x5a3379[_0x4c40d5(0x1f0)],_0x18fb33[_0x4c40d5(0x1f0)]],[_0x4c40d5(0x1e5),_0x5a3379['path'],_0x18fb33['path']],['url',_0x5a3379['url'],_0x18fb33[_0x4c40d5(0x220)]],[_0x4c40d5(0x1f4),_0x5a3379[_0x4c40d5(0x1f4)],_0x18fb33[_0x4c40d5(0x1f4)]],[_0x4c40d5(0x21d),_0x5a3379[_0x4c40d5(0x21d)],_0x18fb33[_0x4c40d5(0x21d)]],[_0x4c40d5(0x20c),_0x5a3379['resources'],_0x18fb33[_0x4c40d5(0x20c)]],['resourcesValid',_0x5a3379['resourcesValid'],_0x18fb33[_0x4c40d5(0x1dc)]],['childrenIds',_0x5a3379[_0x4c40d5(0x1f7)],_0x18fb33[_0x4c40d5(0x1f7)]],[_0x4c40d5(0x1d1),_0x5a3379[_0x4c40d5(0x1d1)],_0x18fb33[_0x4c40d5(0x1d1)]],[_0x4c40d5(0x1e4),_0x5a3379[_0x4c40d5(0x1e4)],_0x18fb33[_0x4c40d5(0x1e4)]],[_0x4c40d5(0x215),_0x5a3379['pageType'],_0x18fb33[_0x4c40d5(0x215)]],[_0x4c40d5(0x203),_0x5a3379[_0x4c40d5(0x203)],_0x18fb33[_0x4c40d5(0x203)]],[_0x4c40d5(0x230),_0x5a3379[_0x4c40d5(0x230)],_0x18fb33['datasetId']],[_0x4c40d5(0x219),_0x5a3379[_0x4c40d5(0x219)],_0x18fb33['datasetCode']]];for(const [_0x36840e,_0x5e470f,_0x3d1bf3]of _0x16c148){assertVerified(sameValue(_0x5e470f,_0x3d1bf3),_0x4c40d5(0x21e)+_0x18fb33['id']+'\x20'+_0x36840e+_0x4c40d5(0x1f6));}}function sameValue(_0x47d080,_0x38d35a){const _0x1ea65d=a191_0x351d3e;if(Array['isArray'](_0x47d080)||Array[_0x1ea65d(0x1ca)](_0x38d35a))return JSON['stringify'](_0x47d080)===JSON[_0x1ea65d(0x1c9)](_0x38d35a);return _0x47d080===_0x38d35a;}
1
+ const a191_0x13cfa8=a191_0x44a5;(function(_0x48a82b,_0x4b6dbc){const _0xb8a722=a191_0x44a5,_0x47eb3b=_0x48a82b();while(!![]){try{const _0x1cb526=parseInt(_0xb8a722(0x23d))/0x1*(parseInt(_0xb8a722(0x221))/0x2)+-parseInt(_0xb8a722(0x247))/0x3*(-parseInt(_0xb8a722(0x23e))/0x4)+parseInt(_0xb8a722(0x245))/0x5*(parseInt(_0xb8a722(0x20c))/0x6)+parseInt(_0xb8a722(0x24d))/0x7+-parseInt(_0xb8a722(0x1fd))/0x8+parseInt(_0xb8a722(0x235))/0x9+-parseInt(_0xb8a722(0x1f6))/0xa*(parseInt(_0xb8a722(0x208))/0xb);if(_0x1cb526===_0x4b6dbc)break;else _0x47eb3b['push'](_0x47eb3b['shift']());}catch(_0x415a02){_0x47eb3b['push'](_0x47eb3b['shift']());}}}(a191_0x4433,0x2b5cc));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';const BACKEND=[{'method':a191_0x13cfa8(0x217),'path':a191_0x13cfa8(0x210)}];export const menuVisibilityUpdate={'service':a191_0x13cfa8(0x252),'command':a191_0x13cfa8(0x26d),'description':a191_0x13cfa8(0x263),'risk':a191_0x13cfa8(0x232),'structuredErrors':!![],'flags':[{'name':a191_0x13cfa8(0x21d),'type':a191_0x13cfa8(0x265),'description':a191_0x13cfa8(0x20f)},{'name':a191_0x13cfa8(0x1f5),'type':'string','description':a191_0x13cfa8(0x22e)},{'name':a191_0x13cfa8(0x25e),'type':a191_0x13cfa8(0x267),'required':!![],'description':a191_0x13cfa8(0x224)},{'name':a191_0x13cfa8(0x231),'type':'boolean','description':a191_0x13cfa8(0x22f)},{'name':a191_0x13cfa8(0x253),'type':a191_0x13cfa8(0x259),'description':'Abort\x20unless\x20the\x20exact\x20number\x20of\x20selected\x20menus\x20matches'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x37bcb4){parseInput(_0x37bcb4);},async 'dryRun'(_0x2ae65d){const _0x3a90fa=a191_0x13cfa8,_0x51b4e1=await buildPlan(_0x2ae65d,!![]),_0x3b746d=_0x51b4e1[_0x3a90fa(0x226)][_0x3a90fa(0x262)]?.['length']??0x0,_0x412217=_0x51b4e1['plan'][_0x3a90fa(0x220)][_0x3a90fa(0x22d)]-_0x3b746d;return menuDryRunResult(_0x51b4e1['plan'],{'method':'POST','url':_0x3a90fa(0x210),'body':{'updates':_0x51b4e1[_0x3a90fa(0x226)][_0x3a90fa(0x262)]?.[_0x3a90fa(0x238)](_0x198ee7=>_0x198ee7['body'])??[]},'description':_0x3a90fa(0x260)+_0x3b746d+_0x3a90fa(0x1f7)+_0x412217+_0x3a90fa(0x26f)});},async 'execute'(_0xb79562){const _0x124176=a191_0x13cfa8,_0x1db06f=await buildPlan(_0xb79562,![]);await recheckMutationSnapshot(_0xb79562,_0x1db06f[_0x124176(0x226)],_0x124176(0x254));const _0x3312f5=[],_0x28a02c=[],_0x215c23=[];for(const _0x306231 of _0x1db06f[_0x124176(0x226)][_0x124176(0x220)]){if(_0x306231[_0x124176(0x216)][_0x124176(0x25e)]===_0x1db06f['plan'][_0x124176(0x1f4)]){_0x3312f5[_0x124176(0x206)]({'id':_0x306231['id'],'updated':![],'skipped':!![]});continue;}try{await updateMenuEntity(_0xb79562[_0x124176(0x23f)],_0xb79562[_0x124176(0x203)],{'id':_0x306231['id'],'visible':_0x1db06f[_0x124176(0x226)]['requestedVisible']}),_0x3312f5[_0x124176(0x206)]({'id':_0x306231['id'],'updated':!![],'skipped':![]});}catch(_0x3cadfe){const _0x4d50d5=mapMenuApiError(_0x3cadfe,_0x124176(0x26e),_0x306231['id']);if(isMenuResponseLoss(_0x3cadfe)&&_0x4d50d5[_0x124176(0x21e)]!==_0x124176(0x1fc)){_0x215c23['push'](_0x306231['id']);continue;}_0x28a02c[_0x124176(0x206)]({'id':_0x306231['id'],'stage':_0x124176(0x24e),'code':_0x4d50d5[_0x124176(0x21e)],'message':_0x4d50d5[_0x124176(0x234)]});}}let _0x65a74c;try{_0x65a74c=await fetchMenuSnapshot(_0xb79562[_0x124176(0x23f)],_0xb79562['cookie']);}catch(_0x17872e){const _0xb89c1=describeMenuErrorCause(_0x17872e,_0x124176(0x230)),_0x426143=_0x215c23[_0x124176(0x238)](_0x18193e=>({'id':_0x18193e,'stage':_0x124176(0x270),'code':_0x124176(0x242),'message':'Response\x20was\x20lost\x20for\x20menu\x20'+_0x18193e+_0x124176(0x20a),'requestedStateConfirmed':![],'recovered':![]})),_0x1e983b={'stage':_0x124176(0x205),'code':_0x124176(0x242),'message':_0x124176(0x1f9),'targetIds':_0x1db06f[_0x124176(0x226)]['targets'][_0x124176(0x238)](_0x35758f=>_0x35758f['id']),'requestedStateConfirmed':![],..._0xb89c1};throw menuFailure(asVerificationError(_0x17872e,_0x124176(0x241)),_0x1db06f[_0x124176(0x226)],{'stage':'verification','succeeded':_0x3312f5,'failedRecords':[..._0x28a02c,..._0x426143,_0x1e983b],'warnings':[_0x124176(0x24a)],'verification':{'status':_0x124176(0x213),'recoveredCount':0x0,'lookupCommand':'rabetbase\x20menu\x20list\x20--format\x20compress'}});}const _0x6ccebe=[];for(const _0x397509 of _0x3312f5){const _0x2ce952=Number(_0x397509['id']),_0x489884=_0x1db06f[_0x124176(0x223)][_0x124176(0x24f)](_0x2ce952),_0x4a5620=_0x65a74c[_0x124176(0x21f)][_0x124176(0x24f)](_0x2ce952);try{verifyVisibilityUpdate(_0x489884,_0x4a5620,_0x1db06f[_0x124176(0x226)][_0x124176(0x1f4)]);}catch(_0x3a0d48){const _0x5e31ec=asVerificationError(_0x3a0d48,_0x124176(0x239)+_0x2ce952+_0x124176(0x23b));_0x6ccebe['push']({'id':_0x2ce952,'stage':_0x124176(0x205),'code':_0x5e31ec['code'],'message':_0x5e31ec[_0x124176(0x234)],'requestedStateConfirmed':![]});}}for(const _0x3d9a3e of _0x215c23){const _0x40a46f=_0x1db06f[_0x124176(0x223)][_0x124176(0x24f)](_0x3d9a3e),_0x4b88a8=_0x65a74c[_0x124176(0x21f)][_0x124176(0x24f)](_0x3d9a3e);try{verifyVisibilityUpdate(_0x40a46f,_0x4b88a8,_0x1db06f[_0x124176(0x226)][_0x124176(0x1f4)]),_0x3312f5[_0x124176(0x206)]({'id':_0x3d9a3e,'updated':!![],'skipped':![],'recovered':!![]});}catch(_0x1bc705){const _0x4171e6=asVerificationError(_0x1bc705,_0x124176(0x222)+_0x3d9a3e+_0x124176(0x1fb));_0x6ccebe[_0x124176(0x206)]({'id':_0x3d9a3e,'stage':'update-recovery','code':_0x4171e6[_0x124176(0x21e)],'message':_0x4171e6[_0x124176(0x234)],'requestedStateConfirmed':![],'recovered':![]});}}if(_0x6ccebe[_0x124176(0x22d)]>0x0){const _0x2017e3=_0x6ccebe['map'](_0x560dec=>Number(_0x560dec['id'])),_0x1210ee=_0x3312f5['filter'](_0x7cd8fb=>_0x7cd8fb[_0x124176(0x244)]===!![])[_0x124176(0x22d)],_0x55ee6f=menuError(_0x124176(0x242),_0x124176(0x269)+_0x2017e3[_0x124176(0x215)](',\x20')+'.',_0x124176(0x209));throw menuFailure(_0x55ee6f,_0x1db06f[_0x124176(0x226)],{'stage':'verification','succeeded':_0x3312f5,'failedRecords':[..._0x28a02c,..._0x6ccebe],'warnings':[_0x124176(0x21b)],'verification':{'status':_0x124176(0x213),..._0x2017e3[_0x124176(0x22d)]===0x1?{'targetId':_0x2017e3[0x0]}:{'targetIds':_0x2017e3},'recoveredCount':_0x1210ee,'lookupCommand':_0x124176(0x264)}});}const _0x4ee310=_0x3312f5['filter'](_0x47c9e9=>_0x47c9e9[_0x124176(0x225)]===!![])[_0x124176(0x22d)],_0x289692=_0x3312f5[_0x124176(0x22d)]-_0x4ee310,_0x370865={..._0x1db06f[_0x124176(0x226)],'succeeded':_0x3312f5,'failed':_0x28a02c,'warnings':_0x28a02c[_0x124176(0x22d)]>0x0?[..._0x1db06f['plan'][_0x124176(0x26a)],_0x124176(0x255)]:_0x1db06f['plan']['warnings'],'verification':{'checkedBy':_0x124176(0x1f3),'snapshotHash':_0x65a74c[_0x124176(0x204)],'matchesRequestedState':_0x28a02c[_0x124176(0x22d)]===0x0,'recoveredCount':_0x215c23[_0x124176(0x22d)]}};return{'ok':_0x28a02c[_0x124176(0x22d)]===0x0,'data':_0x370865,'message':_0x28a02c[_0x124176(0x22d)]===0x0?_0x124176(0x21c)+_0x4ee310+_0x124176(0x26c)+_0x289692+_0x124176(0x26f):'Menu\x20visibility\x20update\x20completed:\x20'+_0x4ee310+'\x20updated,\x20'+_0x289692+_0x124176(0x257)+_0x28a02c[_0x124176(0x22d)]+'\x20failed.'};}};function parseInput(_0x36a106){const _0x5a55c3=a191_0x13cfa8,_0x5cb88f=parseMenuIds(_0x36a106['str'](_0x5a55c3(0x21d))),_0x4bb10c=parseCsv(_0x36a106[_0x5a55c3(0x1fa)](_0x5a55c3(0x1f5)));if(_0x5cb88f[_0x5a55c3(0x22d)]===0x0&&_0x4bb10c[_0x5a55c3(0x22d)]===0x0)throw CliErrors[_0x5a55c3(0x25b)]('menu\x20visibility-update\x20requires\x20--menu-ids\x20or\x20--paths.');const _0x1fd9ab=parseBooleanFlag(_0x36a106,'visible',!![]),_0xd48b1a=parseBooleanFlag(_0x36a106,_0x5a55c3(0x231),![]);let _0x475e3c;if(hasFlag(_0x36a106,_0x5a55c3(0x253))){_0x475e3c=_0x36a106['num'](_0x5a55c3(0x253));if(!Number[_0x5a55c3(0x23a)](_0x475e3c)||_0x475e3c<0x0)throw CliErrors[_0x5a55c3(0x25b)](_0x5a55c3(0x251));}return{'menuIds':_0x5cb88f,'paths':_0x4bb10c,'visible':_0x1fd9ab,'expectVisible':_0xd48b1a,'expectedCount':_0x475e3c};}function a191_0x44a5(_0x86e888,_0x102a09){_0x86e888=_0x86e888-0x1f1;const _0x443313=a191_0x4433();let _0x44a51d=_0x443313[_0x86e888];return _0x44a51d;}async function buildPlan(_0x2dc208,_0x364616){const _0x4dd5bd=a191_0x13cfa8,_0x91826b=parseInput(_0x2dc208),_0x17a6b4=await fetchMutationSnapshot(_0x2dc208,'update\x20menu\x20visibility'),_0x2ff7c8=selectTargets(_0x17a6b4[_0x4dd5bd(0x250)],_0x91826b[_0x4dd5bd(0x24c)],_0x91826b['paths']);if(_0x91826b[_0x4dd5bd(0x1fe)]!==undefined&&_0x2ff7c8[_0x4dd5bd(0x22d)]!==_0x91826b[_0x4dd5bd(0x1fe)])throw menuError('menu_expected_count_mismatch',_0x4dd5bd(0x1f1)+_0x2ff7c8[_0x4dd5bd(0x22d)]+_0x4dd5bd(0x25a)+_0x91826b[_0x4dd5bd(0x1fe)]+'.',_0x4dd5bd(0x248));if(_0x91826b['expectVisible']!==undefined){const _0x4a9b83=_0x2ff7c8['filter'](_0x41a7e0=>_0x41a7e0['visible']!==_0x91826b[_0x4dd5bd(0x268)]);if(_0x4a9b83[_0x4dd5bd(0x22d)]>0x0)throw menuError('menu_state_drift',_0x4dd5bd(0x219)+_0x4a9b83[_0x4dd5bd(0x238)](_0x332917=>_0x332917['id'])[_0x4dd5bd(0x215)](',\x20')+'.',_0x4dd5bd(0x25f));}const _0x2626a8=_0x2ff7c8[_0x4dd5bd(0x238)](_0x3c4530=>({'id':_0x3c4530['id'],'label':_0x3c4530[_0x4dd5bd(0x1ff)],'path':_0x3c4530[_0x4dd5bd(0x22a)],'before':{'visible':_0x3c4530[_0x4dd5bd(0x25e)]},'after':{'visible':_0x91826b[_0x4dd5bd(0x25e)]}})),_0x3fcaa7=_0x2626a8[_0x4dd5bd(0x20e)](_0x2e4ae9=>_0x2e4ae9[_0x4dd5bd(0x216)][_0x4dd5bd(0x25e)]!==_0x91826b['visible'])[_0x4dd5bd(0x238)](_0x4dad56=>({'stage':'update-menu-visibility','method':'POST','path':_0x4dd5bd(0x210),'body':{'appCode':_0x2dc208['appCode'],'id':_0x4dad56['id'],'visible':_0x91826b['visible']}})),_0x520e15=mutationResult({'operation':'visibility-update','selector':{'menuIds':_0x91826b[_0x4dd5bd(0x24c)],'paths':_0x91826b[_0x4dd5bd(0x1f5)]},'before':{'menus':_0x2ff7c8[_0x4dd5bd(0x238)](_0x53dd49=>({'id':_0x53dd49['id'],'path':_0x53dd49[_0x4dd5bd(0x22a)],'visible':_0x53dd49[_0x4dd5bd(0x25e)]}))},'after':{'menus':_0x2ff7c8[_0x4dd5bd(0x238)](_0x142b1b=>({'id':_0x142b1b['id'],'path':_0x142b1b[_0x4dd5bd(0x22a)],'visible':_0x91826b['visible']}))},'dryRun':_0x364616,'backend':[...BACKEND],'plannedActions':_0x3fcaa7,'snapshotHash':_0x17a6b4['hash'],'warnings':_0x3fcaa7[_0x4dd5bd(0x22d)]===0x0?[_0x4dd5bd(0x202)]:[]});return{'plan':{..._0x520e15,'requestedVisible':_0x91826b['visible'],'targets':_0x2626a8},'beforeById':new Map(_0x2ff7c8['map'](_0x189d5b=>[_0x189d5b['id'],_0x189d5b]))};}function selectTargets(_0x222758,_0x591eaf,_0x427f89){const _0x4807c5=a191_0x13cfa8,_0x1cce5f=new Map(_0x222758[_0x4807c5(0x238)](_0x12064b=>[_0x12064b['id'],_0x12064b])),_0x56b8e7=new Map(),_0x1c0791=_0x591eaf[_0x4807c5(0x20e)](_0x230429=>!_0x1cce5f[_0x4807c5(0x1f2)](_0x230429));if(_0x1c0791[_0x4807c5(0x22d)]>0x0)throw menuError(_0x4807c5(0x26b),_0x4807c5(0x233)+_0x1c0791['join'](',\x20')+'.','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20exact\x20current\x20ids.');for(const _0x15fdcd of _0x591eaf){_0x56b8e7[_0x4807c5(0x214)](_0x15fdcd,_0x1cce5f[_0x4807c5(0x24f)](_0x15fdcd));}for(const _0x3c9478 of _0x427f89){const _0x30834c=_0x222758['filter'](_0x863ea8=>_0x863ea8['path']===_0x3c9478);if(_0x30834c['length']===0x0)throw menuError(_0x4807c5(0x26b),'Menu\x20path\x20selector\x20not\x20found:\x20'+JSON[_0x4807c5(0x22c)](_0x3c9478)+'.','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20an\x20exact\x20current\x20path.');if(_0x30834c['length']>0x1)throw menuError(_0x4807c5(0x207),_0x4807c5(0x212)+JSON[_0x4807c5(0x22c)](_0x3c9478)+'.',_0x4807c5(0x201)+_0x30834c[_0x4807c5(0x238)](_0x337ce2=>_0x337ce2['id'])[_0x4807c5(0x215)](',\x20')+'.');const _0x123644=_0x30834c[0x0];_0x56b8e7[_0x4807c5(0x214)](_0x123644['id'],_0x123644);}return[..._0x56b8e7['values']()];}function parseMenuIds(_0x5eaa20){const _0x51591b=a191_0x13cfa8,_0x33c6b2=parseCsv(_0x5eaa20),_0x8e87fd=_0x33c6b2[_0x51591b(0x238)](Number);if(_0x8e87fd[_0x51591b(0x258)](_0x44df11=>!Number[_0x51591b(0x23a)](_0x44df11)||_0x44df11<=0x0))throw CliErrors[_0x51591b(0x25b)](_0x51591b(0x249));return[...new Set(_0x8e87fd)];}function parseCsv(_0x5504ec){const _0x5e6140=a191_0x13cfa8;return[...new Set(_0x5504ec[_0x5e6140(0x227)](',')['map'](_0x3179f8=>_0x3179f8[_0x5e6140(0x243)]())[_0x5e6140(0x20e)](Boolean))];}function a191_0x4433(){const _0x395ade=['Selected\x20menu\x20visibility\x20changed\x20for\x20id(s):\x20','pageType','One\x20or\x20more\x20updates\x20may\x20have\x20changed\x20fields\x20outside\x20visibility;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','Updated\x20visibility\x20for\x20','menu-ids','code','byId','targets','34LMwkly','Response\x20was\x20lost\x20and\x20menu\x20','beforeById','Requested\x20menu\x20visibility','updated','plan','split','resourcesValid','sort','path','flagMissing','stringify','length','Exact\x20comma-separated\x20menu\x20paths\x20to\x20update','Abort\x20unless\x20every\x20selected\x20menu\x20has\x20this\x20visibility','verify\x20menu\x20visibility\x20update','expect-visible','write','Menu\x20id\x20selector(s)\x20not\x20found:\x20','message','2611917LfndfR','\x20was\x20not\x20found\x20during\x20visibility\x20verification.','true','map','Menu\x20','isSafeInteger','\x20visibility\x20update\x20could\x20not\x20be\x20verified','pageId','16883NXEeuI','4556MFhfZY','appCode','parentId','Visibility\x20update\x20requests\x20completed\x20but\x20readback\x20could\x20not\x20confirm\x20the\x20requested\x20state','menu_verification_failed','trim','recovered','1551460vysJvW','rawFlags','219gAmUJC','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expected-count.','--menu-ids\x20must\x20contain\x20positive\x20safe\x20integers.','The\x20update\x20may\x20have\x20taken\x20effect;\x20inspect\x20the\x20latest\x20menu\x20facts\x20before\x20retrying.','type','menuIds','47467djihlj','update','get','menus','--expected-count\x20must\x20be\x20a\x20non-negative\x20integer.','menu','expected-count','update\x20menu\x20visibility','Failed\x20update\x20requests\x20were\x20not\x20retried;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','datasetId','\x20skipped,\x20','some','number','\x20menu(s),\x20expected\x20','validation','url','\x20must\x20be\x20true\x20or\x20false.','visible','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expect-visible.','Would\x20update\x20visibility\x20for\x20','childrenIds','plannedActions','Set\x20exact\x20menus\x20visible\x20or\x20hidden\x20without\x20changing\x20their\x20routes\x20or\x20resources','rabetbase\x20menu\x20list\x20--format\x20compress','string','modelType','boolean','expectVisible','Menu\x20visibility\x20update\x20could\x20not\x20be\x20verified\x20for\x20id(s):\x20','warnings','menu_selector_not_found','\x20menu(s);\x20skipped\x20','visibility-update','update\x20visibility\x20for','\x20unchanged\x20menu(s).','update-recovery','Selected\x20','has','menu\x20list','requestedVisible','paths','245960eWHZLr','\x20menu(s);\x20skip\x20','datasetCode','Final\x20menu\x20visibility\x20readback\x20failed.','str','\x20visibility\x20could\x20not\x20be\x20verified\x20safely','menu_permission_denied','1872992iSRppj','expectedCount','label','isArray','Use\x20--menu-ids\x20with\x20one\x20or\x20more\x20of:\x20','Every\x20selected\x20menu\x20already\x20has\x20the\x20requested\x20visibility;\x20no\x20write\x20is\x20needed.','cookie','hash','verification','push','menu_selector_ambiguous','253VULCEe','Inspect\x20current\x20menu\x20facts\x20before\x20retrying\x20any\x20target.','\x20and\x20final\x20state\x20could\x20not\x20be\x20read.','depth','6hpvVOe','childrenCount','filter','Exact\x20comma-separated\x20menu\x20IDs\x20to\x20update','/smartapi/menu/update','\x20changed\x20unexpectedly.','Menu\x20path\x20selector\x20matched\x20multiple\x20menus:\x20','failed','set','join','before','POST','resources'];a191_0x4433=function(){return _0x395ade;};return a191_0x4433();}function parseBooleanFlag(_0x313c98,_0x439b71,_0x576ab7){const _0xdd5be1=a191_0x13cfa8;if(!hasFlag(_0x313c98,_0x439b71)){if(_0x576ab7)throw CliErrors[_0xdd5be1(0x22b)](_0x439b71);return undefined;}const _0x1ebe57=_0x313c98[_0xdd5be1(0x246)][_0x439b71];if(_0x1ebe57===!![]||_0x1ebe57===![])return _0x1ebe57;if(_0x1ebe57===_0xdd5be1(0x237))return!![];if(_0x1ebe57==='false')return![];throw CliErrors[_0xdd5be1(0x25b)]('--'+_0x439b71+_0xdd5be1(0x25d));}function verifyVisibilityUpdate(_0x4ccaa4,_0x236941,_0xe6ec16){const _0x234314=a191_0x13cfa8;assertVerified(!!_0x236941,_0x234314(0x239)+_0x4ccaa4['id']+_0x234314(0x236)),assertVerified(_0x236941[_0x234314(0x25e)]===_0xe6ec16,_0x234314(0x239)+_0x4ccaa4['id']+'\x20visible\x20did\x20not\x20match\x20the\x20requested\x20state.');const _0x24eba1=[['id',_0x236941['id'],_0x4ccaa4['id']],[_0x234314(0x240),_0x236941[_0x234314(0x240)],_0x4ccaa4['parentId']],[_0x234314(0x20b),_0x236941['depth'],_0x4ccaa4[_0x234314(0x20b)]],[_0x234314(0x1ff),_0x236941['label'],_0x4ccaa4[_0x234314(0x1ff)]],[_0x234314(0x22a),_0x236941[_0x234314(0x22a)],_0x4ccaa4[_0x234314(0x22a)]],[_0x234314(0x25c),_0x236941[_0x234314(0x25c)],_0x4ccaa4[_0x234314(0x25c)]],[_0x234314(0x24b),_0x236941[_0x234314(0x24b)],_0x4ccaa4[_0x234314(0x24b)]],[_0x234314(0x229),_0x236941[_0x234314(0x229)],_0x4ccaa4[_0x234314(0x229)]],['resources',_0x236941[_0x234314(0x218)],_0x4ccaa4[_0x234314(0x218)]],[_0x234314(0x228),_0x236941[_0x234314(0x228)],_0x4ccaa4['resourcesValid']],[_0x234314(0x261),_0x236941[_0x234314(0x261)],_0x4ccaa4[_0x234314(0x261)]],[_0x234314(0x20d),_0x236941['childrenCount'],_0x4ccaa4['childrenCount']],[_0x234314(0x23c),_0x236941['pageId'],_0x4ccaa4['pageId']],[_0x234314(0x21a),_0x236941[_0x234314(0x21a)],_0x4ccaa4['pageType']],['modelType',_0x236941[_0x234314(0x266)],_0x4ccaa4[_0x234314(0x266)]],[_0x234314(0x256),_0x236941[_0x234314(0x256)],_0x4ccaa4[_0x234314(0x256)]],['datasetCode',_0x236941[_0x234314(0x1f8)],_0x4ccaa4['datasetCode']]];for(const [_0x1e3efb,_0x51ffa5,_0x5aa8ba]of _0x24eba1){assertVerified(sameValue(_0x51ffa5,_0x5aa8ba),_0x234314(0x239)+_0x4ccaa4['id']+'\x20'+_0x1e3efb+_0x234314(0x211));}}function sameValue(_0x4506f1,_0x3f486e){const _0x112328=a191_0x13cfa8;if(Array[_0x112328(0x200)](_0x4506f1)||Array[_0x112328(0x200)](_0x3f486e))return JSON['stringify'](_0x4506f1)===JSON[_0x112328(0x22c)](_0x3f486e);return _0x4506f1===_0x3f486e;}
@@ -1 +1 @@
1
- function a192_0x1e7e(){const _0x53f229=['4398BIhfdC','730zAUtKY','/notification/channel-config/create','document','channelType','Inspect\x20with\x20','3cYAZOu',';\x20do\x20not\x20resubmit.','56QXnrhB','readTimeout','appCode','create','mutation',';\x20do\x20not\x20resubmit\x20automatically.','channelConfig','verified',';\x20no\x20automatic\x20retry\x20was\x20attempted.','configName','18941879jfKhMs','2487884aTyMJD','config-create','2cPIZkI','POST','2286370mZnuCN','configCode','1575332wLdHLI','Notification\x20config\x20create\x20returned\x20no\x20usable\x20server\x20ID.','Created\x20notification\x20config\x20','395865FifPMf','notification_config_create_outcome_unknown','planned','verification','connectTimeout','description','notification','203938ToPjBv','input','write','isSafeInteger'];a192_0x1e7e=function(){return _0x53f229;};return a192_0x1e7e();}const a192_0x3b2978=a192_0x513c;(function(_0x33cbe8,_0x26de1d){const _0x4fd868=a192_0x513c,_0x2211c3=_0x33cbe8();while(!![]){try{const _0x198938=-parseInt(_0x4fd868(0xc5))/0x1*(parseInt(_0x4fd868(0xde))/0x2)+parseInt(_0x4fd868(0xcf))/0x3*(-parseInt(_0x4fd868(0xe2))/0x4)+parseInt(_0x4fd868(0xca))/0x5*(parseInt(_0x4fd868(0xc9))/0x6)+-parseInt(_0x4fd868(0xdc))/0x7+parseInt(_0x4fd868(0xd1))/0x8*(-parseInt(_0x4fd868(0xe5))/0x9)+-parseInt(_0x4fd868(0xe0))/0xa+parseInt(_0x4fd868(0xdb))/0xb;if(_0x198938===_0x26de1d)break;else _0x2211c3['push'](_0x2211c3['shift']());}catch(_0xe83ff8){_0x2211c3['push'](_0x2211c3['shift']());}}}(a192_0x1e7e,0x52d5c));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_0x3b2978(0xcb);function a192_0x513c(_0x1ac386,_0x3e1b57){_0x1ac386=_0x1ac386-0xc0;const _0x1e7e49=a192_0x1e7e();let _0x513c5b=_0x1e7e49[_0x1ac386];return _0x513c5b;}async function prepareCreate(_0x5e1cbd){const _0x97623c=a192_0x3b2978,_0x43f8a0=await readNotificationDocument(_0x5e1cbd,_0x97623c(0xd4)),_0x560bb2=createMutationInput(_0x5e1cbd[_0x97623c(0xd3)],_0x43f8a0);return{'document':_0x43f8a0,'input':_0x560bb2,'planned':projectNotificationConfig({'appCode':_0x5e1cbd[_0x97623c(0xd3)],'configName':_0x43f8a0[_0x97623c(0xda)],'channelType':_0x43f8a0[_0x97623c(0xcd)],'endpointUrl':_0x43f8a0['endpointUrl'],'channelConfig':_0x43f8a0[_0x97623c(0xd7)],'description':_0x43f8a0[_0x97623c(0xc3)],'connectTimeout':_0x43f8a0[_0x97623c(0xc2)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,'readTimeout':_0x43f8a0[_0x97623c(0xd2)]??DEFAULT_NOTIFICATION_READ_TIMEOUT})};}export const notificationConfigCreate={'service':a192_0x3b2978(0xc4),'command':a192_0x3b2978(0xdd),'description':'Create\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20source','risk':a192_0x3b2978(0xc7),'requiresAppCode':!![],'structuredErrors':!![],'flags':[...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x25fa75){assertSingleNotificationSource(_0x25fa75);},async 'dryRun'(_0x56b98e){const _0x40c876=a192_0x3b2978,_0xeee3d3=await prepareCreate(_0x56b98e),_0x2a72b1=notificationLookupCommand(_0x56b98e[_0x40c876(0xd3)],_0xeee3d3['document']['channelType']);return asDryRunResult({'operation':'create','selector':{'appCode':_0x56b98e[_0x40c876(0xd3)],'configName':_0xeee3d3[_0x40c876(0xcc)][_0x40c876(0xda)],'channelType':_0xeee3d3[_0x40c876(0xcc)]['channelType']},'before':null,'after':_0xeee3d3[_0x40c876(0xc0)],'dryRun':!![],'backend':{'method':_0x40c876(0xdf),'path':CREATE_PATH},'warnings':[],'verification':{'status':_0x40c876(0xc0),'lookupCommand':_0x2a72b1}},{'method':_0x40c876(0xdf),'url':CREATE_PATH});},async 'execute'(_0x2420ab){const _0x8243f=a192_0x3b2978,_0x3ed9ca=await prepareCreate(_0x2420ab),_0x5f478e=notificationLookupCommand(_0x2420ab[_0x8243f(0xd3)],_0x3ed9ca[_0x8243f(0xcc)][_0x8243f(0xcd)]);let _0x3e40d3;try{_0x3e40d3=await createNotificationChannelConfig(_0x3ed9ca[_0x8243f(0xc6)]);}catch(_0x1f9725){if(isPlatformTransportFailure(_0x1f9725))throw notificationError(_0x8243f(0xe6),'Notification\x20config\x20create\x20outcome\x20is\x20unknown\x20because\x20no\x20server\x20ID\x20was\x20received.','Inspect\x20with\x20'+_0x5f478e+';\x20do\x20not\x20resubmit.');throw safeApiFailure(_0x8243f(0xd4),_0x8243f(0xd5),_0x8243f(0xce)+_0x5f478e+_0x8243f(0xd9));}if(!Number[_0x8243f(0xc8)](_0x3e40d3)||_0x3e40d3<=0x0)throw notificationError(_0x8243f(0xe6),_0x8243f(0xe3),_0x8243f(0xce)+_0x5f478e+_0x8243f(0xd0));let _0x4c8e8c;try{const _0x5ca2ae=await getNotificationChannelConfig(_0x3e40d3,_0x2420ab['appCode']);_0x4c8e8c=normalizeExactNotificationConfig(_0x5ca2ae,_0x3e40d3,_0x2420ab['appCode']);}catch{throw safeApiFailure(_0x8243f(0xd4),_0x8243f(0xc1),'Inspect\x20with\x20'+_0x5f478e+_0x8243f(0xd6));}return{'ok':!![],'data':{'operation':_0x8243f(0xd4),'selector':{'appCode':_0x4c8e8c[_0x8243f(0xd3)],'id':_0x4c8e8c['id'],'configCode':_0x4c8e8c[_0x8243f(0xe1)],'configName':_0x4c8e8c[_0x8243f(0xda)],'channelType':_0x4c8e8c[_0x8243f(0xcd)]},'before':null,'after':projectNotificationConfig(_0x4c8e8c),'dryRun':![],'backend':{'method':_0x8243f(0xdf),'path':CREATE_PATH},'warnings':[],'verification':{'status':_0x8243f(0xd8),'lookupCommand':_0x5f478e}},'message':_0x8243f(0xe4)+_0x4c8e8c['id']};}};
1
+ const a192_0xde3faa=a192_0x3496;(function(_0x3ece6e,_0x513e79){const _0x5fe01e=a192_0x3496,_0x469d2a=_0x3ece6e();while(!![]){try{const _0x58212e=parseInt(_0x5fe01e(0x16d))/0x1*(parseInt(_0x5fe01e(0x17e))/0x2)+parseInt(_0x5fe01e(0x184))/0x3*(-parseInt(_0x5fe01e(0x18b))/0x4)+parseInt(_0x5fe01e(0x188))/0x5*(parseInt(_0x5fe01e(0x194))/0x6)+-parseInt(_0x5fe01e(0x174))/0x7*(-parseInt(_0x5fe01e(0x171))/0x8)+-parseInt(_0x5fe01e(0x176))/0x9+-parseInt(_0x5fe01e(0x172))/0xa+-parseInt(_0x5fe01e(0x17b))/0xb*(-parseInt(_0x5fe01e(0x17f))/0xc);if(_0x58212e===_0x513e79)break;else _0x469d2a['push'](_0x469d2a['shift']());}catch(_0x30c650){_0x469d2a['push'](_0x469d2a['shift']());}}}(a192_0x134d,0xd02d6));import{asDryRunResult}from'../../commands/common/dry-run.js';import{createNotificationChannelConfig,getNotificationChannelConfig,isPlatformTransportFailure}from'../../core/api-client.js';import{assertSingleNotificationSource,createMutationInput,DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,DEFAULT_NOTIFICATION_READ_TIMEOUT,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,NOTIFICATION_APP_FLAG,NOTIFICATION_INPUT_FLAGS,projectNotificationConfig,readNotificationDocument,safeApiFailure}from'../../commands/notification/shared.js';function a192_0x3496(_0x48e0e8,_0x399f43){_0x48e0e8=_0x48e0e8-0x16c;const _0x134dbb=a192_0x134d();let _0x34965a=_0x134dbb[_0x48e0e8];return _0x34965a;}const CREATE_PATH=a192_0xde3faa(0x16c);function a192_0x134d(){const _0x42fbfd=['appCode','document','verified','12FIbVqb','/notification/channel-config/create','31SxZnLr','Inspect\x20with\x20','Notification\x20config\x20create\x20outcome\x20is\x20unknown\x20because\x20no\x20server\x20ID\x20was\x20received.','mutation','8vhdlMY','14773360sQySMj','connectTimeout','3559619lsjgMw','isSafeInteger','12317733FnlBTy','write','notification_config_create_outcome_unknown','readTimeout','notification','180983UopCAv','create','input','52994jcKIiU','1668EDYOnG',';\x20do\x20not\x20resubmit.','Notification\x20config\x20create\x20returned\x20no\x20usable\x20server\x20ID.','endpointUrl','configName','6141PViEsK','Create\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20source','configCode','config-create','2056975LFmbrR',';\x20do\x20not\x20resubmit\x20automatically.','channelConfig','1448LDbYiD','channelType','description','verification','POST','planned'];a192_0x134d=function(){return _0x42fbfd;};return a192_0x134d();}async function prepareCreate(_0x334723){const _0x290c94=a192_0xde3faa,_0x802c48=await readNotificationDocument(_0x334723,_0x290c94(0x17c)),_0x4faae2=createMutationInput(_0x334723['appCode'],_0x802c48);return{'document':_0x802c48,'input':_0x4faae2,'planned':projectNotificationConfig({'appCode':_0x334723[_0x290c94(0x191)],'configName':_0x802c48[_0x290c94(0x183)],'channelType':_0x802c48[_0x290c94(0x18c)],'endpointUrl':_0x802c48[_0x290c94(0x182)],'channelConfig':_0x802c48[_0x290c94(0x18a)],'description':_0x802c48[_0x290c94(0x18d)],'connectTimeout':_0x802c48[_0x290c94(0x173)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,'readTimeout':_0x802c48[_0x290c94(0x179)]??DEFAULT_NOTIFICATION_READ_TIMEOUT})};}export const notificationConfigCreate={'service':a192_0xde3faa(0x17a),'command':a192_0xde3faa(0x187),'description':a192_0xde3faa(0x185),'risk':a192_0xde3faa(0x177),'requiresAppCode':!![],'structuredErrors':!![],'flags':[...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x3a3f13){assertSingleNotificationSource(_0x3a3f13);},async 'dryRun'(_0x50f765){const _0x1c5e19=a192_0xde3faa,_0x25ca48=await prepareCreate(_0x50f765),_0x3e06d5=notificationLookupCommand(_0x50f765['appCode'],_0x25ca48[_0x1c5e19(0x192)][_0x1c5e19(0x18c)]);return asDryRunResult({'operation':_0x1c5e19(0x17c),'selector':{'appCode':_0x50f765[_0x1c5e19(0x191)],'configName':_0x25ca48['document'][_0x1c5e19(0x183)],'channelType':_0x25ca48[_0x1c5e19(0x192)][_0x1c5e19(0x18c)]},'before':null,'after':_0x25ca48[_0x1c5e19(0x190)],'dryRun':!![],'backend':{'method':_0x1c5e19(0x18f),'path':CREATE_PATH},'warnings':[],'verification':{'status':_0x1c5e19(0x190),'lookupCommand':_0x3e06d5}},{'method':'POST','url':CREATE_PATH});},async 'execute'(_0x1de750){const _0x5542a2=a192_0xde3faa,_0x46574d=await prepareCreate(_0x1de750),_0x339826=notificationLookupCommand(_0x1de750[_0x5542a2(0x191)],_0x46574d[_0x5542a2(0x192)]['channelType']);let _0x504b63;try{_0x504b63=await createNotificationChannelConfig(_0x46574d[_0x5542a2(0x17d)]);}catch(_0xf01efc){if(isPlatformTransportFailure(_0xf01efc))throw notificationError('notification_config_create_outcome_unknown',_0x5542a2(0x16f),_0x5542a2(0x16e)+_0x339826+';\x20do\x20not\x20resubmit.');throw safeApiFailure('create',_0x5542a2(0x170),'Inspect\x20with\x20'+_0x339826+';\x20no\x20automatic\x20retry\x20was\x20attempted.');}if(!Number[_0x5542a2(0x175)](_0x504b63)||_0x504b63<=0x0)throw notificationError(_0x5542a2(0x178),_0x5542a2(0x181),_0x5542a2(0x16e)+_0x339826+_0x5542a2(0x180));let _0xf26db1;try{const _0x2613f6=await getNotificationChannelConfig(_0x504b63,_0x1de750[_0x5542a2(0x191)]);_0xf26db1=normalizeExactNotificationConfig(_0x2613f6,_0x504b63,_0x1de750[_0x5542a2(0x191)]);}catch{throw safeApiFailure(_0x5542a2(0x17c),_0x5542a2(0x18e),_0x5542a2(0x16e)+_0x339826+_0x5542a2(0x189));}return{'ok':!![],'data':{'operation':_0x5542a2(0x17c),'selector':{'appCode':_0xf26db1[_0x5542a2(0x191)],'id':_0xf26db1['id'],'configCode':_0xf26db1[_0x5542a2(0x186)],'configName':_0xf26db1[_0x5542a2(0x183)],'channelType':_0xf26db1[_0x5542a2(0x18c)]},'before':null,'after':projectNotificationConfig(_0xf26db1),'dryRun':![],'backend':{'method':_0x5542a2(0x18f),'path':CREATE_PATH},'warnings':[],'verification':{'status':_0x5542a2(0x193),'lookupCommand':_0x339826}},'message':'Created\x20notification\x20config\x20'+_0xf26db1['id']};}};
@@ -1 +1 @@
1
- const a193_0x55d209=a193_0xeea7;(function(_0x3746d6,_0x566742){const _0x518174=a193_0xeea7,_0x110f59=_0x3746d6();while(!![]){try{const _0x47849d=-parseInt(_0x518174(0x1d0))/0x1+-parseInt(_0x518174(0x1e1))/0x2+-parseInt(_0x518174(0x1ca))/0x3*(-parseInt(_0x518174(0x1d4))/0x4)+parseInt(_0x518174(0x1cd))/0x5+parseInt(_0x518174(0x1cf))/0x6*(parseInt(_0x518174(0x1c5))/0x7)+parseInt(_0x518174(0x1d1))/0x8*(-parseInt(_0x518174(0x1d9))/0x9)+-parseInt(_0x518174(0x1e0))/0xa*(-parseInt(_0x518174(0x1c9))/0xb);if(_0x47849d===_0x566742)break;else _0x110f59['push'](_0x110f59['shift']());}catch(_0x36c61f){_0x110f59['push'](_0x110f59['shift']());}}}(a193_0x42ef,0xee063));import{asDryRunResult}from'../../commands/common/dry-run.js';import{deleteNotificationChannelConfig,isPlatformTransportFailure,listNotificationChannelConfigs}from'../../core/api-client.js';function a193_0xeea7(_0x3d3813,_0x46881e){_0x3d3813=_0x3d3813-0x1c3;const _0x42ef08=a193_0x42ef();let _0xeea7e1=_0x42ef08[_0x3d3813];return _0xeea7e1;}function a193_0x42ef(){const _0x1c799f=['verified','Inspect\x20with\x20','notification_config_delete_verification_unavailable','some','channelType','Deleted\x20notification\x20config\x20','310WTgbQp','2712802RpWEfv','\x20delete\x20could\x20not\x20be\x20verified.','mutation','\x20remains\x20present\x20after\x20delete.','6413666JKBUfk','Notification\x20config\x20','before','notification_config_delete_verification_failed','471823IOMWUU','3sWZEGf','appCode','notification','9355890Xtszdk','/notification/channel-config/delete','6tBsOgt','649259RIupCA','8qgMIbG','notification_config_delete_outcome_unknown','POST','2157468CFKcol','config-delete',';\x20do\x20not\x20resubmit\x20automatically.','delete','high-risk-write','15082731bKbxvN'];a193_0x42ef=function(){return _0x1c799f;};return a193_0x42ef();}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_0x55d209(0x1ce),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(_0x46b631){const _0x3ecda0=a193_0x55d209,_0x2fa06e=readNotificationId(_0x46b631),_0x5d44b6=await requireExactNotificationConfig(_0x46b631['appCode'],_0x2fa06e,_0x3ecda0(0x1d7));return{'id':_0x2fa06e,'before':_0x5d44b6};}export const notificationConfigDelete={'service':a193_0x55d209(0x1cc),'command':a193_0x55d209(0x1d5),'description':'Delete\x20an\x20app-level\x20notification\x20config\x20after\x20exact\x20preflight','risk':a193_0x55d209(0x1d8),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,NOTIFICATION_APP_FLAG],async 'validate'(_0x3b7a50){readNotificationId(_0x3b7a50),requireNotificationExplicitYes(_0x3b7a50);},async 'dryRun'(_0x4e631a){const _0x2865db=a193_0x55d209,_0x2634c7=await prepareDelete(_0x4e631a),_0x1e1309=notificationLookupCommand(_0x4e631a[_0x2865db(0x1cb)],_0x2634c7[_0x2865db(0x1c7)]['channelType']);return asDryRunResult({'operation':'delete','selector':notificationSelector(_0x2634c7['before']),'before':projectNotificationConfig(_0x2634c7['before']),'after':null,'dryRun':!![],'backend':{'method':_0x2865db(0x1d3),'path':DELETE_PATH},'warnings':[REFERENCE_WARNING],'verification':{'status':'planned','lookupCommand':_0x1e1309}},{'method':_0x2865db(0x1d3),'url':DELETE_PATH});},async 'execute'(_0x247216){const _0x32e236=a193_0x55d209;requireNotificationExplicitYes(_0x247216);const _0x205103=await prepareDelete(_0x247216),_0x450264=notificationLookupCommand(_0x247216[_0x32e236(0x1cb)],_0x205103[_0x32e236(0x1c7)]['channelType']);let _0x5502a1=![];try{await deleteNotificationChannelConfig(_0x205103['id'],_0x247216[_0x32e236(0x1cb)]);}catch(_0x7be67c){if(!isPlatformTransportFailure(_0x7be67c))throw safeApiFailure(_0x32e236(0x1d7),_0x32e236(0x1c3),_0x32e236(0x1db)+_0x450264+';\x20no\x20automatic\x20retry\x20was\x20attempted.');_0x5502a1=!![];}let _0xfbc3c7;try{_0xfbc3c7=await listNotificationChannelConfigs(_0x247216[_0x32e236(0x1cb)],_0x205103['before'][_0x32e236(0x1de)]),validateNotificationDeleteReadback(_0xfbc3c7,_0x247216['appCode'],_0x205103[_0x32e236(0x1c7)]['channelType']);}catch{throw notificationError(_0x5502a1?_0x32e236(0x1d2):_0x32e236(0x1dc),_0x32e236(0x1c6)+_0x205103['id']+_0x32e236(0x1e2),_0x32e236(0x1db)+_0x450264+_0x32e236(0x1d6));}if(_0xfbc3c7[_0x32e236(0x1dd)](_0x5e8260=>_0x5e8260['id']===_0x205103['id']))throw notificationError(_0x5502a1?_0x32e236(0x1d2):_0x32e236(0x1c8),_0x32e236(0x1c6)+_0x205103['id']+_0x32e236(0x1c4),'Inspect\x20with\x20'+_0x450264+';\x20do\x20not\x20resubmit\x20automatically.');const _0x1261cf=[REFERENCE_WARNING];return _0x5502a1&&_0x1261cf['unshift']('Delete\x20response\x20was\x20unavailable;\x20list\x20readback\x20proved\x20ID\x20absence\x20without\x20resubmitting.'),{'ok':!![],'data':{'operation':'delete','selector':notificationSelector(_0x205103[_0x32e236(0x1c7)]),'before':projectNotificationConfig(_0x205103[_0x32e236(0x1c7)]),'after':null,'dryRun':![],'backend':{'method':_0x32e236(0x1d3),'path':DELETE_PATH},'warnings':_0x1261cf,'verification':{'status':_0x32e236(0x1da),'absenceConfirmed':!![],'recoveredAfterUnknownResponse':_0x5502a1,'lookupCommand':_0x450264}},'message':_0x32e236(0x1df)+_0x205103['id']};}};
1
+ const a193_0x3bb4d4=a193_0x3368;(function(_0x36a0f2,_0x573d8b){const _0x36d700=a193_0x3368,_0x35e128=_0x36a0f2();while(!![]){try{const _0x3daed0=parseInt(_0x36d700(0x188))/0x1*(-parseInt(_0x36d700(0x172))/0x2)+-parseInt(_0x36d700(0x184))/0x3*(-parseInt(_0x36d700(0x16c))/0x4)+-parseInt(_0x36d700(0x174))/0x5*(-parseInt(_0x36d700(0x16e))/0x6)+parseInt(_0x36d700(0x16a))/0x7+-parseInt(_0x36d700(0x186))/0x8*(-parseInt(_0x36d700(0x18a))/0x9)+-parseInt(_0x36d700(0x17c))/0xa*(parseInt(_0x36d700(0x182))/0xb)+-parseInt(_0x36d700(0x180))/0xc;if(_0x3daed0===_0x573d8b)break;else _0x35e128['push'](_0x35e128['shift']());}catch(_0x4917ed){_0x35e128['push'](_0x35e128['shift']());}}}(a193_0x448e,0x74db8));function a193_0x3368(_0x36e98c,_0x340225){_0x36e98c=_0x36e98c-0x168;const _0x448e9f=a193_0x448e();let _0x33684b=_0x448e9f[_0x36e98c];return _0x33684b;}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_0x3bb4d4(0x17a),REFERENCE_WARNING=a193_0x3bb4d4(0x181);async function prepareDelete(_0x144141){const _0x20b802=a193_0x3bb4d4,_0x5992a2=readNotificationId(_0x144141),_0x2a7284=await requireExactNotificationConfig(_0x144141[_0x20b802(0x16d)],_0x5992a2,'delete');return{'id':_0x5992a2,'before':_0x2a7284};}export const notificationConfigDelete={'service':a193_0x3bb4d4(0x185),'command':'config-delete','description':a193_0x3bb4d4(0x168),'risk':a193_0x3bb4d4(0x16b),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,NOTIFICATION_APP_FLAG],async 'validate'(_0x383275){readNotificationId(_0x383275),requireNotificationExplicitYes(_0x383275);},async 'dryRun'(_0x52f8c2){const _0x2fae44=a193_0x3bb4d4,_0x3f2875=await prepareDelete(_0x52f8c2),_0x26c1ee=notificationLookupCommand(_0x52f8c2['appCode'],_0x3f2875[_0x2fae44(0x173)][_0x2fae44(0x16f)]);return asDryRunResult({'operation':_0x2fae44(0x175),'selector':notificationSelector(_0x3f2875['before']),'before':projectNotificationConfig(_0x3f2875[_0x2fae44(0x173)]),'after':null,'dryRun':!![],'backend':{'method':_0x2fae44(0x17d),'path':DELETE_PATH},'warnings':[REFERENCE_WARNING],'verification':{'status':_0x2fae44(0x171),'lookupCommand':_0x26c1ee}},{'method':_0x2fae44(0x17d),'url':DELETE_PATH});},async 'execute'(_0x5c3503){const _0x5a57a9=a193_0x3bb4d4;requireNotificationExplicitYes(_0x5c3503);const _0x3fa30e=await prepareDelete(_0x5c3503),_0x13f6be=notificationLookupCommand(_0x5c3503[_0x5a57a9(0x16d)],_0x3fa30e[_0x5a57a9(0x173)][_0x5a57a9(0x16f)]);let _0x42300c=![];try{await deleteNotificationChannelConfig(_0x3fa30e['id'],_0x5c3503[_0x5a57a9(0x16d)]);}catch(_0x31a649){if(!isPlatformTransportFailure(_0x31a649))throw safeApiFailure(_0x5a57a9(0x175),_0x5a57a9(0x170),_0x5a57a9(0x169)+_0x13f6be+_0x5a57a9(0x17b));_0x42300c=!![];}let _0x1c4ec7;try{_0x1c4ec7=await listNotificationChannelConfigs(_0x5c3503[_0x5a57a9(0x16d)],_0x3fa30e[_0x5a57a9(0x173)]['channelType']),validateNotificationDeleteReadback(_0x1c4ec7,_0x5c3503['appCode'],_0x3fa30e[_0x5a57a9(0x173)]['channelType']);}catch{throw notificationError(_0x42300c?_0x5a57a9(0x177):_0x5a57a9(0x187),_0x5a57a9(0x183)+_0x3fa30e['id']+_0x5a57a9(0x17e),_0x5a57a9(0x169)+_0x13f6be+_0x5a57a9(0x179));}if(_0x1c4ec7[_0x5a57a9(0x178)](_0x493607=>_0x493607['id']===_0x3fa30e['id']))throw notificationError(_0x42300c?_0x5a57a9(0x177):_0x5a57a9(0x17f),'Notification\x20config\x20'+_0x3fa30e['id']+'\x20remains\x20present\x20after\x20delete.',_0x5a57a9(0x169)+_0x13f6be+_0x5a57a9(0x179));const _0x8314c6=[REFERENCE_WARNING];return _0x42300c&&_0x8314c6[_0x5a57a9(0x189)](_0x5a57a9(0x176)),{'ok':!![],'data':{'operation':_0x5a57a9(0x175),'selector':notificationSelector(_0x3fa30e[_0x5a57a9(0x173)]),'before':projectNotificationConfig(_0x3fa30e['before']),'after':null,'dryRun':![],'backend':{'method':_0x5a57a9(0x17d),'path':DELETE_PATH},'warnings':_0x8314c6,'verification':{'status':_0x5a57a9(0x18b),'absenceConfirmed':!![],'recoveredAfterUnknownResponse':_0x42300c,'lookupCommand':_0x13f6be}},'message':'Deleted\x20notification\x20config\x20'+_0x3fa30e['id']};}};function a193_0x448e(){const _0x262477=['3LIGhTA','notification','48kdiuuV','notification_config_delete_verification_unavailable','563VUuLfT','unshift','72279ONjlRF','verified','Delete\x20an\x20app-level\x20notification\x20config\x20after\x20exact\x20preflight','Inspect\x20with\x20','6605445DucHMk','high-risk-write','2119300aQmZFy','appCode','6ATVHOE','channelType','mutation','planned','932akWvQK','before','2717035ReYuIA','delete','Delete\x20response\x20was\x20unavailable;\x20list\x20readback\x20proved\x20ID\x20absence\x20without\x20resubmitting.','notification_config_delete_outcome_unknown','some',';\x20do\x20not\x20resubmit\x20automatically.','/notification/channel-config/delete',';\x20no\x20automatic\x20retry\x20was\x20attempted.','40cPvFMh','POST','\x20delete\x20could\x20not\x20be\x20verified.','notification_config_delete_verification_failed','5808132SofUfL','Deleting\x20this\x20app-level\x20config\x20may\x20make\x20dataset-level\x20channels\x20that\x20reference\x20it\x20unavailable;\x20dataset\x20references\x20were\x20not\x20verified\x20by\x20the\x20CLI.','2310099tKtBGw','Notification\x20config\x20'];a193_0x448e=function(){return _0x262477;};return a193_0x448e();}
@@ -1 +1 @@
1
- const a194_0x13dffb=a194_0x50c4;(function(_0x1b73f3,_0x146d54){const _0x5b149c=a194_0x50c4,_0x433020=_0x1b73f3();while(!![]){try{const _0x51b42a=-parseInt(_0x5b149c(0x164))/0x1+-parseInt(_0x5b149c(0x153))/0x2+-parseInt(_0x5b149c(0x160))/0x3+parseInt(_0x5b149c(0x15b))/0x4+parseInt(_0x5b149c(0x15c))/0x5*(parseInt(_0x5b149c(0x15f))/0x6)+parseInt(_0x5b149c(0x158))/0x7*(parseInt(_0x5b149c(0x150))/0x8)+parseInt(_0x5b149c(0x159))/0x9*(parseInt(_0x5b149c(0x151))/0xa);if(_0x51b42a===_0x146d54)break;else _0x433020['push'](_0x433020['shift']());}catch(_0x4bcb30){_0x433020['push'](_0x433020['shift']());}}}(a194_0x4d08,0x88010));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a194_0x4d08(){const _0x1f7715=['1049740suFkBP','2690IrrkQY','validation','boolean','3060JlJuhg','2480013OOAfAI','map','List\x20configs\x20for\x20every\x20supported\x20notification\x20channel\x20type','Notification\x20channel\x20type','28132wBwRQY','read','type','\x20notification\x20config(s)','string','appCode','length','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','7632jOZPzb','10986960WSuHGo','flat','464444iAFejP','bool','--all\x20and\x20--type\x20are\x20mutually\x20exclusive.','str','all','63FchCyN','9YAXClC','Use\x20--all,\x20or\x20query\x20one\x20explicit\x20--type.'];a194_0x4d08=function(){return _0x1f7715;};return a194_0x4d08();}import{listNotificationChannelConfigs}from'../../core/api-client.js';function a194_0x50c4(_0x2205a2,_0xd28943){_0x2205a2=_0x2205a2-0x14b;const _0x4d08e5=a194_0x4d08();let _0x50c49b=_0x4d08e5[_0x2205a2];return _0x50c49b;}import{CliErrors}from'../../errors.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':'notification','command':'config-list','description':a194_0x13dffb(0x14f),'risk':a194_0x13dffb(0x165),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a194_0x13dffb(0x166),'type':a194_0x13dffb(0x14c),'description':a194_0x13dffb(0x163),'enum':NOTIFICATION_CHANNEL_TYPES},{'name':a194_0x13dffb(0x157),'type':a194_0x13dffb(0x15e),'default':![],'description':a194_0x13dffb(0x162)}],async 'validate'(_0x34c2cd){const _0x214474=a194_0x13dffb;if(_0x34c2cd[_0x214474(0x154)]('all')&&_0x34c2cd[_0x214474(0x156)]('type')['trim']())throw CliErrors[_0x214474(0x15d)](_0x214474(0x155),_0x214474(0x15a));if(_0x34c2cd[_0x214474(0x154)](_0x214474(0x157)))return;readNotificationChannelType(_0x34c2cd);},async 'execute'(_0x2a3d7f){const _0x405ddf=a194_0x13dffb;if(_0x2a3d7f[_0x405ddf(0x154)]('all')){const _0x3e870b=await Promise[_0x405ddf(0x157)](NOTIFICATION_CHANNEL_TYPES['map'](_0x3f868d=>listNotificationChannelConfigs(_0x2a3d7f[_0x405ddf(0x14d)],_0x3f868d))),_0x567f8b=_0x3e870b[_0x405ddf(0x152)]()[_0x405ddf(0x161)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x2a3d7f[_0x405ddf(0x14d)],'channelTypes':NOTIFICATION_CHANNEL_TYPES,'count':_0x567f8b[_0x405ddf(0x14e)],'configs':_0x567f8b},'message':'Found\x20'+_0x567f8b[_0x405ddf(0x14e)]+'\x20notification\x20config(s)\x20across\x20all\x20channel\x20types'};}const _0x534741=readNotificationChannelType(_0x2a3d7f),_0x10270c=await listNotificationChannelConfigs(_0x2a3d7f[_0x405ddf(0x14d)],_0x534741),_0x42b364=_0x10270c[_0x405ddf(0x161)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x2a3d7f[_0x405ddf(0x14d)],'channelType':_0x534741,'count':_0x42b364[_0x405ddf(0x14e)],'configs':_0x42b364},'message':'Found\x20'+_0x42b364[_0x405ddf(0x14e)]+'\x20'+_0x534741+_0x405ddf(0x14b)};}};
1
+ const a194_0x36eb11=a194_0x21d5;function a194_0x5124(){const _0x28d3f1=['Notification\x20channel\x20type','6126690GXpzab','validation','read','Found\x20','boolean','trim','\x20notification\x20config(s)','bool','9615460xvgRgY','List\x20configs\x20for\x20every\x20supported\x20notification\x20channel\x20type','all','str','341110LosbEC','type','9QHgLvp','notification','Use\x20--all,\x20or\x20query\x20one\x20explicit\x20--type.','appCode','5GpclFX','183642Xkqfsa','config-list','flat','24YVXgHU','string','length','\x20notification\x20config(s)\x20across\x20all\x20channel\x20types','map','7322718ghaLNj','4699336DDsjlv','--all\x20and\x20--type\x20are\x20mutually\x20exclusive.','1377481fLlDKC'];a194_0x5124=function(){return _0x28d3f1;};return a194_0x5124();}(function(_0x26423b,_0x59ab9b){const _0x3a9f71=a194_0x21d5,_0x263fe6=_0x26423b();while(!![]){try{const _0x1bebc6=parseInt(_0x3a9f71(0x1a1))/0x1*(parseInt(_0x3a9f71(0x19b))/0x2)+-parseInt(_0x3a9f71(0x1a2))/0x3*(-parseInt(_0x3a9f71(0x1a5))/0x4)+-parseInt(_0x3a9f71(0x18f))/0x5+parseInt(_0x3a9f71(0x1aa))/0x6+-parseInt(_0x3a9f71(0x1ad))/0x7+-parseInt(_0x3a9f71(0x1ab))/0x8*(-parseInt(_0x3a9f71(0x19d))/0x9)+-parseInt(_0x3a9f71(0x197))/0xa;if(_0x1bebc6===_0x59ab9b)break;else _0x263fe6['push'](_0x263fe6['shift']());}catch(_0x5c3169){_0x263fe6['push'](_0x263fe6['shift']());}}}(a194_0x5124,0x9d4a6));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';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_0x21d5(_0x4589e5,_0x3f00b9){_0x4589e5=_0x4589e5-0x18e;const _0x512475=a194_0x5124();let _0x21d5f2=_0x512475[_0x4589e5];return _0x21d5f2;}export const notificationConfigList={'service':a194_0x36eb11(0x19e),'command':a194_0x36eb11(0x1a3),'description':'List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','risk':a194_0x36eb11(0x191),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a194_0x36eb11(0x19c),'type':a194_0x36eb11(0x1a6),'description':a194_0x36eb11(0x18e),'enum':NOTIFICATION_CHANNEL_TYPES},{'name':a194_0x36eb11(0x199),'type':a194_0x36eb11(0x193),'default':![],'description':a194_0x36eb11(0x198)}],async 'validate'(_0x57b4b9){const _0x1b6a55=a194_0x36eb11;if(_0x57b4b9[_0x1b6a55(0x196)]('all')&&_0x57b4b9[_0x1b6a55(0x19a)](_0x1b6a55(0x19c))[_0x1b6a55(0x194)]())throw CliErrors[_0x1b6a55(0x190)](_0x1b6a55(0x1ac),_0x1b6a55(0x19f));if(_0x57b4b9['bool'](_0x1b6a55(0x199)))return;readNotificationChannelType(_0x57b4b9);},async 'execute'(_0x17ef7f){const _0xe39e87=a194_0x36eb11;if(_0x17ef7f[_0xe39e87(0x196)](_0xe39e87(0x199))){const _0x17664f=await Promise[_0xe39e87(0x199)](NOTIFICATION_CHANNEL_TYPES[_0xe39e87(0x1a9)](_0x27142b=>listNotificationChannelConfigs(_0x17ef7f[_0xe39e87(0x1a0)],_0x27142b))),_0x388a47=_0x17664f[_0xe39e87(0x1a4)]()[_0xe39e87(0x1a9)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x17ef7f['appCode'],'channelTypes':NOTIFICATION_CHANNEL_TYPES,'count':_0x388a47[_0xe39e87(0x1a7)],'configs':_0x388a47},'message':_0xe39e87(0x192)+_0x388a47['length']+_0xe39e87(0x1a8)};}const _0x15c58f=readNotificationChannelType(_0x17ef7f),_0x40bdad=await listNotificationChannelConfigs(_0x17ef7f['appCode'],_0x15c58f),_0x381ce4=_0x40bdad[_0xe39e87(0x1a9)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x17ef7f['appCode'],'channelType':_0x15c58f,'count':_0x381ce4[_0xe39e87(0x1a7)],'configs':_0x381ce4},'message':_0xe39e87(0x192)+_0x381ce4[_0xe39e87(0x1a7)]+'\x20'+_0x15c58f+_0xe39e87(0x195)};}};
@@ -1 +1 @@
1
- const a195_0x27855d=a195_0x5c88;(function(_0x42e688,_0xffa44){const _0x41025d=a195_0x5c88,_0x228c8a=_0x42e688();while(!![]){try{const _0x2e2d34=parseInt(_0x41025d(0x19b))/0x1+-parseInt(_0x41025d(0x1a6))/0x2+parseInt(_0x41025d(0x19f))/0x3+-parseInt(_0x41025d(0x1c0))/0x4*(parseInt(_0x41025d(0x1b9))/0x5)+parseInt(_0x41025d(0x1c1))/0x6+parseInt(_0x41025d(0x1b6))/0x7*(parseInt(_0x41025d(0x1a0))/0x8)+-parseInt(_0x41025d(0x1a5))/0x9;if(_0x2e2d34===_0xffa44)break;else _0x228c8a['push'](_0x228c8a['shift']());}catch(_0x24841b){_0x228c8a['push'](_0x228c8a['shift']());}}}(a195_0x1e83,0x1a0bb));function a195_0x5c88(_0x219dba,_0x3eb644){_0x219dba=_0x219dba-0x19a;const _0x1e830f=a195_0x1e83();let _0x5c884b=_0x1e830f[_0x219dba];return _0x5c884b;}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_0x27855d(0x1bb);async function prepareUpdate(_0x2ef104){const _0xaaa532=a195_0x27855d,_0x32f483=readNotificationId(_0x2ef104),_0x567a64=await readNotificationDocument(_0x2ef104,_0xaaa532(0x1b4)),_0x3a14f3=await requireExactNotificationConfig(_0x2ef104[_0xaaa532(0x1b0)],_0x32f483,'update');return{'id':_0x32f483,'patch':_0x567a64,'before':_0x3a14f3,'payload':mergeUpdateInput(_0x3a14f3,_0x567a64),'planned':plannedUpdateProjection(_0x3a14f3,_0x567a64)};}export const notificationConfigUpdate={'service':a195_0x27855d(0x1a9),'command':a195_0x27855d(0x1a7),'description':a195_0x27855d(0x1a2),'risk':a195_0x27855d(0x1ae),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x2c413e){readNotificationId(_0x2c413e),assertSingleNotificationSource(_0x2c413e),requireNotificationExplicitYes(_0x2c413e);},async 'dryRun'(_0x265d15){const _0x165a98=a195_0x27855d,_0x4c2e99=await prepareUpdate(_0x265d15),_0x36d937=notificationLookupCommand(_0x265d15[_0x165a98(0x1b0)],_0x4c2e99[_0x165a98(0x1a4)][_0x165a98(0x1aa)]);return asDryRunResult({'operation':_0x165a98(0x1b4),'selector':notificationSelector(_0x4c2e99[_0x165a98(0x1a4)]),'before':projectNotificationConfig(_0x4c2e99[_0x165a98(0x1a4)]),'after':_0x4c2e99[_0x165a98(0x1af)],'dryRun':!![],'backend':{'method':'POST','path':UPDATE_PATH},'warnings':[],'verification':{'status':_0x165a98(0x1af),'lookupCommand':_0x36d937}},{'method':_0x165a98(0x19a),'url':UPDATE_PATH});},async 'execute'(_0x23ea26){const _0x426b97=a195_0x27855d;requireNotificationExplicitYes(_0x23ea26);const _0xee4600=await prepareUpdate(_0x23ea26),_0x27f095=notificationLookupCommand(_0x23ea26[_0x426b97(0x1b0)],_0xee4600[_0x426b97(0x1a4)]['channelType']);let _0x320b3b=![];try{await updateNotificationChannelConfig(_0xee4600[_0x426b97(0x1a3)]);}catch(_0x4e21c0){if(!isPlatformTransportFailure(_0x4e21c0))throw safeApiFailure(_0x426b97(0x1b4),_0x426b97(0x1b3),_0x426b97(0x1ab)+_0xee4600['id']+_0x426b97(0x1bf)+_0x27f095+_0x426b97(0x1b7));_0x320b3b=!![];}let _0x363b12;try{const _0x238754=await getNotificationChannelConfig(_0xee4600['id'],_0x23ea26[_0x426b97(0x1b0)]);_0x363b12=normalizeExactNotificationConfig(_0x238754,_0xee4600['id'],_0x23ea26['appCode']);}catch{throw notificationError(_0x320b3b?_0x426b97(0x1a1):_0x426b97(0x1a8),_0x426b97(0x19c)+_0xee4600['id']+_0x426b97(0x19d),_0x426b97(0x1b1)+_0xee4600['id']+_0x426b97(0x1ac)+_0x27f095+_0x426b97(0x1be));}const _0x286400=requestedSafeFieldsMatch(_0xee4600[_0x426b97(0x1a4)],_0x363b12,_0xee4600['patch']);if(!_0x286400[_0x426b97(0x19e)]||_0x320b3b&&!_0x286400[_0x426b97(0x1bd)])throw notificationError(_0x320b3b?_0x426b97(0x1a1):_0x426b97(0x1ba),'Notification\x20config\x20'+_0xee4600['id']+_0x426b97(0x1ad),_0x426b97(0x1b1)+_0xee4600['id']+_0x426b97(0x1ac)+_0x27f095+_0x426b97(0x1be));const _0x2a69a5=_0x320b3b?[_0x426b97(0x1b5)]:[];return{'ok':!![],'data':{'operation':_0x426b97(0x1b4),'selector':notificationSelector(_0x363b12),'before':projectNotificationConfig(_0xee4600[_0x426b97(0x1a4)]),'after':projectNotificationConfig(_0x363b12),'dryRun':![],'backend':{'method':'POST','path':UPDATE_PATH},'warnings':_0x2a69a5,'verification':{'status':_0x426b97(0x1b2),'recoveredAfterUnknownResponse':_0x320b3b,'verifiedFields':_0x286400[_0x426b97(0x1b8)],'lookupCommand':_0x27f095}},'message':_0x426b97(0x1bc)+_0x363b12['id']};}};function a195_0x1e83(){const _0x304cb0=['2066076fYGnqj','2820XHArgd','config-update','notification_config_update_verification_unavailable','notification','channelType','Inspect\x20ID\x20','\x20via\x20','\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20update.','high-risk-write','planned','appCode','Inspect\x20with\x20--id\x20','verified','mutation','update','Update\x20response\x20was\x20unavailable;\x20exact-ID\x20readback\x20proved\x20changed\x20safe\x20fields\x20without\x20resubmitting.','138439NRSzdM',';\x20no\x20automatic\x20retry\x20was\x20attempted.','verifiedFields','5XJoUrF','notification_config_update_verification_failed','/notification/channel-config/update','Updated\x20notification\x20config\x20','provesChange',';\x20do\x20not\x20resubmit\x20automatically.','\x20with\x20','125276OvSiRN','734832lVarwB','POST','14480peORnN','Notification\x20config\x20','\x20update\x20could\x20not\x20be\x20verified\x20by\x20exact\x20ID.','allMatch','280755lZBGhb','56ZvddXb','notification_config_update_outcome_unknown','Update\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20patch','payload','before'];a195_0x1e83=function(){return _0x304cb0;};return a195_0x1e83();}
1
+ const a195_0x384afa=a195_0x2468;function a195_0x2468(_0x2ebfa6,_0x323d22){_0x2ebfa6=_0x2ebfa6-0x121;const _0x55fb97=a195_0x55fb();let _0x246859=_0x55fb97[_0x2ebfa6];return _0x246859;}(function(_0x5cbe5d,_0x800bd7){const _0xfb53=a195_0x2468,_0x4d4384=_0x5cbe5d();while(!![]){try{const _0x15aa2c=-parseInt(_0xfb53(0x13d))/0x1*(-parseInt(_0xfb53(0x12d))/0x2)+parseInt(_0xfb53(0x12f))/0x3*(-parseInt(_0xfb53(0x147))/0x4)+-parseInt(_0xfb53(0x132))/0x5*(parseInt(_0xfb53(0x125))/0x6)+-parseInt(_0xfb53(0x139))/0x7*(parseInt(_0xfb53(0x127))/0x8)+parseInt(_0xfb53(0x12a))/0x9*(-parseInt(_0xfb53(0x123))/0xa)+parseInt(_0xfb53(0x135))/0xb+parseInt(_0xfb53(0x136))/0xc;if(_0x15aa2c===_0x800bd7)break;else _0x4d4384['push'](_0x4d4384['shift']());}catch(_0x9d3e0f){_0x4d4384['push'](_0x4d4384['shift']());}}}(a195_0x55fb,0xbe493));import{asDryRunResult}from'../../commands/common/dry-run.js';import{getNotificationChannelConfig,isPlatformTransportFailure,updateNotificationChannelConfig}from'../../core/api-client.js';import{assertSingleNotificationSource,mergeUpdateInput,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,NOTIFICATION_INPUT_FLAGS,plannedUpdateProjection,projectNotificationConfig,readNotificationDocument,readNotificationId,requestedSafeFieldsMatch,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure}from'../../commands/notification/shared.js';function a195_0x55fb(){const _0x8b9bc6=['110GkSNJl','payload','644172euhcfi','allMatch','1762392GpiQvv','mutation','Inspect\x20with\x20--id\x20','743355WBVQId','\x20update\x20could\x20not\x20be\x20verified\x20by\x20exact\x20ID.','notification_config_update_verification_failed','16UniGnY','Inspect\x20ID\x20','2127AzyjSr','verifiedFields','Update\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20patch','5BeRrlA','notification_config_update_verification_unavailable','\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20update.','11782199PlhWMB','32844552eeIDlz',';\x20do\x20not\x20resubmit\x20automatically.','config-update','35nYHPcH','Notification\x20config\x20','notification_config_update_outcome_unknown','provesChange','68827epoXRy','Update\x20response\x20was\x20unavailable;\x20exact-ID\x20readback\x20proved\x20changed\x20safe\x20fields\x20without\x20resubmitting.',';\x20no\x20automatic\x20retry\x20was\x20attempted.','\x20with\x20','Updated\x20notification\x20config\x20','planned','\x20via\x20','verified','appCode','POST','8248ENKtJU','channelType','/notification/channel-config/update','update','before'];a195_0x55fb=function(){return _0x8b9bc6;};return a195_0x55fb();}const UPDATE_PATH=a195_0x384afa(0x149);async function prepareUpdate(_0x3e48b4){const _0x30055d=a195_0x384afa,_0x488b88=readNotificationId(_0x3e48b4),_0x4f7f52=await readNotificationDocument(_0x3e48b4,_0x30055d(0x121)),_0x5240b8=await requireExactNotificationConfig(_0x3e48b4[_0x30055d(0x145)],_0x488b88,'update');return{'id':_0x488b88,'patch':_0x4f7f52,'before':_0x5240b8,'payload':mergeUpdateInput(_0x5240b8,_0x4f7f52),'planned':plannedUpdateProjection(_0x5240b8,_0x4f7f52)};}export const notificationConfigUpdate={'service':'notification','command':a195_0x384afa(0x138),'description':a195_0x384afa(0x131),'risk':'high-risk-write','requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x38bce6){readNotificationId(_0x38bce6),assertSingleNotificationSource(_0x38bce6),requireNotificationExplicitYes(_0x38bce6);},async 'dryRun'(_0x49fa06){const _0x2277a8=a195_0x384afa,_0x4bbd03=await prepareUpdate(_0x49fa06),_0x21948e=notificationLookupCommand(_0x49fa06[_0x2277a8(0x145)],_0x4bbd03[_0x2277a8(0x122)][_0x2277a8(0x148)]);return asDryRunResult({'operation':_0x2277a8(0x121),'selector':notificationSelector(_0x4bbd03[_0x2277a8(0x122)]),'before':projectNotificationConfig(_0x4bbd03[_0x2277a8(0x122)]),'after':_0x4bbd03[_0x2277a8(0x142)],'dryRun':!![],'backend':{'method':_0x2277a8(0x146),'path':UPDATE_PATH},'warnings':[],'verification':{'status':_0x2277a8(0x142),'lookupCommand':_0x21948e}},{'method':_0x2277a8(0x146),'url':UPDATE_PATH});},async 'execute'(_0x39612f){const _0xa1afea=a195_0x384afa;requireNotificationExplicitYes(_0x39612f);const _0x4dcaca=await prepareUpdate(_0x39612f),_0x1ec0da=notificationLookupCommand(_0x39612f[_0xa1afea(0x145)],_0x4dcaca[_0xa1afea(0x122)][_0xa1afea(0x148)]);let _0x55bd1e=![];try{await updateNotificationChannelConfig(_0x4dcaca[_0xa1afea(0x124)]);}catch(_0xb3374){if(!isPlatformTransportFailure(_0xb3374))throw safeApiFailure(_0xa1afea(0x121),_0xa1afea(0x128),_0xa1afea(0x12e)+_0x4dcaca['id']+_0xa1afea(0x140)+_0x1ec0da+_0xa1afea(0x13f));_0x55bd1e=!![];}let _0x4c25dc;try{const _0x5e2795=await getNotificationChannelConfig(_0x4dcaca['id'],_0x39612f[_0xa1afea(0x145)]);_0x4c25dc=normalizeExactNotificationConfig(_0x5e2795,_0x4dcaca['id'],_0x39612f[_0xa1afea(0x145)]);}catch{throw notificationError(_0x55bd1e?_0xa1afea(0x13b):_0xa1afea(0x133),_0xa1afea(0x13a)+_0x4dcaca['id']+_0xa1afea(0x12b),_0xa1afea(0x129)+_0x4dcaca['id']+_0xa1afea(0x143)+_0x1ec0da+_0xa1afea(0x137));}const _0x4711e0=requestedSafeFieldsMatch(_0x4dcaca['before'],_0x4c25dc,_0x4dcaca['patch']);if(!_0x4711e0[_0xa1afea(0x126)]||_0x55bd1e&&!_0x4711e0[_0xa1afea(0x13c)])throw notificationError(_0x55bd1e?_0xa1afea(0x13b):_0xa1afea(0x12c),_0xa1afea(0x13a)+_0x4dcaca['id']+_0xa1afea(0x134),_0xa1afea(0x129)+_0x4dcaca['id']+_0xa1afea(0x143)+_0x1ec0da+_0xa1afea(0x137));const _0x2ec658=_0x55bd1e?[_0xa1afea(0x13e)]:[];return{'ok':!![],'data':{'operation':'update','selector':notificationSelector(_0x4c25dc),'before':projectNotificationConfig(_0x4dcaca[_0xa1afea(0x122)]),'after':projectNotificationConfig(_0x4c25dc),'dryRun':![],'backend':{'method':_0xa1afea(0x146),'path':UPDATE_PATH},'warnings':_0x2ec658,'verification':{'status':_0xa1afea(0x144),'recoveredAfterUnknownResponse':_0x55bd1e,'verifiedFields':_0x4711e0[_0xa1afea(0x130)],'lookupCommand':_0x1ec0da}},'message':_0xa1afea(0x141)+_0x4c25dc['id']};}};