@lovrabet/rabetbase-cli 2.5.2-beta.6 → 2.5.2-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4ec29e,_0x31e2e0){const _0x509dcd=a145_0xa424,_0x4d9505=_0x4ec29e();while(!![]){try{const _0x58f1be=-parseInt(_0x509dcd(0x87))/0x1*(-parseInt(_0x509dcd(0x86))/0x2)+parseInt(_0x509dcd(0x7e))/0x3+parseInt(_0x509dcd(0x79))/0x4+parseInt(_0x509dcd(0x8b))/0x5*(-parseInt(_0x509dcd(0x9f))/0x6)+parseInt(_0x509dcd(0x9a))/0x7+-parseInt(_0x509dcd(0x9b))/0x8*(parseInt(_0x509dcd(0x8f))/0x9)+parseInt(_0x509dcd(0x99))/0xa*(-parseInt(_0x509dcd(0x89))/0xb);if(_0x58f1be===_0x31e2e0)break;else _0x4d9505['push'](_0x4d9505['shift']());}catch(_0x23ae45){_0x4d9505['push'](_0x4d9505['shift']());}}}(a145_0x3df4,0x808a5));function a145_0xa424(_0x218bfb,_0x3f79e5){_0x218bfb=_0x218bfb-0x78;const _0x3df4d9=a145_0x3df4();let _0xa424f8=_0x3df4d9[_0x218bfb];return _0xa424f8;}import{getEnv,isProduction}from'../../../constant/env.js';import{logger}from'../../../utils/logger.js';import{fetchMenuSnapshot,toProcessedMenuItem}from'../../../commands/menu/shared/facts.js';function a145_0x3df4(){const _0x282216=['map','Update\x20menu\x20','24qGEhGb','Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20','Updating\x20menu\x20asset\x20links:\x20','2980328AXStrm','loadScriptMode','Creating\x20menu:\x20','menuGroups','Menu\x20created\x20successfully:\x20','2079294ZWPxZD','Batch\x20menu\x20creation\x20completed,\x20total\x20','stringify','all','path','total','import','\x20online\x20menus\x20successfully','14BFKfuW','70039msUHRX','procode','1393733cEUDpm','Fetching\x20online\x20menu\x20list...\x20(appCode:\x20','944950iNzPuB','create-menu','Create\x20menu\x20\x22','Menu\x20assets\x20synced:\x20','751419nSkbni','resources','get-online-menu-list','info','label','Fetched\x20','Update\x20menu\x20assets\x20\x22','length','extend','update-menu-cdn-url','30YpKYgS','2229878eOBedK','56BQfaWS','Regroup\x20'];a145_0x3df4=function(){return _0x282216;};return a145_0x3df4();}import{batchDeleteMenuRecords,createMenuRecord,startMenuRegroup as a145_0x37cee4,updateMenuRecord}from'../../../core/api-client.js';export async function getOnlineMenuList(_0x258f00,_0x21bd47){const _0x46a79c=a145_0xa424,_0xfedf42=getEnv();logger[_0x46a79c(0x92)](_0x46a79c(0x91),isProduction(_0xfedf42)?_0x46a79c(0x8a)+_0x258f00+')':_0x46a79c(0xa0)+_0x258f00+')');const _0x5d108b=await fetchMenuSnapshot(_0x258f00,_0x21bd47,{'verbose':!![]});return logger[_0x46a79c(0x92)](_0x46a79c(0x91),_0x46a79c(0x94)+_0x5d108b[_0x46a79c(0x83)]+_0x46a79c(0x85)),_0x5d108b['menus']['map'](toProcessedMenuItem);}export async function createMenu(_0x23f1bc,_0x1eb110,_0x4ee303){const _0x97299e=a145_0xa424;logger[_0x97299e(0x92)]('create-menu',_0x97299e(0x7b)+_0x4ee303[_0x97299e(0x93)]+'\x20('+_0x4ee303[_0x97299e(0x82)]+')');const _0x3bcd64={'appCode':_0x23f1bc,'type':'procode','sort':0x0,'extend':{'loadScriptMode':_0x97299e(0x84),'resources':_0x4ee303['resources']?JSON[_0x97299e(0x80)](_0x4ee303[_0x97299e(0x90)]):undefined},..._0x4ee303},_0x34944a=await createMenuRecord(_0x3bcd64,_0x1eb110,_0x97299e(0x8d)+_0x4ee303[_0x97299e(0x93)]+'\x22');return logger['info'](_0x97299e(0x8c),_0x97299e(0x7d)+_0x4ee303[_0x97299e(0x93)]),_0x34944a;}async function createSingleMenu(_0x428942,_0x1c1f81,_0xb1d888,_0x19da86){const _0x2fdb2b=a145_0xa424,_0x50a5ef={'appCode':_0x428942,'type':_0x2fdb2b(0x88),'sort':0x0,'extend':{'loadScriptMode':_0x2fdb2b(0x84),'resources':_0x19da86?JSON[_0x2fdb2b(0x80)](_0x19da86):undefined},'label':_0xb1d888[_0x2fdb2b(0x93)],'path':_0xb1d888['path']},_0x3f9b24=await createMenuRecord(_0x50a5ef,_0x1c1f81,_0x2fdb2b(0x8d)+_0xb1d888[_0x2fdb2b(0x93)]+'\x22');return logger[_0x2fdb2b(0x92)](_0x2fdb2b(0x8c),_0x2fdb2b(0x7d)+_0xb1d888[_0x2fdb2b(0x93)]),_0x3f9b24;}export async function createMenus(_0x2d7fa7,_0x892be2,_0x40891a,_0x5a0d81){const _0x423d3a=a145_0xa424;logger[_0x423d3a(0x92)]('create-menus','Start\x20batch\x20menu\x20creation,\x20total\x20'+_0x40891a['length']);const _0x352f8a=await Promise[_0x423d3a(0x81)](_0x40891a[_0x423d3a(0x9d)](_0x310f93=>createSingleMenu(_0x2d7fa7,_0x892be2,_0x310f93,_0x5a0d81)));return logger[_0x423d3a(0x92)]('create-menus',_0x423d3a(0x7f)+_0x40891a[_0x423d3a(0x96)]),_0x352f8a;}export async function updateMenuCdnUrl(_0x43b342,_0x250ef8,_0x529b73){const _0x2e8b93=a145_0xa424;logger['info'](_0x2e8b93(0x98),_0x2e8b93(0x78)+_0x529b73[_0x2e8b93(0x93)]+'\x20('+_0x529b73[_0x2e8b93(0x82)]+')');const _0x5b526f={'id':_0x529b73['id'],'appCode':_0x43b342,'extend':{..._0x529b73[_0x2e8b93(0x97)]??{},..._0x529b73[_0x2e8b93(0x7a)]?{'loadScriptMode':_0x529b73['loadScriptMode']}:{},'resources':_0x529b73[_0x2e8b93(0x90)]?JSON['stringify'](_0x529b73[_0x2e8b93(0x90)]):undefined}},_0x1fb718=await updateMenuRecord(_0x5b526f,_0x250ef8,_0x2e8b93(0x95)+_0x529b73['label']+'\x22');return logger[_0x2e8b93(0x92)](_0x2e8b93(0x98),_0x2e8b93(0x8e)+_0x529b73[_0x2e8b93(0x93)],undefined),_0x1fb718;}export async function createMenuEntity(_0x561fd9,_0x5e6ecc,_0x287092){const _0x314280=a145_0xa424;return createMenuRecord({'appCode':_0x561fd9,..._0x287092},_0x5e6ecc,_0x314280(0x8d)+_0x287092[_0x314280(0x93)]+'\x22');}export async function updateMenuEntity(_0x1c134c,_0x255981,_0x3c79b2){const _0x1efe18=a145_0xa424;return updateMenuRecord({'appCode':_0x1c134c,..._0x3c79b2},_0x255981,_0x1efe18(0x9e)+_0x3c79b2['id']);}export async function batchDeleteMenuEntities(_0xfaa046,_0xa56bb5){const _0x516850=a145_0xa424;return batchDeleteMenuRecords(_0xa56bb5,_0xfaa046,'Delete\x20'+_0xa56bb5[_0x516850(0x96)]+'\x20menu'+(_0xa56bb5['length']===0x1?'':'s'));}export async function startMenuRegroup(_0x5f3818,_0x938667){const _0x3f0c7f=a145_0xa424;return a145_0x37cee4(_0x938667,_0x5f3818,_0x3f0c7f(0x9c)+_0x938667[_0x3f0c7f(0x7c)][_0x3f0c7f(0x96)]+'\x20menu\x20group(s)');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a146_0x677ef2=a146_0x1376;function a146_0x1376(_0x153a53,_0x39748d){_0x153a53=_0x153a53-0x94;const _0x260058=a146_0x2600();let _0x13768c=_0x260058[_0x153a53];return _0x13768c;}(function(_0x1ec6eb,_0x4a7203){const _0x2ebe4c=a146_0x1376,_0x973d8b=_0x1ec6eb();while(!![]){try{const _0x1d13f7=parseInt(_0x2ebe4c(0x97))/0x1+-parseInt(_0x2ebe4c(0xa9))/0x2*(parseInt(_0x2ebe4c(0x9e))/0x3)+-parseInt(_0x2ebe4c(0xb1))/0x4+-parseInt(_0x2ebe4c(0xa1))/0x5+parseInt(_0x2ebe4c(0xba))/0x6+parseInt(_0x2ebe4c(0xc1))/0x7+parseInt(_0x2ebe4c(0xaf))/0x8;if(_0x1d13f7===_0x4a7203)break;else _0x973d8b['push'](_0x973d8b['shift']());}catch(_0x52faf2){_0x973d8b['push'](_0x973d8b['shift']());}}}(a146_0x2600,0x44e9e));import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';import{getOnlineMenuList,createMenus}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';import{logger}from'../../../utils/logger.js';const MENU_SYNC_PARAM_KEYS=new Set(['jsUrl',a146_0x677ef2(0xb0)]);function validateParams(_0x43516d){const _0x17c132=a146_0x677ef2,_0x40050e=[];return _0x43516d[_0x17c132(0xb9)]&&!isValidJsHttpsUrl(_0x43516d['jsUrl'])&&_0x40050e['push']({'field':_0x17c132(0xb9),'message':'JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'}),_0x43516d[_0x17c132(0xb0)]&&!isValidCssHttpsUrl(_0x43516d[_0x17c132(0xb0)])&&_0x40050e['push']({'field':_0x17c132(0xb0),'message':_0x17c132(0xa8)}),_0x40050e;}export async function runMenuSyncCore(_0x3e8210,_0x616b6b,_0x2c993f=[],_0x4aa926,_0x3ffc86={}){const _0x3c6d7b=a146_0x677ef2,_0x3ce872=parseMenuSyncParams(_0x4aa926),_0x5ecb29=[...new Set(_0x2c993f[_0x3c6d7b(0xa3)](_0xe80b04=>_0xe80b04['trim']())['filter'](Boolean))],_0x27b3d5=_0x3ce872[_0x3c6d7b(0xb9)],_0x5e3be7=_0x3ce872['cssUrl'],_0x541fbd=[];if(_0x27b3d5)_0x541fbd[_0x3c6d7b(0x9f)](_0x27b3d5);if(_0x5e3be7)_0x541fbd[_0x3c6d7b(0x9f)](_0x5e3be7);const _0x5cf504=validateParams(_0x3ce872);if(_0x5cf504[_0x3c6d7b(0xa6)]>0x0){const _0x41df90=_0x5cf504[_0x3c6d7b(0xa3)](_0x3a59f3=>_0x3c6d7b(0xbb)+_0x3a59f3[_0x3c6d7b(0xbc)]+':\x20'+_0x3a59f3[_0x3c6d7b(0xc0)])[_0x3c6d7b(0xbd)](';\x20');throw new Error('Invalid\x20--params:\x20'+_0x41df90);}logger['setLogPath'](process[_0x3c6d7b(0xb3)]()),logger[_0x3c6d7b(0xa4)](_0x3c6d7b(0x96),_0x3c6d7b(0xc2),{'appCode':_0x3e8210,'selectedCount':_0x5ecb29[_0x3c6d7b(0xa6)],'jsUrl':_0x27b3d5,'cssUrl':_0x5e3be7});if(_0x27b3d5){const _0x2396e4=await isUrlReachable(_0x27b3d5);if(!_0x2396e4)throw new Error(_0x3c6d7b(0x9c)+_0x27b3d5);}if(_0x5e3be7){const _0x52acfb=await isUrlReachable(_0x5e3be7);if(!_0x52acfb)throw new Error(_0x3c6d7b(0xa5)+_0x5e3be7);}const _0x57ac20=getLocalPages();if(_0x57ac20[_0x3c6d7b(0xa6)]===0x0){if(_0x5ecb29[_0x3c6d7b(0xa6)]>0x0)throw new Error(_0x3c6d7b(0xa0)+_0x5ecb29[_0x3c6d7b(0xbd)](',\x20'));return{'created':0x0,'skipped':!![],'dryRun':_0x3ffc86[_0x3c6d7b(0xae)]===!![],'targetPages':[],'plannedMenus':[]};}const _0x323fcf=await getOnlineMenuList(_0x3e8210,_0x616b6b),_0x1a32e8=new Set(_0x323fcf[_0x3c6d7b(0xa3)](_0xa4e7bc=>_0xa4e7bc[_0x3c6d7b(0xb7)]));let _0x112f39;if(_0x5ecb29['length']>0x0){const _0x25da45=new Map(_0x57ac20[_0x3c6d7b(0xa3)](_0x2663e4=>[_0x2663e4['path'],_0x2663e4])),_0x5c55f6=_0x5ecb29[_0x3c6d7b(0xa2)](_0x5dc6dc=>!_0x25da45[_0x3c6d7b(0xb4)](_0x5dc6dc));if(_0x5c55f6['length']>0x0){const _0x2b73fc=_0x57ac20[_0x3c6d7b(0xa3)](_0x1dda15=>_0x1dda15[_0x3c6d7b(0xb7)])[_0x3c6d7b(0xbd)](',\x20');throw new Error('No\x20local\x20pages\x20matched\x20paths:\x20'+_0x5c55f6[_0x3c6d7b(0xbd)](',\x20')+_0x3c6d7b(0xac)+_0x2b73fc);}const _0x5215ae=_0x5ecb29['filter'](_0x5eb2f3=>_0x1a32e8[_0x3c6d7b(0xb4)](_0x5eb2f3));if(_0x5215ae['length']>0x0)throw new Error(_0x3c6d7b(0xb6)+_0x5215ae[_0x3c6d7b(0xbd)](',\x20'));_0x112f39=_0x5ecb29[_0x3c6d7b(0xa3)](_0x24ab6c=>_0x25da45[_0x3c6d7b(0xa7)](_0x24ab6c));}else _0x112f39=_0x57ac20[_0x3c6d7b(0xa2)](_0x3dc3f1=>!_0x1a32e8[_0x3c6d7b(0xb4)](_0x3dc3f1[_0x3c6d7b(0xb7)]));if(_0x112f39[_0x3c6d7b(0xa6)]===0x0)return{'created':0x0,'skipped':!![],'dryRun':_0x3ffc86['dryRun']===!![],'targetPages':[],'plannedMenus':[]};const _0xd95ef3=_0x112f39['map'](_0x42e386=>({'type':_0x3c6d7b(0x94),'path':_0x42e386[_0x3c6d7b(0xb7)],'label':_0x42e386[_0x3c6d7b(0xb8)],'loadScriptMode':_0x3c6d7b(0xb5),'resources':[..._0x541fbd]}));if(_0x3ffc86[_0x3c6d7b(0xae)])return{'created':0x0,'skipped':![],'dryRun':!![],'targetPages':_0x112f39,'plannedMenus':_0xd95ef3};const _0x313ab9=await createMenus(_0x3e8210,_0x616b6b,_0x112f39,_0x541fbd[_0x3c6d7b(0xa6)]>0x0?_0x541fbd:undefined);return logger[_0x3c6d7b(0xa4)](_0x3c6d7b(0x96),_0x3c6d7b(0xab),{'count':_0x112f39['length'],'resources':_0x541fbd}),{'created':_0x313ab9[_0x3c6d7b(0xa6)],'skipped':![],'dryRun':![],'targetPages':_0x112f39,'plannedMenus':_0xd95ef3,'menus':_0x313ab9};}function a146_0x2600(){const _0x375a5f=['Invalid\x20--params\x20fields:\x20','1372197RFTUSo','push','No\x20local\x20pages\x20matched\x20paths:\x20','1986570oaBbBq','filter','map','info','CSS\x20URL\x20is\x20unreachable:\x20','length','get','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','2eFkqrd','--params.pages\x20is\x20no\x20longer\x20supported.\x20Use\x20--paths\x20with\x20exact\x20local\x20page\x20paths.','Menu\x20sync\x20completed','\x0a\x20\x20Available\x20local\x20paths:\x20','trim','dryRun','2474904bmifVf','cssUrl','1882176ldguvi','pages','cwd','has','import','Local\x20page\x20paths\x20are\x20already\x20on\x20the\x20platform:\x20','path','label','jsUrl','3179472Lufavz','--params.','field','join','parse','string','message','1505252omBgCu','Start\x20non-interactive\x20menu\x20sync','procode','Invalid\x20--params:\x20expected\x20a\x20JSON\x20object.','menu-sync','553216RATebF','Invalid\x20--params\x20JSON.','hasOwn',':\x20expected\x20a\x20non-empty\x20string.','object','JS\x20URL\x20is\x20unreachable:\x20'];a146_0x2600=function(){return _0x375a5f;};return a146_0x2600();}export function parseMenuSyncParams(_0x4db7e0){const _0x366141=a146_0x677ef2;if(!_0x4db7e0||typeof _0x4db7e0!=='string')return{};let _0x2cc686;try{_0x2cc686=JSON[_0x366141(0xbe)](_0x4db7e0);}catch{throw new Error(_0x366141(0x98));}if(typeof _0x2cc686!==_0x366141(0x9b)||_0x2cc686===null||Array['isArray'](_0x2cc686))throw new Error(_0x366141(0x95));const _0x12986f=_0x2cc686;if(Object[_0x366141(0x99)](_0x12986f,_0x366141(0xb2)))throw new Error(_0x366141(0xaa));const _0x28fd12=Object['keys'](_0x12986f)['filter'](_0x3b39cf=>!MENU_SYNC_PARAM_KEYS[_0x366141(0xb4)](_0x3b39cf));if(_0x28fd12[_0x366141(0xa6)]>0x0)throw new Error(_0x366141(0x9d)+_0x28fd12[_0x366141(0xbd)](',\x20')+'.');for(const _0x2a84bd of MENU_SYNC_PARAM_KEYS){const _0x194ccc=_0x12986f[_0x2a84bd];if(_0x194ccc!==undefined&&(typeof _0x194ccc!==_0x366141(0xbf)||_0x194ccc['trim']()===''))throw new Error('Invalid\x20--params.'+_0x2a84bd+_0x366141(0x9a));}return{'jsUrl':typeof _0x12986f[_0x366141(0xb9)]===_0x366141(0xbf)?_0x12986f[_0x366141(0xb9)][_0x366141(0xad)]():undefined,'cssUrl':typeof _0x12986f['cssUrl']===_0x366141(0xbf)?_0x12986f[_0x366141(0xb0)][_0x366141(0xad)]():undefined};}
|
|
@@ -1 +1 @@
|
|
|
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
|
+
(function(_0xaedfb3,_0x418b29){const _0x20ef4f=a148_0x456d,_0x1ab9a0=_0xaedfb3();while(!![]){try{const _0x8e6034=-parseInt(_0x20ef4f(0x1ae))/0x1+-parseInt(_0x20ef4f(0x19b))/0x2+-parseInt(_0x20ef4f(0x186))/0x3+-parseInt(_0x20ef4f(0x199))/0x4+-parseInt(_0x20ef4f(0x18f))/0x5+parseInt(_0x20ef4f(0x16e))/0x6*(parseInt(_0x20ef4f(0x196))/0x7)+parseInt(_0x20ef4f(0x195))/0x8;if(_0x8e6034===_0x418b29)break;else _0x1ab9a0['push'](_0x1ab9a0['shift']());}catch(_0x5bff5e){_0x1ab9a0['push'](_0x1ab9a0['shift']());}}}(a148_0x45e4,0xeaf0d));import{updateMenuCdnUrl,getOnlineMenuList}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';function a148_0x456d(_0x3dbe40,_0x454d8b){_0x3dbe40=_0x3dbe40-0x16a;const _0x45e465=a148_0x45e4();let _0x456d77=_0x45e465[_0x3dbe40];return _0x456d77;}import{logger}from'../../../utils/logger.js';function validateParams(_0x42e74d){const _0x269478=a148_0x456d,_0x4ec751=[];return _0x42e74d[_0x269478(0x1ad)]&&!isValidJsHttpsUrl(_0x42e74d[_0x269478(0x1ad)])&&_0x4ec751[_0x269478(0x191)]({'field':_0x269478(0x1ad),'message':_0x269478(0x179)}),_0x42e74d['cssUrl']&&!isValidCssHttpsUrl(_0x42e74d[_0x269478(0x177)])&&_0x4ec751['push']({'field':_0x269478(0x177),'message':_0x269478(0x17f)}),_0x4ec751;}export async function runMenuUpdateCore(_0x1139b1,_0x5a020c,_0x5d273c,_0x286fac={}){const _0x544457=a148_0x456d,_0x471731=parseUpdateParamsFlag(_0x5d273c),_0x1afd1f=normalizeMode(_0x286fac[_0x544457(0x18c)]);validateSelection(_0x286fac[_0x544457(0x188)]);const _0x188c5f=[];if(_0x471731[_0x544457(0x1ad)])_0x188c5f[_0x544457(0x191)](_0x471731[_0x544457(0x1ad)]);if(_0x471731[_0x544457(0x177)])_0x188c5f[_0x544457(0x191)](_0x471731['cssUrl']);const _0x204cae=validateParams(_0x471731);if(_0x204cae[_0x544457(0x17c)]>0x0){const _0x464641=_0x204cae[_0x544457(0x17d)](_0x2c382c=>_0x544457(0x193)+_0x2c382c['field']+':\x20'+_0x2c382c['message'])[_0x544457(0x19a)](';\x20');throw new Error(_0x544457(0x172)+_0x464641);}if(_0x188c5f[_0x544457(0x17c)]===0x0)throw new Error(_0x544457(0x183)+'Pass\x20--params\x20\x27{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}\x27\x20to\x20update\x20assets.');logger[_0x544457(0x170)](process[_0x544457(0x1a9)]()),logger[_0x544457(0x16f)](_0x544457(0x197),_0x544457(0x16d),{'appCode':_0x1139b1,'jsUrl':_0x471731['jsUrl'],'cssUrl':_0x471731[_0x544457(0x177)],'mode':_0x1afd1f,'dryRun':_0x286fac[_0x544457(0x171)]===!![]});if(_0x471731[_0x544457(0x1ad)]){const _0x57e189=await isUrlReachable(_0x471731[_0x544457(0x1ad)]);if(!_0x57e189)throw new Error(_0x544457(0x1a3)+_0x471731[_0x544457(0x1ad)]);}if(_0x471731[_0x544457(0x177)]){const _0x16bb8f=await isUrlReachable(_0x471731[_0x544457(0x177)]);if(!_0x16bb8f)throw new Error(_0x544457(0x178)+_0x471731[_0x544457(0x177)]);}const _0x5fddf=await getOnlineMenuList(_0x1139b1,_0x5a020c),_0x474385=_0x5fddf[_0x544457(0x18b)](_0x38b9a9=>_0x38b9a9['resources'][_0x544457(0x17c)]>0x0),_0x51fb95=selectMenusForUpdate(_0x474385,_0x286fac[_0x544457(0x188)]);if(_0x51fb95[_0x544457(0x17c)]===0x0)return{'updated':0x0,'failed':0x0,'skipped':!![],'dryRun':_0x286fac['dryRun']===!![]};const _0x497b22=_0x51fb95['map'](_0x16b673=>buildMenuUpdateDiff(_0x16b673,_0x471731,_0x1afd1f,_0x286fac[_0x544457(0x17e)]===!![],_0x286fac['loadScriptMode']));if(_0x286fac[_0x544457(0x171)])return{'updated':0x0,'failed':0x0,'skipped':![],'dryRun':!![],'diffs':_0x497b22};const _0x337d8f=await Promise[_0x544457(0x16a)](_0x51fb95[_0x544457(0x17d)]((_0x1d13ff,_0x1d0b26)=>updateMenuCdnUrl(_0x1139b1,_0x5a020c,{'id':_0x1d13ff['id'],'label':_0x1d13ff[_0x544457(0x1aa)],'path':_0x1d13ff[_0x544457(0x180)],'resources':_0x497b22[_0x1d0b26][_0x544457(0x16c)][_0x544457(0x182)],'extend':_0x1d13ff[_0x544457(0x16b)]??null,'loadScriptMode':_0x286fac['loadScriptMode']}))),_0x935d08=_0x337d8f[_0x544457(0x18b)](_0x5419a5=>_0x5419a5[_0x544457(0x1a2)]===_0x544457(0x173))[_0x544457(0x17d)](_0x4e90e7=>_0x4e90e7[_0x544457(0x1a5)]),_0x2dc3c1=_0x337d8f[_0x544457(0x18b)](_0xe110aa=>_0xe110aa[_0x544457(0x1a2)]===_0x544457(0x19d))[_0x544457(0x17c)];return logger[_0x544457(0x16f)]('menu-asset-update',_0x544457(0x198),{'count':_0x51fb95[_0x544457(0x17c)],'resources':_0x188c5f}),{'updated':_0x935d08['length'],'failed':_0x2dc3c1,'skipped':![],'menus':_0x935d08};}function validateSelection(_0x48af6c){const _0x1ca1e1=a148_0x456d;if(!_0x48af6c)throw new Error('menu\x20asset-update\x20requires\x20an\x20explicit\x20target:\x20pass\x20--all,\x20--menu-ids,\x20or\x20--paths.');if(_0x48af6c['all']&&(_0x48af6c[_0x1ca1e1(0x17b)][_0x1ca1e1(0x17c)]>0x0||_0x48af6c[_0x1ca1e1(0x1ac)]['length']>0x0))throw new Error(_0x1ca1e1(0x189));if(!_0x48af6c[_0x1ca1e1(0x1ab)]&&_0x48af6c[_0x1ca1e1(0x17b)][_0x1ca1e1(0x17c)]===0x0&&_0x48af6c['paths'][_0x1ca1e1(0x17c)]===0x0)throw new Error(_0x1ca1e1(0x19c));}export function selectMenusForUpdate(_0x55d86a,_0x4b3fec){const _0x8b6ef8=a148_0x456d;validateSelection(_0x4b3fec);if(_0x4b3fec['all'])return _0x55d86a;const _0x1bcb55=new Set(_0x55d86a[_0x8b6ef8(0x17d)](_0x3745a7=>_0x3745a7['id'])),_0x496daf=new Set(_0x55d86a[_0x8b6ef8(0x17d)](_0x5eff6e=>_0x5eff6e[_0x8b6ef8(0x180)])),_0x16f71f=_0x4b3fec[_0x8b6ef8(0x17b)][_0x8b6ef8(0x18b)](_0x4eaea3=>!_0x1bcb55['has'](_0x4eaea3)),_0x2c39d5=_0x4b3fec[_0x8b6ef8(0x1ac)]['filter'](_0x46426e=>!_0x496daf[_0x8b6ef8(0x18d)](_0x46426e));if(_0x16f71f['length']>0x0||_0x2c39d5['length']>0x0){const _0x378f6e=[..._0x16f71f[_0x8b6ef8(0x17d)](_0x2dcb5b=>String(_0x2dcb5b)),..._0x2c39d5]['join'](',\x20');throw new Error(_0x8b6ef8(0x18a)+_0x378f6e);}const _0x3a0b70=new Set(_0x4b3fec[_0x8b6ef8(0x17b)]),_0x1fb550=new Set(_0x4b3fec[_0x8b6ef8(0x1ac)]);return _0x55d86a[_0x8b6ef8(0x18b)](_0x3607fe=>_0x3a0b70['has'](_0x3607fe['id'])||_0x1fb550[_0x8b6ef8(0x18d)](_0x3607fe[_0x8b6ef8(0x180)]));}function normalizeMode(_0x2e5aae){const _0x57e57f=a148_0x456d;if(!_0x2e5aae)return _0x57e57f(0x18e);if(_0x2e5aae===_0x57e57f(0x1a4)||_0x2e5aae==='patch')return _0x2e5aae;throw new Error(_0x57e57f(0x19f)+_0x2e5aae+_0x57e57f(0x176));}function buildMenuUpdateDiff(_0x1e5c61,_0x30642b,_0x5c14eb,_0x410e2f,_0x400819){const _0x5f1ff8=a148_0x456d,_0x8e68e1=[..._0x1e5c61[_0x5f1ff8(0x182)]];_0x5c14eb===_0x5f1ff8(0x18e)&&assertUnambiguousPatchResources(_0x1e5c61,_0x8e68e1,_0x30642b);const _0x1081f6=_0x5c14eb==='patch'?patchResources(_0x8e68e1,_0x30642b):replaceResources(_0x30642b),_0x53c7fd=[],_0x376abe=_0x8e68e1[_0x5f1ff8(0x184)](isJsResource),_0x28987d=_0x1081f6[_0x5f1ff8(0x184)](isJsResource);if(_0x376abe&&!_0x28987d){const _0x1c5809=_0x5f1ff8(0x1a7)+_0x1e5c61[_0x5f1ff8(0x1aa)]+_0x5f1ff8(0x194)+_0x1e5c61[_0x5f1ff8(0x180)]+').\x20'+_0x5f1ff8(0x181);if(!_0x410e2f)throw new Error(_0x1c5809);_0x53c7fd['push'](_0x1c5809);}const _0x2a552b=_0x8e68e1[_0x5f1ff8(0x184)](isCssResource),_0x3768d9=_0x1081f6['some'](isCssResource);_0x2a552b&&!_0x3768d9&&_0x53c7fd[_0x5f1ff8(0x191)](_0x5f1ff8(0x17a)+_0x1e5c61['label']+_0x5f1ff8(0x194)+_0x1e5c61[_0x5f1ff8(0x180)]+').');const _0x55fe9a=typeof _0x1e5c61[_0x5f1ff8(0x16b)]?.['loadScriptMode']===_0x5f1ff8(0x1a1)?_0x1e5c61['extend'][_0x5f1ff8(0x174)]:null,_0x438200=_0x400819?{'loadScriptMode':_0x55fe9a}:{},_0x1a4f3e=_0x400819?{'loadScriptMode':_0x400819}:{};return{'id':_0x1e5c61['id'],'label':_0x1e5c61[_0x5f1ff8(0x1aa)],'path':_0x1e5c61[_0x5f1ff8(0x180)],'mode':_0x5c14eb,'before':{'resources':_0x8e68e1,..._0x438200},'after':{'resources':_0x1081f6,..._0x1a4f3e},'warnings':_0x53c7fd};}function replaceResources(_0x153aec){const _0x15652d=a148_0x456d;return[_0x153aec[_0x15652d(0x1ad)],_0x153aec['cssUrl']][_0x15652d(0x18b)](_0x5bd7c7=>!!_0x5bd7c7);}function assertUnambiguousPatchResources(_0x40148b,_0x37cb7e,_0xae8c48){const _0x32d28e=a148_0x456d,_0x2f53dc=_0x37cb7e[_0x32d28e(0x18b)](isJsResource)[_0x32d28e(0x17c)];if(_0xae8c48['jsUrl']&&_0x2f53dc>0x1)throw new Error(_0x32d28e(0x187)+_0x2f53dc+_0x32d28e(0x19e)+_0x40148b['label']+_0x32d28e(0x194)+_0x40148b[_0x32d28e(0x180)]+')\x20'+'with\x20a\x20single\x20jsUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.');const _0x3a5e71=_0x37cb7e[_0x32d28e(0x18b)](isCssResource)[_0x32d28e(0x17c)];if(_0xae8c48[_0x32d28e(0x177)]&&_0x3a5e71>0x1)throw new Error(_0x32d28e(0x187)+_0x3a5e71+'\x20existing\x20CSS\x20resources\x20for\x20\x22'+_0x40148b[_0x32d28e(0x1aa)]+_0x32d28e(0x194)+_0x40148b['path']+')\x20'+_0x32d28e(0x1af));}function patchResources(_0x52b4a8,_0x927e2){const _0x182e6d=a148_0x456d;let _0x460b0c=![],_0x1d1e5c=![];const _0x47d122=[];for(const _0x2c4c45 of _0x52b4a8){if(isJsResource(_0x2c4c45)){if(_0x927e2[_0x182e6d(0x1ad)]&&!_0x460b0c)_0x47d122[_0x182e6d(0x191)](_0x927e2[_0x182e6d(0x1ad)]),_0x460b0c=!![];else!_0x927e2[_0x182e6d(0x1ad)]&&_0x47d122[_0x182e6d(0x191)](_0x2c4c45);continue;}if(isCssResource(_0x2c4c45)){if(_0x927e2['cssUrl']&&!_0x1d1e5c)_0x47d122[_0x182e6d(0x191)](_0x927e2[_0x182e6d(0x177)]),_0x1d1e5c=!![];else!_0x927e2[_0x182e6d(0x177)]&&_0x47d122['push'](_0x2c4c45);continue;}_0x47d122[_0x182e6d(0x191)](_0x2c4c45);}return _0x927e2[_0x182e6d(0x1ad)]&&!_0x460b0c&&_0x47d122[_0x182e6d(0x190)](_0x927e2[_0x182e6d(0x1ad)]),_0x927e2['cssUrl']&&!_0x1d1e5c&&_0x47d122[_0x182e6d(0x191)](_0x927e2[_0x182e6d(0x177)]),_0x47d122;}function a148_0x45e4(){const _0x1a5b5f=['6945312gEFpza','join','2854054XwMNbC','menu\x20asset-update\x20requires\x20an\x20explicit\x20target:\x20pass\x20--all,\x20--menu-ids,\x20or\x20--paths.','rejected','\x20existing\x20JS\x20resources\x20for\x20\x22','Invalid\x20--mode:\x20','.js','string','status','JS\x20URL\x20is\x20unreachable:\x20','replace','value','endsWith','menu\x20asset-update\x20would\x20remove\x20existing\x20JS\x20resource\x20for\x20\x22','toLowerCase','cwd','label','all','paths','jsUrl','462240FLpNZP','with\x20a\x20single\x20cssUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.','allSettled','extend','after','Start\x20non-interactive\x20menu\x20asset\x20update','1805388EStTSo','info','setLogPath','dryRun','Invalid\x20--params:\x20','fulfilled','loadScriptMode','object','.\x20Allowed\x20values:\x20replace,\x20patch','cssUrl','CSS\x20URL\x20is\x20unreachable:\x20','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','menu\x20asset-update\x20will\x20remove\x20existing\x20CSS\x20resource\x20for\x20\x22','menuIds','length','map','force','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','path','Use\x20--mode\x20patch\x20to\x20preserve\x20it,\x20pass\x20jsUrl,\x20or\x20add\x20--force\x20for\x20an\x20intentional\x20removal.','resources','Invalid\x20--params:\x20menu\x20asset-update\x20requires\x20at\x20least\x20one\x20explicit\x20JS/CSS\x20URL.\x20','some','isArray','3869124jLtWPZ','menu\x20asset-update\x20cannot\x20patch\x20','selection','--all\x20cannot\x20be\x20combined\x20with\x20--menu-ids\x20or\x20--paths.','menu\x20asset-update\x20selectors\x20did\x20not\x20match\x20resource-bearing\x20menus:\x20','filter','mode','has','patch','2860465FIvGeH','unshift','push','trim','--params.','\x22\x20(','49190520uodEHs','7AUNkDE','menu-asset-update','Menu\x20asset\x20update\x20completed'];a148_0x45e4=function(){return _0x1a5b5f;};return a148_0x45e4();}function isJsResource(_0x2aea66){const _0x7b4ae2=a148_0x456d;return stripQuery(_0x2aea66)[_0x7b4ae2(0x1a8)]()[_0x7b4ae2(0x1a6)](_0x7b4ae2(0x1a0));}function isCssResource(_0x560c69){const _0x31458f=a148_0x456d;return stripQuery(_0x560c69)[_0x31458f(0x1a8)]()['endsWith']('.css');}function stripQuery(_0xd56c2a){return _0xd56c2a['split']('?')[0x0]??_0xd56c2a;}function parseUpdateParamsFlag(_0x512735){const _0x20d3e9=a148_0x456d;if(!_0x512735||typeof _0x512735!==_0x20d3e9(0x1a1))return{};try{const _0x38321f=JSON['parse'](_0x512735);if(typeof _0x38321f!==_0x20d3e9(0x175)||_0x38321f===null||Array[_0x20d3e9(0x185)](_0x38321f))return{};return{'jsUrl':typeof _0x38321f[_0x20d3e9(0x1ad)]==='string'?_0x38321f['jsUrl']['trim']():undefined,'cssUrl':typeof _0x38321f[_0x20d3e9(0x177)]===_0x20d3e9(0x1a1)?_0x38321f[_0x20d3e9(0x177)][_0x20d3e9(0x192)]():undefined};}catch{return{};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4c6969,_0x1230ef){const _0x169da1=a149_0x55fa,_0x435843=_0x4c6969();while(!![]){try{const _0x3c2215=parseInt(_0x169da1(0x1d8))/0x1*(-parseInt(_0x169da1(0x1d6))/0x2)+parseInt(_0x169da1(0x1ce))/0x3+parseInt(_0x169da1(0x1cd))/0x4+parseInt(_0x169da1(0x1d2))/0x5*(-parseInt(_0x169da1(0x1cf))/0x6)+-parseInt(_0x169da1(0x1cc))/0x7*(-parseInt(_0x169da1(0x1d0))/0x8)+-parseInt(_0x169da1(0x1cb))/0x9*(parseInt(_0x169da1(0x1d5))/0xa)+parseInt(_0x169da1(0x1d4))/0xb*(parseInt(_0x169da1(0x1d1))/0xc);if(_0x3c2215===_0x1230ef)break;else _0x435843['push'](_0x435843['shift']());}catch(_0x24ba7a){_0x435843['push'](_0x435843['shift']());}}}(a149_0x4e5a,0x54062));export function isValidJsHttpsUrl(_0x39af00){const _0x5c927c=a149_0x55fa;return/^https:\/\/.+\.js(\?.*)?$/['test'](_0x39af00[_0x5c927c(0x1d3)]());}function a149_0x55fa(_0x537378,_0x4bef1d){_0x537378=_0x537378-0x1cb;const _0x4e5ab2=a149_0x4e5a();let _0x55fab6=_0x4e5ab2[_0x537378];return _0x55fab6;}export function isValidCssHttpsUrl(_0x44112d){const _0x5637cd=a149_0x55fa;return/^https:\/\/.+\.css(\?.*)?$/[_0x5637cd(0x1d7)](_0x44112d['trim']());}export async function isUrlReachable(_0x3907e3){try{const _0x574a5d=await fetch(_0x3907e3,{'method':'HEAD'});return _0x574a5d['ok'];}catch{return![];}}function a149_0x4e5a(){const _0x3a420c=['2274180noIUev','895ulZaoF','trim','33EjiUwV','11150OVEbqW','1204qeVwqN','test','469NNnfmz','3231GFQTWy','91CuFAWs','625808lwXKKu','1700184YDatCO','11466AtDitK','47464lWYpYe'];a149_0x4e5a=function(){return _0x3a420c;};return a149_0x4e5a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a150_0x52c518=a150_0x1cbd;function a150_0x1da3(){const _0x140d4a=['string','onlineMenuList','jsUrl','appCode','18403QegTKb','2728336eCWQnN','yes','\x20menu(s)\x20with\x20JS:\x20','skipped','menu\x20sync\x20--paths\x20requires\x20--yes\x20for\x20execution.','boolean','\x20\x20Continue\x20with\x20creation?','localPages','Preview\x20with\x20--dry-run,\x20then\x20reuse\x20the\x20same\x20--paths\x20and\x20--params\x20with\x20--yes.','cookie','flag','!\x20No\x20local\x20pages\x20found\x20in\x20src/pages','Fetching\x20online\x20menu\x20list...','gray','\x20menu(s)\x20created','Confirm\x20non-interactive\x20sync;\x20without\x20--paths,\x20create\x20all\x20missing\x20local\x20pages','806343dTdvWn','message','624588HnZACT','cssUrl','yellow','\x20created.','params','Sync\x20local\x20pages\x20as\x20platform\x20menus','\x20page(s)','/smartapi/menu/create','map','created','Pre-fill\x20JS/CSS\x20URLs.\x20','2LngYAX','size','menu\x20sync\x20requires\x20a\x20project\x20context\x20or\x20explicit\x20--appcode.\x20','length','str','No\x20local\x20microfrontend\x20menus\x20would\x20be\x20created.','menu','paths','\x20\x20Cancelled.','Menu\x20sync\x20skipped','validation','18024669ACxXZY','✓\x20Menu\x20sync\x20completed:\x20','sync','\x20local\x20microfrontend\x20menu(s).','Menu\x20creation\x20failed','Online\x20menu\x20list\x20fetched','\x20\x20!\x20No\x20local\x20pages\x20found,\x20please\x20create\x20pages\x20first','1734ltNLfP','Created\x20','128350tuMEFl','Creating\x20','appcode','rawFlags','Menu\x20sync\x20completed:\x20','369938tBEXpB','\x20\x20Create\x20','\x20\x20✓\x20Selected:\x20','trim','\x20failed.','Would\x20create\x20','onlinePaths','targetPages','Failed\x20to\x20fetch\x20online\x20menu\x20list','selectedAppName'];a150_0x1da3=function(){return _0x140d4a;};return a150_0x1da3();}(function(_0xbeab7,_0xabfd79){const _0x5f2f23=a150_0x1cbd,_0x4a65a2=_0xbeab7();while(!![]){try{const _0x57d4aa=-parseInt(_0x5f2f23(0xd6))/0x1+-parseInt(_0x5f2f23(0x102))/0x2*(parseInt(_0x5f2f23(0xf5))/0x3)+parseInt(_0x5f2f23(0xf7))/0x4+-parseInt(_0x5f2f23(0xd1))/0x5+parseInt(_0x5f2f23(0xcf))/0x6*(-parseInt(_0x5f2f23(0xe4))/0x7)+-parseInt(_0x5f2f23(0xe5))/0x8+parseInt(_0x5f2f23(0xc8))/0x9;if(_0x57d4aa===_0xabfd79)break;else _0x4a65a2['push'](_0x4a65a2['shift']());}catch(_0x2d7e93){_0x4a65a2['push'](_0x4a65a2['shift']());}}}(a150_0x1da3,0x601cc));import a150_0x5c292d 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 a150_0x1cbd(_0x40c8ae,_0x16a109){_0x40c8ae=_0x40c8ae-0xc1;const _0x1da3a4=a150_0x1da3();let _0x1cbdee=_0x1da3a4[_0x40c8ae];return _0x1cbdee;}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_0x52c518(0xc3),'command':a150_0x52c518(0xca),'description':a150_0x52c518(0xfc),'risk':'write','flags':[{'name':a150_0x52c518(0xfb),'type':a150_0x52c518(0xe0),'description':a150_0x52c518(0x101)+'JSON:\x20{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}'},{'name':a150_0x52c518(0xc4),'type':a150_0x52c518(0xe0),'description':'Exact\x20comma-separated\x20local\x20page\x20paths\x20to\x20sync'},{'name':a150_0x52c518(0xe6),'type':a150_0x52c518(0xea),'description':a150_0x52c518(0xf4)}],async 'dryRun'(_0x1e2e5a){const _0x297eed=a150_0x52c518;ensureRunnableContext(_0x1e2e5a[_0x297eed(0xd4)],_0x1e2e5a['selectedAppName']);const _0x431f81=await runMenuSyncCore(_0x1e2e5a[_0x297eed(0xe3)],_0x1e2e5a['cookie'],parsePaths(_0x1e2e5a[_0x297eed(0xc1)]('paths')),_0x1e2e5a[_0x297eed(0xc1)](_0x297eed(0xfb)),{'dryRun':!![]});return{'method':'POST','url':_0x297eed(0xfe),'body':_0x431f81,'description':_0x431f81[_0x297eed(0xe8)]?_0x297eed(0xc2):_0x297eed(0xdb)+_0x431f81[_0x297eed(0xdd)][_0x297eed(0x105)]+_0x297eed(0xcb)};},async 'execute'(_0x3c5c64){const _0x20bcb4=a150_0x52c518;ensureRunnableContext(_0x3c5c64[_0x20bcb4(0xd4)],_0x3c5c64[_0x20bcb4(0xdf)]);const _0x52ddac=_0x3c5c64[_0x20bcb4(0xef)](_0x20bcb4(0xe6)),_0x331efd=_0x3c5c64[_0x20bcb4(0xc1)](_0x20bcb4(0xfb)),_0x207129=parsePaths(_0x3c5c64[_0x20bcb4(0xc1)](_0x20bcb4(0xc4))),_0x424262=parseMenuSyncParams(_0x331efd);if(_0x52ddac){const _0x2dfae9=await runMenuSyncCore(_0x3c5c64['appCode'],_0x3c5c64[_0x20bcb4(0xee)],_0x207129,_0x331efd);if(_0x2dfae9[_0x20bcb4(0xe8)]){const _0x42bb03=getLocalPages();_0x42bb03[_0x20bcb4(0x105)]===0x0?writeCliSideChannelLine(_0x20bcb4(0xf0)):writeCliSideChannelLine('✓\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform');}else writeCliSideChannelLine(_0x20bcb4(0xc9)+_0x2dfae9[_0x20bcb4(0x100)]+_0x20bcb4(0xf3));return{'ok':!![],'data':_0x2dfae9,'message':_0x2dfae9[_0x20bcb4(0xe8)]?_0x20bcb4(0xc6):_0x20bcb4(0xd5)+_0x2dfae9[_0x20bcb4(0x100)]+_0x20bcb4(0xfa)};}if(_0x207129[_0x20bcb4(0x105)]>0x0)throw CliErrors[_0x20bcb4(0xc7)](_0x20bcb4(0xe9),'Preview\x20with\x20--dry-run,\x20then\x20reuse\x20the\x20same\x20--paths\x20and\x20--params\x20with\x20--yes.');if(!isInteractive()&&_0x331efd)throw CliErrors['validation']('Non-interactive\x20menu\x20sync\x20requires\x20--yes.',_0x20bcb4(0xed));requireInteractive();const _0x1d0170=startSpinner(_0x20bcb4(0xf1));let _0x53569a,_0xa4ab04,_0x3959ed;try{const _0x3ce03d=await fetchMenuData(_0x3c5c64[_0x20bcb4(0xe3)],_0x3c5c64[_0x20bcb4(0xee)]);_0x53569a=_0x3ce03d[_0x20bcb4(0xec)],_0xa4ab04=_0x3ce03d[_0x20bcb4(0xdc)],_0x3959ed=_0x3ce03d[_0x20bcb4(0xe1)],stopSpinner(_0x1d0170,_0x20bcb4(0xcd),!![]);}catch(_0x5e2262){stopSpinner(_0x1d0170,_0x20bcb4(0xde),![]);throw CliErrors[_0x20bcb4(0xc7)](_0x5e2262 instanceof Error?_0x5e2262[_0x20bcb4(0xf6)]:_0x20bcb4(0xde));}if(_0x53569a[_0x20bcb4(0x105)]===0x0)return writeCliSideChannelLine(a150_0x5c292d[_0x20bcb4(0xf9)](_0x20bcb4(0xce))),{'ok':!![]};const _0xfc4f0a=buildCompareRows(_0x53569a,_0xa4ab04);writeCliSideChannelLine(renderCompareTable(_0xfc4f0a)),writeCliSideChannelLine('');const _0x57a823=await selectPages(_0x53569a,_0xa4ab04);writeCliSideChannelLine(''),writeCliSideChannelLine(a150_0x5c292d['cyan'](_0x20bcb4(0xd8)+_0x57a823[_0x20bcb4(0x105)]+_0x20bcb4(0xfd)));const _0x63b4a7=_0x424262['jsUrl']&&_0x424262[_0x20bcb4(0xf8)];if(!_0x63b4a7){writeCliSideChannelLine(renderSyncSummary(_0x57a823,_0xa4ab04[_0x20bcb4(0x103)]>0x0));const _0x195bf2=await askConfirm(_0x20bcb4(0xeb));if(!_0x195bf2)return writeCliSideChannelLine(a150_0x5c292d[_0x20bcb4(0xf2)](_0x20bcb4(0xc5))),{'ok':!![]};}let _0x28dea4=_0x424262[_0x20bcb4(0xe2)],_0x373501=_0x424262['cssUrl'];!_0x28dea4&&(_0x28dea4=await askJsUrl());!_0x373501&&(_0x373501=await askCssUrl());const _0x55e90a=await askConfirm(_0x20bcb4(0xd7)+_0x57a823[_0x20bcb4(0x105)]+_0x20bcb4(0xe7)+_0x28dea4+'\x20and\x20CSS:\x20'+_0x373501+'?');if(!_0x55e90a)return writeCliSideChannelLine(a150_0x5c292d[_0x20bcb4(0xf2)](_0x20bcb4(0xc5))),{'ok':!![]};const _0x7d872c=[_0x28dea4,_0x373501],_0x2d7203=startSpinner(_0x20bcb4(0xd2)+_0x57a823[_0x20bcb4(0x105)]+'\x20menu(s)...');try{const _0x35d953=await doCreateMenus(_0x3c5c64[_0x20bcb4(0xe3)],_0x3c5c64['cookie'],_0x57a823,_0x7d872c);return stopSpinner(_0x2d7203,_0x20bcb4(0xd0)+_0x35d953[_0x20bcb4(0x100)]+'\x20menu(s)',!![]),{'ok':!![],'data':_0x35d953,'message':_0x20bcb4(0xd5)+_0x35d953[_0x20bcb4(0x100)]+'\x20created,\x20'+_0x35d953['failed']+_0x20bcb4(0xda)};}catch(_0x36db21){stopSpinner(_0x2d7203,'Menu\x20creation\x20failed',![]);throw CliErrors[_0x20bcb4(0xc7)](_0x36db21 instanceof Error?_0x36db21[_0x20bcb4(0xf6)]:_0x20bcb4(0xcc));}}};function ensureRunnableContext(_0x30d9db,_0x1a737d){const _0x5001c6=a150_0x52c518,_0x47fd61=_0x30d9db['appcode']?String(_0x30d9db[_0x5001c6(0xd3)])['trim']():'';if(!isInProject()&&!_0x1a737d&&!_0x47fd61)throw CliErrors[_0x5001c6(0xc7)](_0x5001c6(0x104)+'Run\x20inside\x20a\x20directory\x20with\x20.rabetbase.json,\x20or\x20pass\x20--appcode\x20<code>.');}function parsePaths(_0x5e0a36){const _0xc85e79=a150_0x52c518;return[...new Set(_0x5e0a36['split'](',')[_0xc85e79(0xff)](_0x54018c=>_0x54018c[_0xc85e79(0xd9)]())['filter'](Boolean))];}
|
|
@@ -1 +1 @@
|
|
|
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
|
+
const a151_0x29aa84=a151_0x3ead;(function(_0x5eb295,_0x473481){const _0x4768da=a151_0x3ead,_0x409947=_0x5eb295();while(!![]){try{const _0x25d43c=parseInt(_0x4768da(0x1e6))/0x1+parseInt(_0x4768da(0x20b))/0x2+parseInt(_0x4768da(0x1cc))/0x3+-parseInt(_0x4768da(0x1ba))/0x4+-parseInt(_0x4768da(0x1b8))/0x5+parseInt(_0x4768da(0x1c6))/0x6+parseInt(_0x4768da(0x1e1))/0x7*(-parseInt(_0x4768da(0x1da))/0x8);if(_0x25d43c===_0x473481)break;else _0x409947['push'](_0x409947['shift']());}catch(_0x3b6df9){_0x409947['push'](_0x409947['shift']());}}}(a151_0x3f20,0xd5d43));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../commands/menu/shared/facts.js';function a151_0x3f20(){const _0x20ad89=['path','Response\x20was\x20lost\x20for\x20menu\x20','Updated\x20visibility\x20for\x20','Selected\x20menu\x20visibility\x20changed\x20for\x20id(s):\x20','values','\x20menu(s);\x20skipped\x20','Use\x20--menu-ids\x20with\x20one\x20or\x20more\x20of:\x20','menuIds','\x20and\x20final\x20state\x20could\x20not\x20be\x20read.','url','paths','false','resources','expectedCount','failed','1652152XPVimu','isArray','datasetId','expected-count','Exact\x20comma-separated\x20menu\x20IDs\x20to\x20update','--expected-count\x20must\x20be\x20a\x20non-negative\x20integer.','targets','--menu-ids\x20must\x20contain\x20positive\x20safe\x20integers.','childrenCount','message','Menu\x20path\x20selector\x20not\x20found:\x20','\x20failed.','str','verification','sort','menu\x20list','cookie','visibility-update','label','length','num','stringify','push','before','resourcesValid','update\x20visibility\x20for','pageId','\x20changed\x20unexpectedly.','\x20menu(s),\x20expected\x20','flagMissing','set','expect-visible','recovered','menus','menu','depth','rawFlags','map','705515wyVcrs','warnings','3537068sKdvVw','parentId','modelType','high-risk-write','has','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expected-count.','plannedActions','Exact\x20comma-separated\x20menu\x20paths\x20to\x20update','type','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expect-visible.','plan','Menu\x20','10004850ktdMko','requestedVisible','\x20skipped,\x20','Abort\x20unless\x20the\x20exact\x20number\x20of\x20selected\x20menus\x20matches','appCode','Visibility\x20update\x20requests\x20completed\x20but\x20readback\x20could\x20not\x20confirm\x20the\x20requested\x20state','3841581xjNMsk','get','\x20visibility\x20could\x20not\x20be\x20verified\x20safely','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20exact\x20current\x20ids.','validation','\x20was\x20not\x20found\x20during\x20visibility\x20verification.','beforeById','childrenIds','\x20visible\x20did\x20not\x20match\x20the\x20requested\x20state.','expectVisible','/smartapi/menu/update','menu_expected_count_mismatch','Selected\x20','Set\x20exact\x20menus\x20visible\x20or\x20hidden\x20without\x20changing\x20their\x20routes\x20or\x20resources','2007336TdMnAD','byId','pageType','filter','hash','\x20updated,\x20','\x20unchanged\x20menu(s).','91oaQSSE','menu_verification_failed','join','update','\x20visibility\x20update\x20could\x20not\x20be\x20verified','1389056aqTNOU','verify\x20menu\x20visibility\x20update','update\x20menu\x20visibility','update-recovery','Menu\x20visibility\x20update\x20could\x20not\x20be\x20verified\x20for\x20id(s):\x20','string','Would\x20update\x20visibility\x20for\x20','menu_state_drift','true','Requested\x20menu\x20visibility','code','rabetbase\x20menu\x20list\x20--format\x20compress','Menu\x20id\x20selector(s)\x20not\x20found:\x20','boolean','visible','trim','Every\x20selected\x20menu\x20already\x20has\x20the\x20requested\x20visibility;\x20no\x20write\x20is\x20needed.','datasetCode','isSafeInteger','menu\x20visibility-update\x20requires\x20--menu-ids\x20or\x20--paths.','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20an\x20exact\x20current\x20path.','some'];a151_0x3f20=function(){return _0x20ad89;};return a151_0x3f20();}import{asVerificationError,assertVerified,describeMenuErrorCause,fetchMutationSnapshot,hasFlag,isMenuResponseLoss,mapMenuApiError,menuDryRunResult,menuError,menuFailure,mutationResult,recheckMutationSnapshot,requireExplicitYes}from'../../commands/menu/shared/mutations.js';import{updateMenuEntity}from'../../commands/menu/shared/service.js';import{CliErrors}from'../../errors.js';const BACKEND=[{'method':'POST','path':a151_0x29aa84(0x1d6)}];export const menuVisibilityUpdate={'service':a151_0x29aa84(0x1b4),'command':a151_0x29aa84(0x21c),'description':a151_0x29aa84(0x1d9),'risk':a151_0x29aa84(0x1bd),'structuredErrors':!![],'flags':[{'name':'menu-ids','type':a151_0x29aa84(0x1eb),'description':a151_0x29aa84(0x20f)},{'name':a151_0x29aa84(0x206),'type':'string','description':a151_0x29aa84(0x1c1)},{'name':'visible','type':a151_0x29aa84(0x1f3),'required':!![],'description':a151_0x29aa84(0x1ef)},{'name':a151_0x29aa84(0x1b1),'type':a151_0x29aa84(0x1f3),'description':'Abort\x20unless\x20every\x20selected\x20menu\x20has\x20this\x20visibility'},{'name':a151_0x29aa84(0x20e),'type':'number','description':a151_0x29aa84(0x1c9)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x54f833){parseInput(_0x54f833),requireExplicitYes(_0x54f833);},async 'dryRun'(_0x5a175b){const _0x4a462c=a151_0x29aa84,_0x4a1d28=await buildPlan(_0x5a175b,!![]),_0x3520af=_0x4a1d28[_0x4a462c(0x1c4)][_0x4a462c(0x1c0)]?.[_0x4a462c(0x21e)]??0x0,_0xe7ae8e=_0x4a1d28['plan'][_0x4a462c(0x211)][_0x4a462c(0x21e)]-_0x3520af;return menuDryRunResult(_0x4a1d28[_0x4a462c(0x1c4)],{'method':'POST','url':_0x4a462c(0x1d6),'body':{'updates':_0x4a1d28[_0x4a462c(0x1c4)][_0x4a462c(0x1c0)]?.['map'](_0x5f1f4f=>_0x5f1f4f['body'])??[]},'description':_0x4a462c(0x1ec)+_0x3520af+'\x20menu(s);\x20skip\x20'+_0xe7ae8e+_0x4a462c(0x1e0)});},async 'execute'(_0x535b85){const _0x1fbcfa=a151_0x29aa84;requireExplicitYes(_0x535b85);const _0x4c2e0e=await buildPlan(_0x535b85,![]);await recheckMutationSnapshot(_0x535b85,_0x4c2e0e['plan'],_0x1fbcfa(0x1e8));const _0x1bd56b=[],_0xb40818=[],_0x56b59f=[];for(const _0xe547bf of _0x4c2e0e['plan'][_0x1fbcfa(0x211)]){if(_0xe547bf[_0x1fbcfa(0x222)][_0x1fbcfa(0x1f4)]===_0x4c2e0e[_0x1fbcfa(0x1c4)][_0x1fbcfa(0x1c7)]){_0x1bd56b[_0x1fbcfa(0x221)]({'id':_0xe547bf['id'],'updated':![],'skipped':!![]});continue;}try{await updateMenuEntity(_0x535b85['appCode'],_0x535b85[_0x1fbcfa(0x21b)],{'id':_0xe547bf['id'],'visible':_0x4c2e0e[_0x1fbcfa(0x1c4)][_0x1fbcfa(0x1c7)]}),_0x1bd56b[_0x1fbcfa(0x221)]({'id':_0xe547bf['id'],'updated':!![],'skipped':![]});}catch(_0x5ba58c){const _0x3de4a1=mapMenuApiError(_0x5ba58c,_0x1fbcfa(0x1ab),_0xe547bf['id']);if(isMenuResponseLoss(_0x5ba58c)&&_0x3de4a1[_0x1fbcfa(0x1f0)]!=='menu_permission_denied'){_0x56b59f[_0x1fbcfa(0x221)](_0xe547bf['id']);continue;}_0xb40818[_0x1fbcfa(0x221)]({'id':_0xe547bf['id'],'stage':_0x1fbcfa(0x1e4),'code':_0x3de4a1['code'],'message':_0x3de4a1['message']});}}let _0xb1217c;try{_0xb1217c=await fetchMenuSnapshot(_0x535b85[_0x1fbcfa(0x1ca)],_0x535b85[_0x1fbcfa(0x21b)]);}catch(_0xf939d9){const _0x23048d=describeMenuErrorCause(_0xf939d9,_0x1fbcfa(0x1e7)),_0x59c389=_0x56b59f[_0x1fbcfa(0x1b7)](_0x8fad7b=>({'id':_0x8fad7b,'stage':'update-recovery','code':_0x1fbcfa(0x1e2),'message':_0x1fbcfa(0x1fd)+_0x8fad7b+_0x1fbcfa(0x204),'requestedStateConfirmed':![],'recovered':![]})),_0x2e67c0={'stage':_0x1fbcfa(0x218),'code':_0x1fbcfa(0x1e2),'message':'Final\x20menu\x20visibility\x20readback\x20failed.','targetIds':_0x4c2e0e[_0x1fbcfa(0x1c4)][_0x1fbcfa(0x211)]['map'](_0x37622c=>_0x37622c['id']),'requestedStateConfirmed':![],..._0x23048d};throw menuFailure(asVerificationError(_0xf939d9,_0x1fbcfa(0x1cb)),_0x4c2e0e['plan'],{'stage':_0x1fbcfa(0x218),'succeeded':_0x1bd56b,'failedRecords':[..._0xb40818,..._0x59c389,_0x2e67c0],'warnings':['The\x20update\x20may\x20have\x20taken\x20effect;\x20inspect\x20the\x20latest\x20menu\x20facts\x20before\x20retrying.'],'verification':{'status':_0x1fbcfa(0x20a),'recoveredCount':0x0,'lookupCommand':_0x1fbcfa(0x1f1)}});}const _0x283cbf=[];for(const _0x1e0e7a of _0x1bd56b){const _0x48c8ae=Number(_0x1e0e7a['id']),_0x313704=_0x4c2e0e[_0x1fbcfa(0x1d2)][_0x1fbcfa(0x1cd)](_0x48c8ae),_0x27c847=_0xb1217c[_0x1fbcfa(0x1db)][_0x1fbcfa(0x1cd)](_0x48c8ae);try{verifyVisibilityUpdate(_0x313704,_0x27c847,_0x4c2e0e[_0x1fbcfa(0x1c4)][_0x1fbcfa(0x1c7)]);}catch(_0x593e39){const _0xd607b=asVerificationError(_0x593e39,_0x1fbcfa(0x1c5)+_0x48c8ae+_0x1fbcfa(0x1e5));_0x283cbf[_0x1fbcfa(0x221)]({'id':_0x48c8ae,'stage':_0x1fbcfa(0x218),'code':_0xd607b[_0x1fbcfa(0x1f0)],'message':_0xd607b[_0x1fbcfa(0x214)],'requestedStateConfirmed':![]});}}for(const _0x2ec1c4 of _0x56b59f){const _0x21e6b8=_0x4c2e0e[_0x1fbcfa(0x1d2)][_0x1fbcfa(0x1cd)](_0x2ec1c4),_0x2c2593=_0xb1217c[_0x1fbcfa(0x1db)][_0x1fbcfa(0x1cd)](_0x2ec1c4);try{verifyVisibilityUpdate(_0x21e6b8,_0x2c2593,_0x4c2e0e['plan'][_0x1fbcfa(0x1c7)]),_0x1bd56b[_0x1fbcfa(0x221)]({'id':_0x2ec1c4,'updated':!![],'skipped':![],'recovered':!![]});}catch(_0x1021d4){const _0x197696=asVerificationError(_0x1021d4,'Response\x20was\x20lost\x20and\x20menu\x20'+_0x2ec1c4+_0x1fbcfa(0x1ce));_0x283cbf[_0x1fbcfa(0x221)]({'id':_0x2ec1c4,'stage':_0x1fbcfa(0x1e9),'code':_0x197696[_0x1fbcfa(0x1f0)],'message':_0x197696[_0x1fbcfa(0x214)],'requestedStateConfirmed':![],'recovered':![]});}}if(_0x283cbf[_0x1fbcfa(0x21e)]>0x0){const _0x2c56dc=_0x283cbf[_0x1fbcfa(0x1b7)](_0x470606=>Number(_0x470606['id'])),_0x5bca1b=_0x1bd56b[_0x1fbcfa(0x1dd)](_0x2c8d25=>_0x2c8d25[_0x1fbcfa(0x1b2)]===!![])['length'],_0x17e27d=menuError(_0x1fbcfa(0x1e2),_0x1fbcfa(0x1ea)+_0x2c56dc['join'](',\x20')+'.','Inspect\x20current\x20menu\x20facts\x20before\x20retrying\x20any\x20target.');throw menuFailure(_0x17e27d,_0x4c2e0e[_0x1fbcfa(0x1c4)],{'stage':_0x1fbcfa(0x218),'succeeded':_0x1bd56b,'failedRecords':[..._0xb40818,..._0x283cbf],'warnings':['One\x20or\x20more\x20updates\x20may\x20have\x20changed\x20fields\x20outside\x20visibility;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.'],'verification':{'status':_0x1fbcfa(0x20a),..._0x2c56dc[_0x1fbcfa(0x21e)]===0x1?{'targetId':_0x2c56dc[0x0]}:{'targetIds':_0x2c56dc},'recoveredCount':_0x5bca1b,'lookupCommand':_0x1fbcfa(0x1f1)}});}const _0x5c3aa9=_0x1bd56b[_0x1fbcfa(0x1dd)](_0xfe1321=>_0xfe1321['updated']===!![])[_0x1fbcfa(0x21e)],_0x1a00ab=_0x1bd56b[_0x1fbcfa(0x21e)]-_0x5c3aa9,_0x316fce={..._0x4c2e0e[_0x1fbcfa(0x1c4)],'succeeded':_0x1bd56b,'failed':_0xb40818,'warnings':_0xb40818[_0x1fbcfa(0x21e)]>0x0?[..._0x4c2e0e['plan']['warnings'],'Failed\x20update\x20requests\x20were\x20not\x20retried;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.']:_0x4c2e0e[_0x1fbcfa(0x1c4)][_0x1fbcfa(0x1b9)],'verification':{'checkedBy':_0x1fbcfa(0x21a),'snapshotHash':_0xb1217c['hash'],'matchesRequestedState':_0xb40818[_0x1fbcfa(0x21e)]===0x0,'recoveredCount':_0x56b59f[_0x1fbcfa(0x21e)]}};return{'ok':_0xb40818[_0x1fbcfa(0x21e)]===0x0,'data':_0x316fce,'message':_0xb40818[_0x1fbcfa(0x21e)]===0x0?_0x1fbcfa(0x1fe)+_0x5c3aa9+_0x1fbcfa(0x201)+_0x1a00ab+'\x20unchanged\x20menu(s).':'Menu\x20visibility\x20update\x20completed:\x20'+_0x5c3aa9+_0x1fbcfa(0x1df)+_0x1a00ab+_0x1fbcfa(0x1c8)+_0xb40818['length']+_0x1fbcfa(0x216)};}};function parseInput(_0x47be77){const _0x3832ce=a151_0x29aa84,_0x294803=parseMenuIds(_0x47be77['str']('menu-ids')),_0x3337d2=parseCsv(_0x47be77[_0x3832ce(0x217)]('paths'));if(_0x294803[_0x3832ce(0x21e)]===0x0&&_0x3337d2[_0x3832ce(0x21e)]===0x0)throw CliErrors[_0x3832ce(0x1d0)](_0x3832ce(0x1f9));const _0x4feaff=parseBooleanFlag(_0x47be77,_0x3832ce(0x1f4),!![]),_0x4ec312=parseBooleanFlag(_0x47be77,_0x3832ce(0x1b1),![]);let _0x31c2b8;if(hasFlag(_0x47be77,_0x3832ce(0x20e))){_0x31c2b8=_0x47be77[_0x3832ce(0x21f)](_0x3832ce(0x20e));if(!Number[_0x3832ce(0x1f8)](_0x31c2b8)||_0x31c2b8<0x0)throw CliErrors[_0x3832ce(0x1d0)](_0x3832ce(0x210));}return{'menuIds':_0x294803,'paths':_0x3337d2,'visible':_0x4feaff,'expectVisible':_0x4ec312,'expectedCount':_0x31c2b8};}function a151_0x3ead(_0x40deb4,_0xa0b0b2){_0x40deb4=_0x40deb4-0x1ab;const _0x3f2032=a151_0x3f20();let _0x3ead64=_0x3f2032[_0x40deb4];return _0x3ead64;}async function buildPlan(_0x4707e9,_0x2d1fa5){const _0x5ba2ae=a151_0x29aa84,_0x1a0e01=parseInput(_0x4707e9),_0x53bf91=await fetchMutationSnapshot(_0x4707e9,_0x5ba2ae(0x1e8)),_0x31e723=selectTargets(_0x53bf91[_0x5ba2ae(0x1b3)],_0x1a0e01['menuIds'],_0x1a0e01[_0x5ba2ae(0x206)]);if(_0x1a0e01[_0x5ba2ae(0x209)]!==undefined&&_0x31e723['length']!==_0x1a0e01[_0x5ba2ae(0x209)])throw menuError(_0x5ba2ae(0x1d7),_0x5ba2ae(0x1d8)+_0x31e723[_0x5ba2ae(0x21e)]+_0x5ba2ae(0x1ae)+_0x1a0e01[_0x5ba2ae(0x209)]+'.',_0x5ba2ae(0x1bf));if(_0x1a0e01[_0x5ba2ae(0x1d5)]!==undefined){const _0x555bd7=_0x31e723[_0x5ba2ae(0x1dd)](_0x5568bf=>_0x5568bf[_0x5ba2ae(0x1f4)]!==_0x1a0e01[_0x5ba2ae(0x1d5)]);if(_0x555bd7[_0x5ba2ae(0x21e)]>0x0)throw menuError(_0x5ba2ae(0x1ed),_0x5ba2ae(0x1ff)+_0x555bd7[_0x5ba2ae(0x1b7)](_0x3bd133=>_0x3bd133['id'])[_0x5ba2ae(0x1e3)](',\x20')+'.',_0x5ba2ae(0x1c3));}const _0x372a47=_0x31e723[_0x5ba2ae(0x1b7)](_0x4867d4=>({'id':_0x4867d4['id'],'label':_0x4867d4['label'],'path':_0x4867d4[_0x5ba2ae(0x1fc)],'before':{'visible':_0x4867d4[_0x5ba2ae(0x1f4)]},'after':{'visible':_0x1a0e01['visible']}})),_0x24d98=_0x372a47[_0x5ba2ae(0x1dd)](_0x3ab1d7=>_0x3ab1d7['before'][_0x5ba2ae(0x1f4)]!==_0x1a0e01[_0x5ba2ae(0x1f4)])[_0x5ba2ae(0x1b7)](_0x4bb6fb=>({'stage':'update-menu-visibility','method':'POST','path':_0x5ba2ae(0x1d6),'body':{'appCode':_0x4707e9[_0x5ba2ae(0x1ca)],'id':_0x4bb6fb['id'],'visible':_0x1a0e01['visible']}})),_0x25ecef=mutationResult({'operation':_0x5ba2ae(0x21c),'selector':{'menuIds':_0x1a0e01[_0x5ba2ae(0x203)],'paths':_0x1a0e01[_0x5ba2ae(0x206)]},'before':{'menus':_0x31e723[_0x5ba2ae(0x1b7)](_0x4223da=>({'id':_0x4223da['id'],'path':_0x4223da[_0x5ba2ae(0x1fc)],'visible':_0x4223da[_0x5ba2ae(0x1f4)]}))},'after':{'menus':_0x31e723['map'](_0x1fab14=>({'id':_0x1fab14['id'],'path':_0x1fab14[_0x5ba2ae(0x1fc)],'visible':_0x1a0e01[_0x5ba2ae(0x1f4)]}))},'dryRun':_0x2d1fa5,'backend':[...BACKEND],'plannedActions':_0x24d98,'snapshotHash':_0x53bf91[_0x5ba2ae(0x1de)],'warnings':_0x24d98[_0x5ba2ae(0x21e)]===0x0?[_0x5ba2ae(0x1f6)]:[]});return{'plan':{..._0x25ecef,'requestedVisible':_0x1a0e01[_0x5ba2ae(0x1f4)],'targets':_0x372a47},'beforeById':new Map(_0x31e723[_0x5ba2ae(0x1b7)](_0x32a9b4=>[_0x32a9b4['id'],_0x32a9b4]))};}function selectTargets(_0x1e2ef0,_0x5424e5,_0x4295f0){const _0x333b06=a151_0x29aa84,_0x2a6aba=new Map(_0x1e2ef0[_0x333b06(0x1b7)](_0x36435d=>[_0x36435d['id'],_0x36435d])),_0x365793=new Map(),_0x5a465d=_0x5424e5['filter'](_0x59ba7f=>!_0x2a6aba[_0x333b06(0x1be)](_0x59ba7f));if(_0x5a465d[_0x333b06(0x21e)]>0x0)throw menuError('menu_selector_not_found',_0x333b06(0x1f2)+_0x5a465d[_0x333b06(0x1e3)](',\x20')+'.',_0x333b06(0x1cf));for(const _0x434e4c of _0x5424e5){_0x365793['set'](_0x434e4c,_0x2a6aba['get'](_0x434e4c));}for(const _0x59f2a1 of _0x4295f0){const _0x7e9e16=_0x1e2ef0[_0x333b06(0x1dd)](_0x523892=>_0x523892[_0x333b06(0x1fc)]===_0x59f2a1);if(_0x7e9e16['length']===0x0)throw menuError('menu_selector_not_found',_0x333b06(0x215)+JSON[_0x333b06(0x220)](_0x59f2a1)+'.',_0x333b06(0x1fa));if(_0x7e9e16[_0x333b06(0x21e)]>0x1)throw menuError('menu_selector_ambiguous','Menu\x20path\x20selector\x20matched\x20multiple\x20menus:\x20'+JSON[_0x333b06(0x220)](_0x59f2a1)+'.',_0x333b06(0x202)+_0x7e9e16[_0x333b06(0x1b7)](_0x24e5ab=>_0x24e5ab['id'])[_0x333b06(0x1e3)](',\x20')+'.');const _0x158879=_0x7e9e16[0x0];_0x365793[_0x333b06(0x1b0)](_0x158879['id'],_0x158879);}return[..._0x365793[_0x333b06(0x200)]()];}function parseMenuIds(_0x2c319c){const _0x33db51=a151_0x29aa84,_0x2d0a16=parseCsv(_0x2c319c),_0x44a1e2=_0x2d0a16[_0x33db51(0x1b7)](Number);if(_0x44a1e2[_0x33db51(0x1fb)](_0x4891fa=>!Number[_0x33db51(0x1f8)](_0x4891fa)||_0x4891fa<=0x0))throw CliErrors['validation'](_0x33db51(0x212));return[...new Set(_0x44a1e2)];}function parseCsv(_0x1c17e5){const _0x455d60=a151_0x29aa84;return[...new Set(_0x1c17e5['split'](',')[_0x455d60(0x1b7)](_0x61efec=>_0x61efec[_0x455d60(0x1f5)]())['filter'](Boolean))];}function parseBooleanFlag(_0x44e35a,_0x31168c,_0x146562){const _0x4b0c36=a151_0x29aa84;if(!hasFlag(_0x44e35a,_0x31168c)){if(_0x146562)throw CliErrors[_0x4b0c36(0x1af)](_0x31168c);return undefined;}const _0x5cf7ab=_0x44e35a[_0x4b0c36(0x1b6)][_0x31168c];if(_0x5cf7ab===!![]||_0x5cf7ab===![])return _0x5cf7ab;if(_0x5cf7ab===_0x4b0c36(0x1ee))return!![];if(_0x5cf7ab===_0x4b0c36(0x207))return![];throw CliErrors[_0x4b0c36(0x1d0)]('--'+_0x31168c+'\x20must\x20be\x20true\x20or\x20false.');}function verifyVisibilityUpdate(_0x900bb3,_0x105c1c,_0x228f1e){const _0x28096c=a151_0x29aa84;assertVerified(!!_0x105c1c,_0x28096c(0x1c5)+_0x900bb3['id']+_0x28096c(0x1d1)),assertVerified(_0x105c1c[_0x28096c(0x1f4)]===_0x228f1e,_0x28096c(0x1c5)+_0x900bb3['id']+_0x28096c(0x1d4));const _0x440aed=[['id',_0x105c1c['id'],_0x900bb3['id']],[_0x28096c(0x1bb),_0x105c1c[_0x28096c(0x1bb)],_0x900bb3[_0x28096c(0x1bb)]],[_0x28096c(0x1b5),_0x105c1c['depth'],_0x900bb3[_0x28096c(0x1b5)]],[_0x28096c(0x21d),_0x105c1c['label'],_0x900bb3[_0x28096c(0x21d)]],[_0x28096c(0x1fc),_0x105c1c[_0x28096c(0x1fc)],_0x900bb3[_0x28096c(0x1fc)]],['url',_0x105c1c[_0x28096c(0x205)],_0x900bb3['url']],[_0x28096c(0x1c2),_0x105c1c[_0x28096c(0x1c2)],_0x900bb3[_0x28096c(0x1c2)]],['sort',_0x105c1c[_0x28096c(0x219)],_0x900bb3[_0x28096c(0x219)]],[_0x28096c(0x208),_0x105c1c['resources'],_0x900bb3[_0x28096c(0x208)]],[_0x28096c(0x223),_0x105c1c[_0x28096c(0x223)],_0x900bb3[_0x28096c(0x223)]],[_0x28096c(0x1d3),_0x105c1c[_0x28096c(0x1d3)],_0x900bb3[_0x28096c(0x1d3)]],[_0x28096c(0x213),_0x105c1c[_0x28096c(0x213)],_0x900bb3[_0x28096c(0x213)]],[_0x28096c(0x1ac),_0x105c1c[_0x28096c(0x1ac)],_0x900bb3[_0x28096c(0x1ac)]],[_0x28096c(0x1dc),_0x105c1c[_0x28096c(0x1dc)],_0x900bb3[_0x28096c(0x1dc)]],[_0x28096c(0x1bc),_0x105c1c[_0x28096c(0x1bc)],_0x900bb3[_0x28096c(0x1bc)]],['datasetId',_0x105c1c[_0x28096c(0x20d)],_0x900bb3['datasetId']],[_0x28096c(0x1f7),_0x105c1c[_0x28096c(0x1f7)],_0x900bb3[_0x28096c(0x1f7)]]];for(const [_0x12337c,_0x114603,_0x1c8d99]of _0x440aed){assertVerified(sameValue(_0x114603,_0x1c8d99),_0x28096c(0x1c5)+_0x900bb3['id']+'\x20'+_0x12337c+_0x28096c(0x1ad));}}function sameValue(_0x43c633,_0x1b74ab){const _0x1d83ae=a151_0x29aa84;if(Array[_0x1d83ae(0x20c)](_0x43c633)||Array[_0x1d83ae(0x20c)](_0x1b74ab))return JSON[_0x1d83ae(0x220)](_0x43c633)===JSON[_0x1d83ae(0x220)](_0x1b74ab);return _0x43c633===_0x1b74ab;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a152_0x1f4c(){const _0x3aacbe=['configName','verification','channelConfig','create','configCode','/notification/channel-config/create','POST','mutation',';\x20do\x20not\x20resubmit.','endpointUrl','22319LNQaXW','channelType','1812517fYsZAY','194PdpwPi','462rRdsGe','Create\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20source','Inspect\x20with\x20','55089wCLrRV','document','6445ZsNmTO','connectTimeout','8Ycwcmq','248EdYwYb','notification_config_create_outcome_unknown','Notification\x20config\x20create\x20returned\x20no\x20usable\x20server\x20ID.','2692992iGiGCP','input','isSafeInteger','750kwtCVR','appCode','write','planned','description','Notification\x20config\x20create\x20outcome\x20is\x20unknown\x20because\x20no\x20server\x20ID\x20was\x20received.','160692qyxHri','13911hKbCvA','readTimeout'];a152_0x1f4c=function(){return _0x3aacbe;};return a152_0x1f4c();}const a152_0x2fee13=a152_0x533a;function a152_0x533a(_0x32ac66,_0x4dd295){_0x32ac66=_0x32ac66-0x1c4;const _0x1f4cf5=a152_0x1f4c();let _0x533ae4=_0x1f4cf5[_0x32ac66];return _0x533ae4;}(function(_0x3101d5,_0x2af343){const _0x441f17=a152_0x533a,_0x5185db=_0x3101d5();while(!![]){try{const _0x1ff397=parseInt(_0x441f17(0x1d4))/0x1+parseInt(_0x441f17(0x1d7))/0x2*(parseInt(_0x441f17(0x1c8))/0x3)+parseInt(_0x441f17(0x1e0))/0x4*(parseInt(_0x441f17(0x1dd))/0x5)+parseInt(_0x441f17(0x1e3))/0x6+parseInt(_0x441f17(0x1d6))/0x7*(parseInt(_0x441f17(0x1df))/0x8)+parseInt(_0x441f17(0x1db))/0x9*(-parseInt(_0x441f17(0x1e6))/0xa)+-parseInt(_0x441f17(0x1d8))/0xb*(parseInt(_0x441f17(0x1c7))/0xc);if(_0x1ff397===_0x2af343)break;else _0x5185db['push'](_0x5185db['shift']());}catch(_0x5347d3){_0x5185db['push'](_0x5185db['shift']());}}}(a152_0x1f4c,0x3a2d4));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_0x2fee13(0x1cf);async function prepareCreate(_0x2e805c){const _0x3641ca=a152_0x2fee13,_0x407477=await readNotificationDocument(_0x2e805c,_0x3641ca(0x1cd)),_0x47e00e=createMutationInput(_0x2e805c[_0x3641ca(0x1e7)],_0x407477);return{'document':_0x407477,'input':_0x47e00e,'planned':projectNotificationConfig({'appCode':_0x2e805c[_0x3641ca(0x1e7)],'configName':_0x407477[_0x3641ca(0x1ca)],'channelType':_0x407477[_0x3641ca(0x1d5)],'endpointUrl':_0x407477[_0x3641ca(0x1d3)],'channelConfig':_0x407477[_0x3641ca(0x1cc)],'description':_0x407477[_0x3641ca(0x1c5)],'connectTimeout':_0x407477[_0x3641ca(0x1de)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,'readTimeout':_0x407477[_0x3641ca(0x1c9)]??DEFAULT_NOTIFICATION_READ_TIMEOUT})};}export const notificationConfigCreate={'service':'notification','command':'config-create','description':a152_0x2fee13(0x1d9),'risk':a152_0x2fee13(0x1e8),'requiresAppCode':!![],'structuredErrors':!![],'flags':[...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x3a7ea2){assertSingleNotificationSource(_0x3a7ea2);},async 'dryRun'(_0x3e1c4c){const _0x5a148b=a152_0x2fee13,_0xab944=await prepareCreate(_0x3e1c4c),_0x226df0=notificationLookupCommand(_0x3e1c4c['appCode'],_0xab944['document'][_0x5a148b(0x1d5)]);return asDryRunResult({'operation':_0x5a148b(0x1cd),'selector':{'appCode':_0x3e1c4c['appCode'],'configName':_0xab944[_0x5a148b(0x1dc)][_0x5a148b(0x1ca)],'channelType':_0xab944[_0x5a148b(0x1dc)][_0x5a148b(0x1d5)]},'before':null,'after':_0xab944[_0x5a148b(0x1c4)],'dryRun':!![],'backend':{'method':_0x5a148b(0x1d0),'path':CREATE_PATH},'warnings':[],'verification':{'status':_0x5a148b(0x1c4),'lookupCommand':_0x226df0}},{'method':_0x5a148b(0x1d0),'url':CREATE_PATH});},async 'execute'(_0xf7a8e0){const _0x528d47=a152_0x2fee13,_0x835ca5=await prepareCreate(_0xf7a8e0),_0x51d891=notificationLookupCommand(_0xf7a8e0['appCode'],_0x835ca5[_0x528d47(0x1dc)]['channelType']);let _0x347f1c;try{_0x347f1c=await createNotificationChannelConfig(_0x835ca5[_0x528d47(0x1e4)]);}catch(_0x1bcd87){if(isPlatformTransportFailure(_0x1bcd87))throw notificationError(_0x528d47(0x1e1),_0x528d47(0x1c6),_0x528d47(0x1da)+_0x51d891+_0x528d47(0x1d2));throw safeApiFailure('create',_0x528d47(0x1d1),'Inspect\x20with\x20'+_0x51d891+';\x20no\x20automatic\x20retry\x20was\x20attempted.');}if(!Number[_0x528d47(0x1e5)](_0x347f1c)||_0x347f1c<=0x0)throw notificationError(_0x528d47(0x1e1),_0x528d47(0x1e2),_0x528d47(0x1da)+_0x51d891+_0x528d47(0x1d2));let _0x4802db;try{const _0x471eec=await getNotificationChannelConfig(_0x347f1c,_0xf7a8e0[_0x528d47(0x1e7)]);_0x4802db=normalizeExactNotificationConfig(_0x471eec,_0x347f1c,_0xf7a8e0[_0x528d47(0x1e7)]);}catch{throw safeApiFailure('create',_0x528d47(0x1cb),_0x528d47(0x1da)+_0x51d891+';\x20do\x20not\x20resubmit\x20automatically.');}return{'ok':!![],'data':{'operation':_0x528d47(0x1cd),'selector':{'appCode':_0x4802db[_0x528d47(0x1e7)],'id':_0x4802db['id'],'configCode':_0x4802db[_0x528d47(0x1ce)],'configName':_0x4802db[_0x528d47(0x1ca)],'channelType':_0x4802db[_0x528d47(0x1d5)]},'before':null,'after':projectNotificationConfig(_0x4802db),'dryRun':![],'backend':{'method':_0x528d47(0x1d0),'path':CREATE_PATH},'warnings':[],'verification':{'status':'verified','lookupCommand':_0x51d891}},'message':'Created\x20notification\x20config\x20'+_0x4802db['id']};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a153_0x2a75b7=a153_0x4dbd;(function(_0x155d1d,_0x25eec9){const _0x3d9a28=a153_0x4dbd,_0x5ac805=_0x155d1d();while(!![]){try{const _0x22a644=parseInt(_0x3d9a28(0x10e))/0x1+parseInt(_0x3d9a28(0x115))/0x2+parseInt(_0x3d9a28(0x11a))/0x3*(-parseInt(_0x3d9a28(0x11e))/0x4)+-parseInt(_0x3d9a28(0x109))/0x5+-parseInt(_0x3d9a28(0x10d))/0x6*(parseInt(_0x3d9a28(0x10a))/0x7)+parseInt(_0x3d9a28(0x10f))/0x8+-parseInt(_0x3d9a28(0x118))/0x9*(-parseInt(_0x3d9a28(0x120))/0xa);if(_0x22a644===_0x25eec9)break;else _0x5ac805['push'](_0x5ac805['shift']());}catch(_0x34444f){_0x5ac805['push'](_0x5ac805['shift']());}}}(a153_0x5ed2,0xe2301));import{asDryRunResult}from'../../commands/common/dry-run.js';function a153_0x4dbd(_0x4d1bb5,_0x282aaa){_0x4d1bb5=_0x4d1bb5-0x103;const _0x5ed20f=a153_0x5ed2();let _0x4dbd6f=_0x5ed20f[_0x4d1bb5];return _0x4dbd6f;}import{deleteNotificationChannelConfig,isPlatformTransportFailure,listNotificationChannelConfigs}from'../../core/api-client.js';import{notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,projectNotificationConfig,readNotificationId,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure,validateNotificationDeleteReadback}from'../../commands/notification/shared.js';const DELETE_PATH='/notification/channel-config/delete',REFERENCE_WARNING=a153_0x2a75b7(0x11b);function a153_0x5ed2(){const _0x3f584b=['368390NMTAsL','Inspect\x20with\x20','high-risk-write','notification_config_delete_verification_failed','config-delete','notification','POST','2350995hlCADr','14gOODeS','channelType','before','2743722etTOuI','412945SNeXRb','2012320TzaBkv','appCode','Notification\x20config\x20','mutation','Delete\x20an\x20app-level\x20notification\x20config\x20after\x20exact\x20preflight','Delete\x20response\x20was\x20unavailable;\x20list\x20readback\x20proved\x20ID\x20absence\x20without\x20resubmitting.','908182AHDlzW',';\x20no\x20automatic\x20retry\x20was\x20attempted.','notification_config_delete_outcome_unknown','333GhZpGn',';\x20do\x20not\x20resubmit\x20automatically.','3CaEPDI','Deleting\x20this\x20app-level\x20config\x20may\x20make\x20dataset-level\x20channels\x20that\x20reference\x20it\x20unavailable;\x20dataset\x20references\x20were\x20not\x20verified\x20by\x20the\x20CLI.','notification_config_delete_verification_unavailable','delete','681524WHEflm','\x20remains\x20present\x20after\x20delete.'];a153_0x5ed2=function(){return _0x3f584b;};return a153_0x5ed2();}async function prepareDelete(_0x503b33){const _0x1d03b7=a153_0x2a75b7,_0x3f341f=readNotificationId(_0x503b33),_0x2442aa=await requireExactNotificationConfig(_0x503b33[_0x1d03b7(0x110)],_0x3f341f,_0x1d03b7(0x11d));return{'id':_0x3f341f,'before':_0x2442aa};}export const notificationConfigDelete={'service':a153_0x2a75b7(0x107),'command':a153_0x2a75b7(0x106),'description':a153_0x2a75b7(0x113),'risk':a153_0x2a75b7(0x104),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,NOTIFICATION_APP_FLAG],async 'validate'(_0x131932){readNotificationId(_0x131932),requireNotificationExplicitYes(_0x131932);},async 'dryRun'(_0x1368da){const _0x27f640=a153_0x2a75b7,_0x41fbed=await prepareDelete(_0x1368da),_0x5320f9=notificationLookupCommand(_0x1368da[_0x27f640(0x110)],_0x41fbed[_0x27f640(0x10c)][_0x27f640(0x10b)]);return asDryRunResult({'operation':_0x27f640(0x11d),'selector':notificationSelector(_0x41fbed['before']),'before':projectNotificationConfig(_0x41fbed[_0x27f640(0x10c)]),'after':null,'dryRun':!![],'backend':{'method':_0x27f640(0x108),'path':DELETE_PATH},'warnings':[REFERENCE_WARNING],'verification':{'status':'planned','lookupCommand':_0x5320f9}},{'method':_0x27f640(0x108),'url':DELETE_PATH});},async 'execute'(_0x467aa1){const _0x35067a=a153_0x2a75b7;requireNotificationExplicitYes(_0x467aa1);const _0x9f9c20=await prepareDelete(_0x467aa1),_0x4bd7ef=notificationLookupCommand(_0x467aa1['appCode'],_0x9f9c20[_0x35067a(0x10c)][_0x35067a(0x10b)]);let _0x2676a5=![];try{await deleteNotificationChannelConfig(_0x9f9c20['id'],_0x467aa1[_0x35067a(0x110)]);}catch(_0x45a7c2){if(!isPlatformTransportFailure(_0x45a7c2))throw safeApiFailure('delete',_0x35067a(0x112),_0x35067a(0x103)+_0x4bd7ef+_0x35067a(0x116));_0x2676a5=!![];}let _0x32067b;try{_0x32067b=await listNotificationChannelConfigs(_0x467aa1[_0x35067a(0x110)],_0x9f9c20[_0x35067a(0x10c)][_0x35067a(0x10b)]),validateNotificationDeleteReadback(_0x32067b,_0x467aa1[_0x35067a(0x110)],_0x9f9c20[_0x35067a(0x10c)][_0x35067a(0x10b)]);}catch{throw notificationError(_0x2676a5?_0x35067a(0x117):_0x35067a(0x11c),_0x35067a(0x111)+_0x9f9c20['id']+'\x20delete\x20could\x20not\x20be\x20verified.',_0x35067a(0x103)+_0x4bd7ef+_0x35067a(0x119));}if(_0x32067b['some'](_0xd0f14c=>_0xd0f14c['id']===_0x9f9c20['id']))throw notificationError(_0x2676a5?_0x35067a(0x117):_0x35067a(0x105),_0x35067a(0x111)+_0x9f9c20['id']+_0x35067a(0x11f),_0x35067a(0x103)+_0x4bd7ef+_0x35067a(0x119));const _0xdc06fd=[REFERENCE_WARNING];return _0x2676a5&&_0xdc06fd['unshift'](_0x35067a(0x114)),{'ok':!![],'data':{'operation':_0x35067a(0x11d),'selector':notificationSelector(_0x9f9c20[_0x35067a(0x10c)]),'before':projectNotificationConfig(_0x9f9c20[_0x35067a(0x10c)]),'after':null,'dryRun':![],'backend':{'method':_0x35067a(0x108),'path':DELETE_PATH},'warnings':_0xdc06fd,'verification':{'status':'verified','absenceConfirmed':!![],'recoveredAfterUnknownResponse':_0x2676a5,'lookupCommand':_0x4bd7ef}},'message':'Deleted\x20notification\x20config\x20'+_0x9f9c20['id']};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a154_0x5b5810=a154_0x1127;(function(_0x456287,_0x23373b){const _0x1cc27b=a154_0x1127,_0x312124=_0x456287();while(!![]){try{const _0x4f377=-parseInt(_0x1cc27b(0x1fa))/0x1+parseInt(_0x1cc27b(0x1ed))/0x2*(-parseInt(_0x1cc27b(0x1f4))/0x3)+-parseInt(_0x1cc27b(0x1fd))/0x4*(parseInt(_0x1cc27b(0x1ef))/0x5)+parseInt(_0x1cc27b(0x1fe))/0x6*(-parseInt(_0x1cc27b(0x1f8))/0x7)+parseInt(_0x1cc27b(0x1f1))/0x8+-parseInt(_0x1cc27b(0x1f5))/0x9+parseInt(_0x1cc27b(0x1fc))/0xa;if(_0x4f377===_0x23373b)break;else _0x312124['push'](_0x312124['shift']());}catch(_0x3dc0e0){_0x312124['push'](_0x312124['shift']());}}}(a154_0x260d,0xa1e76));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listNotificationChannelConfigs}from'../../core/api-client.js';function a154_0x260d(){const _0x4b1081=['34682220NKjOuP','4107224bxoXkO','5724afcPbs','map','\x20notification\x20config(s)','2374622OkIHZg','notification','5jHbHgo','length','7124616rzuYLG','appCode','type','3RbODcg','5669244hsJtsR','string','EMAIL','287neqooY','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','812494pxdHMo','Found\x20'];a154_0x260d=function(){return _0x4b1081;};return a154_0x260d();}function a154_0x1127(_0x305112,_0x5d21d8){_0x305112=_0x305112-0x1ec;const _0x260df0=a154_0x260d();let _0x1127f5=_0x260df0[_0x305112];return _0x1127f5;}import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':a154_0x5b5810(0x1ee),'command':'config-list','description':a154_0x5b5810(0x1f9),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':a154_0x5b5810(0x1f3),'type':a154_0x5b5810(0x1f6),'description':'Notification\x20channel\x20type','enum':NOTIFICATION_CHANNEL_TYPES,'default':a154_0x5b5810(0x1f7)}],async 'validate'(_0x38c752){readNotificationChannelType(_0x38c752);},async 'execute'(_0x280dfb){const _0x52dd00=a154_0x5b5810,_0x52650d=readNotificationChannelType(_0x280dfb),_0x38611f=await listNotificationChannelConfigs(_0x280dfb[_0x52dd00(0x1f2)],_0x52650d),_0x4b7167=_0x38611f[_0x52dd00(0x1ff)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x280dfb[_0x52dd00(0x1f2)],'channelType':_0x52650d,'count':_0x4b7167[_0x52dd00(0x1f0)],'configs':_0x4b7167},'message':_0x52dd00(0x1fb)+_0x4b7167[_0x52dd00(0x1f0)]+'\x20'+_0x52650d+_0x52dd00(0x1ec)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a155_0x49bf(){const _0x3d19f7=['\x20via\x20','payload','92348hZFpow','allMatch','Inspect\x20with\x20--id\x20','24eGmKFv','Update\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20patch','Update\x20response\x20was\x20unavailable;\x20exact-ID\x20readback\x20proved\x20changed\x20safe\x20fields\x20without\x20resubmitting.','95brpjPV','3345848qFbxCo','verifiedFields','planned','/notification/channel-config/update','channelType','notification_config_update_verification_failed',';\x20do\x20not\x20resubmit\x20automatically.','1441vePikn','5020SFFyKN','1506FObMCQ','update','\x20with\x20','4626CJlati','patch','Notification\x20config\x20','mutation',';\x20no\x20automatic\x20retry\x20was\x20attempted.','2466333EOvEbm','Inspect\x20ID\x20','1792VMvrOs','notification_config_update_outcome_unknown','provesChange','notification','POST','verified','Updated\x20notification\x20config\x20','267697PpzrnJ','before','appCode','high-risk-write'];a155_0x49bf=function(){return _0x3d19f7;};return a155_0x49bf();}function a155_0x3528(_0x26b313,_0x2e1397){_0x26b313=_0x26b313-0x116;const _0x49bf19=a155_0x49bf();let _0x352838=_0x49bf19[_0x26b313];return _0x352838;}const a155_0x1c2247=a155_0x3528;(function(_0x21a7a4,_0x26b5b2){const _0x1b93a7=a155_0x3528,_0x3656c0=_0x21a7a4();while(!![]){try{const _0x5f5292=-parseInt(_0x1b93a7(0x12e))/0x1+-parseInt(_0x1b93a7(0x11d))/0x2*(parseInt(_0x1b93a7(0x137))/0x3)+-parseInt(_0x1b93a7(0x134))/0x4*(parseInt(_0x1b93a7(0x13a))/0x5)+-parseInt(_0x1b93a7(0x120))/0x6*(-parseInt(_0x1b93a7(0x127))/0x7)+parseInt(_0x1b93a7(0x13b))/0x8+parseInt(_0x1b93a7(0x125))/0x9+parseInt(_0x1b93a7(0x11c))/0xa*(parseInt(_0x1b93a7(0x11b))/0xb);if(_0x5f5292===_0x26b5b2)break;else _0x3656c0['push'](_0x3656c0['shift']());}catch(_0x326f57){_0x3656c0['push'](_0x3656c0['shift']());}}}(a155_0x49bf,0x3b558));import{asDryRunResult}from'../../commands/common/dry-run.js';import{getNotificationChannelConfig,isPlatformTransportFailure,updateNotificationChannelConfig}from'../../core/api-client.js';import{assertSingleNotificationSource,mergeUpdateInput,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,NOTIFICATION_INPUT_FLAGS,plannedUpdateProjection,projectNotificationConfig,readNotificationDocument,readNotificationId,requestedSafeFieldsMatch,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure}from'../../commands/notification/shared.js';const UPDATE_PATH=a155_0x1c2247(0x117);async function prepareUpdate(_0x568517){const _0x424b1e=a155_0x1c2247,_0x341800=readNotificationId(_0x568517),_0x44f105=await readNotificationDocument(_0x568517,_0x424b1e(0x11e)),_0x2792ff=await requireExactNotificationConfig(_0x568517[_0x424b1e(0x130)],_0x341800,'update');return{'id':_0x341800,'patch':_0x44f105,'before':_0x2792ff,'payload':mergeUpdateInput(_0x2792ff,_0x44f105),'planned':plannedUpdateProjection(_0x2792ff,_0x44f105)};}export const notificationConfigUpdate={'service':a155_0x1c2247(0x12a),'command':'config-update','description':a155_0x1c2247(0x138),'risk':a155_0x1c2247(0x131),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x51abac){readNotificationId(_0x51abac),assertSingleNotificationSource(_0x51abac),requireNotificationExplicitYes(_0x51abac);},async 'dryRun'(_0x4a95e4){const _0x16950b=a155_0x1c2247,_0x29896f=await prepareUpdate(_0x4a95e4),_0x2fdb5d=notificationLookupCommand(_0x4a95e4[_0x16950b(0x130)],_0x29896f[_0x16950b(0x12f)][_0x16950b(0x118)]);return asDryRunResult({'operation':_0x16950b(0x11e),'selector':notificationSelector(_0x29896f[_0x16950b(0x12f)]),'before':projectNotificationConfig(_0x29896f[_0x16950b(0x12f)]),'after':_0x29896f['planned'],'dryRun':!![],'backend':{'method':_0x16950b(0x12b),'path':UPDATE_PATH},'warnings':[],'verification':{'status':_0x16950b(0x116),'lookupCommand':_0x2fdb5d}},{'method':_0x16950b(0x12b),'url':UPDATE_PATH});},async 'execute'(_0x73f773){const _0x1463e6=a155_0x1c2247;requireNotificationExplicitYes(_0x73f773);const _0x489580=await prepareUpdate(_0x73f773),_0x4b3769=notificationLookupCommand(_0x73f773['appCode'],_0x489580['before'][_0x1463e6(0x118)]);let _0x4c1aa9=![];try{await updateNotificationChannelConfig(_0x489580[_0x1463e6(0x133)]);}catch(_0x28c0e0){if(!isPlatformTransportFailure(_0x28c0e0))throw safeApiFailure('update',_0x1463e6(0x123),_0x1463e6(0x126)+_0x489580['id']+_0x1463e6(0x11f)+_0x4b3769+_0x1463e6(0x124));_0x4c1aa9=!![];}let _0xb13c0c;try{const _0x789f96=await getNotificationChannelConfig(_0x489580['id'],_0x73f773['appCode']);_0xb13c0c=normalizeExactNotificationConfig(_0x789f96,_0x489580['id'],_0x73f773[_0x1463e6(0x130)]);}catch{throw notificationError(_0x4c1aa9?_0x1463e6(0x128):'notification_config_update_verification_unavailable',_0x1463e6(0x122)+_0x489580['id']+'\x20update\x20could\x20not\x20be\x20verified\x20by\x20exact\x20ID.',_0x1463e6(0x136)+_0x489580['id']+_0x1463e6(0x132)+_0x4b3769+_0x1463e6(0x11a));}const _0x4d2128=requestedSafeFieldsMatch(_0x489580[_0x1463e6(0x12f)],_0xb13c0c,_0x489580[_0x1463e6(0x121)]);if(!_0x4d2128[_0x1463e6(0x135)]||_0x4c1aa9&&!_0x4d2128[_0x1463e6(0x129)])throw notificationError(_0x4c1aa9?'notification_config_update_outcome_unknown':_0x1463e6(0x119),_0x1463e6(0x122)+_0x489580['id']+'\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20update.',_0x1463e6(0x136)+_0x489580['id']+'\x20via\x20'+_0x4b3769+_0x1463e6(0x11a));const _0x101bd4=_0x4c1aa9?[_0x1463e6(0x139)]:[];return{'ok':!![],'data':{'operation':_0x1463e6(0x11e),'selector':notificationSelector(_0xb13c0c),'before':projectNotificationConfig(_0x489580[_0x1463e6(0x12f)]),'after':projectNotificationConfig(_0xb13c0c),'dryRun':![],'backend':{'method':_0x1463e6(0x12b),'path':UPDATE_PATH},'warnings':_0x101bd4,'verification':{'status':_0x1463e6(0x12c),'recoveredAfterUnknownResponse':_0x4c1aa9,'verifiedFields':_0x4d2128[_0x1463e6(0x13c)],'lookupCommand':_0x4b3769}},'message':_0x1463e6(0x12d)+_0xb13c0c['id']};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3c1e87,_0x265547){const _0x10ceb4=a156_0x15ac,_0x2e3dea=_0x3c1e87();while(!![]){try{const _0x47a6a3=parseInt(_0x10ceb4(0x1e0))/0x1*(parseInt(_0x10ceb4(0x1de))/0x2)+parseInt(_0x10ceb4(0x1da))/0x3*(-parseInt(_0x10ceb4(0x1e1))/0x4)+parseInt(_0x10ceb4(0x1e3))/0x5+-parseInt(_0x10ceb4(0x1db))/0x6*(parseInt(_0x10ceb4(0x1df))/0x7)+parseInt(_0x10ceb4(0x1dc))/0x8*(parseInt(_0x10ceb4(0x1dd))/0x9)+parseInt(_0x10ceb4(0x1d9))/0xa*(-parseInt(_0x10ceb4(0x1d8))/0xb)+-parseInt(_0x10ceb4(0x1e2))/0xc;if(_0x47a6a3===_0x265547)break;else _0x2e3dea['push'](_0x2e3dea['shift']());}catch(_0x150537){_0x2e3dea['push'](_0x2e3dea['shift']());}}}(a156_0x388a,0xa9b3b));import{notificationConfigList}from'../../commands/notification/config-list.js';import{notificationConfigCreate}from'../../commands/notification/config-create.js';import{notificationConfigUpdate}from'../../commands/notification/config-update.js';function a156_0x15ac(_0x37d0f6,_0xdab77a){_0x37d0f6=_0x37d0f6-0x1d8;const _0x388a2a=a156_0x388a();let _0x15ac6f=_0x388a2a[_0x37d0f6];return _0x15ac6f;}import{notificationConfigDelete}from'../../commands/notification/config-delete.js';export const notificationDefinitions=[notificationConfigList,notificationConfigCreate,notificationConfigUpdate,notificationConfigDelete];function a156_0x388a(){const _0x5f5df9=['9GnbDNj','32hdOAtk','399ZKJDdV','65369FZuJoi','4CBNYLy','5835216ZyKeEI','3176255IvghCD','40337ZNccQr','480JNsKdJ','727833Qjijzi','68490IFRzRH','4555952itVWTF'];a156_0x388a=function(){return _0x5f5df9;};return a156_0x388a();}
|