@lovrabet/rabetbase-cli 2.2.4-beta.5 → 2.2.4-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/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/add.js +1 -1
- package/lib/commands/app/discover.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remove.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app/use.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-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-selector.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.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/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.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-update.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-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/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.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/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/init/index.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/logs/index.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/shared/compare-table.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/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/update.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/shared.js +1 -1
- package/lib/commands/page/standard-page-status.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/non-interactive.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/index.js +1 -1
- package/lib/commands/project/init.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/skill/index.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/save.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/workspace/index.js +1 -0
- 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/risk.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/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-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/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/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.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/copy-directory.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/rules-cdn.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
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a89_0x53e7e9=a89_0x59ca;(function(_0x4a5382,_0x39eb34){const _0x59c975=a89_0x59ca,_0x187c90=_0x4a5382();while(!![]){try{const _0x2c8b9a=parseInt(_0x59c975(0x1af))/0x1*(-parseInt(_0x59c975(0x1ad))/0x2)+parseInt(_0x59c975(0x1a6))/0x3+parseInt(_0x59c975(0x1b3))/0x4+-parseInt(_0x59c975(0x1a7))/0x5*(-parseInt(_0x59c975(0x1b0))/0x6)+parseInt(_0x59c975(0x1aa))/0x7*(parseInt(_0x59c975(0x19c))/0x8)+-parseInt(_0x59c975(0x1ac))/0x9+parseInt(_0x59c975(0x1a4))/0xa*(parseInt(_0x59c975(0x1a9))/0xb);if(_0x2c8b9a===_0x39eb34)break;else _0x187c90['push'](_0x187c90['shift']());}catch(_0x4ccb35){_0x187c90['push'](_0x187c90['shift']());}}}(a89_0x1ae8,0xf09ca));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';function a89_0x59ca(_0x44d9ff,_0x36f967){_0x44d9ff=_0x44d9ff-0x19a;const _0x1ae8b0=a89_0x1ae8();let _0x59ca6b=_0x1ae8b0[_0x44d9ff];return _0x59ca6b;}const pagesDir=resolve(process['cwd'](),a89_0x53e7e9(0x1b6));export function extractTitleFromComment(_0x2919d7){const _0x5c9230=a89_0x53e7e9;try{const _0x548de4=readFileSync(_0x2919d7,_0x5c9230(0x1b4)),_0x432933=_0x548de4[_0x5c9230(0x1a0)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x432933&&_0x432933[0x1]){const _0x54cfee=_0x432933[0x1],_0x2a32ca=_0x54cfee[_0x5c9230(0x1a0)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x2a32ca&&_0x2a32ca[0x1])return _0x2a32ca[0x1][_0x5c9230(0x1b2)]();}let _0x7b46b=null;const _0x207bec=_0x548de4['match'](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x207bec&&_0x207bec[0x1]&&(_0x7b46b=_0x207bec[0x1]);if(!_0x7b46b){const _0x5345e6=_0x548de4[_0x5c9230(0x1a0)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x5345e6&&_0x5345e6[0x1]&&(_0x7b46b=_0x5345e6[0x1]);}if(_0x7b46b){const _0x59828d=new RegExp('\x5cb'+_0x7b46b+_0x5c9230(0x19a)),_0x20524b=_0x548de4[_0x5c9230(0x1a0)](_0x59828d);if(_0x20524b&&_0x20524b[0x1])return _0x20524b[0x1];return _0x7b46b;}return null;}catch(_0x5a75b2){return null;}}function a89_0x1ae8(){const _0x2f9bc2=['replaceAll','replace','concat','20yMJJLR','path','1747410hnxZvn','3875CpndTq','join','6379582xRYSVH','1696359XUjXNc','push','11918367gzFYhz','4qXYwDb','slice','891266PSCEXe','11076ILdkgM','filter','trim','1738492lEMuEv','utf-8','index.tsx','src/pages','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','isDirectory','16rRlMut','forEach','endsWith','.tsx','match'];a89_0x1ae8=function(){return _0x2f9bc2;};return a89_0x1ae8();}export function getLocalPages(_0x495fc0=pagesDir,_0x41dc56=pagesDir){const _0x28bcab=a89_0x53e7e9;let _0x5b4b24=[];const _0x53aa81=readdirSync(_0x495fc0);return _0x53aa81[_0x28bcab(0x19d)](_0xfd7f6=>{const _0x560164=_0x28bcab,_0x17c7ac=join(_0x495fc0,_0xfd7f6),_0x22519d=statSync(_0x17c7ac);if(_0x22519d&&_0x22519d[_0x560164(0x19b)]())_0x5b4b24=_0x5b4b24[_0x560164(0x1a3)](getLocalPages(_0x17c7ac,_0x41dc56));else{if(_0xfd7f6[_0x560164(0x19e)](_0x560164(0x19f))){let _0x55cee2=relative(_0x41dc56,_0x17c7ac);_0x55cee2['endsWith'](_0x560164(0x1b5))?_0x55cee2=_0x55cee2[_0x560164(0x1a2)](/index\.tsx$/,''):_0x55cee2=_0x55cee2['replace'](/\.tsx$/,'');_0x55cee2[_0x560164(0x19e)](sep)&&(_0x55cee2=_0x55cee2[_0x560164(0x1ae)](0x0,-0x1));const _0x1f8f23=_0x55cee2['split'](sep)[_0x560164(0x1a8)]('/'),_0x42bcf5=extractTitleFromComment(_0x17c7ac),_0x269f9d=_0x42bcf5||_0x1f8f23;_0x5b4b24[_0x560164(0x1ab)]({'path':_0x1f8f23[_0x560164(0x1a1)]('$',':'),'label':_0x269f9d});}}}),_0x5b4b24[_0x28bcab(0x1b1)](_0x1536f5=>_0x1536f5[_0x28bcab(0x1a5)]!=='');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x35129e,_0x1ccc10){const _0x140a4d=a90_0x3910,_0xdc0e6=_0x35129e();while(!![]){try{const _0xe17b28=parseInt(_0x140a4d(0xde))/0x1*(-parseInt(_0x140a4d(0xe5))/0x2)+parseInt(_0x140a4d(0xda))/0x3+parseInt(_0x140a4d(0xd7))/0x4+-parseInt(_0x140a4d(0xe7))/0x5+parseInt(_0x140a4d(0xd2))/0x6+-parseInt(_0x140a4d(0xdb))/0x7*(parseInt(_0x140a4d(0xea))/0x8)+-parseInt(_0x140a4d(0xd1))/0x9;if(_0xe17b28===_0x1ccc10)break;else _0xdc0e6['push'](_0xdc0e6['shift']());}catch(_0xb1a8e9){_0xdc0e6['push'](_0xdc0e6['shift']());}}}(a90_0x2bfc,0xb4ea1));import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';import{getOnlineMenuList,createMenus,updateMenuCdnUrl}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';function a90_0x2bfc(){const _0x159819=['16504EgmjTe','rejected','label','path','push','fulfilled','378162pVvYkT','5194992KTgJSg','allSettled','join','value','resources','2787004dShwch','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','extend','3984840bdooSz','742rLRemR','length','status','842846pveOsF','filter','errors','has','find','trim','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','2PIUkvD','map','5231480DPBlDd','CSS\x20URL\x20is\x20unreachable','JS\x20URL\x20is\x20unreachable'];a90_0x2bfc=function(){return _0x159819;};return a90_0x2bfc();}export function validateJsUrl(_0x1770c6){const _0x2e352c=a90_0x3910,_0x4ad31d=[];return!isValidJsHttpsUrl(_0x1770c6)&&_0x4ad31d[_0x2e352c(0xee)](_0x2e352c(0xe4)),{'ok':_0x4ad31d['length']===0x0,'errors':_0x4ad31d};}export function validateCssUrl(_0x1bc07c){const _0x460be2=a90_0x3910,_0xbbcb3e=[];return!isValidCssHttpsUrl(_0x1bc07c)&&_0xbbcb3e['push'](_0x460be2(0xd8)),{'ok':_0xbbcb3e[_0x460be2(0xdc)]===0x0,'errors':_0xbbcb3e};}export async function validateJsUrlReachable(_0x486b93){const _0x383de4=a90_0x3910,_0x533676=validateJsUrl(_0x486b93);if(!_0x533676['ok'])return _0x533676;const _0x385111=await isUrlReachable(_0x486b93);if(!_0x385111)_0x533676['errors']['push'](_0x383de4(0xe9));return{'ok':_0x533676[_0x383de4(0xe0)][_0x383de4(0xdc)]===0x0,'errors':_0x533676['errors']};}export async function validateCssUrlReachable(_0x516c37){const _0x3ca8bf=a90_0x3910,_0x120f90=validateCssUrl(_0x516c37);if(!_0x120f90['ok'])return _0x120f90;const _0x4436ac=await isUrlReachable(_0x516c37);if(!_0x4436ac)_0x120f90[_0x3ca8bf(0xe0)][_0x3ca8bf(0xee)](_0x3ca8bf(0xe8));return{'ok':_0x120f90[_0x3ca8bf(0xe0)][_0x3ca8bf(0xdc)]===0x0,'errors':_0x120f90[_0x3ca8bf(0xe0)]};}export function buildCompareRows(_0x56ab11,_0x2572e3){const _0x51b0d0=a90_0x3910;return _0x56ab11[_0x51b0d0(0xe6)](_0x381ed3=>({'label':_0x381ed3[_0x51b0d0(0xec)],'path':_0x381ed3[_0x51b0d0(0xed)],'local':!![],'online':_0x2572e3[_0x51b0d0(0xe1)](_0x381ed3[_0x51b0d0(0xed)])}));}function a90_0x3910(_0x49ed3f,_0x560e1f){_0x49ed3f=_0x49ed3f-0xd1;const _0x2bfcee=a90_0x2bfc();let _0x39104f=_0x2bfcee[_0x49ed3f];return _0x39104f;}export function filterNewPages(_0x429513,_0x54a170,_0x3d7175){const _0x30f0ef=a90_0x3910;if(_0x3d7175&&_0x3d7175[_0x30f0ef(0xdc)]>0x0){const _0x56522d=new Set(_0x3d7175['map'](_0xaf3bb0=>_0xaf3bb0[_0x30f0ef(0xe3)]())),_0x5890c4=_0x429513[_0x30f0ef(0xdf)](_0x38327b=>_0x56522d['has'](_0x38327b['label']));if(_0x5890c4[_0x30f0ef(0xdc)]===0x0)throw new Error('No\x20local\x20pages\x20matched\x20labels:\x20'+[..._0x56522d][_0x30f0ef(0xd4)](',\x20'));return _0x5890c4;}return _0x429513[_0x30f0ef(0xdf)](_0x127960=>!_0x54a170['has'](_0x127960[_0x30f0ef(0xed)]));}export function filterPagesByLabels(_0x415d30,_0x1cc259){const _0x38d632=a90_0x3910,_0x2d6399=[],_0x26210a=[];for(const _0x4f58df of _0x1cc259){const _0x26cd87=_0x4f58df['trim'](),_0x478a7e=_0x415d30[_0x38d632(0xe2)](_0x13fd8f=>_0x13fd8f['label']===_0x26cd87);if(_0x478a7e)_0x2d6399['push'](_0x478a7e);else _0x26210a[_0x38d632(0xee)](_0x4f58df);}return{'matched':_0x2d6399,'unmatched':_0x26210a};}export async function doCreateMenus(_0x27d1b2,_0x3571d4,_0xb204d7,_0xf78529){const _0x256bea=a90_0x3910,_0x25e324=await createMenus(_0x27d1b2,_0x3571d4,_0xb204d7,_0xf78529);return{'created':_0x25e324[_0x256bea(0xdc)],'failed':0x0,'labels':_0xb204d7[_0x256bea(0xe6)](_0x16f11d=>_0x16f11d[_0x256bea(0xec)]),'menus':_0x25e324};}export function filterMenusWithResources(_0xad047d){const _0x48e7df=a90_0x3910;return _0xad047d['filter'](_0x421506=>_0x421506[_0x48e7df(0xd6)][_0x48e7df(0xdc)]>0x0);}export async function doUpdateCdnUrls(_0x4ef90a,_0x3b1d7c,_0x4b436f,_0x4e37a9){const _0x4d9b95=a90_0x3910,_0x7403ce=_0x4b436f['filter'](_0x3dca5c=>_0x3dca5c[_0x4d9b95(0xd6)][_0x4d9b95(0xdc)]>0x0),_0x283f1b=await Promise[_0x4d9b95(0xd3)](_0x7403ce['map'](_0x4eb6cf=>updateMenuCdnUrl(_0x4ef90a,_0x3b1d7c,{'id':_0x4eb6cf['id'],'label':_0x4eb6cf[_0x4d9b95(0xec)],'path':_0x4eb6cf[_0x4d9b95(0xed)],'resources':_0x4e37a9,'extend':_0x4eb6cf[_0x4d9b95(0xd9)]??null}))),_0x22c3a9=_0x283f1b['filter'](_0x2ee98b=>_0x2ee98b['status']===_0x4d9b95(0xef))[_0x4d9b95(0xe6)](_0x5ae3d7=>_0x5ae3d7[_0x4d9b95(0xd5)]),_0x2d4d8e=_0x283f1b[_0x4d9b95(0xdf)](_0x2be30b=>_0x2be30b[_0x4d9b95(0xdd)]===_0x4d9b95(0xeb))['length'];return{'updated':_0x22c3a9[_0x4d9b95(0xdc)],'failed':_0x2d4d8e,'menus':_0x22c3a9};}export async function fetchMenuData(_0x124765,_0x5d8c8c){const _0x4cea56=a90_0x3910,_0x75a4b7=getLocalPages(),_0x13c1c1=await getOnlineMenuList(_0x124765,_0x5d8c8c),_0x1554af=new Set(_0x13c1c1['map'](_0x2a275f=>_0x2a275f[_0x4cea56(0xed)]));return{'localPages':_0x75a4b7,'onlineMenuList':_0x13c1c1,'onlinePaths':_0x1554af};}export async function fetchOnlineMenuList(_0x2ef7ee,_0x1e3c5c){return getOnlineMenuList(_0x2ef7ee,_0x1e3c5c);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a91_0x245b(){const _0x2a803d=['procode','24LBlOJh','get-online-menu-list','import','8225127zsJBgH','3021729ysELsh','update-menu-cdn-url','388686JIfVpB','stringify','info','Server\x20returned\x20empty\x20menu\x20list','all','map','string','954919pXPeKj','POST','632702NgnUEL','label','path','extend','Batch\x20menu\x20creation\x20completed,\x20total\x20','Menu\x20created\x20successfully:\x20','children','Fetching\x20online\x20menu\x20list...\x20(appCode:\x20','length','19790AdGHVO','140PJzcHV','Menu\x20assets\x20synced:\x20','6677ZFKedE','1284265nkCbxK','/smartapi/menu/create','create-menu','resources','Create\x20menu\x20\x22','flat','Start\x20batch\x20menu\x20creation,\x20total\x20','isArray','push','create-menus','Creating\x20menu:\x20','/smartapi/menu/update','4DPCHBT'];a91_0x245b=function(){return _0x2a803d;};return a91_0x245b();}(function(_0x3ad247,_0x5d59b4){const _0x3d0c6f=a91_0x654d,_0x3e6f5b=_0x3ad247();while(!![]){try{const _0x59811e=-parseInt(_0x3d0c6f(0x1ae))/0x1+-parseInt(_0x3d0c6f(0x1a1))/0x2+-parseInt(_0x3d0c6f(0x196))/0x3*(parseInt(_0x3d0c6f(0x190))/0x4)+parseInt(_0x3d0c6f(0x1ab))/0x5*(parseInt(_0x3d0c6f(0x198))/0x6)+-parseInt(_0x3d0c6f(0x19f))/0x7*(parseInt(_0x3d0c6f(0x192))/0x8)+parseInt(_0x3d0c6f(0x195))/0x9+-parseInt(_0x3d0c6f(0x1aa))/0xa*(-parseInt(_0x3d0c6f(0x1ad))/0xb);if(_0x59811e===_0x5d59b4)break;else _0x3e6f5b['push'](_0x3e6f5b['shift']());}catch(_0x32d6f2){_0x3e6f5b['push'](_0x3e6f5b['shift']());}}}(a91_0x245b,0xdea2a));import{getApiDomain}from'../../../constant/domain.js';import{getEnv,isProduction}from'../../../constant/env.js';import{logger}from'../../../utils/logger.js';import{platformFetch}from'../../../core/api-client.js';export async function getOnlineMenuList(_0x349ce5,_0x144bf8){const _0x57690b=a91_0x654d,_0x430f83=getEnv();logger['info'](_0x57690b(0x193),isProduction(_0x430f83)?_0x57690b(0x1a8)+_0x349ce5+')':'Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20'+_0x349ce5+')');const _0x566b74=await platformFetch(getApiDomain()+'/smartapi/menu/find?appCode='+_0x349ce5,{'cookie':_0x144bf8,'label':'Fetch\x20menu\x20list'});if(!_0x566b74)return logger[_0x57690b(0x19a)](_0x57690b(0x193),_0x57690b(0x19b)),[];return logger[_0x57690b(0x19a)](_0x57690b(0x193),'Fetched\x20'+_0x566b74[_0x57690b(0x1a9)]+'\x20online\x20menus\x20successfully'),_0x566b74['map'](flattenMenuItem)[_0x57690b(0x189)]();}function flattenMenuItem(_0x3c7a29){const _0x57f3b4=a91_0x654d;let _0x51e299=[];try{const _0x4fa487=_0x3c7a29[_0x57f3b4(0x1a4)]?.['resources'];if(typeof _0x4fa487===_0x57f3b4(0x19e)){const _0x50e19e=JSON['parse'](_0x4fa487);if(Array[_0x57f3b4(0x18b)](_0x50e19e))_0x51e299=_0x50e19e['map'](String);}else Array['isArray'](_0x4fa487)&&(_0x51e299=_0x4fa487[_0x57f3b4(0x19d)](String));}catch{}const _0x2f33b3=[{'id':_0x3c7a29['id'],'path':_0x3c7a29[_0x57f3b4(0x1a3)],'label':_0x3c7a29['label'],'resources':_0x51e299,'extend':_0x3c7a29['extend']??null}];if(_0x3c7a29['children']&&_0x3c7a29[_0x57f3b4(0x1a7)]['length']>0x0)for(const _0x3fcc5f of _0x3c7a29['children']){_0x2f33b3[_0x57f3b4(0x18c)](...flattenMenuItem(_0x3fcc5f));}return _0x2f33b3;}export async function createMenu(_0xb7ee9a,_0x1eec02,_0x3ed6d1){const _0x5f5309=a91_0x654d;logger[_0x5f5309(0x19a)](_0x5f5309(0x186),_0x5f5309(0x18e)+_0x3ed6d1[_0x5f5309(0x1a2)]+'\x20('+_0x3ed6d1[_0x5f5309(0x1a3)]+')');const _0x271bf2={'appCode':_0xb7ee9a,'type':_0x5f5309(0x191),'sort':0x0,'extend':{'loadScriptMode':'import','resources':_0x3ed6d1['resources']?JSON[_0x5f5309(0x199)](_0x3ed6d1['resources']):undefined},..._0x3ed6d1},_0x34593e=await platformFetch(getApiDomain()+_0x5f5309(0x1af),{'method':_0x5f5309(0x1a0),'body':_0x271bf2,'cookie':_0x1eec02,'label':_0x5f5309(0x188)+_0x3ed6d1['label']+'\x22'});return logger['info'](_0x5f5309(0x186),_0x5f5309(0x1a6)+_0x3ed6d1[_0x5f5309(0x1a2)]),_0x34593e;}async function createSingleMenu(_0x713f3d,_0x229208,_0x3d3174,_0x29363f){const _0xcbb649=a91_0x654d,_0x35e7c4={'appCode':_0x713f3d,'type':_0xcbb649(0x191),'sort':0x0,'extend':{'loadScriptMode':_0xcbb649(0x194),'resources':_0x29363f?JSON[_0xcbb649(0x199)](_0x29363f):undefined},'label':_0x3d3174[_0xcbb649(0x1a2)],'path':_0x3d3174[_0xcbb649(0x1a3)]},_0x466746=await platformFetch(getApiDomain()+'/smartapi/menu/create',{'method':_0xcbb649(0x1a0),'body':_0x35e7c4,'cookie':_0x229208,'label':'Create\x20menu\x20\x22'+_0x3d3174[_0xcbb649(0x1a2)]+'\x22'});return logger[_0xcbb649(0x19a)]('create-menu',_0xcbb649(0x1a6)+_0x3d3174[_0xcbb649(0x1a2)]),_0x466746;}function a91_0x654d(_0x1007cb,_0xb93dfb){_0x1007cb=_0x1007cb-0x186;const _0x245b1d=a91_0x245b();let _0x654d2d=_0x245b1d[_0x1007cb];return _0x654d2d;}export async function createMenus(_0x1b3fd7,_0x37b516,_0x4eed85,_0x24e2ee){const _0x53b282=a91_0x654d;logger[_0x53b282(0x19a)](_0x53b282(0x18d),_0x53b282(0x18a)+_0x4eed85['length']);const _0x417fb3=await Promise[_0x53b282(0x19c)](_0x4eed85[_0x53b282(0x19d)](_0x2db05f=>createSingleMenu(_0x1b3fd7,_0x37b516,_0x2db05f,_0x24e2ee)));return logger['info']('create-menus',_0x53b282(0x1a5)+_0x4eed85['length']),_0x417fb3;}export async function updateMenuCdnUrl(_0x1ef127,_0x421667,_0x2cb3a7){const _0xf58822=a91_0x654d;logger['info'](_0xf58822(0x197),'Updating\x20menu\x20asset\x20links:\x20'+_0x2cb3a7[_0xf58822(0x1a2)]+'\x20('+_0x2cb3a7[_0xf58822(0x1a3)]+')');const _0x1b1ee7={'id':_0x2cb3a7['id'],'appCode':_0x1ef127,'extend':{..._0x2cb3a7[_0xf58822(0x1a4)]??{},'loadScriptMode':_0xf58822(0x194),'resources':_0x2cb3a7[_0xf58822(0x187)]?JSON[_0xf58822(0x199)](_0x2cb3a7[_0xf58822(0x187)]):undefined}},_0x427c97=await platformFetch(getApiDomain()+_0xf58822(0x18f),{'method':'POST','body':_0x1b1ee7,'cookie':_0x421667,'label':'Update\x20menu\x20assets\x20\x22'+_0x2cb3a7[_0xf58822(0x1a2)]+'\x22'});return logger[_0xf58822(0x19a)](_0xf58822(0x197),_0xf58822(0x1ac)+_0x2cb3a7[_0xf58822(0x1a2)],undefined),_0x427c97;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x36827a,_0x4afe9f){const _0x350a76=a92_0x9029,_0x5928f8=_0x36827a();while(!![]){try{const _0x4fe508=parseInt(_0x350a76(0x1ea))/0x1+parseInt(_0x350a76(0x1f7))/0x2*(-parseInt(_0x350a76(0x1e4))/0x3)+-parseInt(_0x350a76(0x204))/0x4*(-parseInt(_0x350a76(0x1dc))/0x5)+-parseInt(_0x350a76(0x1f3))/0x6*(parseInt(_0x350a76(0x1dd))/0x7)+-parseInt(_0x350a76(0x1f8))/0x8+parseInt(_0x350a76(0x1e1))/0x9+-parseInt(_0x350a76(0x1f1))/0xa;if(_0x4fe508===_0x4afe9f)break;else _0x5928f8['push'](_0x5928f8['shift']());}catch(_0x5d057e){_0x5928f8['push'](_0x5928f8['shift']());}}}(a92_0x23e2,0x78858));import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';import{getOnlineMenuList,createMenus}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';import{logger}from'../../../utils/logger.js';function a92_0x9029(_0x3fa4c5,_0x5dce2d){_0x3fa4c5=_0x3fa4c5-0x1dc;const _0x23e28b=a92_0x23e2();let _0x902966=_0x23e28b[_0x3fa4c5];return _0x902966;}function validateParams(_0x4a6005){const _0x1a911c=a92_0x9029,_0x1639d3=[];return _0x4a6005[_0x1a911c(0x1f5)]&&!isValidJsHttpsUrl(_0x4a6005['jsUrl'])&&_0x1639d3[_0x1a911c(0x1ee)]({'field':_0x1a911c(0x1f5),'message':_0x1a911c(0x1f0)}),_0x4a6005[_0x1a911c(0x1ed)]&&!isValidCssHttpsUrl(_0x4a6005[_0x1a911c(0x1ed)])&&_0x1639d3[_0x1a911c(0x1ee)]({'field':_0x1a911c(0x1ed),'message':_0x1a911c(0x1e5)}),_0x1639d3;}export async function runMenuSyncCore(_0x45423b,_0x56545d,_0x3a0f84=[],_0x2c2d68){const _0x3c58ad=a92_0x9029,_0x8cfa1=parseParamsFlag(_0x2c2d68),_0x26cc40=_0x3a0f84[_0x3c58ad(0x205)]>0x0?_0x3a0f84:_0x8cfa1[_0x3c58ad(0x1e6)],_0x2ed504=_0x8cfa1[_0x3c58ad(0x1f5)],_0xcd7fce=_0x8cfa1[_0x3c58ad(0x1ed)],_0x12bd40=[];if(_0x2ed504)_0x12bd40[_0x3c58ad(0x1ee)](_0x2ed504);if(_0xcd7fce)_0x12bd40[_0x3c58ad(0x1ee)](_0xcd7fce);const _0x561b9d=validateParams(_0x8cfa1);if(_0x561b9d[_0x3c58ad(0x205)]>0x0){const _0xac2875=_0x561b9d[_0x3c58ad(0x1fb)](_0x29a388=>'--params.'+_0x29a388[_0x3c58ad(0x1e3)]+':\x20'+_0x29a388[_0x3c58ad(0x1de)])[_0x3c58ad(0x1f6)](';\x20');throw new Error(_0x3c58ad(0x1fa)+_0xac2875);}logger['setLogPath'](process[_0x3c58ad(0x1e9)]()),logger['info'](_0x3c58ad(0x1f9),_0x3c58ad(0x1e8),{'appCode':_0x45423b,'selectedCount':_0x26cc40?.[_0x3c58ad(0x205)],'jsUrl':_0x2ed504,'cssUrl':_0xcd7fce});if(_0x2ed504){const _0x4e485e=await isUrlReachable(_0x2ed504);if(!_0x4e485e)throw new Error(_0x3c58ad(0x200)+_0x2ed504);}if(_0xcd7fce){const _0xaac37b=await isUrlReachable(_0xcd7fce);if(!_0xaac37b)throw new Error(_0x3c58ad(0x202)+_0xcd7fce);}const _0x2adc38=getLocalPages();if(_0x2adc38[_0x3c58ad(0x205)]===0x0)return{'created':0x0,'skipped':!![],'targetPages':[]};const _0xeae9e8=await getOnlineMenuList(_0x45423b,_0x56545d),_0x1ec3e4=new Set(_0xeae9e8['map'](_0x42b971=>_0x42b971['path']));let _0x58604f;if(_0x26cc40&&_0x26cc40[_0x3c58ad(0x205)]>0x0){const _0x2cb040=new Set(_0x26cc40['map'](_0x74e495=>_0x74e495[_0x3c58ad(0x201)]()));_0x58604f=_0x2adc38[_0x3c58ad(0x1fe)](_0x25e7a8=>_0x2cb040[_0x3c58ad(0x1e7)](_0x25e7a8[_0x3c58ad(0x203)]));if(_0x58604f[_0x3c58ad(0x205)]===0x0){const _0x160a8a=_0x2adc38[_0x3c58ad(0x1fb)](_0x104534=>_0x104534[_0x3c58ad(0x203)])[_0x3c58ad(0x1f6)](',\x20');throw new Error('No\x20local\x20pages\x20matched\x20labels:\x20'+[..._0x2cb040][_0x3c58ad(0x1f6)](',\x20')+_0x3c58ad(0x1df)+_0x160a8a);}}else _0x58604f=_0x2adc38[_0x3c58ad(0x1fe)](_0x19600d=>!_0x1ec3e4[_0x3c58ad(0x1e7)](_0x19600d[_0x3c58ad(0x1e2)]));if(_0x58604f[_0x3c58ad(0x205)]===0x0)return{'created':0x0,'skipped':!![],'targetPages':[]};const _0x117b47=await createMenus(_0x45423b,_0x56545d,_0x58604f,_0x12bd40[_0x3c58ad(0x205)]>0x0?_0x12bd40:undefined);return logger['info'](_0x3c58ad(0x1f9),'Menu\x20sync\x20completed',{'count':_0x58604f[_0x3c58ad(0x205)],'resources':_0x12bd40}),{'created':_0x117b47['length'],'skipped':![],'targetPages':_0x58604f,'menus':_0x117b47};}function a92_0x23e2(){const _0x2a70f8=['push','isArray','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','1040970lNBOdO','string','138btMmML','object','jsUrl','join','158BThHRP','689352GoZSwN','menu-sync','Invalid\x20--params:\x20','map','end','toString','filter','isTTY','JS\x20URL\x20is\x20unreachable:\x20','trim','CSS\x20URL\x20is\x20unreachable:\x20','label','783188UJZPJF','length','20VHRveC','132776CjBwOo','message','\x0a\x20\x20Available\x20local\x20pages:\x20','pages','4191111oNTaxt','path','field','17268RldgIC','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','selectedLabels','has','Start\x20non-interactive\x20menu\x20sync','cwd','326043IojQPa','stdin','concat','cssUrl'];a92_0x23e2=function(){return _0x2a70f8;};return a92_0x23e2();}export async function readPageLabelsFromStdin(){const _0xbc0909=a92_0x9029;if(!process[_0xbc0909(0x1eb)][_0xbc0909(0x1ff)]&&!process[_0xbc0909(0x1eb)]['readableEnded'])return new Promise(_0x1e72cf=>{const _0x40bf2c=_0xbc0909,_0x5b90c5=[];process[_0x40bf2c(0x1eb)]['on']('data',_0x185a17=>_0x5b90c5['push'](_0x185a17)),process[_0x40bf2c(0x1eb)]['on'](_0x40bf2c(0x1fc),()=>{const _0x59af0c=_0x40bf2c,_0x2a06f8=Buffer[_0x59af0c(0x1ec)](_0x5b90c5)[_0x59af0c(0x1fd)]('utf8'),_0x38862c=_0x2a06f8['split']('\x0a')['map'](_0x220671=>_0x220671[_0x59af0c(0x201)]())[_0x59af0c(0x1fe)](_0x469b92=>_0x469b92['length']>0x0&&!_0x469b92['startsWith']('#'));_0x1e72cf(_0x38862c);}),setTimeout(()=>_0x1e72cf([]),0x1f4);});return[];}function parseParamsFlag(_0x1dac0f){const _0x5f43a8=a92_0x9029;if(!_0x1dac0f||typeof _0x1dac0f!==_0x5f43a8(0x1f2))return{};try{const _0x1c212c=JSON['parse'](_0x1dac0f);if(typeof _0x1c212c!==_0x5f43a8(0x1f4)||_0x1c212c===null||Array[_0x5f43a8(0x1ef)](_0x1c212c))return{};return{'selectedLabels':Array[_0x5f43a8(0x1ef)](_0x1c212c[_0x5f43a8(0x1e0)])?_0x1c212c[_0x5f43a8(0x1e0)][_0x5f43a8(0x1fb)](String):undefined,'jsUrl':typeof _0x1c212c['jsUrl']==='string'?_0x1c212c[_0x5f43a8(0x1f5)][_0x5f43a8(0x201)]():undefined,'cssUrl':typeof _0x1c212c['cssUrl']===_0x5f43a8(0x1f2)?_0x1c212c[_0x5f43a8(0x1ed)]['trim']():undefined};}catch{return{};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x11812c,_0x3cf0aa){const _0xbf027d=a94_0x13d7,_0x3b86de=_0x11812c();while(!![]){try{const _0x5e6034=parseInt(_0xbf027d(0x214))/0x1+parseInt(_0xbf027d(0x20d))/0x2*(-parseInt(_0xbf027d(0x1f3))/0x3)+-parseInt(_0xbf027d(0x1fb))/0x4+parseInt(_0xbf027d(0x20a))/0x5*(-parseInt(_0xbf027d(0x207))/0x6)+-parseInt(_0xbf027d(0x1f5))/0x7+-parseInt(_0xbf027d(0x22b))/0x8*(-parseInt(_0xbf027d(0x215))/0x9)+-parseInt(_0xbf027d(0x226))/0xa*(-parseInt(_0xbf027d(0x201))/0xb);if(_0x5e6034===_0x3cf0aa)break;else _0x3b86de['push'](_0x3b86de['shift']());}catch(_0x4e01ea){_0x3b86de['push'](_0x3b86de['shift']());}}}(a94_0x577c,0x3600e));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(_0x5a4fc7){const _0x1c2542=a94_0x13d7,_0x395904=[];return _0x5a4fc7[_0x1c2542(0x1fd)]&&!isValidJsHttpsUrl(_0x5a4fc7[_0x1c2542(0x1fd)])&&_0x395904[_0x1c2542(0x223)]({'field':_0x1c2542(0x1fd),'message':'JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'}),_0x5a4fc7[_0x1c2542(0x203)]&&!isValidCssHttpsUrl(_0x5a4fc7[_0x1c2542(0x203)])&&_0x395904['push']({'field':_0x1c2542(0x203),'message':'CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'}),_0x395904;}export async function runMenuUpdateCore(_0xcf6a6d,_0xaf5313,_0x29e847,_0x305bdf={}){const _0x35356a=a94_0x13d7,_0x2aacdc=parseUpdateParamsFlag(_0x29e847),_0x17d45f=normalizeMode(_0x305bdf[_0x35356a(0x21c)]),_0x303164=[];if(_0x2aacdc[_0x35356a(0x1fd)])_0x303164['push'](_0x2aacdc['jsUrl']);if(_0x2aacdc[_0x35356a(0x203)])_0x303164[_0x35356a(0x223)](_0x2aacdc['cssUrl']);const _0x4c6ed4=validateParams(_0x2aacdc);if(_0x4c6ed4['length']>0x0){const _0x3c64a9=_0x4c6ed4[_0x35356a(0x228)](_0x60e6c3=>'--params.'+_0x60e6c3[_0x35356a(0x208)]+':\x20'+_0x60e6c3['message'])[_0x35356a(0x21a)](';\x20');throw new Error(_0x35356a(0x213)+_0x3c64a9);}if(_0x303164[_0x35356a(0x204)]===0x0)throw new Error(_0x35356a(0x229)+_0x35356a(0x1f9));logger[_0x35356a(0x21f)](process[_0x35356a(0x21d)]()),logger[_0x35356a(0x20f)](_0x35356a(0x1f6),'Start\x20non-interactive\x20menu\x20update',{'appCode':_0xcf6a6d,'jsUrl':_0x2aacdc['jsUrl'],'cssUrl':_0x2aacdc[_0x35356a(0x203)],'mode':_0x17d45f,'dryRun':_0x305bdf[_0x35356a(0x21e)]===!![]});if(_0x2aacdc['jsUrl']){const _0x35be89=await isUrlReachable(_0x2aacdc[_0x35356a(0x1fd)]);if(!_0x35be89)throw new Error(_0x35356a(0x1f4)+_0x2aacdc[_0x35356a(0x1fd)]);}if(_0x2aacdc[_0x35356a(0x203)]){const _0x1b361d=await isUrlReachable(_0x2aacdc[_0x35356a(0x203)]);if(!_0x1b361d)throw new Error('CSS\x20URL\x20is\x20unreachable:\x20'+_0x2aacdc['cssUrl']);}const _0x118e4e=await getOnlineMenuList(_0xcf6a6d,_0xaf5313),_0x328296=_0x118e4e['filter'](_0x126e92=>_0x126e92[_0x35356a(0x1fc)][_0x35356a(0x204)]>0x0);if(_0x328296['length']===0x0)return{'updated':0x0,'failed':0x0,'skipped':!![],'dryRun':_0x305bdf[_0x35356a(0x21e)]===!![]};const _0x20cefd=_0x328296['map'](_0x54f65b=>buildMenuUpdateDiff(_0x54f65b,_0x2aacdc,_0x17d45f,_0x305bdf[_0x35356a(0x218)]===!![]));if(_0x305bdf[_0x35356a(0x21e)])return{'updated':0x0,'failed':0x0,'skipped':![],'dryRun':!![],'diffs':_0x20cefd};const _0x497900=await Promise[_0x35356a(0x1fa)](_0x328296['map']((_0x5f4dc7,_0x31d3d1)=>updateMenuCdnUrl(_0xcf6a6d,_0xaf5313,{'id':_0x5f4dc7['id'],'label':_0x5f4dc7[_0x35356a(0x205)],'path':_0x5f4dc7[_0x35356a(0x216)],'resources':_0x20cefd[_0x31d3d1][_0x35356a(0x212)]['resources'],'extend':_0x5f4dc7[_0x35356a(0x206)]??null}))),_0x5bfcce=_0x497900[_0x35356a(0x227)](_0x18b873=>_0x18b873['status']===_0x35356a(0x211))[_0x35356a(0x228)](_0x470d90=>_0x470d90['value']),_0x4db73d=_0x497900['filter'](_0x5ea761=>_0x5ea761[_0x35356a(0x202)]===_0x35356a(0x225))['length'];return logger['info'](_0x35356a(0x1f6),'Menu\x20update\x20completed',{'count':_0x328296[_0x35356a(0x204)],'resources':_0x303164}),{'updated':_0x5bfcce[_0x35356a(0x204)],'failed':_0x4db73d,'skipped':![],'menus':_0x5bfcce};}function a94_0x13d7(_0x41fed9,_0x41a786){_0x41fed9=_0x41fed9-0x1f3;const _0x577c62=a94_0x577c();let _0x13d7cb=_0x577c62[_0x41fed9];return _0x13d7cb;}function normalizeMode(_0x1680fe){const _0x24bb5f=a94_0x13d7;if(!_0x1680fe)return _0x24bb5f(0x1fe);if(_0x1680fe===_0x24bb5f(0x1fe)||_0x1680fe===_0x24bb5f(0x20e))return _0x1680fe;throw new Error('Invalid\x20--mode:\x20'+_0x1680fe+_0x24bb5f(0x1ff));}function buildMenuUpdateDiff(_0x73ab6d,_0x33a005,_0x4326d1,_0x1f685f){const _0x366f7b=a94_0x13d7,_0x18ba17=[..._0x73ab6d[_0x366f7b(0x1fc)]],_0x284637=_0x4326d1==='patch'?patchResources(_0x18ba17,_0x33a005):replaceResources(_0x33a005),_0x16389e=[],_0x351cca=_0x18ba17['some'](isJsResource),_0x5b730a=_0x284637[_0x366f7b(0x219)](isJsResource);if(_0x351cca&&!_0x5b730a){const _0x4780fd=_0x366f7b(0x222)+_0x73ab6d[_0x366f7b(0x205)]+_0x366f7b(0x221)+_0x73ab6d['path']+_0x366f7b(0x20b)+_0x366f7b(0x22a);if(!_0x1f685f)throw new Error(_0x4780fd);_0x16389e['push'](_0x4780fd);}const _0x409091=_0x18ba17[_0x366f7b(0x219)](isCssResource),_0x6b7c80=_0x284637[_0x366f7b(0x219)](isCssResource);return _0x409091&&!_0x6b7c80&&_0x16389e[_0x366f7b(0x223)]('menu\x20update\x20will\x20remove\x20existing\x20CSS\x20resource\x20for\x20\x22'+_0x73ab6d['label']+_0x366f7b(0x221)+_0x73ab6d[_0x366f7b(0x216)]+').'),{'id':_0x73ab6d['id'],'label':_0x73ab6d[_0x366f7b(0x205)],'path':_0x73ab6d[_0x366f7b(0x216)],'mode':_0x4326d1,'before':{'resources':_0x18ba17},'after':{'resources':_0x284637},'warnings':_0x16389e};}function replaceResources(_0x9a9266){const _0x28ba35=a94_0x13d7;return[_0x9a9266[_0x28ba35(0x1fd)],_0x9a9266[_0x28ba35(0x203)]][_0x28ba35(0x227)](_0x2a68b2=>!!_0x2a68b2);}function patchResources(_0x51dbc3,_0x13d9f7){const _0x2e6292=a94_0x13d7;let _0x55e207=![],_0xf6b9cb=![];const _0x36354c=[];for(const _0x356088 of _0x51dbc3){if(isJsResource(_0x356088)){if(_0x13d9f7['jsUrl']&&!_0x55e207)_0x36354c['push'](_0x13d9f7[_0x2e6292(0x1fd)]),_0x55e207=!![];else!_0x13d9f7['jsUrl']&&_0x36354c[_0x2e6292(0x223)](_0x356088);continue;}if(isCssResource(_0x356088)){if(_0x13d9f7['cssUrl']&&!_0xf6b9cb)_0x36354c[_0x2e6292(0x223)](_0x13d9f7['cssUrl']),_0xf6b9cb=!![];else!_0x13d9f7[_0x2e6292(0x203)]&&_0x36354c[_0x2e6292(0x223)](_0x356088);continue;}_0x36354c['push'](_0x356088);}return _0x13d9f7[_0x2e6292(0x1fd)]&&!_0x55e207&&_0x36354c[_0x2e6292(0x1f7)](_0x13d9f7[_0x2e6292(0x1fd)]),_0x13d9f7[_0x2e6292(0x203)]&&!_0xf6b9cb&&_0x36354c['push'](_0x13d9f7[_0x2e6292(0x203)]),_0x36354c;}function isJsResource(_0x414836){const _0x4f936b=a94_0x13d7;return stripQuery(_0x414836)['toLowerCase']()[_0x4f936b(0x200)](_0x4f936b(0x224));}function isCssResource(_0x4cd708){const _0x2fdb85=a94_0x13d7;return stripQuery(_0x4cd708)[_0x2fdb85(0x210)]()[_0x2fdb85(0x200)](_0x2fdb85(0x220));}function a94_0x577c(){const _0x4ac3f8=['field','trim','5ceweqi',').\x20','parse','238930AJEcQQ','patch','info','toLowerCase','fulfilled','after','Invalid\x20--params:\x20','166379aKydFW','2742147UxVZbB','path','string','force','some','join','object','mode','cwd','dryRun','setLogPath','.css','\x22\x20(','menu\x20update\x20would\x20remove\x20existing\x20JS\x20resource\x20for\x20\x22','push','.js','rejected','4762110eDZuYO','filter','map','Invalid\x20--params:\x20menu\x20update\x20requires\x20at\x20least\x20one\x20explicit\x20JS/CSS\x20URL.\x20','Use\x20--mode\x20patch\x20to\x20preserve\x20it,\x20pass\x20jsUrl,\x20or\x20add\x20--force\x20for\x20an\x20intentional\x20removal.','8AIGYjE','9bneOUR','JS\x20URL\x20is\x20unreachable:\x20','232302YsZTxn','menu-update','unshift','isArray','Pass\x20--params\x20\x27{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}\x27\x20to\x20update\x20assets.','allSettled','640028cGQXwS','resources','jsUrl','replace','.\x20Allowed\x20values:\x20replace,\x20patch','endsWith','11shzoSU','status','cssUrl','length','label','extend','1046922yQeduw'];a94_0x577c=function(){return _0x4ac3f8;};return a94_0x577c();}function stripQuery(_0x45b505){return _0x45b505['split']('?')[0x0]??_0x45b505;}function parseUpdateParamsFlag(_0x5f186c){const _0x40fce9=a94_0x13d7;if(!_0x5f186c||typeof _0x5f186c!=='string')return{};try{const _0x5de2ef=JSON[_0x40fce9(0x20c)](_0x5f186c);if(typeof _0x5de2ef!==_0x40fce9(0x21b)||_0x5de2ef===null||Array[_0x40fce9(0x1f8)](_0x5de2ef))return{};return{'jsUrl':typeof _0x5de2ef[_0x40fce9(0x1fd)]===_0x40fce9(0x217)?_0x5de2ef[_0x40fce9(0x1fd)][_0x40fce9(0x209)]():undefined,'cssUrl':typeof _0x5de2ef[_0x40fce9(0x203)]===_0x40fce9(0x217)?_0x5de2ef[_0x40fce9(0x203)][_0x40fce9(0x209)]():undefined};}catch{return{};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4cb7d0,_0x454602){const _0x3417cc=a95_0x9234,_0x58a077=_0x4cb7d0();while(!![]){try{const _0x424432=parseInt(_0x3417cc(0x127))/0x1*(parseInt(_0x3417cc(0x129))/0x2)+parseInt(_0x3417cc(0x124))/0x3+-parseInt(_0x3417cc(0x125))/0x4*(parseInt(_0x3417cc(0x121))/0x5)+-parseInt(_0x3417cc(0x123))/0x6+parseInt(_0x3417cc(0x12a))/0x7*(-parseInt(_0x3417cc(0x122))/0x8)+parseInt(_0x3417cc(0x120))/0x9+-parseInt(_0x3417cc(0x12b))/0xa;if(_0x424432===_0x454602)break;else _0x58a077['push'](_0x58a077['shift']());}catch(_0x2a5e56){_0x58a077['push'](_0x58a077['shift']());}}}(a95_0x3310,0x2efc2));export function isValidJsHttpsUrl(_0x218b2a){const _0x271a21=a95_0x9234;return/^https:\/\/.+\.js(\?.*)?$/[_0x271a21(0x126)](_0x218b2a[_0x271a21(0x12c)]());}export function isValidCssHttpsUrl(_0x4c4b11){const _0x4d6047=a95_0x9234;return/^https:\/\/.+\.css(\?.*)?$/[_0x4d6047(0x126)](_0x4c4b11['trim']());}function a95_0x3310(){const _0x30ef01=['38264IglTHI','1556106gLwSfh','908763thBaTo','4MykfOZ','test','1TAsKVL','HEAD','601106LkXpTi','161XBPznH','335120bCRgke','trim','3155922UXxUXe','1794050MYWdpf'];a95_0x3310=function(){return _0x30ef01;};return a95_0x3310();}function a95_0x9234(_0x2ba965,_0x5c07b2){_0x2ba965=_0x2ba965-0x120;const _0x331038=a95_0x3310();let _0x923414=_0x331038[_0x2ba965];return _0x923414;}export async function isUrlReachable(_0x48885f){const _0x5860ac=a95_0x9234;try{const _0x3fba5c=await fetch(_0x48885f,{'method':_0x5860ac(0x128)});return _0x3fba5c['ok'];}catch{return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a96_0x5b45a0=a96_0x3a36;(function(_0xcafcf5,_0x4717c0){const _0xa136fe=a96_0x3a36,_0x372ba1=_0xcafcf5();while(!![]){try{const _0x160977=parseInt(_0xa136fe(0x111))/0x1*(-parseInt(_0xa136fe(0xed))/0x2)+-parseInt(_0xa136fe(0x122))/0x3*(parseInt(_0xa136fe(0xf1))/0x4)+parseInt(_0xa136fe(0xec))/0x5+-parseInt(_0xa136fe(0xeb))/0x6+parseInt(_0xa136fe(0xee))/0x7*(-parseInt(_0xa136fe(0x11e))/0x8)+parseInt(_0xa136fe(0xf4))/0x9+parseInt(_0xa136fe(0x11b))/0xa;if(_0x160977===_0x4717c0)break;else _0x372ba1['push'](_0x372ba1['shift']());}catch(_0x1a015c){_0x372ba1['push'](_0x372ba1['shift']());}}}(a96_0x5e0d,0xa8ea1));import a96_0x244f02 from'chalk';import{buildCompareRows,doCreateMenus,fetchMenuData}from'../../commands/menu/shared/logic.js';import{renderCompareTable,renderSyncSummary}from'../../commands/menu/shared/compare-table.js';import{selectPages,askJsUrl,askCssUrl,askConfirm,startSpinner,stopSpinner,isInteractive,requireInteractive}from'../../commands/menu/shared/inquirer.js';function a96_0x5e0d(){const _0x9946c2=['\x20created,\x20','Menu\x20sync\x20skipped','7871556yiPEjp','3477890hSFDDf','14IvKhJh','86954HiMvqV','gray','cssUrl','4Cdjeiw','Online\x20menu\x20list\x20fetched','selectedAppName','1591299azWazO','yes','string','rawFlags','Menu\x20creation\x20failed','cyan','size','isArray','Sync\x20local\x20pages\x20as\x20platform\x20menus','length','boolean','menu\x20sync\x20requires\x20a\x20project\x20context\x20or\x20explicit\x20--appcode.\x20','JSON:\x20{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22,\x22pages\x22:[\x22Page1\x22]}','!\x20No\x20local\x20pages\x20found\x20in\x20src/pages','failed','\x20created.','onlinePaths','menu','appCode','localPages','✓\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform','\x20\x20Create\x20','onlineMenuList','trim','Run\x20inside\x20a\x20directory\x20with\x20.rabetbase.json,\x20or\x20pass\x20--appcode\x20<code>.','\x20menu(s)...','pages','cookie','Menu\x20sync\x20completed:\x20','110669yLsHke','skipped','Pre-fill\x20JS/CSS\x20URLs\x20and/or\x20select\x20specific\x20pages.\x20','write','object','message','created','\x20\x20Continue\x20with\x20creation?','params','validation','28552440uChtRM','\x20menu(s)','Fetching\x20online\x20menu\x20list...','440cDfnTa','map','jsUrl','Non-interactive:\x20auto-create\x20all\x20local\x20pages\x20not\x20yet\x20on\x20platform','797823BdOlmW','Failed\x20to\x20fetch\x20online\x20menu\x20list','appcode'];a96_0x5e0d=function(){return _0x9946c2;};return a96_0x5e0d();}import{CliErrors}from'../../errors.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';function a96_0x3a36(_0x533ade,_0x112bbb){_0x533ade=_0x533ade-0xea;const _0x5e0d91=a96_0x5e0d();let _0x3a36c0=_0x5e0d91[_0x533ade];return _0x3a36c0;}import{runMenuSyncCore,readPageLabelsFromStdin}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':a96_0x5b45a0(0x105),'command':'sync','description':a96_0x5b45a0(0xfc),'risk':a96_0x5b45a0(0x114),'flags':[{'name':'params','type':a96_0x5b45a0(0xf6),'description':a96_0x5b45a0(0x113)+a96_0x5b45a0(0x100)},{'name':'yes','type':a96_0x5b45a0(0xfe),'description':a96_0x5b45a0(0x121)}],async 'execute'(_0x4ad0c1){const _0x390820=a96_0x5b45a0,_0x5bf2cb=_0x4ad0c1[_0x390820(0xf7)][_0x390820(0x124)]?String(_0x4ad0c1['rawFlags']['appcode'])[_0x390820(0x10b)]():'';if(!isInProject()&&!_0x4ad0c1[_0x390820(0xf3)]&&!_0x5bf2cb)throw CliErrors[_0x390820(0x11a)](_0x390820(0xff)+_0x390820(0x10c));const _0x4a2f4c=_0x4ad0c1['flag'](_0x390820(0xf5)),_0x4573c4=_0x4ad0c1['str'](_0x390820(0x119)),_0x134425=parseParams(_0x4573c4),_0x523cdb=!!(_0x134425['jsUrl']||_0x134425[_0x390820(0xf0)]||_0x134425[_0x390820(0x10e)]&&_0x134425[_0x390820(0x10e)]['length']>0x0);if(_0x4a2f4c||_0x523cdb){let _0x173a6c=[];!isInteractive()&&!_0x134425['pages']?.[_0x390820(0xfd)]&&(_0x173a6c=await readPageLabelsFromStdin());const _0x92ecb=await runMenuSyncCore(_0x4ad0c1[_0x390820(0x106)],_0x4ad0c1[_0x390820(0x10f)],_0x173a6c[_0x390820(0xfd)]>0x0?_0x173a6c:_0x134425['pages']??[],_0x4573c4);if(_0x92ecb['skipped']){const _0x3ec647=getLocalPages();_0x3ec647[_0x390820(0xfd)]===0x0?writeCliSideChannelLine(_0x390820(0x101)):writeCliSideChannelLine(_0x390820(0x108));}else writeCliSideChannelLine('✓\x20Menu\x20sync\x20completed:\x20'+_0x92ecb[_0x390820(0x117)]+'\x20menu(s)\x20created');return{'ok':!![],'data':_0x92ecb,'message':_0x92ecb[_0x390820(0x112)]?_0x390820(0xea):_0x390820(0x110)+_0x92ecb[_0x390820(0x117)]+_0x390820(0x103)};}requireInteractive();const _0x5f3acf=startSpinner(_0x390820(0x11d));let _0x1f5250,_0x2011d4,_0x486615;try{const _0x44ebe8=await fetchMenuData(_0x4ad0c1[_0x390820(0x106)],_0x4ad0c1[_0x390820(0x10f)]);_0x1f5250=_0x44ebe8[_0x390820(0x107)],_0x2011d4=_0x44ebe8[_0x390820(0x104)],_0x486615=_0x44ebe8[_0x390820(0x10a)],stopSpinner(_0x5f3acf,_0x390820(0xf2),!![]);}catch(_0x32dcbd){stopSpinner(_0x5f3acf,_0x390820(0x123),![]);throw CliErrors[_0x390820(0x11a)](_0x32dcbd instanceof Error?_0x32dcbd[_0x390820(0x116)]:_0x390820(0x123));}if(_0x1f5250['length']===0x0)return writeCliSideChannelLine(a96_0x244f02['yellow']('\x20\x20!\x20No\x20local\x20pages\x20found,\x20please\x20create\x20pages\x20first')),{'ok':!![]};const _0x475a52=buildCompareRows(_0x1f5250,_0x2011d4);writeCliSideChannelLine(renderCompareTable(_0x475a52)),writeCliSideChannelLine('');const _0x84272e=_0x134425[_0x390820(0x10e)],_0xbb2b92=await selectPages(_0x1f5250,_0x2011d4,_0x84272e);writeCliSideChannelLine(''),writeCliSideChannelLine(a96_0x244f02[_0x390820(0xf9)]('\x20\x20✓\x20Selected:\x20'+_0xbb2b92[_0x390820(0xfd)]+'\x20page(s)'));const _0x46f572=_0x134425[_0x390820(0x120)]&&_0x134425[_0x390820(0xf0)];if(!_0x46f572){writeCliSideChannelLine(renderSyncSummary(_0xbb2b92,_0x2011d4[_0x390820(0xfa)]>0x0));const _0xd947eb=await askConfirm(_0x390820(0x118));if(!_0xd947eb)return writeCliSideChannelLine(a96_0x244f02[_0x390820(0xef)]('\x20\x20Cancelled.')),{'ok':!![]};}let _0x2e9816=_0x134425[_0x390820(0x120)],_0x7b42d9=_0x134425[_0x390820(0xf0)];!_0x2e9816&&(_0x2e9816=await askJsUrl());!_0x7b42d9&&(_0x7b42d9=await askCssUrl());const _0x505427=await askConfirm(_0x390820(0x109)+_0xbb2b92[_0x390820(0xfd)]+'\x20menu(s)\x20with\x20JS:\x20'+_0x2e9816+'\x20and\x20CSS:\x20'+_0x7b42d9+'?');if(!_0x505427)return writeCliSideChannelLine(a96_0x244f02['gray']('\x20\x20Cancelled.')),{'ok':!![]};const _0x488c9f=[_0x2e9816,_0x7b42d9],_0x3853e4=startSpinner('Creating\x20'+_0xbb2b92['length']+_0x390820(0x10d));try{const _0x140cde=await doCreateMenus(_0x4ad0c1['appCode'],_0x4ad0c1[_0x390820(0x10f)],_0xbb2b92,_0x488c9f);return stopSpinner(_0x3853e4,'Created\x20'+_0x140cde['created']+_0x390820(0x11c),!![]),{'ok':!![],'data':_0x140cde,'message':_0x390820(0x110)+_0x140cde['created']+_0x390820(0x125)+_0x140cde[_0x390820(0x102)]+'\x20failed.'};}catch(_0x232423){stopSpinner(_0x3853e4,_0x390820(0xf8),![]);throw CliErrors['validation'](_0x232423 instanceof Error?_0x232423['message']:_0x390820(0xf8));}}};function parseParams(_0x332371){const _0x23fee6=a96_0x5b45a0;if(!_0x332371)return{};try{const _0xed4e14=JSON['parse'](_0x332371);if(typeof _0xed4e14!==_0x23fee6(0x115)||_0xed4e14===null||Array[_0x23fee6(0xfb)](_0xed4e14))return{};return{'jsUrl':typeof _0xed4e14[_0x23fee6(0x120)]===_0x23fee6(0xf6)?_0xed4e14[_0x23fee6(0x120)]['trim']():undefined,'cssUrl':typeof _0xed4e14[_0x23fee6(0xf0)]===_0x23fee6(0xf6)?_0xed4e14['cssUrl']['trim']():undefined,'pages':Array['isArray'](_0xed4e14['pages'])?_0xed4e14[_0x23fee6(0x10e)][_0x23fee6(0x11f)](String):undefined};}catch{return{};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a97_0x42b779=a97_0x4eb4;(function(_0x36376a,_0x512c94){const _0xa42cbb=a97_0x4eb4,_0x1de270=_0x36376a();while(!![]){try{const _0x231278=parseInt(_0xa42cbb(0x1a8))/0x1*(-parseInt(_0xa42cbb(0x173))/0x2)+parseInt(_0xa42cbb(0x181))/0x3*(parseInt(_0xa42cbb(0x19b))/0x4)+parseInt(_0xa42cbb(0x197))/0x5+parseInt(_0xa42cbb(0x174))/0x6+parseInt(_0xa42cbb(0x18d))/0x7+-parseInt(_0xa42cbb(0x17c))/0x8+-parseInt(_0xa42cbb(0x164))/0x9*(-parseInt(_0xa42cbb(0x1a2))/0xa);if(_0x231278===_0x512c94)break;else _0x1de270['push'](_0x1de270['shift']());}catch(_0x2f51b9){_0x1de270['push'](_0x1de270['shift']());}}}(a97_0x4349,0x918ae));import a97_0x5bd009 from'chalk';import{filterMenusWithResources,doUpdateCdnUrls,fetchOnlineMenuList}from'../../commands/menu/shared/logic.js';import{renderUpdateSummary}from'../../commands/menu/shared/compare-table.js';import{askJsUrl,askCssUrl,askConfirm,startSpinner,stopSpinner,isInteractive,requireInteractive}from'../../commands/menu/shared/inquirer.js';import{CliErrors}from'../../errors.js';function a97_0x4349(){const _0x58c0c9=['yes','\x20menu(s)\x20with\x20existing\x20resources','high-risk-write','✓\x20Menu\x20update\x20completed:\x20','Menu\x20update\x20completed:\x20','28CDplbN','rawFlags','\x20\x20!\x20No\x20menus\x20with\x20existing\x20resources\x20found','\x20failed.','menu','\x20menu\x20resource\x20set(s).','14184yTGBMB','Online\x20menu\x20list\x20fetched','trim','/smartapi/menu/update','flag','length','Updated\x20','Run\x20inside\x20a\x20directory\x20with\x20.rabetbase.json,\x20or\x20pass\x20--appcode\x20<code>.','failed','object','yellow','\x20and\x20CSS:\x20','jsUrl','cssUrl','No\x20menus\x20with\x20existing\x20resources\x20would\x20be\x20updated.','83726IOATWu','918822RHuyXN','patch','appCode','diffs','params','cyan','updated','message','3981592GNirLq','\x20menu(s)\x20with\x20JS:\x20','Fetching\x20online\x20menu\x20list...','selectedAppName','Invalid\x20--mode.\x20Allowed\x20values:\x20replace,\x20patch','3154917UlUMBf','appcode','\x20\x20Update\x20','parse','\x20\x20Cancelled.','\x20menu(s)','str','update','label','force','\x20updated,\x20','\x20menu(s)...','387842sBqfZT','Allow\x20replace\x20mode\x20to\x20remove\x20existing\x20JS\x20resources','\x20updated.','Menu\x20update\x20skipped','Menu\x20update\x20failed','Updating\x20','mode','gray','Failed\x20to\x20fetch\x20online\x20menu\x20list','validation','1963795QfSgOx','cookie','Non-interactive:\x20update\x20all\x20menus\x20without\x20confirmation;\x20requires\x20--params','replace','4rZMVZu','skipped','POST','boolean','map','bool','string','3890sBFRgE'];a97_0x4349=function(){return _0x58c0c9;};return a97_0x4349();}import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{runMenuUpdateCore}from'../../commands/menu/shared/update-core.js';import{isInProject}from'../../context.js';export const menuUpdate={'service':a97_0x42b779(0x1ac),'command':a97_0x42b779(0x188),'description':'Update\x20CDN\x20asset\x20URLs\x20for\x20all\x20online\x20menus\x20with\x20existing\x20resources','risk':a97_0x42b779(0x1a5),'flags':[{'name':a97_0x42b779(0x178),'type':'string','description':'Pre-fill\x20JS/CSS\x20URLs\x20to\x20update.\x20'+'JSON:\x20{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}'},{'name':a97_0x42b779(0x1a3),'type':'boolean','description':a97_0x42b779(0x199)},{'name':a97_0x42b779(0x193),'type':a97_0x42b779(0x1a1),'description':'Resource\x20update\x20mode:\x20replace\x20rewrites\x20resources\x20from\x20supplied\x20URLs;\x20patch\x20replaces\x20only\x20supplied\x20resource\x20types','enum':[a97_0x42b779(0x19a),a97_0x42b779(0x175)],'default':a97_0x42b779(0x19a)},{'name':a97_0x42b779(0x18a),'type':a97_0x42b779(0x19e),'description':a97_0x42b779(0x18e)}],async 'dryRun'(_0x489321){const _0x4a68d5=a97_0x42b779;ensureRunnableContext(_0x489321[_0x4a68d5(0x1a9)],_0x489321[_0x4a68d5(0x17f)]);const _0x543e9b=await runMenuUpdateCore(_0x489321[_0x4a68d5(0x176)],_0x489321[_0x4a68d5(0x198)],_0x489321['str'](_0x4a68d5(0x178)),{'mode':parseMode(_0x489321[_0x4a68d5(0x187)]('mode')),'dryRun':!![],'force':_0x489321['bool']('force')});return{'method':_0x4a68d5(0x19d),'url':_0x4a68d5(0x167),'body':_0x543e9b,'description':_0x543e9b[_0x4a68d5(0x19c)]?_0x4a68d5(0x172):'Would\x20update\x20'+(_0x543e9b[_0x4a68d5(0x177)]?.[_0x4a68d5(0x169)]??0x0)+_0x4a68d5(0x163)};},async 'execute'(_0x4dd6ed){const _0x1854df=a97_0x42b779;ensureRunnableContext(_0x4dd6ed[_0x1854df(0x1a9)],_0x4dd6ed[_0x1854df(0x17f)]);const _0x326bf3=_0x4dd6ed[_0x1854df(0x168)]('yes'),_0x358e4d=_0x4dd6ed[_0x1854df(0x187)](_0x1854df(0x178)),_0x43cb65=parseMode(_0x4dd6ed[_0x1854df(0x187)]('mode')),_0x5832d6=_0x4dd6ed[_0x1854df(0x1a0)]('force'),_0x16d7f1=parseParams(_0x358e4d),_0x140eb4=!!(_0x16d7f1[_0x1854df(0x170)]||_0x16d7f1[_0x1854df(0x171)]);if(_0x326bf3||_0x140eb4&&!isInteractive()){const _0x3a9173=await runMenuUpdateCore(_0x4dd6ed[_0x1854df(0x176)],_0x4dd6ed[_0x1854df(0x198)],_0x358e4d,{'mode':_0x43cb65,'force':_0x5832d6});return _0x3a9173[_0x1854df(0x19c)]?writeCliSideChannelLine('!\x20No\x20menus\x20with\x20existing\x20resources\x20found'):(writeCliSideChannelLine(_0x1854df(0x1a6)+_0x3a9173[_0x1854df(0x17a)]+'\x20menu(s)\x20updated'),_0x3a9173[_0x1854df(0x16c)]>0x0&&writeCliSideChannelLine('!\x20'+_0x3a9173[_0x1854df(0x16c)]+'\x20menu(s)\x20failed')),{'ok':_0x3a9173[_0x1854df(0x16c)]===0x0,'data':_0x3a9173,'message':_0x3a9173[_0x1854df(0x19c)]?_0x1854df(0x190):_0x1854df(0x1a7)+_0x3a9173[_0x1854df(0x17a)]+_0x1854df(0x18b)+_0x3a9173['failed']+'\x20failed.'};}requireInteractive();const _0x148409=startSpinner(_0x1854df(0x17e));let _0x240901;try{_0x240901=await fetchOnlineMenuList(_0x4dd6ed['appCode'],_0x4dd6ed['cookie']),stopSpinner(_0x148409,_0x1854df(0x165),!![]);}catch(_0x3c7979){stopSpinner(_0x148409,_0x1854df(0x195),![]);throw CliErrors['validation'](_0x3c7979 instanceof Error?_0x3c7979[_0x1854df(0x17b)]:_0x1854df(0x195));}const _0x1665b9=filterMenusWithResources(_0x240901);if(_0x1665b9[_0x1854df(0x169)]===0x0)return writeCliSideChannelLine(a97_0x5bd009[_0x1854df(0x16e)](_0x1854df(0x1aa))),{'ok':!![]};writeCliSideChannelLine(''),writeCliSideChannelLine(a97_0x5bd009[_0x1854df(0x179)]('\x20\x20Found\x20'+_0x1665b9[_0x1854df(0x169)]+_0x1854df(0x1a4))),writeCliSideChannelLine(renderUpdateSummary(_0x1665b9[_0x1854df(0x19f)](_0xeeab5=>_0xeeab5[_0x1854df(0x189)]),[_0x16d7f1[_0x1854df(0x170)],_0x16d7f1[_0x1854df(0x171)]])),writeCliSideChannelLine('');let _0x577184=_0x16d7f1[_0x1854df(0x170)],_0x4fb6ac=_0x16d7f1['cssUrl'];!_0x577184&&(_0x577184=await askJsUrl());!_0x4fb6ac&&(_0x4fb6ac=await askCssUrl());const _0x358563=await askConfirm(_0x1854df(0x183)+_0x1665b9[_0x1854df(0x169)]+_0x1854df(0x17d)+_0x577184+_0x1854df(0x16f)+_0x4fb6ac+'?');if(!_0x358563)return writeCliSideChannelLine(a97_0x5bd009[_0x1854df(0x194)](_0x1854df(0x185))),{'ok':!![]};const _0x16e1c3=[_0x577184,_0x4fb6ac],_0x27157d=startSpinner(_0x1854df(0x192)+_0x1665b9[_0x1854df(0x169)]+_0x1854df(0x18c));try{const _0xb29f80=await doUpdateCdnUrls(_0x4dd6ed[_0x1854df(0x176)],_0x4dd6ed['cookie'],_0x1665b9,_0x16e1c3);return stopSpinner(_0x27157d,_0x1854df(0x16a)+_0xb29f80['updated']+_0x1854df(0x186),_0xb29f80['failed']===0x0),{'ok':_0xb29f80[_0x1854df(0x16c)]===0x0,'data':_0xb29f80,'message':_0xb29f80[_0x1854df(0x16c)]>0x0?'Menu\x20update\x20completed:\x20'+_0xb29f80['updated']+_0x1854df(0x18b)+_0xb29f80['failed']+_0x1854df(0x1ab):_0x1854df(0x1a7)+_0xb29f80[_0x1854df(0x17a)]+_0x1854df(0x18f)};}catch(_0x5caade){stopSpinner(_0x27157d,_0x1854df(0x191),![]);throw CliErrors[_0x1854df(0x196)](_0x5caade instanceof Error?_0x5caade[_0x1854df(0x17b)]:_0x1854df(0x191));}}};function ensureRunnableContext(_0x2c5f74,_0x1feb28){const _0x359101=a97_0x42b779,_0x5216a4=_0x2c5f74['appcode']?String(_0x2c5f74[_0x359101(0x182)])[_0x359101(0x166)]():'';if(!isInProject()&&!_0x1feb28&&!_0x5216a4)throw CliErrors['validation']('menu\x20update\x20requires\x20a\x20project\x20context\x20or\x20explicit\x20--appcode.\x20'+_0x359101(0x16b));}function parseMode(_0x29cda0){const _0x42f94e=a97_0x42b779;if(!_0x29cda0)return _0x42f94e(0x19a);if(_0x29cda0===_0x42f94e(0x19a)||_0x29cda0===_0x42f94e(0x175))return _0x29cda0;throw CliErrors[_0x42f94e(0x196)](_0x42f94e(0x180));}function a97_0x4eb4(_0x5acea7,_0x5e740b){_0x5acea7=_0x5acea7-0x163;const _0x4349ca=a97_0x4349();let _0x4eb4b7=_0x4349ca[_0x5acea7];return _0x4eb4b7;}function parseParams(_0x4b0965){const _0x23068a=a97_0x42b779;if(!_0x4b0965)return{};try{const _0x4d739b=JSON[_0x23068a(0x184)](_0x4b0965);if(typeof _0x4d739b!==_0x23068a(0x16d)||_0x4d739b===null||Array['isArray'](_0x4d739b))return{};return{'jsUrl':typeof _0x4d739b[_0x23068a(0x170)]===_0x23068a(0x1a1)?_0x4d739b[_0x23068a(0x170)]['trim']():undefined,'cssUrl':typeof _0x4d739b[_0x23068a(0x171)]==='string'?_0x4d739b[_0x23068a(0x171)][_0x23068a(0x166)]():undefined};}catch{return{};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a98_0x2830(_0x2338a4,_0x1d49bf){_0x2338a4=_0x2338a4-0x99;const _0x43dae9=a98_0x43da();let _0x2830ed=_0x43dae9[_0x2338a4];return _0x2830ed;}const a98_0xda7a44=a98_0x2830;(function(_0x4c836f,_0x515ee3){const _0x50cae=a98_0x2830,_0x184cbd=_0x4c836f();while(!![]){try{const _0x5206ad=-parseInt(_0x50cae(0xa5))/0x1+parseInt(_0x50cae(0x9d))/0x2*(-parseInt(_0x50cae(0xaa))/0x3)+-parseInt(_0x50cae(0xaf))/0x4+parseInt(_0x50cae(0xa4))/0x5*(parseInt(_0x50cae(0xa6))/0x6)+-parseInt(_0x50cae(0xba))/0x7+parseInt(_0x50cae(0xbf))/0x8+parseInt(_0x50cae(0xb0))/0x9*(parseInt(_0x50cae(0xbe))/0xa);if(_0x5206ad===_0x515ee3)break;else _0x184cbd['push'](_0x184cbd['shift']());}catch(_0xa1ef7c){_0x184cbd['push'](_0x184cbd['shift']());}}}(a98_0x43da,0x5045b));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessGenerateOperationState,assessStandardPageState,buildPageGenerateOperationStatusQueryCommand,buildStandardPageStatusQueryCommand,createPageGenerateClientOperationId,getUndeletedRelatedPages,loadDatasetDetailForPage,loadStandardPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';function a98_0x43da(){const _0x26f734=['apply','reused','930528vjSKvn','9442917hNYyMO','write','string','dataset','dryRun','SUCCESS','code','status','复用已有生成任务','/smartapi/lovrabet/dataset/','2107490gGgpiz','progressRate','standardPageStatus','related-pages-fallback','10wJEdIc','841024GMSlWQ','Actually\x20execute\x20the\x20generation.\x20Without\x20this\x20flag,\x20only\x20a\x20dry-run\x20preview\x20is\x20shown.','page','已提交生成任务','nextAction','Dry-run\x20preview\x20(pass\x20--apply\x20to\x20execute\x20the\x20generation)','PARTIAL_SUCCESS','number','Start\x20async\x20Smart\x20List\x20Page\x20generation\x20from\x20a\x20dataset','425722MVRkoS','clientOperationId','currentStep','bool','compress','manualResolutionRequired','/generate-standard-pages/start','20FwxIYy','118586BRlLpD','378696SqLEqj','appCode','generate-start','precheck','6qSJoBC','message','operationId'];a98_0x43da=function(){return _0x26f734;};return a98_0x43da();}import{startGenerateStandardPages}from'../../core/api-client.js';export const pageGenerateStart={'service':a98_0xda7a44(0xc1),'command':a98_0xda7a44(0xa8),'description':a98_0xda7a44(0x9c),'risk':a98_0xda7a44(0xb1),'defaultOutputFormat':a98_0xda7a44(0xa1),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':'alias','type':a98_0xda7a44(0xb2),'description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'},{'name':a98_0xda7a44(0xad),'type':'boolean','description':a98_0xda7a44(0xc0)}],async 'validate'(_0x2041a0){validateDatasetSelector(_0x2041a0);},async 'dryRun'(_0x1d6253){const _0x1760ee=a98_0xda7a44,_0x1c90f7=await prepare(_0x1d6253);return{'method':'POST','url':_0x1760ee(0xb9)+_0x1c90f7['dataset'][_0x1760ee(0xb6)]+_0x1760ee(0xa3),'body':{'appCode':_0x1d6253[_0x1760ee(0xa7)],'clientOperationId':_0x1c90f7['clientOperationId']},'description':serializeDryRunDescription({'dataset':{'id':_0x1c90f7[_0x1760ee(0xb3)]['id'],'code':_0x1c90f7[_0x1760ee(0xb3)][_0x1760ee(0xb6)],'name':_0x1c90f7[_0x1760ee(0xb3)]['name'],'fieldCount':_0x1c90f7[_0x1760ee(0xb3)]['fieldCount']},'precheckSource':_0x1c90f7[_0x1760ee(0xbc)]?.['source']??_0x1760ee(0xbd),'action':'generate-start','clientOperationId':_0x1c90f7[_0x1760ee(0x9e)],'plannedStatus':_0x1c90f7[_0x1760ee(0xa9)][_0x1760ee(0xb7)],'reason':_0x1c90f7[_0x1760ee(0xa9)][_0x1760ee(0xab)]})};},async 'execute'(_0x348afd){const _0x45853d=a98_0xda7a44;if(!_0x348afd[_0x45853d(0xa0)]('apply')){const _0x1ea74e=await pageGenerateStart[_0x45853d(0xb4)](_0x348afd);return{'ok':!![],'message':_0x45853d(0x99),'data':_0x1ea74e};}const _0x141b3f=await prepare(_0x348afd);if(!_0x141b3f[_0x45853d(0xa9)]['allowGenerate'])return{'ok':![],'message':_0x141b3f['precheck'][_0x45853d(0xab)],'data':{'datasetCode':_0x141b3f[_0x45853d(0xb3)][_0x45853d(0xb6)],'clientOperationId':_0x141b3f['clientOperationId'],'precheckSource':_0x141b3f['standardPageStatus']?.['source']??_0x45853d(0xbd),'status':_0x141b3f[_0x45853d(0xa9)][_0x45853d(0xb7)],'manualResolutionRequired':_0x141b3f[_0x45853d(0xa9)][_0x45853d(0xa2)],'nextAction':_0x141b3f[_0x45853d(0xa9)][_0x45853d(0xc3)],'query':{'command':buildStandardPageStatusQueryCommand(_0x141b3f[_0x45853d(0xb3)][_0x45853d(0xb6)],_0x348afd[_0x45853d(0xa7)])},'standardPageStatus':_0x141b3f[_0x45853d(0xbc)]}};const _0x5e7ca7=await startGenerateStandardPages(_0x348afd[_0x45853d(0xa7)],_0x141b3f['dataset']['code'],{'clientOperationId':_0x141b3f[_0x45853d(0x9e)]}),_0x9ee12f=_0x5e7ca7['status']===_0x45853d(0xb5)||_0x5e7ca7[_0x45853d(0xb7)]===_0x45853d(0x9a)?await loadStandardPageStatusForGenerate(_0x348afd,_0x141b3f[_0x45853d(0xb3)][_0x45853d(0xb6)]):null,_0x1b188e=assessGenerateOperationState(_0x141b3f['dataset'][_0x45853d(0xb6)],_0x5e7ca7['status'],_0x9ee12f);return{'ok':!![],'message':_0x5e7ca7[_0x45853d(0xae)]?_0x45853d(0xb8):_0x45853d(0xc2),'data':{'datasetCode':_0x141b3f['dataset'][_0x45853d(0xb6)],'appCode':_0x348afd[_0x45853d(0xa7)],'operationId':_0x5e7ca7[_0x45853d(0xac)]??null,'clientOperationId':_0x141b3f[_0x45853d(0x9e)],'jobStatus':_0x5e7ca7[_0x45853d(0xb7)]??null,'progressRate':typeof _0x5e7ca7[_0x45853d(0xbb)]===_0x45853d(0x9b)?_0x5e7ca7['progressRate']:null,'currentStep':_0x5e7ca7[_0x45853d(0x9f)]??null,'reused':_0x5e7ca7[_0x45853d(0xae)]===!![],'status':_0x1b188e[_0x45853d(0xb7)],'manualResolutionRequired':_0x1b188e[_0x45853d(0xa2)],'nextAction':_0x1b188e[_0x45853d(0xc3)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x141b3f['dataset'][_0x45853d(0xb6)],{'appCode':_0x348afd[_0x45853d(0xa7)],'operationId':_0x5e7ca7[_0x45853d(0xac)],'clientOperationId':_0x141b3f[_0x45853d(0x9e)]})},'standardPageStatus':_0x9ee12f}};}};async function prepare(_0x477a42){const _0x957d19=a98_0xda7a44,_0x4aeae1=await loadDatasetDetailForPage(_0x477a42),_0x4bd893=await loadStandardPageStatusForGenerate(_0x477a42,_0x4aeae1['code']),_0x368880=getUndeletedRelatedPages(_0x4aeae1);return{'dataset':_0x4aeae1,'standardPageStatus':_0x4bd893,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessStandardPageState(_0x4aeae1[_0x957d19(0xb6)],_0x4bd893,{'fallbackUndeletedPages':_0x368880})};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a99_0x56b8(_0xd442a2,_0x33ea33){_0xd442a2=_0xd442a2-0x17c;const _0x25f79f=a99_0x25f7();let _0x56b8f9=_0x25f79f[_0xd442a2];return _0x56b8f9;}const a99_0x16eac9=a99_0x56b8;(function(_0x4e943a,_0x53183c){const _0x350d0a=a99_0x56b8,_0x28e0eb=_0x4e943a();while(!![]){try{const _0x12162e=-parseInt(_0x350d0a(0x188))/0x1+parseInt(_0x350d0a(0x19b))/0x2+parseInt(_0x350d0a(0x192))/0x3+-parseInt(_0x350d0a(0x17d))/0x4+-parseInt(_0x350d0a(0x1a2))/0x5*(parseInt(_0x350d0a(0x189))/0x6)+-parseInt(_0x350d0a(0x197))/0x7*(parseInt(_0x350d0a(0x182))/0x8)+parseInt(_0x350d0a(0x17f))/0x9*(parseInt(_0x350d0a(0x187))/0xa);if(_0x12162e===_0x53183c)break;else _0x28e0eb['push'](_0x28e0eb['shift']());}catch(_0x4d8036){_0x28e0eb['push'](_0x28e0eb['shift']());}}}(a99_0x25f7,0x6e0cb));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessGenerateOperationState,buildPageGenerateOperationStatusQueryCommand,loadDatasetDetailForPage,loadStandardPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector,validateGenerateOperationSelector}from'../../commands/page/shared.js';import{getGenerateStandardPagesStatus}from'../../core/api-client.js';export const pageGenerateStatus={'service':a99_0x16eac9(0x19d),'command':a99_0x16eac9(0x18d),'description':'Query\x20Smart\x20List\x20Page\x20generate\x20operation\x20status','risk':'read','defaultOutputFormat':a99_0x16eac9(0x193),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a99_0x16eac9(0x190),'type':a99_0x16eac9(0x17e),'description':a99_0x16eac9(0x1a1)},{'name':a99_0x16eac9(0x196),'type':a99_0x16eac9(0x17e),'description':a99_0x16eac9(0x19f)},{'name':a99_0x16eac9(0x18f),'type':a99_0x16eac9(0x17e),'description':a99_0x16eac9(0x195)}],async 'validate'(_0x226bd2){validateDatasetSelector(_0x226bd2),validateGenerateOperationSelector(_0x226bd2);},async 'dryRun'(_0x2b0a8e){const _0x242b09=a99_0x16eac9,_0x5a4568=await loadDatasetDetailForPage(_0x2b0a8e),_0x2cbefa=_0x2b0a8e['str'](_0x242b09(0x196)),_0x220f07=_0x2b0a8e['str'](_0x242b09(0x18f)),_0x1f879f=new URLSearchParams({'appCode':_0x2b0a8e[_0x242b09(0x1a3)]});return _0x2cbefa&&_0x1f879f[_0x242b09(0x191)](_0x242b09(0x17c),_0x2cbefa),_0x220f07&&_0x1f879f[_0x242b09(0x191)](_0x242b09(0x1a0),_0x220f07),{'method':_0x242b09(0x18e),'url':_0x242b09(0x198)+_0x5a4568[_0x242b09(0x1a4)]+_0x242b09(0x19e)+_0x1f879f[_0x242b09(0x18c)](),'description':serializeDryRunDescription({'dataset':{'id':_0x5a4568['id'],'code':_0x5a4568['code'],'name':_0x5a4568[_0x242b09(0x185)]},'action':_0x242b09(0x183),'operationId':_0x2cbefa||undefined,'clientOperationId':_0x220f07||undefined})};},async 'execute'(_0x4694b1){const _0x4bbaf7=a99_0x16eac9,_0x33d98c=await loadDatasetDetailForPage(_0x4694b1),_0xe2b2cd=_0x4694b1[_0x4bbaf7(0x181)](_0x4bbaf7(0x196)),_0x31fa1d=_0x4694b1[_0x4bbaf7(0x181)](_0x4bbaf7(0x18f)),_0x5caf96=await getGenerateStandardPagesStatus(_0x4694b1['appCode'],_0x33d98c[_0x4bbaf7(0x1a4)],{'operationId':_0xe2b2cd||undefined,'clientOperationId':_0x31fa1d||undefined}),_0x21a761=_0x5caf96[_0x4bbaf7(0x186)]==='SUCCESS'||_0x5caf96['status']===_0x4bbaf7(0x184),_0xa0194f=_0x21a761?await loadStandardPageStatusForGenerate(_0x4694b1,_0x33d98c[_0x4bbaf7(0x1a4)]):null,_0x4230e4=assessGenerateOperationState(_0x33d98c[_0x4bbaf7(0x1a4)],_0x5caf96['status'],_0xa0194f),_0x192b0c=_0x5caf96[_0x4bbaf7(0x17c)]??_0xe2b2cd??undefined,_0xd711ab=_0x5caf96[_0x4bbaf7(0x1a0)]??_0x31fa1d??undefined;return{'ok':!![],'message':_0x4230e4[_0x4bbaf7(0x186)]===_0x4bbaf7(0x194)?_0x5caf96[_0x4bbaf7(0x19a)]||_0x4230e4[_0x4bbaf7(0x19c)]:_0x4230e4[_0x4bbaf7(0x19c)],'data':{'datasetCode':_0x33d98c['code'],'appCode':_0x4694b1['appCode'],'operationId':_0x192b0c,'clientOperationId':_0xd711ab,'jobStatus':_0x5caf96[_0x4bbaf7(0x186)]??null,'progressRate':typeof _0x5caf96[_0x4bbaf7(0x18a)]===_0x4bbaf7(0x180)?_0x5caf96[_0x4bbaf7(0x18a)]:null,'currentStep':_0x5caf96[_0x4bbaf7(0x199)]??null,'errorMsg':_0x5caf96[_0x4bbaf7(0x19a)]??null,'status':_0x4230e4[_0x4bbaf7(0x186)],'manualResolutionRequired':_0x4230e4[_0x4bbaf7(0x18b)],'nextAction':_0x4230e4['nextAction'],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x33d98c['code'],{'appCode':_0x4694b1['appCode'],'operationId':_0x192b0c,'clientOperationId':_0xd711ab})},'standardPageStatus':_0xa0194f,'result':_0x5caf96['result']??null}};}};function a99_0x25f7(){const _0x30bd99=['operation_failed','Client\x20recovery/idempotency\x20id\x20when\x20operationId\x20is\x20unavailable\x20or\x20lost','operation-id','434oUDebf','/smartapi/lovrabet/dataset/','currentStep','errorMsg','1689168bqwbtX','message','page','/generate-standard-pages/status?','Async\x20operation\x20id\x20returned\x20by\x20page\x20generate-start','clientOperationId','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','20typtbl','appCode','code','operationId','181260AsJXav','string','9497457vQyHwq','number','str','86472GUsLdC','query-generate-operation-status','PARTIAL_SUCCESS','name','status','10ZGocSK','844492MLZSlW','799542CDGsYV','progressRate','manualResolutionRequired','toString','generate-status','GET','client-operation-id','alias','set','1931697SGXqeV','compress'];a99_0x25f7=function(){return _0x30bd99;};return a99_0x25f7();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a100_0x5a2a(){const _0x529c6b=['1112967rvzjLS','561990sZObnU','379368laJpvz','75CnkAIO','279532GbmztF','2396438xsKkMi','639XhVXNk','3830790SyCXNt','11725826QWhDMG'];a100_0x5a2a=function(){return _0x529c6b;};return a100_0x5a2a();}(function(_0x2411f3,_0x3ff6a4){const _0x4d58c0=a100_0x5efb,_0x3a9528=_0x2411f3();while(!![]){try{const _0x58a28e=parseInt(_0x4d58c0(0x1c0))/0x1+parseInt(_0x4d58c0(0x1c4))/0x2+parseInt(_0x4d58c0(0x1bf))/0x3+-parseInt(_0x4d58c0(0x1c3))/0x4*(-parseInt(_0x4d58c0(0x1c2))/0x5)+-parseInt(_0x4d58c0(0x1c6))/0x6+parseInt(_0x4d58c0(0x1c7))/0x7+-parseInt(_0x4d58c0(0x1c1))/0x8*(parseInt(_0x4d58c0(0x1c5))/0x9);if(_0x58a28e===_0x3ff6a4)break;else _0x3a9528['push'](_0x3a9528['shift']());}catch(_0x1d1564){_0x3a9528['push'](_0x3a9528['shift']());}}}(a100_0x5a2a,0xcf535));import{pageGenerateStart}from'../../commands/page/generate-start.js';import{pageGenerateStatus}from'../../commands/page/generate-status.js';import{pageStandardPageStatus}from'../../commands/page/standard-page-status.js';import{pageSync}from'../../commands/page/sync.js';function a100_0x5efb(_0x51207d,_0x59b72a){_0x51207d=_0x51207d-0x1bf;const _0x5a2a03=a100_0x5a2a();let _0x5efba9=_0x5a2a03[_0x51207d];return _0x5efba9;}import{pagePull}from'../../commands/page/pull.js';import{pagePush}from'../../commands/page/push.js';import{pageRelationAudit}from'../../commands/page/relation-audit.js';export const pageDefinitions=[pageGenerateStart,pageGenerateStatus,pageStandardPageStatus,pageRelationAudit,pageSync,pagePull,pagePush];
|