PK !:3-<<"ets/Application/MyAbilityStage.abcPANDA݆<< ; L| )))))8))u)-)(((<E ]esNXh,8IR_d~'KS^ks!=Yu((()-)8)u)))))),6 D V 'L_ESTypeAnnotation;-%{public}s, %{public}s .#1# .#2# .#3# .#4# .#5#.Logger.MyAbilityStage).__webpack_require__.isCommonModue ?name=AbilityStageE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\Application\MyAbilityStage.ts?entryE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\util\Logger.tsLogger_1MyAbilityStage/MyAbilityStage onCreateEMyAbilityStage.onAcceptWant called Object StringTAG'[Sample_StageModel]C_1e36f0fd2df677c57b79e15aad3634beq__common_module_cache___1e36f0fd2df677c57b79e15aad3634be__esModule__importDefaultabilityabilityNameapp1app.ability.AbilityStage call debugdefaultdefineProperty domain errorexports format hilogindexOf infoisSystempluginlanguage length ohos/ohos.samples.stagemodelohospluginEonConfigurationUpdated, language: prefixprototyperequireNapi systemsystempluginuse strict warn[webpackChunk_1e36f0fd2df677c57b79e15aad3634be3L_ESSlotNumberAnnotation;@'L_ESTypeInfoRecord;#1#L_GLOBAL;*3N*>+4[*: ,T5h*H ,6u*Z -6h*09*%3;*#08*n0 9*M %. 7*(2t;* 0L9*($2:*e (11:*X.a7h*.%8*(r2%;*4funcObjany0newTarget'__webpack_exports__ 0thisE:/Projects/DevEco/applications_app_samples/ability/StageModel/entry/build/default/intermediates/assets_jsbundle/default/ets/Application/MyAbilityStage_.js#2# this'__webpack_require__4newTarget/__unused_webpack_moduleA_ohos_app_ability_AbilityStage_1#3#mod#4# Logger#5# argsisCommonModue modulecachedModule%commonCachedModulemoduleIdfunc_main_0zvar _1e36f0fd2df677c57b79e15aad3634be; /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\Application\\MyAbilityStage.ts?entry": /*!*****************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\Application\MyAbilityStage.ts?entry ***! \*****************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_app_ability_AbilityStage_1 = globalThis.requireNapi('app.ability.AbilityStage') || (isSystemplugin('app.ability.AbilityStage', 'ohos') ? globalThis.ohosplugin.app.ability.AbilityStage : isSystemplugin('app.ability.AbilityStage', 'system') ? globalThis.systemplugin.app.ability.AbilityStage : undefined); const Logger_1 = __importDefault(__webpack_require__(/*! ../util/Logger */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts")); const TAG = 'MyAbilityStage'; class MyAbilityStage extends _ohos_app_ability_AbilityStage_1 { onCreate() { Logger_1.default.info(TAG, 'MyAbilityStage onCreate'); } //启动一个specified ability时触发的事件。 onAcceptWant(want) { Logger_1.default.info(TAG, 'MyAbilityStage.onAcceptWant called'); return 'ohos.samples.stagemodel'; } //环境变化通知接口,发生全局配置变更时回调。 onConfigurationUpdated(config) { Logger_1.default.info(TAG, `onConfigurationUpdated, language: ${config.language.abilityName}`); } } globalThis.exports.default = MyAbilityStage; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts": /*!********************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\util\Logger.ts ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_hilog_1 = globalThis.requireNapi('hilog') || (isSystemplugin('hilog', 'ohos') ? globalThis.ohosplugin.hilog : isSystemplugin('hilog', 'system') ? globalThis.systemplugin.hilog : undefined); class Logger { constructor(prefix) { this.domain = 0xFF00; this.prefix = ''; this.format = '%{public}s, %{public}s'; this.prefix = prefix; this.domain = 0xFF00; } debug(...args) { _ohos_hilog_1.debug(this.domain, this.prefix, this.format, args); } info(...args) { _ohos_hilog_1.info(this.domain, this.prefix, this.format, args); } warn(...args) { _ohos_hilog_1.warn(this.domain, this.prefix, this.format, args); } error(...args) { _ohos_hilog_1.error(this.domain, this.prefix, this.format, args); } } exports["default"] = new Logger('[Sample_StageModel]'); /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ var commonCachedModule = globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] ? globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId]: null; /******/ if (commonCachedModule) { return commonCachedModule.exports; } /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ function isCommonModue(moduleId) { /******/ if (globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"]) { /******/ const length = globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"].length; /******/ switch (length) { /******/ case 1: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId]; /******/ case 2: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId] || /******/ globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][1][1][moduleId]; /******/ } /******/ } /******/ return undefined; /******/ } /******/ if (globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] && String(moduleId).indexOf("?name=") < 0 && isCommonModue(moduleId)) { /******/ globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId] = module; /******/ } /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = __webpack_require__("E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\Application\\MyAbilityStage.ts?entry"); /******/ _1e36f0fd2df677c57b79e15aad3634be = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=MyAbilityStage.js.maponAcceptWant want-onConfigurationUpdated configonCreate)* ,*    3*,*(4 (k (  Ns1__webpack_module_cache__'__webpack_modules__ value_ohos_hilog_1SlotNumberB* 7B*.7B*7B*"7B*/7B*7B* 7B* 7B* 7B*7j;DpDDa`=aa`=37a`= >-Da3133`a`=a`=< a>a`*a` eCDEEEEEaa`a $Q`a ` BM` a #Q 32M` a? a ` Ba `a >a Aa`a` 0 ma ` B *a >a ` . a #~? !a >a >$a ` + $Q%ma`B&a ` Ba ` Ba ` BM??!a >a >+a ` + $Q%ma`B,a ` Ba ` Ba ` B!MM` a`a `a >a ` *# a ` *% a ` =>a ` =`a 5'6B a a ` B()a ` ama ` B*a `C, e.D`DqDD`$Q`a`B$Q`M@a`z`d ?DDDEEa`=a`a $Q`a ` BM` a#Q 34M`a? a ` Ba`a >a =a ` a `0 ma ` B *a >a ` . a#Q]? !a >a >$a ` + $Qma ` B&a ` BM/?!a >a >+a ` + $Qma ` B,a ` BMM`a`=pa 55> aa `B)a `a`a>a `a > a  8  e.D`DqDD`$Q`a`B$Q`M:a`z`d`D`DqDD`a`abC`a>C(`a>C`a`C(`abC`d@DpDDD`aaaba``B#a``a``a`dDEEE38aaaama >a ` 7 $Qma >a ` 7 a `a ` 7 Ma`$Q `a ` Bd<a `a ` 7 a`a ' $Q `a ` B d<a `a 9a z ` 8 ama >a ` 7 a $Q2? a `a` *a ` Ba >a ` . a b M` $Q+`a `a ` * $Qma >a ` 7 a `a `8! <a `a ` 7# a ` B%a `a ` B'a `a `a ` B)a < a` 1+ `a ` B-d GDDDDa<a`Ba`a`Ba`a`B(a`a ` Ba `a `1e GDDDDa<a`Ba`a`Ba`a`B(a`a ` Ba `a `1e <DP`=`=30a`)e GDDDDa<a`B a`a`Ba`a`B(a`a ` Ba `a `1e DDDEma>/a`7$ma>/a`7a`B#a`ab'$Qb'$Q:Nma >/a ` 7 a ba ` 7 aba ` 7 a`a`7dma >/a ` 7 a ba ` 7 a ba ` 7 a`a ` 7a#Q8ma >/a ` 7 a ba ` 7 a ba ` 7 a`a ` 7M`dd JDDDD<a>a  `a`Ba`B a<a> a`a> a`/>%d fDDDD<a>a  `a`Ba`B a<a> a`a>'a`a ` B"a ` B a> a`/ e EDDD<a>a`a`Ba`B a<a> a`a>a`/e GDDDDa<a`B.a`a`Ba`a`B(a`a ` Ba `a `1e  > p           /  =  $z$5K$)-$8$.         1                      /      k   /           8- ( ?( _n_ !^ !(!K! > >             0   % +8+        1                       /               8-  , 9HQ9 [8yy y   1   % +8+  M   \  \  \  \   ` 8 {  8            /  !    /  k  "   m                  >      N        m   $/$mxmm$, %7  1== Y`YrY~Y  T`  . >F V  ,    ) 6 C,    ) 6 C l       /      ,    ( 5 B    >    / M  l  g ?          !                 Z    u * ,7, #%$$(3(d(g(j(!(3(d(g(j(!,!]!`!c!(!"     z  'Q(!#          .Q-!#Hd#d#     $!# ,    ( 5 Bc9+5p3356K77?99::[;PK !:6!ets/Application/MyAbilityStage.jsvar _1e36f0fd2df677c57b79e15aad3634be; /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\Application\\MyAbilityStage.ts?entry": /*!*****************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\Application\MyAbilityStage.ts?entry ***! \*****************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_app_ability_AbilityStage_1 = globalThis.requireNapi('app.ability.AbilityStage') || (isSystemplugin('app.ability.AbilityStage', 'ohos') ? globalThis.ohosplugin.app.ability.AbilityStage : isSystemplugin('app.ability.AbilityStage', 'system') ? globalThis.systemplugin.app.ability.AbilityStage : undefined); const Logger_1 = __importDefault(__webpack_require__(/*! ../util/Logger */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts")); const TAG = 'MyAbilityStage'; class MyAbilityStage extends _ohos_app_ability_AbilityStage_1 { onCreate() { Logger_1.default.info(TAG, 'MyAbilityStage onCreate'); } //启动一个specified ability时触发的事件。 onAcceptWant(want) { Logger_1.default.info(TAG, 'MyAbilityStage.onAcceptWant called'); return 'ohos.samples.stagemodel'; } //环境变化通知接口,发生全局配置变更时回调。 onConfigurationUpdated(config) { Logger_1.default.info(TAG, `onConfigurationUpdated, language: ${config.language.abilityName}`); } } globalThis.exports.default = MyAbilityStage; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts": /*!********************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\util\Logger.ts ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_hilog_1 = globalThis.requireNapi('hilog') || (isSystemplugin('hilog', 'ohos') ? globalThis.ohosplugin.hilog : isSystemplugin('hilog', 'system') ? globalThis.systemplugin.hilog : undefined); class Logger { constructor(prefix) { this.domain = 0xFF00; this.prefix = ''; this.format = '%{public}s, %{public}s'; this.prefix = prefix; this.domain = 0xFF00; } debug(...args) { _ohos_hilog_1.debug(this.domain, this.prefix, this.format, args); } info(...args) { _ohos_hilog_1.info(this.domain, this.prefix, this.format, args); } warn(...args) { _ohos_hilog_1.warn(this.domain, this.prefix, this.format, args); } error(...args) { _ohos_hilog_1.error(this.domain, this.prefix, this.format, args); } } exports["default"] = new Logger('[Sample_StageModel]'); /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ var commonCachedModule = globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] ? globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId]: null; /******/ if (commonCachedModule) { return commonCachedModule.exports; } /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ function isCommonModue(moduleId) { /******/ if (globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"]) { /******/ const length = globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"].length; /******/ switch (length) { /******/ case 1: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId]; /******/ case 2: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId] || /******/ globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][1][1][moduleId]; /******/ } /******/ } /******/ return undefined; /******/ } /******/ if (globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] && String(moduleId).indexOf("?name=") < 0 && isCommonModue(moduleId)) { /******/ globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId] = module; /******/ } /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = __webpack_require__("E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\Application\\MyAbilityStage.ts?entry"); /******/ _1e36f0fd2df677c57b79e15aad3634be = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=MyAbilityStage.js.mapPK !:bb%ets/Application/MyAbilityStage.js.map{"version":3,"file":"./Application/MyAbilityStage.js","mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;GAaG;;;;;AAEH,oGAAyD;AACzD,2LAAmC;AAEnC,MAAM,GAAG,GAAW,gBAAgB;AAEpC,MAAqB,cAAe,SAAQ;IAC1C,QAAQ;QACN,gBAAM,CAAC,IAAI,CAAC,GAAG,EAAE,yBAAyB,CAAC;IAC7C,CAAC;IAED,8BAA8B;IAC9B,YAAY,CAAC,IAAI;QACf,gBAAM,CAAC,IAAI,CAAC,GAAG,EAAE,oCAAoC,CAAC;QACtD,OAAO,yBAAyB;IAClC,CAAC;IAED,uBAAuB;IACvB,sBAAsB,CAAC,MAAM;QAC3B,gBAAM,CAAC,IAAI,CAAC,GAAG,EAAE,qCAAqC,MAAM,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC;IACtF,CAAC;CACF;AAfD,iCAeC;;;;;;;;;;;;ACnCD;;;;;;;;;;;;;GAaG;;;;;AAEH,8DAA+B;AAE/B,MAAM,MAAM;IAKV,YAAY,MAAc;QAJlB,WAAM,GAAW,MAAM;QACvB,WAAM,GAAW,EAAE;QACnB,WAAM,GAAW,wBAAwB;QAG/C,IAAI,CAAC,MAAM,GAAG,MAAM;QACpB,IAAI,CAAC,MAAM,GAAG,MAAM;IACtB,CAAC;IAED,KAAK,CAAC,GAAG,IAAW;QAClB,qBAAK,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM;IACnD,CAAC;IAED,IAAI,CAAC,GAAG,IAAW;QACjB,qBAAK,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM;IAClD,CAAC;IAED,IAAI,CAAC,GAAG,IAAW;QACjB,qBAAK,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM;IAClD,CAAC;IAED,KAAK,CAAC,GAAG,IAAW;QAClB,qBAAK,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM;IACnD,CAAC;CACF;AAED,qBAAe,IAAI,MAAM,CAAC,qBAAqB,CAAC;;;;;;;UC5ChD;UACA;;UAEA;UACA;UACA;UACA,2BAA2B;UAC3B;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;UACA;;;;UEvCA;UACA;UACA;UACA","sources":["webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\Application\\MyAbilityStage.ts","webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts","webpack:///webpack/bootstrap","webpack:///webpack/before-startup","webpack:///webpack/startup","webpack:///webpack/after-startup"],"names":[],"sourceRoot":""}PK !:;,``5ets/DataShareExtensionAbility/DataShareExtAbility.abcPANDAH㒉`<l`L9 _ ?n?> ?> >>\>>n>=s==~=G? ?=h=`q9 !DY~l ".3HX{ )/ELUem}"*5<IXe  $ @ \ x H S d  h=s=~==== >\>n>>>>> ? ?G?n?? b='L_ESTypeAnnotation;K DataShareExtAbility onCreate, want: ' [insert] value = = [insert] invalid valueBuckets! [insert] leave -%{public}s, %{public}s .#1# .#10# .#11# .#2# .#3# .#4# .#5# .#6# .#7# .#8# .#9#).DataShareExtAbility.Logger).__webpack_require__.isCommonModue ?name=CREATE TABLE IF NOT EXISTS books (id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT NOT NULL, introduction TEXT NOT NULL)'DataShareExtAbilityGDataShareExtAbility executeSql doneIDataShareExtAbility getRdbStore doneADataShareExtAbility onCreate end3DataShareExtensionAbilityE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\DataShareExtensionAbility\DataShareExtAbility.ts?entryE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\util\Logger.ts JSONLogger_1 ObjectS1!SQL_CREATE_TABLESTORE_CONFIGSecurityLevel StringTABLE_NAMETAG'[Sample_StageModel][insert] enterC_1e36f0fd2df677c57b79e15aad3634beq__common_module_cache___1e36f0fd2df677c57b79e15aad3634be__esModule__importDefaultabilityNameapplicationKapplication.DataShareExtensionAbility books callcontext data)data.relationalStore debugdefaultdefineProperty deletedelete error: delete ret: )denormalizeUri uri: domain errorexecuteSqlexports formatgetRdbStore hilogindexOf info insertisSystemplugin length ohosohosplugin prefixprototype queryquery enterquery error: query leave5query resultSet.rowCount: query ret: rdbStorerelationalStorerequireNapirowCountsecurityLevelstringify systemsystemplugin updateuse strict warn[webpackChunk_1e36f0fd2df677c57b79e15aad3634be3L_ESSlotNumberAnnotation;@'L_ESTypeInfoRecord;#1#L_GLOBAL;~ AsR4@ BTN@EU[@ 5EEVh@EVu@3FV4@&FyW@+GX@; HX@m A5SA@ BS[@ L`\@ Q7`@E6JZ@K[@5PQ_A |HCY@eJP[@TL\@dQ_AH= O^@K$\@:=NM^@FM]@N[@D8HX[@ H"Z@4funcObjany0newTarget'__webpack_exports__ 0thisE:/Projects/DevEco/applications_app_samples/ability/StageModel/entry/build/default/intermediates/assets_jsbundle/default/ets/DataShareExtensionAbility/DataShareExtAbility_.js #10# this4newTarget/__unused_webpack_module Logger #11#mod#2#[_ohos_application_DataShareExtensionAbility_1'__webpack_require__#3##4#err#5##6#ret#7##8#resultSet#9# argsisCommonModue modulecachedModule%commonCachedModulemoduleIduripredicatesdenormalizeUricallbackfunc_main_0var _1e36f0fd2df677c57b79e15aad3634be; /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\DataShareExtensionAbility\\DataShareExtAbility.ts?entry": /*!************************************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\DataShareExtensionAbility\DataShareExtAbility.ts?entry ***! \************************************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_application_DataShareExtensionAbility_1 = globalThis.requireNapi('application.DataShareExtensionAbility') || (isSystemplugin('application.DataShareExtensionAbility', 'ohos') ? globalThis.ohosplugin.application.DataShareExtensionAbility : isSystemplugin('application.DataShareExtensionAbility', 'system') ? globalThis.systemplugin.application.DataShareExtensionAbility : undefined); var _ohos_data_relationalStore_1 = globalThis.requireNapi('data.relationalStore') || (isSystemplugin('data.relationalStore', 'ohos') ? globalThis.ohosplugin.data.relationalStore : isSystemplugin('data.relationalStore', 'system') ? globalThis.systemplugin.data.relationalStore : undefined); const Logger_1 = __importDefault(__webpack_require__(/*! ../util/Logger */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts")); const TAG = 'DataShareExtAbility'; const TABLE_NAME = 'books'; const STORE_CONFIG = { name: 'books.db', securityLevel: _ohos_data_relationalStore_1.SecurityLevel.S1 }; const SQL_CREATE_TABLE = 'CREATE TABLE IF NOT EXISTS books (id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT NOT NULL, introduction TEXT NOT NULL)'; let rdbStore = undefined; // 对应FA的DataAbility下的Data.ts class DataShareExtAbility extends _ohos_application_DataShareExtensionAbility_1 { // 对应FA的onInitialized onCreate(want, callback) { Logger_1.default.info(TAG, ` DataShareExtAbility onCreate, want: ${JSON.stringify(want.abilityName)}`); _ohos_data_relationalStore_1.getRdbStore(this.context, STORE_CONFIG, (err, data) => { Logger_1.default.info(TAG, `DataShareExtAbility getRdbStore done`); rdbStore = data; rdbStore.executeSql(SQL_CREATE_TABLE, [], () => { Logger_1.default.info(TAG, `DataShareExtAbility executeSql done`); }); if (callback) { callback(); } }); Logger_1.default.info(TAG, `DataShareExtAbility onCreate end`); } // 对应FA的insert insert(uri, value, callback) { Logger_1.default.info(TAG, `[insert] enter`); if (value === null) { Logger_1.default.info(' [insert] invalid valueBuckets'); return; } Logger_1.default.info(TAG, ` [insert] value = ${JSON.stringify(value)}`); if (rdbStore) { rdbStore.insert(TABLE_NAME, value, (err, ret) => { Logger_1.default.info(TAG, ` [insert] leave ${ret}`); if (callback !== undefined) { callback(err, ret); } }); } } // 对应FA的delete delete(uri, predicates, callback) { Logger_1.default.info(TAG, `delete`); try { if (rdbStore) { rdbStore.delete(TABLE_NAME, predicates, (error, ret) => { Logger_1.default.info(TAG, `delete ret: ${ret}`); callback(error, ret); }); } } catch (error) { Logger_1.default.error(TAG, `delete error: ${JSON.stringify(error)}`); } } // 对应FA的query query(uri, predicates, columns, callback) { Logger_1.default.info(TAG, `query enter`); try { if (rdbStore) { rdbStore.query(TABLE_NAME, predicates, columns, (err, resultSet) => { Logger_1.default.info(TAG, `query ret: ${resultSet}`); if (resultSet !== undefined) { Logger_1.default.info(TAG, `query resultSet.rowCount: ${JSON.stringify(resultSet.rowCount)}`); } if (callback !== undefined) { callback(err, resultSet); } }); } } catch (err) { Logger_1.default.error(TAG, `query error: ${JSON.stringify(err)}`); } Logger_1.default.info(TAG, `query leave`); } // 对应FA的update update(uri, predicates, value, callback) { if (predicates === null || predicates === undefined) { return; } if (rdbStore) { rdbStore.update(TABLE_NAME, value, predicates, function (err, ret) { if (callback !== undefined) { callback(err, ret); } }); } } // 服务端使用的URI转换为用户传入的初始URI时服务端回调此接口,该方法可以选择性重写。 denormalizeUri(uri, callback) { Logger_1.default.error(TAG, `denormalizeUri uri: ${JSON.stringify(uri)}`); } // 用户给定的URI转换为服务端使用的URI时回调此接口,该方法可以选择性重写。 normalizeUri(uri, callback) { Logger_1.default.error(TAG, `denormalizeUri uri: ${JSON.stringify(uri)}`); } } globalThis.exports.default = DataShareExtAbility; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts": /*!********************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\util\Logger.ts ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_hilog_1 = globalThis.requireNapi('hilog') || (isSystemplugin('hilog', 'ohos') ? globalThis.ohosplugin.hilog : isSystemplugin('hilog', 'system') ? globalThis.systemplugin.hilog : undefined); class Logger { constructor(prefix) { this.domain = 0xFF00; this.prefix = ''; this.format = '%{public}s, %{public}s'; this.prefix = prefix; this.domain = 0xFF00; } debug(...args) { _ohos_hilog_1.debug(this.domain, this.prefix, this.format, args); } info(...args) { _ohos_hilog_1.info(this.domain, this.prefix, this.format, args); } warn(...args) { _ohos_hilog_1.warn(this.domain, this.prefix, this.format, args); } error(...args) { _ohos_hilog_1.error(this.domain, this.prefix, this.format, args); } } exports["default"] = new Logger('[Sample_StageModel]'); /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ var commonCachedModule = globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] ? globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId]: null; /******/ if (commonCachedModule) { return commonCachedModule.exports; } /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ function isCommonModue(moduleId) { /******/ if (globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"]) { /******/ const length = globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"].length; /******/ switch (length) { /******/ case 1: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId]; /******/ case 2: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId] || /******/ globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][1][1][moduleId]; /******/ } /******/ } /******/ return undefined; /******/ } /******/ if (globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] && String(moduleId).indexOf("?name=") < 0 && isCommonModue(moduleId)) { /******/ globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId] = module; /******/ } /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = __webpack_require__("E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\DataShareExtensionAbility\\DataShareExtAbility.ts?entry"); /******/ _1e36f0fd2df677c57b79e15aad3634be = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=DataShareExtAbility.js.map valuenormalizeUrionCreate wantcolumnsLL3=??,H=  en 58  - := .?"l?@  y s 3=E     @y s y s y s y s  namebooks.db9_ohos_data_relationalStore_11__webpack_module_cache__'__webpack_modules___ohos_hilog_1SlotNumber(@ 7(@"7(@G7(@7(@7(@7(@ 7(@7(@7(@/7(@7(@7(@7(@ 7(@ 7(@7(@7(@7jgDpDDa`=aa`=3]a`= >Mfa3S 3Q`a`=a`=< a> a`*a` e kDDDEEa`=a`a $Q`a ` BM` a#Q 3RM`a?a ` B)a`a >a ia ` a `0 ma ` B Fa >4a ` . a#Q]? 8a >4a >:a ` + $Qma ` B;a ` B4M/?8a >4a >Ja ` + $Qma ` BKa ` B4MM`a`=pa 5\j aa `B=a `a`a>(a `a >a  8  e.D`DqDD`$Q`a`B$Q`M`a`z(`deDEEEEEa ` = aa`a $Q`a ` BM` a #Q 3TM` a?a ` B)a `a >a ba`a` 0 ma ` B Fa >!a ` . a #Qm? 8a >!a >:a ` + $Qma ` B;a ` B a ` B M7?8a >!a >Ja ` + $Qma ` BKa ` B a ` B MM` ama ` BFa >&a ` .! a #Qm?#8a >&a >:a ` +$ $Qma ` B&;a ` B(%a ` B*EM7?,8a >&a >Ja ` +- $Qma ` B/Ka ` B1%a ` B3EMM` a ` = `a `a >a ` *5 a ` *7 a ` =>a ` =>"a ` =`9ca < a ` B:a ` B<z>H ` a ` =0>a ` =Pa ` =@`a 5@[d a a ` BA=a ` ama ` BC1a `CE( e.D`DqDD`$Q`a`B$Q`Maa`z(`d DDDDD<a >a  ` a`B(a`B6a<a>a  `a> a `/ `aDa``a`=ADa  `a`B0aa  `aa a 3 Va `0  <$Q <a`) e EDDD<a>a`a`B(a`B6a<a>a`a> a`/e uDDDDD<a >a  ` a`B(a`B6a<a>a  `a>a `  a >  a `/ <a'$Q<a`a`a`+ e jDDDDD<a >a  ` a`B(a`B6a<a>a  `a>,a `  a >  a `/ <a`a`a`+e DDDEE<a >a  ` a`B(a`B6a<a>a  `a>Ca `  a >  a `/ `a'$Qm<a >a  ` a`B (a`B 6a<a>a  `a>Ba ? a ` BIa `a ` BGa ` .  a >  a `/ <a'$Q<a`a`a`+e (DDDDD<a'$Q<a`a`a`+e@DpDDD`aaaba``B9a``a``a`d`D`DqDD`a`abC.`a>C<`a>C2`a`C<`abC.`dDEEE3^aaaama >a ` 7 $Qma >a ` 7 a `a ` 7 Ma`$Q `a ` B1d<a `a ` 7 a`a ' $Q `a ` B 1d<a `a _a z1 ` 8 ama >a ` 7 a $Q2?a `a` *a ` B5a >a ` . a b M` $Q+`a `a ` * $Qma >a ` 7 a `a `8! <a `a ` 7# a ` B%#a `a ` B'1a `a `a ` B)1a < a` 1+ `a ` B-1d GDDDDa<a`B'a`a`B.a`a`B<a`a ` B2a `a `1enD`=`= EE`=<a >a  ` a ` B(a`B6a<a >a  ` a >*a `/ Da`$Q?Da  ` a`B*aa  ` a `a 3Xa `0  Mga<a >a  ` a ` B (a ` B /a<a >a  ` a >+a ?a ` BIa `a` .   a >  a `/ eVOe GDDDDa<a`B/a`a`B.a`a`B<a`a ` B2a `a `1e hDP`=`=3Pa`)e GDDDDa<a`B6a`a`B.a`a`B<a`a ` B2a `a `1eoD`=`= EE`=<a >a  ` a ` B(a`B6a<a >a  ` a >a `/ `a($Q0<a >a  ` a ` B(a`B 6a>a `.  e<a >a  ` a ` B (a`B6a<a >a  ` a >a ?a ` BIa `a ` .  a >  a `/ Da`$Q?Da  ` a`B7aa  ` a `a 3Wa `0 e DDDEma>Oa`7$ma>Oa`7a`B9a`ab'$Qb'$Q:Nma >Oa ` 7 a ba ` 7 aba ` 7 a`a`7dma >Oa ` 7 a ba ` 7 a ba ` 7 a`a ` 7a#Q8ma >Oa ` 7 a ba ` 7 a ba ` 7 a`a ` 7M`dd pDDDEE<a >a  ` a`B(a`B/a<a>a  `a>-a ?a ` BIa `a ` . a > a `/  e pD`=`= E`=<a >a  ` a`B(a`B6a<a>a  `a>a ?a ` BIa `a ` Ba ` . a > a `/  a  ` a 3Ua `0 <a >a  ` a`B(a`B6a<a>a  `a> a `/ emE`=`= EEE`=<a >a  ` a ` B(a ` B6a<a >a  ` a >?a `/ Da  `$QADa  ` a ` B>aa  ` a `a `a 3Ya `1  Mga<a >a  ` a ` B (a ` B /a <a >a  ` a >@a ?a`BIa `a` .  a >  a ` / <a >a  ` a ` B(a ` B6a<a >a  ` a >Aa `/ eZQelDDEEEE`=`a(#Q `a($QeDa  `$QADa  ` a ` BLaa  ` a `a `a 3Za `1 e GDDDDa<a`BNa`a`B.a`a`B<a`a ` B2a `a `1e  > p           /  ?  $z$~$)-$8$.         1                       /               8-  , 9HQ9 [8yy y   1   % +8+        1                      /                  k      k  k  k    k  k   0            8- 5 L5 yy x 5$ ;$ Wf~W V $!K! 8"P P             0   % +8+     z      \ 8 - !"'   26       0!&+          z   k   i A !&+>B+B+!"          z   ; !*/>B/B/$          z   k          {  k   i Y !*/=G/G/&!.3P_ P s3s3%!&    k   i 0 !"  8  M   \  \  \  \   ` 8{            /  !    /  k  "   m                  >      N        m   $/$mxmm$, %7  1== Y`YrY~Y  T`  . >F V  ,    ) 6 C     {      /            J!# ,8 !#(9H9 O(O( w9 !$;J; O$O$,    ) 6 C l       /      ,    ( 5 B     z   k  k0           z     Gz:!#  !" !#9H9 O#O# (/     >    / M  l  g ?          !                 Z    u *,7, #%$$(3(d(g(j(!(3(d(g(j(!,!]!`!c!(!"            9 !$;J; O$O$            z       4z+!#KZ K l#l# 1 ?M!#     {      h  /               Xz!#+7@  !#(8G8 L(L( !#        >0     i Cz  #2# (/; ,    ( 5 B;\U^6RRTVVVGWWqXX YY[\\,]^^_PK !:ln.n.4ets/DataShareExtensionAbility/DataShareExtAbility.jsvar _1e36f0fd2df677c57b79e15aad3634be; /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\DataShareExtensionAbility\\DataShareExtAbility.ts?entry": /*!************************************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\DataShareExtensionAbility\DataShareExtAbility.ts?entry ***! \************************************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_application_DataShareExtensionAbility_1 = globalThis.requireNapi('application.DataShareExtensionAbility') || (isSystemplugin('application.DataShareExtensionAbility', 'ohos') ? globalThis.ohosplugin.application.DataShareExtensionAbility : isSystemplugin('application.DataShareExtensionAbility', 'system') ? globalThis.systemplugin.application.DataShareExtensionAbility : undefined); var _ohos_data_relationalStore_1 = globalThis.requireNapi('data.relationalStore') || (isSystemplugin('data.relationalStore', 'ohos') ? globalThis.ohosplugin.data.relationalStore : isSystemplugin('data.relationalStore', 'system') ? globalThis.systemplugin.data.relationalStore : undefined); const Logger_1 = __importDefault(__webpack_require__(/*! ../util/Logger */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts")); const TAG = 'DataShareExtAbility'; const TABLE_NAME = 'books'; const STORE_CONFIG = { name: 'books.db', securityLevel: _ohos_data_relationalStore_1.SecurityLevel.S1 }; const SQL_CREATE_TABLE = 'CREATE TABLE IF NOT EXISTS books (id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT NOT NULL, introduction TEXT NOT NULL)'; let rdbStore = undefined; // 对应FA的DataAbility下的Data.ts class DataShareExtAbility extends _ohos_application_DataShareExtensionAbility_1 { // 对应FA的onInitialized onCreate(want, callback) { Logger_1.default.info(TAG, ` DataShareExtAbility onCreate, want: ${JSON.stringify(want.abilityName)}`); _ohos_data_relationalStore_1.getRdbStore(this.context, STORE_CONFIG, (err, data) => { Logger_1.default.info(TAG, `DataShareExtAbility getRdbStore done`); rdbStore = data; rdbStore.executeSql(SQL_CREATE_TABLE, [], () => { Logger_1.default.info(TAG, `DataShareExtAbility executeSql done`); }); if (callback) { callback(); } }); Logger_1.default.info(TAG, `DataShareExtAbility onCreate end`); } // 对应FA的insert insert(uri, value, callback) { Logger_1.default.info(TAG, `[insert] enter`); if (value === null) { Logger_1.default.info(' [insert] invalid valueBuckets'); return; } Logger_1.default.info(TAG, ` [insert] value = ${JSON.stringify(value)}`); if (rdbStore) { rdbStore.insert(TABLE_NAME, value, (err, ret) => { Logger_1.default.info(TAG, ` [insert] leave ${ret}`); if (callback !== undefined) { callback(err, ret); } }); } } // 对应FA的delete delete(uri, predicates, callback) { Logger_1.default.info(TAG, `delete`); try { if (rdbStore) { rdbStore.delete(TABLE_NAME, predicates, (error, ret) => { Logger_1.default.info(TAG, `delete ret: ${ret}`); callback(error, ret); }); } } catch (error) { Logger_1.default.error(TAG, `delete error: ${JSON.stringify(error)}`); } } // 对应FA的query query(uri, predicates, columns, callback) { Logger_1.default.info(TAG, `query enter`); try { if (rdbStore) { rdbStore.query(TABLE_NAME, predicates, columns, (err, resultSet) => { Logger_1.default.info(TAG, `query ret: ${resultSet}`); if (resultSet !== undefined) { Logger_1.default.info(TAG, `query resultSet.rowCount: ${JSON.stringify(resultSet.rowCount)}`); } if (callback !== undefined) { callback(err, resultSet); } }); } } catch (err) { Logger_1.default.error(TAG, `query error: ${JSON.stringify(err)}`); } Logger_1.default.info(TAG, `query leave`); } // 对应FA的update update(uri, predicates, value, callback) { if (predicates === null || predicates === undefined) { return; } if (rdbStore) { rdbStore.update(TABLE_NAME, value, predicates, function (err, ret) { if (callback !== undefined) { callback(err, ret); } }); } } // 服务端使用的URI转换为用户传入的初始URI时服务端回调此接口,该方法可以选择性重写。 denormalizeUri(uri, callback) { Logger_1.default.error(TAG, `denormalizeUri uri: ${JSON.stringify(uri)}`); } // 用户给定的URI转换为服务端使用的URI时回调此接口,该方法可以选择性重写。 normalizeUri(uri, callback) { Logger_1.default.error(TAG, `denormalizeUri uri: ${JSON.stringify(uri)}`); } } globalThis.exports.default = DataShareExtAbility; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts": /*!********************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\util\Logger.ts ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_hilog_1 = globalThis.requireNapi('hilog') || (isSystemplugin('hilog', 'ohos') ? globalThis.ohosplugin.hilog : isSystemplugin('hilog', 'system') ? globalThis.systemplugin.hilog : undefined); class Logger { constructor(prefix) { this.domain = 0xFF00; this.prefix = ''; this.format = '%{public}s, %{public}s'; this.prefix = prefix; this.domain = 0xFF00; } debug(...args) { _ohos_hilog_1.debug(this.domain, this.prefix, this.format, args); } info(...args) { _ohos_hilog_1.info(this.domain, this.prefix, this.format, args); } warn(...args) { _ohos_hilog_1.warn(this.domain, this.prefix, this.format, args); } error(...args) { _ohos_hilog_1.error(this.domain, this.prefix, this.format, args); } } exports["default"] = new Logger('[Sample_StageModel]'); /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ var commonCachedModule = globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] ? globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId]: null; /******/ if (commonCachedModule) { return commonCachedModule.exports; } /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ function isCommonModue(moduleId) { /******/ if (globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"]) { /******/ const length = globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"].length; /******/ switch (length) { /******/ case 1: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId]; /******/ case 2: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId] || /******/ globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][1][1][moduleId]; /******/ } /******/ } /******/ return undefined; /******/ } /******/ if (globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] && String(moduleId).indexOf("?name=") < 0 && isCommonModue(moduleId)) { /******/ globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId] = module; /******/ } /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = __webpack_require__("E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\DataShareExtensionAbility\\DataShareExtAbility.ts?entry"); /******/ _1e36f0fd2df677c57b79e15aad3634be = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=DataShareExtAbility.js.mapPK !:698ets/DataShareExtensionAbility/DataShareExtAbility.js.map{"version":3,"file":"./DataShareExtensionAbility/DataShareExtAbility.js","mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;GAaG;;;;;AAEH,8HAAmF;AACnF,4FAA4C;AAC5C,2LAAmC;AAEnC,MAAM,GAAG,GAAW,qBAAqB;AACzC,MAAM,UAAU,GAAW,OAAO;AAClC,MAAM,YAAY,GAAoB,EAAE,IAAI,EAAE,UAAU,EAAE,aAAa,EAAE,oCAAG,CAAC;AAC7E,MAAM,gBAAgB,GAAW,yHAAyH;AAC1J,IAAI,QAAQ,GAAiB,SAAS;AAEtC,4BAA4B;AAC5B,MAAqB,mBAAoB,SAAQ;IAE/C,qBAAqB;IACrB,QAAQ,CAAC,IAAI,EAAE,QAAQ;QACrB,gBAAM,CAAC,IAAI,CAAC,GAAG,EAAE,wCAAwC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;QAC5F,oCAAG,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,EAAE,YAAY,EAAE,CAAC,GAAG,EAAE;YAChD,gBAAM,CAAC,IAAI,CAAC,GAAG,E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IAClD,CAAC;IAED,KAAK,CAAC,GAAG,IAAW;QAClB,qBAAK,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM;IACnD,CAAC;CACF;AAED,qBAAe,IAAI,MAAM,CAAC,qBAAqB,CAAC;;;;;;;UC5ChD;UACA;;UAEA;UACA;UACA;UACA,2BAA2B;UAC3B;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;UACA;;;;UEvCA;UACA;UACA;UACA","sources":["webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\DataShareExtensionAbility\\DataShareExtAbility.ts","webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts","webpack:///webpack/bootstrap","webpack:///webpack/before-startup","webpack:///webpack/startup","webpack:///webpack/after-startup"],"names":[],"sourceRoot":""}PK !:J ets/FormAbility/FormAbility.abcPANDA << Ldx<h]@< '00xq9EV[z $,2>IV^l@]hlp~'L_ESTypeAnnotation; .#1# .#2# .#3#.FormAbilityE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\FormAbility\FormAbility.ts?entry)FormExtensionAbilityFormState Object READYC_1e36f0fd2df677c57b79e15aad3634be__esModule__importDefaultapp;app.form.FormExtensionAbilityapplication7application.formBindingData)application.formInfo+createFormBindingDatadefaultdefinePropertyexports formformBindingDataformInfoisSystemplugin length ohosohospluginprototyperequireNapi systemsystempluginuse strict3L_ESSlotNumberAnnotation;@'L_ESTypeInfoRecord;#1#L_GLOBAL;  p t%w /  d =sEpVi 4funcObjany0newTarget'__webpack_exports__ 0this'__webpack_modules__E:/Projects/DevEco/applications_app_samples/ability/StageModel/entry/build/default/intermediates/assets_jsbundle/default/ets/FormAbility/FormAbility_.js#2# thisK_ohos_app_form_FormExtensionAbility_1FormAbility4newTarget/__unused_webpack_module#3#mod argsfunc_main_0Bvar _1e36f0fd2df677c57b79e15aad3634be; /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\FormAbility\\FormAbility.ts?entry": /*!**************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\FormAbility\FormAbility.ts?entry ***! \**************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_app_form_FormExtensionAbility_1 = globalThis.requireNapi('app.form.FormExtensionAbility') || (isSystemplugin('app.form.FormExtensionAbility', 'ohos') ? globalThis.ohosplugin.app.form.FormExtensionAbility : isSystemplugin('app.form.FormExtensionAbility', 'system') ? globalThis.systemplugin.app.form.FormExtensionAbility : undefined); var _ohos_application_formBindingData_1 = globalThis.requireNapi('application.formBindingData') || (isSystemplugin('application.formBindingData', 'ohos') ? globalThis.ohosplugin.application.formBindingData : isSystemplugin('application.formBindingData', 'system') ? globalThis.systemplugin.application.formBindingData : undefined); var _ohos_application_formInfo_1 = globalThis.requireNapi('application.formInfo') || (isSystemplugin('application.formInfo', 'ohos') ? globalThis.ohosplugin.application.formInfo : isSystemplugin('application.formInfo', 'system') ? globalThis.systemplugin.application.formInfo : undefined); class FormAbility extends _ohos_app_form_FormExtensionAbility_1 { onCreate(want) { // Called to return a FormBindingData object. // 创建卡片 let formData = {}; return _ohos_application_formBindingData_1.createFormBindingData(formData); } onCastToNormal(formId) { // Called when the form provider is notified that a temporary form is successfully // converted to a normal form. } onUpdate(formId) { // Called to notify the form provider to update a specified form. } onVisibilityChange(newStatus) { // Called when the form provider receives form events from the system. } onEvent(formId, message) { // Called when a specified message event defined by the form provider is triggered. } onAcquireFormState(want) { // Called to return a {@link FormState} object. return _ohos_application_formInfo_1.FormState.READY; } onDestroy(formId) { // Called to notify the form provider that a specified form has been destroyed. } } globalThis.exports.default = FormAbility; /***/ }) /******/ }); /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = {}; /******/ __webpack_modules__["E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\FormAbility\\FormAbility.ts?entry"](0, __webpack_exports__); /******/ _1e36f0fd2df677c57b79e15aad3634be = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=FormAbility.js.map%onAcquireFormState wantonCastToNormalonCreateformDataonDestroyonEventonUpdate%onVisibilityChange,F p a  + V |  q J valueG_ohos_application_formBindingData_19_ohos_application_formInfo_1SlotNumber 7V7777 PDDDaa>%a3`aa`a>a`7aba`a `/ `e$DDEEEa`=aaa`=`a $Q`a ` BM` a #Q 3M` a?a ` Ba `a >a "a ` a ` 0 ma ` B a > a ` . a #~? a > a >a ` + $Q%ma ` Ba ` Ba ` Ba ` BM??a > a >a ` + $Q%ma ` Ba ` Ba ` Ba ` B!MM` ama ` B#a > a ` .% a #Qm?'a > a >a ` +( $Qma ` B*a ` B, a ` B.M7?0a > a >a ` +1 $Qma ` B3a ` B5 a ` B7MM` a ` =ma ` B9a > a ` .; a #Qm?=a > a >a ` +> $Qma ` B@a ` BB a ` BDM7?Fa > a >a ` +G $Qma ` BIa ` BK a ` BMMM` a ` =`a 5O # a a ` BPa ` ama ` BRa `CT e.D`DqDD`$Q`a`B$Q`M!a`z`d@DpDDD`aaaba``Ba``a``a`d &DP`=`=3a`)eDpDDD<a`Ba`Bd "DDDDa<a`B a`a`.d D`DqDDDe DPDaDrDe m > p     /      z  @  $z$$   .         1                      /                  k                   /              8- - D- ixi !h !-+ B+ ete d +$ ;$ Wf~W V $ @ @             0     % +8+    8 l          . 8 )   /    -  / . &  I :   3 - 0"q L] PK !:rets/FormAbility/FormAbility.jsvar _1e36f0fd2df677c57b79e15aad3634be; /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\FormAbility\\FormAbility.ts?entry": /*!**************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\FormAbility\FormAbility.ts?entry ***! \**************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_app_form_FormExtensionAbility_1 = globalThis.requireNapi('app.form.FormExtensionAbility') || (isSystemplugin('app.form.FormExtensionAbility', 'ohos') ? globalThis.ohosplugin.app.form.FormExtensionAbility : isSystemplugin('app.form.FormExtensionAbility', 'system') ? globalThis.systemplugin.app.form.FormExtensionAbility : undefined); var _ohos_application_formBindingData_1 = globalThis.requireNapi('application.formBindingData') || (isSystemplugin('application.formBindingData', 'ohos') ? globalThis.ohosplugin.application.formBindingData : isSystemplugin('application.formBindingData', 'system') ? globalThis.systemplugin.application.formBindingData : undefined); var _ohos_application_formInfo_1 = globalThis.requireNapi('application.formInfo') || (isSystemplugin('application.formInfo', 'ohos') ? globalThis.ohosplugin.application.formInfo : isSystemplugin('application.formInfo', 'system') ? globalThis.systemplugin.application.formInfo : undefined); class FormAbility extends _ohos_app_form_FormExtensionAbility_1 { onCreate(want) { // Called to return a FormBindingData object. // 创建卡片 let formData = {}; return _ohos_application_formBindingData_1.createFormBindingData(formData); } onCastToNormal(formId) { // Called when the form provider is notified that a temporary form is successfully // converted to a normal form. } onUpdate(formId) { // Called to notify the form provider to update a specified form. } onVisibilityChange(newStatus) { // Called when the form provider receives form events from the system. } onEvent(formId, message) { // Called when a specified message event defined by the form provider is triggered. } onAcquireFormState(want) { // Called to return a {@link FormState} object. return _ohos_application_formInfo_1.FormState.READY; } onDestroy(formId) { // Called to notify the form provider that a specified form has been destroyed. } } globalThis.exports.default = FormAbility; /***/ }) /******/ }); /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = {}; /******/ __webpack_modules__["E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\FormAbility\\FormAbility.ts?entry"](0, __webpack_exports__); /******/ _1e36f0fd2df677c57b79e15aad3634be = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=FormAbility.js.mapPK !:d_^"ets/FormAbility/FormAbility.js.map{"version":3,"file":"./FormAbility/FormAbility.js","mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;GAaG;;;;;AAEH,8GAA+D;AAC/D,0GAA+D;AAC/D,4FAAiD;AAEjD,MAAqB,WAAY,SAAQ;IACvC,QAAQ,CAAC,IAAI;QACX,6CAA6C;QAC7C,OAAO;QACP,IAAI,QAAQ,GAAG,EAAE;QACjB,OAAO,2CAAe,CAAC,qBAAqB,CAAC;IAC/C,CAAC;IAED,cAAc,CAAC,MAAM;QACnB,kFAAkF;QAClF,8BAA8B;IAChC,CAAC;IAED,QAAQ,CAAC,MAAM;QACb,iEAAiE;IACnE,CAAC;IAED,kBAAkB,CAAC,SAAS;QAC1B,sEAAsE;IACxE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,OAAO;QACrB,mFAAmF;IACrF,CAAC;IAED,kBAAkB,CAAC,IAAI;QACrB,+CAA+C;QAC/C,OAAO,oCAAQ,CAAC,SAAS;IAC3B,CAAC;IAED,SAAS,CAAC,MAAM;QACd,+EAA+E;IACjF,CAAC;CACF;AAjCD,8BAiCC;;;;;;;;UEpDD;UACA;UACA;UACA;UACA","sources":["webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\FormAbility\\FormAbility.ts","webpack:///webpack/before-startup","webpack:///webpack/startup","webpack:///webpack/after-startup"],"names":[],"sourceRoot":""}PK !:8Bv@@ets/MainAbility/MainAbility.abcPANDA7@< ? L|$H,,+ ,+,+,,+v+k+`+@HHfnwOYf 4W'-=EKWdlw]yU0`+k+v++++,, ,+,,, 'L_ESTypeAnnotation;-%{public}s, %{public}s .#1# .#2# .#3# .#4# .#5#.Logger.MainAbility).__webpack_require__.isCommonModue ?name=AbilityE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\MainAbility\MainAbility.ts?entryE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\util\Logger.tsLogger_1MainAbility1MainAbility onBackground)MainAbility onCreate+MainAbility onDestroy1MainAbility onForeground?MainAbility onWindowStageCreateAMainAbility onWindowStageDestroy Object StringTAG'[Sample_StageModel]C_1e36f0fd2df677c57b79e15aad3634beq__common_module_cache___1e36f0fd2df677c57b79e15aad3634be__esModule__importDefaultabilityapp'app.ability.Ability call debugdefaultdefineProperty domain errorexports format hilogindexOf infoisSystemplugin length ohosohospluginpages/Index prefixprototyperequireNapi'setShowOnLockScreensetUIContent systemsystempluginuse strict warn[webpackChunk_1e36f0fd2df677c57b79e15aad3634be3L_ESSlotNumberAnnotation;@'L_ESTypeInfoRecord;#1#L_GLOBAL;C-L7-Y - 8- S/8- /9)- 0;:-'3(=P-6?P-2w<P-"3<P- 0:P-*!5>j-+n5>j-Y=1;-. m3<C-*4N>j-+5?j- 3=]-d 1;6-(+6U?w-J+{6?j-4funcObjany0newTarget'__webpack_exports__ 0thisE:/Projects/DevEco/applications_app_samples/ability/StageModel/entry/build/default/intermediates/assets_jsbundle/default/ets/MainAbility/MainAbility_.js#2# this'__webpack_require__7_ohos_app_ability_Ability_14newTarget/__unused_webpack_module#3#mod#4# Logger#5# argsisCommonModue modulecachedModule%commonCachedModulemoduleIdfunc_main_0var _1e36f0fd2df677c57b79e15aad3634be; /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\MainAbility\\MainAbility.ts?entry": /*!**************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\MainAbility\MainAbility.ts?entry ***! \**************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_app_ability_Ability_1 = globalThis.requireNapi('app.ability.Ability') || (isSystemplugin('app.ability.Ability', 'ohos') ? globalThis.ohosplugin.app.ability.Ability : isSystemplugin('app.ability.Ability', 'system') ? globalThis.systemplugin.app.ability.Ability : undefined); const Logger_1 = __importDefault(__webpack_require__(/*! ../util/Logger */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts")); const TAG = 'MainAbility'; class MainAbility extends _ohos_app_ability_Ability_1 { onCreate(want, launchParam) { Logger_1.default.info(TAG, `MainAbility onCreate`); } onWindowStageCreate(windowStage) { // Main window is created, set main page for this ability Logger_1.default.info(TAG, `MainAbility onWindowStageCreate`); windowStage.setUIContent('pages/Index', null); // 设置应用显示在锁屏之上,对应FA模型中AppContext的setShowOnLockScreen接口 windowStage.setShowOnLockScreen(true); } onForeground() { // Ability has brought to foreground Logger_1.default.info(TAG, `MainAbility onForeground`); } onBackground() { // Ability has back to background Logger_1.default.info(TAG, `MainAbility onBackground`); } onWindowStageDestroy() { // Main window is destroyed, release UI related resources Logger_1.default.info(TAG, `MainAbility onWindowStageDestroy`); } onDestroy() { Logger_1.default.info(TAG, `MainAbility onDestroy`); } } globalThis.exports.default = MainAbility; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts": /*!********************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\util\Logger.ts ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_hilog_1 = globalThis.requireNapi('hilog') || (isSystemplugin('hilog', 'ohos') ? globalThis.ohosplugin.hilog : isSystemplugin('hilog', 'system') ? globalThis.systemplugin.hilog : undefined); class Logger { constructor(prefix) { this.domain = 0xFF00; this.prefix = ''; this.format = '%{public}s, %{public}s'; this.prefix = prefix; this.domain = 0xFF00; } debug(...args) { _ohos_hilog_1.debug(this.domain, this.prefix, this.format, args); } info(...args) { _ohos_hilog_1.info(this.domain, this.prefix, this.format, args); } warn(...args) { _ohos_hilog_1.warn(this.domain, this.prefix, this.format, args); } error(...args) { _ohos_hilog_1.error(this.domain, this.prefix, this.format, args); } } exports["default"] = new Logger('[Sample_StageModel]'); /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ var commonCachedModule = globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] ? globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId]: null; /******/ if (commonCachedModule) { return commonCachedModule.exports; } /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ function isCommonModue(moduleId) { /******/ if (globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"]) { /******/ const length = globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"].length; /******/ switch (length) { /******/ case 1: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId]; /******/ case 2: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId] || /******/ globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][1][1][moduleId]; /******/ } /******/ } /******/ return undefined; /******/ } /******/ if (globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] && String(moduleId).indexOf("?name=") < 0 && isCommonModue(moduleId)) { /******/ globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId] = module; /******/ } /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = __webpack_require__("E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\MainAbility\\MainAbility.ts?entry"); /******/ _1e36f0fd2df677c57b79e15aad3634be = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=MainAbility.js.maponBackgroundonCreatelaunchParam wantonDestroyonForeground'onWindowStageCreatewindowStage)onWindowStageDestroy,,d   ^ , '  : ,,&*p (+L + * J+g +  Ow1__webpack_module_cache__'__webpack_modules__ value_ohos_hilog_1SlotNumber, 7,.7,7,"7,/7,7, 7, 7,7,7j>DpDDa`=aa`=3:a`= >0Ga3436`a`=a`=< a>a`*a` eFDEEEEEaa`a $Q`a ` BM` a #Q 35M` a?a ` Ba `a >a Da`a` 0 ma ` B +a >a ` . a #~? $a >a >&a ` + $Q%ma`B'a ` Ba ` Ba ` BM??$a >a >.a ` + $Q%ma`B/a ` Ba ` Ba ` B!MM` a`a `a >a ` *# a ` *% a ` =>a ` =`a 5'9E a a ` B(*a ` ama ` B*a `C, e.D`DqDD`$Q`a`B$Q`MCa`z`d BDDDEEa`=a`a $Q`a ` BM` a#Q 37M`a?a ` Ba`a >a @a ` a `0 ma ` B +a >!a ` . a#Q]? $a >!a >&a ` + $Qma ` B'a ` B!M/?$a >!a >.a ` + $Qma ` B/a ` B!MM`a`=pa 58A aa `B*a `a`a>a `a >a  8  e.D`DqDD`$Q`a`B$Q`M=a`z`d`D`DqDD`a`abC`a>C)`a>C `a`C)`abC`d@DpDDD`aaaba``B%a``a``a`dDEEE3;aaaama >a ` 7 $Qma >a ` 7 a `a ` 7 Ma`$Q `a ` Bd<a `a ` 7 a`a ' $Q `a ` B d<a `a <a z ` 8 ama >a ` 7 a $Q2?a `a` *a ` B"a >a ` . a b M` $Q+`a `a ` * $Qma >a ` 7 a `a `8! <a `a ` 7# a ` B%a `a ` B'a `a `a ` B)a < a` 1+ `a ` B-d GDDDDa<a`Ba`a`Ba`a`B)a`a ` B a `a `1e GDDDDa<a`Ba`a`Ba`a`B)a`a ` B a `a `1e ?DP`=`=33a`)e GDDDDa<a`B#a`a`Ba`a`B)a`a ` B a `a `1e DDDEma>2a`7$ma>2a`7a`B%a`ab'$Qb'$Q:Nma >2a ` 7 a ba ` 7 aba ` 7 a`a`7dma >2a ` 7 a ba ` 7 a ba ` 7 a`a ` 7a#Q8ma >2a ` 7 a ba ` 7 a ba ` 7 a`a ` 7M`dd EDDD<a>a`a`Ba`B#a<a>a`a>a`/e IDDDDD<a >a  ` a`Ba`B#a<a>a  `a> a `/ e EDDD<a>a`a`Ba`B#a<a>a`a> a`/e EDDD<a>a`a`Ba`B#a<a>a`a> a`/e wDDDD<a>a  `a`Ba`B#a<a>a`a> a`/`a`B-a>(aa`/`a`B ,aa`. e EDDD<a>a`a`Ba`B#a<a>a`a> a`/e GDDDDa<a`B1a`a`Ba`a`B)a`a ` B a `a `1e  > p           /  ?  $z$$)-$8$.         1                      /      k   /            8- # :# Ud{U !T !#!K! 6 6             0   % +8+        1                       /                8-  , 9HQ9 [8yy y   1   % +8+  M   \  \  \  \   ` 8 {  8            /  !    /  k  "   m                  >      N        m   $/$mxmm$, %7  1== Y`YrY~Y  T`  . >F V  ,    ) 6 C,    ) 6 C l       /      ,    ( 5 B    >    / M  l  g ?          !                 Z    u * ,7, #%$$(3(d(g(j(!(3(d(g(j(!,!]!`!c!(!" 3!#     * UV$!#     :!#/!#     z   {  .V(!# !0 ( 7!#,    ( 5 B=>877,9t::&;<\=t>,?PK !:! ets/MainAbility/MainAbility.jsvar _1e36f0fd2df677c57b79e15aad3634be; /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\MainAbility\\MainAbility.ts?entry": /*!**************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\MainAbility\MainAbility.ts?entry ***! \**************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_app_ability_Ability_1 = globalThis.requireNapi('app.ability.Ability') || (isSystemplugin('app.ability.Ability', 'ohos') ? globalThis.ohosplugin.app.ability.Ability : isSystemplugin('app.ability.Ability', 'system') ? globalThis.systemplugin.app.ability.Ability : undefined); const Logger_1 = __importDefault(__webpack_require__(/*! ../util/Logger */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts")); const TAG = 'MainAbility'; class MainAbility extends _ohos_app_ability_Ability_1 { onCreate(want, launchParam) { Logger_1.default.info(TAG, `MainAbility onCreate`); } onWindowStageCreate(windowStage) { // Main window is created, set main page for this ability Logger_1.default.info(TAG, `MainAbility onWindowStageCreate`); windowStage.setUIContent('pages/Index', null); // 设置应用显示在锁屏之上,对应FA模型中AppContext的setShowOnLockScreen接口 windowStage.setShowOnLockScreen(true); } onForeground() { // Ability has brought to foreground Logger_1.default.info(TAG, `MainAbility onForeground`); } onBackground() { // Ability has back to background Logger_1.default.info(TAG, `MainAbility onBackground`); } onWindowStageDestroy() { // Main window is destroyed, release UI related resources Logger_1.default.info(TAG, `MainAbility onWindowStageDestroy`); } onDestroy() { Logger_1.default.info(TAG, `MainAbility onDestroy`); } } globalThis.exports.default = MainAbility; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts": /*!********************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\util\Logger.ts ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_hilog_1 = globalThis.requireNapi('hilog') || (isSystemplugin('hilog', 'ohos') ? globalThis.ohosplugin.hilog : isSystemplugin('hilog', 'system') ? globalThis.systemplugin.hilog : undefined); class Logger { constructor(prefix) { this.domain = 0xFF00; this.prefix = ''; this.format = '%{public}s, %{public}s'; this.prefix = prefix; this.domain = 0xFF00; } debug(...args) { _ohos_hilog_1.debug(this.domain, this.prefix, this.format, args); } info(...args) { _ohos_hilog_1.info(this.domain, this.prefix, this.format, args); } warn(...args) { _ohos_hilog_1.warn(this.domain, this.prefix, this.format, args); } error(...args) { _ohos_hilog_1.error(this.domain, this.prefix, this.format, args); } } exports["default"] = new Logger('[Sample_StageModel]'); /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ var commonCachedModule = globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] ? globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId]: null; /******/ if (commonCachedModule) { return commonCachedModule.exports; } /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ function isCommonModue(moduleId) { /******/ if (globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"]) { /******/ const length = globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"].length; /******/ switch (length) { /******/ case 1: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId]; /******/ case 2: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId] || /******/ globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][1][1][moduleId]; /******/ } /******/ } /******/ return undefined; /******/ } /******/ if (globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] && String(moduleId).indexOf("?name=") < 0 && isCommonModue(moduleId)) { /******/ globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId] = module; /******/ } /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = __webpack_require__("E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\MainAbility\\MainAbility.ts?entry"); /******/ _1e36f0fd2df677c57b79e15aad3634be = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=MainAbility.js.mapPK !:yS"ets/MainAbility/MainAbility.js.map{"version":3,"file":"./MainAbility/MainAbility.js","mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;GAaG;;;;;AAEH,0FAA+C;AAC/C,2LAAmC;AAEnC,MAAM,GAAG,GAAG,aAAa;AAEzB,MAAqB,WAAY,SAAQ;IACvC,QAAQ,CAAC,IAAI,EAAE,WAAW;QACxB,gBAAM,CAAC,IAAI,CAAC,GAAG,EAAE,sBAAsB,CAAC;IAC1C,CAAC;IAED,mBAAmB,CAAC,WAAW;QAC7B,yDAAyD;QACzD,gBAAM,CAAC,IAAI,CAAC,GAAG,EAAE,iCAAiC,CAAC;QACnD,WAAW,CAAC,YAAY,CAAC,aAAa,EAAE,IAAI,CAAC;QAC7C,sDAAsD;QACtD,WAAW,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;IACxC,CAAC;IAED,YAAY;QACV,oCAAoC;QACpC,gBAAM,CAAC,IAAI,CAAC,GAAG,EAAE,0BAA0B,CAAC;IAC9C,CAAC;IAED,YAAY;QACV,iCAAiC;QACjC,gBAAM,CAAC,IAAI,CAAC,GAAG,EAAE,0BAA0B,CAAC;IAC9C,CAAC;IAED,oBAAoB;QAClB,yDAAyD;QACzD,gBAAM,CAAC,IAAI,CAAC,GAAG,EAAE,kCAAkC,CAAC;IACtD,CAAC;IAED,SAAS;QACP,gBAAM,CAAC,IAAI,CAAC,GAAG,EAAE,uBAAuB,CAAC;IAC3C,CAAC;CACF;AA/BD,8BA+BC;;;;;;;;;;;;ACnDD;;;;;;;;;;;;;GAaG;;;;;AAEH,8DAA+B;AAE/B,MAAM,MAAM;IAKV,YAAY,MAAc;QAJlB,WAAM,GAAW,MAAM;QACvB,WAAM,GAAW,EAAE;QACnB,WAAM,GAAW,wBAAwB;QAG/C,IAAI,CAAC,MAAM,GAAG,MAAM;QACpB,IAAI,CAAC,MAAM,GAAG,MAAM;IACtB,CAAC;IAED,KAAK,CAAC,GAAG,IAAW;QAClB,qBAAK,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM;IACnD,CAAC;IAED,IAAI,CAAC,GAAG,IAAW;QACjB,qBAAK,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM;IAClD,CAAC;IAED,IAAI,CAAC,GAAG,IAAW;QACjB,qBAAK,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM;IAClD,CAAC;IAED,KAAK,CAAC,GAAG,IAAW;QAClB,qBAAK,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM;IACnD,CAAC;CACF;AAED,qBAAe,IAAI,MAAM,CAAC,qBAAqB,CAAC;;;;;;;UC5ChD;UACA;;UAEA;UACA;UACA;UACA,2BAA2B;UAC3B;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;UACA;;;;UEvCA;UACA;UACA;UACA","sources":["webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\MainAbility\\MainAbility.ts","webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts","webpack:///webpack/bootstrap","webpack:///webpack/before-startup","webpack:///webpack/startup","webpack:///webpack/after-startup"],"names":[],"sourceRoot":""}PK !:_XhQhQ+ets/ServiceExtAbility/ServiceExtAbility.abcPANDAаhQh<$QLh7A6,655H55Z555 5}444!664r4hhQeTT7} -*4U]k~"3<INsy&4IO[o 8DQZ_go}Lh ` p 9 r4}4444 5H5Z5555556!6,6A6 $ 2 H X4'L_ESTypeAnnotation;-%{public}s, %{public}s .#1# .#2# .#3# .#4# .#5# .#6#1.FirstServiceAbilityStub.Logger%.ServiceExtAbility).__webpack_require__.isCommonModue ?name=ContentTypeE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\ServiceExtAbility\ServiceExtAbility.ts?entryE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\util\Logger.ts/FirstServiceAbilityStubLogger_1?NOTIFICATION_CONTENT_BASIC_TEXT ObjectRemoteObject#ServiceExtAbility/ServiceExtensionAbility StringTAG'[Sample_StageModel]C_1e36f0fd2df677c57b79e15aad3634beq__common_module_cache___1e36f0fd2df677c57b79e15aad3634be__esModule__importDefaultabilityabilityNameappGapp.ability.ServiceExtensionAbility callcontentcontentType debugdefaultdefineProperty domain errorexports+first ts service stub format hilogindexOf infoisInsertisSystemplugin length normalnotification'notificationRequest ohosohosplugin%onConnect , want: !onCreate, want: onDestroy)onDisconnect, want: 'onReconnect, want: /onRemoteRequest calledt#onRequest, want: parameters%parameters, want: prefixprototypepublish/publishCallback successreadStringrequireNapiresult=rpc string systemsystemplugin text then)unknown request codeuse strict warn[webpackChunk_1e36f0fd2df677c57b79e15aad3634bewriteString3L_ESSlotNumberAnnotation;@'L_ESTypeInfoRecord;#1#L_GLOBAL;2n7~E6 7F6( : H66 :ZH6; #;H7L E<I6p?L-7DP-7>6L-7?jL-7@ <jJ-733ANT73@>NG7AN6^4DPa7 L?L 74BO-744B$O-7\ ?M:7#4BPa7k=J6 `=K7w<I64funcObjany0newTarget'__webpack_exports__ 0thisE:/Projects/DevEco/applications_app_samples/ability/StageModel/entry/build/default/intermediates/assets_jsbundle/default/ets/ServiceExtAbility/ServiceExtAbility_.js#2#4newTarget this'__webpack_require___ohos_rpc_1W_ohos_app_ability_ServiceExtensionAbility_1/__unused_webpack_module#3#mod#4##5# Logger#6#des argsisCommonModue modulecachedModule%commonCachedModulemoduleIdfunc_main_0var _1e36f0fd2df677c57b79e15aad3634be; /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\ServiceExtAbility\\ServiceExtAbility.ts?entry": /*!**************************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\ServiceExtAbility\ServiceExtAbility.ts?entry ***! \**************************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_app_ability_ServiceExtensionAbility_1 = globalThis.requireNapi('app.ability.ServiceExtensionAbility') || (isSystemplugin('app.ability.ServiceExtensionAbility', 'ohos') ? globalThis.ohosplugin.app.ability.ServiceExtensionAbility : isSystemplugin('app.ability.ServiceExtensionAbility', 'system') ? globalThis.systemplugin.app.ability.ServiceExtensionAbility : undefined); var _ohos_notification_1 = globalThis.requireNapi('notification') || (isSystemplugin('notification', 'ohos') ? globalThis.ohosplugin.notification : isSystemplugin('notification', 'system') ? globalThis.systemplugin.notification : undefined); var _ohos_rpc_1 = globalThis.requireNapi('rpc') || (isSystemplugin('rpc', 'ohos') ? globalThis.ohosplugin.rpc : isSystemplugin('rpc', 'system') ? globalThis.systemplugin.rpc : undefined); const Logger_1 = __importDefault(__webpack_require__(/*! ../util/Logger */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts")); const TAG = 'ServiceExtAbility'; let notificationRequest = { content: { contentType: _ohos_notification_1.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT, normal: { title: 'data insert', text: '' } }, id: 1 //ID of the notification request }; class FirstServiceAbilityStub extends _ohos_rpc_1.RemoteObject { constructor(des) { if (typeof des === 'string') { super(des); } else { return; } } onRemoteRequest(code, data, reply, option) { Logger_1.default.info(TAG, `onRemoteRequest calledt`); if (code === 1) { let result = data.readString(); Logger_1.default.info(TAG, `result=${result}`); reply.writeString(result); } else { Logger_1.default.info(TAG, `unknown request code`); } return true; } } class ServiceExtAbility extends _ohos_app_ability_ServiceExtensionAbility_1 { onCreate(want) { Logger_1.default.info(TAG, `onCreate, want: ${want.abilityName}`); Logger_1.default.info(TAG, `parameters, want: ${want.parameters}`); } onRequest(want, startId) { Logger_1.default.info(TAG, `onRequest, want: ${want.abilityName}`); notificationRequest.content.normal.text = want.parameters.isInsert; _ohos_notification_1.publish(notificationRequest).then(() => { Logger_1.default.info(TAG, `publishCallback success`); }); } //用于和客户端进行通信 onConnect(want) { Logger_1.default.info(TAG, `onConnect , want: ${want.abilityName}`); return new FirstServiceAbilityStub('first ts service stub'); } //当新客户端在所有以前的客户端连接之后尝试连接到服务扩展时调用 onReconnect(want) { Logger_1.default.info(TAG, `onReconnect, want: ${want.abilityName}`); } //断开服务连接时回调 onDisconnect(want) { Logger_1.default.info(TAG, `onDisconnect, want: ${want.abilityName}`); } onDestroy() { Logger_1.default.info(TAG, `onDestroy`); } } globalThis.exports.default = ServiceExtAbility; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts": /*!********************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\util\Logger.ts ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_hilog_1 = globalThis.requireNapi('hilog') || (isSystemplugin('hilog', 'ohos') ? globalThis.ohosplugin.hilog : isSystemplugin('hilog', 'system') ? globalThis.systemplugin.hilog : undefined); class Logger { constructor(prefix) { this.domain = 0xFF00; this.prefix = ''; this.format = '%{public}s, %{public}s'; this.prefix = prefix; this.domain = 0xFF00; } debug(...args) { _ohos_hilog_1.debug(this.domain, this.prefix, this.format, args); } info(...args) { _ohos_hilog_1.info(this.domain, this.prefix, this.format, args); } warn(...args) { _ohos_hilog_1.warn(this.domain, this.prefix, this.format, args); } error(...args) { _ohos_hilog_1.error(this.domain, this.prefix, this.format, args); } } exports["default"] = new Logger('[Sample_StageModel]'); /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ var commonCachedModule = globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] ? globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId]: null; /******/ if (commonCachedModule) { return commonCachedModule.exports; } /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ function isCommonModue(moduleId) { /******/ if (globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"]) { /******/ const length = globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"].length; /******/ switch (length) { /******/ case 1: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId]; /******/ case 2: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId] || /******/ globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][1][1][moduleId]; /******/ } /******/ } /******/ return undefined; /******/ } /******/ if (globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] && String(moduleId).indexOf("?name=") < 0 && isCommonModue(moduleId)) { /******/ globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId] = module; /******/ } /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = __webpack_require__("E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\ServiceExtAbility\\ServiceExtAbility.ts?entry"); /******/ _1e36f0fd2df677c57b79e15aad3634be = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=ServiceExtAbility.js.maponConnect wantonCreateonDisconnectonReconnectonRemoteRequest reply data code option resultonRequeststartIdS6Z6}}#4U &3{ ^4 3 4 4  *4g6-}66    6*   E 6   6y6 titledata insert)_ohos_notification_11__webpack_module_cache__'__webpack_modules__ value_ohos_hilog_1idSlotNumber6 76d767676"76/7676 76 76 76767j[DpDDa`=aa`=3Ra`= >EZa3J3M`a`=a`=< a>a`*a` eYEEEEEEaaa a ` =0`a $Q`a ` BM` a #Q 3KM` a ? a ` Ba `a >aba`a` 0 ma ` B <a >a` . a #~? 'a >a >,a` + $Q%ma`B-a`Ba ` Ba ` B M??'a >a >@a` + $Q%ma`BAa`Ba ` Ba ` B! MM` ama ` B#<a >*a` .% a #Q]?''a >*a >,a` +( $Qma ` B*-a ` B,*M/?.'a >*a >@a` +/ $Qma ` B1Aa ` B3*MM` a ` =0ma ` B5<a >>a` .7 a #Q]?9'a >>a >,a` +: $Qma ` B<-a ` B>>M/?@'a >>a >@a` +A $Qma ` BCAa ` BE>MM` a` a `a >a ` *G a ` *I a ` => a ` =Kca Lda <0a`BMa ` BOzQ SVa ` zT) ` zV ` a ` = `a`BX a 5ZOW a a ` B[8a` a ` =@`a 5]QX a a ` B^8a` ama ` B` a `Cb e.D`DqDD`$Q`a`B$Q`Maa`z`d EDDD<a>a`a`Ba`B%a<a>a`a>:a`/e _DDDEEa`=a`a $Q`a ` BM` a#Q 3NM`a? a ` Ba`a >a ]a ` a `0 ma ` B <a >#a ` . a#Q]? 'a >#a >,a ` + $Qma ` B-a ` B#M/?'a >#a >@a ` + $Qma ` BAa ` B#MM`a`=pa 5P^ aa `B8a `a`a>a `a >a  8  e.D`DqDD`$Q`a`B$Q`MUa`z`d=D`DqDD`a`a>?($Q`a2a``aM `d`d`D`DqDD`a`abC`a>C7`a>C"`a`C7`abC`d@DpDDD`aaaba``B(a``a``a`dDEEE3Saaaama >a ` 7 $Qma >a ` 7 a `a ` 7 Ma`$Q `a ` B d<a `a ` 7 a`a ' $Q `a ` B d<a `a Ta z ` 8 ama >a ` 7 a $Q2? a `a` *a ` B$a >a ` . a b M` $Q+`a `a ` * $Qma >a ` 7 a `a `8! <a `a ` 7# a ` B%a `a ` B' a `a `a ` B) a < a` 1+ `a ` B- d GDDDDa<a`Ba`a`Ba`a`B7a`a ` B"a `a `1e GDDDDa<a`Ba`a`Ba`a`B7a`a ` B"a `a `1e \DP`=`=3Ia`)e GDDDDa<a`B%a`a`Ba`a`B7a`a ` B"a `a `1e DDDEma>Ga`7$ma>Ga`7a`B(a`ab'$Qb'$Q:Nma >Ga ` 7 a ba ` 7 aba ` 7 a`a`7dma >Ga ` 7 a ba ` 7 a ba ` 7 a`a ` 7a#Q8ma >Ga ` 7 a ba ` 7 a ba ` 7 a`a ` 7M`dd xDDDD<a>a  `a`Ba`B%a<a>a`a>.a`a ` B a> a`/<@a>a`a>!a d DDDD<a>a  `a`Ba`B%a<a>a`a>/a`a ` B a> a`/<a>a  `a`B a`B %a<a>a`a>6a`a ` B5 a> a`/e EDDD<a>a`a`Ba`B%a<a>a`a>0a`/e ^DDDD<a>a  `a`Ba`B%a<a>a`a>1a`a ` B a> a`/e ^DDDD<a>a  `a`Ba`B%a<a>a`a>2a`a ` B a> a`/eDDEEEEE<a >a  ` a ` Ba ` B%a<a >a  ` a >3a `/ `ab(${`a ` B;a ` - a<a >a  ` a ` B a ` B %a <a >a  ` a >=a `  a >  a ` / `a ` BHa `a ` . M@<a >a  ` a ` Ba ` B%a<a >a  ` a >Da `/ d `D` =`=DE<a >a  ` a`Ba`B%a<a>a  `a>4a `a ` B  a >  a `/ +a  ` a`B a`B )a`a`B5a`B&CB<1a ` B9a+a  ` a `. a`BCa3La`.e GDDDDa<a`BFa`a`Ba`a`B7a`a ` B"a `a `1e  > p           /  ?  $z$$)-$8$.          1                      /                  k                  /      k  k k k  ] x   8                   8- 3 J3 uu !t !3 3 GVfG pF  * 5DK5 U4qq q!K!    & ? ?  L L             0   % +8+      !"'         1                       /                8-  , 9HQ9 [8yy y   1   % +8+  M    k   `  \ 1/   { {  M   \  \  \  \   ` 8{  8            /  !    /  k  "   m                  >      N        m   $/$mxmm$, %7  1== Y`YrY~Y  T`  . >F V   ,    ) 6 C,    ) 6 C l       /      ,    ( 5 B    >    / M  l  g ?          !                 Z    u * ,7, #%$$(3(d(g(j(!(3(d(g(j(!,!]!`!c!(!"          z     8g!#8I#I#+          z        ?g!#6G#G#!#8H#H#!#/g!#:K#K#          /g!#9J#J#     z   >  /         z  1   {  dhhhh8!#  h !"'18'8'  !"'           z  \    5gh!#7H#H#!2 %?,    ( 5 BLGAH[OAEEHI3JJJLM N~NOPPK !:!='='*ets/ServiceExtAbility/ServiceExtAbility.jsvar _1e36f0fd2df677c57b79e15aad3634be; /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\ServiceExtAbility\\ServiceExtAbility.ts?entry": /*!**************************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\ServiceExtAbility\ServiceExtAbility.ts?entry ***! \**************************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_app_ability_ServiceExtensionAbility_1 = globalThis.requireNapi('app.ability.ServiceExtensionAbility') || (isSystemplugin('app.ability.ServiceExtensionAbility', 'ohos') ? globalThis.ohosplugin.app.ability.ServiceExtensionAbility : isSystemplugin('app.ability.ServiceExtensionAbility', 'system') ? globalThis.systemplugin.app.ability.ServiceExtensionAbility : undefined); var _ohos_notification_1 = globalThis.requireNapi('notification') || (isSystemplugin('notification', 'ohos') ? globalThis.ohosplugin.notification : isSystemplugin('notification', 'system') ? globalThis.systemplugin.notification : undefined); var _ohos_rpc_1 = globalThis.requireNapi('rpc') || (isSystemplugin('rpc', 'ohos') ? globalThis.ohosplugin.rpc : isSystemplugin('rpc', 'system') ? globalThis.systemplugin.rpc : undefined); const Logger_1 = __importDefault(__webpack_require__(/*! ../util/Logger */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts")); const TAG = 'ServiceExtAbility'; let notificationRequest = { content: { contentType: _ohos_notification_1.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT, normal: { title: 'data insert', text: '' } }, id: 1 //ID of the notification request }; class FirstServiceAbilityStub extends _ohos_rpc_1.RemoteObject { constructor(des) { if (typeof des === 'string') { super(des); } else { return; } } onRemoteRequest(code, data, reply, option) { Logger_1.default.info(TAG, `onRemoteRequest calledt`); if (code === 1) { let result = data.readString(); Logger_1.default.info(TAG, `result=${result}`); reply.writeString(result); } else { Logger_1.default.info(TAG, `unknown request code`); } return true; } } class ServiceExtAbility extends _ohos_app_ability_ServiceExtensionAbility_1 { onCreate(want) { Logger_1.default.info(TAG, `onCreate, want: ${want.abilityName}`); Logger_1.default.info(TAG, `parameters, want: ${want.parameters}`); } onRequest(want, startId) { Logger_1.default.info(TAG, `onRequest, want: ${want.abilityName}`); notificationRequest.content.normal.text = want.parameters.isInsert; _ohos_notification_1.publish(notificationRequest).then(() => { Logger_1.default.info(TAG, `publishCallback success`); }); } //用于和客户端进行通信 onConnect(want) { Logger_1.default.info(TAG, `onConnect , want: ${want.abilityName}`); return new FirstServiceAbilityStub('first ts service stub'); } //当新客户端在所有以前的客户端连接之后尝试连接到服务扩展时调用 onReconnect(want) { Logger_1.default.info(TAG, `onReconnect, want: ${want.abilityName}`); } //断开服务连接时回调 onDisconnect(want) { Logger_1.default.info(TAG, `onDisconnect, want: ${want.abilityName}`); } onDestroy() { Logger_1.default.info(TAG, `onDestroy`); } } globalThis.exports.default = ServiceExtAbility; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts": /*!********************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\util\Logger.ts ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_hilog_1 = globalThis.requireNapi('hilog') || (isSystemplugin('hilog', 'ohos') ? globalThis.ohosplugin.hilog : isSystemplugin('hilog', 'system') ? globalThis.systemplugin.hilog : undefined); class Logger { constructor(prefix) { this.domain = 0xFF00; this.prefix = ''; this.format = '%{public}s, %{public}s'; this.prefix = prefix; this.domain = 0xFF00; } debug(...args) { _ohos_hilog_1.debug(this.domain, this.prefix, this.format, args); } info(...args) { _ohos_hilog_1.info(this.domain, this.prefix, this.format, args); } warn(...args) { _ohos_hilog_1.warn(this.domain, this.prefix, this.format, args); } error(...args) { _ohos_hilog_1.error(this.domain, this.prefix, this.format, args); } } exports["default"] = new Logger('[Sample_StageModel]'); /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ var commonCachedModule = globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] ? globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId]: null; /******/ if (commonCachedModule) { return commonCachedModule.exports; } /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ function isCommonModue(moduleId) { /******/ if (globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"]) { /******/ const length = globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"].length; /******/ switch (length) { /******/ case 1: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId]; /******/ case 2: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId] || /******/ globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][1][1][moduleId]; /******/ } /******/ } /******/ return undefined; /******/ } /******/ if (globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] && String(moduleId).indexOf("?name=") < 0 && isCommonModue(moduleId)) { /******/ globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId] = module; /******/ } /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = __webpack_require__("E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\ServiceExtAbility\\ServiceExtAbility.ts?entry"); /******/ _1e36f0fd2df677c57b79e15aad3634be = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=ServiceExtAbility.js.mapPK !:m&{ .ets/ServiceExtAbility/ServiceExtAbility.js.map{"version":3,"file":"./ServiceExtAbility/ServiceExtAbility.js","mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;GAaG;;;;;AAEH,0HAAiE;AACjE,4EAA6C;AAC7C,0DAA2B;AAC3B,2LAAmC;AAEnC,MAAM,GAAG,GAAW,mBAAmB;AACvC,IAAI,mBAAmB,GAAG;IACxB,OAAO,EAAE;QACP,WAAW,EAAE,4BAAY,CAAC,WAAW,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CAAC,MAAM,EAAE,IAAI,CAAC,MAAM;IAClD,CAAC;IAED,KAAK,CAAC,GAAG,IAAW;QAClB,qBAAK,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM;IACnD,CAAC;CACF;AAED,qBAAe,IAAI,MAAM,CAAC,qBAAqB,CAAC;;;;;;;UC5ChD;UACA;;UAEA;UACA;UACA;UACA,2BAA2B;UAC3B;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;UACA;;;;UEvCA;UACA;UACA;UACA","sources":["webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\ServiceExtAbility\\ServiceExtAbility.ts","webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts","webpack:///webpack/bootstrap","webpack:///webpack/before-startup","webpack:///webpack/startup","webpack:///webpack/after-startup"],"names":[],"sourceRoot":""}PK !:-KKets/TestAbility/TestAbility.abcPANDA"3K@<KL@l3Z3'322223v21;21O3D311@K]00UWi)16K\(/8HPW`hox~\)4<JV\">Zv k 1111;2v222223'3D3O3Z3l3~ 'L_ESTypeAnnotation;-%{public}s, %{public}s .#1# .#2# .#3# .#4# .#5# .#6# .#7#.Logger.TestAbility).__webpack_require__.isCommonModue ?name=AbilityContentTypeE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\TestAbility\TestAbility.ts?entryE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\util\Logger.ts JSONLogger_1?NOTIFICATION_CONTENT_BASIC_TEXT ObjectESecondAbility_onCreate_CommonEvent StringTAG'[Sample_StageModel][SecondAbility]C_1e36f0fd2df677c57b79e15aad3634beq__common_module_cache___1e36f0fd2df677c57b79e15aad3634be__esModule__importDefaultabilityapp'app.ability.Ability call codecommonEventcontentcontentType debugdefaultdefineProperty domain errorexports format hilogindexOf infoisSystemplugin length normalnotification ohosohospluginonBackground'onCreate, want is: onDestroyonForeground'onWindowStageCreateonWindowStageCreate commonEvent publish SecondAbility_onCreate_CommonEventconWindowStageCreate notification publish failed: eonWindowStageCreate notification publish success: )onWindowStageDestroypages/TestPage prefixprototypepublishrequestrequireNapisetUIContentstringify systemsystempluginuse strict warn[webpackChunk_1e36f0fd2df677c57b79e15aad3634be3L_ESSlotNumberAnnotation;@'L_ESTypeInfoRecord;#1#L_GLOBAL;4DA4 5yB4 7C+4 7D84 E8qDE4 9?ER4 ::E+4x$=Hy4V@MKy4(j<Hy4P<CHy4 l:CFy41>I84q?J84 o=iI44 ;]G_4?J4s@&K844funcObjany0newTarget'__webpack_exports__ 0thisE:/Projects/DevEco/applications_app_samples/ability/StageModel/entry/build/default/intermediates/assets_jsbundle/default/ets/TestAbility/TestAbility_.js#2#4newTarget this'__webpack_require__'windowCreateContent7_ohos_app_ability_Ability_1TestAbility/__unused_webpack_module#3#mod#4##5#err data#6# Logger#7# argsisCommonModue modulecachedModule%commonCachedModulemoduleIdfunc_main_0var _1e36f0fd2df677c57b79e15aad3634be; /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\TestAbility\\TestAbility.ts?entry": /*!**************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\TestAbility\TestAbility.ts?entry ***! \**************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_app_ability_Ability_1 = globalThis.requireNapi('app.ability.Ability') || (isSystemplugin('app.ability.Ability', 'ohos') ? globalThis.ohosplugin.app.ability.Ability : isSystemplugin('app.ability.Ability', 'system') ? globalThis.systemplugin.app.ability.Ability : undefined); var _ohos_commonEvent_1 = globalThis.requireNapi('commonEvent') || (isSystemplugin('commonEvent', 'ohos') ? globalThis.ohosplugin.commonEvent : isSystemplugin('commonEvent', 'system') ? globalThis.systemplugin.commonEvent : undefined); var _ohos_notification_1 = globalThis.requireNapi('notification') || (isSystemplugin('notification', 'ohos') ? globalThis.ohosplugin.notification : isSystemplugin('notification', 'system') ? globalThis.systemplugin.notification : undefined); const Logger_1 = __importDefault(__webpack_require__(/*! ../util/Logger */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts")); const TAG = '[SecondAbility]'; const windowCreateContent = { contentType: _ohos_notification_1.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT, normal: { text: 'onWindowStageCreate', title: 'TestAbility' } }; let request = { id: 3, content: windowCreateContent }; class TestAbility extends _ohos_app_ability_Ability_1 { onCreate(want, launchParam) { Logger_1.default.info(TAG, `onCreate, want is: ${JSON.stringify(want)}`); } onWindowStageCreate(windowStage) { // Main window is created, set main page for this ability Logger_1.default.info(TAG, 'onWindowStageCreate'); _ohos_commonEvent_1.publish('SecondAbility_onCreate_CommonEvent', () => { Logger_1.default.info(TAG, `onWindowStageCreate commonEvent publish SecondAbility_onCreate_CommonEvent`); }); _ohos_notification_1.publish(request, (err, data) => { if (err) { Logger_1.default.error(TAG, `onWindowStageCreate notification publish failed: ${err.code}`); return; } else { Logger_1.default.info(TAG, `onWindowStageCreate notification publish success: ${JSON.stringify(data)}`); } }); windowStage.setUIContent('pages/TestPage', null); } onForeground() { // Ability has brought to foreground Logger_1.default.info(TAG, 'onForeground'); } onBackground() { // Ability has back to background Logger_1.default.info(TAG, 'onBackground'); } onWindowStageDestroy() { // Main window is destroyed, release UI related resources Logger_1.default.info(TAG, 'onWindowStageDestroy'); } onDestroy() { Logger_1.default.info(TAG, 'onDestroy'); } } globalThis.exports.default = TestAbility; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts": /*!********************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\util\Logger.ts ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_hilog_1 = globalThis.requireNapi('hilog') || (isSystemplugin('hilog', 'ohos') ? globalThis.ohosplugin.hilog : isSystemplugin('hilog', 'system') ? globalThis.systemplugin.hilog : undefined); class Logger { constructor(prefix) { this.domain = 0xFF00; this.prefix = ''; this.format = '%{public}s, %{public}s'; this.prefix = prefix; this.domain = 0xFF00; } debug(...args) { _ohos_hilog_1.debug(this.domain, this.prefix, this.format, args); } info(...args) { _ohos_hilog_1.info(this.domain, this.prefix, this.format, args); } warn(...args) { _ohos_hilog_1.warn(this.domain, this.prefix, this.format, args); } error(...args) { _ohos_hilog_1.error(this.domain, this.prefix, this.format, args); } } exports["default"] = new Logger('[Sample_StageModel]'); /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ var commonCachedModule = globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] ? globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId]: null; /******/ if (commonCachedModule) { return commonCachedModule.exports; } /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ function isCommonModue(moduleId) { /******/ if (globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"]) { /******/ const length = globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"].length; /******/ switch (length) { /******/ case 1: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId]; /******/ case 2: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId] || /******/ globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][1][1][moduleId]; /******/ } /******/ } /******/ return undefined; /******/ } /******/ if (globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] && String(moduleId).indexOf("?name=") < 0 && isCommonModue(moduleId)) { /******/ globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId] = module; /******/ } /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = __webpack_require__("E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\TestAbility\\TestAbility.ts?entry"); /******/ _1e36f0fd2df677c57b79e15aad3634be = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=TestAbility.js.maponCreatelaunchParam wantwindowStageW/3&15    , P 133i334  " . 3( x V P 3 " . /333{ id'_ohos_commonEvent_1)_ohos_notification_11__webpack_module_cache__'__webpack_modules__ value_ohos_hilog_1 text titleSlotNumber4 74_74747474"74/7474 74 74 747jSDpDDa`=aa`=3Ka`= >?Ra3C3G`a`=a`=< a>a`*a` eQEEEEEEa ` = a ` =0aa`a $Q`a ` BM` a #Q 3DM` a? a ` Ba `a >aZa`a` 0 ma ` B :a >a` . a #~? &a >a >*a` + $Q%ma`B+a`Ba ` Ba ` BM??&a >a >=a` + $Q%ma`B>a`Ba ` Ba ` B!MM` ama ` B#:a >a` .% a #Q]?'&a >a >*a` +( $Qma ` B*+a ` B,M/?.&a >a >=a` +/ $Qma ` B1>a ` B3MM` a ` = ma ` B5:a >)a` .7 a #Q]?9&a >)a >*a` +: $Qma ` B<+a ` B>)M/?@&a >)a >=a` +A $Qma ` BC>a ` BE)MM` a ` =0`a `a >a ` *G a ` *I a ` =>a ` =K[a <0a ` BLa ` BN zP R\a ` zS( ` aUOa `zV ` a ` =@`a 5XJP a a ` BY7a` a ma ` B[!a ` C] e.D`DqDD`$Q`a`B$Q`MYa`z`d EDDD<a>a`a`Ba`B%a<a> a`a>1a`/e DDDEE`$Q[<a >a  ` a`Ba`B a<a> a  `a>2a `a ` B  a >  a `/ eMe<a >a  ` a`B a`B %a<a> a  `a>3a ?a ` B<a `a ` .  a >  a `/ e WDDDEEa`=a`a $Q`a ` BM` a#Q 3HM`a? a ` Ba`a >a Ua ` a `0 ma ` B :a >#a ` . a#Q]? &a >#a >*a ` + $Qma ` B+a ` B#M/?&a >#a >=a ` + $Qma ` B>a ` B#MM`a`=pa 5IV aa `B7a `a`a>a `a >a  8  e.D`DqDD`$Q`a`B$Q`MNa`z`d`D`DqDD`a`abC`a>C6`a>C"`a`C6`abC`d@DpDDD`aaaba``B'a``a``a`dDEEE3Laaaama >a ` 7 $Qma >a ` 7 a `a ` 7 Ma`$Q `a ` B!d<a `a ` 7 a`a ' $Q `a ` B !d<a `a Ma z! ` 8 ama >a ` 7 a $Q2? a `a` *a ` B$a >a ` . a b M` $Q+`a `a ` * $Qma >a ` 7 a `a `8! <a `a ` 7# a ` B%a `a ` B'!a `a `a ` B)!a < a` 1+ `a ` B-!d GDDDDa<a`Ba`a`Ba`a`B6a`a ` B"a `a `1e GDDDDa<a`B a`a`Ba`a`B6a`a ` B"a `a `1e TDP`=`=3Ba`)e GDDDDa<a`B%a`a`Ba`a`B6a`a ` B"a `a `1e DDDEma>Aa`7$ma>Aa`7a`B'a`ab'$Qb'$Q:Nma >Aa ` 7 a ba ` 7 aba ` 7 a`a`7dma >Aa ` 7 a ba ` 7 a ba ` 7 a`a ` 7a#Q8ma >Aa ` 7 a ba ` 7 a ba ` 7 a`a ` 7M`dd EDDD<a>a`a`Ba`B%a<a> a`a>,a`/e pDDDEE<a >a  ` a`Ba`B%a<a> a  `a>-a ?a ` B<a `a ` . a > a `/  e EDDD<a>a`a`Ba`B%a<a> a`a>.a`/e EDDD<a>a`a`Ba`B%a<a> a`a>/a`/e XD` =` =D<a>a  `a`Ba`B%a<a> a`a>0a`/ a3Ea`/ <1a`B 8a9a`a3 Fa`/`a`B;a>5aa`/e EDDD<a>a`a`Ba`B%a<a> a`a>4a`/e GDDDDa<a`B@a`a`Ba`a`B6a`a ` B"a `a `1e  > p           /  ?  $z$$)-$8$.          1                      /                  k                  k      k  k k  ]  5 l ,   2             8- # :# Ud{U !T !# 2 ETcE mD  3 GVfG pF !K!   6 6 %            0   % +8+     7 !"'   \        zO           K :!',`i,i,!&+`o` u+u+{         1                       /                8-  , 9HQ9 [8yy y   1   % +8+  M   \  \  \  \   ` 8 {  8            /  !    /  k  "   m                  >      N        m   $/$mxmm$, %7  1== Y`YrY~Y  T`  . >F V   ,    ) 6 C,    ) 6 C l       /      ,    ( 5 B    >    / M  l  g ?          !                 Z    u * ,7, #%$$(3(d(g(j(!(3(d(g(j(!,!]!`!c!(!" !#            8 cc1!#9H9 N#N# !#!#     z   |      *c5!# $J %. !3 !#,    ( 5 BCHCAA+DD FFFwHH JJPK !:h\U%U%ets/TestAbility/TestAbility.jsvar _1e36f0fd2df677c57b79e15aad3634be; /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\TestAbility\\TestAbility.ts?entry": /*!**************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\TestAbility\TestAbility.ts?entry ***! \**************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_app_ability_Ability_1 = globalThis.requireNapi('app.ability.Ability') || (isSystemplugin('app.ability.Ability', 'ohos') ? globalThis.ohosplugin.app.ability.Ability : isSystemplugin('app.ability.Ability', 'system') ? globalThis.systemplugin.app.ability.Ability : undefined); var _ohos_commonEvent_1 = globalThis.requireNapi('commonEvent') || (isSystemplugin('commonEvent', 'ohos') ? globalThis.ohosplugin.commonEvent : isSystemplugin('commonEvent', 'system') ? globalThis.systemplugin.commonEvent : undefined); var _ohos_notification_1 = globalThis.requireNapi('notification') || (isSystemplugin('notification', 'ohos') ? globalThis.ohosplugin.notification : isSystemplugin('notification', 'system') ? globalThis.systemplugin.notification : undefined); const Logger_1 = __importDefault(__webpack_require__(/*! ../util/Logger */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts")); const TAG = '[SecondAbility]'; const windowCreateContent = { contentType: _ohos_notification_1.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT, normal: { text: 'onWindowStageCreate', title: 'TestAbility' } }; let request = { id: 3, content: windowCreateContent }; class TestAbility extends _ohos_app_ability_Ability_1 { onCreate(want, launchParam) { Logger_1.default.info(TAG, `onCreate, want is: ${JSON.stringify(want)}`); } onWindowStageCreate(windowStage) { // Main window is created, set main page for this ability Logger_1.default.info(TAG, 'onWindowStageCreate'); _ohos_commonEvent_1.publish('SecondAbility_onCreate_CommonEvent', () => { Logger_1.default.info(TAG, `onWindowStageCreate commonEvent publish SecondAbility_onCreate_CommonEvent`); }); _ohos_notification_1.publish(request, (err, data) => { if (err) { Logger_1.default.error(TAG, `onWindowStageCreate notification publish failed: ${err.code}`); return; } else { Logger_1.default.info(TAG, `onWindowStageCreate notification publish success: ${JSON.stringify(data)}`); } }); windowStage.setUIContent('pages/TestPage', null); } onForeground() { // Ability has brought to foreground Logger_1.default.info(TAG, 'onForeground'); } onBackground() { // Ability has back to background Logger_1.default.info(TAG, 'onBackground'); } onWindowStageDestroy() { // Main window is destroyed, release UI related resources Logger_1.default.info(TAG, 'onWindowStageDestroy'); } onDestroy() { Logger_1.default.info(TAG, 'onDestroy'); } } globalThis.exports.default = TestAbility; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts": /*!********************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\util\Logger.ts ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_hilog_1 = globalThis.requireNapi('hilog') || (isSystemplugin('hilog', 'ohos') ? globalThis.ohosplugin.hilog : isSystemplugin('hilog', 'system') ? globalThis.systemplugin.hilog : undefined); class Logger { constructor(prefix) { this.domain = 0xFF00; this.prefix = ''; this.format = '%{public}s, %{public}s'; this.prefix = prefix; this.domain = 0xFF00; } debug(...args) { _ohos_hilog_1.debug(this.domain, this.prefix, this.format, args); } info(...args) { _ohos_hilog_1.info(this.domain, this.prefix, this.format, args); } warn(...args) { _ohos_hilog_1.warn(this.domain, this.prefix, this.format, args); } error(...args) { _ohos_hilog_1.error(this.domain, this.prefix, this.format, args); } } exports["default"] = new Logger('[Sample_StageModel]'); /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ var commonCachedModule = globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] ? globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId]: null; /******/ if (commonCachedModule) { return commonCachedModule.exports; } /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ function isCommonModue(moduleId) { /******/ if (globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"]) { /******/ const length = globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"].length; /******/ switch (length) { /******/ case 1: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId]; /******/ case 2: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId] || /******/ globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][1][1][moduleId]; /******/ } /******/ } /******/ return undefined; /******/ } /******/ if (globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] && String(moduleId).indexOf("?name=") < 0 && isCommonModue(moduleId)) { /******/ globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId] = module; /******/ } /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = __webpack_require__("E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\TestAbility\\TestAbility.ts?entry"); /******/ _1e36f0fd2df677c57b79e15aad3634be = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=TestAbility.js.mapPK !:?w "ets/TestAbility/TestAbility.js.map{"version":3,"file":"./TestAbility/TestAbility.js","mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;GAaG;;;;;AAEH,0FAA+C;AAC/C,0EAA2C;AAC3C,4EAA6C;AAC7C,2LAAmC;AAEnC,MAAM,GAAG,GAAW,iBAAiB;AACrC,MAAM,mBAAmB,GAAG;IAC1B,WAAW,EAAE,4BAAY,CAAC,WAAW,CAAC;IACtC,MAAM,EAAE;QACN,IAAI,EAAE,qBAAqB;QAC3B,KAAK,EAAE,aAAa;KACrB;CACF;AAED,IAAI,OAAO,GAAG;IACZ,EAAE,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;;;;;GAaG;;;;;AAEH,8DAA+B;AAE/B,MAAM,MAAM;IAKV,YAAY,MAAc;QAJlB,WAAM,GAAW,MAAM;QACvB,WAAM,GAAW,EAAE;QACnB,WAAM,GAAW,wBAAwB;QAG/C,IAAI,CAAC,MAAM,GAAG,MAAM;QACpB,IAAI,CAAC,MAAM,GAAG,MAAM;IACtB,CAAC;IAED,KAAK,CAAC,GAAG,IAAW;QAClB,qBAAK,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM;IACnD,CAAC;IAED,IAAI,CAAC,GAAG,IAAW;QACjB,qBAAK,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM;IAClD,CAAC;IAED,IAAI,CAAC,GAAG,IAAW;QACjB,qBAAK,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM;IAClD,CAAC;IAED,KAAK,CAAC,GAAG,IAAW;QAClB,qBAAK,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM;IACnD,CAAC;CACF;AAED,qBAAe,IAAI,MAAM,CAAC,qBAAqB,CAAC;;;;;;;UC5ChD;UACA;;UAEA;UACA;UACA;UACA,2BAA2B;UAC3B;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;UACA;;;;UEvCA;UACA;UACA;UACA","sources":["webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\TestAbility\\TestAbility.ts","webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts","webpack:///webpack/bootstrap","webpack:///webpack/before-startup","webpack:///webpack/startup","webpack:///webpack/after-startup"],"names":[],"sourceRoot":""}PK !:Ko#ets/pages/AbilityAccessCtrlPage.abcPANDAK/<$$LR x zX!XWWoWYWXNWWV9XUVVXWV VUNUVU@U=VqUTW#USVVfUTlXHVTT R   =\tqv}1kw  $ D e m ~   ! ( , 5 ; K S a i u ~   3 K \ j u    K J   ! = Y u [ f.TTTT#U@UNUfUqUUUUV V=VHVSVVVVVVWWNWYWoWWWWX!X9XlXzXX$'L_ESTypeAnnotation;#F1F3F5-%{public}s, %{public}s .#1# .#10# .#11#.#12#generateId .#16# .#17# .#18# .#2# .#3# .#4# .#5# .#6# .#7# .#8# .#9#9.AbilityAccessCtrlController-.AbilityAccessCtrlPage.Logger.PublicTitleBar!.__Button__fancy).__webpack_require__.generateId.isCommonModue1 100%260%8% ?name=7AbilityAccessCtrlController;AbilityAccessCtrlController_1-AbilityAccessCtrlPage_AlignmentAtManager Button Center ColumnE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\feature\AbilityAccessCtrlController.tsE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\AbilityAccessCtrlPage.ets?entryE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\component\PublicTitleBar.etsE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\util\Logger.tsGet Image JSONLogger_1 ObjectPublicTitleBarPublicTitleBar_!PublicTitleBar_1Row String#SubscriberManagerTAG Text View'[Sample_StageModel]C_1e36f0fd2df677c57b79e15aad3634beq__common_module_cache___1e36f0fd2df677c57b79e15aad3634be__esModule__generate__Id__importDefault#abilityAccessCtrlaccessTokenId align backbackgroundColor bundle)bundle.bundleManagerbundleManager call catch!checkAccessToken=checkAccessToken error: data: ?checkAccessToken failed: data: createcreateAtManagercreateWithLabel debugdefaultdefineProperty delete domain errorexportsfindChildByIdfontSize format'get appinfo error: %getApplicationInfo height hilogidindexOf infoisSystemplugin lengthloadDocument marginmarkStaticmessageneedsUpdate ohosWohos.permission.GRANT_SENSITIVE_PERMISSIONS/ohos.samples.stagemodelohospluginonClickpadding paramspop prefix!promise : data: +promise error: data: -promise failed: data: promise: data: promptActionprototyperequireNapi routershowToaststringify systemsystemplugintextName thentokenIDtokenID: data: +updateWithValueParamsuse strict#verifyAccessToken warn[webpackChunk_1e36f0fd2df677c57b79e15aad3634be width3L_ESSlotNumberAnnotation;@'L_ESTypeInfoRecord;#1#L_GLOBAL;# ZpY _uY(SbvY-bwY=d`xYBXexYGfyyZc gzYh?g]zZQ:[qYr\ rY^asY^sY_tY5 k wZ  pwZ j'~wZ 3k[~wZgm{wZT*m׀Z]sY]k~jZ~k~Y.lZ\YrjZXh{6Zh_|CZj~]Z o΁ZQi9}PZjr]ZLwgz)Z }oZ\rZ cgzZ4funcObjany0newTarget'__webpack_exports__ 0thisE:/Projects/DevEco/applications_app_samples/ability/StageModel/entry/build/default/intermediates/assets_jsbundle/default/ets/pages/AbilityAccessCtrlPage_.js #10# thisgenerateId4newTarget/__unused_webpack_module #11#mod#12#generateId3#13#updateWithValueParams)#14#aboutToBeDeleted#15#render #16# #17# Logger #18##2#'__webpack_require__#3##4# dataerr#5##6##7#+AbilityAccessCtrlPage#8##9#;compilerAssignedUniqueChildIdlocalStorage parent__Button__fancy clickisCommonModue modulecachedModule%commonCachedModulemoduleId!aboutToBeDeleted argsfunc_main_0var _1e36f0fd2df677c57b79e15aad3634be; /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\AbilityAccessCtrlController.ts": /*!********************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\feature\AbilityAccessCtrlController.ts ***! \********************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_abilityAccessCtrl_1 = globalThis.requireNapi('abilityAccessCtrl') || (isSystemplugin('abilityAccessCtrl', 'ohos') ? globalThis.ohosplugin.abilityAccessCtrl : isSystemplugin('abilityAccessCtrl', 'system') ? globalThis.systemplugin.abilityAccessCtrl : undefined); var _ohos_bundle_bundleManager_1 = globalThis.requireNapi('bundle.bundleManager') || (isSystemplugin('bundle.bundleManager', 'ohos') ? globalThis.ohosplugin.bundle.bundleManager : isSystemplugin('bundle.bundleManager', 'system') ? globalThis.systemplugin.bundle.bundleManager : undefined); var _ohos_promptAction_1 = globalThis.requireNapi('promptAction') || (isSystemplugin('promptAction', 'ohos') ? globalThis.ohosplugin.promptAction : isSystemplugin('promptAction', 'system') ? globalThis.systemplugin.promptAction : undefined); const Logger_1 = __importDefault(__webpack_require__(/*! ../util/Logger */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts")); const TAG = 'AbilityAccessCtrlController'; class AbilityAccessCtrlController { // 校验应用是否授予权限,使用Promise方式异步返回结果。对应FA模型的verifyPermission() verifyAccessToken() { let tokenID = 0; let AtManager = _ohos_abilityAccessCtrl_1.createAtManager(); _ohos_bundle_bundleManager_1.getApplicationInfo('ohos.samples.stagemodel', 16, (error, data) => { if (error) { Logger_1.default.info(TAG, `get appinfo error: ${error}`); } else { tokenID = data.accessTokenId; Logger_1.default.info(TAG, `tokenID: data: ${JSON.stringify(tokenID)}`); try { AtManager.checkAccessToken(tokenID, "ohos.permission.GRANT_SENSITIVE_PERMISSIONS").then((data) => { Logger_1.default.info(TAG, `promise: data: ${JSON.stringify(data)}`); _ohos_promptAction_1.showToast({ message: `promise : data: ${JSON.stringify(data)}` }); }).catch((err) => { Logger_1.default.info(TAG, `checkAccessToken failed: data: ${JSON.stringify(err)}`); _ohos_promptAction_1.showToast({ message: `promise failed: data: ${JSON.stringify(err)}` }); }); } catch (err) { Logger_1.default.info(TAG, `checkAccessToken error: data: ${JSON.stringify(err)}`); _ohos_promptAction_1.showToast({ message: `promise error: data: ${JSON.stringify(err)}` }); } } }); } } exports["default"] = AbilityAccessCtrlController; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\AbilityAccessCtrlPage.ets?entry": /*!*******************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\AbilityAccessCtrlPage.ets?entry ***! \*******************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); let __generate__Id = 0; function generateId() { return "AbilityAccessCtrlPage_" + ++__generate__Id; } /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ const AbilityAccessCtrlController_1 = __importDefault(__webpack_require__(/*! ../feature/AbilityAccessCtrlController */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\AbilityAccessCtrlController.ts")); const PublicTitleBar_1 = __webpack_require__(/*! ./component/PublicTitleBar */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\PublicTitleBar.ets"); class AbilityAccessCtrlPage extends View { constructor(compilerAssignedUniqueChildId, parent, params, localStorage) { super(compilerAssignedUniqueChildId, parent, localStorage); this.abilityAccessCtrl = new AbilityAccessCtrlController_1.default(); this.updateWithValueParams(params); } updateWithValueParams(params) { if (params.abilityAccessCtrl !== undefined) { this.abilityAccessCtrl = params.abilityAccessCtrl; } } aboutToBeDeleted() { SubscriberManager.Get().delete(this.id()); } render() { Column.create(); Column.width('100%'); Column.height('100%'); Column.backgroundColor('#F1F3F5'); Column.padding({ left: '3%', right: '3%' }); let earlierCreatedChild_2 = (this && this.findChildById) ? this.findChildById("2") : undefined; if (earlierCreatedChild_2 == undefined) { View.create(new PublicTitleBar_1.PublicTitleBar("2", this, { textName: { "id": 16777226, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" } })); } else { earlierCreatedChild_2.updateWithValueParams({ textName: { "id": 16777226, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" } }); if (!earlierCreatedChild_2.needsUpdate()) { earlierCreatedChild_2.markStatic(); } View.create(earlierCreatedChild_2); } Column.create(); Column.width('100%'); Column.height('100%'); Button.createWithLabel({ "id": 16777291, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.abilityAccessCtrl.verifyAccessToken(); }); Button.pop(); Column.pop(); Column.pop(); } } function __Button__fancy(click) { Button.width('60%'); Button.height(40); Button.align(Alignment.Center); Button.margin({ top: 30 }); Button.onClick(click); } loadDocument(new AbilityAccessCtrlPage("1", undefined, {})); /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\PublicTitleBar.ets": /*!****************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\component\PublicTitleBar.ets ***! \****************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.PublicTitleBar = void 0; let __generate__Id = 0; function generateId() { return "PublicTitleBar_" + ++__generate__Id; } /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var _ohos_router_1 = globalThis.requireNapi('router') || (isSystemplugin('router', 'ohos') ? globalThis.ohosplugin.router : isSystemplugin('router', 'system') ? globalThis.systemplugin.router : undefined); class PublicTitleBar extends View { constructor(compilerAssignedUniqueChildId, parent, params, localStorage) { super(compilerAssignedUniqueChildId, parent, localStorage); this.textName = undefined; this.updateWithValueParams(params); } updateWithValueParams(params) { if (params.textName !== undefined) { this.textName = params.textName; } } aboutToBeDeleted() { SubscriberManager.Get().delete(this.id()); } render() { Row.create(); Row.height('8%'); Row.width('100%'); Row.padding({ left: 15, right: 15 }); Image.create({ "id": 16777295, "type": 20000, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); Image.width(32); Image.height(32); Image.onClick(() => { _ohos_router_1.back(); }); Text.create(this.textName); Text.fontSize(24); Text.margin({ left: 80 }); Text.pop(); Row.pop(); } } exports.PublicTitleBar = PublicTitleBar; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts": /*!********************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\util\Logger.ts ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_hilog_1 = globalThis.requireNapi('hilog') || (isSystemplugin('hilog', 'ohos') ? globalThis.ohosplugin.hilog : isSystemplugin('hilog', 'system') ? globalThis.systemplugin.hilog : undefined); class Logger { constructor(prefix) { this.domain = 0xFF00; this.prefix = ''; this.format = '%{public}s, %{public}s'; this.prefix = prefix; this.domain = 0xFF00; } debug(...args) { _ohos_hilog_1.debug(this.domain, this.prefix, this.format, args); } info(...args) { _ohos_hilog_1.info(this.domain, this.prefix, this.format, args); } warn(...args) { _ohos_hilog_1.warn(this.domain, this.prefix, this.format, args); } error(...args) { _ohos_hilog_1.error(this.domain, this.prefix, this.format, args); } } exports["default"] = new Logger('[Sample_StageModel]'); /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ var commonCachedModule = globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] ? globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId]: null; /******/ if (commonCachedModule) { return commonCachedModule.exports; } /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ function isCommonModue(moduleId) { /******/ if (globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"]) { /******/ const length = globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"].length; /******/ switch (length) { /******/ case 1: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId]; /******/ case 2: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId] || /******/ globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][1][1][moduleId]; /******/ } /******/ } /******/ return undefined; /******/ } /******/ if (globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] && String(moduleId).indexOf("?name=") < 0 && isCommonModue(moduleId)) { /******/ globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId] = module; /******/ } /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = __webpack_require__("E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\AbilityAccessCtrlPage.ets?entry"); /******/ _1e36f0fd2df677c57b79e15aad3634be = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=AbilityAccessCtrlPage.js.map render+earlierCreatedChild_2  X @  T  wXXXXXX (  X' X XX (  X' X XX( KX' X XXX iW X %  T w=u u u  iW  o 5 9  T   X  XY-YCY]Y iWrYXX( OX N X XXXP iW value_ohos_router_1top left3% right typebundleNamemoduleName entry3_ohos_abilityAccessCtrl_19_ohos_bundle_bundleManager_1)_ohos_promptAction_11__webpack_module_cache__'__webpack_modules___ohos_hilog_1SlotNumberY7Y$7YJ7Y7Y"7YL7Y7Y@7Y7Y7Y7Y7Y 7Y7Y7Y/7Y 7Y7Y 7Y 7Ys7Y7Y 7~DpDDa`=aa`=3a`= >ka3w3|3q 3 u `a`=a`=< a>a`*a`$eDDEEEa`=a3sa`a $Q`a ` B(M` a #Q 3rM` a?a ` B;a `a >&a a ` a ` 0 `a bC  ba ` =ma ` B `a >aa ` . a #Q]?Ja >aa >Qa ` + $Qma ` BTa ` BaM/?Ja >aa >da ` + $Qma ` Bea ` BaMM` a ` =?"a 5 a a ` B _a ` a`a `C" e.D`DqDD`$Q`a`B&$Q`Ma`z:`d =DDD>a<a>'a`a`!a<a>'a``a`= d/DpDDD`a`Bfa'$Q`a`a`BfCfeD` =` =?a`B6a`-?a`BEa>a`.? a`B oa>a`. ?a`BVaa`a`.?a`B6aaazW`a`.?a`Boab a`.!?#a`B$Eab a`.&?(a`B)Ua3+ta`.,?.!a`B/6a<a`B1fa`.3?5!a`B6Aaba`.8?:!a`B;Ma=a`a`.>?@!a`BAXa`-C?Ea`BFXa`-HeD`DqD<a`B,a`-e DDDEEa`=a`a $Q`a ` B(M` a#Q 3vM`a?a ` B;a`a >&a a ` a `0 ma ` B `a >Fa ` . a#Q]? Ja >Fa >Qa ` + $Qma ` BTa ` BFM/?Ja >Fa >da ` + $Qma ` Bea ` BFMM`a`=pa 5 aa `B_a `a`a>:a `a >#a  8  e.D`DqDD`$Q`a`B&$Q`Ma`z:`dDDEEEEa`=@a`=aa`=`a $Q`a ` B(M` a #Q 3xM` a?a ` B;a `a >&a a ` a ` 0 ma ` B `a >)a ` . a #Q]? Ja >)a >Qa ` + $Qma ` BTa ` B)M/?Ja >)a >da ` + $Qma ` Bea ` B)MM` a ` =ma ` B`a >/a ` . a #Qm?Ja >/a >Qa ` + $Qma ` B"Ta ` B$.a ` B&0M7?(Ja >/a >da ` +) $Qma ` B+ea ` B-.a ` B/0MM` a ` =ma ` B1`a >^a ` .3 a #Q]?5Ja >^a >Qa ` +6 $Qma ` B8Ta ` B:^M/?^a >da ` += $Qma ` B?ea ` BA^MM` a ` =@`a `a >a ` *C a ` *E a ` = > a ` =0pa 5G a a ` BH_a ` a`a >:a `8J e.D`DqDD`$Q`a`B&$Q`Ma`z:`dDDEEE`$QRa  ` a`B:a`BIa<1a> a  `a>Ca `  a >  a `/ N`a`B*a<a>ha``a`=a  ` a`B :a`B Ia<1a> a  `a>ia ?a ` Bca <a >ha  ` a ` .  a >  a `/ <a > a  ` a ` B3a <a >ha  ` a >Ra ` / a ` Bga3za `. a`B 2a3"{a`.#Naa  ` a ` B%:a`B'Ia<1a > a  ` a >4a ?)a ` B*ca `a ` ., . a > / a `/0 [a ?5a ` B6ca `a ` .8 : a > ; z ed DDDDa  `a`B:a`BIa<1a> a`a>]a?a ` Bca `a ` . a> a`/ Za?a ` Bca `a ` . a> zO`a`.e DDDDa  `a`B:a`BIa<1a> a`a>5a?a ` Bca `a ` . a> a`/ \a?a ` Bca `a ` . a> zO`a`.eDEEEEE3a ` =03aa`a $Q`a ` B(M` a #Q 3}M` a?a ` B;a `a >&a a`a` 0 ba ` =`a `a >a ` * a ` * a ` =`a >a ` * a ` = ?"a 5 a a ` B_a ` a?La `a >a a a a ` * e.D`DqDD`$Q`a`B&$Q`Ma`z:`d DpDD<a`B)a`Bla`-eDPDaDr`a`d yDDDEEEE`a`a`a `a 2a``a`a<a > a  ` a ` B:a  C)`a ` Bja`a `. `d`D`DqDD`a`abC=`a>CY`a>CB`a`CY`abC=`d [DDDDDEE`a`a`a `a 2a``a`aCf`a ` Bja`a `. `dDDDD?a`Boa>a`.?a`BEab(a`.? a`B +a? a`Ba`.?a`BMaa`a`.?a`BUa`a`.eDEEE3aaaama >%a ` 7 $Qma >%a ` 7 a `a ` 7 Ma`$Q `a ` B?d<a `a ` 7 a`a ' $Q `a ` B ?d<a `a a z? ` 8 ama >%a ` 7 a $Q2?a `a` *a ` BHa >a ` . a b M` $Q+`a `a ` * $Qma >%a ` 7 a `a `8! <a `a ` 7# a ` B%1a `a ` B'?a `a `a ` B)?a < a` 1+ `a ` B-?d=DDD?a`Ba`-a`B<a`a`BGa`- a`. e GDDDDa<a`B9a`a`B=a`a`BYa`a ` BBa `a `1e GDDDDa<a`B>a`a`B=a`a`BYa`a ` BBa `a `1e DP`=`=$3pa`)e =DDD> a<a>'a`a`!a<a>'a``a`= d GDDDDa<a`BIa`a`B=a`a`BYa`a ` BBa `a `1e DDDEma>na`7$ma>na`7a`BKa`ab'$Qb'$Q:Nma >na ` 7 a ba ` 7 aba ` 7 a`a`7dma >na ` 7 a ba ` 7 a ba ` 7 a`a ` 7a#Q8ma >na ` 7 a ba ` 7 a ba ` 7 a`a ` 7M`ddD`=`=?a`B6a`-?a`Boa>a`.? a`B Ea>a`. ?a`B-a>a`.?a`BVaa`a`.<$Q(<a`B@$Q<a`B@a>a`.Ma`a $Qa?!"a`B"6aa  ` a`B$a>a<a &a 'a (a z)W ` z+f ` a -a`./Ny`a`B1ja3a4a5a z6W`z8f`a`.:`a`B#QM$Q`a`B@Na`-B?D"a`BE6a`a`.G?Ia`BJ6a`-L?Na`BOoa>a`.Q?Sa`BTEa>a`.V?Xa`BY8a[a\az]W`a`._<1a3a~a`*b?da`BeXa`-g?ia`BjXa`-l?na`BoXa`-qe/DpDDD`a`B)a'$Q`a`a`B)C)e XD` = ` =0ba`=<a`B7a`-a`=<a`BDa>Saba3ya`0e GDDDDa<a`Bma`a`B=a`a`BYa`a ` BBa `a `1e  > p               /  O! !!!!!!!!!!! $z$$~$~$)-$8$.         1        \                     /        ! !!"!!!!!!!!"!!"!!"!!  8-  - ;JT; ^:}} }!!" "  1! !!"!!"!!#!!   % +8+#! !!"!!"!! !! (! !!"!!"!!!!   ! !!"!!"!!'    k  k  k    k  k  k  m  k  k  k;! !! >    ! !!!!!!!!         1                       /           ! !!"!!"!!"!!!!!!#!!   8-  , 9HQ9 [8yy y#!!    1! !!"!!"!!#!!   % +8+        1                      k                  k                  k      k   /        ! !!"!!"!! !!$!!!!"!!!!  8- ! 8! Q`uQ P !$ ;$ Wf~W V $ 3 GVfG pF !K!  !!"" #           0! !!"!!"!!#!!   % +8+  \                   {        i  /           z k       <   ! !!!!!$!!!!!!!*!&+AG+G+ !&+=L= U+U+/8l{$!! !*/P_P d/d/ 3!9H9 M!M3 k             z k       <  D! !!!!!!!!$!!2!.3ETE Z3Z3 7%8G8 M%M7 D! !!!!!!!!$!!7!.3UdU i3i3 7%>M> R%R7         1            k     /               !"!!"!!$!!$!!"!!!!"!! !!!!  8- &6x6&O$!!$) ) 4 ' , 7  1! !!"!!"!!#!!   % +8+  ! !!!!!!!!   ! !!"!!"!!   M       \  g ^ D! !!"!!!!$!!"!!%!!%!!-5%!#  M   \  \  \  \   ` 8! !!"!!"!!!!{  M      \  g ^ B! !!"!!!!$!!"!!%!!%!!-5#    k  k  k  k  3! !!"!!"!!%!!             /  !    /  k  "   m                  >      N        m  ! !!"!!"!!%!!%!!%!!%!!%!!$/$mxmm$, %7  1== Y`YrY~Y  T`  . >F V      ! !!"!!"!!',! !!"!!"!!&!!    ) 6 C,! !!"!!"!!&!!    ) 6 C l  &! !!         #! !!"!!"!! (&(    /      ,! !!"!!"!!&!!    ( 5 B    >    / M  l  g ?          !                 Z    u! !!"!!"!!%!!*!!,7, #%$$(3(d(g(j(!(3(d(g(j(!,!]!`!c!(!"    k  k  k  k          /  k              k   x  m     l   k  k    k  ^! !!!! %$- $C VC$] % <AGS|SG 8C8   H     k  Z (! !!"!!"!!!! ) %    k  k     ! !!'   8SW ,! !!"!!"!!&!!    ( 5 Bv~ xJz}~aWpprstvx~zz6{{0||~TFPK !:DAA"ets/pages/AbilityAccessCtrlPage.jsvar _1e36f0fd2df677c57b79e15aad3634be; /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\AbilityAccessCtrlController.ts": /*!********************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\feature\AbilityAccessCtrlController.ts ***! \********************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_abilityAccessCtrl_1 = globalThis.requireNapi('abilityAccessCtrl') || (isSystemplugin('abilityAccessCtrl', 'ohos') ? globalThis.ohosplugin.abilityAccessCtrl : isSystemplugin('abilityAccessCtrl', 'system') ? globalThis.systemplugin.abilityAccessCtrl : undefined); var _ohos_bundle_bundleManager_1 = globalThis.requireNapi('bundle.bundleManager') || (isSystemplugin('bundle.bundleManager', 'ohos') ? globalThis.ohosplugin.bundle.bundleManager : isSystemplugin('bundle.bundleManager', 'system') ? globalThis.systemplugin.bundle.bundleManager : undefined); var _ohos_promptAction_1 = globalThis.requireNapi('promptAction') || (isSystemplugin('promptAction', 'ohos') ? globalThis.ohosplugin.promptAction : isSystemplugin('promptAction', 'system') ? globalThis.systemplugin.promptAction : undefined); const Logger_1 = __importDefault(__webpack_require__(/*! ../util/Logger */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts")); const TAG = 'AbilityAccessCtrlController'; class AbilityAccessCtrlController { // 校验应用是否授予权限,使用Promise方式异步返回结果。对应FA模型的verifyPermission() verifyAccessToken() { let tokenID = 0; let AtManager = _ohos_abilityAccessCtrl_1.createAtManager(); _ohos_bundle_bundleManager_1.getApplicationInfo('ohos.samples.stagemodel', 16, (error, data) => { if (error) { Logger_1.default.info(TAG, `get appinfo error: ${error}`); } else { tokenID = data.accessTokenId; Logger_1.default.info(TAG, `tokenID: data: ${JSON.stringify(tokenID)}`); try { AtManager.checkAccessToken(tokenID, "ohos.permission.GRANT_SENSITIVE_PERMISSIONS").then((data) => { Logger_1.default.info(TAG, `promise: data: ${JSON.stringify(data)}`); _ohos_promptAction_1.showToast({ message: `promise : data: ${JSON.stringify(data)}` }); }).catch((err) => { Logger_1.default.info(TAG, `checkAccessToken failed: data: ${JSON.stringify(err)}`); _ohos_promptAction_1.showToast({ message: `promise failed: data: ${JSON.stringify(err)}` }); }); } catch (err) { Logger_1.default.info(TAG, `checkAccessToken error: data: ${JSON.stringify(err)}`); _ohos_promptAction_1.showToast({ message: `promise error: data: ${JSON.stringify(err)}` }); } } }); } } exports["default"] = AbilityAccessCtrlController; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\AbilityAccessCtrlPage.ets?entry": /*!*******************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\AbilityAccessCtrlPage.ets?entry ***! \*******************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); let __generate__Id = 0; function generateId() { return "AbilityAccessCtrlPage_" + ++__generate__Id; } /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ const AbilityAccessCtrlController_1 = __importDefault(__webpack_require__(/*! ../feature/AbilityAccessCtrlController */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\AbilityAccessCtrlController.ts")); const PublicTitleBar_1 = __webpack_require__(/*! ./component/PublicTitleBar */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\PublicTitleBar.ets"); class AbilityAccessCtrlPage extends View { constructor(compilerAssignedUniqueChildId, parent, params, localStorage) { super(compilerAssignedUniqueChildId, parent, localStorage); this.abilityAccessCtrl = new AbilityAccessCtrlController_1.default(); this.updateWithValueParams(params); } updateWithValueParams(params) { if (params.abilityAccessCtrl !== undefined) { this.abilityAccessCtrl = params.abilityAccessCtrl; } } aboutToBeDeleted() { SubscriberManager.Get().delete(this.id()); } render() { Column.create(); Column.width('100%'); Column.height('100%'); Column.backgroundColor('#F1F3F5'); Column.padding({ left: '3%', right: '3%' }); let earlierCreatedChild_2 = (this && this.findChildById) ? this.findChildById("2") : undefined; if (earlierCreatedChild_2 == undefined) { View.create(new PublicTitleBar_1.PublicTitleBar("2", this, { textName: { "id": 16777226, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" } })); } else { earlierCreatedChild_2.updateWithValueParams({ textName: { "id": 16777226, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" } }); if (!earlierCreatedChild_2.needsUpdate()) { earlierCreatedChild_2.markStatic(); } View.create(earlierCreatedChild_2); } Column.create(); Column.width('100%'); Column.height('100%'); Button.createWithLabel({ "id": 16777291, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.abilityAccessCtrl.verifyAccessToken(); }); Button.pop(); Column.pop(); Column.pop(); } } function __Button__fancy(click) { Button.width('60%'); Button.height(40); Button.align(Alignment.Center); Button.margin({ top: 30 }); Button.onClick(click); } loadDocument(new AbilityAccessCtrlPage("1", undefined, {})); /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\PublicTitleBar.ets": /*!****************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\component\PublicTitleBar.ets ***! \****************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.PublicTitleBar = void 0; let __generate__Id = 0; function generateId() { return "PublicTitleBar_" + ++__generate__Id; } /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var _ohos_router_1 = globalThis.requireNapi('router') || (isSystemplugin('router', 'ohos') ? globalThis.ohosplugin.router : isSystemplugin('router', 'system') ? globalThis.systemplugin.router : undefined); class PublicTitleBar extends View { constructor(compilerAssignedUniqueChildId, parent, params, localStorage) { super(compilerAssignedUniqueChildId, parent, localStorage); this.textName = undefined; this.updateWithValueParams(params); } updateWithValueParams(params) { if (params.textName !== undefined) { this.textName = params.textName; } } aboutToBeDeleted() { SubscriberManager.Get().delete(this.id()); } render() { Row.create(); Row.height('8%'); Row.width('100%'); Row.padding({ left: 15, right: 15 }); Image.create({ "id": 16777295, "type": 20000, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); Image.width(32); Image.height(32); Image.onClick(() => { _ohos_router_1.back(); }); Text.create(this.textName); Text.fontSize(24); Text.margin({ left: 80 }); Text.pop(); Row.pop(); } } exports.PublicTitleBar = PublicTitleBar; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts": /*!********************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\util\Logger.ts ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_hilog_1 = globalThis.requireNapi('hilog') || (isSystemplugin('hilog', 'ohos') ? globalThis.ohosplugin.hilog : isSystemplugin('hilog', 'system') ? globalThis.systemplugin.hilog : undefined); class Logger { constructor(prefix) { this.domain = 0xFF00; this.prefix = ''; this.format = '%{public}s, %{public}s'; this.prefix = prefix; this.domain = 0xFF00; } debug(...args) { _ohos_hilog_1.debug(this.domain, this.prefix, this.format, args); } info(...args) { _ohos_hilog_1.info(this.domain, this.prefix, this.format, args); } warn(...args) { _ohos_hilog_1.warn(this.domain, this.prefix, this.format, args); } error(...args) { _ohos_hilog_1.error(this.domain, this.prefix, this.format, args); } } exports["default"] = new Logger('[Sample_StageModel]'); /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ var commonCachedModule = globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] ? globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId]: null; /******/ if (commonCachedModule) { return commonCachedModule.exports; } /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ function isCommonModue(moduleId) { /******/ if (globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"]) { /******/ const length = globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"].length; /******/ switch (length) { /******/ case 1: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId]; /******/ case 2: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId] || /******/ globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][1][1][moduleId]; /******/ } /******/ } /******/ return undefined; /******/ } /******/ if (globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] && String(moduleId).indexOf("?name=") < 0 && isCommonModue(moduleId)) { /******/ globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId] = module; /******/ } /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = __webpack_require__("E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\AbilityAccessCtrlPage.ets?entry"); /******/ _1e36f0fd2df677c57b79e15aad3634be = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=AbilityAccessCtrlPage.js.mapPK !:I'Y&ets/pages/AbilityAccessCtrlPage.js.map{"version":3,"file":"./pages/AbilityAccessCtrlPage.js","mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;GAaG;;;;;AAEH,sFAAuD;AACvD,4FAA+C;AAC/C,4EAAuC;AACvC,2LAAmC;AAEnC,MAAM,GAAG,GAAW,6BAA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ACF;AAED,qBAAe,IAAI,MAAM,CAAC,qBAAqB,CAAC;;;;;;;UC5ChD;UACA;;UAEA;UACA;UACA;UACA,2BAA2B;UAC3B;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;UACA;;;;UEvCA;UACA;UACA;UACA","sources":["webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\AbilityAccessCtrlController.ts","webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\AbilityAccessCtrlPage.ets","webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\PublicTitleBar.ets","webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts","webpack:///webpack/bootstrap","webpack:///webpack/before-startup","webpack:///webpack/startup","webpack:///webpack/after-startup"],"names":[],"sourceRoot":""}PK !:wL6L6 ets/pages/AbilityContextPage.abcPANDAWL6H<-5~LDHYNCgW,{n;=f o[q> tZ (u |Itep/f{HIelIp"p$-H+;wt:'<HL6lpt44]_h  * ? J R Z b Q + 0 7 = G O _ p -9IZk{ 5X_em})6=FV^mx #-5LX`gktz!,5=JO_go}#.<S7XQM} "9EKQ6Rn2Nj.Jf:*Fb~V &B^zr">Zv!"!R!!W!! -;Ift+Hep{"Ift$/lwI|(['Z >q =p <o;nHep{,:Wt CNYgu#t$$%.''L_ESTypeAnnotation;#F1F3F5-%{public}s, %{public}s .#1# .#10# .#11# .#12# .#13# .#14# .#15# .#16# .#17# .#2# .#21# .#22# .#23# .#24# .#25# .#26# .#27# .#28# .#29# .#3# .#30# .#31# .#32# .#33# .#34# .#35# .#36# .#37# .#38# .#39# .#4# .#40# .#41# .#42# .#43# .#44# .#45# .#46# .#47# .#48# .#49# .#5# .#50# .#51# .#52# .#53# .#54# .#55# .#56# .#57# .#58# .#59# .#6# .#60# .#61# .#62# .#63# .#64#.#65#generateId .#69# .#7# .#70# .#71# .#8# .#9#3.AbilityContextController'.AbilityContextPage.Logger.PublicTitleBar!.__Button__fancy).__webpack_require__.generateId.isCommonModue1 100%260%8% ?name=1AbilityContextController5AbilityContextController_1'AbilityContextPage_Alignment Button Center ColumnE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\feature\AbilityContextController.tsE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\AbilityContextPage.ets?entryE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\component\PublicTitleBar.etsE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\util\Logger.tsGet Image JSONLogger_1 ObjectPublicTitleBarPublicTitleBar_!PublicTitleBar_1Row Scroll String#SubscriberManagerTAG Text View'[Sample_StageModel]C_1e36f0fd2df677c57b79e15aad3634beq__common_module_cache___1e36f0fd2df677c57b79e15aad3634be__esModule__generate__Id__importDefaultability state: abilityContextabilityInfoaccountId alignappContextapplicationInfo area backbackgroundColorbundleNamecacheDir call7caller onRelease is called Mcaller register OnRelease failed with Ccaller register OnRelease succeed catch code configconnectAbility!connectAbility: -connectAbilityResult: 3connectAbilityWithAccount7connectAbilityWithAccount: !connectionNumbercontext createcreateWithLabel)currentHapModuleInfodatabaseDir debugdefaultdefineProperty deletedescriptionIddirection#disconnectAbility?disconnectAbility fail, error: CdisconnectAbility success, data: 'distributedFilesDir domain errorerror.code: exportsfilesDirfindChildByIdfontSize format+getApplicationContextgetContext height hilogidindexOf infoisSystempluginisTerminatinglayoutWeight lengthloadDocument marginmarkStaticmessage nameneedsUpdate ohosohospluginonClickonConnectonDisconnectonReleasepadding paramspermissionspoppreferencesDir prefix promptpromptActionprototype5requestPermissionsFromUser9requestPermissionsFromUser: requireNapiresourceManagerresultCode routersetMissionLabel#setMissionLabel: showToaststageModestartAbility+startAbilityForResultwstartAbilityForResult AsyncCallback is called, error.code: startAbilityForResult AsyncCallback is called, result.resultCode: AstartAbilityForResultWithAccount/startAbilityWithAccountKstartAbilityWithAccount fail, error: ?startAbilityWithAccount successOstartAbilityWithAccount success, data: 9startServiceExtensionAbilityUstartServiceExtensionAbility fail, error: IstartServiceExtensionAbility successOstartServiceExtensionAbilityWithAccountkstartServiceExtensionAbilityWithAccount fail, error: _startServiceExtensionAbilityWithAccount success7stopServiceExtensionAbilitySstopServiceExtensionAbility fail, error: GstopServiceExtensionAbility successMstopServiceExtensionAbilityWithAccountistopServiceExtensionAbilityWithAccount fail, error: ]stopServiceExtensionAbilityWithAccount successstringify systemsystemplugintempDirterminateSelf-terminateSelf result: /terminateSelfWithResultGterminateSelfWithResult is called: testtextName then+updateWithValueParamsuse strict want warn[webpackChunk_1e36f0fd2df677c57b79e15aad3634be width3L_ESSlotNumberAnnotation;@'L_ESTypeInfoRecord;#1#L_GLOBAL;le$%|%%&X_&<&!&Ey#(&#5h$me(n$5x$_(~$5$Q9($d5$Cr$.%35:%^5@%M(F%rL%"5Z%B5`%<&%%2%D%h%%%8%Y%z%@%d%%[%*|%N%r%&)&0] &&&#&)&/&l5&.;&XbA&G&DM&S&A2Y&fd&5j&ip&*v&W|&&Y!&"&"#t_*vKvc5v6M)v)v&$%vl0L-LD,(&!f%2*i') %y,(V-.? 3$+('z'rL'+++~4&/ iO +%m(4'&B 2$P('(rxC)\r%[$v$$&O& r< /3"+5 3e4 74$i&\| ( 2 ,4\ 3\ [3j4\ 3\4funcObjany0newTarget'__webpack_exports__ 0thisE:/Projects/DevEco/applications_app_samples/ability/StageModel/entry/build/default/intermediates/assets_jsbundle/default/ets/pages/AbilityContextPage_.js #10# #11# #12# #13# #14# #15# #16# #17##18#onConnect this4newTargetelementName remote!#19#onDisconnect#2#'__webpack_require__/__unused_webpack_module#20#onFailed #21# data #22# #23# #24# #25# result #26# #27#generateId%AbilityContextPage #28#mod #29##3# #30# #31# #32# #33# #34# #35# #36# #37# #38# #39##4#msg #40# #41# #42# #43# #44# #45# #46# #47# #48# #49##5# #50# #51# #52# #53# #54# #55# #56# #57# #58# #59##6# #60# #61# #62# #63# #64##65#generateId3#66#updateWithValueParams)#67#aboutToBeDeleted#68#render #69##7# #70# Logger #71##8##9#;compilerAssignedUniqueChildIdlocalStorage parent__Button__fancy clickisCommonModue modulecachedModule%commonCachedModulemoduleIdaboutToAppear!aboutToBeDeletedoptions argsfunc_main_0var _1e36f0fd2df677c57b79e15aad3634be; /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\AbilityContextController.ts": /*!*****************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\feature\AbilityContextController.ts ***! \*****************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_promptAction_1 = globalThis.requireNapi('promptAction') || (isSystemplugin('promptAction', 'ohos') ? globalThis.ohosplugin.promptAction : isSystemplugin('promptAction', 'system') ? globalThis.systemplugin.promptAction : undefined); const Logger_1 = __importDefault(__webpack_require__(/*! ../util/Logger */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts")); const TAG = 'AbilityContextController'; const accountId = 100; const resultCode = 100; const connectionNumber = 0; const permissions = ['']; let want = { bundleName: 'ohos.samples.stagemodel', abilityName: 'TestAbility', moduleName: 'entry' }; class AbilityContextController { constructor(context) { this.context = context; } regOnRelease(caller) { try { caller.onRelease((msg) => { Logger_1.default.info(TAG, `caller onRelease is called ${msg}`); }); Logger_1.default.info(TAG, 'caller register OnRelease succeed'); } catch (error) { Logger_1.default.error(TAG, `caller register OnRelease failed with ${error}`); } } // 启动Ability,对应FA的StartServiceAbility startAbility() { this.context.startAbility(want, (error) => { Logger_1.default.info(TAG, `error.code: ${JSON.stringify(error.code)}`); }); } // 启动Ability并在结束的时候返回执行结果,对应FA的startAbilityForResult startAbilityForResult() { this.context.startAbilityForResult({ deviceId: '', bundleName: 'ohos.samples.stagemodel', abilityName: 'TestAbility' }, (error, result) => { Logger_1.default.info(TAG, `startAbilityForResult AsyncCallback is called, error.code: ${JSON.stringify(error)}`); Logger_1.default.info(TAG, `startAbilityForResult AsyncCallback is called, result.resultCode: ${JSON.stringify(result.resultCode)}`); }); } // 启动一个Ability并在该Ability帐号销毁时返回执行结果, startAbilityForResultWithAccount() { this.context.startAbilityWithAccount(want, accountId, (error, data) => { Logger_1.default.info(TAG, `startAbilityWithAccount fail, error: ${JSON.stringify(error)}`); Logger_1.default.info(TAG, `startAbilityWithAccount success, data: ${JSON.stringify(data)}`); }); } // 启动一个新的ServiceExtensionAbility, startServiceExtensionAbility() { this.context.startServiceExtensionAbility(want) .then(() => { Logger_1.default.info(TAG, `startServiceExtensionAbility success`); _ohos_promptAction_1.showToast({ message: 'startServiceExtensionAbility success' }); }) .catch((error) => { Logger_1.default.error(TAG, `startServiceExtensionAbility fail, error: ${JSON.stringify(error)}`); _ohos_promptAction_1.showToast({ message: 'startServiceExtensionAbility' }); }); } // 启动一个新的ServiceExtensionAbility, startServiceExtensionAbilityWithAccount() { this.context.startServiceExtensionAbilityWithAccount(want, accountId) .then(() => { Logger_1.default.info(TAG, `startServiceExtensionAbilityWithAccount success`); _ohos_promptAction_1.showToast({ message: 'startServiceExtensionAbilityWithAccount success' }); }) .catch((error) => { Logger_1.default.error(TAG, `startServiceExtensionAbilityWithAccount fail, error: ${JSON.stringify(error)}`); _ohos_promptAction_1.showToast({ message: 'startServiceExtensionAbilityWithAccount' }); }); } // 停止同一应用程序内的服务, stopServiceExtensionAbility() { this.context.stopServiceExtensionAbility(want) .then(() => { Logger_1.default.info(TAG, `stopServiceExtensionAbility success`); _ohos_promptAction_1.showToast({ message: 'stopServiceExtensionAbility success' }); }) .catch((error) => { Logger_1.default.error(TAG, `stopServiceExtensionAbility fail, error: ${JSON.stringify(error)}`); _ohos_promptAction_1.showToast({ message: 'stopServiceExtensionAbility' }); }); } // 使用帐户停止同一应用程序内的服务, stopServiceExtensionAbilityWithAccount() { this.context.stopServiceExtensionAbilityWithAccount(want, accountId) .then(() => { Logger_1.default.info(TAG, `stopServiceExtensionAbilityWithAccount success`); _ohos_promptAction_1.showToast({ message: 'stopServiceExtensionAbilityWithAccount success' }); }) .catch((error) => { Logger_1.default.error(TAG, `stopServiceExtensionAbilityWithAccount fail, error: ${JSON.stringify(error)}`); _ohos_promptAction_1.showToast({ message: 'stopServiceExtensionAbilityWithAccount' }); }); } // 停止Ability自身,对应FA的terminateSelf terminateSelf() { this.context.terminateSelf((error) => { Logger_1.default.info(TAG, `terminateSelf result: ${JSON.stringify(error)}`); }); } // 停止Ability,配合startAbilityForResult使用,返回给接口调用方AbilityResult信息,对应FA的terminateSelfWithResult terminateSelfWithResult() { const abilityResult = { want, resultCode }; this.context.terminateSelfWithResult(abilityResult, (error) => { Logger_1.default.info(TAG, `terminateSelfWithResult is called: ${JSON.stringify(error.code)}`); }); } // 使用AbilityInfo.AbilityType.SERVICE模板将当前Ability连接到一个Ability,对应FA的ConnectService connectAbility() { const options = { onConnect(elementName, remote) { Logger_1.default.info(TAG, `onConnect`); _ohos_promptAction_1.showToast({ message: 'onConnect' }); }, onDisconnect(elementName) { Logger_1.default.info(TAG, `onDisconnect`); _ohos_promptAction_1.showToast({ message: 'onDisconnect' }); }, onFailed(code) { Logger_1.default.info(TAG, `connectAbility: ${JSON.stringify(code)}`); _ohos_promptAction_1.showToast({ message: `connectAbility: ${JSON.stringify(code)}` }); } }; const result = this.context.connectAbility(want, options); Logger_1.default.info(TAG, `connectAbilityResult: ${JSON.stringify(result)}`); _ohos_promptAction_1.showToast({ message: `connectAbilityResult: ${JSON.stringify(result)}` }); } // 使用AbilityInfo.AbilityType.SERVICE模板和account将当前Ability连接到一个Ability。 connectAbilityWithAccount() { const options = { onConnect(elementName, remote) { Logger_1.default.info(TAG, `onConnect`); _ohos_promptAction_1.showToast({ message: 'onConnect' }); }, onDisconnect(elementName) { Logger_1.default.info(TAG, `onDisconnect`); _ohos_promptAction_1.showToast({ message: 'onDisconnect' }); }, onFailed(code) { Logger_1.default.info(TAG, `connectAbilityWithAccount: ${JSON.stringify(code)}`); _ohos_promptAction_1.showToast({ message: `connectAbilityWithAccount: ${JSON.stringify(code)}` }); } }; const result = this.context.connectAbility(want, options); Logger_1.default.info(TAG, `connectAbilityResult: ${JSON.stringify(result)}`); _ohos_promptAction_1.showToast({ message: `connectAbilityResult: ${JSON.stringify(result)}` }); } // 断开连接,对应FA模型的disconnectService disconnectAbility() { this.context.disconnectAbility(connectionNumber).then((data) => { Logger_1.default.info(TAG, `disconnectAbility success, data: ${JSON.stringify(data)}`); _ohos_promptAction_1.showToast({ message: 'disconnectAbility success' }); }).catch((error) => { Logger_1.default.error(TAG, `disconnectAbility fail, error: ${JSON.stringify(error)}`); _ohos_promptAction_1.showToast({ message: 'disconnectAbility' }); }); } // 根据account启动Ability startAbilityWithAccount() { let options = { windowMode: 0 }; this.context.startAbilityWithAccount(want, accountId, options) .then(() => { Logger_1.default.info(TAG, `startAbilityWithAccount success`); _ohos_promptAction_1.showToast({ message: 'startAbilityWithAccount success' }); }) .catch((error) => { Logger_1.default.error(TAG, `startAbilityWithAccount fail, error: ${JSON.stringify(error)}`); }); } // 拉起弹窗请求用户授权,对应FA模型的AppContext中的requestPermissionsFromUser requestPermissionsFromUser() { this.context.requestPermissionsFromUser(permissions, (result) => { Logger_1.default.info(TAG, `requestPermissionsFromUser: ${JSON.stringify(result)}`); _ohos_promptAction_1.showToast({ message: 'requestPermissionsFromUser success' }); }); } // 设置ability在任务中显示的名称, setMissionLabel() { this.context.setMissionLabel('test', (result) => { Logger_1.default.info(TAG, `setMissionLabel: ${JSON.stringify(result)}`); _ohos_promptAction_1.showToast({ message: 'setMissionLabel success' }); }); } // 查询ability是否在terminating状态。 isTerminating() { const isTerminating = this.context.isTerminating(); _ohos_promptAction_1.showToast({ message: 'isTerminating success' }); Logger_1.default.info(TAG, `ability state: ${JSON.stringify(isTerminating)}`); } } exports["default"] = AbilityContextController; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\AbilityContextPage.ets?entry": /*!****************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\AbilityContextPage.ets?entry ***! \****************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); let __generate__Id = 0; function generateId() { return "AbilityContextPage_" + ++__generate__Id; } /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var _ohos_prompt_1 = globalThis.requireNapi('prompt') || (isSystemplugin('prompt', 'ohos') ? globalThis.ohosplugin.prompt : isSystemplugin('prompt', 'system') ? globalThis.systemplugin.prompt : undefined); const AbilityContextController_1 = __importDefault(__webpack_require__(/*! ../feature/AbilityContextController */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\AbilityContextController.ts")); const PublicTitleBar_1 = __webpack_require__(/*! ./component/PublicTitleBar */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\PublicTitleBar.ets"); class AbilityContextPage extends View { constructor(compilerAssignedUniqueChildId, parent, params, localStorage) { super(compilerAssignedUniqueChildId, parent, localStorage); this.abilityContext = undefined; this.appContext = null; this.updateWithValueParams(params); } updateWithValueParams(params) { if (params.abilityContext !== undefined) { this.abilityContext = params.abilityContext; } if (params.appContext !== undefined) { this.appContext = params.appContext; } } aboutToBeDeleted() { SubscriberManager.Get().delete(this.id()); } render() { Column.create(); Column.width('100%'); Column.height('100%'); Column.backgroundColor('#F1F3F5'); Column.padding({ left: '3%', right: '3%' }); let earlierCreatedChild_2 = (this && this.findChildById) ? this.findChildById("2") : undefined; if (earlierCreatedChild_2 == undefined) { View.create(new PublicTitleBar_1.PublicTitleBar("2", this, { textName: { "id": 16777227, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" } })); } else { earlierCreatedChild_2.updateWithValueParams({ textName: { "id": 16777227, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" } }); if (!earlierCreatedChild_2.needsUpdate()) { earlierCreatedChild_2.markStatic(); } View.create(earlierCreatedChild_2); } Scroll.create(); Scroll.layoutWeight(1); Scroll.width('100%'); Column.create(); Column.width('100%'); Button.createWithLabel({ "id": 16777278, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.abilityContext.startAbility(); }); Button.pop(); Button.createWithLabel({ "id": 16777280, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.abilityContext.startAbilityForResult(); }); Button.pop(); Button.createWithLabel({ "id": 16777281, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.abilityContext.startAbilityForResultWithAccount(); }); Button.pop(); Button.createWithLabel({ "id": 16777283, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.abilityContext.startServiceExtensionAbility(); }); Button.pop(); Button.createWithLabel({ "id": 16777284, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.abilityContext.startServiceExtensionAbilityWithAccount(); }); Button.pop(); Button.createWithLabel({ "id": 16777285, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.abilityContext.stopServiceExtensionAbility(); }); Button.pop(); Button.createWithLabel({ "id": 16777286, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.abilityContext.stopServiceExtensionAbilityWithAccount(); }); Button.pop(); Button.createWithLabel({ "id": 16777288, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.abilityContext.terminateSelf(); }); Button.pop(); Button.createWithLabel({ "id": 16777289, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.abilityContext.terminateSelfWithResult(); }); Button.pop(); Button.createWithLabel({ "id": 16777237, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.abilityContext.connectAbility(); }); Button.pop(); Button.createWithLabel({ "id": 16777238, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.abilityContext.connectAbilityWithAccount(); }); Button.pop(); Button.createWithLabel({ "id": 16777246, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.abilityContext.disconnectAbility(); }); Button.pop(); Button.createWithLabel({ "id": 16777282, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.abilityContext.startAbilityWithAccount(); }); Button.pop(); Button.createWithLabel({ "id": 16777271, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.abilityContext.requestPermissionsFromUser(); }); Button.pop(); Button.createWithLabel({ "id": 16777274, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.abilityContext.setMissionLabel(); }); Button.pop(); Button.createWithLabel({ "id": 16777261, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.abilityContext.isTerminating(); }); Button.pop(); // 指示有关能力的配置信息,对应FA模型的getAbilityInfo方法 Button.createWithLabel({ "id": 16777228, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.appContext.abilityInfo; _ohos_prompt_1.showToast({ message: `${JSON.stringify(this.appContext.abilityInfo)}` }); }); // 指示有关能力的配置信息,对应FA模型的getAbilityInfo方法 Button.pop(); // 指示有关模块的配置信息,对应FA模型的getHapModuleInfo()方法 Button.createWithLabel({ "id": 16777239, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.appContext.currentHapModuleInfo; _ohos_prompt_1.showToast({ message: `${JSON.stringify(this.appContext.currentHapModuleInfo)}` }); }); // 指示有关模块的配置信息,对应FA模型的getHapModuleInfo()方法 Button.pop(); // 指示配置信息。 Button.createWithLabel({ "id": 16777236, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.appContext.config; _ohos_prompt_1.showToast({ message: `${JSON.stringify(this.appContext.config)}` }); }); // 指示配置信息。 Button.pop(); // 指示访问应用程序资源的能力。 Button.createWithLabel({ "id": 16777272, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.appContext.resourceManager; _ohos_prompt_1.showToast({ message: `${JSON.stringify(this.appContext.resourceManager)}` }); }); // 指示访问应用程序资源的能力。 Button.pop(); // 指示有关应用程序的配置信息。 Button.createWithLabel({ "id": 16777229, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.appContext.applicationInfo; _ohos_prompt_1.showToast({ message: `${JSON.stringify(this.appContext.applicationInfo)}` }); }); // 指示有关应用程序的配置信息。 Button.pop(); // 指示应用缓存目录,对应FA模型appContext下的getCacheDir()方法 Button.createWithLabel({ "id": 16777235, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.appContext.cacheDir; _ohos_prompt_1.showToast({ message: `${JSON.stringify(this.appContext.cacheDir)}` }); }); // 指示应用缓存目录,对应FA模型appContext下的getCacheDir()方法 Button.pop(); // 指示应用程序临时目录。 Button.createWithLabel({ "id": 16777287, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.appContext.tempDir; _ohos_prompt_1.showToast({ message: `${JSON.stringify(this.appContext.tempDir)}` }); }); // 指示应用程序临时目录。 Button.pop(); // 指示应用程序文件目录,对应FA模型的getFilesDir()方法 Button.createWithLabel({ "id": 16777251, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.appContext.filesDir; _ohos_prompt_1.showToast({ message: `${JSON.stringify(this.appContext.filesDir)}` }); }); // 指示应用程序文件目录,对应FA模型的getFilesDir()方法 Button.pop(); // 指示应用程序数据库目录。 Button.createWithLabel({ "id": 16777242, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.appContext.databaseDir; _ohos_prompt_1.showToast({ message: `${JSON.stringify(this.appContext.databaseDir)}` }); }); // 指示应用程序数据库目录。 Button.pop(); // 指示应用程序首选项目录。 Button.createWithLabel({ "id": 16777269, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.appContext.preferencesDir; _ohos_prompt_1.showToast({ message: `${JSON.stringify(this.appContext.preferencesDir)}` }); }); // 指示应用程序首选项目录。 Button.pop(); // 指示应用程序分发文件目录,对应FA模型的getOrCreateDistributedDir()方法 Button.createWithLabel({ "id": 16777247, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.appContext.distributedFilesDir; _ohos_prompt_1.showToast({ message: `${JSON.stringify(this.appContext.distributedFilesDir)}` }); }); // 指示应用程序分发文件目录,对应FA模型的getOrCreateDistributedDir()方法 Button.pop(); // 指示当前设备的屏幕方向。对应FA的getDisplayOrientation() Button.createWithLabel({ "id": 16777245, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.appContext.config.direction; _ohos_prompt_1.showToast({ message: `${JSON.stringify(this.appContext.config.direction)}` }); }); // 指示当前设备的屏幕方向。对应FA的getDisplayOrientation() Button.pop(); // 指示文件区域。 Button.createWithLabel({ "id": 16777230, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.appContext.area; _ohos_prompt_1.showToast({ message: `${JSON.stringify(this.appContext.area)}` }); }); // 指示文件区域。 Button.pop(); // 指示上下文是FA模式或阶段模式。 Button.createWithLabel({ "id": 16777277, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.appContext.stageMode; _ohos_prompt_1.showToast({ message: `${JSON.stringify(this.appContext.stageMode)}` }); }); // 指示上下文是FA模式或阶段模式。 Button.pop(); // 获取应用上下文信息,对应FA模型的getApplicationContext()方法 Button.createWithLabel({ "id": 16777256, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.appContext.getApplicationContext(); _ohos_prompt_1.showToast({ message: `${JSON.stringify(this.appContext.getApplicationContext())}` }); }); // 获取应用上下文信息,对应FA模型的getApplicationContext()方法 Button.pop(); // 获取当前ability的捆绑包名称,对应FA模型的getBundleName() Button.createWithLabel({ "id": 16777233, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.appContext.abilityInfo.bundleName; _ohos_prompt_1.showToast({ message: `${JSON.stringify(this.appContext.abilityInfo.bundleName)}` }); }); // 获取当前ability的捆绑包名称,对应FA模型的getBundleName() Button.pop(); // 获取有关当前进程的信息,包括进程名称,对应FA模型的getProcessInfo() Button.createWithLabel({ "id": 16777244, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.appContext.abilityInfo.descriptionId; _ohos_prompt_1.showToast({ message: `${JSON.stringify(this.appContext.abilityInfo.descriptionId)}` }); }); // 获取有关当前进程的信息,包括进程名称,对应FA模型的getProcessInfo() Button.pop(); // 获取有关当前进程的信息,包括进程ID,对应FA模型的getProcessInfo() Button.createWithLabel({ "id": 16777262, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.appContext.abilityInfo.name; _ohos_prompt_1.showToast({ message: `${JSON.stringify(this.appContext.abilityInfo.name)}` }); }); // 获取有关当前进程的信息,包括进程ID,对应FA模型的getProcessInfo() Button.pop(); Column.pop(); Scroll.pop(); Column.pop(); } aboutToAppear() { this.appContext = getContext(this); this.abilityContext = new AbilityContextController_1.default(this.appContext); } } function __Button__fancy(click) { Button.width('60%'); Button.height(40); Button.align(Alignment.Center); Button.margin({ top: 30 }); Button.onClick(click); } loadDocument(new AbilityContextPage("1", undefined, {})); /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\PublicTitleBar.ets": /*!****************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\component\PublicTitleBar.ets ***! \****************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.PublicTitleBar = void 0; let __generate__Id = 0; function generateId() { return "PublicTitleBar_" + ++__generate__Id; } /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var _ohos_router_1 = globalThis.requireNapi('router') || (isSystemplugin('router', 'ohos') ? globalThis.ohosplugin.router : isSystemplugin('router', 'system') ? globalThis.systemplugin.router : undefined); class PublicTitleBar extends View { constructor(compilerAssignedUniqueChildId, parent, params, localStorage) { super(compilerAssignedUniqueChildId, parent, localStorage); this.textName = undefined; this.updateWithValueParams(params); } updateWithValueParams(params) { if (params.textName !== undefined) { this.textName = params.textName; } } aboutToBeDeleted() { SubscriberManager.Get().delete(this.id()); } render() { Row.create(); Row.height('8%'); Row.width('100%'); Row.padding({ left: 15, right: 15 }); Image.create({ "id": 16777295, "type": 20000, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); Image.width(32); Image.height(32); Image.onClick(() => { _ohos_router_1.back(); }); Text.create(this.textName); Text.fontSize(24); Text.margin({ left: 80 }); Text.pop(); Row.pop(); } } exports.PublicTitleBar = PublicTitleBar; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts": /*!********************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\util\Logger.ts ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_hilog_1 = globalThis.requireNapi('hilog') || (isSystemplugin('hilog', 'ohos') ? globalThis.ohosplugin.hilog : isSystemplugin('hilog', 'system') ? globalThis.systemplugin.hilog : undefined); class Logger { constructor(prefix) { this.domain = 0xFF00; this.prefix = ''; this.format = '%{public}s, %{public}s'; this.prefix = prefix; this.domain = 0xFF00; } debug(...args) { _ohos_hilog_1.debug(this.domain, this.prefix, this.format, args); } info(...args) { _ohos_hilog_1.info(this.domain, this.prefix, this.format, args); } warn(...args) { _ohos_hilog_1.warn(this.domain, this.prefix, this.format, args); } error(...args) { _ohos_hilog_1.error(this.domain, this.prefix, this.format, args); } } exports["default"] = new Logger('[Sample_StageModel]'); /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ var commonCachedModule = globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] ? globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId]: null; /******/ if (commonCachedModule) { return commonCachedModule.exports; } /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ function isCommonModue(moduleId) { /******/ if (globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"]) { /******/ const length = globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"].length; /******/ switch (length) { /******/ case 1: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId]; /******/ case 2: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId] || /******/ globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][1][1][moduleId]; /******/ } /******/ } /******/ return undefined; /******/ } /******/ if (globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] && String(moduleId).indexOf("?name=") < 0 && isCommonModue(moduleId)) { /******/ globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId] = module; /******/ } /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = __webpack_require__("E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\AbilityContextPage.ets?entry"); /******/ _1e36f0fd2df677c57b79e15aad3634be = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=AbilityContextPage.js.maponFailedregOnRelease caller render+earlierCreatedChild_2abilityResult=M $$ $$Q $$"" '" l  $$ $$ ]!. $$ $$ $$=] 9; !.KWhVG .b <1" ?# $# u#  # Z#  " m'5KWg@'5KWgA'5KWgC'5KWgD'5KWgE'5KWgF'5KWgH'5KWgI'5KWg'5KWg'5KWg'5KWgB'5KWg7'5KWg:'5KWg-'5KWg '5KWg'5KWg'5KWg8'5KWg '5KWg'5KWgG'5KWgO N5KWg#'5KWg'5KWg5'5KWg'5KWg'5KWg'5KWg='5KWg('5KWg'5KWg'5KWPg.'5KW $$="L" '! lm ' 9p 4'  $$ $$ $$72 $$x> $$=} ! L  , L E $$ $$ valuedeviceId/ohos.samples.stagemodelabilityNameTestAbility_ohos_router_1moduleName entry)_ohos_promptAction_11__webpack_module_cache__'__webpack_modules__top left3% right type_ohos_hilog_1_ohos_prompt_1+isTerminating success/setMissionLabel successErequestPermissionsFromUser successwindowMode3disconnectAbility successSlotNumberY7Y 7Y&7Y,7Y7Y7Y7Y7Y7Y7Y$7YJ7Y7Y7Y"7Y 7Y7Y7Y/7Y7Y7Y 7Y 7Y7Y7Y7Y7Y7Y 7Y7~DpDDa`=aa`=3a`= >a333 3  `a`=a`=< a>a`*a`$e aDDD<a>a`a`BHa`B_a<a> a`a>a`/a  `a`BHa`BRa<a> a`a>a?a ` Ba `a ` . a> a`/ a`a`BHa`B_a<a> a`a>a`/a  `a`BHa`BRa<a> a`a>a?a ` Ba `a ` . a> a`/ a`a`BHa`B_a<a> a`a>a`/a  `a`BHa`BRa<a> a`a>a?a ` Ba `a ` . a> a`/ a  `a`BHa`B_a<a> a`a>a?a ` Ba `a ` . a> a`/ e tDDDD<a>a  `a`BHa`B_a<a> a`a>a?a ` Ba `a ` B:a ` . a> a`/ e eDDDDD<a >a  ` a`BHa`B_a<a> a  `a>ma `/ <@a`Bada`a`. e cDDDD<a>a  `a`BHa`B_a<a> a`a>na`/<@a`Baca`a`. e DDEEEEa`=@a`a $Q`a ` B(M` a #Q 3M` a?a ` BIa `a >&a a ` a ` 0 ma ` B {a >wa ` . a #Q]? `a >wa >ja ` + $Qma ` Bka ` BwM/?`a >wa >a ` + $Qma ` Ba ` BwMM` a ` =@`a `a >a ` * a ` * a ` => a ` =bda ` =0bda ` =Pba ` =` a a ` =p a ` a ` = pa 5!  a a ` B"xa ` a`a >Ha `8$ e DDDD<a>a  `a`BHa`B_a<a> a`a>@a?a ` Ba `a ` . a> a`/ <@a`B aba>@a?a ` Ba `a ` . a> zg`a`.e DDDD<a>a  `a`BHa`B_a<a> a`a>Oa?a ` Ba `a ` . a> a`/ a  `a`BHa`BRa<a> a`a>Na?a ` Ba `a ` . a> a`/ a`a`BHa`B_a<a> a`a>a`/a  `a`BHa`BRa<a> a`a>a?a ` Ba `a ` . a> a`/ e DDDD<a>a  `a`BHa`B_a<a> a`a>za?a ` Ba `a ` . a> a`/ a  `a`BHa`B_a<a> a`a>a?a ` Ba `a ` . a> a`/ &a Sa`a` 0 ba ` =ma ` B {a >va ` . a #Q]?`a >va >ja ` + $Qma ` Bka ` BvM/?`a >va >a ` + $Qma ` Ba ` BvMM` a ` =0`a `a >a ` * a ` * a ` =@`a >a ` *! a ` =?#"a 5$T a a ` B%xa ` a?'da `a >a a a( a ` ** e.D`DqDD`$Q`a`B&$Q`MRa`zH`d DpDD<a`B*a`Ba`-e.D`DqDD`$Q`a`B&$Q`Ma`zH`d DpDD<a`B*a`Ba`-e DpDD<a`B*a`Ba`-e DpDD<a`B*a`Ba`-e DpDD<a`B*a`Ba`-e DpDD<a`B*a`Ba`-e DpDD<a`B*a`Ba`-e DpDD<a`B*a`Ba`-e DpDD<a`B*a`Ba`-e DpDD<a`B*a`B<a`-e DpDD<a`B*a`B?a`-e VDDDD<a>a  `a`BHa`B_a<a> a`a>6a` a> a`/e DpDD<a`B*a`BMa`-e DpDD<a`B*a`Ba`-e DpDD<a`B*a`Bya`-e DpDD<a`B*a`Ba`-e DpDD<a`B*a`Baa`-e rDDD<a`B.a`B+<1a`Ba%a>a?a ` Ba<a ` B .a ` B +a `. a> zg`a`.e rDDD<a`B.a`BE<1a`Ba$a>a?a ` Ba<a ` B .a ` B Ea `. a> zg`a`.e rDDD<a`B.a`B;<1a`Ba"a>a?a ` Ba<a ` B .a ` B ;a `. a> zg`a`.e rDDD<a`B.a`B|<1a`Ba!a>a?a ` Ba<a ` B .a ` B |a `. a> zg`a`.e rDDD<a`B.a`B/<1a`Ba a>a?a ` Ba<a ` B .a ` B /a `. a> zg`a`.e tDDDD<a>a  `a`BHa`B_a<a> a`a>Sa?a ` Ba `a ` B:a ` . a> a`/ e rDDD<a`B.a`B4<1a`Baa>a?a ` Ba<a ` B .a ` B 4a `. a> zg`a`.e rDDD<a`B.a`B<1a`Baa>a?a ` Ba<a ` B .a ` B a `. a> zg`a`.e rDDD<a`B.a`BU<1a`Baa>a?a ` Ba<a ` B .a ` B Ua `. a> zg`a`.e rDDD<a`B.a`BF<1a`Baa>a?a ` Ba<a ` B .a ` B Fa `. a> zg`a`.e rDDD<a`B.a`Bt<1a`Baa>a?a ` Ba<a ` B .a ` B ta `. a> zg`a`.e rDDD<a`B.a`BP<1a`Baa>a?a ` Ba<a ` B .a ` B Pa `. a> zg`a`.e DDD<a`B.a`B;a`BL<1a`Baa>a? a ` B a<a ` B .a ` B;a ` BLa `. a> zg`a`.e rDDD<a`B.a`B0<1a`Baa>a?a ` Ba<a ` B .a ` B 0a `. a> zg`a`.e rDDD<a`B.a`B<1a`Baa>a?a ` Ba<a ` B .a ` B a `. a> zg`a`.e DDD<a`B.a`BYa`-<1a`Baa>a? a ` B a<a ` B .a ` BYa ` - a `. a> zg`a`.e DDDEE<a >a  ` a`BHa`B_a<a> a  `a>a ?a ` Ba `a ` . a > a `/  <a >a  ` a`B Ha`B_a<a> a  `a>a ?a ` Ba `a ` B}a ` .  a >  a `/ e DDD<a`B.a`B+a`B3<1a`Baa>a? a ` B a<a ` B .a ` B+a ` B3a `. a> zg`a`.e DDD<a`B.a`B+a`BK<1a`Baa>a? a ` B a<a ` B .a ` B+a ` BKa `. a> zg`a`.e DDD<a`B.a`B+a`Bh<1a`Baa>a? a ` B a<a ` B .a ` B+a ` Bha `. a> zg`a`.e DDEEEa`=a3a`a $Q`a ` B(M` a #Q 3M` a?a ` BIa `a >&a a ` a ` 0 `a bC  ba ` =ma ` B {a >~a ` . a #Q]?`a >~a >ja ` + $Qma ` Bka ` B~M/?`a >~a >a ` + $Qma ` Ba ` B~MM` a ` =?"a 5 a a ` B xa ` a`a `C" e.D`DqDD`$Q`a`B&$Q`Mea`zH`d =DDD>a<a>'a`a`!a<a>'a``a`= d/DpDDD`a`Ba'$Q`a`a`BCeZD` =` =?a`BCa`-?a`B[a>a`.? a`B a>a`. ?a`Bpa9a`a`.?a`BCaDaazq`a`.?a`Bab a`.!?#a`B$[ab a`.&?(a`B)la3+a`.,?.!a`B/Ca<a`B1a`.3?5!a`B6Waba`.8?:!a`B;ea=Oa`a`.>?@!a`BAsa`-C?Ea`BFsa`-HeD`DqD<a`B1a`-e DDDEE<a >a  ` a`BHa`B_a<a> a  `a>a ?a ` Ba `a ` . a > a `/  <a >a  ` a`B Ha`B_a<a> a  `a>a ?a ` Ba `a ` .  a >  a `/ e .DDDEEa`=a`a $Q`a ` B(M` a#Q 3M`a?a ` BIa`a >&a a ` a `0 ma ` B {a >\a ` . a#Q]? `a >\a >ja ` + $Qma ` Bka ` B\M/?`a >\a >a ` + $Qma ` Ba ` B\MM`a`=pa 5# aa `Bxa `a`a>Ha `a >#a  8  e.D`DqDD`$Q`a`B&$Q`Ma`zH`d aDDD<a>a`a`BHa`B_a<a> a`a>a`/a  `a`BHa`BRa<a> a`a>a?a ` Ba `a ` . a> a`/ Cu`a>CX`a`Cu`abCQ`d [DDDDDEE`a`a`a `a 2a``a`aC`a ` Ba`a `. `dDDDD? a`Ba>a`.? a`B[ab(a`.? a`B -a? a`Ba`.? a`Beaa`a`.? a`Bla`a`.eDEEE3aaaama >%a ` 7 $Qma >%a ` 7 a `a ` 7 Ma`$Q `a ` BTd<a `a ` 7 a`a ' $Q `a ` B Td<a `a a zT ` 8 ama >%a ` 7 a $Q2?a `a` *a ` B^a >a ` . a b M` $Q+`a `a ` * $Qma >%a ` 7 a `a `8! <a `a ` 7# a ` B%5a `a ` B'Ta `a `a ` B)Ta < a` 1+ `a ` B-Td QDDD`a?Za`a`*C.`a<@a> a`a`BHa`a`B.a C *e=DDD?a`Ba`-a`BJa`a`B]a`- a`. e DDDka`a`a`BBa`B<a< a>a  `a`a `/ a<a >a  ` a`BHa`B _a<a> a  `a>>a ? a ` B a `a ` .  a >  a `/ <@a`Bala>>a ?a ` Ba `a ` .  a >  zg`a`. e DDDfa`a`a`BBa`B<a< a>a  `a`a `/ a<a >a  ` a`BHa`B _a<a> a  `a>>a ? a ` B a `a ` .  a >  a `/ <@a`Baga>>a ?a ` Ba `a ` .  a >  zg`a`. e GDDDDa<a`BGa`a`BQa`a`Bua`a ` BXa `a `1e haD` =`=<a ` BBa ` BMaAa  ` a `. a`Ba3a`. a`B 9a3 a`.e GDDDDa<a`BRa`a`BQa`a`Bua`a ` BXa `a `1e DP`=`=$3a`)e =DDD> a<a>'a`a`!a<a>'a``a`= d GDDDDa<a`B_a`a`BQa`a`Bua`a ` BXa `a `1e DDDEma>a`7$ma>a`7a`Bca`ab'$Qb'$Q:Nma >a ` 7 a ba ` 7 aba ` 7 a`a`7dma >a ` 7 a ba ` 7 a ba ` 7 a`a ` 7a#Q8ma >a ` 7 a ba ` 7 a ba ` 7 a`a ` 7M`dd DDD`a`BBa`Baa`-a<@a`BaVa`a`. <a>a  `a`B Ha`B _a<a> a`a>)a?a ` Ba `a ` . a> a`/e eDDDDD<a >a  ` a`BHa`B_a<a> a  `a>ma `/ <@a`Baja`a`. e cDDDD<a>a  `a`BHa`B_a<a> a`a>na`/<@a`Baia`a`. e DDDD<a>a  `a`BHa`B_a<a> a`a>=a?a ` Ba `a ` . a> a`/ <@a`B aha>=a?a ` Ba `a ` . a> zg`a`.e D` =` =D`a`Boa3a`.<a>a  `a`BHa`B_a<a> a`a>8a`/ MQa<a >a  ` a`B Ha`B Ra<a> a  `a>7a `  a >  a `/ eWiOQD`=`=?a`BCa`-?a`Ba>a`.? a`B [a>a`. ?a`B2a>a`.?a`Bpa&a`a`.<$Q(<a`BV$Q<a`BVa>a`.Ma`a $Qa?!"a`B"Ca<a >a  ` a`B$a>a<a &'a '(a (a z)q ` z+ ` a -a`./Ny`a`B1a3)a4*a5a z6q`z8`a`.:`a`B#QM$Q`a`B@fa`-B?D"a`BECa`a`.G?Ia`BJCa`-L?Na`BObaba`.Q?Sa`BTa>a`.V?Xa`BYCa`-[?]a`B^a>a`.`?b a`BcDae+afazgq`a`.i a`?DaA<aBaCq`a`.aXaYq`a`.ra`a3a`/e6XD` =` =<a`BBa`Ba>a3a`/eBD` =` =<a`BBa`Baa`a3a`/e;D` =` =<a`BBa`Baa`a3a`/e TD` =` =<a`BBa`Baa`a<1a>,a`a3a`0e^D`=`=]a`a<a ` BBa ` Ba a  ` a <1a >,a  ` a `a ` 0 a`Ba3 a `.  a`B 9a3a`.e hD` =`=<a ` BBa ` Baa  ` a `. a`Ba3a`. a`B 9a3 a`.e zD`=`=<a ` BBa ` Baa  ` a <1a >,a  ` a `/ a`Ba3a`. a`B 9a3 a`.e hD` =`=<a ` BBa ` Baa  ` a `. a`Ba3a`. a`B 9a3 a`.e zD`=`=<a ` BBa ` Baa  ` a <1a >,a  ` a `/ a`Ba3a`. a`B 9a3 a`.e0oDp`=` =<a`BBa`Ba3a`.e gnD` =` =maa`z}a`z}`a<a`BBa`Ba`a3 a`/ eUDpDDD`a`B*a'$Q`a`a`B*C*`a`B.a' $Q`a`a`B .C .e GDDDDa<a`Ba`a`BQa`a`Bua`a ` BXa `a `1e  > p               /  OG GGGGGGGGGGGG $z$}${$z$)-$8$. #GGGGGGGGGG !"' + 7GGGGGGGGGG!GG !#(`o` v(v( + #GGGGGGGGGG !"' + 7GGGGGGGGGG!GG !#(TcT j(j( + #GGGGGGGGGG !"' + 7GGGGGGGGGG!GG !#(_n_ u(u( + 3GGGGGGGGGG!GG !"'@O@ V'V' 3GGGGGGGGGG!GG !"'M\ M h'h' /G GGGIGGIGGIGGIGG!&+ /  )GGGGIGGIGGIGG!&+ /         1                      k      k  k  k  k  k  k   3        GGGGIGGIGGGGIGGGGJGG"GG   8-  3 GVfG pF !K!  GG EGGGGIGGIGGGG!&+IXI ^+^+ /;J; PP/  7GGGGGGGGGGJGG !"'KZK `'`' + 7GGGGGGGGGG!GG !#(JYJ `(`( + #GGGGGGGGGG !"' + 3GGGGGGGGGG!GG !#(P_P f(f( 7GGGGGGGGGGJGG !"'FUF ]']' + 7GGGGGGGGGGJGG !"';J; R'R' +         1                        k      k     /               GIGGJGGJGGIGGJGGIGGGGGGG"GG  8-  - ;JT; ^:}} }#3r3#OJGG!& &  $ ) 4 1GGGGIGGIGGKGG   % +8+  GGGGGGGGGG            0GGGGIGGIGGKGG   % +8+GGGGGGGGGG GGGGGGGGGG GGGGGGGGGG GGGGGGGGGG GGGGGGGGGG GGGGGGGGGG GGGGGGGGGG GGGGGGGGGG GGGGGGGGGG GGGGGGGGGG           .GGGGGGGGGGKGG2!&+IM+M+GGGGGGGGGG GGGGGGGGGG GGGGGGGGGG GGGGGGGGGG GGGGGGGGGG    k       <  ,GGGGGGGGGG  %+ HH% ,GGGGGGGGGG  %+ QQ% ,GGGGGGGGGG  %+ CC% ,GGGGGGGGGG  %+ LL% ,GGGGGGGGGG  %+ LL%             2GGGGGGGGGG!GG= !"'6E 6 Q'Q' ,GGGGGGGGGG  %+ EE% ,GGGGGGGGGG  %+ DD% ,GGGGGGGGGG  %+ EE% ,GGGGGGGGGG  %+ HH% ,GGGGGGGGGG  %+ KK% ,GGGGGGGGGG  %+ PP% ,GGGGGGGGGG  %+ MM% ,GGGGGGGGGG  %+ AA% ,GGGGGGGGGG  %+ FF% ,GGGGGGGGGG  %+ TT%             z          OG GGGGGGGGG!GGJGG !"'ete {'{' !"'l{ l '' ,GGGGGGGGGG  %+ SS% ,GGGGGGGGGG  %+ VV% ,GGGGGGGGGG  %+ MM%         1        \                     /        GGGGIGGGGGG"GGJGGIGGJGG  8-  - ;JT; ^:}} }GG" "  1GGGGIGGIGGKGG   % +8+#GGGGIGGIGG !!     k  Z (GGGGIGGIGG$GG   GGGGIGGIGG'    k  k  k    k  k  k  m  k  k  k;GGGG >   GGGGGGGGGG             z          MG GGGGGGJGGGGG!GG !"'O^O e'e' !"'Q`Q f'f'         1                       /           GGGGIGGIGGJGGGG"GGMGG   8-  , 9HQ9 [8yy yMGG   1GGGGIGGIGGKGG   % +8+     z  #GGGGGGGGGG !"' +             z  7GGGGGGGGGG!GG !#(UdU k(k( +   M   Z \ %GIGGIGGGGGGG,  M      \  \  f _ FGGGGIGG$GGMGGIGGNGGNGG-5#  M   \  \  \  \   ` 8GGGGIGGIGG$GG{  M      \  g ^ BGGGGIGG$GGMGGIGGNGGNGG-5#    k  k  k  k  3GGGGIGGIGGNGG             /  !    /  k  "   m                  >      N        m  G GGGIGGIGGNGGNGGNGGNGGOGG$/$mxmm$, %7  1== Y`YrY~Y  T`  . >F V        \     +GGGGIGGIGG%"E     GGGGIGGIGG'        /           z k       <  YGIGGIGGJGGGGGOGG39!#<K< S#S# '.=. EE'  YGIGGIGGJGGGGGOGG39!#<K< S#S# '.=. EE'  ,GGGGIGGIGGOGG    ) 6 C        GGGG'>{!,GGGGIGGIGGOGG    ) 6 C l  OGGGG  "       #GGGGIGGIGG %#%    /      ,GGGGIGGIGGOGG    ( 5 B    >    / M  l  g ?          !                 Z    uG GGGIGGIGGOGG*#GG,7, #%$$(3(d(g(j(!(3(d(g(j(!,!]!`!c!(!"#   /   m          :GGGGIGGIGG#GG ' !#5D5 S#S#$     z  /G GGGIGGIGGIGGIGG!&+ /      z  )GGGGIGGIGGIGG!&+ /             z k       <  EGGGGIGGIGGGG!&+>M> S+S+ /0?0 EE/     m   u  /          :GGGGGG1  !"' !GG !#(QW(W( y%    k  k  k  k          /  k              k   x  m     l   k  k  k    k  ^    k  ^    k  ^    k  ^    k  ^    k  ^    k  ^    k  ^    k  ^    k  ^    k  ^    k  ^    k  ^    k  ^    k  ^    k  ^    k  b    k  b    k  b    k  b    k  b    k  b    k  b    k  b    k  b    k  b    k  b    k  b    k  b    k  b    k  b    k  b    k  b    k  bGGGGGG %$- $C VC$] % <AGS|SG 8C8   H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H &GGGG0=GGGG%-     GGGG<"(   w GGGG+ '      GGGG-3> (   1      x   &GGGGOGG -3>y)GGGG2yGGGG=Cy     x   GGGG1y      x   GGGG<By    GGGG#*  k ]  2    !GGGGGG  -<+    k  ]  k  Z 0GGGGIGGIGG$GG & " "  ,,GGGGIGGIGGOGG    ( 5 B#[#S-]*2'7(*,{,,4M4Z  z!"$a$$d%%Q&'))*+[--3H3x3444PK !:||ets/pages/AbilityContextPage.jsvar _1e36f0fd2df677c57b79e15aad3634be; /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\AbilityContextController.ts": /*!*****************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\feature\AbilityContextController.ts ***! \*****************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_promptAction_1 = globalThis.requireNapi('promptAction') || (isSystemplugin('promptAction', 'ohos') ? globalThis.ohosplugin.promptAction : isSystemplugin('promptAction', 'system') ? globalThis.systemplugin.promptAction : undefined); const Logger_1 = __importDefault(__webpack_require__(/*! ../util/Logger */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts")); const TAG = 'AbilityContextController'; const accountId = 100; const resultCode = 100; const connectionNumber = 0; const permissions = ['']; let want = { bundleName: 'ohos.samples.stagemodel', abilityName: 'TestAbility', moduleName: 'entry' }; class AbilityContextController { constructor(context) { this.context = context; } regOnRelease(caller) { try { caller.onRelease((msg) => { Logger_1.default.info(TAG, `caller onRelease is called ${msg}`); }); Logger_1.default.info(TAG, 'caller register OnRelease succeed'); } catch (error) { Logger_1.default.error(TAG, `caller register OnRelease failed with ${error}`); } } // 启动Ability,对应FA的StartServiceAbility startAbility() { this.context.startAbility(want, (error) => { Logger_1.default.info(TAG, `error.code: ${JSON.stringify(error.code)}`); }); } // 启动Ability并在结束的时候返回执行结果,对应FA的startAbilityForResult startAbilityForResult() { this.context.startAbilityForResult({ deviceId: '', bundleName: 'ohos.samples.stagemodel', abilityName: 'TestAbility' }, (error, result) => { Logger_1.default.info(TAG, `startAbilityForResult AsyncCallback is called, error.code: ${JSON.stringify(error)}`); Logger_1.default.info(TAG, `startAbilityForResult AsyncCallback is called, result.resultCode: ${JSON.stringify(result.resultCode)}`); }); } // 启动一个Ability并在该Ability帐号销毁时返回执行结果, startAbilityForResultWithAccount() { this.context.startAbilityWithAccount(want, accountId, (error, data) => { Logger_1.default.info(TAG, `startAbilityWithAccount fail, error: ${JSON.stringify(error)}`); Logger_1.default.info(TAG, `startAbilityWithAccount success, data: ${JSON.stringify(data)}`); }); } // 启动一个新的ServiceExtensionAbility, startServiceExtensionAbility() { this.context.startServiceExtensionAbility(want) .then(() => { Logger_1.default.info(TAG, `startServiceExtensionAbility success`); _ohos_promptAction_1.showToast({ message: 'startServiceExtensionAbility success' }); }) .catch((error) => { Logger_1.default.error(TAG, `startServiceExtensionAbility fail, error: ${JSON.stringify(error)}`); _ohos_promptAction_1.showToast({ message: 'startServiceExtensionAbility' }); }); } // 启动一个新的ServiceExtensionAbility, startServiceExtensionAbilityWithAccount() { this.context.startServiceExtensionAbilityWithAccount(want, accountId) .then(() => { Logger_1.default.info(TAG, `startServiceExtensionAbilityWithAccount success`); _ohos_promptAction_1.showToast({ message: 'startServiceExtensionAbilityWithAccount success' }); }) .catch((error) => { Logger_1.default.error(TAG, `startServiceExtensionAbilityWithAccount fail, error: ${JSON.stringify(error)}`); _ohos_promptAction_1.showToast({ message: 'startServiceExtensionAbilityWithAccount' }); }); } // 停止同一应用程序内的服务, stopServiceExtensionAbility() { this.context.stopServiceExtensionAbility(want) .then(() => { Logger_1.default.info(TAG, `stopServiceExtensionAbility success`); _ohos_promptAction_1.showToast({ message: 'stopServiceExtensionAbility success' }); }) .catch((error) => { Logger_1.default.error(TAG, `stopServiceExtensionAbility fail, error: ${JSON.stringify(error)}`); _ohos_promptAction_1.showToast({ message: 'stopServiceExtensionAbility' }); }); } // 使用帐户停止同一应用程序内的服务, stopServiceExtensionAbilityWithAccount() { this.context.stopServiceExtensionAbilityWithAccount(want, accountId) .then(() => { Logger_1.default.info(TAG, `stopServiceExtensionAbilityWithAccount success`); _ohos_promptAction_1.showToast({ message: 'stopServiceExtensionAbilityWithAccount success' }); }) .catch((error) => { Logger_1.default.error(TAG, `stopServiceExtensionAbilityWithAccount fail, error: ${JSON.stringify(error)}`); _ohos_promptAction_1.showToast({ message: 'stopServiceExtensionAbilityWithAccount' }); }); } // 停止Ability自身,对应FA的terminateSelf terminateSelf() { this.context.terminateSelf((error) => { Logger_1.default.info(TAG, `terminateSelf result: ${JSON.stringify(error)}`); }); } // 停止Ability,配合startAbilityForResult使用,返回给接口调用方AbilityResult信息,对应FA的terminateSelfWithResult terminateSelfWithResult() { const abilityResult = { want, resultCode }; this.context.terminateSelfWithResult(abilityResult, (error) => { Logger_1.default.info(TAG, `terminateSelfWithResult is called: ${JSON.stringify(error.code)}`); }); } // 使用AbilityInfo.AbilityType.SERVICE模板将当前Ability连接到一个Ability,对应FA的ConnectService connectAbility() { const options = { onConnect(elementName, remote) { Logger_1.default.info(TAG, `onConnect`); _ohos_promptAction_1.showToast({ message: 'onConnect' }); }, onDisconnect(elementName) { Logger_1.default.info(TAG, `onDisconnect`); _ohos_promptAction_1.showToast({ message: 'onDisconnect' }); }, onFailed(code) { Logger_1.default.info(TAG, `connectAbility: ${JSON.stringify(code)}`); _ohos_promptAction_1.showToast({ message: `connectAbility: ${JSON.stringify(code)}` }); } }; const result = this.context.connectAbility(want, options); Logger_1.default.info(TAG, `connectAbilityResult: ${JSON.stringify(result)}`); _ohos_promptAction_1.showToast({ message: `connectAbilityResult: ${JSON.stringify(result)}` }); } // 使用AbilityInfo.AbilityType.SERVICE模板和account将当前Ability连接到一个Ability。 connectAbilityWithAccount() { const options = { onConnect(elementName, remote) { Logger_1.default.info(TAG, `onConnect`); _ohos_promptAction_1.showToast({ message: 'onConnect' }); }, onDisconnect(elementName) { Logger_1.default.info(TAG, `onDisconnect`); _ohos_promptAction_1.showToast({ message: 'onDisconnect' }); }, onFailed(code) { Logger_1.default.info(TAG, `connectAbilityWithAccount: ${JSON.stringify(code)}`); _ohos_promptAction_1.showToast({ message: `connectAbilityWithAccount: ${JSON.stringify(code)}` }); } }; const result = this.context.connectAbility(want, options); Logger_1.default.info(TAG, `connectAbilityResult: ${JSON.stringify(result)}`); _ohos_promptAction_1.showToast({ message: `connectAbilityResult: ${JSON.stringify(result)}` }); } // 断开连接,对应FA模型的disconnectService disconnectAbility() { this.context.disconnectAbility(connectionNumber).then((data) => { Logger_1.default.info(TAG, `disconnectAbility success, data: ${JSON.stringify(data)}`); _ohos_promptAction_1.showToast({ message: 'disconnectAbility success' }); }).catch((error) => { Logger_1.default.error(TAG, `disconnectAbility fail, error: ${JSON.stringify(error)}`); _ohos_promptAction_1.showToast({ message: 'disconnectAbility' }); }); } // 根据account启动Ability startAbilityWithAccount() { let options = { windowMode: 0 }; this.context.startAbilityWithAccount(want, accountId, options) .then(() => { Logger_1.default.info(TAG, `startAbilityWithAccount success`); _ohos_promptAction_1.showToast({ message: 'startAbilityWithAccount success' }); }) .catch((error) => { Logger_1.default.error(TAG, `startAbilityWithAccount fail, error: ${JSON.stringify(error)}`); }); } // 拉起弹窗请求用户授权,对应FA模型的AppContext中的requestPermissionsFromUser requestPermissionsFromUser() { this.context.requestPermissionsFromUser(permissions, (result) => { Logger_1.default.info(TAG, `requestPermissionsFromUser: ${JSON.stringify(result)}`); _ohos_promptAction_1.showToast({ message: 'requestPermissionsFromUser success' }); }); } // 设置ability在任务中显示的名称, setMissionLabel() { this.context.setMissionLabel('test', (result) => { Logger_1.default.info(TAG, `setMissionLabel: ${JSON.stringify(result)}`); _ohos_promptAction_1.showToast({ message: 'setMissionLabel success' }); }); } // 查询ability是否在terminating状态。 isTerminating() { const isTerminating = this.context.isTerminating(); _ohos_promptAction_1.showToast({ message: 'isTerminating success' }); Logger_1.default.info(TAG, `ability state: ${JSON.stringify(isTerminating)}`); } } exports["default"] = AbilityContextController; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\AbilityContextPage.ets?entry": /*!****************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\AbilityContextPage.ets?entry ***! \****************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); let __generate__Id = 0; function generateId() { return "AbilityContextPage_" + ++__generate__Id; } /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var _ohos_prompt_1 = globalThis.requireNapi('prompt') || (isSystemplugin('prompt', 'ohos') ? globalThis.ohosplugin.prompt : isSystemplugin('prompt', 'system') ? globalThis.systemplugin.prompt : undefined); const AbilityContextController_1 = __importDefault(__webpack_require__(/*! ../feature/AbilityContextController */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\AbilityContextController.ts")); const PublicTitleBar_1 = __webpack_require__(/*! ./component/PublicTitleBar */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\PublicTitleBar.ets"); class AbilityContextPage extends View { constructor(compilerAssignedUniqueChildId, parent, params, localStorage) { super(compilerAssignedUniqueChildId, parent, localStorage); this.abilityContext = undefined; this.appContext = null; this.updateWithValueParams(params); } updateWithValueParams(params) { if (params.abilityContext !== undefined) { this.abilityContext = params.abilityContext; } if (params.appContext !== undefined) { this.appContext = params.appContext; } } aboutToBeDeleted() { SubscriberManager.Get().delete(this.id()); } render() { Column.create(); Column.width('100%'); Column.height('100%'); Column.backgroundColor('#F1F3F5'); Column.padding({ left: '3%', right: '3%' }); let earlierCreatedChild_2 = (this && this.findChildById) ? this.findChildById("2") : undefined; if (earlierCreatedChild_2 == undefined) { View.create(new PublicTitleBar_1.PublicTitleBar("2", this, { textName: { "id": 16777227, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" } })); } else { earlierCreatedChild_2.updateWithValueParams({ textName: { "id": 16777227, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" } }); if (!earlierCreatedChild_2.needsUpdate()) { earlierCreatedChild_2.markStatic(); } View.create(earlierCreatedChild_2); } Scroll.create(); Scroll.layoutWeight(1); Scroll.width('100%'); Column.create(); Column.width('100%'); Button.createWithLabel({ "id": 16777278, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.abilityContext.startAbility(); }); Button.pop(); Button.createWithLabel({ "id": 16777280, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.abilityContext.startAbilityForResult(); }); Button.pop(); Button.createWithLabel({ "id": 16777281, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.abilityContext.startAbilityForResultWithAccount(); }); Button.pop(); Button.createWithLabel({ "id": 16777283, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.abilityContext.startServiceExtensionAbility(); }); Button.pop(); Button.createWithLabel({ "id": 16777284, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.abilityContext.startServiceExtensionAbilityWithAccount(); }); Button.pop(); Button.createWithLabel({ "id": 16777285, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.abilityContext.stopServiceExtensionAbility(); }); Button.pop(); Button.createWithLabel({ "id": 16777286, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.abilityContext.stopServiceExtensionAbilityWithAccount(); }); Button.pop(); Button.createWithLabel({ "id": 16777288, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.abilityContext.terminateSelf(); }); Button.pop(); Button.createWithLabel({ "id": 16777289, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.abilityContext.terminateSelfWithResult(); }); Button.pop(); Button.createWithLabel({ "id": 16777237, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.abilityContext.connectAbility(); }); Button.pop(); Button.createWithLabel({ "id": 16777238, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.abilityContext.connectAbilityWithAccount(); }); Button.pop(); Button.createWithLabel({ "id": 16777246, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.abilityContext.disconnectAbility(); }); Button.pop(); Button.createWithLabel({ "id": 16777282, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.abilityContext.startAbilityWithAccount(); }); Button.pop(); Button.createWithLabel({ "id": 16777271, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.abilityContext.requestPermissionsFromUser(); }); Button.pop(); Button.createWithLabel({ "id": 16777274, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.abilityContext.setMissionLabel(); }); Button.pop(); Button.createWithLabel({ "id": 16777261, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.abilityContext.isTerminating(); }); Button.pop(); // 指示有关能力的配置信息,对应FA模型的getAbilityInfo方法 Button.createWithLabel({ "id": 16777228, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.appContext.abilityInfo; _ohos_prompt_1.showToast({ message: `${JSON.stringify(this.appContext.abilityInfo)}` }); }); // 指示有关能力的配置信息,对应FA模型的getAbilityInfo方法 Button.pop(); // 指示有关模块的配置信息,对应FA模型的getHapModuleInfo()方法 Button.createWithLabel({ "id": 16777239, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.appContext.currentHapModuleInfo; _ohos_prompt_1.showToast({ message: `${JSON.stringify(this.appContext.currentHapModuleInfo)}` }); }); // 指示有关模块的配置信息,对应FA模型的getHapModuleInfo()方法 Button.pop(); // 指示配置信息。 Button.createWithLabel({ "id": 16777236, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.appContext.config; _ohos_prompt_1.showToast({ message: `${JSON.stringify(this.appContext.config)}` }); }); // 指示配置信息。 Button.pop(); // 指示访问应用程序资源的能力。 Button.createWithLabel({ "id": 16777272, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.appContext.resourceManager; _ohos_prompt_1.showToast({ message: `${JSON.stringify(this.appContext.resourceManager)}` }); }); // 指示访问应用程序资源的能力。 Button.pop(); // 指示有关应用程序的配置信息。 Button.createWithLabel({ "id": 16777229, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.appContext.applicationInfo; _ohos_prompt_1.showToast({ message: `${JSON.stringify(this.appContext.applicationInfo)}` }); }); // 指示有关应用程序的配置信息。 Button.pop(); // 指示应用缓存目录,对应FA模型appContext下的getCacheDir()方法 Button.createWithLabel({ "id": 16777235, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.appContext.cacheDir; _ohos_prompt_1.showToast({ message: `${JSON.stringify(this.appContext.cacheDir)}` }); }); // 指示应用缓存目录,对应FA模型appContext下的getCacheDir()方法 Button.pop(); // 指示应用程序临时目录。 Button.createWithLabel({ "id": 16777287, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.appContext.tempDir; _ohos_prompt_1.showToast({ message: `${JSON.stringify(this.appContext.tempDir)}` }); }); // 指示应用程序临时目录。 Button.pop(); // 指示应用程序文件目录,对应FA模型的getFilesDir()方法 Button.createWithLabel({ "id": 16777251, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.appContext.filesDir; _ohos_prompt_1.showToast({ message: `${JSON.stringify(this.appContext.filesDir)}` }); }); // 指示应用程序文件目录,对应FA模型的getFilesDir()方法 Button.pop(); // 指示应用程序数据库目录。 Button.createWithLabel({ "id": 16777242, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.appContext.databaseDir; _ohos_prompt_1.showToast({ message: `${JSON.stringify(this.appContext.databaseDir)}` }); }); // 指示应用程序数据库目录。 Button.pop(); // 指示应用程序首选项目录。 Button.createWithLabel({ "id": 16777269, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.appContext.preferencesDir; _ohos_prompt_1.showToast({ message: `${JSON.stringify(this.appContext.preferencesDir)}` }); }); // 指示应用程序首选项目录。 Button.pop(); // 指示应用程序分发文件目录,对应FA模型的getOrCreateDistributedDir()方法 Button.createWithLabel({ "id": 16777247, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.appContext.distributedFilesDir; _ohos_prompt_1.showToast({ message: `${JSON.stringify(this.appContext.distributedFilesDir)}` }); }); // 指示应用程序分发文件目录,对应FA模型的getOrCreateDistributedDir()方法 Button.pop(); // 指示当前设备的屏幕方向。对应FA的getDisplayOrientation() Button.createWithLabel({ "id": 16777245, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.appContext.config.direction; _ohos_prompt_1.showToast({ message: `${JSON.stringify(this.appContext.config.direction)}` }); }); // 指示当前设备的屏幕方向。对应FA的getDisplayOrientation() Button.pop(); // 指示文件区域。 Button.createWithLabel({ "id": 16777230, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.appContext.area; _ohos_prompt_1.showToast({ message: `${JSON.stringify(this.appContext.area)}` }); }); // 指示文件区域。 Button.pop(); // 指示上下文是FA模式或阶段模式。 Button.createWithLabel({ "id": 16777277, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.appContext.stageMode; _ohos_prompt_1.showToast({ message: `${JSON.stringify(this.appContext.stageMode)}` }); }); // 指示上下文是FA模式或阶段模式。 Button.pop(); // 获取应用上下文信息,对应FA模型的getApplicationContext()方法 Button.createWithLabel({ "id": 16777256, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.appContext.getApplicationContext(); _ohos_prompt_1.showToast({ message: `${JSON.stringify(this.appContext.getApplicationContext())}` }); }); // 获取应用上下文信息,对应FA模型的getApplicationContext()方法 Button.pop(); // 获取当前ability的捆绑包名称,对应FA模型的getBundleName() Button.createWithLabel({ "id": 16777233, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.appContext.abilityInfo.bundleName; _ohos_prompt_1.showToast({ message: `${JSON.stringify(this.appContext.abilityInfo.bundleName)}` }); }); // 获取当前ability的捆绑包名称,对应FA模型的getBundleName() Button.pop(); // 获取有关当前进程的信息,包括进程名称,对应FA模型的getProcessInfo() Button.createWithLabel({ "id": 16777244, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.appContext.abilityInfo.descriptionId; _ohos_prompt_1.showToast({ message: `${JSON.stringify(this.appContext.abilityInfo.descriptionId)}` }); }); // 获取有关当前进程的信息,包括进程名称,对应FA模型的getProcessInfo() Button.pop(); // 获取有关当前进程的信息,包括进程ID,对应FA模型的getProcessInfo() Button.createWithLabel({ "id": 16777262, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.appContext.abilityInfo.name; _ohos_prompt_1.showToast({ message: `${JSON.stringify(this.appContext.abilityInfo.name)}` }); }); // 获取有关当前进程的信息,包括进程ID,对应FA模型的getProcessInfo() Button.pop(); Column.pop(); Scroll.pop(); Column.pop(); } aboutToAppear() { this.appContext = getContext(this); this.abilityContext = new AbilityContextController_1.default(this.appContext); } } function __Button__fancy(click) { Button.width('60%'); Button.height(40); Button.align(Alignment.Center); Button.margin({ top: 30 }); Button.onClick(click); } loadDocument(new AbilityContextPage("1", undefined, {})); /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\PublicTitleBar.ets": /*!****************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\component\PublicTitleBar.ets ***! \****************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.PublicTitleBar = void 0; let __generate__Id = 0; function generateId() { return "PublicTitleBar_" + ++__generate__Id; } /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var _ohos_router_1 = globalThis.requireNapi('router') || (isSystemplugin('router', 'ohos') ? globalThis.ohosplugin.router : isSystemplugin('router', 'system') ? globalThis.systemplugin.router : undefined); class PublicTitleBar extends View { constructor(compilerAssignedUniqueChildId, parent, params, localStorage) { super(compilerAssignedUniqueChildId, parent, localStorage); this.textName = undefined; this.updateWithValueParams(params); } updateWithValueParams(params) { if (params.textName !== undefined) { this.textName = params.textName; } } aboutToBeDeleted() { SubscriberManager.Get().delete(this.id()); } render() { Row.create(); Row.height('8%'); Row.width('100%'); Row.padding({ left: 15, right: 15 }); Image.create({ "id": 16777295, "type": 20000, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); Image.width(32); Image.height(32); Image.onClick(() => { _ohos_router_1.back(); }); Text.create(this.textName); Text.fontSize(24); Text.margin({ left: 80 }); Text.pop(); Row.pop(); } } exports.PublicTitleBar = PublicTitleBar; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts": /*!********************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\util\Logger.ts ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_hilog_1 = globalThis.requireNapi('hilog') || (isSystemplugin('hilog', 'ohos') ? globalThis.ohosplugin.hilog : isSystemplugin('hilog', 'system') ? globalThis.systemplugin.hilog : undefined); class Logger { constructor(prefix) { this.domain = 0xFF00; this.prefix = ''; this.format = '%{public}s, %{public}s'; this.prefix = prefix; this.domain = 0xFF00; } debug(...args) { _ohos_hilog_1.debug(this.domain, this.prefix, this.format, args); } info(...args) { _ohos_hilog_1.info(this.domain, this.prefix, this.format, args); } warn(...args) { _ohos_hilog_1.warn(this.domain, this.prefix, this.format, args); } error(...args) { _ohos_hilog_1.error(this.domain, this.prefix, this.format, args); } } exports["default"] = new Logger('[Sample_StageModel]'); /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ var commonCachedModule = globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] ? globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId]: null; /******/ if (commonCachedModule) { return commonCachedModule.exports; } /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ function isCommonModue(moduleId) { /******/ if (globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"]) { /******/ const length = globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"].length; /******/ switch (length) { /******/ case 1: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId]; /******/ case 2: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId] || /******/ globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][1][1][moduleId]; /******/ } /******/ } /******/ return undefined; /******/ } /******/ if (globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] && String(moduleId).indexOf("?name=") < 0 && isCommonModue(moduleId)) { /******/ globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId] = module; /******/ } /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = __webpack_require__("E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\AbilityContextPage.ets?entry"); /******/ _1e36f0fd2df677c57b79e15aad3634be = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=AbilityContextPage.js.mapPK !: Hw<w<#ets/pages/AbilityContextPage.js.map{"version":3,"file":"./pages/AbilityContextPage.js","mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;GAaG;;;;;AAEH,4EAAuC;AACvC,2LAAmC;AAEnC,MAAM,GAAG,GAAW,0BAA0B;AAC9C,MAAM,SAAS,GAAG,GAAG;AACrB,MAAM,UAAU,GAAG,GAAG;AACtB,MAAM,gBAAgB,GAAG,CAAC;AAC1B,MAAM,WAAW,GAAG,CAAC,EAAE,CAAC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vB,WAAM,GAAW,EAAE;QACnB,WAAM,GAAW,wBAAwB;QAG/C,IAAI,CAAC,MAAM,GAAG,MAAM;QACpB,IAAI,CAAC,MAAM,GAAG,MAAM;IACtB,CAAC;IAED,KAAK,CAAC,GAAG,IAAW;QAClB,qBAAK,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM;IACnD,CAAC;IAED,IAAI,CAAC,GAAG,IAAW;QACjB,qBAAK,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM;IAClD,CAAC;IAED,IAAI,CAAC,GAAG,IAAW;QACjB,qBAAK,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM;IAClD,CAAC;IAED,KAAK,CAAC,GAAG,IAAW;QAClB,qBAAK,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM;IACnD,CAAC;CACF;AAED,qBAAe,IAAI,MAAM,CAAC,qBAAqB,CAAC;;;;;;;UC5ChD;UACA;;UAEA;UACA;UACA;UACA,2BAA2B;UAC3B;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;UACA;;;;UEvCA;UACA;UACA;UACA","sources":["webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\AbilityContextController.ts","webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\AbilityContextPage.ets","webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\PublicTitleBar.ets","webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts","webpack:///webpack/bootstrap","webpack:///webpack/before-startup","webpack:///webpack/startup","webpack:///webpack/after-startup"],"names":[],"sourceRoot":"","nameMap":["_ohos_prompt_1","prompt"]}PK !:)a#88ets/pages/BundlePage.abcPANDA(܇8<5L p5ppojnoonooDknngnnJn?nn nmm+kmmnUmnk%mmrnmvphpm&lk9kljokYlwkjnkll"njlj8HP  (3EYerziCa  ( : ? G O b g m s     ' = J Y e n t   6 > O V _ o w   8 _ |   ' 3 < B O U n z #:FNT9Uq5Q!=YuX`<jjjjk+k9kDkwkkkkl&lYllllmm%mUmmmmmmn nn"n?nJngnrnnnnnnnnoojoooop5phpvppjv'L_ESTypeAnnotation;-%{public}s, %{public}s .#1# .#10# .#11# .#12# .#13# .#14# .#15# .#16# .#17# .#18# .#19# .#2# .#20#.#21#generateId .#25# .#26# .#27# .#3# .#4# .#5# .#6# .#7# .#8# .#9##.BundleController.BundlePage.Logger.PublicTitleBar!.__Button__fancy).__webpack_require__.generateId.isCommonModue1 100%260%8% ?name=Alignment!BundleController%BundleController_1BundleFlagBundlePage_ Button Center ColumnE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\feature\BundleController.tsE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\BundlePage.ets?entryE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\component\PublicTitleBar.etsE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\util\Logger.ts9GET_BUNDLE_INFO_WITH_ABILITYMGET_BUNDLE_INFO_WITH_EXTENSION_ABILITY?GET_BUNDLE_INFO_WITH_HAP_MODULEGet Image JSONLogger_1 Object3Operation failed. Cause: 9Operation successful. Data: PublicTitleBarPublicTitleBar_!PublicTitleBar_1Row Scroll String#SubscriberManagerTAG Text View'[Sample_StageModel]C_1e36f0fd2df677c57b79e15aad3634beq__common_module_cache___1e36f0fd2df677c57b79e15aad3634be__esModule__generate__Id__importDefault align back bundle)bundle.bundleManagerbundleFlagsbundleManagerbundleNamebundles callEcaller onRelease is called error: Ccaller onRelease is called sucess9caller onRelease is called: 7caller onRelease is error: catch!codePath error: codePath: 3com.example.myapplication createcreateWithLabel debugdefaultdefineProperty deletedescription domainentityTypeentryDir errorexportsfindChildByIdfontSize formatgetAbilityInfoAgetAbilityInfo() failed. Cause: %getApplicationInfo;getApplicationInfo successfulKgetApplicationInfo successful. Data: 7getApplicationInfo. Cause: getBundleInfo)getDispatcherVersionMgetDispatcherVersion() failed. Cause: height hilogidindexOf infoisSystempluginlayoutWeight lengthloadDocument marginmarkStaticmessage nameneedsUpdate ohos/ohos.samples.stagemodelohospluginonClickpadding paramspop prefixprocesspromptActionprototyperequireNapi routershowToaststringify systemsystemplugintargetVersiontextName then+updateWithValueParamsuse strict userId warn[webpackChunk_1e36f0fd2df677c57b79e15aad3634be width3L_ESSlotNumberAnnotation;@'L_ESTypeInfoRecord;#1#L_GLOBAL;1rO^qwq&}Ęq+@}0q0}q5~PqCrqUUmqhG4r?skqVtxqzQu(qutquququגqvq7vq[vqyq {2q{Ηq |bq HMrNrO Er rrjɋyr q pq0zq0z!r 6yq<'brqry*br [.r Zor};r3fr Ur ?|rHTWHrUr !¢kq#\ryUr4funcObjany0newTarget'__webpack_exports__ 0thisE:/Projects/DevEco/applications_app_samples/ability/StageModel/entry/build/default/intermediates/assets_jsbundle/default/ets/pages/BundlePage_.js #10#err data #11#4newTarget thisBundlePagegenerateId'__webpack_require__/__unused_webpack_module #12#mod #13# #14# #15# #16# #17# #18# #19##2# #20##21#generateId3#22#updateWithValueParams)#23#aboutToBeDeleted#24#render #25# #26# Logger #27##3##4##5##6#digital#7#processData#8#entryDirData#9#;compilerAssignedUniqueChildIdlocalStorage parent__Button__fancy clickisCommonModue modulecachedModule%commonCachedModulemoduleId!aboutToBeDeleted argsfunc_main_0var _1e36f0fd2df677c57b79e15aad3634be; /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\BundleController.ts": /*!*********************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\feature\BundleController.ts ***! \*********************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_bundle_bundleManager_1 = globalThis.requireNapi('bundle.bundleManager') || (isSystemplugin('bundle.bundleManager', 'ohos') ? globalThis.ohosplugin.bundle.bundleManager : isSystemplugin('bundle.bundleManager', 'system') ? globalThis.systemplugin.bundle.bundleManager : undefined); var _ohos_promptAction_1 = globalThis.requireNapi('promptAction') || (isSystemplugin('promptAction', 'ohos') ? globalThis.ohosplugin.promptAction : isSystemplugin('promptAction', 'system') ? globalThis.systemplugin.promptAction : undefined); const Logger_1 = __importDefault(__webpack_require__(/*! ../util/Logger */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts")); const TAG = 'BundleController'; let bundleName = "com.example.myapplication"; let bundleFlags = 0; let userId = 100; class BundleController { // 获取有关当前应用程序的信息,对应FA模型的getApplicationInfo() getApplicationInfo() { _ohos_bundle_bundleManager_1.getApplicationInfo(bundleName, bundleFlags, userId) .then((data) => { Logger_1.default.info(TAG, `getApplicationInfo successful. Data: ${JSON.stringify(data)}`); _ohos_promptAction_1.showToast({ message: `getApplicationInfo successful` }); }).catch((error) => { Logger_1.default.error(TAG, `getApplicationInfo. Cause: ${JSON.stringify(error)}`); _ohos_promptAction_1.showToast({ message: `getApplicationInfo. Cause: ${JSON.stringify(error)}` }); }); } // 指示应用程序的实体类型,对应FA模型中AppContext的getAppType() entityType() { _ohos_bundle_bundleManager_1.getApplicationInfo('ohos.samples.stagemodel', 0, (error, data) => { if (error) { Logger_1.default.info(TAG, `caller onRelease is error: ${error}`); } else { let digital = data.description; Logger_1.default.info(TAG, `caller onRelease is called: ${digital}`); _ohos_promptAction_1.showToast({ message: `caller onRelease is called sucess` }); } }); } // 应用程序的进程,如果用户未设置,则值等于bundleName process() { _ohos_bundle_bundleManager_1.getApplicationInfo('ohos.samples.stagemodel', 0, (error, data) => { if (error) { Logger_1.default.info(TAG, `caller onRelease is called error: ${error}`); } else { let processData = data.process; Logger_1.default.info(TAG, `caller onRelease is called: ${processData}`); _ohos_promptAction_1.showToast({ message: `caller onRelease is called sucess` }); } }); } // 获取应用程序的本地根目录,对应FA模型的getOrCreateLocalDir() entryDir() { _ohos_bundle_bundleManager_1.getApplicationInfo('ohos.samples.stagemodel', 0, (error, data) => { if (error) { Logger_1.default.info(TAG, `codePath error: ${error}`); } else { let entryDirData = data.name; Logger_1.default.info(TAG, `codePath: ${entryDirData}`); _ohos_promptAction_1.showToast({ message: `codePath: ${entryDirData}` }); } }); } // 获取应用的版本信息,对应FA模型的getAppVersionInfo() getDispatcherVersion() { let bundleName = "ohos.samples.stagemodel"; let bundleFlags = _ohos_bundle_bundleManager_1.BundleFlag.GET_BUNDLE_INFO_WITH_HAP_MODULE | _ohos_bundle_bundleManager_1.BundleFlag.GET_BUNDLE_INFO_WITH_EXTENSION_ABILITY; try { _ohos_bundle_bundleManager_1.getBundleInfo(bundleName, bundleFlags, (err, data) => { if (err) { Logger_1.default.error(TAG, `getDispatcherVersion() failed. Cause: ${JSON.stringify(err.message)}`); _ohos_promptAction_1.showToast({ message: `Operation failed. Cause: ${JSON.stringify(err)}` }); } else { _ohos_promptAction_1.showToast({ message: `Operation successful. Data: ${JSON.stringify(data.targetVersion)}` }); } }); } catch (err) { Logger_1.default.error(TAG, `getDispatcherVersion() failed. Cause: ${JSON.stringify(err.message)}`); _ohos_promptAction_1.showToast({ message: `Operation failed. Cause: ${JSON.stringify(err)}` }); } } // 获取有关当前能力的信息,对应FA模型的getElementName() getAbilityInfo() { let bundleName = "ohos.samples.stagemodel"; let bundleFlags = _ohos_bundle_bundleManager_1.BundleFlag.GET_BUNDLE_INFO_WITH_HAP_MODULE | _ohos_bundle_bundleManager_1.BundleFlag.GET_BUNDLE_INFO_WITH_EXTENSION_ABILITY | _ohos_bundle_bundleManager_1.BundleFlag.GET_BUNDLE_INFO_WITH_ABILITY; try { _ohos_bundle_bundleManager_1.getBundleInfo(bundleName, bundleFlags, (err, data) => { if (err) { Logger_1.default.error(TAG, `getAbilityInfo() failed. Cause: ${JSON.stringify(err.message)}`); _ohos_promptAction_1.showToast({ message: `Operation failed. Cause: ${JSON.stringify(err)}` }); } else { _ohos_promptAction_1.showToast({ message: `Operation successful. Data: ${JSON.stringify(data)}` }); } }); } catch (err) { Logger_1.default.error(TAG, `getAbilityInfo() failed. Cause: ${JSON.stringify(err.message)}`); _ohos_promptAction_1.showToast({ message: `Operation failed. Cause: ${JSON.stringify(err)}` }); } } } exports["default"] = BundleController; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\BundlePage.ets?entry": /*!********************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\BundlePage.ets?entry ***! \********************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); let __generate__Id = 0; function generateId() { return "BundlePage_" + ++__generate__Id; } /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ const BundleController_1 = __importDefault(__webpack_require__(/*! ../feature/BundleController */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\BundleController.ts")); const PublicTitleBar_1 = __webpack_require__(/*! ./component/PublicTitleBar */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\PublicTitleBar.ets"); class BundlePage extends View { constructor(compilerAssignedUniqueChildId, parent, params, localStorage) { super(compilerAssignedUniqueChildId, parent, localStorage); this.bundles = new BundleController_1.default(); this.updateWithValueParams(params); } updateWithValueParams(params) { if (params.bundles !== undefined) { this.bundles = params.bundles; } } aboutToBeDeleted() { SubscriberManager.Get().delete(this.id()); } render() { Column.create(); let earlierCreatedChild_2 = (this && this.findChildById) ? this.findChildById("2") : undefined; if (earlierCreatedChild_2 == undefined) { View.create(new PublicTitleBar_1.PublicTitleBar("2", this, { textName: { "id": 16777234, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" } })); } else { earlierCreatedChild_2.updateWithValueParams({ textName: { "id": 16777234, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" } }); if (!earlierCreatedChild_2.needsUpdate()) { earlierCreatedChild_2.markStatic(); } View.create(earlierCreatedChild_2); } Scroll.create(); Scroll.width('100%'); Scroll.layoutWeight(1); Column.create(); Column.width('100%'); Button.createWithLabel({ "id": 16777257, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.bundles.getApplicationInfo(); }); Button.pop(); Button.createWithLabel({ "id": 16777248, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.bundles.entityType(); }); Button.pop(); Button.createWithLabel({ "id": 16777270, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.bundles.process(); }); Button.pop(); Button.createWithLabel({ "id": 16777250, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.bundles.entryDir(); }); Button.pop(); Button.createWithLabel({ "id": 16777258, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.bundles.getDispatcherVersion(); }); Button.pop(); // 获取当前ability的ohos.bundle.ElementName对象,对应FA的getElementName() Button.createWithLabel({ "id": 16777255, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.bundles.getAbilityInfo(); }); // 获取当前ability的ohos.bundle.ElementName对象,对应FA的getElementName() Button.pop(); Column.pop(); Scroll.pop(); Column.pop(); } } function __Button__fancy(click) { Button.width('60%'); Button.height(40); Button.align(Alignment.Center); Button.margin({ top: 30 }); Button.onClick(click); } loadDocument(new BundlePage("1", undefined, {})); /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\PublicTitleBar.ets": /*!****************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\component\PublicTitleBar.ets ***! \****************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.PublicTitleBar = void 0; let __generate__Id = 0; function generateId() { return "PublicTitleBar_" + ++__generate__Id; } /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var _ohos_router_1 = globalThis.requireNapi('router') || (isSystemplugin('router', 'ohos') ? globalThis.ohosplugin.router : isSystemplugin('router', 'system') ? globalThis.systemplugin.router : undefined); class PublicTitleBar extends View { constructor(compilerAssignedUniqueChildId, parent, params, localStorage) { super(compilerAssignedUniqueChildId, parent, localStorage); this.textName = undefined; this.updateWithValueParams(params); } updateWithValueParams(params) { if (params.textName !== undefined) { this.textName = params.textName; } } aboutToBeDeleted() { SubscriberManager.Get().delete(this.id()); } render() { Row.create(); Row.height('8%'); Row.width('100%'); Row.padding({ left: 15, right: 15 }); Image.create({ "id": 16777295, "type": 20000, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); Image.width(32); Image.height(32); Image.onClick(() => { _ohos_router_1.back(); }); Text.create(this.textName); Text.fontSize(24); Text.margin({ left: 80 }); Text.pop(); Row.pop(); } } exports.PublicTitleBar = PublicTitleBar; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts": /*!********************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\util\Logger.ts ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_hilog_1 = globalThis.requireNapi('hilog') || (isSystemplugin('hilog', 'ohos') ? globalThis.ohosplugin.hilog : isSystemplugin('hilog', 'system') ? globalThis.systemplugin.hilog : undefined); class Logger { constructor(prefix) { this.domain = 0xFF00; this.prefix = ''; this.format = '%{public}s, %{public}s'; this.prefix = prefix; this.domain = 0xFF00; } debug(...args) { _ohos_hilog_1.debug(this.domain, this.prefix, this.format, args); } info(...args) { _ohos_hilog_1.info(this.domain, this.prefix, this.format, args); } warn(...args) { _ohos_hilog_1.warn(this.domain, this.prefix, this.format, args); } error(...args) { _ohos_hilog_1.error(this.domain, this.prefix, this.format, args); } } exports["default"] = new Logger('[Sample_StageModel]'); /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ var commonCachedModule = globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] ? globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId]: null; /******/ if (commonCachedModule) { return commonCachedModule.exports; } /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ function isCommonModue(moduleId) { /******/ if (globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"]) { /******/ const length = globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"].length; /******/ switch (length) { /******/ case 1: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId]; /******/ case 2: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId] || /******/ globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][1][1][moduleId]; /******/ } /******/ } /******/ return undefined; /******/ } /******/ if (globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] && String(moduleId).indexOf("?name=") < 0 && isCommonModue(moduleId)) { /******/ globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId] = module; /******/ } /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = __webpack_require__("E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\BundlePage.ets?entry"); /******/ _1e36f0fd2df677c57b79e15aad3634be = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=BundlePage.js.map render+earlierCreatedChild_2 V p#  jE   pp p' Y U pp p' Y U pp )p' Y U pp  p' Y U ppp 6p' Y U pp "p' Y U pp *p' Y U pp 'p' Y U pp *V p# t j  E( 3 O   m N   3 3 *3 3 3 *3 *3 p *3 *3 3 *V p&   {    *    ! pY = Fb qqqi#q=qH * Op N Y U ppqP *V value_ohos_router_1top typemoduleName entry_ohos_hilog_19_ohos_bundle_bundleManager_1)_ohos_promptAction_1 left right1__webpack_module_cache__'__webpack_modules__SlotNumberRq7Rq+7Rq7Rq7Rq$7Rq:7RqJ7Rq7Rq"7Rq7Rq7Rq7Rq7Rq-7Rq7Rq 7Rq7Rq7Rq/7Rq 7Rq7Rq07Rq7Rq 7Rq 7Rq7Rq7~DpDDa`=aa`=3a`= >za333 3  `a`=a`=< a>a`*a`)e DDDEE`$a  ` a`BBa`BIa%a  `a>Oa ?a ` Bsa `a ` Bba ` . a > a `/  a ?a ` Bsa `a ` .  a >  zb`a`.MKa ? a ` B!sa `a ` .# % a > & z'b`a`.)eDEEEEE3a ` =03aa`a $Q`a ` B-M` a #Q 3M` a?a ` BCa `a >+a a`a` 0 ba ` =`a `a >a ` * a ` * a ` =`a >a ` * a ` = ?'a 5 a a ` Boa ` a?_a `a >a a a a ` * e.D`DqDD`$Q`a`B+$Q`Ma`zB`d DpDD<a`B5a`BPa`-e DpDD<a`B5a`BGa`-e DpDD<a`B5a`Bma`-e DpDD<a`B5a`BHa`-e DpDD<a`B5a`BUa`-e DpDD<a`B5a`BNa`-eDDEEEa`=a3a`a $Q`a ` B-M` a #Q 3M` a?a ` BCa `a >+a a ` a ` 0 `a bC  ba ` =ma ` B pa >qa ` . a #Q]?\a >qa >ea ` + $Qma ` Bga ` BqM/?\a >qa >ta ` + $Qma ` Bua ` BqMM` a ` =?'a 5 a a ` B oa ` a`a `C" eDDEEEEa`=`a`=a`a $Q`a ` B-M` a #Q 3M` a?a ` BCa `a >+a a ` a ` 0 ma ` B pa >1a ` . a #Qm? \a >1a >ea ` + $Qma ` Bga ` B0a ` B3M7?\a >1a >ta ` + $Qma ` Bua ` B0a ` B3MM` a ` =ma ` Bpa >na ` .! a #Q]?#\a >na >ea ` +$ $Qma ` B&ga ` B(nM/?*\a >na >ta ` ++ $Qma ` B-ua ` B/nMM` a ` =``a `a >a ` *1 a ` *3 a ` =@> a ` =P>>a ` =ba ` = bda ` =0pa 55 a a ` B6oa ` a`a >Ba `88 e.D`DqDD`$Q`a`B+$Q`Ma`zB`d =DDD>a<a>,a`a`!a<a>,a``a`= d/DpDDD`a`Bwa'$Q`a`a`BwCweD` =` =?!a`B?a`-?!a`BWa>a`.? !a`B ~a>a`. ?!a`Biaa`a`.?a`B?aaazj`a`.?a`B~ab a`.!?#a`B$Wab a`.&?(a`B)ha3+a`.,?.&a`B/?a<a`B1wa`.3?5&a`B6Laba`.8?:&a`B;`a=a`a`.>?@&a`BAka`-C?E!a`BFka`-HeD`DqD<a`B/a`-e DDDEEa`=a`a $Q`a ` B-M` a#Q 3M`a?a ` BCa`a >+a a ` a `0 ma ` B pa >Xa ` . a#Q]? \a >Xa >ea ` + $Qma ` Bga ` BXM/?\a >Xa >ta ` + $Qma ` Bua ` BXMM`a`=pa 5 aa `Boa `a`a>Ba `a >(a  8  e.D`DqDD`$Q`a`B+$Q`Ma`zB`d.D`DqDD`$Q`a`B+$Q`Ma`zB`d DDDDa  `a`BBa`B[a%a`a>Ra?a ` Bsa `a ` . a> a`/ Qzb`a`.e DDDDa  `a`BBa`BIa%a`a>Sa?a ` Bsa `a ` . a> a`/ Sa?a ` Bsa `a ` . a> zb`a`.e DDDDE`$QRa  ` a`BBa`B[a%a  `a>:a `  a >  a `/ N`a`BEaa  ` a ` B Ba`B [a%a  ` a >9a `  a >  a `/ 8zb ` a `. e DDDDE`$QRa  ` a`BBa`B[a%a  `a>7a `  a >  a `/ N`a`Bmaa  ` a ` B Ba`B [a%a  ` a >9a `  a >  a `/ 8zb ` a `. e DDDDE`$QRa  ` a`BBa`B[a%a  `a><a `  a >  a `/ N`a`Bcaa  ` a ` B Ba`B [a%a  ` a >=a `  a >  a `/ =a `  a >  zb ` a `. e DDDEE`$a  ` a`BBa`BIa%a  `a>Va ?a ` Bsa `a ` Bba ` . a > a `/  a ?a ` Bsa `a ` .  a >  zb`a`.MSa ? a ` B!sa `a ` B#va ` .% ' a > ( z)b`a`.+eDPDaDr`a`d yDDDEEEE`a`a`a `a 2a``a`a<a > a  ` a ` BBa  C5`a ` Bya`a `. `d`D`DqDD`a`abCF`a>Cl`a>CM`a`Cl`abCF`d [DDDDDEE`a`a`a `a 2a``a`aCw`a ` Bya`a `. `dDDDD? a`B~a>a`.? a`BWab(a`.? a`B .a? a`Ba`.? a`B`aa`a`.? a`Bha`a`.eDEEE3aaaama >*a ` 7 $Qma >*a ` 7 a `a ` 7 Ma`$Q `a ` BJd<a `a ` 7 a`a ' $Q `a ` B Jd<a `a a zJ ` 8 ama >*a ` 7 a $Q2?#a `a` *a ` BZa >a ` . a b M` $Q+`a `a ` * $Qma >*a ` 7 a `a `8! <a `a ` 7# a ` B%6a `a ` B'Ja `a `a ` B)Ja < a` 1+ `a ` B-Jd=DDD?$a`Ba`-a`BDa`a`BYa`- a`. e GDDDDa<a`BAa`a`BFa`a`Bla`a ` BMa `a `1e 6D` =` =<a`BPa>faba3a`0e 6D` =` =<a`BPa>faba3a`0e GDDDDa<a`BIa`a`BFa`a`Bla`a ` BMa `a `1e DP`=`=)3a`)e =DDD> a<a>,a`a`!a<a>,a``a`= dD`=`=>fa<a ` B a`Ba<a ` B a`Ba<a`B a`B  a<a`BTa`a`a 3a `0 Naa  ` a ` BBa`BIa%a  ` a >Oa ?a ` Bsa `a ` Bba ` .  a >  a `/  a ?%a ` B&sa `a ` .( * a > + z,b ` a `.. eU#{D`=`=<a ` BPa<a >4a  ` a 2a  ` a <1a >{a  ` a `0 a`Bxa3a`.a`B ;a3 a`. eD`=`=>fa<a`B a`Ba<a`B a`Ba<a`B Ta`a`a 3 a `0  Naa  ` a ` BBa`BIa%a  ` a >Va ?a ` Bsa `a ` Bba ` .  a >  a `/ a ? a ` B!sa `a ` .# % a > & z'b ` a `.) e>#d GDDDDa<a`B[a`a`BFa`a`Bla`a ` BMa `a `1e DDDEma>}a`7$ma>}a`7a`B^a`ab'$Qb'$Q:Nma >}a ` 7 a ba ` 7 aba ` 7 a`a`7dma >}a ` 7 a ba ` 7 a ba ` 7 a`a ` 7a#Q8ma >}a ` 7 a ba ` 7 a ba ` 7 a`a ` 7M`dd 6D` =` =<a`BPa>faba3a`0eD`=`=?a`B?a`-<$Q(<a`BK$Q<a`BKa>a`. Ma`a $Qa? 'a`B ?a a  ` a`Ba>a<a a a a zj ` zw ` a a`.Ny`a`Byaaa a z!j`z#w`a`.%`a`B'da`-)#QM$Q`a`B+aa`--?/'a`B0?a`a`.2?4"a`B5?a`-7?9"a`B:~a>a`.<?>"a`B?]aba`.A?Ca`BD?a`-F?Ha`BI~a>a`.K?M a`BN@aPaQazRj`a`.T<1a3Va`*W?Y a`BZka`-\?^ a`B_@aaabazcj`a`.e<1a3ga`*h?j a`Bkka`-m?o a`Bp@arasaztj`a`.v<1a3xa`*y?{ a`B|ka`-~ a`@aaa̅j`a`.<1ata`* a`ka`- a`@aaa̖j`a`.<1ata`* a`ka`- a`@aaa̧j`a`.<1ata`* a`ka`-a`ka`-"a`ka`-a`ka`-e/DpDDD`a`B5a'$Q`a`a`B5C5e GDDDDa<a`B|a`a`BFa`a`Bla`a ` BMa `a `1e  > p               /  O( (((((((((((( $z$~$}$}$)-$8$.  `( (((((((((*((*((!+0Sb S o0o0 3!=L= Q!Q3  3!@O@ U!U3 y        1            k     /               (*((*(((((*((*((*((((*((((  8- +b+O*((    ! ,  1((((*((*((+((   % +8+  (((((((((( (((((((((( (((((((((( (((((((((( (((((((((( ((((((((((         1        \                     /        ((((*((((((((*((*((*((  8-  - ;JT; ^:}} }((" "          1                      k                  k      k  k  k  k   /        (*((*(( (((((*((((*((((  8- $ ;$ Wf~W V $ 3 GVfG pF !K!   ((  1((((*((*((+((   % +8+#((((*((*(( !! (((((*((*((((   ((((*((*(('    k  k  k    k  k  k  m  k  k  k;(((( >    ((((((((((         1                       /           ((((*((*((*((((((,((   8-  , 9HQ9 [8yy y,((   1((((*((*((+((   % +8+           0((((*((*((+((   % +8+            z k <  8((((((((((*((+ !"'O^O d'd' ++             z k       <  D((((((((((((0 !#(FUF \(\( +7F7 MM+   \          /         z k <   X( ((((((*(((((((9!&+IO+O+ ,(( !&+JR+R+ // z Y( ((((((*(((((((!&+PV+V+ ,((" !&+JV+V+ // z   \          /         z k     <   a( ((((((*(((((((!&+>D+D+ ,((# !&+8E+E+ /*77/ z   k          z k       <   k       <   `( (((((((((*((*((!+0Yh Y u0u0 3!=L= Q!Q3  3!@O @ c!c3 y  ((((*((*((   M       \  g ^ D((((*((((,((*((-((-((-5#  M   \  \  \  \   ` 8((((*((*(((({  M      \  g ^ B((((*((((,((*((-((-((-5#    k  k  k  k  3((((*((*((-((             /  !    /  k  "   m                  >      N        m  ( (((*((*((-((-((-((-((-(($/$mxmm$, %7  1== Y`YrY~Y  T`  . >F V      ((((*((*((',((((*((*((.((    ) 6 C((((8 8SV (((( 8SV ,((((*((*((.((    ) 6 C l  .((((         #((((*((*((     /      0     /           z k       <   c(((((((( d 7CP *(( !#(KZ K g(g( +5D5 II+ o       x   (((() 8DQz   /    0     /           z k       <   ^(((((((( d 7CP *(( !#(Q` Q m(m( +5D5 II+ o   /      ,((((*((*((.((    ( 5 B    >    / M  l  g ?          !                 Z    u( (((*((*((-((*((,7, #%$$(3(d(g(j(!(3(d(g(j(!,!]!`!c!(!"      (((( 8SV             /  k              k   x  m     l   k  k  k    k  ^    k  ^    k  ^    k  ^    k  ^    k  _((((((%$- $C VC$] % <AGS|SG 8C8   H H H H H H     k  Z (((((*((*((((   ,((((*((*((.((    ( 5 Ba(s֛ ::_Sp͜T˝NR cPK !:,^rSrSets/pages/BundlePage.jsvar _1e36f0fd2df677c57b79e15aad3634be; /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\BundleController.ts": /*!*********************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\feature\BundleController.ts ***! \*********************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_bundle_bundleManager_1 = globalThis.requireNapi('bundle.bundleManager') || (isSystemplugin('bundle.bundleManager', 'ohos') ? globalThis.ohosplugin.bundle.bundleManager : isSystemplugin('bundle.bundleManager', 'system') ? globalThis.systemplugin.bundle.bundleManager : undefined); var _ohos_promptAction_1 = globalThis.requireNapi('promptAction') || (isSystemplugin('promptAction', 'ohos') ? globalThis.ohosplugin.promptAction : isSystemplugin('promptAction', 'system') ? globalThis.systemplugin.promptAction : undefined); const Logger_1 = __importDefault(__webpack_require__(/*! ../util/Logger */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts")); const TAG = 'BundleController'; let bundleName = "com.example.myapplication"; let bundleFlags = 0; let userId = 100; class BundleController { // 获取有关当前应用程序的信息,对应FA模型的getApplicationInfo() getApplicationInfo() { _ohos_bundle_bundleManager_1.getApplicationInfo(bundleName, bundleFlags, userId) .then((data) => { Logger_1.default.info(TAG, `getApplicationInfo successful. Data: ${JSON.stringify(data)}`); _ohos_promptAction_1.showToast({ message: `getApplicationInfo successful` }); }).catch((error) => { Logger_1.default.error(TAG, `getApplicationInfo. Cause: ${JSON.stringify(error)}`); _ohos_promptAction_1.showToast({ message: `getApplicationInfo. Cause: ${JSON.stringify(error)}` }); }); } // 指示应用程序的实体类型,对应FA模型中AppContext的getAppType() entityType() { _ohos_bundle_bundleManager_1.getApplicationInfo('ohos.samples.stagemodel', 0, (error, data) => { if (error) { Logger_1.default.info(TAG, `caller onRelease is error: ${error}`); } else { let digital = data.description; Logger_1.default.info(TAG, `caller onRelease is called: ${digital}`); _ohos_promptAction_1.showToast({ message: `caller onRelease is called sucess` }); } }); } // 应用程序的进程,如果用户未设置,则值等于bundleName process() { _ohos_bundle_bundleManager_1.getApplicationInfo('ohos.samples.stagemodel', 0, (error, data) => { if (error) { Logger_1.default.info(TAG, `caller onRelease is called error: ${error}`); } else { let processData = data.process; Logger_1.default.info(TAG, `caller onRelease is called: ${processData}`); _ohos_promptAction_1.showToast({ message: `caller onRelease is called sucess` }); } }); } // 获取应用程序的本地根目录,对应FA模型的getOrCreateLocalDir() entryDir() { _ohos_bundle_bundleManager_1.getApplicationInfo('ohos.samples.stagemodel', 0, (error, data) => { if (error) { Logger_1.default.info(TAG, `codePath error: ${error}`); } else { let entryDirData = data.name; Logger_1.default.info(TAG, `codePath: ${entryDirData}`); _ohos_promptAction_1.showToast({ message: `codePath: ${entryDirData}` }); } }); } // 获取应用的版本信息,对应FA模型的getAppVersionInfo() getDispatcherVersion() { let bundleName = "ohos.samples.stagemodel"; let bundleFlags = _ohos_bundle_bundleManager_1.BundleFlag.GET_BUNDLE_INFO_WITH_HAP_MODULE | _ohos_bundle_bundleManager_1.BundleFlag.GET_BUNDLE_INFO_WITH_EXTENSION_ABILITY; try { _ohos_bundle_bundleManager_1.getBundleInfo(bundleName, bundleFlags, (err, data) => { if (err) { Logger_1.default.error(TAG, `getDispatcherVersion() failed. Cause: ${JSON.stringify(err.message)}`); _ohos_promptAction_1.showToast({ message: `Operation failed. Cause: ${JSON.stringify(err)}` }); } else { _ohos_promptAction_1.showToast({ message: `Operation successful. Data: ${JSON.stringify(data.targetVersion)}` }); } }); } catch (err) { Logger_1.default.error(TAG, `getDispatcherVersion() failed. Cause: ${JSON.stringify(err.message)}`); _ohos_promptAction_1.showToast({ message: `Operation failed. Cause: ${JSON.stringify(err)}` }); } } // 获取有关当前能力的信息,对应FA模型的getElementName() getAbilityInfo() { let bundleName = "ohos.samples.stagemodel"; let bundleFlags = _ohos_bundle_bundleManager_1.BundleFlag.GET_BUNDLE_INFO_WITH_HAP_MODULE | _ohos_bundle_bundleManager_1.BundleFlag.GET_BUNDLE_INFO_WITH_EXTENSION_ABILITY | _ohos_bundle_bundleManager_1.BundleFlag.GET_BUNDLE_INFO_WITH_ABILITY; try { _ohos_bundle_bundleManager_1.getBundleInfo(bundleName, bundleFlags, (err, data) => { if (err) { Logger_1.default.error(TAG, `getAbilityInfo() failed. Cause: ${JSON.stringify(err.message)}`); _ohos_promptAction_1.showToast({ message: `Operation failed. Cause: ${JSON.stringify(err)}` }); } else { _ohos_promptAction_1.showToast({ message: `Operation successful. Data: ${JSON.stringify(data)}` }); } }); } catch (err) { Logger_1.default.error(TAG, `getAbilityInfo() failed. Cause: ${JSON.stringify(err.message)}`); _ohos_promptAction_1.showToast({ message: `Operation failed. Cause: ${JSON.stringify(err)}` }); } } } exports["default"] = BundleController; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\BundlePage.ets?entry": /*!********************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\BundlePage.ets?entry ***! \********************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); let __generate__Id = 0; function generateId() { return "BundlePage_" + ++__generate__Id; } /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ const BundleController_1 = __importDefault(__webpack_require__(/*! ../feature/BundleController */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\BundleController.ts")); const PublicTitleBar_1 = __webpack_require__(/*! ./component/PublicTitleBar */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\PublicTitleBar.ets"); class BundlePage extends View { constructor(compilerAssignedUniqueChildId, parent, params, localStorage) { super(compilerAssignedUniqueChildId, parent, localStorage); this.bundles = new BundleController_1.default(); this.updateWithValueParams(params); } updateWithValueParams(params) { if (params.bundles !== undefined) { this.bundles = params.bundles; } } aboutToBeDeleted() { SubscriberManager.Get().delete(this.id()); } render() { Column.create(); let earlierCreatedChild_2 = (this && this.findChildById) ? this.findChildById("2") : undefined; if (earlierCreatedChild_2 == undefined) { View.create(new PublicTitleBar_1.PublicTitleBar("2", this, { textName: { "id": 16777234, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" } })); } else { earlierCreatedChild_2.updateWithValueParams({ textName: { "id": 16777234, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" } }); if (!earlierCreatedChild_2.needsUpdate()) { earlierCreatedChild_2.markStatic(); } View.create(earlierCreatedChild_2); } Scroll.create(); Scroll.width('100%'); Scroll.layoutWeight(1); Column.create(); Column.width('100%'); Button.createWithLabel({ "id": 16777257, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.bundles.getApplicationInfo(); }); Button.pop(); Button.createWithLabel({ "id": 16777248, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.bundles.entityType(); }); Button.pop(); Button.createWithLabel({ "id": 16777270, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.bundles.process(); }); Button.pop(); Button.createWithLabel({ "id": 16777250, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.bundles.entryDir(); }); Button.pop(); Button.createWithLabel({ "id": 16777258, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.bundles.getDispatcherVersion(); }); Button.pop(); // 获取当前ability的ohos.bundle.ElementName对象,对应FA的getElementName() Button.createWithLabel({ "id": 16777255, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.bundles.getAbilityInfo(); }); // 获取当前ability的ohos.bundle.ElementName对象,对应FA的getElementName() Button.pop(); Column.pop(); Scroll.pop(); Column.pop(); } } function __Button__fancy(click) { Button.width('60%'); Button.height(40); Button.align(Alignment.Center); Button.margin({ top: 30 }); Button.onClick(click); } loadDocument(new BundlePage("1", undefined, {})); /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\PublicTitleBar.ets": /*!****************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\component\PublicTitleBar.ets ***! \****************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.PublicTitleBar = void 0; let __generate__Id = 0; function generateId() { return "PublicTitleBar_" + ++__generate__Id; } /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var _ohos_router_1 = globalThis.requireNapi('router') || (isSystemplugin('router', 'ohos') ? globalThis.ohosplugin.router : isSystemplugin('router', 'system') ? globalThis.systemplugin.router : undefined); class PublicTitleBar extends View { constructor(compilerAssignedUniqueChildId, parent, params, localStorage) { super(compilerAssignedUniqueChildId, parent, localStorage); this.textName = undefined; this.updateWithValueParams(params); } updateWithValueParams(params) { if (params.textName !== undefined) { this.textName = params.textName; } } aboutToBeDeleted() { SubscriberManager.Get().delete(this.id()); } render() { Row.create(); Row.height('8%'); Row.width('100%'); Row.padding({ left: 15, right: 15 }); Image.create({ "id": 16777295, "type": 20000, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); Image.width(32); Image.height(32); Image.onClick(() => { _ohos_router_1.back(); }); Text.create(this.textName); Text.fontSize(24); Text.margin({ left: 80 }); Text.pop(); Row.pop(); } } exports.PublicTitleBar = PublicTitleBar; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts": /*!********************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\util\Logger.ts ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_hilog_1 = globalThis.requireNapi('hilog') || (isSystemplugin('hilog', 'ohos') ? globalThis.ohosplugin.hilog : isSystemplugin('hilog', 'system') ? globalThis.systemplugin.hilog : undefined); class Logger { constructor(prefix) { this.domain = 0xFF00; this.prefix = ''; this.format = '%{public}s, %{public}s'; this.prefix = prefix; this.domain = 0xFF00; } debug(...args) { _ohos_hilog_1.debug(this.domain, this.prefix, this.format, args); } info(...args) { _ohos_hilog_1.info(this.domain, this.prefix, this.format, args); } warn(...args) { _ohos_hilog_1.warn(this.domain, this.prefix, this.format, args); } error(...args) { _ohos_hilog_1.error(this.domain, this.prefix, this.format, args); } } exports["default"] = new Logger('[Sample_StageModel]'); /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ var commonCachedModule = globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] ? globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId]: null; /******/ if (commonCachedModule) { return commonCachedModule.exports; } /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ function isCommonModue(moduleId) { /******/ if (globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"]) { /******/ const length = globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"].length; /******/ switch (length) { /******/ case 1: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId]; /******/ case 2: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId] || /******/ globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][1][1][moduleId]; /******/ } /******/ } /******/ return undefined; /******/ } /******/ if (globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] && String(moduleId).indexOf("?name=") < 0 && isCommonModue(moduleId)) { /******/ globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId] = module; /******/ } /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = __webpack_require__("E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\BundlePage.ets?entry"); /******/ _1e36f0fd2df677c57b79e15aad3634be = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=BundlePage.js.mapPK !:euEEets/pages/BundlePage.js.map{"version":3,"file":"./pages/BundlePage.js","mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;GAaG;;;;;AAEH,4FAA+C;AAC/C,4EAAuC;AACvC,2LAAmC;AAEnC,MAAM,GAAG,GAAW,kBAAkB;AAEtC,IAAI,UAAU,GAAG,2BAA2B;AAC5C,IAAI,WAAW,GAAG,CAAC;AACnB,IAAI,MAAM,GAAG,GAAG;AAEhB,MAAqB,gBAAgB;IAEnC,4CAA4C;IAC5C,kBAAkB;QAChB,oCAAM,CAAC,kBAAkB,CAAC,UAAU,EAAE,WAAW,EAAE;aAChD,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE;YACb,gBAAM,CAAC,IAAI,CAAC,GAAG,EAAE,wCAAwC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;YAChF,4BAAM,CAAC;gBACL,OAAO,EAAE,+BAA+B;aACzC,CAAC;QACJ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;YACnB,gBAAM,CAAC,KAAK,CAAC,GAAG,EAAE,8BAA8B,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;YACxE,4BAAM,CAAC;gBACL,OAAO,EAAE,8BAA8B,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE;aAC/D,CAAC;QACJ,CAAC,CAAC;IACJ,CAAC;IAED,6CAA6C;IAC7C,UAAU;QACR,oCAAM,CAAC,kBAAkB,CAAC,yBAAyB,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE;YAC9D,IAAI,KAAK,EAAE;gBACT,gBAAM,CAAC,IAAI,CAAC,GAAG,EAAE,8BAA8B,KAAK,EAAE,CAAC;aACxD;iBAAM;gBACL,IAAI,OAAO,GAAG,IAAI,CAAC,WAAW;gBAC9B,gBAAM,CAAC,IAAI,CAAC,GAAG,EAAE,+BAA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AAM,GAAW,EAAE;QACnB,WAAM,GAAW,wBAAwB;QAG/C,IAAI,CAAC,MAAM,GAAG,MAAM;QACpB,IAAI,CAAC,MAAM,GAAG,MAAM;IACtB,CAAC;IAED,KAAK,CAAC,GAAG,IAAW;QAClB,qBAAK,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM;IACnD,CAAC;IAED,IAAI,CAAC,GAAG,IAAW;QACjB,qBAAK,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM;IAClD,CAAC;IAED,IAAI,CAAC,GAAG,IAAW;QACjB,qBAAK,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM;IAClD,CAAC;IAED,KAAK,CAAC,GAAG,IAAW;QAClB,qBAAK,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM;IACnD,CAAC;CACF;AAED,qBAAe,IAAI,MAAM,CAAC,qBAAqB,CAAC;;;;;;;UC5ChD;UACA;;UAEA;UACA;UACA;UACA,2BAA2B;UAC3B;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;UACA;;;;UEvCA;UACA;UACA;UACA","sources":["webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\BundleController.ts","webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\BundlePage.ets","webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\PublicTitleBar.ets","webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts","webpack:///webpack/bootstrap","webpack:///webpack/before-startup","webpack:///webpack/startup","webpack:///webpack/after-startup"],"names":[],"sourceRoot":""}PK !:d@@%ets/pages/DataShareExtAbilityPage.abcPANDA1@<;@OLl}>{PW@InK"8cK&t-[yFFMQ^;hs]@l(1:Rsm p v y |     $ , 5 < T n   lV )4?EKU_go *6H[ou#]iy #*17>K[go!,=a "9Edv $;` 6F_m} $)2=JP\`hr~*K[cpx $06e6Rn!l 2Np"  D!j" _!" !;z!.JfWs)! #"]6 "0#" x!#9" U"]hs;FQtFyKc"-@KnIW&8P^{M>[}x$@%%'"('L_ESTypeAnnotation; ! , errorMessage=#F5F5F5#ffffff-%{public}s, %{public}s?, introduction = #, introduction = , message: , name = , rowCount= .#1# .#10# .#11# .#12# .#13# .#14# .#15# .#16# .#17# .#18#.#19#message .#2#.#20#books .#21# .#22# .#23# .#24# .#25#.#26#generateId.#29#books .#3#.#30#books.#31#render .#32# .#33# .#34#.#35#generateId.#38#books.#39#books .#4#.#40#render .#41# .#42# .#43# .#44#.#45#generateId.#48#books.#49#books .#5#.#50#render .#51# .#52# .#53# .#54# .#55# .#56# .#6# .#7# .#8# .#9#.BookModel.BookView1.DataShareExtAbilityPage!.DataShareHelper.Logger.TitleBar#.UpdateDataDialog).__webpack_require__.aboutToAppear .add .books.builder.delete.generateId-.getBooksFromResultSet.isCommonModue.message.render.setController.update1 100%23458% ?name=AlignmentBASE_URI Black Blank BoldBookModelBookModel_1BookViewBookView_BookView_1 ButtonButtonTypeCOLUMNS Center Circle Color ColumnContain Cover-CustomDialogController1DataShareExtAbilityPage_#DataShareHelper_1'DataSharePredicatesDateShareHelperE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\feature\BookModel.tsE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\feature\DataShareHelper.tsE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\DataShareExtAbilityPage.ets?entryE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\component\BookView.etsE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\component\TitleBar.etsE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\component\UpdateDataDialog.etsE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\util\Logger.ts FlexFlexAlignFlexDirectionFontWeightForEachGetGetRawObject Gray Grey ID = If ImageImageFitInputTypeItemAlign JSON ListListItemLogger_1 Normal ObjectObservedObject-ObservedPropertyObject-ObservedPropertySimpleRow Start String#SubscriberManager7SynchedPropertyObjectTwoWayTAG TextTextInputTitleBarTitleBar_TitleBar_1UpdateData!UpdateDataDialog#UpdateDataDialog_%UpdateDataDialog_1 View'[Sample_StageModel]k[ttt] [DataAbilityTest] Observer off catch(err)====>:i[ttt] [DataAbilityTest] Observer on catch(err)====>:C_1e36f0fd2df677c57b79e15aad3634be__booksq__common_module_cache___1e36f0fd2df677c57b79e15aad3634be__esModule__generate__Id__importDefault__messageaboutToAppear!aboutToBeDeletedadd alignalignItems backbackgroundColor bookbookView booksborderRadiusbranchIdbuilder call catch close code colorcolumnNamesconstraintSizecontroller create+createDataShareHelperGcreateDataShareHelper error: code: OcreateDataShareHelper succeed, data : createWithChild datadata.dataShare1data.dataSharePredicatesdataChangedataSharedataShareHelperEdataShareHelper.query error.code=CdataShareHelper.query error.code='dataSharePredicates]datashare:///ohos.samples.stagemodel.DataShare debugdefaultdefineProperty deletedelete id = delete num= 'delete queryAll end+delete queryAll startdeleteBook;deleteBook dataShareHelper = !deleteBook startdenormalizeUri!denormalizeUri: !dialogControllerdirectiondivider domainequalTo errorexports fileFdfindChildByIdfontColorfontSizefontWeight formatget+getBooksFromResultSetGgetBooksFromResultSet columnNames= OgetBooksFromResultSet resultSet books: getColumnIndexgetContext%getDataShareHelpergetDoublegetStringgoToFirstRowgoToNextRow height hilogid id = indexOf info insert3insert dataShareHelper = insert onClick/insert succeed, data : introductionisSystempluginjustifyContentlayoutWeight lengthloadDocument marginmessage namenormalizeUri'normalizeUri sucessnormalizeUri: notifyChangenotifyChange: objectFitoffoff endoff startoff success ohosohospluginon on endon starton successonChangeonClick openpadding params!placeholderColorpop prefixpromptActionprototype push queryqueryAll7queryAll dataShareHelper = )queryAll resultSet= ?queryAll resultSet= start queryqueryAll start renderrequireNapi routerrowCountsetsetControllershowToaststringify systemsystemplugin text then type update#update book num= updateBook!updateBook start+updateWithValueParamsuse strict warn[webpackChunk_1e36f0fd2df677c57b79e15aad3634be width3L_ESSlotNumberAnnotation;@'L_ESTypeInfoRecord;#1#L_GLOBAL;X>a6%by&&\R!'zN&'B*T'A*a' +T'Wl+n#(2% C(%.% \P4%oT:%]D%/jJ%wP%d%%&t&e!&'&&j&&& '7# &'-X# ,'IA$-2'%',I( 'Lt( 'l(G'( '\)P') @8j0?js2Gb3jY5j'M.jz3n9[X )=  >2C?:G +w,] N.c;%W,Gn&vG~&WG&) G&WL Gy'&G'W#&G +G&'"'k':9Wd4h%5 >$%7G(Z5 q1a((Cf: =-&&8'K%'y-]6/n1*L8t%m0X&P& c'%$ 6  ?1%9-{=&VT&OH'!%w4funcObjany0newTarget'__webpack_exports__ 0thisE:/Projects/DevEco/applications_app_samples/ability/StageModel/entry/build/default/intermediates/assets_jsbundle/default/ets/pages/DataShareExtAbilityPage_.js #10#err #11# #12# #13# #14# #15# #16# #17#4newTarget thisgenerateId'__webpack_require__/__unused_webpack_module/DataShareExtAbilityPage #18#mod#19#messagenewValue#2##20#books #21#+earlierCreatedChild_3 #22# #23# item #24# #25##26#generateId3#27#updateWithValueParams)#28#aboutToBeDeleted#29#books#3##30#books#31#render #32# #33# #34##35#generateId3#36#updateWithValueParams)#37#aboutToBeDeleted#38#books#39#books#4#DataShareHelper#40#render #41# #42# #43# #44##45#generateId3#46#updateWithValueParams)#47#aboutToBeDeleted#48#books#49#books#5##50#render #51# value #52# #53# #54# #55# Logger #56##6##7##8##9#;compilerAssignedUniqueChildIdlocalStorage parentisCommonModue modulecachedModule%commonCachedModulemoduleIdcontextjsDialog argspredicatesresultSetnumfunc_main_0var _1e36f0fd2df677c57b79e15aad3634be; /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\BookModel.ts": /*!**************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\feature\BookModel.ts ***! \**************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getBooksFromResultSet = exports.BookModel = void 0; const Logger_1 = __importDefault(__webpack_require__(/*! ../util/Logger */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts")); const TAG = 'BookModel'; class BookModel { constructor(id, name, introduction) { this.id = id; this.name = name; this.introduction = introduction; } } exports.BookModel = BookModel; function getBooksFromResultSet(resultSet) { let books = []; Logger_1.default.info(TAG, `getBooksFromResultSet columnNames= ${resultSet.columnNames}, rowCount= ${resultSet.rowCount}`); if (resultSet !== null) { resultSet.goToFirstRow(); let idIndex = resultSet.getColumnIndex('id'); let nameIndex = resultSet.getColumnIndex('name'); let introductionIndex = resultSet.getColumnIndex('introduction'); Logger_1.default.info(TAG, `ID = ${resultSet.getColumnIndex('id')}, name = ${resultSet.getColumnIndex('name')}, introduction = ${resultSet.getColumnIndex('introduction')}`); for (let i = 0; i < resultSet.rowCount; i++) { let id = resultSet.getDouble(idIndex); let name = resultSet.getString(nameIndex); let introduction = resultSet.getString(introductionIndex); Logger_1.default.info(TAG, `id = ${id}, name = ${name}, introduction = ${introduction}`); books.push(new BookModel(id, name, introduction)); Logger_1.default.info(TAG, `getBooksFromResultSet resultSet books: ${JSON.stringify(books)}`); resultSet.goToNextRow(); } } return books; } exports.getBooksFromResultSet = getBooksFromResultSet; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\DataShareHelper.ts": /*!********************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\feature\DataShareHelper.ts ***! \********************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_data_dataShare_1 = globalThis.requireNapi('data.dataShare') || (isSystemplugin('data.dataShare', 'ohos') ? globalThis.ohosplugin.data.dataShare : isSystemplugin('data.dataShare', 'system') ? globalThis.systemplugin.data.dataShare : undefined); var _ohos_data_dataSharePredicates_1 = globalThis.requireNapi('data.dataSharePredicates') || (isSystemplugin('data.dataSharePredicates', 'ohos') ? globalThis.ohosplugin.data.dataSharePredicates : isSystemplugin('data.dataSharePredicates', 'system') ? globalThis.systemplugin.data.dataSharePredicates : undefined); var _ohos_promptAction_1 = globalThis.requireNapi('promptAction') || (isSystemplugin('promptAction', 'ohos') ? globalThis.ohosplugin.promptAction : isSystemplugin('promptAction', 'system') ? globalThis.systemplugin.promptAction : undefined); const Logger_1 = __importDefault(__webpack_require__(/*! ../util/Logger */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts")); const TAG = 'DateShareHelper'; const BASE_URI = ("datashare:///ohos.samples.stagemodel.DataShare"); const COLUMNS = ['*']; class DataShareHelper { constructor() { // 用户给定的URI转换为服务端使用的URI时回调此接口,该方法可以选择性重写。对应FA模型的DataAbilityHelper中的normalizeUri this.normalizeUri = () => { this.dataShareHelper.normalizeUri(BASE_URI, (error, data) => { if (error) { Logger_1.default.info(TAG, `normalizeUri: ${error}`); } else { Logger_1.default.info(TAG, `normalizeUri: ${data}`); _ohos_promptAction_1.showToast({ message: `normalizeUri sucess` }); } }); }; // 服务端使用的URI转换为用户传入的初始URI时服务端回调此接口,该方法可以选择性重写。对应FA模型的DataAbilityHelper中的denormalizeUri this.denormalizeUri = () => { this.dataShareHelper.denormalizeUri(BASE_URI, (err, data) => { Logger_1.default.info(TAG, `denormalizeUri: ${err}`); _ohos_promptAction_1.showToast({ message: `denormalizeUri: ${data}` }); }); }; // 订阅指定URI对应数据的数据变更事件。若用户(订阅者)已注册了观察者,当有其他用户触发了变更通知时(调用了下文中的notifyChange方法),订阅者将会接收到callback通知。 // 对应FA模型的DataAbilityHelper中的on this.on = async () => { Logger_1.default.info(TAG, `on start`); try { await this.dataShareHelper.on('dataChange', BASE_URI, () => { Logger_1.default.info(TAG, `on end`); _ohos_promptAction_1.showToast({ message: `on success` }); }); } catch (err) { Logger_1.default.info(TAG, `[ttt] [DataAbilityTest] Observer on catch(err)====>:${err}`); } }; // 取消订阅指定URI对应的数据资源的变更通知。对应FA模型的DataAbilityHelper中的off this.off = async () => { Logger_1.default.info(TAG, `off start`); try { await this.dataShareHelper.off('dataChange', BASE_URI); _ohos_promptAction_1.showToast({ message: `off success` }); Logger_1.default.info(TAG, `off end`); } catch (err) { Logger_1.default.info(TAG, `[ttt] [DataAbilityTest] Observer off catch(err)====>:${err}`); } }; // 通知已注册的观察者Uri指定的数据资源的更改。对应FA模型的DataAbilityHelper中的notifyChange this.notifyChange = () => { this.dataShareHelper.notifyChange(BASE_URI, (err) => { Logger_1.default.info(TAG, `notifyChange: ${err}`); _ohos_promptAction_1.showToast({ message: `notifyChange` }); }); }; } async getDataShareHelper(context) { // 对应FA模型FeatureAbilityTest中的acquireDataAbilityHelper // this.dataShareHelper = await dataShare.createDataShareHelper(context, BASE_URI) try { await _ohos_data_dataShare_1.createDataShareHelper(context, BASE_URI).then((data) => { Logger_1.default.info(TAG, `createDataShareHelper succeed, data : ${data}`); this.dataShareHelper = data; }).catch((err) => { Logger_1.default.info(TAG, `createDataShareHelper error: code: ${err.code}, message: ${err.message} `); }); } catch (err) { Logger_1.default.error(TAG, `createDataShareHelper error: code: ${err.code}, message: ${err.message} `); } ; } async insert() { Logger_1.default.info(TAG, `insert onClick`); if (this.dataShareHelper === null || this.dataShareHelper === undefined) { Logger_1.default.info(TAG, `insert dataShareHelper = ${this.dataShareHelper}`); return; } let valuesBuckets = { name: 'Book name', introduction: 'Book introduction' }; let insertId = await this.dataShareHelper.insert(BASE_URI, valuesBuckets); Logger_1.default.info(TAG, `insert succeed, data : ${insertId}`); let resultSet = await this.queryAll(); return resultSet; } async updateBook(book) { let predicates = new _ohos_data_dataSharePredicates_1.DataSharePredicates(); predicates.equalTo('id', book.id); let valuesBucket = { 'name': book.name, 'introduction': book.introduction }; let num = await this.dataShareHelper.update(BASE_URI, predicates, valuesBucket); Logger_1.default.info(TAG + `update book num= ${num}`); let resultSet = await this.queryAll(); return resultSet; } async queryAll() { Logger_1.default.info(TAG, `queryAll start`); if (this.dataShareHelper === null || this.dataShareHelper === undefined) { Logger_1.default.info(TAG, `queryAll dataShareHelper = ${this.dataShareHelper}`); return; } let predicates = new _ohos_data_dataSharePredicates_1.DataSharePredicates(); Logger_1.default.info(TAG, `queryAll resultSet= start query`); try { let resultSet = await this.dataShareHelper.query(BASE_URI, predicates, COLUMNS); Logger_1.default.info(TAG, `queryAll resultSet= ${JSON.stringify(resultSet)}`); return resultSet; } catch (err) { Logger_1.default.info(TAG, `dataShareHelper.query error.code=${JSON.stringify(err.code)} , errorMessage=${err.message}`); _ohos_promptAction_1.showToast({ message: `dataShareHelper.query error.code=${JSON.stringify(err.code)} , errorMessage=${err.message}` }); } } // 删除指定数据 async deleteBook(book) { Logger_1.default.info(TAG, `deleteBook start`); if (this.dataShareHelper === null || this.dataShareHelper === undefined) { Logger_1.default.info(TAG, `deleteBook dataShareHelper = ${this.dataShareHelper}`); return; } let predicates = new _ohos_data_dataSharePredicates_1.DataSharePredicates(); predicates.equalTo('id', book.id); Logger_1.default.info(TAG, `delete id = ${book.id}`); let num = await this.dataShareHelper.delete(BASE_URI, predicates); await this.dataShareHelper.notifyChange(BASE_URI); Logger_1.default.info(TAG, `delete num= ${num}`); Logger_1.default.info(TAG, `delete queryAll start`); let resultSet = await this.queryAll(); Logger_1.default.info(TAG, `delete queryAll end`); return resultSet; } } exports["default"] = new DataShareHelper(); /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\DataShareExtAbilityPage.ets?entry": /*!*********************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\DataShareExtAbilityPage.ets?entry ***! \*********************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); let __generate__Id = 0; function generateId() { return "DataShareExtAbilityPage_" + ++__generate__Id; } /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ const DataShareHelper_1 = __importDefault(__webpack_require__(/*! ../feature/DataShareHelper */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\DataShareHelper.ts")); const BookModel_1 = __webpack_require__(/*! ../feature/BookModel */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\BookModel.ts"); const BookView_1 = __webpack_require__(/*! ./component/BookView */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\BookView.ets"); const TitleBar_1 = __webpack_require__(/*! ./component/TitleBar */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\TitleBar.ets"); const UpdateDataDialog_1 = __webpack_require__(/*! ../pages/component/UpdateDataDialog */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\UpdateDataDialog.ets"); class DataShareExtAbilityPage extends View { constructor(compilerAssignedUniqueChildId, parent, params, localStorage) { super(compilerAssignedUniqueChildId, parent, localStorage); this.__message = new ObservedPropertySimple('', this, "message"); this.__books = new ObservedPropertyObject([], this, "books"); this.fileFd = undefined; this.dialogController = null; this.updateWithValueParams(params); } updateWithValueParams(params) { if (params.message !== undefined) { this.message = params.message; } if (params.books !== undefined) { this.books = params.books; } if (params.fileFd !== undefined) { this.fileFd = params.fileFd; } if (params.dialogController !== undefined) { this.dialogController = params.dialogController; } } aboutToBeDeleted() { this.__message.aboutToBeDeleted(); this.__books.aboutToBeDeleted(); SubscriberManager.Get().delete(this.id()); } get message() { return this.__message.get(); } set message(newValue) { this.__message.set(newValue); } get books() { return this.__books.get(); } set books(newValue) { this.__books.set(newValue); } render() { Column.create(); Column.width('100%'); Column.height('100%'); let earlierCreatedChild_2 = (this && this.findChildById) ? this.findChildById("2") : undefined; if (earlierCreatedChild_2 == undefined) { View.create(new TitleBar_1.TitleBar("2", this, { books: this.__books })); } else { earlierCreatedChild_2.updateWithValueParams({}); View.create(earlierCreatedChild_2); } List.create(); List.width('100%'); List.height('100%'); List.margin({ bottom: 100 }); List.constraintSize({ minHeight: '100%' }); List.divider({ strokeWidth: 1, color: Color.Gray, startMargin: 10, endMargin: 10 }); ForEach.create("4", this, ObservedObject.GetRawObject(this.books), item => { ListItem.create(); ListItem.height(90); ListItem.backgroundColor('#ffffff'); ListItem.borderRadius(20); ListItem.onClick(() => { if (this.dialogController !== null) { this.dialogController = null; } this.dialogController = new CustomDialogController({ builder: () => { let jsDialog = new UpdateDataDialog_1.UpdateDataDialog("5", this, { book: item, books: this.__books }); jsDialog.setController(this.dialogController); View.create(jsDialog); }, autoCancel: true }, this); this.dialogController.open(); }); let earlierCreatedChild_3 = (this && this.findChildById) ? this.findChildById("3") : undefined; if (earlierCreatedChild_3 == undefined) { View.create(new BookView_1.BookView("3", this, { book: item, books: this.__books })); } else { earlierCreatedChild_3.updateWithValueParams({ book: item }); View.create(earlierCreatedChild_3); } ListItem.pop(); }, item => JSON.stringify(item)); ForEach.pop(); List.pop(); Column.pop(); } async aboutToAppear() { let context = getContext(this); await DataShareHelper_1.default.getDataShareHelper(context); // let data = await DataShareHelper_1.default.queryAll(); this.books = BookModel_1.getBooksFromResultSet(data); } } loadDocument(new DataShareExtAbilityPage("1", undefined, {})); /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\BookView.ets": /*!**********************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\component\BookView.ets ***! \**********************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.BookView = void 0; let __generate__Id = 0; function generateId() { return "BookView_" + ++__generate__Id; } /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ const DataShareHelper_1 = __importDefault(__webpack_require__(/*! ../../feature/DataShareHelper */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\DataShareHelper.ts")); const Logger_1 = __importDefault(__webpack_require__(/*! ../../util/Logger */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts")); const BookModel_1 = __webpack_require__(/*! ../../feature/BookModel */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\BookModel.ts"); const TAG = 'bookView'; class BookView extends View { constructor(compilerAssignedUniqueChildId, parent, params, localStorage) { super(compilerAssignedUniqueChildId, parent, localStorage); this.__books = new SynchedPropertyObjectTwoWay(params.books, this, "books"); this.book = null; this.updateWithValueParams(params); } updateWithValueParams(params) { if (params.book !== undefined) { this.book = params.book; } } aboutToBeDeleted() { this.__books.aboutToBeDeleted(); SubscriberManager.Get().delete(this.id()); } get books() { return this.__books.get(); } set books(newValue) { this.__books.set(newValue); } render() { Row.create(); Row.width('100%'); Row.height('100%'); Row.padding({ left: 15, right: 15 }); Image.create({ "id": 16777296, "type": 20000, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); Image.height(80); Image.width(80); Image.objectFit(ImageFit.Cover); Flex.create({ direction: FlexDirection.Column, alignItems: ItemAlign.Start }); Flex.height('100%'); Flex.layoutWeight(1); Flex.margin({ left: 12 }); If.create(); if (this.book !== null) { If.branchId(0); Text.create(this.book.name); Text.fontColor(Color.Black); Text.fontSize(22); Text.margin({ top: 14 }); Text.fontWeight(FontWeight.Bold); Text.pop(); Text.create(this.book.introduction); Text.fontColor(Color.Grey); Text.fontSize(20); Text.margin({ top: 10 }); Text.pop(); } If.pop(); Flex.pop(); Button.createWithChild(); Button.type(ButtonType.Circle); Button.height(80); Button.width(80); Button.backgroundColor('#F5F5F5'); Button.onClick(() => { Logger_1.default.info(TAG, 'deleteBook start'); this.delete(); }); Image.create({ "id": 16777297, "type": 20000, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); Image.height(50); Image.width(50); Image.objectFit(ImageFit.Contain); Button.pop(); Row.pop(); } async delete() { let data = await DataShareHelper_1.default.deleteBook(this.book); if (data !== undefined) { this.books = BookModel_1.getBooksFromResultSet(data); } } } exports.BookView = BookView; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\TitleBar.ets": /*!**********************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\component\TitleBar.ets ***! \**********************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.TitleBar = void 0; let __generate__Id = 0; function generateId() { return "TitleBar_" + ++__generate__Id; } /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var _ohos_router_1 = globalThis.requireNapi('router') || (isSystemplugin('router', 'ohos') ? globalThis.ohosplugin.router : isSystemplugin('router', 'system') ? globalThis.systemplugin.router : undefined); const DataShareHelper_1 = __importDefault(__webpack_require__(/*! ../../feature/DataShareHelper */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\DataShareHelper.ts")); const BookModel_1 = __webpack_require__(/*! ../../feature/BookModel */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\BookModel.ts"); class TitleBar extends View { constructor(compilerAssignedUniqueChildId, parent, params, localStorage) { super(compilerAssignedUniqueChildId, parent, localStorage); this.__books = new SynchedPropertyObjectTwoWay(params.books, this, "books"); this.updateWithValueParams(params); } updateWithValueParams(params) { } aboutToBeDeleted() { this.__books.aboutToBeDeleted(); SubscriberManager.Get().delete(this.id()); } get books() { return this.__books.get(); } set books(newValue) { this.__books.set(newValue); } render() { Row.create(); Row.height('8%'); Row.width('100%'); Row.padding({ left: 15, right: 15 }); Row.justifyContent(FlexAlign.Center); Image.create({ "id": 16777295, "type": 20000, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); Image.width(32); Image.height(32); Image.margin({ right: 40 }); Image.onClick(() => { _ohos_router_1.back(); }); Text.create({ "id": 16777290, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); Text.fontSize(16); Text.pop(); Image.create({ "id": 16777294, "type": 20000, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); Image.width(40); Image.height(40); Image.margin({ left: 30 }); Image.onClick(() => { this.add(); }); Row.pop(); } async add() { let data = await DataShareHelper_1.default.insert(); this.books = BookModel_1.getBooksFromResultSet(data); } } exports.TitleBar = TitleBar; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\UpdateDataDialog.ets": /*!******************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\component\UpdateDataDialog.ets ***! \******************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.UpdateDataDialog = void 0; let __generate__Id = 0; function generateId() { return "UpdateDataDialog_" + ++__generate__Id; } /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ const BookModel_1 = __webpack_require__(/*! ../../feature/BookModel */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\BookModel.ts"); const DataShareHelper_1 = __importDefault(__webpack_require__(/*! ../../feature/DataShareHelper */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\DataShareHelper.ts")); const Logger_1 = __importDefault(__webpack_require__(/*! ../../util/Logger */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts")); const TAG = 'UpdateData'; class UpdateDataDialog extends View { constructor(compilerAssignedUniqueChildId, parent, params, localStorage) { super(compilerAssignedUniqueChildId, parent, localStorage); this.__books = new SynchedPropertyObjectTwoWay(params.books, this, "books"); this.book = undefined; this.controller = undefined; this.updateWithValueParams(params); } updateWithValueParams(params) { if (params.book !== undefined) { this.book = params.book; } if (params.controller !== undefined) { this.controller = params.controller; } } aboutToBeDeleted() { this.__books.aboutToBeDeleted(); SubscriberManager.Get().delete(this.id()); } get books() { return this.__books.get(); } set books(newValue) { this.__books.set(newValue); } setController(ctr) { this.controller = ctr; } render() { Column.create(); Column.width('100%'); Column.height(300); Text.create({ "id": 16777232, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); Text.fontWeight(FontWeight.Bold); Text.fontSize(22); Text.margin({ top: 20 }); Text.fontColor(Color.Black); Text.pop(); TextInput.create({ placeholder: 'input name', text: this.book.name }); TextInput.type(InputType.Normal); TextInput.placeholderColor(Color.Gray); TextInput.fontSize(19); TextInput.margin({ top: 10, left: 12, right: 12 }); TextInput.onChange((value) => { this.book.name = value; }); Text.create({ "id": 16777231, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); Text.fontWeight(FontWeight.Bold); Text.fontSize(22); Text.fontColor(Color.Black); Text.margin({ top: 20 }); Text.pop(); TextInput.create({ placeholder: 'input introduction', text: this.book.introduction }); TextInput.type(InputType.Normal); TextInput.placeholderColor(Color.Gray); TextInput.fontSize(20); TextInput.margin({ left: 12, right: 12, top: 10 }); TextInput.onChange((value) => { this.book.introduction = value; }); Blank.create(); Blank.pop(); Row.create(); Row.width('100%'); Text.create({ "id": 16777263, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); Text.fontSize(21); Text.layoutWeight(1); Text.align(Alignment.Center); Text.onClick(() => { this.controller.close(); }); Text.pop(); Text.create({ "id": 16777267, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); Text.fontSize(21); Text.layoutWeight(1); Text.align(Alignment.Center); Text.onClick(() => { this.update(); }); Text.pop(); Row.pop(); Column.pop(); } async update() { Logger_1.default.info(TAG, 'updateBook start'); let data = await DataShareHelper_1.default.updateBook(this.book); this.books = BookModel_1.getBooksFromResultSet(data); this.controller.close(); } } exports.UpdateDataDialog = UpdateDataDialog; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts": /*!********************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\util\Logger.ts ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_hilog_1 = globalThis.requireNapi('hilog') || (isSystemplugin('hilog', 'ohos') ? globalThis.ohosplugin.hilog : isSystemplugin('hilog', 'system') ? globalThis.systemplugin.hilog : undefined); class Logger { constructor(prefix) { this.domain = 0xFF00; this.prefix = ''; this.format = '%{public}s, %{public}s'; this.prefix = prefix; this.domain = 0xFF00; } debug(...args) { _ohos_hilog_1.debug(this.domain, this.prefix, this.format, args); } info(...args) { _ohos_hilog_1.info(this.domain, this.prefix, this.format, args); } warn(...args) { _ohos_hilog_1.warn(this.domain, this.prefix, this.format, args); } error(...args) { _ohos_hilog_1.error(this.domain, this.prefix, this.format, args); } } exports["default"] = new Logger('[Sample_StageModel]'); /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ var commonCachedModule = globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] ? globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId]: null; /******/ if (commonCachedModule) { return commonCachedModule.exports; } /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ function isCommonModue(moduleId) { /******/ if (globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"]) { /******/ const length = globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"].length; /******/ switch (length) { /******/ case 1: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId]; /******/ case 2: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId] || /******/ globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][1][1][moduleId]; /******/ } /******/ } /******/ return undefined; /******/ } /******/ if (globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] && String(moduleId).indexOf("?name=") < 0 && isCommonModue(moduleId)) { /******/ globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId] = module; /******/ } /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = __webpack_require__("E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\DataShareExtAbilityPage.ets?entry"); /******/ _1e36f0fd2df677c57b79e15aad3634be = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=DataShareExtAbilityPage.js.map#introductionIndexnameIndexidIndexiinsertIdvaluesBuckets+earlierCreatedChild_2ctrvaluesBucket    /'3' V%b%' %$ # iUn  'O N(J'N N V%b%'  $ g# '   0 B in  P N  Q N V%b%+' # L# iUn  :&Fd'Np Y7f s V%b%' # " i[ n  _~_ V%b% V%b%' #  ! Q 9!  U 'U     lVt% V%b%    'topplaceholder%input introduction left rightbundleName/ohos.samples.stagemodelmoduleName entry_ohos_router_1_ohos_hilog_1autoCancel bottomminHeightstrokeWidthstartMarginendMarginBook name#Book introduction*input name)_ohos_promptAction_1-_ohos_data_dataShare_1A_ohos_data_dataSharePredicates_11__webpack_module_cache__'__webpack_modules__SlotNumber*7*7*"7*7* 7*7*)7*7*B7*7*$7*7*7*7*27*7*S7*s7*7*'7*7*7*7*7*7*7*/7* 7*7*Q7*7*l7*7*+7* 7*[7*p7*7*(7*7DpDDa`=aa`=30a`= >a3+3,3 -3  .3/303#1`a`=a`=< a>-a`*a`]e DDD®a<a>Da`a`Ba`BaOa`a>a`/<a`Ba`Ba>a<a>a`a3 a`0 `a`ab $Q``MQa<a>Da  `a`Ba`BaOa`a>\a` a> a`/dadG[O  iDDD<a>Da`a`Ba`BaOa`a>a`/<1a`Baya>z `a`. e DDD®a<a>Da`a`Ba`BaOa`a>a`/<a`Ba`Ba>a<a>a`a`/ `a`ab $Q``<1a`B axa>z`a`.<a>Da`a`Ba`BaOa`a>a`/MQa<a>Da  `a`Ba`BaOa`a>[a` a> a`/ dadGO =DDD<a`Ba`Ba<a>a`a3a`/e zDDDD<a>Da  `a`Ba`BaOa`a>a` a> a`/<1a`Ba wa>z `a`. e aDDDD<a>Da  `a`Ba`BaOa`a>|a` a> a`/<a`Ce uDDDD<a>Da  `a`Ba`BaOa`a>{a`a ` Bt a> a`a ` B a> a`/ eqEEEEEE36aa`a $Q`a ` BbM` a #Q 3M` a?Fa ` Ba `a >`a oa`a` 0 ba ` =`a `a >,a ` * a ` * a ` =@`a >+a ` * a ` =P`a >.a ` * a ` =0`a >/a ` * a ` =`a >0a ` * a ` = ?Ya 5+p a a ` Ba >aa` 49a >aa` 4a >maa` 43a >maa` 4a ` 4:z ` 4!1z"d ` a?$a `a > a a a% a ` *' e.D`DqDD`$Q`a`B`$Q`Mna`z`d'DDDD`a`B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`B}a`.Pa`a`-Pa`ya<a`ka`a`.Pa`a"a`:a`.Pa`aba`.Pa`a[a`a`.Pa`a`-<a`a`-2a`a`-a`}a`-a`aa`!a`.a`abPa`.a`abPa`.a`ja>a`.a`ata`.=a`ya\aa`a`.=a`ab2a`.=a`ab2a`.=a`a>a`$a`.a`a`-Ja`a`-e VDDD<a>Da`a`Ba`BaOa`a>a`/<a`Ba`-eUEEEEEE3aa ` =a`a $Q`a ` BbM` a #Q 3M` a?Fa ` Ba `a >`a Ra`a` 0 `a bC R ba ` =ma ` B a >a ` . a #Q]?a >a >a ` + $Qma ` Ba ` BM/?a >a >a ` + $Qma ` Ba ` BMM` a ` =`a `a >,a ` * a ` * a ` = `a >+a ` *" a ` =0?$Ya 5%.S a a ` B&a >maa` 4(a >maa` 4)a ` 4*z+ ` 4-2z.f ` a`a `C0R e.D`DqDD`$Q`a`B`$Q`MQa`z`d =DDD>Sa<a>aa`a`!a<a>aa``a`= d DPDaDrDeDDEEEEa`=0a`=@a`=Pa`a $Q`a ` BbM` a #Q 3M` a?Fa ` Ba `a >`a ~a ` a ` 0 ma ` B a >a ` . a #Qm? a >a >a ` + $Qma ` Ba ` B~a ` BM7?a >a >a ` + $Qma ` Ba ` B~a ` BMM` a ` =@ma ` Ba >a ` .! a #Qm?#a >a >a ` +$ $Qma ` B&a ` B(~a ` B*M7?,a >a >a ` +- $Qma ` B/a ` B1~a ` B3MM` a ` =Pma ` B5a >a ` .7 a #Q]?9a >a >a ` +: $Qma ` B<a ` B>M/?@a >a >a ` +A $Qma ` BCa ` BEMM` a ` =0`a `a >1a ` *G a ` *I a ` =>*a ` = >a ` =Ka a ` =`pa 5L, a a ` BMa ` a`a >a `a O 8Q ePD` =` =?Ja`Bya`-?Ja`Ba>a`.? Ja`B a> a`. ?Ja`BaJa`a`.?Ja`Ba?3a`B a`.?=a`Bya Ka!az"`a`.$?&=a`B'ab a`.)?+=a`B,ab a`..?0=a`B1a3La`a`.4?6=a`B7a39a`.:?`a F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.D`DqDD`$Q`a`B`$Q`M>a`z`d=DDD<a`Ba`Ba<a>a`a3&a`/e DDDDD`$QQ<a >Da  ` a`Ba`BaOa  `a>a `  a >  a `/ Ms<a >Da  ` a`Ba`B aOa  `a>a ` a > a `/ <1a`Ba{a>z`a`.e=DDD<a`Ba`Ba<a>a`a3(a`/e DDDDD<a >Da  ` a`Ba`BaOa  `a>a `  a >  a `/ <1a`Ba za>a ` a > z `a`.e@DDDDDD`a`a`C`a`C`a`C`d DDDEEEE`a`a`a `a 2a``a`a?Na `a ` Bma `a >ma  C^`aC k`a ` B a`a `. `d DDDEEEE`a`a`a `a 2a``a`a?Ia >a `a >a  Cc`a?Ha a a `a >ma   C ^`aC `aC`a ` Ba`a `. `dm|DP`=`=<a<a3%C<a3'C<a3C<a3 C <a3 C <d`D`DqDD`a`abC`a>C`a>C`a`C`abC`d ~DDDEEEE`a`a`a `a 2a``a`a?Na `a ` Bma `a >ma  C^`a ` B a`a `. `d DDDEEEE`a`a`a `a 2a``a`a?Na `a ` Bma `a >ma  C^`aC k`aC x`a ` B a`a `. `dDEEE38aaaama >_a ` 7 $Qma >_a ` 7 a `a ` 7 Ma`$Q `a ` Bd<a `a ` 7 a`a ' $Q `a ` B d<a `a =a z ` 8 ama >_a ` 7 a $Q2?La `a` *a ` Ba >a ` . a b M` $Q+`a `a ` * $Qma >_a ` 7 a `a `8! <a `a ` 7# a ` B%qa `a ` B'a `a `a ` B)a < a` 1+ `a ` B-d DDDҮa?a`a`*a<@a >(a  ` a`Ba`Ba`a`.`a`ab $Q``<@a >(a  ` a`B a`B a`-`a`ab$Q``a`aa  ` a`Ba`a `. Cmdad oDDD`a`Bca`Bea`-`a`B^a`Bea`- ? Ma`B 7a`-a`Ba`a`Ba`-a`.e DDD®a< a>(a  `a`Ba`Ba`-`a`ab$Q``a`a<0a>a  `a`Ba`a`. C mdad w DpDD`a`B^a`Ba`-d DDD<"a>Xa`a`BVa>a<aca <zk <a ` B^zm ` a a`a`B a<a`B a`.?Ya`Bya`a`.e GDDDDa<a`Ba`a`Ba`a`Ba`a ` Ba `a `1e DDD®a<0a>(a  `a`Ba`Ba`a`Bka`.`a`ab$Q``a`a' $Q.`a<@a>a  `a`B a`a`. Cmdad  DDDEa<a >Da  ` a ` Ba ` Ba< a >Oa  ` a >a `/ `a ` Ba(#Q`a ` B a( $Q\<a >Da  ` a ` B a ` Ba< a >Oa  ` a >a `a ` B  a >  a `/ da `a ` Ba `/ <a >Da  ` a ` B a ` B"a< a >Oa  ` a >a `a ` B$ & a > ' a `/( `a ` B*a ` B,a<a >a  ` a `a `/. `a `ab0$Q` ` a`a ` B1a ` B3a<a >a  ` a `.5 `a `ab7$Q` ` <a >Da  ` a ` B8a ` B:a< a >Oa  ` a >a ` < a > = a `/> <a >Da  ` a ` B@a ` BBa< a >Oa  ` a >a `/D `a ` BFa`-H `a `abJ$Q` ` a<a >Da  ` a ` BKa ` BMa< a >Oa  ` a >a `/O `dad  GDDDDa<a`Ba`a`Ba`a`Ba`a ` Ba `a `1e DP`=`=]3a`)e =DDD>'a<a>aa`a`!a<a>aa``a`= dEEEEaa<a >Da  ` a`Ba`Ba<a>Oa  `a>a `a ` Bv  a >  a `a ` B a > a `/  `a'$`a ` Ba ` - `a ` Ba >a ` . a`a ` Ba >a ` . a`a ` Ba >a ` . a<a >Da  ` a ` B a ` B"a <a >Oa  ` a >;a `a`B$a >a` .& ( a > ) a `a`B*a >a` ., . a > / a `a`B0a >a` .2 4 a > 5 a ` /6 ba ` a `a ` B8: $p`a`B;a `a` .=a `a`B?a `a` .Aa `a`BCa `a` .Ea <a>Da`a`BGa`BIa <a>Oa`a>a` Ka> La` Ma> Na` Oa> Pa` /Q`a`BSa < a>a`a` a` a` aUa` .W<a>Da`a`BYa`B[a <a>Oa`a>a?]Aa`B^a`a`.` ba> ca` /d`a`Bfa ` -h` a ` !ja ` kN`dvD`=`=Eaa  ` a ` / a`Ba3a `. a`B ra3 a`. `a`ab$Q``Mpa<a >Da  ` a`Ba`BaOa  `a>{a `a ` Bt  a >  a `a ` B  a >  a `/ dadun GDDDDa<a`Ba`a`Ba`a`Ba`a ` Ba `a `1e DDDa<a >Da  ` a ` Ba`Ba< a >Oa  ` a >a `/ `a`Ba(#Q`a`B a( $Q\<a >Da  ` a ` B a`Ba< a >Oa  ` a >a `a ` B  a >  a `/ dta`a`a ` Ba`Ba<a >a  ` a `a `/ `a`ab$Q``a<a >Da  ` a ` Ba`B a< a >Oa  ` a >a ` " a > # a `/$ `a`B&a`-(`a`ab*$Q``a`dad  DDDEma>a`7$ma>a`7a`Ba`ab'$Qb'$Q:Nma >a ` 7 a ba ` 7 aba ` 7 a`a`7dma >a ` 7 a ba ` 7 a ba ` 7 a`a ` 7a#Q8ma >a ` 7 a ba ` 7 a ba ` 7 a`a ` 7M`dd DpDD`a`Bca`Ba`-d DDDa<a>Da  `a`Ba`Ba< a>Oa`a>a`/`a`Ba(#Q`a`B a( $Q\<a>Da  `a`B a`Ba< a>Oa`a>a`a ` B a> a`/dDa  `a`Ba`Ba< a>Oa`a>a`/`a`B a`B"a<a>a  `a`a <`a >a  ` a `0$ `a`ab&$Q``a<a >Da  ` a`B'a`B)a< a>Oa  `a>a ?+Aa ` B,a `a ` .. 0 a > 1 a `/2 `a`dNa<a >Da  ` a`B4a`B6a< a>Oa  `a>a ?8Aa ` B9a `a ` B;ta ` .= ? a > @ a `a ` BA C a > D a `/E <0a`BGaIra>a ?JAa ` BKa `a ` BMta ` .O Q a > R a `a ` BS U a > V zW`a`.Ydad  mD`=`=?#a`Bya`-?#a`Ba> a`.? #a`B a> a`. <$Q(<a`B$Q<a`Ba> a`.Ma`a$QY?Ya`Bya<a >Ta  ` a`BRa> a<a ha <a ` B^zm ` a  a`."M/`a`B$aa`.&?(Ya`B)ya`a`.+?-Ba`B.ya`-0?2Ba`B3a> a`.5?7Ba`B8a> a`.:?a<a?VGa ` BW8a <a ` BYma ` .[ a 3]a 3^a `1_?a6a`Bba`-d?fBa`Bga`-i?k#a`Bla`-neD`DqDD`a`Cxe DDD®a<a>Da  `a`Ba`Ba< a>Oa`a>a`/<0a>(a  `a`Ba`Ba`a`B ka`. `a`ab$Q``a`a<@a>a  `a`Ba`a`.Cm`a`Bxa`Bsa`-dad DDEEaa `a ` Ba ` /  sa `a ` B z `a ` Bz ` a`a ` Ba ` Ba <a >a  ` a `a `a ` 0 `a `a b $Q` ` a<a >Da  ` a ` Ba ` Ba < a >Oa  ` a >a `  a >  a ` .! `a ` B#a ` -% `a `a b' $Q` ` a`da d DpDDD`a`Ba'$Q`a`a`BC`a`Bma' $Q`a`a`B mC m`a`Ba'$Q`a`a`BC`a`Ba'$Q`a`a`BCe GDDDDa<a`Ba`a`Ba`a`Ba`a ` Ba `a `1e  > p                     /  gH HHHHHHHHHHHH $z$$~$|$|${$z$)-$8$.      {        /          J JHHHHHHHHHH !"' .<F JHH!&+bf+f+w      z k <  %HHHHHHHHHH!*/ 3!3      {      k <  m     /          J VHHHHHHHHHH !"' /= // !&+{ JHH!&+cg+g+x  HHHHHHHHHH .8           z k <  5HHHHHHHHHHJHH!&+<@+@+ //           z  3HHHHHHHHHH'HH!&+UZ+Z+'              7HHHHHHHHHHJHH!&+QZ+Zgs+s+        1            k    k    k    k     /                                     HHHHJHHJHHJHH$HHJHHKHHKHH+HH   8- *`*DCCZKHH&+ +d+d+a+a+"^+" ^+%[+% [+( X++ ) . 9 1HHHHJHHJHHKHH   % +8+#HHHHJHHJHHKHH        1          \      k   /    q     }HJHH,HHHHHJHH$HHJHHKHH+HH   8-  94 !K! HH      #HHHHJHHJHHKHH    k  k  k            /  k              k -  m  l nHHHHHHHHHHKHH  % "  )(1 (G ZG(a) 49?G?T ? <<      k  ]    k Z  8   4HHHHHHHHHH .,,(CC(v(      %HHHHHHHHHHLHH"         1        \        k      k    k   /                      HHHHJHHJHHHHJHHJHH$HHKHH+HH   8- *c*!N!G HH p pm m j1HHHHJHHJHHKHH   % +8+#HHHHJHHJHH      k  Z (HHHHJHHJHH1HH       HHHHJHHJHH'HHHHJHHJHH           0HHHHJHHJHHKHH   % +8+#HHHHJHHJHHKHH    k  k  k    k  k  k  k      k  k  k  k   z  k  k  k  k  k  k  k  k  k  k   k  k  k  k  n    k  k  k  kHHHH > ! C               >      zHHHHHHHHHH !"'         1        \                    k      k     /                      HJHHJHHJHHHHHJHH$HHKHH"HH+HH  8-  - ;JT; ^:}} }*c*G"HH  t tq q n+ U01HHHHJHHJHHKHH   % +8+#HHHHJHHJHH    H"HHHHJHHJHH'HHHHJHHJHH#HHHHJHHJHHKHH        1                      k                  k                  k      k  k  k   /         HJHHJHHNHHHHHJHH$HHKHH+HH  8-  5 KZlK vJ ( ?( _n_ ^ ( 3 GVfG pF !K! NHH     k  k  k  k    k  k  k  k  m    k  k    k  k  k  k  m[HHHH >  = >    HHHHHHHHHH HHHHHHHHHH         1        \      k      k      k   /                         HHHHJHHJHHJHH"HHJHH$HHKHH+HH   8-  G*c*!N! "HH$ $l$ l$i$ i$f$ c$$1HHHHJHHJHHKHH   % +8+#HHHHJHHJHH #!#     k  ]  k  Z 0HHHHJHHJHH1HH   "  HHHHJHHJHH'HHHHJHHJHH#HHHHJHHJHHKHH1HHHHJHHJHHKHH   % +8+    k  k    k  k  k  k  k    k  k  k  k  k  m    k  k  k  k  k    k  k  k  k  k  m  k    k  k  k  k  m    k  k  k  k  mHHHH=  < # =  D # = =     #HHHHHHHHHHOHH  #HHHHHHHHHHOHH % HHHHHHHHHH HHHHHHHHHH         1                       /           HHHHJHHJHHKHH$HH+HHOHH   8-  , 9HQ9 [8yy yOHH    1HHHHJHHJHHKHH   % +8+     HHHHHHHHHH .8   \                z k <   NH HHHHHH'HHHHH+HH!*/@F/F/!*/@E/E/ 3!3 {!HHHHHHHHHH 0:           z k     <  CH HHHHHHHHHJHH'HH!&+>B+B+ /055/ "  M   \  \  X ^ 9H HHHJHHJHH.HH-HH/HH##  M             \  \  f _ THHHHJHH1HHOHHJHHPHHPHH-57 EK#$  M             \         \  \  \   a lHHHHJHH1HHOHHJHHPHHPHH-548>26< #z%  N     e        .HHHHI7&  M   \  \  \  \   ` 8HHHHJHHJHH1HH{'  M             \  g ^ PHHHHJHH1HHOHHJHHPHHPHH-57 EK#(  M             \  \  \   ` ZHHHHJHH1HHOHHJHHPHHPHH-57 EK#{)            /  !    /  k  "   m                  >      N        m  H HHHJHHJHHPHHPHHPHHPHHPHH$/$mxmm$, %7  1== Y`YrY~Y  T`  . >F V  *     /       /      EHJHHJHH'HHHHHPHH! !;& 7 {+    HHHHJHHJHH',    /     .HHHHJHHJHH'HH& 7 -   HHHHJHHJHH        k - ]   2   k     ; /     z       >        z]   /    z        z      /            z   z   /    z   H JHHHHHQHHQHHQHHJHH%HH!# % - F- !"'G\'\'    ! !#2:#:#4> 0!#26#6#!# !#q0,HHHHJHHJHHPHH    ) 6 C l  QHHHH  1       #HHHHJHHJHH *(*    /             z   >    /    /    /               >    - > <   ]        >    /    /    /                 z         k          z        H HHHJHHJHH%HHQHH+!E[[i||HHHHHH /  1 9  !#+D+ J#JUnU v#v8 H#H#HH /HH.HH-HH ) + 3 !"'/2'2=B'BUb'b' %)/ !"'Q`Q g'g' y0 2        v    /               KHHHHPHH ?HW JHH !#(NW(Wdp(p( r3   /      ,HHHHJHHJHHPHH    ( 5 B     z       >        z]  /      /         z   /   {HHHHJHHQHHJHHHHHH!# % - F- !"'CX'X'  9C !#=F#F# v4    >    / M  l  g ?          !                 Z    uH HHHJHHJHHPHH*/HH,7, #%$$(3(d(g(j(!(3(d(g(j(!,!]!`!c!(!"5HHHHJHHJHH     z       >        z]   /           /           z    /               z k           <    HJHHJHHHHHQHH!# % - F- !"'EZ'Z'   !#QHH"=GS" !"'>M> X'X'  JHH !"'L[ L e'ew'' +=L = VVhtt+ yx6    k  k          /  k             k  l   k  k  k  k    k        HHHHHH%$- $C VC$] % 05;D ; 8    .  "> "K! _"7$HHHHJHHJHHʆHH     z     /     \ :HHHHJHHJHH'HH!#!>  78    /    z k ]  2       /         k   /   tH JHHφHHHHHQHHQHHQHHJHH%HH   !  4>J !$8<$< v9    k  ]  k  ]  k  ]  k  Z @HHHHJHHJHH1HH       ( $ :,HHHHJHHJHHPHH    ( 5 B^2$#q587)*.(jjW?%w V"y#v%&(i*0+++,,-..,//21122H33M55889;<=X>B?PK !:fY??$ets/pages/DataShareExtAbilityPage.jsvar _1e36f0fd2df677c57b79e15aad3634be; /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\BookModel.ts": /*!**************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\feature\BookModel.ts ***! \**************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getBooksFromResultSet = exports.BookModel = void 0; const Logger_1 = __importDefault(__webpack_require__(/*! ../util/Logger */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts")); const TAG = 'BookModel'; class BookModel { constructor(id, name, introduction) { this.id = id; this.name = name; this.introduction = introduction; } } exports.BookModel = BookModel; function getBooksFromResultSet(resultSet) { let books = []; Logger_1.default.info(TAG, `getBooksFromResultSet columnNames= ${resultSet.columnNames}, rowCount= ${resultSet.rowCount}`); if (resultSet !== null) { resultSet.goToFirstRow(); let idIndex = resultSet.getColumnIndex('id'); let nameIndex = resultSet.getColumnIndex('name'); let introductionIndex = resultSet.getColumnIndex('introduction'); Logger_1.default.info(TAG, `ID = ${resultSet.getColumnIndex('id')}, name = ${resultSet.getColumnIndex('name')}, introduction = ${resultSet.getColumnIndex('introduction')}`); for (let i = 0; i < resultSet.rowCount; i++) { let id = resultSet.getDouble(idIndex); let name = resultSet.getString(nameIndex); let introduction = resultSet.getString(introductionIndex); Logger_1.default.info(TAG, `id = ${id}, name = ${name}, introduction = ${introduction}`); books.push(new BookModel(id, name, introduction)); Logger_1.default.info(TAG, `getBooksFromResultSet resultSet books: ${JSON.stringify(books)}`); resultSet.goToNextRow(); } } return books; } exports.getBooksFromResultSet = getBooksFromResultSet; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\DataShareHelper.ts": /*!********************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\feature\DataShareHelper.ts ***! \********************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_data_dataShare_1 = globalThis.requireNapi('data.dataShare') || (isSystemplugin('data.dataShare', 'ohos') ? globalThis.ohosplugin.data.dataShare : isSystemplugin('data.dataShare', 'system') ? globalThis.systemplugin.data.dataShare : undefined); var _ohos_data_dataSharePredicates_1 = globalThis.requireNapi('data.dataSharePredicates') || (isSystemplugin('data.dataSharePredicates', 'ohos') ? globalThis.ohosplugin.data.dataSharePredicates : isSystemplugin('data.dataSharePredicates', 'system') ? globalThis.systemplugin.data.dataSharePredicates : undefined); var _ohos_promptAction_1 = globalThis.requireNapi('promptAction') || (isSystemplugin('promptAction', 'ohos') ? globalThis.ohosplugin.promptAction : isSystemplugin('promptAction', 'system') ? globalThis.systemplugin.promptAction : undefined); const Logger_1 = __importDefault(__webpack_require__(/*! ../util/Logger */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts")); const TAG = 'DateShareHelper'; const BASE_URI = ("datashare:///ohos.samples.stagemodel.DataShare"); const COLUMNS = ['*']; class DataShareHelper { constructor() { // 用户给定的URI转换为服务端使用的URI时回调此接口,该方法可以选择性重写。对应FA模型的DataAbilityHelper中的normalizeUri this.normalizeUri = () => { this.dataShareHelper.normalizeUri(BASE_URI, (error, data) => { if (error) { Logger_1.default.info(TAG, `normalizeUri: ${error}`); } else { Logger_1.default.info(TAG, `normalizeUri: ${data}`); _ohos_promptAction_1.showToast({ message: `normalizeUri sucess` }); } }); }; // 服务端使用的URI转换为用户传入的初始URI时服务端回调此接口,该方法可以选择性重写。对应FA模型的DataAbilityHelper中的denormalizeUri this.denormalizeUri = () => { this.dataShareHelper.denormalizeUri(BASE_URI, (err, data) => { Logger_1.default.info(TAG, `denormalizeUri: ${err}`); _ohos_promptAction_1.showToast({ message: `denormalizeUri: ${data}` }); }); }; // 订阅指定URI对应数据的数据变更事件。若用户(订阅者)已注册了观察者,当有其他用户触发了变更通知时(调用了下文中的notifyChange方法),订阅者将会接收到callback通知。 // 对应FA模型的DataAbilityHelper中的on this.on = async () => { Logger_1.default.info(TAG, `on start`); try { await this.dataShareHelper.on('dataChange', BASE_URI, () => { Logger_1.default.info(TAG, `on end`); _ohos_promptAction_1.showToast({ message: `on success` }); }); } catch (err) { Logger_1.default.info(TAG, `[ttt] [DataAbilityTest] Observer on catch(err)====>:${err}`); } }; // 取消订阅指定URI对应的数据资源的变更通知。对应FA模型的DataAbilityHelper中的off this.off = async () => { Logger_1.default.info(TAG, `off start`); try { await this.dataShareHelper.off('dataChange', BASE_URI); _ohos_promptAction_1.showToast({ message: `off success` }); Logger_1.default.info(TAG, `off end`); } catch (err) { Logger_1.default.info(TAG, `[ttt] [DataAbilityTest] Observer off catch(err)====>:${err}`); } }; // 通知已注册的观察者Uri指定的数据资源的更改。对应FA模型的DataAbilityHelper中的notifyChange this.notifyChange = () => { this.dataShareHelper.notifyChange(BASE_URI, (err) => { Logger_1.default.info(TAG, `notifyChange: ${err}`); _ohos_promptAction_1.showToast({ message: `notifyChange` }); }); }; } async getDataShareHelper(context) { // 对应FA模型FeatureAbilityTest中的acquireDataAbilityHelper // this.dataShareHelper = await dataShare.createDataShareHelper(context, BASE_URI) try { await _ohos_data_dataShare_1.createDataShareHelper(context, BASE_URI).then((data) => { Logger_1.default.info(TAG, `createDataShareHelper succeed, data : ${data}`); this.dataShareHelper = data; }).catch((err) => { Logger_1.default.info(TAG, `createDataShareHelper error: code: ${err.code}, message: ${err.message} `); }); } catch (err) { Logger_1.default.error(TAG, `createDataShareHelper error: code: ${err.code}, message: ${err.message} `); } ; } async insert() { Logger_1.default.info(TAG, `insert onClick`); if (this.dataShareHelper === null || this.dataShareHelper === undefined) { Logger_1.default.info(TAG, `insert dataShareHelper = ${this.dataShareHelper}`); return; } let valuesBuckets = { name: 'Book name', introduction: 'Book introduction' }; let insertId = await this.dataShareHelper.insert(BASE_URI, valuesBuckets); Logger_1.default.info(TAG, `insert succeed, data : ${insertId}`); let resultSet = await this.queryAll(); return resultSet; } async updateBook(book) { let predicates = new _ohos_data_dataSharePredicates_1.DataSharePredicates(); predicates.equalTo('id', book.id); let valuesBucket = { 'name': book.name, 'introduction': book.introduction }; let num = await this.dataShareHelper.update(BASE_URI, predicates, valuesBucket); Logger_1.default.info(TAG + `update book num= ${num}`); let resultSet = await this.queryAll(); return resultSet; } async queryAll() { Logger_1.default.info(TAG, `queryAll start`); if (this.dataShareHelper === null || this.dataShareHelper === undefined) { Logger_1.default.info(TAG, `queryAll dataShareHelper = ${this.dataShareHelper}`); return; } let predicates = new _ohos_data_dataSharePredicates_1.DataSharePredicates(); Logger_1.default.info(TAG, `queryAll resultSet= start query`); try { let resultSet = await this.dataShareHelper.query(BASE_URI, predicates, COLUMNS); Logger_1.default.info(TAG, `queryAll resultSet= ${JSON.stringify(resultSet)}`); return resultSet; } catch (err) { Logger_1.default.info(TAG, `dataShareHelper.query error.code=${JSON.stringify(err.code)} , errorMessage=${err.message}`); _ohos_promptAction_1.showToast({ message: `dataShareHelper.query error.code=${JSON.stringify(err.code)} , errorMessage=${err.message}` }); } } // 删除指定数据 async deleteBook(book) { Logger_1.default.info(TAG, `deleteBook start`); if (this.dataShareHelper === null || this.dataShareHelper === undefined) { Logger_1.default.info(TAG, `deleteBook dataShareHelper = ${this.dataShareHelper}`); return; } let predicates = new _ohos_data_dataSharePredicates_1.DataSharePredicates(); predicates.equalTo('id', book.id); Logger_1.default.info(TAG, `delete id = ${book.id}`); let num = await this.dataShareHelper.delete(BASE_URI, predicates); await this.dataShareHelper.notifyChange(BASE_URI); Logger_1.default.info(TAG, `delete num= ${num}`); Logger_1.default.info(TAG, `delete queryAll start`); let resultSet = await this.queryAll(); Logger_1.default.info(TAG, `delete queryAll end`); return resultSet; } } exports["default"] = new DataShareHelper(); /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\DataShareExtAbilityPage.ets?entry": /*!*********************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\DataShareExtAbilityPage.ets?entry ***! \*********************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); let __generate__Id = 0; function generateId() { return "DataShareExtAbilityPage_" + ++__generate__Id; } /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ const DataShareHelper_1 = __importDefault(__webpack_require__(/*! ../feature/DataShareHelper */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\DataShareHelper.ts")); const BookModel_1 = __webpack_require__(/*! ../feature/BookModel */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\BookModel.ts"); const BookView_1 = __webpack_require__(/*! ./component/BookView */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\BookView.ets"); const TitleBar_1 = __webpack_require__(/*! ./component/TitleBar */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\TitleBar.ets"); const UpdateDataDialog_1 = __webpack_require__(/*! ../pages/component/UpdateDataDialog */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\UpdateDataDialog.ets"); class DataShareExtAbilityPage extends View { constructor(compilerAssignedUniqueChildId, parent, params, localStorage) { super(compilerAssignedUniqueChildId, parent, localStorage); this.__message = new ObservedPropertySimple('', this, "message"); this.__books = new ObservedPropertyObject([], this, "books"); this.fileFd = undefined; this.dialogController = null; this.updateWithValueParams(params); } updateWithValueParams(params) { if (params.message !== undefined) { this.message = params.message; } if (params.books !== undefined) { this.books = params.books; } if (params.fileFd !== undefined) { this.fileFd = params.fileFd; } if (params.dialogController !== undefined) { this.dialogController = params.dialogController; } } aboutToBeDeleted() { this.__message.aboutToBeDeleted(); this.__books.aboutToBeDeleted(); SubscriberManager.Get().delete(this.id()); } get message() { return this.__message.get(); } set message(newValue) { this.__message.set(newValue); } get books() { return this.__books.get(); } set books(newValue) { this.__books.set(newValue); } render() { Column.create(); Column.width('100%'); Column.height('100%'); let earlierCreatedChild_2 = (this && this.findChildById) ? this.findChildById("2") : undefined; if (earlierCreatedChild_2 == undefined) { View.create(new TitleBar_1.TitleBar("2", this, { books: this.__books })); } else { earlierCreatedChild_2.updateWithValueParams({}); View.create(earlierCreatedChild_2); } List.create(); List.width('100%'); List.height('100%'); List.margin({ bottom: 100 }); List.constraintSize({ minHeight: '100%' }); List.divider({ strokeWidth: 1, color: Color.Gray, startMargin: 10, endMargin: 10 }); ForEach.create("4", this, ObservedObject.GetRawObject(this.books), item => { ListItem.create(); ListItem.height(90); ListItem.backgroundColor('#ffffff'); ListItem.borderRadius(20); ListItem.onClick(() => { if (this.dialogController !== null) { this.dialogController = null; } this.dialogController = new CustomDialogController({ builder: () => { let jsDialog = new UpdateDataDialog_1.UpdateDataDialog("5", this, { book: item, books: this.__books }); jsDialog.setController(this.dialogController); View.create(jsDialog); }, autoCancel: true }, this); this.dialogController.open(); }); let earlierCreatedChild_3 = (this && this.findChildById) ? this.findChildById("3") : undefined; if (earlierCreatedChild_3 == undefined) { View.create(new BookView_1.BookView("3", this, { book: item, books: this.__books })); } else { earlierCreatedChild_3.updateWithValueParams({ book: item }); View.create(earlierCreatedChild_3); } ListItem.pop(); }, item => JSON.stringify(item)); ForEach.pop(); List.pop(); Column.pop(); } async aboutToAppear() { let context = getContext(this); await DataShareHelper_1.default.getDataShareHelper(context); // let data = await DataShareHelper_1.default.queryAll(); this.books = BookModel_1.getBooksFromResultSet(data); } } loadDocument(new DataShareExtAbilityPage("1", undefined, {})); /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\BookView.ets": /*!**********************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\component\BookView.ets ***! \**********************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.BookView = void 0; let __generate__Id = 0; function generateId() { return "BookView_" + ++__generate__Id; } /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ const DataShareHelper_1 = __importDefault(__webpack_require__(/*! ../../feature/DataShareHelper */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\DataShareHelper.ts")); const Logger_1 = __importDefault(__webpack_require__(/*! ../../util/Logger */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts")); const BookModel_1 = __webpack_require__(/*! ../../feature/BookModel */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\BookModel.ts"); const TAG = 'bookView'; class BookView extends View { constructor(compilerAssignedUniqueChildId, parent, params, localStorage) { super(compilerAssignedUniqueChildId, parent, localStorage); this.__books = new SynchedPropertyObjectTwoWay(params.books, this, "books"); this.book = null; this.updateWithValueParams(params); } updateWithValueParams(params) { if (params.book !== undefined) { this.book = params.book; } } aboutToBeDeleted() { this.__books.aboutToBeDeleted(); SubscriberManager.Get().delete(this.id()); } get books() { return this.__books.get(); } set books(newValue) { this.__books.set(newValue); } render() { Row.create(); Row.width('100%'); Row.height('100%'); Row.padding({ left: 15, right: 15 }); Image.create({ "id": 16777296, "type": 20000, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); Image.height(80); Image.width(80); Image.objectFit(ImageFit.Cover); Flex.create({ direction: FlexDirection.Column, alignItems: ItemAlign.Start }); Flex.height('100%'); Flex.layoutWeight(1); Flex.margin({ left: 12 }); If.create(); if (this.book !== null) { If.branchId(0); Text.create(this.book.name); Text.fontColor(Color.Black); Text.fontSize(22); Text.margin({ top: 14 }); Text.fontWeight(FontWeight.Bold); Text.pop(); Text.create(this.book.introduction); Text.fontColor(Color.Grey); Text.fontSize(20); Text.margin({ top: 10 }); Text.pop(); } If.pop(); Flex.pop(); Button.createWithChild(); Button.type(ButtonType.Circle); Button.height(80); Button.width(80); Button.backgroundColor('#F5F5F5'); Button.onClick(() => { Logger_1.default.info(TAG, 'deleteBook start'); this.delete(); }); Image.create({ "id": 16777297, "type": 20000, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); Image.height(50); Image.width(50); Image.objectFit(ImageFit.Contain); Button.pop(); Row.pop(); } async delete() { let data = await DataShareHelper_1.default.deleteBook(this.book); if (data !== undefined) { this.books = BookModel_1.getBooksFromResultSet(data); } } } exports.BookView = BookView; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\TitleBar.ets": /*!**********************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\component\TitleBar.ets ***! \**********************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.TitleBar = void 0; let __generate__Id = 0; function generateId() { return "TitleBar_" + ++__generate__Id; } /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var _ohos_router_1 = globalThis.requireNapi('router') || (isSystemplugin('router', 'ohos') ? globalThis.ohosplugin.router : isSystemplugin('router', 'system') ? globalThis.systemplugin.router : undefined); const DataShareHelper_1 = __importDefault(__webpack_require__(/*! ../../feature/DataShareHelper */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\DataShareHelper.ts")); const BookModel_1 = __webpack_require__(/*! ../../feature/BookModel */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\BookModel.ts"); class TitleBar extends View { constructor(compilerAssignedUniqueChildId, parent, params, localStorage) { super(compilerAssignedUniqueChildId, parent, localStorage); this.__books = new SynchedPropertyObjectTwoWay(params.books, this, "books"); this.updateWithValueParams(params); } updateWithValueParams(params) { } aboutToBeDeleted() { this.__books.aboutToBeDeleted(); SubscriberManager.Get().delete(this.id()); } get books() { return this.__books.get(); } set books(newValue) { this.__books.set(newValue); } render() { Row.create(); Row.height('8%'); Row.width('100%'); Row.padding({ left: 15, right: 15 }); Row.justifyContent(FlexAlign.Center); Image.create({ "id": 16777295, "type": 20000, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); Image.width(32); Image.height(32); Image.margin({ right: 40 }); Image.onClick(() => { _ohos_router_1.back(); }); Text.create({ "id": 16777290, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); Text.fontSize(16); Text.pop(); Image.create({ "id": 16777294, "type": 20000, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); Image.width(40); Image.height(40); Image.margin({ left: 30 }); Image.onClick(() => { this.add(); }); Row.pop(); } async add() { let data = await DataShareHelper_1.default.insert(); this.books = BookModel_1.getBooksFromResultSet(data); } } exports.TitleBar = TitleBar; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\UpdateDataDialog.ets": /*!******************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\component\UpdateDataDialog.ets ***! \******************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.UpdateDataDialog = void 0; let __generate__Id = 0; function generateId() { return "UpdateDataDialog_" + ++__generate__Id; } /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ const BookModel_1 = __webpack_require__(/*! ../../feature/BookModel */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\BookModel.ts"); const DataShareHelper_1 = __importDefault(__webpack_require__(/*! ../../feature/DataShareHelper */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\DataShareHelper.ts")); const Logger_1 = __importDefault(__webpack_require__(/*! ../../util/Logger */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts")); const TAG = 'UpdateData'; class UpdateDataDialog extends View { constructor(compilerAssignedUniqueChildId, parent, params, localStorage) { super(compilerAssignedUniqueChildId, parent, localStorage); this.__books = new SynchedPropertyObjectTwoWay(params.books, this, "books"); this.book = undefined; this.controller = undefined; this.updateWithValueParams(params); } updateWithValueParams(params) { if (params.book !== undefined) { this.book = params.book; } if (params.controller !== undefined) { this.controller = params.controller; } } aboutToBeDeleted() { this.__books.aboutToBeDeleted(); SubscriberManager.Get().delete(this.id()); } get books() { return this.__books.get(); } set books(newValue) { this.__books.set(newValue); } setController(ctr) { this.controller = ctr; } render() { Column.create(); Column.width('100%'); Column.height(300); Text.create({ "id": 16777232, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); Text.fontWeight(FontWeight.Bold); Text.fontSize(22); Text.margin({ top: 20 }); Text.fontColor(Color.Black); Text.pop(); TextInput.create({ placeholder: 'input name', text: this.book.name }); TextInput.type(InputType.Normal); TextInput.placeholderColor(Color.Gray); TextInput.fontSize(19); TextInput.margin({ top: 10, left: 12, right: 12 }); TextInput.onChange((value) => { this.book.name = value; }); Text.create({ "id": 16777231, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); Text.fontWeight(FontWeight.Bold); Text.fontSize(22); Text.fontColor(Color.Black); Text.margin({ top: 20 }); Text.pop(); TextInput.create({ placeholder: 'input introduction', text: this.book.introduction }); TextInput.type(InputType.Normal); TextInput.placeholderColor(Color.Gray); TextInput.fontSize(20); TextInput.margin({ left: 12, right: 12, top: 10 }); TextInput.onChange((value) => { this.book.introduction = value; }); Blank.create(); Blank.pop(); Row.create(); Row.width('100%'); Text.create({ "id": 16777263, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); Text.fontSize(21); Text.layoutWeight(1); Text.align(Alignment.Center); Text.onClick(() => { this.controller.close(); }); Text.pop(); Text.create({ "id": 16777267, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); Text.fontSize(21); Text.layoutWeight(1); Text.align(Alignment.Center); Text.onClick(() => { this.update(); }); Text.pop(); Row.pop(); Column.pop(); } async update() { Logger_1.default.info(TAG, 'updateBook start'); let data = await DataShareHelper_1.default.updateBook(this.book); this.books = BookModel_1.getBooksFromResultSet(data); this.controller.close(); } } exports.UpdateDataDialog = UpdateDataDialog; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts": /*!********************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\util\Logger.ts ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_hilog_1 = globalThis.requireNapi('hilog') || (isSystemplugin('hilog', 'ohos') ? globalThis.ohosplugin.hilog : isSystemplugin('hilog', 'system') ? globalThis.systemplugin.hilog : undefined); class Logger { constructor(prefix) { this.domain = 0xFF00; this.prefix = ''; this.format = '%{public}s, %{public}s'; this.prefix = prefix; this.domain = 0xFF00; } debug(...args) { _ohos_hilog_1.debug(this.domain, this.prefix, this.format, args); } info(...args) { _ohos_hilog_1.info(this.domain, this.prefix, this.format, args); } warn(...args) { _ohos_hilog_1.warn(this.domain, this.prefix, this.format, args); } error(...args) { _ohos_hilog_1.error(this.domain, this.prefix, this.format, args); } } exports["default"] = new Logger('[Sample_StageModel]'); /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ var commonCachedModule = globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] ? globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId]: null; /******/ if (commonCachedModule) { return commonCachedModule.exports; } /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ function isCommonModue(moduleId) { /******/ if (globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"]) { /******/ const length = globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"].length; /******/ switch (length) { /******/ case 1: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId]; /******/ case 2: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId] || /******/ globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][1][1][moduleId]; /******/ } /******/ } /******/ return undefined; /******/ } /******/ if (globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] && String(moduleId).indexOf("?name=") < 0 && isCommonModue(moduleId)) { /******/ globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId] = module; /******/ } /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = __webpack_require__("E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\DataShareExtAbilityPage.ets?entry"); /******/ _1e36f0fd2df677c57b79e15aad3634be = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=DataShareExtAbilityPage.js.mapPK !:==::(ets/pages/DataShareExtAbilityPage.js.map{"version":3,"file":"./pages/DataShareExtAbilityPage.js","mappings":";;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;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;UACA;;;;UEvCA;UACA;UACA;UACA","sources":["webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\BookModel.ts","webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\DataShareHelper.ts","webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\DataShareExtAbilityPage.ets","webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\BookView.ets","webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\TitleBar.ets","webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\UpdateDataDialog.ets","webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts","webpack:///webpack/bootstrap","webpack:///webpack/before-startup","webpack:///webpack/startup","webpack:///webpack/after-startup"],"names":[],"sourceRoot":""}PK !:dK!ets/pages/DataShareHelperPage.abcPANDA,\a<%.L@dxwjwvvvvvbvLvAv+vv$xuuwuwtku.uvu#uLtsJwzsuslsts s6vOstAtsWvswtsr,4d)X[adimuiX    ' : ? E K ` * 6 F W ^ d u {   6 B M ^  . C Z y    " + 1 9 T d } "0@ENYflx|?O\dozyu9U]q!=Y1yAr sssOslszssssstAtLttttu#u.ukuuuuuv+v6vAvLvWvbvvvvvvvJwjwwwwwx$xx'L_ESTypeAnnotation; ! , errorMessage=#F1F3F5-%{public}s, %{public}s, message: .#1# .#10# .#11# .#12# .#13# .#14# .#15# .#16# .#17# .#18#.#19#generateId .#2# .#23# .#24# .#25# .#3# .#4# .#5# .#6# .#7# .#8# .#9#!.DataShareHelper).DataShareHelperPage.Logger.PublicTitleBar!.__Button__fancy).__webpack_require__.generateId.isCommonModue1 100%260%8% ?name=AlignmentBASE_URI ButtonCOLUMNS Center Column)DataShareHelperPage_#DataShareHelper_1'DataSharePredicatesDateShareHelperE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\feature\DataShareHelper.tsE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\DataShareHelperPage.ets?entryE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\component\PublicTitleBar.etsE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\util\Logger.tsGet Image JSONLogger_1 ObjectPublicTitleBarPublicTitleBar_!PublicTitleBar_1Row Scroll String#SubscriberManagerTAG Text View'[Sample_StageModel]k[ttt] [DataAbilityTest] Observer off catch(err)====>:i[ttt] [DataAbilityTest] Observer on catch(err)====>:C_1e36f0fd2df677c57b79e15aad3634beq__common_module_cache___1e36f0fd2df677c57b79e15aad3634be__esModule__generate__Id__importDefault align backbackgroundColor call catch code create+createDataShareHelperGcreateDataShareHelper error: code: OcreateDataShareHelper succeed, data : createWithLabel datadata.dataShare1data.dataSharePredicatesdataChangedataSharedataShareHelperEdataShareHelper.query error.code=CdataShareHelper.query error.code='dataSharePredicates]datashare:///ohos.samples.stagemodel.DataShare debugdefaultdefineProperty deletedelete id = delete num= 'delete queryAll end+delete queryAll start;deleteBook dataShareHelper = !deleteBook startdenormalizeUri!denormalizeUri: domainequalTo errorexportsfindChildByIdfontSize formatgetContext%getDataShareHelper height hilogidindexOf info insert3insert dataShareHelper = insert onClick/insert succeed, data : introductionisSystempluginlayoutWeight lengthloadDocument marginmarkStaticmessage nameneedsUpdatenormalizeUri'normalizeUri sucessnormalizeUri: notifyChangenotifyChange: offoff endoff startoff success ohosohospluginon on endon starton successonClickpadding paramspop prefixpromptActionprototype queryqueryAll7queryAll dataShareHelper = )queryAll resultSet= ?queryAll resultSet= start queryqueryAll startrequireNapi routershowToaststringify systemsystemplugintextName then update#update book num= +updateWithValueParamsuse strict warn[webpackChunk_1e36f0fd2df677c57b79e15aad3634be width3L_ESSlotNumberAnnotation;@'L_ESTypeInfoRecord;#1#L_GLOBAL;/_zӟUy yyy"hyy8Uy Ȉy؉% za 6{byl|yr|7oy|`}|y} y>~ʢy9cyk"y ys?yy[by}Ey+ ~|y;|y s|y |yk|y1 ѓ(fzrzzczgуy}eLz/Yzr՝Pz [yM|y  szՀYzl%z%Eoyˋ]2ze2` z p2zze7?zQ2U z.ҹz6%y4funcObjany0newTarget'__webpack_exports__ 0thisE:/Projects/DevEco/applications_app_samples/ability/StageModel/entry/build/default/intermediates/assets_jsbundle/default/ets/pages/DataShareHelperPage_.js #10#err #11# #12# #13# #14# #15#4newTarget thisgenerateId'DataShareHelperPage'__webpack_require__/__unused_webpack_module #16#mod #17# #18##19#generateId#2#DataShareHelper3#20#updateWithValueParams)#21#aboutToBeDeleted#22#render #23# #24# Logger #25##3##4##5##6##7##8##9#;compilerAssignedUniqueChildIdlocalStorage parent__Button__fancyhandleClickisCommonModue modulecachedModule%commonCachedModulemoduleIdaboutToAppearcontext!aboutToBeDeleted argsdeleteBookpredicatesresultSetnum bookfunc_main_0var _1e36f0fd2df677c57b79e15aad3634be; /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\DataShareHelper.ts": /*!********************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\feature\DataShareHelper.ts ***! \********************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_data_dataShare_1 = globalThis.requireNapi('data.dataShare') || (isSystemplugin('data.dataShare', 'ohos') ? globalThis.ohosplugin.data.dataShare : isSystemplugin('data.dataShare', 'system') ? globalThis.systemplugin.data.dataShare : undefined); var _ohos_data_dataSharePredicates_1 = globalThis.requireNapi('data.dataSharePredicates') || (isSystemplugin('data.dataSharePredicates', 'ohos') ? globalThis.ohosplugin.data.dataSharePredicates : isSystemplugin('data.dataSharePredicates', 'system') ? globalThis.systemplugin.data.dataSharePredicates : undefined); var _ohos_promptAction_1 = globalThis.requireNapi('promptAction') || (isSystemplugin('promptAction', 'ohos') ? globalThis.ohosplugin.promptAction : isSystemplugin('promptAction', 'system') ? globalThis.systemplugin.promptAction : undefined); const Logger_1 = __importDefault(__webpack_require__(/*! ../util/Logger */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts")); const TAG = 'DateShareHelper'; const BASE_URI = ("datashare:///ohos.samples.stagemodel.DataShare"); const COLUMNS = ['*']; class DataShareHelper { constructor() { // 用户给定的URI转换为服务端使用的URI时回调此接口,该方法可以选择性重写。对应FA模型的DataAbilityHelper中的normalizeUri this.normalizeUri = () => { this.dataShareHelper.normalizeUri(BASE_URI, (error, data) => { if (error) { Logger_1.default.info(TAG, `normalizeUri: ${error}`); } else { Logger_1.default.info(TAG, `normalizeUri: ${data}`); _ohos_promptAction_1.showToast({ message: `normalizeUri sucess` }); } }); }; // 服务端使用的URI转换为用户传入的初始URI时服务端回调此接口,该方法可以选择性重写。对应FA模型的DataAbilityHelper中的denormalizeUri this.denormalizeUri = () => { this.dataShareHelper.denormalizeUri(BASE_URI, (err, data) => { Logger_1.default.info(TAG, `denormalizeUri: ${err}`); _ohos_promptAction_1.showToast({ message: `denormalizeUri: ${data}` }); }); }; // 订阅指定URI对应数据的数据变更事件。若用户(订阅者)已注册了观察者,当有其他用户触发了变更通知时(调用了下文中的notifyChange方法),订阅者将会接收到callback通知。 // 对应FA模型的DataAbilityHelper中的on this.on = async () => { Logger_1.default.info(TAG, `on start`); try { await this.dataShareHelper.on('dataChange', BASE_URI, () => { Logger_1.default.info(TAG, `on end`); _ohos_promptAction_1.showToast({ message: `on success` }); }); } catch (err) { Logger_1.default.info(TAG, `[ttt] [DataAbilityTest] Observer on catch(err)====>:${err}`); } }; // 取消订阅指定URI对应的数据资源的变更通知。对应FA模型的DataAbilityHelper中的off this.off = async () => { Logger_1.default.info(TAG, `off start`); try { await this.dataShareHelper.off('dataChange', BASE_URI); _ohos_promptAction_1.showToast({ message: `off success` }); Logger_1.default.info(TAG, `off end`); } catch (err) { Logger_1.default.info(TAG, `[ttt] [DataAbilityTest] Observer off catch(err)====>:${err}`); } }; // 通知已注册的观察者Uri指定的数据资源的更改。对应FA模型的DataAbilityHelper中的notifyChange this.notifyChange = () => { this.dataShareHelper.notifyChange(BASE_URI, (err) => { Logger_1.default.info(TAG, `notifyChange: ${err}`); _ohos_promptAction_1.showToast({ message: `notifyChange` }); }); }; } async getDataShareHelper(context) { // 对应FA模型FeatureAbilityTest中的acquireDataAbilityHelper // this.dataShareHelper = await dataShare.createDataShareHelper(context, BASE_URI) try { await _ohos_data_dataShare_1.createDataShareHelper(context, BASE_URI).then((data) => { Logger_1.default.info(TAG, `createDataShareHelper succeed, data : ${data}`); this.dataShareHelper = data; }).catch((err) => { Logger_1.default.info(TAG, `createDataShareHelper error: code: ${err.code}, message: ${err.message} `); }); } catch (err) { Logger_1.default.error(TAG, `createDataShareHelper error: code: ${err.code}, message: ${err.message} `); } ; } async insert() { Logger_1.default.info(TAG, `insert onClick`); if (this.dataShareHelper === null || this.dataShareHelper === undefined) { Logger_1.default.info(TAG, `insert dataShareHelper = ${this.dataShareHelper}`); return; } let valuesBuckets = { name: 'Book name', introduction: 'Book introduction' }; let insertId = await this.dataShareHelper.insert(BASE_URI, valuesBuckets); Logger_1.default.info(TAG, `insert succeed, data : ${insertId}`); let resultSet = await this.queryAll(); return resultSet; } async updateBook(book) { let predicates = new _ohos_data_dataSharePredicates_1.DataSharePredicates(); predicates.equalTo('id', book.id); let valuesBucket = { 'name': book.name, 'introduction': book.introduction }; let num = await this.dataShareHelper.update(BASE_URI, predicates, valuesBucket); Logger_1.default.info(TAG + `update book num= ${num}`); let resultSet = await this.queryAll(); return resultSet; } async queryAll() { Logger_1.default.info(TAG, `queryAll start`); if (this.dataShareHelper === null || this.dataShareHelper === undefined) { Logger_1.default.info(TAG, `queryAll dataShareHelper = ${this.dataShareHelper}`); return; } let predicates = new _ohos_data_dataSharePredicates_1.DataSharePredicates(); Logger_1.default.info(TAG, `queryAll resultSet= start query`); try { let resultSet = await this.dataShareHelper.query(BASE_URI, predicates, COLUMNS); Logger_1.default.info(TAG, `queryAll resultSet= ${JSON.stringify(resultSet)}`); return resultSet; } catch (err) { Logger_1.default.info(TAG, `dataShareHelper.query error.code=${JSON.stringify(err.code)} , errorMessage=${err.message}`); _ohos_promptAction_1.showToast({ message: `dataShareHelper.query error.code=${JSON.stringify(err.code)} , errorMessage=${err.message}` }); } } // 删除指定数据 async deleteBook(book) { Logger_1.default.info(TAG, `deleteBook start`); if (this.dataShareHelper === null || this.dataShareHelper === undefined) { Logger_1.default.info(TAG, `deleteBook dataShareHelper = ${this.dataShareHelper}`); return; } let predicates = new _ohos_data_dataSharePredicates_1.DataSharePredicates(); predicates.equalTo('id', book.id); Logger_1.default.info(TAG, `delete id = ${book.id}`); let num = await this.dataShareHelper.delete(BASE_URI, predicates); await this.dataShareHelper.notifyChange(BASE_URI); Logger_1.default.info(TAG, `delete num= ${num}`); Logger_1.default.info(TAG, `delete queryAll start`); let resultSet = await this.queryAll(); Logger_1.default.info(TAG, `delete queryAll end`); return resultSet; } } exports["default"] = new DataShareHelper(); /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\DataShareHelperPage.ets?entry": /*!*****************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\DataShareHelperPage.ets?entry ***! \*****************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); let __generate__Id = 0; function generateId() { return "DataShareHelperPage_" + ++__generate__Id; } /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ const DataShareHelper_1 = __importDefault(__webpack_require__(/*! ../feature/DataShareHelper */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\DataShareHelper.ts")); const PublicTitleBar_1 = __webpack_require__(/*! ./component/PublicTitleBar */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\PublicTitleBar.ets"); class DataShareHelperPage extends View { constructor(compilerAssignedUniqueChildId, parent, params, localStorage) { super(compilerAssignedUniqueChildId, parent, localStorage); this.updateWithValueParams(params); } updateWithValueParams(params) { } aboutToBeDeleted() { SubscriberManager.Get().delete(this.id()); } render() { Column.create(); Column.width('100%'); Column.height('100%'); Column.backgroundColor('#F1F3F5'); Column.padding({ left: '3%', right: '3%' }); let earlierCreatedChild_2 = (this && this.findChildById) ? this.findChildById("2") : undefined; if (earlierCreatedChild_2 == undefined) { View.create(new PublicTitleBar_1.PublicTitleBar("2", this, { textName: { "id": 16777241, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" } })); } else { earlierCreatedChild_2.updateWithValueParams({ textName: { "id": 16777241, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" } }); if (!earlierCreatedChild_2.needsUpdate()) { earlierCreatedChild_2.markStatic(); } View.create(earlierCreatedChild_2); } Scroll.create(); Scroll.layoutWeight(1); Scroll.width('100%'); Column.create(); Column.width('100%'); Button.createWithLabel({ "id": 16777243, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(DataShareHelper_1.default.denormalizeUri); Button.pop(); Button.createWithLabel({ "id": 16777264, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(DataShareHelper_1.default.normalizeUri); Button.pop(); Button.createWithLabel({ "id": 16777265, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(DataShareHelper_1.default.notifyChange); Button.pop(); Button.createWithLabel({ "id": 16777268, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(DataShareHelper_1.default.on); Button.pop(); Button.createWithLabel({ "id": 16777266, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(DataShareHelper_1.default.off); Button.pop(); Column.pop(); Scroll.pop(); Column.pop(); } async aboutToAppear() { let context = getContext(this); await DataShareHelper_1.default.getDataShareHelper(context); } } function __Button__fancy(handleClick) { Button.width('60%'); Button.height(40); Button.align(Alignment.Center); Button.margin({ top: 30 }); Button.onClick(handleClick); } loadDocument(new DataShareHelperPage("1", undefined, {})); /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\PublicTitleBar.ets": /*!****************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\component\PublicTitleBar.ets ***! \****************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.PublicTitleBar = void 0; let __generate__Id = 0; function generateId() { return "PublicTitleBar_" + ++__generate__Id; } /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var _ohos_router_1 = globalThis.requireNapi('router') || (isSystemplugin('router', 'ohos') ? globalThis.ohosplugin.router : isSystemplugin('router', 'system') ? globalThis.systemplugin.router : undefined); class PublicTitleBar extends View { constructor(compilerAssignedUniqueChildId, parent, params, localStorage) { super(compilerAssignedUniqueChildId, parent, localStorage); this.textName = undefined; this.updateWithValueParams(params); } updateWithValueParams(params) { if (params.textName !== undefined) { this.textName = params.textName; } } aboutToBeDeleted() { SubscriberManager.Get().delete(this.id()); } render() { Row.create(); Row.height('8%'); Row.width('100%'); Row.padding({ left: 15, right: 15 }); Image.create({ "id": 16777295, "type": 20000, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); Image.width(32); Image.height(32); Image.onClick(() => { _ohos_router_1.back(); }); Text.create(this.textName); Text.fontSize(24); Text.margin({ left: 80 }); Text.pop(); Row.pop(); } } exports.PublicTitleBar = PublicTitleBar; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts": /*!********************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\util\Logger.ts ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_hilog_1 = globalThis.requireNapi('hilog') || (isSystemplugin('hilog', 'ohos') ? globalThis.ohosplugin.hilog : isSystemplugin('hilog', 'system') ? globalThis.systemplugin.hilog : undefined); class Logger { constructor(prefix) { this.domain = 0xFF00; this.prefix = ''; this.format = '%{public}s, %{public}s'; this.prefix = prefix; this.domain = 0xFF00; } debug(...args) { _ohos_hilog_1.debug(this.domain, this.prefix, this.format, args); } info(...args) { _ohos_hilog_1.info(this.domain, this.prefix, this.format, args); } warn(...args) { _ohos_hilog_1.warn(this.domain, this.prefix, this.format, args); } error(...args) { _ohos_hilog_1.error(this.domain, this.prefix, this.format, args); } } exports["default"] = new Logger('[Sample_StageModel]'); /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ var commonCachedModule = globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] ? globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId]: null; /******/ if (commonCachedModule) { return commonCachedModule.exports; } /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ function isCommonModue(moduleId) { /******/ if (globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"]) { /******/ const length = globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"].length; /******/ switch (length) { /******/ case 1: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId]; /******/ case 2: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId] || /******/ globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][1][1][moduleId]; /******/ } /******/ } /******/ return undefined; /******/ } /******/ if (globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] && String(moduleId).indexOf("?name=") < 0 && isCommonModue(moduleId)) { /******/ globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId] = module; /******/ } /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = __webpack_require__("E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\DataShareHelperPage.ets?entry"); /******/ _1e36f0fd2df677c57b79e15aad3634be = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=DataShareHelperPage.js.mapinsertIdvaluesBuckets render+earlierCreatedChild_2updateBookvaluesBucket  /xn e8 r  6 6xFxKxQxUxQx \x'bxnxxx \x'bxnxxx \x'bxnxxx/x 0\x'bxnxxx 1\x'bxnxxx 4\x'bxnxxx 2\x'bxnxxx /xS e rg M& 6    }   +      x} x       /xxx   1 L r  } : xxxiXy4y KxUx O\x NbxnxxxKxP  value_ohos_router_1top left3% right typebundleName/ohos.samples.stagemodelmoduleName entryBook name#Book introduction_ohos_hilog_1*)_ohos_promptAction_1-_ohos_data_dataShare_1A_ohos_data_dataSharePredicates_11__webpack_module_cache__'__webpack_modules__SlotNumberIy7Iy"7Iy7Iy 7Iy7Iy7Iy$7IyS7IyJ7Iy7Iy7Iy7Iy7Iy7Iy 7Iy7Iy7Iy7Iy/7IyQ7Iy7Iy+7Iy 7Iy[7Iy7Iy(7Iy7~DpDDa`=aa`=3a`= >a333 3  `a`=a`=< a>a`*a`,e DDD®a<a>a`a`BGa`B_a&a`a>ua`/<a`BAa`Bsa>?a<a> a`a`/ `a`ab $Q``<1a`B aa>vzk`a`.<a>a`a`BGa`B_a&a`a>ta`/MQa<a>a  `a`BGa`B_a&a`a>*a` a> a`/ dadGO =DDD<a`BAa`Bqa<a> a`a3a`/e zDDDD<a>a  `a`BGa`B_a&a`a>ra` a> a`/<1a`Ba a>qz k`a`. e aDDDD<a>a  `a`BGa`B_a&a`a>:a` a> a`/<a`CAe uDDDD<a>a  `a`BGa`B_a&a`a>9a`a ` B6 a> a`a ` Bk a> a`/ eDEEEEE3a ` = 3aa`a $Q`a ` B0M` a #Q 3M` a?a ` BHa `a >.a a`a` 0 ba ` =`a `a >a ` * a ` * a ` =0`a >a ` * a ` =?(a 5 a a ` Ba ` a?ha `a >a a a a ` * e.D`DqDD`$Q`a`B.$Q`Ma`zG`dDDEEEa`=a3a`a $Q`a ` B0M` a #Q 3M` a?a ` BHa `a >.a a ` a ` 0 `a bC  ba ` =ma ` B a >a ` . a #Q]?ea >a >wa ` + $Qma ` Bxa ` BM/?ea >a >a ` + $Qma ` Ba ` BMM` a ` =?(a 5 a a ` B a ` a`a `C" e.D`DqDD`$Q`a`B.$Q`Ma`zG`d =DDD> a<a>/a`a`!a<a>/a``a`= dDDEEEEa`=0a`=@a`=Pa`a $Q`a ` B0M` a #Q 3M` a?a ` BHa `a >.a a ` a ` 0 ma ` B a >=a ` . a #Qm? ea >=a >wa ` + $Qma ` Bxa ` B<a ` B@M7?ea >=a >a ` + $Qma ` Ba ` B<a ` B@MM` a ` =@ma ` Ba >>a ` .! a #Qm?#ea >>a >wa ` +$ $Qma ` B&xa ` B(<a ` B*DM7?,ea >>a >a ` +- $Qma ` B/a ` B1<a ` B3DMM` a ` =Pma ` B5a >a ` .7 a #Q]?9ea >a >wa ` +: $Qma ` BM/?@ea >a >a ` +A $Qma ` BCa ` BEMM` a ` =0`a `a >a ` *G a ` *I a ` =>a ` = >Ea ` =Ka a ` =`pa 5L a a ` BMa ` a`a >Ga `a O 8Q e/DpDDD`a`Ba'$Q`a`a`BCeD` =` =?"a`B7a`-?"a`B[a> a`.? "a`B a>a`. ?"a`B~aa`a`.?a`B7aaaz`a`.?a`Bab a`.!?#a`B$[ab a`.&?(a`B)}a3+a`.,?.'a`B/7a<a`B1a`.3?5'a`B6Waba`.8?:'a`B;ia=a`a`.>?@'a`BAa`-C?E"a`BFa`-HeD`DqD<a`B2a`-e DDDEEa`=a`a $Q`a ` B0M` a#Q 3M`a?a ` BHa`a >.a a ` a `0 ma ` B a >\a ` . a#Q]? ea >\a >wa ` + $Qma ` Bxa ` B\M/?ea >\a >a ` + $Qma ` Ba ` B\MM`a`=pa 5 aa `Ba `a`a>Ga `a >)a  8  e.D`DqDD`$Q`a`B.$Q`Ma`zG`d.D`DqDD`$Q`a`B.$Q`Ma`zG`d=DDD<a`BAa`Bna<a> a`a3a`/e DDDDD`$QQ<a >a  ` a`BGa`B_a&a  `a>pa `  a >  a `/ Ms<a >a  ` a`BGa`B _a&a  `a>pa ` a > a `/ <1a`Baa>ozk`a`.e=DDD<a`BAa`BPa<a> a`a3a`/e DDDDD<a >a  ` a`BGa`B_a&a  `a>Qa `  a >  a `/ <1a`Ba a>Qa ` a > z k`a`.e DDD®a<a>a`a`BGa`B_a&a`a>{a`/<a`BAa`Bya>?a<a> a`a3 a`0 `a`ab $Q``MQa<a>a  `a`BGa`B_a&a`a>+a` a> a`/dadG[O  iDDD<a>a`a`BGa`B_a&a`a>za`/<1a`Baa>|z k`a`. emDP`=`=<a<a3Cn<a3CP<a3Cy<a3 C s<a3 C q<d NDDDDDEE`a`a`a `a 2a``a`a ` Ba`a `. `d`D`DqDD`a`abCR`a>C`a>CX`a`C`abCR`d [DDDDDEE`a`a`a `a 2a``a`aC`a ` Ba`a `. `dDDDD?a`Ba> a`.?a`B[ab(a`.? a`B 1a? a`Ba`.?a`Biaa`a`.?a`B}a`a`.eDEEE3aaaama >-a ` 7 $Qma >-a ` 7 a `a ` 7 Ma`$Q `a ` BUd<a `a ` 7 a`a ' $Q `a ` B Ud<a `a a zU ` 8 ama >-a ` 7 a $Q2?$a `a` *a ` B^a > a ` . a b M` $Q+`a `a ` * $Qma >-a ` 7 a `a `8! <a `a ` 7# a ` B%4a `a ` B'Ua `a `a ` B)Ua < a` 1+ `a ` B-Ud mDDD®a?Ya`a`*a<0a>a  `a`BGa`BZa`a`.`a`ab $Q``dad _h=DDD?%a`Ba`-a`BIa`a`B]a`- a`. e GDDDDa<a`BFa`a`BRa`a`Ba`a ` BXa `a `1e DDDEa<a >a  ` a ` BGa ` B_a< a >&a  ` a >Oa `/ `a ` BAa(#Q`a ` B Aa( $Q\<a >a  ` a ` B Ga ` B_a< a >&a  ` a >Na `a ` BA  a >  a `/ d]a `a ` B]a `/ <a >a  ` a ` B Ga ` B"_a< a >&a  ` a >Ja `a ` B$] & a > ' a `/( `a ` B*Aa ` B,Ia<a > a  ` a `a `/. `a `ab0$Q` ` a`a ` B1Aa ` B3qa<a > a  ` a `.5 `a `ab7$Q` ` <a >a  ` a ` B8Ga ` B:_a< a >&a  ` a >Ka ` < a > = a `/> <a >a  ` a ` B@Ga ` BB_a< a >&a  ` a >Ma `/D `a ` BFa`-H `a `abJ$Q` ` a<a >a  ` a ` BKGa ` BM_a< a >&a  ` a >La `/O `dad  GDDDDa<a`BTa`a`BRa`a`Ba`a ` BXa `a `1e DP`=`=,3a`)e =DDD>a<a>/a`a`!a<a>/a``a`= dD`=`=Ea a  ` a ` / a`Ba3a `. a`B 5a3 a`. `a`ab$Q``Mpa<a >a  ` a`BGa`BTa&a  `a>9a `a ` B6  a >  a `a ` Bk  a >  a `/ dadun GDDDDa<a`B_a`a`BRa`a`Ba`a ` BXa `a `1e DDDa<a >a  ` a ` BGa`B_a< a >&a  ` a >ba `/ `a`BAa(#Q`a`B Aa( $Q\<a >a  ` a ` B Ga`B_a< a >&a  ` a >aa `a ` BA  a >  a `/ da`a`a ` BAa`B`a<a > a  ` a `a `/ `a`ab$Q``a<a >a  ` a ` BGa`B _a< a >&a  ` a >ca ` " a > # a `/$ `a`B&a`-(`a`ab*$Q``a`dad  DDDEma>a`7$ma>a`7a`Bga`ab'$Qb'$Q:Nma >a ` 7 a ba ` 7 aba ` 7 a`a`7dma >a ` 7 a ba ` 7 a ba ` 7 a`a ` 7a#Q8ma >a ` 7 a ba ` 7 a ba ` 7 a`a ` 7M`dd DDDa<a>a  `a`BGa`B_a< a>&a`a>a`/`a`BAa(#Q`a`B Aa( $Q\<a>a  `a`B Ga`B_a< a>&a`a>a`a ` BA a> a`/da  `a`BGa`B_a< a>&a`a>a`/`a`B Aa`B"a<a> a  `a`a <`a >a  ` a `0$ `a`ab&$Q``a<a >a  ` a`B'Ga`B)_a< a>&a  `a>a ?+a ` B,a `a ` .. 0 a > 1 a `/2 `a`dNa<a >a  ` a`B4Ga`B6_a< a>&a  `a>Ba ?8a ` B9a `a ` B;6a ` .= ? a > @ a `a ` BAk C a > D a `/E <0a`BGaIa>Ca ?Ja ` BKa `a ` BM6a ` .O Q a > R a `a ` BSk U a > V zWk`a`.Ydad DDE?a`B7a`-?a`Ba>a`.? a`B [a>a`. ?a`B3a>a`.?a`B~aa`a`.`$Q(`a`BV$Q`a`BVa>a`.Ma`a $Qa?!(a`B"7a<a >!a  ` a`B$a>a`a &a 'a (a z) ` z+ ` a -a`./Ny`a`B1a3a4a5a z6`z8`a`.:`a`B#QM$Q`a`B@ja`-B?D(a`BE7a`a`.G?I#a`BJ7a`-L?N#a`BOfaba`.Q?S#a`BTa>a`.V?Xa`BY7a`-[?]a`B^a>a`.`?ba`Bc;aeafazg`a`.i< a<0a>a  `a`BkGa`BmPa`*o?qa`Bra`-t?va`Bw;ayazaz{`a`.}< a<0a>a  `a`BGa`na`*a`a`-a`;aaȁ`a`.< a<0a>a  `a`Ga`qa`*a`a`-a`;aaạ`a`.< a<0a>a  `a`Ga`ya`*a`a`-a`;aaa̷`a`.< a<0a>a  `a`Ga`sa`*a`a`-a`a`-#a`a`-a`a`-eDDEEa]a `a ` B]a ` /  a `a ` B lz l `a ` Bdzd ` a`a ` BAa ` Ba <a > a  ` a `a `a ` 0 `a `a b $Q` ` a<a >a  ` a ` BGa ` B_a < a >&a  ` a >a `  a >  a ` .! `a ` B#a ` -% `a `a b' $Q` ` a`da d  DPDaDrDe GDDDDa<a`Ba`a`BRa`a`Ba`a ` BXa `a `1e  > p               /  O+ ++++++++++++ $z$~$}$}$)-$8$.      {      k <  m     /          J V++++++++++ !"' /= // !&+{ ,++!&+cg+g+x ++++++++++ .8           z k <  5++++++++++,++!&+<@+@+ //           z  3++++++++++++!&+UZ+Z+'              7++++++++++,++!&+QZ+Zgs+s+        1            k     /               +-++-++-++-++-++++-+++++++  8- *`*O-++"' '  % * 5  1++++-++-++-++   % +8+        1        \                     /        ++++-++++++++-++-++-++  8-  - ;JT; ^:}} }++" "   1++++-++-++-++   % +8+#++++-++-++ !!         1                      k                  k                  k      k  k  k   /         +-++-++.+++++-++++-++++  8-  5 KZlK vJ ( ?( _n_ ^ ( 3 GVfG pF !K! .++     k  Z (++++-++-++++    ++++-++-++'    k  k  k    k  k  k  m  k  k  k;++++ >     ++++++++++         1                       /           ++++-++-++-++++++.++   8-  , 9HQ9 [8yy y.++   1++++-++-++-++   % +8+           0++++-++-++-++   % +8+     ++++++++++* .8   \                z k <   M+ ++++++++++++++!*/@F/F/!*/@E/E/ 3!3 {++++++++++8 0:           z k     <  B+ +++++++++,++++9!&+>B+B+ /055/      {        /          J J++++++++++ !"' .<F ,++!&+bf+f+w      z k <  %++++++++++!*/ 3!3   N     e        -++++'I7  M      h ] >++++-++++/++-++/++/++-5#  M   \  \  \  \   ` 8++++-++-++++{  M      \  g ^ B++++-++++/++-++/++/++-5#    k  k  k  k  3+-++-+++++/++             /  !    /  k  "   m                  >      N        m  + +++-++-++0++0++0++0++0++$/$mxmm$, %7  1== Y`YrY~Y  T`  . >F V       /     /+-++-+++++0++! !;#    ++++-++-++',++++-++-++0++    ) 6 C     z       >        z]   /    z        z      /            z   z   /    z   + -+++++1++1++1++-++1++!# % - F- !"'G\'\'    ! !#2:#:#4> 0!#26#6#!# !#q,++++-++-++0++    ) 6 C l  1++++         #++++-++-++ &$&         v    /               K++++0++ ?HW ,++ !#(NW(Wdp(p( r   /      ,++++-++-++0++    ( 5 B     z       >        z]  /      /         z   /   {++++-++1++-++++++!# % - F- !"'CX'X'  9C !#=F#F# v    >    / M  l  g ?          !                 Z    u+ +++-++-++0++*++,7, #%$$(3(d(g(j(!(3(d(g(j(!,!]!`!c!(!"     z       >        z]   /           /           z    /               z k           <    +-++-+++++1++!# % - F- !"'EZ'Z'   !#1++"=GS" !"'>M> X'X'  ,++ !"'L[ L e'ew'' +=L = VVhtt+ yx!    k  k  k  k          /  k              k   x  m     l   k  k  k    k  \    k  \    k  \    k  \    k  \++++-++-++++ %$- $C VC$] % <AGS|SG 8C8   H !H "H #H #H #"    /    z k ]  2       /         k   /   t+ -+++++++1++1++1++-++1++   !  4>J !$8<$< v#  +"$,++++-++-++0++    ( 5 B~YߩIr*tۡI%z6iR4.N0̹PK !:^78YY ets/pages/DataShareHelperPage.jsvar _1e36f0fd2df677c57b79e15aad3634be; /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\DataShareHelper.ts": /*!********************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\feature\DataShareHelper.ts ***! \********************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_data_dataShare_1 = globalThis.requireNapi('data.dataShare') || (isSystemplugin('data.dataShare', 'ohos') ? globalThis.ohosplugin.data.dataShare : isSystemplugin('data.dataShare', 'system') ? globalThis.systemplugin.data.dataShare : undefined); var _ohos_data_dataSharePredicates_1 = globalThis.requireNapi('data.dataSharePredicates') || (isSystemplugin('data.dataSharePredicates', 'ohos') ? globalThis.ohosplugin.data.dataSharePredicates : isSystemplugin('data.dataSharePredicates', 'system') ? globalThis.systemplugin.data.dataSharePredicates : undefined); var _ohos_promptAction_1 = globalThis.requireNapi('promptAction') || (isSystemplugin('promptAction', 'ohos') ? globalThis.ohosplugin.promptAction : isSystemplugin('promptAction', 'system') ? globalThis.systemplugin.promptAction : undefined); const Logger_1 = __importDefault(__webpack_require__(/*! ../util/Logger */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts")); const TAG = 'DateShareHelper'; const BASE_URI = ("datashare:///ohos.samples.stagemodel.DataShare"); const COLUMNS = ['*']; class DataShareHelper { constructor() { // 用户给定的URI转换为服务端使用的URI时回调此接口,该方法可以选择性重写。对应FA模型的DataAbilityHelper中的normalizeUri this.normalizeUri = () => { this.dataShareHelper.normalizeUri(BASE_URI, (error, data) => { if (error) { Logger_1.default.info(TAG, `normalizeUri: ${error}`); } else { Logger_1.default.info(TAG, `normalizeUri: ${data}`); _ohos_promptAction_1.showToast({ message: `normalizeUri sucess` }); } }); }; // 服务端使用的URI转换为用户传入的初始URI时服务端回调此接口,该方法可以选择性重写。对应FA模型的DataAbilityHelper中的denormalizeUri this.denormalizeUri = () => { this.dataShareHelper.denormalizeUri(BASE_URI, (err, data) => { Logger_1.default.info(TAG, `denormalizeUri: ${err}`); _ohos_promptAction_1.showToast({ message: `denormalizeUri: ${data}` }); }); }; // 订阅指定URI对应数据的数据变更事件。若用户(订阅者)已注册了观察者,当有其他用户触发了变更通知时(调用了下文中的notifyChange方法),订阅者将会接收到callback通知。 // 对应FA模型的DataAbilityHelper中的on this.on = async () => { Logger_1.default.info(TAG, `on start`); try { await this.dataShareHelper.on('dataChange', BASE_URI, () => { Logger_1.default.info(TAG, `on end`); _ohos_promptAction_1.showToast({ message: `on success` }); }); } catch (err) { Logger_1.default.info(TAG, `[ttt] [DataAbilityTest] Observer on catch(err)====>:${err}`); } }; // 取消订阅指定URI对应的数据资源的变更通知。对应FA模型的DataAbilityHelper中的off this.off = async () => { Logger_1.default.info(TAG, `off start`); try { await this.dataShareHelper.off('dataChange', BASE_URI); _ohos_promptAction_1.showToast({ message: `off success` }); Logger_1.default.info(TAG, `off end`); } catch (err) { Logger_1.default.info(TAG, `[ttt] [DataAbilityTest] Observer off catch(err)====>:${err}`); } }; // 通知已注册的观察者Uri指定的数据资源的更改。对应FA模型的DataAbilityHelper中的notifyChange this.notifyChange = () => { this.dataShareHelper.notifyChange(BASE_URI, (err) => { Logger_1.default.info(TAG, `notifyChange: ${err}`); _ohos_promptAction_1.showToast({ message: `notifyChange` }); }); }; } async getDataShareHelper(context) { // 对应FA模型FeatureAbilityTest中的acquireDataAbilityHelper // this.dataShareHelper = await dataShare.createDataShareHelper(context, BASE_URI) try { await _ohos_data_dataShare_1.createDataShareHelper(context, BASE_URI).then((data) => { Logger_1.default.info(TAG, `createDataShareHelper succeed, data : ${data}`); this.dataShareHelper = data; }).catch((err) => { Logger_1.default.info(TAG, `createDataShareHelper error: code: ${err.code}, message: ${err.message} `); }); } catch (err) { Logger_1.default.error(TAG, `createDataShareHelper error: code: ${err.code}, message: ${err.message} `); } ; } async insert() { Logger_1.default.info(TAG, `insert onClick`); if (this.dataShareHelper === null || this.dataShareHelper === undefined) { Logger_1.default.info(TAG, `insert dataShareHelper = ${this.dataShareHelper}`); return; } let valuesBuckets = { name: 'Book name', introduction: 'Book introduction' }; let insertId = await this.dataShareHelper.insert(BASE_URI, valuesBuckets); Logger_1.default.info(TAG, `insert succeed, data : ${insertId}`); let resultSet = await this.queryAll(); return resultSet; } async updateBook(book) { let predicates = new _ohos_data_dataSharePredicates_1.DataSharePredicates(); predicates.equalTo('id', book.id); let valuesBucket = { 'name': book.name, 'introduction': book.introduction }; let num = await this.dataShareHelper.update(BASE_URI, predicates, valuesBucket); Logger_1.default.info(TAG + `update book num= ${num}`); let resultSet = await this.queryAll(); return resultSet; } async queryAll() { Logger_1.default.info(TAG, `queryAll start`); if (this.dataShareHelper === null || this.dataShareHelper === undefined) { Logger_1.default.info(TAG, `queryAll dataShareHelper = ${this.dataShareHelper}`); return; } let predicates = new _ohos_data_dataSharePredicates_1.DataSharePredicates(); Logger_1.default.info(TAG, `queryAll resultSet= start query`); try { let resultSet = await this.dataShareHelper.query(BASE_URI, predicates, COLUMNS); Logger_1.default.info(TAG, `queryAll resultSet= ${JSON.stringify(resultSet)}`); return resultSet; } catch (err) { Logger_1.default.info(TAG, `dataShareHelper.query error.code=${JSON.stringify(err.code)} , errorMessage=${err.message}`); _ohos_promptAction_1.showToast({ message: `dataShareHelper.query error.code=${JSON.stringify(err.code)} , errorMessage=${err.message}` }); } } // 删除指定数据 async deleteBook(book) { Logger_1.default.info(TAG, `deleteBook start`); if (this.dataShareHelper === null || this.dataShareHelper === undefined) { Logger_1.default.info(TAG, `deleteBook dataShareHelper = ${this.dataShareHelper}`); return; } let predicates = new _ohos_data_dataSharePredicates_1.DataSharePredicates(); predicates.equalTo('id', book.id); Logger_1.default.info(TAG, `delete id = ${book.id}`); let num = await this.dataShareHelper.delete(BASE_URI, predicates); await this.dataShareHelper.notifyChange(BASE_URI); Logger_1.default.info(TAG, `delete num= ${num}`); Logger_1.default.info(TAG, `delete queryAll start`); let resultSet = await this.queryAll(); Logger_1.default.info(TAG, `delete queryAll end`); return resultSet; } } exports["default"] = new DataShareHelper(); /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\DataShareHelperPage.ets?entry": /*!*****************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\DataShareHelperPage.ets?entry ***! \*****************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); let __generate__Id = 0; function generateId() { return "DataShareHelperPage_" + ++__generate__Id; } /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ const DataShareHelper_1 = __importDefault(__webpack_require__(/*! ../feature/DataShareHelper */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\DataShareHelper.ts")); const PublicTitleBar_1 = __webpack_require__(/*! ./component/PublicTitleBar */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\PublicTitleBar.ets"); class DataShareHelperPage extends View { constructor(compilerAssignedUniqueChildId, parent, params, localStorage) { super(compilerAssignedUniqueChildId, parent, localStorage); this.updateWithValueParams(params); } updateWithValueParams(params) { } aboutToBeDeleted() { SubscriberManager.Get().delete(this.id()); } render() { Column.create(); Column.width('100%'); Column.height('100%'); Column.backgroundColor('#F1F3F5'); Column.padding({ left: '3%', right: '3%' }); let earlierCreatedChild_2 = (this && this.findChildById) ? this.findChildById("2") : undefined; if (earlierCreatedChild_2 == undefined) { View.create(new PublicTitleBar_1.PublicTitleBar("2", this, { textName: { "id": 16777241, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" } })); } else { earlierCreatedChild_2.updateWithValueParams({ textName: { "id": 16777241, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" } }); if (!earlierCreatedChild_2.needsUpdate()) { earlierCreatedChild_2.markStatic(); } View.create(earlierCreatedChild_2); } Scroll.create(); Scroll.layoutWeight(1); Scroll.width('100%'); Column.create(); Column.width('100%'); Button.createWithLabel({ "id": 16777243, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(DataShareHelper_1.default.denormalizeUri); Button.pop(); Button.createWithLabel({ "id": 16777264, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(DataShareHelper_1.default.normalizeUri); Button.pop(); Button.createWithLabel({ "id": 16777265, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(DataShareHelper_1.default.notifyChange); Button.pop(); Button.createWithLabel({ "id": 16777268, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(DataShareHelper_1.default.on); Button.pop(); Button.createWithLabel({ "id": 16777266, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(DataShareHelper_1.default.off); Button.pop(); Column.pop(); Scroll.pop(); Column.pop(); } async aboutToAppear() { let context = getContext(this); await DataShareHelper_1.default.getDataShareHelper(context); } } function __Button__fancy(handleClick) { Button.width('60%'); Button.height(40); Button.align(Alignment.Center); Button.margin({ top: 30 }); Button.onClick(handleClick); } loadDocument(new DataShareHelperPage("1", undefined, {})); /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\PublicTitleBar.ets": /*!****************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\component\PublicTitleBar.ets ***! \****************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.PublicTitleBar = void 0; let __generate__Id = 0; function generateId() { return "PublicTitleBar_" + ++__generate__Id; } /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var _ohos_router_1 = globalThis.requireNapi('router') || (isSystemplugin('router', 'ohos') ? globalThis.ohosplugin.router : isSystemplugin('router', 'system') ? globalThis.systemplugin.router : undefined); class PublicTitleBar extends View { constructor(compilerAssignedUniqueChildId, parent, params, localStorage) { super(compilerAssignedUniqueChildId, parent, localStorage); this.textName = undefined; this.updateWithValueParams(params); } updateWithValueParams(params) { if (params.textName !== undefined) { this.textName = params.textName; } } aboutToBeDeleted() { SubscriberManager.Get().delete(this.id()); } render() { Row.create(); Row.height('8%'); Row.width('100%'); Row.padding({ left: 15, right: 15 }); Image.create({ "id": 16777295, "type": 20000, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); Image.width(32); Image.height(32); Image.onClick(() => { _ohos_router_1.back(); }); Text.create(this.textName); Text.fontSize(24); Text.margin({ left: 80 }); Text.pop(); Row.pop(); } } exports.PublicTitleBar = PublicTitleBar; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts": /*!********************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\util\Logger.ts ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_hilog_1 = globalThis.requireNapi('hilog') || (isSystemplugin('hilog', 'ohos') ? globalThis.ohosplugin.hilog : isSystemplugin('hilog', 'system') ? globalThis.systemplugin.hilog : undefined); class Logger { constructor(prefix) { this.domain = 0xFF00; this.prefix = ''; this.format = '%{public}s, %{public}s'; this.prefix = prefix; this.domain = 0xFF00; } debug(...args) { _ohos_hilog_1.debug(this.domain, this.prefix, this.format, args); } info(...args) { _ohos_hilog_1.info(this.domain, this.prefix, this.format, args); } warn(...args) { _ohos_hilog_1.warn(this.domain, this.prefix, this.format, args); } error(...args) { _ohos_hilog_1.error(this.domain, this.prefix, this.format, args); } } exports["default"] = new Logger('[Sample_StageModel]'); /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ var commonCachedModule = globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] ? globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId]: null; /******/ if (commonCachedModule) { return commonCachedModule.exports; } /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ function isCommonModue(moduleId) { /******/ if (globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"]) { /******/ const length = globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"].length; /******/ switch (length) { /******/ case 1: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId]; /******/ case 2: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId] || /******/ globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][1][1][moduleId]; /******/ } /******/ } /******/ return undefined; /******/ } /******/ if (globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] && String(moduleId).indexOf("?name=") < 0 && isCommonModue(moduleId)) { /******/ globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId] = module; /******/ } /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = __webpack_require__("E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\DataShareHelperPage.ets?entry"); /******/ _1e36f0fd2df677c57b79e15aad3634be = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=DataShareHelperPage.js.mapPK !:nRF F $ets/pages/DataShareHelperPage.js.map{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5ChD;UACA;;UAEA;UACA;UACA;UACA,2BAA2B;UAC3B;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;UACA;;;;UEvCA;UACA;UACA;UACA","sources":["webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\DataShareHelper.ts","webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\DataShareHelperPage.ets","webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\PublicTitleBar.ets","webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts","webpack:///webpack/bootstrap","webpack:///webpack/before-startup","webpack:///webpack/startup","webpack:///webpack/after-startup"],"names":[],"sourceRoot":""}PK !: Xyy ets/pages/FormExtContextPage.abcPANDAuty<hy%L" H l R[RRQQnQRcQ&QPsROPPHRQP4PObOPOTOQPONQ7OgP)PzO+RNR\PONy" l v$)0:BRcuz EQary  % . > F N U ^ m w   ' 2 ; C H P ^ i v ~  } P ) E a +u l 4NNNO7OTObOzOOOOO)P4PQP\PgPPPPPPQ&QcQnQQQQR+RHR[RsRRRRx'L_ESTypeAnnotation;#F1F3F5-%{public}s, %{public}s .#1# .#10# .#11#.#12#generateId .#16# .#17# .#18# .#2# .#3# .#4# .#5# .#6# .#7# .#8# .#9#%.FormExContextPage3.FormExtContextController.Logger.PublicTitleBar!.__Button__fancy).__webpack_require__.generateId.isCommonModue1 100%260%8% ?name=Alignment Button Center ColumnE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\feature\FormExtContextController.tsE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\FormExtContextPage.ets?entryE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\component\PublicTitleBar.etsE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\util\Logger.ts1FormExtContextController5FormExtContextController_1'FormExtContextPage_Get ImageLogger_1 ObjectPublicTitleBarPublicTitleBar_!PublicTitleBar_1Row)StartAbility Success+StartAbility failed: String#SubscriberManagerTAG Text View'[Sample_StageModel]C_1e36f0fd2df677c57b79e15aad3634beq__common_module_cache___1e36f0fd2df677c57b79e15aad3634be__esModule__generate__Id__importDefault align backbackgroundColor call7caller onRelease is called Mcaller register OnRelease failed with Ccaller register OnRelease succeed catch createcreateWithLabel debugdefaultdefineProperty delete domain errorexportsfindChildByIdfontSizeformExContext formatgetContext height hilogidindexOf infoisSystemplugin lengthloadDocument marginmarkStaticmessageneedsUpdate ohosohospluginonClickonReleasepadding paramspop prefixpromptActionprototyperequireNapi routershowToaststartAbility systemsystemplugintextName then+updateWithValueParamsuse strict want warn[webpackChunk_1e36f0fd2df677c57b79e15aad3634be width3L_ESSlotNumberAnnotation;@'L_ESTypeInfoRecord;#1#L_GLOBAL;$g  UhSHZwm T[Gn-T[n:T!%\nGT&\\oS+]!pTTC^p-THE^ qaT:UiS|V-j-TXkTXlTZl-T buT h2yT btTN KbuT _%rTNexTjW+kSFbuTbTuTNBd7wT gxTFcvTVfjTBp_r:T_sTatT0{^qqnTi`sTajT gyT^q{T7WjT4funcObjany0newTarget'__webpack_exports__ 0thisE:/Projects/DevEco/applications_app_samples/ability/StageModel/entry/build/default/intermediates/assets_jsbundle/default/ets/pages/FormExtContextPage_.js #10# thisgenerateId4newTarget/__unused_webpack_module #11#mod#12#generateId3#13#updateWithValueParams)#14#aboutToBeDeleted#15#render #16# #17# Logger #18##2#'__webpack_require__#3##4#msg#5##6##7##FormExContextPage#8##9#;compilerAssignedUniqueChildIdlocalStorage parent__Button__fancy clickisCommonModue modulecachedModule%commonCachedModulemoduleId!aboutToBeDeleted argsfunc_main_0var _1e36f0fd2df677c57b79e15aad3634be; /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\FormExtContextController.ts": /*!*****************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\feature\FormExtContextController.ts ***! \*****************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_promptAction_1 = globalThis.requireNapi('promptAction') || (isSystemplugin('promptAction', 'ohos') ? globalThis.ohosplugin.promptAction : isSystemplugin('promptAction', 'system') ? globalThis.systemplugin.promptAction : undefined); const Logger_1 = __importDefault(__webpack_require__(/*! ../util/Logger */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts")); const TAG = 'FormExtContextController'; let want = { moduleName: 'entry', bundleName: 'ohos.samples.stagemodel', abilityName: 'FormAbility', }; class FormExtContextController { regOnRelease(caller) { try { caller.onRelease((msg) => { Logger_1.default.info(TAG, `caller onRelease is called ${msg}`); }); Logger_1.default.info(TAG, 'caller register OnRelease succeed'); } catch (error) { Logger_1.default.error(TAG, `caller register OnRelease failed with ${error}`); } } // 拉起一个卡片所属应用的Ability。 startAbility(context) { context.startAbility(want).then(() => { Logger_1.default.info(TAG, `StartAbility Success`); _ohos_promptAction_1.showToast({ message: 'FormExtensionContext success' }); }).catch((error) => { Logger_1.default.error(TAG, `StartAbility failed: ${error}`); _ohos_promptAction_1.showToast({ message: `StartAbility failed: ${error}` }); }); } } exports["default"] = FormExtContextController; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\FormExtContextPage.ets?entry": /*!****************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\FormExtContextPage.ets?entry ***! \****************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); let __generate__Id = 0; function generateId() { return "FormExtContextPage_" + ++__generate__Id; } /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ const FormExtContextController_1 = __importDefault(__webpack_require__(/*! ../feature/FormExtContextController */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\FormExtContextController.ts")); const PublicTitleBar_1 = __webpack_require__(/*! ./component/PublicTitleBar */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\PublicTitleBar.ets"); class FormExContextPage extends View { constructor(compilerAssignedUniqueChildId, parent, params, localStorage) { super(compilerAssignedUniqueChildId, parent, localStorage); this.formExContext = new FormExtContextController_1.default(); this.updateWithValueParams(params); } updateWithValueParams(params) { if (params.formExContext !== undefined) { this.formExContext = params.formExContext; } } aboutToBeDeleted() { SubscriberManager.Get().delete(this.id()); } render() { Row.create(); Row.width('100%'); Row.height('100%'); Row.backgroundColor('#F1F3F5'); Row.padding({ left: '3%', right: '3%' }); Column.create(); Column.width('100%'); Column.height('100%'); let earlierCreatedChild_2 = (this && this.findChildById) ? this.findChildById("2") : undefined; if (earlierCreatedChild_2 == undefined) { View.create(new PublicTitleBar_1.PublicTitleBar("2", this, { textName: { "id": 16777254, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" } })); } else { earlierCreatedChild_2.updateWithValueParams({ textName: { "id": 16777254, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" } }); if (!earlierCreatedChild_2.needsUpdate()) { earlierCreatedChild_2.markStatic(); } View.create(earlierCreatedChild_2); } Column.create(); Button.createWithLabel({ "id": 16777278, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.formExContext.startAbility(getContext(this)); }); Button.pop(); Column.pop(); Column.pop(); Row.pop(); } } function __Button__fancy(click) { Button.width('60%'); Button.height(40); Button.align(Alignment.Center); Button.margin({ top: 30 }); Button.onClick(click); } loadDocument(new FormExContextPage("1", undefined, {})); /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\PublicTitleBar.ets": /*!****************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\component\PublicTitleBar.ets ***! \****************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.PublicTitleBar = void 0; let __generate__Id = 0; function generateId() { return "PublicTitleBar_" + ++__generate__Id; } /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var _ohos_router_1 = globalThis.requireNapi('router') || (isSystemplugin('router', 'ohos') ? globalThis.ohosplugin.router : isSystemplugin('router', 'system') ? globalThis.systemplugin.router : undefined); class PublicTitleBar extends View { constructor(compilerAssignedUniqueChildId, parent, params, localStorage) { super(compilerAssignedUniqueChildId, parent, localStorage); this.textName = undefined; this.updateWithValueParams(params); } updateWithValueParams(params) { if (params.textName !== undefined) { this.textName = params.textName; } } aboutToBeDeleted() { SubscriberManager.Get().delete(this.id()); } render() { Row.create(); Row.height('8%'); Row.width('100%'); Row.padding({ left: 15, right: 15 }); Image.create({ "id": 16777295, "type": 20000, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); Image.width(32); Image.height(32); Image.onClick(() => { _ohos_router_1.back(); }); Text.create(this.textName); Text.fontSize(24); Text.margin({ left: 80 }); Text.pop(); Row.pop(); } } exports.PublicTitleBar = PublicTitleBar; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts": /*!********************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\util\Logger.ts ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_hilog_1 = globalThis.requireNapi('hilog') || (isSystemplugin('hilog', 'ohos') ? globalThis.ohosplugin.hilog : isSystemplugin('hilog', 'system') ? globalThis.systemplugin.hilog : undefined); class Logger { constructor(prefix) { this.domain = 0xFF00; this.prefix = ''; this.format = '%{public}s, %{public}s'; this.prefix = prefix; this.domain = 0xFF00; } debug(...args) { _ohos_hilog_1.debug(this.domain, this.prefix, this.format, args); } info(...args) { _ohos_hilog_1.info(this.domain, this.prefix, this.format, args); } warn(...args) { _ohos_hilog_1.warn(this.domain, this.prefix, this.format, args); } error(...args) { _ohos_hilog_1.error(this.domain, this.prefix, this.format, args); } } exports["default"] = new Logger('[Sample_StageModel]'); /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ var commonCachedModule = globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] ? globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId]: null; /******/ if (commonCachedModule) { return commonCachedModule.exports; } /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ function isCommonModue(moduleId) { /******/ if (globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"]) { /******/ const length = globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"].length; /******/ switch (length) { /******/ case 1: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId]; /******/ case 2: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId] || /******/ globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][1][1][moduleId]; /******/ } /******/ } /******/ return undefined; /******/ } /******/ if (globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] && String(moduleId).indexOf("?name=") < 0 && isCommonModue(moduleId)) { /******/ globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId] = module; /******/ } /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = __webpack_require__("E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\FormExtContextPage.ets?entry"); /******/ _1e36f0fd2df677c57b79e15aad3634be = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=FormExtContextPage.js.mapregOnRelease caller render+earlierCreatedChild_2contextU % R G  N  QRRRRSR  & S'; SS4S@S  & S'; SS4S@S > S'; SS4S@SR R@% R   N Qc  GS R@ R@%  ?    $ N Z R 4S@SSSeSrSN   0 SvSS R@SRS O S N; SS4S@SRP R@% value_ohos_router_1top left3% right typebundleName/ohos.samples.stagemodelmoduleName entry9FormExtensionContext successabilityNameFormAbility)_ohos_promptAction_11__webpack_module_cache__'__webpack_modules___ohos_hilog_1SlotNumberS7S$7SJ7S7S"7S%7S7S7S 7S7S 7S 7S7S7S/7S 7S7S 7S 7S7S}7S7S7~DpDDa`=aa`=3wa`= >^a3j 3o3d 3 h `a`=a`=< a>a`*a`$e~DDEEEa`=a3fa`a $Q`a ` B(M` a #Q 3eM` a?a ` B5a `a >&a |a ` a ` 0 `a bC  ba ` =ma ` B Ua >Va ` . a #Q]?Da >Va >Ka ` + $Qma ` BLa ` BVM/?Da >Va >Ya ` + $Qma ` BZa ` BVMM` a ` =?"a 5u} a a ` B Ta ` a`a `C" e.D`DqDD`$Q`a`B&$Q`Ma`z4`d =DDD>a<a>'a`a`!a<a>'a``a`= d/DpDDD`a`B[a'$Q`a`a`B[C[eD` =` =?a`B1a`-?a`B?a>a`.? a`B ba>a`. ?a`BOaa`a`.?a`B1aaazP`a`.?a`Bbab a`.!?#a`B$?ab a`.&?(a`B)Ma3+ga`.,?.!a`B/1a<a`B1[a`.3?5!a`B6;aba`.8?:!a`B;Ga=a`a`.>?@!a`BAQa`-C?Ea`BFQa`-HeD`DqD<a`B*a`-e DDDEEa`=a`a $Q`a ` B(M` a#Q 3iM`a?a ` B5a`a >&a a ` a `0 ma ` B Ua >@a ` . a#Q]? Da >@a >Ka ` + $Qma ` BLa ` B@M/?Da >@a >Ya ` + $Qma ` BZa ` B@MM`a`=pa 5t aa `BTa `a`a>4a `a >#a  8  e.D`DqDD`$Q`a`B&$Q`M{a`z4`dDDEEEEa`=0a`a $Q`a ` B(M` a #Q 3kM` a?a ` B5a `a >&a a ` a ` 0 ma ` B Ua >Sa ` . a #Q]? Da >Sa >Ka ` + $Qma ` BLa ` BSM/?Da >Sa >Ya ` + $Qma ` BZa ` BSMM` a ` =0`a `a >a ` * a ` * a ` =>a ` =a ` a ` = pa 5 s a a ` B!Ta ` a`a >4a `8# e.D`DqDD`$Q`a`B&$Q`Ma`z4`d VDDDD<a>a  `a`B4a`BCa<a> a`a>-a` a> a`/e aDDD<a>a`a`B4a`BCa<a> a`a>a`/<1a`BWaa`a`. e DDDD<a>a  `a`B4a`B8a<a> a`a>a` a> a`/<1a`BWa a>a` a> z I`a`.eDEEEEE3va ` =03xaa`a $Q`a ` B(M` a #Q 3pM` a?a ` B5a `a >&a a`a` 0 ba ` =`a `a > a ` * a ` * a ` =`a >a ` * a ` = ?"a 5r a a ` BTa ` a?Fa `a >a a a a ` * e.D`DqDD`$Q`a`B&$Q`Ma`z4`d2DDD<a`B<a`BXa?>a<a`*a`.e yDDDEEEE`a`a`a `a 2a``a`a<a >a  ` a ` B4a  C<`a ` B]a`a `. `dDPDaDr`a`d`D`DqDD`a`abC7`a>CR`a>C=`a`CR`abC7`d [DDDDDEE`a`a`a `a 2a``a`aC[`a ` B]a`a `. `dDDDD? a`Bba>a`.? a`B?ab(a`.? a`B )a? a`B a`.? a`BGaa`a`.? a`BMa`a`.eDEEE3yaaaama >%a ` 7 $Qma >%a ` 7 a `a ` 7 Ma`$Q `a ` B9d<a `a ` 7 a`a ' $Q `a ` B 9d<a `a za z9 ` 8 ama >%a ` 7 a $Q2?a `a` *a ` BBa >a ` . a b M` $Q+`a `a ` * $Qma >%a ` 7 a `a `8! <a `a ` 7# a ` B%,a `a ` B'9a `a `a ` B)9a < a` 1+ `a ` B-9d=DDD?a`Ba`-a`B6a`a`BAa`- a`. e GDDDDa<a`B3a`a`B7a`a`BRa`a ` B=a `a `1e GDDDDa<a`B8a`a`B7a`a`BRa`a ` B=a `a `1e DP`=`=$3ca`)e =DDD>a<a>'a`a`!a<a>'a``a`= d GDDDDa<a`BCa`a`B7a`a`BRa`a ` B=a `a `1e DDDEma>aa`7$ma>aa`7a`BEa`ab'$Qb'$Q:Nma >aa ` 7 a ba ` 7 aba ` 7 a`a`7dma >aa ` 7 a ba ` 7 a ba ` 7 a`a ` 7a#Q8ma >aa ` 7 a ba ` 7 a ba ` 7 a`a ` 7M`dd D` =` =D`a`BNa3la`.<a>a  `a`B4a`BCa<a> a`a>/a`/ MQa<a >a  ` a`B 4a`B 8a<a> a  `a>.a `  a >  a `/ eWiOD`=`=?a`B1a`-?a`Bba>a`.? a`B ?a>a`. ?a`B+a>a`.?a`BOaa`a`.? a`B1a`-? a`B ba>a`."?$ a`B%?a>a`.'<$Q(<a`B):$Q<a`B+:a>a`.-Ma`a/$Qa?0"a`B11aa  ` a`B3a>a<a 5a 6a 7a z8P ` z:[ ` a <a`.>Ny`a`B@]aBaCaDa zEP`zG[`a`.I`a`BKJa`-M#QM$Q`a`BOHa`-Q?S"a`BT1a`a`.V?X a`BY1a`-[?] a`B^2a`aaazbP`a`.d<1a3fqa`*g?i a`BjQa`-l?n a`BoQa`-q?s a`BtQa`-v?xa`ByQa`-{e cD`=`=E`a ` BXa _a  ` a ` . a`B\a3ma `. a`B 0a3 na`. e/DpDDD`a`B<a'$Q`a`a`B<C<e GDDDDa<a`B`a`a`B7a`a`BRa`a ` B=a `a `1e  > p               /  O  $z$$~$~$)-$8$.         1        \                     /              8-  - ;JT; ^:}} }" "  1  !   % +8+#   !! (       '    k  k  k    k  k  k  m  k  k  k; >              1                       /              !   8-  , 9HQ9 [8yy y!    1  !   % +8+        1                      k      k  k   3          !     8-  3 GVfG pF !K!               0  !   % +8+          ."+!&+IM+M+     z  "6 !"' +           z k     <  <; !#(@F(F( +177+         1            k     /                 " !   8- #3r3#O" % % 6 # ( 3 1  !   % +8+      ! ,7,   M       \  g ^ D " ""-5!#       M   \  \  \  \   ` 8  {  M      \  g ^ B " ""-5#    k  k  k  k  3  #             /  !    /  k  "   m                  >      N        m     #####$/$mxmm$, %7  1== Y`YrY~Y  T`  . >F V        ',  #    ) 6 C,  #    ) 6 C l  $         #   %#%    /      ,  #    ( 5 B    >    / M  l  g ?          !                 Z    u   #*,7, #%$$(3(d(g(j(!(3(d(g(j(!,!]!`!c!(!"    m   u  /          :*  !"'  !#(QW(W( y    k  k  k  k  k  k          /  k              k   x  m     l     k  ^Ɲ %$- $C VC$] % <AGS|SG 8C8   H          ݝ5 ({    k  Z (   % ! ,  #    ( 5 Bnutkuxdhijnkklnn$oop6qqqerrRsGu vvywxPK !:<<ets/pages/FormExtContextPage.jsvar _1e36f0fd2df677c57b79e15aad3634be; /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\FormExtContextController.ts": /*!*****************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\feature\FormExtContextController.ts ***! \*****************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_promptAction_1 = globalThis.requireNapi('promptAction') || (isSystemplugin('promptAction', 'ohos') ? globalThis.ohosplugin.promptAction : isSystemplugin('promptAction', 'system') ? globalThis.systemplugin.promptAction : undefined); const Logger_1 = __importDefault(__webpack_require__(/*! ../util/Logger */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts")); const TAG = 'FormExtContextController'; let want = { moduleName: 'entry', bundleName: 'ohos.samples.stagemodel', abilityName: 'FormAbility', }; class FormExtContextController { regOnRelease(caller) { try { caller.onRelease((msg) => { Logger_1.default.info(TAG, `caller onRelease is called ${msg}`); }); Logger_1.default.info(TAG, 'caller register OnRelease succeed'); } catch (error) { Logger_1.default.error(TAG, `caller register OnRelease failed with ${error}`); } } // 拉起一个卡片所属应用的Ability。 startAbility(context) { context.startAbility(want).then(() => { Logger_1.default.info(TAG, `StartAbility Success`); _ohos_promptAction_1.showToast({ message: 'FormExtensionContext success' }); }).catch((error) => { Logger_1.default.error(TAG, `StartAbility failed: ${error}`); _ohos_promptAction_1.showToast({ message: `StartAbility failed: ${error}` }); }); } } exports["default"] = FormExtContextController; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\FormExtContextPage.ets?entry": /*!****************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\FormExtContextPage.ets?entry ***! \****************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); let __generate__Id = 0; function generateId() { return "FormExtContextPage_" + ++__generate__Id; } /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ const FormExtContextController_1 = __importDefault(__webpack_require__(/*! ../feature/FormExtContextController */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\FormExtContextController.ts")); const PublicTitleBar_1 = __webpack_require__(/*! ./component/PublicTitleBar */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\PublicTitleBar.ets"); class FormExContextPage extends View { constructor(compilerAssignedUniqueChildId, parent, params, localStorage) { super(compilerAssignedUniqueChildId, parent, localStorage); this.formExContext = new FormExtContextController_1.default(); this.updateWithValueParams(params); } updateWithValueParams(params) { if (params.formExContext !== undefined) { this.formExContext = params.formExContext; } } aboutToBeDeleted() { SubscriberManager.Get().delete(this.id()); } render() { Row.create(); Row.width('100%'); Row.height('100%'); Row.backgroundColor('#F1F3F5'); Row.padding({ left: '3%', right: '3%' }); Column.create(); Column.width('100%'); Column.height('100%'); let earlierCreatedChild_2 = (this && this.findChildById) ? this.findChildById("2") : undefined; if (earlierCreatedChild_2 == undefined) { View.create(new PublicTitleBar_1.PublicTitleBar("2", this, { textName: { "id": 16777254, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" } })); } else { earlierCreatedChild_2.updateWithValueParams({ textName: { "id": 16777254, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" } }); if (!earlierCreatedChild_2.needsUpdate()) { earlierCreatedChild_2.markStatic(); } View.create(earlierCreatedChild_2); } Column.create(); Button.createWithLabel({ "id": 16777278, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.formExContext.startAbility(getContext(this)); }); Button.pop(); Column.pop(); Column.pop(); Row.pop(); } } function __Button__fancy(click) { Button.width('60%'); Button.height(40); Button.align(Alignment.Center); Button.margin({ top: 30 }); Button.onClick(click); } loadDocument(new FormExContextPage("1", undefined, {})); /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\PublicTitleBar.ets": /*!****************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\component\PublicTitleBar.ets ***! \****************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.PublicTitleBar = void 0; let __generate__Id = 0; function generateId() { return "PublicTitleBar_" + ++__generate__Id; } /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var _ohos_router_1 = globalThis.requireNapi('router') || (isSystemplugin('router', 'ohos') ? globalThis.ohosplugin.router : isSystemplugin('router', 'system') ? globalThis.systemplugin.router : undefined); class PublicTitleBar extends View { constructor(compilerAssignedUniqueChildId, parent, params, localStorage) { super(compilerAssignedUniqueChildId, parent, localStorage); this.textName = undefined; this.updateWithValueParams(params); } updateWithValueParams(params) { if (params.textName !== undefined) { this.textName = params.textName; } } aboutToBeDeleted() { SubscriberManager.Get().delete(this.id()); } render() { Row.create(); Row.height('8%'); Row.width('100%'); Row.padding({ left: 15, right: 15 }); Image.create({ "id": 16777295, "type": 20000, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); Image.width(32); Image.height(32); Image.onClick(() => { _ohos_router_1.back(); }); Text.create(this.textName); Text.fontSize(24); Text.margin({ left: 80 }); Text.pop(); Row.pop(); } } exports.PublicTitleBar = PublicTitleBar; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts": /*!********************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\util\Logger.ts ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_hilog_1 = globalThis.requireNapi('hilog') || (isSystemplugin('hilog', 'ohos') ? globalThis.ohosplugin.hilog : isSystemplugin('hilog', 'system') ? globalThis.systemplugin.hilog : undefined); class Logger { constructor(prefix) { this.domain = 0xFF00; this.prefix = ''; this.format = '%{public}s, %{public}s'; this.prefix = prefix; this.domain = 0xFF00; } debug(...args) { _ohos_hilog_1.debug(this.domain, this.prefix, this.format, args); } info(...args) { _ohos_hilog_1.info(this.domain, this.prefix, this.format, args); } warn(...args) { _ohos_hilog_1.warn(this.domain, this.prefix, this.format, args); } error(...args) { _ohos_hilog_1.error(this.domain, this.prefix, this.format, args); } } exports["default"] = new Logger('[Sample_StageModel]'); /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ var commonCachedModule = globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] ? globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId]: null; /******/ if (commonCachedModule) { return commonCachedModule.exports; } /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ function isCommonModue(moduleId) { /******/ if (globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"]) { /******/ const length = globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"].length; /******/ switch (length) { /******/ case 1: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId]; /******/ case 2: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId] || /******/ globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][1][1][moduleId]; /******/ } /******/ } /******/ return undefined; /******/ } /******/ if (globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] && String(moduleId).indexOf("?name=") < 0 && isCommonModue(moduleId)) { /******/ globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId] = module; /******/ } /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = __webpack_require__("E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\FormExtContextPage.ets?entry"); /******/ _1e36f0fd2df677c57b79e15aad3634be = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=FormExtContextPage.js.mapPK !:#f#ets/pages/FormExtContextPage.js.map{"version":3,"file":"./pages/FormExtContextPage.js","mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;GAaG;;;;;AAEH,4EAAuC;AACvC,2LAAmC;AAEnC,MAAM,GAAG,GAAW,0BAA0B;AAE9C,IAAI,IAAI,GAAG;IACT,UAAU,EAAE,OAAO;IACnB,UAAU,EAAE,yBAAyB;IACrC,WAAW,EAAE,aAAa;CAC3B;AAED,MAAqB,wBAAwB;IACnC,YAAY,CAAC,MAAM;QACzB,IAAI;YACF,MAAM,CAAC,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE;gBACvB,gBAAM,CAAC,IAAI,CAAC,GAAG,EAAE,8BAA8B,GAAG,EAAE,CAAC;YACvD,CAAC,CAAC;YACF,gBAAM,CAAC,IAAI,CAAC,GAAG,EAAE,mCAAmC,CAAC;SACtD;QAAC,OAAO,KAAK,EAAE;YACd,gBAAM,CAAC,KAAK,CAAC,GAAG,EAAE,yCAAyC,KAAK,EAAE,CAAC;SACpE;IACH,CAAC;IAED,sBAAsB;IACtB,YAAY,CAAC,OAAO;QAClB,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE;YACnC,gBAAM,CAAC,IAAI,CAAC,GAAG,EAAE,sBAAsB,CAAC;YACxC,4BAAM,CAAC;gBACL,OAAO,EAAE,8BAA8B;aACxC,CAAC;QACJ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;YACjB,gBAAM,CAAC,KAAK,CAAC,GAAG,EAAE,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KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM;IACnD,CAAC;CACF;AAED,qBAAe,IAAI,MAAM,CAAC,qBAAqB,CAAC;;;;;;;UC5ChD;UACA;;UAEA;UACA;UACA;UACA,2BAA2B;UAC3B;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;UACA;;;;UEvCA;UACA;UACA;UACA","sources":["webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\FormExtContextController.ts","webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\FormExtContextPage.ets","webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\PublicTitleBar.ets","webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts","webpack:///webpack/bootstrap","webpack:///webpack/before-startup","webpack:///webpack/startup","webpack:///webpack/after-startup"],"names":[],"sourceRoot":""}PK !: ~٘VVets/pages/Index.abcPANDAV<XV!L:::_::M:::9:D899: :987m7s98b787-7T7@9w8787: 9F7"7Vwm#+38@H[ag 08APZbfo *4KW $@\x<  O "7-787F7T7b7m77778D8w888 9@9s99999 :::M:_:::::::: H 'L_ESTypeAnnotation; .#1# .#10# .#11# .#12#.#13#generateId .#2# .#3# .#4# .#5# .#6# .#7# .#8# .#9# .Index.IndexTitleBar!.__Button__fancy).__webpack_require__.generateId.isCommonModue1 100%260%8%90% ?name=Alignment Button Center ColumnE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\Index.ets?entryE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\component\IndexTitleBar.etsFlexAlignGetIndexTitleBarIndexTitleBar_IndexTitleBar_1 Index_ ObjectRow Scroll String#SubscriberManager Text ViewC_1e36f0fd2df677c57b79e15aad3634beq__common_module_cache___1e36f0fd2df677c57b79e15aad3634be__esModule__generate__Id__importDefault align call createcreateWithLabeldefaultdefineProperty deleteexportsfindChildByIdfontSize heightidindexOfisSystempluginjustifyContent lengthloadDocument marginmarkStaticneedsUpdate ohosohospluginonClick paramspopprototype pushrequireNapi router systemsystemplugintextName+updateWithValueParamsuse strict[webpackChunk_1e36f0fd2df677c57b79e15aad3634be width3L_ESSlotNumberAnnotation;@'L_ESTypeInfoRecord;#1#L_GLOBAL;-=GK]<& ?*N<L AO<V NAVO<[ uA{O<` AO<e AO<j AO<o BP< =K< =K< =&Lj<+ 8BhP<7{FgU= >ZM< >EPS< ES<BP< ES= s>L< B_Q< DR<2 C9R< DM<4JJV = >Lw<4funcObjany0newTarget'__webpack_exports__ 0thisE:/Projects/DevEco/applications_app_samples/ability/StageModel/entry/build/default/intermediates/assets_jsbundle/default/ets/pages/Index_.js #10# #11# #12#generateId/__unused_webpack_module#13#generateId4newTarget this3#14#updateWithValueParams)#15#aboutToBeDeleted#16#render#2# Index'__webpack_require__#3#mod#4##5##6##7##8##9#;compilerAssignedUniqueChildIdlocalStorage parent__Button__fancy clickisCommonModue modulecachedModule%commonCachedModulemoduleId!aboutToBeDeletedfunc_main_0var _1e36f0fd2df677c57b79e15aad3634be; /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\Index.ets?entry": /*!***************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\Index.ets?entry ***! \***************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); let __generate__Id = 0; function generateId() { return "Index_" + ++__generate__Id; } /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var _ohos_router_1 = globalThis.requireNapi('router') || (isSystemplugin('router', 'ohos') ? globalThis.ohosplugin.router : isSystemplugin('router', 'system') ? globalThis.systemplugin.router : undefined); const IndexTitleBar_1 = __webpack_require__(/*! ./component/IndexTitleBar */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\IndexTitleBar.ets"); class Index extends View { constructor(compilerAssignedUniqueChildId, parent, params, localStorage) { super(compilerAssignedUniqueChildId, parent, localStorage); this.updateWithValueParams(params); } updateWithValueParams(params) { } aboutToBeDeleted() { SubscriberManager.Get().delete(this.id()); } render() { Column.create(); let earlierCreatedChild_2 = (this && this.findChildById) ? this.findChildById("2") : undefined; if (earlierCreatedChild_2 == undefined) { View.create(new IndexTitleBar_1.IndexTitleBar("2", this, { textName: { "id": 16777260, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" } })); } else { earlierCreatedChild_2.updateWithValueParams({ textName: { "id": 16777260, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" } }); if (!earlierCreatedChild_2.needsUpdate()) { earlierCreatedChild_2.markStatic(); } View.create(earlierCreatedChild_2); } Scroll.create(); Scroll.width('100%'); Scroll.height('90%'); Column.create(); Column.width('100%'); Column.justifyContent(FlexAlign.Center); Button.createWithLabel({ "id": 16777240, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { _ohos_router_1.push({ url: 'pages/DataShareExtAbilityPage' }); }); Button.pop(); Button.createWithLabel({ "id": 16777227, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { _ohos_router_1.push({ url: 'pages/AbilityContextPage' }); }); Button.pop(); Button.createWithLabel({ "id": 16777273, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { _ohos_router_1.push({ url: 'pages/ServiceExtContextPage' }); }); Button.pop(); Button.createWithLabel({ "id": 16777254, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { _ohos_router_1.push({ url: 'pages/FormExtContextPage' }); }); Button.pop(); Button.createWithLabel({ "id": 16777234, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { _ohos_router_1.push({ url: 'pages/BundlePage' }); }); Button.pop(); Button.createWithLabel({ "id": 16777226, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { _ohos_router_1.push({ url: 'pages/AbilityAccessCtrlPage' }); }); Button.pop(); Button.createWithLabel({ "id": 16777241, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { _ohos_router_1.push({ url: 'pages/DataShareHelperPage' }); }); Button.pop(); Button.createWithLabel({ "id": 16777292, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { _ohos_router_1.push({ url: 'pages/WindowPage' }); }); Button.pop(); Column.pop(); Scroll.pop(); Column.pop(); } } function __Button__fancy(click) { Button.width('60%'); Button.height(40); Button.align(Alignment.Center); Button.margin({ top: 30 }); Button.onClick(click); } loadDocument(new Index("1", undefined, {})); /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\IndexTitleBar.ets": /*!***************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\component\IndexTitleBar.ets ***! \***************************************************************************************************************************/ /***/ ((__unused_webpack_module, exports) => { Object.defineProperty(exports, "__esModule", ({ value: true })); exports.IndexTitleBar = void 0; let __generate__Id = 0; function generateId() { return "IndexTitleBar_" + ++__generate__Id; } class IndexTitleBar extends View { constructor(compilerAssignedUniqueChildId, parent, params, localStorage) { super(compilerAssignedUniqueChildId, parent, localStorage); this.textName = undefined; this.updateWithValueParams(params); } updateWithValueParams(params) { if (params.textName !== undefined) { this.textName = params.textName; } } aboutToBeDeleted() { SubscriberManager.Get().delete(this.id()); } render() { Row.create(); Row.height('8%'); Row.width('100%'); Row.justifyContent(FlexAlign.Center); Text.create(this.textName); Text.fontSize(24); Text.pop(); Row.pop(); } } exports.IndexTitleBar = IndexTitleBar; /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ var commonCachedModule = globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] ? globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId]: null; /******/ if (commonCachedModule) { return commonCachedModule.exports; } /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ function isCommonModue(moduleId) { /******/ if (globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"]) { /******/ const length = globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"].length; /******/ switch (length) { /******/ case 1: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId]; /******/ case 2: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId] || /******/ globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][1][1][moduleId]; /******/ } /******/ } /******/ return undefined; /******/ } /******/ if (globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] && String(moduleId).indexOf("?name=") < 0 && isCommonModue(moduleId)) { /******/ globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId] = module; /******/ } /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = __webpack_require__("E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\Index.ets?entry"); /******/ _1e36f0fd2df677c57b79e15aad3634be = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=Index.js.map render+earlierCreatedChild_28::;: ;::;*b,Y;'_;k;;;*b,Y;'_;k;;;bY;'_;k;;;b Y;'_;k;;;b9Y;'_;k;;;4  k 7r b&Y;'_;k;;;bY;'_;k;;;b Y;'_;k;;;bY;'_;k;;;bLY;'_;k;;;   :4  4 7W  ;m;;2    ;:;:;:<:%<:7< valueurl7pages/ServiceExtContextPage1pages/AbilityContextPage;pages/DataShareExtAbilityPage typebundleName/ohos.samples.stagemodelmoduleName entry_ohos_router_11__webpack_module_cache__'__webpack_modules__top!pages/WindowPage3pages/DataShareHelperPage7pages/AbilityAccessCtrlPage!pages/BundlePage1pages/FormExtContextPageSlotNumberQ< 7Q<7Q<7Q<-7Q<(7Q<7Q<7Q<7Q<7Q</7Q< 7Q<7Q<7Q< 7Q<7Q<7joDpDDa`=aa`=3Sa`= >@na3H 3F `a`=a`=< a> a`*a` e#DpDD<1a`B9asa`a`.e#DpDD<1a`B9ara`a`.e mDDDEE3Ga?a ` B$a`a >a Wa ` a `0 `abCba`=? a 5 Qb aa `B 8a `a`a`C e =DDD>a<a>a`a`!a<a>a``a`= d/DpDDD`a`B>a'$Q`a`a`B>C>eDpDD?a`B!a`-?a`B)a>a`.? a`B Ba>a`. ?a`B-a? a`B a`.?a`B!a`a`B>a`.?a`B(aba`.!?#a`B$7a`-&?(a`B)7a`-+elDEEEEE3Ra ` = a3Taa ` =0`a $Q`a ` BM` a #Q 3IM` a?a ` B$a `a >a ja`a` 0 ba ` =ma ` B :a >;a ` . a #Q]?,a >;a >3a ` + $Qma ` B4a ` B;M/?,a >;a ><a ` + $Qma ` B=a ` B;MM` a ` =0`a > a ` * a ` =?a 5 Pk a a ` B!8a ` a?#/a `a >a a a$ a ` *& e.D`DqDD`$Q`a`B$Q`Mia`z#`d#DpDD<1a`B9aZa`a`.e#DpDD<1a`B9aYa`a`.e#DpDD<1a`B9aXa`a`.e#DpDD<1a`B9ava`a`.e#DpDD<1a`B9aua`a`.e#DpDD<1a`B9ata`a`.e NDDDDDEE`a`a`a `a 2a``a`a ` B?a`a `. `d [DDDDDEE`a`a`a `a 2a``a`aC>`a ` B?a`a `. `dDDDD?a`BBa>a`.?a`B)ab(a`.? a`B a? a`B a`.?a`B0aqa`a`.?a`B5a`a`.eDEEE3Uaaaama >a ` 7 $Qma >a ` 7 a `a ` 7 Ma`$Q `a ` B&d<a `a ` 7 a`a ' $Q `a ` B &d<a `a Va z& ` 8 ama >a ` 7 a $Q2?a `a` *a ` B+a >a ` . a b M` $Q+`a `a ` * $Qma >a ` 7 a `a `8! <a `a ` 7# a ` B% a `a ` B'&a `a `a ` B)&a < a` 1+ `a ` B-&d=DDD?a`Ba`-a`B%a`a`B*a`- a`. e pDP`=`=3Ca`)e =DDD>a<a>a`a`!a<a>a``a`= d DDDEma>Aa`7$ma>Aa`7a`B.a`ab'$Qb'$Q:Nma >Aa ` 7 a ba ` 7 aba ` 7 a`a`7dma >Aa ` 7 a ba ` 7 a ba ` 7 a`a ` 7a#Q8ma >Aa ` 7 a ba ` 7 a ba ` 7 a`a ` 7M`ddhD`=`=? a`B!a`-<$Q(<a`B'$Q<a`B'a>a`. Ma`a $Qa? a`B !a<a >a  ` a`Ba>a<a [a \a a z6 ` z> ` a a`.Ny`a`B?a]a^a a z!6`z#>`a`.%`a`B'2a`-)#QM$Q`a`B+1a`--?/a`B0!a`a`.2?4a`B5!a`-7?9a`B:Ba>a`.<?>a`B?)a>a`.A?C a`BD!a`-F?H a`BIBa>a`.K?M a`BN-a?P a`BQ a`.S?Ua`BV"aX_aYazZ6`a`.\ p           /  ?  $z$~$)-$8$.            \   2        Z  -  ! ! #        k  Z (    '    k  k  k  k  k/         1                        k     /                    8-  - ;JT; ^:}} }M     '            0   % +8+            M      h ] = &-5#  M      \  g ^ B -5#    k  k  k  k  3             /  !    /  k  "   m                  >      N        m   $/$mxmm$, %7  1== Y`YrY~Y  T`  . >F V   -' l           "      >    / M  l  g ?          !                 Z    u * ,7, #%$$(3(d(g(j(!(3(d(g(j(!,!]!`!c!(!"            /  k              k   x  m     l   k  k  k  k    k  `    k  `    k  `    k  `    k  `    k  `    k  `    k  `n0%$- $C VC$] % :?EQzQE 8C8   H H H H H H H H   *"?O3S KKL*MMN4PP0QQSzSlTDVPK !:"))ets/pages/Index.jsvar _1e36f0fd2df677c57b79e15aad3634be; /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\Index.ets?entry": /*!***************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\Index.ets?entry ***! \***************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); let __generate__Id = 0; function generateId() { return "Index_" + ++__generate__Id; } /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var _ohos_router_1 = globalThis.requireNapi('router') || (isSystemplugin('router', 'ohos') ? globalThis.ohosplugin.router : isSystemplugin('router', 'system') ? globalThis.systemplugin.router : undefined); const IndexTitleBar_1 = __webpack_require__(/*! ./component/IndexTitleBar */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\IndexTitleBar.ets"); class Index extends View { constructor(compilerAssignedUniqueChildId, parent, params, localStorage) { super(compilerAssignedUniqueChildId, parent, localStorage); this.updateWithValueParams(params); } updateWithValueParams(params) { } aboutToBeDeleted() { SubscriberManager.Get().delete(this.id()); } render() { Column.create(); let earlierCreatedChild_2 = (this && this.findChildById) ? this.findChildById("2") : undefined; if (earlierCreatedChild_2 == undefined) { View.create(new IndexTitleBar_1.IndexTitleBar("2", this, { textName: { "id": 16777260, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" } })); } else { earlierCreatedChild_2.updateWithValueParams({ textName: { "id": 16777260, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" } }); if (!earlierCreatedChild_2.needsUpdate()) { earlierCreatedChild_2.markStatic(); } View.create(earlierCreatedChild_2); } Scroll.create(); Scroll.width('100%'); Scroll.height('90%'); Column.create(); Column.width('100%'); Column.justifyContent(FlexAlign.Center); Button.createWithLabel({ "id": 16777240, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { _ohos_router_1.push({ url: 'pages/DataShareExtAbilityPage' }); }); Button.pop(); Button.createWithLabel({ "id": 16777227, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { _ohos_router_1.push({ url: 'pages/AbilityContextPage' }); }); Button.pop(); Button.createWithLabel({ "id": 16777273, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { _ohos_router_1.push({ url: 'pages/ServiceExtContextPage' }); }); Button.pop(); Button.createWithLabel({ "id": 16777254, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { _ohos_router_1.push({ url: 'pages/FormExtContextPage' }); }); Button.pop(); Button.createWithLabel({ "id": 16777234, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { _ohos_router_1.push({ url: 'pages/BundlePage' }); }); Button.pop(); Button.createWithLabel({ "id": 16777226, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { _ohos_router_1.push({ url: 'pages/AbilityAccessCtrlPage' }); }); Button.pop(); Button.createWithLabel({ "id": 16777241, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { _ohos_router_1.push({ url: 'pages/DataShareHelperPage' }); }); Button.pop(); Button.createWithLabel({ "id": 16777292, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { _ohos_router_1.push({ url: 'pages/WindowPage' }); }); Button.pop(); Column.pop(); Scroll.pop(); Column.pop(); } } function __Button__fancy(click) { Button.width('60%'); Button.height(40); Button.align(Alignment.Center); Button.margin({ top: 30 }); Button.onClick(click); } loadDocument(new Index("1", undefined, {})); /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\IndexTitleBar.ets": /*!***************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\component\IndexTitleBar.ets ***! \***************************************************************************************************************************/ /***/ ((__unused_webpack_module, exports) => { Object.defineProperty(exports, "__esModule", ({ value: true })); exports.IndexTitleBar = void 0; let __generate__Id = 0; function generateId() { return "IndexTitleBar_" + ++__generate__Id; } class IndexTitleBar extends View { constructor(compilerAssignedUniqueChildId, parent, params, localStorage) { super(compilerAssignedUniqueChildId, parent, localStorage); this.textName = undefined; this.updateWithValueParams(params); } updateWithValueParams(params) { if (params.textName !== undefined) { this.textName = params.textName; } } aboutToBeDeleted() { SubscriberManager.Get().delete(this.id()); } render() { Row.create(); Row.height('8%'); Row.width('100%'); Row.justifyContent(FlexAlign.Center); Text.create(this.textName); Text.fontSize(24); Text.pop(); Row.pop(); } } exports.IndexTitleBar = IndexTitleBar; /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ var commonCachedModule = globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] ? globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId]: null; /******/ if (commonCachedModule) { return commonCachedModule.exports; } /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ function isCommonModue(moduleId) { /******/ if (globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"]) { /******/ const length = globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"].length; /******/ switch (length) { /******/ case 1: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId]; /******/ case 2: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId] || /******/ globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][1][1][moduleId]; /******/ } /******/ } /******/ return undefined; /******/ } /******/ if (globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] && String(moduleId).indexOf("?name=") < 0 && isCommonModue(moduleId)) { /******/ globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId] = module; /******/ } /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = __webpack_require__("E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\Index.ets?entry"); /******/ _1e36f0fd2df677c57b79e15aad3634be = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=Index.js.mapPK !:w } } ets/pages/Index.js.map{"version":3,"file":"./pages/Index.js","mappings":";;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;GAaG;AAEH,gEAAiC;AACjC,gNAAyD;MAIlD,KAAK;IAFZ;;;KAFyD;;;;;;IAKvD;QACE,MAAM,UAiEL;;;YAhEC,6CAAa,YAAC,EAAE,QAAQ,+GAAwB,EAAE,GAAC;;;;gBAAnC,QAAQ,+GAAwB;;;;;;;QAChD,MAAM,UA8DQ;QA9Dd,MAAM,CA6DL,KAAK,CAAC,MAAM;QA7Db,MAAM,CA8DL,MAAM,CAAC,KAAK;QA7DX,MAAM,UA0D2B;QA1DjC,MAAM,CAyDL,KAAK,CAAC,MAAM;QAzDb,MAAM,CA0DL,cAAc,CAAC,SAAS,CAAC,MAAM;QAzD9B,MAAM,gIAKF;wBAJK,GAAG,EAAE;YACV,sBAAM;gBACJ,GAAG,EAAE,+BAA+B;aACrC,CAAC;QACJ,CAAC;QALH,MAAM,OAKF;QAEJ,MAAM,gIAKF;wBAJK,GAAG,EAAE;YACV,sBAAM;gBACJ,GAAG,EAAE,0BAA0B;aACh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AAC,IAAI,CAAC,QAAQ,EACH;QADf,IAAI,CACD,QAAQ,CAAC,EAAE;QADd,IAAI,OACW;QAFjB,GAAG,OAM8B;KAClC;;;;;;;;;UC3BH;UACA;;UAEA;UACA;UACA;UACA,2BAA2B;UAC3B;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;UACA;;;;UEvCA;UACA;UACA;UACA","sources":["webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\Index.ets","webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\IndexTitleBar.ets","webpack:///webpack/bootstrap","webpack:///webpack/before-startup","webpack:///webpack/startup","webpack:///webpack/after-startup"],"names":[],"sourceRoot":"","nameMap":["_ohos_router_1","router"]}PK !:+epPP#ets/pages/ServiceExtContextPage.abcPANDA fP<'LL| 0vP:ƊZ!҉P̈\QÄLFoY(EՇ=>{;?Hh|}Ig݌ ΄:rdE/P02:B7    # - 5 E V h m u - g s  3 : J \ t   # E g o v   ,2>GR`p{ 6[y3f'/=LdntEA]ya!=Yu}9Uq9 %UJ(/:EPÄ΄ ?r}I|H{Շ(Ydö;FQ\g҉!>LZƊ:EPhv=݌:\'L_ESTypeAnnotation;#F1F3F5-%{public}s, %{public}s .#1# .#10# .#11# .#12# .#13# .#14# .#15# .#19# .#2# .#20# .#21# .#22# .#23# .#24# .#25# .#26# .#27# .#28# .#29# .#3# .#30# .#31# .#32# .#33# .#34# .#35# .#36#.#37#generateId .#4# .#41# .#42# .#43# .#5# .#6# .#7# .#8# .#9#.Logger.PublicTitleBar+.ServiceExContextPage9.ServiceExtContextController!.__Button__fancy).__webpack_require__.generateId.isCommonModue1 100%260%8% ?name=Alignment Button+Caller GetCaller Get:-Caller GetCaller Get: /Caller GetCaller error:1Caller GetCaller error: Center ColumnE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\feature\ServiceExtContextController.tsE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\ServiceExtContextPage.ets?entryE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\component\PublicTitleBar.etsE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\util\Logger.tsGet Image JSONLogger_1 ObjectPublicTitleBarPublicTitleBar_!PublicTitleBar_1Row Scroll7ServiceExtContextController;ServiceExtContextController_1-ServiceExtContextPage_ String#SubscriberManagerTAG Text View'[Sample_StageModel]C_1e36f0fd2df677c57b79e15aad3634beq__common_module_cache___1e36f0fd2df677c57b79e15aad3634be__esModule__generate__Id__importDefaultaccountId align backbackgroundColor call caller7caller onRelease is called Mcaller register OnRelease failed with Ccaller register OnRelease succeed catchconnectAbility!connectAbility: -connectAbilityResult: 3connectAbilityWithAccount7connectAbilityWithAccount: connectionconnection: context createcreateWithLabel debugdefaultdefineProperty delete#disconnectAbilityAdisconnectAbility result error: AdisconnectAbility result success domain errorexportsfindChildByIdfontSize formatgetContext height hilogidindexOf infoisSystempluginlayoutWeight lengthloadDocument marginmarkStaticmessageneedsUpdate ohosohospluginonClickonConnectonDisconnectonDisconnect: onReleasepadding paramspop prefixpromptActionprototyperequireNapi router!serviceExContextshowToaststartAbility+startAbility result: %startAbilityByCall/startAbilityWithAccountGstartAbilityWithAccount fail, err: 9startServiceExtensionAbilityUstartServiceExtensionAbility fail, error: YstartServiceExtensionAbility success, data: OstartServiceExtensionAbilityWithAccountkstartServiceExtensionAbilityWithAccount fail, error: cstartServiceExtensionAbilityWithAccount success: 7stopServiceExtensionAbility9stopServiceExtensionAbility OstopServiceExtensionAbility fail, err: MstopServiceExtensionAbilityWithAccountQstopServiceExtensionAbilityWithAccount: stringify systemsystempluginterminateSelf-terminateSelf result: textName then+updateWithValueParamsuse strict wantwantAccount warn[webpackChunk_1e36f0fd2df677c57b79e15aad3634be width3L_ESSlotNumberAnnotation;@'L_ESTypeInfoRecord;#1#L_GLOBAL;K+s^h0Ǝ,  !&3ʸ>IkJ_PչkV"\3a-ֻk qk+Ѿ9&jDXJ|׿PVĚ\:b [mbsyΛ@aNE؟u PH۷~H X<Ho HsH֮oXkGkNӎ-X;4sLkRMk b|bºx.zU=t|;5 Ǝ: pzb x/ p| ^!/;v6ƎtN|H'| |t du դ;f[D e4funcObjany0newTarget'__webpack_exports__ 0thisE:/Projects/DevEco/applications_app_samples/ability/StageModel/entry/build/default/intermediates/assets_jsbundle/default/ets/pages/ServiceExtContextPage_.js #10# #11# data #12# #13# #14# #15##16#onConnect this4newTargetelementName remote!#17#onDisconnect#18#onFailed code #19##2#'__webpack_require__/__unused_webpack_module #20#obj #21# #22#)ServiceExContextPagegenerateId #23#mod #24# #25# #26# #27# #28# #29##3# #30# #31# #32# #33# #34# #35# #36##37#generateId3#38#updateWithValueParams)#39#aboutToBeDeleted#4#msg#40#render #41# #42# Logger #43##5##6#err#7##8##9#;compilerAssignedUniqueChildIdlocalStorage parent__Button__fancy clickisCommonModue modulecachedModule%commonCachedModulemoduleIdaboutToAppear!aboutToBeDeletedoptions result argsfunc_main_0var _1e36f0fd2df677c57b79e15aad3634be; /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\ServiceExtContextController.ts": /*!********************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\feature\ServiceExtContextController.ts ***! \********************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_promptAction_1 = globalThis.requireNapi('promptAction') || (isSystemplugin('promptAction', 'ohos') ? globalThis.ohosplugin.promptAction : isSystemplugin('promptAction', 'system') ? globalThis.systemplugin.promptAction : undefined); const Logger_1 = __importDefault(__webpack_require__(/*! ../util/Logger */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts")); const TAG = 'ServiceExtContextController'; const accountId = 100; let caller = undefined; let connection = 1; let wantAccount = { 'bundleName': 'ohos.samples.stagemodel', 'abilityName': 'TestAbility' }; let want = { bundleName: 'ohos.samples.stagemodel', abilityName: 'TestAbility', moduleName: 'entry' }; class ServiceExtContextController { constructor(context) { this.context = context; } regOnRelease(caller) { try { caller.onRelease((msg) => { Logger_1.default.info(TAG, `caller onRelease is called ${msg}`); }); Logger_1.default.info(TAG, 'caller register OnRelease succeed'); } catch (error) { Logger_1.default.error(TAG, `caller register OnRelease failed with ${error}`); } } // 启动Ability,对应FA的ParticleAbilityTest中的startAbility() startAbility() { this.context.startAbility(wantAccount, (error) => { Logger_1.default.info(TAG, `startAbility result: ${JSON.stringify(error)}`); }); } // 根据account启动Ability startAbilityWithAccount() { this.context.startAbilityWithAccount(wantAccount, accountId, (err) => { Logger_1.default.info(TAG, `startAbilityWithAccount fail, err: ${JSON.stringify(err)}`); }); } // 启动一个新的ServiceExtensionAbility startServiceExtensionAbility() { this.context.startServiceExtensionAbility(wantAccount) .then((data) => { Logger_1.default.info(TAG, `startServiceExtensionAbility success, data: ${JSON.stringify(data)}`); _ohos_promptAction_1.showToast({ message: 'startServiceExtensionAbility success' }); }) .catch((error) => { Logger_1.default.error(TAG, `startServiceExtensionAbility fail, error: ${JSON.stringify(error)}`); _ohos_promptAction_1.showToast({ message: 'startServiceExtensionAbility' }); }); } // 启动一个新的ServiceExtensionAbility startServiceExtensionAbilityWithAccount() { this.context.startServiceExtensionAbilityWithAccount(wantAccount, accountId) .then((data) => { Logger_1.default.info(TAG, `startServiceExtensionAbilityWithAccount success: ${JSON.stringify(data)}`); _ohos_promptAction_1.showToast({ message: 'startServiceExtensionAbilityWithAccount success' }); }) .catch((error) => { Logger_1.default.error(TAG, `startServiceExtensionAbilityWithAccount fail, error: ${JSON.stringify(error)}`); _ohos_promptAction_1.showToast({ message: 'startServiceExtensionAbilityWithAccount' }); }); } // 停止同一应用程序内的服务 stopServiceExtensionAbility() { this.context.stopServiceExtensionAbility(wantAccount) .then((data) => { Logger_1.default.info(TAG, `stopServiceExtensionAbility ${JSON.stringify(data)}`); _ohos_promptAction_1.showToast({ message: `stopServiceExtensionAbility ${JSON.stringify(data)}` }); }) .catch((error) => { Logger_1.default.error(TAG, `stopServiceExtensionAbility fail, err: ${JSON.stringify(error)}`); _ohos_promptAction_1.showToast({ message: 'stopServiceExtensionAbility' }); }); } // 使用帐户停止同一应用程序内的服务 stopServiceExtensionAbilityWithAccount() { this.context.stopServiceExtensionAbilityWithAccount(want, accountId) .then((data) => { Logger_1.default.info(TAG, `stopServiceExtensionAbilityWithAccount: ${JSON.stringify(data)}`); _ohos_promptAction_1.showToast({ message: `stopServiceExtensionAbilityWithAccount: ${JSON.stringify(data)}` }); }) .catch((error) => { Logger_1.default.error(TAG, `stopServiceExtensionAbilityWithAccount: ${JSON.stringify(error)}`); _ohos_promptAction_1.showToast({ message: 'stopServiceExtensionAbilityWithAccount' }); }); } // 停止Ability自身。对应FA的ParticleAbilityTest中的terminateSelf() terminateSelf() { this.context.terminateSelf((error) => { Logger_1.default.info(TAG, `terminateSelf result: ${JSON.stringify(error)}`); }); } // 将一个Ability与服务类型的Ability绑定。对应FA的ParticleAbilityTest中的connectAbility() connectAbility() { let options = { onConnect(elementName, remote) { Logger_1.default.info(TAG, `connection: ${JSON.stringify(elementName)}`); _ohos_promptAction_1.showToast({ message: `connection: ${JSON.stringify(elementName)}` }); }, onDisconnect(elementName) { Logger_1.default.info(TAG, `onDisconnect: ${JSON.stringify(elementName)}`); _ohos_promptAction_1.showToast({ message: `onDisconnect: ${JSON.stringify(elementName)}` }); }, onFailed(code) { Logger_1.default.info(TAG, `connectAbility: ${JSON.stringify(code)}`); _ohos_promptAction_1.showToast({ message: `connectAbility: ${JSON.stringify(code)}` }); } }; let connection = this.context.connectAbility(want, options); Logger_1.default.info(TAG, `connection: ${JSON.stringify(connection)}`); _ohos_promptAction_1.showToast({ message: `connection: ${JSON.stringify(connection)}` }); } // 使用AbilityInfo.AbilityType.SERVICE模板和account将当前能力连接到一个能力。 connectAbilityWithAccount() { const options = { onConnect(elementName, remote) { Logger_1.default.info(TAG, `onConnect`); _ohos_promptAction_1.showToast({ message: 'onConnect' }); }, onDisconnect(elementName) { Logger_1.default.info(TAG, `onDisconnect`); _ohos_promptAction_1.showToast({ message: 'onDisconnect' }); }, onFailed(code) { Logger_1.default.info(TAG, `connectAbilityWithAccount: ${JSON.stringify(code)}`); _ohos_promptAction_1.showToast({ message: `connectAbilityWithAccount: ${JSON.stringify(code)}` }); } }; const result = this.context.connectAbility(want, options); Logger_1.default.info(TAG, `connectAbilityResult: ${JSON.stringify(result)}`); _ohos_promptAction_1.showToast({ message: `connectAbilityResult: ${JSON.stringify(result)}` }); } // 将一个Ability与绑定的服务类型的Ability解绑。对应FA的ParticleAbilityTest中的disconnectAbility disconnectAbility() { this.context.disconnectAbility(connection, (error) => { // connection为connectAbility中的返回值 if (error) { Logger_1.default.info(TAG, `disconnectAbility result error: ${JSON.stringify(error)}`); } Logger_1.default.info(TAG, `disconnectAbility result success`); _ohos_promptAction_1.showToast({ message: `disconnectAbility result success` }); }); } // 启动指定Ability至前台或后台,同时获取其Caller通信接口,调用方可使用Caller与被启动的Ability进行通信。 startAbilityByCall() { this.context.startAbilityByCall({ bundleName: 'ohos.samples.stagemodel', abilityName: 'TestAbility', moduleName: 'entry' }).then((obj) => { caller = obj; Logger_1.default.info(TAG, `Caller GetCaller Get: ${JSON.stringify(caller)}`); _ohos_promptAction_1.showToast({ message: `Caller GetCaller Get:${JSON.stringify(caller)}` }); }).catch((error) => { Logger_1.default.error(TAG, `Caller GetCaller error: ${JSON.stringify(error)}`); _ohos_promptAction_1.showToast({ message: `Caller GetCaller error:${JSON.stringify(error)}` }); }); } } exports["default"] = ServiceExtContextController; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\ServiceExtContextPage.ets?entry": /*!*******************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\ServiceExtContextPage.ets?entry ***! \*******************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); let __generate__Id = 0; function generateId() { return "ServiceExtContextPage_" + ++__generate__Id; } /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ const PublicTitleBar_1 = __webpack_require__(/*! ./component/PublicTitleBar */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\PublicTitleBar.ets"); const ServiceExtContextController_1 = __importDefault(__webpack_require__(/*! ../feature/ServiceExtContextController */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\ServiceExtContextController.ts")); class ServiceExContextPage extends View { constructor(compilerAssignedUniqueChildId, parent, params, localStorage) { super(compilerAssignedUniqueChildId, parent, localStorage); this.serviceExContext = undefined; this.updateWithValueParams(params); } updateWithValueParams(params) { if (params.serviceExContext !== undefined) { this.serviceExContext = params.serviceExContext; } } aboutToBeDeleted() { SubscriberManager.Get().delete(this.id()); } render() { Column.create(); Column.width('100%'); Column.height('100%'); Column.backgroundColor('#F1F3F5'); Column.padding({ left: '3%', right: '3%' }); let earlierCreatedChild_2 = (this && this.findChildById) ? this.findChildById("2") : undefined; if (earlierCreatedChild_2 == undefined) { View.create(new PublicTitleBar_1.PublicTitleBar("2", this, { textName: { "id": 16777273, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" } })); } else { earlierCreatedChild_2.updateWithValueParams({ textName: { "id": 16777273, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" } }); if (!earlierCreatedChild_2.needsUpdate()) { earlierCreatedChild_2.markStatic(); } View.create(earlierCreatedChild_2); } Scroll.create(); Scroll.layoutWeight(1); Scroll.width('100%'); Column.create(); Column.width('100%'); Button.createWithLabel({ "id": 16777278, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.serviceExContext.startAbility(); }); Button.pop(); Button.createWithLabel({ "id": 16777283, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.serviceExContext.startServiceExtensionAbility(); }); Button.pop(); Button.createWithLabel({ "id": 16777284, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.serviceExContext.startServiceExtensionAbilityWithAccount(); }); Button.pop(); Button.createWithLabel({ "id": 16777285, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.serviceExContext.stopServiceExtensionAbility(); }); Button.pop(); Button.createWithLabel({ "id": 16777286, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.serviceExContext.stopServiceExtensionAbilityWithAccount(); }); Button.pop(); Button.createWithLabel({ "id": 16777288, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.serviceExContext.terminateSelf(); }); Button.pop(); Button.createWithLabel({ "id": 16777237, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.serviceExContext.connectAbility(); }); Button.pop(); Button.createWithLabel({ "id": 16777238, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.serviceExContext.connectAbilityWithAccount(); }); Button.pop(); Button.createWithLabel({ "id": 16777246, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.serviceExContext.disconnectAbility(); }); Button.pop(); Button.createWithLabel({ "id": 16777282, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.serviceExContext.startAbilityWithAccount(); }); Button.pop(); Button.createWithLabel({ "id": 16777279, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.serviceExContext.startAbilityByCall(); }); Button.pop(); Column.pop(); Scroll.pop(); Column.pop(); } aboutToAppear() { let context = getContext(this); this.serviceExContext = new ServiceExtContextController_1.default(context); } } function __Button__fancy(click) { Button.width('60%'); Button.height(40); Button.align(Alignment.Center); Button.margin({ top: 30 }); Button.onClick(click); } loadDocument(new ServiceExContextPage("1", undefined, {})); /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\PublicTitleBar.ets": /*!****************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\component\PublicTitleBar.ets ***! \****************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.PublicTitleBar = void 0; let __generate__Id = 0; function generateId() { return "PublicTitleBar_" + ++__generate__Id; } /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var _ohos_router_1 = globalThis.requireNapi('router') || (isSystemplugin('router', 'ohos') ? globalThis.ohosplugin.router : isSystemplugin('router', 'system') ? globalThis.systemplugin.router : undefined); class PublicTitleBar extends View { constructor(compilerAssignedUniqueChildId, parent, params, localStorage) { super(compilerAssignedUniqueChildId, parent, localStorage); this.textName = undefined; this.updateWithValueParams(params); } updateWithValueParams(params) { if (params.textName !== undefined) { this.textName = params.textName; } } aboutToBeDeleted() { SubscriberManager.Get().delete(this.id()); } render() { Row.create(); Row.height('8%'); Row.width('100%'); Row.padding({ left: 15, right: 15 }); Image.create({ "id": 16777295, "type": 20000, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); Image.width(32); Image.height(32); Image.onClick(() => { _ohos_router_1.back(); }); Text.create(this.textName); Text.fontSize(24); Text.margin({ left: 80 }); Text.pop(); Row.pop(); } } exports.PublicTitleBar = PublicTitleBar; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts": /*!********************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\util\Logger.ts ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_hilog_1 = globalThis.requireNapi('hilog') || (isSystemplugin('hilog', 'ohos') ? globalThis.ohosplugin.hilog : isSystemplugin('hilog', 'system') ? globalThis.systemplugin.hilog : undefined); class Logger { constructor(prefix) { this.domain = 0xFF00; this.prefix = ''; this.format = '%{public}s, %{public}s'; this.prefix = prefix; this.domain = 0xFF00; } debug(...args) { _ohos_hilog_1.debug(this.domain, this.prefix, this.format, args); } info(...args) { _ohos_hilog_1.info(this.domain, this.prefix, this.format, args); } warn(...args) { _ohos_hilog_1.warn(this.domain, this.prefix, this.format, args); } error(...args) { _ohos_hilog_1.error(this.domain, this.prefix, this.format, args); } } exports["default"] = new Logger('[Sample_StageModel]'); /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ var commonCachedModule = globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] ? globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId]: null; /******/ if (commonCachedModule) { return commonCachedModule.exports; } /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ function isCommonModue(moduleId) { /******/ if (globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"]) { /******/ const length = globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"].length; /******/ switch (length) { /******/ case 1: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId]; /******/ case 2: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId] || /******/ globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][1][1][moduleId]; /******/ } /******/ } /******/ return undefined; /******/ } /******/ if (globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] && String(moduleId).indexOf("?name=") < 0 && isCommonModue(moduleId)) { /******/ globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId] = module; /******/ } /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = __webpack_require__("E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\ServiceExtContextPage.ets?entry"); /******/ _1e36f0fd2df677c57b79e15aad3634be = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=ServiceExtContextPage.js.maponFailedregOnRelease render+earlierCreatedChild_2v  "t /    s )9>DHDd 9O'Uazd 9O'Uaz >O'Uaz" CO'Uaz DO'Uaz EO'Uaz FO'Uaz HO'Uaz O'Uaz O'Uaz O'Uaz BO'Uaz ?O'Uaz k  5 P o   wq "te    s V b  Uaz wq wqRGG R ` G R{  >H wq wqf wq OO NUaz wq[ wq wq wq wq "Ua>P UazJ   [ = f " = : p t       "#      B7  #= wq wq value_ohos_router_1top left3% right typebundleName/ohos.samples.stagemodelmoduleName entryabilityNameTestAbility_ohos_hilog_1_startServiceExtensionAbilityWithAccount successIstartServiceExtensionAbility success)_ohos_promptAction_11__webpack_module_cache__'__webpack_modules__SlotNumberR7R7R 7R7R&7R7R7R$7R7RJ7R7R"7R 7R7R7R/7R 7R7R 7R 7R7R7R7R7~DpDDa`=aa`=3a`= >a333 3  `a`=a`=< a>a`*a`(e DDDD<a>a  `a`BBa`BIa<a>$a`a>va?a ` B}a `a ` . a> a`/ a  `a`BBa`BSa<a>$a`a>ya?a ` B}a `a ` . a> a`/ ya?a ` B}a `a ` . a> zZ`a`.e DDDD<a>a  `a`BBa`BIa<a>$a`a>za?a ` B}a `a ` . a> a`/ a  `a`BBa`BSa<a>$a`a>|a?a ` B}a `a ` . a> a`/ |a?a ` B}a `a ` . a> zZ`a`.e DDDD<a>a  `a`BBa`BIa<a>$a`a>|a?a ` B}a `a ` . a> a`/ a  `a`BBa`BSa<a>$a`a>a?a ` B}a `a ` . a> a`/ e eDDDDD<a >a  ` a`BBa`BSa<a>$a  `a>_a `/ <@a`Blaa`a`. e cDDDD<a>a  `a`BBa`BSa<a>$a`a>`a`/<@a`Blaa`a`. e DDDD<a>a  `a`BBa`BSa<a>$a`a>;a?a ` B}a `a ` . a> a`/ <@a`B laa>;a?a ` B}a `a ` . a> zZ`a`.e DDDD`$Qe<a>a  `a`BBa`BSa<a>$a`a>Fa?a ` B}a `a ` . a> a`/ <a>a  `a`B Ba`BSa<a>$a`a>Ga`/GzZ`a`.eDDEEEEa`=@a`a $Q`a ` B,M` a #Q 3M` a?a ` BCa `a >*a a ` a ` 0 ma ` B ia >ga ` . a #Q]? Ta >ga >\a ` + $Qma ` B]a ` BgM/?Ta >ga >~a ` + $Qma ` Ba ` BgMM` a ` =@`a `a >a ` * a ` * a ` =>a ` =bda ` =0a ` =pba ` =`a ` a ` =  a ` a ` =Ppa 5! a a ` B"ha ` a`a >Ba `8$ e DDDE`a2a``a`=q<a>a  `a`BBa`BSa<a>$a`a> a?a ` B}a 2a  ` a ` . a> a`/  a?a ` B}a 2a  ` a ` . a> zZ`a`.e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`=pa 5 aa `Bha `a`a>Ba `a >'a  8  e.D`DqDD`$Q`a`B*$Q`Ma`zB`d lDDDD<a>a  `a`BBa`BSa<a>$a`a>na?a ` B}a `a ` . a> a`/ e lDDDD<a>a  `a`BBa`BSa<a>$a`a>qa?a ` B}a `a ` . a> a`/ e DDDD<a>a  `a`BBa`BSa<a>$a`a>ta?a ` B}a `a ` . a> a`/ a  `a`BBa`BIa<a>$a`a>sa?a ` B}a `a ` . a> a`/ a  `a`BBa`BSa<a>$a`a>wa?a ` B}a `a ` . a> a`/ Cf`a>CM`a`Cf`abCH`d [DDDDDEE`a`a`a `a 2a``a`aC`a ` Ba`a `. `d [DDDDDEE`a`a`a `a 2a``a`aCk`a ` Ba`a `. `d D`DqDD`a`a`C>`dDDDD? a`Ba>a`.? a`BOab(a`.? a`B .a? a`Ba`.? a`BXaa`a`.? a`B^a`a`.eDEEE3aaaama >)a ` 7 $Qma >)a ` 7 a `a ` 7 Ma`$Q `a ` BJd<a `a ` 7 a`a ' $Q `a ` B Jd<a `a a zJ ` 8 ama >)a ` 7 a $Q2?"a `a` *a ` BRa >a ` . a b M` $Q+`a `a ` * $Qma >)a ` 7 a `a `8! <a `a ` 7# a ` B%1a `a ` B'Ja `a `a ` B)Ja < a` 1+ `a ` B-Jd BDDD?Na`a`*a`a<0a> a  `a`BBa`aCke=DDD?#a`Ba`-a`BDa`a`BQa`- a`. e DDDa`a`a`B>a`B7aa  `a`a `/ a<a >a  ` a`BBa`B Sa<a>$a  `a>=a ? a ` B }a `a ` .  a >  a `/ <@a`Blaa>=a ?a ` B}a `a ` .  a >  zZ`a`. e DDDa`a`a`B>a`B7aa  `a`a `/ a<a >a  ` a`BBa`B Sa<a>$a  `a>9a ? a ` B }a `a ` .  a >  a `/ <@a`Blaa>9a ?a ` B}a `a ` .  a >  zZ`a`. e GDDDDa<a`BAa`a`BHa`a`Bfa`a ` BMa `a `1eBD` =` =<a`B>a`BEa<a`a3a`/e GDDDDa<a`BIa`a`BHa`a`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3a`. a`B 6a3 a`.e hD` =`=<a ` B>a ` Bxaa  ` a `. a`Ba3a`. a`B 6a3 a`.e zD`=`=<a ` B>a ` B{aa  ` a <1a >-a  ` a `/ a`Ba3a`. a`B 6a3 a`.e0Dp`=` =<a`B>a`Ba3a`.e/DpDDD`a`Bka'$Q`a`a`BkCke GDDDDa<a`Ba`a`BHa`a`Bfa`a ` BMa `a `1e  > p               /  O5 444444444544 $z$~$}$|$)-$8$. 7544444454444 !#(`o` v(v( +             z k       <  E5444444544644 !"'FUF ['[' +8G8 MM+ 7544444454444 !#(RaR h(h( + E5444444544644 !"'RaR g'g' +DSD YY+ 7544444454444 !#(SbS i(i( + 3544444454444 !"'@O@ V'V'      z  /5 444644644744744!&+ /      z  )5444644644744!&+ / E5444644644744!&+IXI ^+^+ /;J; PP/   \          {    z k <  @544444454444!&+N]N d+d+ !"' ++         1                      k      k  k  k  k  k  n   3        5444644644447444474444   8-  3 GVfG pF !K!   44""              z k       <  H5 444444544844 !"'@O@ W'W' +1@1 HH+ E544444454444 !#(CRC Y(Y( +3B3 II+         1          k       /               56446447448444448447444444  8- O&6x6&844#( (  & + 6 15444644644844   % +8+  5444444544 5444444544 5444444544 5444444544 5444444544 5444444544            05444644644844   % +8+5444444544 5444444544 5444444544 5444444544 5444444544         1        \                     /        5444644444444844644744  8-  - ;JT; ^:}} }44" "  15444644644844   % +8+#5444644644 !!  (544464464444    5444644644'          .54444445449445!&+IM+M+    k  k  k    k  k  k  m  k  k  k;5444 >   5444444544         1                       /           54446446447444444944   8-  , 9HQ9 [8yy y944   15444644644844   % +8+            3544444454444 !"'?N? U'U' 35444444544:44 !"'M\M a'a'             z  75444444544644 !"'VeV k'k' + 7544444454444 !#(UdU k(k( + 75444444544644 !"'[j[ p'p' +   M   \  \  \  \   ` 8544464464444{  M      \  g ^ B544464444:44644:44:44-5#B544464444:44644:44:44-5 #  M   Z \ %564464444444/    k  k  k  k  35444644644:44             /  !    /  k  "   m                  >      N        m  5 444644644:44;44;44;44;44$/$mxmm$, %7  1== Y`YrY~Y  T`  . >F V       /      0564464444444! $ J     5444644644'        /           z k       <  Y564464444444;44 5; !#2A2 M#M# '$3$ ??' Y5644644;44444;4439!#<K< S#S# '.=. EE' ,5444644644;44    ) 6 C5444'3 ,5444644644;44    ) 6 C l  <5444         #5444644644 (&(    /      ,5444644644;44    ( 5 B    >    / M  l  g ?          !                 Z    u5 444644644;44*44,7, #%$$(3(d(g(j(!(3(d(g(j(!,!]!`!c!(!"            z k       <  K5 444644644744744!&+:I: V+V+ /,;, HH/             z k       <  E5444644644744!&+<K< X+X+ /.=. JJ/ !E5444644644744!&+>M> S+S+ /0?0 EE/     m   u  /          95444444  !"' 44 !#(QW(W( y"    k  k  k  k          /  k              k   x  m     l   k  k  k    k  ^    k  ^    k  ^    k  ^    k  ^    k  ^    k  ^    k  ^    k  ^    k  ^    k  ^544444 %$- $C VC$] % <AGS|SG 8C8   H H H H H H H H H H H #     5444?"/     u   5444( v$      5444-:E %54442y 5444=Jy     x   54441y      x   5444<By    5444#&    k  Z (544464464444 ( $  ,5444644644;44    ( 5 BO |+&,&oP`f<8v aPK !:U_:5ee"ets/pages/ServiceExtContextPage.jsvar _1e36f0fd2df677c57b79e15aad3634be; /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\ServiceExtContextController.ts": /*!********************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\feature\ServiceExtContextController.ts ***! \********************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_promptAction_1 = globalThis.requireNapi('promptAction') || (isSystemplugin('promptAction', 'ohos') ? globalThis.ohosplugin.promptAction : isSystemplugin('promptAction', 'system') ? globalThis.systemplugin.promptAction : undefined); const Logger_1 = __importDefault(__webpack_require__(/*! ../util/Logger */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts")); const TAG = 'ServiceExtContextController'; const accountId = 100; let caller = undefined; let connection = 1; let wantAccount = { 'bundleName': 'ohos.samples.stagemodel', 'abilityName': 'TestAbility' }; let want = { bundleName: 'ohos.samples.stagemodel', abilityName: 'TestAbility', moduleName: 'entry' }; class ServiceExtContextController { constructor(context) { this.context = context; } regOnRelease(caller) { try { caller.onRelease((msg) => { Logger_1.default.info(TAG, `caller onRelease is called ${msg}`); }); Logger_1.default.info(TAG, 'caller register OnRelease succeed'); } catch (error) { Logger_1.default.error(TAG, `caller register OnRelease failed with ${error}`); } } // 启动Ability,对应FA的ParticleAbilityTest中的startAbility() startAbility() { this.context.startAbility(wantAccount, (error) => { Logger_1.default.info(TAG, `startAbility result: ${JSON.stringify(error)}`); }); } // 根据account启动Ability startAbilityWithAccount() { this.context.startAbilityWithAccount(wantAccount, accountId, (err) => { Logger_1.default.info(TAG, `startAbilityWithAccount fail, err: ${JSON.stringify(err)}`); }); } // 启动一个新的ServiceExtensionAbility startServiceExtensionAbility() { this.context.startServiceExtensionAbility(wantAccount) .then((data) => { Logger_1.default.info(TAG, `startServiceExtensionAbility success, data: ${JSON.stringify(data)}`); _ohos_promptAction_1.showToast({ message: 'startServiceExtensionAbility success' }); }) .catch((error) => { Logger_1.default.error(TAG, `startServiceExtensionAbility fail, error: ${JSON.stringify(error)}`); _ohos_promptAction_1.showToast({ message: 'startServiceExtensionAbility' }); }); } // 启动一个新的ServiceExtensionAbility startServiceExtensionAbilityWithAccount() { this.context.startServiceExtensionAbilityWithAccount(wantAccount, accountId) .then((data) => { Logger_1.default.info(TAG, `startServiceExtensionAbilityWithAccount success: ${JSON.stringify(data)}`); _ohos_promptAction_1.showToast({ message: 'startServiceExtensionAbilityWithAccount success' }); }) .catch((error) => { Logger_1.default.error(TAG, `startServiceExtensionAbilityWithAccount fail, error: ${JSON.stringify(error)}`); _ohos_promptAction_1.showToast({ message: 'startServiceExtensionAbilityWithAccount' }); }); } // 停止同一应用程序内的服务 stopServiceExtensionAbility() { this.context.stopServiceExtensionAbility(wantAccount) .then((data) => { Logger_1.default.info(TAG, `stopServiceExtensionAbility ${JSON.stringify(data)}`); _ohos_promptAction_1.showToast({ message: `stopServiceExtensionAbility ${JSON.stringify(data)}` }); }) .catch((error) => { Logger_1.default.error(TAG, `stopServiceExtensionAbility fail, err: ${JSON.stringify(error)}`); _ohos_promptAction_1.showToast({ message: 'stopServiceExtensionAbility' }); }); } // 使用帐户停止同一应用程序内的服务 stopServiceExtensionAbilityWithAccount() { this.context.stopServiceExtensionAbilityWithAccount(want, accountId) .then((data) => { Logger_1.default.info(TAG, `stopServiceExtensionAbilityWithAccount: ${JSON.stringify(data)}`); _ohos_promptAction_1.showToast({ message: `stopServiceExtensionAbilityWithAccount: ${JSON.stringify(data)}` }); }) .catch((error) => { Logger_1.default.error(TAG, `stopServiceExtensionAbilityWithAccount: ${JSON.stringify(error)}`); _ohos_promptAction_1.showToast({ message: 'stopServiceExtensionAbilityWithAccount' }); }); } // 停止Ability自身。对应FA的ParticleAbilityTest中的terminateSelf() terminateSelf() { this.context.terminateSelf((error) => { Logger_1.default.info(TAG, `terminateSelf result: ${JSON.stringify(error)}`); }); } // 将一个Ability与服务类型的Ability绑定。对应FA的ParticleAbilityTest中的connectAbility() connectAbility() { let options = { onConnect(elementName, remote) { Logger_1.default.info(TAG, `connection: ${JSON.stringify(elementName)}`); _ohos_promptAction_1.showToast({ message: `connection: ${JSON.stringify(elementName)}` }); }, onDisconnect(elementName) { Logger_1.default.info(TAG, `onDisconnect: ${JSON.stringify(elementName)}`); _ohos_promptAction_1.showToast({ message: `onDisconnect: ${JSON.stringify(elementName)}` }); }, onFailed(code) { Logger_1.default.info(TAG, `connectAbility: ${JSON.stringify(code)}`); _ohos_promptAction_1.showToast({ message: `connectAbility: ${JSON.stringify(code)}` }); } }; let connection = this.context.connectAbility(want, options); Logger_1.default.info(TAG, `connection: ${JSON.stringify(connection)}`); _ohos_promptAction_1.showToast({ message: `connection: ${JSON.stringify(connection)}` }); } // 使用AbilityInfo.AbilityType.SERVICE模板和account将当前能力连接到一个能力。 connectAbilityWithAccount() { const options = { onConnect(elementName, remote) { Logger_1.default.info(TAG, `onConnect`); _ohos_promptAction_1.showToast({ message: 'onConnect' }); }, onDisconnect(elementName) { Logger_1.default.info(TAG, `onDisconnect`); _ohos_promptAction_1.showToast({ message: 'onDisconnect' }); }, onFailed(code) { Logger_1.default.info(TAG, `connectAbilityWithAccount: ${JSON.stringify(code)}`); _ohos_promptAction_1.showToast({ message: `connectAbilityWithAccount: ${JSON.stringify(code)}` }); } }; const result = this.context.connectAbility(want, options); Logger_1.default.info(TAG, `connectAbilityResult: ${JSON.stringify(result)}`); _ohos_promptAction_1.showToast({ message: `connectAbilityResult: ${JSON.stringify(result)}` }); } // 将一个Ability与绑定的服务类型的Ability解绑。对应FA的ParticleAbilityTest中的disconnectAbility disconnectAbility() { this.context.disconnectAbility(connection, (error) => { // connection为connectAbility中的返回值 if (error) { Logger_1.default.info(TAG, `disconnectAbility result error: ${JSON.stringify(error)}`); } Logger_1.default.info(TAG, `disconnectAbility result success`); _ohos_promptAction_1.showToast({ message: `disconnectAbility result success` }); }); } // 启动指定Ability至前台或后台,同时获取其Caller通信接口,调用方可使用Caller与被启动的Ability进行通信。 startAbilityByCall() { this.context.startAbilityByCall({ bundleName: 'ohos.samples.stagemodel', abilityName: 'TestAbility', moduleName: 'entry' }).then((obj) => { caller = obj; Logger_1.default.info(TAG, `Caller GetCaller Get: ${JSON.stringify(caller)}`); _ohos_promptAction_1.showToast({ message: `Caller GetCaller Get:${JSON.stringify(caller)}` }); }).catch((error) => { Logger_1.default.error(TAG, `Caller GetCaller error: ${JSON.stringify(error)}`); _ohos_promptAction_1.showToast({ message: `Caller GetCaller error:${JSON.stringify(error)}` }); }); } } exports["default"] = ServiceExtContextController; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\ServiceExtContextPage.ets?entry": /*!*******************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\ServiceExtContextPage.ets?entry ***! \*******************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); let __generate__Id = 0; function generateId() { return "ServiceExtContextPage_" + ++__generate__Id; } /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ const PublicTitleBar_1 = __webpack_require__(/*! ./component/PublicTitleBar */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\PublicTitleBar.ets"); const ServiceExtContextController_1 = __importDefault(__webpack_require__(/*! ../feature/ServiceExtContextController */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\ServiceExtContextController.ts")); class ServiceExContextPage extends View { constructor(compilerAssignedUniqueChildId, parent, params, localStorage) { super(compilerAssignedUniqueChildId, parent, localStorage); this.serviceExContext = undefined; this.updateWithValueParams(params); } updateWithValueParams(params) { if (params.serviceExContext !== undefined) { this.serviceExContext = params.serviceExContext; } } aboutToBeDeleted() { SubscriberManager.Get().delete(this.id()); } render() { Column.create(); Column.width('100%'); Column.height('100%'); Column.backgroundColor('#F1F3F5'); Column.padding({ left: '3%', right: '3%' }); let earlierCreatedChild_2 = (this && this.findChildById) ? this.findChildById("2") : undefined; if (earlierCreatedChild_2 == undefined) { View.create(new PublicTitleBar_1.PublicTitleBar("2", this, { textName: { "id": 16777273, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" } })); } else { earlierCreatedChild_2.updateWithValueParams({ textName: { "id": 16777273, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" } }); if (!earlierCreatedChild_2.needsUpdate()) { earlierCreatedChild_2.markStatic(); } View.create(earlierCreatedChild_2); } Scroll.create(); Scroll.layoutWeight(1); Scroll.width('100%'); Column.create(); Column.width('100%'); Button.createWithLabel({ "id": 16777278, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.serviceExContext.startAbility(); }); Button.pop(); Button.createWithLabel({ "id": 16777283, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.serviceExContext.startServiceExtensionAbility(); }); Button.pop(); Button.createWithLabel({ "id": 16777284, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.serviceExContext.startServiceExtensionAbilityWithAccount(); }); Button.pop(); Button.createWithLabel({ "id": 16777285, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.serviceExContext.stopServiceExtensionAbility(); }); Button.pop(); Button.createWithLabel({ "id": 16777286, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.serviceExContext.stopServiceExtensionAbilityWithAccount(); }); Button.pop(); Button.createWithLabel({ "id": 16777288, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.serviceExContext.terminateSelf(); }); Button.pop(); Button.createWithLabel({ "id": 16777237, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.serviceExContext.connectAbility(); }); Button.pop(); Button.createWithLabel({ "id": 16777238, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.serviceExContext.connectAbilityWithAccount(); }); Button.pop(); Button.createWithLabel({ "id": 16777246, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.serviceExContext.disconnectAbility(); }); Button.pop(); Button.createWithLabel({ "id": 16777282, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.serviceExContext.startAbilityWithAccount(); }); Button.pop(); Button.createWithLabel({ "id": 16777279, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.serviceExContext.startAbilityByCall(); }); Button.pop(); Column.pop(); Scroll.pop(); Column.pop(); } aboutToAppear() { let context = getContext(this); this.serviceExContext = new ServiceExtContextController_1.default(context); } } function __Button__fancy(click) { Button.width('60%'); Button.height(40); Button.align(Alignment.Center); Button.margin({ top: 30 }); Button.onClick(click); } loadDocument(new ServiceExContextPage("1", undefined, {})); /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\PublicTitleBar.ets": /*!****************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\component\PublicTitleBar.ets ***! \****************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.PublicTitleBar = void 0; let __generate__Id = 0; function generateId() { return "PublicTitleBar_" + ++__generate__Id; } /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var _ohos_router_1 = globalThis.requireNapi('router') || (isSystemplugin('router', 'ohos') ? globalThis.ohosplugin.router : isSystemplugin('router', 'system') ? globalThis.systemplugin.router : undefined); class PublicTitleBar extends View { constructor(compilerAssignedUniqueChildId, parent, params, localStorage) { super(compilerAssignedUniqueChildId, parent, localStorage); this.textName = undefined; this.updateWithValueParams(params); } updateWithValueParams(params) { if (params.textName !== undefined) { this.textName = params.textName; } } aboutToBeDeleted() { SubscriberManager.Get().delete(this.id()); } render() { Row.create(); Row.height('8%'); Row.width('100%'); Row.padding({ left: 15, right: 15 }); Image.create({ "id": 16777295, "type": 20000, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); Image.width(32); Image.height(32); Image.onClick(() => { _ohos_router_1.back(); }); Text.create(this.textName); Text.fontSize(24); Text.margin({ left: 80 }); Text.pop(); Row.pop(); } } exports.PublicTitleBar = PublicTitleBar; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts": /*!********************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\util\Logger.ts ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_hilog_1 = globalThis.requireNapi('hilog') || (isSystemplugin('hilog', 'ohos') ? globalThis.ohosplugin.hilog : isSystemplugin('hilog', 'system') ? globalThis.systemplugin.hilog : undefined); class Logger { constructor(prefix) { this.domain = 0xFF00; this.prefix = ''; this.format = '%{public}s, %{public}s'; this.prefix = prefix; this.domain = 0xFF00; } debug(...args) { _ohos_hilog_1.debug(this.domain, this.prefix, this.format, args); } info(...args) { _ohos_hilog_1.info(this.domain, this.prefix, this.format, args); } warn(...args) { _ohos_hilog_1.warn(this.domain, this.prefix, this.format, args); } error(...args) { _ohos_hilog_1.error(this.domain, this.prefix, this.format, args); } } exports["default"] = new Logger('[Sample_StageModel]'); /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ var commonCachedModule = globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] ? globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId]: null; /******/ if (commonCachedModule) { return commonCachedModule.exports; } /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ function isCommonModue(moduleId) { /******/ if (globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"]) { /******/ const length = globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"].length; /******/ switch (length) { /******/ case 1: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId]; /******/ case 2: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId] || /******/ globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][1][1][moduleId]; /******/ } /******/ } /******/ return undefined; /******/ } /******/ if (globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] && String(moduleId).indexOf("?name=") < 0 && isCommonModue(moduleId)) { /******/ globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId] = module; /******/ } /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = __webpack_require__("E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\ServiceExtContextPage.ets?entry"); /******/ _1e36f0fd2df677c57b79e15aad3634be = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=ServiceExtContextPage.js.mapPK !:SR1'1'&ets/pages/ServiceExtContextPage.js.map{"version":3,"file":"./pages/ServiceExtContextPage.js","mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;GAaG;;;;;AAEH,4EAAuC;AACvC,2LAAmC;AAEnC,MAAM,GAAG,GAAW,6BAA6B;AACjD,MAAM,SAAS,GAAG,GAAG;AAErB,IAAI,MAAM,GAAG,SAAS;AACtB,IAAI,UAAU,GAAG,CAAC;AAClB,IAAI,WAAW,GAAG;IAChB,YAAY,EAAE,yBAAyB;IACvC,aAAa,EAAE,aAAa;CAC7B;AACD,IAAI,IAAI,GAAG;IACT,UAAU,EAAE,yB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AG,IAAW;QACjB,qBAAK,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM;IAClD,CAAC;IAED,IAAI,CAAC,GAAG,IAAW;QACjB,qBAAK,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM;IAClD,CAAC;IAED,KAAK,CAAC,GAAG,IAAW;QAClB,qBAAK,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM;IACnD,CAAC;CACF;AAED,qBAAe,IAAI,MAAM,CAAC,qBAAqB,CAAC;;;;;;;UC5ChD;UACA;;UAEA;UACA;UACA;UACA,2BAA2B;UAC3B;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;UACA;;;;UEvCA;UACA;UACA;UACA","sources":["webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\ServiceExtContextController.ts","webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\ServiceExtContextPage.ets","webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\PublicTitleBar.ets","webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts","webpack:///webpack/bootstrap","webpack:///webpack/before-startup","webpack:///webpack/startup","webpack:///webpack/after-startup"],"names":[],"sourceRoot":""}PK !:Gh||ets/pages/TestPage.abcPANDAg& |H< XLX#HIm~ k H H|-<<#m"(.Qal~ H k ~ 'L_ESTypeAnnotation; .#1#.#2#message.TestPage.generateId.message.render1 100% Bold Center ColumnFlexAlignFontWeightGet-ObservedPropertySimplePull up SuccessRow#SubscriberManagerTestPage_ Text ViewC_1e36f0fd2df677c57b79e15aad3634be__generate__Id__message!aboutToBeDeleted create deletefontSizefontWeightget heightidjustifyContentloadDocumentmessagepopprototype renderset+updateWithValueParamsuse strict width3L_ESSlotNumberAnnotation;@'L_ESTypeInfoRecord;#1#L_GLOBAL; h> D  ^ I \   la )4funcObjany0newTargetTestPagegenerateId 0this'__webpack_exports__E:/Projects/DevEco/applications_app_samples/ability/StageModel/entry/build/default/intermediates/assets_jsbundle/default/ets/pages/TestPage_.js#2#message this4newTargetnewValue params;compilerAssignedUniqueChildIdlocalStorage parentfunc_main_0var _1e36f0fd2df677c57b79e15aad3634be; /******/ (() => { // webpackBootstrap /******/ "use strict"; var __webpack_exports__ = {}; /*!******************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\TestPage.ets?entry ***! \******************************************************************************************************************/ let __generate__Id = 0; function generateId() { return "TestPage_" + ++__generate__Id; } class TestPage extends View { constructor(compilerAssignedUniqueChildId, parent, params, localStorage) { super(compilerAssignedUniqueChildId, parent, localStorage); this.__message = new ObservedPropertySimple('Pull up Success', this, "message"); this.updateWithValueParams(params); } updateWithValueParams(params) { if (params.message !== undefined) { this.message = params.message; } } aboutToBeDeleted() { this.__message.aboutToBeDeleted(); SubscriberManager.Get().delete(this.id()); } get message() { return this.__message.get(); } set message(newValue) { this.__message.set(newValue); } render() { Row.create(); Row.height('100%'); Row.width('100%'); Column.create(); Column.width('100%'); Column.height('100%'); Column.justifyContent(FlexAlign.Center); Text.create(this.message); Text.fontSize(30); Text.fontWeight(FontWeight.Bold); Text.pop(); Column.pop(); Row.pop(); } } loadDocument(new TestPage("1", undefined, {})); _1e36f0fd2df677c57b79e15aad3634be = __webpack_exports__; /******/ })() ; //# sourceMappingURL=TestPage.js.map] lB Q nhSlotNumber 7 7 7 7 7 7 I7 7+DDE3'aa>"aba`=?a 5&* aa`Ba >a a ` 4(a  >a a ` 4%a  ` 4)z `a? a`a>a a a  a`* `e'DDDD`a`Ba`B a`a`.e wDDDEEEE`a`a`a `a 2a``a`a?a > a `a >a  C`a ` B!a`a `. `dVDDD`a`Ba`Ba`-? a`Ba`- a`B a`a`B a`-a`.e ,DP`=`=3$a`)e =DDD> a<a>a`a`!a<a>a``a`= d DpDD`a`Ba`Ba`-dDpDD? a`Ba`-? a`Ba>a`.? a`B #a>a`. ?a`Ba`-?a`B#a>a`.?a`Ba>a`.?a`Ba?!a`B"a`.$?& a`B'a`a`B)a`.+?- a`B.aba`.0?2 a`B3a?5a`B6a`.8?: a`B;a`-=??a`B@a`-B?D a`BEa`-Ge/DpDDD`a`Ba'$Q`a`a`BCe  >  3  2                          ]  w    qqnn k%   * $    "    M             \  g ^ O  -54GM#      ' l            "            k  k  k  k  k  k  k  k<  #     k  Z '     IPK !:Vllets/pages/TestPage.jsvar _1e36f0fd2df677c57b79e15aad3634be; /******/ (() => { // webpackBootstrap /******/ "use strict"; var __webpack_exports__ = {}; /*!******************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\TestPage.ets?entry ***! \******************************************************************************************************************/ let __generate__Id = 0; function generateId() { return "TestPage_" + ++__generate__Id; } class TestPage extends View { constructor(compilerAssignedUniqueChildId, parent, params, localStorage) { super(compilerAssignedUniqueChildId, parent, localStorage); this.__message = new ObservedPropertySimple('Pull up Success', this, "message"); this.updateWithValueParams(params); } updateWithValueParams(params) { if (params.message !== undefined) { this.message = params.message; } } aboutToBeDeleted() { this.__message.aboutToBeDeleted(); SubscriberManager.Get().delete(this.id()); } get message() { return this.__message.get(); } set message(newValue) { this.__message.set(newValue); } render() { Row.create(); Row.height('100%'); Row.width('100%'); Column.create(); Column.width('100%'); Column.height('100%'); Column.justifyContent(FlexAlign.Center); Text.create(this.message); Text.fontSize(30); Text.fontWeight(FontWeight.Bold); Text.pop(); Column.pop(); Row.pop(); } } loadDocument(new TestPage("1", undefined, {})); _1e36f0fd2df677c57b79e15aad3634be = __webpack_exports__; /******/ })() ; //# sourceMappingURL=TestPage.js.mapPK !:Qkets/pages/TestPage.js.map{"version":3,"file":"./pages/TestPage.js","mappings":";;;;;;;;;;;;MAiBO,QAAQ;IAFf;;oDAG2B,iBAAiB;;KAlB5C;;;;;;;;;;QAkBS,OAAO;;;QAAP,OAAO;;;IAEd;QACE,GAAG,UAWW;QAXd,GAAG,CAUF,MAAM,CAAC,MAAM;QAVd,GAAG,CAWF,KAAK,CAAC,MAAM;QAVX,MAAM,UAO2B;QAPjC,MAAM,CAKL,KAAK,CAAC,MAAM;QALb,MAAM,CAML,MAAM,CAAC,MAAM;QANd,MAAM,CAOL,cAAc,CAAC,SAAS,CAAC,MAAM;QAN9B,IAAI,QAAC,IAAI,CAAC,OAAO,EAEa;QAF9B,IAAI,CACD,QAAQ,CAAC,EAAE;QADd,IAAI,CAED,UAAU,CAAC,UAAU,CAAC,IAAI;QAF7B,IAAI,OAE0B;QAHhC,MAAM,OAO2B;QARnC,GAAG,OAWW;KACf","sources":["webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\TestPage.ets"],"names":[],"sourceRoot":""}PK !:x؉؉ets/pages/WindowPage.abcPANDAq.؉<h*Lm  \+\\[[y[I[3[[[Z\ZZsZC\XYhZ]Z[Z,ZYXXY%YXYX8X [~XYYX>[CXv\YNX-X؉$m ),25:>FU`hpxW1[=l   # 5 I V k      . 5 > N V ^ e n }    ) / ; D M U Z b j u    H O W d 8T p < X t  ]e&-X8XCXNX~XXXXXX%YXYYYYYYY,Z]ZhZsZZZZZ[ [[3[>[I[y[[[[\+\C\v\\\T<LN'L_ESTypeAnnotation;-%{public}s, %{public}s .#1# .#10# .#11# .#12# .#13# .#14#.#15#generateId .#19# .#2# .#20# .#21# .#3# .#4# .#5# .#6# .#7# .#8# .#9#.Logger.PublicTitleBar#.WindowController.WindowPage!.__Button__fancy).__webpack_require__.generateId.isCommonModue1 100%260%8% ?name=AUTO_ROTATIONAlignment Button Center ColumnE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\feature\WindowController.tsE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\WindowPage.ets?entryE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\component\PublicTitleBar.etsE:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\util\Logger.tsQFailed to obtain the top window. Cause: [Failed to set the window orientation. Cause: Get Image JSONLogger_1 ObjectOrientationPublicTitleBarPublicTitleBar_!PublicTitleBar_1Row Scroll String#SubscriberManagerKSucceeded in obtaining the top window[Succeeded in obtaining the top window. Data: 9Succeeded in setWakeUpScreenISucceeded in setWakeUpScreen. Data: WSucceeded in setting the window orientationgSucceeded in setting the window orientation. Data: TAG Text View!WindowController%WindowController_1WindowPage_'[Sample_StageModel]C_1e36f0fd2df677c57b79e15aad3634beq__common_module_cache___1e36f0fd2df677c57b79e15aad3634be__esModule__generate__Id__importDefault align back call catch code createcreateWithLabel debugdefaultdefineProperty delete domain errorexportsfindChildByIdfontSize formatgetContextgetTopWindow height hilogidindexOf infoisSystempluginlayoutWeight lengthloadDocument marginmarkStaticmessageneedsUpdate ohosohospluginonClickpadding paramspop prefix promptprototyperequireNapi router/setPreferredOrientationsetWakeUpScreenshowToaststringify systemsystemplugintextName then+updateWithValueParamsuse strict warn[webpackChunk_1e36f0fd2df677c57b79e15aad3634be width windowwindowClasswindows3L_ESSlotNumberAnnotation;@'L_ESTypeInfoRecord;#1#L_GLOBAL;( ^Zv}]Icz]lf|]fu}]5hX~]i~ ^jz^jH&^k]Q_v]_w]_)w]_w]@awx]-cy]e{]:fd|] p^ u4^. o„^^ o^lP^Wr^auy]lM^ Epk^!p7] p]lq^PKax^jlɁ3^TZmZ^ \u]# l%@^Jot^mԃg^{Jo yt^ u^ t^`ax^4funcObjany0newTarget'__webpack_exports__ 0thisE:/Projects/DevEco/applications_app_samples/ability/StageModel/entry/build/default/intermediates/assets_jsbundle/default/ets/pages/WindowPage_.js #10# #11# #12# #13# thisgenerateId4newTarget/__unused_webpack_module #14#mod#15#generateId3#16#updateWithValueParams)#17#aboutToBeDeleted#18#render #19##2#'__webpack_require__ #20# Logger #21##3##4#err wakeUp data#5##6##7##8#WindowPage#9#;compilerAssignedUniqueChildIdlocalStorage parent__Button__fancy clickisCommonModue modulecachedModule%commonCachedModulemoduleId!aboutToBeDeleted argsfunc_main_0var _1e36f0fd2df677c57b79e15aad3634be; /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\WindowController.ts": /*!*********************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\feature\WindowController.ts ***! \*********************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_prompt_1 = globalThis.requireNapi('prompt') || (isSystemplugin('prompt', 'ohos') ? globalThis.ohosplugin.prompt : isSystemplugin('prompt', 'system') ? globalThis.systemplugin.prompt : undefined); var _ohos_window_1 = globalThis.requireNapi('window') || (isSystemplugin('window', 'ohos') ? globalThis.ohosplugin.window : isSystemplugin('window', 'system') ? globalThis.systemplugin.window : undefined); const Logger_1 = __importDefault(__webpack_require__(/*! ../util/Logger */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts")); const TAG = 'WindowController'; let windowClass = null; class WindowController { // 窗口唤醒屏幕,对应FA的setWakeUpScreen() setWakeUpScreen(context) { _ohos_window_1.getTopWindow(context, (err, data) => { if (err.code) { Logger_1.default.info(TAG, `Failed to obtain the top window. Cause: ${JSON.stringify(err)}`); _ohos_prompt_1.showToast({ message: `Failed to obtain the top window. Cause: ${JSON.stringify(err)}` }); return; } windowClass = data; const wakeUp = true; windowClass.setWakeUpScreen(wakeUp); Logger_1.default.info(TAG, `Succeeded in setWakeUpScreen. Data: ${JSON.stringify(data)}`); _ohos_prompt_1.showToast({ message: `Succeeded in setWakeUpScreen` }); }); } // 获取当前应用内最后显示的窗口,使用callback异步回调。对应FA的getWindow getTopWindow(context) { _ohos_window_1.getTopWindow(context, (err, data) => { if (err.code) { Logger_1.default.info(TAG, `Failed to obtain the top window. Cause: ${JSON.stringify(err)}`); _ohos_prompt_1.showToast({ message: `Failed to obtain the top window. Cause: ${JSON.stringify(err)}` }); return; } Logger_1.default.info(TAG, `Succeeded in obtaining the top window. Data: ${JSON.stringify(data)}`); _ohos_prompt_1.showToast({ message: `Succeeded in obtaining the top window` }); }); } // 设置当前能力的显示方向,对应FA模型的setDisplayOrientation() setPreferredOrientation() { let orientation = _ohos_window_1.Orientation.AUTO_ROTATION; if (windowClass === null) { return; } let promise = windowClass.setPreferredOrientation(orientation); promise.then((data) => { Logger_1.default.info(TAG, `Succeeded in setting the window orientation. Data: ${JSON.stringify(data)}`); _ohos_prompt_1.showToast({ message: `Succeeded in setting the window orientation` }); }).catch((error) => { Logger_1.default.error(TAG, `Failed to set the window orientation. Cause: ${JSON.stringify(error)}`); _ohos_prompt_1.showToast({ message: `Failed to set the window orientation. Cause: ${JSON.stringify(error)}` }); }); } } exports["default"] = WindowController; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\WindowPage.ets?entry": /*!********************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\WindowPage.ets?entry ***! \********************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); let __generate__Id = 0; function generateId() { return "WindowPage_" + ++__generate__Id; } /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ const WindowController_1 = __importDefault(__webpack_require__(/*! ../feature/WindowController */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\WindowController.ts")); const PublicTitleBar_1 = __webpack_require__(/*! ./component/PublicTitleBar */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\PublicTitleBar.ets"); class WindowPage extends View { constructor(compilerAssignedUniqueChildId, parent, params, localStorage) { super(compilerAssignedUniqueChildId, parent, localStorage); this.windows = new WindowController_1.default(); this.updateWithValueParams(params); } updateWithValueParams(params) { if (params.windows !== undefined) { this.windows = params.windows; } } aboutToBeDeleted() { SubscriberManager.Get().delete(this.id()); } render() { Column.create(); let earlierCreatedChild_2 = (this && this.findChildById) ? this.findChildById("2") : undefined; if (earlierCreatedChild_2 == undefined) { View.create(new PublicTitleBar_1.PublicTitleBar("2", this, { textName: { "id": 16777292, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" } })); } else { earlierCreatedChild_2.updateWithValueParams({ textName: { "id": 16777292, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" } }); if (!earlierCreatedChild_2.needsUpdate()) { earlierCreatedChild_2.markStatic(); } View.create(earlierCreatedChild_2); } Scroll.create(); Scroll.width('100%'); Scroll.layoutWeight(1); Column.create(); Column.width('100%'); Button.createWithLabel({ "id": 16777276, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.windows.setWakeUpScreen(getContext(this)); }); Button.pop(); Button.createWithLabel({ "id": 16777275, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.windows.setPreferredOrientation(); }); Button.pop(); Button.createWithLabel({ "id": 16777259, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.windows.getTopWindow(getContext(this)); }); Button.pop(); Column.pop(); Scroll.pop(); Column.pop(); } } function __Button__fancy(click) { Button.width('60%'); Button.height(40); Button.align(Alignment.Center); Button.margin({ top: 30 }); Button.onClick(click); } loadDocument(new WindowPage("1", undefined, {})); /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\PublicTitleBar.ets": /*!****************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\component\PublicTitleBar.ets ***! \****************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.PublicTitleBar = void 0; let __generate__Id = 0; function generateId() { return "PublicTitleBar_" + ++__generate__Id; } /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var _ohos_router_1 = globalThis.requireNapi('router') || (isSystemplugin('router', 'ohos') ? globalThis.ohosplugin.router : isSystemplugin('router', 'system') ? globalThis.systemplugin.router : undefined); class PublicTitleBar extends View { constructor(compilerAssignedUniqueChildId, parent, params, localStorage) { super(compilerAssignedUniqueChildId, parent, localStorage); this.textName = undefined; this.updateWithValueParams(params); } updateWithValueParams(params) { if (params.textName !== undefined) { this.textName = params.textName; } } aboutToBeDeleted() { SubscriberManager.Get().delete(this.id()); } render() { Row.create(); Row.height('8%'); Row.width('100%'); Row.padding({ left: 15, right: 15 }); Image.create({ "id": 16777295, "type": 20000, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); Image.width(32); Image.height(32); Image.onClick(() => { _ohos_router_1.back(); }); Text.create(this.textName); Text.fontSize(24); Text.margin({ left: 80 }); Text.pop(); Row.pop(); } } exports.PublicTitleBar = PublicTitleBar; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts": /*!********************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\util\Logger.ts ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_hilog_1 = globalThis.requireNapi('hilog') || (isSystemplugin('hilog', 'ohos') ? globalThis.ohosplugin.hilog : isSystemplugin('hilog', 'system') ? globalThis.systemplugin.hilog : undefined); class Logger { constructor(prefix) { this.domain = 0xFF00; this.prefix = ''; this.format = '%{public}s, %{public}s'; this.prefix = prefix; this.domain = 0xFF00; } debug(...args) { _ohos_hilog_1.debug(this.domain, this.prefix, this.format, args); } info(...args) { _ohos_hilog_1.info(this.domain, this.prefix, this.format, args); } warn(...args) { _ohos_hilog_1.warn(this.domain, this.prefix, this.format, args); } error(...args) { _ohos_hilog_1.error(this.domain, this.prefix, this.format, args); } } exports["default"] = new Logger('[Sample_StageModel]'); /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ var commonCachedModule = globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] ? globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId]: null; /******/ if (commonCachedModule) { return commonCachedModule.exports; } /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ function isCommonModue(moduleId) { /******/ if (globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"]) { /******/ const length = globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"].length; /******/ switch (length) { /******/ case 1: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId]; /******/ case 2: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId] || /******/ globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][1][1][moduleId]; /******/ } /******/ } /******/ return undefined; /******/ } /******/ if (globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] && String(moduleId).indexOf("?name=") < 0 && isCommonModue(moduleId)) { /******/ globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId] = module; /******/ } /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = __webpack_require__("E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\WindowPage.ets?entry"); /******/ _1e36f0fd2df677c57b79e15aad3634be = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=WindowPage.js.mapcontext render+earlierCreatedChild_2promiseorientatione 5 \   WJ   \\  L\'M \\\\  L\'M \\\\ <\'M \\\\ ;\'M \\\\\ +\'M \\\\ 5 \  y W/  5 T   .      ^     5 \ B     ] ]W xW&]5]O] d]j] O\ NM \\\\d]P 5 value_ohos_router_1top typebundleName/ohos.samples.stagemodelmoduleName entry_ohos_window_1_ohos_prompt_1_ohos_hilog_11__webpack_module_cache__'__webpack_modules__ left rightSlotNumberq]7q] 7q]7q]$7q]J7q]7q]67q]"7q]7q]57q]17q]7q]7q]7q]7q]7q] 7q]7q]/7q] 7q]7q] 7q] 7q]7q]7q]7~DpDDa`=aa`=3a`= >fa3u 3}3q 3 v `a`=a`=< a>a`*a`-e2DDD<a`Bla`B^a?Ca<a`*a`.e DpDD<a`Bla`B]a`-e2DDD<a`Bla`BDa?Ca<a`*a`.eDDEEEa`=a3sa`a $Q`a ` B1M` a #Q 3rM` a?a ` B;a `a >/a a ` a ` 0 `a bC  ba ` =ma ` B [a >\a ` . a #Q]?Ja >\a >Ra ` + $Qma ` BSa ` B\M/?Ja >\a >aa ` + $Qma ` Bba ` B\MM` a ` =?(a 5 a a ` B Za ` a`a `C" e.D`DqDD`$Q`a`B/$Q`Ma`z:`d =DDD>a<a>0a`a`!a<a>0a``a`= d/DpDDD`a`Bca'$Q`a`a`BcCceD` =` =?a`B7a`-?a`BEa>a`.? a`B ia>a`. ?a`BUaa`a`.?a`B7aaazV`a`.?a`Biab a`.!?#a`B$Eab a`.&?(a`B)Ta3+ta`.,?.'a`B/7a<a`B1ca`.3?5'a`B6Aaba`.8?:'a`B;Na=a`a`.>?@'a`BAWa`-C?Ea`BFWa`-HeD`DqD<a`B3a`-eDDEEEEa`=a`=0a`a $Q`a ` B1M` a #Q 3xM` a?a ` B;a `a >/a a ` a ` 0 ma ` B [a >Ya ` . a #Q]? Ja >Ya >Ra ` + $Qma ` BSa ` BYM/?Ja >Ya >aa ` + $Qma ` Bba ` BYMM` a ` =0ma ` B >ja ` . a #Q]?Ja >ja >Ra ` + $Qma ` B"Sa ` B$jM/?&Ja >ja >aa ` +' $Qma ` B)ba ` B+jMM` a ` =`a `a >a ` *- a ` */ a ` =>)a ` = a ` =@pa 51 a a ` B2Za ` a`a >:a `84 e DDDEEa`=a`a $Q`a ` B1M` a#Q 3wM`a?a ` B;a`a >/a a ` a `0 ma ` B [a >Fa ` . a#Q]? Ja >Fa >Ra ` + $Qma ` BSa ` BFM/?Ja >Fa >aa ` + $Qma ` Bba ` BFMM`a`=pa 5 aa `BZa `a`a>:a `a >,a  8  e.D`DqDD`$Q`a`B/$Q`Ma`z:`d.D`DqDD`$Q`a`B/$Q`Ma`z:`dDDEEE`a`B6$<a >a  ` a ` B:a`BIa&a  ` a >a ?a ` B`a `a ` . a > a `/  <1a`B_aa >a ?a ` B`a `a ` .  a >  zP ` a `. e`aka  ``a`=Aaka  ` a`B^a`a `. <a >a  ` a ` B!:a`B#Ia&a  ` a >#a ?%a ` B&`a `a ` .( * a > + a `/, <1a`B._a0a >"z1P ` a `.3 e DDDEE`a`B6$<a >a  ` a`B:a`BIa&a  `a>a ?a ` B`a `a ` . a > a `/  <1a`B_aa>a ?a ` B`a `a ` .  a >  zP`a`.e<a >a  ` a`B:a`BIa&a  `a>!a ?!a ` B"`a `a ` .$ & a > ' a `/( <1a`B*_a,a> z-P`a`./e DDDD<a>a  `a`B:a`BIa&a`a>%a?a ` B`a `a ` . a> a`/ <1a`B _aa>$zP`a`.e DDDD<a>a  `a`B:a`B>a&a`a>a?a ` B`a `a ` . a> a`/ <1a`B _aa>a?a ` B`a `a ` . a> zP`a`.eDEEEEE3a ` =03aa`a $Q`a ` B1M` a #Q 3~M` a?a ` B;a `a >/a a`a` 0 ba ` =`a `a > a ` * a ` * a ` =`a >a ` * a ` = ?(a 5 a a ` BZa ` a?Ma `a >a a a a ` * e.D`DqDD`$Q`a`B/$Q`Ma`z:`d`D`DqDD`a`abC=`a>CX`a>CB`a`CX`abC=`d [DDDDDEE`a`a`a `a 2a``a`aCc`a ` Bea`a `. `dDPDaDr`a`d yDDDEEEE`a`a`a `a 2a``a`a<a >*a  ` a ` B:a  Cl`a ` Bea`a `. `dDDDD? a`Bia>a`.? a`BEab(a`.? a`B 2a? a`B a`.? a`BNaa`a`.? a`BTa`a`.eDEEE3aaaama >.a ` 7 $Qma >.a ` 7 a `a ` 7 Ma`$Q `a ` B?d<a `a ` 7 a`a ' $Q `a ` B ?d<a `a a z? ` 8 ama >.a ` 7 a $Q2?a `a` *a ` BHa >a ` . a b M` $Q+`a `a ` * $Qma >.a ` 7 a `a `8! <a `a ` 7# a ` B%4a `a ` B'?a `a `a ` B)?a < a` 1+ `a ` B-?d=DDD?a`Ba`-a`B<a`a`BGa`- a`. e GDDDDa<a`B9a`a`B=a`a`BXa`a ` BBa `a `1e GDDDDa<a`B>a`a`B=a`a`BXa`a ` BBa `a `1e DP`=`=-3ma`)e =DDD>+a<a>0a`a`!a<a>0a``a`= d /D` =` =D<a`BDa`a3za`/e GDDDDa<a`BIa`a`B=a`a`BXa`a ` BBa `a `1e DDDEma>ha`7$ma>ha`7a`BLa`ab'$Qb'$Q:Nma >ha ` 7 a ba ` 7 aba ` 7 a`a`7dma >ha ` 7 a ba ` 7 a ba ` 7 a`a ` 7a#Q8ma >ha ` 7 a ba ` 7 a ba ` 7 a`a ` 7M`ddD`=`=? a`B7a`-<$Q(<a`B@$Q<a`B@a>a`. Ma`a $Qa? (a`B 7aa  ` a`Ba>a<a a a a zV ` zc ` a a`.Ny`a`Beaaa a z!V`z#c`a`.%`a`B'Qa`-)#QM$Q`a`B+Oa`--?/(a`B07a`a`.2?4a`B57a`-7?9a`B:ia>a`.<?>a`B?Kaba`.A?C a`BD7a`-F?H a`BIia>a`.K?M a`BN8aPaQazRV`a`.T<1a3Vna`*W?Y a`BZWa`-\?^ a`B_8aaabazcV`a`.e<1a3goa`*h?j a`BkWa`-m?o a`Bp8arasaztV`a`.v<1a3xpa`*y?{ a`B|Wa`-~ a`Wa`-a`Wa`- a`Wa`-e D` =` =<a`Ba`Baka`a($Qeka  `a`B]a`a`.a`a ` B da3 {a `. a`B5a3|a`.e /D` =` =D<a`BDa`a3ya`/e/DpDDD`a`Bla'$Q`a`a`BlCle GDDDDa<a`Bga`a`B=a`a`BXa`a ` BBa `a `1e  > p               /  O" """""""""""" $z$$~$}$)-$8$.       !"""""""""" )4)   """""""""" !"""""""""" &1&         1        \                     /        """"$""""""""$""$""$""  8-  - ;JT; ^:}} }""" "   1""""$""$""$""   % +8+#""""$""$"" !! (""""$""$""""   """"$""$""'    k  k  k    k  k  k  m  k  k  k;"""" >    """"""""""         1                      k                  k      k  k   /        """"$""$""$""%""""""""  8-  - ;JT; ^:}} } - ;JT; ^:}} }!K! "" 8        1                       /           """"$""$""$""""""%""   8-  , 9HQ9 [8yy y%""    1""""$""$""$""   % +8+           0""""$""$""$""   % +8+            z k       <  m0    /   k          z k <  v" """%""""""""%""%""(!&+VeV j+j+ )HWH \\)   ( !"'N]N c'c' %%             z k       <  m0           z k <  e" """""""""%""%"";!&+VeV j+j+ )HWH \\)  !"'WfW l'l' %%             z k <  9""""""""""%"" !"']l] r'r' %%             z k       <  E"""""""""""" !#(XgX n(n( %IXI __%         1            k     /               "$""$""$""%""""&""$"""""""  8- +b+O&""  =  ! , 1""""$""$""$""   % +8+  M   \  \  \  \   ` 8""""$""$""""{  M      \  g ^ B""""$""""&""$""&""&""-5#  """"$""$""   M       \  g ^ D""""$""""&""$""&""&""-5#    k  k  k  k  3""""$""$""&""             /  !    /  k  "   m                  >      N        m  " """$""$""&""&""'""'""'""$/$mxmm$, %7  1== Y`YrY~Y  T`  . >F V      """"$""$""',""""$""$""'""    ) 6 C,""""$""$""'""    ) 6 C l  '""""         #""""$""$""       """""": $-   /      ,""""$""$""'""    ( 5 B    >    / M  l  g ?          !                 Z    u" """$""$""'""*"",7, #%$$(3(d(g(j(!(3(d(g(j(!,!]!`!c!(!"            /  k              k   x  m     l   k  k  k    k  ^    k  ^    k  ^""""""%$- $C VC$] % <AGS|SG 8C8   H H H    /  k0    /     2""""""""  :  {""""""' $-    k  Z (""""$""$""""   ,""""$""$""'""    ( 5 B|̅vvN vRw0yyU{|}~:D˂5*%WPK !:rDDets/pages/WindowPage.jsvar _1e36f0fd2df677c57b79e15aad3634be; /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\WindowController.ts": /*!*********************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\feature\WindowController.ts ***! \*********************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_prompt_1 = globalThis.requireNapi('prompt') || (isSystemplugin('prompt', 'ohos') ? globalThis.ohosplugin.prompt : isSystemplugin('prompt', 'system') ? globalThis.systemplugin.prompt : undefined); var _ohos_window_1 = globalThis.requireNapi('window') || (isSystemplugin('window', 'ohos') ? globalThis.ohosplugin.window : isSystemplugin('window', 'system') ? globalThis.systemplugin.window : undefined); const Logger_1 = __importDefault(__webpack_require__(/*! ../util/Logger */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts")); const TAG = 'WindowController'; let windowClass = null; class WindowController { // 窗口唤醒屏幕,对应FA的setWakeUpScreen() setWakeUpScreen(context) { _ohos_window_1.getTopWindow(context, (err, data) => { if (err.code) { Logger_1.default.info(TAG, `Failed to obtain the top window. Cause: ${JSON.stringify(err)}`); _ohos_prompt_1.showToast({ message: `Failed to obtain the top window. Cause: ${JSON.stringify(err)}` }); return; } windowClass = data; const wakeUp = true; windowClass.setWakeUpScreen(wakeUp); Logger_1.default.info(TAG, `Succeeded in setWakeUpScreen. Data: ${JSON.stringify(data)}`); _ohos_prompt_1.showToast({ message: `Succeeded in setWakeUpScreen` }); }); } // 获取当前应用内最后显示的窗口,使用callback异步回调。对应FA的getWindow getTopWindow(context) { _ohos_window_1.getTopWindow(context, (err, data) => { if (err.code) { Logger_1.default.info(TAG, `Failed to obtain the top window. Cause: ${JSON.stringify(err)}`); _ohos_prompt_1.showToast({ message: `Failed to obtain the top window. Cause: ${JSON.stringify(err)}` }); return; } Logger_1.default.info(TAG, `Succeeded in obtaining the top window. Data: ${JSON.stringify(data)}`); _ohos_prompt_1.showToast({ message: `Succeeded in obtaining the top window` }); }); } // 设置当前能力的显示方向,对应FA模型的setDisplayOrientation() setPreferredOrientation() { let orientation = _ohos_window_1.Orientation.AUTO_ROTATION; if (windowClass === null) { return; } let promise = windowClass.setPreferredOrientation(orientation); promise.then((data) => { Logger_1.default.info(TAG, `Succeeded in setting the window orientation. Data: ${JSON.stringify(data)}`); _ohos_prompt_1.showToast({ message: `Succeeded in setting the window orientation` }); }).catch((error) => { Logger_1.default.error(TAG, `Failed to set the window orientation. Cause: ${JSON.stringify(error)}`); _ohos_prompt_1.showToast({ message: `Failed to set the window orientation. Cause: ${JSON.stringify(error)}` }); }); } } exports["default"] = WindowController; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\WindowPage.ets?entry": /*!********************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\WindowPage.ets?entry ***! \********************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); let __generate__Id = 0; function generateId() { return "WindowPage_" + ++__generate__Id; } /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ const WindowController_1 = __importDefault(__webpack_require__(/*! ../feature/WindowController */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\WindowController.ts")); const PublicTitleBar_1 = __webpack_require__(/*! ./component/PublicTitleBar */ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\PublicTitleBar.ets"); class WindowPage extends View { constructor(compilerAssignedUniqueChildId, parent, params, localStorage) { super(compilerAssignedUniqueChildId, parent, localStorage); this.windows = new WindowController_1.default(); this.updateWithValueParams(params); } updateWithValueParams(params) { if (params.windows !== undefined) { this.windows = params.windows; } } aboutToBeDeleted() { SubscriberManager.Get().delete(this.id()); } render() { Column.create(); let earlierCreatedChild_2 = (this && this.findChildById) ? this.findChildById("2") : undefined; if (earlierCreatedChild_2 == undefined) { View.create(new PublicTitleBar_1.PublicTitleBar("2", this, { textName: { "id": 16777292, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" } })); } else { earlierCreatedChild_2.updateWithValueParams({ textName: { "id": 16777292, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" } }); if (!earlierCreatedChild_2.needsUpdate()) { earlierCreatedChild_2.markStatic(); } View.create(earlierCreatedChild_2); } Scroll.create(); Scroll.width('100%'); Scroll.layoutWeight(1); Column.create(); Column.width('100%'); Button.createWithLabel({ "id": 16777276, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.windows.setWakeUpScreen(getContext(this)); }); Button.pop(); Button.createWithLabel({ "id": 16777275, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.windows.setPreferredOrientation(); }); Button.pop(); Button.createWithLabel({ "id": 16777259, "type": 10003, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); __Button__fancy(() => { this.windows.getTopWindow(getContext(this)); }); Button.pop(); Column.pop(); Scroll.pop(); Column.pop(); } } function __Button__fancy(click) { Button.width('60%'); Button.height(40); Button.align(Alignment.Center); Button.margin({ top: 30 }); Button.onClick(click); } loadDocument(new WindowPage("1", undefined, {})); /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\PublicTitleBar.ets": /*!****************************************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\pages\component\PublicTitleBar.ets ***! \****************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.PublicTitleBar = void 0; let __generate__Id = 0; function generateId() { return "PublicTitleBar_" + ++__generate__Id; } /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var _ohos_router_1 = globalThis.requireNapi('router') || (isSystemplugin('router', 'ohos') ? globalThis.ohosplugin.router : isSystemplugin('router', 'system') ? globalThis.systemplugin.router : undefined); class PublicTitleBar extends View { constructor(compilerAssignedUniqueChildId, parent, params, localStorage) { super(compilerAssignedUniqueChildId, parent, localStorage); this.textName = undefined; this.updateWithValueParams(params); } updateWithValueParams(params) { if (params.textName !== undefined) { this.textName = params.textName; } } aboutToBeDeleted() { SubscriberManager.Get().delete(this.id()); } render() { Row.create(); Row.height('8%'); Row.width('100%'); Row.padding({ left: 15, right: 15 }); Image.create({ "id": 16777295, "type": 20000, params: [], "bundleName": "ohos.samples.stagemodel", "moduleName": "entry" }); Image.width(32); Image.height(32); Image.onClick(() => { _ohos_router_1.back(); }); Text.create(this.textName); Text.fontSize(24); Text.margin({ left: 80 }); Text.pop(); Row.pop(); } } exports.PublicTitleBar = PublicTitleBar; /***/ }), /***/ "E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts": /*!********************************************************************************************************!*\ !*** E:\Projects\DevEco\applications_app_samples\ability\StageModel\entry\src\main\ets\util\Logger.ts ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); var _ohos_hilog_1 = globalThis.requireNapi('hilog') || (isSystemplugin('hilog', 'ohos') ? globalThis.ohosplugin.hilog : isSystemplugin('hilog', 'system') ? globalThis.systemplugin.hilog : undefined); class Logger { constructor(prefix) { this.domain = 0xFF00; this.prefix = ''; this.format = '%{public}s, %{public}s'; this.prefix = prefix; this.domain = 0xFF00; } debug(...args) { _ohos_hilog_1.debug(this.domain, this.prefix, this.format, args); } info(...args) { _ohos_hilog_1.info(this.domain, this.prefix, this.format, args); } warn(...args) { _ohos_hilog_1.warn(this.domain, this.prefix, this.format, args); } error(...args) { _ohos_hilog_1.error(this.domain, this.prefix, this.format, args); } } exports["default"] = new Logger('[Sample_StageModel]'); /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ var commonCachedModule = globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] ? globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId]: null; /******/ if (commonCachedModule) { return commonCachedModule.exports; } /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ function isCommonModue(moduleId) { /******/ if (globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"]) { /******/ const length = globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"].length; /******/ switch (length) { /******/ case 1: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId]; /******/ case 2: /******/ return globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][0][1][moduleId] || /******/ globalThis["webpackChunk_1e36f0fd2df677c57b79e15aad3634be"][1][1][moduleId]; /******/ } /******/ } /******/ return undefined; /******/ } /******/ if (globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"] && String(moduleId).indexOf("?name=") < 0 && isCommonModue(moduleId)) { /******/ globalThis["__common_module_cache___1e36f0fd2df677c57b79e15aad3634be"][moduleId] = module; /******/ } /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = __webpack_require__("E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\WindowPage.ets?entry"); /******/ _1e36f0fd2df677c57b79e15aad3634be = __webpack_exports__; /******/ /******/ })() ; //# sourceMappingURL=WindowPage.js.mapPK !:F33ets/pages/WindowPage.js.map{"version":3,"file":"./pages/WindowPage.js","mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;GAaG;;;;;AAEH,gEAAiC;AACjC,gEAAiC;AACjC,2LAAmC;AAEnC,MAAM,GAAG,GAAW,kBAAkB;AAEtC,IAAI,WAAW,GAAG,IAAI;AAEtB,MAAqB,gBAAgB;IAEnC,gCAAgC;IAChC,eAAe,CAAC,OAAO;QACrB,sBAAM,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE;YACjC,IAAI,GAAG,CAAC,IAAI,EAAE;g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CAAC,MAAM,GAAG,MAAM;IACtB,CAAC;IAED,KAAK,CAAC,GAAG,IAAW;QAClB,qBAAK,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM;IACnD,CAAC;IAED,IAAI,CAAC,GAAG,IAAW;QACjB,qBAAK,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM;IAClD,CAAC;IAED,IAAI,CAAC,GAAG,IAAW;QACjB,qBAAK,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM;IAClD,CAAC;IAED,KAAK,CAAC,GAAG,IAAW;QAClB,qBAAK,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM;IACnD,CAAC;CACF;AAED,qBAAe,IAAI,MAAM,CAAC,qBAAqB,CAAC;;;;;;;UC5ChD;UACA;;UAEA;UACA;UACA;UACA,2BAA2B;UAC3B;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;UACA;;;;UEvCA;UACA;UACA;UACA","sources":["webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\feature\\WindowController.ts","webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\WindowPage.ets","webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\pages\\component\\PublicTitleBar.ets","webpack:///E:\\Projects\\DevEco\\applications_app_samples\\ability\\StageModel\\entry\\src\\main\\ets\\util\\Logger.ts","webpack:///webpack/bootstrap","webpack:///webpack/before-startup","web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ГSՆ2΁ \is7Mۚ^]@_[%DyݒMS= H=Ekuu}'@ :W l]rbjv!E6=H=DI:J ܍sS!PY@ut^ J\f*\u2T8 .ݷ\Ш?$xBikq=y** 䬎eu  iPV@lhTlAޕvb!@5 ZDW;ډ Uμ&;[oQ H$JP_r.{|ͭ"I{O뽓H澀sv_HU" W^(-Y $&{:h<&A_+j e$~[h[{W c uyM {]k$),k?@AYBCD:EFG;H\IJKL2MUNsOPQRYSTIDSS/$3:IDSS/Q3k  StageModel app_name=(entry/resources/base/media/app_icon.png app_iconE hap sample empty providerDataShareExtensionAbility_desc2 label DataShareExtensionAbility_label)  descriptionMainAbility_desc)  StageModelMainAbility_label+  descriptionSecondAbility_desc& labelSecondAbility_label)  descriptionTestAbility_desc$ labelTestAbility_label7 AbilityAccessCtrlability_access_ctrl_page0 AbilityContextability_context_page%  abilityInfo ability_info- applicationInfoapplication_info areaarea) BookIntroduction: book_intro  BookName: book_name#  bundleName bundle_name Bundle bundle_page  cacheDir cache_dir configconfig+ connectAbilityconnect_abilityC connectAbilityWithAccountconnect_ability_with_account9 currentHapModuleInfocurrent_hap_module_info< DataShareExtAbilitydata_share_ext_ability_page3 DataShareHelperdata_share_helper_page%  databaseDir database_dir+ denormalizeUridenormalize_uri) descriptionIddescription_id  direction direction1 disconnectAbilitydisconnect_ability6 distributedFilesDirdistributed_files_dir#  entityType entity_type# ! description entry_desc " entryDir entry_dir # filesDir files_dir3 $form_descriptionform_FormAbility_desc. % form_labelform_FormAbility_label1 &FormExtContextform_ext_context_page, 'getAbilityInfoget_ability_info: (getApplicationContextget_application_context4 )getApplicationInfoget_application_info8 *getDispatcherVersionget_dispatcher_version( + getTopWindowget_top_window , StageModelindex) -isTerminatingis_terminating .namename /nono' 0 normalizeUrinormalize_uri' 1 notifyChangenotify_change 2offoff 3yesok 4onon+ 5preferencesDirpreferences_dir 6processprocessE 7requestPermissionsFromUserrequest_permissions_from_user- 8resourceManagerresource_manager< 9ServiceExtContextservice_extension_contextPage. :setMissionLabelset_mission_label> ;setPreferredOrientationset_preferred_orientation/ <setWakeUpScreenset_wake_up_screen! = stageMode stage_mode' > startAbilitystart_ability5 ?startAbilityByCallstart_ability_by_call: @startAbilityForResultstart_ability_forResultS A!startAbilityForResultWithAccount&start_ability_for_result_with_account? BstartAbilityWithAccountstart_ability_with_accountC CstartServiceExtAbility start_service_extension_ability[ D"startServiceExtAbilityWithAccount-start_service_extension_ability_with_accountA EstopServiceExtAbilitystop_service_extension_abilityY F!stopServiceExtAbilityWithAccount,stop_service_extension_ability_with_account GtempDir temp_dir) HterminateSelfterminate_self? IterminateSelfWithResultterminate_self_with_result, JDataShareExtensionAbilitytitle2 KverifyAccessTokenverify_access_token LWindow window_pageM#FFFFFFwhite3N#entry/resources/base/media/add.pngadd5O$entry/resources/base/media/back.pngback5P$entry/resources/base/media/book.pngbook9Q&entry/resources/base/media/delete.pngdelete5R$entry/resources/base/media/icon.pngiconFS.entry/resources/base/profile/form_config.json form_configDT-entry/resources/base/profile/main_pages.json main_pages /nono 3yesok /取消no 3确认okPK !:@rresources/base/media/add.pngPNG  IHDR``w8sRGBDeXIfMM*i``3_NBIDATxOeP$C֐P溘d X."AvoBt""@N&d(J\[ ;̩5bp5cg\dh:a pwE޸͊ [8N QRv9A?~ hЈmSV`a%$ hm ׽9qU7lWmDmڤYD8>#?m\ Ѥ "1] F~|u،XI-9\+o 0jVVM`X n9yo@cj:mШ2;uZ@hTRT:G+BP<Fi1&ͨڳFhet;mpjwiUZNt0%AV:%U']c]m4@+4+40"' \hY4n3OhsK"ρheM< _[]hv إyZiifhk>Ep>`! QMy+-Ztde XlNotiRK^V,,+r|u,sV[{n$U ;N7.|;F>VvzK>P oiﱮz-RB퀍Rt1JM,K6jgUnuV2F5[Z;.kV6mY@?h=yQ-lZd,Cy+Wo/>7שׂnKѼ}|F C.T wzH_luQ;d Ь|;@>tvҪ/Mj+{=D,_c>ZXj 5[_4BJlXQ'JR/z/Sf L5Z-C48!d>+ͼܺ^3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|Oј'Zw0 *H=g0d0wZw'1w>X' :*5z\-o#iY't0$$o]#R0J?yDuEpv0qOy֧+G0a0e=0 *H=0h1 0 UCN10U  OpenHarmony10U OpenHarmony Team1(0&UOpenHarmony Application Root CA0 210202121532Z 491231121532Z0c1 0 UCN10U  OpenHarmony10U OpenHarmony Team1#0!UOpenHarmony Application CA0v0*H=+"b!ǝ5ʤ_A%'tC'֓ 7~pX~pvR0Wڗ(6P›ј!`+-Uc0a0U#0:|Oј'Zw0U00U0Uۆ" K%{}-G0 *H=h0e0m^8t:h_6}fOHU߉hI1ow:rR&-XŖl;NrapYtg4;.1B0>0k0c1 0 UCN10U  OpenHarmony10U OpenHarmony Team1#0!UOpenHarmony Application CA7m0  `Hei0 *H  1  *H 0 *H  1 230109122441Z0/ *H  1" !1T2<I"O3-6 {eI0 *H=H0F! ഥ~+Ir}:b?@I)Ղ!kjdo'&|.Ak(S0 *H 01 0  `He0C *H 64( jSdb(d?/RJ5uڹ)U0D0ɠ80 *H=0h1 0 UCN10U  OpenHarmony10U OpenHarmony Team1(0&UOpenHarmony Application Root CA0 210202121418Z 491231121418Z0h1 0 UCN10U  OpenHarmony10U OpenHarmony Team1(0&UOpenHarmony Application Root CA0v0*H=+"bM6yk J(ocAmK{- vYY[@YGMGpB_T cG ޸_&r )QsYI~7GB0@0U00U0U:|Oј'Zw0 *H=g0d0wZw'1w>X' :*5z\-o#iY't0$$o]#R0J?yDuEpv0qOy֧+G0I0Π0 *H=0c1 0 UCN10U OpenHarmony10U OpenHarmony Team1#0!U OpenHarmony Application CA0 230109122440Z 240109122440Z0h1 0 UCN10U OpenHarmony10U OpenHarmony Team1(0&U OpenHarmony Application Release0Y0*H=*H=B&&hų5c#4 c>6@uJMl]-IXiW3bh]Xk0i0UQ03 @=A-3<-0 U00U0U% 0 +0 +[x0 0 *H=i0f11؁kT['-7/('⿇O18I'cMx,.†R>2KrVoEJd$a u0a0e=0 *H=0h1 0 UCN10U  OpenHarmony10U OpenHarmony Team1(0&UOpenHarmony Application Root CA0 210202121532Z 491231121532Z0c1 0 UCN10U  OpenHarmony10U OpenHarmony Team1#0!UOpenHarmony Application CA0v0*H=+"b!ǝ5ʤ_A%'tC'֓ 7~pX~pvR0Wڗ(6P›ј!`+-Uc0a0U#0:|Oј'Zw0U00U0Uۆ" K%{}-G0 *H=h0e0m^8t:h_6}fOHU߉hI1ow:rR&-XŖl;NrapYtg4;.1A0=0k0c1 0 UCN10U OpenHarmony10U OpenHarmony Team1#0!U OpenHarmony Application CA0  `Hei0 *H  1  *H 0 *H  1 230109122442Z0/ *H  1" _TߖqV()ǰFe; *?ȓH0 *H=G0E FF7a-uN3ak9!c) n&6л#ǬX:PK !:3-<<"ets/Application/MyAbilityStage.abcPK !:6!H<ets/Application/MyAbilityStage.jsPK !:bb%e[ets/Application/MyAbilityStage.js.mapPK !:;,``5 cets/DataShareExtensionAbility/DataShareExtAbility.abcPK !:ln.n.4$ets/DataShareExtensionAbility/DataShareExtAbility.jsPK !:698ets/DataShareExtensionAbility/DataShareExtAbility.js.mapPK !:J $ets/FormAbility/FormAbility.abcPK !:r$&ets/FormAbility/FormAbility.jsPK !:d_^"7ets/FormAbility/FormAbility.js.mapPK !:8Bv@@:ets/MainAbility/MainAbility.abcPK !:! L{ets/MainAbility/MainAbility.jsPK !:yS"-ets/MainAbility/MainAbility.js.mapPK !:_XhQhQ+ets/ServiceExtAbility/ServiceExtAbility.abcPK !:!='='*ets/ServiceExtAbility/ServiceExtAbility.jsPK !:m&{ .1ets/ServiceExtAbility/ServiceExtAbility.js.mapPK !:-KK+ets/TestAbility/TestAbility.abcPK !:h\U%U%wets/TestAbility/TestAbility.jsPK !:?w "ets/TestAbility/TestAbility.js.mapPK !:Ko#ets/pages/AbilityAccessCtrlPage.abcPK !:DAA"p*ets/pages/AbilityAccessCtrlPage.jsPK !:I'Y&7lets/pages/AbilityAccessCtrlPage.js.mapPK !:wL6L6 D}ets/pages/AbilityContextPage.abcPK !:||гets/pages/AbilityContextPage.jsPK !: Hw<w<#Lets/pages/AbilityContextPage.js.mapPK !:)a#88Gets/pages/BundlePage.abcPK !:,^rSrS0ets/pages/BundlePage.jsPK !:euEEbets/pages/BundlePage.js.mapPK !:d@@%ets/pages/DataShareExtAbilityPage.abcPK !:fY??$ets/pages/DataShareExtAbilityPage.jsPK !:==::(zets/pages/DataShareExtAbilityPage.js.mapPK !:dK!ݴets/pages/DataShareHelperPage.abcPK !:^78YY o ets/pages/DataShareHelperPage.jsPK !:nRF F $ ets/pages/DataShareHelperPage.js.mapPK !: Xyy ~ ets/pages/FormExtContextPage.abcPK !:<<d ets/pages/FormExtContextPage.jsPK !:#f#l ets/pages/FormExtContextPage.js.mapPK !: ~٘VVF ets/pages/Index.abcPK !:")) ets/pages/Index.jsPK !:w } } 2 ets/pages/Index.js.mapPK !:+epPP#; ets/pages/ServiceExtContextPage.abcPK !:U_:5ee"\ ets/pages/ServiceExtContextPage.jsPK !:SR1'1'&w ets/pages/ServiceExtContextPage.js.mapPK !:Gh|| ets/pages/TestPage.abcPK !:Vll ets/pages/TestPage.jsPK !:QkX ets/pages/TestPage.js.mapPK !:x؉؉' ets/pages/WindowPage.abcPK !:rDD8I ets/pages/WindowPage.jsPK !:F33 ets/pages/WindowPage.js.mapPK !:l`j js/common/qing.pngPK !:!߷ js/common/widget.pngPK !:Ϙ  js/i18n/en-US.jsonPK !:BԘ js/i18n/zh-CN.jsonPK !:k R js/widget/pages/index/index.jsonPK !: @I  module.jsonPK !:۔v 0 pack.infoPK !: resources.indexPK !:@r resources/base/media/add.pngPK !:.І!resources/base/media/app_icon.pngPK !:|11fresources/base/media/back.pngPK !:ɹVVresources/base/media/book.pngPK !:>wfff1resources/base/media/delete.pngPK !:.І Gresources/base/media/icon.pngPK !:BSNN'aresources/base/profile/form_config.jsonPK !:&bcresources/base/profile/main_pages.jsonPK@@{