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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (329) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/api/generate-sdk-config-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/members-list.js +1 -1
  23. package/lib/commands/app/remote-directory.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/delete.js +1 -1
  53. package/lib/commands/config/get.js +1 -1
  54. package/lib/commands/config/index.js +1 -1
  55. package/lib/commands/config/init.js +1 -1
  56. package/lib/commands/config/list.js +1 -1
  57. package/lib/commands/config/set.js +1 -1
  58. package/lib/commands/config/shared.js +1 -1
  59. package/lib/commands/dataset/business-group-update.js +1 -1
  60. package/lib/commands/dataset/business-groups.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-restore.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  80. package/lib/commands/db/analysis-batching.js +1 -1
  81. package/lib/commands/db/analyze-batch-plan.js +1 -1
  82. package/lib/commands/db/analyze-cancel.js +1 -1
  83. package/lib/commands/db/analyze-start.js +1 -1
  84. package/lib/commands/db/analyze-status.js +1 -1
  85. package/lib/commands/db/create.js +1 -1
  86. package/lib/commands/db/delete.js +1 -1
  87. package/lib/commands/db/detail.js +1 -1
  88. package/lib/commands/db/diff-refresh-start.js +1 -1
  89. package/lib/commands/db/diff-refresh-status.js +1 -1
  90. package/lib/commands/db/diff.js +1 -1
  91. package/lib/commands/db/index.js +1 -1
  92. package/lib/commands/db/list.js +1 -1
  93. package/lib/commands/db/shared.js +1 -1
  94. package/lib/commands/db/table-diff-shared.js +1 -1
  95. package/lib/commands/db/tables.js +1 -1
  96. package/lib/commands/db/test.js +1 -1
  97. package/lib/commands/db/update.js +1 -1
  98. package/lib/commands/deployment/index.js +1 -1
  99. package/lib/commands/deployment/sync-all.js +1 -1
  100. package/lib/commands/deployment/sync-jobs.js +1 -1
  101. package/lib/commands/deployment/sync-status.js +1 -1
  102. package/lib/commands/doctor.js +1 -1
  103. package/lib/commands/file/index.js +1 -1
  104. package/lib/commands/instant-api-policy/current.js +1 -1
  105. package/lib/commands/instant-api-policy/index.js +1 -1
  106. package/lib/commands/instant-api-policy/init.js +1 -1
  107. package/lib/commands/instant-api-policy/publish.js +1 -1
  108. package/lib/commands/instant-api-policy/pull.js +1 -1
  109. package/lib/commands/instant-api-policy/revision.js +1 -1
  110. package/lib/commands/instant-api-policy/revisions.js +1 -1
  111. package/lib/commands/instant-api-policy/rollback.js +1 -1
  112. package/lib/commands/instant-api-policy/shared.js +1 -1
  113. package/lib/commands/instant-api-policy/validate.js +1 -1
  114. package/lib/commands/issue/index.js +1 -1
  115. package/lib/commands/issue/nudge.js +1 -1
  116. package/lib/commands/issue/report.js +1 -1
  117. package/lib/commands/issue/shared.js +1 -1
  118. package/lib/commands/kb/create.js +1 -1
  119. package/lib/commands/kb/delete.js +1 -1
  120. package/lib/commands/kb/detail.js +1 -1
  121. package/lib/commands/kb/index.js +1 -1
  122. package/lib/commands/kb/list.js +1 -1
  123. package/lib/commands/kb/search.js +1 -1
  124. package/lib/commands/kb/shared.js +1 -1
  125. package/lib/commands/kb/update.js +1 -1
  126. package/lib/commands/logs/index.js +1 -1
  127. package/lib/commands/menu/asset-update.js +1 -1
  128. package/lib/commands/menu/delete.js +1 -1
  129. package/lib/commands/menu/external-link-create.js +1 -1
  130. package/lib/commands/menu/external-link-update.js +1 -1
  131. package/lib/commands/menu/group-create.js +1 -1
  132. package/lib/commands/menu/group-update.js +1 -1
  133. package/lib/commands/menu/index.js +1 -1
  134. package/lib/commands/menu/list.js +1 -1
  135. package/lib/commands/menu/move.js +1 -1
  136. package/lib/commands/menu/regroup-start.js +1 -1
  137. package/lib/commands/menu/rename.js +1 -1
  138. package/lib/commands/menu/shared/compare-table.js +1 -1
  139. package/lib/commands/menu/shared/delete-plan.js +1 -1
  140. package/lib/commands/menu/shared/facts.js +1 -1
  141. package/lib/commands/menu/shared/index.js +1 -1
  142. package/lib/commands/menu/shared/inquirer.js +1 -1
  143. package/lib/commands/menu/shared/local-pages.js +1 -1
  144. package/lib/commands/menu/shared/logic.js +1 -1
  145. package/lib/commands/menu/shared/mutations.js +1 -1
  146. package/lib/commands/menu/shared/service.js +1 -1
  147. package/lib/commands/menu/shared/sync-core.js +1 -1
  148. package/lib/commands/menu/shared/update-core.js +1 -1
  149. package/lib/commands/menu/shared/valid-url.js +1 -1
  150. package/lib/commands/menu/sync.js +1 -1
  151. package/lib/commands/menu/visibility-update.js +1 -1
  152. package/lib/commands/notification/config-create.js +1 -1
  153. package/lib/commands/notification/config-delete.js +1 -1
  154. package/lib/commands/notification/config-list.js +1 -1
  155. package/lib/commands/notification/config-update.js +1 -1
  156. package/lib/commands/notification/index.js +1 -1
  157. package/lib/commands/notification/shared.js +1 -1
  158. package/lib/commands/ocr/index.js +1 -1
  159. package/lib/commands/page/create.js +1 -1
  160. package/lib/commands/page/custom/detail.js +1 -1
  161. package/lib/commands/page/custom/list.js +1 -1
  162. package/lib/commands/page/custom/publish.js +1 -1
  163. package/lib/commands/page/custom/shared.js +1 -1
  164. package/lib/commands/page/custom/syntax.js +1 -1
  165. package/lib/commands/page/custom/update.js +1 -1
  166. package/lib/commands/page/data-list-status.js +1 -1
  167. package/lib/commands/page/generate-start.js +1 -1
  168. package/lib/commands/page/generate-status.js +1 -1
  169. package/lib/commands/page/index.js +1 -1
  170. package/lib/commands/page/pull.js +1 -1
  171. package/lib/commands/page/push.js +1 -1
  172. package/lib/commands/page/relation-audit.js +1 -1
  173. package/lib/commands/page/restore.js +1 -1
  174. package/lib/commands/page/shared.js +1 -1
  175. package/lib/commands/page/sync.js +1 -1
  176. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  177. package/lib/commands/project/create/format-elapsed.js +1 -1
  178. package/lib/commands/project/create/main.js +1 -1
  179. package/lib/commands/project/create/materialize-project-template.js +1 -1
  180. package/lib/commands/project/create/project-name.js +1 -1
  181. package/lib/commands/project/create/project-template-archive.js +1 -1
  182. package/lib/commands/project/create/project-template-path.js +1 -1
  183. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  184. package/lib/commands/project/create/use-format-code.js +1 -1
  185. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  186. package/lib/commands/project/domain-routing-sync.js +1 -1
  187. package/lib/commands/project/index.js +1 -1
  188. package/lib/commands/project/upgrade.js +1 -1
  189. package/lib/commands/registry.js +1 -1
  190. package/lib/commands/role/delete.js +1 -1
  191. package/lib/commands/role/detail.js +1 -1
  192. package/lib/commands/role/index.js +1 -1
  193. package/lib/commands/role/list.js +1 -1
  194. package/lib/commands/role/shared.js +1 -1
  195. package/lib/commands/role/update.js +1 -1
  196. package/lib/commands/role/user-add.js +1 -1
  197. package/lib/commands/role/user-remove.js +1 -1
  198. package/lib/commands/role/user-resolve.js +1 -1
  199. package/lib/commands/rule/get.js +1 -1
  200. package/lib/commands/rule/index.js +1 -1
  201. package/lib/commands/rule/list.js +1 -1
  202. package/lib/commands/rule/set.js +1 -1
  203. package/lib/commands/rule/shared.js +1 -1
  204. package/lib/commands/run/index.js +1 -1
  205. package/lib/commands/schema.js +1 -1
  206. package/lib/commands/sql/create.js +1 -1
  207. package/lib/commands/sql/delete.js +1 -1
  208. package/lib/commands/sql/detail.js +1 -1
  209. package/lib/commands/sql/exec.js +1 -1
  210. package/lib/commands/sql/index.js +1 -1
  211. package/lib/commands/sql/list.js +1 -1
  212. package/lib/commands/sql/pull.js +1 -1
  213. package/lib/commands/sql/push.js +1 -1
  214. package/lib/commands/sql/shared.js +1 -1
  215. package/lib/commands/sql/status.js +1 -1
  216. package/lib/commands/sql/validate.js +1 -1
  217. package/lib/commands/task/index.js +1 -1
  218. package/lib/commands/task/status.js +1 -1
  219. package/lib/commands/tenant/index.js +1 -1
  220. package/lib/commands/tenant/members-list.js +1 -1
  221. package/lib/commands/tenant/shared.js +1 -1
  222. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  223. package/lib/commands/user-account/index.js +1 -1
  224. package/lib/commands/workspace/add.js +1 -1
  225. package/lib/commands/workspace/index.js +1 -1
  226. package/lib/commands/workspace/remove.js +1 -1
  227. package/lib/config/domain-config.js +1 -1
  228. package/lib/config/project-domain-routing.js +1 -1
  229. package/lib/config/schema.js +1 -1
  230. package/lib/constant/cdn.js +1 -1
  231. package/lib/constant/cli.js +1 -1
  232. package/lib/constant/defaults.js +1 -1
  233. package/lib/constant/domain.js +1 -1
  234. package/lib/constant/env.js +1 -1
  235. package/lib/constant/output.js +1 -1
  236. package/lib/constant/paths.js +1 -1
  237. package/lib/constant/region.js +1 -1
  238. package/lib/constant/risk.js +1 -1
  239. package/lib/constant/routing-profile.js +1 -1
  240. package/lib/context/app-resolver.js +1 -1
  241. package/lib/context/auth-resolver.js +1 -1
  242. package/lib/context/config-loader.js +1 -1
  243. package/lib/context.js +1 -1
  244. package/lib/core/alias-resolver.js +1 -1
  245. package/lib/core/api-client.d.ts +0 -17
  246. package/lib/core/api-client.js +1 -1
  247. package/lib/core/bff/config.js +1 -1
  248. package/lib/core/bff/file-system.js +1 -1
  249. package/lib/core/bff/hash.js +1 -1
  250. package/lib/core/bff/lock.js +1 -1
  251. package/lib/core/bff/utils.js +1 -1
  252. package/lib/core/db-resolver.js +1 -1
  253. package/lib/core/instant-api-policy/config.js +1 -1
  254. package/lib/core/kb-search-client.js +1 -1
  255. package/lib/core/page/file-system.js +1 -1
  256. package/lib/core/page/hash.js +1 -1
  257. package/lib/core/page/lock.js +1 -1
  258. package/lib/core/sql-index-auditor.js +1 -1
  259. package/lib/core/sql-sync/config.js +1 -1
  260. package/lib/core/sql-sync/file-system.js +1 -1
  261. package/lib/core/sql-sync/hash.js +1 -1
  262. package/lib/core/sql-sync/lock.js +1 -1
  263. package/lib/core/sql-sync/utils.js +1 -1
  264. package/lib/core/sql-validator.js +1 -1
  265. package/lib/errors.js +1 -1
  266. package/lib/framework/build-all-flags.js +1 -1
  267. package/lib/framework/error-output.js +1 -1
  268. package/lib/framework/explicit-yes.js +1 -1
  269. package/lib/framework/flags.js +1 -1
  270. package/lib/framework/help.js +1 -1
  271. package/lib/framework/index.js +1 -1
  272. package/lib/framework/output.js +1 -1
  273. package/lib/framework/response.js +1 -1
  274. package/lib/framework/runner-alias.js +1 -1
  275. package/lib/framework/runner.js +1 -1
  276. package/lib/framework/schema-export.js +1 -1
  277. package/lib/framework/supported-flags.js +1 -1
  278. package/lib/framework/types.js +1 -1
  279. package/lib/generated/build-info.d.ts +4 -4
  280. package/lib/generated/build-info.js +1 -1
  281. package/lib/generated/official-routing.js +1 -1
  282. package/lib/generated/routing-contract.js +1 -1
  283. package/lib/help.js +1 -1
  284. package/lib/postinstall.js +1 -1
  285. package/lib/runtime/confirmation.js +1 -1
  286. package/lib/runtime/event.js +1 -1
  287. package/lib/runtime/index.js +1 -1
  288. package/lib/runtime/queue.js +1 -1
  289. package/lib/runtime/resolve.js +1 -1
  290. package/lib/skills/builtin-skill.js +1 -1
  291. package/lib/skills/main.js +1 -1
  292. package/lib/skills/npx-skills-add.js +1 -1
  293. package/lib/skills/skill-presence.js +1 -1
  294. package/lib/telemetry/cli-command-trace.js +1 -1
  295. package/lib/telemetry/cli-help-trace.js +1 -1
  296. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  297. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  298. package/lib/telemetry/send-cli-trace-log.js +1 -1
  299. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  300. package/lib/utils/ai_config.js +1 -1
  301. package/lib/utils/apply-jq-filter.js +1 -1
  302. package/lib/utils/cdn-config.js +1 -1
  303. package/lib/utils/check-sdk-version.js +1 -1
  304. package/lib/utils/cli-version-check.js +1 -1
  305. package/lib/utils/cli-version-policy.js +1 -1
  306. package/lib/utils/config.js +1 -1
  307. package/lib/utils/entity-with-id.js +1 -1
  308. package/lib/utils/file-utils.js +1 -1
  309. package/lib/utils/guides-cdn.js +1 -1
  310. package/lib/utils/http-client.js +1 -1
  311. package/lib/utils/is-non-interactive.js +1 -1
  312. package/lib/utils/logger.js +1 -1
  313. package/lib/utils/params.js +1 -1
  314. package/lib/utils/platform.js +1 -1
  315. package/lib/utils/sleep.js +1 -1
  316. package/lib/utils/template-replacer.js +1 -1
  317. package/lib/utils/update-notice.js +1 -1
  318. package/lib/utils/version.js +1 -1
  319. package/lib/utils/with-active-cookie.js +1 -1
  320. package/lib/utils/write-cli-side-channel.js +1 -1
  321. package/package.json +1 -1
  322. package/skills/rabetbase/SKILL.md +5 -6
  323. package/skills/rabetbase/references/rabetbase-deployment-sync-all.md +56 -0
  324. package/skills/rabetbase.manifest.json +4 -4
  325. package/lib/commands/deployment/auto-sync.d.ts +0 -20
  326. package/lib/commands/deployment/auto-sync.js +0 -1
  327. package/lib/commands/deployment/sync.d.ts +0 -2
  328. package/lib/commands/deployment/sync.js +0 -1
  329. package/skills/rabetbase/references/rabetbase-deployment-sync.md +0 -100
