123b3eb3cSopenharmony_ci/*
223b3eb3cSopenharmony_ci * Copyright (c) 2023 Huawei Device Co., Ltd.
323b3eb3cSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
423b3eb3cSopenharmony_ci * you may not use this file except in compliance with the License.
523b3eb3cSopenharmony_ci * You may obtain a copy of the License at
623b3eb3cSopenharmony_ci *
723b3eb3cSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
823b3eb3cSopenharmony_ci *
923b3eb3cSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
1023b3eb3cSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
1123b3eb3cSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1223b3eb3cSopenharmony_ci * See the License for the specific language governing permissions and
1323b3eb3cSopenharmony_ci * limitations under the License.
1423b3eb3cSopenharmony_ci */
1523b3eb3cSopenharmony_ciif (!("finalizeConstruction" in ViewPU.prototype)) {
1623b3eb3cSopenharmony_ci    Reflect.set(ViewPU.prototype, "finalizeConstruction", () => { });
1723b3eb3cSopenharmony_ci}
1823b3eb3cSopenharmony_ciconst LengthMetrics = requireNapi('arkui.node').LengthMetrics;
1923b3eb3cSopenharmony_ci
2023b3eb3cSopenharmony_ciexport var CounterType;
2123b3eb3cSopenharmony_ci(function (j21) {
2223b3eb3cSopenharmony_ci    j21[j21["LIST"] = 0] = "LIST";
2323b3eb3cSopenharmony_ci    j21[j21["COMPACT"] = 1] = "COMPACT";
2423b3eb3cSopenharmony_ci    j21[j21["INLINE"] = 2] = "INLINE";
2523b3eb3cSopenharmony_ci    j21[j21["INLINE_DATE"] = 3] = "INLINE_DATE";
2623b3eb3cSopenharmony_ci})(CounterType || (CounterType = {}));
2723b3eb3cSopenharmony_civar FocusText;
2823b3eb3cSopenharmony_ci(function (i21) {
2923b3eb3cSopenharmony_ci    i21[i21["NONE"] = 0] = "NONE";
3023b3eb3cSopenharmony_ci    i21[i21["TEXT1"] = 1] = "TEXT1";
3123b3eb3cSopenharmony_ci    i21[i21["TEXT2"] = 2] = "TEXT2";
3223b3eb3cSopenharmony_ci    i21[i21["TEXT3"] = 3] = "TEXT3";
3323b3eb3cSopenharmony_ci})(FocusText || (FocusText = {}));
3423b3eb3cSopenharmony_ci
3523b3eb3cSopenharmony_ciexport class CommonOptions {
3623b3eb3cSopenharmony_ci}
3723b3eb3cSopenharmony_ci
3823b3eb3cSopenharmony_ciexport class InlineStyleOptions extends CommonOptions {
3923b3eb3cSopenharmony_ci}
4023b3eb3cSopenharmony_ci
4123b3eb3cSopenharmony_ciexport class NumberStyleOptions extends InlineStyleOptions {
4223b3eb3cSopenharmony_ci}
4323b3eb3cSopenharmony_ci
4423b3eb3cSopenharmony_ciexport class DateData {
4523b3eb3cSopenharmony_ci    constructor(f21, g21, h21) {
4623b3eb3cSopenharmony_ci        this.year = f21;
4723b3eb3cSopenharmony_ci        this.month = g21;
4823b3eb3cSopenharmony_ci        this.day = h21;
4923b3eb3cSopenharmony_ci    }
5023b3eb3cSopenharmony_ci
5123b3eb3cSopenharmony_ci    toString() {
5223b3eb3cSopenharmony_ci        let c21 = this.year.toString() + '-';
5323b3eb3cSopenharmony_ci        let d21 = this.month < 10 ? '0' + this.month.toString() : this.month.toString();
5423b3eb3cSopenharmony_ci        c21 += d21 + '-';
5523b3eb3cSopenharmony_ci        let e21 = this.day < 10 ? '0' + this.day.toString() : this.day.toString();
5623b3eb3cSopenharmony_ci        c21 += e21;
5723b3eb3cSopenharmony_ci        return c21;
5823b3eb3cSopenharmony_ci    }
5923b3eb3cSopenharmony_ci}
6023b3eb3cSopenharmony_ci
6123b3eb3cSopenharmony_ciexport class DateStyleOptions extends CommonOptions {
6223b3eb3cSopenharmony_ci}
6323b3eb3cSopenharmony_ci
6423b3eb3cSopenharmony_ciexport class CounterOptions {
6523b3eb3cSopenharmony_ci}
6623b3eb3cSopenharmony_ci
6723b3eb3cSopenharmony_ciclass CounterResource {
6823b3eb3cSopenharmony_ci}
6923b3eb3cSopenharmony_ci
7023b3eb3cSopenharmony_ciCounterResource.BUTTON_BACKGROUD_COLOR = {
7123b3eb3cSopenharmony_ci    "id": -1,
7223b3eb3cSopenharmony_ci    "type": 10001,
7323b3eb3cSopenharmony_ci    params: ['sys.color.ohos_id_color_button_normal'],
7423b3eb3cSopenharmony_ci    "bundleName": "__harDefaultBundleName__",
7523b3eb3cSopenharmony_ci    "moduleName": "__harDefaultModuleName__"
7623b3eb3cSopenharmony_ci};
7723b3eb3cSopenharmony_ciCounterResource.BUTTON_ICON_COLOR = {
7823b3eb3cSopenharmony_ci    "id": -1,
7923b3eb3cSopenharmony_ci    "type": 10001,
8023b3eb3cSopenharmony_ci    params: ['sys.color.ohos_id_color_primary'],
8123b3eb3cSopenharmony_ci    "bundleName": "__harDefaultBundleName__",
8223b3eb3cSopenharmony_ci    "moduleName": "__harDefaultModuleName__"
8323b3eb3cSopenharmony_ci};
8423b3eb3cSopenharmony_ciCounterResource.BUTTON_BORDER_FOCUSED_COLOR = {
8523b3eb3cSopenharmony_ci    "id": -1,
8623b3eb3cSopenharmony_ci    "type": 10001,
8723b3eb3cSopenharmony_ci    params: ['sys.color.ohos_id_color_focused_outline'],
8823b3eb3cSopenharmony_ci    "bundleName": "__harDefaultBundleName__",
8923b3eb3cSopenharmony_ci    "moduleName": "__harDefaultModuleName__"
9023b3eb3cSopenharmony_ci};
9123b3eb3cSopenharmony_ciCounterResource.COUNTER_TEXT_COLOR = {
9223b3eb3cSopenharmony_ci    "id": -1,
9323b3eb3cSopenharmony_ci    "type": 10001,
9423b3eb3cSopenharmony_ci    params: ['sys.color.ohos_id_color_text_primary'],
9523b3eb3cSopenharmony_ci    "bundleName": "__harDefaultBundleName__",
9623b3eb3cSopenharmony_ci    "moduleName": "__harDefaultModuleName__"
9723b3eb3cSopenharmony_ci};
9823b3eb3cSopenharmony_ciCounterResource.COUNTER_BORDER_COLOR = {
9923b3eb3cSopenharmony_ci    "id": -1,
10023b3eb3cSopenharmony_ci    "type": 10001,
10123b3eb3cSopenharmony_ci    params: ['sys.color.ohos_id_color_component_normal'],
10223b3eb3cSopenharmony_ci    "bundleName": "__harDefaultBundleName__",
10323b3eb3cSopenharmony_ci    "moduleName": "__harDefaultModuleName__"
10423b3eb3cSopenharmony_ci};
10523b3eb3cSopenharmony_ciCounterResource.BUTTON_ADD_ICON = {
10623b3eb3cSopenharmony_ci    "id": -1,
10723b3eb3cSopenharmony_ci    "type": 20000,
10823b3eb3cSopenharmony_ci    params: ["sys.media.ohos_ic_public_add"],
10923b3eb3cSopenharmony_ci    "bundleName": "__harDefaultBundleName__",
11023b3eb3cSopenharmony_ci    "moduleName": "__harDefaultModuleName__"
11123b3eb3cSopenharmony_ci};
11223b3eb3cSopenharmony_ciCounterResource.BUTTON_SUB_ICON = {
11323b3eb3cSopenharmony_ci    "id": -1,
11423b3eb3cSopenharmony_ci    "type": 20000,
11523b3eb3cSopenharmony_ci    params: ["sys.media.ohos_ic_public_minus"],
11623b3eb3cSopenharmony_ci    "bundleName": "__harDefaultBundleName__",
11723b3eb3cSopenharmony_ci    "moduleName": "__harDefaultModuleName__"
11823b3eb3cSopenharmony_ci};
11923b3eb3cSopenharmony_ciCounterResource.BUTTON_ARROW_UP = {
12023b3eb3cSopenharmony_ci    "id": -1,
12123b3eb3cSopenharmony_ci    "type": 20000,
12223b3eb3cSopenharmony_ci    params: ['sys.media.ohos_ic_public_arrow_up'],
12323b3eb3cSopenharmony_ci    "bundleName": "__harDefaultBundleName__",
12423b3eb3cSopenharmony_ci    "moduleName": "__harDefaultModuleName__"
12523b3eb3cSopenharmony_ci};
12623b3eb3cSopenharmony_ciCounterResource.BUTTON_ARROW_DOWN = {
12723b3eb3cSopenharmony_ci    "id": -1,
12823b3eb3cSopenharmony_ci    "type": 20000,
12923b3eb3cSopenharmony_ci    params: ['sys.media.ohos_ic_public_arrow_down'],
13023b3eb3cSopenharmony_ci    "bundleName": "__harDefaultBundleName__",
13123b3eb3cSopenharmony_ci    "moduleName": "__harDefaultModuleName__"
13223b3eb3cSopenharmony_ci};
13323b3eb3cSopenharmony_ciCounterResource.BUTTON_BORDER_FOCUSED_WIDTH = '2vp';
13423b3eb3cSopenharmony_ciCounterResource.BUTTON_BORDER_BLUR_WIDTH = '0vp';
13523b3eb3cSopenharmony_ciCounterResource.COUNTER_BORDER_WIDTH = '1vp';
13623b3eb3cSopenharmony_ciCounterResource.COUNTER_BORDER_WIDTH_NUMBER = 1;
13723b3eb3cSopenharmony_ciCounterResource.COUNTER_LIST_LABEL_SIZE = {
13823b3eb3cSopenharmony_ci    "id": -1,
13923b3eb3cSopenharmony_ci    "type": 10002,
14023b3eb3cSopenharmony_ci    params: ['sys.float.ohos_id_text_size_body1'],
14123b3eb3cSopenharmony_ci    "bundleName": "__harDefaultBundleName__",
14223b3eb3cSopenharmony_ci    "moduleName": "__harDefaultModuleName__"
14323b3eb3cSopenharmony_ci};
14423b3eb3cSopenharmony_ciCounterResource.COUNTER_LIST_NUMBER_SIZE = {
14523b3eb3cSopenharmony_ci    "id": -1,
14623b3eb3cSopenharmony_ci    "type": 10002,
14723b3eb3cSopenharmony_ci    params: ['sys.float.ohos_id_text_size_body1'],
14823b3eb3cSopenharmony_ci    "bundleName": "__harDefaultBundleName__",
14923b3eb3cSopenharmony_ci    "moduleName": "__harDefaultModuleName__"
15023b3eb3cSopenharmony_ci};
15123b3eb3cSopenharmony_ciCounterResource.COUNTER_COMPACT_LABEL_SIZE = {
15223b3eb3cSopenharmony_ci    "id": -1,
15323b3eb3cSopenharmony_ci    "type": 10002,
15423b3eb3cSopenharmony_ci    params: ['sys.float.ohos_id_text_size_body2'],
15523b3eb3cSopenharmony_ci    "bundleName": "__harDefaultBundleName__",
15623b3eb3cSopenharmony_ci    "moduleName": "__harDefaultModuleName__"
15723b3eb3cSopenharmony_ci};
15823b3eb3cSopenharmony_ciCounterResource.COUNTER_NUMBER_SIZE = {
15923b3eb3cSopenharmony_ci    "id": -1,
16023b3eb3cSopenharmony_ci    "type": 10002,
16123b3eb3cSopenharmony_ci    params: ['sys.float.ohos_id_text_size_body1'],
16223b3eb3cSopenharmony_ci    "bundleName": "__harDefaultBundleName__",
16323b3eb3cSopenharmony_ci    "moduleName": "__harDefaultModuleName__"
16423b3eb3cSopenharmony_ci};
16523b3eb3cSopenharmony_ciCounterResource.COUNTER_LIST_LEFT_PADDING = {
16623b3eb3cSopenharmony_ci    "id": -1,
16723b3eb3cSopenharmony_ci    "type": 10002,
16823b3eb3cSopenharmony_ci    params: ['sys.float.ohos_id_default_padding_start'],
16923b3eb3cSopenharmony_ci    "bundleName": "__harDefaultBundleName__",
17023b3eb3cSopenharmony_ci    "moduleName": "__harDefaultModuleName__"
17123b3eb3cSopenharmony_ci};
17223b3eb3cSopenharmony_ciCounterResource.COUNTER_LIST_RIGHT_PADDING = {
17323b3eb3cSopenharmony_ci    "id": -1,
17423b3eb3cSopenharmony_ci    "type": 10002,
17523b3eb3cSopenharmony_ci    params: ['sys.float.ohos_id_default_padding_end'],
17623b3eb3cSopenharmony_ci    "bundleName": "__harDefaultBundleName__",
17723b3eb3cSopenharmony_ci    "moduleName": "__harDefaultModuleName__"
17823b3eb3cSopenharmony_ci};
17923b3eb3cSopenharmony_ciCounterResource.COUNTER_LIST_PADDING = 12;
18023b3eb3cSopenharmony_ciCounterResource.COUNTER_LIST_HEIGHT = '48vp';
18123b3eb3cSopenharmony_ciCounterResource.COUNTER_LIST_BUTTON_ICON_SIZE = '20vp';
18223b3eb3cSopenharmony_ciCounterResource.COUNTER_LIST_BUTTON_SIZE = '32vp';
18323b3eb3cSopenharmony_ciCounterResource.COUNTER_LIST_BUTTON_RADIUS = '16vp';
18423b3eb3cSopenharmony_ciCounterResource.COUNTER_LIST_BUTTON_TEXT_DISTANCE = '8vp';
18523b3eb3cSopenharmony_ciCounterResource.COUNTER_LIST_BUTTON_TEXT_MARGIN = 8;
18623b3eb3cSopenharmony_ciCounterResource.COUNTER_LIST_FOCUS_BORDER_SIZE = '30vp';
18723b3eb3cSopenharmony_ciCounterResource.COUNTER_LIST_FOCUS_BORDER_RADIUS = '15vp';
18823b3eb3cSopenharmony_ciCounterResource.COUNTER_LIST_BUTTON_HOT_SPOT_X = '-8vp';
18923b3eb3cSopenharmony_ciCounterResource.COUNTER_LIST_BUTTON_HOT_SPOT_Y = '-8vp';
19023b3eb3cSopenharmony_ciCounterResource.COUNTER_COMPACT_BUTTON_ICON_SIZE = '16vp';
19123b3eb3cSopenharmony_ciCounterResource.COUNTER_COMPACT_BUTTON_SIZE = '24vp';
19223b3eb3cSopenharmony_ciCounterResource.COUNTER_COMPACT_BUTTON_RADIUS = '12vp';
19323b3eb3cSopenharmony_ciCounterResource.COUNTER_COMPACT_BUTTON_TEXT_DISTANCE = '10vp';
19423b3eb3cSopenharmony_ciCounterResource.COUNTER_COMPACT_BUTTON_TEXT_MARGIN = 10;
19523b3eb3cSopenharmony_ciCounterResource.COUNTER_COMPACT_CONTAINER_HEIGHT = '28vp';
19623b3eb3cSopenharmony_ciCounterResource.COUNTER_COMPACT_CONTAINER_RADIUS = '14vp';
19723b3eb3cSopenharmony_ciCounterResource.COUNTER_COMPACT_CONTAINER_LABEL_DISTANCE = '8vp';
19823b3eb3cSopenharmony_ciCounterResource.COUNTER_COMPACT_FOCUS_BORDER_SIZE = '22vp';
19923b3eb3cSopenharmony_ciCounterResource.COUNTER_COMPACT_FOCUS_BORDER_RADIUS = '11vp';
20023b3eb3cSopenharmony_ciCounterResource.COUNTER_INLINE_BUTTON_ICON_WIDTH = '24vp';
20123b3eb3cSopenharmony_ciCounterResource.COUNTER_INLINE_BUTTON_ICON_HEIGHT = '12vp';
20223b3eb3cSopenharmony_ciCounterResource.COUNTER_INLINE_BUTTON_TEXT_DISTANCE = '12vp';
20323b3eb3cSopenharmony_ciCounterResource.COUNTER_INLINE_CONTAINER_HEIGHT = '32vp';
20423b3eb3cSopenharmony_ciCounterResource.COUNTER_INLINE_BUTTON_WIDTH = '32vp';
20523b3eb3cSopenharmony_ciCounterResource.COUNTER_INLINE_BUTTON_HEIGHT = '16vp';
20623b3eb3cSopenharmony_ciCounterResource.COUNTER_INLINE_RADIUS = '8vp';
20723b3eb3cSopenharmony_ciCounterResource.COUNTER_INLINE_FOCUS_BORDER_WIDTH = '28vp';
20823b3eb3cSopenharmony_ciCounterResource.COUNTER_INLINE_FOCUS_BORDER_HEIGHT = '13.5vp';
20923b3eb3cSopenharmony_ciCounterResource.COUNTER_INLINE_DATE_TEXT_MARGIN = 12;
21023b3eb3cSopenharmony_ciCounterResource.COUNTER_INLINE_INPUT_TEXT_MARGIN = 12;
21123b3eb3cSopenharmony_ciCounterResource.COUNTER_BUTTON_INITIAL_OPACITY = 1;
21223b3eb3cSopenharmony_ciCounterResource.COUNTER_BUTTON_DISABLE_OPACITY = 0.4;
21323b3eb3cSopenharmony_ci
21423b3eb3cSopenharmony_ciclass CounterConstant {
21523b3eb3cSopenharmony_ci}
21623b3eb3cSopenharmony_ci
21723b3eb3cSopenharmony_ciCounterConstant.COUNTER_MAX_YEAR = 5000;
21823b3eb3cSopenharmony_ciCounterConstant.COUNTER_MIN_YEAR = 1;
21923b3eb3cSopenharmony_ciCounterConstant.COUNTER_INITIAL_MONTH = 1;
22023b3eb3cSopenharmony_ciCounterConstant.COUNTER_INITIAL_DAY = 1;
22123b3eb3cSopenharmony_ciCounterConstant.COUNTER_INITIAL_STEP = 1;
22223b3eb3cSopenharmony_ciCounterConstant.COUNTER_TEN_NUMBER = 10;
22323b3eb3cSopenharmony_ciCounterConstant.COUNTER_MIN_MONTH = 1;
22423b3eb3cSopenharmony_ciCounterConstant.COUNTER_MAX_MONTH = 12;
22523b3eb3cSopenharmony_ciCounterConstant.COUNTER_MIN_DAY = 1;
22623b3eb3cSopenharmony_ciCounterConstant.KEYCODE_DPAD_UP = 2012;
22723b3eb3cSopenharmony_ciCounterConstant.KEYCODE_DPAD_DOWN = 2013;
22823b3eb3cSopenharmony_ciCounterConstant.KEYCODE_DPAD_LEFT = 2014;
22923b3eb3cSopenharmony_ciCounterConstant.KEYCODE_DPAD_RIGHT = 2015;
23023b3eb3cSopenharmony_ciCounterConstant.KEYCODE_MOVE_HOME = 2081;
23123b3eb3cSopenharmony_ciCounterConstant.KEYCODE_MOVE_END = 2082;
23223b3eb3cSopenharmony_ciCounterConstant.KEYCODE_TAB = 2049;
23323b3eb3cSopenharmony_ciCounterConstant.KEYCODE_ESC = 2070;
23423b3eb3cSopenharmony_ciCounterConstant.COUNTER_MIN_VALUE = 0;
23523b3eb3cSopenharmony_ciCounterConstant.COUNTER_MAX_VALUE = 999;
23623b3eb3cSopenharmony_ciCounterConstant.JANUARY = 1;
23723b3eb3cSopenharmony_ciCounterConstant.FEBRUARY = 2;
23823b3eb3cSopenharmony_ciCounterConstant.MARCH = 3;
23923b3eb3cSopenharmony_ciCounterConstant.APRIL = 4;
24023b3eb3cSopenharmony_ciCounterConstant.MAY = 5;
24123b3eb3cSopenharmony_ciCounterConstant.JUNE = 6;
24223b3eb3cSopenharmony_ciCounterConstant.JULY = 7;
24323b3eb3cSopenharmony_ciCounterConstant.AUGUST = 8;
24423b3eb3cSopenharmony_ciCounterConstant.SEPTEMBER = 9;
24523b3eb3cSopenharmony_ciCounterConstant.OCTOBER = 10;
24623b3eb3cSopenharmony_ciCounterConstant.NOVEMBER = 11;
24723b3eb3cSopenharmony_ciCounterConstant.DECEMBER = 12;
24823b3eb3cSopenharmony_ciCounterConstant.BIG_MONTH_DAYS = 31;
24923b3eb3cSopenharmony_ciCounterConstant.SMALL_MONTH_DAYS = 30;
25023b3eb3cSopenharmony_ciCounterConstant.FEBRUARY_DAYS = 28;
25123b3eb3cSopenharmony_ciCounterConstant.AUSPICIOUS_FEBRUARY_DAYS = 29;
25223b3eb3cSopenharmony_ciCounterConstant.AUSPICIOUS_FOUR = 4;
25323b3eb3cSopenharmony_ciCounterConstant.AUSPICIOUS_HUNDRED = 100;
25423b3eb3cSopenharmony_ciCounterConstant.AUSPICIOUS_FOUR_HUNDRED = 400;
25523b3eb3cSopenharmony_ci
25623b3eb3cSopenharmony_ciexport class CounterComponent extends ViewPU {
25723b3eb3cSopenharmony_ci    constructor(w20, x20, y20, z20 = -1, a21 = undefined, b21) {
25823b3eb3cSopenharmony_ci        super(w20, y20, z20, b21);
25923b3eb3cSopenharmony_ci        if (typeof a21 === "function") {
26023b3eb3cSopenharmony_ci            this.paramsGenerator_ = a21;
26123b3eb3cSopenharmony_ci        }
26223b3eb3cSopenharmony_ci        this.__options = new SynchedPropertyObjectOneWayPU(x20.options, this, "options");
26323b3eb3cSopenharmony_ci        this.__type = new ObservedPropertySimplePU(-1, this, "type");
26423b3eb3cSopenharmony_ci        this.__counterDirection = new ObservedPropertySimplePU(Direction.Auto, this, "counterDirection");
26523b3eb3cSopenharmony_ci        this.__choverEffect = new ObservedPropertySimplePU(HoverEffect.Auto, this, "choverEffect");
26623b3eb3cSopenharmony_ci        this.__focusEnable = new ObservedPropertySimplePU(true, this, "focusEnable");
26723b3eb3cSopenharmony_ci        this.__step = new ObservedPropertySimplePU(CounterConstant.COUNTER_INITIAL_STEP, this, "step");
26823b3eb3cSopenharmony_ci        this.__inputValue = new ObservedPropertySimplePU('0', this, "inputValue");
26923b3eb3cSopenharmony_ci        this.__inputYear = new ObservedPropertySimplePU(CounterConstant.COUNTER_MIN_YEAR, this, "inputYear");
27023b3eb3cSopenharmony_ci        this.__inputMoon = new ObservedPropertySimplePU(0, this, "inputMoon");
27123b3eb3cSopenharmony_ci        this.__inputDay = new ObservedPropertySimplePU(0, this, "inputDay");
27223b3eb3cSopenharmony_ci        this.__inputHour = new ObservedPropertySimplePU(0, this, "inputHour");
27323b3eb3cSopenharmony_ci        this.__inputMinute = new ObservedPropertySimplePU(0, this, "inputMinute");
27423b3eb3cSopenharmony_ci        this.__inputSecond = new ObservedPropertySimplePU(0, this, "inputSecond");
27523b3eb3cSopenharmony_ci        this.__subOpacity = new ObservedPropertySimplePU(CounterResource.COUNTER_BUTTON_INITIAL_OPACITY, this, "subOpacity");
27623b3eb3cSopenharmony_ci        this.__addOpacity = new ObservedPropertySimplePU(CounterResource.COUNTER_BUTTON_INITIAL_OPACITY, this, "addOpacity");
27723b3eb3cSopenharmony_ci        this.__subBtnStateEffect = new ObservedPropertySimplePU(true, this, "subBtnStateEffect");
27823b3eb3cSopenharmony_ci        this.__addBtnStateEffect = new ObservedPropertySimplePU(true, this, "addBtnStateEffect");
27923b3eb3cSopenharmony_ci        this.__focusText = new ObservedPropertySimplePU(FocusText.NONE, this, "focusText");
28023b3eb3cSopenharmony_ci        this.__hasFocusText1 = new ObservedPropertySimplePU(false, this, "hasFocusText1");
28123b3eb3cSopenharmony_ci        this.__hasFocusText2 = new ObservedPropertySimplePU(false, this, "hasFocusText2");
28223b3eb3cSopenharmony_ci        this.__hasFocusText3 = new ObservedPropertySimplePU(false, this, "hasFocusText3");
28323b3eb3cSopenharmony_ci        this.__subBtnFocusWidh = new ObservedPropertySimplePU('0vp', this, "subBtnFocusWidh");
28423b3eb3cSopenharmony_ci        this.__addBtnFocusWidh = new ObservedPropertySimplePU('0vp', this, "addBtnFocusWidh");
28523b3eb3cSopenharmony_ci        this.__value = new ObservedPropertyObjectPU(undefined, this, "value");
28623b3eb3cSopenharmony_ci        this.__year = new ObservedPropertySimplePU(0, this, "year");
28723b3eb3cSopenharmony_ci        this.__month = new ObservedPropertySimplePU(0, this, "month");
28823b3eb3cSopenharmony_ci        this.__day = new ObservedPropertySimplePU(0, this, "day");
28923b3eb3cSopenharmony_ci        this.__hour = new ObservedPropertySimplePU(0, this, "hour");
29023b3eb3cSopenharmony_ci        this.__minute = new ObservedPropertySimplePU(0, this, "minute");
29123b3eb3cSopenharmony_ci        this.__second = new ObservedPropertySimplePU(0, this, "second");
29223b3eb3cSopenharmony_ci        this.__subBtnEnabled = new ObservedPropertySimplePU(true, this, "subBtnEnabled");
29323b3eb3cSopenharmony_ci        this.__addBtnEnabled = new ObservedPropertySimplePU(true, this, "addBtnEnabled");
29423b3eb3cSopenharmony_ci        this.__hasInputText1 = new ObservedPropertySimplePU(false, this, "hasInputText1");
29523b3eb3cSopenharmony_ci        this.__hasInputText2 = new ObservedPropertySimplePU(false, this, "hasInputText2");
29623b3eb3cSopenharmony_ci        this.__hasInputText3 = new ObservedPropertySimplePU(false, this, "hasInputText3");
29723b3eb3cSopenharmony_ci        this.__textWidth = new ObservedPropertySimplePU(0, this, "textWidth");
29823b3eb3cSopenharmony_ci        this.__min = new ObservedPropertySimplePU(CounterConstant.COUNTER_MIN_VALUE, this, "min");
29923b3eb3cSopenharmony_ci        this.__max = new ObservedPropertySimplePU(CounterConstant.COUNTER_MAX_VALUE, this, "max");
30023b3eb3cSopenharmony_ci        this.maxYear = CounterConstant.COUNTER_MAX_YEAR;
30123b3eb3cSopenharmony_ci        this.minYear = CounterConstant.COUNTER_MIN_YEAR;
30223b3eb3cSopenharmony_ci        this.numberStrList = ['00', '01', '02', '03', '04', '05', '06', '07', '08', '09'];
30323b3eb3cSopenharmony_ci        this.onHoverIncrease = undefined;
30423b3eb3cSopenharmony_ci        this.onHoverDecrease = undefined;
30523b3eb3cSopenharmony_ci        this.onFocusIncrease = undefined;
30623b3eb3cSopenharmony_ci        this.onFocusDecrease = undefined;
30723b3eb3cSopenharmony_ci        this.onBlurIncrease = undefined;
30823b3eb3cSopenharmony_ci        this.onBlurDecrease = undefined;
30923b3eb3cSopenharmony_ci        this.onChange = undefined;
31023b3eb3cSopenharmony_ci        this.onDateChange = undefined;
31123b3eb3cSopenharmony_ci        this.timeoutID1 = -1;
31223b3eb3cSopenharmony_ci        this.timeoutID2 = -1;
31323b3eb3cSopenharmony_ci        this.timeoutID3 = -1;
31423b3eb3cSopenharmony_ci        this.numberStyleOptions = undefined;
31523b3eb3cSopenharmony_ci        this.dateStyleOptions = undefined;
31623b3eb3cSopenharmony_ci        this.inlineStyleOptions = undefined;
31723b3eb3cSopenharmony_ci        this.timeStamp = 0;
31823b3eb3cSopenharmony_ci        this.hasTextWidth = false;
31923b3eb3cSopenharmony_ci        this.controller1 = new TextInputController();
32023b3eb3cSopenharmony_ci        this.controller2 = new TextInputController();
32123b3eb3cSopenharmony_ci        this.controller3 = new TextInputController();
32223b3eb3cSopenharmony_ci        this.setInitiallyProvidedValue(x20);
32323b3eb3cSopenharmony_ci        this.declareWatch("options", this.onOptionsChange);
32423b3eb3cSopenharmony_ci        this.finalizeConstruction();
32523b3eb3cSopenharmony_ci    }
32623b3eb3cSopenharmony_ci
32723b3eb3cSopenharmony_ci    setInitiallyProvidedValue(v20) {
32823b3eb3cSopenharmony_ci        if (v20.type !== undefined) {
32923b3eb3cSopenharmony_ci            this.type = v20.type;
33023b3eb3cSopenharmony_ci        }
33123b3eb3cSopenharmony_ci        if (v20.counterDirection !== undefined) {
33223b3eb3cSopenharmony_ci            this.counterDirection = v20.counterDirection;
33323b3eb3cSopenharmony_ci        }
33423b3eb3cSopenharmony_ci        if (v20.choverEffect !== undefined) {
33523b3eb3cSopenharmony_ci            this.choverEffect = v20.choverEffect;
33623b3eb3cSopenharmony_ci        }
33723b3eb3cSopenharmony_ci        if (v20.focusEnable !== undefined) {
33823b3eb3cSopenharmony_ci            this.focusEnable = v20.focusEnable;
33923b3eb3cSopenharmony_ci        }
34023b3eb3cSopenharmony_ci        if (v20.step !== undefined) {
34123b3eb3cSopenharmony_ci            this.step = v20.step;
34223b3eb3cSopenharmony_ci        }
34323b3eb3cSopenharmony_ci        if (v20.inputValue !== undefined) {
34423b3eb3cSopenharmony_ci            this.inputValue = v20.inputValue;
34523b3eb3cSopenharmony_ci        }
34623b3eb3cSopenharmony_ci        if (v20.inputYear !== undefined) {
34723b3eb3cSopenharmony_ci            this.inputYear = v20.inputYear;
34823b3eb3cSopenharmony_ci        }
34923b3eb3cSopenharmony_ci        if (v20.inputMoon !== undefined) {
35023b3eb3cSopenharmony_ci            this.inputMoon = v20.inputMoon;
35123b3eb3cSopenharmony_ci        }
35223b3eb3cSopenharmony_ci        if (v20.inputDay !== undefined) {
35323b3eb3cSopenharmony_ci            this.inputDay = v20.inputDay;
35423b3eb3cSopenharmony_ci        }
35523b3eb3cSopenharmony_ci        if (v20.inputHour !== undefined) {
35623b3eb3cSopenharmony_ci            this.inputHour = v20.inputHour;
35723b3eb3cSopenharmony_ci        }
35823b3eb3cSopenharmony_ci        if (v20.inputMinute !== undefined) {
35923b3eb3cSopenharmony_ci            this.inputMinute = v20.inputMinute;
36023b3eb3cSopenharmony_ci        }
36123b3eb3cSopenharmony_ci        if (v20.inputSecond !== undefined) {
36223b3eb3cSopenharmony_ci            this.inputSecond = v20.inputSecond;
36323b3eb3cSopenharmony_ci        }
36423b3eb3cSopenharmony_ci        if (v20.subOpacity !== undefined) {
36523b3eb3cSopenharmony_ci            this.subOpacity = v20.subOpacity;
36623b3eb3cSopenharmony_ci        }
36723b3eb3cSopenharmony_ci        if (v20.addOpacity !== undefined) {
36823b3eb3cSopenharmony_ci            this.addOpacity = v20.addOpacity;
36923b3eb3cSopenharmony_ci        }
37023b3eb3cSopenharmony_ci        if (v20.subBtnStateEffect !== undefined) {
37123b3eb3cSopenharmony_ci            this.subBtnStateEffect = v20.subBtnStateEffect;
37223b3eb3cSopenharmony_ci        }
37323b3eb3cSopenharmony_ci        if (v20.addBtnStateEffect !== undefined) {
37423b3eb3cSopenharmony_ci            this.addBtnStateEffect = v20.addBtnStateEffect;
37523b3eb3cSopenharmony_ci        }
37623b3eb3cSopenharmony_ci        if (v20.focusText !== undefined) {
37723b3eb3cSopenharmony_ci            this.focusText = v20.focusText;
37823b3eb3cSopenharmony_ci        }
37923b3eb3cSopenharmony_ci        if (v20.hasFocusText1 !== undefined) {
38023b3eb3cSopenharmony_ci            this.hasFocusText1 = v20.hasFocusText1;
38123b3eb3cSopenharmony_ci        }
38223b3eb3cSopenharmony_ci        if (v20.hasFocusText2 !== undefined) {
38323b3eb3cSopenharmony_ci            this.hasFocusText2 = v20.hasFocusText2;
38423b3eb3cSopenharmony_ci        }
38523b3eb3cSopenharmony_ci        if (v20.hasFocusText3 !== undefined) {
38623b3eb3cSopenharmony_ci            this.hasFocusText3 = v20.hasFocusText3;
38723b3eb3cSopenharmony_ci        }
38823b3eb3cSopenharmony_ci        if (v20.subBtnFocusWidh !== undefined) {
38923b3eb3cSopenharmony_ci            this.subBtnFocusWidh = v20.subBtnFocusWidh;
39023b3eb3cSopenharmony_ci        }
39123b3eb3cSopenharmony_ci        if (v20.addBtnFocusWidh !== undefined) {
39223b3eb3cSopenharmony_ci            this.addBtnFocusWidh = v20.addBtnFocusWidh;
39323b3eb3cSopenharmony_ci        }
39423b3eb3cSopenharmony_ci        if (v20.value !== undefined) {
39523b3eb3cSopenharmony_ci            this.value = v20.value;
39623b3eb3cSopenharmony_ci        }
39723b3eb3cSopenharmony_ci        if (v20.year !== undefined) {
39823b3eb3cSopenharmony_ci            this.year = v20.year;
39923b3eb3cSopenharmony_ci        }
40023b3eb3cSopenharmony_ci        if (v20.month !== undefined) {
40123b3eb3cSopenharmony_ci            this.month = v20.month;
40223b3eb3cSopenharmony_ci        }
40323b3eb3cSopenharmony_ci        if (v20.day !== undefined) {
40423b3eb3cSopenharmony_ci            this.day = v20.day;
40523b3eb3cSopenharmony_ci        }
40623b3eb3cSopenharmony_ci        if (v20.hour !== undefined) {
40723b3eb3cSopenharmony_ci            this.hour = v20.hour;
40823b3eb3cSopenharmony_ci        }
40923b3eb3cSopenharmony_ci        if (v20.minute !== undefined) {
41023b3eb3cSopenharmony_ci            this.minute = v20.minute;
41123b3eb3cSopenharmony_ci        }
41223b3eb3cSopenharmony_ci        if (v20.second !== undefined) {
41323b3eb3cSopenharmony_ci            this.second = v20.second;
41423b3eb3cSopenharmony_ci        }
41523b3eb3cSopenharmony_ci        if (v20.subBtnEnabled !== undefined) {
41623b3eb3cSopenharmony_ci            this.subBtnEnabled = v20.subBtnEnabled;
41723b3eb3cSopenharmony_ci        }
41823b3eb3cSopenharmony_ci        if (v20.addBtnEnabled !== undefined) {
41923b3eb3cSopenharmony_ci            this.addBtnEnabled = v20.addBtnEnabled;
42023b3eb3cSopenharmony_ci        }
42123b3eb3cSopenharmony_ci        if (v20.hasInputText1 !== undefined) {
42223b3eb3cSopenharmony_ci            this.hasInputText1 = v20.hasInputText1;
42323b3eb3cSopenharmony_ci        }
42423b3eb3cSopenharmony_ci        if (v20.hasInputText2 !== undefined) {
42523b3eb3cSopenharmony_ci            this.hasInputText2 = v20.hasInputText2;
42623b3eb3cSopenharmony_ci        }
42723b3eb3cSopenharmony_ci        if (v20.hasInputText3 !== undefined) {
42823b3eb3cSopenharmony_ci            this.hasInputText3 = v20.hasInputText3;
42923b3eb3cSopenharmony_ci        }
43023b3eb3cSopenharmony_ci        if (v20.textWidth !== undefined) {
43123b3eb3cSopenharmony_ci            this.textWidth = v20.textWidth;
43223b3eb3cSopenharmony_ci        }
43323b3eb3cSopenharmony_ci        if (v20.min !== undefined) {
43423b3eb3cSopenharmony_ci            this.min = v20.min;
43523b3eb3cSopenharmony_ci        }
43623b3eb3cSopenharmony_ci        if (v20.max !== undefined) {
43723b3eb3cSopenharmony_ci            this.max = v20.max;
43823b3eb3cSopenharmony_ci        }
43923b3eb3cSopenharmony_ci        if (v20.maxYear !== undefined) {
44023b3eb3cSopenharmony_ci            this.maxYear = v20.maxYear;
44123b3eb3cSopenharmony_ci        }
44223b3eb3cSopenharmony_ci        if (v20.minYear !== undefined) {
44323b3eb3cSopenharmony_ci            this.minYear = v20.minYear;
44423b3eb3cSopenharmony_ci        }
44523b3eb3cSopenharmony_ci        if (v20.numberStrList !== undefined) {
44623b3eb3cSopenharmony_ci            this.numberStrList = v20.numberStrList;
44723b3eb3cSopenharmony_ci        }
44823b3eb3cSopenharmony_ci        if (v20.onHoverIncrease !== undefined) {
44923b3eb3cSopenharmony_ci            this.onHoverIncrease = v20.onHoverIncrease;
45023b3eb3cSopenharmony_ci        }
45123b3eb3cSopenharmony_ci        if (v20.onHoverDecrease !== undefined) {
45223b3eb3cSopenharmony_ci            this.onHoverDecrease = v20.onHoverDecrease;
45323b3eb3cSopenharmony_ci        }
45423b3eb3cSopenharmony_ci        if (v20.onFocusIncrease !== undefined) {
45523b3eb3cSopenharmony_ci            this.onFocusIncrease = v20.onFocusIncrease;
45623b3eb3cSopenharmony_ci        }
45723b3eb3cSopenharmony_ci        if (v20.onFocusDecrease !== undefined) {
45823b3eb3cSopenharmony_ci            this.onFocusDecrease = v20.onFocusDecrease;
45923b3eb3cSopenharmony_ci        }
46023b3eb3cSopenharmony_ci        if (v20.onBlurIncrease !== undefined) {
46123b3eb3cSopenharmony_ci            this.onBlurIncrease = v20.onBlurIncrease;
46223b3eb3cSopenharmony_ci        }
46323b3eb3cSopenharmony_ci        if (v20.onBlurDecrease !== undefined) {
46423b3eb3cSopenharmony_ci            this.onBlurDecrease = v20.onBlurDecrease;
46523b3eb3cSopenharmony_ci        }
46623b3eb3cSopenharmony_ci        if (v20.onChange !== undefined) {
46723b3eb3cSopenharmony_ci            this.onChange = v20.onChange;
46823b3eb3cSopenharmony_ci        }
46923b3eb3cSopenharmony_ci        if (v20.onDateChange !== undefined) {
47023b3eb3cSopenharmony_ci            this.onDateChange = v20.onDateChange;
47123b3eb3cSopenharmony_ci        }
47223b3eb3cSopenharmony_ci        if (v20.timeoutID1 !== undefined) {
47323b3eb3cSopenharmony_ci            this.timeoutID1 = v20.timeoutID1;
47423b3eb3cSopenharmony_ci        }
47523b3eb3cSopenharmony_ci        if (v20.timeoutID2 !== undefined) {
47623b3eb3cSopenharmony_ci            this.timeoutID2 = v20.timeoutID2;
47723b3eb3cSopenharmony_ci        }
47823b3eb3cSopenharmony_ci        if (v20.timeoutID3 !== undefined) {
47923b3eb3cSopenharmony_ci            this.timeoutID3 = v20.timeoutID3;
48023b3eb3cSopenharmony_ci        }
48123b3eb3cSopenharmony_ci        if (v20.numberStyleOptions !== undefined) {
48223b3eb3cSopenharmony_ci            this.numberStyleOptions = v20.numberStyleOptions;
48323b3eb3cSopenharmony_ci        }
48423b3eb3cSopenharmony_ci        if (v20.dateStyleOptions !== undefined) {
48523b3eb3cSopenharmony_ci            this.dateStyleOptions = v20.dateStyleOptions;
48623b3eb3cSopenharmony_ci        }
48723b3eb3cSopenharmony_ci        if (v20.inlineStyleOptions !== undefined) {
48823b3eb3cSopenharmony_ci            this.inlineStyleOptions = v20.inlineStyleOptions;
48923b3eb3cSopenharmony_ci        }
49023b3eb3cSopenharmony_ci        if (v20.timeStamp !== undefined) {
49123b3eb3cSopenharmony_ci            this.timeStamp = v20.timeStamp;
49223b3eb3cSopenharmony_ci        }
49323b3eb3cSopenharmony_ci        if (v20.hasTextWidth !== undefined) {
49423b3eb3cSopenharmony_ci            this.hasTextWidth = v20.hasTextWidth;
49523b3eb3cSopenharmony_ci        }
49623b3eb3cSopenharmony_ci        if (v20.controller1 !== undefined) {
49723b3eb3cSopenharmony_ci            this.controller1 = v20.controller1;
49823b3eb3cSopenharmony_ci        }
49923b3eb3cSopenharmony_ci        if (v20.controller2 !== undefined) {
50023b3eb3cSopenharmony_ci            this.controller2 = v20.controller2;
50123b3eb3cSopenharmony_ci        }
50223b3eb3cSopenharmony_ci        if (v20.controller3 !== undefined) {
50323b3eb3cSopenharmony_ci            this.controller3 = v20.controller3;
50423b3eb3cSopenharmony_ci        }
50523b3eb3cSopenharmony_ci    }
50623b3eb3cSopenharmony_ci
50723b3eb3cSopenharmony_ci    updateStateVars(u20) {
50823b3eb3cSopenharmony_ci        this.__options.reset(u20.options);
50923b3eb3cSopenharmony_ci    }
51023b3eb3cSopenharmony_ci
51123b3eb3cSopenharmony_ci    purgeVariableDependenciesOnElmtId(t20) {
51223b3eb3cSopenharmony_ci        this.__options.purgeDependencyOnElmtId(t20);
51323b3eb3cSopenharmony_ci        this.__type.purgeDependencyOnElmtId(t20);
51423b3eb3cSopenharmony_ci        this.__counterDirection.purgeDependencyOnElmtId(t20);
51523b3eb3cSopenharmony_ci        this.__choverEffect.purgeDependencyOnElmtId(t20);
51623b3eb3cSopenharmony_ci        this.__focusEnable.purgeDependencyOnElmtId(t20);
51723b3eb3cSopenharmony_ci        this.__step.purgeDependencyOnElmtId(t20);
51823b3eb3cSopenharmony_ci        this.__inputValue.purgeDependencyOnElmtId(t20);
51923b3eb3cSopenharmony_ci        this.__inputYear.purgeDependencyOnElmtId(t20);
52023b3eb3cSopenharmony_ci        this.__inputMoon.purgeDependencyOnElmtId(t20);
52123b3eb3cSopenharmony_ci        this.__inputDay.purgeDependencyOnElmtId(t20);
52223b3eb3cSopenharmony_ci        this.__inputHour.purgeDependencyOnElmtId(t20);
52323b3eb3cSopenharmony_ci        this.__inputMinute.purgeDependencyOnElmtId(t20);
52423b3eb3cSopenharmony_ci        this.__inputSecond.purgeDependencyOnElmtId(t20);
52523b3eb3cSopenharmony_ci        this.__subOpacity.purgeDependencyOnElmtId(t20);
52623b3eb3cSopenharmony_ci        this.__addOpacity.purgeDependencyOnElmtId(t20);
52723b3eb3cSopenharmony_ci        this.__subBtnStateEffect.purgeDependencyOnElmtId(t20);
52823b3eb3cSopenharmony_ci        this.__addBtnStateEffect.purgeDependencyOnElmtId(t20);
52923b3eb3cSopenharmony_ci        this.__focusText.purgeDependencyOnElmtId(t20);
53023b3eb3cSopenharmony_ci        this.__hasFocusText1.purgeDependencyOnElmtId(t20);
53123b3eb3cSopenharmony_ci        this.__hasFocusText2.purgeDependencyOnElmtId(t20);
53223b3eb3cSopenharmony_ci        this.__hasFocusText3.purgeDependencyOnElmtId(t20);
53323b3eb3cSopenharmony_ci        this.__subBtnFocusWidh.purgeDependencyOnElmtId(t20);
53423b3eb3cSopenharmony_ci        this.__addBtnFocusWidh.purgeDependencyOnElmtId(t20);
53523b3eb3cSopenharmony_ci        this.__value.purgeDependencyOnElmtId(t20);
53623b3eb3cSopenharmony_ci        this.__year.purgeDependencyOnElmtId(t20);
53723b3eb3cSopenharmony_ci        this.__month.purgeDependencyOnElmtId(t20);
53823b3eb3cSopenharmony_ci        this.__day.purgeDependencyOnElmtId(t20);
53923b3eb3cSopenharmony_ci        this.__hour.purgeDependencyOnElmtId(t20);
54023b3eb3cSopenharmony_ci        this.__minute.purgeDependencyOnElmtId(t20);
54123b3eb3cSopenharmony_ci        this.__second.purgeDependencyOnElmtId(t20);
54223b3eb3cSopenharmony_ci        this.__subBtnEnabled.purgeDependencyOnElmtId(t20);
54323b3eb3cSopenharmony_ci        this.__addBtnEnabled.purgeDependencyOnElmtId(t20);
54423b3eb3cSopenharmony_ci        this.__hasInputText1.purgeDependencyOnElmtId(t20);
54523b3eb3cSopenharmony_ci        this.__hasInputText2.purgeDependencyOnElmtId(t20);
54623b3eb3cSopenharmony_ci        this.__hasInputText3.purgeDependencyOnElmtId(t20);
54723b3eb3cSopenharmony_ci        this.__textWidth.purgeDependencyOnElmtId(t20);
54823b3eb3cSopenharmony_ci        this.__min.purgeDependencyOnElmtId(t20);
54923b3eb3cSopenharmony_ci        this.__max.purgeDependencyOnElmtId(t20);
55023b3eb3cSopenharmony_ci    }
55123b3eb3cSopenharmony_ci
55223b3eb3cSopenharmony_ci    aboutToBeDeleted() {
55323b3eb3cSopenharmony_ci        this.__options.aboutToBeDeleted();
55423b3eb3cSopenharmony_ci        this.__type.aboutToBeDeleted();
55523b3eb3cSopenharmony_ci        this.__counterDirection.aboutToBeDeleted();
55623b3eb3cSopenharmony_ci        this.__choverEffect.aboutToBeDeleted();
55723b3eb3cSopenharmony_ci        this.__focusEnable.aboutToBeDeleted();
55823b3eb3cSopenharmony_ci        this.__step.aboutToBeDeleted();
55923b3eb3cSopenharmony_ci        this.__inputValue.aboutToBeDeleted();
56023b3eb3cSopenharmony_ci        this.__inputYear.aboutToBeDeleted();
56123b3eb3cSopenharmony_ci        this.__inputMoon.aboutToBeDeleted();
56223b3eb3cSopenharmony_ci        this.__inputDay.aboutToBeDeleted();
56323b3eb3cSopenharmony_ci        this.__inputHour.aboutToBeDeleted();
56423b3eb3cSopenharmony_ci        this.__inputMinute.aboutToBeDeleted();
56523b3eb3cSopenharmony_ci        this.__inputSecond.aboutToBeDeleted();
56623b3eb3cSopenharmony_ci        this.__subOpacity.aboutToBeDeleted();
56723b3eb3cSopenharmony_ci        this.__addOpacity.aboutToBeDeleted();
56823b3eb3cSopenharmony_ci        this.__subBtnStateEffect.aboutToBeDeleted();
56923b3eb3cSopenharmony_ci        this.__addBtnStateEffect.aboutToBeDeleted();
57023b3eb3cSopenharmony_ci        this.__focusText.aboutToBeDeleted();
57123b3eb3cSopenharmony_ci        this.__hasFocusText1.aboutToBeDeleted();
57223b3eb3cSopenharmony_ci        this.__hasFocusText2.aboutToBeDeleted();
57323b3eb3cSopenharmony_ci        this.__hasFocusText3.aboutToBeDeleted();
57423b3eb3cSopenharmony_ci        this.__subBtnFocusWidh.aboutToBeDeleted();
57523b3eb3cSopenharmony_ci        this.__addBtnFocusWidh.aboutToBeDeleted();
57623b3eb3cSopenharmony_ci        this.__value.aboutToBeDeleted();
57723b3eb3cSopenharmony_ci        this.__year.aboutToBeDeleted();
57823b3eb3cSopenharmony_ci        this.__month.aboutToBeDeleted();
57923b3eb3cSopenharmony_ci        this.__day.aboutToBeDeleted();
58023b3eb3cSopenharmony_ci        this.__hour.aboutToBeDeleted();
58123b3eb3cSopenharmony_ci        this.__minute.aboutToBeDeleted();
58223b3eb3cSopenharmony_ci        this.__second.aboutToBeDeleted();
58323b3eb3cSopenharmony_ci        this.__subBtnEnabled.aboutToBeDeleted();
58423b3eb3cSopenharmony_ci        this.__addBtnEnabled.aboutToBeDeleted();
58523b3eb3cSopenharmony_ci        this.__hasInputText1.aboutToBeDeleted();
58623b3eb3cSopenharmony_ci        this.__hasInputText2.aboutToBeDeleted();
58723b3eb3cSopenharmony_ci        this.__hasInputText3.aboutToBeDeleted();
58823b3eb3cSopenharmony_ci        this.__textWidth.aboutToBeDeleted();
58923b3eb3cSopenharmony_ci        this.__min.aboutToBeDeleted();
59023b3eb3cSopenharmony_ci        this.__max.aboutToBeDeleted();
59123b3eb3cSopenharmony_ci        SubscriberManager.Get().delete(this.id__());
59223b3eb3cSopenharmony_ci        this.aboutToBeDeletedInternal();
59323b3eb3cSopenharmony_ci    }
59423b3eb3cSopenharmony_ci
59523b3eb3cSopenharmony_ci    get options() {
59623b3eb3cSopenharmony_ci        return this.__options.get();
59723b3eb3cSopenharmony_ci    }
59823b3eb3cSopenharmony_ci
59923b3eb3cSopenharmony_ci    set options(s20) {
60023b3eb3cSopenharmony_ci        this.__options.set(s20);
60123b3eb3cSopenharmony_ci    }
60223b3eb3cSopenharmony_ci
60323b3eb3cSopenharmony_ci    get type() {
60423b3eb3cSopenharmony_ci        return this.__type.get();
60523b3eb3cSopenharmony_ci    }
60623b3eb3cSopenharmony_ci
60723b3eb3cSopenharmony_ci    set type(r20) {
60823b3eb3cSopenharmony_ci        this.__type.set(r20);
60923b3eb3cSopenharmony_ci    }
61023b3eb3cSopenharmony_ci
61123b3eb3cSopenharmony_ci    get counterDirection() {
61223b3eb3cSopenharmony_ci        return this.__counterDirection.get();
61323b3eb3cSopenharmony_ci    }
61423b3eb3cSopenharmony_ci
61523b3eb3cSopenharmony_ci    set counterDirection(q20) {
61623b3eb3cSopenharmony_ci        this.__counterDirection.set(q20);
61723b3eb3cSopenharmony_ci    }
61823b3eb3cSopenharmony_ci
61923b3eb3cSopenharmony_ci    get choverEffect() {
62023b3eb3cSopenharmony_ci        return this.__choverEffect.get();
62123b3eb3cSopenharmony_ci    }
62223b3eb3cSopenharmony_ci
62323b3eb3cSopenharmony_ci    set choverEffect(p20) {
62423b3eb3cSopenharmony_ci        this.__choverEffect.set(p20);
62523b3eb3cSopenharmony_ci    }
62623b3eb3cSopenharmony_ci
62723b3eb3cSopenharmony_ci    get focusEnable() {
62823b3eb3cSopenharmony_ci        return this.__focusEnable.get();
62923b3eb3cSopenharmony_ci    }
63023b3eb3cSopenharmony_ci
63123b3eb3cSopenharmony_ci    set focusEnable(o20) {
63223b3eb3cSopenharmony_ci        this.__focusEnable.set(o20);
63323b3eb3cSopenharmony_ci    }
63423b3eb3cSopenharmony_ci
63523b3eb3cSopenharmony_ci    get step() {
63623b3eb3cSopenharmony_ci        return this.__step.get();
63723b3eb3cSopenharmony_ci    }
63823b3eb3cSopenharmony_ci
63923b3eb3cSopenharmony_ci    set step(n20) {
64023b3eb3cSopenharmony_ci        this.__step.set(n20);
64123b3eb3cSopenharmony_ci    }
64223b3eb3cSopenharmony_ci
64323b3eb3cSopenharmony_ci    get inputValue() {
64423b3eb3cSopenharmony_ci        return this.__inputValue.get();
64523b3eb3cSopenharmony_ci    }
64623b3eb3cSopenharmony_ci
64723b3eb3cSopenharmony_ci    set inputValue(m20) {
64823b3eb3cSopenharmony_ci        this.__inputValue.set(m20);
64923b3eb3cSopenharmony_ci    }
65023b3eb3cSopenharmony_ci
65123b3eb3cSopenharmony_ci    get inputYear() {
65223b3eb3cSopenharmony_ci        return this.__inputYear.get();
65323b3eb3cSopenharmony_ci    }
65423b3eb3cSopenharmony_ci
65523b3eb3cSopenharmony_ci    set inputYear(l20) {
65623b3eb3cSopenharmony_ci        this.__inputYear.set(l20);
65723b3eb3cSopenharmony_ci    }
65823b3eb3cSopenharmony_ci
65923b3eb3cSopenharmony_ci    get inputMoon() {
66023b3eb3cSopenharmony_ci        return this.__inputMoon.get();
66123b3eb3cSopenharmony_ci    }
66223b3eb3cSopenharmony_ci
66323b3eb3cSopenharmony_ci    set inputMoon(k20) {
66423b3eb3cSopenharmony_ci        this.__inputMoon.set(k20);
66523b3eb3cSopenharmony_ci    }
66623b3eb3cSopenharmony_ci
66723b3eb3cSopenharmony_ci    get inputDay() {
66823b3eb3cSopenharmony_ci        return this.__inputDay.get();
66923b3eb3cSopenharmony_ci    }
67023b3eb3cSopenharmony_ci
67123b3eb3cSopenharmony_ci    set inputDay(j20) {
67223b3eb3cSopenharmony_ci        this.__inputDay.set(j20);
67323b3eb3cSopenharmony_ci    }
67423b3eb3cSopenharmony_ci
67523b3eb3cSopenharmony_ci    get inputHour() {
67623b3eb3cSopenharmony_ci        return this.__inputHour.get();
67723b3eb3cSopenharmony_ci    }
67823b3eb3cSopenharmony_ci
67923b3eb3cSopenharmony_ci    set inputHour(i20) {
68023b3eb3cSopenharmony_ci        this.__inputHour.set(i20);
68123b3eb3cSopenharmony_ci    }
68223b3eb3cSopenharmony_ci
68323b3eb3cSopenharmony_ci    get inputMinute() {
68423b3eb3cSopenharmony_ci        return this.__inputMinute.get();
68523b3eb3cSopenharmony_ci    }
68623b3eb3cSopenharmony_ci
68723b3eb3cSopenharmony_ci    set inputMinute(h20) {
68823b3eb3cSopenharmony_ci        this.__inputMinute.set(h20);
68923b3eb3cSopenharmony_ci    }
69023b3eb3cSopenharmony_ci
69123b3eb3cSopenharmony_ci    get inputSecond() {
69223b3eb3cSopenharmony_ci        return this.__inputSecond.get();
69323b3eb3cSopenharmony_ci    }
69423b3eb3cSopenharmony_ci
69523b3eb3cSopenharmony_ci    set inputSecond(g20) {
69623b3eb3cSopenharmony_ci        this.__inputSecond.set(g20);
69723b3eb3cSopenharmony_ci    }
69823b3eb3cSopenharmony_ci
69923b3eb3cSopenharmony_ci    get subOpacity() {
70023b3eb3cSopenharmony_ci        return this.__subOpacity.get();
70123b3eb3cSopenharmony_ci    }
70223b3eb3cSopenharmony_ci
70323b3eb3cSopenharmony_ci    set subOpacity(f20) {
70423b3eb3cSopenharmony_ci        this.__subOpacity.set(f20);
70523b3eb3cSopenharmony_ci    }
70623b3eb3cSopenharmony_ci
70723b3eb3cSopenharmony_ci    get addOpacity() {
70823b3eb3cSopenharmony_ci        return this.__addOpacity.get();
70923b3eb3cSopenharmony_ci    }
71023b3eb3cSopenharmony_ci
71123b3eb3cSopenharmony_ci    set addOpacity(e20) {
71223b3eb3cSopenharmony_ci        this.__addOpacity.set(e20);
71323b3eb3cSopenharmony_ci    }
71423b3eb3cSopenharmony_ci
71523b3eb3cSopenharmony_ci    get subBtnStateEffect() {
71623b3eb3cSopenharmony_ci        return this.__subBtnStateEffect.get();
71723b3eb3cSopenharmony_ci    }
71823b3eb3cSopenharmony_ci
71923b3eb3cSopenharmony_ci    set subBtnStateEffect(d20) {
72023b3eb3cSopenharmony_ci        this.__subBtnStateEffect.set(d20);
72123b3eb3cSopenharmony_ci    }
72223b3eb3cSopenharmony_ci
72323b3eb3cSopenharmony_ci    get addBtnStateEffect() {
72423b3eb3cSopenharmony_ci        return this.__addBtnStateEffect.get();
72523b3eb3cSopenharmony_ci    }
72623b3eb3cSopenharmony_ci
72723b3eb3cSopenharmony_ci    set addBtnStateEffect(c20) {
72823b3eb3cSopenharmony_ci        this.__addBtnStateEffect.set(c20);
72923b3eb3cSopenharmony_ci    }
73023b3eb3cSopenharmony_ci
73123b3eb3cSopenharmony_ci    get focusText() {
73223b3eb3cSopenharmony_ci        return this.__focusText.get();
73323b3eb3cSopenharmony_ci    }
73423b3eb3cSopenharmony_ci
73523b3eb3cSopenharmony_ci    set focusText(b20) {
73623b3eb3cSopenharmony_ci        this.__focusText.set(b20);
73723b3eb3cSopenharmony_ci    }
73823b3eb3cSopenharmony_ci
73923b3eb3cSopenharmony_ci    get hasFocusText1() {
74023b3eb3cSopenharmony_ci        return this.__hasFocusText1.get();
74123b3eb3cSopenharmony_ci    }
74223b3eb3cSopenharmony_ci
74323b3eb3cSopenharmony_ci    set hasFocusText1(a20) {
74423b3eb3cSopenharmony_ci        this.__hasFocusText1.set(a20);
74523b3eb3cSopenharmony_ci    }
74623b3eb3cSopenharmony_ci
74723b3eb3cSopenharmony_ci    get hasFocusText2() {
74823b3eb3cSopenharmony_ci        return this.__hasFocusText2.get();
74923b3eb3cSopenharmony_ci    }
75023b3eb3cSopenharmony_ci
75123b3eb3cSopenharmony_ci    set hasFocusText2(z19) {
75223b3eb3cSopenharmony_ci        this.__hasFocusText2.set(z19);
75323b3eb3cSopenharmony_ci    }
75423b3eb3cSopenharmony_ci
75523b3eb3cSopenharmony_ci    get hasFocusText3() {
75623b3eb3cSopenharmony_ci        return this.__hasFocusText3.get();
75723b3eb3cSopenharmony_ci    }
75823b3eb3cSopenharmony_ci
75923b3eb3cSopenharmony_ci    set hasFocusText3(y19) {
76023b3eb3cSopenharmony_ci        this.__hasFocusText3.set(y19);
76123b3eb3cSopenharmony_ci    }
76223b3eb3cSopenharmony_ci
76323b3eb3cSopenharmony_ci    get subBtnFocusWidh() {
76423b3eb3cSopenharmony_ci        return this.__subBtnFocusWidh.get();
76523b3eb3cSopenharmony_ci    }
76623b3eb3cSopenharmony_ci
76723b3eb3cSopenharmony_ci    set subBtnFocusWidh(x19) {
76823b3eb3cSopenharmony_ci        this.__subBtnFocusWidh.set(x19);
76923b3eb3cSopenharmony_ci    }
77023b3eb3cSopenharmony_ci
77123b3eb3cSopenharmony_ci    get addBtnFocusWidh() {
77223b3eb3cSopenharmony_ci        return this.__addBtnFocusWidh.get();
77323b3eb3cSopenharmony_ci    }
77423b3eb3cSopenharmony_ci
77523b3eb3cSopenharmony_ci    set addBtnFocusWidh(w19) {
77623b3eb3cSopenharmony_ci        this.__addBtnFocusWidh.set(w19);
77723b3eb3cSopenharmony_ci    }
77823b3eb3cSopenharmony_ci
77923b3eb3cSopenharmony_ci    get value() {
78023b3eb3cSopenharmony_ci        return this.__value.get();
78123b3eb3cSopenharmony_ci    }
78223b3eb3cSopenharmony_ci
78323b3eb3cSopenharmony_ci    set value(v19) {
78423b3eb3cSopenharmony_ci        this.__value.set(v19);
78523b3eb3cSopenharmony_ci    }
78623b3eb3cSopenharmony_ci
78723b3eb3cSopenharmony_ci    get year() {
78823b3eb3cSopenharmony_ci        return this.__year.get();
78923b3eb3cSopenharmony_ci    }
79023b3eb3cSopenharmony_ci
79123b3eb3cSopenharmony_ci    set year(u19) {
79223b3eb3cSopenharmony_ci        this.__year.set(u19);
79323b3eb3cSopenharmony_ci    }
79423b3eb3cSopenharmony_ci
79523b3eb3cSopenharmony_ci    get month() {
79623b3eb3cSopenharmony_ci        return this.__month.get();
79723b3eb3cSopenharmony_ci    }
79823b3eb3cSopenharmony_ci
79923b3eb3cSopenharmony_ci    set month(t19) {
80023b3eb3cSopenharmony_ci        this.__month.set(t19);
80123b3eb3cSopenharmony_ci    }
80223b3eb3cSopenharmony_ci
80323b3eb3cSopenharmony_ci    get day() {
80423b3eb3cSopenharmony_ci        return this.__day.get();
80523b3eb3cSopenharmony_ci    }
80623b3eb3cSopenharmony_ci
80723b3eb3cSopenharmony_ci    set day(s19) {
80823b3eb3cSopenharmony_ci        this.__day.set(s19);
80923b3eb3cSopenharmony_ci    }
81023b3eb3cSopenharmony_ci
81123b3eb3cSopenharmony_ci    get hour() {
81223b3eb3cSopenharmony_ci        return this.__hour.get();
81323b3eb3cSopenharmony_ci    }
81423b3eb3cSopenharmony_ci
81523b3eb3cSopenharmony_ci    set hour(r19) {
81623b3eb3cSopenharmony_ci        this.__hour.set(r19);
81723b3eb3cSopenharmony_ci    }
81823b3eb3cSopenharmony_ci
81923b3eb3cSopenharmony_ci    get minute() {
82023b3eb3cSopenharmony_ci        return this.__minute.get();
82123b3eb3cSopenharmony_ci    }
82223b3eb3cSopenharmony_ci
82323b3eb3cSopenharmony_ci    set minute(q19) {
82423b3eb3cSopenharmony_ci        this.__minute.set(q19);
82523b3eb3cSopenharmony_ci    }
82623b3eb3cSopenharmony_ci
82723b3eb3cSopenharmony_ci    get second() {
82823b3eb3cSopenharmony_ci        return this.__second.get();
82923b3eb3cSopenharmony_ci    }
83023b3eb3cSopenharmony_ci
83123b3eb3cSopenharmony_ci    set second(p19) {
83223b3eb3cSopenharmony_ci        this.__second.set(p19);
83323b3eb3cSopenharmony_ci    }
83423b3eb3cSopenharmony_ci
83523b3eb3cSopenharmony_ci    get subBtnEnabled() {
83623b3eb3cSopenharmony_ci        return this.__subBtnEnabled.get();
83723b3eb3cSopenharmony_ci    }
83823b3eb3cSopenharmony_ci
83923b3eb3cSopenharmony_ci    set subBtnEnabled(o19) {
84023b3eb3cSopenharmony_ci        this.__subBtnEnabled.set(o19);
84123b3eb3cSopenharmony_ci    }
84223b3eb3cSopenharmony_ci
84323b3eb3cSopenharmony_ci    get addBtnEnabled() {
84423b3eb3cSopenharmony_ci        return this.__addBtnEnabled.get();
84523b3eb3cSopenharmony_ci    }
84623b3eb3cSopenharmony_ci
84723b3eb3cSopenharmony_ci    set addBtnEnabled(n19) {
84823b3eb3cSopenharmony_ci        this.__addBtnEnabled.set(n19);
84923b3eb3cSopenharmony_ci    }
85023b3eb3cSopenharmony_ci
85123b3eb3cSopenharmony_ci    get hasInputText1() {
85223b3eb3cSopenharmony_ci        return this.__hasInputText1.get();
85323b3eb3cSopenharmony_ci    }
85423b3eb3cSopenharmony_ci
85523b3eb3cSopenharmony_ci    set hasInputText1(m19) {
85623b3eb3cSopenharmony_ci        this.__hasInputText1.set(m19);
85723b3eb3cSopenharmony_ci    }
85823b3eb3cSopenharmony_ci
85923b3eb3cSopenharmony_ci    get hasInputText2() {
86023b3eb3cSopenharmony_ci        return this.__hasInputText2.get();
86123b3eb3cSopenharmony_ci    }
86223b3eb3cSopenharmony_ci
86323b3eb3cSopenharmony_ci    set hasInputText2(l19) {
86423b3eb3cSopenharmony_ci        this.__hasInputText2.set(l19);
86523b3eb3cSopenharmony_ci    }
86623b3eb3cSopenharmony_ci
86723b3eb3cSopenharmony_ci    get hasInputText3() {
86823b3eb3cSopenharmony_ci        return this.__hasInputText3.get();
86923b3eb3cSopenharmony_ci    }
87023b3eb3cSopenharmony_ci
87123b3eb3cSopenharmony_ci    set hasInputText3(k19) {
87223b3eb3cSopenharmony_ci        this.__hasInputText3.set(k19);
87323b3eb3cSopenharmony_ci    }
87423b3eb3cSopenharmony_ci
87523b3eb3cSopenharmony_ci    get textWidth() {
87623b3eb3cSopenharmony_ci        return this.__textWidth.get();
87723b3eb3cSopenharmony_ci    }
87823b3eb3cSopenharmony_ci
87923b3eb3cSopenharmony_ci    set textWidth(j19) {
88023b3eb3cSopenharmony_ci        this.__textWidth.set(j19);
88123b3eb3cSopenharmony_ci    }
88223b3eb3cSopenharmony_ci
88323b3eb3cSopenharmony_ci    get min() {
88423b3eb3cSopenharmony_ci        return this.__min.get();
88523b3eb3cSopenharmony_ci    }
88623b3eb3cSopenharmony_ci
88723b3eb3cSopenharmony_ci    set min(i19) {
88823b3eb3cSopenharmony_ci        this.__min.set(i19);
88923b3eb3cSopenharmony_ci    }
89023b3eb3cSopenharmony_ci
89123b3eb3cSopenharmony_ci    get max() {
89223b3eb3cSopenharmony_ci        return this.__max.get();
89323b3eb3cSopenharmony_ci    }
89423b3eb3cSopenharmony_ci
89523b3eb3cSopenharmony_ci    set max(h19) {
89623b3eb3cSopenharmony_ci        this.__max.set(h19);
89723b3eb3cSopenharmony_ci    }
89823b3eb3cSopenharmony_ci
89923b3eb3cSopenharmony_ci    convertNumberToString(g19) {
90023b3eb3cSopenharmony_ci        if (g19 >= 0 && g19 < CounterConstant.COUNTER_TEN_NUMBER) {
90123b3eb3cSopenharmony_ci            return this.numberStrList[g19];
90223b3eb3cSopenharmony_ci        }
90323b3eb3cSopenharmony_ci        else {
90423b3eb3cSopenharmony_ci            return g19.toString();
90523b3eb3cSopenharmony_ci        }
90623b3eb3cSopenharmony_ci    }
90723b3eb3cSopenharmony_ci
90823b3eb3cSopenharmony_ci    aboutToAppear() {
90923b3eb3cSopenharmony_ci        let f19 = new Date();
91023b3eb3cSopenharmony_ci        this.timeStamp = f19.getTime();
91123b3eb3cSopenharmony_ci        if (this.options !== undefined && this.options !== null) {
91223b3eb3cSopenharmony_ci            this.onOptionsChange();
91323b3eb3cSopenharmony_ci        }
91423b3eb3cSopenharmony_ci    }
91523b3eb3cSopenharmony_ci
91623b3eb3cSopenharmony_ci    updateNumberStyleOptions() {
91723b3eb3cSopenharmony_ci        if (this.numberStyleOptions.label === undefined) {
91823b3eb3cSopenharmony_ci            this.numberStyleOptions.label = '';
91923b3eb3cSopenharmony_ci        }
92023b3eb3cSopenharmony_ci        if (this.value === undefined) {
92123b3eb3cSopenharmony_ci            this.value = this.numberStyleOptions.value !== undefined ? this.numberStyleOptions.value : 0;
92223b3eb3cSopenharmony_ci            this.onChange?.(this.value);
92323b3eb3cSopenharmony_ci            this.inputValue = this.value.toString();
92423b3eb3cSopenharmony_ci        }
92523b3eb3cSopenharmony_ci        if (this.numberStyleOptions.min !== undefined) {
92623b3eb3cSopenharmony_ci            this.min = this.numberStyleOptions.min;
92723b3eb3cSopenharmony_ci        }
92823b3eb3cSopenharmony_ci        if (this.numberStyleOptions.max !== undefined) {
92923b3eb3cSopenharmony_ci            this.max = this.numberStyleOptions.max;
93023b3eb3cSopenharmony_ci        }
93123b3eb3cSopenharmony_ci        if (this.min > this.max) {
93223b3eb3cSopenharmony_ci            this.min = this.max;
93323b3eb3cSopenharmony_ci        }
93423b3eb3cSopenharmony_ci        if (this.numberStyleOptions.textWidth !== undefined) {
93523b3eb3cSopenharmony_ci            this.textWidth = this.numberStyleOptions.textWidth;
93623b3eb3cSopenharmony_ci            if (this.textWidth < 0) {
93723b3eb3cSopenharmony_ci                this.textWidth = 0;
93823b3eb3cSopenharmony_ci            }
93923b3eb3cSopenharmony_ci            this.hasTextWidth = true;
94023b3eb3cSopenharmony_ci        }
94123b3eb3cSopenharmony_ci        if (this.value <= this.min) {
94223b3eb3cSopenharmony_ci            this.value = this.min;
94323b3eb3cSopenharmony_ci            this.onChange?.(this.value);
94423b3eb3cSopenharmony_ci            this.inputValue = this.value.toString();
94523b3eb3cSopenharmony_ci        }
94623b3eb3cSopenharmony_ci        if (this.value >= this.max) {
94723b3eb3cSopenharmony_ci            this.value = this.max;
94823b3eb3cSopenharmony_ci            this.onChange?.(this.value);
94923b3eb3cSopenharmony_ci            this.inputValue = this.value.toString();
95023b3eb3cSopenharmony_ci        }
95123b3eb3cSopenharmony_ci        if (this.numberStyleOptions.step !== undefined) {
95223b3eb3cSopenharmony_ci            if (this.numberStyleOptions.step < 1) {
95323b3eb3cSopenharmony_ci                this.step = 1;
95423b3eb3cSopenharmony_ci            }
95523b3eb3cSopenharmony_ci            else {
95623b3eb3cSopenharmony_ci                this.step = this.numberStyleOptions.step;
95723b3eb3cSopenharmony_ci            }
95823b3eb3cSopenharmony_ci        }
95923b3eb3cSopenharmony_ci        this.updateButtonStatus();
96023b3eb3cSopenharmony_ci        this.updateNumberStyleOptionsEvent();
96123b3eb3cSopenharmony_ci    }
96223b3eb3cSopenharmony_ci
96323b3eb3cSopenharmony_ci    updateNumberStyleOptionsEvent() {
96423b3eb3cSopenharmony_ci        if (this.numberStyleOptions.onHoverIncrease !== undefined) {
96523b3eb3cSopenharmony_ci            this.onHoverIncrease = this.numberStyleOptions.onHoverIncrease;
96623b3eb3cSopenharmony_ci        }
96723b3eb3cSopenharmony_ci        if (this.numberStyleOptions.onHoverDecrease !== undefined) {
96823b3eb3cSopenharmony_ci            this.onHoverDecrease = this.numberStyleOptions.onHoverDecrease;
96923b3eb3cSopenharmony_ci        }
97023b3eb3cSopenharmony_ci        if (this.numberStyleOptions.onFocusIncrease !== undefined) {
97123b3eb3cSopenharmony_ci            this.onFocusIncrease = this.numberStyleOptions.onFocusIncrease;
97223b3eb3cSopenharmony_ci        }
97323b3eb3cSopenharmony_ci        if (this.numberStyleOptions.onFocusDecrease !== undefined) {
97423b3eb3cSopenharmony_ci            this.onFocusDecrease = this.numberStyleOptions.onFocusDecrease;
97523b3eb3cSopenharmony_ci        }
97623b3eb3cSopenharmony_ci        if (this.numberStyleOptions.onBlurIncrease !== undefined) {
97723b3eb3cSopenharmony_ci            this.onBlurIncrease = this.numberStyleOptions.onBlurIncrease;
97823b3eb3cSopenharmony_ci        }
97923b3eb3cSopenharmony_ci        if (this.numberStyleOptions.onBlurDecrease !== undefined) {
98023b3eb3cSopenharmony_ci            this.onBlurDecrease = this.numberStyleOptions.onBlurDecrease;
98123b3eb3cSopenharmony_ci        }
98223b3eb3cSopenharmony_ci        if (this.numberStyleOptions.onChange !== undefined) {
98323b3eb3cSopenharmony_ci            this.onChange = this.numberStyleOptions.onChange;
98423b3eb3cSopenharmony_ci        }
98523b3eb3cSopenharmony_ci        if (this.numberStyleOptions.focusable !== undefined) {
98623b3eb3cSopenharmony_ci            this.focusEnable = this.numberStyleOptions.focusable;
98723b3eb3cSopenharmony_ci        }
98823b3eb3cSopenharmony_ci    }
98923b3eb3cSopenharmony_ci
99023b3eb3cSopenharmony_ci    updateInlineStyleOptions() {
99123b3eb3cSopenharmony_ci        if (this.value === undefined) {
99223b3eb3cSopenharmony_ci            this.value = this.inlineStyleOptions.value !== undefined ? this.inlineStyleOptions.value : 0;
99323b3eb3cSopenharmony_ci            this.onChange?.(this.value);
99423b3eb3cSopenharmony_ci            this.inputValue = this.value.toString();
99523b3eb3cSopenharmony_ci        }
99623b3eb3cSopenharmony_ci        if (this.inlineStyleOptions.min !== undefined) {
99723b3eb3cSopenharmony_ci            this.min = this.inlineStyleOptions.min;
99823b3eb3cSopenharmony_ci        }
99923b3eb3cSopenharmony_ci        if (this.inlineStyleOptions.max !== undefined) {
100023b3eb3cSopenharmony_ci            this.max = this.inlineStyleOptions.max;
100123b3eb3cSopenharmony_ci        }
100223b3eb3cSopenharmony_ci        if (this.min > this.max) {
100323b3eb3cSopenharmony_ci            this.min = this.max;
100423b3eb3cSopenharmony_ci        }
100523b3eb3cSopenharmony_ci        if (this.inlineStyleOptions.textWidth !== undefined) {
100623b3eb3cSopenharmony_ci            this.textWidth = this.inlineStyleOptions.textWidth;
100723b3eb3cSopenharmony_ci            if (this.textWidth < 0) {
100823b3eb3cSopenharmony_ci                this.textWidth = 0;
100923b3eb3cSopenharmony_ci            }
101023b3eb3cSopenharmony_ci            this.hasTextWidth = true;
101123b3eb3cSopenharmony_ci        }
101223b3eb3cSopenharmony_ci        if (this.value <= this.min) {
101323b3eb3cSopenharmony_ci            this.value = this.min;
101423b3eb3cSopenharmony_ci            this.onChange?.(this.value);
101523b3eb3cSopenharmony_ci            this.inputValue = this.value.toString();
101623b3eb3cSopenharmony_ci        }
101723b3eb3cSopenharmony_ci        if (this.value >= this.max) {
101823b3eb3cSopenharmony_ci            this.value = this.max;
101923b3eb3cSopenharmony_ci            this.onChange?.(this.value);
102023b3eb3cSopenharmony_ci            this.inputValue = this.value.toString();
102123b3eb3cSopenharmony_ci        }
102223b3eb3cSopenharmony_ci        if (this.inlineStyleOptions.step !== undefined) {
102323b3eb3cSopenharmony_ci            if (this.inlineStyleOptions.step < 1) {
102423b3eb3cSopenharmony_ci                this.step = 1;
102523b3eb3cSopenharmony_ci            }
102623b3eb3cSopenharmony_ci            else {
102723b3eb3cSopenharmony_ci                this.step = this.inlineStyleOptions.step;
102823b3eb3cSopenharmony_ci            }
102923b3eb3cSopenharmony_ci        }
103023b3eb3cSopenharmony_ci        this.updateButtonStatus();
103123b3eb3cSopenharmony_ci        this.updateInlineStyleOptionsEvent();
103223b3eb3cSopenharmony_ci    }
103323b3eb3cSopenharmony_ci
103423b3eb3cSopenharmony_ci    updateInlineStyleOptionsEvent() {
103523b3eb3cSopenharmony_ci        if (this.inlineStyleOptions.onHoverIncrease !== undefined) {
103623b3eb3cSopenharmony_ci            this.onHoverIncrease = this.inlineStyleOptions.onHoverIncrease;
103723b3eb3cSopenharmony_ci        }
103823b3eb3cSopenharmony_ci        if (this.inlineStyleOptions.onHoverDecrease !== undefined) {
103923b3eb3cSopenharmony_ci            this.onHoverDecrease = this.inlineStyleOptions.onHoverDecrease;
104023b3eb3cSopenharmony_ci        }
104123b3eb3cSopenharmony_ci        if (this.inlineStyleOptions.onChange !== undefined) {
104223b3eb3cSopenharmony_ci            this.onChange = this.inlineStyleOptions.onChange;
104323b3eb3cSopenharmony_ci        }
104423b3eb3cSopenharmony_ci        if (this.inlineStyleOptions.focusable !== undefined) {
104523b3eb3cSopenharmony_ci            this.focusEnable = this.inlineStyleOptions.focusable;
104623b3eb3cSopenharmony_ci        }
104723b3eb3cSopenharmony_ci    }
104823b3eb3cSopenharmony_ci
104923b3eb3cSopenharmony_ci    updateDateStyleOptions() {
105023b3eb3cSopenharmony_ci        if (this.dateStyleOptions.step !== undefined) {
105123b3eb3cSopenharmony_ci            if (this.dateStyleOptions.step < 1) {
105223b3eb3cSopenharmony_ci                this.step = 1;
105323b3eb3cSopenharmony_ci            }
105423b3eb3cSopenharmony_ci            else {
105523b3eb3cSopenharmony_ci                this.step = this.dateStyleOptions.step;
105623b3eb3cSopenharmony_ci            }
105723b3eb3cSopenharmony_ci        }
105823b3eb3cSopenharmony_ci        if (this.dateStyleOptions.onHoverIncrease !== undefined) {
105923b3eb3cSopenharmony_ci            this.onHoverIncrease = this.dateStyleOptions.onHoverIncrease;
106023b3eb3cSopenharmony_ci        }
106123b3eb3cSopenharmony_ci        if (this.dateStyleOptions.onHoverDecrease !== undefined) {
106223b3eb3cSopenharmony_ci            this.onHoverDecrease = this.dateStyleOptions.onHoverDecrease;
106323b3eb3cSopenharmony_ci        }
106423b3eb3cSopenharmony_ci        if (this.dateStyleOptions.year !== undefined &&
106523b3eb3cSopenharmony_ci            this.dateStyleOptions.year >= this.minYear &&
106623b3eb3cSopenharmony_ci            this.dateStyleOptions.year <= this.maxYear) {
106723b3eb3cSopenharmony_ci            if (this.year === 0) {
106823b3eb3cSopenharmony_ci                this.year = this.dateStyleOptions.year;
106923b3eb3cSopenharmony_ci            }
107023b3eb3cSopenharmony_ci        }
107123b3eb3cSopenharmony_ci        else {
107223b3eb3cSopenharmony_ci            this.year = CounterConstant.COUNTER_MIN_YEAR;
107323b3eb3cSopenharmony_ci        }
107423b3eb3cSopenharmony_ci        if (this.dateStyleOptions.month !== undefined &&
107523b3eb3cSopenharmony_ci            this.dateStyleOptions.month <= CounterConstant.COUNTER_MAX_MONTH &&
107623b3eb3cSopenharmony_ci            this.dateStyleOptions.month >= CounterConstant.COUNTER_MIN_MONTH) {
107723b3eb3cSopenharmony_ci            if (this.month === 0) {
107823b3eb3cSopenharmony_ci                this.month = this.dateStyleOptions.month;
107923b3eb3cSopenharmony_ci            }
108023b3eb3cSopenharmony_ci        }
108123b3eb3cSopenharmony_ci        else {
108223b3eb3cSopenharmony_ci            this.month = CounterConstant.COUNTER_INITIAL_MONTH;
108323b3eb3cSopenharmony_ci        }
108423b3eb3cSopenharmony_ci        if (this.dateStyleOptions.day !== undefined &&
108523b3eb3cSopenharmony_ci            this.dateStyleOptions.day <= this.getDayNumber() &&
108623b3eb3cSopenharmony_ci            this.dateStyleOptions.day >= CounterConstant.COUNTER_MIN_DAY) {
108723b3eb3cSopenharmony_ci            if (this.day === 0) {
108823b3eb3cSopenharmony_ci                this.day = this.dateStyleOptions.day;
108923b3eb3cSopenharmony_ci            }
109023b3eb3cSopenharmony_ci        }
109123b3eb3cSopenharmony_ci        else {
109223b3eb3cSopenharmony_ci            this.day = CounterConstant.COUNTER_INITIAL_DAY;
109323b3eb3cSopenharmony_ci        }
109423b3eb3cSopenharmony_ci        if (this.dateStyleOptions.onDateChange !== undefined) {
109523b3eb3cSopenharmony_ci            this.onDateChange = this.dateStyleOptions.onDateChange;
109623b3eb3cSopenharmony_ci        }
109723b3eb3cSopenharmony_ci        if (this.dateStyleOptions.focusable !== undefined) {
109823b3eb3cSopenharmony_ci            this.focusEnable = this.dateStyleOptions.focusable;
109923b3eb3cSopenharmony_ci        }
110023b3eb3cSopenharmony_ci        this.updateDay();
110123b3eb3cSopenharmony_ci    }
110223b3eb3cSopenharmony_ci
110323b3eb3cSopenharmony_ci    onOptionsChange() {
110423b3eb3cSopenharmony_ci        this.type = this.options.type;
110523b3eb3cSopenharmony_ci        if (this.options.direction) {
110623b3eb3cSopenharmony_ci            this.counterDirection = this.options.direction;
110723b3eb3cSopenharmony_ci        }
110823b3eb3cSopenharmony_ci        else {
110923b3eb3cSopenharmony_ci            this.counterDirection = Direction.Auto;
111023b3eb3cSopenharmony_ci        }
111123b3eb3cSopenharmony_ci        if (this.type === CounterType.LIST ||
111223b3eb3cSopenharmony_ci            this.type === CounterType.COMPACT) {
111323b3eb3cSopenharmony_ci            this.numberStyleOptions = this.options.numberOptions;
111423b3eb3cSopenharmony_ci            this.updateNumberStyleOptions();
111523b3eb3cSopenharmony_ci        }
111623b3eb3cSopenharmony_ci        else if (this.type === CounterType.INLINE) {
111723b3eb3cSopenharmony_ci            this.inlineStyleOptions = this.options.inlineOptions;
111823b3eb3cSopenharmony_ci            this.updateInlineStyleOptions();
111923b3eb3cSopenharmony_ci        }
112023b3eb3cSopenharmony_ci        else if (this.type === CounterType.INLINE_DATE) {
112123b3eb3cSopenharmony_ci            let y18 = this.options.dateOptions;
112223b3eb3cSopenharmony_ci            y18.year = y18.year ? y18.year : CounterConstant.COUNTER_MIN_YEAR;
112323b3eb3cSopenharmony_ci            y18.month = y18.month ? y18.month : CounterConstant.COUNTER_MIN_MONTH;
112423b3eb3cSopenharmony_ci            y18.day = y18.day ? y18.day : CounterConstant.COUNTER_MIN_DAY;
112523b3eb3cSopenharmony_ci            this.dateStyleOptions = y18;
112623b3eb3cSopenharmony_ci            this.updateDateStyleOptions();
112723b3eb3cSopenharmony_ci        }
112823b3eb3cSopenharmony_ci        else {
112923b3eb3cSopenharmony_ci        }
113023b3eb3cSopenharmony_ci    }
113123b3eb3cSopenharmony_ci
113223b3eb3cSopenharmony_ci    subValue() {
113323b3eb3cSopenharmony_ci        if (this.subBtnStateEffect) {
113423b3eb3cSopenharmony_ci            this.value -= this.step;
113523b3eb3cSopenharmony_ci        }
113623b3eb3cSopenharmony_ci        if (!this.addBtnStateEffect) {
113723b3eb3cSopenharmony_ci            this.addBtnStateEffect = true;
113823b3eb3cSopenharmony_ci            this.addOpacity = CounterResource.COUNTER_BUTTON_INITIAL_OPACITY;
113923b3eb3cSopenharmony_ci            this.addBtnEnabled = true;
114023b3eb3cSopenharmony_ci        }
114123b3eb3cSopenharmony_ci        if (this.value <= this.min) {
114223b3eb3cSopenharmony_ci            this.value = this.min;
114323b3eb3cSopenharmony_ci            this.subOpacity = CounterResource.COUNTER_BUTTON_DISABLE_OPACITY;
114423b3eb3cSopenharmony_ci            this.subBtnStateEffect = false;
114523b3eb3cSopenharmony_ci            this.subBtnEnabled = false;
114623b3eb3cSopenharmony_ci        }
114723b3eb3cSopenharmony_ci        else {
114823b3eb3cSopenharmony_ci            if (this.subOpacity === CounterResource.COUNTER_BUTTON_DISABLE_OPACITY) {
114923b3eb3cSopenharmony_ci                this.subOpacity = CounterResource.COUNTER_BUTTON_INITIAL_OPACITY;
115023b3eb3cSopenharmony_ci            }
115123b3eb3cSopenharmony_ci            if (!this.subBtnStateEffect) {
115223b3eb3cSopenharmony_ci                this.subBtnStateEffect = true;
115323b3eb3cSopenharmony_ci            }
115423b3eb3cSopenharmony_ci            if (!this.subBtnEnabled) {
115523b3eb3cSopenharmony_ci                this.subBtnEnabled = true;
115623b3eb3cSopenharmony_ci            }
115723b3eb3cSopenharmony_ci        }
115823b3eb3cSopenharmony_ci        this.focusText1();
115923b3eb3cSopenharmony_ci    }
116023b3eb3cSopenharmony_ci
116123b3eb3cSopenharmony_ci    focusText1() {
116223b3eb3cSopenharmony_ci        if (this.type === CounterType.INLINE) {
116323b3eb3cSopenharmony_ci            if (this.focusText === FocusText.NONE) {
116423b3eb3cSopenharmony_ci                this.focusText = FocusText.TEXT1;
116523b3eb3cSopenharmony_ci                this.hasFocusText1 = true;
116623b3eb3cSopenharmony_ci                this.focusWithTarget('InlineTextInput' + this.timeStamp.toString());
116723b3eb3cSopenharmony_ci            }
116823b3eb3cSopenharmony_ci        }
116923b3eb3cSopenharmony_ci    }
117023b3eb3cSopenharmony_ci
117123b3eb3cSopenharmony_ci    addValue() {
117223b3eb3cSopenharmony_ci        if (this.addBtnStateEffect) {
117323b3eb3cSopenharmony_ci            this.value += this.step;
117423b3eb3cSopenharmony_ci        }
117523b3eb3cSopenharmony_ci        if (!this.subBtnStateEffect) {
117623b3eb3cSopenharmony_ci            this.subBtnStateEffect = true;
117723b3eb3cSopenharmony_ci            this.subOpacity = CounterResource.COUNTER_BUTTON_INITIAL_OPACITY;
117823b3eb3cSopenharmony_ci            this.subBtnEnabled = true;
117923b3eb3cSopenharmony_ci        }
118023b3eb3cSopenharmony_ci        if (this.value >= this.max) {
118123b3eb3cSopenharmony_ci            this.value = this.max;
118223b3eb3cSopenharmony_ci            this.addOpacity = CounterResource.COUNTER_BUTTON_DISABLE_OPACITY;
118323b3eb3cSopenharmony_ci            this.addBtnStateEffect = false;
118423b3eb3cSopenharmony_ci            this.addBtnEnabled = false;
118523b3eb3cSopenharmony_ci        }
118623b3eb3cSopenharmony_ci        else {
118723b3eb3cSopenharmony_ci            if (this.addOpacity === CounterResource.COUNTER_BUTTON_DISABLE_OPACITY) {
118823b3eb3cSopenharmony_ci                this.addOpacity = CounterResource.COUNTER_BUTTON_INITIAL_OPACITY;
118923b3eb3cSopenharmony_ci            }
119023b3eb3cSopenharmony_ci            if (!this.addBtnStateEffect) {
119123b3eb3cSopenharmony_ci                this.addBtnStateEffect = true;
119223b3eb3cSopenharmony_ci            }
119323b3eb3cSopenharmony_ci            if (!this.addBtnEnabled) {
119423b3eb3cSopenharmony_ci                this.addBtnEnabled = true;
119523b3eb3cSopenharmony_ci            }
119623b3eb3cSopenharmony_ci        }
119723b3eb3cSopenharmony_ci        this.focusText1();
119823b3eb3cSopenharmony_ci    }
119923b3eb3cSopenharmony_ci
120023b3eb3cSopenharmony_ci    getDayNumber() {
120123b3eb3cSopenharmony_ci        switch (this.month) {
120223b3eb3cSopenharmony_ci            case CounterConstant.JANUARY:
120323b3eb3cSopenharmony_ci            case CounterConstant.MARCH:
120423b3eb3cSopenharmony_ci            case CounterConstant.MAY:
120523b3eb3cSopenharmony_ci            case CounterConstant.JULY:
120623b3eb3cSopenharmony_ci            case CounterConstant.AUGUST:
120723b3eb3cSopenharmony_ci            case CounterConstant.OCTOBER:
120823b3eb3cSopenharmony_ci            case CounterConstant.DECEMBER:
120923b3eb3cSopenharmony_ci                return CounterConstant.BIG_MONTH_DAYS;
121023b3eb3cSopenharmony_ci                break;
121123b3eb3cSopenharmony_ci            case CounterConstant.APRIL:
121223b3eb3cSopenharmony_ci            case CounterConstant.JUNE:
121323b3eb3cSopenharmony_ci            case CounterConstant.SEPTEMBER:
121423b3eb3cSopenharmony_ci            case CounterConstant.NOVEMBER:
121523b3eb3cSopenharmony_ci                return CounterConstant.SMALL_MONTH_DAYS;
121623b3eb3cSopenharmony_ci                break;
121723b3eb3cSopenharmony_ci            case CounterConstant.FEBRUARY:
121823b3eb3cSopenharmony_ci                if ((this.year % CounterConstant.AUSPICIOUS_FOUR === 0 &&
121923b3eb3cSopenharmony_ci                    this.year % CounterConstant.AUSPICIOUS_HUNDRED !== 0) ||
122023b3eb3cSopenharmony_ci                    this.year % CounterConstant.AUSPICIOUS_FOUR_HUNDRED === 0) {
122123b3eb3cSopenharmony_ci                    return CounterConstant.AUSPICIOUS_FEBRUARY_DAYS;
122223b3eb3cSopenharmony_ci                }
122323b3eb3cSopenharmony_ci                else {
122423b3eb3cSopenharmony_ci                    return CounterConstant.FEBRUARY_DAYS;
122523b3eb3cSopenharmony_ci                }
122623b3eb3cSopenharmony_ci                break;
122723b3eb3cSopenharmony_ci            default:
122823b3eb3cSopenharmony_ci                break;
122923b3eb3cSopenharmony_ci        }
123023b3eb3cSopenharmony_ci    }
123123b3eb3cSopenharmony_ci
123223b3eb3cSopenharmony_ci    subDate() {
123323b3eb3cSopenharmony_ci        if (this.focusText === FocusText.TEXT1) {
123423b3eb3cSopenharmony_ci            if (this.subBtnStateEffect) {
123523b3eb3cSopenharmony_ci                this.inputYear = this.year;
123623b3eb3cSopenharmony_ci                this.year -= this.step;
123723b3eb3cSopenharmony_ci                if (!this.hasFocusText1) {
123823b3eb3cSopenharmony_ci                    this.hasFocusText1 = true;
123923b3eb3cSopenharmony_ci                }
124023b3eb3cSopenharmony_ci            }
124123b3eb3cSopenharmony_ci            if (!this.addBtnStateEffect) {
124223b3eb3cSopenharmony_ci                this.addBtnStateEffect = true;
124323b3eb3cSopenharmony_ci                this.addOpacity = CounterResource.COUNTER_BUTTON_INITIAL_OPACITY;
124423b3eb3cSopenharmony_ci                this.addBtnEnabled = true;
124523b3eb3cSopenharmony_ci            }
124623b3eb3cSopenharmony_ci            if (this.year <= this.minYear) {
124723b3eb3cSopenharmony_ci                this.subOpacity = CounterResource.COUNTER_BUTTON_DISABLE_OPACITY;
124823b3eb3cSopenharmony_ci                this.subBtnStateEffect = false;
124923b3eb3cSopenharmony_ci                this.subBtnEnabled = false;
125023b3eb3cSopenharmony_ci            }
125123b3eb3cSopenharmony_ci            else {
125223b3eb3cSopenharmony_ci                if (this.subOpacity === CounterResource.COUNTER_BUTTON_DISABLE_OPACITY) {
125323b3eb3cSopenharmony_ci                    this.subOpacity = CounterResource.COUNTER_BUTTON_INITIAL_OPACITY;
125423b3eb3cSopenharmony_ci                }
125523b3eb3cSopenharmony_ci                if (!this.subBtnStateEffect) {
125623b3eb3cSopenharmony_ci                    this.subBtnStateEffect = true;
125723b3eb3cSopenharmony_ci                }
125823b3eb3cSopenharmony_ci                if (!this.subBtnEnabled) {
125923b3eb3cSopenharmony_ci                    this.subBtnEnabled = true;
126023b3eb3cSopenharmony_ci                }
126123b3eb3cSopenharmony_ci            }
126223b3eb3cSopenharmony_ci        }
126323b3eb3cSopenharmony_ci        else if (this.focusText === FocusText.TEXT2) {
126423b3eb3cSopenharmony_ci            this.month -= this.step % CounterConstant.COUNTER_MAX_MONTH;
126523b3eb3cSopenharmony_ci            if (this.month < CounterConstant.COUNTER_MIN_MONTH) {
126623b3eb3cSopenharmony_ci                this.month += CounterConstant.COUNTER_MAX_MONTH;
126723b3eb3cSopenharmony_ci            }
126823b3eb3cSopenharmony_ci            if (!this.hasFocusText2) {
126923b3eb3cSopenharmony_ci                this.hasFocusText2 = true;
127023b3eb3cSopenharmony_ci            }
127123b3eb3cSopenharmony_ci        }
127223b3eb3cSopenharmony_ci        else if (this.focusText === FocusText.TEXT3) {
127323b3eb3cSopenharmony_ci            this.day -= this.step % this.getDayNumber();
127423b3eb3cSopenharmony_ci            if (this.day < CounterConstant.COUNTER_MIN_DAY) {
127523b3eb3cSopenharmony_ci                this.day += this.getDayNumber();
127623b3eb3cSopenharmony_ci            }
127723b3eb3cSopenharmony_ci            if (!this.hasFocusText3) {
127823b3eb3cSopenharmony_ci                this.hasFocusText3 = true;
127923b3eb3cSopenharmony_ci            }
128023b3eb3cSopenharmony_ci        }
128123b3eb3cSopenharmony_ci        else {
128223b3eb3cSopenharmony_ci            this.focusDayWitdhSub();
128323b3eb3cSopenharmony_ci        }
128423b3eb3cSopenharmony_ci    }
128523b3eb3cSopenharmony_ci
128623b3eb3cSopenharmony_ci    focusDayWitdhSub() {
128723b3eb3cSopenharmony_ci        this.focusText = FocusText.TEXT3;
128823b3eb3cSopenharmony_ci        this.hasFocusText3 = true;
128923b3eb3cSopenharmony_ci        this.day -= this.step % this.getDayNumber();
129023b3eb3cSopenharmony_ci        if (this.day < CounterConstant.COUNTER_MIN_DAY) {
129123b3eb3cSopenharmony_ci            this.day += this.getDayNumber();
129223b3eb3cSopenharmony_ci        }
129323b3eb3cSopenharmony_ci        this.focusWithTarget('DateTextInput3' + this.timeStamp.toString());
129423b3eb3cSopenharmony_ci    }
129523b3eb3cSopenharmony_ci
129623b3eb3cSopenharmony_ci    addDate() {
129723b3eb3cSopenharmony_ci        if (this.focusText === FocusText.TEXT1) {
129823b3eb3cSopenharmony_ci            if (this.addBtnStateEffect) {
129923b3eb3cSopenharmony_ci                this.inputYear = this.year;
130023b3eb3cSopenharmony_ci                this.year += this.step;
130123b3eb3cSopenharmony_ci                if (!this.hasFocusText1) {
130223b3eb3cSopenharmony_ci                    this.hasFocusText1 = true;
130323b3eb3cSopenharmony_ci                }
130423b3eb3cSopenharmony_ci            }
130523b3eb3cSopenharmony_ci            if (!this.subBtnStateEffect) {
130623b3eb3cSopenharmony_ci                this.subBtnStateEffect = true;
130723b3eb3cSopenharmony_ci                this.subOpacity = CounterResource.COUNTER_BUTTON_INITIAL_OPACITY;
130823b3eb3cSopenharmony_ci                this.subBtnEnabled = true;
130923b3eb3cSopenharmony_ci            }
131023b3eb3cSopenharmony_ci            if (this.year >= this.maxYear) {
131123b3eb3cSopenharmony_ci                this.addOpacity = CounterResource.COUNTER_BUTTON_DISABLE_OPACITY;
131223b3eb3cSopenharmony_ci                this.addBtnStateEffect = false;
131323b3eb3cSopenharmony_ci                this.addBtnEnabled = false;
131423b3eb3cSopenharmony_ci            }
131523b3eb3cSopenharmony_ci            else {
131623b3eb3cSopenharmony_ci                if (this.addOpacity === CounterResource.COUNTER_BUTTON_DISABLE_OPACITY) {
131723b3eb3cSopenharmony_ci                    this.addOpacity = CounterResource.COUNTER_BUTTON_INITIAL_OPACITY;
131823b3eb3cSopenharmony_ci                }
131923b3eb3cSopenharmony_ci                if (!this.addBtnStateEffect) {
132023b3eb3cSopenharmony_ci                    this.addBtnStateEffect = true;
132123b3eb3cSopenharmony_ci                }
132223b3eb3cSopenharmony_ci                if (!this.addBtnEnabled) {
132323b3eb3cSopenharmony_ci                    this.addBtnEnabled = true;
132423b3eb3cSopenharmony_ci                }
132523b3eb3cSopenharmony_ci            }
132623b3eb3cSopenharmony_ci        }
132723b3eb3cSopenharmony_ci        else if (this.focusText === FocusText.TEXT2) {
132823b3eb3cSopenharmony_ci            this.month += this.step % CounterConstant.COUNTER_MAX_MONTH;
132923b3eb3cSopenharmony_ci            if (this.month > CounterConstant.COUNTER_MAX_MONTH) {
133023b3eb3cSopenharmony_ci                this.month -= CounterConstant.COUNTER_MAX_MONTH;
133123b3eb3cSopenharmony_ci            }
133223b3eb3cSopenharmony_ci            if (!this.hasFocusText2) {
133323b3eb3cSopenharmony_ci                this.hasFocusText2 = true;
133423b3eb3cSopenharmony_ci            }
133523b3eb3cSopenharmony_ci        }
133623b3eb3cSopenharmony_ci        else if (this.focusText === FocusText.TEXT3) {
133723b3eb3cSopenharmony_ci            this.day += this.step % this.getDayNumber();
133823b3eb3cSopenharmony_ci            if (this.day > this.getDayNumber()) {
133923b3eb3cSopenharmony_ci                this.day -= this.getDayNumber();
134023b3eb3cSopenharmony_ci            }
134123b3eb3cSopenharmony_ci            if (!this.hasFocusText3) {
134223b3eb3cSopenharmony_ci                this.hasFocusText3 = true;
134323b3eb3cSopenharmony_ci            }
134423b3eb3cSopenharmony_ci        }
134523b3eb3cSopenharmony_ci        else {
134623b3eb3cSopenharmony_ci            this.focusDayWithAdd();
134723b3eb3cSopenharmony_ci        }
134823b3eb3cSopenharmony_ci    }
134923b3eb3cSopenharmony_ci
135023b3eb3cSopenharmony_ci    focusDayWithAdd() {
135123b3eb3cSopenharmony_ci        this.focusText = FocusText.TEXT3;
135223b3eb3cSopenharmony_ci        this.hasFocusText3 = true;
135323b3eb3cSopenharmony_ci        this.day += this.step % this.getDayNumber();
135423b3eb3cSopenharmony_ci        if (this.day > this.getDayNumber()) {
135523b3eb3cSopenharmony_ci            this.day -= this.getDayNumber();
135623b3eb3cSopenharmony_ci        }
135723b3eb3cSopenharmony_ci        this.focusWithTarget('DateTextInput3' + this.timeStamp.toString());
135823b3eb3cSopenharmony_ci    }
135923b3eb3cSopenharmony_ci
136023b3eb3cSopenharmony_ci    updateInlineEnableSate() {
136123b3eb3cSopenharmony_ci        if (this.value >= this.max) {
136223b3eb3cSopenharmony_ci            this.addOpacity = CounterResource.COUNTER_BUTTON_DISABLE_OPACITY;
136323b3eb3cSopenharmony_ci            this.addBtnStateEffect = false;
136423b3eb3cSopenharmony_ci            this.addBtnEnabled = false;
136523b3eb3cSopenharmony_ci        }
136623b3eb3cSopenharmony_ci        else {
136723b3eb3cSopenharmony_ci            this.addOpacity = CounterResource.COUNTER_BUTTON_INITIAL_OPACITY;
136823b3eb3cSopenharmony_ci            this.addBtnStateEffect = true;
136923b3eb3cSopenharmony_ci            this.addBtnEnabled = true;
137023b3eb3cSopenharmony_ci        }
137123b3eb3cSopenharmony_ci        if (this.value <= this.min) {
137223b3eb3cSopenharmony_ci            this.subOpacity = CounterResource.COUNTER_BUTTON_DISABLE_OPACITY;
137323b3eb3cSopenharmony_ci            this.subBtnStateEffect = false;
137423b3eb3cSopenharmony_ci            this.subBtnEnabled = false;
137523b3eb3cSopenharmony_ci        }
137623b3eb3cSopenharmony_ci        else {
137723b3eb3cSopenharmony_ci            this.subOpacity = CounterResource.COUNTER_BUTTON_INITIAL_OPACITY;
137823b3eb3cSopenharmony_ci            this.subBtnStateEffect = true;
137923b3eb3cSopenharmony_ci            this.subBtnEnabled = true;
138023b3eb3cSopenharmony_ci        }
138123b3eb3cSopenharmony_ci    }
138223b3eb3cSopenharmony_ci
138323b3eb3cSopenharmony_ci    updateDateEnableSate() {
138423b3eb3cSopenharmony_ci        if (this.year === this.maxYear && this.focusText === FocusText.TEXT1) {
138523b3eb3cSopenharmony_ci            this.addOpacity = CounterResource.COUNTER_BUTTON_DISABLE_OPACITY;
138623b3eb3cSopenharmony_ci            this.addBtnStateEffect = false;
138723b3eb3cSopenharmony_ci            this.addBtnEnabled = false;
138823b3eb3cSopenharmony_ci        }
138923b3eb3cSopenharmony_ci        else {
139023b3eb3cSopenharmony_ci            if (this.addOpacity === CounterResource.COUNTER_BUTTON_DISABLE_OPACITY) {
139123b3eb3cSopenharmony_ci                this.addOpacity = CounterResource.COUNTER_BUTTON_INITIAL_OPACITY;
139223b3eb3cSopenharmony_ci            }
139323b3eb3cSopenharmony_ci            if (!this.addBtnStateEffect) {
139423b3eb3cSopenharmony_ci                this.addBtnStateEffect = true;
139523b3eb3cSopenharmony_ci            }
139623b3eb3cSopenharmony_ci            if (!this.addBtnEnabled) {
139723b3eb3cSopenharmony_ci                this.addBtnEnabled = true;
139823b3eb3cSopenharmony_ci            }
139923b3eb3cSopenharmony_ci        }
140023b3eb3cSopenharmony_ci        if (this.year === this.minYear && this.focusText === FocusText.TEXT1) {
140123b3eb3cSopenharmony_ci            this.subOpacity = CounterResource.COUNTER_BUTTON_DISABLE_OPACITY;
140223b3eb3cSopenharmony_ci            this.subBtnStateEffect = false;
140323b3eb3cSopenharmony_ci            this.subBtnEnabled = false;
140423b3eb3cSopenharmony_ci        }
140523b3eb3cSopenharmony_ci        else {
140623b3eb3cSopenharmony_ci            if (this.subOpacity === CounterResource.COUNTER_BUTTON_DISABLE_OPACITY) {
140723b3eb3cSopenharmony_ci                this.subOpacity = CounterResource.COUNTER_BUTTON_INITIAL_OPACITY;
140823b3eb3cSopenharmony_ci            }
140923b3eb3cSopenharmony_ci            if (!this.subBtnStateEffect) {
141023b3eb3cSopenharmony_ci                this.subBtnStateEffect = true;
141123b3eb3cSopenharmony_ci            }
141223b3eb3cSopenharmony_ci            if (!this.subBtnEnabled) {
141323b3eb3cSopenharmony_ci                this.subBtnEnabled = true;
141423b3eb3cSopenharmony_ci            }
141523b3eb3cSopenharmony_ci        }
141623b3eb3cSopenharmony_ci    }
141723b3eb3cSopenharmony_ci
141823b3eb3cSopenharmony_ci    updateDay() {
141923b3eb3cSopenharmony_ci        if (this.day > this.getDayNumber()) {
142023b3eb3cSopenharmony_ci            this.day = this.getDayNumber();
142123b3eb3cSopenharmony_ci        }
142223b3eb3cSopenharmony_ci    }
142323b3eb3cSopenharmony_ci
142423b3eb3cSopenharmony_ci    resetFocusText() {
142523b3eb3cSopenharmony_ci        this.focusText = FocusText.NONE;
142623b3eb3cSopenharmony_ci        this.hasFocusText1 = false;
142723b3eb3cSopenharmony_ci        this.hasFocusText2 = false;
142823b3eb3cSopenharmony_ci        this.hasFocusText3 = false;
142923b3eb3cSopenharmony_ci    }
143023b3eb3cSopenharmony_ci
143123b3eb3cSopenharmony_ci    resetFocusButton() {
143223b3eb3cSopenharmony_ci        if (this.addBtnFocusWidh === CounterResource.BUTTON_BORDER_FOCUSED_WIDTH) {
143323b3eb3cSopenharmony_ci            this.addBtnFocusWidh = CounterResource.BUTTON_BORDER_BLUR_WIDTH;
143423b3eb3cSopenharmony_ci            this.onBlurIncrease && this.onBlurIncrease();
143523b3eb3cSopenharmony_ci        }
143623b3eb3cSopenharmony_ci        if (this.subBtnFocusWidh === CounterResource.BUTTON_BORDER_FOCUSED_WIDTH) {
143723b3eb3cSopenharmony_ci            this.subBtnFocusWidh = CounterResource.BUTTON_BORDER_BLUR_WIDTH;
143823b3eb3cSopenharmony_ci            this.onBlurDecrease && this.onBlurDecrease();
143923b3eb3cSopenharmony_ci        }
144023b3eb3cSopenharmony_ci    }
144123b3eb3cSopenharmony_ci
144223b3eb3cSopenharmony_ci    homeFocusText() {
144323b3eb3cSopenharmony_ci        this.focusWithTarget('DateTextInput1' + this.timeStamp.toString());
144423b3eb3cSopenharmony_ci    }
144523b3eb3cSopenharmony_ci
144623b3eb3cSopenharmony_ci    endFocusText() {
144723b3eb3cSopenharmony_ci        this.focusWithTarget('DateTextInput3' + this.timeStamp.toString());
144823b3eb3cSopenharmony_ci    }
144923b3eb3cSopenharmony_ci
145023b3eb3cSopenharmony_ci    homeFirstValue() {
145123b3eb3cSopenharmony_ci        this.value = this.min;
145223b3eb3cSopenharmony_ci        if (!this.addBtnStateEffect) {
145323b3eb3cSopenharmony_ci            this.addBtnStateEffect = true;
145423b3eb3cSopenharmony_ci            this.addOpacity = CounterResource.COUNTER_BUTTON_INITIAL_OPACITY;
145523b3eb3cSopenharmony_ci            this.addBtnEnabled = true;
145623b3eb3cSopenharmony_ci        }
145723b3eb3cSopenharmony_ci    }
145823b3eb3cSopenharmony_ci
145923b3eb3cSopenharmony_ci    endLastValue() {
146023b3eb3cSopenharmony_ci        this.value = this.max;
146123b3eb3cSopenharmony_ci        if (!this.subBtnStateEffect) {
146223b3eb3cSopenharmony_ci            this.subBtnStateEffect = true;
146323b3eb3cSopenharmony_ci            this.subOpacity = CounterResource.COUNTER_BUTTON_INITIAL_OPACITY;
146423b3eb3cSopenharmony_ci            this.subBtnEnabled = true;
146523b3eb3cSopenharmony_ci        }
146623b3eb3cSopenharmony_ci    }
146723b3eb3cSopenharmony_ci
146823b3eb3cSopenharmony_ci    updateButtonStatus() {
146923b3eb3cSopenharmony_ci        if (this.value <= this.min) {
147023b3eb3cSopenharmony_ci            if (!this.addBtnStateEffect && this.max != this.min) {
147123b3eb3cSopenharmony_ci                this.addBtnStateEffect = true;
147223b3eb3cSopenharmony_ci                this.addOpacity = CounterResource.COUNTER_BUTTON_INITIAL_OPACITY;
147323b3eb3cSopenharmony_ci                this.addBtnEnabled = true;
147423b3eb3cSopenharmony_ci            }
147523b3eb3cSopenharmony_ci            this.subOpacity = CounterResource.COUNTER_BUTTON_DISABLE_OPACITY;
147623b3eb3cSopenharmony_ci            this.subBtnStateEffect = false;
147723b3eb3cSopenharmony_ci            this.subBtnEnabled = false;
147823b3eb3cSopenharmony_ci        }
147923b3eb3cSopenharmony_ci        if (this.value >= this.max) {
148023b3eb3cSopenharmony_ci            if (!this.subBtnStateEffect && this.max != this.min) {
148123b3eb3cSopenharmony_ci                this.subBtnStateEffect = true;
148223b3eb3cSopenharmony_ci                this.subOpacity = CounterResource.COUNTER_BUTTON_INITIAL_OPACITY;
148323b3eb3cSopenharmony_ci                this.subBtnEnabled = true;
148423b3eb3cSopenharmony_ci            }
148523b3eb3cSopenharmony_ci            this.addOpacity = CounterResource.COUNTER_BUTTON_DISABLE_OPACITY;
148623b3eb3cSopenharmony_ci            this.addBtnStateEffect = false;
148723b3eb3cSopenharmony_ci            this.addBtnEnabled = false;
148823b3eb3cSopenharmony_ci        }
148923b3eb3cSopenharmony_ci    }
149023b3eb3cSopenharmony_ci
149123b3eb3cSopenharmony_ci    getValue() {
149223b3eb3cSopenharmony_ci        if (this.inputValue == undefined) {
149323b3eb3cSopenharmony_ci            this.inputValue = '';
149423b3eb3cSopenharmony_ci        }
149523b3eb3cSopenharmony_ci        return this.hasInputText1 ? this.inputValue : this.value.toString();
149623b3eb3cSopenharmony_ci    }
149723b3eb3cSopenharmony_ci
149823b3eb3cSopenharmony_ci    getValueLength() {
149923b3eb3cSopenharmony_ci        return this.getValue().length > 0 ? this.getValue().length : 1;
150023b3eb3cSopenharmony_ci    }
150123b3eb3cSopenharmony_ci
150223b3eb3cSopenharmony_ci    getYear() {
150323b3eb3cSopenharmony_ci        let x18 = this.year.toString();
150423b3eb3cSopenharmony_ci        if (x18.length === 1) {
150523b3eb3cSopenharmony_ci            x18 = '000' + x18;
150623b3eb3cSopenharmony_ci        }
150723b3eb3cSopenharmony_ci        else if (x18.length === 2) {
150823b3eb3cSopenharmony_ci            x18 = '00' + x18;
150923b3eb3cSopenharmony_ci        }
151023b3eb3cSopenharmony_ci        else if (x18.length === 3) {
151123b3eb3cSopenharmony_ci            x18 = '0' + x18;
151223b3eb3cSopenharmony_ci        }
151323b3eb3cSopenharmony_ci        else {
151423b3eb3cSopenharmony_ci            x18 = x18;
151523b3eb3cSopenharmony_ci        }
151623b3eb3cSopenharmony_ci        return x18;
151723b3eb3cSopenharmony_ci    }
151823b3eb3cSopenharmony_ci
151923b3eb3cSopenharmony_ci    focusWithTarget(u18) {
152023b3eb3cSopenharmony_ci        setTimeout(() => {
152123b3eb3cSopenharmony_ci            var w18 = focusControl.requestFocus(u18);
152223b3eb3cSopenharmony_ci            if (w18) {
152323b3eb3cSopenharmony_ci                console.log('Request success');
152423b3eb3cSopenharmony_ci            }
152523b3eb3cSopenharmony_ci            else {
152623b3eb3cSopenharmony_ci                console.log('Request failed');
152723b3eb3cSopenharmony_ci            }
152823b3eb3cSopenharmony_ci        });
152923b3eb3cSopenharmony_ci    }
153023b3eb3cSopenharmony_ci
153123b3eb3cSopenharmony_ci    focusCurrentText(t18) {
153223b3eb3cSopenharmony_ci        if (t18 === FocusText.TEXT1) {
153323b3eb3cSopenharmony_ci            if (this.focusText === FocusText.NONE) {
153423b3eb3cSopenharmony_ci                this.focusText = FocusText.TEXT1;
153523b3eb3cSopenharmony_ci            }
153623b3eb3cSopenharmony_ci            if (!this.hasFocusText1) {
153723b3eb3cSopenharmony_ci                this.hasFocusText1 = true;
153823b3eb3cSopenharmony_ci            }
153923b3eb3cSopenharmony_ci        }
154023b3eb3cSopenharmony_ci        else if (t18 === FocusText.TEXT2) {
154123b3eb3cSopenharmony_ci            if (this.focusText === FocusText.NONE) {
154223b3eb3cSopenharmony_ci                this.focusText = FocusText.TEXT2;
154323b3eb3cSopenharmony_ci            }
154423b3eb3cSopenharmony_ci            if (!this.hasFocusText2) {
154523b3eb3cSopenharmony_ci                this.hasFocusText2 = true;
154623b3eb3cSopenharmony_ci            }
154723b3eb3cSopenharmony_ci        }
154823b3eb3cSopenharmony_ci        else if (t18 === FocusText.TEXT3) {
154923b3eb3cSopenharmony_ci            if (this.focusText === FocusText.NONE) {
155023b3eb3cSopenharmony_ci                this.focusText = FocusText.TEXT3;
155123b3eb3cSopenharmony_ci            }
155223b3eb3cSopenharmony_ci            if (!this.hasFocusText3) {
155323b3eb3cSopenharmony_ci                this.hasFocusText3 = true;
155423b3eb3cSopenharmony_ci            }
155523b3eb3cSopenharmony_ci        }
155623b3eb3cSopenharmony_ci        else {
155723b3eb3cSopenharmony_ci        }
155823b3eb3cSopenharmony_ci    }
155923b3eb3cSopenharmony_ci
156023b3eb3cSopenharmony_ci    getMaxLength() {
156123b3eb3cSopenharmony_ci        if (this.max.toString().length > this.min.toString().length) {
156223b3eb3cSopenharmony_ci            return this.max.toString().length + 1;
156323b3eb3cSopenharmony_ci        }
156423b3eb3cSopenharmony_ci        else {
156523b3eb3cSopenharmony_ci            return this.min.toString().length + 1;
156623b3eb3cSopenharmony_ci        }
156723b3eb3cSopenharmony_ci    }
156823b3eb3cSopenharmony_ci
156923b3eb3cSopenharmony_ci    resourceToVp(r18) {
157023b3eb3cSopenharmony_ci        try {
157123b3eb3cSopenharmony_ci            if (r18.id !== -1) {
157223b3eb3cSopenharmony_ci                return px2vp(getContext(this).resourceManager.getNumber(r18.id));
157323b3eb3cSopenharmony_ci            }
157423b3eb3cSopenharmony_ci            else {
157523b3eb3cSopenharmony_ci                return px2vp(getContext(this)
157623b3eb3cSopenharmony_ci                    .resourceManager
157723b3eb3cSopenharmony_ci                    .getNumberByName((r18.params[0]).split('.')[2]));
157823b3eb3cSopenharmony_ci            }
157923b3eb3cSopenharmony_ci        }
158023b3eb3cSopenharmony_ci        catch (s18) {
158123b3eb3cSopenharmony_ci            return CounterResource.COUNTER_LIST_PADDING;
158223b3eb3cSopenharmony_ci        }
158323b3eb3cSopenharmony_ci    }
158423b3eb3cSopenharmony_ci
158523b3eb3cSopenharmony_ci    initialRender() {
158623b3eb3cSopenharmony_ci        this.observeComponentCreation2((g6, h6) => {
158723b3eb3cSopenharmony_ci            If.create();
158823b3eb3cSopenharmony_ci            if (this.type === CounterType.LIST) {
158923b3eb3cSopenharmony_ci                this.ifElseBranchUpdateFunction(0, () => {
159023b3eb3cSopenharmony_ci                    this.observeComponentCreation2((p18, q18) => {
159123b3eb3cSopenharmony_ci                        RelativeContainer.create();
159223b3eb3cSopenharmony_ci                        RelativeContainer.direction(this.counterDirection);
159323b3eb3cSopenharmony_ci                        RelativeContainer.width('100%');
159423b3eb3cSopenharmony_ci                        RelativeContainer.height(CounterResource.COUNTER_LIST_HEIGHT);
159523b3eb3cSopenharmony_ci                    }, RelativeContainer);
159623b3eb3cSopenharmony_ci                    this.observeComponentCreation2((n18, o18) => {
159723b3eb3cSopenharmony_ci                        Text.create(this.numberStyleOptions.label);
159823b3eb3cSopenharmony_ci                        Text.direction(this.counterDirection);
159923b3eb3cSopenharmony_ci                        Text.fontSize(CounterResource.COUNTER_LIST_LABEL_SIZE);
160023b3eb3cSopenharmony_ci                        Text.fontColor(CounterResource.COUNTER_TEXT_COLOR);
160123b3eb3cSopenharmony_ci                        Text.margin({
160223b3eb3cSopenharmony_ci                            start: LengthMetrics.vp(this.resourceToVp(CounterResource.COUNTER_LIST_LEFT_PADDING))
160323b3eb3cSopenharmony_ci                        });
160423b3eb3cSopenharmony_ci                        Text.alignRules({
160523b3eb3cSopenharmony_ci                            center: { anchor: '__container__', align: VerticalAlign.Center },
160623b3eb3cSopenharmony_ci                            start: { anchor: '__container__', align: HorizontalAlign.Start },
160723b3eb3cSopenharmony_ci                            end: { anchor: 'Row1', align: HorizontalAlign.Start }
160823b3eb3cSopenharmony_ci                        });
160923b3eb3cSopenharmony_ci                        Text.id('Text');
161023b3eb3cSopenharmony_ci                    }, Text);
161123b3eb3cSopenharmony_ci                    Text.pop();
161223b3eb3cSopenharmony_ci                    this.observeComponentCreation2((l18, m18) => {
161323b3eb3cSopenharmony_ci                        Row.create();
161423b3eb3cSopenharmony_ci                        Row.direction(this.counterDirection);
161523b3eb3cSopenharmony_ci                        Row.height(CounterResource.COUNTER_LIST_BUTTON_SIZE);
161623b3eb3cSopenharmony_ci                        Row.margin({
161723b3eb3cSopenharmony_ci                            end: LengthMetrics.vp(this.resourceToVp(CounterResource.COUNTER_LIST_RIGHT_PADDING))
161823b3eb3cSopenharmony_ci                        });
161923b3eb3cSopenharmony_ci                        Row.alignRules({
162023b3eb3cSopenharmony_ci                            center: { anchor: '__container__', align: VerticalAlign.Center },
162123b3eb3cSopenharmony_ci                            end: { anchor: '__container__', align: HorizontalAlign.End }
162223b3eb3cSopenharmony_ci                        });
162323b3eb3cSopenharmony_ci                        Row.tabIndex(0);
162423b3eb3cSopenharmony_ci                        Row.id('Row1');
162523b3eb3cSopenharmony_ci                    }, Row);
162623b3eb3cSopenharmony_ci                    this.observeComponentCreation2((j18, k18) => {
162723b3eb3cSopenharmony_ci                        Stack.create();
162823b3eb3cSopenharmony_ci                        Stack.direction(this.counterDirection);
162923b3eb3cSopenharmony_ci                        Stack.width(CounterResource.COUNTER_LIST_BUTTON_SIZE);
163023b3eb3cSopenharmony_ci                        Stack.height(CounterResource.COUNTER_LIST_BUTTON_SIZE);
163123b3eb3cSopenharmony_ci                        Stack.borderRadius(CounterResource.COUNTER_LIST_BUTTON_RADIUS);
163223b3eb3cSopenharmony_ci                        Stack.borderWidth(this.subBtnFocusWidh);
163323b3eb3cSopenharmony_ci                        Stack.borderColor(CounterResource.BUTTON_BORDER_FOCUSED_COLOR);
163423b3eb3cSopenharmony_ci                        Stack.clip(true);
163523b3eb3cSopenharmony_ci                    }, Stack);
163623b3eb3cSopenharmony_ci                    this.observeComponentCreation2((h18, i18) => {
163723b3eb3cSopenharmony_ci                        Image.create(CounterResource.BUTTON_SUB_ICON);
163823b3eb3cSopenharmony_ci                        Image.direction(this.counterDirection);
163923b3eb3cSopenharmony_ci                        Image.width(CounterResource.COUNTER_LIST_BUTTON_ICON_SIZE);
164023b3eb3cSopenharmony_ci                        Image.height(CounterResource.COUNTER_LIST_BUTTON_ICON_SIZE);
164123b3eb3cSopenharmony_ci                        Image.fillColor(CounterResource.BUTTON_ICON_COLOR);
164223b3eb3cSopenharmony_ci                        Image.opacity(this.subOpacity);
164323b3eb3cSopenharmony_ci                    }, Image);
164423b3eb3cSopenharmony_ci                    this.observeComponentCreation2((v17, w17) => {
164523b3eb3cSopenharmony_ci                        Button.createWithLabel({ type: ButtonType.Circle, stateEffect: this.subBtnStateEffect });
164623b3eb3cSopenharmony_ci                        Button.direction(this.counterDirection);
164723b3eb3cSopenharmony_ci                        Button.width(CounterResource.COUNTER_LIST_BUTTON_SIZE);
164823b3eb3cSopenharmony_ci                        Button.height(CounterResource.COUNTER_LIST_BUTTON_SIZE);
164923b3eb3cSopenharmony_ci                        Button.responseRegion({
165023b3eb3cSopenharmony_ci                            x: CounterResource.COUNTER_LIST_BUTTON_HOT_SPOT_X,
165123b3eb3cSopenharmony_ci                            y: CounterResource.COUNTER_LIST_BUTTON_HOT_SPOT_Y,
165223b3eb3cSopenharmony_ci                            width: '150%',
165323b3eb3cSopenharmony_ci                            height: '150%'
165423b3eb3cSopenharmony_ci                        });
165523b3eb3cSopenharmony_ci                        Button.groupDefaultFocus(true);
165623b3eb3cSopenharmony_ci                        Button.backgroundColor(CounterResource.BUTTON_BACKGROUD_COLOR);
165723b3eb3cSopenharmony_ci                        Button.opacity(this.subOpacity);
165823b3eb3cSopenharmony_ci                        Button.enabled(this.subBtnEnabled);
165923b3eb3cSopenharmony_ci                        Button.key('ListSubButton' + this.timeStamp.toString());
166023b3eb3cSopenharmony_ci                        Button.onKeyEvent((g18) => {
166123b3eb3cSopenharmony_ci                            this.subBtnFocusWidh = CounterResource.BUTTON_BORDER_FOCUSED_WIDTH;
166223b3eb3cSopenharmony_ci                            if (g18.keyCode === CounterConstant.KEYCODE_ESC) {
166323b3eb3cSopenharmony_ci                                this.resetFocusButton();
166423b3eb3cSopenharmony_ci                                g18.stopPropagation();
166523b3eb3cSopenharmony_ci                            }
166623b3eb3cSopenharmony_ci                            if (g18.type === KeyType.Down &&
166723b3eb3cSopenharmony_ci                                g18.keyCode === CounterConstant.KEYCODE_MOVE_HOME) {
166823b3eb3cSopenharmony_ci                                g18.stopPropagation();
166923b3eb3cSopenharmony_ci                                this.homeFirstValue();
167023b3eb3cSopenharmony_ci                                this.focusWithTarget('ListAddButton' + this.timeStamp.toString());
167123b3eb3cSopenharmony_ci                            }
167223b3eb3cSopenharmony_ci                            if (g18.type === KeyType.Down &&
167323b3eb3cSopenharmony_ci                                g18.keyCode === CounterConstant.KEYCODE_MOVE_END) {
167423b3eb3cSopenharmony_ci                                g18.stopPropagation();
167523b3eb3cSopenharmony_ci                                if (this.addBtnStateEffect) {
167623b3eb3cSopenharmony_ci                                    this.addBtnStateEffect = false;
167723b3eb3cSopenharmony_ci                                    this.addOpacity = CounterResource.COUNTER_BUTTON_DISABLE_OPACITY;
167823b3eb3cSopenharmony_ci                                    this.addBtnEnabled = false;
167923b3eb3cSopenharmony_ci                                }
168023b3eb3cSopenharmony_ci                                this.endLastValue();
168123b3eb3cSopenharmony_ci                                this.focusWithTarget('ListAddButton' + this.timeStamp.toString());
168223b3eb3cSopenharmony_ci                            }
168323b3eb3cSopenharmony_ci                        });
168423b3eb3cSopenharmony_ci                        Button.onClick((f18) => {
168523b3eb3cSopenharmony_ci                            this.subValue();
168623b3eb3cSopenharmony_ci                            this.onChange?.(ObservedObject.GetRawObject(this.value));
168723b3eb3cSopenharmony_ci                            if (f18.source === SourceType.Mouse ||
168823b3eb3cSopenharmony_ci                                f18.source === SourceType.TouchScreen) {
168923b3eb3cSopenharmony_ci                                this.subBtnFocusWidh = CounterResource.BUTTON_BORDER_BLUR_WIDTH;
169023b3eb3cSopenharmony_ci                            }
169123b3eb3cSopenharmony_ci                        });
169223b3eb3cSopenharmony_ci                        Gesture.create(GesturePriority.Low);
169323b3eb3cSopenharmony_ci                        LongPressGesture.create({ repeat: true });
169423b3eb3cSopenharmony_ci                        LongPressGesture.onAction((e18) => {
169523b3eb3cSopenharmony_ci                            if (e18.repeat) {
169623b3eb3cSopenharmony_ci                                this.subValue();
169723b3eb3cSopenharmony_ci                                this.onChange?.(ObservedObject.GetRawObject(this.value));
169823b3eb3cSopenharmony_ci                            }
169923b3eb3cSopenharmony_ci                            this.subBtnFocusWidh = CounterResource.BUTTON_BORDER_BLUR_WIDTH;
170023b3eb3cSopenharmony_ci                        });
170123b3eb3cSopenharmony_ci                        LongPressGesture.pop();
170223b3eb3cSopenharmony_ci                        Gesture.pop();
170323b3eb3cSopenharmony_ci                        Button.hoverEffect(this.choverEffect);
170423b3eb3cSopenharmony_ci                        Button.onHover((d18) => {
170523b3eb3cSopenharmony_ci                            this.onHoverDecrease && this.onHoverDecrease(d18);
170623b3eb3cSopenharmony_ci                        });
170723b3eb3cSopenharmony_ci                        Button.focusable(this.focusEnable);
170823b3eb3cSopenharmony_ci                        Button.onFocus(() => {
170923b3eb3cSopenharmony_ci                            this.subBtnFocusWidh = CounterResource.BUTTON_BORDER_FOCUSED_WIDTH;
171023b3eb3cSopenharmony_ci                            this.onFocusDecrease && this.onFocusDecrease();
171123b3eb3cSopenharmony_ci                            this.updateButtonStatus();
171223b3eb3cSopenharmony_ci                        });
171323b3eb3cSopenharmony_ci                        Button.onBlur(() => {
171423b3eb3cSopenharmony_ci                            this.subBtnFocusWidh = CounterResource.BUTTON_BORDER_BLUR_WIDTH;
171523b3eb3cSopenharmony_ci                            this.onBlurDecrease && this.onBlurDecrease();
171623b3eb3cSopenharmony_ci                        });
171723b3eb3cSopenharmony_ci                    }, Button);
171823b3eb3cSopenharmony_ci                    Button.pop();
171923b3eb3cSopenharmony_ci                    Stack.pop();
172023b3eb3cSopenharmony_ci                    this.observeComponentCreation2((l17, m17) => {
172123b3eb3cSopenharmony_ci                        If.create();
172223b3eb3cSopenharmony_ci                        if (this.hasTextWidth) {
172323b3eb3cSopenharmony_ci                            this.ifElseBranchUpdateFunction(0, () => {
172423b3eb3cSopenharmony_ci                                this.observeComponentCreation2((t17, u17) => {
172523b3eb3cSopenharmony_ci                                    Text.create(this.value.toString());
172623b3eb3cSopenharmony_ci                                    Text.direction(this.counterDirection);
172723b3eb3cSopenharmony_ci                                    Text.width(this.textWidth.toString());
172823b3eb3cSopenharmony_ci                                    Text.textAlign(TextAlign.Center);
172923b3eb3cSopenharmony_ci                                    Text.fontSize(CounterResource.COUNTER_LIST_NUMBER_SIZE);
173023b3eb3cSopenharmony_ci                                    Text.fontColor(CounterResource.COUNTER_TEXT_COLOR);
173123b3eb3cSopenharmony_ci                                    Text.margin({
173223b3eb3cSopenharmony_ci                                        start: LengthMetrics.vp(CounterResource.COUNTER_LIST_BUTTON_TEXT_MARGIN),
173323b3eb3cSopenharmony_ci                                        end: LengthMetrics.vp(CounterResource.COUNTER_LIST_BUTTON_TEXT_MARGIN)
173423b3eb3cSopenharmony_ci                                    });
173523b3eb3cSopenharmony_ci                                }, Text);
173623b3eb3cSopenharmony_ci                                Text.pop();
173723b3eb3cSopenharmony_ci                            });
173823b3eb3cSopenharmony_ci                        }
173923b3eb3cSopenharmony_ci                        else {
174023b3eb3cSopenharmony_ci                            this.ifElseBranchUpdateFunction(1, () => {
174123b3eb3cSopenharmony_ci                                this.observeComponentCreation2((p17, q17) => {
174223b3eb3cSopenharmony_ci                                    Text.create(this.value.toString());
174323b3eb3cSopenharmony_ci                                    Text.direction(this.counterDirection);
174423b3eb3cSopenharmony_ci                                    Text.textAlign(TextAlign.Center);
174523b3eb3cSopenharmony_ci                                    Text.fontSize(CounterResource.COUNTER_LIST_NUMBER_SIZE);
174623b3eb3cSopenharmony_ci                                    Text.fontColor(CounterResource.COUNTER_TEXT_COLOR);
174723b3eb3cSopenharmony_ci                                    Text.margin({
174823b3eb3cSopenharmony_ci                                        start: LengthMetrics.vp(CounterResource.COUNTER_LIST_BUTTON_TEXT_MARGIN),
174923b3eb3cSopenharmony_ci                                        end: LengthMetrics.vp(CounterResource.COUNTER_LIST_BUTTON_TEXT_MARGIN)
175023b3eb3cSopenharmony_ci                                    });
175123b3eb3cSopenharmony_ci                                }, Text);
175223b3eb3cSopenharmony_ci                                Text.pop();
175323b3eb3cSopenharmony_ci                            });
175423b3eb3cSopenharmony_ci                        }
175523b3eb3cSopenharmony_ci                    }, If);
175623b3eb3cSopenharmony_ci                    If.pop();
175723b3eb3cSopenharmony_ci                    this.observeComponentCreation2((j17, k17) => {
175823b3eb3cSopenharmony_ci                        Stack.create();
175923b3eb3cSopenharmony_ci                        Stack.direction(this.counterDirection);
176023b3eb3cSopenharmony_ci                        Stack.width(CounterResource.COUNTER_LIST_BUTTON_SIZE);
176123b3eb3cSopenharmony_ci                        Stack.height(CounterResource.COUNTER_LIST_BUTTON_SIZE);
176223b3eb3cSopenharmony_ci                        Stack.borderRadius(CounterResource.COUNTER_LIST_BUTTON_RADIUS);
176323b3eb3cSopenharmony_ci                        Stack.borderWidth(this.addBtnFocusWidh);
176423b3eb3cSopenharmony_ci                        Stack.borderColor(CounterResource.BUTTON_BORDER_FOCUSED_COLOR);
176523b3eb3cSopenharmony_ci                        Stack.clip(true);
176623b3eb3cSopenharmony_ci                    }, Stack);
176723b3eb3cSopenharmony_ci                    this.observeComponentCreation2((h17, i17) => {
176823b3eb3cSopenharmony_ci                        Image.create(CounterResource.BUTTON_ADD_ICON);
176923b3eb3cSopenharmony_ci                        Image.direction(this.counterDirection);
177023b3eb3cSopenharmony_ci                        Image.width(CounterResource.COUNTER_LIST_BUTTON_ICON_SIZE);
177123b3eb3cSopenharmony_ci                        Image.height(CounterResource.COUNTER_LIST_BUTTON_ICON_SIZE);
177223b3eb3cSopenharmony_ci                        Image.fillColor(CounterResource.BUTTON_ICON_COLOR);
177323b3eb3cSopenharmony_ci                        Image.opacity(this.addOpacity);
177423b3eb3cSopenharmony_ci                    }, Image);
177523b3eb3cSopenharmony_ci                    this.observeComponentCreation2((v16, w16) => {
177623b3eb3cSopenharmony_ci                        Button.createWithLabel({ type: ButtonType.Circle, stateEffect: this.addBtnStateEffect });
177723b3eb3cSopenharmony_ci                        Button.direction(this.counterDirection);
177823b3eb3cSopenharmony_ci                        Button.width(CounterResource.COUNTER_LIST_BUTTON_SIZE);
177923b3eb3cSopenharmony_ci                        Button.height(CounterResource.COUNTER_LIST_BUTTON_SIZE);
178023b3eb3cSopenharmony_ci                        Button.responseRegion({
178123b3eb3cSopenharmony_ci                            x: CounterResource.COUNTER_LIST_BUTTON_HOT_SPOT_X,
178223b3eb3cSopenharmony_ci                            y: CounterResource.COUNTER_LIST_BUTTON_HOT_SPOT_Y,
178323b3eb3cSopenharmony_ci                            width: '150%',
178423b3eb3cSopenharmony_ci                            height: '150%'
178523b3eb3cSopenharmony_ci                        });
178623b3eb3cSopenharmony_ci                        Button.backgroundColor(CounterResource.BUTTON_BACKGROUD_COLOR);
178723b3eb3cSopenharmony_ci                        Button.opacity(this.addOpacity);
178823b3eb3cSopenharmony_ci                        Button.enabled(this.addBtnEnabled);
178923b3eb3cSopenharmony_ci                        Button.key('ListAddButton' + this.timeStamp.toString());
179023b3eb3cSopenharmony_ci                        Button.onKeyEvent((g17) => {
179123b3eb3cSopenharmony_ci                            this.addBtnFocusWidh = CounterResource.BUTTON_BORDER_FOCUSED_WIDTH;
179223b3eb3cSopenharmony_ci                            if (g17.keyCode === CounterConstant.KEYCODE_ESC) {
179323b3eb3cSopenharmony_ci                                this.resetFocusButton();
179423b3eb3cSopenharmony_ci                                g17.stopPropagation();
179523b3eb3cSopenharmony_ci                            }
179623b3eb3cSopenharmony_ci                            if (g17.type === KeyType.Down &&
179723b3eb3cSopenharmony_ci                                g17.keyCode === CounterConstant.KEYCODE_MOVE_HOME) {
179823b3eb3cSopenharmony_ci                                g17.stopPropagation();
179923b3eb3cSopenharmony_ci                                this.homeFirstValue();
180023b3eb3cSopenharmony_ci                                if (this.subBtnStateEffect) {
180123b3eb3cSopenharmony_ci                                    this.subBtnStateEffect = false;
180223b3eb3cSopenharmony_ci                                    this.subOpacity = CounterResource.COUNTER_BUTTON_DISABLE_OPACITY;
180323b3eb3cSopenharmony_ci                                    this.subBtnEnabled = false;
180423b3eb3cSopenharmony_ci                                }
180523b3eb3cSopenharmony_ci                                this.focusWithTarget('ListAddButton' + this.timeStamp.toString());
180623b3eb3cSopenharmony_ci                            }
180723b3eb3cSopenharmony_ci                            if (g17.type === KeyType.Down &&
180823b3eb3cSopenharmony_ci                                g17.keyCode === CounterConstant.KEYCODE_MOVE_END) {
180923b3eb3cSopenharmony_ci                                g17.stopPropagation();
181023b3eb3cSopenharmony_ci                                this.endLastValue();
181123b3eb3cSopenharmony_ci                                this.focusWithTarget('ListSubButton' + this.timeStamp.toString());
181223b3eb3cSopenharmony_ci                            }
181323b3eb3cSopenharmony_ci                        });
181423b3eb3cSopenharmony_ci                        Button.onClick((f17) => {
181523b3eb3cSopenharmony_ci                            this.addValue();
181623b3eb3cSopenharmony_ci                            this.onChange?.(ObservedObject.GetRawObject(this.value));
181723b3eb3cSopenharmony_ci                            if (f17.source === SourceType.Mouse ||
181823b3eb3cSopenharmony_ci                                f17.source === SourceType.TouchScreen) {
181923b3eb3cSopenharmony_ci                                this.addBtnFocusWidh = CounterResource.BUTTON_BORDER_BLUR_WIDTH;
182023b3eb3cSopenharmony_ci                            }
182123b3eb3cSopenharmony_ci                        });
182223b3eb3cSopenharmony_ci                        Gesture.create(GesturePriority.Low);
182323b3eb3cSopenharmony_ci                        LongPressGesture.create({ repeat: true });
182423b3eb3cSopenharmony_ci                        LongPressGesture.onAction((e17) => {
182523b3eb3cSopenharmony_ci                            if (e17.repeat) {
182623b3eb3cSopenharmony_ci                                this.addValue();
182723b3eb3cSopenharmony_ci                                this.onChange?.(ObservedObject.GetRawObject(this.value));
182823b3eb3cSopenharmony_ci                            }
182923b3eb3cSopenharmony_ci                            this.addBtnFocusWidh = CounterResource.BUTTON_BORDER_BLUR_WIDTH;
183023b3eb3cSopenharmony_ci                        });
183123b3eb3cSopenharmony_ci                        LongPressGesture.pop();
183223b3eb3cSopenharmony_ci                        Gesture.pop();
183323b3eb3cSopenharmony_ci                        Button.hoverEffect(this.choverEffect);
183423b3eb3cSopenharmony_ci                        Button.onHover((d17) => {
183523b3eb3cSopenharmony_ci                            this.onHoverIncrease && this.onHoverIncrease(d17);
183623b3eb3cSopenharmony_ci                        });
183723b3eb3cSopenharmony_ci                        Button.focusable(this.focusEnable);
183823b3eb3cSopenharmony_ci                        Button.onFocus(() => {
183923b3eb3cSopenharmony_ci                            this.addBtnFocusWidh = CounterResource.BUTTON_BORDER_FOCUSED_WIDTH;
184023b3eb3cSopenharmony_ci                            this.onFocusIncrease && this.onFocusIncrease();
184123b3eb3cSopenharmony_ci                            this.updateButtonStatus();
184223b3eb3cSopenharmony_ci                        });
184323b3eb3cSopenharmony_ci                        Button.onBlur(() => {
184423b3eb3cSopenharmony_ci                            this.addBtnFocusWidh = CounterResource.BUTTON_BORDER_BLUR_WIDTH;
184523b3eb3cSopenharmony_ci                            this.onBlurIncrease && this.onBlurIncrease();
184623b3eb3cSopenharmony_ci                        });
184723b3eb3cSopenharmony_ci                    }, Button);
184823b3eb3cSopenharmony_ci                    Button.pop();
184923b3eb3cSopenharmony_ci                    Stack.pop();
185023b3eb3cSopenharmony_ci                    Row.pop();
185123b3eb3cSopenharmony_ci                    RelativeContainer.pop();
185223b3eb3cSopenharmony_ci                });
185323b3eb3cSopenharmony_ci            }
185423b3eb3cSopenharmony_ci            else if (this.type === CounterType.COMPACT) {
185523b3eb3cSopenharmony_ci                this.ifElseBranchUpdateFunction(1, () => {
185623b3eb3cSopenharmony_ci                    this.observeComponentCreation2((i16, j16) => {
185723b3eb3cSopenharmony_ci                        Column.create();
185823b3eb3cSopenharmony_ci                    }, Column);
185923b3eb3cSopenharmony_ci                    this.observeComponentCreation2((g16, h16) => {
186023b3eb3cSopenharmony_ci                        Row.create();
186123b3eb3cSopenharmony_ci                        Row.direction(this.counterDirection);
186223b3eb3cSopenharmony_ci                        Row.tabIndex(0);
186323b3eb3cSopenharmony_ci                        Row.height(CounterResource.COUNTER_COMPACT_CONTAINER_HEIGHT);
186423b3eb3cSopenharmony_ci                        Row.align(Alignment.Center);
186523b3eb3cSopenharmony_ci                        Row.borderWidth(CounterResource.COUNTER_BORDER_WIDTH);
186623b3eb3cSopenharmony_ci                        Row.borderColor(CounterResource.COUNTER_BORDER_COLOR);
186723b3eb3cSopenharmony_ci                        Row.borderRadius(CounterResource.COUNTER_COMPACT_CONTAINER_RADIUS);
186823b3eb3cSopenharmony_ci                    }, Row);
186923b3eb3cSopenharmony_ci                    this.observeComponentCreation2((e16, f16) => {
187023b3eb3cSopenharmony_ci                        Stack.create();
187123b3eb3cSopenharmony_ci                        Stack.width(CounterResource.COUNTER_COMPACT_BUTTON_SIZE);
187223b3eb3cSopenharmony_ci                        Stack.height(CounterResource.COUNTER_COMPACT_BUTTON_SIZE);
187323b3eb3cSopenharmony_ci                        Stack.borderRadius(CounterResource.COUNTER_COMPACT_BUTTON_RADIUS);
187423b3eb3cSopenharmony_ci                        Stack.borderWidth(this.subBtnFocusWidh);
187523b3eb3cSopenharmony_ci                        Stack.borderColor(CounterResource.BUTTON_BORDER_FOCUSED_COLOR);
187623b3eb3cSopenharmony_ci                        Stack.margin({ start: LengthMetrics.vp(1) });
187723b3eb3cSopenharmony_ci                        Stack.clip(true);
187823b3eb3cSopenharmony_ci                    }, Stack);
187923b3eb3cSopenharmony_ci                    this.observeComponentCreation2((c16, d16) => {
188023b3eb3cSopenharmony_ci                        Image.create(CounterResource.BUTTON_SUB_ICON);
188123b3eb3cSopenharmony_ci                        Image.direction(this.counterDirection);
188223b3eb3cSopenharmony_ci                        Image.width(CounterResource.COUNTER_COMPACT_BUTTON_ICON_SIZE);
188323b3eb3cSopenharmony_ci                        Image.height(CounterResource.COUNTER_COMPACT_BUTTON_ICON_SIZE);
188423b3eb3cSopenharmony_ci                        Image.fillColor(CounterResource.BUTTON_ICON_COLOR);
188523b3eb3cSopenharmony_ci                        Image.opacity(this.subOpacity);
188623b3eb3cSopenharmony_ci                    }, Image);
188723b3eb3cSopenharmony_ci                    this.observeComponentCreation2((q15, r15) => {
188823b3eb3cSopenharmony_ci                        Button.createWithLabel({ type: ButtonType.Circle, stateEffect: this.subBtnStateEffect });
188923b3eb3cSopenharmony_ci                        Button.direction(this.counterDirection);
189023b3eb3cSopenharmony_ci                        Button.width(CounterResource.COUNTER_COMPACT_BUTTON_SIZE);
189123b3eb3cSopenharmony_ci                        Button.height(CounterResource.COUNTER_COMPACT_BUTTON_SIZE);
189223b3eb3cSopenharmony_ci                        Button.backgroundColor(CounterResource.BUTTON_BACKGROUD_COLOR);
189323b3eb3cSopenharmony_ci                        Button.opacity(this.subOpacity);
189423b3eb3cSopenharmony_ci                        Button.enabled(this.subBtnEnabled);
189523b3eb3cSopenharmony_ci                        Button.key('CompactSubButton' + this.timeStamp.toString());
189623b3eb3cSopenharmony_ci                        Button.onKeyEvent((b16) => {
189723b3eb3cSopenharmony_ci                            this.subBtnFocusWidh = CounterResource.BUTTON_BORDER_FOCUSED_WIDTH;
189823b3eb3cSopenharmony_ci                            if (b16.keyCode === CounterConstant.KEYCODE_ESC) {
189923b3eb3cSopenharmony_ci                                this.resetFocusButton();
190023b3eb3cSopenharmony_ci                                b16.stopPropagation();
190123b3eb3cSopenharmony_ci                            }
190223b3eb3cSopenharmony_ci                            if (b16.type === KeyType.Down &&
190323b3eb3cSopenharmony_ci                                b16.keyCode === CounterConstant.KEYCODE_MOVE_HOME) {
190423b3eb3cSopenharmony_ci                                b16.stopPropagation();
190523b3eb3cSopenharmony_ci                                this.homeFirstValue();
190623b3eb3cSopenharmony_ci                                this.focusWithTarget('CompactAddButton' + this.timeStamp.toString());
190723b3eb3cSopenharmony_ci                            }
190823b3eb3cSopenharmony_ci                            if (b16.type === KeyType.Down &&
190923b3eb3cSopenharmony_ci                                b16.keyCode === CounterConstant.KEYCODE_MOVE_END) {
191023b3eb3cSopenharmony_ci                                b16.stopPropagation();
191123b3eb3cSopenharmony_ci                                this.endLastValue();
191223b3eb3cSopenharmony_ci                                if (this.addBtnStateEffect) {
191323b3eb3cSopenharmony_ci                                    this.addBtnStateEffect = false;
191423b3eb3cSopenharmony_ci                                    this.addOpacity = CounterResource.COUNTER_BUTTON_DISABLE_OPACITY;
191523b3eb3cSopenharmony_ci                                    this.addBtnEnabled = false;
191623b3eb3cSopenharmony_ci                                }
191723b3eb3cSopenharmony_ci                                this.focusWithTarget('CompactSubButton' + this.timeStamp.toString());
191823b3eb3cSopenharmony_ci                            }
191923b3eb3cSopenharmony_ci                        });
192023b3eb3cSopenharmony_ci                        Button.onClick((a16) => {
192123b3eb3cSopenharmony_ci                            this.subValue();
192223b3eb3cSopenharmony_ci                            this.onChange?.(ObservedObject.GetRawObject(this.value));
192323b3eb3cSopenharmony_ci                            if (a16.source === SourceType.Mouse ||
192423b3eb3cSopenharmony_ci                                a16.source === SourceType.TouchScreen) {
192523b3eb3cSopenharmony_ci                                this.subBtnFocusWidh = CounterResource.BUTTON_BORDER_BLUR_WIDTH;
192623b3eb3cSopenharmony_ci                            }
192723b3eb3cSopenharmony_ci                        });
192823b3eb3cSopenharmony_ci                        Gesture.create(GesturePriority.Low);
192923b3eb3cSopenharmony_ci                        LongPressGesture.create({ repeat: true });
193023b3eb3cSopenharmony_ci                        LongPressGesture.onAction((z15) => {
193123b3eb3cSopenharmony_ci                            if (z15.repeat) {
193223b3eb3cSopenharmony_ci                                this.subValue();
193323b3eb3cSopenharmony_ci                                this.onChange?.(ObservedObject.GetRawObject(this.value));
193423b3eb3cSopenharmony_ci                            }
193523b3eb3cSopenharmony_ci                            if (z15.source === SourceType.Mouse ||
193623b3eb3cSopenharmony_ci                                z15.source === SourceType.TouchScreen) {
193723b3eb3cSopenharmony_ci                                this.subBtnFocusWidh = CounterResource.BUTTON_BORDER_BLUR_WIDTH;
193823b3eb3cSopenharmony_ci                            }
193923b3eb3cSopenharmony_ci                        });
194023b3eb3cSopenharmony_ci                        LongPressGesture.pop();
194123b3eb3cSopenharmony_ci                        Gesture.pop();
194223b3eb3cSopenharmony_ci                        Button.hoverEffect(this.choverEffect);
194323b3eb3cSopenharmony_ci                        Button.onHover((y15) => {
194423b3eb3cSopenharmony_ci                            this.onHoverDecrease && this.onHoverDecrease(y15);
194523b3eb3cSopenharmony_ci                        });
194623b3eb3cSopenharmony_ci                        Button.focusable(this.focusEnable);
194723b3eb3cSopenharmony_ci                        Button.groupDefaultFocus(true);
194823b3eb3cSopenharmony_ci                        Button.onFocus(() => {
194923b3eb3cSopenharmony_ci                            this.subBtnFocusWidh = CounterResource.BUTTON_BORDER_FOCUSED_WIDTH;
195023b3eb3cSopenharmony_ci                            this.onFocusDecrease && this.onFocusDecrease();
195123b3eb3cSopenharmony_ci                            this.updateButtonStatus();
195223b3eb3cSopenharmony_ci                        });
195323b3eb3cSopenharmony_ci                        Button.onBlur(() => {
195423b3eb3cSopenharmony_ci                            this.subBtnFocusWidh = CounterResource.BUTTON_BORDER_BLUR_WIDTH;
195523b3eb3cSopenharmony_ci                            this.onBlurDecrease && this.onBlurDecrease();
195623b3eb3cSopenharmony_ci                        });
195723b3eb3cSopenharmony_ci                    }, Button);
195823b3eb3cSopenharmony_ci                    Button.pop();
195923b3eb3cSopenharmony_ci                    Stack.pop();
196023b3eb3cSopenharmony_ci                    this.observeComponentCreation2((g15, h15) => {
196123b3eb3cSopenharmony_ci                        If.create();
196223b3eb3cSopenharmony_ci                        if (this.hasTextWidth) {
196323b3eb3cSopenharmony_ci                            this.ifElseBranchUpdateFunction(0, () => {
196423b3eb3cSopenharmony_ci                                this.observeComponentCreation2((o15, p15) => {
196523b3eb3cSopenharmony_ci                                    Text.create(this.value.toString());
196623b3eb3cSopenharmony_ci                                    Text.textAlign(TextAlign.Center);
196723b3eb3cSopenharmony_ci                                    Text.fontSize(CounterResource.COUNTER_NUMBER_SIZE);
196823b3eb3cSopenharmony_ci                                    Text.fontColor(CounterResource.COUNTER_TEXT_COLOR);
196923b3eb3cSopenharmony_ci                                    Text.width(this.textWidth.toString());
197023b3eb3cSopenharmony_ci                                    Text.margin({
197123b3eb3cSopenharmony_ci                                        start: LengthMetrics.vp(CounterResource.COUNTER_COMPACT_BUTTON_TEXT_MARGIN),
197223b3eb3cSopenharmony_ci                                        end: LengthMetrics.vp(CounterResource.COUNTER_COMPACT_BUTTON_TEXT_MARGIN)
197323b3eb3cSopenharmony_ci                                    });
197423b3eb3cSopenharmony_ci                                }, Text);
197523b3eb3cSopenharmony_ci                                Text.pop();
197623b3eb3cSopenharmony_ci                            });
197723b3eb3cSopenharmony_ci                        }
197823b3eb3cSopenharmony_ci                        else {
197923b3eb3cSopenharmony_ci                            this.ifElseBranchUpdateFunction(1, () => {
198023b3eb3cSopenharmony_ci                                this.observeComponentCreation2((k15, l15) => {
198123b3eb3cSopenharmony_ci                                    Text.create(this.value.toString());
198223b3eb3cSopenharmony_ci                                    Text.direction(this.counterDirection);
198323b3eb3cSopenharmony_ci                                    Text.textAlign(TextAlign.Center);
198423b3eb3cSopenharmony_ci                                    Text.fontSize(CounterResource.COUNTER_NUMBER_SIZE);
198523b3eb3cSopenharmony_ci                                    Text.fontColor(CounterResource.COUNTER_TEXT_COLOR);
198623b3eb3cSopenharmony_ci                                    Text.margin({
198723b3eb3cSopenharmony_ci                                        start: LengthMetrics.vp(CounterResource.COUNTER_COMPACT_BUTTON_TEXT_MARGIN),
198823b3eb3cSopenharmony_ci                                        end: LengthMetrics.vp(CounterResource.COUNTER_COMPACT_BUTTON_TEXT_MARGIN)
198923b3eb3cSopenharmony_ci                                    });
199023b3eb3cSopenharmony_ci                                }, Text);
199123b3eb3cSopenharmony_ci                                Text.pop();
199223b3eb3cSopenharmony_ci                            });
199323b3eb3cSopenharmony_ci                        }
199423b3eb3cSopenharmony_ci                    }, If);
199523b3eb3cSopenharmony_ci                    If.pop();
199623b3eb3cSopenharmony_ci                    this.observeComponentCreation2((e15, f15) => {
199723b3eb3cSopenharmony_ci                        Stack.create();
199823b3eb3cSopenharmony_ci                        Stack.direction(this.counterDirection);
199923b3eb3cSopenharmony_ci                        Stack.width(CounterResource.COUNTER_COMPACT_BUTTON_SIZE);
200023b3eb3cSopenharmony_ci                        Stack.height(CounterResource.COUNTER_COMPACT_BUTTON_SIZE);
200123b3eb3cSopenharmony_ci                        Stack.borderRadius(CounterResource.COUNTER_COMPACT_BUTTON_RADIUS);
200223b3eb3cSopenharmony_ci                        Stack.borderWidth(this.addBtnFocusWidh);
200323b3eb3cSopenharmony_ci                        Stack.borderColor(CounterResource.BUTTON_BORDER_FOCUSED_COLOR);
200423b3eb3cSopenharmony_ci                        Stack.margin({ end: LengthMetrics.vp(1) });
200523b3eb3cSopenharmony_ci                        Stack.clip(true);
200623b3eb3cSopenharmony_ci                    }, Stack);
200723b3eb3cSopenharmony_ci                    this.observeComponentCreation2((c15, d15) => {
200823b3eb3cSopenharmony_ci                        Image.create(CounterResource.BUTTON_ADD_ICON);
200923b3eb3cSopenharmony_ci                        Image.direction(this.counterDirection);
201023b3eb3cSopenharmony_ci                        Image.width(CounterResource.COUNTER_COMPACT_BUTTON_ICON_SIZE);
201123b3eb3cSopenharmony_ci                        Image.height(CounterResource.COUNTER_COMPACT_BUTTON_ICON_SIZE);
201223b3eb3cSopenharmony_ci                        Image.fillColor(CounterResource.BUTTON_ICON_COLOR);
201323b3eb3cSopenharmony_ci                        Image.opacity(this.addOpacity);
201423b3eb3cSopenharmony_ci                    }, Image);
201523b3eb3cSopenharmony_ci                    this.observeComponentCreation2((q14, r14) => {
201623b3eb3cSopenharmony_ci                        Button.createWithLabel({ type: ButtonType.Circle, stateEffect: this.addBtnStateEffect });
201723b3eb3cSopenharmony_ci                        Button.direction(this.counterDirection);
201823b3eb3cSopenharmony_ci                        Button.width(CounterResource.COUNTER_COMPACT_BUTTON_SIZE);
201923b3eb3cSopenharmony_ci                        Button.height(CounterResource.COUNTER_COMPACT_BUTTON_SIZE);
202023b3eb3cSopenharmony_ci                        Button.backgroundColor(CounterResource.BUTTON_BACKGROUD_COLOR);
202123b3eb3cSopenharmony_ci                        Button.opacity(this.addOpacity);
202223b3eb3cSopenharmony_ci                        Button.enabled(this.addBtnEnabled);
202323b3eb3cSopenharmony_ci                        Button.key('CompactAddButton' + this.timeStamp.toString());
202423b3eb3cSopenharmony_ci                        Button.onKeyEvent((b15) => {
202523b3eb3cSopenharmony_ci                            this.addBtnFocusWidh = CounterResource.BUTTON_BORDER_FOCUSED_WIDTH;
202623b3eb3cSopenharmony_ci                            if (b15.keyCode === CounterConstant.KEYCODE_ESC) {
202723b3eb3cSopenharmony_ci                                this.resetFocusButton();
202823b3eb3cSopenharmony_ci                                b15.stopPropagation();
202923b3eb3cSopenharmony_ci                            }
203023b3eb3cSopenharmony_ci                            if (b15.type === KeyType.Down &&
203123b3eb3cSopenharmony_ci                                b15.keyCode === CounterConstant.KEYCODE_MOVE_HOME) {
203223b3eb3cSopenharmony_ci                                b15.stopPropagation();
203323b3eb3cSopenharmony_ci                                this.homeFirstValue();
203423b3eb3cSopenharmony_ci                                if (this.subBtnStateEffect) {
203523b3eb3cSopenharmony_ci                                    this.subBtnStateEffect = false;
203623b3eb3cSopenharmony_ci                                    this.subOpacity = CounterResource.COUNTER_BUTTON_DISABLE_OPACITY;
203723b3eb3cSopenharmony_ci                                    this.subBtnEnabled = false;
203823b3eb3cSopenharmony_ci                                }
203923b3eb3cSopenharmony_ci                                this.focusWithTarget('CompactAddButton' + this.timeStamp.toString());
204023b3eb3cSopenharmony_ci                            }
204123b3eb3cSopenharmony_ci                            if (b15.type === KeyType.Down &&
204223b3eb3cSopenharmony_ci                                b15.keyCode === CounterConstant.KEYCODE_MOVE_END) {
204323b3eb3cSopenharmony_ci                                b15.stopPropagation();
204423b3eb3cSopenharmony_ci                                this.endLastValue();
204523b3eb3cSopenharmony_ci                                this.focusWithTarget('CompactSubButton' + this.timeStamp.toString());
204623b3eb3cSopenharmony_ci                            }
204723b3eb3cSopenharmony_ci                        });
204823b3eb3cSopenharmony_ci                        Button.onClick((a15) => {
204923b3eb3cSopenharmony_ci                            this.addValue();
205023b3eb3cSopenharmony_ci                            this.onChange?.(ObservedObject.GetRawObject(this.value));
205123b3eb3cSopenharmony_ci                            if (a15.source === SourceType.Mouse ||
205223b3eb3cSopenharmony_ci                                a15.source === SourceType.TouchScreen) {
205323b3eb3cSopenharmony_ci                                this.addBtnFocusWidh = CounterResource.BUTTON_BORDER_BLUR_WIDTH;
205423b3eb3cSopenharmony_ci                            }
205523b3eb3cSopenharmony_ci                        });
205623b3eb3cSopenharmony_ci                        Gesture.create(GesturePriority.Low);
205723b3eb3cSopenharmony_ci                        LongPressGesture.create({ repeat: true });
205823b3eb3cSopenharmony_ci                        LongPressGesture.onAction((z14) => {
205923b3eb3cSopenharmony_ci                            if (z14.repeat) {
206023b3eb3cSopenharmony_ci                                this.addValue();
206123b3eb3cSopenharmony_ci                                this.onChange?.(ObservedObject.GetRawObject(this.value));
206223b3eb3cSopenharmony_ci                            }
206323b3eb3cSopenharmony_ci                            if (z14.source === SourceType.Mouse ||
206423b3eb3cSopenharmony_ci                                z14.source === SourceType.TouchScreen) {
206523b3eb3cSopenharmony_ci                                this.addBtnFocusWidh = CounterResource.BUTTON_BORDER_BLUR_WIDTH;
206623b3eb3cSopenharmony_ci                            }
206723b3eb3cSopenharmony_ci                        });
206823b3eb3cSopenharmony_ci                        LongPressGesture.pop();
206923b3eb3cSopenharmony_ci                        Gesture.pop();
207023b3eb3cSopenharmony_ci                        Button.hoverEffect(this.choverEffect);
207123b3eb3cSopenharmony_ci                        Button.onHover((y14) => {
207223b3eb3cSopenharmony_ci                            this.onHoverIncrease && this.onHoverIncrease(y14);
207323b3eb3cSopenharmony_ci                        });
207423b3eb3cSopenharmony_ci                        Button.focusable(this.focusEnable);
207523b3eb3cSopenharmony_ci                        Button.onFocus(() => {
207623b3eb3cSopenharmony_ci                            this.addBtnFocusWidh = CounterResource.BUTTON_BORDER_FOCUSED_WIDTH;
207723b3eb3cSopenharmony_ci                            this.onFocusIncrease && this.onFocusIncrease();
207823b3eb3cSopenharmony_ci                            this.updateButtonStatus();
207923b3eb3cSopenharmony_ci                        });
208023b3eb3cSopenharmony_ci                        Button.onBlur(() => {
208123b3eb3cSopenharmony_ci                            this.addBtnFocusWidh = CounterResource.BUTTON_BORDER_BLUR_WIDTH;
208223b3eb3cSopenharmony_ci                            this.onBlurIncrease && this.onBlurIncrease();
208323b3eb3cSopenharmony_ci                        });
208423b3eb3cSopenharmony_ci                    }, Button);
208523b3eb3cSopenharmony_ci                    Button.pop();
208623b3eb3cSopenharmony_ci                    Stack.pop();
208723b3eb3cSopenharmony_ci                    Row.pop();
208823b3eb3cSopenharmony_ci                    this.observeComponentCreation2((o14, p14) => {
208923b3eb3cSopenharmony_ci                        Text.create(this.numberStyleOptions.label);
209023b3eb3cSopenharmony_ci                        Text.direction(this.counterDirection);
209123b3eb3cSopenharmony_ci                        Text.margin({ top: CounterResource.COUNTER_COMPACT_CONTAINER_LABEL_DISTANCE });
209223b3eb3cSopenharmony_ci                        Text.fontSize(CounterResource.COUNTER_COMPACT_LABEL_SIZE);
209323b3eb3cSopenharmony_ci                        Text.fontColor(CounterResource.COUNTER_TEXT_COLOR);
209423b3eb3cSopenharmony_ci                        Text.align(Alignment.Top);
209523b3eb3cSopenharmony_ci                    }, Text);
209623b3eb3cSopenharmony_ci                    Text.pop();
209723b3eb3cSopenharmony_ci                    Column.pop();
209823b3eb3cSopenharmony_ci                });
209923b3eb3cSopenharmony_ci            }
210023b3eb3cSopenharmony_ci            else if (this.type === CounterType.INLINE) {
210123b3eb3cSopenharmony_ci                this.ifElseBranchUpdateFunction(2, () => {
210223b3eb3cSopenharmony_ci                    this.observeComponentCreation2((b14, c14) => {
210323b3eb3cSopenharmony_ci                        Row.create();
210423b3eb3cSopenharmony_ci                        Row.direction(this.counterDirection);
210523b3eb3cSopenharmony_ci                        Row.height(CounterResource.COUNTER_INLINE_CONTAINER_HEIGHT);
210623b3eb3cSopenharmony_ci                        Row.borderWidth(CounterResource.COUNTER_BORDER_WIDTH);
210723b3eb3cSopenharmony_ci                        Row.borderColor(CounterResource.COUNTER_BORDER_COLOR);
210823b3eb3cSopenharmony_ci                        Row.borderRadius(CounterResource.COUNTER_INLINE_RADIUS);
210923b3eb3cSopenharmony_ci                        Row.clip(true);
211023b3eb3cSopenharmony_ci                    }, Row);
211123b3eb3cSopenharmony_ci                    this.observeComponentCreation2((j12, k12) => {
211223b3eb3cSopenharmony_ci                        If.create();
211323b3eb3cSopenharmony_ci                        if (this.hasTextWidth) {
211423b3eb3cSopenharmony_ci                            this.ifElseBranchUpdateFunction(0, () => {
211523b3eb3cSopenharmony_ci                                this.observeComponentCreation2((z13, a14) => {
211623b3eb3cSopenharmony_ci                                    RelativeContainer.create();
211723b3eb3cSopenharmony_ci                                    RelativeContainer.direction(this.counterDirection);
211823b3eb3cSopenharmony_ci                                    RelativeContainer.margin({
211923b3eb3cSopenharmony_ci                                        start: LengthMetrics.vp(CounterResource.COUNTER_INLINE_INPUT_TEXT_MARGIN),
212023b3eb3cSopenharmony_ci                                        end: LengthMetrics.vp(CounterResource.COUNTER_INLINE_INPUT_TEXT_MARGIN)
212123b3eb3cSopenharmony_ci                                    });
212223b3eb3cSopenharmony_ci                                    RelativeContainer.height('100%');
212323b3eb3cSopenharmony_ci                                    RelativeContainer.width(this.textWidth);
212423b3eb3cSopenharmony_ci                                }, RelativeContainer);
212523b3eb3cSopenharmony_ci                                this.observeComponentCreation2((j13, k13) => {
212623b3eb3cSopenharmony_ci                                    TextInput.create({
212723b3eb3cSopenharmony_ci                                        text: this.hasInputText1 ? this.inputValue : this.value.toString(),
212823b3eb3cSopenharmony_ci                                        controller: this.controller1
212923b3eb3cSopenharmony_ci                                    });
213023b3eb3cSopenharmony_ci                                    TextInput.alignRules({
213123b3eb3cSopenharmony_ci                                        center: { anchor: '__container__', align: VerticalAlign.Center },
213223b3eb3cSopenharmony_ci                                        middle: { anchor: '__container__', align: HorizontalAlign.Center }
213323b3eb3cSopenharmony_ci                                    });
213423b3eb3cSopenharmony_ci                                    TextInput.width(Math.min(this.getValueLength() * 9.6, this.textWidth));
213523b3eb3cSopenharmony_ci                                    TextInput.height('20vp');
213623b3eb3cSopenharmony_ci                                    TextInput.padding(0);
213723b3eb3cSopenharmony_ci                                    TextInput.borderRadius(0);
213823b3eb3cSopenharmony_ci                                    TextInput.textAlign(TextAlign.Center);
213923b3eb3cSopenharmony_ci                                    TextInput.type(InputType.PhoneNumber);
214023b3eb3cSopenharmony_ci                                    TextInput.caretColor(Color.Transparent);
214123b3eb3cSopenharmony_ci                                    TextInput.copyOption(CopyOptions.None);
214223b3eb3cSopenharmony_ci                                    TextInput.fontSize(CounterResource.COUNTER_NUMBER_SIZE);
214323b3eb3cSopenharmony_ci                                    TextInput.fontWeight(FontWeight.Medium);
214423b3eb3cSopenharmony_ci                                    TextInput.fontColor(this.hasFocusText1 ? Color.White : CounterResource.COUNTER_TEXT_COLOR);
214523b3eb3cSopenharmony_ci                                    TextInput.maxLength(this.getMaxLength());
214623b3eb3cSopenharmony_ci                                    TextInput.backgroundColor(this.hasFocusText1 ? CounterResource.BUTTON_BORDER_FOCUSED_COLOR : Color.Transparent);
214723b3eb3cSopenharmony_ci                                    TextInput.key('InlineTextInput' + this.timeStamp.toString());
214823b3eb3cSopenharmony_ci                                    TextInput.onKeyEvent((y13) => {
214923b3eb3cSopenharmony_ci                                        this.focusCurrentText(FocusText.TEXT1);
215023b3eb3cSopenharmony_ci                                        if (y13.keyCode === CounterConstant.KEYCODE_ESC) {
215123b3eb3cSopenharmony_ci                                            this.resetFocusText();
215223b3eb3cSopenharmony_ci                                            y13.stopPropagation();
215323b3eb3cSopenharmony_ci                                        }
215423b3eb3cSopenharmony_ci                                        if (y13.type === KeyType.Down &&
215523b3eb3cSopenharmony_ci                                            y13.keyCode === CounterConstant.KEYCODE_DPAD_UP) {
215623b3eb3cSopenharmony_ci                                            this.addValue();
215723b3eb3cSopenharmony_ci                                            y13.stopPropagation();
215823b3eb3cSopenharmony_ci                                        }
215923b3eb3cSopenharmony_ci                                        if (y13.type === KeyType.Down &&
216023b3eb3cSopenharmony_ci                                            y13.keyCode === CounterConstant.KEYCODE_MOVE_HOME) {
216123b3eb3cSopenharmony_ci                                            y13.stopPropagation();
216223b3eb3cSopenharmony_ci                                            this.focusWithTarget('InlineTextInput' + this.timeStamp.toString());
216323b3eb3cSopenharmony_ci                                        }
216423b3eb3cSopenharmony_ci                                        if (y13.type === KeyType.Down &&
216523b3eb3cSopenharmony_ci                                            y13.keyCode === CounterConstant.KEYCODE_MOVE_END) {
216623b3eb3cSopenharmony_ci                                            y13.stopPropagation();
216723b3eb3cSopenharmony_ci                                            this.focusWithTarget('InlineTextInput' + this.timeStamp.toString());
216823b3eb3cSopenharmony_ci                                        }
216923b3eb3cSopenharmony_ci                                        if (y13.type === KeyType.Down &&
217023b3eb3cSopenharmony_ci                                            y13.keyCode === CounterConstant.KEYCODE_DPAD_DOWN) {
217123b3eb3cSopenharmony_ci                                            this.subValue();
217223b3eb3cSopenharmony_ci                                            y13.stopPropagation();
217323b3eb3cSopenharmony_ci                                        }
217423b3eb3cSopenharmony_ci                                        if (y13.type === KeyType.Down &&
217523b3eb3cSopenharmony_ci                                            y13.keyCode === CounterConstant.KEYCODE_DPAD_LEFT) {
217623b3eb3cSopenharmony_ci                                            this.focusWithTarget('InlineTextInput' + this.timeStamp.toString());
217723b3eb3cSopenharmony_ci                                            y13.stopPropagation();
217823b3eb3cSopenharmony_ci                                        }
217923b3eb3cSopenharmony_ci                                        if (y13.type === KeyType.Down &&
218023b3eb3cSopenharmony_ci                                            y13.keyCode === CounterConstant.KEYCODE_DPAD_RIGHT) {
218123b3eb3cSopenharmony_ci                                            this.focusWithTarget('InlineTextInput' + this.timeStamp.toString());
218223b3eb3cSopenharmony_ci                                            y13.stopPropagation();
218323b3eb3cSopenharmony_ci                                        }
218423b3eb3cSopenharmony_ci                                    });
218523b3eb3cSopenharmony_ci                                    TextInput.onChange((t13) => {
218623b3eb3cSopenharmony_ci                                        this.inputValue = t13;
218723b3eb3cSopenharmony_ci                                        for (let w13 = 0; w13 < t13.length; w13++) {
218823b3eb3cSopenharmony_ci                                            let x13 = t13[w13];
218923b3eb3cSopenharmony_ci                                            if (x13 === '+' || x13 === '*' || x13 === '#') {
219023b3eb3cSopenharmony_ci                                                this.value -= 1;
219123b3eb3cSopenharmony_ci                                                this.value += 1;
219223b3eb3cSopenharmony_ci                                                this.inputValue = this.value.toString();
219323b3eb3cSopenharmony_ci                                                return;
219423b3eb3cSopenharmony_ci                                            }
219523b3eb3cSopenharmony_ci                                            if (x13 === '-' && w13 !== 0) {
219623b3eb3cSopenharmony_ci                                                this.inputValue = x13;
219723b3eb3cSopenharmony_ci                                                break;
219823b3eb3cSopenharmony_ci                                            }
219923b3eb3cSopenharmony_ci                                        }
220023b3eb3cSopenharmony_ci                                        this.hasInputText1 = true;
220123b3eb3cSopenharmony_ci                                        let u13 = t13[t13.length - 1];
220223b3eb3cSopenharmony_ci                                        if (t13.length === this.getMaxLength()) {
220323b3eb3cSopenharmony_ci                                            this.inputValue = u13;
220423b3eb3cSopenharmony_ci                                        }
220523b3eb3cSopenharmony_ci                                        if (this.timeoutID1 !== -1) {
220623b3eb3cSopenharmony_ci                                            clearTimeout(this.timeoutID1);
220723b3eb3cSopenharmony_ci                                            this.timeoutID1 = -1;
220823b3eb3cSopenharmony_ci                                        }
220923b3eb3cSopenharmony_ci                                        if (this.inputValue !== '' && Number(this.inputValue) <= this.max &&
221023b3eb3cSopenharmony_ci                                            Number(this.inputValue) >= this.min) {
221123b3eb3cSopenharmony_ci                                            this.value = Number(this.inputValue);
221223b3eb3cSopenharmony_ci                                            this.onChange?.(ObservedObject.GetRawObject(this.value));
221323b3eb3cSopenharmony_ci                                            this.hasInputText1 = false;
221423b3eb3cSopenharmony_ci                                        }
221523b3eb3cSopenharmony_ci                                        else {
221623b3eb3cSopenharmony_ci                                            if (Number(this.inputValue) > this.max ||
221723b3eb3cSopenharmony_ci                                                (Number(this.inputValue) < this.min &&
221823b3eb3cSopenharmony_ci                                                    this.inputValue.length <= this.min.toString().length)) {
221923b3eb3cSopenharmony_ci                                                this.inputValue = u13;
222023b3eb3cSopenharmony_ci                                            }
222123b3eb3cSopenharmony_ci                                            if (t13.length < this.getMaxLength()) {
222223b3eb3cSopenharmony_ci                                                this.timeoutID1 = setTimeout(() => {
222323b3eb3cSopenharmony_ci                                                    if (this.inputValue !== '' && Number(this.inputValue) <= this.max &&
222423b3eb3cSopenharmony_ci                                                        Number(this.inputValue) >= this.min) {
222523b3eb3cSopenharmony_ci                                                        this.value = Number(this.inputValue);
222623b3eb3cSopenharmony_ci                                                        this.onChange?.(ObservedObject.GetRawObject(this.value));
222723b3eb3cSopenharmony_ci                                                    }
222823b3eb3cSopenharmony_ci                                                    this.inputValue = this.value.toString();
222923b3eb3cSopenharmony_ci                                                    this.hasInputText1 = false;
223023b3eb3cSopenharmony_ci                                                    this.updateInlineEnableSate();
223123b3eb3cSopenharmony_ci                                                }, 1500);
223223b3eb3cSopenharmony_ci                                            }
223323b3eb3cSopenharmony_ci                                        }
223423b3eb3cSopenharmony_ci                                        this.updateInlineEnableSate();
223523b3eb3cSopenharmony_ci                                    });
223623b3eb3cSopenharmony_ci                                    TextInput.onSubmit((s13) => {
223723b3eb3cSopenharmony_ci                                        if (this.timeoutID1 != -1) {
223823b3eb3cSopenharmony_ci                                            clearTimeout(this.timeoutID1);
223923b3eb3cSopenharmony_ci                                            this.timeoutID1 = -1;
224023b3eb3cSopenharmony_ci                                        }
224123b3eb3cSopenharmony_ci                                        this.hasInputText1 = false;
224223b3eb3cSopenharmony_ci                                        this.value -= 1;
224323b3eb3cSopenharmony_ci                                        if (Number(this.inputValue) >= this.min && Number(this.inputValue) <= this.max) {
224423b3eb3cSopenharmony_ci                                            this.value = Number(this.inputValue);
224523b3eb3cSopenharmony_ci                                            this.onChange?.(ObservedObject.GetRawObject(this.value));
224623b3eb3cSopenharmony_ci                                            this.updateInlineEnableSate();
224723b3eb3cSopenharmony_ci                                        }
224823b3eb3cSopenharmony_ci                                        else {
224923b3eb3cSopenharmony_ci                                            this.value += 1;
225023b3eb3cSopenharmony_ci                                            this.inputValue = this.value.toString();
225123b3eb3cSopenharmony_ci                                        }
225223b3eb3cSopenharmony_ci                                    });
225323b3eb3cSopenharmony_ci                                    TextInput.focusable(true);
225423b3eb3cSopenharmony_ci                                    TextInput.focusOnTouch(true);
225523b3eb3cSopenharmony_ci                                    TextInput.onFocus(() => {
225623b3eb3cSopenharmony_ci                                        this.focusText = FocusText.TEXT1;
225723b3eb3cSopenharmony_ci                                        this.hasFocusText1 = true;
225823b3eb3cSopenharmony_ci                                        this.controller1.caretPosition(this.value.toString().length);
225923b3eb3cSopenharmony_ci                                    });
226023b3eb3cSopenharmony_ci                                    TextInput.onBlur(() => {
226123b3eb3cSopenharmony_ci                                        this.focusText = FocusText.NONE;
226223b3eb3cSopenharmony_ci                                        this.hasFocusText1 = false;
226323b3eb3cSopenharmony_ci                                    });
226423b3eb3cSopenharmony_ci                                    TextInput.onClick((r13) => {
226523b3eb3cSopenharmony_ci                                        this.focusText = FocusText.TEXT1;
226623b3eb3cSopenharmony_ci                                        this.hasFocusText1 = true;
226723b3eb3cSopenharmony_ci                                        this.focusWithTarget('InlineTextInput' + this.timeStamp.toString());
226823b3eb3cSopenharmony_ci                                        this.controller1.caretPosition(this.value.toString().length);
226923b3eb3cSopenharmony_ci                                    });
227023b3eb3cSopenharmony_ci                                }, TextInput);
227123b3eb3cSopenharmony_ci                                RelativeContainer.pop();
227223b3eb3cSopenharmony_ci                            });
227323b3eb3cSopenharmony_ci                        }
227423b3eb3cSopenharmony_ci                        else {
227523b3eb3cSopenharmony_ci                            this.ifElseBranchUpdateFunction(1, () => {
227623b3eb3cSopenharmony_ci                                this.observeComponentCreation2((e13, f13) => {
227723b3eb3cSopenharmony_ci                                    Row.create();
227823b3eb3cSopenharmony_ci                                    Row.direction(this.counterDirection);
227923b3eb3cSopenharmony_ci                                    Row.margin({
228023b3eb3cSopenharmony_ci                                        start: LengthMetrics.vp(CounterResource.COUNTER_INLINE_INPUT_TEXT_MARGIN),
228123b3eb3cSopenharmony_ci                                        end: LengthMetrics.vp(CounterResource.COUNTER_INLINE_INPUT_TEXT_MARGIN)
228223b3eb3cSopenharmony_ci                                    });
228323b3eb3cSopenharmony_ci                                }, Row);
228423b3eb3cSopenharmony_ci                                this.observeComponentCreation2((o12, p12) => {
228523b3eb3cSopenharmony_ci                                    TextInput.create({
228623b3eb3cSopenharmony_ci                                        text: this.hasInputText1 ? this.inputValue : this.value.toString(),
228723b3eb3cSopenharmony_ci                                        controller: this.controller1
228823b3eb3cSopenharmony_ci                                    });
228923b3eb3cSopenharmony_ci                                    TextInput.direction(this.counterDirection);
229023b3eb3cSopenharmony_ci                                    TextInput.width(this.getValueLength() * 9.6);
229123b3eb3cSopenharmony_ci                                    TextInput.height('20vp');
229223b3eb3cSopenharmony_ci                                    TextInput.padding(0);
229323b3eb3cSopenharmony_ci                                    TextInput.borderRadius(0);
229423b3eb3cSopenharmony_ci                                    TextInput.textAlign(TextAlign.Center);
229523b3eb3cSopenharmony_ci                                    TextInput.type(InputType.PhoneNumber);
229623b3eb3cSopenharmony_ci                                    TextInput.caretColor(Color.Transparent);
229723b3eb3cSopenharmony_ci                                    TextInput.copyOption(CopyOptions.None);
229823b3eb3cSopenharmony_ci                                    TextInput.fontSize(CounterResource.COUNTER_NUMBER_SIZE);
229923b3eb3cSopenharmony_ci                                    TextInput.fontWeight(FontWeight.Medium);
230023b3eb3cSopenharmony_ci                                    TextInput.fontColor(this.hasFocusText1 ? Color.White : CounterResource.COUNTER_TEXT_COLOR);
230123b3eb3cSopenharmony_ci                                    TextInput.maxLength(this.getMaxLength());
230223b3eb3cSopenharmony_ci                                    TextInput.backgroundColor(this.hasFocusText1 ? CounterResource.BUTTON_BORDER_FOCUSED_COLOR : Color.Transparent);
230323b3eb3cSopenharmony_ci                                    TextInput.key('InlineTextInput' + this.timeStamp.toString());
230423b3eb3cSopenharmony_ci                                    TextInput.onKeyEvent((d13) => {
230523b3eb3cSopenharmony_ci                                        this.focusCurrentText(FocusText.TEXT1);
230623b3eb3cSopenharmony_ci                                        if (d13.keyCode === CounterConstant.KEYCODE_ESC) {
230723b3eb3cSopenharmony_ci                                            this.resetFocusText();
230823b3eb3cSopenharmony_ci                                            d13.stopPropagation();
230923b3eb3cSopenharmony_ci                                        }
231023b3eb3cSopenharmony_ci                                        if (d13.type === KeyType.Down &&
231123b3eb3cSopenharmony_ci                                            d13.keyCode === CounterConstant.KEYCODE_DPAD_UP) {
231223b3eb3cSopenharmony_ci                                            this.addValue();
231323b3eb3cSopenharmony_ci                                            d13.stopPropagation();
231423b3eb3cSopenharmony_ci                                        }
231523b3eb3cSopenharmony_ci                                        if (d13.type === KeyType.Down &&
231623b3eb3cSopenharmony_ci                                            d13.keyCode === CounterConstant.KEYCODE_DPAD_DOWN) {
231723b3eb3cSopenharmony_ci                                            this.subValue();
231823b3eb3cSopenharmony_ci                                            d13.stopPropagation();
231923b3eb3cSopenharmony_ci                                        }
232023b3eb3cSopenharmony_ci                                        if (d13.type === KeyType.Down &&
232123b3eb3cSopenharmony_ci                                            d13.keyCode === CounterConstant.KEYCODE_DPAD_LEFT) {
232223b3eb3cSopenharmony_ci                                            this.focusWithTarget('InlineTextInput' + this.timeStamp.toString());
232323b3eb3cSopenharmony_ci                                            d13.stopPropagation();
232423b3eb3cSopenharmony_ci                                        }
232523b3eb3cSopenharmony_ci                                        if (d13.type === KeyType.Down &&
232623b3eb3cSopenharmony_ci                                            d13.keyCode === CounterConstant.KEYCODE_DPAD_RIGHT) {
232723b3eb3cSopenharmony_ci                                            this.focusWithTarget('InlineTextInput' + this.timeStamp.toString());
232823b3eb3cSopenharmony_ci                                            d13.stopPropagation();
232923b3eb3cSopenharmony_ci                                        }
233023b3eb3cSopenharmony_ci                                    });
233123b3eb3cSopenharmony_ci                                    TextInput.onChange((y12) => {
233223b3eb3cSopenharmony_ci                                        this.inputValue = y12;
233323b3eb3cSopenharmony_ci                                        for (let b13 = 0; b13 < y12.length; b13++) {
233423b3eb3cSopenharmony_ci                                            let c13 = y12[b13];
233523b3eb3cSopenharmony_ci                                            if (c13 === '+' || c13 === '*' || c13 === '#') {
233623b3eb3cSopenharmony_ci                                                this.value -= 1;
233723b3eb3cSopenharmony_ci                                                this.value += 1;
233823b3eb3cSopenharmony_ci                                                this.inputValue = this.value.toString();
233923b3eb3cSopenharmony_ci                                                return;
234023b3eb3cSopenharmony_ci                                            }
234123b3eb3cSopenharmony_ci                                            if (c13 === '-' && b13 !== 0) {
234223b3eb3cSopenharmony_ci                                                this.inputValue = c13;
234323b3eb3cSopenharmony_ci                                                break;
234423b3eb3cSopenharmony_ci                                            }
234523b3eb3cSopenharmony_ci                                        }
234623b3eb3cSopenharmony_ci                                        this.hasInputText1 = true;
234723b3eb3cSopenharmony_ci                                        let z12 = y12[y12.length - 1];
234823b3eb3cSopenharmony_ci                                        if (y12.length === this.getMaxLength()) {
234923b3eb3cSopenharmony_ci                                            this.inputValue = z12;
235023b3eb3cSopenharmony_ci                                        }
235123b3eb3cSopenharmony_ci                                        if (this.timeoutID1 !== -1) {
235223b3eb3cSopenharmony_ci                                            clearTimeout(this.timeoutID1);
235323b3eb3cSopenharmony_ci                                            this.timeoutID1 = -1;
235423b3eb3cSopenharmony_ci                                        }
235523b3eb3cSopenharmony_ci                                        if (this.inputValue !== '' && Number(this.inputValue) <= this.max &&
235623b3eb3cSopenharmony_ci                                            Number(this.inputValue) >= this.min) {
235723b3eb3cSopenharmony_ci                                            this.value = Number(this.inputValue);
235823b3eb3cSopenharmony_ci                                            this.onChange?.(ObservedObject.GetRawObject(this.value));
235923b3eb3cSopenharmony_ci                                            this.hasInputText1 = false;
236023b3eb3cSopenharmony_ci                                        }
236123b3eb3cSopenharmony_ci                                        else {
236223b3eb3cSopenharmony_ci                                            if (Number(this.inputValue) > this.max ||
236323b3eb3cSopenharmony_ci                                                (Number(this.inputValue) < this.min &&
236423b3eb3cSopenharmony_ci                                                    this.inputValue.length <= this.min.toString().length)) {
236523b3eb3cSopenharmony_ci                                                this.inputValue = z12;
236623b3eb3cSopenharmony_ci                                            }
236723b3eb3cSopenharmony_ci                                            if (y12.length < this.getMaxLength()) {
236823b3eb3cSopenharmony_ci                                                this.timeoutID1 = setTimeout(() => {
236923b3eb3cSopenharmony_ci                                                    if (this.inputValue !== '' && Number(this.inputValue) <= this.max &&
237023b3eb3cSopenharmony_ci                                                        Number(this.inputValue) >= this.min) {
237123b3eb3cSopenharmony_ci                                                        this.value = Number(this.inputValue);
237223b3eb3cSopenharmony_ci                                                        this.onChange?.(ObservedObject.GetRawObject(this.value));
237323b3eb3cSopenharmony_ci                                                    }
237423b3eb3cSopenharmony_ci                                                    this.inputValue = this.value.toString();
237523b3eb3cSopenharmony_ci                                                    this.hasInputText1 = false;
237623b3eb3cSopenharmony_ci                                                    this.updateInlineEnableSate();
237723b3eb3cSopenharmony_ci                                                }, 1500);
237823b3eb3cSopenharmony_ci                                            }
237923b3eb3cSopenharmony_ci                                        }
238023b3eb3cSopenharmony_ci                                        this.updateInlineEnableSate();
238123b3eb3cSopenharmony_ci                                    });
238223b3eb3cSopenharmony_ci                                    TextInput.onSubmit((x12) => {
238323b3eb3cSopenharmony_ci                                        if (this.timeoutID1 !== -1) {
238423b3eb3cSopenharmony_ci                                            clearTimeout(this.timeoutID1);
238523b3eb3cSopenharmony_ci                                            this.timeoutID1 = -1;
238623b3eb3cSopenharmony_ci                                        }
238723b3eb3cSopenharmony_ci                                        this.hasInputText1 = false;
238823b3eb3cSopenharmony_ci                                        this.value -= 1;
238923b3eb3cSopenharmony_ci                                        if (Number(this.inputValue) >= this.min && Number(this.inputValue) <= this.max) {
239023b3eb3cSopenharmony_ci                                            this.value = Number(this.inputValue);
239123b3eb3cSopenharmony_ci                                            this.onChange?.(ObservedObject.GetRawObject(this.value));
239223b3eb3cSopenharmony_ci                                            this.updateInlineEnableSate();
239323b3eb3cSopenharmony_ci                                        }
239423b3eb3cSopenharmony_ci                                        else {
239523b3eb3cSopenharmony_ci                                            this.value += 1;
239623b3eb3cSopenharmony_ci                                            this.inputValue = this.value.toString();
239723b3eb3cSopenharmony_ci                                        }
239823b3eb3cSopenharmony_ci                                    });
239923b3eb3cSopenharmony_ci                                    TextInput.focusable(true);
240023b3eb3cSopenharmony_ci                                    TextInput.focusOnTouch(true);
240123b3eb3cSopenharmony_ci                                    TextInput.onFocus(() => {
240223b3eb3cSopenharmony_ci                                        this.focusText = FocusText.TEXT1;
240323b3eb3cSopenharmony_ci                                        this.hasFocusText1 = true;
240423b3eb3cSopenharmony_ci                                        this.controller1.caretPosition(this.value.toString().length);
240523b3eb3cSopenharmony_ci                                    });
240623b3eb3cSopenharmony_ci                                    TextInput.onBlur(() => {
240723b3eb3cSopenharmony_ci                                        this.focusText = FocusText.NONE;
240823b3eb3cSopenharmony_ci                                        this.hasFocusText1 = false;
240923b3eb3cSopenharmony_ci                                    });
241023b3eb3cSopenharmony_ci                                    TextInput.onClick((w12) => {
241123b3eb3cSopenharmony_ci                                        this.focusText = FocusText.TEXT1;
241223b3eb3cSopenharmony_ci                                        this.hasFocusText1 = true;
241323b3eb3cSopenharmony_ci                                        this.focusWithTarget('InlineTextInput' + this.timeStamp.toString());
241423b3eb3cSopenharmony_ci                                        this.controller1.caretPosition(this.value.toString().length);
241523b3eb3cSopenharmony_ci                                    });
241623b3eb3cSopenharmony_ci                                }, TextInput);
241723b3eb3cSopenharmony_ci                                Row.pop();
241823b3eb3cSopenharmony_ci                            });
241923b3eb3cSopenharmony_ci                        }
242023b3eb3cSopenharmony_ci                    }, If);
242123b3eb3cSopenharmony_ci                    If.pop();
242223b3eb3cSopenharmony_ci                    this.observeComponentCreation2((h12, i12) => {
242323b3eb3cSopenharmony_ci                        Column.create();
242423b3eb3cSopenharmony_ci                        Column.direction(this.counterDirection);
242523b3eb3cSopenharmony_ci                        Column.width(CounterResource.COUNTER_INLINE_BUTTON_WIDTH);
242623b3eb3cSopenharmony_ci                        Column.height(CounterResource.COUNTER_INLINE_CONTAINER_HEIGHT);
242723b3eb3cSopenharmony_ci                        Column.borderWidth({ start: LengthMetrics.vp(CounterResource.COUNTER_BORDER_WIDTH_NUMBER) });
242823b3eb3cSopenharmony_ci                        Column.borderColor(CounterResource.COUNTER_BORDER_COLOR);
242923b3eb3cSopenharmony_ci                    }, Column);
243023b3eb3cSopenharmony_ci                    this.observeComponentCreation2((f12, g12) => {
243123b3eb3cSopenharmony_ci                        Stack.create();
243223b3eb3cSopenharmony_ci                        Stack.direction(this.counterDirection);
243323b3eb3cSopenharmony_ci                        Stack.width(CounterResource.COUNTER_INLINE_BUTTON_WIDTH);
243423b3eb3cSopenharmony_ci                        Stack.height(CounterResource.COUNTER_INLINE_BUTTON_HEIGHT);
243523b3eb3cSopenharmony_ci                        Stack.padding({ top: '1vp' });
243623b3eb3cSopenharmony_ci                        Stack.borderWidth({ bottom: '1vp' });
243723b3eb3cSopenharmony_ci                        Stack.borderColor(CounterResource.COUNTER_BORDER_COLOR);
243823b3eb3cSopenharmony_ci                        Stack.clip(true);
243923b3eb3cSopenharmony_ci                    }, Stack);
244023b3eb3cSopenharmony_ci                    this.observeComponentCreation2((d12, e12) => {
244123b3eb3cSopenharmony_ci                        Rect.create();
244223b3eb3cSopenharmony_ci                        Rect.direction(this.counterDirection);
244323b3eb3cSopenharmony_ci                        Rect.width(CounterResource.COUNTER_INLINE_FOCUS_BORDER_WIDTH);
244423b3eb3cSopenharmony_ci                        Rect.height(CounterResource.COUNTER_INLINE_FOCUS_BORDER_HEIGHT);
244523b3eb3cSopenharmony_ci                        Rect.radius([
244623b3eb3cSopenharmony_ci                            ['0vp', '0vp'],
244723b3eb3cSopenharmony_ci                            [CounterResource.COUNTER_INLINE_RADIUS, CounterResource.COUNTER_INLINE_RADIUS],
244823b3eb3cSopenharmony_ci                            ['0vp', '0vp'],
244923b3eb3cSopenharmony_ci                            ['0vp', '0vp']
245023b3eb3cSopenharmony_ci                        ]);
245123b3eb3cSopenharmony_ci                        Rect.strokeWidth(this.addBtnFocusWidh);
245223b3eb3cSopenharmony_ci                        Rect.stroke(CounterResource.BUTTON_BORDER_FOCUSED_COLOR);
245323b3eb3cSopenharmony_ci                        Rect.margin({ end: LengthMetrics.vp(2) });
245423b3eb3cSopenharmony_ci                        Rect.fillOpacity(0);
245523b3eb3cSopenharmony_ci                    }, Rect);
245623b3eb3cSopenharmony_ci                    this.observeComponentCreation2((b12, c12) => {
245723b3eb3cSopenharmony_ci                        Image.create(CounterResource.BUTTON_ARROW_UP);
245823b3eb3cSopenharmony_ci                        Image.direction(this.counterDirection);
245923b3eb3cSopenharmony_ci                        Image.width(CounterResource.COUNTER_INLINE_BUTTON_ICON_WIDTH);
246023b3eb3cSopenharmony_ci                        Image.height(CounterResource.COUNTER_INLINE_BUTTON_ICON_HEIGHT);
246123b3eb3cSopenharmony_ci                        Image.fillColor(CounterResource.BUTTON_ICON_COLOR);
246223b3eb3cSopenharmony_ci                        Image.opacity(this.addOpacity);
246323b3eb3cSopenharmony_ci                    }, Image);
246423b3eb3cSopenharmony_ci                    this.observeComponentCreation2((r11, s11) => {
246523b3eb3cSopenharmony_ci                        Button.createWithLabel({ type: ButtonType.Normal, stateEffect: this.addBtnStateEffect });
246623b3eb3cSopenharmony_ci                        Button.direction(this.counterDirection);
246723b3eb3cSopenharmony_ci                        Button.width(CounterResource.COUNTER_INLINE_BUTTON_WIDTH);
246823b3eb3cSopenharmony_ci                        Button.height(CounterResource.COUNTER_INLINE_BUTTON_HEIGHT);
246923b3eb3cSopenharmony_ci                        Button.backgroundColor(Color.Transparent);
247023b3eb3cSopenharmony_ci                        Button.opacity(this.addOpacity);
247123b3eb3cSopenharmony_ci                        Button.enabled(this.addBtnEnabled);
247223b3eb3cSopenharmony_ci                        Button.onClick((a12) => {
247323b3eb3cSopenharmony_ci                            this.addValue();
247423b3eb3cSopenharmony_ci                            if (a12.source === SourceType.Mouse ||
247523b3eb3cSopenharmony_ci                                a12.source === SourceType.TouchScreen) {
247623b3eb3cSopenharmony_ci                                this.addBtnFocusWidh = CounterResource.BUTTON_BORDER_BLUR_WIDTH;
247723b3eb3cSopenharmony_ci                            }
247823b3eb3cSopenharmony_ci                        });
247923b3eb3cSopenharmony_ci                        Gesture.create(GesturePriority.Low);
248023b3eb3cSopenharmony_ci                        LongPressGesture.create({ repeat: true });
248123b3eb3cSopenharmony_ci                        LongPressGesture.onAction((z11) => {
248223b3eb3cSopenharmony_ci                            if (z11.repeat) {
248323b3eb3cSopenharmony_ci                                this.addValue();
248423b3eb3cSopenharmony_ci                            }
248523b3eb3cSopenharmony_ci                            this.addBtnFocusWidh = CounterResource.BUTTON_BORDER_BLUR_WIDTH;
248623b3eb3cSopenharmony_ci                        });
248723b3eb3cSopenharmony_ci                        LongPressGesture.pop();
248823b3eb3cSopenharmony_ci                        Gesture.pop();
248923b3eb3cSopenharmony_ci                        Button.hoverEffect(this.choverEffect);
249023b3eb3cSopenharmony_ci                        Button.onHover((y11) => {
249123b3eb3cSopenharmony_ci                            this.onHoverIncrease && this.onHoverIncrease(y11);
249223b3eb3cSopenharmony_ci                        });
249323b3eb3cSopenharmony_ci                        Button.focusable(false);
249423b3eb3cSopenharmony_ci                        Button.onFocus(() => {
249523b3eb3cSopenharmony_ci                            this.addBtnFocusWidh = CounterResource.BUTTON_BORDER_FOCUSED_WIDTH;
249623b3eb3cSopenharmony_ci                            this.onFocusIncrease && this.onFocusIncrease();
249723b3eb3cSopenharmony_ci                        });
249823b3eb3cSopenharmony_ci                        Button.onBlur(() => {
249923b3eb3cSopenharmony_ci                            this.addBtnFocusWidh = CounterResource.BUTTON_BORDER_BLUR_WIDTH;
250023b3eb3cSopenharmony_ci                            this.onBlurIncrease && this.onBlurIncrease();
250123b3eb3cSopenharmony_ci                        });
250223b3eb3cSopenharmony_ci                    }, Button);
250323b3eb3cSopenharmony_ci                    Button.pop();
250423b3eb3cSopenharmony_ci                    Stack.pop();
250523b3eb3cSopenharmony_ci                    this.observeComponentCreation2((p11, q11) => {
250623b3eb3cSopenharmony_ci                        Stack.create();
250723b3eb3cSopenharmony_ci                        Stack.direction(this.counterDirection);
250823b3eb3cSopenharmony_ci                        Stack.width(CounterResource.COUNTER_INLINE_BUTTON_WIDTH);
250923b3eb3cSopenharmony_ci                        Stack.height(CounterResource.COUNTER_INLINE_BUTTON_HEIGHT);
251023b3eb3cSopenharmony_ci                        Stack.clip(true);
251123b3eb3cSopenharmony_ci                    }, Stack);
251223b3eb3cSopenharmony_ci                    this.observeComponentCreation2((n11, o11) => {
251323b3eb3cSopenharmony_ci                        Rect.create();
251423b3eb3cSopenharmony_ci                        Rect.direction(this.counterDirection);
251523b3eb3cSopenharmony_ci                        Rect.width(CounterResource.COUNTER_INLINE_FOCUS_BORDER_WIDTH);
251623b3eb3cSopenharmony_ci                        Rect.height(CounterResource.COUNTER_INLINE_FOCUS_BORDER_HEIGHT);
251723b3eb3cSopenharmony_ci                        Rect.radius([
251823b3eb3cSopenharmony_ci                            ['0vp', '0vp'],
251923b3eb3cSopenharmony_ci                            ['0vp', '0vp'],
252023b3eb3cSopenharmony_ci                            [CounterResource.COUNTER_INLINE_RADIUS, CounterResource.COUNTER_INLINE_RADIUS],
252123b3eb3cSopenharmony_ci                            ['0vp', '0vp']
252223b3eb3cSopenharmony_ci                        ]);
252323b3eb3cSopenharmony_ci                        Rect.strokeWidth(this.subBtnFocusWidh);
252423b3eb3cSopenharmony_ci                        Rect.stroke(CounterResource.BUTTON_BORDER_FOCUSED_COLOR);
252523b3eb3cSopenharmony_ci                        Rect.margin({
252623b3eb3cSopenharmony_ci                            top: LengthMetrics.vp(1),
252723b3eb3cSopenharmony_ci                            end: LengthMetrics.vp(1),
252823b3eb3cSopenharmony_ci                            bottom: LengthMetrics.vp(2)
252923b3eb3cSopenharmony_ci                        });
253023b3eb3cSopenharmony_ci                        Rect.fillOpacity(0);
253123b3eb3cSopenharmony_ci                    }, Rect);
253223b3eb3cSopenharmony_ci                    this.observeComponentCreation2((l11, m11) => {
253323b3eb3cSopenharmony_ci                        Image.create(CounterResource.BUTTON_ARROW_DOWN);
253423b3eb3cSopenharmony_ci                        Image.direction(this.counterDirection);
253523b3eb3cSopenharmony_ci                        Image.width(CounterResource.COUNTER_INLINE_BUTTON_ICON_WIDTH);
253623b3eb3cSopenharmony_ci                        Image.height(CounterResource.COUNTER_INLINE_BUTTON_ICON_HEIGHT);
253723b3eb3cSopenharmony_ci                        Image.fillColor(CounterResource.BUTTON_ICON_COLOR);
253823b3eb3cSopenharmony_ci                        Image.opacity(this.subOpacity);
253923b3eb3cSopenharmony_ci                    }, Image);
254023b3eb3cSopenharmony_ci                    this.observeComponentCreation2((b11, c11) => {
254123b3eb3cSopenharmony_ci                        Button.createWithLabel({ type: ButtonType.Normal, stateEffect: this.subBtnStateEffect });
254223b3eb3cSopenharmony_ci                        Button.direction(this.counterDirection);
254323b3eb3cSopenharmony_ci                        Button.width(CounterResource.COUNTER_INLINE_BUTTON_WIDTH);
254423b3eb3cSopenharmony_ci                        Button.height(CounterResource.COUNTER_INLINE_BUTTON_HEIGHT);
254523b3eb3cSopenharmony_ci                        Button.backgroundColor(Color.Transparent);
254623b3eb3cSopenharmony_ci                        Button.opacity(this.subOpacity);
254723b3eb3cSopenharmony_ci                        Button.enabled(this.subBtnEnabled);
254823b3eb3cSopenharmony_ci                        Button.onClick((k11) => {
254923b3eb3cSopenharmony_ci                            this.subValue();
255023b3eb3cSopenharmony_ci                            if (k11.source === SourceType.Mouse ||
255123b3eb3cSopenharmony_ci                                k11.source === SourceType.TouchScreen) {
255223b3eb3cSopenharmony_ci                                this.subBtnFocusWidh = CounterResource.BUTTON_BORDER_BLUR_WIDTH;
255323b3eb3cSopenharmony_ci                            }
255423b3eb3cSopenharmony_ci                        });
255523b3eb3cSopenharmony_ci                        Gesture.create(GesturePriority.Low);
255623b3eb3cSopenharmony_ci                        LongPressGesture.create({ repeat: true });
255723b3eb3cSopenharmony_ci                        LongPressGesture.onAction((j11) => {
255823b3eb3cSopenharmony_ci                            if (j11.repeat) {
255923b3eb3cSopenharmony_ci                                this.subValue();
256023b3eb3cSopenharmony_ci                            }
256123b3eb3cSopenharmony_ci                            this.subBtnFocusWidh = CounterResource.BUTTON_BORDER_BLUR_WIDTH;
256223b3eb3cSopenharmony_ci                        });
256323b3eb3cSopenharmony_ci                        LongPressGesture.pop();
256423b3eb3cSopenharmony_ci                        Gesture.pop();
256523b3eb3cSopenharmony_ci                        Button.hoverEffect(this.choverEffect);
256623b3eb3cSopenharmony_ci                        Button.onHover((i11) => {
256723b3eb3cSopenharmony_ci                            this.onHoverDecrease && this.onHoverDecrease(i11);
256823b3eb3cSopenharmony_ci                        });
256923b3eb3cSopenharmony_ci                        Button.focusable(false);
257023b3eb3cSopenharmony_ci                        Button.onFocus(() => {
257123b3eb3cSopenharmony_ci                            this.subBtnFocusWidh = CounterResource.BUTTON_BORDER_FOCUSED_WIDTH;
257223b3eb3cSopenharmony_ci                            this.onFocusDecrease && this.onFocusDecrease();
257323b3eb3cSopenharmony_ci                        });
257423b3eb3cSopenharmony_ci                        Button.onBlur(() => {
257523b3eb3cSopenharmony_ci                            this.subBtnFocusWidh = CounterResource.BUTTON_BORDER_BLUR_WIDTH;
257623b3eb3cSopenharmony_ci                            this.onBlurDecrease && this.onBlurDecrease();
257723b3eb3cSopenharmony_ci                        });
257823b3eb3cSopenharmony_ci                    }, Button);
257923b3eb3cSopenharmony_ci                    Button.pop();
258023b3eb3cSopenharmony_ci                    Stack.pop();
258123b3eb3cSopenharmony_ci                    Column.pop();
258223b3eb3cSopenharmony_ci                    Row.pop();
258323b3eb3cSopenharmony_ci                });
258423b3eb3cSopenharmony_ci            }
258523b3eb3cSopenharmony_ci            else if (this.type === CounterType.INLINE_DATE) {
258623b3eb3cSopenharmony_ci                this.ifElseBranchUpdateFunction(3, () => {
258723b3eb3cSopenharmony_ci                    this.observeComponentCreation2((n10, o10) => {
258823b3eb3cSopenharmony_ci                        Row.create();
258923b3eb3cSopenharmony_ci                        Row.direction(this.counterDirection);
259023b3eb3cSopenharmony_ci                        Row.height(CounterResource.COUNTER_INLINE_CONTAINER_HEIGHT);
259123b3eb3cSopenharmony_ci                        Row.borderWidth(CounterResource.COUNTER_BORDER_WIDTH);
259223b3eb3cSopenharmony_ci                        Row.borderColor(CounterResource.COUNTER_BORDER_COLOR);
259323b3eb3cSopenharmony_ci                        Row.borderRadius(CounterResource.COUNTER_INLINE_RADIUS);
259423b3eb3cSopenharmony_ci                        Row.clip(true);
259523b3eb3cSopenharmony_ci                    }, Row);
259623b3eb3cSopenharmony_ci                    this.observeComponentCreation2((l10, m10) => {
259723b3eb3cSopenharmony_ci                        Row.create();
259823b3eb3cSopenharmony_ci                        Row.direction(this.counterDirection);
259923b3eb3cSopenharmony_ci                        Row.width('92vp');
260023b3eb3cSopenharmony_ci                        Row.height(CounterResource.COUNTER_INLINE_CONTAINER_HEIGHT);
260123b3eb3cSopenharmony_ci                        Row.margin({
260223b3eb3cSopenharmony_ci                            start: LengthMetrics.vp(CounterResource.COUNTER_INLINE_DATE_TEXT_MARGIN),
260323b3eb3cSopenharmony_ci                            end: LengthMetrics.vp(CounterResource.COUNTER_INLINE_DATE_TEXT_MARGIN)
260423b3eb3cSopenharmony_ci                        });
260523b3eb3cSopenharmony_ci                    }, Row);
260623b3eb3cSopenharmony_ci                    this.observeComponentCreation2((w9, x9) => {
260723b3eb3cSopenharmony_ci                        TextInput.create({
260823b3eb3cSopenharmony_ci                            text: this.hasInputText1 ? this.inputYear.toString() : this.getYear(),
260923b3eb3cSopenharmony_ci                            controller: this.controller1
261023b3eb3cSopenharmony_ci                        });
261123b3eb3cSopenharmony_ci                        TextInput.direction(this.counterDirection);
261223b3eb3cSopenharmony_ci                        TextInput.type(InputType.Number);
261323b3eb3cSopenharmony_ci                        TextInput.caretColor(Color.Transparent);
261423b3eb3cSopenharmony_ci                        TextInput.copyOption(CopyOptions.None);
261523b3eb3cSopenharmony_ci                        TextInput.fontSize(CounterResource.COUNTER_NUMBER_SIZE);
261623b3eb3cSopenharmony_ci                        TextInput.fontWeight(FontWeight.Medium);
261723b3eb3cSopenharmony_ci                        TextInput.fontColor(this.hasFocusText1 ? Color.White : CounterResource.COUNTER_TEXT_COLOR);
261823b3eb3cSopenharmony_ci                        TextInput.maxLength(5);
261923b3eb3cSopenharmony_ci                        TextInput.padding(0);
262023b3eb3cSopenharmony_ci                        TextInput.backgroundColor(this.hasFocusText1 ? CounterResource.BUTTON_BORDER_FOCUSED_COLOR : Color.Transparent);
262123b3eb3cSopenharmony_ci                        TextInput.width('38vp');
262223b3eb3cSopenharmony_ci                        TextInput.height('20vp');
262323b3eb3cSopenharmony_ci                        TextInput.borderRadius(0);
262423b3eb3cSopenharmony_ci                        TextInput.borderWidth(0);
262523b3eb3cSopenharmony_ci                        TextInput.key('DateTextInput1' + this.timeStamp.toString());
262623b3eb3cSopenharmony_ci                        TextInput.onKeyEvent((k10) => {
262723b3eb3cSopenharmony_ci                            this.focusCurrentText(FocusText.TEXT1);
262823b3eb3cSopenharmony_ci                            if (k10.keyCode === CounterConstant.KEYCODE_ESC) {
262923b3eb3cSopenharmony_ci                                this.resetFocusText();
263023b3eb3cSopenharmony_ci                                k10.stopPropagation();
263123b3eb3cSopenharmony_ci                            }
263223b3eb3cSopenharmony_ci                            if (k10.type === KeyType.Down &&
263323b3eb3cSopenharmony_ci                                k10.keyCode === CounterConstant.KEYCODE_DPAD_UP) {
263423b3eb3cSopenharmony_ci                                this.addDate();
263523b3eb3cSopenharmony_ci                                k10.stopPropagation();
263623b3eb3cSopenharmony_ci                            }
263723b3eb3cSopenharmony_ci                            if (k10.type === KeyType.Down &&
263823b3eb3cSopenharmony_ci                                k10.keyCode === CounterConstant.KEYCODE_DPAD_DOWN) {
263923b3eb3cSopenharmony_ci                                this.subDate();
264023b3eb3cSopenharmony_ci                                k10.stopPropagation();
264123b3eb3cSopenharmony_ci                            }
264223b3eb3cSopenharmony_ci                            if (k10.type === KeyType.Down &&
264323b3eb3cSopenharmony_ci                                k10.keyCode === CounterConstant.KEYCODE_MOVE_HOME) {
264423b3eb3cSopenharmony_ci                                this.homeFocusText();
264523b3eb3cSopenharmony_ci                                k10.stopPropagation();
264623b3eb3cSopenharmony_ci                            }
264723b3eb3cSopenharmony_ci                            if (k10.type === KeyType.Down &&
264823b3eb3cSopenharmony_ci                                k10.keyCode === CounterConstant.KEYCODE_MOVE_END) {
264923b3eb3cSopenharmony_ci                                this.endFocusText();
265023b3eb3cSopenharmony_ci                                k10.stopPropagation();
265123b3eb3cSopenharmony_ci                            }
265223b3eb3cSopenharmony_ci                            if (k10.type === KeyType.Down &&
265323b3eb3cSopenharmony_ci                                k10.keyCode === CounterConstant.KEYCODE_DPAD_LEFT) {
265423b3eb3cSopenharmony_ci                                this.focusWithTarget('DateTextInput1' + this.timeStamp.toString());
265523b3eb3cSopenharmony_ci                                k10.stopPropagation();
265623b3eb3cSopenharmony_ci                            }
265723b3eb3cSopenharmony_ci                            if (k10.type === KeyType.Down &&
265823b3eb3cSopenharmony_ci                                k10.keyCode === CounterConstant.KEYCODE_DPAD_RIGHT) {
265923b3eb3cSopenharmony_ci                                this.focusWithTarget('DateTextInput2' + this.timeStamp.toString());
266023b3eb3cSopenharmony_ci                            }
266123b3eb3cSopenharmony_ci                        });
266223b3eb3cSopenharmony_ci                        TextInput.onChange((h10) => {
266323b3eb3cSopenharmony_ci                            if (h10.length !== 4) {
266423b3eb3cSopenharmony_ci                                this.hasInputText1 = true;
266523b3eb3cSopenharmony_ci                            }
266623b3eb3cSopenharmony_ci                            this.inputYear = Number(h10);
266723b3eb3cSopenharmony_ci                            if (h10.length === 5) {
266823b3eb3cSopenharmony_ci                                this.inputYear = this.inputYear % 10;
266923b3eb3cSopenharmony_ci                            }
267023b3eb3cSopenharmony_ci                            if (this.timeoutID1 !== -1) {
267123b3eb3cSopenharmony_ci                                clearTimeout(this.timeoutID1);
267223b3eb3cSopenharmony_ci                                this.timeoutID1 = -1;
267323b3eb3cSopenharmony_ci                            }
267423b3eb3cSopenharmony_ci                            this.timeoutID1 = setTimeout(() => {
267523b3eb3cSopenharmony_ci                                this.hasInputText1 = false;
267623b3eb3cSopenharmony_ci                                this.inputYear = this.year;
267723b3eb3cSopenharmony_ci                                this.updateDateEnableSate();
267823b3eb3cSopenharmony_ci                                this.updateDay();
267923b3eb3cSopenharmony_ci                            }, 1500);
268023b3eb3cSopenharmony_ci                            if (this.inputYear >= this.minYear && this.inputYear <= this.maxYear) {
268123b3eb3cSopenharmony_ci                                this.year = this.inputYear;
268223b3eb3cSopenharmony_ci                                this.updateDateEnableSate();
268323b3eb3cSopenharmony_ci                                this.updateDay();
268423b3eb3cSopenharmony_ci                            }
268523b3eb3cSopenharmony_ci                            if (h10.length === 4) {
268623b3eb3cSopenharmony_ci                                let j10 = new DateData(this.year, this.month, this.day);
268723b3eb3cSopenharmony_ci                                this.onDateChange?.(j10);
268823b3eb3cSopenharmony_ci                            }
268923b3eb3cSopenharmony_ci                        });
269023b3eb3cSopenharmony_ci                        TextInput.onSubmit((f10) => {
269123b3eb3cSopenharmony_ci                            if (this.timeoutID1 !== -1) {
269223b3eb3cSopenharmony_ci                                clearTimeout(this.timeoutID1);
269323b3eb3cSopenharmony_ci                                this.timeoutID1 = -1;
269423b3eb3cSopenharmony_ci                            }
269523b3eb3cSopenharmony_ci                            this.hasInputText1 = false;
269623b3eb3cSopenharmony_ci                            this.year -= 1;
269723b3eb3cSopenharmony_ci                            if (this.inputYear >= this.minYear && this.inputYear <= this.maxYear) {
269823b3eb3cSopenharmony_ci                                this.year = this.inputYear;
269923b3eb3cSopenharmony_ci                            }
270023b3eb3cSopenharmony_ci                            else {
270123b3eb3cSopenharmony_ci                                this.year += 1;
270223b3eb3cSopenharmony_ci                                this.inputYear = this.year;
270323b3eb3cSopenharmony_ci                            }
270423b3eb3cSopenharmony_ci                            this.updateDateEnableSate();
270523b3eb3cSopenharmony_ci                            this.updateDay();
270623b3eb3cSopenharmony_ci                        });
270723b3eb3cSopenharmony_ci                        TextInput.tabIndex(0);
270823b3eb3cSopenharmony_ci                        TextInput.focusOnTouch(true);
270923b3eb3cSopenharmony_ci                        TextInput.focusable(true);
271023b3eb3cSopenharmony_ci                        TextInput.onFocus(() => {
271123b3eb3cSopenharmony_ci                            this.focusText = FocusText.TEXT1;
271223b3eb3cSopenharmony_ci                            this.hasFocusText1 = true;
271323b3eb3cSopenharmony_ci                            this.updateDateEnableSate();
271423b3eb3cSopenharmony_ci                            this.controller1.caretPosition(this.getYear().length);
271523b3eb3cSopenharmony_ci                        });
271623b3eb3cSopenharmony_ci                        TextInput.onBlur(() => {
271723b3eb3cSopenharmony_ci                            this.focusText = FocusText.NONE;
271823b3eb3cSopenharmony_ci                            this.hasFocusText1 = false;
271923b3eb3cSopenharmony_ci                            this.updateDateEnableSate();
272023b3eb3cSopenharmony_ci                        });
272123b3eb3cSopenharmony_ci                        TextInput.onClick((e10) => {
272223b3eb3cSopenharmony_ci                            this.focusText = FocusText.TEXT1;
272323b3eb3cSopenharmony_ci                            this.hasFocusText1 = true;
272423b3eb3cSopenharmony_ci                            this.updateDateEnableSate();
272523b3eb3cSopenharmony_ci                            this.controller1.caretPosition(this.getYear().length);
272623b3eb3cSopenharmony_ci                        });
272723b3eb3cSopenharmony_ci                    }, TextInput);
272823b3eb3cSopenharmony_ci                    this.observeComponentCreation2((u9, v9) => {
272923b3eb3cSopenharmony_ci                        Text.create('/');
273023b3eb3cSopenharmony_ci                        Text.direction(this.counterDirection);
273123b3eb3cSopenharmony_ci                        Text.textAlign(TextAlign.Center);
273223b3eb3cSopenharmony_ci                        Text.fontSize(CounterResource.COUNTER_NUMBER_SIZE);
273323b3eb3cSopenharmony_ci                        Text.fontColor(CounterResource.COUNTER_TEXT_COLOR);
273423b3eb3cSopenharmony_ci                        Text.width('8vp');
273523b3eb3cSopenharmony_ci                    }, Text);
273623b3eb3cSopenharmony_ci                    Text.pop();
273723b3eb3cSopenharmony_ci                    this.observeComponentCreation2((e9, f9) => {
273823b3eb3cSopenharmony_ci                        TextInput.create({
273923b3eb3cSopenharmony_ci                            text: this.hasInputText2 ? this.inputMoon.toString() : this.convertNumberToString(this.month),
274023b3eb3cSopenharmony_ci                            controller: this.controller2
274123b3eb3cSopenharmony_ci                        });
274223b3eb3cSopenharmony_ci                        TextInput.direction(this.counterDirection);
274323b3eb3cSopenharmony_ci                        TextInput.type(InputType.Number);
274423b3eb3cSopenharmony_ci                        TextInput.caretColor(Color.Transparent);
274523b3eb3cSopenharmony_ci                        TextInput.copyOption(CopyOptions.None);
274623b3eb3cSopenharmony_ci                        TextInput.fontSize(CounterResource.COUNTER_NUMBER_SIZE);
274723b3eb3cSopenharmony_ci                        TextInput.fontWeight(FontWeight.Medium);
274823b3eb3cSopenharmony_ci                        TextInput.fontColor(this.hasFocusText2 ? Color.White : CounterResource.COUNTER_TEXT_COLOR);
274923b3eb3cSopenharmony_ci                        TextInput.maxLength(3);
275023b3eb3cSopenharmony_ci                        TextInput.padding(0);
275123b3eb3cSopenharmony_ci                        TextInput.backgroundColor(this.hasFocusText2 ? CounterResource.BUTTON_BORDER_FOCUSED_COLOR : Color.Transparent);
275223b3eb3cSopenharmony_ci                        TextInput.width('19vp');
275323b3eb3cSopenharmony_ci                        TextInput.height('20vp');
275423b3eb3cSopenharmony_ci                        TextInput.borderRadius(0);
275523b3eb3cSopenharmony_ci                        TextInput.key('DateTextInput2' + this.timeStamp.toString());
275623b3eb3cSopenharmony_ci                        TextInput.onKeyEvent((t9) => {
275723b3eb3cSopenharmony_ci                            this.focusCurrentText(FocusText.TEXT2);
275823b3eb3cSopenharmony_ci                            if (t9.keyCode === CounterConstant.KEYCODE_ESC) {
275923b3eb3cSopenharmony_ci                                this.resetFocusText();
276023b3eb3cSopenharmony_ci                                t9.stopPropagation();
276123b3eb3cSopenharmony_ci                            }
276223b3eb3cSopenharmony_ci                            if (t9.type === KeyType.Down &&
276323b3eb3cSopenharmony_ci                                t9.keyCode === CounterConstant.KEYCODE_DPAD_DOWN) {
276423b3eb3cSopenharmony_ci                                this.subDate();
276523b3eb3cSopenharmony_ci                                this.updateDay();
276623b3eb3cSopenharmony_ci                                t9.stopPropagation();
276723b3eb3cSopenharmony_ci                            }
276823b3eb3cSopenharmony_ci                            if (t9.type === KeyType.Down &&
276923b3eb3cSopenharmony_ci                                t9.keyCode === CounterConstant.KEYCODE_DPAD_UP) {
277023b3eb3cSopenharmony_ci                                this.addDate();
277123b3eb3cSopenharmony_ci                                this.updateDay();
277223b3eb3cSopenharmony_ci                                t9.stopPropagation();
277323b3eb3cSopenharmony_ci                            }
277423b3eb3cSopenharmony_ci                            if (t9.type === KeyType.Down &&
277523b3eb3cSopenharmony_ci                                t9.keyCode === CounterConstant.KEYCODE_MOVE_HOME) {
277623b3eb3cSopenharmony_ci                                this.homeFocusText();
277723b3eb3cSopenharmony_ci                                t9.stopPropagation();
277823b3eb3cSopenharmony_ci                            }
277923b3eb3cSopenharmony_ci                            if (t9.type === KeyType.Down &&
278023b3eb3cSopenharmony_ci                                t9.keyCode === CounterConstant.KEYCODE_MOVE_END) {
278123b3eb3cSopenharmony_ci                                this.endFocusText();
278223b3eb3cSopenharmony_ci                                t9.stopPropagation();
278323b3eb3cSopenharmony_ci                            }
278423b3eb3cSopenharmony_ci                            if (t9.type === KeyType.Down &&
278523b3eb3cSopenharmony_ci                                t9.keyCode === CounterConstant.KEYCODE_DPAD_LEFT) {
278623b3eb3cSopenharmony_ci                                this.focusWithTarget('DateTextInput1' + this.timeStamp.toString());
278723b3eb3cSopenharmony_ci                            }
278823b3eb3cSopenharmony_ci                            if (t9.type === KeyType.Down &&
278923b3eb3cSopenharmony_ci                                t9.keyCode === CounterConstant.KEYCODE_DPAD_RIGHT) {
279023b3eb3cSopenharmony_ci                                this.focusWithTarget('DateTextInput3' + this.timeStamp.toString());
279123b3eb3cSopenharmony_ci                            }
279223b3eb3cSopenharmony_ci                            if (t9.type === KeyType.Down &&
279323b3eb3cSopenharmony_ci                                t9.keyCode === CounterConstant.KEYCODE_TAB) {
279423b3eb3cSopenharmony_ci                                t9.stopPropagation();
279523b3eb3cSopenharmony_ci                                this.focusWithTarget('DateTextInput1' + this.timeStamp.toString());
279623b3eb3cSopenharmony_ci                            }
279723b3eb3cSopenharmony_ci                        });
279823b3eb3cSopenharmony_ci                        TextInput.onChange((p9) => {
279923b3eb3cSopenharmony_ci                            this.inputMoon = Number(p9);
280023b3eb3cSopenharmony_ci                            if (p9.length !== 2) {
280123b3eb3cSopenharmony_ci                                this.hasInputText2 = true;
280223b3eb3cSopenharmony_ci                            }
280323b3eb3cSopenharmony_ci                            if (p9.length === 3) {
280423b3eb3cSopenharmony_ci                                this.inputMoon = this.inputMoon % 10;
280523b3eb3cSopenharmony_ci                            }
280623b3eb3cSopenharmony_ci                            if (this.timeoutID2 !== -1) {
280723b3eb3cSopenharmony_ci                                clearTimeout(this.timeoutID2);
280823b3eb3cSopenharmony_ci                                this.timeoutID2 = -1;
280923b3eb3cSopenharmony_ci                            }
281023b3eb3cSopenharmony_ci                            this.timeoutID2 = setTimeout(() => {
281123b3eb3cSopenharmony_ci                                this.hasInputText2 = false;
281223b3eb3cSopenharmony_ci                                this.month -= 1;
281323b3eb3cSopenharmony_ci                                if (this.inputMoon >= 1 && this.inputMoon <= 12) {
281423b3eb3cSopenharmony_ci                                    this.month = this.inputMoon;
281523b3eb3cSopenharmony_ci                                }
281623b3eb3cSopenharmony_ci                                else {
281723b3eb3cSopenharmony_ci                                    this.month += 1;
281823b3eb3cSopenharmony_ci                                    this.inputMoon = this.month;
281923b3eb3cSopenharmony_ci                                }
282023b3eb3cSopenharmony_ci                                this.updateDay();
282123b3eb3cSopenharmony_ci                            }, 1000);
282223b3eb3cSopenharmony_ci                            if (p9.length === 2) {
282323b3eb3cSopenharmony_ci                                this.hasInputText2 = false;
282423b3eb3cSopenharmony_ci                                this.month -= 1;
282523b3eb3cSopenharmony_ci                                if (this.inputMoon >= 1 && this.inputMoon <= 12) {
282623b3eb3cSopenharmony_ci                                    this.month = this.inputMoon;
282723b3eb3cSopenharmony_ci                                    let r9 = new DateData(this.year, this.month, this.day);
282823b3eb3cSopenharmony_ci                                    this.onDateChange?.(r9);
282923b3eb3cSopenharmony_ci                                }
283023b3eb3cSopenharmony_ci                                else {
283123b3eb3cSopenharmony_ci                                    this.month += 1;
283223b3eb3cSopenharmony_ci                                    this.inputMoon = this.month;
283323b3eb3cSopenharmony_ci                                }
283423b3eb3cSopenharmony_ci                                this.updateDay();
283523b3eb3cSopenharmony_ci                            }
283623b3eb3cSopenharmony_ci                        });
283723b3eb3cSopenharmony_ci                        TextInput.onSubmit((n9) => {
283823b3eb3cSopenharmony_ci                            if (this.timeoutID2 !== -1) {
283923b3eb3cSopenharmony_ci                                clearTimeout(this.timeoutID2);
284023b3eb3cSopenharmony_ci                                this.timeoutID2 = -1;
284123b3eb3cSopenharmony_ci                            }
284223b3eb3cSopenharmony_ci                            this.hasInputText2 = false;
284323b3eb3cSopenharmony_ci                            this.month -= 1;
284423b3eb3cSopenharmony_ci                            if (this.inputMoon >= 1 && this.inputMoon <= 12) {
284523b3eb3cSopenharmony_ci                                this.month = this.inputMoon;
284623b3eb3cSopenharmony_ci                                this.updateDay();
284723b3eb3cSopenharmony_ci                            }
284823b3eb3cSopenharmony_ci                            else {
284923b3eb3cSopenharmony_ci                                this.month += 1;
285023b3eb3cSopenharmony_ci                            }
285123b3eb3cSopenharmony_ci                        });
285223b3eb3cSopenharmony_ci                        TextInput.focusOnTouch(true);
285323b3eb3cSopenharmony_ci                        TextInput.tabIndex(-1);
285423b3eb3cSopenharmony_ci                        TextInput.focusable(true);
285523b3eb3cSopenharmony_ci                        TextInput.onFocus(() => {
285623b3eb3cSopenharmony_ci                            this.focusText = FocusText.TEXT2;
285723b3eb3cSopenharmony_ci                            this.hasFocusText2 = true;
285823b3eb3cSopenharmony_ci                            this.controller2.caretPosition(this.convertNumberToString(this.month).length);
285923b3eb3cSopenharmony_ci                        });
286023b3eb3cSopenharmony_ci                        TextInput.onBlur(() => {
286123b3eb3cSopenharmony_ci                            this.focusText = FocusText.NONE;
286223b3eb3cSopenharmony_ci                            this.hasFocusText2 = false;
286323b3eb3cSopenharmony_ci                        });
286423b3eb3cSopenharmony_ci                        TextInput.onClick((m9) => {
286523b3eb3cSopenharmony_ci                            this.focusText = FocusText.TEXT2;
286623b3eb3cSopenharmony_ci                            this.hasFocusText2 = true;
286723b3eb3cSopenharmony_ci                            this.controller2.caretPosition(this.convertNumberToString(this.month).length);
286823b3eb3cSopenharmony_ci                        });
286923b3eb3cSopenharmony_ci                    }, TextInput);
287023b3eb3cSopenharmony_ci                    this.observeComponentCreation2((c9, d9) => {
287123b3eb3cSopenharmony_ci                        Text.create('/');
287223b3eb3cSopenharmony_ci                        Text.direction(this.counterDirection);
287323b3eb3cSopenharmony_ci                        Text.textAlign(TextAlign.Center);
287423b3eb3cSopenharmony_ci                        Text.fontSize(CounterResource.COUNTER_NUMBER_SIZE);
287523b3eb3cSopenharmony_ci                        Text.fontColor(CounterResource.COUNTER_TEXT_COLOR);
287623b3eb3cSopenharmony_ci                        Text.width('8vp');
287723b3eb3cSopenharmony_ci                    }, Text);
287823b3eb3cSopenharmony_ci                    Text.pop();
287923b3eb3cSopenharmony_ci                    this.observeComponentCreation2((m8, n8) => {
288023b3eb3cSopenharmony_ci                        TextInput.create({
288123b3eb3cSopenharmony_ci                            text: this.hasInputText3 ? this.inputDay.toString() : this.convertNumberToString(this.day),
288223b3eb3cSopenharmony_ci                            controller: this.controller3
288323b3eb3cSopenharmony_ci                        });
288423b3eb3cSopenharmony_ci                        TextInput.direction(this.counterDirection);
288523b3eb3cSopenharmony_ci                        TextInput.type(InputType.Number);
288623b3eb3cSopenharmony_ci                        TextInput.caretColor(Color.Transparent);
288723b3eb3cSopenharmony_ci                        TextInput.copyOption(CopyOptions.None);
288823b3eb3cSopenharmony_ci                        TextInput.fontSize(CounterResource.COUNTER_NUMBER_SIZE);
288923b3eb3cSopenharmony_ci                        TextInput.fontWeight(FontWeight.Medium);
289023b3eb3cSopenharmony_ci                        TextInput.fontColor(this.hasFocusText3 ? Color.White : CounterResource.COUNTER_TEXT_COLOR);
289123b3eb3cSopenharmony_ci                        TextInput.maxLength(3);
289223b3eb3cSopenharmony_ci                        TextInput.padding(0);
289323b3eb3cSopenharmony_ci                        TextInput.backgroundColor(this.hasFocusText3 ? CounterResource.BUTTON_BORDER_FOCUSED_COLOR : Color.Transparent);
289423b3eb3cSopenharmony_ci                        TextInput.width('19vp');
289523b3eb3cSopenharmony_ci                        TextInput.height('20vp');
289623b3eb3cSopenharmony_ci                        TextInput.borderRadius(0);
289723b3eb3cSopenharmony_ci                        TextInput.key('DateTextInput3' + this.timeStamp.toString());
289823b3eb3cSopenharmony_ci                        TextInput.onKeyEvent((b9) => {
289923b3eb3cSopenharmony_ci                            this.focusCurrentText(FocusText.TEXT3);
290023b3eb3cSopenharmony_ci                            if (b9.keyCode === CounterConstant.KEYCODE_ESC) {
290123b3eb3cSopenharmony_ci                                this.resetFocusText();
290223b3eb3cSopenharmony_ci                                b9.stopPropagation();
290323b3eb3cSopenharmony_ci                            }
290423b3eb3cSopenharmony_ci                            if (b9.type === KeyType.Down &&
290523b3eb3cSopenharmony_ci                                b9.keyCode === CounterConstant.KEYCODE_DPAD_DOWN) {
290623b3eb3cSopenharmony_ci                                this.subDate();
290723b3eb3cSopenharmony_ci                                b9.stopPropagation();
290823b3eb3cSopenharmony_ci                            }
290923b3eb3cSopenharmony_ci                            if (b9.type === KeyType.Down &&
291023b3eb3cSopenharmony_ci                                b9.keyCode === CounterConstant.KEYCODE_DPAD_UP) {
291123b3eb3cSopenharmony_ci                                this.addDate();
291223b3eb3cSopenharmony_ci                                b9.stopPropagation();
291323b3eb3cSopenharmony_ci                            }
291423b3eb3cSopenharmony_ci                            if (b9.type === KeyType.Down &&
291523b3eb3cSopenharmony_ci                                b9.keyCode === CounterConstant.KEYCODE_MOVE_HOME) {
291623b3eb3cSopenharmony_ci                                this.homeFocusText();
291723b3eb3cSopenharmony_ci                                b9.stopPropagation();
291823b3eb3cSopenharmony_ci                            }
291923b3eb3cSopenharmony_ci                            if (b9.type === KeyType.Down &&
292023b3eb3cSopenharmony_ci                                b9.keyCode === CounterConstant.KEYCODE_MOVE_END) {
292123b3eb3cSopenharmony_ci                                this.endFocusText();
292223b3eb3cSopenharmony_ci                                b9.stopPropagation();
292323b3eb3cSopenharmony_ci                            }
292423b3eb3cSopenharmony_ci                            if (b9.type === KeyType.Down &&
292523b3eb3cSopenharmony_ci                                b9.keyCode === CounterConstant.KEYCODE_DPAD_LEFT) {
292623b3eb3cSopenharmony_ci                                this.focusWithTarget('DateTextInput2' + this.timeStamp.toString());
292723b3eb3cSopenharmony_ci                            }
292823b3eb3cSopenharmony_ci                            if (b9.type === KeyType.Down &&
292923b3eb3cSopenharmony_ci                                b9.keyCode === CounterConstant.KEYCODE_DPAD_RIGHT) {
293023b3eb3cSopenharmony_ci                                this.focusWithTarget('DateTextInput3' + this.timeStamp.toString());
293123b3eb3cSopenharmony_ci                                b9.stopPropagation();
293223b3eb3cSopenharmony_ci                            }
293323b3eb3cSopenharmony_ci                            if (b9.type === KeyType.Down &&
293423b3eb3cSopenharmony_ci                                b9.keyCode === CounterConstant.KEYCODE_TAB) {
293523b3eb3cSopenharmony_ci                                b9.stopPropagation();
293623b3eb3cSopenharmony_ci                                this.focusWithTarget('DateTextInput1' + this.timeStamp.toString());
293723b3eb3cSopenharmony_ci                            }
293823b3eb3cSopenharmony_ci                        });
293923b3eb3cSopenharmony_ci                        TextInput.onChange((x8) => {
294023b3eb3cSopenharmony_ci                            this.inputDay = Number(x8);
294123b3eb3cSopenharmony_ci                            if (x8.length !== 2) {
294223b3eb3cSopenharmony_ci                                this.hasInputText3 = true;
294323b3eb3cSopenharmony_ci                            }
294423b3eb3cSopenharmony_ci                            if (x8.length === 3) {
294523b3eb3cSopenharmony_ci                                this.inputDay = this.inputDay % 10;
294623b3eb3cSopenharmony_ci                            }
294723b3eb3cSopenharmony_ci                            if (this.timeoutID3 !== -1) {
294823b3eb3cSopenharmony_ci                                clearTimeout(this.timeoutID3);
294923b3eb3cSopenharmony_ci                                this.timeoutID3 = -1;
295023b3eb3cSopenharmony_ci                            }
295123b3eb3cSopenharmony_ci                            this.timeoutID3 = setTimeout(() => {
295223b3eb3cSopenharmony_ci                                this.hasInputText3 = false;
295323b3eb3cSopenharmony_ci                                this.day -= 1;
295423b3eb3cSopenharmony_ci                                if (this.inputDay >= 1 && this.inputDay <= this.getDayNumber()) {
295523b3eb3cSopenharmony_ci                                    this.day = this.inputDay;
295623b3eb3cSopenharmony_ci                                }
295723b3eb3cSopenharmony_ci                                else {
295823b3eb3cSopenharmony_ci                                    this.day += 1;
295923b3eb3cSopenharmony_ci                                    this.inputDay = this.day;
296023b3eb3cSopenharmony_ci                                }
296123b3eb3cSopenharmony_ci                            }, 1000);
296223b3eb3cSopenharmony_ci                            if (x8.length === 2) {
296323b3eb3cSopenharmony_ci                                this.hasInputText3 = false;
296423b3eb3cSopenharmony_ci                                this.day -= 1;
296523b3eb3cSopenharmony_ci                                if (this.inputDay >= 1 && this.inputDay <= this.getDayNumber()) {
296623b3eb3cSopenharmony_ci                                    this.day = this.inputDay;
296723b3eb3cSopenharmony_ci                                    let z8 = new DateData(this.year, this.month, this.day);
296823b3eb3cSopenharmony_ci                                    this.onDateChange?.(z8);
296923b3eb3cSopenharmony_ci                                }
297023b3eb3cSopenharmony_ci                                else {
297123b3eb3cSopenharmony_ci                                    this.day += 1;
297223b3eb3cSopenharmony_ci                                    this.inputDay = this.day;
297323b3eb3cSopenharmony_ci                                }
297423b3eb3cSopenharmony_ci                            }
297523b3eb3cSopenharmony_ci                        });
297623b3eb3cSopenharmony_ci                        TextInput.onSubmit((v8) => {
297723b3eb3cSopenharmony_ci                            if (this.timeoutID3 !== -1) {
297823b3eb3cSopenharmony_ci                                clearTimeout(this.timeoutID3);
297923b3eb3cSopenharmony_ci                                this.timeoutID3 = -1;
298023b3eb3cSopenharmony_ci                            }
298123b3eb3cSopenharmony_ci                            this.hasInputText3 = false;
298223b3eb3cSopenharmony_ci                            this.day -= 1;
298323b3eb3cSopenharmony_ci                            if (this.inputDay >= 1 && this.inputDay <= this.getDayNumber()) {
298423b3eb3cSopenharmony_ci                                this.day = this.inputDay;
298523b3eb3cSopenharmony_ci                            }
298623b3eb3cSopenharmony_ci                            else {
298723b3eb3cSopenharmony_ci                                this.day += 1;
298823b3eb3cSopenharmony_ci                            }
298923b3eb3cSopenharmony_ci                        });
299023b3eb3cSopenharmony_ci                        TextInput.tabIndex(-2);
299123b3eb3cSopenharmony_ci                        TextInput.focusOnTouch(true);
299223b3eb3cSopenharmony_ci                        TextInput.focusable(true);
299323b3eb3cSopenharmony_ci                        TextInput.onFocus(() => {
299423b3eb3cSopenharmony_ci                            this.focusText = FocusText.TEXT3;
299523b3eb3cSopenharmony_ci                            this.hasFocusText3 = true;
299623b3eb3cSopenharmony_ci                            this.controller3.caretPosition(this.convertNumberToString(this.day).length);
299723b3eb3cSopenharmony_ci                        });
299823b3eb3cSopenharmony_ci                        TextInput.onBlur(() => {
299923b3eb3cSopenharmony_ci                            this.focusText = FocusText.NONE;
300023b3eb3cSopenharmony_ci                            this.hasFocusText3 = false;
300123b3eb3cSopenharmony_ci                        });
300223b3eb3cSopenharmony_ci                        TextInput.onClick((u8) => {
300323b3eb3cSopenharmony_ci                            this.focusText = FocusText.TEXT3;
300423b3eb3cSopenharmony_ci                            this.hasFocusText3 = true;
300523b3eb3cSopenharmony_ci                            this.controller3.caretPosition(this.convertNumberToString(this.day).length);
300623b3eb3cSopenharmony_ci                        });
300723b3eb3cSopenharmony_ci                    }, TextInput);
300823b3eb3cSopenharmony_ci                    Row.pop();
300923b3eb3cSopenharmony_ci                    this.observeComponentCreation2((k8, l8) => {
301023b3eb3cSopenharmony_ci                        Column.create();
301123b3eb3cSopenharmony_ci                        Column.direction(this.counterDirection);
301223b3eb3cSopenharmony_ci                        Column.width(CounterResource.COUNTER_INLINE_BUTTON_WIDTH);
301323b3eb3cSopenharmony_ci                        Column.height(CounterResource.COUNTER_INLINE_CONTAINER_HEIGHT);
301423b3eb3cSopenharmony_ci                        Column.borderWidth({ start: LengthMetrics.vp(CounterResource.COUNTER_BORDER_WIDTH_NUMBER) });
301523b3eb3cSopenharmony_ci                        Column.borderColor(CounterResource.COUNTER_BORDER_COLOR);
301623b3eb3cSopenharmony_ci                    }, Column);
301723b3eb3cSopenharmony_ci                    this.observeComponentCreation2((i8, j8) => {
301823b3eb3cSopenharmony_ci                        Stack.create();
301923b3eb3cSopenharmony_ci                        Stack.width(CounterResource.COUNTER_INLINE_BUTTON_WIDTH);
302023b3eb3cSopenharmony_ci                        Stack.height(CounterResource.COUNTER_INLINE_BUTTON_HEIGHT);
302123b3eb3cSopenharmony_ci                        Stack.padding({ top: '1vp' });
302223b3eb3cSopenharmony_ci                        Stack.borderWidth({ bottom: '1vp' });
302323b3eb3cSopenharmony_ci                        Stack.borderColor(CounterResource.COUNTER_BORDER_COLOR);
302423b3eb3cSopenharmony_ci                        Stack.clip(true);
302523b3eb3cSopenharmony_ci                    }, Stack);
302623b3eb3cSopenharmony_ci                    this.observeComponentCreation2((g8, h8) => {
302723b3eb3cSopenharmony_ci                        Rect.create();
302823b3eb3cSopenharmony_ci                        Rect.direction(this.counterDirection);
302923b3eb3cSopenharmony_ci                        Rect.width(CounterResource.COUNTER_INLINE_FOCUS_BORDER_WIDTH);
303023b3eb3cSopenharmony_ci                        Rect.height(CounterResource.COUNTER_INLINE_FOCUS_BORDER_HEIGHT);
303123b3eb3cSopenharmony_ci                        Rect.radius([
303223b3eb3cSopenharmony_ci                            ['0vp', '0vp'],
303323b3eb3cSopenharmony_ci                            [CounterResource.COUNTER_INLINE_RADIUS, CounterResource.COUNTER_INLINE_RADIUS],
303423b3eb3cSopenharmony_ci                            ['0vp', '0vp'],
303523b3eb3cSopenharmony_ci                            ['0vp', '0vp']
303623b3eb3cSopenharmony_ci                        ]);
303723b3eb3cSopenharmony_ci                        Rect.strokeWidth(this.addBtnFocusWidh);
303823b3eb3cSopenharmony_ci                        Rect.stroke(CounterResource.BUTTON_BORDER_FOCUSED_COLOR);
303923b3eb3cSopenharmony_ci                        Rect.margin({ end: LengthMetrics.vp(1) });
304023b3eb3cSopenharmony_ci                        Rect.fillOpacity(0);
304123b3eb3cSopenharmony_ci                    }, Rect);
304223b3eb3cSopenharmony_ci                    this.observeComponentCreation2((e8, f8) => {
304323b3eb3cSopenharmony_ci                        Image.create(CounterResource.BUTTON_ARROW_UP);
304423b3eb3cSopenharmony_ci                        Image.direction(this.counterDirection);
304523b3eb3cSopenharmony_ci                        Image.width(CounterResource.COUNTER_INLINE_BUTTON_ICON_WIDTH);
304623b3eb3cSopenharmony_ci                        Image.height(CounterResource.COUNTER_INLINE_BUTTON_ICON_HEIGHT);
304723b3eb3cSopenharmony_ci                        Image.fillColor(CounterResource.BUTTON_ICON_COLOR);
304823b3eb3cSopenharmony_ci                        Image.opacity(this.addOpacity);
304923b3eb3cSopenharmony_ci                    }, Image);
305023b3eb3cSopenharmony_ci                    this.observeComponentCreation2((s7, t7) => {
305123b3eb3cSopenharmony_ci                        Button.createWithLabel({ type: ButtonType.Normal, stateEffect: this.addBtnStateEffect });
305223b3eb3cSopenharmony_ci                        Button.direction(this.counterDirection);
305323b3eb3cSopenharmony_ci                        Button.width(CounterResource.COUNTER_INLINE_BUTTON_WIDTH);
305423b3eb3cSopenharmony_ci                        Button.height(CounterResource.COUNTER_INLINE_BUTTON_HEIGHT);
305523b3eb3cSopenharmony_ci                        Button.backgroundColor(Color.Transparent);
305623b3eb3cSopenharmony_ci                        Button.opacity(this.addOpacity);
305723b3eb3cSopenharmony_ci                        Button.enabled(this.addBtnEnabled);
305823b3eb3cSopenharmony_ci                        Button.onClick((c8) => {
305923b3eb3cSopenharmony_ci                            this.addDate();
306023b3eb3cSopenharmony_ci                            if (c8.source === SourceType.Mouse ||
306123b3eb3cSopenharmony_ci                                c8.source === SourceType.TouchScreen) {
306223b3eb3cSopenharmony_ci                                this.addBtnFocusWidh = CounterResource.BUTTON_BORDER_BLUR_WIDTH;
306323b3eb3cSopenharmony_ci                            }
306423b3eb3cSopenharmony_ci                        });
306523b3eb3cSopenharmony_ci                        Gesture.create(GesturePriority.Low);
306623b3eb3cSopenharmony_ci                        LongPressGesture.create({ repeat: true });
306723b3eb3cSopenharmony_ci                        LongPressGesture.onAction((a8) => {
306823b3eb3cSopenharmony_ci                            if (a8.repeat) {
306923b3eb3cSopenharmony_ci                                this.addDate();
307023b3eb3cSopenharmony_ci                            }
307123b3eb3cSopenharmony_ci                            this.addBtnFocusWidh = CounterResource.BUTTON_BORDER_BLUR_WIDTH;
307223b3eb3cSopenharmony_ci                        });
307323b3eb3cSopenharmony_ci                        LongPressGesture.pop();
307423b3eb3cSopenharmony_ci                        Gesture.pop();
307523b3eb3cSopenharmony_ci                        Button.hoverEffect(this.choverEffect);
307623b3eb3cSopenharmony_ci                        Button.onHover((z7) => {
307723b3eb3cSopenharmony_ci                            this.onHoverIncrease && this.onHoverIncrease(z7);
307823b3eb3cSopenharmony_ci                        });
307923b3eb3cSopenharmony_ci                        Button.focusable(false);
308023b3eb3cSopenharmony_ci                        Button.onFocus(() => {
308123b3eb3cSopenharmony_ci                            this.addBtnFocusWidh = CounterResource.BUTTON_BORDER_FOCUSED_WIDTH;
308223b3eb3cSopenharmony_ci                            this.onFocusIncrease && this.onFocusIncrease();
308323b3eb3cSopenharmony_ci                        });
308423b3eb3cSopenharmony_ci                        Button.onBlur(() => {
308523b3eb3cSopenharmony_ci                            this.addBtnFocusWidh = CounterResource.BUTTON_BORDER_BLUR_WIDTH;
308623b3eb3cSopenharmony_ci                            this.onBlurIncrease && this.onBlurIncrease();
308723b3eb3cSopenharmony_ci                        });
308823b3eb3cSopenharmony_ci                    }, Button);
308923b3eb3cSopenharmony_ci                    Button.pop();
309023b3eb3cSopenharmony_ci                    Stack.pop();
309123b3eb3cSopenharmony_ci                    this.observeComponentCreation2((q7, r7) => {
309223b3eb3cSopenharmony_ci                        Stack.create();
309323b3eb3cSopenharmony_ci                        Stack.width(CounterResource.COUNTER_INLINE_BUTTON_WIDTH);
309423b3eb3cSopenharmony_ci                        Stack.height(CounterResource.COUNTER_INLINE_BUTTON_HEIGHT);
309523b3eb3cSopenharmony_ci                        Stack.clip(true);
309623b3eb3cSopenharmony_ci                    }, Stack);
309723b3eb3cSopenharmony_ci                    this.observeComponentCreation2((o7, p7) => {
309823b3eb3cSopenharmony_ci                        Rect.create();
309923b3eb3cSopenharmony_ci                        Rect.direction(this.counterDirection);
310023b3eb3cSopenharmony_ci                        Rect.width(CounterResource.COUNTER_INLINE_FOCUS_BORDER_WIDTH);
310123b3eb3cSopenharmony_ci                        Rect.height(CounterResource.COUNTER_INLINE_FOCUS_BORDER_HEIGHT);
310223b3eb3cSopenharmony_ci                        Rect.radius([
310323b3eb3cSopenharmony_ci                            ['0vp', '0vp'],
310423b3eb3cSopenharmony_ci                            ['0vp', '0vp'],
310523b3eb3cSopenharmony_ci                            [CounterResource.COUNTER_INLINE_RADIUS, CounterResource.COUNTER_INLINE_RADIUS],
310623b3eb3cSopenharmony_ci                            ['0vp', '0vp']
310723b3eb3cSopenharmony_ci                        ]);
310823b3eb3cSopenharmony_ci                        Rect.strokeWidth(this.subBtnFocusWidh);
310923b3eb3cSopenharmony_ci                        Rect.stroke(CounterResource.BUTTON_BORDER_FOCUSED_COLOR);
311023b3eb3cSopenharmony_ci                        Rect.margin({
311123b3eb3cSopenharmony_ci                            top: LengthMetrics.vp(1),
311223b3eb3cSopenharmony_ci                            end: LengthMetrics.vp(1),
311323b3eb3cSopenharmony_ci                            bottom: LengthMetrics.vp(2)
311423b3eb3cSopenharmony_ci                        });
311523b3eb3cSopenharmony_ci                        Rect.fillOpacity(0);
311623b3eb3cSopenharmony_ci                    }, Rect);
311723b3eb3cSopenharmony_ci                    this.observeComponentCreation2((m7, n7) => {
311823b3eb3cSopenharmony_ci                        Image.create(CounterResource.BUTTON_ARROW_DOWN);
311923b3eb3cSopenharmony_ci                        Image.direction(this.counterDirection);
312023b3eb3cSopenharmony_ci                        Image.width(CounterResource.COUNTER_INLINE_BUTTON_ICON_WIDTH);
312123b3eb3cSopenharmony_ci                        Image.height(CounterResource.COUNTER_INLINE_BUTTON_ICON_HEIGHT);
312223b3eb3cSopenharmony_ci                        Image.fillColor(CounterResource.BUTTON_ICON_COLOR);
312323b3eb3cSopenharmony_ci                        Image.opacity(this.subOpacity);
312423b3eb3cSopenharmony_ci                    }, Image);
312523b3eb3cSopenharmony_ci                    this.observeComponentCreation2((a7, b7) => {
312623b3eb3cSopenharmony_ci                        Button.createWithLabel({ type: ButtonType.Normal, stateEffect: this.subBtnStateEffect });
312723b3eb3cSopenharmony_ci                        Button.direction(this.counterDirection);
312823b3eb3cSopenharmony_ci                        Button.width(CounterResource.COUNTER_INLINE_BUTTON_WIDTH);
312923b3eb3cSopenharmony_ci                        Button.height(CounterResource.COUNTER_INLINE_BUTTON_HEIGHT);
313023b3eb3cSopenharmony_ci                        Button.backgroundColor(Color.Transparent);
313123b3eb3cSopenharmony_ci                        Button.opacity(this.subOpacity);
313223b3eb3cSopenharmony_ci                        Button.enabled(this.subBtnEnabled);
313323b3eb3cSopenharmony_ci                        Button.onClick((k7) => {
313423b3eb3cSopenharmony_ci                            this.subDate();
313523b3eb3cSopenharmony_ci                            if (k7.source === SourceType.Mouse ||
313623b3eb3cSopenharmony_ci                                k7.source === SourceType.TouchScreen) {
313723b3eb3cSopenharmony_ci                                this.subBtnFocusWidh = CounterResource.BUTTON_BORDER_BLUR_WIDTH;
313823b3eb3cSopenharmony_ci                            }
313923b3eb3cSopenharmony_ci                        });
314023b3eb3cSopenharmony_ci                        Gesture.create(GesturePriority.Low);
314123b3eb3cSopenharmony_ci                        LongPressGesture.create({ repeat: true });
314223b3eb3cSopenharmony_ci                        LongPressGesture.onAction((i7) => {
314323b3eb3cSopenharmony_ci                            if (i7.repeat) {
314423b3eb3cSopenharmony_ci                                this.subDate();
314523b3eb3cSopenharmony_ci                            }
314623b3eb3cSopenharmony_ci                            this.subBtnFocusWidh = CounterResource.BUTTON_BORDER_BLUR_WIDTH;
314723b3eb3cSopenharmony_ci                        });
314823b3eb3cSopenharmony_ci                        LongPressGesture.pop();
314923b3eb3cSopenharmony_ci                        Gesture.pop();
315023b3eb3cSopenharmony_ci                        Button.hoverEffect(this.choverEffect);
315123b3eb3cSopenharmony_ci                        Button.onHover((h7) => {
315223b3eb3cSopenharmony_ci                            this.onHoverDecrease && this.onHoverDecrease(h7);
315323b3eb3cSopenharmony_ci                        });
315423b3eb3cSopenharmony_ci                        Button.focusable(false);
315523b3eb3cSopenharmony_ci                        Button.onFocus(() => {
315623b3eb3cSopenharmony_ci                            this.subBtnFocusWidh = CounterResource.BUTTON_BORDER_FOCUSED_WIDTH;
315723b3eb3cSopenharmony_ci                            this.onFocusDecrease && this.onFocusDecrease();
315823b3eb3cSopenharmony_ci                        });
315923b3eb3cSopenharmony_ci                        Button.onBlur(() => {
316023b3eb3cSopenharmony_ci                            this.subBtnFocusWidh = CounterResource.BUTTON_BORDER_BLUR_WIDTH;
316123b3eb3cSopenharmony_ci                            this.onBlurDecrease && this.onBlurDecrease();
316223b3eb3cSopenharmony_ci                        });
316323b3eb3cSopenharmony_ci                    }, Button);
316423b3eb3cSopenharmony_ci                    Button.pop();
316523b3eb3cSopenharmony_ci                    Stack.pop();
316623b3eb3cSopenharmony_ci                    Column.pop();
316723b3eb3cSopenharmony_ci                    Row.pop();
316823b3eb3cSopenharmony_ci                });
316923b3eb3cSopenharmony_ci            }
317023b3eb3cSopenharmony_ci            else {
317123b3eb3cSopenharmony_ci                this.ifElseBranchUpdateFunction(4, () => {
317223b3eb3cSopenharmony_ci                });
317323b3eb3cSopenharmony_ci            }
317423b3eb3cSopenharmony_ci        }, If);
317523b3eb3cSopenharmony_ci        If.pop();
317623b3eb3cSopenharmony_ci    }
317723b3eb3cSopenharmony_ci
317823b3eb3cSopenharmony_ci    rerender() {
317923b3eb3cSopenharmony_ci        this.updateDirtyElements();
318023b3eb3cSopenharmony_ci    }
318123b3eb3cSopenharmony_ci}
318223b3eb3cSopenharmony_ci
318323b3eb3cSopenharmony_ciexport default {CounterType, CommonOptions, InlineStyleOptions, NumberStyleOptions,
318423b3eb3cSopenharmony_ci    DateData, DateStyleOptions, CounterOptions, CounterComponent};
3185