@@ -1 +1 @@
1
- (function(_0x57d30e,_0x4dbe2c){const _0x564946=a147_0x3c15,_0x2b953f=_0x57d30e();while(!![]){try{const _0x3f20d2=-parseInt(_0x564946(0x18d))/0x1*(parseInt(_0x564946(0x192))/0x2)+-parseInt(_0x564946(0x196))/0x3+parseInt(_0x564946(0x187))/0x4*(-parseInt(_0x564946(0x185))/0x5)+parseInt(_0x564946(0x175))/0x6+parseInt(_0x564946(0x184))/0x7+parseInt(_0x564946(0x178))/0x8*(parseInt(_0x564946(0x18c))/0x9)+parseInt(_0x564946(0x19b))/0xa*(parseInt(_0x564946(0x195))/0xb);if(_0x3f20d2===_0x4dbe2c)break;else _0x2b953f['push'](_0x2b953f['shift']());}catch(_0x415413){_0x2b953f['push'](_0x2b953f['shift']());}}}(a147_0x2542,0xbbdd7));import{getEnv,isProduction}from'../../../constant/env.js';import{logger}from'../../../utils/logger.js';import{fetchMenuSnapshot,toProcessedMenuItem}from'../../../commands/menu/shared/facts.js';import{batchDeleteMenuRecords,createMenuRecord,startMenuRegroup as a147_0x2ce8cc,updateMenuRecord}from'../../../core/api-client.js';export async function getOnlineMenuList(_0xf8c547,_0x74d2f9){const _0x5b2e5f=a147_0x3c15,_0x29676a=getEnv();logger[_0x5b2e5f(0x179)]('get-online-menu-list',isProduction(_0x29676a)?_0x5b2e5f(0x183)+_0xf8c547+')':_0x5b2e5f(0x180)+_0xf8c547+')');const _0x334f23=await fetchMenuSnapshot(_0xf8c547,_0x74d2f9,{'verbose':!![]});return logger[_0x5b2e5f(0x179)](_0x5b2e5f(0x191),_0x5b2e5f(0x193)+_0x334f23[_0x5b2e5f(0x19c)]+'\x20online\x20menus\x20successfully'),_0x334f23[_0x5b2e5f(0x17f)][_0x5b2e5f(0x17e)](toProcessedMenuItem);}export async function createMenu(_0x29b2bd,_0x5b79b3,_0x29844e){const _0x425084=a147_0x3c15;logger[_0x425084(0x179)](_0x425084(0x189),'Creating\x20menu:\x20'+_0x29844e[_0x425084(0x194)]+'\x20('+_0x29844e['path']+')');const _0x22907a={'appCode':_0x29b2bd,'type':_0x425084(0x18b),'sort':0x0,'extend':{'loadScriptMode':_0x425084(0x186),'resources':_0x29844e['resources']?JSON[_0x425084(0x188)](_0x29844e[_0x425084(0x17d)]):undefined},..._0x29844e},_0x452b70=await createMenuRecord(_0x22907a,_0x5b79b3,'Create\x20menu\x20\x22'+_0x29844e[_0x425084(0x194)]+'\x22');return logger[_0x425084(0x179)](_0x425084(0x189),_0x425084(0x190)+_0x29844e[_0x425084(0x194)]),_0x452b70;}async function createSingleMenu(_0x3c6fff,_0x2ae5fe,_0x58d47c,_0x33578c){const _0x25900f=a147_0x3c15,_0x27e14d={'appCode':_0x3c6fff,'type':_0x25900f(0x18b),'sort':0x0,'extend':{'loadScriptMode':_0x25900f(0x186),'resources':_0x33578c?JSON[_0x25900f(0x188)](_0x33578c):undefined},'label':_0x58d47c['label'],'path':_0x58d47c[_0x25900f(0x199)]},_0x57b0b4=await createMenuRecord(_0x27e14d,_0x2ae5fe,_0x25900f(0x176)+_0x58d47c[_0x25900f(0x194)]+'\x22');return logger[_0x25900f(0x179)]('create-menu',_0x25900f(0x190)+_0x58d47c[_0x25900f(0x194)]),_0x57b0b4;}export async function createMenus(_0x4d8aca,_0x518190,_0x29bc2f,_0xf9309c){const _0x4482dc=a147_0x3c15;logger[_0x4482dc(0x179)](_0x4482dc(0x18f),'Start\x20batch\x20menu\x20creation,\x20total\x20'+_0x29bc2f[_0x4482dc(0x197)]);const _0x47f898=await Promise[_0x4482dc(0x182)](_0x29bc2f[_0x4482dc(0x17e)](_0x341193=>createSingleMenu(_0x4d8aca,_0x518190,_0x341193,_0xf9309c)));return logger['info'](_0x4482dc(0x18f),_0x4482dc(0x18a)+_0x29bc2f[_0x4482dc(0x197)]),_0x47f898;}export async function updateMenuCdnUrl(_0x383753,_0x456aa8,_0x7d5d11){const _0x1b8b47=a147_0x3c15;logger[_0x1b8b47(0x179)]('update-menu-cdn-url','Updating\x20menu\x20asset\x20links:\x20'+_0x7d5d11['label']+'\x20('+_0x7d5d11[_0x1b8b47(0x199)]+')');const _0x325d25={'id':_0x7d5d11['id'],'appCode':_0x383753,'extend':{..._0x7d5d11[_0x1b8b47(0x17b)]??{},..._0x7d5d11[_0x1b8b47(0x174)]?{'loadScriptMode':_0x7d5d11[_0x1b8b47(0x174)]}:{},'resources':_0x7d5d11[_0x1b8b47(0x17d)]?JSON[_0x1b8b47(0x188)](_0x7d5d11['resources']):undefined}},_0x16f8f8=await updateMenuRecord(_0x325d25,_0x456aa8,_0x1b8b47(0x18e)+_0x7d5d11['label']+'\x22');return logger[_0x1b8b47(0x179)](_0x1b8b47(0x181),_0x1b8b47(0x198)+_0x7d5d11[_0x1b8b47(0x194)],undefined),_0x16f8f8;}function a147_0x2542(){const _0x454d8e=['Regroup\x20','resources','map','menus','Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20','update-menu-cdn-url','all','Fetching\x20online\x20menu\x20list...\x20(appCode:\x20','1932035iuNnxR','535aYvuGQ','import','744vzwfGi','stringify','create-menu','Batch\x20menu\x20creation\x20completed,\x20total\x20','procode','27ZNLDel','175810VlgMzH','Update\x20menu\x20assets\x20\x22','create-menus','Menu\x20created\x20successfully:\x20','get-online-menu-list','10gkliDq','Fetched\x20','label','1640133efbQwr','3982362pKwDRU','length','Menu\x20assets\x20synced:\x20','path','menuGroups','140pVBVVz','total','loadScriptMode','2235006zGMWJY','Create\x20menu\x20\x22','\x20menu\x20group(s)','693208cbwsAT','info','\x20menu','extend'];a147_0x2542=function(){return _0x454d8e;};return a147_0x2542();}function a147_0x3c15(_0x42f111,_0x41337d){_0x42f111=_0x42f111-0x174;const _0x2542f2=a147_0x2542();let _0x3c155b=_0x2542f2[_0x42f111];return _0x3c155b;}export async function createMenuEntity(_0x8495ee,_0x17d3eb,_0x559526){const _0x267a7d=a147_0x3c15;return createMenuRecord({'appCode':_0x8495ee,..._0x559526},_0x17d3eb,_0x267a7d(0x176)+_0x559526['label']+'\x22');}export async function updateMenuEntity(_0x5d39a9,_0x2fd64d,_0x4263e0){return updateMenuRecord({'appCode':_0x5d39a9,..._0x4263e0},_0x2fd64d,'Update\x20menu\x20'+_0x4263e0['id']);}export async function batchDeleteMenuEntities(_0x22557e,_0x1077a3){const _0x38a9c9=a147_0x3c15;return batchDeleteMenuRecords(_0x1077a3,_0x22557e,'Delete\x20'+_0x1077a3['length']+_0x38a9c9(0x17a)+(_0x1077a3[_0x38a9c9(0x197)]===0x1?'':'s'));}export async function startMenuRegroup(_0x116279,_0x4844d6){const _0xd66aaa=a147_0x3c15;return a147_0x2ce8cc(_0x4844d6,_0x116279,_0xd66aaa(0x17c)+_0x4844d6[_0xd66aaa(0x19a)][_0xd66aaa(0x197)]+_0xd66aaa(0x177));}
1
+ (function(_0x305252,_0x270115){const _0xa43255=a145_0xc9a6,_0x542bdc=_0x305252();while(!![]){try{const _0x5898dd=parseInt(_0xa43255(0x1a0))/0x1*(-parseInt(_0xa43255(0x17c))/0x2)+-parseInt(_0xa43255(0x191))/0x3*(parseInt(_0xa43255(0x18c))/0x4)+-parseInt(_0xa43255(0x19d))/0x5+parseInt(_0xa43255(0x17e))/0x6+parseInt(_0xa43255(0x186))/0x7+-parseInt(_0xa43255(0x192))/0x8*(-parseInt(_0xa43255(0x19b))/0x9)+-parseInt(_0xa43255(0x199))/0xa*(-parseInt(_0xa43255(0x18f))/0xb);if(_0x5898dd===_0x270115)break;else _0x542bdc['push'](_0x542bdc['shift']());}catch(_0x3065c6){_0x542bdc['push'](_0x542bdc['shift']());}}}(a145_0x2055,0xd0254));import{getEnv,isProduction}from'../../../constant/env.js';import{logger}from'../../../utils/logger.js';function a145_0x2055(){const _0x6c6de1=['get-online-menu-list','40uLZSfW','resources','5050692XVFWgt','create-menu','8337865vZUxvY','Start\x20batch\x20menu\x20creation,\x20total\x20','\x20menu\x20group(s)','1445303VZjUtP','Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20','Creating\x20menu:\x20','Fetched\x20','2JnkkSS','menus','5531982cLlWuB','length','label','info','loadScriptMode','menuGroups','\x20menu','Create\x20menu\x20\x22','10200092HjzBYB','path','all','import','stringify','map','14324BHwGos','Batch\x20menu\x20creation\x20completed,\x20total\x20','Updating\x20menu\x20asset\x20links:\x20','6334669yTlfKp','Regroup\x20','1071BXoKmk','8zBsPjW','update-menu-cdn-url','Delete\x20','total','procode','Update\x20menu\x20assets\x20\x22'];a145_0x2055=function(){return _0x6c6de1;};return a145_0x2055();}import{fetchMenuSnapshot,toProcessedMenuItem}from'../../../commands/menu/shared/facts.js';import{batchDeleteMenuRecords,createMenuRecord,startMenuRegroup as a145_0x105901,updateMenuRecord}from'../../../core/api-client.js';function a145_0xc9a6(_0x568546,_0x1ee5c7){_0x568546=_0x568546-0x17b;const _0x20553f=a145_0x2055();let _0xc9a6ef=_0x20553f[_0x568546];return _0xc9a6ef;}export async function getOnlineMenuList(_0x122539,_0x5bec83){const _0x4cf7f5=a145_0xc9a6,_0x3988f8=getEnv();logger[_0x4cf7f5(0x181)]('get-online-menu-list',isProduction(_0x3988f8)?'Fetching\x20online\x20menu\x20list...\x20(appCode:\x20'+_0x122539+')':_0x4cf7f5(0x1a1)+_0x122539+')');const _0x1cac97=await fetchMenuSnapshot(_0x122539,_0x5bec83,{'verbose':!![]});return logger[_0x4cf7f5(0x181)](_0x4cf7f5(0x198),_0x4cf7f5(0x17b)+_0x1cac97[_0x4cf7f5(0x195)]+'\x20online\x20menus\x20successfully'),_0x1cac97[_0x4cf7f5(0x17d)][_0x4cf7f5(0x18b)](toProcessedMenuItem);}export async function createMenu(_0x420f8f,_0x13d0e7,_0x52d69d){const _0x5054a4=a145_0xc9a6;logger[_0x5054a4(0x181)]('create-menu',_0x5054a4(0x1a2)+_0x52d69d[_0x5054a4(0x180)]+'\x20('+_0x52d69d[_0x5054a4(0x187)]+')');const _0x45cd2c={'appCode':_0x420f8f,'type':_0x5054a4(0x196),'sort':0x0,'extend':{'loadScriptMode':_0x5054a4(0x189),'resources':_0x52d69d[_0x5054a4(0x19a)]?JSON[_0x5054a4(0x18a)](_0x52d69d['resources']):undefined},..._0x52d69d},_0xd43bc0=await createMenuRecord(_0x45cd2c,_0x13d0e7,_0x5054a4(0x185)+_0x52d69d['label']+'\x22');return logger[_0x5054a4(0x181)]('create-menu','Menu\x20created\x20successfully:\x20'+_0x52d69d[_0x5054a4(0x180)]),_0xd43bc0;}async function createSingleMenu(_0x18e03c,_0x52f221,_0x416d5e,_0x34369a){const _0x2273dc=a145_0xc9a6,_0x1cd1f2={'appCode':_0x18e03c,'type':'procode','sort':0x0,'extend':{'loadScriptMode':_0x2273dc(0x189),'resources':_0x34369a?JSON['stringify'](_0x34369a):undefined},'label':_0x416d5e[_0x2273dc(0x180)],'path':_0x416d5e[_0x2273dc(0x187)]},_0x325f43=await createMenuRecord(_0x1cd1f2,_0x52f221,_0x2273dc(0x185)+_0x416d5e[_0x2273dc(0x180)]+'\x22');return logger[_0x2273dc(0x181)](_0x2273dc(0x19c),'Menu\x20created\x20successfully:\x20'+_0x416d5e[_0x2273dc(0x180)]),_0x325f43;}export async function createMenus(_0x5dc618,_0x588077,_0x432e7e,_0x46d20e){const _0x4795e9=a145_0xc9a6;logger[_0x4795e9(0x181)]('create-menus',_0x4795e9(0x19e)+_0x432e7e['length']);const _0x106c0e=await Promise[_0x4795e9(0x188)](_0x432e7e[_0x4795e9(0x18b)](_0x2f8e94=>createSingleMenu(_0x5dc618,_0x588077,_0x2f8e94,_0x46d20e)));return logger[_0x4795e9(0x181)]('create-menus',_0x4795e9(0x18d)+_0x432e7e['length']),_0x106c0e;}export async function updateMenuCdnUrl(_0x2230c7,_0x537af0,_0x46256e){const _0x3df6a5=a145_0xc9a6;logger['info'](_0x3df6a5(0x193),_0x3df6a5(0x18e)+_0x46256e[_0x3df6a5(0x180)]+'\x20('+_0x46256e['path']+')');const _0x45c6a4={'id':_0x46256e['id'],'appCode':_0x2230c7,'extend':{..._0x46256e['extend']??{},..._0x46256e[_0x3df6a5(0x182)]?{'loadScriptMode':_0x46256e[_0x3df6a5(0x182)]}:{},'resources':_0x46256e['resources']?JSON['stringify'](_0x46256e[_0x3df6a5(0x19a)]):undefined}},_0x142ad6=await updateMenuRecord(_0x45c6a4,_0x537af0,_0x3df6a5(0x197)+_0x46256e[_0x3df6a5(0x180)]+'\x22');return logger['info']('update-menu-cdn-url','Menu\x20assets\x20synced:\x20'+_0x46256e['label'],undefined),_0x142ad6;}export async function createMenuEntity(_0x3a6520,_0x380d98,_0x2be214){const _0x105450=a145_0xc9a6;return createMenuRecord({'appCode':_0x3a6520,..._0x2be214},_0x380d98,_0x105450(0x185)+_0x2be214[_0x105450(0x180)]+'\x22');}export async function updateMenuEntity(_0x435ce1,_0x12e60e,_0xdb262e){return updateMenuRecord({'appCode':_0x435ce1,..._0xdb262e},_0x12e60e,'Update\x20menu\x20'+_0xdb262e['id']);}export async function batchDeleteMenuEntities(_0x421b02,_0x553d9c){const _0x3bae57=a145_0xc9a6;return batchDeleteMenuRecords(_0x553d9c,_0x421b02,_0x3bae57(0x194)+_0x553d9c[_0x3bae57(0x17f)]+_0x3bae57(0x184)+(_0x553d9c[_0x3bae57(0x17f)]===0x1?'':'s'));}export async function startMenuRegroup(_0x1b945c,_0x43663f){const _0xe3cc22=a145_0xc9a6;return a145_0x105901(_0x43663f,_0x1b945c,_0xe3cc22(0x190)+_0x43663f[_0xe3cc22(0x183)][_0xe3cc22(0x17f)]+_0xe3cc22(0x19f));}
@@ -1 +1 @@
1
- const a148_0x4cfd1f=a148_0x2eff;(function(_0x4e569f,_0x570d43){const _0x11a5e0=a148_0x2eff,_0x193018=_0x4e569f();while(!![]){try{const _0x316e47=parseInt(_0x11a5e0(0x180))/0x1+parseInt(_0x11a5e0(0x168))/0x2*(parseInt(_0x11a5e0(0x165))/0x3)+-parseInt(_0x11a5e0(0x16b))/0x4*(parseInt(_0x11a5e0(0x15d))/0x5)+-parseInt(_0x11a5e0(0x176))/0x6*(-parseInt(_0x11a5e0(0x154))/0x7)+-parseInt(_0x11a5e0(0x155))/0x8+parseInt(_0x11a5e0(0x16d))/0x9+parseInt(_0x11a5e0(0x153))/0xa*(-parseInt(_0x11a5e0(0x178))/0xb);if(_0x316e47===_0x570d43)break;else _0x193018['push'](_0x193018['shift']());}catch(_0x428215){_0x193018['push'](_0x193018['shift']());}}}(a148_0xc040,0xbe953));import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';import{getOnlineMenuList,createMenus}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';function a148_0x2eff(_0x53398a,_0x4268eb){_0x53398a=_0x53398a-0x150;const _0xc040b5=a148_0xc040();let _0x2effb4=_0xc040b5[_0x53398a];return _0x2effb4;}import{logger}from'../../../utils/logger.js';function a148_0xc040(){const _0x2548ba=['56DEpqXh','Start\x20non-interactive\x20menu\x20sync','Local\x20page\x20paths\x20are\x20already\x20on\x20the\x20platform:\x20','517656RpxAZv','JS\x20URL\x20is\x20unreachable:\x20','4443912QsuIOy','push','setLogPath','cwd','Invalid\x20--params\x20JSON.','Invalid\x20--params\x20fields:\x20','--params.','keys','string','6PrVtrr','map','100991ImODKr','path','label','CSS\x20URL\x20is\x20unreachable:\x20','Invalid\x20--params.','import','dryRun','Invalid\x20--params:\x20','1091856wSvYCd','get','jsUrl','join','object','procode','130FpbgpV','540295occAxi','4348744YLXrlR','No\x20local\x20pages\x20matched\x20paths:\x20','field','info','filter','hasOwn','trim','isArray','10KshRWJ','has','length','cssUrl','\x0a\x20\x20Available\x20local\x20paths:\x20','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','message','Menu\x20sync\x20completed','4242xMBuCo','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','Invalid\x20--params:\x20expected\x20a\x20JSON\x20object.'];a148_0xc040=function(){return _0x2548ba;};return a148_0xc040();}const MENU_SYNC_PARAM_KEYS=new Set([a148_0x4cfd1f(0x182),a148_0x4cfd1f(0x160)]);function validateParams(_0x24599d){const _0x43167c=a148_0x4cfd1f,_0x255637=[];return _0x24599d['jsUrl']&&!isValidJsHttpsUrl(_0x24599d['jsUrl'])&&_0x255637[_0x43167c(0x16e)]({'field':_0x43167c(0x182),'message':_0x43167c(0x166)}),_0x24599d['cssUrl']&&!isValidCssHttpsUrl(_0x24599d[_0x43167c(0x160)])&&_0x255637[_0x43167c(0x16e)]({'field':'cssUrl','message':_0x43167c(0x162)}),_0x255637;}export async function runMenuSyncCore(_0x4783aa,_0x4f0837,_0x4faeab=[],_0x19f620,_0x937bc2={}){const _0x495a99=a148_0x4cfd1f,_0x37d595=parseMenuSyncParams(_0x19f620),_0x5197b5=[...new Set(_0x4faeab[_0x495a99(0x177)](_0x15f0c2=>_0x15f0c2[_0x495a99(0x15b)]())[_0x495a99(0x159)](Boolean))],_0x503098=_0x37d595['jsUrl'],_0x5d7846=_0x37d595[_0x495a99(0x160)],_0x349bbf=[];if(_0x503098)_0x349bbf['push'](_0x503098);if(_0x5d7846)_0x349bbf[_0x495a99(0x16e)](_0x5d7846);const _0x1f7801=validateParams(_0x37d595);if(_0x1f7801[_0x495a99(0x15f)]>0x0){const _0x2d5ecb=_0x1f7801['map'](_0x57b151=>_0x495a99(0x173)+_0x57b151[_0x495a99(0x157)]+':\x20'+_0x57b151[_0x495a99(0x163)])[_0x495a99(0x150)](';\x20');throw new Error(_0x495a99(0x17f)+_0x2d5ecb);}logger[_0x495a99(0x16f)](process[_0x495a99(0x170)]()),logger['info']('menu-sync',_0x495a99(0x169),{'appCode':_0x4783aa,'selectedCount':_0x5197b5['length'],'jsUrl':_0x503098,'cssUrl':_0x5d7846});if(_0x503098){const _0x131421=await isUrlReachable(_0x503098);if(!_0x131421)throw new Error(_0x495a99(0x16c)+_0x503098);}if(_0x5d7846){const _0x412695=await isUrlReachable(_0x5d7846);if(!_0x412695)throw new Error(_0x495a99(0x17b)+_0x5d7846);}const _0xe669a3=getLocalPages();if(_0xe669a3['length']===0x0){if(_0x5197b5[_0x495a99(0x15f)]>0x0)throw new Error(_0x495a99(0x156)+_0x5197b5[_0x495a99(0x150)](',\x20'));return{'created':0x0,'skipped':!![],'dryRun':_0x937bc2[_0x495a99(0x17e)]===!![],'targetPages':[],'plannedMenus':[]};}const _0x584ae=await getOnlineMenuList(_0x4783aa,_0x4f0837),_0x27998a=new Set(_0x584ae['map'](_0x5030eb=>_0x5030eb[_0x495a99(0x179)]));let _0x4b18b6;if(_0x5197b5[_0x495a99(0x15f)]>0x0){const _0xb6094b=new Map(_0xe669a3['map'](_0x16b22d=>[_0x16b22d[_0x495a99(0x179)],_0x16b22d])),_0x5d99f4=_0x5197b5[_0x495a99(0x159)](_0x11de01=>!_0xb6094b[_0x495a99(0x15e)](_0x11de01));if(_0x5d99f4['length']>0x0){const _0x1a9643=_0xe669a3[_0x495a99(0x177)](_0x43767c=>_0x43767c['path'])[_0x495a99(0x150)](',\x20');throw new Error(_0x495a99(0x156)+_0x5d99f4[_0x495a99(0x150)](',\x20')+_0x495a99(0x161)+_0x1a9643);}const _0x3903f0=_0x5197b5[_0x495a99(0x159)](_0x4bca9f=>_0x27998a[_0x495a99(0x15e)](_0x4bca9f));if(_0x3903f0[_0x495a99(0x15f)]>0x0)throw new Error(_0x495a99(0x16a)+_0x3903f0[_0x495a99(0x150)](',\x20'));_0x4b18b6=_0x5197b5['map'](_0x102e50=>_0xb6094b[_0x495a99(0x181)](_0x102e50));}else _0x4b18b6=_0xe669a3[_0x495a99(0x159)](_0x244a51=>!_0x27998a[_0x495a99(0x15e)](_0x244a51[_0x495a99(0x179)]));if(_0x4b18b6['length']===0x0)return{'created':0x0,'skipped':!![],'dryRun':_0x937bc2[_0x495a99(0x17e)]===!![],'targetPages':[],'plannedMenus':[]};const _0x242629=_0x4b18b6[_0x495a99(0x177)](_0x4e9705=>({'type':_0x495a99(0x152),'path':_0x4e9705['path'],'label':_0x4e9705[_0x495a99(0x17a)],'loadScriptMode':_0x495a99(0x17d),'resources':[..._0x349bbf]}));if(_0x937bc2[_0x495a99(0x17e)])return{'created':0x0,'skipped':![],'dryRun':!![],'targetPages':_0x4b18b6,'plannedMenus':_0x242629};const _0x436d37=await createMenus(_0x4783aa,_0x4f0837,_0x4b18b6,_0x349bbf[_0x495a99(0x15f)]>0x0?_0x349bbf:undefined);return logger[_0x495a99(0x158)]('menu-sync',_0x495a99(0x164),{'count':_0x4b18b6['length'],'resources':_0x349bbf}),{'created':_0x436d37[_0x495a99(0x15f)],'skipped':![],'dryRun':![],'targetPages':_0x4b18b6,'plannedMenus':_0x242629,'menus':_0x436d37};}export function parseMenuSyncParams(_0x3f7c7e){const _0x3a0f23=a148_0x4cfd1f;if(!_0x3f7c7e||typeof _0x3f7c7e!==_0x3a0f23(0x175))return{};let _0x423b8b;try{_0x423b8b=JSON['parse'](_0x3f7c7e);}catch{throw new Error(_0x3a0f23(0x171));}if(typeof _0x423b8b!==_0x3a0f23(0x151)||_0x423b8b===null||Array[_0x3a0f23(0x15c)](_0x423b8b))throw new Error(_0x3a0f23(0x167));const _0x4ad80d=_0x423b8b;if(Object[_0x3a0f23(0x15a)](_0x4ad80d,'pages'))throw new Error('--params.pages\x20is\x20no\x20longer\x20supported.\x20Use\x20--paths\x20with\x20exact\x20local\x20page\x20paths.');const _0x5bd8a7=Object[_0x3a0f23(0x174)](_0x4ad80d)[_0x3a0f23(0x159)](_0x54c495=>!MENU_SYNC_PARAM_KEYS[_0x3a0f23(0x15e)](_0x54c495));if(_0x5bd8a7['length']>0x0)throw new Error(_0x3a0f23(0x172)+_0x5bd8a7[_0x3a0f23(0x150)](',\x20')+'.');for(const _0x344448 of MENU_SYNC_PARAM_KEYS){const _0x140e38=_0x4ad80d[_0x344448];if(_0x140e38!==undefined&&(typeof _0x140e38!==_0x3a0f23(0x175)||_0x140e38[_0x3a0f23(0x15b)]()===''))throw new Error(_0x3a0f23(0x17c)+_0x344448+':\x20expected\x20a\x20non-empty\x20string.');}return{'jsUrl':typeof _0x4ad80d[_0x3a0f23(0x182)]===_0x3a0f23(0x175)?_0x4ad80d[_0x3a0f23(0x182)][_0x3a0f23(0x15b)]():undefined,'cssUrl':typeof _0x4ad80d[_0x3a0f23(0x160)]===_0x3a0f23(0x175)?_0x4ad80d['cssUrl'][_0x3a0f23(0x15b)]():undefined};}
1
+ const a146_0x98596e=a146_0x39ff;(function(_0x5d1bbb,_0x3d2725){const _0x8e1292=a146_0x39ff,_0x22132c=_0x5d1bbb();while(!![]){try{const _0x21da86=-parseInt(_0x8e1292(0x70))/0x1*(parseInt(_0x8e1292(0x82))/0x2)+parseInt(_0x8e1292(0x90))/0x3*(parseInt(_0x8e1292(0x81))/0x4)+-parseInt(_0x8e1292(0x7b))/0x5+-parseInt(_0x8e1292(0x75))/0x6*(-parseInt(_0x8e1292(0x7c))/0x7)+parseInt(_0x8e1292(0x8b))/0x8*(-parseInt(_0x8e1292(0x97))/0x9)+-parseInt(_0x8e1292(0x6b))/0xa*(-parseInt(_0x8e1292(0x8c))/0xb)+parseInt(_0x8e1292(0x7e))/0xc*(parseInt(_0x8e1292(0x6f))/0xd);if(_0x21da86===_0x3d2725)break;else _0x22132c['push'](_0x22132c['shift']());}catch(_0x3a1dd7){_0x22132c['push'](_0x22132c['shift']());}}}(a146_0x77ec,0x21066));import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';import{getOnlineMenuList,createMenus}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';import{logger}from'../../../utils/logger.js';function a146_0x39ff(_0x2b8d78,_0x411963){_0x2b8d78=_0x2b8d78-0x68;const _0x77ecd=a146_0x77ec();let _0x39ffb8=_0x77ecd[_0x2b8d78];return _0x39ffb8;}function a146_0x77ec(){const _0x44e2a0=['771030oScZba','7gDHTHh','has','3996lnnIkH','length','string','92OULesv','40786RYRyvw','--params.pages\x20is\x20no\x20longer\x20supported.\x20Use\x20--paths\x20with\x20exact\x20local\x20page\x20paths.','Start\x20non-interactive\x20menu\x20sync',':\x20expected\x20a\x20non-empty\x20string.','Menu\x20sync\x20completed','cwd','info','JS\x20URL\x20is\x20unreachable:\x20','filter','48NKuNGD','11nPeNbL','join','Local\x20page\x20paths\x20are\x20already\x20on\x20the\x20platform:\x20','Invalid\x20--params\x20JSON.','5421EqLZuF','path','isArray','trim','menu-sync','push','parse','386649DztRGF','label','map','dryRun','import','No\x20local\x20pages\x20matched\x20paths:\x20','1567810KloriO','hasOwn','field','Invalid\x20--params\x20fields:\x20','9074xPXaHN','1dhGlcj','get','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','jsUrl','cssUrl','821154usJIom','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','CSS\x20URL\x20is\x20unreachable:\x20','--params.','Invalid\x20--params:\x20','Invalid\x20--params.'];a146_0x77ec=function(){return _0x44e2a0;};return a146_0x77ec();}const MENU_SYNC_PARAM_KEYS=new Set([a146_0x98596e(0x73),a146_0x98596e(0x74)]);function validateParams(_0x26b827){const _0x332aa1=a146_0x98596e,_0xc00bca=[];return _0x26b827[_0x332aa1(0x73)]&&!isValidJsHttpsUrl(_0x26b827[_0x332aa1(0x73)])&&_0xc00bca['push']({'field':'jsUrl','message':_0x332aa1(0x72)}),_0x26b827[_0x332aa1(0x74)]&&!isValidCssHttpsUrl(_0x26b827['cssUrl'])&&_0xc00bca[_0x332aa1(0x95)]({'field':_0x332aa1(0x74),'message':_0x332aa1(0x76)}),_0xc00bca;}export async function runMenuSyncCore(_0x1c28b3,_0x445ef3,_0x5a25f9=[],_0x1219ea,_0x5aeb6c={}){const _0x5766f8=a146_0x98596e,_0x152f3b=parseMenuSyncParams(_0x1219ea),_0x3ba84a=[...new Set(_0x5a25f9[_0x5766f8(0x99)](_0x30f109=>_0x30f109[_0x5766f8(0x93)]())['filter'](Boolean))],_0x2ca3e3=_0x152f3b['jsUrl'],_0x4d31f5=_0x152f3b[_0x5766f8(0x74)],_0x51e5d2=[];if(_0x2ca3e3)_0x51e5d2[_0x5766f8(0x95)](_0x2ca3e3);if(_0x4d31f5)_0x51e5d2[_0x5766f8(0x95)](_0x4d31f5);const _0x52f458=validateParams(_0x152f3b);if(_0x52f458['length']>0x0){const _0x5b08ef=_0x52f458['map'](_0x38a140=>_0x5766f8(0x78)+_0x38a140[_0x5766f8(0x6d)]+':\x20'+_0x38a140['message'])[_0x5766f8(0x8d)](';\x20');throw new Error(_0x5766f8(0x79)+_0x5b08ef);}logger['setLogPath'](process[_0x5766f8(0x87)]()),logger['info']('menu-sync',_0x5766f8(0x84),{'appCode':_0x1c28b3,'selectedCount':_0x3ba84a[_0x5766f8(0x7f)],'jsUrl':_0x2ca3e3,'cssUrl':_0x4d31f5});if(_0x2ca3e3){const _0x5ce72b=await isUrlReachable(_0x2ca3e3);if(!_0x5ce72b)throw new Error(_0x5766f8(0x89)+_0x2ca3e3);}if(_0x4d31f5){const _0x4ec360=await isUrlReachable(_0x4d31f5);if(!_0x4ec360)throw new Error(_0x5766f8(0x77)+_0x4d31f5);}const _0x431c1b=getLocalPages();if(_0x431c1b['length']===0x0){if(_0x3ba84a[_0x5766f8(0x7f)]>0x0)throw new Error(_0x5766f8(0x6a)+_0x3ba84a['join'](',\x20'));return{'created':0x0,'skipped':!![],'dryRun':_0x5aeb6c['dryRun']===!![],'targetPages':[],'plannedMenus':[]};}const _0x27e1ac=await getOnlineMenuList(_0x1c28b3,_0x445ef3),_0x10fc80=new Set(_0x27e1ac[_0x5766f8(0x99)](_0x1568cb=>_0x1568cb['path']));let _0x49551f;if(_0x3ba84a[_0x5766f8(0x7f)]>0x0){const _0x5ccddb=new Map(_0x431c1b[_0x5766f8(0x99)](_0x22622e=>[_0x22622e[_0x5766f8(0x91)],_0x22622e])),_0x15fbac=_0x3ba84a['filter'](_0x5d0b6c=>!_0x5ccddb['has'](_0x5d0b6c));if(_0x15fbac[_0x5766f8(0x7f)]>0x0){const _0x10bfc3=_0x431c1b['map'](_0x4c2ee5=>_0x4c2ee5[_0x5766f8(0x91)])[_0x5766f8(0x8d)](',\x20');throw new Error(_0x5766f8(0x6a)+_0x15fbac[_0x5766f8(0x8d)](',\x20')+'\x0a\x20\x20Available\x20local\x20paths:\x20'+_0x10bfc3);}const _0x1dd1e6=_0x3ba84a[_0x5766f8(0x8a)](_0x4f5282=>_0x10fc80[_0x5766f8(0x7d)](_0x4f5282));if(_0x1dd1e6[_0x5766f8(0x7f)]>0x0)throw new Error(_0x5766f8(0x8e)+_0x1dd1e6[_0x5766f8(0x8d)](',\x20'));_0x49551f=_0x3ba84a['map'](_0x2ff9c0=>_0x5ccddb[_0x5766f8(0x71)](_0x2ff9c0));}else _0x49551f=_0x431c1b[_0x5766f8(0x8a)](_0x4ac01f=>!_0x10fc80[_0x5766f8(0x7d)](_0x4ac01f[_0x5766f8(0x91)]));if(_0x49551f[_0x5766f8(0x7f)]===0x0)return{'created':0x0,'skipped':!![],'dryRun':_0x5aeb6c[_0x5766f8(0x68)]===!![],'targetPages':[],'plannedMenus':[]};const _0x41b146=_0x49551f[_0x5766f8(0x99)](_0x5c8bfe=>({'type':'procode','path':_0x5c8bfe[_0x5766f8(0x91)],'label':_0x5c8bfe[_0x5766f8(0x98)],'loadScriptMode':_0x5766f8(0x69),'resources':[..._0x51e5d2]}));if(_0x5aeb6c[_0x5766f8(0x68)])return{'created':0x0,'skipped':![],'dryRun':!![],'targetPages':_0x49551f,'plannedMenus':_0x41b146};const _0x2a2b97=await createMenus(_0x1c28b3,_0x445ef3,_0x49551f,_0x51e5d2['length']>0x0?_0x51e5d2:undefined);return logger[_0x5766f8(0x88)](_0x5766f8(0x94),_0x5766f8(0x86),{'count':_0x49551f[_0x5766f8(0x7f)],'resources':_0x51e5d2}),{'created':_0x2a2b97[_0x5766f8(0x7f)],'skipped':![],'dryRun':![],'targetPages':_0x49551f,'plannedMenus':_0x41b146,'menus':_0x2a2b97};}export function parseMenuSyncParams(_0x373bc5){const _0x2a15ff=a146_0x98596e;if(!_0x373bc5||typeof _0x373bc5!==_0x2a15ff(0x80))return{};let _0x1427be;try{_0x1427be=JSON[_0x2a15ff(0x96)](_0x373bc5);}catch{throw new Error(_0x2a15ff(0x8f));}if(typeof _0x1427be!=='object'||_0x1427be===null||Array[_0x2a15ff(0x92)](_0x1427be))throw new Error('Invalid\x20--params:\x20expected\x20a\x20JSON\x20object.');const _0x275f8d=_0x1427be;if(Object[_0x2a15ff(0x6c)](_0x275f8d,'pages'))throw new Error(_0x2a15ff(0x83));const _0x2b5638=Object['keys'](_0x275f8d)[_0x2a15ff(0x8a)](_0x230e99=>!MENU_SYNC_PARAM_KEYS['has'](_0x230e99));if(_0x2b5638[_0x2a15ff(0x7f)]>0x0)throw new Error(_0x2a15ff(0x6e)+_0x2b5638[_0x2a15ff(0x8d)](',\x20')+'.');for(const _0x5cd36e of MENU_SYNC_PARAM_KEYS){const _0x2ce1b3=_0x275f8d[_0x5cd36e];if(_0x2ce1b3!==undefined&&(typeof _0x2ce1b3!==_0x2a15ff(0x80)||_0x2ce1b3[_0x2a15ff(0x93)]()===''))throw new Error(_0x2a15ff(0x7a)+_0x5cd36e+_0x2a15ff(0x85));}return{'jsUrl':typeof _0x275f8d[_0x2a15ff(0x73)]==='string'?_0x275f8d['jsUrl'][_0x2a15ff(0x93)]():undefined,'cssUrl':typeof _0x275f8d['cssUrl']===_0x2a15ff(0x80)?_0x275f8d[_0x2a15ff(0x74)]['trim']():undefined};}
@@ -1 +1 @@
1
- (function(_0x3a03be,_0x2dae6e){const _0x29c15e=a150_0x39ea,_0x4601fd=_0x3a03be();while(!![]){try{const _0x21216c=-parseInt(_0x29c15e(0x186))/0x1+parseInt(_0x29c15e(0x18a))/0x2*(parseInt(_0x29c15e(0x173))/0x3)+-parseInt(_0x29c15e(0x16c))/0x4+-parseInt(_0x29c15e(0x17e))/0x5*(parseInt(_0x29c15e(0x157))/0x6)+parseInt(_0x29c15e(0x15c))/0x7*(parseInt(_0x29c15e(0x153))/0x8)+parseInt(_0x29c15e(0x180))/0x9+-parseInt(_0x29c15e(0x160))/0xa;if(_0x21216c===_0x2dae6e)break;else _0x4601fd['push'](_0x4601fd['shift']());}catch(_0x999186){_0x4601fd['push'](_0x4601fd['shift']());}}}(a150_0x5c48,0x3ddb2));import{updateMenuCdnUrl,getOnlineMenuList}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';import{logger}from'../../../utils/logger.js';function a150_0x39ea(_0x321196,_0xf236d2){_0x321196=_0x321196-0x151;const _0x5c4857=a150_0x5c48();let _0x39ea66=_0x5c4857[_0x321196];return _0x39ea66;}function validateParams(_0x50c70d){const _0x81c216=a150_0x39ea,_0xa372f7=[];return _0x50c70d['jsUrl']&&!isValidJsHttpsUrl(_0x50c70d['jsUrl'])&&_0xa372f7['push']({'field':_0x81c216(0x16a),'message':'JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'}),_0x50c70d[_0x81c216(0x191)]&&!isValidCssHttpsUrl(_0x50c70d[_0x81c216(0x191)])&&_0xa372f7[_0x81c216(0x17c)]({'field':_0x81c216(0x191),'message':_0x81c216(0x16e)}),_0xa372f7;}export async function runMenuUpdateCore(_0x47b1e5,_0x47b00e,_0x2fd4b3,_0x20954c={}){const _0xf98b28=a150_0x39ea,_0x5ba2f0=parseUpdateParamsFlag(_0x2fd4b3),_0x5109e8=normalizeMode(_0x20954c[_0xf98b28(0x15d)]);validateSelection(_0x20954c[_0xf98b28(0x18d)]);const _0xe6380e=[];if(_0x5ba2f0[_0xf98b28(0x16a)])_0xe6380e[_0xf98b28(0x17c)](_0x5ba2f0['jsUrl']);if(_0x5ba2f0[_0xf98b28(0x191)])_0xe6380e[_0xf98b28(0x17c)](_0x5ba2f0['cssUrl']);const _0x4a6608=validateParams(_0x5ba2f0);if(_0x4a6608[_0xf98b28(0x162)]>0x0){const _0x21e7fb=_0x4a6608[_0xf98b28(0x170)](_0x31cff9=>_0xf98b28(0x171)+_0x31cff9[_0xf98b28(0x18e)]+':\x20'+_0x31cff9[_0xf98b28(0x16d)])[_0xf98b28(0x179)](';\x20');throw new Error('Invalid\x20--params:\x20'+_0x21e7fb);}if(_0xe6380e[_0xf98b28(0x162)]===0x0)throw new Error(_0xf98b28(0x190)+'Pass\x20--params\x20\x27{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}\x27\x20to\x20update\x20assets.');logger[_0xf98b28(0x17b)](process['cwd']()),logger[_0xf98b28(0x165)](_0xf98b28(0x182),_0xf98b28(0x163),{'appCode':_0x47b1e5,'jsUrl':_0x5ba2f0['jsUrl'],'cssUrl':_0x5ba2f0[_0xf98b28(0x191)],'mode':_0x5109e8,'dryRun':_0x20954c[_0xf98b28(0x151)]===!![]});if(_0x5ba2f0['jsUrl']){const _0x5ca915=await isUrlReachable(_0x5ba2f0[_0xf98b28(0x16a)]);if(!_0x5ca915)throw new Error(_0xf98b28(0x187)+_0x5ba2f0[_0xf98b28(0x16a)]);}if(_0x5ba2f0['cssUrl']){const _0x9df0cc=await isUrlReachable(_0x5ba2f0['cssUrl']);if(!_0x9df0cc)throw new Error(_0xf98b28(0x181)+_0x5ba2f0['cssUrl']);}const _0x3d3a53=await getOnlineMenuList(_0x47b1e5,_0x47b00e),_0x335797=_0x3d3a53[_0xf98b28(0x16b)](_0x353657=>_0x353657[_0xf98b28(0x184)][_0xf98b28(0x162)]>0x0),_0x455a63=selectMenusForUpdate(_0x335797,_0x20954c[_0xf98b28(0x18d)]);if(_0x455a63[_0xf98b28(0x162)]===0x0)return{'updated':0x0,'failed':0x0,'skipped':!![],'dryRun':_0x20954c['dryRun']===!![]};const _0x1a36b4=_0x455a63[_0xf98b28(0x170)](_0x55b040=>buildMenuUpdateDiff(_0x55b040,_0x5ba2f0,_0x5109e8,_0x20954c[_0xf98b28(0x152)]===!![],_0x20954c[_0xf98b28(0x183)]));if(_0x20954c[_0xf98b28(0x151)])return{'updated':0x0,'failed':0x0,'skipped':![],'dryRun':!![],'diffs':_0x1a36b4};const _0xd03a78=await Promise[_0xf98b28(0x17f)](_0x455a63[_0xf98b28(0x170)]((_0x30a60e,_0x25931c)=>updateMenuCdnUrl(_0x47b1e5,_0x47b00e,{'id':_0x30a60e['id'],'label':_0x30a60e[_0xf98b28(0x156)],'path':_0x30a60e[_0xf98b28(0x16f)],'resources':_0x1a36b4[_0x25931c][_0xf98b28(0x178)][_0xf98b28(0x184)],'extend':_0x30a60e[_0xf98b28(0x15e)]??null,'loadScriptMode':_0x20954c[_0xf98b28(0x183)]}))),_0x53ddc2=_0xd03a78[_0xf98b28(0x16b)](_0x3818a2=>_0x3818a2[_0xf98b28(0x197)]==='fulfilled')[_0xf98b28(0x170)](_0x2772ce=>_0x2772ce[_0xf98b28(0x192)]),_0x1c8279=_0xd03a78['filter'](_0xc4eb49=>_0xc4eb49[_0xf98b28(0x197)]===_0xf98b28(0x194))[_0xf98b28(0x162)];return logger['info'](_0xf98b28(0x182),_0xf98b28(0x18c),{'count':_0x455a63[_0xf98b28(0x162)],'resources':_0xe6380e}),{'updated':_0x53ddc2[_0xf98b28(0x162)],'failed':_0x1c8279,'skipped':![],'menus':_0x53ddc2};}function validateSelection(_0x2d44fb){const _0x5e37cb=a150_0x39ea;if(!_0x2d44fb)throw new Error('menu\x20asset-update\x20requires\x20an\x20explicit\x20target:\x20pass\x20--all,\x20--menu-ids,\x20or\x20--paths.');if(_0x2d44fb[_0x5e37cb(0x18b)]&&(_0x2d44fb[_0x5e37cb(0x167)][_0x5e37cb(0x162)]>0x0||_0x2d44fb['paths'][_0x5e37cb(0x162)]>0x0))throw new Error(_0x5e37cb(0x154));if(!_0x2d44fb[_0x5e37cb(0x18b)]&&_0x2d44fb[_0x5e37cb(0x167)][_0x5e37cb(0x162)]===0x0&&_0x2d44fb[_0x5e37cb(0x195)][_0x5e37cb(0x162)]===0x0)throw new Error(_0x5e37cb(0x177));}export function selectMenusForUpdate(_0xee32d3,_0x563d84){const _0x45bc38=a150_0x39ea;validateSelection(_0x563d84);if(_0x563d84['all'])return _0xee32d3;const _0x55206=new Set(_0xee32d3[_0x45bc38(0x170)](_0x24616b=>_0x24616b['id'])),_0xe7c58b=new Set(_0xee32d3[_0x45bc38(0x170)](_0x3d248c=>_0x3d248c[_0x45bc38(0x16f)])),_0x415f9a=_0x563d84[_0x45bc38(0x167)][_0x45bc38(0x16b)](_0xe8fd7d=>!_0x55206['has'](_0xe8fd7d)),_0x9e997e=_0x563d84[_0x45bc38(0x195)][_0x45bc38(0x16b)](_0x25e551=>!_0xe7c58b[_0x45bc38(0x155)](_0x25e551));if(_0x415f9a['length']>0x0||_0x9e997e[_0x45bc38(0x162)]>0x0){const _0x454519=[..._0x415f9a[_0x45bc38(0x170)](_0x9fd53=>String(_0x9fd53)),..._0x9e997e][_0x45bc38(0x179)](',\x20');throw new Error(_0x45bc38(0x158)+_0x454519);}const _0x400e09=new Set(_0x563d84[_0x45bc38(0x167)]),_0x13d574=new Set(_0x563d84[_0x45bc38(0x195)]);return _0xee32d3[_0x45bc38(0x16b)](_0x549ea3=>_0x400e09[_0x45bc38(0x155)](_0x549ea3['id'])||_0x13d574[_0x45bc38(0x155)](_0x549ea3[_0x45bc38(0x16f)]));}function normalizeMode(_0x3ed93c){const _0x5ac0c2=a150_0x39ea;if(!_0x3ed93c)return _0x5ac0c2(0x164);if(_0x3ed93c===_0x5ac0c2(0x193)||_0x3ed93c===_0x5ac0c2(0x164))return _0x3ed93c;throw new Error(_0x5ac0c2(0x172)+_0x3ed93c+_0x5ac0c2(0x15b));}function buildMenuUpdateDiff(_0x40fc8c,_0x19bf57,_0x235943,_0x3223e6,_0x2c590d){const _0x5f5289=a150_0x39ea,_0x3d9c88=[..._0x40fc8c[_0x5f5289(0x184)]];_0x235943===_0x5f5289(0x164)&&assertUnambiguousPatchResources(_0x40fc8c,_0x3d9c88,_0x19bf57);const _0x274b1f=_0x235943===_0x5f5289(0x164)?patchResources(_0x3d9c88,_0x19bf57):replaceResources(_0x19bf57),_0x2b1367=[],_0x26708c=_0x3d9c88['some'](isJsResource),_0xc64a6d=_0x274b1f[_0x5f5289(0x15a)](isJsResource);if(_0x26708c&&!_0xc64a6d){const _0x4fcc4a=_0x5f5289(0x161)+_0x40fc8c[_0x5f5289(0x156)]+_0x5f5289(0x176)+_0x40fc8c[_0x5f5289(0x16f)]+_0x5f5289(0x18f)+_0x5f5289(0x189);if(!_0x3223e6)throw new Error(_0x4fcc4a);_0x2b1367[_0x5f5289(0x17c)](_0x4fcc4a);}const _0x23795d=_0x3d9c88[_0x5f5289(0x15a)](isCssResource),_0x3a6e9b=_0x274b1f[_0x5f5289(0x15a)](isCssResource);_0x23795d&&!_0x3a6e9b&&_0x2b1367['push']('menu\x20asset-update\x20will\x20remove\x20existing\x20CSS\x20resource\x20for\x20\x22'+_0x40fc8c[_0x5f5289(0x156)]+_0x5f5289(0x176)+_0x40fc8c['path']+').');const _0x5d0a7b=typeof _0x40fc8c[_0x5f5289(0x15e)]?.[_0x5f5289(0x183)]===_0x5f5289(0x17a)?_0x40fc8c[_0x5f5289(0x15e)][_0x5f5289(0x183)]:null,_0x1e74b6=_0x2c590d?{'loadScriptMode':_0x5d0a7b}:{},_0x5bbf75=_0x2c590d?{'loadScriptMode':_0x2c590d}:{};return{'id':_0x40fc8c['id'],'label':_0x40fc8c['label'],'path':_0x40fc8c['path'],'mode':_0x235943,'before':{'resources':_0x3d9c88,..._0x1e74b6},'after':{'resources':_0x274b1f,..._0x5bbf75},'warnings':_0x2b1367};}function replaceResources(_0x5ee288){const _0x124205=a150_0x39ea;return[_0x5ee288['jsUrl'],_0x5ee288[_0x124205(0x191)]][_0x124205(0x16b)](_0x1a2255=>!!_0x1a2255);}function assertUnambiguousPatchResources(_0x5d0f2f,_0x1a17aa,_0x36320f){const _0x181391=a150_0x39ea,_0x4f5daa=_0x1a17aa[_0x181391(0x16b)](isJsResource)[_0x181391(0x162)];if(_0x36320f[_0x181391(0x16a)]&&_0x4f5daa>0x1)throw new Error(_0x181391(0x166)+_0x4f5daa+'\x20existing\x20JS\x20resources\x20for\x20\x22'+_0x5d0f2f[_0x181391(0x156)]+'\x22\x20('+_0x5d0f2f['path']+')\x20'+_0x181391(0x168));const _0x403527=_0x1a17aa[_0x181391(0x16b)](isCssResource)[_0x181391(0x162)];if(_0x36320f[_0x181391(0x191)]&&_0x403527>0x1)throw new Error('menu\x20asset-update\x20cannot\x20patch\x20'+_0x403527+_0x181391(0x175)+_0x5d0f2f[_0x181391(0x156)]+_0x181391(0x176)+_0x5d0f2f[_0x181391(0x16f)]+')\x20'+_0x181391(0x188));}function patchResources(_0x582abd,_0x329957){const _0x36c482=a150_0x39ea;let _0x3ead37=![],_0x42ea9a=![];const _0x2cd117=[];for(const _0x50436d of _0x582abd){if(isJsResource(_0x50436d)){if(_0x329957[_0x36c482(0x16a)]&&!_0x3ead37)_0x2cd117[_0x36c482(0x17c)](_0x329957['jsUrl']),_0x3ead37=!![];else!_0x329957[_0x36c482(0x16a)]&&_0x2cd117['push'](_0x50436d);continue;}if(isCssResource(_0x50436d)){if(_0x329957[_0x36c482(0x191)]&&!_0x42ea9a)_0x2cd117['push'](_0x329957[_0x36c482(0x191)]),_0x42ea9a=!![];else!_0x329957['cssUrl']&&_0x2cd117[_0x36c482(0x17c)](_0x50436d);continue;}_0x2cd117[_0x36c482(0x17c)](_0x50436d);}return _0x329957[_0x36c482(0x16a)]&&!_0x3ead37&&_0x2cd117['unshift'](_0x329957[_0x36c482(0x16a)]),_0x329957['cssUrl']&&!_0x42ea9a&&_0x2cd117[_0x36c482(0x17c)](_0x329957['cssUrl']),_0x2cd117;}function a150_0x5c48(){const _0x2ccca2=['JS\x20URL\x20is\x20unreachable:\x20','with\x20a\x20single\x20cssUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.','Use\x20--mode\x20patch\x20to\x20preserve\x20it,\x20pass\x20jsUrl,\x20or\x20add\x20--force\x20for\x20an\x20intentional\x20removal.','68756aOgsTC','all','Menu\x20asset\x20update\x20completed','selection','field',').\x20','Invalid\x20--params:\x20menu\x20asset-update\x20requires\x20at\x20least\x20one\x20explicit\x20JS/CSS\x20URL.\x20','cssUrl','value','replace','rejected','paths','trim','status','dryRun','force','8MfVTUb','--all\x20cannot\x20be\x20combined\x20with\x20--menu-ids\x20or\x20--paths.','has','label','53700PShsCF','menu\x20asset-update\x20selectors\x20did\x20not\x20match\x20resource-bearing\x20menus:\x20','toLowerCase','some','.\x20Allowed\x20values:\x20replace,\x20patch','2334143KnEhea','mode','extend','parse','1090660YlOwwd','menu\x20asset-update\x20would\x20remove\x20existing\x20JS\x20resource\x20for\x20\x22','length','Start\x20non-interactive\x20menu\x20asset\x20update','patch','info','menu\x20asset-update\x20cannot\x20patch\x20','menuIds','with\x20a\x20single\x20jsUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.','object','jsUrl','filter','271568UrBtwB','message','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','path','map','--params.','Invalid\x20--mode:\x20','24BeoAUe','split','\x20existing\x20CSS\x20resources\x20for\x20\x22','\x22\x20(','menu\x20asset-update\x20requires\x20an\x20explicit\x20target:\x20pass\x20--all,\x20--menu-ids,\x20or\x20--paths.','after','join','string','setLogPath','push','endsWith','85cpwGbk','allSettled','2507814TvGiVl','CSS\x20URL\x20is\x20unreachable:\x20','menu-asset-update','loadScriptMode','resources','isArray','304649QYcfAQ'];a150_0x5c48=function(){return _0x2ccca2;};return a150_0x5c48();}function isJsResource(_0x3ca085){const _0x1a362d=a150_0x39ea;return stripQuery(_0x3ca085)[_0x1a362d(0x159)]()[_0x1a362d(0x17d)]('.js');}function isCssResource(_0x576e35){const _0x5f1c2f=a150_0x39ea;return stripQuery(_0x576e35)[_0x5f1c2f(0x159)]()[_0x5f1c2f(0x17d)]('.css');}function stripQuery(_0x77d28d){const _0x32fdc4=a150_0x39ea;return _0x77d28d[_0x32fdc4(0x174)]('?')[0x0]??_0x77d28d;}function parseUpdateParamsFlag(_0x53ca4b){const _0x207574=a150_0x39ea;if(!_0x53ca4b||typeof _0x53ca4b!=='string')return{};try{const _0x5ab512=JSON[_0x207574(0x15f)](_0x53ca4b);if(typeof _0x5ab512!==_0x207574(0x169)||_0x5ab512===null||Array[_0x207574(0x185)](_0x5ab512))return{};return{'jsUrl':typeof _0x5ab512['jsUrl']===_0x207574(0x17a)?_0x5ab512['jsUrl'][_0x207574(0x196)]():undefined,'cssUrl':typeof _0x5ab512['cssUrl']===_0x207574(0x17a)?_0x5ab512['cssUrl'][_0x207574(0x196)]():undefined};}catch{return{};}}
1
+ (function(_0x5c2f71,_0x278d52){const _0x32b4dc=a148_0x250c,_0x300435=_0x5c2f71();while(!![]){try{const _0x10b367=parseInt(_0x32b4dc(0xf8))/0x1*(parseInt(_0x32b4dc(0xe7))/0x2)+-parseInt(_0x32b4dc(0xfc))/0x3*(-parseInt(_0x32b4dc(0x104))/0x4)+-parseInt(_0x32b4dc(0x108))/0x5+parseInt(_0x32b4dc(0xf0))/0x6+-parseInt(_0x32b4dc(0x103))/0x7+-parseInt(_0x32b4dc(0xfe))/0x8*(parseInt(_0x32b4dc(0x116))/0x9)+parseInt(_0x32b4dc(0x114))/0xa;if(_0x10b367===_0x278d52)break;else _0x300435['push'](_0x300435['shift']());}catch(_0x22fa6d){_0x300435['push'](_0x300435['shift']());}}}(a148_0x1f90,0xbccb2));function a148_0x1f90(){const _0x193caa=['label','has','split','menu\x20asset-update\x20cannot\x20patch\x20','force','Invalid\x20--params:\x20menu\x20asset-update\x20requires\x20at\x20least\x20one\x20explicit\x20JS/CSS\x20URL.\x20','\x20existing\x20JS\x20resources\x20for\x20\x22','\x20existing\x20CSS\x20resources\x20for\x20\x22','some','JS\x20URL\x20is\x20unreachable:\x20','7058610cmBpmA','join','436464wfCXCd','map','isArray','allSettled','status','filter','menu\x20asset-update\x20would\x20remove\x20existing\x20JS\x20resource\x20for\x20\x22','all','field','Pass\x20--params\x20\x27{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}\x27\x20to\x20update\x20assets.','Invalid\x20--params:\x20','toLowerCase',').\x20','parse','replace','CSS\x20URL\x20is\x20unreachable:\x20','message','value','string','length','133890spmBSU','cssUrl','.js','dryRun','Use\x20--mode\x20patch\x20to\x20preserve\x20it,\x20pass\x20jsUrl,\x20or\x20add\x20--force\x20for\x20an\x20intentional\x20removal.','push','patch','after','mode','3801348VSEwfd','endsWith','path','\x22\x20(','resources','menuIds','--params.','menu-asset-update','5VJZxLa','cwd','loadScriptMode','info','2574699XcVxIq','unshift','128YJkHQj','jsUrl','selection','menu\x20asset-update\x20requires\x20an\x20explicit\x20target:\x20pass\x20--all,\x20--menu-ids,\x20or\x20--paths.','Menu\x20asset\x20update\x20completed','4935952Vxcuaj','4MMytbP','with\x20a\x20single\x20jsUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.','object','rejected','1390035fPHLql','paths'];a148_0x1f90=function(){return _0x193caa;};return a148_0x1f90();}import{updateMenuCdnUrl,getOnlineMenuList}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';import{logger}from'../../../utils/logger.js';function validateParams(_0x27eaac){const _0x3ce6f7=a148_0x250c,_0x129374=[];return _0x27eaac['jsUrl']&&!isValidJsHttpsUrl(_0x27eaac['jsUrl'])&&_0x129374[_0x3ce6f7(0xec)]({'field':_0x3ce6f7(0xff),'message':'JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'}),_0x27eaac[_0x3ce6f7(0xe8)]&&!isValidCssHttpsUrl(_0x27eaac[_0x3ce6f7(0xe8)])&&_0x129374[_0x3ce6f7(0xec)]({'field':_0x3ce6f7(0xe8),'message':'CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'}),_0x129374;}export async function runMenuUpdateCore(_0x5b06f1,_0x5bc0e7,_0x3925bf,_0x242b82={}){const _0x294baa=a148_0x250c,_0x2150f0=parseUpdateParamsFlag(_0x3925bf),_0x35f6bf=normalizeMode(_0x242b82[_0x294baa(0xef)]);validateSelection(_0x242b82['selection']);const _0x108a4f=[];if(_0x2150f0['jsUrl'])_0x108a4f[_0x294baa(0xec)](_0x2150f0[_0x294baa(0xff)]);if(_0x2150f0['cssUrl'])_0x108a4f['push'](_0x2150f0['cssUrl']);const _0x1a2220=validateParams(_0x2150f0);if(_0x1a2220[_0x294baa(0xe6)]>0x0){const _0x27c881=_0x1a2220[_0x294baa(0x117)](_0x1bb852=>_0x294baa(0xf6)+_0x1bb852[_0x294baa(0xdb)]+':\x20'+_0x1bb852[_0x294baa(0xe3)])[_0x294baa(0x115)](';\x20');throw new Error(_0x294baa(0xdd)+_0x27c881);}if(_0x108a4f[_0x294baa(0xe6)]===0x0)throw new Error(_0x294baa(0x10f)+_0x294baa(0xdc));logger['setLogPath'](process[_0x294baa(0xf9)]()),logger[_0x294baa(0xfb)](_0x294baa(0xf7),'Start\x20non-interactive\x20menu\x20asset\x20update',{'appCode':_0x5b06f1,'jsUrl':_0x2150f0[_0x294baa(0xff)],'cssUrl':_0x2150f0[_0x294baa(0xe8)],'mode':_0x35f6bf,'dryRun':_0x242b82['dryRun']===!![]});if(_0x2150f0[_0x294baa(0xff)]){const _0x3fea93=await isUrlReachable(_0x2150f0['jsUrl']);if(!_0x3fea93)throw new Error(_0x294baa(0x113)+_0x2150f0[_0x294baa(0xff)]);}if(_0x2150f0['cssUrl']){const _0x350a66=await isUrlReachable(_0x2150f0[_0x294baa(0xe8)]);if(!_0x350a66)throw new Error(_0x294baa(0xe2)+_0x2150f0[_0x294baa(0xe8)]);}const _0x2b49b7=await getOnlineMenuList(_0x5b06f1,_0x5bc0e7),_0x655e85=_0x2b49b7[_0x294baa(0x11b)](_0x35a181=>_0x35a181[_0x294baa(0xf4)][_0x294baa(0xe6)]>0x0),_0x3a25e8=selectMenusForUpdate(_0x655e85,_0x242b82[_0x294baa(0x100)]);if(_0x3a25e8['length']===0x0)return{'updated':0x0,'failed':0x0,'skipped':!![],'dryRun':_0x242b82[_0x294baa(0xea)]===!![]};const _0x139cd0=_0x3a25e8[_0x294baa(0x117)](_0x442e0e=>buildMenuUpdateDiff(_0x442e0e,_0x2150f0,_0x35f6bf,_0x242b82[_0x294baa(0x10e)]===!![],_0x242b82[_0x294baa(0xfa)]));if(_0x242b82['dryRun'])return{'updated':0x0,'failed':0x0,'skipped':![],'dryRun':!![],'diffs':_0x139cd0};const _0x48c840=await Promise[_0x294baa(0x119)](_0x3a25e8[_0x294baa(0x117)]((_0x11b806,_0x13eb10)=>updateMenuCdnUrl(_0x5b06f1,_0x5bc0e7,{'id':_0x11b806['id'],'label':_0x11b806[_0x294baa(0x10a)],'path':_0x11b806[_0x294baa(0xf2)],'resources':_0x139cd0[_0x13eb10][_0x294baa(0xee)]['resources'],'extend':_0x11b806['extend']??null,'loadScriptMode':_0x242b82[_0x294baa(0xfa)]}))),_0x4eaffb=_0x48c840[_0x294baa(0x11b)](_0x2119b7=>_0x2119b7['status']==='fulfilled')[_0x294baa(0x117)](_0x52d6ae=>_0x52d6ae[_0x294baa(0xe4)]),_0x4299f2=_0x48c840[_0x294baa(0x11b)](_0x2b30b1=>_0x2b30b1[_0x294baa(0x11a)]===_0x294baa(0x107))[_0x294baa(0xe6)];return logger[_0x294baa(0xfb)]('menu-asset-update',_0x294baa(0x102),{'count':_0x3a25e8[_0x294baa(0xe6)],'resources':_0x108a4f}),{'updated':_0x4eaffb[_0x294baa(0xe6)],'failed':_0x4299f2,'skipped':![],'menus':_0x4eaffb};}function validateSelection(_0x53eab0){const _0x5db014=a148_0x250c;if(!_0x53eab0)throw new Error('menu\x20asset-update\x20requires\x20an\x20explicit\x20target:\x20pass\x20--all,\x20--menu-ids,\x20or\x20--paths.');if(_0x53eab0[_0x5db014(0x11d)]&&(_0x53eab0[_0x5db014(0xf5)][_0x5db014(0xe6)]>0x0||_0x53eab0[_0x5db014(0x109)][_0x5db014(0xe6)]>0x0))throw new Error('--all\x20cannot\x20be\x20combined\x20with\x20--menu-ids\x20or\x20--paths.');if(!_0x53eab0['all']&&_0x53eab0[_0x5db014(0xf5)][_0x5db014(0xe6)]===0x0&&_0x53eab0[_0x5db014(0x109)][_0x5db014(0xe6)]===0x0)throw new Error(_0x5db014(0x101));}export function selectMenusForUpdate(_0x116d8c,_0x1f8f38){const _0xd61a83=a148_0x250c;validateSelection(_0x1f8f38);if(_0x1f8f38[_0xd61a83(0x11d)])return _0x116d8c;const _0x1aea65=new Set(_0x116d8c[_0xd61a83(0x117)](_0x3afd63=>_0x3afd63['id'])),_0x595539=new Set(_0x116d8c['map'](_0x421e68=>_0x421e68['path'])),_0x1af921=_0x1f8f38[_0xd61a83(0xf5)][_0xd61a83(0x11b)](_0x3b3890=>!_0x1aea65[_0xd61a83(0x10b)](_0x3b3890)),_0x42b96e=_0x1f8f38[_0xd61a83(0x109)]['filter'](_0x7dee7a=>!_0x595539[_0xd61a83(0x10b)](_0x7dee7a));if(_0x1af921[_0xd61a83(0xe6)]>0x0||_0x42b96e['length']>0x0){const _0x5129ed=[..._0x1af921[_0xd61a83(0x117)](_0x561950=>String(_0x561950)),..._0x42b96e][_0xd61a83(0x115)](',\x20');throw new Error('menu\x20asset-update\x20selectors\x20did\x20not\x20match\x20resource-bearing\x20menus:\x20'+_0x5129ed);}const _0x3dd495=new Set(_0x1f8f38[_0xd61a83(0xf5)]),_0x4c0f9f=new Set(_0x1f8f38[_0xd61a83(0x109)]);return _0x116d8c[_0xd61a83(0x11b)](_0x20a2b1=>_0x3dd495['has'](_0x20a2b1['id'])||_0x4c0f9f[_0xd61a83(0x10b)](_0x20a2b1[_0xd61a83(0xf2)]));}function a148_0x250c(_0x320574,_0x18923a){_0x320574=_0x320574-0xdb;const _0x1f9096=a148_0x1f90();let _0x250c15=_0x1f9096[_0x320574];return _0x250c15;}function normalizeMode(_0x5253ed){const _0x550efd=a148_0x250c;if(!_0x5253ed)return _0x550efd(0xed);if(_0x5253ed===_0x550efd(0xe1)||_0x5253ed===_0x550efd(0xed))return _0x5253ed;throw new Error('Invalid\x20--mode:\x20'+_0x5253ed+'.\x20Allowed\x20values:\x20replace,\x20patch');}function buildMenuUpdateDiff(_0xe1af0e,_0x15e153,_0x353a78,_0x2588a4,_0x157160){const _0x398b0e=a148_0x250c,_0x577d15=[..._0xe1af0e[_0x398b0e(0xf4)]];_0x353a78===_0x398b0e(0xed)&&assertUnambiguousPatchResources(_0xe1af0e,_0x577d15,_0x15e153);const _0x1fce1a=_0x353a78===_0x398b0e(0xed)?patchResources(_0x577d15,_0x15e153):replaceResources(_0x15e153),_0x33198e=[],_0x5e2dab=_0x577d15['some'](isJsResource),_0x3753e9=_0x1fce1a['some'](isJsResource);if(_0x5e2dab&&!_0x3753e9){const _0x6d0a48=_0x398b0e(0x11c)+_0xe1af0e[_0x398b0e(0x10a)]+_0x398b0e(0xf3)+_0xe1af0e[_0x398b0e(0xf2)]+_0x398b0e(0xdf)+_0x398b0e(0xeb);if(!_0x2588a4)throw new Error(_0x6d0a48);_0x33198e[_0x398b0e(0xec)](_0x6d0a48);}const _0x4eaf9a=_0x577d15['some'](isCssResource),_0x3a5530=_0x1fce1a[_0x398b0e(0x112)](isCssResource);_0x4eaf9a&&!_0x3a5530&&_0x33198e[_0x398b0e(0xec)]('menu\x20asset-update\x20will\x20remove\x20existing\x20CSS\x20resource\x20for\x20\x22'+_0xe1af0e['label']+'\x22\x20('+_0xe1af0e[_0x398b0e(0xf2)]+').');const _0x2857db=typeof _0xe1af0e['extend']?.['loadScriptMode']===_0x398b0e(0xe5)?_0xe1af0e['extend'][_0x398b0e(0xfa)]:null,_0x2a44ec=_0x157160?{'loadScriptMode':_0x2857db}:{},_0x58f373=_0x157160?{'loadScriptMode':_0x157160}:{};return{'id':_0xe1af0e['id'],'label':_0xe1af0e[_0x398b0e(0x10a)],'path':_0xe1af0e[_0x398b0e(0xf2)],'mode':_0x353a78,'before':{'resources':_0x577d15,..._0x2a44ec},'after':{'resources':_0x1fce1a,..._0x58f373},'warnings':_0x33198e};}function replaceResources(_0x5b78fa){const _0x49cbfc=a148_0x250c;return[_0x5b78fa['jsUrl'],_0x5b78fa[_0x49cbfc(0xe8)]][_0x49cbfc(0x11b)](_0x1778d8=>!!_0x1778d8);}function assertUnambiguousPatchResources(_0x2e42e3,_0x4fb162,_0x48afda){const _0x2c436a=a148_0x250c,_0x4e264a=_0x4fb162[_0x2c436a(0x11b)](isJsResource)[_0x2c436a(0xe6)];if(_0x48afda['jsUrl']&&_0x4e264a>0x1)throw new Error('menu\x20asset-update\x20cannot\x20patch\x20'+_0x4e264a+_0x2c436a(0x110)+_0x2e42e3[_0x2c436a(0x10a)]+_0x2c436a(0xf3)+_0x2e42e3[_0x2c436a(0xf2)]+')\x20'+_0x2c436a(0x105));const _0x138ac7=_0x4fb162[_0x2c436a(0x11b)](isCssResource)[_0x2c436a(0xe6)];if(_0x48afda[_0x2c436a(0xe8)]&&_0x138ac7>0x1)throw new Error(_0x2c436a(0x10d)+_0x138ac7+_0x2c436a(0x111)+_0x2e42e3[_0x2c436a(0x10a)]+'\x22\x20('+_0x2e42e3[_0x2c436a(0xf2)]+')\x20'+'with\x20a\x20single\x20cssUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.');}function patchResources(_0x1806c6,_0x369b40){const _0x9aad2b=a148_0x250c;let _0x2cff6d=![],_0x591aa7=![];const _0x3cfc1e=[];for(const _0x2a3608 of _0x1806c6){if(isJsResource(_0x2a3608)){if(_0x369b40[_0x9aad2b(0xff)]&&!_0x2cff6d)_0x3cfc1e[_0x9aad2b(0xec)](_0x369b40[_0x9aad2b(0xff)]),_0x2cff6d=!![];else!_0x369b40[_0x9aad2b(0xff)]&&_0x3cfc1e['push'](_0x2a3608);continue;}if(isCssResource(_0x2a3608)){if(_0x369b40['cssUrl']&&!_0x591aa7)_0x3cfc1e[_0x9aad2b(0xec)](_0x369b40[_0x9aad2b(0xe8)]),_0x591aa7=!![];else!_0x369b40[_0x9aad2b(0xe8)]&&_0x3cfc1e[_0x9aad2b(0xec)](_0x2a3608);continue;}_0x3cfc1e[_0x9aad2b(0xec)](_0x2a3608);}return _0x369b40[_0x9aad2b(0xff)]&&!_0x2cff6d&&_0x3cfc1e[_0x9aad2b(0xfd)](_0x369b40['jsUrl']),_0x369b40[_0x9aad2b(0xe8)]&&!_0x591aa7&&_0x3cfc1e[_0x9aad2b(0xec)](_0x369b40[_0x9aad2b(0xe8)]),_0x3cfc1e;}function isJsResource(_0x444532){const _0x5a2949=a148_0x250c;return stripQuery(_0x444532)[_0x5a2949(0xde)]()[_0x5a2949(0xf1)](_0x5a2949(0xe9));}function isCssResource(_0x36d770){const _0x107aef=a148_0x250c;return stripQuery(_0x36d770)[_0x107aef(0xde)]()[_0x107aef(0xf1)]('.css');}function stripQuery(_0x40f790){const _0x383889=a148_0x250c;return _0x40f790[_0x383889(0x10c)]('?')[0x0]??_0x40f790;}function parseUpdateParamsFlag(_0x4c65ad){const _0x686695=a148_0x250c;if(!_0x4c65ad||typeof _0x4c65ad!==_0x686695(0xe5))return{};try{const _0x21c6a1=JSON[_0x686695(0xe0)](_0x4c65ad);if(typeof _0x21c6a1!==_0x686695(0x106)||_0x21c6a1===null||Array[_0x686695(0x118)](_0x21c6a1))return{};return{'jsUrl':typeof _0x21c6a1[_0x686695(0xff)]===_0x686695(0xe5)?_0x21c6a1['jsUrl']['trim']():undefined,'cssUrl':typeof _0x21c6a1[_0x686695(0xe8)]==='string'?_0x21c6a1['cssUrl']['trim']():undefined};}catch{return{};}}
@@ -1 +1 @@
1
- function a151_0x48b3(_0x19b289,_0x128e0f){_0x19b289=_0x19b289-0x14b;const _0x5f0ba7=a151_0x5f0b();let _0x48b3b1=_0x5f0ba7[_0x19b289];return _0x48b3b1;}(function(_0x3c4965,_0x1cbe1c){const _0x27d7e1=a151_0x48b3,_0x307cfc=_0x3c4965();while(!![]){try{const _0x235062=parseInt(_0x27d7e1(0x151))/0x1*(-parseInt(_0x27d7e1(0x159))/0x2)+parseInt(_0x27d7e1(0x152))/0x3*(parseInt(_0x27d7e1(0x14d))/0x4)+parseInt(_0x27d7e1(0x14b))/0x5*(-parseInt(_0x27d7e1(0x14e))/0x6)+parseInt(_0x27d7e1(0x155))/0x7+parseInt(_0x27d7e1(0x157))/0x8*(-parseInt(_0x27d7e1(0x150))/0x9)+-parseInt(_0x27d7e1(0x156))/0xa+parseInt(_0x27d7e1(0x154))/0xb*(parseInt(_0x27d7e1(0x14c))/0xc);if(_0x235062===_0x1cbe1c)break;else _0x307cfc['push'](_0x307cfc['shift']());}catch(_0x37b8e6){_0x307cfc['push'](_0x307cfc['shift']());}}}(a151_0x5f0b,0x6b9f7));export function isValidJsHttpsUrl(_0x34d0fd){const _0x252cc2=a151_0x48b3;return/^https:\/\/.+\.js(\?.*)?$/[_0x252cc2(0x153)](_0x34d0fd[_0x252cc2(0x158)]());}function a151_0x5f0b(){const _0x1c7c93=['15237pyfFJY','73955zTOyqP','18wkkwxd','test','4221349wofLbx','1450225QUCSZa','674660LGviwD','392HJTAUc','trim','14LGSmTW','235OFTsuq','12ffcebF','570712pyDNoL','43158LALMOC','HEAD'];a151_0x5f0b=function(){return _0x1c7c93;};return a151_0x5f0b();}export function isValidCssHttpsUrl(_0x3a2ad9){const _0x48242c=a151_0x48b3;return/^https:\/\/.+\.css(\?.*)?$/[_0x48242c(0x153)](_0x3a2ad9[_0x48242c(0x158)]());}export async function isUrlReachable(_0x36dd03){const _0x51cdcc=a151_0x48b3;try{const _0x267fc9=await fetch(_0x36dd03,{'method':_0x51cdcc(0x14f)});return _0x267fc9['ok'];}catch{return![];}}
1
+ function a149_0x23f0(){const _0x2e15b4=['44099VKQmEO','7554568JyaySe','9170NlqQvF','4344PYhiGd','HEAD','13513xdJNTg','528072ifnYFj','5864652uftVWO','204hHBqzy','9044655JUTSjC','trim','90PPGrDM','4197uQQfSp','test'];a149_0x23f0=function(){return _0x2e15b4;};return a149_0x23f0();}(function(_0x1bc9ca,_0x45d4a9){const _0xd856=a149_0x45a1,_0xd2d71e=_0x1bc9ca();while(!![]){try{const _0x2bd44b=parseInt(_0xd856(0x197))/0x1*(parseInt(_0xd856(0x19a))/0x2)+parseInt(_0xd856(0x19e))/0x3*(-parseInt(_0xd856(0x195))/0x4)+-parseInt(_0xd856(0x19b))/0x5+parseInt(_0xd856(0x199))/0x6+-parseInt(_0xd856(0x193))/0x7+-parseInt(_0xd856(0x198))/0x8*(parseInt(_0xd856(0x19d))/0x9)+parseInt(_0xd856(0x194))/0xa*(parseInt(_0xd856(0x192))/0xb);if(_0x2bd44b===_0x45d4a9)break;else _0xd2d71e['push'](_0xd2d71e['shift']());}catch(_0x4c8154){_0xd2d71e['push'](_0xd2d71e['shift']());}}}(a149_0x23f0,0xeb76e));function a149_0x45a1(_0x1c80f6,_0x5a5b16){_0x1c80f6=_0x1c80f6-0x191;const _0x23f023=a149_0x23f0();let _0x45a19c=_0x23f023[_0x1c80f6];return _0x45a19c;}export function isValidJsHttpsUrl(_0x35e9cd){const _0x562a0f=a149_0x45a1;return/^https:\/\/.+\.js(\?.*)?$/[_0x562a0f(0x191)](_0x35e9cd[_0x562a0f(0x19c)]());}export function isValidCssHttpsUrl(_0x253063){const _0x5ef251=a149_0x45a1;return/^https:\/\/.+\.css(\?.*)?$/['test'](_0x253063[_0x5ef251(0x19c)]());}export async function isUrlReachable(_0x521101){const _0x515dea=a149_0x45a1;try{const _0x4d5334=await fetch(_0x521101,{'method':_0x515dea(0x196)});return _0x4d5334['ok'];}catch{return![];}}
@@ -1 +1 @@
1
- function a152_0xadda(){const _0x367001=['trim','Menu\x20sync\x20completed:\x20','size','Menu\x20sync\x20skipped','Run\x20inside\x20a\x20directory\x20with\x20.rabetbase.json,\x20or\x20pass\x20--appcode\x20<code>.','\x20menu(s)\x20with\x20JS:\x20','created','write','\x20failed.','skipped','menu\x20sync\x20--paths\x20requires\x20--yes\x20for\x20execution.','16424fKZKtP','\x20page(s)','1099002WXThvK','string','length','794736kJgNbr','validation','✓\x20Menu\x20sync\x20completed:\x20','appCode','boolean','params','No\x20local\x20microfrontend\x20menus\x20would\x20be\x20created.','rawFlags','Non-interactive\x20menu\x20sync\x20requires\x20--yes.','menu','Sync\x20local\x20pages\x20as\x20platform\x20menus','/smartapi/menu/create','paths','\x20menu(s)','✓\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform','yellow','55286upjfEc','Confirm\x20non-interactive\x20sync;\x20without\x20--paths,\x20create\x20all\x20missing\x20local\x20pages','gray','Preview\x20with\x20--dry-run,\x20then\x20reuse\x20the\x20same\x20--paths\x20and\x20--params\x20with\x20--yes.','Menu\x20creation\x20failed','7vKSpol','failed','jsUrl','cssUrl','Would\x20create\x20','localPages','\x20menu(s)...','1007175odXfHN','yes','targetPages','Creating\x20','\x20\x20Continue\x20with\x20creation?','Failed\x20to\x20fetch\x20online\x20menu\x20list','JSON:\x20{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}','\x20local\x20microfrontend\x20menu(s).','map','886400ghjvXg','\x20created.','message','selectedAppName','POST','split','\x20\x20Cancelled.','8986923VSBdEs','cookie','!\x20No\x20local\x20pages\x20found\x20in\x20src/pages','str','flag','appcode','\x20\x20Create\x20','7mOsynY','\x20and\x20CSS:\x20','filter'];a152_0xadda=function(){return _0x367001;};return a152_0xadda();}const a152_0x58a9c1=a152_0x5134;(function(_0x28386a,_0x29b12d){const _0x59b9c1=a152_0x5134,_0x1b0d2a=_0x28386a();while(!![]){try{const _0x5056c5=parseInt(_0x59b9c1(0x1e9))/0x1*(-parseInt(_0x59b9c1(0x1c6))/0x2)+-parseInt(_0x59b9c1(0x1d2))/0x3+-parseInt(_0x59b9c1(0x1b1))/0x4+-parseInt(_0x59b9c1(0x1db))/0x5+-parseInt(_0x59b9c1(0x1b3))/0x6+parseInt(_0x59b9c1(0x1cb))/0x7*(parseInt(_0x59b9c1(0x1b6))/0x8)+parseInt(_0x59b9c1(0x1e2))/0x9;if(_0x5056c5===_0x29b12d)break;else _0x1b0d2a['push'](_0x1b0d2a['shift']());}catch(_0x45307a){_0x1b0d2a['push'](_0x1b0d2a['shift']());}}}(a152_0xadda,0x31d4e));import a152_0x3ca6f5 from'chalk';import{buildCompareRows,doCreateMenus,fetchMenuData}from'../../commands/menu/shared/logic.js';import{renderCompareTable,renderSyncSummary}from'../../commands/menu/shared/compare-table.js';import{selectPages,askJsUrl,askCssUrl,askConfirm,startSpinner,stopSpinner,isInteractive,requireInteractive}from'../../commands/menu/shared/inquirer.js';import{CliErrors}from'../../errors.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';function a152_0x5134(_0x51f2be,_0x148e59){_0x51f2be=_0x51f2be-0x1a8;const _0xadda0c=a152_0xadda();let _0x5134a7=_0xadda0c[_0x51f2be];return _0x5134a7;}import{parseMenuSyncParams,runMenuSyncCore}from'../../commands/menu/shared/sync-core.js';import{getLocalPages}from'../../commands/menu/shared/local-pages.js';import{isInProject}from'../../context.js';export const menuSync={'service':a152_0x58a9c1(0x1bf),'command':'sync','description':a152_0x58a9c1(0x1c0),'risk':a152_0x58a9c1(0x1ad),'flags':[{'name':'params','type':a152_0x58a9c1(0x1b4),'description':'Pre-fill\x20JS/CSS\x20URLs.\x20'+a152_0x58a9c1(0x1d8)},{'name':a152_0x58a9c1(0x1c2),'type':a152_0x58a9c1(0x1b4),'description':'Exact\x20comma-separated\x20local\x20page\x20paths\x20to\x20sync'},{'name':a152_0x58a9c1(0x1d3),'type':a152_0x58a9c1(0x1ba),'description':a152_0x58a9c1(0x1c7)}],async 'dryRun'(_0x44de32){const _0x58f2f6=a152_0x58a9c1;ensureRunnableContext(_0x44de32['rawFlags'],_0x44de32[_0x58f2f6(0x1de)]);const _0x1cbe45=await runMenuSyncCore(_0x44de32['appCode'],_0x44de32['cookie'],parsePaths(_0x44de32[_0x58f2f6(0x1e5)](_0x58f2f6(0x1c2))),_0x44de32[_0x58f2f6(0x1e5)](_0x58f2f6(0x1bb)),{'dryRun':!![]});return{'method':_0x58f2f6(0x1df),'url':_0x58f2f6(0x1c1),'body':_0x1cbe45,'description':_0x1cbe45[_0x58f2f6(0x1af)]?_0x58f2f6(0x1bc):_0x58f2f6(0x1cf)+_0x1cbe45[_0x58f2f6(0x1d4)][_0x58f2f6(0x1b5)]+_0x58f2f6(0x1d9)};},async 'execute'(_0x37811e){const _0x4912d0=a152_0x58a9c1;ensureRunnableContext(_0x37811e[_0x4912d0(0x1bd)],_0x37811e[_0x4912d0(0x1de)]);const _0x5ae307=_0x37811e[_0x4912d0(0x1e6)](_0x4912d0(0x1d3)),_0x41662f=_0x37811e['str'](_0x4912d0(0x1bb)),_0x41e0eb=parsePaths(_0x37811e['str'](_0x4912d0(0x1c2))),_0x505663=parseMenuSyncParams(_0x41662f);if(_0x5ae307){const _0x13ffb0=await runMenuSyncCore(_0x37811e[_0x4912d0(0x1b9)],_0x37811e[_0x4912d0(0x1e3)],_0x41e0eb,_0x41662f);if(_0x13ffb0[_0x4912d0(0x1af)]){const _0x31f2b9=getLocalPages();_0x31f2b9[_0x4912d0(0x1b5)]===0x0?writeCliSideChannelLine(_0x4912d0(0x1e4)):writeCliSideChannelLine(_0x4912d0(0x1c4));}else writeCliSideChannelLine(_0x4912d0(0x1b8)+_0x13ffb0[_0x4912d0(0x1ac)]+'\x20menu(s)\x20created');return{'ok':!![],'data':_0x13ffb0,'message':_0x13ffb0[_0x4912d0(0x1af)]?_0x4912d0(0x1a9):_0x4912d0(0x1ed)+_0x13ffb0[_0x4912d0(0x1ac)]+_0x4912d0(0x1dc)};}if(_0x41e0eb[_0x4912d0(0x1b5)]>0x0)throw CliErrors[_0x4912d0(0x1b7)](_0x4912d0(0x1b0),_0x4912d0(0x1c9));if(!isInteractive()&&_0x41662f)throw CliErrors[_0x4912d0(0x1b7)](_0x4912d0(0x1be),_0x4912d0(0x1c9));requireInteractive();const _0xdb38f=startSpinner('Fetching\x20online\x20menu\x20list...');let _0x3316be,_0x8c7a62,_0x386e61;try{const _0x1d1f32=await fetchMenuData(_0x37811e[_0x4912d0(0x1b9)],_0x37811e[_0x4912d0(0x1e3)]);_0x3316be=_0x1d1f32[_0x4912d0(0x1d0)],_0x8c7a62=_0x1d1f32['onlinePaths'],_0x386e61=_0x1d1f32['onlineMenuList'],stopSpinner(_0xdb38f,'Online\x20menu\x20list\x20fetched',!![]);}catch(_0x5286cd){stopSpinner(_0xdb38f,'Failed\x20to\x20fetch\x20online\x20menu\x20list',![]);throw CliErrors[_0x4912d0(0x1b7)](_0x5286cd instanceof Error?_0x5286cd[_0x4912d0(0x1dd)]:_0x4912d0(0x1d7));}if(_0x3316be['length']===0x0)return writeCliSideChannelLine(a152_0x3ca6f5[_0x4912d0(0x1c5)]('\x20\x20!\x20No\x20local\x20pages\x20found,\x20please\x20create\x20pages\x20first')),{'ok':!![]};const _0x5b90e7=buildCompareRows(_0x3316be,_0x8c7a62);writeCliSideChannelLine(renderCompareTable(_0x5b90e7)),writeCliSideChannelLine('');const _0x32253c=await selectPages(_0x3316be,_0x8c7a62);writeCliSideChannelLine(''),writeCliSideChannelLine(a152_0x3ca6f5['cyan']('\x20\x20✓\x20Selected:\x20'+_0x32253c['length']+_0x4912d0(0x1b2)));const _0x4d9b69=_0x505663[_0x4912d0(0x1cd)]&&_0x505663[_0x4912d0(0x1ce)];if(!_0x4d9b69){writeCliSideChannelLine(renderSyncSummary(_0x32253c,_0x8c7a62[_0x4912d0(0x1a8)]>0x0));const _0x4d87f1=await askConfirm(_0x4912d0(0x1d6));if(!_0x4d87f1)return writeCliSideChannelLine(a152_0x3ca6f5[_0x4912d0(0x1c8)](_0x4912d0(0x1e1))),{'ok':!![]};}let _0x229f20=_0x505663['jsUrl'],_0xfcf53=_0x505663[_0x4912d0(0x1ce)];!_0x229f20&&(_0x229f20=await askJsUrl());!_0xfcf53&&(_0xfcf53=await askCssUrl());const _0x4d4c42=await askConfirm(_0x4912d0(0x1e8)+_0x32253c[_0x4912d0(0x1b5)]+_0x4912d0(0x1ab)+_0x229f20+_0x4912d0(0x1ea)+_0xfcf53+'?');if(!_0x4d4c42)return writeCliSideChannelLine(a152_0x3ca6f5[_0x4912d0(0x1c8)](_0x4912d0(0x1e1))),{'ok':!![]};const _0x4e8f55=[_0x229f20,_0xfcf53],_0x9d2230=startSpinner(_0x4912d0(0x1d5)+_0x32253c[_0x4912d0(0x1b5)]+_0x4912d0(0x1d1));try{const _0x2d5710=await doCreateMenus(_0x37811e['appCode'],_0x37811e['cookie'],_0x32253c,_0x4e8f55);return stopSpinner(_0x9d2230,'Created\x20'+_0x2d5710['created']+_0x4912d0(0x1c3),!![]),{'ok':!![],'data':_0x2d5710,'message':'Menu\x20sync\x20completed:\x20'+_0x2d5710['created']+'\x20created,\x20'+_0x2d5710[_0x4912d0(0x1cc)]+_0x4912d0(0x1ae)};}catch(_0x1e17e6){stopSpinner(_0x9d2230,_0x4912d0(0x1ca),![]);throw CliErrors[_0x4912d0(0x1b7)](_0x1e17e6 instanceof Error?_0x1e17e6[_0x4912d0(0x1dd)]:_0x4912d0(0x1ca));}}};function ensureRunnableContext(_0xf43438,_0x3294e8){const _0x10e4a3=a152_0x58a9c1,_0x73ffe5=_0xf43438['appcode']?String(_0xf43438[_0x10e4a3(0x1e7)])[_0x10e4a3(0x1ec)]():'';if(!isInProject()&&!_0x3294e8&&!_0x73ffe5)throw CliErrors[_0x10e4a3(0x1b7)]('menu\x20sync\x20requires\x20a\x20project\x20context\x20or\x20explicit\x20--appcode.\x20'+_0x10e4a3(0x1aa));}function parsePaths(_0xd5e092){const _0x3b8859=a152_0x58a9c1;return[...new Set(_0xd5e092[_0x3b8859(0x1e0)](',')[_0x3b8859(0x1da)](_0x212afe=>_0x212afe[_0x3b8859(0x1ec)]())[_0x3b8859(0x1eb)](Boolean))];}
1
+ const a150_0x18c962=a150_0x3d45;(function(_0x2a0b97,_0x343f73){const _0x2c9f16=a150_0x3d45,_0x2f64fc=_0x2a0b97();while(!![]){try{const _0x348883=-parseInt(_0x2c9f16(0x84))/0x1*(parseInt(_0x2c9f16(0xaf))/0x2)+parseInt(_0x2c9f16(0x9b))/0x3*(parseInt(_0x2c9f16(0xb2))/0x4)+-parseInt(_0x2c9f16(0xa8))/0x5+-parseInt(_0x2c9f16(0x67))/0x6*(-parseInt(_0x2c9f16(0x9f))/0x7)+-parseInt(_0x2c9f16(0x8b))/0x8*(parseInt(_0x2c9f16(0x7a))/0x9)+-parseInt(_0x2c9f16(0x6e))/0xa*(parseInt(_0x2c9f16(0xb1))/0xb)+parseInt(_0x2c9f16(0xae))/0xc;if(_0x348883===_0x343f73)break;else _0x2f64fc['push'](_0x2f64fc['shift']());}catch(_0x2a3a32){_0x2f64fc['push'](_0x2f64fc['shift']());}}}(a150_0x20df,0x76ee9));import a150_0x25e113 from'chalk';import{buildCompareRows,doCreateMenus,fetchMenuData}from'../../commands/menu/shared/logic.js';import{renderCompareTable,renderSyncSummary}from'../../commands/menu/shared/compare-table.js';import{selectPages,askJsUrl,askCssUrl,askConfirm,startSpinner,stopSpinner,isInteractive,requireInteractive}from'../../commands/menu/shared/inquirer.js';import{CliErrors}from'../../errors.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{parseMenuSyncParams,runMenuSyncCore}from'../../commands/menu/shared/sync-core.js';import{getLocalPages}from'../../commands/menu/shared/local-pages.js';import{isInProject}from'../../context.js';export const menuSync={'service':a150_0x18c962(0x6c),'command':a150_0x18c962(0xa6),'description':a150_0x18c962(0xaa),'risk':'write','flags':[{'name':a150_0x18c962(0x95),'type':a150_0x18c962(0x97),'description':'Pre-fill\x20JS/CSS\x20URLs.\x20'+a150_0x18c962(0x7e)},{'name':'paths','type':'string','description':a150_0x18c962(0x96)},{'name':a150_0x18c962(0x86),'type':a150_0x18c962(0x68),'description':a150_0x18c962(0x82)}],async 'dryRun'(_0x1a5435){const _0x4989c0=a150_0x18c962;ensureRunnableContext(_0x1a5435[_0x4989c0(0x93)],_0x1a5435['selectedAppName']);const _0x616740=await runMenuSyncCore(_0x1a5435[_0x4989c0(0x73)],_0x1a5435[_0x4989c0(0xac)],parsePaths(_0x1a5435[_0x4989c0(0x9e)]('paths')),_0x1a5435[_0x4989c0(0x9e)]('params'),{'dryRun':!![]});return{'method':_0x4989c0(0x7f),'url':'/smartapi/menu/create','body':_0x616740,'description':_0x616740['skipped']?_0x4989c0(0xa5):_0x4989c0(0x7d)+_0x616740[_0x4989c0(0x8f)][_0x4989c0(0x81)]+_0x4989c0(0x9a)};},async 'execute'(_0x2f80e5){const _0x5dd0ef=a150_0x18c962;ensureRunnableContext(_0x2f80e5[_0x5dd0ef(0x93)],_0x2f80e5[_0x5dd0ef(0x75)]);const _0x52f1f5=_0x2f80e5[_0x5dd0ef(0x9c)](_0x5dd0ef(0x86)),_0x304353=_0x2f80e5[_0x5dd0ef(0x9e)]('params'),_0x820ad8=parsePaths(_0x2f80e5[_0x5dd0ef(0x9e)](_0x5dd0ef(0xa4))),_0x238e1d=parseMenuSyncParams(_0x304353);if(_0x52f1f5){const _0x1b8fd8=await runMenuSyncCore(_0x2f80e5['appCode'],_0x2f80e5['cookie'],_0x820ad8,_0x304353);if(_0x1b8fd8[_0x5dd0ef(0x78)]){const _0x8cca20=getLocalPages();_0x8cca20[_0x5dd0ef(0x81)]===0x0?writeCliSideChannelLine(_0x5dd0ef(0xb5)):writeCliSideChannelLine(_0x5dd0ef(0xa2));}else writeCliSideChannelLine(_0x5dd0ef(0x70)+_0x1b8fd8[_0x5dd0ef(0x79)]+_0x5dd0ef(0x91));return{'ok':!![],'data':_0x1b8fd8,'message':_0x1b8fd8[_0x5dd0ef(0x78)]?_0x5dd0ef(0x6a):_0x5dd0ef(0x99)+_0x1b8fd8[_0x5dd0ef(0x79)]+_0x5dd0ef(0x8a)};}if(_0x820ad8[_0x5dd0ef(0x81)]>0x0)throw CliErrors[_0x5dd0ef(0xb3)](_0x5dd0ef(0x80),'Preview\x20with\x20--dry-run,\x20then\x20reuse\x20the\x20same\x20--paths\x20and\x20--params\x20with\x20--yes.');if(!isInteractive()&&_0x304353)throw CliErrors[_0x5dd0ef(0xb3)]('Non-interactive\x20menu\x20sync\x20requires\x20--yes.',_0x5dd0ef(0x83));requireInteractive();const _0x5cd742=startSpinner('Fetching\x20online\x20menu\x20list...');let _0x200637,_0x3f0e91,_0x15b0e4;try{const _0x53b350=await fetchMenuData(_0x2f80e5['appCode'],_0x2f80e5['cookie']);_0x200637=_0x53b350[_0x5dd0ef(0x88)],_0x3f0e91=_0x53b350[_0x5dd0ef(0x69)],_0x15b0e4=_0x53b350[_0x5dd0ef(0x6d)],stopSpinner(_0x5cd742,'Online\x20menu\x20list\x20fetched',!![]);}catch(_0x534330){stopSpinner(_0x5cd742,_0x5dd0ef(0x6f),![]);throw CliErrors[_0x5dd0ef(0xb3)](_0x534330 instanceof Error?_0x534330[_0x5dd0ef(0xa7)]:'Failed\x20to\x20fetch\x20online\x20menu\x20list');}if(_0x200637[_0x5dd0ef(0x81)]===0x0)return writeCliSideChannelLine(a150_0x25e113[_0x5dd0ef(0xa1)](_0x5dd0ef(0xab))),{'ok':!![]};const _0x24d79b=buildCompareRows(_0x200637,_0x3f0e91);writeCliSideChannelLine(renderCompareTable(_0x24d79b)),writeCliSideChannelLine('');const _0x369290=await selectPages(_0x200637,_0x3f0e91);writeCliSideChannelLine(''),writeCliSideChannelLine(a150_0x25e113[_0x5dd0ef(0xb0)](_0x5dd0ef(0x74)+_0x369290[_0x5dd0ef(0x81)]+_0x5dd0ef(0x8e)));const _0x9dabbc=_0x238e1d[_0x5dd0ef(0xa9)]&&_0x238e1d[_0x5dd0ef(0x8d)];if(!_0x9dabbc){writeCliSideChannelLine(renderSyncSummary(_0x369290,_0x3f0e91[_0x5dd0ef(0xa0)]>0x0));const _0x430d95=await askConfirm('\x20\x20Continue\x20with\x20creation?');if(!_0x430d95)return writeCliSideChannelLine(a150_0x25e113[_0x5dd0ef(0x76)](_0x5dd0ef(0x87))),{'ok':!![]};}let _0x323dfe=_0x238e1d[_0x5dd0ef(0xa9)],_0x5ed461=_0x238e1d[_0x5dd0ef(0x8d)];!_0x323dfe&&(_0x323dfe=await askJsUrl());!_0x5ed461&&(_0x5ed461=await askCssUrl());const _0x13965c=await askConfirm(_0x5dd0ef(0x6b)+_0x369290[_0x5dd0ef(0x81)]+_0x5dd0ef(0xad)+_0x323dfe+_0x5dd0ef(0x9d)+_0x5ed461+'?');if(!_0x13965c)return writeCliSideChannelLine(a150_0x25e113[_0x5dd0ef(0x76)]('\x20\x20Cancelled.')),{'ok':!![]};const _0x1689d3=[_0x323dfe,_0x5ed461],_0x299f57=startSpinner(_0x5dd0ef(0xa3)+_0x369290['length']+'\x20menu(s)...');try{const _0x1988da=await doCreateMenus(_0x2f80e5['appCode'],_0x2f80e5['cookie'],_0x369290,_0x1689d3);return stopSpinner(_0x299f57,_0x5dd0ef(0x94)+_0x1988da['created']+_0x5dd0ef(0x77),!![]),{'ok':!![],'data':_0x1988da,'message':_0x5dd0ef(0x99)+_0x1988da[_0x5dd0ef(0x79)]+_0x5dd0ef(0x98)+_0x1988da[_0x5dd0ef(0x8c)]+_0x5dd0ef(0x7c)};}catch(_0x5dcbcc){stopSpinner(_0x299f57,_0x5dd0ef(0x90),![]);throw CliErrors[_0x5dd0ef(0xb3)](_0x5dcbcc instanceof Error?_0x5dcbcc[_0x5dd0ef(0xa7)]:_0x5dd0ef(0x90));}}};function ensureRunnableContext(_0x50b6a1,_0x33cbe0){const _0x41bf1a=a150_0x18c962,_0x50fa54=_0x50b6a1['appcode']?String(_0x50b6a1[_0x41bf1a(0x72)])[_0x41bf1a(0x89)]():'';if(!isInProject()&&!_0x33cbe0&&!_0x50fa54)throw CliErrors['validation'](_0x41bf1a(0x85)+_0x41bf1a(0xb4));}function a150_0x3d45(_0x4836bc,_0x438a42){_0x4836bc=_0x4836bc-0x67;const _0x20df32=a150_0x20df();let _0x3d4539=_0x20df32[_0x4836bc];return _0x3d4539;}function parsePaths(_0x205f5d){const _0x3fa558=a150_0x18c962;return[...new Set(_0x205f5d[_0x3fa558(0x71)](',')[_0x3fa558(0x7b)](_0x1b75bd=>_0x1b75bd[_0x3fa558(0x89)]())[_0x3fa558(0x92)](Boolean))];}function a150_0x20df(){const _0x231bb8=['4223475euNoXG','jsUrl','Sync\x20local\x20pages\x20as\x20platform\x20menus','\x20\x20!\x20No\x20local\x20pages\x20found,\x20please\x20create\x20pages\x20first','cookie','\x20menu(s)\x20with\x20JS:\x20','24800736kxviVb','914dGoVId','cyan','11YBNOrj','976660qapdKp','validation','Run\x20inside\x20a\x20directory\x20with\x20.rabetbase.json,\x20or\x20pass\x20--appcode\x20<code>.','!\x20No\x20local\x20pages\x20found\x20in\x20src/pages','6gofYzA','boolean','onlinePaths','Menu\x20sync\x20skipped','\x20\x20Create\x20','menu','onlineMenuList','6115220JzlEjo','Failed\x20to\x20fetch\x20online\x20menu\x20list','✓\x20Menu\x20sync\x20completed:\x20','split','appcode','appCode','\x20\x20✓\x20Selected:\x20','selectedAppName','gray','\x20menu(s)','skipped','created','3860694IulfWj','map','\x20failed.','Would\x20create\x20','JSON:\x20{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}','POST','menu\x20sync\x20--paths\x20requires\x20--yes\x20for\x20execution.','length','Confirm\x20non-interactive\x20sync;\x20without\x20--paths,\x20create\x20all\x20missing\x20local\x20pages','Preview\x20with\x20--dry-run,\x20then\x20reuse\x20the\x20same\x20--paths\x20and\x20--params\x20with\x20--yes.','823kxKkCL','menu\x20sync\x20requires\x20a\x20project\x20context\x20or\x20explicit\x20--appcode.\x20','yes','\x20\x20Cancelled.','localPages','trim','\x20created.','8QqKLvi','failed','cssUrl','\x20page(s)','targetPages','Menu\x20creation\x20failed','\x20menu(s)\x20created','filter','rawFlags','Created\x20','params','Exact\x20comma-separated\x20local\x20page\x20paths\x20to\x20sync','string','\x20created,\x20','Menu\x20sync\x20completed:\x20','\x20local\x20microfrontend\x20menu(s).','6gsdZob','flag','\x20and\x20CSS:\x20','str','1353667SVGYUm','size','yellow','✓\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform','Creating\x20','paths','No\x20local\x20microfrontend\x20menus\x20would\x20be\x20created.','sync','message'];a150_0x20df=function(){return _0x231bb8;};return a150_0x20df();}
@@ -1 +1 @@
1
- const a153_0x4ba748=a153_0x2d83;(function(_0x854c26,_0x209419){const _0x9c02c=a153_0x2d83,_0x385d73=_0x854c26();while(!![]){try{const _0xc652b4=parseInt(_0x9c02c(0xdb))/0x1*(-parseInt(_0x9c02c(0xc5))/0x2)+-parseInt(_0x9c02c(0xaf))/0x3*(-parseInt(_0x9c02c(0x8a))/0x4)+parseInt(_0x9c02c(0x80))/0x5*(-parseInt(_0x9c02c(0xde))/0x6)+parseInt(_0x9c02c(0x79))/0x7*(-parseInt(_0x9c02c(0x95))/0x8)+-parseInt(_0x9c02c(0xa3))/0x9*(parseInt(_0x9c02c(0x66))/0xa)+-parseInt(_0x9c02c(0xe2))/0xb*(-parseInt(_0x9c02c(0xcd))/0xc)+parseInt(_0x9c02c(0xc7))/0xd;if(_0xc652b4===_0x209419)break;else _0x385d73['push'](_0x385d73['shift']());}catch(_0x58481c){_0x385d73['push'](_0x385d73['shift']());}}}(a153_0x3289,0x25b5c));function a153_0x3289(){const _0x482edc=['set','\x20menu(s);\x20skip\x20','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expected-count.','126862rdfCvw','menu_selector_ambiguous','6759818IWIjmE','One\x20or\x20more\x20updates\x20may\x20have\x20changed\x20fields\x20outside\x20visibility;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','Final\x20menu\x20visibility\x20readback\x20failed.','Updated\x20visibility\x20for\x20','Failed\x20update\x20requests\x20were\x20not\x20retried;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','Response\x20was\x20lost\x20and\x20menu\x20','134388tmNTQE','modelType','flagMissing','label','resources','requestedVisible','\x20was\x20not\x20found\x20during\x20visibility\x20verification.','validation','false','menu_state_drift','expectVisible','true','rabetbase\x20menu\x20list\x20--format\x20compress','Exact\x20comma-separated\x20menu\x20IDs\x20to\x20update','2RsoPzu','body','\x20menu(s);\x20skipped\x20','726grovYv','cookie','warnings','Menu\x20visibility\x20update\x20completed:\x20','231hjUDWg','\x20skipped,\x20','\x20and\x20final\x20state\x20could\x20not\x20be\x20read.','30maoAKG','datasetCode','expected-count','Abort\x20unless\x20every\x20selected\x20menu\x20has\x20this\x20visibility','parentId','pageType','type','verification','message','Visibility\x20update\x20requests\x20completed\x20but\x20readback\x20could\x20not\x20confirm\x20the\x20requested\x20state','expect-visible','Requested\x20menu\x20visibility','menu\x20visibility-update\x20requires\x20--menu-ids\x20or\x20--paths.','\x20visible\x20did\x20not\x20match\x20the\x20requested\x20state.','update-menu-visibility','menus','\x20updated,\x20','Would\x20update\x20visibility\x20for\x20','\x20unchanged\x20menu(s).','36694iYiZTD','appCode','filter','some','resourcesValid','Inspect\x20current\x20menu\x20facts\x20before\x20retrying\x20any\x20target.','verify\x20menu\x20visibility\x20update','12405KBLneh','\x20must\x20be\x20true\x20or\x20false.','Menu\x20','boolean','plan','string','has','str','trim','push','88136aCUSJK','split','childrenCount','isSafeInteger','\x20failed.','stringify','Use\x20--menu-ids\x20with\x20one\x20or\x20more\x20of:\x20','--expected-count\x20must\x20be\x20a\x20non-negative\x20integer.','hash','\x20changed\x20unexpectedly.','Every\x20selected\x20menu\x20already\x20has\x20the\x20requested\x20visibility;\x20no\x20write\x20is\x20needed.','408gPWcyr','before','update-recovery','menu','high-risk-write','POST','update\x20visibility\x20for','path','Abort\x20unless\x20the\x20exact\x20number\x20of\x20selected\x20menus\x20matches','plannedActions','/smartapi/menu/update','Menu\x20id\x20selector(s)\x20not\x20found:\x20','code','failed','644328utKRgt','menuIds','values','updated','Selected\x20menu\x20visibility\x20changed\x20for\x20id(s):\x20','Response\x20was\x20lost\x20for\x20menu\x20','visible','menu-ids','byId','childrenIds','menu_verification_failed','join','42WTmlEb','sort','datasetId','map','Selected\x20','isArray','num','pageId','targets','depth','update\x20menu\x20visibility','expectedCount','length','get','url','menu_permission_denied','visibility-update','beforeById','paths'];a153_0x3289=function(){return _0x482edc;};return a153_0x3289();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../commands/menu/shared/facts.js';import{asVerificationError,assertVerified,describeMenuErrorCause,fetchMutationSnapshot,hasFlag,isMenuResponseLoss,mapMenuApiError,menuDryRunResult,menuError,menuFailure,mutationResult,recheckMutationSnapshot,requireExplicitYes}from'../../commands/menu/shared/mutations.js';import{updateMenuEntity}from'../../commands/menu/shared/service.js';function a153_0x2d83(_0x5ac558,_0x2ec4c5){_0x5ac558=_0x5ac558-0x66;const _0x32894f=a153_0x3289();let _0x2d83d=_0x32894f[_0x5ac558];return _0x2d83d;}import{CliErrors}from'../../errors.js';const BACKEND=[{'method':a153_0x4ba748(0x9a),'path':a153_0x4ba748(0x9f)}];export const menuVisibilityUpdate={'service':a153_0x4ba748(0x98),'command':a153_0x4ba748(0xbf),'description':'Set\x20exact\x20menus\x20visible\x20or\x20hidden\x20without\x20changing\x20their\x20routes\x20or\x20resources','risk':a153_0x4ba748(0x99),'structuredErrors':!![],'flags':[{'name':a153_0x4ba748(0xaa),'type':a153_0x4ba748(0x85),'description':a153_0x4ba748(0xda)},{'name':'paths','type':a153_0x4ba748(0x85),'description':'Exact\x20comma-separated\x20menu\x20paths\x20to\x20update'},{'name':a153_0x4ba748(0xa9),'type':a153_0x4ba748(0x83),'required':!![],'description':a153_0x4ba748(0x71)},{'name':'expect-visible','type':'boolean','description':a153_0x4ba748(0x69)},{'name':a153_0x4ba748(0x68),'type':'number','description':a153_0x4ba748(0x9d)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x329767){parseInput(_0x329767),requireExplicitYes(_0x329767);},async 'dryRun'(_0x50634f){const _0x339733=a153_0x4ba748,_0x440910=await buildPlan(_0x50634f,!![]),_0x5cf33e=_0x440910[_0x339733(0x84)]['plannedActions']?.['length']??0x0,_0x39bf98=_0x440910[_0x339733(0x84)][_0x339733(0xb7)]['length']-_0x5cf33e;return menuDryRunResult(_0x440910[_0x339733(0x84)],{'method':'POST','url':_0x339733(0x9f),'body':{'updates':_0x440910[_0x339733(0x84)][_0x339733(0x9e)]?.[_0x339733(0xb2)](_0x4e6214=>_0x4e6214[_0x339733(0xdc)])??[]},'description':_0x339733(0x77)+_0x5cf33e+_0x339733(0xc3)+_0x39bf98+'\x20unchanged\x20menu(s).'});},async 'execute'(_0x2db162){const _0x578207=a153_0x4ba748;requireExplicitYes(_0x2db162);const _0x5ee2f0=await buildPlan(_0x2db162,![]);await recheckMutationSnapshot(_0x2db162,_0x5ee2f0[_0x578207(0x84)],_0x578207(0xb9));const _0x9f9de6=[],_0x1dbbe9=[],_0x25cbb8=[];for(const _0x5833aa of _0x5ee2f0['plan'][_0x578207(0xb7)]){if(_0x5833aa[_0x578207(0x96)][_0x578207(0xa9)]===_0x5ee2f0['plan'][_0x578207(0xd2)]){_0x9f9de6[_0x578207(0x89)]({'id':_0x5833aa['id'],'updated':![],'skipped':!![]});continue;}try{await updateMenuEntity(_0x2db162[_0x578207(0x7a)],_0x2db162[_0x578207(0xdf)],{'id':_0x5833aa['id'],'visible':_0x5ee2f0['plan'][_0x578207(0xd2)]}),_0x9f9de6[_0x578207(0x89)]({'id':_0x5833aa['id'],'updated':!![],'skipped':![]});}catch(_0x198d34){const _0xc23080=mapMenuApiError(_0x198d34,_0x578207(0x9b),_0x5833aa['id']);if(isMenuResponseLoss(_0x198d34)&&_0xc23080['code']!==_0x578207(0xbe)){_0x25cbb8[_0x578207(0x89)](_0x5833aa['id']);continue;}_0x1dbbe9[_0x578207(0x89)]({'id':_0x5833aa['id'],'stage':'update','code':_0xc23080[_0x578207(0xa1)],'message':_0xc23080['message']});}}let _0x530241;try{_0x530241=await fetchMenuSnapshot(_0x2db162[_0x578207(0x7a)],_0x2db162['cookie']);}catch(_0x353966){const _0x1462b9=describeMenuErrorCause(_0x353966,_0x578207(0x7f)),_0x943be2=_0x25cbb8['map'](_0x3d1f62=>({'id':_0x3d1f62,'stage':'update-recovery','code':_0x578207(0xad),'message':_0x578207(0xa8)+_0x3d1f62+_0x578207(0xe4),'requestedStateConfirmed':![],'recovered':![]})),_0x4c6a87={'stage':_0x578207(0x6d),'code':_0x578207(0xad),'message':_0x578207(0xc9),'targetIds':_0x5ee2f0[_0x578207(0x84)]['targets'][_0x578207(0xb2)](_0x539a7e=>_0x539a7e['id']),'requestedStateConfirmed':![],..._0x1462b9};throw menuFailure(asVerificationError(_0x353966,_0x578207(0x6f)),_0x5ee2f0[_0x578207(0x84)],{'stage':_0x578207(0x6d),'succeeded':_0x9f9de6,'failedRecords':[..._0x1dbbe9,..._0x943be2,_0x4c6a87],'warnings':['The\x20update\x20may\x20have\x20taken\x20effect;\x20inspect\x20the\x20latest\x20menu\x20facts\x20before\x20retrying.'],'verification':{'status':_0x578207(0xa2),'recoveredCount':0x0,'lookupCommand':_0x578207(0xd9)}});}const _0x55ce0c=[];for(const _0x1e59f0 of _0x9f9de6){const _0x5ab57e=Number(_0x1e59f0['id']),_0x2c72e0=_0x5ee2f0[_0x578207(0xc0)][_0x578207(0xbc)](_0x5ab57e),_0x47a779=_0x530241[_0x578207(0xab)]['get'](_0x5ab57e);try{verifyVisibilityUpdate(_0x2c72e0,_0x47a779,_0x5ee2f0[_0x578207(0x84)][_0x578207(0xd2)]);}catch(_0x571bb6){const _0x2820b6=asVerificationError(_0x571bb6,_0x578207(0x82)+_0x5ab57e+'\x20visibility\x20update\x20could\x20not\x20be\x20verified');_0x55ce0c[_0x578207(0x89)]({'id':_0x5ab57e,'stage':_0x578207(0x6d),'code':_0x2820b6[_0x578207(0xa1)],'message':_0x2820b6[_0x578207(0x6e)],'requestedStateConfirmed':![]});}}for(const _0x24322a of _0x25cbb8){const _0x3ac432=_0x5ee2f0['beforeById'][_0x578207(0xbc)](_0x24322a),_0x179302=_0x530241[_0x578207(0xab)][_0x578207(0xbc)](_0x24322a);try{verifyVisibilityUpdate(_0x3ac432,_0x179302,_0x5ee2f0['plan'][_0x578207(0xd2)]),_0x9f9de6[_0x578207(0x89)]({'id':_0x24322a,'updated':!![],'skipped':![],'recovered':!![]});}catch(_0x348997){const _0x1833af=asVerificationError(_0x348997,_0x578207(0xcc)+_0x24322a+'\x20visibility\x20could\x20not\x20be\x20verified\x20safely');_0x55ce0c['push']({'id':_0x24322a,'stage':_0x578207(0x97),'code':_0x1833af[_0x578207(0xa1)],'message':_0x1833af[_0x578207(0x6e)],'requestedStateConfirmed':![],'recovered':![]});}}if(_0x55ce0c[_0x578207(0xbb)]>0x0){const _0x5b7401=_0x55ce0c[_0x578207(0xb2)](_0x3de00e=>Number(_0x3de00e['id'])),_0x535858=_0x9f9de6[_0x578207(0x7b)](_0x470c3d=>_0x470c3d['recovered']===!![])[_0x578207(0xbb)],_0x5ec76f=menuError(_0x578207(0xad),'Menu\x20visibility\x20update\x20could\x20not\x20be\x20verified\x20for\x20id(s):\x20'+_0x5b7401[_0x578207(0xae)](',\x20')+'.',_0x578207(0x7e));throw menuFailure(_0x5ec76f,_0x5ee2f0['plan'],{'stage':'verification','succeeded':_0x9f9de6,'failedRecords':[..._0x1dbbe9,..._0x55ce0c],'warnings':[_0x578207(0xc8)],'verification':{'status':_0x578207(0xa2),..._0x5b7401[_0x578207(0xbb)]===0x1?{'targetId':_0x5b7401[0x0]}:{'targetIds':_0x5b7401},'recoveredCount':_0x535858,'lookupCommand':_0x578207(0xd9)}});}const _0x22054a=_0x9f9de6[_0x578207(0x7b)](_0x411f2d=>_0x411f2d[_0x578207(0xa6)]===!![])['length'],_0x55d196=_0x9f9de6[_0x578207(0xbb)]-_0x22054a,_0x49a34c={..._0x5ee2f0[_0x578207(0x84)],'succeeded':_0x9f9de6,'failed':_0x1dbbe9,'warnings':_0x1dbbe9[_0x578207(0xbb)]>0x0?[..._0x5ee2f0[_0x578207(0x84)][_0x578207(0xe0)],_0x578207(0xcb)]:_0x5ee2f0[_0x578207(0x84)][_0x578207(0xe0)],'verification':{'checkedBy':'menu\x20list','snapshotHash':_0x530241[_0x578207(0x92)],'matchesRequestedState':_0x1dbbe9['length']===0x0,'recoveredCount':_0x25cbb8['length']}};return{'ok':_0x1dbbe9[_0x578207(0xbb)]===0x0,'data':_0x49a34c,'message':_0x1dbbe9[_0x578207(0xbb)]===0x0?_0x578207(0xca)+_0x22054a+_0x578207(0xdd)+_0x55d196+_0x578207(0x78):_0x578207(0xe1)+_0x22054a+_0x578207(0x76)+_0x55d196+_0x578207(0xe3)+_0x1dbbe9['length']+_0x578207(0x8e)};}};function parseInput(_0x5691f5){const _0x35bc29=a153_0x4ba748,_0x231670=parseMenuIds(_0x5691f5[_0x35bc29(0x87)](_0x35bc29(0xaa))),_0x41f15b=parseCsv(_0x5691f5[_0x35bc29(0x87)](_0x35bc29(0xc1)));if(_0x231670['length']===0x0&&_0x41f15b[_0x35bc29(0xbb)]===0x0)throw CliErrors[_0x35bc29(0xd4)](_0x35bc29(0x72));const _0x4eb56d=parseBooleanFlag(_0x5691f5,_0x35bc29(0xa9),!![]),_0xba3068=parseBooleanFlag(_0x5691f5,_0x35bc29(0x70),![]);let _0x17412a;if(hasFlag(_0x5691f5,'expected-count')){_0x17412a=_0x5691f5[_0x35bc29(0xb5)](_0x35bc29(0x68));if(!Number[_0x35bc29(0x8d)](_0x17412a)||_0x17412a<0x0)throw CliErrors[_0x35bc29(0xd4)](_0x35bc29(0x91));}return{'menuIds':_0x231670,'paths':_0x41f15b,'visible':_0x4eb56d,'expectVisible':_0xba3068,'expectedCount':_0x17412a};}async function buildPlan(_0x4a21ae,_0x4f225f){const _0x5d67d4=a153_0x4ba748,_0x3166cc=parseInput(_0x4a21ae),_0x46ca8b=await fetchMutationSnapshot(_0x4a21ae,_0x5d67d4(0xb9)),_0x3d67e7=selectTargets(_0x46ca8b[_0x5d67d4(0x75)],_0x3166cc['menuIds'],_0x3166cc[_0x5d67d4(0xc1)]);if(_0x3166cc[_0x5d67d4(0xba)]!==undefined&&_0x3d67e7[_0x5d67d4(0xbb)]!==_0x3166cc[_0x5d67d4(0xba)])throw menuError('menu_expected_count_mismatch',_0x5d67d4(0xb3)+_0x3d67e7[_0x5d67d4(0xbb)]+'\x20menu(s),\x20expected\x20'+_0x3166cc['expectedCount']+'.',_0x5d67d4(0xc4));if(_0x3166cc[_0x5d67d4(0xd7)]!==undefined){const _0x116217=_0x3d67e7['filter'](_0x439256=>_0x439256[_0x5d67d4(0xa9)]!==_0x3166cc[_0x5d67d4(0xd7)]);if(_0x116217['length']>0x0)throw menuError(_0x5d67d4(0xd6),_0x5d67d4(0xa7)+_0x116217[_0x5d67d4(0xb2)](_0x45a624=>_0x45a624['id'])[_0x5d67d4(0xae)](',\x20')+'.','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expect-visible.');}const _0x5a4090=_0x3d67e7[_0x5d67d4(0xb2)](_0x3df1cb=>({'id':_0x3df1cb['id'],'label':_0x3df1cb[_0x5d67d4(0xd0)],'path':_0x3df1cb['path'],'before':{'visible':_0x3df1cb[_0x5d67d4(0xa9)]},'after':{'visible':_0x3166cc[_0x5d67d4(0xa9)]}})),_0x3fb5a0=_0x5a4090[_0x5d67d4(0x7b)](_0x32cd2c=>_0x32cd2c[_0x5d67d4(0x96)][_0x5d67d4(0xa9)]!==_0x3166cc['visible'])['map'](_0x5f0cf0=>({'stage':_0x5d67d4(0x74),'method':_0x5d67d4(0x9a),'path':'/smartapi/menu/update','body':{'appCode':_0x4a21ae[_0x5d67d4(0x7a)],'id':_0x5f0cf0['id'],'visible':_0x3166cc[_0x5d67d4(0xa9)]}})),_0x533afc=mutationResult({'operation':'visibility-update','selector':{'menuIds':_0x3166cc[_0x5d67d4(0xa4)],'paths':_0x3166cc['paths']},'before':{'menus':_0x3d67e7['map'](_0x43a8f2=>({'id':_0x43a8f2['id'],'path':_0x43a8f2[_0x5d67d4(0x9c)],'visible':_0x43a8f2[_0x5d67d4(0xa9)]}))},'after':{'menus':_0x3d67e7[_0x5d67d4(0xb2)](_0x48b1a8=>({'id':_0x48b1a8['id'],'path':_0x48b1a8[_0x5d67d4(0x9c)],'visible':_0x3166cc['visible']}))},'dryRun':_0x4f225f,'backend':[...BACKEND],'plannedActions':_0x3fb5a0,'snapshotHash':_0x46ca8b[_0x5d67d4(0x92)],'warnings':_0x3fb5a0[_0x5d67d4(0xbb)]===0x0?[_0x5d67d4(0x94)]:[]});return{'plan':{..._0x533afc,'requestedVisible':_0x3166cc[_0x5d67d4(0xa9)],'targets':_0x5a4090},'beforeById':new Map(_0x3d67e7[_0x5d67d4(0xb2)](_0x96cfbd=>[_0x96cfbd['id'],_0x96cfbd]))};}function selectTargets(_0x1a60a5,_0x4e96eb,_0x741260){const _0x1b7b1=a153_0x4ba748,_0x2c076a=new Map(_0x1a60a5['map'](_0x30f14a=>[_0x30f14a['id'],_0x30f14a])),_0x2152ae=new Map(),_0x9d8604=_0x4e96eb['filter'](_0x4eac45=>!_0x2c076a[_0x1b7b1(0x86)](_0x4eac45));if(_0x9d8604['length']>0x0)throw menuError('menu_selector_not_found',_0x1b7b1(0xa0)+_0x9d8604[_0x1b7b1(0xae)](',\x20')+'.','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20exact\x20current\x20ids.');for(const _0x4c9240 of _0x4e96eb){_0x2152ae[_0x1b7b1(0xc2)](_0x4c9240,_0x2c076a[_0x1b7b1(0xbc)](_0x4c9240));}for(const _0x2bd2d1 of _0x741260){const _0x4f7b82=_0x1a60a5[_0x1b7b1(0x7b)](_0x2e54be=>_0x2e54be[_0x1b7b1(0x9c)]===_0x2bd2d1);if(_0x4f7b82[_0x1b7b1(0xbb)]===0x0)throw menuError('menu_selector_not_found','Menu\x20path\x20selector\x20not\x20found:\x20'+JSON[_0x1b7b1(0x8f)](_0x2bd2d1)+'.','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20an\x20exact\x20current\x20path.');if(_0x4f7b82['length']>0x1)throw menuError(_0x1b7b1(0xc6),'Menu\x20path\x20selector\x20matched\x20multiple\x20menus:\x20'+JSON['stringify'](_0x2bd2d1)+'.',_0x1b7b1(0x90)+_0x4f7b82[_0x1b7b1(0xb2)](_0x402213=>_0x402213['id'])[_0x1b7b1(0xae)](',\x20')+'.');const _0x261ba8=_0x4f7b82[0x0];_0x2152ae[_0x1b7b1(0xc2)](_0x261ba8['id'],_0x261ba8);}return[..._0x2152ae[_0x1b7b1(0xa5)]()];}function parseMenuIds(_0x446d04){const _0x4974d6=a153_0x4ba748,_0x30a6e5=parseCsv(_0x446d04),_0x34bf1e=_0x30a6e5[_0x4974d6(0xb2)](Number);if(_0x34bf1e[_0x4974d6(0x7c)](_0x59ea54=>!Number[_0x4974d6(0x8d)](_0x59ea54)||_0x59ea54<=0x0))throw CliErrors[_0x4974d6(0xd4)]('--menu-ids\x20must\x20contain\x20positive\x20safe\x20integers.');return[...new Set(_0x34bf1e)];}function parseCsv(_0x201809){const _0x562f5a=a153_0x4ba748;return[...new Set(_0x201809[_0x562f5a(0x8b)](',')[_0x562f5a(0xb2)](_0x53a605=>_0x53a605[_0x562f5a(0x88)]())[_0x562f5a(0x7b)](Boolean))];}function parseBooleanFlag(_0xe4e960,_0x43a79a,_0x1bcc3c){const _0x318047=a153_0x4ba748;if(!hasFlag(_0xe4e960,_0x43a79a)){if(_0x1bcc3c)throw CliErrors[_0x318047(0xcf)](_0x43a79a);return undefined;}const _0x126c36=_0xe4e960['rawFlags'][_0x43a79a];if(_0x126c36===!![]||_0x126c36===![])return _0x126c36;if(_0x126c36===_0x318047(0xd8))return!![];if(_0x126c36===_0x318047(0xd5))return![];throw CliErrors[_0x318047(0xd4)]('--'+_0x43a79a+_0x318047(0x81));}function verifyVisibilityUpdate(_0x2a1b9c,_0x5ecfc8,_0x51a8f1){const _0x1b417a=a153_0x4ba748;assertVerified(!!_0x5ecfc8,'Menu\x20'+_0x2a1b9c['id']+_0x1b417a(0xd3)),assertVerified(_0x5ecfc8['visible']===_0x51a8f1,_0x1b417a(0x82)+_0x2a1b9c['id']+_0x1b417a(0x73));const _0xad745c=[['id',_0x5ecfc8['id'],_0x2a1b9c['id']],['parentId',_0x5ecfc8[_0x1b417a(0x6a)],_0x2a1b9c[_0x1b417a(0x6a)]],[_0x1b417a(0xb8),_0x5ecfc8[_0x1b417a(0xb8)],_0x2a1b9c[_0x1b417a(0xb8)]],['label',_0x5ecfc8[_0x1b417a(0xd0)],_0x2a1b9c[_0x1b417a(0xd0)]],['path',_0x5ecfc8[_0x1b417a(0x9c)],_0x2a1b9c[_0x1b417a(0x9c)]],[_0x1b417a(0xbd),_0x5ecfc8[_0x1b417a(0xbd)],_0x2a1b9c[_0x1b417a(0xbd)]],['type',_0x5ecfc8[_0x1b417a(0x6c)],_0x2a1b9c['type']],[_0x1b417a(0xb0),_0x5ecfc8[_0x1b417a(0xb0)],_0x2a1b9c[_0x1b417a(0xb0)]],[_0x1b417a(0xd1),_0x5ecfc8[_0x1b417a(0xd1)],_0x2a1b9c[_0x1b417a(0xd1)]],[_0x1b417a(0x7d),_0x5ecfc8['resourcesValid'],_0x2a1b9c[_0x1b417a(0x7d)]],[_0x1b417a(0xac),_0x5ecfc8[_0x1b417a(0xac)],_0x2a1b9c[_0x1b417a(0xac)]],[_0x1b417a(0x8c),_0x5ecfc8[_0x1b417a(0x8c)],_0x2a1b9c['childrenCount']],['pageId',_0x5ecfc8[_0x1b417a(0xb6)],_0x2a1b9c['pageId']],[_0x1b417a(0x6b),_0x5ecfc8['pageType'],_0x2a1b9c[_0x1b417a(0x6b)]],[_0x1b417a(0xce),_0x5ecfc8[_0x1b417a(0xce)],_0x2a1b9c[_0x1b417a(0xce)]],['datasetId',_0x5ecfc8[_0x1b417a(0xb1)],_0x2a1b9c[_0x1b417a(0xb1)]],[_0x1b417a(0x67),_0x5ecfc8[_0x1b417a(0x67)],_0x2a1b9c[_0x1b417a(0x67)]]];for(const [_0x27413a,_0x2f68d8,_0x15b19e]of _0xad745c){assertVerified(sameValue(_0x2f68d8,_0x15b19e),_0x1b417a(0x82)+_0x2a1b9c['id']+'\x20'+_0x27413a+_0x1b417a(0x93));}}function sameValue(_0x5eff62,_0x1927f0){const _0x3b0cbe=a153_0x4ba748;if(Array['isArray'](_0x5eff62)||Array[_0x3b0cbe(0xb4)](_0x1927f0))return JSON[_0x3b0cbe(0x8f)](_0x5eff62)===JSON['stringify'](_0x1927f0);return _0x5eff62===_0x1927f0;}
1
+ const a151_0x5214f5=a151_0x5611;(function(_0x27ef71,_0x25e09f){const _0x4a00f9=a151_0x5611,_0x180c6a=_0x27ef71();while(!![]){try{const _0x3cae4b=-parseInt(_0x4a00f9(0x12b))/0x1+parseInt(_0x4a00f9(0xfe))/0x2*(-parseInt(_0x4a00f9(0xf5))/0x3)+parseInt(_0x4a00f9(0xe4))/0x4+parseInt(_0x4a00f9(0x111))/0x5+parseInt(_0x4a00f9(0x120))/0x6+parseInt(_0x4a00f9(0x147))/0x7+parseInt(_0x4a00f9(0x139))/0x8*(-parseInt(_0x4a00f9(0xdf))/0x9);if(_0x3cae4b===_0x25e09f)break;else _0x180c6a['push'](_0x180c6a['shift']());}catch(_0x41008b){_0x180c6a['push'](_0x180c6a['shift']());}}}(a151_0x5c41,0x8744d));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../commands/menu/shared/facts.js';import{asVerificationError,assertVerified,describeMenuErrorCause,fetchMutationSnapshot,hasFlag,isMenuResponseLoss,mapMenuApiError,menuDryRunResult,menuError,menuFailure,mutationResult,recheckMutationSnapshot,requireExplicitYes}from'../../commands/menu/shared/mutations.js';import{updateMenuEntity}from'../../commands/menu/shared/service.js';function a151_0x5611(_0x5581aa,_0x27f811){_0x5581aa=_0x5581aa-0xd8;const _0x5c413d=a151_0x5c41();let _0x5611ec=_0x5c413d[_0x5581aa];return _0x5611ec;}import{CliErrors}from'../../errors.js';const BACKEND=[{'method':'POST','path':a151_0x5214f5(0x119)}];export const menuVisibilityUpdate={'service':a151_0x5214f5(0x125),'command':a151_0x5214f5(0x10b),'description':'Set\x20exact\x20menus\x20visible\x20or\x20hidden\x20without\x20changing\x20their\x20routes\x20or\x20resources','risk':a151_0x5214f5(0x105),'structuredErrors':!![],'flags':[{'name':a151_0x5214f5(0xff),'type':a151_0x5214f5(0x133),'description':'Exact\x20comma-separated\x20menu\x20IDs\x20to\x20update'},{'name':a151_0x5214f5(0x127),'type':a151_0x5214f5(0x133),'description':a151_0x5214f5(0xed)},{'name':a151_0x5214f5(0x141),'type':'boolean','required':!![],'description':a151_0x5214f5(0x132)},{'name':'expect-visible','type':a151_0x5214f5(0xdd),'description':'Abort\x20unless\x20every\x20selected\x20menu\x20has\x20this\x20visibility'},{'name':a151_0x5214f5(0x131),'type':'number','description':a151_0x5214f5(0x121)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x42836e){parseInput(_0x42836e),requireExplicitYes(_0x42836e);},async 'dryRun'(_0x519a13){const _0x52b4f9=a151_0x5214f5,_0x6536f9=await buildPlan(_0x519a13,!![]),_0x2c5e25=_0x6536f9['plan'][_0x52b4f9(0xea)]?.[_0x52b4f9(0xe8)]??0x0,_0x7b995b=_0x6536f9[_0x52b4f9(0x10f)]['targets'][_0x52b4f9(0xe8)]-_0x2c5e25;return menuDryRunResult(_0x6536f9[_0x52b4f9(0x10f)],{'method':_0x52b4f9(0x149),'url':_0x52b4f9(0x119),'body':{'updates':_0x6536f9['plan'][_0x52b4f9(0xea)]?.[_0x52b4f9(0x12e)](_0x14ef54=>_0x14ef54[_0x52b4f9(0x11c)])??[]},'description':_0x52b4f9(0x130)+_0x2c5e25+_0x52b4f9(0xd9)+_0x7b995b+'\x20unchanged\x20menu(s).'});},async 'execute'(_0x5ba18d){const _0x5b4c23=a151_0x5214f5;requireExplicitYes(_0x5ba18d);const _0x3e8baf=await buildPlan(_0x5ba18d,![]);await recheckMutationSnapshot(_0x5ba18d,_0x3e8baf[_0x5b4c23(0x10f)],_0x5b4c23(0x118));const _0x70d2b0=[],_0x21bcfb=[],_0x30265c=[];for(const _0x27aac7 of _0x3e8baf['plan'][_0x5b4c23(0x11b)]){if(_0x27aac7[_0x5b4c23(0x136)]['visible']===_0x3e8baf[_0x5b4c23(0x10f)][_0x5b4c23(0xe1)]){_0x70d2b0[_0x5b4c23(0xeb)]({'id':_0x27aac7['id'],'updated':![],'skipped':!![]});continue;}try{await updateMenuEntity(_0x5ba18d[_0x5b4c23(0xe3)],_0x5ba18d[_0x5b4c23(0xe0)],{'id':_0x27aac7['id'],'visible':_0x3e8baf[_0x5b4c23(0x10f)]['requestedVisible']}),_0x70d2b0['push']({'id':_0x27aac7['id'],'updated':!![],'skipped':![]});}catch(_0x142aa7){const _0x434b23=mapMenuApiError(_0x142aa7,'update\x20visibility\x20for',_0x27aac7['id']);if(isMenuResponseLoss(_0x142aa7)&&_0x434b23[_0x5b4c23(0x110)]!=='menu_permission_denied'){_0x30265c[_0x5b4c23(0xeb)](_0x27aac7['id']);continue;}_0x21bcfb[_0x5b4c23(0xeb)]({'id':_0x27aac7['id'],'stage':_0x5b4c23(0x104),'code':_0x434b23[_0x5b4c23(0x110)],'message':_0x434b23[_0x5b4c23(0x102)]});}}let _0x44be02;try{_0x44be02=await fetchMenuSnapshot(_0x5ba18d[_0x5b4c23(0xe3)],_0x5ba18d[_0x5b4c23(0xe0)]);}catch(_0x253da7){const _0x38c3a5=describeMenuErrorCause(_0x253da7,_0x5b4c23(0xde)),_0x298615=_0x30265c[_0x5b4c23(0x12e)](_0x5af285=>({'id':_0x5af285,'stage':'update-recovery','code':_0x5b4c23(0x13a),'message':_0x5b4c23(0x14b)+_0x5af285+_0x5b4c23(0x134),'requestedStateConfirmed':![],'recovered':![]})),_0x1b9aae={'stage':'verification','code':_0x5b4c23(0x13a),'message':_0x5b4c23(0x108),'targetIds':_0x3e8baf[_0x5b4c23(0x10f)][_0x5b4c23(0x11b)][_0x5b4c23(0x12e)](_0x3a0533=>_0x3a0533['id']),'requestedStateConfirmed':![],..._0x38c3a5};throw menuFailure(asVerificationError(_0x253da7,_0x5b4c23(0x13e)),_0x3e8baf['plan'],{'stage':_0x5b4c23(0x10a),'succeeded':_0x70d2b0,'failedRecords':[..._0x21bcfb,..._0x298615,_0x1b9aae],'warnings':[_0x5b4c23(0x122)],'verification':{'status':_0x5b4c23(0xe2),'recoveredCount':0x0,'lookupCommand':_0x5b4c23(0xfc)}});}const _0x274f39=[];for(const _0x5acc7c of _0x70d2b0){const _0x2de832=Number(_0x5acc7c['id']),_0x3493e1=_0x3e8baf[_0x5b4c23(0x109)]['get'](_0x2de832),_0x4cb0db=_0x44be02[_0x5b4c23(0x113)][_0x5b4c23(0xdc)](_0x2de832);try{verifyVisibilityUpdate(_0x3493e1,_0x4cb0db,_0x3e8baf['plan'][_0x5b4c23(0xe1)]);}catch(_0x45a598){const _0xa41540=asVerificationError(_0x45a598,'Menu\x20'+_0x2de832+_0x5b4c23(0xef));_0x274f39[_0x5b4c23(0xeb)]({'id':_0x2de832,'stage':_0x5b4c23(0x10a),'code':_0xa41540[_0x5b4c23(0x110)],'message':_0xa41540[_0x5b4c23(0x102)],'requestedStateConfirmed':![]});}}for(const _0x40bf56 of _0x30265c){const _0x3f4f5b=_0x3e8baf[_0x5b4c23(0x109)]['get'](_0x40bf56),_0x20f51f=_0x44be02[_0x5b4c23(0x113)][_0x5b4c23(0xdc)](_0x40bf56);try{verifyVisibilityUpdate(_0x3f4f5b,_0x20f51f,_0x3e8baf[_0x5b4c23(0x10f)][_0x5b4c23(0xe1)]),_0x70d2b0['push']({'id':_0x40bf56,'updated':!![],'skipped':![],'recovered':!![]});}catch(_0x273cb3){const _0x23d3de=asVerificationError(_0x273cb3,_0x5b4c23(0x129)+_0x40bf56+_0x5b4c23(0x138));_0x274f39[_0x5b4c23(0xeb)]({'id':_0x40bf56,'stage':_0x5b4c23(0x13b),'code':_0x23d3de[_0x5b4c23(0x110)],'message':_0x23d3de[_0x5b4c23(0x102)],'requestedStateConfirmed':![],'recovered':![]});}}if(_0x274f39[_0x5b4c23(0xe8)]>0x0){const _0x59ced9=_0x274f39[_0x5b4c23(0x12e)](_0x1c0e3c=>Number(_0x1c0e3c['id'])),_0x230b7d=_0x70d2b0[_0x5b4c23(0x117)](_0x2da3d1=>_0x2da3d1['recovered']===!![])[_0x5b4c23(0xe8)],_0x217aa8=menuError('menu_verification_failed',_0x5b4c23(0x13c)+_0x59ced9[_0x5b4c23(0x10c)](',\x20')+'.',_0x5b4c23(0xd8));throw menuFailure(_0x217aa8,_0x3e8baf['plan'],{'stage':_0x5b4c23(0x10a),'succeeded':_0x70d2b0,'failedRecords':[..._0x21bcfb,..._0x274f39],'warnings':['One\x20or\x20more\x20updates\x20may\x20have\x20changed\x20fields\x20outside\x20visibility;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.'],'verification':{'status':_0x5b4c23(0xe2),..._0x59ced9[_0x5b4c23(0xe8)]===0x1?{'targetId':_0x59ced9[0x0]}:{'targetIds':_0x59ced9},'recoveredCount':_0x230b7d,'lookupCommand':_0x5b4c23(0xfc)}});}const _0x3e2a62=_0x70d2b0[_0x5b4c23(0x117)](_0x19e961=>_0x19e961[_0x5b4c23(0x11a)]===!![])[_0x5b4c23(0xe8)],_0x3ddb0f=_0x70d2b0[_0x5b4c23(0xe8)]-_0x3e2a62,_0x6d7551={..._0x3e8baf[_0x5b4c23(0x10f)],'succeeded':_0x70d2b0,'failed':_0x21bcfb,'warnings':_0x21bcfb[_0x5b4c23(0xe8)]>0x0?[..._0x3e8baf[_0x5b4c23(0x10f)][_0x5b4c23(0xee)],'Failed\x20update\x20requests\x20were\x20not\x20retried;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.']:_0x3e8baf[_0x5b4c23(0x10f)]['warnings'],'verification':{'checkedBy':_0x5b4c23(0xf7),'snapshotHash':_0x44be02[_0x5b4c23(0x11e)],'matchesRequestedState':_0x21bcfb[_0x5b4c23(0xe8)]===0x0,'recoveredCount':_0x30265c[_0x5b4c23(0xe8)]}};return{'ok':_0x21bcfb[_0x5b4c23(0xe8)]===0x0,'data':_0x6d7551,'message':_0x21bcfb[_0x5b4c23(0xe8)]===0x0?_0x5b4c23(0x14d)+_0x3e2a62+_0x5b4c23(0x114)+_0x3ddb0f+_0x5b4c23(0x12a):_0x5b4c23(0x116)+_0x3e2a62+_0x5b4c23(0xe5)+_0x3ddb0f+_0x5b4c23(0xe9)+_0x21bcfb[_0x5b4c23(0xe8)]+'\x20failed.'};}};function parseInput(_0x56c2bd){const _0x4fa171=a151_0x5214f5,_0x21bd52=parseMenuIds(_0x56c2bd[_0x4fa171(0x123)]('menu-ids')),_0x3544bb=parseCsv(_0x56c2bd[_0x4fa171(0x123)]('paths'));if(_0x21bd52[_0x4fa171(0xe8)]===0x0&&_0x3544bb[_0x4fa171(0xe8)]===0x0)throw CliErrors['validation']('menu\x20visibility-update\x20requires\x20--menu-ids\x20or\x20--paths.');const _0x147585=parseBooleanFlag(_0x56c2bd,_0x4fa171(0x141),!![]),_0x5e6bf7=parseBooleanFlag(_0x56c2bd,_0x4fa171(0x12c),![]);let _0x2279e3;if(hasFlag(_0x56c2bd,_0x4fa171(0x131))){_0x2279e3=_0x56c2bd[_0x4fa171(0x10e)](_0x4fa171(0x131));if(!Number[_0x4fa171(0xf1)](_0x2279e3)||_0x2279e3<0x0)throw CliErrors[_0x4fa171(0xfb)]('--expected-count\x20must\x20be\x20a\x20non-negative\x20integer.');}return{'menuIds':_0x21bd52,'paths':_0x3544bb,'visible':_0x147585,'expectVisible':_0x5e6bf7,'expectedCount':_0x2279e3};}function a151_0x5c41(){const _0x5d42e9=['push','values','Exact\x20comma-separated\x20menu\x20paths\x20to\x20update','warnings','\x20visibility\x20update\x20could\x20not\x20be\x20verified','depth','isSafeInteger','update-menu-visibility','resources','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expected-count.','101613OjjACv','pageId','menu\x20list','datasetId','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20an\x20exact\x20current\x20path.','childrenIds','validation','rabetbase\x20menu\x20list\x20--format\x20compress','Use\x20--menu-ids\x20with\x20one\x20or\x20more\x20of:\x20','62SkStpo','menu-ids','menu_selector_ambiguous','menu_expected_count_mismatch','message','label','update','high-risk-write','menus','sort','Final\x20menu\x20visibility\x20readback\x20failed.','beforeById','verification','visibility-update','join','datasetCode','num','plan','code','2216775wHXpLk','has','byId','\x20menu(s);\x20skipped\x20','type','Menu\x20visibility\x20update\x20completed:\x20','filter','update\x20menu\x20visibility','/smartapi/menu/update','updated','targets','body','split','hash','childrenCount','5995332tKUseh','Abort\x20unless\x20the\x20exact\x20number\x20of\x20selected\x20menus\x20matches','The\x20update\x20may\x20have\x20taken\x20effect;\x20inspect\x20the\x20latest\x20menu\x20facts\x20before\x20retrying.','str','expectVisible','menu','resourcesValid','paths','set','Response\x20was\x20lost\x20and\x20menu\x20','\x20unchanged\x20menu(s).','253900pwkfUx','expect-visible','\x20menu(s),\x20expected\x20','map','expectedCount','Would\x20update\x20visibility\x20for\x20','expected-count','Requested\x20menu\x20visibility','string','\x20and\x20final\x20state\x20could\x20not\x20be\x20read.','parentId','before','url','\x20visibility\x20could\x20not\x20be\x20verified\x20safely','16232YYwcdO','menu_verification_failed','update-recovery','Menu\x20visibility\x20update\x20could\x20not\x20be\x20verified\x20for\x20id(s):\x20','menuIds','Visibility\x20update\x20requests\x20completed\x20but\x20readback\x20could\x20not\x20confirm\x20the\x20requested\x20state','flagMissing','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20exact\x20current\x20ids.','visible','modelType','--menu-ids\x20must\x20contain\x20positive\x20safe\x20integers.','\x20changed\x20unexpectedly.','Menu\x20','path','4695278JtEZhI','menu_selector_not_found','POST','isArray','Response\x20was\x20lost\x20for\x20menu\x20','stringify','Updated\x20visibility\x20for\x20','pageType','Inspect\x20current\x20menu\x20facts\x20before\x20retrying\x20any\x20target.','\x20menu(s);\x20skip\x20','\x20visible\x20did\x20not\x20match\x20the\x20requested\x20state.','\x20must\x20be\x20true\x20or\x20false.','get','boolean','verify\x20menu\x20visibility\x20update','1638wsLbHX','cookie','requestedVisible','failed','appCode','455636ZbVTDd','\x20updated,\x20','menu_state_drift','some','length','\x20skipped,\x20','plannedActions'];a151_0x5c41=function(){return _0x5d42e9;};return a151_0x5c41();}async function buildPlan(_0x48fc5a,_0x1f9ef3){const _0x1001bb=a151_0x5214f5,_0x545934=parseInput(_0x48fc5a),_0xccb95b=await fetchMutationSnapshot(_0x48fc5a,_0x1001bb(0x118)),_0x50b20e=selectTargets(_0xccb95b[_0x1001bb(0x106)],_0x545934[_0x1001bb(0x13d)],_0x545934[_0x1001bb(0x127)]);if(_0x545934[_0x1001bb(0x12f)]!==undefined&&_0x50b20e['length']!==_0x545934[_0x1001bb(0x12f)])throw menuError(_0x1001bb(0x101),'Selected\x20'+_0x50b20e[_0x1001bb(0xe8)]+_0x1001bb(0x12d)+_0x545934[_0x1001bb(0x12f)]+'.',_0x1001bb(0xf4));if(_0x545934[_0x1001bb(0x124)]!==undefined){const _0x3a824a=_0x50b20e['filter'](_0x1dafeb=>_0x1dafeb['visible']!==_0x545934[_0x1001bb(0x124)]);if(_0x3a824a['length']>0x0)throw menuError(_0x1001bb(0xe6),'Selected\x20menu\x20visibility\x20changed\x20for\x20id(s):\x20'+_0x3a824a[_0x1001bb(0x12e)](_0x49686d=>_0x49686d['id'])[_0x1001bb(0x10c)](',\x20')+'.','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expect-visible.');}const _0x11c51e=_0x50b20e[_0x1001bb(0x12e)](_0x403419=>({'id':_0x403419['id'],'label':_0x403419['label'],'path':_0x403419['path'],'before':{'visible':_0x403419[_0x1001bb(0x141)]},'after':{'visible':_0x545934[_0x1001bb(0x141)]}})),_0x1c9a12=_0x11c51e['filter'](_0x229e43=>_0x229e43['before'][_0x1001bb(0x141)]!==_0x545934[_0x1001bb(0x141)])[_0x1001bb(0x12e)](_0x39ac24=>({'stage':_0x1001bb(0xf2),'method':_0x1001bb(0x149),'path':_0x1001bb(0x119),'body':{'appCode':_0x48fc5a[_0x1001bb(0xe3)],'id':_0x39ac24['id'],'visible':_0x545934[_0x1001bb(0x141)]}})),_0x3744cb=mutationResult({'operation':'visibility-update','selector':{'menuIds':_0x545934['menuIds'],'paths':_0x545934['paths']},'before':{'menus':_0x50b20e[_0x1001bb(0x12e)](_0xa98960=>({'id':_0xa98960['id'],'path':_0xa98960[_0x1001bb(0x146)],'visible':_0xa98960[_0x1001bb(0x141)]}))},'after':{'menus':_0x50b20e['map'](_0x51cd12=>({'id':_0x51cd12['id'],'path':_0x51cd12[_0x1001bb(0x146)],'visible':_0x545934[_0x1001bb(0x141)]}))},'dryRun':_0x1f9ef3,'backend':[...BACKEND],'plannedActions':_0x1c9a12,'snapshotHash':_0xccb95b['hash'],'warnings':_0x1c9a12[_0x1001bb(0xe8)]===0x0?['Every\x20selected\x20menu\x20already\x20has\x20the\x20requested\x20visibility;\x20no\x20write\x20is\x20needed.']:[]});return{'plan':{..._0x3744cb,'requestedVisible':_0x545934[_0x1001bb(0x141)],'targets':_0x11c51e},'beforeById':new Map(_0x50b20e[_0x1001bb(0x12e)](_0x1876c2=>[_0x1876c2['id'],_0x1876c2]))};}function selectTargets(_0x46f5db,_0x5c8744,_0x4fa8c3){const _0x46f310=a151_0x5214f5,_0x3b7569=new Map(_0x46f5db['map'](_0x5c5924=>[_0x5c5924['id'],_0x5c5924])),_0x327865=new Map(),_0x197d7d=_0x5c8744[_0x46f310(0x117)](_0x4169bd=>!_0x3b7569[_0x46f310(0x112)](_0x4169bd));if(_0x197d7d[_0x46f310(0xe8)]>0x0)throw menuError(_0x46f310(0x148),'Menu\x20id\x20selector(s)\x20not\x20found:\x20'+_0x197d7d[_0x46f310(0x10c)](',\x20')+'.',_0x46f310(0x140));for(const _0x5b0c3a of _0x5c8744){_0x327865[_0x46f310(0x128)](_0x5b0c3a,_0x3b7569[_0x46f310(0xdc)](_0x5b0c3a));}for(const _0x4efe52 of _0x4fa8c3){const _0x2980ca=_0x46f5db[_0x46f310(0x117)](_0x120820=>_0x120820[_0x46f310(0x146)]===_0x4efe52);if(_0x2980ca[_0x46f310(0xe8)]===0x0)throw menuError(_0x46f310(0x148),'Menu\x20path\x20selector\x20not\x20found:\x20'+JSON[_0x46f310(0x14c)](_0x4efe52)+'.',_0x46f310(0xf9));if(_0x2980ca[_0x46f310(0xe8)]>0x1)throw menuError(_0x46f310(0x100),'Menu\x20path\x20selector\x20matched\x20multiple\x20menus:\x20'+JSON[_0x46f310(0x14c)](_0x4efe52)+'.',_0x46f310(0xfd)+_0x2980ca[_0x46f310(0x12e)](_0x193f14=>_0x193f14['id'])[_0x46f310(0x10c)](',\x20')+'.');const _0x5a054a=_0x2980ca[0x0];_0x327865[_0x46f310(0x128)](_0x5a054a['id'],_0x5a054a);}return[..._0x327865[_0x46f310(0xec)]()];}function parseMenuIds(_0x26181a){const _0x22731a=a151_0x5214f5,_0x3cd93e=parseCsv(_0x26181a),_0x31fb5b=_0x3cd93e[_0x22731a(0x12e)](Number);if(_0x31fb5b[_0x22731a(0xe7)](_0x54d8d7=>!Number[_0x22731a(0xf1)](_0x54d8d7)||_0x54d8d7<=0x0))throw CliErrors[_0x22731a(0xfb)](_0x22731a(0x143));return[...new Set(_0x31fb5b)];}function parseCsv(_0x5173aa){const _0x506c72=a151_0x5214f5;return[...new Set(_0x5173aa[_0x506c72(0x11d)](',')[_0x506c72(0x12e)](_0x501b1d=>_0x501b1d['trim']())[_0x506c72(0x117)](Boolean))];}function parseBooleanFlag(_0x5c1f64,_0x28aac0,_0x3deada){const _0x4c223a=a151_0x5214f5;if(!hasFlag(_0x5c1f64,_0x28aac0)){if(_0x3deada)throw CliErrors[_0x4c223a(0x13f)](_0x28aac0);return undefined;}const _0x41af73=_0x5c1f64['rawFlags'][_0x28aac0];if(_0x41af73===!![]||_0x41af73===![])return _0x41af73;if(_0x41af73==='true')return!![];if(_0x41af73==='false')return![];throw CliErrors[_0x4c223a(0xfb)]('--'+_0x28aac0+_0x4c223a(0xdb));}function verifyVisibilityUpdate(_0x5bddc3,_0xf45284,_0x2bbbe0){const _0x243a18=a151_0x5214f5;assertVerified(!!_0xf45284,_0x243a18(0x145)+_0x5bddc3['id']+'\x20was\x20not\x20found\x20during\x20visibility\x20verification.'),assertVerified(_0xf45284['visible']===_0x2bbbe0,_0x243a18(0x145)+_0x5bddc3['id']+_0x243a18(0xda));const _0x179eb2=[['id',_0xf45284['id'],_0x5bddc3['id']],[_0x243a18(0x135),_0xf45284[_0x243a18(0x135)],_0x5bddc3[_0x243a18(0x135)]],[_0x243a18(0xf0),_0xf45284[_0x243a18(0xf0)],_0x5bddc3[_0x243a18(0xf0)]],['label',_0xf45284[_0x243a18(0x103)],_0x5bddc3[_0x243a18(0x103)]],[_0x243a18(0x146),_0xf45284[_0x243a18(0x146)],_0x5bddc3[_0x243a18(0x146)]],[_0x243a18(0x137),_0xf45284[_0x243a18(0x137)],_0x5bddc3[_0x243a18(0x137)]],[_0x243a18(0x115),_0xf45284[_0x243a18(0x115)],_0x5bddc3[_0x243a18(0x115)]],[_0x243a18(0x107),_0xf45284['sort'],_0x5bddc3[_0x243a18(0x107)]],[_0x243a18(0xf3),_0xf45284['resources'],_0x5bddc3['resources']],[_0x243a18(0x126),_0xf45284[_0x243a18(0x126)],_0x5bddc3['resourcesValid']],[_0x243a18(0xfa),_0xf45284['childrenIds'],_0x5bddc3['childrenIds']],[_0x243a18(0x11f),_0xf45284[_0x243a18(0x11f)],_0x5bddc3[_0x243a18(0x11f)]],[_0x243a18(0xf6),_0xf45284[_0x243a18(0xf6)],_0x5bddc3[_0x243a18(0xf6)]],['pageType',_0xf45284['pageType'],_0x5bddc3[_0x243a18(0x14e)]],[_0x243a18(0x142),_0xf45284['modelType'],_0x5bddc3[_0x243a18(0x142)]],[_0x243a18(0xf8),_0xf45284[_0x243a18(0xf8)],_0x5bddc3[_0x243a18(0xf8)]],[_0x243a18(0x10d),_0xf45284[_0x243a18(0x10d)],_0x5bddc3[_0x243a18(0x10d)]]];for(const [_0x4210cc,_0x57591e,_0x5995b5]of _0x179eb2){assertVerified(sameValue(_0x57591e,_0x5995b5),'Menu\x20'+_0x5bddc3['id']+'\x20'+_0x4210cc+_0x243a18(0x144));}}function sameValue(_0x3268d9,_0x2542fe){const _0x354bd7=a151_0x5214f5;if(Array[_0x354bd7(0x14a)](_0x3268d9)||Array[_0x354bd7(0x14a)](_0x2542fe))return JSON[_0x354bd7(0x14c)](_0x3268d9)===JSON[_0x354bd7(0x14c)](_0x2542fe);return _0x3268d9===_0x2542fe;}
@@ -1 +1 @@
1
- function a154_0xbe29(){const _0x36cb66=['document','appCode','1095480sWZZrZ','49XaJCsn','1502ZpxFZN','verification','28069019BcraeT','description','Created\x20notification\x20config\x20','Notification\x20config\x20create\x20returned\x20no\x20usable\x20server\x20ID.','notification','configName','readTimeout','mutation','planned',';\x20do\x20not\x20resubmit\x20automatically.','3879nranpY','56382jBhcdz','configCode','verified','create','write','channelType',';\x20do\x20not\x20resubmit.','Notification\x20config\x20create\x20outcome\x20is\x20unknown\x20because\x20no\x20server\x20ID\x20was\x20received.','POST','Inspect\x20with\x20','connectTimeout','notification_config_create_outcome_unknown','590BSyFkJ','channelConfig','460aSmFMh','688126rAvget','Create\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20source','input','4262072MlVKfZ','12sjEYbu','168282ggjoAh'];a154_0xbe29=function(){return _0x36cb66;};return a154_0xbe29();}const a154_0x1ffb87=a154_0x3c33;(function(_0x3021be,_0x447eaa){const _0x403b59=a154_0x3c33,_0x2210f5=_0x3021be();while(!![]){try{const _0x4f3515=-parseInt(_0x403b59(0x1ff))/0x1+parseInt(_0x403b59(0x209))/0x2*(parseInt(_0x403b59(0x1ef))/0x3)+-parseInt(_0x403b59(0x202))/0x4+-parseInt(_0x403b59(0x1fc))/0x5*(parseInt(_0x403b59(0x1f0))/0x6)+-parseInt(_0x403b59(0x208))/0x7*(parseInt(_0x403b59(0x207))/0x8)+-parseInt(_0x403b59(0x204))/0x9*(-parseInt(_0x403b59(0x1fe))/0xa)+-parseInt(_0x403b59(0x20b))/0xb*(-parseInt(_0x403b59(0x203))/0xc);if(_0x4f3515===_0x447eaa)break;else _0x2210f5['push'](_0x2210f5['shift']());}catch(_0x170bc9){_0x2210f5['push'](_0x2210f5['shift']());}}}(a154_0xbe29,0x892b5));function a154_0x3c33(_0x327bad,_0x4fd646){_0x327bad=_0x327bad-0x1ee;const _0xbe293e=a154_0xbe29();let _0x3c336d=_0xbe293e[_0x327bad];return _0x3c336d;}import{asDryRunResult}from'../../commands/common/dry-run.js';import{createNotificationChannelConfig,getNotificationChannelConfig,isPlatformTransportFailure}from'../../core/api-client.js';import{assertSingleNotificationSource,createMutationInput,DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,DEFAULT_NOTIFICATION_READ_TIMEOUT,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,NOTIFICATION_APP_FLAG,NOTIFICATION_INPUT_FLAGS,projectNotificationConfig,readNotificationDocument,safeApiFailure}from'../../commands/notification/shared.js';const CREATE_PATH='/notification/channel-config/create';async function prepareCreate(_0x140d1d){const _0x53efb9=a154_0x3c33,_0x2b6d2b=await readNotificationDocument(_0x140d1d,_0x53efb9(0x1f3)),_0x56d670=createMutationInput(_0x140d1d[_0x53efb9(0x206)],_0x2b6d2b);return{'document':_0x2b6d2b,'input':_0x56d670,'planned':projectNotificationConfig({'appCode':_0x140d1d['appCode'],'configName':_0x2b6d2b[_0x53efb9(0x210)],'channelType':_0x2b6d2b[_0x53efb9(0x1f5)],'endpointUrl':_0x2b6d2b['endpointUrl'],'channelConfig':_0x2b6d2b[_0x53efb9(0x1fd)],'description':_0x2b6d2b[_0x53efb9(0x20c)],'connectTimeout':_0x2b6d2b[_0x53efb9(0x1fa)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,'readTimeout':_0x2b6d2b[_0x53efb9(0x211)]??DEFAULT_NOTIFICATION_READ_TIMEOUT})};}export const notificationConfigCreate={'service':a154_0x1ffb87(0x20f),'command':'config-create','description':a154_0x1ffb87(0x200),'risk':a154_0x1ffb87(0x1f4),'requiresAppCode':!![],'structuredErrors':!![],'flags':[...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0xbb6ceb){assertSingleNotificationSource(_0xbb6ceb);},async 'dryRun'(_0x5e22d0){const _0x36c672=a154_0x1ffb87,_0x3df751=await prepareCreate(_0x5e22d0),_0xcf8e4=notificationLookupCommand(_0x5e22d0[_0x36c672(0x206)],_0x3df751[_0x36c672(0x205)][_0x36c672(0x1f5)]);return asDryRunResult({'operation':'create','selector':{'appCode':_0x5e22d0[_0x36c672(0x206)],'configName':_0x3df751[_0x36c672(0x205)][_0x36c672(0x210)],'channelType':_0x3df751['document'][_0x36c672(0x1f5)]},'before':null,'after':_0x3df751[_0x36c672(0x213)],'dryRun':!![],'backend':{'method':_0x36c672(0x1f8),'path':CREATE_PATH},'warnings':[],'verification':{'status':_0x36c672(0x213),'lookupCommand':_0xcf8e4}},{'method':_0x36c672(0x1f8),'url':CREATE_PATH});},async 'execute'(_0x207321){const _0x235b1c=a154_0x1ffb87,_0x1f78d4=await prepareCreate(_0x207321),_0x5190e1=notificationLookupCommand(_0x207321[_0x235b1c(0x206)],_0x1f78d4[_0x235b1c(0x205)][_0x235b1c(0x1f5)]);let _0x159c33;try{_0x159c33=await createNotificationChannelConfig(_0x1f78d4[_0x235b1c(0x201)]);}catch(_0x57872d){if(isPlatformTransportFailure(_0x57872d))throw notificationError(_0x235b1c(0x1fb),_0x235b1c(0x1f7),_0x235b1c(0x1f9)+_0x5190e1+_0x235b1c(0x1f6));throw safeApiFailure(_0x235b1c(0x1f3),_0x235b1c(0x212),_0x235b1c(0x1f9)+_0x5190e1+';\x20no\x20automatic\x20retry\x20was\x20attempted.');}if(!Number['isSafeInteger'](_0x159c33)||_0x159c33<=0x0)throw notificationError('notification_config_create_outcome_unknown',_0x235b1c(0x20e),'Inspect\x20with\x20'+_0x5190e1+_0x235b1c(0x1f6));let _0x181d56;try{const _0x4202e7=await getNotificationChannelConfig(_0x159c33,_0x207321[_0x235b1c(0x206)]);_0x181d56=normalizeExactNotificationConfig(_0x4202e7,_0x159c33,_0x207321[_0x235b1c(0x206)]);}catch{throw safeApiFailure('create',_0x235b1c(0x20a),_0x235b1c(0x1f9)+_0x5190e1+_0x235b1c(0x1ee));}return{'ok':!![],'data':{'operation':_0x235b1c(0x1f3),'selector':{'appCode':_0x181d56[_0x235b1c(0x206)],'id':_0x181d56['id'],'configCode':_0x181d56[_0x235b1c(0x1f1)],'configName':_0x181d56[_0x235b1c(0x210)],'channelType':_0x181d56['channelType']},'before':null,'after':projectNotificationConfig(_0x181d56),'dryRun':![],'backend':{'method':_0x235b1c(0x1f8),'path':CREATE_PATH},'warnings':[],'verification':{'status':_0x235b1c(0x1f2),'lookupCommand':_0x5190e1}},'message':_0x235b1c(0x20d)+_0x181d56['id']};}};
1
+ const a152_0x360dea=a152_0x22a6;function a152_0x22a6(_0x50a3b2,_0x57f86c){_0x50a3b2=_0x50a3b2-0x121;const _0x3d9b92=a152_0x3d9b();let _0x22a6ba=_0x3d9b92[_0x50a3b2];return _0x22a6ba;}(function(_0x4b21ad,_0x469866){const _0x3f1b55=a152_0x22a6,_0x277df3=_0x4b21ad();while(!![]){try{const _0x137dc9=-parseInt(_0x3f1b55(0x132))/0x1+-parseInt(_0x3f1b55(0x128))/0x2+parseInt(_0x3f1b55(0x13a))/0x3*(parseInt(_0x3f1b55(0x130))/0x4)+parseInt(_0x3f1b55(0x134))/0x5+-parseInt(_0x3f1b55(0x137))/0x6*(-parseInt(_0x3f1b55(0x13b))/0x7)+-parseInt(_0x3f1b55(0x13c))/0x8+parseInt(_0x3f1b55(0x136))/0x9*(-parseInt(_0x3f1b55(0x129))/0xa);if(_0x137dc9===_0x469866)break;else _0x277df3['push'](_0x277df3['shift']());}catch(_0x4d4357){_0x277df3['push'](_0x277df3['shift']());}}}(a152_0x3d9b,0x6b603));import{asDryRunResult}from'../../commands/common/dry-run.js';import{createNotificationChannelConfig,getNotificationChannelConfig,isPlatformTransportFailure}from'../../core/api-client.js';import{assertSingleNotificationSource,createMutationInput,DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,DEFAULT_NOTIFICATION_READ_TIMEOUT,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,NOTIFICATION_APP_FLAG,NOTIFICATION_INPUT_FLAGS,projectNotificationConfig,readNotificationDocument,safeApiFailure}from'../../commands/notification/shared.js';const CREATE_PATH=a152_0x360dea(0x13f);function a152_0x3d9b(){const _0x587b9f=['1277875hShQoK','description','1521OyTPTR','66SYZjaD','verified','channelType','3tFzOnj','377335jgGoSH','2843304osLgbS','connectTimeout','Created\x20notification\x20config\x20','/notification/channel-config/create','appCode','readTimeout',';\x20do\x20not\x20resubmit\x20automatically.','write','configCode','Notification\x20config\x20create\x20returned\x20no\x20usable\x20server\x20ID.','isSafeInteger','Inspect\x20with\x20','notification_config_create_outcome_unknown','document','configName','697160IHgCUX','8870DRxOuJ','Notification\x20config\x20create\x20outcome\x20is\x20unknown\x20because\x20no\x20server\x20ID\x20was\x20received.','POST','create',';\x20do\x20not\x20resubmit.','notification','planned','2903656VGAXWU','channelConfig','280737fNajVn',';\x20no\x20automatic\x20retry\x20was\x20attempted.'];a152_0x3d9b=function(){return _0x587b9f;};return a152_0x3d9b();}async function prepareCreate(_0x4efcbb){const _0x6a12eb=a152_0x360dea,_0x3bf662=await readNotificationDocument(_0x4efcbb,_0x6a12eb(0x12c)),_0x527c24=createMutationInput(_0x4efcbb[_0x6a12eb(0x140)],_0x3bf662);return{'document':_0x3bf662,'input':_0x527c24,'planned':projectNotificationConfig({'appCode':_0x4efcbb[_0x6a12eb(0x140)],'configName':_0x3bf662[_0x6a12eb(0x127)],'channelType':_0x3bf662[_0x6a12eb(0x139)],'endpointUrl':_0x3bf662['endpointUrl'],'channelConfig':_0x3bf662[_0x6a12eb(0x131)],'description':_0x3bf662[_0x6a12eb(0x135)],'connectTimeout':_0x3bf662[_0x6a12eb(0x13d)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,'readTimeout':_0x3bf662[_0x6a12eb(0x141)]??DEFAULT_NOTIFICATION_READ_TIMEOUT})};}export const notificationConfigCreate={'service':a152_0x360dea(0x12e),'command':'config-create','description':'Create\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20source','risk':a152_0x360dea(0x143),'requiresAppCode':!![],'structuredErrors':!![],'flags':[...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x2b5586){assertSingleNotificationSource(_0x2b5586);},async 'dryRun'(_0x48c344){const _0x561461=a152_0x360dea,_0x1af924=await prepareCreate(_0x48c344),_0x5620d2=notificationLookupCommand(_0x48c344[_0x561461(0x140)],_0x1af924[_0x561461(0x126)]['channelType']);return asDryRunResult({'operation':_0x561461(0x12c),'selector':{'appCode':_0x48c344[_0x561461(0x140)],'configName':_0x1af924['document'][_0x561461(0x127)],'channelType':_0x1af924[_0x561461(0x126)][_0x561461(0x139)]},'before':null,'after':_0x1af924['planned'],'dryRun':!![],'backend':{'method':_0x561461(0x12b),'path':CREATE_PATH},'warnings':[],'verification':{'status':_0x561461(0x12f),'lookupCommand':_0x5620d2}},{'method':_0x561461(0x12b),'url':CREATE_PATH});},async 'execute'(_0x452c81){const _0x58fed5=a152_0x360dea,_0x2b286e=await prepareCreate(_0x452c81),_0x140656=notificationLookupCommand(_0x452c81[_0x58fed5(0x140)],_0x2b286e[_0x58fed5(0x126)]['channelType']);let _0x18c1ba;try{_0x18c1ba=await createNotificationChannelConfig(_0x2b286e['input']);}catch(_0x4e45b7){if(isPlatformTransportFailure(_0x4e45b7))throw notificationError('notification_config_create_outcome_unknown',_0x58fed5(0x12a),'Inspect\x20with\x20'+_0x140656+_0x58fed5(0x12d));throw safeApiFailure(_0x58fed5(0x12c),'mutation',_0x58fed5(0x124)+_0x140656+_0x58fed5(0x133));}if(!Number[_0x58fed5(0x123)](_0x18c1ba)||_0x18c1ba<=0x0)throw notificationError(_0x58fed5(0x125),_0x58fed5(0x122),'Inspect\x20with\x20'+_0x140656+_0x58fed5(0x12d));let _0x28eb63;try{const _0x18e5b5=await getNotificationChannelConfig(_0x18c1ba,_0x452c81[_0x58fed5(0x140)]);_0x28eb63=normalizeExactNotificationConfig(_0x18e5b5,_0x18c1ba,_0x452c81['appCode']);}catch{throw safeApiFailure(_0x58fed5(0x12c),'verification',_0x58fed5(0x124)+_0x140656+_0x58fed5(0x142));}return{'ok':!![],'data':{'operation':_0x58fed5(0x12c),'selector':{'appCode':_0x28eb63[_0x58fed5(0x140)],'id':_0x28eb63['id'],'configCode':_0x28eb63[_0x58fed5(0x121)],'configName':_0x28eb63[_0x58fed5(0x127)],'channelType':_0x28eb63[_0x58fed5(0x139)]},'before':null,'after':projectNotificationConfig(_0x28eb63),'dryRun':![],'backend':{'method':_0x58fed5(0x12b),'path':CREATE_PATH},'warnings':[],'verification':{'status':_0x58fed5(0x138),'lookupCommand':_0x140656}},'message':_0x58fed5(0x13e)+_0x28eb63['id']};}};
@@ -1 +1 @@
1
- const a155_0x1d2fad=a155_0x1bd7;(function(_0x2b2d91,_0x177769){const _0x357a62=a155_0x1bd7,_0x27b060=_0x2b2d91();while(!![]){try{const _0x334d3f=-parseInt(_0x357a62(0x1dc))/0x1+parseInt(_0x357a62(0x1ed))/0x2*(parseInt(_0x357a62(0x1f5))/0x3)+parseInt(_0x357a62(0x1ef))/0x4+parseInt(_0x357a62(0x1e2))/0x5*(-parseInt(_0x357a62(0x1d9))/0x6)+-parseInt(_0x357a62(0x1f0))/0x7+-parseInt(_0x357a62(0x1f1))/0x8*(-parseInt(_0x357a62(0x1e8))/0x9)+parseInt(_0x357a62(0x1f2))/0xa*(parseInt(_0x357a62(0x1dd))/0xb);if(_0x334d3f===_0x177769)break;else _0x27b060['push'](_0x27b060['shift']());}catch(_0x288bea){_0x27b060['push'](_0x27b060['shift']());}}}(a155_0x5d84,0xa1631));function a155_0x5d84(){const _0x2fc8a2=['7585326ZZmSyS','4777272HNaeFM','4104850WpEnRI',';\x20no\x20automatic\x20retry\x20was\x20attempted.','channelType','15sIWZtb','\x20remains\x20present\x20after\x20delete.','Inspect\x20with\x20','90PTZKTJ','POST','Deleted\x20notification\x20config\x20','418011XEySEw','22gHgWkN','Delete\x20response\x20was\x20unavailable;\x20list\x20readback\x20proved\x20ID\x20absence\x20without\x20resubmitting.','Delete\x20an\x20app-level\x20notification\x20config\x20after\x20exact\x20preflight','Deleting\x20this\x20app-level\x20config\x20may\x20make\x20dataset-level\x20channels\x20that\x20reference\x20it\x20unavailable;\x20dataset\x20references\x20were\x20not\x20verified\x20by\x20the\x20CLI.','appCode','122660eOVrps','notification_config_delete_verification_failed','delete','\x20delete\x20could\x20not\x20be\x20verified.','verified',';\x20do\x20not\x20resubmit\x20automatically.','9MkayCp','planned','notification_config_delete_outcome_unknown','mutation','/notification/channel-config/delete','206114VFCcko','before','2388944auQtWM'];a155_0x5d84=function(){return _0x2fc8a2;};return a155_0x5d84();}import{asDryRunResult}from'../../commands/common/dry-run.js';import{deleteNotificationChannelConfig,isPlatformTransportFailure,listNotificationChannelConfigs}from'../../core/api-client.js';import{notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,projectNotificationConfig,readNotificationId,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure,validateNotificationDeleteReadback}from'../../commands/notification/shared.js';function a155_0x1bd7(_0x366094,_0x5af1e5){_0x366094=_0x366094-0x1d9;const _0x5d84ad=a155_0x5d84();let _0x1bd72f=_0x5d84ad[_0x366094];return _0x1bd72f;}const DELETE_PATH=a155_0x1d2fad(0x1ec),REFERENCE_WARNING=a155_0x1d2fad(0x1e0);async function prepareDelete(_0x357706){const _0xe4aaa5=a155_0x1d2fad,_0x538d18=readNotificationId(_0x357706),_0x4551e4=await requireExactNotificationConfig(_0x357706['appCode'],_0x538d18,_0xe4aaa5(0x1e4));return{'id':_0x538d18,'before':_0x4551e4};}export const notificationConfigDelete={'service':'notification','command':'config-delete','description':a155_0x1d2fad(0x1df),'risk':'high-risk-write','requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,NOTIFICATION_APP_FLAG],async 'validate'(_0xd980ca){readNotificationId(_0xd980ca),requireNotificationExplicitYes(_0xd980ca);},async 'dryRun'(_0x2a2610){const _0x386708=a155_0x1d2fad,_0x3c6b1a=await prepareDelete(_0x2a2610),_0x43ceaa=notificationLookupCommand(_0x2a2610[_0x386708(0x1e1)],_0x3c6b1a[_0x386708(0x1ee)][_0x386708(0x1f4)]);return asDryRunResult({'operation':_0x386708(0x1e4),'selector':notificationSelector(_0x3c6b1a[_0x386708(0x1ee)]),'before':projectNotificationConfig(_0x3c6b1a[_0x386708(0x1ee)]),'after':null,'dryRun':!![],'backend':{'method':_0x386708(0x1da),'path':DELETE_PATH},'warnings':[REFERENCE_WARNING],'verification':{'status':_0x386708(0x1e9),'lookupCommand':_0x43ceaa}},{'method':_0x386708(0x1da),'url':DELETE_PATH});},async 'execute'(_0x45e309){const _0x7e483b=a155_0x1d2fad;requireNotificationExplicitYes(_0x45e309);const _0x551470=await prepareDelete(_0x45e309),_0x26f86f=notificationLookupCommand(_0x45e309[_0x7e483b(0x1e1)],_0x551470[_0x7e483b(0x1ee)]['channelType']);let _0x2d565b=![];try{await deleteNotificationChannelConfig(_0x551470['id'],_0x45e309[_0x7e483b(0x1e1)]);}catch(_0x23aebc){if(!isPlatformTransportFailure(_0x23aebc))throw safeApiFailure('delete',_0x7e483b(0x1eb),_0x7e483b(0x1f7)+_0x26f86f+_0x7e483b(0x1f3));_0x2d565b=!![];}let _0x1dbeb4;try{_0x1dbeb4=await listNotificationChannelConfigs(_0x45e309['appCode'],_0x551470[_0x7e483b(0x1ee)][_0x7e483b(0x1f4)]),validateNotificationDeleteReadback(_0x1dbeb4,_0x45e309[_0x7e483b(0x1e1)],_0x551470[_0x7e483b(0x1ee)][_0x7e483b(0x1f4)]);}catch{throw notificationError(_0x2d565b?_0x7e483b(0x1ea):'notification_config_delete_verification_unavailable','Notification\x20config\x20'+_0x551470['id']+_0x7e483b(0x1e5),'Inspect\x20with\x20'+_0x26f86f+_0x7e483b(0x1e7));}if(_0x1dbeb4['some'](_0x3603f3=>_0x3603f3['id']===_0x551470['id']))throw notificationError(_0x2d565b?_0x7e483b(0x1ea):_0x7e483b(0x1e3),'Notification\x20config\x20'+_0x551470['id']+_0x7e483b(0x1f6),'Inspect\x20with\x20'+_0x26f86f+_0x7e483b(0x1e7));const _0x163d1a=[REFERENCE_WARNING];return _0x2d565b&&_0x163d1a['unshift'](_0x7e483b(0x1de)),{'ok':!![],'data':{'operation':_0x7e483b(0x1e4),'selector':notificationSelector(_0x551470[_0x7e483b(0x1ee)]),'before':projectNotificationConfig(_0x551470[_0x7e483b(0x1ee)]),'after':null,'dryRun':![],'backend':{'method':_0x7e483b(0x1da),'path':DELETE_PATH},'warnings':_0x163d1a,'verification':{'status':_0x7e483b(0x1e6),'absenceConfirmed':!![],'recoveredAfterUnknownResponse':_0x2d565b,'lookupCommand':_0x26f86f}},'message':_0x7e483b(0x1db)+_0x551470['id']};}};
1
+ const a153_0x50af89=a153_0x45b9;function a153_0x4992(){const _0x1d816b=['1225OkiqTz','planned','412512AQLReF','Delete\x20response\x20was\x20unavailable;\x20list\x20readback\x20proved\x20ID\x20absence\x20without\x20resubmitting.','523932aSJHdP','mutation','1042156bSCxBt','high-risk-write','Inspect\x20with\x20','1750014tuOVCf','\x20delete\x20could\x20not\x20be\x20verified.','Delete\x20an\x20app-level\x20notification\x20config\x20after\x20exact\x20preflight','Deleted\x20notification\x20config\x20',';\x20do\x20not\x20resubmit\x20automatically.','Notification\x20config\x20','unshift','before','notification','306538JacWAy','POST','Deleting\x20this\x20app-level\x20config\x20may\x20make\x20dataset-level\x20channels\x20that\x20reference\x20it\x20unavailable;\x20dataset\x20references\x20were\x20not\x20verified\x20by\x20the\x20CLI.','/notification/channel-config/delete','channelType','some','\x20remains\x20present\x20after\x20delete.',';\x20no\x20automatic\x20retry\x20was\x20attempted.','17176eLerZY','1433915tADbwQ','notification_config_delete_outcome_unknown','delete','appCode','notification_config_delete_verification_failed'];a153_0x4992=function(){return _0x1d816b;};return a153_0x4992();}(function(_0x5b87ec,_0x5e6761){const _0x4e5332=a153_0x45b9,_0x296369=_0x5b87ec();while(!![]){try{const _0x17b99b=parseInt(_0x4e5332(0x1a3))/0x1+-parseInt(_0x4e5332(0x193))/0x2+parseInt(_0x4e5332(0x195))/0x3+parseInt(_0x4e5332(0x197))/0x4+parseInt(_0x4e5332(0x18c))/0x5+-parseInt(_0x4e5332(0x19a))/0x6+-parseInt(_0x4e5332(0x191))/0x7*(parseInt(_0x4e5332(0x18b))/0x8);if(_0x17b99b===_0x5e6761)break;else _0x296369['push'](_0x296369['shift']());}catch(_0x3ba912){_0x296369['push'](_0x296369['shift']());}}}(a153_0x4992,0x25ce6));function a153_0x45b9(_0x319f66,_0x203c3b){_0x319f66=_0x319f66-0x185;const _0x4992a3=a153_0x4992();let _0x45b912=_0x4992a3[_0x319f66];return _0x45b912;}import{asDryRunResult}from'../../commands/common/dry-run.js';import{deleteNotificationChannelConfig,isPlatformTransportFailure,listNotificationChannelConfigs}from'../../core/api-client.js';import{notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,projectNotificationConfig,readNotificationId,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure,validateNotificationDeleteReadback}from'../../commands/notification/shared.js';const DELETE_PATH=a153_0x50af89(0x186),REFERENCE_WARNING=a153_0x50af89(0x185);async function prepareDelete(_0x3d6b60){const _0x4f2ccf=a153_0x50af89,_0x38530a=readNotificationId(_0x3d6b60),_0x47cc8f=await requireExactNotificationConfig(_0x3d6b60[_0x4f2ccf(0x18f)],_0x38530a,_0x4f2ccf(0x18e));return{'id':_0x38530a,'before':_0x47cc8f};}export const notificationConfigDelete={'service':a153_0x50af89(0x1a2),'command':'config-delete','description':a153_0x50af89(0x19c),'risk':a153_0x50af89(0x198),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,NOTIFICATION_APP_FLAG],async 'validate'(_0x1ad15f){readNotificationId(_0x1ad15f),requireNotificationExplicitYes(_0x1ad15f);},async 'dryRun'(_0x2fa5dd){const _0x1e11e0=a153_0x50af89,_0x5f324c=await prepareDelete(_0x2fa5dd),_0x19f958=notificationLookupCommand(_0x2fa5dd[_0x1e11e0(0x18f)],_0x5f324c[_0x1e11e0(0x1a1)][_0x1e11e0(0x187)]);return asDryRunResult({'operation':_0x1e11e0(0x18e),'selector':notificationSelector(_0x5f324c[_0x1e11e0(0x1a1)]),'before':projectNotificationConfig(_0x5f324c['before']),'after':null,'dryRun':!![],'backend':{'method':_0x1e11e0(0x1a4),'path':DELETE_PATH},'warnings':[REFERENCE_WARNING],'verification':{'status':_0x1e11e0(0x192),'lookupCommand':_0x19f958}},{'method':_0x1e11e0(0x1a4),'url':DELETE_PATH});},async 'execute'(_0x27fb6e){const _0x2d17f4=a153_0x50af89;requireNotificationExplicitYes(_0x27fb6e);const _0x12a138=await prepareDelete(_0x27fb6e),_0x2e37b6=notificationLookupCommand(_0x27fb6e[_0x2d17f4(0x18f)],_0x12a138[_0x2d17f4(0x1a1)][_0x2d17f4(0x187)]);let _0x2d2b0a=![];try{await deleteNotificationChannelConfig(_0x12a138['id'],_0x27fb6e['appCode']);}catch(_0x33ad10){if(!isPlatformTransportFailure(_0x33ad10))throw safeApiFailure(_0x2d17f4(0x18e),_0x2d17f4(0x196),_0x2d17f4(0x199)+_0x2e37b6+_0x2d17f4(0x18a));_0x2d2b0a=!![];}let _0x16acbd;try{_0x16acbd=await listNotificationChannelConfigs(_0x27fb6e[_0x2d17f4(0x18f)],_0x12a138[_0x2d17f4(0x1a1)][_0x2d17f4(0x187)]),validateNotificationDeleteReadback(_0x16acbd,_0x27fb6e['appCode'],_0x12a138[_0x2d17f4(0x1a1)]['channelType']);}catch{throw notificationError(_0x2d2b0a?'notification_config_delete_outcome_unknown':'notification_config_delete_verification_unavailable',_0x2d17f4(0x19f)+_0x12a138['id']+_0x2d17f4(0x19b),_0x2d17f4(0x199)+_0x2e37b6+';\x20do\x20not\x20resubmit\x20automatically.');}if(_0x16acbd[_0x2d17f4(0x188)](_0x3a32ab=>_0x3a32ab['id']===_0x12a138['id']))throw notificationError(_0x2d2b0a?_0x2d17f4(0x18d):_0x2d17f4(0x190),_0x2d17f4(0x19f)+_0x12a138['id']+_0x2d17f4(0x189),'Inspect\x20with\x20'+_0x2e37b6+_0x2d17f4(0x19e));const _0x4ba842=[REFERENCE_WARNING];return _0x2d2b0a&&_0x4ba842[_0x2d17f4(0x1a0)](_0x2d17f4(0x194)),{'ok':!![],'data':{'operation':_0x2d17f4(0x18e),'selector':notificationSelector(_0x12a138[_0x2d17f4(0x1a1)]),'before':projectNotificationConfig(_0x12a138['before']),'after':null,'dryRun':![],'backend':{'method':'POST','path':DELETE_PATH},'warnings':_0x4ba842,'verification':{'status':'verified','absenceConfirmed':!![],'recoveredAfterUnknownResponse':_0x2d2b0a,'lookupCommand':_0x2e37b6}},'message':_0x2d17f4(0x19d)+_0x12a138['id']};}};
@@ -1 +1 @@
1
- function a156_0x3adc(_0x231321,_0x357610){_0x231321=_0x231321-0x1ee;const _0x490d81=a156_0x490d();let _0x3adc22=_0x490d81[_0x231321];return _0x3adc22;}const a156_0x32b037=a156_0x3adc;function a156_0x490d(){const _0x487873=['config-list','1314942DHKfTQ','\x20notification\x20config(s)','5454672NqYmtX','Notification\x20channel\x20type','1369461VkeJjR','2554904rJfozy','map','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','80020bpyxkl','type','4042311FQNzZz','22167162nPtIWc','1CAHrXp','Found\x20','string','144Ccypje','appCode','length','notification'];a156_0x490d=function(){return _0x487873;};return a156_0x490d();}(function(_0x2de0a5,_0x4140d4){const _0x579c66=a156_0x3adc,_0x141b97=_0x2de0a5();while(!![]){try{const _0x5a2078=-parseInt(_0x579c66(0x201))/0x1*(parseInt(_0x579c66(0x1f5))/0x2)+-parseInt(_0x579c66(0x1f9))/0x3+parseInt(_0x579c66(0x1fa))/0x4+parseInt(_0x579c66(0x1fd))/0x5*(-parseInt(_0x579c66(0x1f0))/0x6)+-parseInt(_0x579c66(0x1ff))/0x7+-parseInt(_0x579c66(0x1f7))/0x8+parseInt(_0x579c66(0x200))/0x9;if(_0x5a2078===_0x4140d4)break;else _0x141b97['push'](_0x141b97['shift']());}catch(_0x3f203c){_0x141b97['push'](_0x141b97['shift']());}}}(a156_0x490d,0x5413f));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listNotificationChannelConfigs}from'../../core/api-client.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':a156_0x32b037(0x1f3),'command':a156_0x32b037(0x1f4),'description':a156_0x32b037(0x1fc),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':a156_0x32b037(0x1fe),'type':a156_0x32b037(0x1ef),'description':a156_0x32b037(0x1f8),'enum':NOTIFICATION_CHANNEL_TYPES,'default':'EMAIL'}],async 'validate'(_0x53f775){readNotificationChannelType(_0x53f775);},async 'execute'(_0x49f54d){const _0x9cb5d1=a156_0x32b037,_0x10a114=readNotificationChannelType(_0x49f54d),_0x5a3385=await listNotificationChannelConfigs(_0x49f54d['appCode'],_0x10a114),_0x5bece6=_0x5a3385[_0x9cb5d1(0x1fb)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x49f54d[_0x9cb5d1(0x1f1)],'channelType':_0x10a114,'count':_0x5bece6[_0x9cb5d1(0x1f2)],'configs':_0x5bece6},'message':_0x9cb5d1(0x1ee)+_0x5bece6[_0x9cb5d1(0x1f2)]+'\x20'+_0x10a114+_0x9cb5d1(0x1f6)};}};
1
+ const a154_0x4571cf=a154_0x3652;function a154_0x5b2d(){const _0x8ab113=['9IIYXkW','8403ejMUdq','13393890cHIDjM','string','config-list','length','1246555OyYAuE','862316OCLBSx','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','read','250952oKqiRJ','type','EMAIL','Found\x20','appCode','notification','273xEhwfc','12334531YQTiwK','Notification\x20channel\x20type','2583454TlkGgd','map','30yPLNxL','1388UasUxz'];a154_0x5b2d=function(){return _0x8ab113;};return a154_0x5b2d();}(function(_0x371813,_0x1302db){const _0x1df3c7=a154_0x3652,_0x179194=_0x371813();while(!![]){try{const _0x50ee61=parseInt(_0x1df3c7(0xdd))/0x1+parseInt(_0x1df3c7(0xd2))/0x2+parseInt(_0x1df3c7(0xd7))/0x3*(-parseInt(_0x1df3c7(0xd5))/0x4)+-parseInt(_0x1df3c7(0xdc))/0x5*(parseInt(_0x1df3c7(0xd4))/0x6)+parseInt(_0x1df3c7(0xcf))/0x7*(parseInt(_0x1df3c7(0xe0))/0x8)+parseInt(_0x1df3c7(0xd6))/0x9*(-parseInt(_0x1df3c7(0xd8))/0xa)+parseInt(_0x1df3c7(0xd0))/0xb;if(_0x50ee61===_0x1302db)break;else _0x179194['push'](_0x179194['shift']());}catch(_0x51bf04){_0x179194['push'](_0x179194['shift']());}}}(a154_0x5b2d,0xe5b40));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listNotificationChannelConfigs}from'../../core/api-client.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';function a154_0x3652(_0x32041d,_0x20e51b){_0x32041d=_0x32041d-0xcd;const _0x5b2dcf=a154_0x5b2d();let _0x365275=_0x5b2dcf[_0x32041d];return _0x365275;}export const notificationConfigList={'service':a154_0x4571cf(0xce),'command':a154_0x4571cf(0xda),'description':a154_0x4571cf(0xde),'risk':a154_0x4571cf(0xdf),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a154_0x4571cf(0xe1),'type':a154_0x4571cf(0xd9),'description':a154_0x4571cf(0xd1),'enum':NOTIFICATION_CHANNEL_TYPES,'default':a154_0x4571cf(0xe2)}],async 'validate'(_0x269de9){readNotificationChannelType(_0x269de9);},async 'execute'(_0x426af7){const _0x1849df=a154_0x4571cf,_0x32939c=readNotificationChannelType(_0x426af7),_0x25a160=await listNotificationChannelConfigs(_0x426af7['appCode'],_0x32939c),_0x587b22=_0x25a160[_0x1849df(0xd3)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x426af7[_0x1849df(0xcd)],'channelType':_0x32939c,'count':_0x587b22[_0x1849df(0xdb)],'configs':_0x587b22},'message':_0x1849df(0xe3)+_0x587b22[_0x1849df(0xdb)]+'\x20'+_0x32939c+'\x20notification\x20config(s)'};}};
@@ -1 +1 @@
1
- const a157_0x5e1f72=a157_0xc996;(function(_0xea560e,_0x526ff0){const _0x22435e=a157_0xc996,_0x43b654=_0xea560e();while(!![]){try{const _0x5cf8af=-parseInt(_0x22435e(0xe0))/0x1+-parseInt(_0x22435e(0xda))/0x2+-parseInt(_0x22435e(0xd4))/0x3+parseInt(_0x22435e(0xe5))/0x4+parseInt(_0x22435e(0xd6))/0x5+parseInt(_0x22435e(0xe9))/0x6+parseInt(_0x22435e(0xd5))/0x7*(parseInt(_0x22435e(0xde))/0x8);if(_0x5cf8af===_0x526ff0)break;else _0x43b654['push'](_0x43b654['shift']());}catch(_0x59c6e2){_0x43b654['push'](_0x43b654['shift']());}}}(a157_0x2f2e,0x8f8ed));import{asDryRunResult}from'../../commands/common/dry-run.js';import{getNotificationChannelConfig,isPlatformTransportFailure,updateNotificationChannelConfig}from'../../core/api-client.js';function a157_0x2f2e(){const _0x159da7=['670029tEnWey','124901xHnykB','1906985gmKDpq','notification_config_update_outcome_unknown','appCode','\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20update.','1795270zLDVay','Updated\x20notification\x20config\x20','verifiedFields','allMatch','368PgLtkO','payload','654997LBnyrD','notification_config_update_verification_unavailable','channelType','high-risk-write','POST','1466348yZDBjn','Notification\x20config\x20','Inspect\x20ID\x20','\x20update\x20could\x20not\x20be\x20verified\x20by\x20exact\x20ID.','4771356czBQFo','update','Inspect\x20with\x20--id\x20','Update\x20response\x20was\x20unavailable;\x20exact-ID\x20readback\x20proved\x20changed\x20safe\x20fields\x20without\x20resubmitting.','mutation',';\x20do\x20not\x20resubmit\x20automatically.','before','planned','\x20via\x20','provesChange','\x20with\x20','config-update','notification'];a157_0x2f2e=function(){return _0x159da7;};return a157_0x2f2e();}function a157_0xc996(_0x2b7c8f,_0x39f295){_0x2b7c8f=_0x2b7c8f-0xd0;const _0x2f2eda=a157_0x2f2e();let _0xc996ec=_0x2f2eda[_0x2b7c8f];return _0xc996ec;}import{assertSingleNotificationSource,mergeUpdateInput,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,NOTIFICATION_INPUT_FLAGS,plannedUpdateProjection,projectNotificationConfig,readNotificationDocument,readNotificationId,requestedSafeFieldsMatch,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure}from'../../commands/notification/shared.js';const UPDATE_PATH='/notification/channel-config/update';async function prepareUpdate(_0x952364){const _0xe2c05c=a157_0xc996,_0x25b55e=readNotificationId(_0x952364),_0x23d63c=await readNotificationDocument(_0x952364,_0xe2c05c(0xea)),_0x2038fc=await requireExactNotificationConfig(_0x952364['appCode'],_0x25b55e,_0xe2c05c(0xea));return{'id':_0x25b55e,'patch':_0x23d63c,'before':_0x2038fc,'payload':mergeUpdateInput(_0x2038fc,_0x23d63c),'planned':plannedUpdateProjection(_0x2038fc,_0x23d63c)};}export const notificationConfigUpdate={'service':a157_0x5e1f72(0xd3),'command':a157_0x5e1f72(0xd2),'description':'Update\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20patch','risk':a157_0x5e1f72(0xe3),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x4b7c72){readNotificationId(_0x4b7c72),assertSingleNotificationSource(_0x4b7c72),requireNotificationExplicitYes(_0x4b7c72);},async 'dryRun'(_0x2dadf9){const _0x5eefbc=a157_0x5e1f72,_0x4f85be=await prepareUpdate(_0x2dadf9),_0x195859=notificationLookupCommand(_0x2dadf9['appCode'],_0x4f85be[_0x5eefbc(0xef)][_0x5eefbc(0xe2)]);return asDryRunResult({'operation':_0x5eefbc(0xea),'selector':notificationSelector(_0x4f85be[_0x5eefbc(0xef)]),'before':projectNotificationConfig(_0x4f85be[_0x5eefbc(0xef)]),'after':_0x4f85be[_0x5eefbc(0xf0)],'dryRun':!![],'backend':{'method':_0x5eefbc(0xe4),'path':UPDATE_PATH},'warnings':[],'verification':{'status':_0x5eefbc(0xf0),'lookupCommand':_0x195859}},{'method':_0x5eefbc(0xe4),'url':UPDATE_PATH});},async 'execute'(_0x4d8bf6){const _0x4189be=a157_0x5e1f72;requireNotificationExplicitYes(_0x4d8bf6);const _0x279225=await prepareUpdate(_0x4d8bf6),_0x4ba583=notificationLookupCommand(_0x4d8bf6[_0x4189be(0xd8)],_0x279225[_0x4189be(0xef)]['channelType']);let _0x154aba=![];try{await updateNotificationChannelConfig(_0x279225[_0x4189be(0xdf)]);}catch(_0x4689c9){if(!isPlatformTransportFailure(_0x4689c9))throw safeApiFailure(_0x4189be(0xea),_0x4189be(0xed),_0x4189be(0xe7)+_0x279225['id']+_0x4189be(0xd1)+_0x4ba583+';\x20no\x20automatic\x20retry\x20was\x20attempted.');_0x154aba=!![];}let _0x5673dd;try{const _0x1b7d0f=await getNotificationChannelConfig(_0x279225['id'],_0x4d8bf6[_0x4189be(0xd8)]);_0x5673dd=normalizeExactNotificationConfig(_0x1b7d0f,_0x279225['id'],_0x4d8bf6[_0x4189be(0xd8)]);}catch{throw notificationError(_0x154aba?_0x4189be(0xd7):_0x4189be(0xe1),_0x4189be(0xe6)+_0x279225['id']+_0x4189be(0xe8),_0x4189be(0xeb)+_0x279225['id']+_0x4189be(0xf1)+_0x4ba583+_0x4189be(0xee));}const _0x6dabf7=requestedSafeFieldsMatch(_0x279225[_0x4189be(0xef)],_0x5673dd,_0x279225['patch']);if(!_0x6dabf7[_0x4189be(0xdd)]||_0x154aba&&!_0x6dabf7[_0x4189be(0xd0)])throw notificationError(_0x154aba?'notification_config_update_outcome_unknown':'notification_config_update_verification_failed',_0x4189be(0xe6)+_0x279225['id']+_0x4189be(0xd9),_0x4189be(0xeb)+_0x279225['id']+_0x4189be(0xf1)+_0x4ba583+';\x20do\x20not\x20resubmit\x20automatically.');const _0x4c083f=_0x154aba?[_0x4189be(0xec)]:[];return{'ok':!![],'data':{'operation':_0x4189be(0xea),'selector':notificationSelector(_0x5673dd),'before':projectNotificationConfig(_0x279225[_0x4189be(0xef)]),'after':projectNotificationConfig(_0x5673dd),'dryRun':![],'backend':{'method':'POST','path':UPDATE_PATH},'warnings':_0x4c083f,'verification':{'status':'verified','recoveredAfterUnknownResponse':_0x154aba,'verifiedFields':_0x6dabf7[_0x4189be(0xdc)],'lookupCommand':_0x4ba583}},'message':_0x4189be(0xdb)+_0x5673dd['id']};}};
1
+ const a155_0x164462=a155_0x510a;(function(_0x3797b6,_0x305b46){const _0x4eb463=a155_0x510a,_0x1139d3=_0x3797b6();while(!![]){try{const _0x7ded15=parseInt(_0x4eb463(0x16f))/0x1*(parseInt(_0x4eb463(0x177))/0x2)+-parseInt(_0x4eb463(0x169))/0x3+-parseInt(_0x4eb463(0x17c))/0x4*(parseInt(_0x4eb463(0x17a))/0x5)+parseInt(_0x4eb463(0x16b))/0x6+parseInt(_0x4eb463(0x184))/0x7*(parseInt(_0x4eb463(0x179))/0x8)+-parseInt(_0x4eb463(0x188))/0x9+-parseInt(_0x4eb463(0x178))/0xa*(parseInt(_0x4eb463(0x180))/0xb);if(_0x7ded15===_0x305b46)break;else _0x1139d3['push'](_0x1139d3['shift']());}catch(_0x112d8d){_0x1139d3['push'](_0x1139d3['shift']());}}}(a155_0x18fa,0x60617));import{asDryRunResult}from'../../commands/common/dry-run.js';function a155_0x510a(_0x27b9df,_0x4d2261){_0x27b9df=_0x27b9df-0x166;const _0x18fa75=a155_0x18fa();let _0x510ae6=_0x18fa75[_0x27b9df];return _0x510ae6;}import{getNotificationChannelConfig,isPlatformTransportFailure,updateNotificationChannelConfig}from'../../core/api-client.js';import{assertSingleNotificationSource,mergeUpdateInput,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,NOTIFICATION_INPUT_FLAGS,plannedUpdateProjection,projectNotificationConfig,readNotificationDocument,readNotificationId,requestedSafeFieldsMatch,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure}from'../../commands/notification/shared.js';const UPDATE_PATH='/notification/channel-config/update';async function prepareUpdate(_0xf767ef){const _0x38b6fc=a155_0x510a,_0x187f8e=readNotificationId(_0xf767ef),_0x2d9de1=await readNotificationDocument(_0xf767ef,'update'),_0x35611b=await requireExactNotificationConfig(_0xf767ef[_0x38b6fc(0x173)],_0x187f8e,_0x38b6fc(0x181));return{'id':_0x187f8e,'patch':_0x2d9de1,'before':_0x35611b,'payload':mergeUpdateInput(_0x35611b,_0x2d9de1),'planned':plannedUpdateProjection(_0x35611b,_0x2d9de1)};}function a155_0x18fa(){const _0x2fcb3c=['\x20update\x20could\x20not\x20be\x20verified\x20by\x20exact\x20ID.','notification_config_update_verification_failed','notification_config_update_outcome_unknown','665457AWywTb','config-update','4094598fasmrV','patch','POST','high-risk-write','2xvlZPg','\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20update.','\x20via\x20','Notification\x20config\x20','appCode','Updated\x20notification\x20config\x20','planned',';\x20do\x20not\x20resubmit\x20automatically.','313576JllKRL','3617170IHYYmZ','26504IGYQGR','3035HBHLLJ','channelType','692SXbPNE','payload','Update\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20patch','before','11ZUiskQ','update','notification_config_update_verification_unavailable',';\x20no\x20automatic\x20retry\x20was\x20attempted.','987DVdZin','allMatch','Update\x20response\x20was\x20unavailable;\x20exact-ID\x20readback\x20proved\x20changed\x20safe\x20fields\x20without\x20resubmitting.','Inspect\x20with\x20--id\x20','3418380gHjHkx','mutation'];a155_0x18fa=function(){return _0x2fcb3c;};return a155_0x18fa();}export const notificationConfigUpdate={'service':'notification','command':a155_0x164462(0x16a),'description':a155_0x164462(0x17e),'risk':a155_0x164462(0x16e),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x2efbae){readNotificationId(_0x2efbae),assertSingleNotificationSource(_0x2efbae),requireNotificationExplicitYes(_0x2efbae);},async 'dryRun'(_0x2f6b5c){const _0x44266f=a155_0x164462,_0x1ff88f=await prepareUpdate(_0x2f6b5c),_0x54cb75=notificationLookupCommand(_0x2f6b5c['appCode'],_0x1ff88f[_0x44266f(0x17f)][_0x44266f(0x17b)]);return asDryRunResult({'operation':_0x44266f(0x181),'selector':notificationSelector(_0x1ff88f[_0x44266f(0x17f)]),'before':projectNotificationConfig(_0x1ff88f['before']),'after':_0x1ff88f[_0x44266f(0x175)],'dryRun':!![],'backend':{'method':_0x44266f(0x16d),'path':UPDATE_PATH},'warnings':[],'verification':{'status':_0x44266f(0x175),'lookupCommand':_0x54cb75}},{'method':'POST','url':UPDATE_PATH});},async 'execute'(_0x375686){const _0x1ea25c=a155_0x164462;requireNotificationExplicitYes(_0x375686);const _0x1808dd=await prepareUpdate(_0x375686),_0x56857d=notificationLookupCommand(_0x375686[_0x1ea25c(0x173)],_0x1808dd[_0x1ea25c(0x17f)][_0x1ea25c(0x17b)]);let _0x2ea5c6=![];try{await updateNotificationChannelConfig(_0x1808dd[_0x1ea25c(0x17d)]);}catch(_0x4cd47f){if(!isPlatformTransportFailure(_0x4cd47f))throw safeApiFailure(_0x1ea25c(0x181),_0x1ea25c(0x189),'Inspect\x20ID\x20'+_0x1808dd['id']+'\x20with\x20'+_0x56857d+_0x1ea25c(0x183));_0x2ea5c6=!![];}let _0x46419a;try{const _0x5633b9=await getNotificationChannelConfig(_0x1808dd['id'],_0x375686[_0x1ea25c(0x173)]);_0x46419a=normalizeExactNotificationConfig(_0x5633b9,_0x1808dd['id'],_0x375686[_0x1ea25c(0x173)]);}catch{throw notificationError(_0x2ea5c6?_0x1ea25c(0x168):_0x1ea25c(0x182),_0x1ea25c(0x172)+_0x1808dd['id']+_0x1ea25c(0x166),_0x1ea25c(0x187)+_0x1808dd['id']+_0x1ea25c(0x171)+_0x56857d+_0x1ea25c(0x176));}const _0x109917=requestedSafeFieldsMatch(_0x1808dd[_0x1ea25c(0x17f)],_0x46419a,_0x1808dd[_0x1ea25c(0x16c)]);if(!_0x109917[_0x1ea25c(0x185)]||_0x2ea5c6&&!_0x109917['provesChange'])throw notificationError(_0x2ea5c6?_0x1ea25c(0x168):_0x1ea25c(0x167),_0x1ea25c(0x172)+_0x1808dd['id']+_0x1ea25c(0x170),_0x1ea25c(0x187)+_0x1808dd['id']+_0x1ea25c(0x171)+_0x56857d+_0x1ea25c(0x176));const _0x7bc53f=_0x2ea5c6?[_0x1ea25c(0x186)]:[];return{'ok':!![],'data':{'operation':_0x1ea25c(0x181),'selector':notificationSelector(_0x46419a),'before':projectNotificationConfig(_0x1808dd[_0x1ea25c(0x17f)]),'after':projectNotificationConfig(_0x46419a),'dryRun':![],'backend':{'method':_0x1ea25c(0x16d),'path':UPDATE_PATH},'warnings':_0x7bc53f,'verification':{'status':'verified','recoveredAfterUnknownResponse':_0x2ea5c6,'verifiedFields':_0x109917['verifiedFields'],'lookupCommand':_0x56857d}},'message':_0x1ea25c(0x174)+_0x46419a['id']};}};
@@ -1 +1 @@
1
- (function(_0x50f208,_0xc73723){const _0x5bd8b8=a158_0x42de,_0x3e0590=_0x50f208();while(!![]){try{const _0x1e1c28=parseInt(_0x5bd8b8(0xc9))/0x1*(-parseInt(_0x5bd8b8(0xca))/0x2)+-parseInt(_0x5bd8b8(0xc2))/0x3+-parseInt(_0x5bd8b8(0xc5))/0x4+parseInt(_0x5bd8b8(0xc7))/0x5*(parseInt(_0x5bd8b8(0xc8))/0x6)+parseInt(_0x5bd8b8(0xc4))/0x7+-parseInt(_0x5bd8b8(0xc6))/0x8+-parseInt(_0x5bd8b8(0xcb))/0x9*(-parseInt(_0x5bd8b8(0xc3))/0xa);if(_0x1e1c28===_0xc73723)break;else _0x3e0590['push'](_0x3e0590['shift']());}catch(_0x15d9aa){_0x3e0590['push'](_0x3e0590['shift']());}}}(a158_0x49f9,0xd7100));import{notificationConfigList}from'../../commands/notification/config-list.js';function a158_0x49f9(){const _0x4d327b=['4880250erQqgs','2500230sIOKRq','5753797NXXkSx','5167108NzdRzT','8362568IsewOW','165HCeXdC','274674YHjJvX','7shADbo','353794zFnkVF','135SHesVX'];a158_0x49f9=function(){return _0x4d327b;};return a158_0x49f9();}import{notificationConfigCreate}from'../../commands/notification/config-create.js';import{notificationConfigUpdate}from'../../commands/notification/config-update.js';import{notificationConfigDelete}from'../../commands/notification/config-delete.js';function a158_0x42de(_0x25f9c8,_0x277003){_0x25f9c8=_0x25f9c8-0xc2;const _0x49f92a=a158_0x49f9();let _0x42de2e=_0x49f92a[_0x25f9c8];return _0x42de2e;}export const notificationDefinitions=[notificationConfigList,notificationConfigCreate,notificationConfigUpdate,notificationConfigDelete];
1
+ (function(_0x380c74,_0x203f29){const _0x47ed4c=a156_0x1e7e,_0x5c22b9=_0x380c74();while(!![]){try{const _0x26302c=parseInt(_0x47ed4c(0x95))/0x1+-parseInt(_0x47ed4c(0x91))/0x2+parseInt(_0x47ed4c(0x8f))/0x3+-parseInt(_0x47ed4c(0x8e))/0x4+parseInt(_0x47ed4c(0x92))/0x5+-parseInt(_0x47ed4c(0x94))/0x6*(parseInt(_0x47ed4c(0x93))/0x7)+parseInt(_0x47ed4c(0x90))/0x8;if(_0x26302c===_0x203f29)break;else _0x5c22b9['push'](_0x5c22b9['shift']());}catch(_0x16459d){_0x5c22b9['push'](_0x5c22b9['shift']());}}}(a156_0x4e30,0xb41be));import{notificationConfigList}from'../../commands/notification/config-list.js';import{notificationConfigCreate}from'../../commands/notification/config-create.js';import{notificationConfigUpdate}from'../../commands/notification/config-update.js';import{notificationConfigDelete}from'../../commands/notification/config-delete.js';function a156_0x4e30(){const _0x423a1a=['435066KIOkwT','10989904ODLDBL','2282220LArFth','5106550zhPbhF','56qjgMRl','637122zOsjIV','933977fppeRe','2982860HzIYms'];a156_0x4e30=function(){return _0x423a1a;};return a156_0x4e30();}function a156_0x1e7e(_0x1709ba,_0x2a4ae8){_0x1709ba=_0x1709ba-0x8e;const _0x4e3048=a156_0x4e30();let _0x1e7ea3=_0x4e3048[_0x1709ba];return _0x1e7ea3;}export const notificationDefinitions=[notificationConfigList,notificationConfigCreate,notificationConfigUpdate,notificationConfigDelete];