1/*
2 * Copyright (c) 2023-2024 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16/// <reference path='./import.ts' />
17let LogTag;
18(function (LogTag) {
19  LogTag[LogTag['STATE_MGMT'] = 0] = 'STATE_MGMT';
20  LogTag[LogTag['ARK_COMPONENT'] = 1] = 'ARK_COMPONENT';
21})(LogTag || (LogTag = {}));
22class ArkLogConsole {
23  static log(...args) {
24      aceConsole.log(LogTag.ARK_COMPONENT, ...args);
25  }
26  static debug(...args) {
27      aceConsole.debug(LogTag.ARK_COMPONENT, ...args);
28  }
29  static info(...args) {
30      aceConsole.info(LogTag.ARK_COMPONENT, ...args);
31  }
32  static warn(...args) {
33      aceConsole.warn(LogTag.ARK_COMPONENT, ...args);
34  }
35  static error(...args) {
36      aceConsole.error(LogTag.ARK_COMPONENT, ...args);
37  }
38}
39const arkUINativeModule = globalThis.getArkUINativeModule();
40function getUINativeModule() {
41  if (arkUINativeModule) {
42    return arkUINativeModule;
43  }
44  return globalThis.getArkUINativeModule();
45}
46let ModifierType;
47(function (ModifierType) {
48    ModifierType[ModifierType['ORIGIN'] = 0] = 'ORIGIN';
49    ModifierType[ModifierType['STATE'] = 1] = 'STATE';
50    ModifierType[ModifierType['FRAME_NODE'] = 2] = 'FRAME_NODE';
51    ModifierType[ModifierType['EXPOSE_MODIFIER'] = 3] = 'EXPOSE_MODIFIER';
52})(ModifierType || (ModifierType = {}));
53const UI_STATE_NORMAL = 0;
54const UI_STATE_PRESSED = 1;
55const UI_STATE_FOCUSED = 1 << 1;
56const UI_STATE_DISABLED = 1 << 2;
57const UI_STATE_SELECTED = 1 << 3;
58function applyUIAttributesInit(modifier, nativeNode) {
59  if (modifier.applyPressedAttribute === undefined &&
60    modifier.applyFocusedAttribute === undefined &&
61    modifier.applyDisabledAttribute === undefined &&
62    modifier.applySelectedAttribute === undefined) {
63    return;
64  }
65  let state = 0;
66  if (modifier.applyPressedAttribute !== undefined) {
67    state |= UI_STATE_PRESSED;
68  }
69  if (modifier.applyFocusedAttribute !== undefined) {
70    state |= UI_STATE_FOCUSED;
71  }
72  if (modifier.applyDisabledAttribute !== undefined) {
73    state |= UI_STATE_DISABLED;
74  }
75  if (modifier.applySelectedAttribute !== undefined) {
76    state |= UI_STATE_SELECTED;
77  }
78  getUINativeModule().setSupportedUIState(nativeNode, state);
79}
80function applyUIAttributes(modifier, nativeNode, component) {
81  applyUIAttributesInit(modifier, nativeNode);
82  const currentUIState = getUINativeModule().getUIState(nativeNode);
83  if (modifier.applyNormalAttribute !== undefined) {
84    modifier.applyNormalAttribute(component);
85  }
86  if ((currentUIState & UI_STATE_PRESSED) && (modifier.applyPressedAttribute !== undefined)) {
87    modifier.applyPressedAttribute(component);
88  }
89  if ((currentUIState & UI_STATE_FOCUSED) && (modifier.applyFocusedAttribute !== undefined)) {
90    modifier.applyFocusedAttribute(component);
91  }
92  if ((currentUIState & UI_STATE_DISABLED) && (modifier.applyDisabledAttribute !== undefined)) {
93    modifier.applyDisabledAttribute(component);
94  }
95  if ((currentUIState & UI_STATE_SELECTED) && (modifier.applySelectedAttribute !== undefined)) {
96    modifier.applySelectedAttribute(component);
97  }
98}
99function isResource(variable) {
100  return (variable === null || variable === void 0 ? void 0 : variable.bundleName) !== undefined;
101}
102function isResourceEqual(stageValue, value) {
103  return (stageValue.bundleName === value.bundleName) &&
104    (stageValue.moduleName === value.moduleName) &&
105    (stageValue.id === value.id) &&
106    (stageValue.params === value.params) &&
107    (stageValue.type === value.type);
108}
109function isBaseOrResourceEqual(stageValue, value) {
110  if (isResource(stageValue) && isResource(value)) {
111    return isResourceEqual(stageValue, value);
112  }
113  else if (!isResource(stageValue) && !isResource(value)) {
114    return (stageValue === value);
115  }
116  return false;
117}
118const SAFE_AREA_TYPE_NONE = 0;
119const SAFE_AREA_TYPE_SYSTEM = 1;
120const SAFE_AREA_TYPE_CUTOUT = 2;
121const SAFE_AREA_TYPE_KEYBOARD = 4;
122const SAFE_AREA_TYPE_ALL = 7;
123const SAFE_AREA_EDGE_NONE = 0;
124const SAFE_AREA_EDGE_TOP = 1;
125const SAFE_AREA_EDGE_BOTTOM = 2;
126const SAFE_AREA_EDGE_START = 4;
127const SAFE_AREA_EDGE_END = 8;
128const SAFE_AREA_EDGE_ALL = 15;
129const SAFE_AREA_TYPE_LIMIT = 3;
130const SAFE_AREA_EDGE_LIMIT = 4;
131const DIRECTION_RANGE = 3;
132const SAFE_AREA_LOWER_LIMIT = 0;
133class ModifierWithKey {
134  constructor(value) {
135    this.stageValue = value;
136  }
137  applyStage(node, component) {
138    if (this.stageValue === undefined || this.stageValue === null) {
139      this.value = this.stageValue;
140      this.applyPeer(node, true, component);
141      return true;
142    }
143    const stageTypeInfo = typeof this.stageValue;
144    const valueTypeInfo = typeof this.value;
145    let different = false;
146    if (stageTypeInfo !== valueTypeInfo) {
147      different = true;
148    }
149    else if (stageTypeInfo === 'number' || stageTypeInfo === 'string' || stageTypeInfo === 'boolean') {
150      different = (this.stageValue !== this.value);
151    }
152    else {
153      different = this.checkObjectDiff();
154    }
155    if (different) {
156      this.value = this.stageValue;
157      this.applyPeer(node, false, component);
158    }
159    return false;
160  }
161  applyStageImmediately(node, component) {
162    this.value = this.stageValue;
163    if (this.stageValue === undefined || this.stageValue === null) {
164      this.applyPeer(node, true, component);
165      return;
166    }
167    this.applyPeer(node, false, component);
168  }
169  applyPeer(node, reset, component) { }
170  checkObjectDiff() {
171    return true;
172  }
173}
174class BackgroundColorModifier extends ModifierWithKey {
175  constructor(value) {
176    super(value);
177  }
178  applyPeer(node, reset) {
179    if (reset) {
180      getUINativeModule().common.resetBackgroundColor(node);
181    }
182    else {
183      getUINativeModule().common.setBackgroundColor(node, this.value);
184    }
185  }
186  checkObjectDiff() {
187    return !isBaseOrResourceEqual(this.stageValue, this.value);
188  }
189}
190BackgroundColorModifier.identity = Symbol('backgroundColor');
191class WidthModifier extends ModifierWithKey {
192  constructor(value) {
193    super(value);
194  }
195  applyPeer(node, reset) {
196    if (reset) {
197      getUINativeModule().common.resetWidth(node);
198    }
199    else {
200      getUINativeModule().common.setWidth(node, this.value);
201    }
202  }
203  checkObjectDiff() {
204    return !isBaseOrResourceEqual(this.stageValue, this.value);
205  }
206}
207WidthModifier.identity = Symbol('width');
208class BorderWidthModifier extends ModifierWithKey {
209  constructor(value) {
210    super(value);
211  }
212  applyPeer(node, reset) {
213    if (reset) {
214      getUINativeModule().common.resetBorderWidth(node);
215    }
216    else {
217      if (isNumber(this.value) || isString(this.value) || isResource(this.value)) {
218        getUINativeModule().common.setBorderWidth(node, this.value, this.value, this.value, this.value);
219      }
220      else {
221        if ((Object.keys(this.value).indexOf('start') >= 0) ||
222            (Object.keys(this.value).indexOf('end') >= 0)) {
223          getUINativeModule().common.setBorderWidth(node, this.value.top, this.value.end, this.value.bottom, this.value.start);
224        } else {
225          getUINativeModule().common.setBorderWidth(node, this.value.top, this.value.right, this.value.bottom, this.value.left);
226        }
227      }
228    }
229  }
230  checkObjectDiff() {
231    if (isResource(this.stageValue) && isResource(this.value)) {
232      return !isResourceEqual(this.stageValue, this.value);
233    }
234    else if (!isResource(this.stageValue) && !isResource(this.value)) {
235      if ((Object.keys(this.value).indexOf('start') >= 0) ||
236          (Object.keys(this.value).indexOf('end') >= 0)) {
237        return !(this.stageValue.start === this.value.start &&
238          this.stageValue.end === this.value.end &&
239          this.stageValue.top === this.value.top &&
240          this.stageValue.bottom === this.value.bottom);
241      }
242      return !(this.stageValue.left === this.value.left &&
243        this.stageValue.right === this.value.right &&
244        this.stageValue.top === this.value.top &&
245        this.stageValue.bottom === this.value.bottom);
246    }
247    else {
248      return true;
249    }
250  }
251}
252BorderWidthModifier.identity = Symbol('borderWidth');
253class HeightModifier extends ModifierWithKey {
254  constructor(value) {
255    super(value);
256  }
257  applyPeer(node, reset) {
258    if (reset) {
259      getUINativeModule().common.resetHeight(node);
260    }
261    else {
262      getUINativeModule().common.setHeight(node, this.value);
263    }
264  }
265  checkObjectDiff() {
266    return !isBaseOrResourceEqual(this.stageValue, this.value);
267  }
268}
269HeightModifier.identity = Symbol('height');
270
271class ChainModeifier extends ModifierWithKey {
272  constructor(value) {
273    super(value);
274  }
275  applyPeer(node, reset) {
276    if (reset) {
277      getUINativeModule().common.resetChainMode(node);
278    }
279    else {
280      getUINativeModule().common.setChainMode(node, this.value.direction, this.value.style);
281    }
282  }
283  checkObjectDiff() {
284    return !isBaseOrResourceEqual(this.stageValue, this.value);
285  }
286}
287ChainModeifier.identity = Symbol('chainMode');
288
289class BorderRadiusModifier extends ModifierWithKey {
290  constructor(value) {
291    super(value);
292  }
293  applyPeer(node, reset) {
294    if (reset) {
295      getUINativeModule().common.resetBorderRadius(node);
296    }
297    else {
298      if (isNumber(this.value) || isString(this.value) || isResource(this.value)) {
299        getUINativeModule().common.setBorderRadius(node, this.value, this.value, this.value, this.value);
300      }
301      else {
302        if ((Object.keys(this.value).indexOf('topStart') >= 0) ||
303            (Object.keys(this.value).indexOf('topEnd') >= 0) ||
304            (Object.keys(this.value).indexOf('bottomStart') >= 0) ||
305            (Object.keys(this.value).indexOf('bottomEnd') >= 0)) {
306          getUINativeModule().common.setBorderRadius(node, this.value.topStart, this.value.topEnd, this.value.bottomStart, this.value.bottomEnd);
307        } else {
308          getUINativeModule().common.setBorderRadius(node, this.value.topLeft, this.value.topRight, this.value.bottomLeft, this.value.bottomRight);
309        }
310      }
311    }
312  }
313  checkObjectDiff() {
314    if (isResource(this.stageValue) && isResource(this.value)) {
315      return !isResourceEqual(this.stageValue, this.value);
316    }
317    else if (!isResource(this.stageValue) && !isResource(this.value)) {
318      if ((Object.keys(this.value).indexOf('topStart') >= 0) ||
319          (Object.keys(this.value).indexOf('topEnd') >= 0) ||
320          (Object.keys(this.value).indexOf('bottomStart') >= 0) ||
321          (Object.keys(this.value).indexOf('bottomEnd') >= 0)) {
322        return !(this.stageValue.topStart === this.value.topStart &&
323          this.stageValue.topEnd === this.value.topEnd &&
324          this.stageValue.bottomStart === this.value.bottomStart &&
325          this.stageValue.bottomEnd === this.value.bottomEnd);
326      }
327      return !(this.stageValue.topLeft === this.value.topLeft &&
328        this.stageValue.topRight === this.value.topRight &&
329        this.stageValue.bottomLeft === this.value.bottomLeft &&
330        this.stageValue.bottomRight === this.value.bottomRight);
331    }
332    else {
333      return true;
334    }
335  }
336}
337BorderRadiusModifier.identity = Symbol('borderRadius');
338class PositionModifier extends ModifierWithKey {
339  constructor(value) {
340    super(value);
341  }
342  applyPeer(node, reset) {
343    if (reset) {
344      getUINativeModule().common.resetPosition(node);
345    } else {
346      if (isUndefined(this.value)) {
347        getUINativeModule().common.resetPosition(node);
348      } else if (('x' in this.value) || ('y' in this.value)) {
349        getUINativeModule().common.setPosition(node, false, this.value.x, this.value.y);
350      } else if (('top' in this.value) || ('bottom' in this.value) || ('left' in this.value) || ('start' in this.value) || ('right' in this.value) || ('end' in this.value)) {
351        if (('start' in this.value)) {
352          this.value.left = this.value.start;
353        }
354        if (('end' in this.value)) {
355          this.value.right = this.value.end;
356        }
357        getUINativeModule().common.setPosition(node, true, this.value.top, this.value.left, this.value.bottom, this.value.right);
358      } else {
359        getUINativeModule().common.resetPosition(node);
360      }
361    }
362  }
363  checkObjectDiff() {
364    return !isBaseOrResourceEqual(this.stageValue.x, this.value.x) ||
365      !isBaseOrResourceEqual(this.stageValue.y, this.value.y) ||
366      !isBaseOrResourceEqual(this.stageValue.top, this.value.top) ||
367      !isBaseOrResourceEqual(this.stageValue.left, this.value.left) ||
368      !isBaseOrResourceEqual(this.stageValue.bottom, this.value.bottom) ||
369      !isBaseOrResourceEqual(this.stageValue.right, this.value.right) ||
370      !isBaseOrResourceEqual(this.stageValue.start, this.value.start) ||
371      !isBaseOrResourceEqual(this.stageValue.end, this.value.end);
372  }
373}
374PositionModifier.identity = Symbol('position');
375class BorderColorModifier extends ModifierWithKey {
376  constructor(value) {
377    super(value);
378  }
379  applyPeer(node, reset) {
380    if (reset) {
381      getUINativeModule().common.resetBorderColor(node);
382    }
383    else {
384      const valueType = typeof this.value;
385      if (valueType === 'number' || valueType === 'string' || isResource(this.value)) {
386        getUINativeModule().common.setBorderColor(node, this.value, this.value, this.value, this.value, false);
387      }
388      else {
389        if ((Object.keys(this.value).indexOf('start') >= 0) ||
390            (Object.keys(this.value).indexOf('end') >= 0)) {
391          getUINativeModule().common.setBorderColor(node, this.value.top, this.value.end, this.value.bottom, this.value.start, true);
392        } else {
393          getUINativeModule().common.setBorderColor(node, this.value.top, this.value.right, this.value.bottom, this.value.left, false);
394        }
395      }
396    }
397  }
398  checkObjectDiff() {
399    if (isResource(this.stageValue) && isResource(this.value)) {
400      return !isResourceEqual(this.stageValue, this.value);
401    }
402    else if (!isResource(this.stageValue) && !isResource(this.value)) {
403      if ((Object.keys(this.value).indexOf('start') >= 0) ||
404          (Object.keys(this.value).indexOf('end') >= 0)) {
405        return !(this.stageValue.start === this.value.start &&
406          this.stageValue.end === this.value.end &&
407          this.stageValue.top === this.value.top &&
408          this.stageValue.bottom === this.value.bottom);
409      }
410      return !(this.stageValue.left === this.value.left &&
411        this.stageValue.right === this.value.right &&
412        this.stageValue.top === this.value.top &&
413        this.stageValue.bottom === this.value.bottom);
414    }
415    else {
416      return true;
417    }
418  }
419}
420BorderColorModifier.identity = Symbol('borderColor');
421class TransformModifier extends ModifierWithKey {
422  constructor(value) {
423    super(value);
424  }
425  applyPeer(node, reset) {
426    if (reset) {
427      getUINativeModule().common.resetTransform(node);
428    }
429    else {
430      getUINativeModule().common.setTransform(node, this.value.matrix4x4);
431    }
432  }
433  checkObjectDiff() {
434    return !deepCompareArrays(this.stageValue.matrix4x4, this.value.matrix4x4);
435  }
436}
437TransformModifier.identity = Symbol('transform');
438class BorderStyleModifier extends ModifierWithKey {
439  constructor(value) {
440    super(value);
441  }
442  applyPeer(node, reset) {
443    let _a, _b, _c, _d;
444    if (reset) {
445      getUINativeModule().common.resetBorderStyle(node);
446    }
447    else {
448      let type;
449      let style;
450      let top;
451      let right;
452      let bottom;
453      let left;
454      if (isNumber(this.value)) {
455        style = this.value;
456        type = true;
457      }
458      else if (isObject(this.value)) {
459        top = (_a = this.value) === null || _a === void 0 ? void 0 : _a.top;
460        right = (_b = this.value) === null || _b === void 0 ? void 0 : _b.right;
461        bottom = (_c = this.value) === null || _c === void 0 ? void 0 : _c.bottom;
462        left = (_d = this.value) === null || _d === void 0 ? void 0 : _d.left;
463        type = true;
464      }
465      if (type === true) {
466        getUINativeModule().common.setBorderStyle(node, type, style, top, right, bottom, left);
467      }
468      else {
469        getUINativeModule().common.resetBorderStyle(node);
470      }
471    }
472  }
473  checkObjectDiff() {
474    let _a, _b, _c, _d, _e, _f, _g, _h;
475    return !(((_a = this.value) === null || _a === void 0 ? void 0 : _a.top) === ((_b = this.stageValue) === null || _b === void 0 ? void 0 : _b.top) &&
476      ((_c = this.value) === null || _c === void 0 ? void 0 : _c.right) === ((_d = this.stageValue) === null || _d === void 0 ? void 0 : _d.right) &&
477      ((_e = this.value) === null || _e === void 0 ? void 0 : _e.bottom) === ((_f = this.stageValue) === null || _f === void 0 ? void 0 : _f.bottom) &&
478      ((_g = this.value) === null || _g === void 0 ? void 0 : _g.left) === ((_h = this.stageValue) === null || _h === void 0 ? void 0 : _h.left));
479  }
480}
481BorderStyleModifier.identity = Symbol('borderStyle');
482class ShadowModifier extends ModifierWithKey {
483  constructor(value) {
484    super(value);
485  }
486  applyPeer(node, reset) {
487    if (reset) {
488      getUINativeModule().common.resetShadow(node);
489    }
490    else {
491      if (isNumber(this.value)) {
492        getUINativeModule().common.setShadow(node, this.value, undefined, undefined, undefined, undefined, undefined, undefined);
493      }
494      else {
495        getUINativeModule().common.setShadow(node, undefined, this.value.radius,
496          this.value.type, this.value.color,
497          this.value.offsetX, this.value.offsetY, this.value.fill);
498      }
499    }
500  }
501  checkObjectDiff() {
502    return !(this.stageValue.radius === this.value.radius &&
503      this.stageValue.type === this.value.type &&
504      this.stageValue.color === this.value.color &&
505      this.stageValue.offsetX === this.value.offsetX &&
506      this.stageValue.offsetY === this.value.offsetY &&
507      this.stageValue.fill === this.value.fill);
508  }
509}
510ShadowModifier.identity = Symbol('shadow');
511class HitTestBehaviorModifier extends ModifierWithKey {
512  constructor(value) {
513    super(value);
514  }
515  applyPeer(node, reset) {
516    if (reset) {
517      getUINativeModule().common.resetHitTestBehavior(node);
518    }
519    else {
520      getUINativeModule().common.setHitTestBehavior(node, this.value);
521    }
522  }
523}
524HitTestBehaviorModifier.identity = Symbol('hitTestBehavior');
525class ZIndexModifier extends ModifierWithKey {
526  constructor(value) {
527    super(value);
528  }
529  applyPeer(node, reset) {
530    if (reset) {
531      getUINativeModule().common.resetZIndex(node);
532    }
533    else {
534      getUINativeModule().common.setZIndex(node, this.value);
535    }
536  }
537}
538ZIndexModifier.identity = Symbol('zIndex');
539class OpacityModifier extends ModifierWithKey {
540  constructor(value) {
541    super(value);
542  }
543  applyPeer(node, reset) {
544    if (reset) {
545      getUINativeModule().common.resetOpacity(node);
546    }
547    else {
548      getUINativeModule().common.setOpacity(node, this.value);
549    }
550  }
551  checkObjectDiff() {
552    return !isBaseOrResourceEqual(this.stageValue, this.value);
553  }
554}
555OpacityModifier.identity = Symbol('opacity');
556class AlignModifier extends ModifierWithKey {
557  constructor(value) {
558    super(value);
559  }
560  applyPeer(node, reset) {
561    if (reset) {
562      getUINativeModule().common.resetAlign(node);
563    }
564    else {
565      getUINativeModule().common.setAlign(node, this.value);
566    }
567  }
568}
569AlignModifier.identity = Symbol('align');
570class BackdropBlurModifier extends ModifierWithKey {
571  constructor(value) {
572    super(value);
573  }
574  applyPeer(node, reset) {
575    if (reset) {
576      getUINativeModule().common.resetBackdropBlur(node);
577    }
578    else {
579      getUINativeModule().common.setBackdropBlur(
580        node, this.value.value, (_a = this.value.options) === null || _a === void 0 ? void 0 : _a.grayscale);
581    }
582  }
583  checkObjectDiff() {
584    return !((this.stageValue.value === this.value.value) &&
585      (this.stageValue.options === this.value.options));
586  }
587}
588BackdropBlurModifier.identity = Symbol('backdropBlur');
589class HueRotateModifier extends ModifierWithKey {
590  constructor(value) {
591    super(value);
592  }
593  applyPeer(node, reset) {
594    if (reset) {
595      getUINativeModule().common.resetHueRotate(node);
596    }
597    else {
598      getUINativeModule().common.setHueRotate(node, this.value);
599    }
600  }
601}
602HueRotateModifier.identity = Symbol('hueRotate');
603class InvertModifier extends ModifierWithKey {
604  constructor(value) {
605    super(value);
606  }
607  applyPeer(node, reset) {
608    if (reset) {
609      getUINativeModule().common.resetInvert(node);
610    }
611    else {
612      if (isNumber(this.value)) {
613        getUINativeModule().common.setInvert(node, this.value, undefined, undefined, undefined, undefined);
614      }
615      else {
616        getUINativeModule().common.setInvert(
617          node, undefined, this.value.low, this.value.high, this.value.threshold, this.value.thresholdRange);
618      }
619    }
620  }
621  checkObjectDiff() {
622    return !(this.stageValue.high == this.value.high &&
623      this.stageValue.low == this.value.low &&
624      this.stageValue.threshold == this.value.threshold &&
625      this.stageValue.thresholdRange == this.value.thresholdRange);
626  }
627}
628InvertModifier.identity = Symbol('invert');
629class SepiaModifier extends ModifierWithKey {
630  constructor(value) {
631    super(value);
632  }
633  applyPeer(node, reset) {
634    if (reset) {
635      getUINativeModule().common.resetSepia(node);
636    }
637    else {
638      getUINativeModule().common.setSepia(node, this.value);
639    }
640  }
641}
642SepiaModifier.identity = Symbol('sepia');
643class SaturateModifier extends ModifierWithKey {
644  constructor(value) {
645    super(value);
646  }
647  applyPeer(node, reset) {
648    if (reset) {
649      getUINativeModule().common.resetSaturate(node);
650    }
651    else {
652      getUINativeModule().common.setSaturate(node, this.value);
653    }
654  }
655}
656SaturateModifier.identity = Symbol('saturate');
657class ColorBlendModifier extends ModifierWithKey {
658  constructor(value) {
659    super(value);
660  }
661  applyPeer(node, reset) {
662    if (reset) {
663      getUINativeModule().common.resetColorBlend(node);
664    }
665    else {
666      getUINativeModule().common.setColorBlend(node, this.value);
667    }
668  }
669  checkObjectDiff() {
670    return !isBaseOrResourceEqual(this.stageValue, this.value);
671  }
672}
673ColorBlendModifier.identity = Symbol('colorBlend');
674class GrayscaleModifier extends ModifierWithKey {
675  constructor(value) {
676    super(value);
677  }
678  applyPeer(node, reset) {
679    if (reset) {
680      getUINativeModule().common.resetGrayscale(node);
681    }
682    else {
683      getUINativeModule().common.setGrayscale(node, this.value);
684    }
685  }
686}
687GrayscaleModifier.identity = Symbol('grayscale');
688class ContrastModifier extends ModifierWithKey {
689  constructor(value) {
690    super(value);
691  }
692  applyPeer(node, reset) {
693    if (reset) {
694      getUINativeModule().common.resetContrast(node);
695    }
696    else {
697      getUINativeModule().common.setContrast(node, this.value);
698    }
699  }
700}
701ContrastModifier.identity = Symbol('contrast');
702class BrightnessModifier extends ModifierWithKey {
703  constructor(value) {
704    super(value);
705  }
706  applyPeer(node, reset) {
707    if (reset) {
708      getUINativeModule().common.resetBrightness(node);
709    }
710    else {
711      getUINativeModule().common.setBrightness(node, this.value);
712    }
713  }
714}
715BrightnessModifier.identity = Symbol('brightness');
716class BlurModifier extends ModifierWithKey {
717  constructor(value) {
718    super(value);
719  }
720  applyPeer(node, reset) {
721    if (reset) {
722      getUINativeModule().common.resetBlur(node);
723    }
724    else {
725      getUINativeModule().common.setBlur(
726        node, this.value.value, (_a = this.value.options) === null || _a === void 0 ? void 0 : _a.grayscale);
727    }
728  }
729  checkObjectDiff() {
730    return !((this.stageValue.value === this.value.value) &&
731      (this.stageValue.options === this.value.options));
732  }
733}
734BlurModifier.identity = Symbol('blur');
735class LinearGradientModifier extends ModifierWithKey {
736  constructor(value) {
737    super(value);
738  }
739  applyPeer(node, reset) {
740    if (reset) {
741      getUINativeModule().common.resetLinearGradient(node);
742    }
743    else {
744      getUINativeModule().common.setLinearGradient(node, this.value.angle, this.value.direction, this.value.colors, this.value.repeating);
745    }
746  }
747  checkObjectDiff() {
748    return !((this.stageValue.angle === this.value.angle) &&
749      (this.stageValue.direction === this.value.direction) &&
750      (this.stageValue.colors === this.value.colors) &&
751      (this.stageValue.repeating === this.value.repeating));
752  }
753}
754LinearGradientModifier.identity = Symbol('linearGradient');
755class RadialGradientModifier extends ModifierWithKey {
756  constructor(value) {
757    super(value);
758  }
759  applyPeer(node, reset) {
760    if (reset) {
761      getUINativeModule().common.resetRadialGradient(node);
762    }
763    else {
764      getUINativeModule().common.setRadialGradient(node, this.value.center, this.value.radius, this.value.colors, this.value.repeating);
765    }
766  }
767  checkObjectDiff() {
768    return !((this.stageValue.center === this.value.center) &&
769      (this.stageValue.radius === this.value.radius) &&
770      (this.stageValue.colors === this.value.colors) &&
771      (this.stageValue.repeating === this.value.repeating));
772  }
773}
774RadialGradientModifier.identity = Symbol('radialGradient');
775class SweepGradientModifier extends ModifierWithKey {
776  constructor(value) {
777    super(value);
778  }
779  applyPeer(node, reset) {
780    if (reset) {
781      getUINativeModule().common.resetSweepGradient(node);
782    }
783    else {
784      getUINativeModule().common.setSweepGradient(node, this.value.center, this.value.start,
785        this.value.end, this.value.rotation, this.value.colors, this.value.repeating);
786    }
787  }
788  checkObjectDiff() {
789    return !((this.stageValue.center === this.value.center) &&
790      (this.stageValue.start === this.value.start) &&
791      (this.stageValue.end === this.value.end) &&
792      (this.stageValue.rotation === this.value.rotation) &&
793      (this.stageValue.colors === this.value.colors) &&
794      (this.stageValue.repeating === this.value.repeating));
795  }
796}
797SweepGradientModifier.identity = Symbol('sweepGradient');
798class OverlayModifier extends ModifierWithKey {
799  constructor(value) {
800    super(value);
801  }
802  applyPeer(node, reset) {
803    if (reset) {
804      getUINativeModule().common.resetOverlay(node);
805    }
806    else {
807      getUINativeModule().common.setOverlay(node, this.value.value, this.value.align,
808        this.value.offsetX, this.value.offsetY, this.value.hasOptions, this.value.hasOffset);
809    }
810  }
811  checkObjectDiff() {
812    if (isUndefined(this.value)) {
813      return !isUndefined(this.stageValue);
814    }
815    return this.value.checkObjectDiff(this.stageValue);
816  }
817}
818OverlayModifier.identity = Symbol('overlay');
819class BorderImageModifier extends ModifierWithKey {
820  constructor(value) {
821    super(value);
822  }
823  applyPeer(node, reset) {
824    if (reset) {
825      getUINativeModule().common.resetBorderImage(node);
826    }
827    else {
828      let sliceTop;
829      let sliceRight;
830      let sliceBottom;
831      let sliceLeft;
832      let repeat;
833      let source;
834      let sourceAngle;
835      let sourceDirection;
836      let sourceColors;
837      let sourceRepeating;
838      let widthTop;
839      let widthRight;
840      let widthBottom;
841      let widthLeft;
842      let outsetTop;
843      let outsetRight;
844      let outsetBottom;
845      let outsetLeft;
846      let fill;
847      if (!isUndefined(this.value.slice)) {
848        if (isLengthType(this.value.slice) || isResource(this.value.slice)) {
849          let tmpSlice = this.value.slice;
850          sliceTop = tmpSlice;
851          sliceRight = tmpSlice;
852          sliceBottom = tmpSlice;
853          sliceLeft = tmpSlice;
854        }
855        else {
856          let tmpSlice = this.value.slice;
857          sliceTop = tmpSlice.top;
858          sliceRight = tmpSlice.right;
859          sliceBottom = tmpSlice.bottom;
860          sliceLeft = tmpSlice.left;
861        }
862      }
863      repeat = this.value.repeat;
864      if (!isUndefined(this.value.source)) {
865        if (isString(this.value.source) || isResource(this.value.source)) {
866          source = this.value.source;
867        }
868        else {
869          let tmpSource = this.value.source;
870          sourceAngle = tmpSource.angle;
871          sourceDirection = tmpSource.direction;
872          sourceColors = tmpSource.colors;
873          sourceRepeating = tmpSource.repeating;
874        }
875      }
876      if (!isUndefined(this.value.width)) {
877        if (isLengthType(this.value.width) || isResource(this.value.width)) {
878          let tmpWidth = this.value.width;
879          widthTop = tmpWidth;
880          widthRight = tmpWidth;
881          widthBottom = tmpWidth;
882          widthLeft = tmpWidth;
883        }
884        else {
885          let tmpWidth = this.value.width;
886          widthTop = tmpWidth.top;
887          widthRight = tmpWidth.right;
888          widthBottom = tmpWidth.bottom;
889          widthLeft = tmpWidth.left;
890        }
891      }
892      if (!isUndefined(this.value.outset)) {
893        if (isLengthType(this.value.outset) || isResource(this.value.outset)) {
894          let tmpOutset = this.value.outset;
895          outsetTop = tmpOutset;
896          outsetRight = tmpOutset;
897          outsetBottom = tmpOutset;
898          outsetLeft = tmpOutset;
899        }
900        else {
901          let tmpOutset = this.value.outset;
902          outsetTop = tmpOutset.top;
903          outsetRight = tmpOutset.right;
904          outsetBottom = tmpOutset.bottom;
905          outsetLeft = tmpOutset.left;
906        }
907      }
908      fill = this.value.fill;
909      getUINativeModule().common.setBorderImage(node, sliceTop, sliceRight, sliceBottom,
910        sliceLeft, repeat, source, sourceAngle, sourceDirection, sourceColors, sourceRepeating,
911        widthTop, widthRight, widthBottom, widthLeft, outsetTop, outsetRight, outsetBottom,
912        outsetLeft, fill);
913    }
914  }
915}
916BorderImageModifier.identity = Symbol('borderImage');
917class BorderModifier extends ModifierWithKey {
918  constructor(value) {
919    super(value);
920  }
921  applyPeer(node, reset) {
922    if (reset) {
923      getUINativeModule().common.resetBorder(node);
924    }
925    else {
926      let isLocalizedBorderWidth;
927      let isLocalizedBorderColor;
928      let isLocalizedBorderRadius;
929      if ((Object.keys(this.value.arkWidth).indexOf('start') >= 0 && !isUndefined(this.value.arkWidth.start)) ||
930        (Object.keys(this.value.arkWidth).indexOf('end') >= 0) && !isUndefined(this.value.arkWidth.end)) {
931        isLocalizedBorderWidth = true;
932      } else {
933        isLocalizedBorderWidth = false;
934      }
935      if ((Object.keys(this.value.arkColor).indexOf('startColor') >= 0 && !isUndefined(this.value.arkColor.startColor)) ||
936        (Object.keys(this.value.arkColor).indexOf('endColor') >= 0) && !isUndefined(this.value.arkColor.endColor)) {
937        isLocalizedBorderColor = true;
938      } else {
939        isLocalizedBorderColor = false;
940      }
941      if ((Object.keys(this.value.arkRadius).indexOf('topStart') >= 0 && !isUndefined(this.value.arkRadius.topStart)) ||
942        (Object.keys(this.value.arkRadius).indexOf('topEnd') >= 0 && !isUndefined(this.value.arkRadius.topEnd)) ||
943        (Object.keys(this.value.arkRadius).indexOf('bottomStart') >= 0 && !isUndefined(this.value.arkRadius.bottomStart)) ||
944        (Object.keys(this.value.arkRadius).indexOf('bottomEnd') >= 0 && !isUndefined(this.value.arkRadius.bottomEnd))) {
945        isLocalizedBorderRadius = true;
946      } else {
947        isLocalizedBorderRadius = false;
948      }
949      getUINativeModule().common.setBorderWithDashParams(node, this.value.arkWidth.left,
950        this.value.arkWidth.right, this.value.arkWidth.top, this.value.arkWidth.bottom,
951        this.value.arkColor.leftColor, this.value.arkColor.rightColor,
952        this.value.arkColor.topColor, this.value.arkColor.bottomColor,
953        this.value.arkRadius.topLeft, this.value.arkRadius.topRight,
954        this.value.arkRadius.bottomLeft, this.value.arkRadius.bottomRight,
955        this.value.arkStyle.top, this.value.arkStyle.right, this.value.arkStyle.bottom,
956        this.value.arkStyle.left, this.value.arkDashGap.left,
957        this.value.arkDashGap.right, this.value.arkDashGap.top, this.value.arkDashGap.bottom,
958        this.value.arkDashWidth.left, this.value.arkDashWidth.right,
959        this.value.arkDashWidth.top, this.value.arkDashWidth.bottom, this.value.arkWidth.start,
960        this.value.arkWidth.end, this.value.arkColor.startColor, this.value.arkColor.endColor,
961        this.value.arkRadius.topStart, this.value.arkRadius.topEnd, this.value.arkRadius.bottomStart,
962        this.value.arkRadius.bottomEnd, isLocalizedBorderWidth, isLocalizedBorderColor, isLocalizedBorderRadius,
963        this.value.arkDashGap.start, this.value.arkDashGap.end, this.value.arkDashWidth.start, this.value.arkDashWidth.end);
964    }
965  }
966  checkObjectDiff() {
967    return this.value.checkObjectDiff(this.stageValue);
968  }
969}
970BorderModifier.identity = Symbol('border');
971class OutlineColorModifier extends ModifierWithKey {
972  constructor(value) {
973    super(value);
974  }
975  applyPeer(node, reset) {
976    if (reset) {
977      getUINativeModule().common.resetOutlineColor(node);
978    }
979    else {
980      const valueType = typeof this.value;
981      if (valueType === 'number' || valueType === 'string' || isResource(this.value)) {
982        getUINativeModule().common.setOutlineColor(node, this.value, this.value, this.value, this.value);
983      }
984      else {
985        getUINativeModule().common.setOutlineColor(node, this.value.left, this.value.right, this.value.top, this.value.bottom);
986      }
987    }
988  }
989  checkObjectDiff() {
990    if (isResource(this.stageValue) && isResource(this.value)) {
991      return !isResourceEqual(this.stageValue, this.value);
992    }
993    else if (!isResource(this.stageValue) && !isResource(this.value)) {
994      return !(this.stageValue.left === this.value.left &&
995        this.stageValue.right === this.value.right &&
996        this.stageValue.top === this.value.top &&
997        this.stageValue.bottom === this.value.bottom);
998    }
999    else {
1000      return true;
1001    }
1002  }
1003}
1004OutlineColorModifier.identity = Symbol('outlineColor');
1005class OutlineRadiusModifier extends ModifierWithKey {
1006  constructor(value) {
1007    super(value);
1008  }
1009  applyPeer(node, reset) {
1010    if (reset) {
1011      getUINativeModule().common.resetOutlineRadius(node);
1012    }
1013    else {
1014      const valueType = typeof this.value;
1015      if (valueType === 'number' || valueType === 'string' || isResource(this.value)) {
1016        getUINativeModule().common.setOutlineRadius(node, this.value, this.value, this.value, this.value);
1017      }
1018      else {
1019        getUINativeModule().common.setOutlineRadius(node, this.value.topLeft, this.value.topRight, this.value.bottomLeft, this.value.bottomRight);
1020      }
1021    }
1022  }
1023  checkObjectDiff() {
1024    if (isResource(this.stageValue) && isResource(this.value)) {
1025      return !isResourceEqual(this.stageValue, this.value);
1026    }
1027    else if (!isResource(this.stageValue) && !isResource(this.value)) {
1028      return !(this.stageValue.topLeft === this.value.topLeft &&
1029        this.stageValue.topRight === this.value.topRight &&
1030        this.stageValue.bottomLeft === this.value.bottomLeft &&
1031        this.stageValue.bottomRight === this.value.bottomRight);
1032    }
1033    else {
1034      return true;
1035    }
1036  }
1037}
1038OutlineRadiusModifier.identity = Symbol('outlineRadius');
1039class OutlineStyleModifier extends ModifierWithKey {
1040  constructor(value) {
1041    super(value);
1042  }
1043  applyPeer(node, reset) {
1044    if (reset) {
1045      getUINativeModule().common.resetOutlineStyle(node);
1046    }
1047    else {
1048      if (isNumber(this.value)) {
1049        getUINativeModule().common.setOutlineStyle(node, this.value, this.value, this.value, this.value);
1050      }
1051      else {
1052        getUINativeModule().common.setOutlineStyle(node, this.value.top, this.value.right, this.value.bottom, this.value.left);
1053      }
1054    }
1055  }
1056  checkObjectDiff() {
1057    return !(this.value.top === this.stageValue.top &&
1058      this.value.right === this.stageValue.right &&
1059      this.value.bottom === this.stageValue.bottom &&
1060      this.value.left === this.stageValue.left);
1061  }
1062}
1063OutlineStyleModifier.identity = Symbol('outlineStyle');
1064class OutlineWidthModifier extends ModifierWithKey {
1065  constructor(value) {
1066    super(value);
1067  }
1068  applyPeer(node, reset) {
1069    if (reset) {
1070      getUINativeModule().common.resetOutlineWidth(node);
1071    }
1072    else {
1073      if (isNumber(this.value) || isString(this.value) || isResource(this.value)) {
1074        getUINativeModule().common.setOutlineWidth(node, this.value, this.value, this.value, this.value);
1075      }
1076      else {
1077        getUINativeModule().common.setOutlineWidth(node, this.value.left, this.value.right, this.value.top, this.value.bottom);
1078      }
1079    }
1080  }
1081  checkObjectDiff() {
1082    if (isResource(this.stageValue) && isResource(this.value)) {
1083      return !isResourceEqual(this.stageValue, this.value);
1084    }
1085    else if (!isResource(this.stageValue) && !isResource(this.value)) {
1086      return !(this.stageValue.left === this.value.left &&
1087        this.stageValue.right === this.value.right &&
1088        this.stageValue.top === this.value.top &&
1089        this.stageValue.bottom === this.value.bottom);
1090    }
1091    else {
1092      return true;
1093    }
1094  }
1095}
1096OutlineWidthModifier.identity = Symbol('outlineWidth');
1097class OutlineModifier extends ModifierWithKey {
1098  constructor(value) {
1099    super(value);
1100  }
1101  applyPeer(node, reset) {
1102    if (reset) {
1103      getUINativeModule().common.resetOutline(node);
1104    }
1105    else {
1106      let widthLeft;
1107      let widthRight;
1108      let widthTop;
1109      let widthBottom;
1110      if (!isUndefined(this.value.width) && this.value.width != null) {
1111        if (isNumber(this.value.width) || isString(this.value.width) || isResource(this.value.width)) {
1112          widthLeft = this.value.width;
1113          widthRight = this.value.width;
1114          widthTop = this.value.width;
1115          widthBottom = this.value.width;
1116        }
1117        else {
1118          widthLeft = this.value.width.left;
1119          widthRight = this.value.width.right;
1120          widthTop = this.value.width.top;
1121          widthBottom = this.value.width.bottom;
1122        }
1123      }
1124      let leftColor;
1125      let rightColor;
1126      let topColor;
1127      let bottomColor;
1128      if (!isUndefined(this.value.color) && this.value.color != null) {
1129        if (isNumber(this.value.color) || isString(this.value.color) || isResource(this.value.color)) {
1130          leftColor = this.value.color;
1131          rightColor = this.value.color;
1132          topColor = this.value.color;
1133          bottomColor = this.value.color;
1134        }
1135        else {
1136          leftColor = this.value.color.left;
1137          rightColor = this.value.color.right;
1138          topColor = this.value.color.top;
1139          bottomColor = this.value.color.bottom;
1140        }
1141      }
1142      let topLeft;
1143      let topRight;
1144      let bottomLeft;
1145      let bottomRight;
1146      if (!isUndefined(this.value.radius) && this.value.radius != null) {
1147        if (isNumber(this.value.radius) || isString(this.value.radius) || isResource(this.value.radius)) {
1148          topLeft = this.value.radius;
1149          topRight = this.value.radius;
1150          bottomLeft = this.value.radius;
1151          bottomRight = this.value.radius;
1152        }
1153        else {
1154          topLeft = this.value.radius.topLeft;
1155          topRight = this.value.radius.topRight;
1156          bottomLeft = this.value.radius.bottomLeft;
1157          bottomRight = this.value.radius.bottomRight;
1158        }
1159      }
1160      let styleTop;
1161      let styleRight;
1162      let styleBottom;
1163      let styleLeft;
1164      if (!isUndefined(this.value.style) && this.value.style != null) {
1165        if (isNumber(this.value.style) || isString(this.value.style) || isResource(this.value.style)) {
1166          styleTop = this.value.style;
1167          styleRight = this.value.style;
1168          styleBottom = this.value.style;
1169          styleLeft = this.value.style;
1170        }
1171        else {
1172          styleTop = this.value.style.top;
1173          styleRight = this.value.style.right;
1174          styleBottom = this.value.style.bottom;
1175          styleLeft = this.value.style.left;
1176        }
1177      }
1178      getUINativeModule().common.setOutline(node, widthLeft, widthRight, widthTop, widthBottom,
1179        leftColor, rightColor, topColor, bottomColor,
1180        topLeft, topRight, bottomLeft, bottomRight,
1181        styleTop, styleRight, styleBottom, styleLeft);
1182    }
1183  }
1184  checkObjectDiff() {
1185    return !isBaseOrResourceEqual(this.stageValue.width, this.value.width) ||
1186      !isBaseOrResourceEqual(this.stageValue.color, this.value.color) ||
1187      !isBaseOrResourceEqual(this.stageValue.radius, this.value.radius) ||
1188      !isBaseOrResourceEqual(this.stageValue.style, this.value.style);
1189  }
1190}
1191OutlineModifier.identity = Symbol('outline');
1192class ForegroundBlurStyleModifier extends ModifierWithKey {
1193  constructor(value) {
1194    super(value);
1195  }
1196  applyPeer(node, reset) {
1197    if (reset) {
1198      getUINativeModule().common.resetForegroundBlurStyle(node);
1199    }
1200    else {
1201      getUINativeModule().common.setForegroundBlurStyle(node, this.value.blurStyle, this.value.colorMode, this.value.adaptiveColor, this.value.scale,
1202        (_a = this.value.blurOptions) === null || _a === void 0 ? void 0 : _a.grayscale);
1203    }
1204  }
1205  checkObjectDiff() {
1206    return !(this.stageValue.blurStyle === this.value.blurStyle &&
1207      this.stageValue.colorMode === this.value.colorMode &&
1208      this.stageValue.adaptiveColor === this.value.adaptiveColor &&
1209      this.stageValue.scale === this.value.scale &&
1210      this.stageValue.blurOptions === this.value.blurOptions);
1211  }
1212}
1213ForegroundBlurStyleModifier.identity = Symbol('foregroundBlurStyle');
1214class BackgroundImagePositionModifier extends ModifierWithKey {
1215  constructor(value) {
1216    super(value);
1217  }
1218  applyPeer(node, reset) {
1219    let _a, _b;
1220    if (reset) {
1221      getUINativeModule().common.resetBackgroundImagePosition(node);
1222    }
1223    else {
1224      if (isNumber(this.value)) {
1225        getUINativeModule().common.setBackgroundImagePosition(node, this.value, undefined, undefined);
1226      }
1227      else {
1228        getUINativeModule().common.setBackgroundImagePosition(node, undefined,
1229          (_a = this.value) === null || _a === void 0 ? void 0 : _a.x,
1230          (_b = this.value) === null || _b === void 0 ? void 0 : _b.y);
1231      }
1232    }
1233  }
1234  checkObjectDiff() {
1235    let _a, _b, _c, _d;
1236    return !(((_a = this.value) === null || _a === void 0 ? void 0 : _a.x) === ((_b = this.stageValue) === null || _b === void 0 ? void 0 : _b.x) &&
1237      ((_c = this.value) === null || _c === void 0 ? void 0 : _c.y) === ((_d = this.stageValue) === null || _d === void 0 ? void 0 : _d.y));
1238  }
1239}
1240BackgroundImagePositionModifier.identity = Symbol('backgroundImagePosition');
1241class BackgroundImageResizableModifier extends ModifierWithKey {
1242  constructor(value) {
1243    super(value);
1244  }
1245  applyPeer(node, reset) {
1246    if (reset) {
1247      getUINativeModule().common.resetBackgroundImageResizable(node);
1248    }
1249    else {
1250      let sliceTop, sliceBottom, sliceLeft, sliceRight;
1251      if (!isUndefined(this.value.slice)) {
1252        let tempSlice = this.value.slice;
1253        sliceTop = tempSlice.top;
1254        sliceBottom = tempSlice.bottom;
1255        sliceLeft = tempSlice.left;
1256        sliceRight = tempSlice.right;
1257      }
1258      getUINativeModule().common.setBackgroundImageResizable(node, sliceTop, sliceBottom, sliceLeft, sliceRight);
1259    }
1260  }
1261  checkObjectDiff() {
1262    return !isBaseOrResourceEqual(this.stageValue, this.value);
1263  }
1264}
1265BackgroundImageResizableModifier.identity = Symbol('backgroundImageResizable');
1266class LinearGradientBlurModifier extends ModifierWithKey {
1267  constructor(value) {
1268    super(value);
1269  }
1270  applyPeer(node, reset) {
1271    if (reset) {
1272      getUINativeModule().common.resetLinearGradientBlur(node);
1273    }
1274    else {
1275      getUINativeModule().common.setLinearGradientBlur(node, this.value.blurRadius, this.value.fractionStops, this.value.direction);
1276    }
1277  }
1278  checkObjectDiff() {
1279    return !this.value.isEqual(this.stageValue);
1280  }
1281}
1282LinearGradientBlurModifier.identity = Symbol('linearGradientBlur');
1283class BackgroundImageModifier extends ModifierWithKey {
1284  constructor(value) {
1285    super(value);
1286  }
1287  applyPeer(node, reset) {
1288    if (reset) {
1289      getUINativeModule().common.resetBackgroundImage(node);
1290    }
1291    else {
1292      getUINativeModule().common.setBackgroundImage(node, this.value.src, this.value.repeat);
1293    }
1294  }
1295  checkObjectDiff() {
1296    return !(this.stageValue.src === this.value.src &&
1297      this.stageValue.repeat === this.value.repeat);
1298  }
1299}
1300BackgroundImageModifier.identity = Symbol('backgroundImage');
1301class BackgroundBlurStyleModifier extends ModifierWithKey {
1302  constructor(value) {
1303    super(value);
1304  }
1305  applyPeer(node, reset) {
1306    if (reset) {
1307      getUINativeModule().common.resetBackgroundBlurStyle(node);
1308    }
1309    else {
1310      getUINativeModule().common.setBackgroundBlurStyle(node, this.value.blurStyle, this.value.colorMode,
1311        this.value.adaptiveColor, this.value.scale,
1312        (_a = this.value.blurOptions) === null || _a === void 0 ? void 0 : _a.grayscale,
1313        this.value.policy, this.value.inactiveColor, this.value.type);
1314    }
1315  }
1316}
1317BackgroundBlurStyleModifier.identity = Symbol('backgroundBlurStyle');
1318class BackgroundImageSizeModifier extends ModifierWithKey {
1319  constructor(value) {
1320    super(value);
1321  }
1322  applyPeer(node, reset) {
1323    let _a, _b;
1324    if (reset) {
1325      getUINativeModule().common.resetBackgroundImageSize(node);
1326    }
1327    else {
1328      if (isNumber(this.value)) {
1329        getUINativeModule().common.setBackgroundImageSize(node, this.value, undefined, undefined);
1330      }
1331      else {
1332        getUINativeModule().common.setBackgroundImageSize(node, undefined,
1333          (_a = this.value) === null || _a === void 0 ? void 0 : _a.width,
1334          (_b = this.value) === null || _b === void 0 ? void 0 : _b.height);
1335      }
1336    }
1337  }
1338  checkObjectDiff() {
1339    return !(this.value.width === this.stageValue.width &&
1340      this.value.height === this.stageValue.height);
1341  }
1342}
1343BackgroundImageSizeModifier.identity = Symbol('backgroundImageSize');
1344class TranslateModifier extends ModifierWithKey {
1345  constructor(value) {
1346    super(value);
1347  }
1348  applyPeer(node, reset) {
1349    if (reset) {
1350      getUINativeModule().common.resetTranslate(node);
1351    }
1352    else {
1353      getUINativeModule().common.setTranslate(node, this.value.x, this.value.y, this.value.z);
1354    }
1355  }
1356  checkObjectDiff() {
1357    return !(this.value.x === this.stageValue.x &&
1358      this.value.y === this.stageValue.y &&
1359      this.value.z === this.stageValue.z);
1360  }
1361}
1362TranslateModifier.identity = Symbol('translate');
1363class ScaleModifier extends ModifierWithKey {
1364  constructor(value) {
1365    super(value);
1366  }
1367  applyPeer(node, reset) {
1368    if (reset) {
1369      getUINativeModule().common.resetScale(node);
1370    }
1371    else {
1372      getUINativeModule().common.setScale(node, this.value.x, this.value.y, this.value.z, this.value.centerX, this.value.centerY);
1373    }
1374  }
1375  checkObjectDiff() {
1376    return !(this.value.x === this.stageValue.x &&
1377      this.value.y === this.stageValue.y &&
1378      this.value.z === this.stageValue.z &&
1379      this.value.centerX === this.stageValue.centerX &&
1380      this.value.centerY === this.stageValue.centerY);
1381  }
1382}
1383ScaleModifier.identity = Symbol('scale');
1384class RotateModifier extends ModifierWithKey {
1385  constructor(value) {
1386    super(value);
1387  }
1388  applyPeer(node, reset) {
1389    if (reset) {
1390      getUINativeModule().common.resetRotate(node);
1391    }
1392    else {
1393      getUINativeModule().common.setRotate(node, this.value.x, this.value.y,
1394        this.value.z, this.value.angle, this.value.centerX, this.value.centerY,
1395        this.value.centerY, this.value.perspective);
1396    }
1397  }
1398  checkObjectDiff() {
1399    return !(this.value.x === this.stageValue.x &&
1400      this.value.y === this.stageValue.y &&
1401      this.value.z === this.stageValue.z &&
1402      this.value.angle === this.stageValue.angle &&
1403      this.value.centerX === this.stageValue.centerX &&
1404      this.value.centerY === this.stageValue.centerY &&
1405      this.value.centerZ === this.stageValue.centerZ &&
1406      this.value.perspective === this.stageValue.perspective);
1407  }
1408}
1409RotateModifier.identity = Symbol('rotate');
1410class GeometryTransitionModifier extends ModifierWithKey {
1411  constructor(value) {
1412    super(value);
1413  }
1414  applyPeer(node, reset) {
1415    let _a, _b;
1416    if (reset) {
1417      getUINativeModule().common.resetGeometryTransition(node);
1418    }
1419    else {
1420      getUINativeModule().common.setGeometryTransition(node, this.value.id,
1421        (_a = this.value.options) === null || _a === void 0 ? void 0 : _a.follow,
1422        (_b = this.value.options) === null || _b === void 0 ? void 0 : _b.hierarchyStrategy);
1423    }
1424  }
1425}
1426GeometryTransitionModifier.identity = Symbol('geometryTransition');
1427class BlendModeModifier extends ModifierWithKey {
1428  constructor(value) {
1429    super(value);
1430  }
1431  applyPeer(node, reset) {
1432    if (reset) {
1433      getUINativeModule().common.resetBlendMode(node);
1434    }
1435    else {
1436      getUINativeModule().common.setBlendMode(node, this.value.blendMode, this.value.blendApplyType);
1437    }
1438  }
1439}
1440BlendModeModifier.identity = Symbol('blendMode');
1441class AdvancedBlendModeModifier extends ModifierWithKey {
1442  constructor(value) {
1443    super(value);
1444  }
1445  applyPeer(node, reset) {
1446    if (reset) {
1447      getUINativeModule().common.resetAdvancedBlendMode(node);
1448    } else {
1449      getUINativeModule().common.setAdvancedBlendMode(node, this.value.blendMode, this.value.blendApplyType);
1450    }
1451  }
1452}
1453AdvancedBlendModeModifier.identity = Symbol('advancedBlendMode');
1454class ClipModifier extends ModifierWithKey {
1455  constructor(value) {
1456    super(value);
1457  }
1458  applyPeer(node, reset) {
1459    if (reset) {
1460      getUINativeModule().common.resetClip(node);
1461    }
1462    else {
1463      getUINativeModule().common.setClip(node, this.value);
1464    }
1465  }
1466  checkObjectDiff() {
1467    return true;
1468  }
1469}
1470ClipModifier.identity = Symbol('clip');
1471class ClipShapeModifier extends ModifierWithKey {
1472  constructor(value) {
1473    super(value);
1474  }
1475  applyPeer(node, reset) {
1476    if (reset) {
1477      getUINativeModule().common.resetClipShape(node);
1478    }
1479    else {
1480      getUINativeModule().common.setClipShape(node, this.value);
1481    }
1482  }
1483  checkObjectDiff() {
1484    return true;
1485  }
1486}
1487ClipShapeModifier.identity = Symbol('clipShape');
1488class MaskModifier extends ModifierWithKey {
1489  constructor(value) {
1490    super(value);
1491  }
1492  applyPeer(node, reset) {
1493    if (reset) {
1494      getUINativeModule().common.resetMask(node);
1495    }
1496    else {
1497      getUINativeModule().common.setMask(node, this.value);
1498    }
1499  }
1500  checkObjectDiff() {
1501    return true;
1502  }
1503}
1504MaskModifier.identity = Symbol('mask');
1505class MaskShapeModifier extends ModifierWithKey {
1506  constructor(value) {
1507    super(value);
1508  }
1509  applyPeer(node, reset) {
1510    if (reset) {
1511      getUINativeModule().common.resetMaskShape(node);
1512    }
1513    else {
1514      getUINativeModule().common.setMaskShape(node, this.value);
1515    }
1516  }
1517  checkObjectDiff() {
1518    return true;
1519  }
1520}
1521MaskShapeModifier.identity = Symbol('maskShape');
1522class PixelStretchEffectModifier extends ModifierWithKey {
1523  constructor(value) {
1524    super(value);
1525  }
1526  applyPeer(node, reset) {
1527    if (reset) {
1528      getUINativeModule().common.resetPixelStretchEffect(node);
1529    }
1530    else {
1531      getUINativeModule().common.setPixelStretchEffect(node, this.value.top, this.value.right, this.value.bottom, this.value.left);
1532    }
1533  }
1534  checkObjectDiff() {
1535    return !(this.stageValue.left === this.value.left &&
1536      this.stageValue.right === this.value.right &&
1537      this.stageValue.top === this.value.top &&
1538      this.stageValue.bottom === this.value.bottom);
1539  }
1540}
1541PixelStretchEffectModifier.identity = Symbol('pixelStretchEffect');
1542class LightUpEffectModifier extends ModifierWithKey {
1543  constructor(value) {
1544    super(value);
1545  }
1546  applyPeer(node, reset) {
1547    if (reset) {
1548      getUINativeModule().common.resetLightUpEffect(node);
1549    }
1550    else {
1551      getUINativeModule().common.setLightUpEffect(node, this.value);
1552    }
1553  }
1554}
1555LightUpEffectModifier.identity = Symbol('lightUpEffect');
1556class SphericalEffectModifier extends ModifierWithKey {
1557  constructor(value) {
1558    super(value);
1559  }
1560  applyPeer(node, reset) {
1561    if (reset) {
1562      getUINativeModule().common.resetSphericalEffect(node);
1563    }
1564    else {
1565      getUINativeModule().common.setSphericalEffect(node, this.value);
1566    }
1567  }
1568}
1569SphericalEffectModifier.identity = Symbol('sphericalEffect');
1570class RenderGroupModifier extends ModifierWithKey {
1571  constructor(value) {
1572    super(value);
1573  }
1574  applyPeer(node, reset) {
1575    if (reset) {
1576      getUINativeModule().common.resetRenderGroup(node);
1577    }
1578    else {
1579      getUINativeModule().common.setRenderGroup(node, this.value);
1580    }
1581  }
1582}
1583RenderGroupModifier.identity = Symbol('renderGroup');
1584class RenderFitModifier extends ModifierWithKey {
1585  constructor(value) {
1586    super(value);
1587  }
1588  applyPeer(node, reset) {
1589    if (reset) {
1590      getUINativeModule().common.resetRenderFit(node);
1591    }
1592    else {
1593      getUINativeModule().common.setRenderFit(node, this.value);
1594    }
1595  }
1596}
1597RenderFitModifier.identity = Symbol('renderFit');
1598class UseEffectModifier extends ModifierWithKey {
1599  constructor(value) {
1600    super(value);
1601  }
1602  applyPeer(node, reset) {
1603    if (reset) {
1604      getUINativeModule().common.resetUseEffect(node);
1605    }
1606    else {
1607      getUINativeModule().common.setUseEffect(node, this.value.useEffect, this.value.effectType);
1608    }
1609  }
1610}
1611UseEffectModifier.identity = Symbol('useEffect');
1612class ForegroundEffectModifier extends ModifierWithKey {
1613  constructor(value) {
1614    super(value);
1615  }
1616  applyPeer(node, reset) {
1617    if (reset) {
1618      getUINativeModule().common.resetForegroundEffect(node);
1619    }
1620    else {
1621      getUINativeModule().common.setForegroundEffect(node, this.value.radius);
1622    }
1623  }
1624  checkObjectDiff() {
1625    return !(this.value.radius === this.stageValue.radius);
1626  }
1627}
1628ForegroundEffectModifier.identity = Symbol('foregroundEffect');
1629class ForegroundColorModifier extends ModifierWithKey {
1630  constructor(value) {
1631    super(value);
1632  }
1633  applyPeer(node, reset) {
1634    if (reset) {
1635      getUINativeModule().common.resetForegroundColor(node);
1636    }
1637    else {
1638      getUINativeModule().common.setForegroundColor(node, this.value);
1639    }
1640  }
1641  checkObjectDiff() {
1642    return !isBaseOrResourceEqual(this.stageValue, this.value);
1643  }
1644}
1645ForegroundColorModifier.identity = Symbol('foregroundColor');
1646class ClickModifier extends ModifierWithKey {
1647  constructor(value) {
1648    super(value);
1649  }
1650  applyPeer(node, reset) {
1651    if (reset) {
1652      getUINativeModule().common.resetOnClick(node);
1653    } else {
1654      getUINativeModule().common.setOnClick(node, this.value);
1655    }
1656  }
1657}
1658ClickModifier.identity = Symbol('onClick');
1659class DragStartModifier extends ModifierWithKey {
1660  constructor(value) {
1661    super(value);
1662  }
1663  applyPeer(node, reset) {
1664    if (reset) {
1665      getUINativeModule().common.resetOnDragStart(node);
1666    } else {
1667      getUINativeModule().common.setOnDragStart(node, this.value);
1668    }
1669  }
1670}
1671DragStartModifier.identity = Symbol('onDragStart');
1672class DragEnterModifier extends ModifierWithKey {
1673  constructor(value) {
1674    super(value);
1675  }
1676  applyPeer(node, reset) {
1677    if (reset) {
1678      getUINativeModule().common.resetOnDragEnter(node);
1679    } else {
1680      getUINativeModule().common.setOnDragEnter(node, this.value);
1681    }
1682  }
1683}
1684DragEnterModifier.identity = Symbol('onDragEnter');
1685class DragMoveModifier extends ModifierWithKey {
1686  constructor(value) {
1687    super(value);
1688  }
1689  applyPeer(node, reset) {
1690    if (reset) {
1691      getUINativeModule().common.resetOnDragMove(node);
1692    } else {
1693      getUINativeModule().common.setOnDragMove(node, this.value);
1694    }
1695  }
1696}
1697DragMoveModifier.identity = Symbol('onDragMove');
1698class DragLeaveModifier extends ModifierWithKey {
1699  constructor(value) {
1700    super(value);
1701  }
1702  applyPeer(node, reset) {
1703    if (reset) {
1704      getUINativeModule().common.resetOnDragLeave(node);
1705    } else {
1706      getUINativeModule().common.setOnDragLeave(node, this.value);
1707    }
1708  }
1709}
1710DragLeaveModifier.identity = Symbol('onDragLeave');
1711class DropModifier extends ModifierWithKey {
1712  constructor(value) {
1713    super(value);
1714  }
1715  applyPeer(node, reset) {
1716    if (reset) {
1717      getUINativeModule().common.resetOnDrop(node);
1718    } else {
1719      getUINativeModule().common.setOnDrop(node, this.value);
1720    }
1721  }
1722}
1723DropModifier.identity = Symbol('onDrop');
1724class DragEndModifier extends ModifierWithKey {
1725  constructor(value) {
1726    super(value);
1727  }
1728  applyPeer(node, reset) {
1729    if (reset) {
1730      getUINativeModule().common.resetOnDragEnd(node);
1731    } else {
1732      getUINativeModule().common.setOnDragEnd(node, this.value);
1733    }
1734  }
1735}
1736DragEndModifier.identity = Symbol('onDragEnd');
1737class OnTouchModifier extends ModifierWithKey {
1738  constructor(value) {
1739    super(value);
1740  }
1741  applyPeer(node, reset) {
1742    if (reset) {
1743      getUINativeModule().common.resetOnTouch(node);
1744    } else {
1745      getUINativeModule().common.setOnTouch(node, this.value);
1746    }
1747  }
1748}
1749OnTouchModifier.identity = Symbol('onTouch');
1750class OnAppearModifier extends ModifierWithKey {
1751  constructor(value) {
1752    super(value);
1753  }
1754  applyPeer(node, reset) {
1755    if (reset) {
1756      getUINativeModule().common.resetOnAppear(node);
1757    } else {
1758      getUINativeModule().common.setOnAppear(node, this.value);
1759    }
1760  }
1761}
1762OnAppearModifier.identity = Symbol('onAppear');
1763class OnDisappearModifier extends ModifierWithKey {
1764  constructor(value) {
1765    super(value);
1766  }
1767  applyPeer(node, reset) {
1768    if (reset) {
1769      getUINativeModule().common.resetOnDisappear(node);
1770    } else {
1771      getUINativeModule().common.setOnDisappear(node, this.value);
1772    }
1773  }
1774}
1775OnDisappearModifier.identity = Symbol('onDisappear');
1776class OnAttachModifier extends ModifierWithKey {
1777  constructor(value) {
1778    super(value);
1779  }
1780  applyPeer(node, reset) {
1781    if (reset) {
1782      getUINativeModule().common.resetOnAttach(node);
1783    } else {
1784      getUINativeModule().common.setOnAttach(node, this.value);
1785    }
1786  }
1787}
1788OnAttachModifier.identity = Symbol('onAttach');
1789class OnDetachModifier extends ModifierWithKey {
1790  constructor(value) {
1791    super(value);
1792  }
1793  applyPeer(node, reset) {
1794    if (reset) {
1795      getUINativeModule().common.resetOnDetach(node);
1796    } else {
1797      getUINativeModule().common.setOnDetach(node, this.value);
1798    }
1799  }
1800}
1801OnDetachModifier.identity = Symbol('onDetach');
1802class OnKeyEventModifier extends ModifierWithKey {
1803  constructor(value) {
1804    super(value);
1805  }
1806  applyPeer(node, reset) {
1807    if (reset) {
1808      getUINativeModule().common.resetOnKeyEvent(node);
1809    } else {
1810      getUINativeModule().common.setOnKeyEvent(node, this.value);
1811    }
1812  }
1813}
1814OnKeyEventModifier.identity = Symbol('onKeyEvent');
1815class OnKeyPreImeModifier extends ModifierWithKey {
1816  constructor(value) {
1817    super(value);
1818  }
1819  applyPeer(node, reset) {
1820    if (reset) {
1821      getUINativeModule().common.resetOnKeyPreIme(node);
1822    } else {
1823      getUINativeModule().common.setOnKeyPreIme(node, this.value);
1824    }
1825  }
1826}
1827OnKeyPreImeModifier.identity = Symbol('onKeyPreIme');
1828class OnFocusModifier extends ModifierWithKey {
1829  constructor(value) {
1830    super(value);
1831  }
1832  applyPeer(node, reset) {
1833    if (reset) {
1834      getUINativeModule().common.resetOnFocus(node);
1835    } else {
1836      getUINativeModule().common.setOnFocus(node, this.value);
1837    }
1838  }
1839}
1840OnFocusModifier.identity = Symbol('onFocus');
1841class OnBlurModifier extends ModifierWithKey {
1842  constructor(value) {
1843    super(value);
1844  }
1845  applyPeer(node, reset) {
1846    if (reset) {
1847      getUINativeModule().common.resetOnBlur(node);
1848    } else {
1849      getUINativeModule().common.setOnBlur(node, this.value);
1850    }
1851  }
1852}
1853OnBlurModifier.identity = Symbol('onBlur');
1854
1855class OnHoverModifier extends ModifierWithKey {
1856  constructor(value) {
1857    super(value);
1858  }
1859  applyPeer(node, reset) {
1860    if (reset) {
1861      getUINativeModule().common.resetOnHover(node);
1862    } else {
1863      getUINativeModule().common.setOnHover(node, this.value);
1864    }
1865  }
1866}
1867OnHoverModifier.identity = Symbol('onHover');
1868class OnMouseModifier extends ModifierWithKey {
1869  constructor(value) {
1870    super(value);
1871  }
1872  applyPeer(node, reset) {
1873    if (reset) {
1874      getUINativeModule().common.resetOnMouse(node);
1875    } else {
1876      getUINativeModule().common.setOnMouse(node, this.value);
1877    }
1878  }
1879}
1880OnMouseModifier.identity = Symbol('onMouse');
1881class OnSizeChangeModifier extends ModifierWithKey {
1882  constructor(value) {
1883    super(value);
1884  }
1885  applyPeer(node, reset) {
1886    if (reset) {
1887      getUINativeModule().common.resetOnSizeChange(node);
1888    } else {
1889      getUINativeModule().common.setOnSizeChange(node, this.value);
1890    }
1891  }
1892}
1893OnSizeChangeModifier.identity = Symbol('onSizeChange');
1894class OnAreaChangeModifier extends ModifierWithKey {
1895  constructor(value) {
1896    super(value);
1897  }
1898  applyPeer(node, reset) {
1899    if (reset) {
1900      getUINativeModule().common.resetOnAreaChange(node);
1901    } else {
1902      getUINativeModule().common.setOnAreaChange(node, this.value);
1903    }
1904  }
1905}
1906OnSizeChangeModifier.identity = Symbol('onAreaChange');
1907class OnGestureJudgeBeginModifier extends ModifierWithKey {
1908  constructor(value) {
1909    super(value);
1910  }
1911  applyPeer(node, reset) {
1912    if (reset) {
1913      getUINativeModule().common.resetOnGestureJudgeBegin(node);
1914    } else {
1915      getUINativeModule().common.setOnGestureJudgeBegin(node, this.value);
1916    }
1917  }
1918}
1919OnGestureJudgeBeginModifier.identity = Symbol('onGestureJudgeBegin');
1920class OnGestureRecognizerJudgeBeginModifier extends ModifierWithKey {
1921  constructor(value) {
1922    super(value);
1923  }
1924  applyPeer(node, reset) {
1925    if (reset) {
1926      getUINativeModule().common.resetOnGestureRecognizerJudgeBegin(node);
1927    } else {
1928      getUINativeModule().common.setOnGestureRecognizerJudgeBegin(node, this.value);
1929    }
1930  }
1931}
1932OnGestureRecognizerJudgeBeginModifier.identity = Symbol('onGestureRecognizerJudgeBegin');
1933class ShouldBuiltInRecognizerParallelWithModifier extends ModifierWithKey {
1934  constructor(value) {
1935    super(value);
1936  }
1937  applyPeer(node, reset) {
1938    if (reset) {
1939      getUINativeModule().common.resetShouldBuiltInRecognizerParallelWith(node);
1940    } else {
1941      getUINativeModule().common.setShouldBuiltInRecognizerParallelWith(node, this.value);
1942    }
1943  }
1944}
1945ShouldBuiltInRecognizerParallelWithModifier.identity = Symbol('shouldBuiltInRecognizerParallelWith');
1946class MotionPathModifier extends ModifierWithKey {
1947  constructor(value) {
1948    super(value);
1949  }
1950  applyPeer(node, reset) {
1951    if (reset) {
1952      getUINativeModule().common.resetMotionPath(node);
1953    }
1954    else {
1955      let path;
1956      let rotatable;
1957      let from;
1958      let to;
1959      if (isString(this.value.path)) {
1960        path = this.value.path;
1961      }
1962      if (isBoolean(this.value.rotatable)) {
1963        rotatable = this.value.rotatable;
1964      }
1965      if (isNumber(this.value.from) && isNumber(this.value.to)) {
1966        from = this.value.from;
1967        to = this.value.to;
1968      }
1969      getUINativeModule().common.setMotionPath(node, path, from, to, rotatable);
1970    }
1971  }
1972  checkObjectDiff() {
1973    return !(this.value.path === this.stageValue.path &&
1974      this.value.from === this.stageValue.from &&
1975      this.value.to === this.stageValue.to &&
1976      this.value.rotatable === this.stageValue.rotatable);
1977  }
1978}
1979MotionPathModifier.identity = Symbol('motionPath');
1980class MotionBlurModifier extends ModifierWithKey {
1981  constructor(value) {
1982    super(value);
1983  }
1984  applyPeer(node, reset) {
1985    if (reset) {
1986      getUINativeModule().common.resetMotionBlur(node);
1987    }
1988    else {
1989      getUINativeModule().common.setMotionBlur(node, this.value.radius, this.value.anchor.x, this.value.anchor.y);
1990    }
1991  }
1992}
1993MotionBlurModifier.identity = Symbol('motionBlur');
1994class GroupDefaultFocusModifier extends ModifierWithKey {
1995  constructor(value) {
1996    super(value);
1997  }
1998  applyPeer(node, reset) {
1999    if (reset) {
2000      getUINativeModule().common.resetGroupDefaultFocus(node);
2001    }
2002    else {
2003      getUINativeModule().common.setGroupDefaultFocus(node, this.value);
2004    }
2005  }
2006}
2007GroupDefaultFocusModifier.identity = Symbol('groupDefaultFocus');
2008class FocusOnTouchModifier extends ModifierWithKey {
2009  constructor(value) {
2010    super(value);
2011  }
2012  applyPeer(node, reset) {
2013    if (reset) {
2014      getUINativeModule().common.resetFocusOnTouch(node);
2015    }
2016    else {
2017      getUINativeModule().common.setFocusOnTouch(node, this.value);
2018    }
2019  }
2020}
2021FocusOnTouchModifier.identity = Symbol('focusOnTouch');
2022class OffsetModifier extends ModifierWithKey {
2023  constructor(value) {
2024    super(value);
2025  }
2026  applyPeer(node, reset) {
2027    if (reset) {
2028      getUINativeModule().common.resetOffset(node);
2029    } else {
2030      if (isUndefined(this.value)) {
2031        getUINativeModule().common.resetOffset(node);
2032      } else if (('x' in this.value) || ('y' in this.value)) {
2033        getUINativeModule().common.setOffset(node, false, this.value.x, this.value.y);
2034      } else if (('top' in this.value) || ('bottom' in this.value) || ('left' in this.value) || ('start' in this.value) || ('right' in this.value) || ('end' in this.value)) {
2035        if (('start' in this.value)) {
2036          this.value.left = this.value.start;
2037        }
2038        if (('end' in this.value)) {
2039          this.value.right = this.value.end;
2040        }
2041        getUINativeModule().common.setOffset(node, true, this.value.top, this.value.left, this.value.bottom, this.value.right);
2042      } else {
2043        getUINativeModule().common.resetOffset(node);
2044      }
2045    }
2046  }
2047  checkObjectDiff() {
2048    return !isBaseOrResourceEqual(this.stageValue.x, this.value.x) ||
2049      !isBaseOrResourceEqual(this.stageValue.y, this.value.y) ||
2050      !isBaseOrResourceEqual(this.stageValue.top, this.value.top) ||
2051      !isBaseOrResourceEqual(this.stageValue.left, this.value.left) ||
2052      !isBaseOrResourceEqual(this.stageValue.bottom, this.value.bottom) ||
2053      !isBaseOrResourceEqual(this.stageValue.right, this.value.right) ||
2054      !isBaseOrResourceEqual(this.stageValue.start, this.value.start) ||
2055      !isBaseOrResourceEqual(this.stageValue.end, this.value.end);
2056  }
2057}
2058OffsetModifier.identity = Symbol('offset');
2059class MarkAnchorModifier extends ModifierWithKey {
2060  constructor(value) {
2061    super(value);
2062  }
2063  applyPeer(node, reset) {
2064    if (reset) {
2065      getUINativeModule().common.resetMarkAnchor(node);
2066    }
2067    else {
2068      if (this.value === void 0) {
2069        getUINativeModule().common.resetMarkAnchor(node);
2070      } else {
2071        if ('start' in this.value) {
2072          this.value.x = this.value.start;
2073        }
2074        if ('top' in this.value) {
2075          this.value.y = this.value.top;
2076        }
2077      }
2078      getUINativeModule().common.setMarkAnchor(node, this.value.x, this.value.y);
2079    }
2080  }
2081  checkObjectDiff() {
2082    return !isBaseOrResourceEqual(this.stageValue.x, this.value.x) ||
2083      !isBaseOrResourceEqual(this.stageValue.y, this.value.y) ||
2084      !isBaseOrResourceEqual(this.stageValue.start, this.value.start) ||
2085      !isBaseOrResourceEqual(this.stageValue.top, this.value.top);
2086  }
2087}
2088MarkAnchorModifier.identity = Symbol('markAnchor');
2089class DefaultFocusModifier extends ModifierWithKey {
2090  constructor(value) {
2091    super(value);
2092  }
2093  applyPeer(node, reset) {
2094    if (reset) {
2095      getUINativeModule().common.resetDefaultFocus(node);
2096    }
2097    else {
2098      getUINativeModule().common.setDefaultFocus(node, this.value);
2099    }
2100  }
2101}
2102DefaultFocusModifier.identity = Symbol('defaultFocus');
2103class FocusableModifier extends ModifierWithKey {
2104  constructor(value) {
2105    super(value);
2106  }
2107  applyPeer(node, reset) {
2108    getUINativeModule().common.setFocusable(node, this.value);
2109  }
2110}
2111FocusableModifier.identity = Symbol('focusable');
2112class TabStopModifier extends ModifierWithKey {
2113  constructor(value) {
2114    super(value);
2115  }
2116  applyPeer(node, reset) {
2117    getUINativeModule().common.setTabStop(node, this.value);
2118  }
2119}
2120TabStopModifier.identity = Symbol('tabStop');
2121class TouchableModifier extends ModifierWithKey {
2122  constructor(value) {
2123    super(value);
2124  }
2125  applyPeer(node, reset) {
2126    if (reset) {
2127      getUINativeModule().common.resetTouchable(node);
2128    }
2129    else {
2130      getUINativeModule().common.setTouchable(node, this.value);
2131    }
2132  }
2133}
2134TouchableModifier.identity = Symbol('touchable');
2135class MarginModifier extends ModifierWithKey {
2136  constructor(value) {
2137    super(value);
2138  }
2139  applyPeer(node, reset) {
2140    if (reset) {
2141      getUINativeModule().common.resetMargin(node);
2142    }
2143    else {
2144      getUINativeModule().common.setMargin(node, this.value.top, this.value.right, this.value.bottom, this.value.left);
2145    }
2146  }
2147  checkObjectDiff() {
2148    return !isBaseOrResourceEqual(this.stageValue.top, this.value.top) ||
2149      !isBaseOrResourceEqual(this.stageValue.right, this.value.right) ||
2150      !isBaseOrResourceEqual(this.stageValue.bottom, this.value.bottom) ||
2151      !isBaseOrResourceEqual(this.stageValue.left, this.value.left);
2152  }
2153}
2154MarginModifier.identity = Symbol('margin');
2155class PaddingModifier extends ModifierWithKey {
2156  constructor(value) {
2157    super(value);
2158  }
2159  applyPeer(node, reset) {
2160    if (reset) {
2161      getUINativeModule().common.resetPadding(node);
2162    }
2163    else {
2164      getUINativeModule().common.setPadding(node, this.value.top, this.value.right, this.value.bottom, this.value.left);
2165    }
2166  }
2167  checkObjectDiff() {
2168    return !isBaseOrResourceEqual(this.stageValue.top, this.value.top) ||
2169      !isBaseOrResourceEqual(this.stageValue.right, this.value.right) ||
2170      !isBaseOrResourceEqual(this.stageValue.bottom, this.value.bottom) ||
2171      !isBaseOrResourceEqual(this.stageValue.left, this.value.left);
2172  }
2173}
2174PaddingModifier.identity = Symbol('padding');
2175class VisibilityModifier extends ModifierWithKey {
2176  constructor(value) {
2177    super(value);
2178  }
2179  applyPeer(node, reset) {
2180    if (reset) {
2181      getUINativeModule().common.resetVisibility(node);
2182    }
2183    else {
2184      getUINativeModule().common.setVisibility(node, this.value);
2185    }
2186  }
2187  checkObjectDiff() {
2188    return this.stageValue !== this.value;
2189  }
2190}
2191VisibilityModifier.identity = Symbol('visibility');
2192class AccessibilityTextModifier extends ModifierWithKey {
2193  constructor(value) {
2194    super(value);
2195  }
2196  applyPeer(node, reset) {
2197    if (reset) {
2198      getUINativeModule().common.resetAccessibilityText(node);
2199    }
2200    else {
2201      getUINativeModule().common.setAccessibilityText(node, this.value);
2202    }
2203  }
2204}
2205AccessibilityTextModifier.identity = Symbol('accessibilityText');
2206class AllowDropModifier extends ModifierWithKey {
2207  constructor(value) {
2208    super(value);
2209  }
2210  applyPeer(node, reset) {
2211    if (reset) {
2212      getUINativeModule().common.resetAllowDrop(node);
2213    }
2214    else {
2215      getUINativeModule().common.setAllowDrop(node, this.value);
2216    }
2217  }
2218  checkObjectDiff() {
2219    return !(Array.isArray(this.value) && Array.isArray(this.stageValue) &&
2220      this.value.length === this.stageValue.length &&
2221      this.value.every((value, index) => value === this.stageValue[index]));
2222  }
2223}
2224AllowDropModifier.identity = Symbol('allowDrop');
2225class AccessibilityLevelModifier extends ModifierWithKey {
2226  constructor(value) {
2227    super(value);
2228  }
2229  applyPeer(node, reset) {
2230    if (reset) {
2231      getUINativeModule().common.resetAccessibilityLevel(node);
2232    }
2233    else {
2234      getUINativeModule().common.setAccessibilityLevel(node, this.value);
2235    }
2236  }
2237}
2238AccessibilityLevelModifier.identity = Symbol('accessibilityLevel');
2239class AccessibilityDescriptionModifier extends ModifierWithKey {
2240  constructor(value) {
2241    super(value);
2242  }
2243  applyPeer(node, reset) {
2244    if (reset) {
2245      getUINativeModule().common.resetAccessibilityDescription(node);
2246    }
2247    else {
2248      getUINativeModule().common.setAccessibilityDescription(node, this.value);
2249    }
2250  }
2251}
2252AccessibilityDescriptionModifier.identity = Symbol('accessibilityDescription');
2253class DirectionModifier extends ModifierWithKey {
2254  constructor(value) {
2255    super(value);
2256  }
2257  applyPeer(node, reset) {
2258    if (reset) {
2259      getUINativeModule().common.resetDirection(node);
2260    }
2261    else {
2262      getUINativeModule().common.setDirection(node, this.value);
2263    }
2264  }
2265  checkObjectDiff() {
2266    return !isBaseOrResourceEqual(this.stageValue, this.value);
2267  }
2268}
2269DirectionModifier.identity = Symbol('direction');
2270class AlignRulesModifier extends ModifierWithKey {
2271  constructor(value) {
2272    super(value);
2273  }
2274  applyPeer(node, reset) {
2275    if (reset) {
2276      getUINativeModule().common.resetAlignRules(node);
2277    }
2278    else {
2279      getUINativeModule().common.setAlignRules(node, this.value.left, this.value.middle,
2280        this.value.right, this.value.top, this.value.center, this.value.bottom);
2281    }
2282  }
2283  checkObjectDiff() {
2284    return !isBaseOrResourceEqual(this.stageValue.left, this.value.left) ||
2285      !isBaseOrResourceEqual(this.stageValue.middle, this.value.middle) ||
2286      !isBaseOrResourceEqual(this.stageValue.right, this.value.right) ||
2287      !isBaseOrResourceEqual(this.stageValue.top, this.value.top) ||
2288      !isBaseOrResourceEqual(this.stageValue.center, this.value.center) ||
2289      !isBaseOrResourceEqual(this.stageValue.bottom, this.value.bottom);
2290  }
2291}
2292AlignRulesModifier.identity = Symbol('alignRules');
2293class ExpandSafeAreaModifier extends ModifierWithKey {
2294  constructor(value) {
2295    super(value);
2296  }
2297  applyPeer(node, reset) {
2298    if (reset) {
2299      getUINativeModule().common.resetExpandSafeArea(node);
2300    }
2301    else {
2302      getUINativeModule().common.setExpandSafeArea(node, this.value.type, this.value.edges);
2303    }
2304  }
2305  checkObjectDiff() {
2306    return !isBaseOrResourceEqual(this.stageValue.type, this.value.type) ||
2307      !isBaseOrResourceEqual(this.stageValue.edges, this.value.edges);
2308  }
2309}
2310ExpandSafeAreaModifier.identity = Symbol('expandSafeArea');
2311class GridSpanModifier extends ModifierWithKey {
2312  constructor(value) {
2313    super(value);
2314  }
2315  applyPeer(node, reset) {
2316    if (reset) {
2317      getUINativeModule().common.resetGridSpan(node);
2318    }
2319    else {
2320      getUINativeModule().common.setGridSpan(node, this.value);
2321    }
2322  }
2323}
2324GridSpanModifier.identity = Symbol('gridSpan');
2325class GridOffsetModifier extends ModifierWithKey {
2326  constructor(value) {
2327    super(value);
2328  }
2329  applyPeer(node, reset) {
2330    if (reset) {
2331      getUINativeModule().common.resetGridOffset(node);
2332    }
2333    else {
2334      getUINativeModule().common.setGridOffset(node, this.value);
2335    }
2336  }
2337}
2338GridOffsetModifier.identity = Symbol('gridOffset');
2339class AlignSelfModifier extends ModifierWithKey {
2340  constructor(value) {
2341    super(value);
2342  }
2343  applyPeer(node, reset) {
2344    if (reset) {
2345      getUINativeModule().common.resetAlignSelf(node);
2346    }
2347    else {
2348      getUINativeModule().common.setAlignSelf(node, this.value);
2349    }
2350  }
2351  checkObjectDiff() {
2352    return !isBaseOrResourceEqual(this.stageValue, this.value);
2353  }
2354}
2355AlignSelfModifier.identity = Symbol('alignSelf');
2356class SizeModifier extends ModifierWithKey {
2357  constructor(value) {
2358    super(value);
2359  }
2360  applyPeer(node, reset) {
2361    if (reset) {
2362      getUINativeModule().common.resetSize(node);
2363    }
2364    else {
2365      getUINativeModule().common.setSize(node, this.value.width, this.value.height);
2366    }
2367  }
2368  checkObjectDiff() {
2369    return !isBaseOrResourceEqual(this.stageValue.width, this.value.width) ||
2370      !isBaseOrResourceEqual(this.stageValue.height, this.value.height);
2371  }
2372}
2373SizeModifier.identity = Symbol('size');
2374class DisplayPriorityModifier extends ModifierWithKey {
2375  constructor(value) {
2376    super(value);
2377  }
2378  applyPeer(node, reset) {
2379    if (reset) {
2380      getUINativeModule().common.resetDisplayPriority(node);
2381    }
2382    else {
2383      getUINativeModule().common.setDisplayPriority(node, this.value);
2384    }
2385  }
2386  checkObjectDiff() {
2387    return !isBaseOrResourceEqual(this.stageValue, this.value);
2388  }
2389}
2390DisplayPriorityModifier.identity = Symbol('displayPriority');
2391class IdModifier extends ModifierWithKey {
2392  constructor(value) {
2393    super(value);
2394  }
2395  applyPeer(node, reset) {
2396    if (reset) {
2397      getUINativeModule().common.resetId(node);
2398    }
2399    else {
2400      getUINativeModule().common.setId(node, this.value);
2401    }
2402  }
2403}
2404IdModifier.identity = Symbol('id');
2405class KeyModifier extends ModifierWithKey {
2406  constructor(value) {
2407    super(value);
2408  }
2409  applyPeer(node, reset) {
2410    if (reset) {
2411      getUINativeModule().common.resetKey(node);
2412    }
2413    else {
2414      getUINativeModule().common.setKey(node, this.value);
2415    }
2416  }
2417}
2418KeyModifier.identity = Symbol('key');
2419class RestoreIdModifier extends ModifierWithKey {
2420  constructor(value) {
2421    super(value);
2422  }
2423  applyPeer(node, reset) {
2424    if (reset) {
2425      getUINativeModule().common.resetRestoreId(node);
2426    }
2427    else {
2428      getUINativeModule().common.setRestoreId(node, this.value);
2429    }
2430  }
2431}
2432RestoreIdModifier.identity = Symbol('restoreId');
2433class TabIndexModifier extends ModifierWithKey {
2434  constructor(value) {
2435    super(value);
2436  }
2437  applyPeer(node, reset) {
2438    if (reset) {
2439      getUINativeModule().common.resetTabIndex(node);
2440    }
2441    else {
2442      getUINativeModule().common.setTabIndex(node, this.value);
2443    }
2444  }
2445}
2446TabIndexModifier.identity = Symbol('tabIndex');
2447class ObscuredModifier extends ModifierWithKey {
2448  constructor(value) {
2449    super(value);
2450  }
2451  applyPeer(node, reset) {
2452    if (reset || (!Array.isArray(this.value))) {
2453      getUINativeModule().common.resetObscured(node);
2454    }
2455    else {
2456      getUINativeModule().common.setObscured(node, this.value);
2457    }
2458  }
2459  checkObjectDiff() {
2460    return !(Array.isArray(this.value) && Array.isArray(this.stageValue) &&
2461      this.value.length === this.stageValue.length &&
2462      this.value.every((value, index) => value === this.stageValue[index]));
2463  }
2464}
2465ObscuredModifier.identity = Symbol('obscured');
2466class BackgroundEffectModifier extends ModifierWithKey {
2467  constructor(options) {
2468    super(options);
2469  }
2470  applyPeer(node, reset) {
2471    let _a;
2472    if (reset) {
2473      getUINativeModule().common.resetBackgroundEffect(node);
2474    }
2475    else {
2476      getUINativeModule().common.setBackgroundEffect(node, this.value.radius, this.value.saturation,
2477        this.value.brightness, this.value.color, this.value.adaptiveColor,
2478        (_a = this.value.blurOptions) === null || _a === void 0 ? void 0 : _a.grayscale,
2479        this.value.policy, this.value.inactiveColor, this.value.type);
2480    }
2481  }
2482  checkObjectDiff() {
2483    let _a;
2484    let _b;
2485    return !(this.value.radius === this.stageValue.radius && this.value.saturation === this.stageValue.saturation &&
2486      this.value.brightness === this.stageValue.brightness &&
2487      isBaseOrResourceEqual(this.stageValue.color, this.value.color) &&
2488      this.value.adaptiveColor === this.stageValue.adaptiveColor &&
2489      this.value.policy === this.stageValue.policy &&
2490      this.value.inactiveColor === this.stageValue.inactiveColor &&
2491      this.value.type === this.stageValue.type &&
2492      ((_a = this.value.blurOptions) === null || _a === void 0 ? void 0 : _a.grayscale) === ((_b = this.stageValue.blurOptions) === null ||
2493      _b === void 0 ? void 0 : _b.grayscale));
2494  }
2495}
2496BackgroundEffectModifier.identity = Symbol('backgroundEffect');
2497class BackgroundBrightnessModifier extends ModifierWithKey {
2498  constructor(params) {
2499    super(params);
2500  }
2501  applyPeer(node, reset) {
2502    if (reset) {
2503      getUINativeModule().common.resetBackgroundBrightness(node);
2504    }
2505    else {
2506      getUINativeModule().common.setBackgroundBrightness(node, this.value.rate, this.value.lightUpDegree);
2507    }
2508  }
2509  checkObjectDiff() {
2510    return !(this.value.rate === this.stageValue.rate && this.value.lightUpDegree === this.stageValue.lightUpDegree);
2511  }
2512}
2513BackgroundBrightnessModifier.identity = Symbol('backgroundBrightness');
2514class BackgroundBrightnessInternalModifier extends ModifierWithKey {
2515  constructor(params) {
2516    super(params);
2517  }
2518  applyPeer(node, reset) {
2519    if (reset) {
2520      getUINativeModule().common.resetBackgroundBrightnessInternal(node);
2521    }
2522    else {
2523      getUINativeModule().common.setBackgroundBrightnessInternal(node, this.value.rate, this.value.lightUpDegree, this.value.cubicCoeff,
2524             this.value.quadCoeff, this.value.saturation, this.value.posRGB, this.value.negRGB, this.value.fraction);
2525    }
2526  }
2527  checkObjectDiff() {
2528    return !(this.value.rate === this.stageValue.rate && this.value.lightUpDegree === this.stageValue.lightUpDegree &&
2529      this.value.cubicCoeff === this.stageValue.cubicCoeff && this.value.quadCoeff === this.stageValue.quadCoeff &&
2530      this.value.saturation === this.stageValue.saturation && this.value.posRGB === this.stageValue.posRGB &&
2531      this.value.negRGB === this.stageValue.negRGB && this.value.fraction === this.stageValue.fraction);
2532  }
2533}
2534BackgroundBrightnessInternalModifier.identity = Symbol('backgroundBrightnessInternal');
2535class ForegroundBrightnessModifier extends ModifierWithKey {
2536  constructor(params) {
2537    super(params);
2538  }
2539  applyPeer(node, reset) {
2540    if (reset) {
2541      getUINativeModule().common.resetForegroundBrightness(node);
2542    }
2543    else {
2544      getUINativeModule().common.setForegroundBrightness(node, this.value.rate, this.value.lightUpDegree, this.value.cubicCoeff,
2545        this.value.quadCoeff, this.value.saturation, this.value.posRGB, this.value.negRGB, this.value.fraction);
2546    }
2547  }
2548  checkObjectDiff() {
2549    return !(this.value.rate === this.stageValue.rate && this.value.lightUpDegree === this.stageValue.lightUpDegree &&
2550      this.value.cubicCoeff === this.stageValue.cubicCoeff && this.value.quadCoeff === this.stageValue.quadCoeff &&
2551      this.value.saturation === this.stageValue.saturation && this.value.posRGB === this.stageValue.posRGB &&
2552      this.value.negRGB === this.stageValue.negRGB && this.value.fraction === this.stageValue.fraction);
2553  }
2554}
2555ForegroundBrightnessModifier.identity = Symbol('foregroundBrightness');
2556class DragPreviewOptionsModifier extends ModifierWithKey {
2557  constructor(value) {
2558    super(value);
2559  }
2560  applyPeer(node, reset) {
2561    if (reset) {
2562      getUINativeModule().common.resetDragPreviewOptions(node);
2563    }
2564    else {
2565      getUINativeModule().common.setDragPreviewOptions(node, this.value.mode, this.value.numberBadge,
2566        this.value.isMultiSelectionEnabled, this.value.defaultAnimationBeforeLifting);
2567    }
2568  }
2569  checkObjectDiff() {
2570    return !(this.value.mode === this.stageValue.mode &&
2571      this.value.numberBadge === this.stageValue.numberBadge &&
2572      this.value.isMultiSelectionEnabled === this.stageValue.isMultiSelectionEnabled &&
2573      this.value.defaultAnimationBeforeLifting === this.stageValue.defaultAnimationBeforeLifting);
2574  }
2575}
2576DragPreviewOptionsModifier.identity = Symbol('dragPreviewOptions');
2577class DragPreviewModifier extends ModifierWithKey {
2578  constructor(value) {
2579    super(value);
2580  }
2581  applyPeer(node, reset) {
2582    if (reset) {
2583      getUINativeModule().common.resetDragPreview(node);
2584    } else {
2585      getUINativeModule().common.setDragPreview(node, this.value.inspetorId);
2586    }
2587  }
2588
2589  checkObjectDiff() {
2590    return this.value.inspetorId !== this.stageValue.inspetorId;
2591  }
2592}
2593DragPreviewModifier.identity = Symbol('dragPreview');
2594class MouseResponseRegionModifier extends ModifierWithKey {
2595  constructor(value) {
2596    super(value);
2597  }
2598  applyPeer(node, reset) {
2599    let _a, _b, _c, _d, _e, _f, _g, _h;
2600    if (reset) {
2601      getUINativeModule().common.resetMouseResponseRegion(node);
2602    }
2603    else {
2604      let responseRegion = [];
2605      if (Array.isArray(this.value)) {
2606        for (let i = 0; i < this.value.length; i++) {
2607          responseRegion.push((_a = this.value[i].x) !== null && _a !== void 0 ? _a : 'PLACEHOLDER');
2608          responseRegion.push((_b = this.value[i].y) !== null && _b !== void 0 ? _b : 'PLACEHOLDER');
2609          responseRegion.push((_c = this.value[i].width) !== null && _c !== void 0 ? _c : 'PLACEHOLDER');
2610          responseRegion.push((_d = this.value[i].height) !== null && _d !== void 0 ? _d : 'PLACEHOLDER');
2611        }
2612      }
2613      else {
2614        responseRegion.push((_e = this.value.x) !== null && _e !== void 0 ? _e : 'PLACEHOLDER');
2615        responseRegion.push((_f = this.value.y) !== null && _f !== void 0 ? _f : 'PLACEHOLDER');
2616        responseRegion.push((_g = this.value.width) !== null && _g !== void 0 ? _g : 'PLACEHOLDER');
2617        responseRegion.push((_h = this.value.height) !== null && _h !== void 0 ? _h : 'PLACEHOLDER');
2618      }
2619      getUINativeModule().common.setMouseResponseRegion(node, responseRegion, responseRegion.length);
2620    }
2621  }
2622  checkObjectDiff() {
2623    if (Array.isArray(this.value) && Array.isArray(this.stageValue)) {
2624      if (this.value.length !== this.stageValue.length) {
2625        return true;
2626      }
2627      else {
2628        for (let i = 0; i < this.value.length; i++) {
2629          if (!(isBaseOrResourceEqual(this.stageValue[i].x, this.value[i].x) &&
2630            isBaseOrResourceEqual(this.stageValue[i].y, this.value[i].y) &&
2631            isBaseOrResourceEqual(this.stageValue[i].width, this.value[i].width) &&
2632            isBaseOrResourceEqual(this.stageValue[i].height, this.value[i].height))) {
2633            return true;
2634          }
2635        }
2636        return false;
2637      }
2638    }
2639    else if (!Array.isArray(this.value) && !Array.isArray(this.stageValue)) {
2640      return (!(isBaseOrResourceEqual(this.stageValue.x, this.value.x) &&
2641        isBaseOrResourceEqual(this.stageValue.y, this.value.y) &&
2642        isBaseOrResourceEqual(this.stageValue.width, this.value.width) &&
2643        isBaseOrResourceEqual(this.stageValue.height, this.value.height)));
2644    }
2645    else {
2646      return false;
2647    }
2648  }
2649}
2650MouseResponseRegionModifier.identity = Symbol('mouseResponseRegion');
2651class ResponseRegionModifier extends ModifierWithKey {
2652  constructor(value) {
2653    super(value);
2654  }
2655  applyPeer(node, reset) {
2656    let _a, _b, _c, _d, _e, _f, _g, _h;
2657    if (reset) {
2658      getUINativeModule().common.resetResponseRegion(node);
2659    }
2660    else {
2661      let responseRegion = [];
2662      if (Array.isArray(this.value)) {
2663        for (let i = 0; i < this.value.length; i++) {
2664          responseRegion.push((_a = this.value[i].x) !== null && _a !== void 0 ? _a : 'PLACEHOLDER');
2665          responseRegion.push((_b = this.value[i].y) !== null && _b !== void 0 ? _b : 'PLACEHOLDER');
2666          responseRegion.push((_c = this.value[i].width) !== null && _c !== void 0 ? _c : 'PLACEHOLDER');
2667          responseRegion.push((_d = this.value[i].height) !== null && _d !== void 0 ? _d : 'PLACEHOLDER');
2668        }
2669      }
2670      else {
2671        responseRegion.push((_e = this.value.x) !== null && _e !== void 0 ? _e : 'PLACEHOLDER');
2672        responseRegion.push((_f = this.value.y) !== null && _f !== void 0 ? _f : 'PLACEHOLDER');
2673        responseRegion.push((_g = this.value.width) !== null && _g !== void 0 ? _g : 'PLACEHOLDER');
2674        responseRegion.push((_h = this.value.height) !== null && _h !== void 0 ? _h : 'PLACEHOLDER');
2675      }
2676      getUINativeModule().common.setResponseRegion(node, responseRegion, responseRegion.length);
2677    }
2678  }
2679  checkObjectDiff() {
2680    if (Array.isArray(this.value) && Array.isArray(this.stageValue)) {
2681      if (this.value.length !== this.stageValue.length) {
2682        return true;
2683      }
2684      else {
2685        for (let i = 0; i < this.value.length; i++) {
2686          if (!(isBaseOrResourceEqual(this.stageValue[i].x, this.value[i].x) &&
2687            isBaseOrResourceEqual(this.stageValue[i].y, this.value[i].y) &&
2688            isBaseOrResourceEqual(this.stageValue[i].width, this.value[i].width) &&
2689            isBaseOrResourceEqual(this.stageValue[i].height, this.value[i].height))) {
2690            return true;
2691          }
2692        }
2693        return false;
2694      }
2695    }
2696    else if (!Array.isArray(this.value) && !Array.isArray(this.stageValue)) {
2697      return (!(isBaseOrResourceEqual(this.stageValue.x, this.value.x) &&
2698        isBaseOrResourceEqual(this.stageValue.y, this.value.y) &&
2699        isBaseOrResourceEqual(this.stageValue.width, this.value.width) &&
2700        isBaseOrResourceEqual(this.stageValue.height, this.value.height)));
2701    }
2702    else {
2703      return false;
2704    }
2705  }
2706}
2707ResponseRegionModifier.identity = Symbol('responseRegion');
2708class FlexGrowModifier extends ModifierWithKey {
2709  constructor(value) {
2710    super(value);
2711  }
2712  applyPeer(node, reset) {
2713    if (reset) {
2714      getUINativeModule().common.resetFlexGrow(node);
2715    }
2716    else {
2717      getUINativeModule().common.setFlexGrow(node, this.value);
2718    }
2719  }
2720  checkObjectDiff() {
2721    return this.stageValue !== this.value;
2722  }
2723}
2724FlexGrowModifier.identity = Symbol('flexGrow');
2725class FlexShrinkModifier extends ModifierWithKey {
2726  constructor(value) {
2727    super(value);
2728  }
2729  applyPeer(node, reset) {
2730    if (reset) {
2731      getUINativeModule().common.resetFlexShrink(node);
2732    }
2733    else {
2734      getUINativeModule().common.setFlexShrink(node, this.value);
2735    }
2736  }
2737  checkObjectDiff() {
2738    return this.stageValue !== this.value;
2739  }
2740}
2741FlexShrinkModifier.identity = Symbol('flexShrink');
2742class AspectRatioModifier extends ModifierWithKey {
2743  constructor(value) {
2744    super(value);
2745  }
2746  applyPeer(node, reset) {
2747    if (reset) {
2748      getUINativeModule().common.resetAspectRatio(node);
2749    }
2750    else {
2751      getUINativeModule().common.setAspectRatio(node, this.value);
2752    }
2753  }
2754  checkObjectDiff() {
2755    return this.stageValue !== this.value;
2756  }
2757}
2758AspectRatioModifier.identity = Symbol('aspectRatio');
2759class ConstraintSizeModifier extends ModifierWithKey {
2760  constructor(value) {
2761    super(value);
2762  }
2763  applyPeer(node, reset) {
2764    if (reset) {
2765      getUINativeModule().common.resetConstraintSize(node);
2766    }
2767    else {
2768      getUINativeModule().common.setConstraintSize(node, this.value.minWidth, this.value.maxWidth, this.value.minHeight, this.value.maxHeight);
2769    }
2770  }
2771  checkObjectDiff() {
2772    return !isBaseOrResourceEqual(this.stageValue.minWidth, this.value.minWidth) ||
2773      !isBaseOrResourceEqual(this.stageValue.maxWidth, this.value.maxWidth) ||
2774      !isBaseOrResourceEqual(this.stageValue.minHeight, this.value.minHeight) ||
2775      !isBaseOrResourceEqual(this.stageValue.maxHeight, this.value.maxHeight);
2776  }
2777}
2778ConstraintSizeModifier.identity = Symbol('constraintSize');
2779class FlexBasisModifier extends ModifierWithKey {
2780  constructor(value) {
2781    super(value);
2782  }
2783  applyPeer(node, reset) {
2784    if (reset) {
2785      getUINativeModule().common.resetFlexBasis(node);
2786    }
2787    else {
2788      getUINativeModule().common.setFlexBasis(node, this.value);
2789    }
2790  }
2791  checkObjectDiff() {
2792    return this.stageValue !== this.value;
2793  }
2794}
2795FlexBasisModifier.identity = Symbol('flexBasis');
2796class LayoutWeightModifier extends ModifierWithKey {
2797  constructor(value) {
2798    super(value);
2799  }
2800  applyPeer(node, reset) {
2801    if (reset) {
2802      getUINativeModule().common.resetLayoutWeight(node);
2803    }
2804    else {
2805      getUINativeModule().common.setLayoutWeight(node, this.value);
2806    }
2807  }
2808}
2809LayoutWeightModifier.identity = Symbol('layoutWeight');
2810class EnabledModifier extends ModifierWithKey {
2811  constructor(value) {
2812    super(value);
2813  }
2814  applyPeer(node, reset) {
2815    if (reset) {
2816      getUINativeModule().common.resetEnabled(node);
2817    }
2818    else {
2819      getUINativeModule().common.setEnabled(node, this.value);
2820    }
2821  }
2822}
2823EnabledModifier.identity = Symbol('enabled');
2824class UseShadowBatchingModifier extends ModifierWithKey {
2825  constructor(value) {
2826    super(value);
2827  }
2828  applyPeer(node, reset) {
2829    if (reset) {
2830      getUINativeModule().common.resetUseShadowBatching(node);
2831    }
2832    else {
2833      getUINativeModule().common.setUseShadowBatching(node, this.value);
2834    }
2835  }
2836}
2837UseShadowBatchingModifier.identity = Symbol('useShadowBatching');
2838class MonopolizeEventsModifier extends ModifierWithKey {
2839  constructor(value) {
2840    super(value);
2841  }
2842  applyPeer(node, reset) {
2843    if (reset) {
2844      getUINativeModule().common.resetMonopolizeEvents(node);
2845    }
2846    else {
2847      getUINativeModule().common.setMonopolizeEvents(node, this.value);
2848    }
2849  }
2850}
2851MonopolizeEventsModifier.identity = Symbol('monopolizeEvents');
2852class DraggableModifier extends ModifierWithKey {
2853  constructor(value) {
2854    super(value);
2855  }
2856  applyPeer(node, reset) {
2857    if (reset) {
2858      getUINativeModule().common.resetDraggable(node);
2859    }
2860    else {
2861      getUINativeModule().common.setDraggable(node, this.value);
2862    }
2863  }
2864}
2865DraggableModifier.identity = Symbol('draggable');
2866class AccessibilityGroupModifier extends ModifierWithKey {
2867  constructor(value) {
2868    super(value);
2869  }
2870  applyPeer(node, reset) {
2871    if (reset) {
2872      getUINativeModule().common.resetAccessibilityGroup(node);
2873    }
2874    else {
2875      getUINativeModule().common.setAccessibilityGroup(node, this.value);
2876    }
2877  }
2878}
2879AccessibilityGroupModifier.identity = Symbol('accessibilityGroup');
2880class HoverEffectModifier extends ModifierWithKey {
2881  constructor(value) {
2882    super(value);
2883  }
2884  applyPeer(node, reset) {
2885    if (reset) {
2886      getUINativeModule().common.resetHoverEffect(node);
2887    }
2888    else {
2889      getUINativeModule().common.setHoverEffect(node, this.value);
2890    }
2891  }
2892}
2893HoverEffectModifier.identity = Symbol('hoverEffect');
2894class ClickEffectModifier extends ModifierWithKey {
2895  constructor(value) {
2896    super(value);
2897  }
2898  applyPeer(node, reset) {
2899    if (reset || !this.value) {
2900      getUINativeModule().common.resetClickEffect(node);
2901    }
2902    else {
2903      getUINativeModule().common.setClickEffect(node, this.value.level, this.value.scale);
2904    }
2905  }
2906  checkObjectDiff() {
2907    return !((this.value.level === this.stageValue.level) && (this.value.scale === this.stageValue.scale));
2908  }
2909}
2910ClickEffectModifier.identity = Symbol('clickEffect');
2911class KeyBoardShortCutModifier extends ModifierWithKey {
2912  constructor(value) {
2913    super(value);
2914  }
2915  applyPeer(node, reset) {
2916    if (reset) {
2917      getUINativeModule().common.resetKeyBoardShortCut(node);
2918    }
2919    else {
2920      getUINativeModule().common.setKeyBoardShortCut(node, this.value.value, this.value.keys);
2921    }
2922  }
2923  checkObjectDiff() {
2924    return !this.value.isEqual(this.stageValue);
2925  }
2926}
2927KeyBoardShortCutModifier.identity = Symbol('keyboardShortcut');
2928
2929class CustomPropertyModifier extends ModifierWithKey {
2930  constructor(value) {
2931    super(value);
2932  }
2933  applyPeer(node, reset) {
2934    const nodeId = getUINativeModule().frameNode.getIdByNodePtr(node);
2935    if (reset) {
2936      __removeCustomProperty__(nodeId, this.value.key);
2937    } else {
2938      __setValidCustomProperty__(nodeId, this.value.key, this.value.value);
2939    }
2940  }
2941}
2942CustomPropertyModifier.identity = Symbol('customProperty');
2943
2944class TransitionModifier extends ModifierWithKey {
2945  constructor(value) {
2946    super(value);
2947  }
2948  applyPeer(node, reset) {
2949    if (reset) {
2950      getUINativeModule().common.resetTransition(node);
2951    }
2952    else {
2953      getUINativeModule().common.setTransition(node, this.value);
2954    }
2955  }
2956}
2957TransitionModifier.identity = Symbol('transition');
2958class SharedTransitionModifier extends ModifierWithKey {
2959  constructor(value) {
2960    super(value);
2961  }
2962  applyPeer(node, reset) {
2963    if (reset) {
2964      getUINativeModule().common.resetSharedTransition(node);
2965    }
2966    else {
2967      getUINativeModule().common.setSharedTransition(node, this.value.id, this.value.options);
2968    }
2969  }
2970}
2971SharedTransitionModifier.identity = Symbol('sharedTransition');
2972
2973class FocusScopeIdModifier extends ModifierWithKey {
2974  constructor(value) {
2975    super(value);
2976  }
2977  applyPeer(node, reset) {
2978    if (reset) {
2979      getUINativeModule().common.resetFocusScopeId(node);
2980    }
2981    else {
2982      getUINativeModule().common.setFocusScopeId(node, this.value.id, this.value.isGroup, this.value.arrowStepOut);
2983    }
2984  }
2985}
2986FocusScopeIdModifier.identity = Symbol('focusScopeId');
2987
2988class FocusScopePriorityModifier extends ModifierWithKey {
2989  constructor(value) {
2990    super(value);
2991  }
2992  applyPeer(node, reset) {
2993    if (reset) {
2994      getUINativeModule().common.resetFocusScopePriority(node);
2995    }
2996    else {
2997      getUINativeModule().common.setFocusScopePriority(node, this.value.scopeId, this.value.priority);
2998    }
2999  }
3000}
3001FocusScopePriorityModifier.identity = Symbol('focusScopePriority');
3002
3003class PixelRoundModifier extends ModifierWithKey {
3004  constructor(value) {
3005    super(value);
3006  }
3007  applyPeer(node, reset) {
3008    if (reset) {
3009      getUINativeModule().common.resetPixelRound(node);
3010    }
3011    else {
3012      if (!isObject(this.value)) {
3013        getUINativeModule().common.resetPixelRound(node);
3014      } else {
3015        getUINativeModule().common.setPixelRound(node, this.value.start, this.value.top, this.value.end, this.value.bottom);
3016      }
3017    }
3018  }
3019  checkObjectDiff() {
3020    return !(this.stageValue.start === this.value.start &&
3021      this.stageValue.end === this.value.end &&
3022      this.stageValue.top === this.value.top &&
3023      this.stageValue.bottom === this.value.bottom);
3024  }
3025}
3026PixelRoundModifier.identity = Symbol('pixelRound');
3027class FocusBoxModifier extends ModifierWithKey {
3028  constructor(value) {
3029    super(value);
3030  }
3031  applyPeer(node, reset) {
3032    if (reset) {
3033      getUINativeModule().common.resetFocusBox(node);
3034    }
3035    else {
3036      getUINativeModule().common.setFocusBox(node, this.value?.margin,
3037        this.value?.strokeWidth, this.value?.strokeColor);
3038    }
3039  }
3040}
3041FocusBoxModifier.identity = Symbol('focusBox');
3042const JSCallbackInfoType = { STRING: 0, NUMBER: 1, OBJECT: 2, BOOLEAN: 3, FUNCTION: 4 };
3043const isString = (val) => typeof val === 'string';
3044const isNumber = (val) => typeof val === 'number';
3045const isBigint = (val) => typeof val === 'bigint';
3046const isBoolean = (val) => typeof val === 'boolean';
3047const isSymbol = (val) => typeof val === 'symbol';
3048const isUndefined = (val) => typeof val === 'undefined';
3049const isObject = (val) => typeof val === 'object';
3050const isFunction = (val) => typeof val === 'function';
3051const isLengthType = (val) => typeof val === 'string' || typeof val === 'number';
3052function checkJsCallbackInfo(value, checklist) {
3053  let typeVerified = false;
3054  checklist.forEach(function (infoType) {
3055    switch (infoType) {
3056      case JSCallbackInfoType.STRING:
3057        if (isString(value)) {
3058          typeVerified = true;
3059        }
3060        break;
3061      case JSCallbackInfoType.NUMBER:
3062        if (isNumber(value)) {
3063          typeVerified = true;
3064        }
3065        break;
3066      case JSCallbackInfoType.OBJECT:
3067        if (isObject(value)) {
3068          typeVerified = true;
3069        }
3070        break;
3071      case JSCallbackInfoType.FUNCTION:
3072        if (isFunction(value)) {
3073          typeVerified = true;
3074        }
3075        break;
3076      default:
3077        break;
3078    }
3079  });
3080  return typeVerified || checklist.length === 0;
3081}
3082function parseWithDefaultNumber(val, defaultValue) {
3083  if (isNumber(val)) {
3084    return val;
3085  }
3086  else { return defaultValue; }
3087}
3088function modifier(modifiers, modifierClass, value) {
3089  const identity = modifierClass['identity'];
3090  const item = modifiers.get(identity);
3091  if (item) {
3092    item.stageValue = value;
3093  }
3094  else {
3095    modifiers.set(identity, new modifierClass(value));
3096  }
3097}
3098function modifierWithKey(modifiers, identity, modifierClass, value) {
3099  if (typeof modifiers.isFrameNode === 'function' && modifiers.isFrameNode()) {
3100    if (!modifierClass.instance) {
3101      modifierClass.instance = new modifierClass(value);
3102    }
3103    else {
3104      modifierClass.instance.stageValue = value;
3105    }
3106    modifiers.set(identity, modifierClass.instance);
3107    return;
3108  }
3109  const item = modifiers.get(identity);
3110  if (item) {
3111    item.stageValue = value;
3112    modifiers.set(identity, item);
3113  }
3114  else {
3115    modifiers.set(identity, new modifierClass(value));
3116  }
3117}
3118
3119class ObservedMap {
3120  constructor() {
3121    this.map_ = new Map();
3122    this.isFrameNode_ = false;
3123  }
3124  clear() {
3125    this.map_.clear();
3126  }
3127  delete(key) {
3128    return this.map_.delete(key);
3129  }
3130  forEach(callbackfn, thisArg) {
3131    this.map_.forEach(callbackfn, thisArg);
3132  }
3133  get(key) {
3134    return this.map_.get(key);
3135  }
3136  has(key) {
3137    return this.map_.has(key);
3138  }
3139  set(key, value) {
3140    const _a = this.changeCallback;
3141    this.map_.set(key, value);
3142    _a === null || _a === void 0 ? void 0 : _a(key, value);
3143    return this;
3144  }
3145  get size() {
3146    return this.map_.size;
3147  }
3148  entries() {
3149    return this.map_.entries();
3150  }
3151  keys() {
3152    return this.map_.keys();
3153  }
3154  values() {
3155    return this.map_.values();
3156  }
3157  [Symbol.iterator]() {
3158    return this.map_.entries();
3159  }
3160  get [Symbol.toStringTag]() {
3161    return 'ObservedMapTag';
3162  }
3163  setOnChange(callback) {
3164    this.changeCallback = callback;
3165  }
3166  setFrameNode(isFrameNode) {
3167    this.isFrameNode_ = isFrameNode;
3168  }
3169  isFrameNode() {
3170    return this.isFrameNode_;
3171  }
3172}
3173
3174class ArkComponent {
3175  constructor(nativePtr, classType) {
3176    this._modifiersWithKeys = new Map();
3177    this.nativePtr = nativePtr;
3178    this._changed = false;
3179    this._classType = classType;
3180    if (classType === ModifierType.FRAME_NODE) {
3181      this._instanceId = -1;
3182      this._modifiersWithKeys = new ObservedMap();
3183      this._modifiersWithKeys.setOnChange((key, value) => {
3184        if (this.nativePtr === undefined) {
3185          return;
3186        }
3187        if (this.nativePtr !== -1) {
3188          __JSScopeUtil__.syncInstanceId(this._instanceId);
3189        }
3190        value.applyStageImmediately(this.nativePtr, this);
3191        getUINativeModule().frameNode.propertyUpdate(this.nativePtr);
3192        if (this._instanceId !== -1) {
3193          __JSScopeUtil__.restoreInstanceId();
3194        }
3195      });
3196      this._modifiersWithKeys.setFrameNode(true);
3197    } else if (classType === ModifierType.EXPOSE_MODIFIER || classType === ModifierType.STATE) {
3198      this._modifiersWithKeys = new ObservedMap();
3199      this._weakPtr = getUINativeModule().nativeUtils.createNativeWeakRef(nativePtr);
3200    } else {
3201      this._modifiersWithKeys = new Map();
3202      this._weakPtr = getUINativeModule().nativeUtils.createNativeWeakRef(nativePtr);
3203    }
3204    this._nativePtrChanged = false;
3205  }
3206  setNodePtr(nodePtr) {
3207    this.nativePtr = nodePtr;
3208    this._weakPtr = getUINativeModule().nativeUtils.createNativeWeakRef(nodePtr);
3209  }
3210  setInstanceId(instanceId) {
3211    this._instanceId = instanceId;
3212  }
3213  getOrCreateGestureEvent() {
3214    if (this._gestureEvent !== null) {
3215      this._gestureEvent = new UIGestureEvent();
3216      this._gestureEvent.setNodePtr(this.nativePtr);
3217      this._gestureEvent.setWeakNodePtr(this._weakPtr);
3218      this._gestureEvent.registerFrameNodeDeletedCallback(this.nativePtr);
3219    }
3220    return this._gestureEvent;
3221  }
3222  cleanStageValue(){
3223    if (!this._modifiersWithKeys){
3224      return;
3225    }
3226    this._modifiersWithKeys.forEach((value, key) => {
3227        value.stageValue = undefined;
3228    });
3229  }
3230  applyStateUpdatePtr(instance) {
3231    if (this.nativePtr !== instance.nativePtr) {
3232      ArkLogConsole.info('modifier pointer changed to ' + (instance ?
3233        instance.constructor.name.toString() : 'undefined'));
3234      this.nativePtr = instance.nativePtr;
3235      this._nativePtrChanged = true;
3236      if (instance._weakPtr) {
3237        this._weakPtr = instance._weakPtr;
3238      } else {
3239        this._weakPtr = getUINativeModule().nativeUtils.createNativeWeakRef(this.nativePtr);
3240      }
3241    }
3242  }
3243  applyModifierPatch() {
3244    let expiringItemsWithKeys = [];
3245    this._modifiersWithKeys.forEach((value, key) => {
3246      if (!this._weakPtr?.invalid() && value.applyStage(this.nativePtr, this)) {
3247        expiringItemsWithKeys.push(key);
3248      }
3249    });
3250    expiringItemsWithKeys.forEach(key => {
3251      this._modifiersWithKeys.delete(key);
3252    });
3253  }
3254  onGestureJudgeBegin(callback) {
3255    modifierWithKey(this._modifiersWithKeys, OnGestureJudgeBeginModifier.identity, OnGestureJudgeBeginModifier, callback);
3256    return this;
3257  }
3258  onGestureRecognizerJudgeBegin(callback) {
3259    modifierWithKey(this._modifiersWithKeys, OnGestureRecognizerJudgeBeginModifier.identity, OnGestureRecognizerJudgeBeginModifier, callback);
3260    return this;
3261  }
3262  shouldBuiltInRecognizerParallelWith(callback) {
3263    modifierWithKey(this._modifiersWithKeys, ShouldBuiltInRecognizerParallelWithModifier.identity, ShouldBuiltInRecognizerParallelWithModifier, callback);
3264    return this;
3265  }
3266  onSizeChange(callback) {
3267    modifierWithKey(this._modifiersWithKeys, OnSizeChangeModifier.identity, OnSizeChangeModifier, callback);
3268    return this;
3269  }
3270  outline(value) {
3271    modifierWithKey(this._modifiersWithKeys, OutlineModifier.identity, OutlineModifier, value);
3272    return this;
3273  }
3274  outlineColor(value) {
3275    modifierWithKey(this._modifiersWithKeys, OutlineColorModifier.identity, OutlineColorModifier, value);
3276    return this;
3277  }
3278  outlineRadius(value) {
3279    modifierWithKey(this._modifiersWithKeys, OutlineRadiusModifier.identity, OutlineRadiusModifier, value);
3280    return this;
3281  }
3282  outlineStyle(value) {
3283    modifierWithKey(this._modifiersWithKeys, OutlineStyleModifier.identity, OutlineStyleModifier, value);
3284    return this;
3285  }
3286  outlineWidth(value) {
3287    modifierWithKey(this._modifiersWithKeys, OutlineWidthModifier.identity, OutlineWidthModifier, value);
3288    return this;
3289  }
3290  width(value) {
3291    modifierWithKey(this._modifiersWithKeys, WidthModifier.identity, WidthModifier, value);
3292    return this;
3293  }
3294  height(value) {
3295    modifierWithKey(this._modifiersWithKeys, HeightModifier.identity, HeightModifier, value);
3296    return this;
3297  }
3298  expandSafeArea(types, edges) {
3299    let opts = new ArkSafeAreaExpandOpts();
3300    if (types && types.length > 0) {
3301      let safeAreaType = '';
3302      for (let param of types) {
3303        if (!isNumber(param) || param >= SAFE_AREA_TYPE_LIMIT) {
3304          safeAreaType = undefined;
3305          break;
3306        }
3307        if (safeAreaType) {
3308          safeAreaType += '|';
3309          safeAreaType += param.toString();
3310        }
3311        else {
3312          safeAreaType += param.toString();
3313        }
3314      }
3315      opts.type = safeAreaType;
3316    }
3317    if (edges && edges.length > 0) {
3318      let safeAreaEdge = '';
3319      for (let param of edges) {
3320        if (!isNumber(param) || param >= SAFE_AREA_EDGE_LIMIT) {
3321          safeAreaEdge = undefined;
3322          break;
3323        }
3324        if (safeAreaEdge) {
3325          safeAreaEdge += '|';
3326          safeAreaEdge += param.toString();
3327        }
3328        else {
3329          safeAreaEdge += param.toString();
3330        }
3331      }
3332      opts.edges = safeAreaEdge;
3333    }
3334    if (opts.type === undefined && opts.edges === undefined) {
3335      modifierWithKey(this._modifiersWithKeys, ExpandSafeAreaModifier.identity, ExpandSafeAreaModifier, undefined);
3336    }
3337    else {
3338      modifierWithKey(this._modifiersWithKeys, ExpandSafeAreaModifier.identity, ExpandSafeAreaModifier, opts);
3339    }
3340    return this;
3341  }
3342  backgroundEffect(options) {
3343    modifierWithKey(this._modifiersWithKeys, BackgroundEffectModifier.identity, BackgroundEffectModifier, options);
3344    return this;
3345  }
3346  backgroundBrightness(params) {
3347    modifierWithKey(this._modifiersWithKeys, BackgroundBrightnessModifier.identity, BackgroundBrightnessModifier, params);
3348    return this;
3349  }
3350  backgroundBrightnessInternal(params) {
3351    modifierWithKey(this._modifiersWithKeys, BackgroundBrightnessInternalModifier.identity, BackgroundBrightnessInternalModifier, params);
3352    return this;
3353  }
3354  foregroundBrightness(params) {
3355    modifierWithKey(this._modifiersWithKeys, ForegroundBrightnessModifier.identity, ForegroundBrightnessModifier, params);
3356     return this;
3357  }
3358  dragPreviewOptions(value, options) {
3359    if (isUndefined(value)) {
3360      modifierWithKey(this._modifiersWithKeys, DragPreviewOptionsModifier.identity, DragPreviewOptionsModifier, undefined);
3361      return this;
3362    }
3363    let arkDragPreviewOptions = new ArkDragPreviewOptions();
3364    if (typeof value === 'object') {
3365      arkDragPreviewOptions.mode = value.mode;
3366      arkDragPreviewOptions.numberBadge = value.numberBadge;
3367    }
3368    if (typeof options === 'object') {
3369      arkDragPreviewOptions.isMultiSelectionEnabled = options.isMultiSelectionEnabled;
3370      arkDragPreviewOptions.defaultAnimationBeforeLifting = options.defaultAnimationBeforeLifting;
3371    }
3372    modifierWithKey(this._modifiersWithKeys, DragPreviewOptionsModifier.identity,
3373      DragPreviewOptionsModifier, arkDragPreviewOptions);
3374    return this;
3375  }
3376  responseRegion(value) {
3377    modifierWithKey(this._modifiersWithKeys, ResponseRegionModifier.identity, ResponseRegionModifier, value);
3378    return this;
3379  }
3380  mouseResponseRegion(value) {
3381    modifierWithKey(this._modifiersWithKeys, MouseResponseRegionModifier.identity, MouseResponseRegionModifier, value);
3382    return this;
3383  }
3384  size(value) {
3385    modifierWithKey(this._modifiersWithKeys, SizeModifier.identity, SizeModifier, value);
3386    return this;
3387  }
3388  constraintSize(value) {
3389    modifierWithKey(this._modifiersWithKeys, ConstraintSizeModifier.identity, ConstraintSizeModifier, value);
3390    return this;
3391  }
3392  touchable(value) {
3393    if (typeof value === 'boolean') {
3394      modifierWithKey(this._modifiersWithKeys, TouchableModifier.identity, TouchableModifier, value);
3395    }
3396    else {
3397      modifierWithKey(this._modifiersWithKeys, TouchableModifier.identity, TouchableModifier, undefined);
3398    }
3399    return this;
3400  }
3401  hitTestBehavior(value) {
3402    if (value) {
3403      modifierWithKey(this._modifiersWithKeys, HitTestBehaviorModifier.identity, HitTestBehaviorModifier, value);
3404    }
3405    else {
3406      modifierWithKey(this._modifiersWithKeys, HitTestBehaviorModifier.identity, HitTestBehaviorModifier, undefined);
3407    }
3408    return this;
3409  }
3410  layoutWeight(value) {
3411    if (isNumber(value)) {
3412      modifierWithKey(this._modifiersWithKeys, LayoutWeightModifier.identity, LayoutWeightModifier, value);
3413    }
3414    else if (isString(value) && !isNaN(Number(value))) {
3415      modifierWithKey(this._modifiersWithKeys, LayoutWeightModifier.identity, LayoutWeightModifier, parseInt(value.toString()));
3416    }
3417    else {
3418      modifierWithKey(this._modifiersWithKeys, LayoutWeightModifier.identity, LayoutWeightModifier, undefined);
3419    }
3420    return this;
3421  }
3422  padding(value) {
3423    let arkValue = new ArkPadding();
3424    if (value !== null && value !== undefined) {
3425      if (isLengthType(value) || isResource(value)) {
3426        arkValue.top = value;
3427        arkValue.right = value;
3428        arkValue.bottom = value;
3429        arkValue.left = value;
3430      }
3431      else {
3432        arkValue.top = value.top;
3433        arkValue.bottom = value.bottom;
3434        if (Object.keys(value).indexOf('right') >= 0) {
3435          arkValue.right = value.right;
3436        }
3437        if (Object.keys(value).indexOf('end') >= 0) {
3438          arkValue.right = value.end;
3439        }
3440        if (Object.keys(value).indexOf('left') >= 0) {
3441          arkValue.left = value.left;
3442        }
3443        if (Object.keys(value).indexOf('start') >= 0) {
3444          arkValue.left = value.start;
3445        }
3446      }
3447      modifierWithKey(this._modifiersWithKeys, PaddingModifier.identity, PaddingModifier, arkValue);
3448    }
3449    else {
3450      modifierWithKey(this._modifiersWithKeys, PaddingModifier.identity, PaddingModifier, undefined);
3451    }
3452    return this;
3453  }
3454  margin(value) {
3455    let arkValue = new ArkPadding();
3456    if (value !== null && value !== undefined) {
3457      if (isLengthType(value) || isResource(value)) {
3458        arkValue.top = value;
3459        arkValue.right = value;
3460        arkValue.bottom = value;
3461        arkValue.left = value;
3462      }
3463      else {
3464        arkValue.top = value.top;
3465        arkValue.bottom = value.bottom;
3466        if (Object.keys(value).indexOf('right') >= 0) {
3467          arkValue.right = value.right;
3468        }
3469        if (Object.keys(value).indexOf('end') >= 0) {
3470          arkValue.right = value.end;
3471        }
3472        if (Object.keys(value).indexOf('left') >= 0) {
3473          arkValue.left = value.left;
3474        }
3475        if (Object.keys(value).indexOf('start') >= 0) {
3476          arkValue.left = value.start;
3477        }
3478      }
3479      modifierWithKey(this._modifiersWithKeys, MarginModifier.identity, MarginModifier, arkValue);
3480    }
3481    else {
3482      modifierWithKey(this._modifiersWithKeys, MarginModifier.identity, MarginModifier, undefined);
3483    }
3484    return this;
3485  }
3486  background(builder, options) {
3487    throw new Error('Method not implemented.');
3488  }
3489  backgroundColor(value) {
3490    modifierWithKey(this._modifiersWithKeys, BackgroundColorModifier.identity, BackgroundColorModifier, value);
3491    return this;
3492  }
3493  backgroundImage(src, repeat) {
3494    let arkBackgroundImage = new ArkBackgroundImage();
3495    arkBackgroundImage.src = src;
3496    arkBackgroundImage.repeat = repeat;
3497    modifierWithKey(this._modifiersWithKeys, BackgroundImageModifier.identity, BackgroundImageModifier, arkBackgroundImage);
3498    return this;
3499  }
3500  backgroundImageSize(value) {
3501    modifierWithKey(this._modifiersWithKeys, BackgroundImageSizeModifier.identity, BackgroundImageSizeModifier, value);
3502    return this;
3503  }
3504  backgroundImagePosition(value) {
3505    modifierWithKey(this._modifiersWithKeys, BackgroundImagePositionModifier.identity, BackgroundImagePositionModifier, value);
3506    return this;
3507  }
3508  backgroundImageResizable(value) {
3509    modifierWithKey(this._modifiersWithKeys, BackgroundImageResizableModifier.identity, BackgroundImageResizableModifier, value);
3510    return this;
3511  }
3512  backgroundBlurStyle(value, options) {
3513    if (isUndefined(value)) {
3514      modifierWithKey(this._modifiersWithKeys, BackgroundBlurStyleModifier.identity, BackgroundBlurStyleModifier, undefined);
3515      return this;
3516    }
3517    let arkBackgroundBlurStyle = new ArkBackgroundBlurStyle();
3518    arkBackgroundBlurStyle.blurStyle = value;
3519    if (typeof options === 'object') {
3520      arkBackgroundBlurStyle.colorMode = options.colorMode;
3521      arkBackgroundBlurStyle.adaptiveColor = options.adaptiveColor;
3522      arkBackgroundBlurStyle.scale = options.scale;
3523      arkBackgroundBlurStyle.blurOptions = options.blurOptions;
3524      arkBackgroundBlurStyle.policy = options.policy;
3525      arkBackgroundBlurStyle.inactiveColor = options.inactiveColor;
3526      arkBackgroundBlurStyle.type = options.type;
3527    }
3528    modifierWithKey(this._modifiersWithKeys, BackgroundBlurStyleModifier.identity, BackgroundBlurStyleModifier, arkBackgroundBlurStyle);
3529    return this;
3530  }
3531  foregroundBlurStyle(value, options) {
3532    if (isUndefined(value)) {
3533      modifierWithKey(this._modifiersWithKeys, ForegroundBlurStyleModifier.identity, ForegroundBlurStyleModifier, undefined);
3534      return this;
3535    }
3536    let arkForegroundBlurStyle = new ArkForegroundBlurStyle();
3537    arkForegroundBlurStyle.blurStyle = value;
3538    if (typeof options === 'object') {
3539      arkForegroundBlurStyle.colorMode = options.colorMode;
3540      arkForegroundBlurStyle.adaptiveColor = options.adaptiveColor;
3541      arkForegroundBlurStyle.scale = options.scale;
3542      arkForegroundBlurStyle.blurOptions = options.blurOptions;
3543    }
3544    modifierWithKey(this._modifiersWithKeys, ForegroundBlurStyleModifier.identity, ForegroundBlurStyleModifier, arkForegroundBlurStyle);
3545    return this;
3546  }
3547  opacity(value) {
3548    modifierWithKey(this._modifiersWithKeys, OpacityModifier.identity, OpacityModifier, value);
3549    return this;
3550  }
3551  border(value) {
3552    let _a, _b, _c, _d;
3553    let arkBorder = new ArkBorder();
3554    if (isUndefined(value)) {
3555      arkBorder = undefined;
3556    }
3557    if (!isUndefined(value === null || value === void 0 ? void 0 : value.width) && (value === null || value === void 0 ? void 0 : value.width) !== null) {
3558      if (isNumber(value.width) || isString(value.width) || isResource(value.width)) {
3559        arkBorder.arkWidth.left = value.width;
3560        arkBorder.arkWidth.right = value.width;
3561        arkBorder.arkWidth.top = value.width;
3562        arkBorder.arkWidth.bottom = value.width;
3563      }
3564      else {
3565        arkBorder.arkWidth.start = value.width.start;
3566        arkBorder.arkWidth.end = value.width.end;
3567        arkBorder.arkWidth.left = value.width.left;
3568        arkBorder.arkWidth.right = value.width.right;
3569        arkBorder.arkWidth.top = value.width.top;
3570        arkBorder.arkWidth.bottom = value.width.bottom;
3571      }
3572    }
3573    if (!isUndefined(value === null || value === void 0 ? void 0 : value.color) && (value === null || value === void 0 ? void 0 : value.color) !== null) {
3574      if (isNumber(value.color) || isString(value.color) || isResource(value.color)) {
3575        arkBorder.arkColor.leftColor = value.color;
3576        arkBorder.arkColor.rightColor = value.color;
3577        arkBorder.arkColor.topColor = value.color;
3578        arkBorder.arkColor.bottomColor = value.color;
3579      }
3580      else {
3581        arkBorder.arkColor.startColor = value.color.start;
3582        arkBorder.arkColor.endColor = value.color.end;
3583        arkBorder.arkColor.leftColor = value.color.left;
3584        arkBorder.arkColor.rightColor = value.color.right;
3585        arkBorder.arkColor.topColor = value.color.top;
3586        arkBorder.arkColor.bottomColor = value.color.bottom;
3587      }
3588    }
3589    if (!isUndefined(value === null || value === void 0 ? void 0 : value.radius) && (value === null || value === void 0 ? void 0 : value.radius) !== null) {
3590      if (isNumber(value.radius) || isString(value.radius) || isResource(value.radius)) {
3591        arkBorder.arkRadius.topLeft = value.radius;
3592        arkBorder.arkRadius.topRight = value.radius;
3593        arkBorder.arkRadius.bottomLeft = value.radius;
3594        arkBorder.arkRadius.bottomRight = value.radius;
3595      }
3596      else {
3597        arkBorder.arkRadius.topStart = (_a = value.radius) === null || _a === void 0 ? void 0 : _a.topStart;
3598        arkBorder.arkRadius.topEnd = (_b = value.radius) === null || _b === void 0 ? void 0 : _b.topEnd;
3599        arkBorder.arkRadius.bottomStart = (_c = value.radius) === null || _c === void 0 ? void 0 : _c.bottomStart;
3600        arkBorder.arkRadius.bottomEnd = (_d = value.radius) === null || _d === void 0 ? void 0 : _d.bottomEnd;
3601        arkBorder.arkRadius.topLeft = (_a = value.radius) === null || _a === void 0 ? void 0 : _a.topLeft;
3602        arkBorder.arkRadius.topRight = (_b = value.radius) === null || _b === void 0 ? void 0 : _b.topRight;
3603        arkBorder.arkRadius.bottomLeft = (_c = value.radius) === null || _c === void 0 ? void 0 : _c.bottomLeft;
3604        arkBorder.arkRadius.bottomRight = (_d = value.radius) === null || _d === void 0 ? void 0 : _d.bottomRight;
3605      }
3606    }
3607    if (!isUndefined(value === null || value === void 0 ? void 0 : value.style) && (value === null || value === void 0 ? void 0 : value.style) !== null) {
3608      let arkBorderStyle = new ArkBorderStyle();
3609      if (arkBorderStyle.parseBorderStyle(value.style)) {
3610        if (!isUndefined(arkBorderStyle.style)) {
3611          arkBorder.arkStyle.top = arkBorderStyle.style;
3612          arkBorder.arkStyle.left = arkBorderStyle.style;
3613          arkBorder.arkStyle.bottom = arkBorderStyle.style;
3614          arkBorder.arkStyle.right = arkBorderStyle.style;
3615        }
3616        else {
3617          arkBorder.arkStyle.top = arkBorderStyle.top;
3618          arkBorder.arkStyle.left = arkBorderStyle.left;
3619          arkBorder.arkStyle.bottom = arkBorderStyle.bottom;
3620          arkBorder.arkStyle.right = arkBorderStyle.right;
3621        }
3622      }
3623    }
3624    if (!isUndefined(value === null || value === void 0 ? void 0 : value.dashGap) &&
3625      (value === null || value === void 0 ? void 0 : value.dashGap) !== null) {
3626      if (isNumber(value.dashGap) || isString(value.dashGap) || isResource(value.dashGap) ||
3627        isObject(value.dashGap) && isNumber(value.dashGap.value)) {
3628        arkBorder.arkDashGap.left = value.dashGap;
3629        arkBorder.arkDashGap.right = value.dashGap;
3630        arkBorder.arkDashGap.top = value.dashGap;
3631        arkBorder.arkDashGap.bottom = value.dashGap;
3632      }
3633      else {
3634        arkBorder.arkDashGap.left = value.dashGap.left;
3635        arkBorder.arkDashGap.right = value.dashGap.right;
3636        arkBorder.arkDashGap.top = value.dashGap.top;
3637        arkBorder.arkDashGap.bottom = value.dashGap.bottom;
3638        arkBorder.arkDashGap.start = value.dashGap.start;
3639        arkBorder.arkDashGap.end = value.dashGap.end;
3640      }
3641    }
3642    if (!isUndefined(value === null || value === void 0 ? void 0 : value.dashWidth) &&
3643      (value === null || value === void 0 ? void 0 : value.dashWidth) !== null) {
3644      if (isNumber(value.dashWidth) || isString(value.dashWidth) || isResource(value.dashWidth) ||
3645        isObject(value.dashWidth) && isNumber(value.dashWidth.value)) {
3646        arkBorder.arkDashWidth.left = value.dashWidth;
3647        arkBorder.arkDashWidth.right = value.dashWidth;
3648        arkBorder.arkDashWidth.top = value.dashWidth;
3649        arkBorder.arkDashWidth.bottom = value.dashWidth;
3650      }
3651      else {
3652        arkBorder.arkDashWidth.left = value.dashWidth.left;
3653        arkBorder.arkDashWidth.right = value.dashWidth.right;
3654        arkBorder.arkDashWidth.top = value.dashWidth.top;
3655        arkBorder.arkDashWidth.bottom = value.dashWidth.bottom;
3656        arkBorder.arkDashWidth.start = value.dashWidth.start;
3657        arkBorder.arkDashWidth.end = value.dashWidth.end;
3658      }
3659    }
3660    modifierWithKey(this._modifiersWithKeys, BorderModifier.identity, BorderModifier, arkBorder);
3661    return this;
3662  }
3663  borderStyle(value) {
3664    modifierWithKey(this._modifiersWithKeys, BorderStyleModifier.identity, BorderStyleModifier, value);
3665    return this;
3666  }
3667  borderWidth(value) {
3668    modifierWithKey(this._modifiersWithKeys, BorderWidthModifier.identity, BorderWidthModifier, value);
3669    return this;
3670  }
3671  borderColor(value) {
3672    modifierWithKey(this._modifiersWithKeys, BorderColorModifier.identity, BorderColorModifier, value);
3673    return this;
3674  }
3675  borderRadius(value) {
3676    modifierWithKey(this._modifiersWithKeys, BorderRadiusModifier.identity, BorderRadiusModifier, value);
3677    return this;
3678  }
3679  borderImage(value) {
3680    modifierWithKey(this._modifiersWithKeys, BorderImageModifier.identity, BorderImageModifier, value);
3681    return this;
3682  }
3683  foregroundEffect(value) {
3684    modifierWithKey(this._modifiersWithKeys, ForegroundEffectModifier.identity, ForegroundEffectModifier, value);
3685    return this;
3686  }
3687  foregroundColor(value) {
3688    modifierWithKey(this._modifiersWithKeys, ForegroundColorModifier.identity, ForegroundColorModifier, value);
3689    return this;
3690  }
3691  onClick(event) {
3692    modifierWithKey(this._modifiersWithKeys, ClickModifier.identity, ClickModifier, event);
3693    return this;
3694  }
3695  onHover(event) {
3696    modifierWithKey(this._modifiersWithKeys, OnHoverModifier.identity, OnHoverModifier, event);
3697    return this;
3698  }
3699  hoverEffect(value) {
3700    modifierWithKey(this._modifiersWithKeys, HoverEffectModifier.identity, HoverEffectModifier, value);
3701    return this;
3702  }
3703  onMouse(event) {
3704    modifierWithKey(this._modifiersWithKeys, OnMouseModifier.identity, OnMouseModifier, event);
3705    return this;
3706  }
3707  onTouch(event) {
3708    modifierWithKey(this._modifiersWithKeys, OnTouchModifier.identity, OnTouchModifier, event);
3709    return this;
3710  }
3711  onKeyEvent(event) {
3712    modifierWithKey(this._modifiersWithKeys, OnKeyEventModifier.identity, OnKeyEventModifier, event);
3713    return this;
3714  }
3715  onKeyPreIme(event) {
3716    modifierWithKey(this._modifiersWithKeys, OnKeyPreImeModifier.identity, OnKeyPreImeModifier, event);
3717    return this;
3718  }
3719  focusable(value) {
3720    if (typeof value === 'boolean') {
3721      modifierWithKey(this._modifiersWithKeys, FocusableModifier.identity, FocusableModifier, value);
3722    }
3723    else {
3724      modifierWithKey(this._modifiersWithKeys, FocusableModifier.identity, FocusableModifier, undefined);
3725    }
3726    return this;
3727  }
3728  tabStop(value) {
3729    if (typeof value === 'boolean') {
3730      modifierWithKey(this._modifiersWithKeys, TabStopModifier.identity, TabStopModifier, value);
3731    }
3732    else {
3733      modifierWithKey(this._modifiersWithKeys, TabStopModifier.identity, TabStopModifier, undefined);
3734    }
3735    return this;
3736  }
3737  onFocus(event) {
3738    modifierWithKey(this._modifiersWithKeys, OnFocusModifier.identity, OnFocusModifier, event);
3739    return this;
3740  }
3741  onBlur(event) {
3742    modifierWithKey(this._modifiersWithKeys, OnBlurModifier.identity, OnBlurModifier, event);
3743    return this;
3744  }
3745  tabIndex(index) {
3746    if (typeof index !== 'number') {
3747      modifierWithKey(this._modifiersWithKeys, TabIndexModifier.identity, TabIndexModifier, undefined);
3748    }
3749    else {
3750      modifierWithKey(this._modifiersWithKeys, TabIndexModifier.identity, TabIndexModifier, index);
3751    }
3752    return this;
3753  }
3754  defaultFocus(value) {
3755    if (typeof value === 'boolean') {
3756      modifierWithKey(this._modifiersWithKeys, DefaultFocusModifier.identity, DefaultFocusModifier, value);
3757    }
3758    else {
3759      modifierWithKey(this._modifiersWithKeys, DefaultFocusModifier.identity, DefaultFocusModifier, undefined);
3760    }
3761    return this;
3762  }
3763  groupDefaultFocus(value) {
3764    if (typeof value === 'boolean') {
3765      modifierWithKey(this._modifiersWithKeys, GroupDefaultFocusModifier.identity, GroupDefaultFocusModifier, value);
3766    }
3767    else {
3768      modifierWithKey(this._modifiersWithKeys, GroupDefaultFocusModifier.identity, GroupDefaultFocusModifier, undefined);
3769    }
3770    return this;
3771  }
3772  focusOnTouch(value) {
3773    if (typeof value === 'boolean') {
3774      modifierWithKey(this._modifiersWithKeys, FocusOnTouchModifier.identity, FocusOnTouchModifier, value);
3775    }
3776    else {
3777      modifierWithKey(this._modifiersWithKeys, FocusOnTouchModifier.identity, FocusOnTouchModifier, undefined);
3778    }
3779    return this;
3780  }
3781  animation(value) {
3782    throw new Error('Method not implemented.');
3783  }
3784  transition(value) {
3785    modifierWithKey(this._modifiersWithKeys, TransitionModifier.identity, TransitionModifier, value);
3786    return this;
3787  }
3788  gesture(gesture, mask) {
3789    throw new Error('Method not implemented.');
3790  }
3791  priorityGesture(gesture, mask) {
3792    throw new Error('Method not implemented.');
3793  }
3794  parallelGesture(gesture, mask) {
3795    throw new Error('Method not implemented.');
3796  }
3797
3798  chainMode(direction, style) {
3799    let arkChainMode = new ArkChainMode();
3800    arkChainMode.direction = direction;
3801    arkChainMode.style = style;
3802    modifierWithKey(this._modifiersWithKeys, ChainModeifier.identity, ChainModeifier, arkChainMode);
3803    return this;
3804  }
3805
3806  blur(value, options) {
3807    let blur = new ArkBlurOptions();
3808    blur.value = value;
3809    blur.options = options;
3810    modifierWithKey(this._modifiersWithKeys, BlurModifier.identity, BlurModifier, blur);
3811    return this;
3812  }
3813  linearGradientBlur(value, options) {
3814    if (isUndefined(value) || isNull(value) || isUndefined(options) || isNull(options)) {
3815      modifierWithKey(this._modifiersWithKeys, LinearGradientBlurModifier.identity, LinearGradientBlurModifier, undefined);
3816      return this;
3817    }
3818    let arkLinearGradientBlur = new ArkLinearGradientBlur();
3819    arkLinearGradientBlur.blurRadius = value;
3820    arkLinearGradientBlur.fractionStops = options.fractionStops;
3821    arkLinearGradientBlur.direction = options.direction;
3822    modifierWithKey(this._modifiersWithKeys, LinearGradientBlurModifier.identity, LinearGradientBlurModifier, arkLinearGradientBlur);
3823    return this;
3824  }
3825  brightness(value) {
3826    if (!isNumber(value)) {
3827      modifierWithKey(this._modifiersWithKeys, BrightnessModifier.identity, BrightnessModifier, undefined);
3828    }
3829    else {
3830      modifierWithKey(this._modifiersWithKeys, BrightnessModifier.identity, BrightnessModifier, value);
3831    }
3832    return this;
3833  }
3834  contrast(value) {
3835    if (!isNumber(value)) {
3836      modifierWithKey(this._modifiersWithKeys, ContrastModifier.identity, ContrastModifier, undefined);
3837    }
3838    else {
3839      modifierWithKey(this._modifiersWithKeys, ContrastModifier.identity, ContrastModifier, value);
3840    }
3841    return this;
3842  }
3843  grayscale(value) {
3844    if (!isNumber(value)) {
3845      modifierWithKey(this._modifiersWithKeys, GrayscaleModifier.identity, GrayscaleModifier, undefined);
3846    }
3847    else {
3848      modifierWithKey(this._modifiersWithKeys, GrayscaleModifier.identity, GrayscaleModifier, value);
3849    }
3850    return this;
3851  }
3852  colorBlend(value) {
3853    modifierWithKey(this._modifiersWithKeys, ColorBlendModifier.identity, ColorBlendModifier, value);
3854    return this;
3855  }
3856  saturate(value) {
3857    if (!isNumber(value)) {
3858      modifierWithKey(this._modifiersWithKeys, SaturateModifier.identity, SaturateModifier, undefined);
3859    }
3860    else {
3861      modifierWithKey(this._modifiersWithKeys, SaturateModifier.identity, SaturateModifier, value);
3862    }
3863    return this;
3864  }
3865  sepia(value) {
3866    if (!isNumber(value)) {
3867      modifierWithKey(this._modifiersWithKeys, SepiaModifier.identity, SepiaModifier, undefined);
3868    }
3869    else {
3870      modifierWithKey(this._modifiersWithKeys, SepiaModifier.identity, SepiaModifier, value);
3871    }
3872    return this;
3873  }
3874  invert(value) {
3875    if (!isUndefined(value)) {
3876      modifierWithKey(this._modifiersWithKeys, InvertModifier.identity, InvertModifier, value);
3877    }
3878    else {
3879      modifierWithKey(this._modifiersWithKeys, InvertModifier.identity, InvertModifier, undefined);
3880    }
3881    return this;
3882  }
3883  hueRotate(value) {
3884    if (!isNumber(value) && !isString(value)) {
3885      modifierWithKey(this._modifiersWithKeys, HueRotateModifier.identity, HueRotateModifier, undefined);
3886    }
3887    else {
3888      modifierWithKey(this._modifiersWithKeys, HueRotateModifier.identity, HueRotateModifier, value);
3889    }
3890    return this;
3891  }
3892  useEffect(value, type = EffectType.DEFAULT) {
3893    let useEffectObj = new ArkUseEffect();
3894    useEffectObj.useEffect = value;
3895    useEffectObj.effectType = type;
3896    modifierWithKey(this._modifiersWithKeys, UseEffectModifier.identity, UseEffectModifier, useEffectObj);
3897    return this;
3898  }
3899  backdropBlur(value, options) {
3900    let blur = new ArkBlurOptions();
3901    blur.value = value;
3902    blur.options = options;
3903    modifierWithKey(this._modifiersWithKeys, BackdropBlurModifier.identity, BackdropBlurModifier, blur);
3904    return this;
3905  }
3906  renderGroup(value) {
3907    modifierWithKey(this._modifiersWithKeys, RenderGroupModifier.identity, RenderGroupModifier, value);
3908    return this;
3909  }
3910  translate(value) {
3911    modifierWithKey(this._modifiersWithKeys, TranslateModifier.identity, TranslateModifier, value);
3912    return this;
3913  }
3914  scale(value) {
3915    modifierWithKey(this._modifiersWithKeys, ScaleModifier.identity, ScaleModifier, value);
3916    return this;
3917  }
3918  gridSpan(value) {
3919    if (isNumber(value)) {
3920      modifierWithKey(this._modifiersWithKeys, GridSpanModifier.identity, GridSpanModifier, value);
3921    }
3922    else {
3923      modifierWithKey(this._modifiersWithKeys, GridSpanModifier.identity, GridSpanModifier, undefined);
3924    }
3925    return this;
3926  }
3927  gridOffset(value) {
3928    if (isNumber(value)) {
3929      modifierWithKey(this._modifiersWithKeys, GridOffsetModifier.identity, GridOffsetModifier, value);
3930    }
3931    else {
3932      modifierWithKey(this._modifiersWithKeys, GridOffsetModifier.identity, GridOffsetModifier, undefined);
3933    }
3934    return this;
3935  }
3936  rotate(value) {
3937    modifierWithKey(this._modifiersWithKeys, RotateModifier.identity, RotateModifier, value);
3938    return this;
3939  }
3940  transform(value) {
3941    modifierWithKey(this._modifiersWithKeys, TransformModifier.identity, TransformModifier, value);
3942    return this;
3943  }
3944  onAppear(event) {
3945    modifierWithKey(this._modifiersWithKeys, OnAppearModifier.identity, OnAppearModifier, event);
3946    return this;
3947  }
3948  onDisAppear(event) {
3949    modifierWithKey(this._modifiersWithKeys, OnDisappearModifier.identity, OnDisappearModifier, event);
3950    return this;
3951  }
3952  onAttach(event) {
3953    modifierWithKey(this._modifiersWithKeys, OnAttachModifier.identity, OnAttachModifier, event);
3954    return this;
3955  }
3956  onDetach(event) {
3957    modifierWithKey(this._modifiersWithKeys, OnDetachModifier.identity, OnDetachModifier, event);
3958    return this;
3959  }
3960  onAreaChange(event) {
3961    modifierWithKey(this._modifiersWithKeys, OnAreaChangeModifier.identity, OnAreaChangeModifier, event);
3962    return this;
3963  }
3964  visibility(value) {
3965    modifierWithKey(this._modifiersWithKeys, VisibilityModifier.identity, VisibilityModifier, value);
3966    return this;
3967  }
3968  flexGrow(value) {
3969    modifierWithKey(this._modifiersWithKeys, FlexGrowModifier.identity, FlexGrowModifier, value);
3970    return this;
3971  }
3972  flexShrink(value) {
3973    modifierWithKey(this._modifiersWithKeys, FlexShrinkModifier.identity, FlexShrinkModifier, value);
3974    return this;
3975  }
3976  flexBasis(value) {
3977    modifierWithKey(this._modifiersWithKeys, FlexBasisModifier.identity, FlexBasisModifier, value);
3978    return this;
3979  }
3980  alignSelf(value) {
3981    modifierWithKey(this._modifiersWithKeys, AlignSelfModifier.identity, AlignSelfModifier, value);
3982    return this;
3983  }
3984  displayPriority(value) {
3985    modifierWithKey(this._modifiersWithKeys, DisplayPriorityModifier.identity, DisplayPriorityModifier, value);
3986    return this;
3987  }
3988  zIndex(value) {
3989    if (value !== null) {
3990      let zIndex = 0;
3991      if (typeof (value) === 'number') {
3992        zIndex = value;
3993      }
3994      modifierWithKey(this._modifiersWithKeys, ZIndexModifier.identity, ZIndexModifier, zIndex);
3995    }
3996    return this;
3997  }
3998  sharedTransition(id, options) {
3999    let arkSharedTransition = new ArkSharedTransition();
4000    if (isString(id)) {
4001      arkSharedTransition.id = id;
4002    }
4003    if (typeof options === 'object') {
4004      arkSharedTransition.options = options;
4005    }
4006    modifierWithKey(this._modifiersWithKeys, SharedTransitionModifier.identity, SharedTransitionModifier, arkSharedTransition);
4007    return this;
4008  }
4009  direction(value) {
4010    modifierWithKey(this._modifiersWithKeys, DirectionModifier.identity, DirectionModifier, value);
4011    return this;
4012  }
4013  align(value) {
4014    if (isNumber(value)) {
4015      modifierWithKey(this._modifiersWithKeys, AlignModifier.identity, AlignModifier, value);
4016    }
4017    else {
4018      modifierWithKey(this._modifiersWithKeys, AlignModifier.identity, AlignModifier, undefined);
4019    }
4020    return this;
4021  }
4022  position(value) {
4023    if (isObject(value)) {
4024      modifierWithKey(this._modifiersWithKeys, PositionModifier.identity, PositionModifier, value);
4025    } else {
4026      modifierWithKey(this._modifiersWithKeys, PositionModifier.identity, PositionModifier, undefined);
4027    }
4028    return this;
4029  }
4030  markAnchor(value) {
4031    modifierWithKey(this._modifiersWithKeys, MarkAnchorModifier.identity, MarkAnchorModifier, value);
4032    return this;
4033  }
4034  offset(value) {
4035    if (isObject(value)) {
4036      modifierWithKey(this._modifiersWithKeys, OffsetModifier.identity, OffsetModifier, value);
4037    } else {
4038      modifierWithKey(this._modifiersWithKeys, OffsetModifier.identity, OffsetModifier, undefined);
4039    }
4040    return this;
4041  }
4042  enabled(value) {
4043    if (typeof value === 'boolean') {
4044      modifierWithKey(this._modifiersWithKeys, EnabledModifier.identity, EnabledModifier, value);
4045    }
4046    else {
4047      modifierWithKey(this._modifiersWithKeys, EnabledModifier.identity, EnabledModifier, undefined);
4048    }
4049    return this;
4050  }
4051  useShadowBatching(value) {
4052    modifierWithKey(this._modifiersWithKeys, UseShadowBatchingModifier.identity, UseShadowBatchingModifier, value);
4053    return this;
4054  }
4055  monopolizeEvents(value) {
4056    modifierWithKey(this._modifiersWithKeys, MonopolizeEventsModifier.identity, MonopolizeEventsModifier, value);
4057    return this;
4058  }
4059  useSizeType(value) {
4060    throw new Error('Method not implemented.');
4061  }
4062  alignRules(value) {
4063    if (!isObject(value) || JSON.stringify(value) === '{}') {
4064      modifierWithKey(this._modifiersWithKeys, AlignRulesModifier.identity, AlignRulesModifier, undefined);
4065      return this;
4066    }
4067    let keys = ['left', 'middle', 'right', 'top', 'center', 'bottom'];
4068    let arkValue = new ArkAlignRules();
4069    for (let i = 0; i < keys.length; i++) {
4070      let rule = value[keys[i]];
4071      let alignRule = '';
4072      if (isObject(rule)) {
4073        let alignSign = false;
4074        let anchorSign = false;
4075        let align = rule.align;
4076        let anchor = rule.anchor;
4077        if (isString(anchor)) {
4078          anchorSign = true;
4079        }
4080        if (i < DIRECTION_RANGE) {
4081          if (align in HorizontalAlign) {
4082            alignSign = true;
4083          }
4084        }
4085        else {
4086          if (align in VerticalAlign) {
4087            alignSign = true;
4088          }
4089        }
4090        if (!alignSign && !anchorSign) {
4091          alignRule += '';
4092        }
4093        else if (!anchorSign) {
4094          alignRule += align.toString();
4095          alignRule += '|';
4096          alignRule += '__container__';
4097        }
4098        else if (!alignSign) {
4099          alignRule += '2';
4100          alignRule += '|';
4101          alignRule += anchor;
4102        }
4103        else {
4104          alignRule += align.toString();
4105          alignRule += '|';
4106          alignRule += anchor;
4107        }
4108      }
4109      else {
4110        alignRule += '';
4111      }
4112      switch (keys[i]) {
4113        case 'left':
4114          arkValue.left = alignRule;
4115          break;
4116        case 'middle':
4117          arkValue.middle = alignRule;
4118          break;
4119        case 'right':
4120          arkValue.right = alignRule;
4121          break;
4122        case 'top':
4123          arkValue.top = alignRule;
4124          break;
4125        case 'center':
4126          arkValue.center = alignRule;
4127          break;
4128        case 'bottom':
4129          arkValue.bottom = alignRule;
4130          break;
4131      }
4132    }
4133    modifierWithKey(this._modifiersWithKeys, AlignRulesModifier.identity, AlignRulesModifier, arkValue);
4134    return this;
4135  }
4136  aspectRatio(value) {
4137    modifierWithKey(this._modifiersWithKeys, AspectRatioModifier.identity, AspectRatioModifier, value);
4138    return this;
4139  }
4140  clickEffect(value) {
4141    modifierWithKey(this._modifiersWithKeys, ClickEffectModifier.identity, ClickEffectModifier, value);
4142    return this;
4143  }
4144  onDragStart(event) {
4145    modifierWithKey(this._modifiersWithKeys, DragStartModifier.identity, DragStartModifier, event);
4146    return this;
4147  }
4148  onDragEnter(event) {
4149    modifierWithKey(this._modifiersWithKeys, DragEnterModifier.identity, DragEnterModifier, event);
4150    return this;
4151  }
4152  onDragMove(event) {
4153    modifierWithKey(this._modifiersWithKeys, DragMoveModifier.identity, DragMoveModifier, event);
4154    return this;
4155  }
4156  onDragLeave(event) {
4157    modifierWithKey(this._modifiersWithKeys, DragLeaveModifier.identity, DragLeaveModifier, event);
4158    return this;
4159  }
4160  onDrop(event) {
4161    modifierWithKey(this._modifiersWithKeys, DropModifier.identity, DropModifier, event);
4162    return this;
4163  }
4164  onDragEnd(event) {
4165    modifierWithKey(this._modifiersWithKeys, DragEndModifier.identity, DragEndModifier, event);
4166    return this;
4167  }
4168  onPreDrag(event) {
4169    throw new Error('Method not implemented.');
4170  }
4171  allowDrop(value) {
4172    modifierWithKey(this._modifiersWithKeys, AllowDropModifier.identity, AllowDropModifier, value);
4173    return this;
4174  }
4175  draggable(value) {
4176    if (typeof value === 'boolean') {
4177      modifierWithKey(this._modifiersWithKeys, DraggableModifier.identity, DraggableModifier, value);
4178    }
4179    else {
4180      modifierWithKey(this._modifiersWithKeys, DraggableModifier.identity, DraggableModifier, undefined);
4181    }
4182    return this;
4183  }
4184  dragPreview(value) {
4185    if (typeof value === 'string') {
4186      let arkDragPreview = new ArkDragPreview();
4187      arkDragPreview.inspetorId = value;
4188      modifierWithKey(this._modifiersWithKeys, DragPreviewModifier.identity, DragPreviewModifier, arkDragPreview);
4189      return this;
4190    }
4191    throw new Error('Method not implemented.');
4192  }
4193  overlay(value, options) {
4194    if (typeof value === 'undefined') {
4195      modifierWithKey(this._modifiersWithKeys, OverlayModifier.identity, OverlayModifier, undefined);
4196      return this;
4197    }
4198    let arkOverlay = new ArkOverlay();
4199    if (arkOverlay.splitOverlayValue(value, options)) {
4200      modifierWithKey(this._modifiersWithKeys, OverlayModifier.identity, OverlayModifier, arkOverlay);
4201    }
4202    else {
4203      modifierWithKey(this._modifiersWithKeys, OverlayModifier.identity, OverlayModifier, undefined);
4204    }
4205    return this;
4206  }
4207  linearGradient(value) {
4208    modifierWithKey(this._modifiersWithKeys, LinearGradientModifier.identity, LinearGradientModifier, value);
4209    return this;
4210  }
4211  sweepGradient(value) {
4212    modifierWithKey(this._modifiersWithKeys, SweepGradientModifier.identity, SweepGradientModifier, value);
4213    return this;
4214  }
4215  radialGradient(value) {
4216    modifierWithKey(this._modifiersWithKeys, RadialGradientModifier.identity, RadialGradientModifier, value);
4217    return this;
4218  }
4219  motionPath(value) {
4220    modifierWithKey(this._modifiersWithKeys, MotionPathModifier.identity, MotionPathModifier, value);
4221    return this;
4222  }
4223  motionBlur(value) {
4224    modifierWithKey(this._modifiersWithKeys, MotionBlurModifier.identity, MotionBlurModifier, value);
4225    return this;
4226  }
4227  shadow(value) {
4228    modifierWithKey(this._modifiersWithKeys, ShadowModifier.identity, ShadowModifier, value);
4229    return this;
4230  }
4231  mask(value) {
4232    modifierWithKey(this._modifiersWithKeys, MaskModifier.identity, MaskModifier, value);
4233    return this;
4234  }
4235  maskShape(value) {
4236    modifierWithKey(this._modifiersWithKeys, MaskShapeModifier.identity, MaskShapeModifier, value);
4237    return this;
4238  }
4239  key(value) {
4240    if (typeof value === 'string') {
4241      modifierWithKey(this._modifiersWithKeys, KeyModifier.identity, KeyModifier, value);
4242    }
4243    else {
4244      modifierWithKey(this._modifiersWithKeys, KeyModifier.identity, KeyModifier, undefined);
4245    }
4246    return this;
4247  }
4248  id(value) {
4249    if (typeof value === 'string') {
4250      modifierWithKey(this._modifiersWithKeys, IdModifier.identity, IdModifier, value);
4251    }
4252    else {
4253      modifierWithKey(this._modifiersWithKeys, IdModifier.identity, IdModifier, undefined);
4254    }
4255    return this;
4256  }
4257  geometryTransition(id, options) {
4258    let arkGeometryTransition = new ArkGeometryTransition();
4259    arkGeometryTransition.id = id;
4260    arkGeometryTransition.options = options;
4261    modifierWithKey(this._modifiersWithKeys, GeometryTransitionModifier.identity, GeometryTransitionModifier, arkGeometryTransition);
4262    return this;
4263  }
4264  bindPopup(show, popup) {
4265    throw new Error('Method not implemented.');
4266  }
4267  bindMenu(content, options) {
4268    throw new Error('Method not implemented.');
4269  }
4270  bindContextMenu(content, responseType, options) {
4271    throw new Error('Method not implemented.');
4272  }
4273  bindContentCover(isShow, builder, type) {
4274    throw new Error('Method not implemented.');
4275  }
4276  blendMode(blendMode, blendApplyType) {
4277    let arkBlendMode = new ArkBlendMode();
4278    arkBlendMode.blendMode = blendMode;
4279    arkBlendMode.blendApplyType = blendApplyType;
4280    modifierWithKey(this._modifiersWithKeys, BlendModeModifier.identity, BlendModeModifier, arkBlendMode);
4281    return this;
4282  }
4283  advancedBlendMode(blendMode, blendApplyType) {
4284    let arkBlendMode = new ArkBlendMode();
4285    arkBlendMode.blendMode = blendMode;
4286    arkBlendMode.blendApplyType = blendApplyType;
4287    modifierWithKey(this._modifiersWithKeys, AdvancedBlendModeModifier.identity,
4288      AdvancedBlendModeModifier, arkBlendMode);
4289    return this;
4290  }
4291  clip(value) {
4292    modifierWithKey(this._modifiersWithKeys, ClipModifier.identity, ClipModifier, value);
4293    return this;
4294  }
4295  clipShape(value) {
4296    modifierWithKey(this._modifiersWithKeys, ClipShapeModifier.identity, ClipShapeModifier, value);
4297    return this;
4298  }
4299  bindSheet(isShow, builder, options) {
4300    throw new Error('Method not implemented.');
4301  }
4302  stateStyles(value) {
4303    throw new Error('Method not implemented.');
4304  }
4305  restoreId(value) {
4306    if (typeof value !== 'number') {
4307      modifierWithKey(this._modifiersWithKeys, RestoreIdModifier.identity, RestoreIdModifier, undefined);
4308    }
4309    else {
4310      modifierWithKey(this._modifiersWithKeys, RestoreIdModifier.identity, RestoreIdModifier, value);
4311    }
4312    return this;
4313  }
4314  onVisibleAreaChange(ratios, event) {
4315    throw new Error('Method not implemented.');
4316  }
4317  sphericalEffect(value) {
4318    modifierWithKey(this._modifiersWithKeys, SphericalEffectModifier.identity, SphericalEffectModifier, value);
4319    return this;
4320  }
4321  lightUpEffect(value) {
4322    modifierWithKey(this._modifiersWithKeys, LightUpEffectModifier.identity, LightUpEffectModifier, value);
4323    return this;
4324  }
4325  pixelStretchEffect(options) {
4326    modifierWithKey(this._modifiersWithKeys, PixelStretchEffectModifier.identity, PixelStretchEffectModifier, options);
4327    return this;
4328  }
4329  keyboardShortcut(value, keys, action) {
4330    let keyboardShortCut = new ArkKeyBoardShortCut();
4331    keyboardShortCut.value = value;
4332    keyboardShortCut.keys = keys;
4333    modifierWithKey(this._modifiersWithKeys, KeyBoardShortCutModifier.identity, KeyBoardShortCutModifier, keyboardShortCut);
4334    return this;
4335  }
4336  accessibilityGroup(value) {
4337    if (typeof value === 'boolean') {
4338      modifierWithKey(this._modifiersWithKeys, AccessibilityGroupModifier.identity, AccessibilityGroupModifier, value);
4339    }
4340    else {
4341      modifierWithKey(this._modifiersWithKeys, AccessibilityGroupModifier.identity, AccessibilityGroupModifier, undefined);
4342    }
4343    return this;
4344  }
4345  accessibilityText(value) {
4346    if (typeof value === 'string') {
4347      modifierWithKey(this._modifiersWithKeys, AccessibilityTextModifier.identity, AccessibilityTextModifier, value);
4348    }
4349    else {
4350      modifierWithKey(this._modifiersWithKeys, AccessibilityTextModifier.identity, AccessibilityTextModifier, undefined);
4351    }
4352    return this;
4353  }
4354  accessibilityDescription(value) {
4355    if (typeof value !== 'string') {
4356      modifierWithKey(this._modifiersWithKeys, AccessibilityDescriptionModifier.identity, AccessibilityDescriptionModifier, undefined);
4357    }
4358    else {
4359      modifierWithKey(this._modifiersWithKeys, AccessibilityDescriptionModifier.identity, AccessibilityDescriptionModifier, value);
4360    }
4361    return this;
4362  }
4363  accessibilityLevel(value) {
4364    if (typeof value !== 'string') {
4365      modifierWithKey(this._modifiersWithKeys, AccessibilityLevelModifier.identity, AccessibilityLevelModifier, undefined);
4366    }
4367    else {
4368      modifierWithKey(this._modifiersWithKeys, AccessibilityLevelModifier.identity, AccessibilityLevelModifier, value);
4369    }
4370    return this;
4371  }
4372  obscured(reasons) {
4373    modifierWithKey(this._modifiersWithKeys, ObscuredModifier.identity, ObscuredModifier, reasons);
4374    return this;
4375  }
4376  reuseId(id) {
4377    throw new Error('Method not implemented.');
4378  }
4379  renderFit(fitMode) {
4380    modifierWithKey(this._modifiersWithKeys, RenderFitModifier.identity, RenderFitModifier, fitMode);
4381    return this;
4382  }
4383  attributeModifier(modifier) {
4384    return this;
4385  }
4386  customProperty(key, value) {
4387    let returnBool = getUINativeModule().frameNode.setCustomPropertyModiferByKey(this.nativePtr, key, value);
4388    if (!returnBool) {
4389      const property = new ArkCustomProperty();
4390      property.key = key;
4391      property.value = value;
4392      modifierWithKey(this._modifiersWithKeys, CustomPropertyModifier.identity, CustomPropertyModifier, property);
4393    }
4394    return this;
4395  }
4396  systemBarEffect() {
4397    modifierWithKey(this._modifiersWithKeys, SystemBarEffectModifier.identity, SystemBarEffectModifier, null);
4398    return this;
4399  }
4400  focusScopeId(id, isGroup, arrowStepOut) {
4401    let arkFocusScopeId = new ArkFocusScopeId();
4402    if (isString(id)) {
4403      arkFocusScopeId.id = id;
4404    }
4405    if (typeof isGroup === 'boolean') {
4406      arkFocusScopeId.isGroup = isGroup;
4407    }
4408    if (typeof arrowStepOut === 'boolean') {
4409      arkFocusScopeId.arrowStepOut = arrowStepOut;
4410    }
4411    modifierWithKey(this._modifiersWithKeys, FocusScopeIdModifier.identity, FocusScopeIdModifier, arkFocusScopeId);
4412    return this;
4413  }
4414  focusScopePriority(scopeId, priority) {
4415    let arkFocusScopePriority = new ArkFocusScopePriority();
4416    if (isString(scopeId)) {
4417      arkFocusScopePriority.scopeId = scopeId;
4418    }
4419    if (typeof priority === 'number') {
4420      arkFocusScopePriority.priority = priority;
4421    }
4422    modifierWithKey(
4423      this._modifiersWithKeys, FocusScopePriorityModifier.identity, FocusScopePriorityModifier, arkFocusScopePriority);
4424    return this;
4425  }
4426  pixelRound(value) {
4427    modifierWithKey(this._modifiersWithKeys, PixelRoundModifier.identity, PixelRoundModifier, value);
4428    return this;
4429  }
4430  focusBox(value) {
4431    modifierWithKey(this._modifiersWithKeys, FocusBoxModifier.identity, FocusBoxModifier, value);
4432    return this;
4433  }
4434}
4435const isNull = (val) => typeof val === 'object' && val === null;
4436const isArray = (val) => Array.isArray(val);
4437const isDate = (val) => val instanceof Date;
4438const isRegExp = (val) => val instanceof RegExp;
4439const isError = (val) => val instanceof Error;
4440const isFloat = (val) => Number.isFinite(val) && !Number.isInteger(val);
4441const isInteger = (val) => Number.isInteger(val);
4442const isNonEmptyMap = (val) => val instanceof Map && val.size > 0;
4443const isTruthyString = (val) => typeof val === 'string' && val.trim() !== '';
4444
4445var CommonGestureType;
4446(function (CommonGestureType) {
4447    CommonGestureType[CommonGestureType['TAP_GESTURE'] = 0] = 'TAP_GESTURE';
4448    CommonGestureType[CommonGestureType['LONG_PRESS_GESTURE'] = 1] = 'LONG_PRESS_GESTURE';
4449    CommonGestureType[CommonGestureType['PAN_GESTURE'] = 2] = 'PAN_GESTURE';
4450    CommonGestureType[CommonGestureType['SWIPE_GESTURE'] = 3] = 'SWIPE_GESTURE';
4451    CommonGestureType[CommonGestureType['PINCH_GESTURE'] = 4] = 'PINCH_GESTURE';
4452    CommonGestureType[CommonGestureType['ROTATION_GESTURE'] = 5] = 'ROTATION_GESTURE';
4453    CommonGestureType[CommonGestureType['GESTURE_GROUP'] = 6] = 'GESTURE_GROUP';
4454})(CommonGestureType || (CommonGestureType = {}));
4455
4456class GestureHandler {
4457  constructor(gestureType) {
4458    this.gestureType = gestureType;
4459  }
4460}
4461
4462class TapGestureHandler extends GestureHandler {
4463  constructor(options) {
4464    super(CommonGestureType.TAP_GESTURE);
4465    if (options !== undefined) {
4466      this.fingers = options.fingers;
4467      this.count = options.count;
4468    }
4469  }
4470  onAction(event) {
4471    this.onActionCallback = event;
4472    return this;
4473  }
4474  tag(tag) {
4475    this.gestureTag = tag;
4476    return this;
4477  }
4478  allowedTypes(types) {
4479    this.allowedTypes = types;
4480    return this;
4481  }
4482}
4483
4484class LongPressGestureHandler extends GestureHandler {
4485  constructor(options) {
4486    super(CommonGestureType.LONG_PRESS_GESTURE);
4487    if (options !== undefined) {
4488      this.fingers = options.fingers;
4489      this.repeat = options.repeat;
4490      this.duration = options.duration;
4491    }
4492  }
4493
4494  onAction(event) {
4495    this.onActionCallback = event;
4496    return this;
4497  }
4498
4499  onActionEnd(event) {
4500    this.onActionEndCallback = event;
4501    return this;
4502  }
4503
4504  onActionCancel(event) {
4505    this.onActionCancelCallback = event;
4506    return this;
4507  }
4508
4509  tag(tag) {
4510    this.gestureTag = tag;
4511    return this;
4512  }
4513
4514  allowedTypes(types) {
4515    this.allowedTypes = types;
4516    return this;
4517  }
4518}
4519
4520class PanGestureHandler extends GestureHandler {
4521  constructor(options) {
4522    super(CommonGestureType.PAN_GESTURE);
4523    if (options !== undefined) {
4524      this.fingers = options.fingers;
4525      this.direction = options.direction;
4526      this.distance = options.distance;
4527    }
4528  }
4529
4530  onActionStart(event) {
4531    this.onActionStartCallback = event;
4532    return this;
4533  }
4534
4535  onActionUpdate(event) {
4536    this.onActionUpdateCallback = event;
4537    return this;
4538  }
4539
4540  onActionEnd(event) {
4541    this.onActionEndCallback = event;
4542    return this;
4543  }
4544
4545  onActionCancel(event) {
4546    this.onActionCancelCallback = event;
4547    return this;
4548  }
4549
4550  tag(tag) {
4551    this.gestureTag = tag;
4552    return this;
4553  }
4554
4555  allowedTypes(types) {
4556    this.allowedTypes = types;
4557    return this;
4558  }
4559}
4560
4561class SwipeGestureHandler extends GestureHandler {
4562  constructor(options) {
4563    super(CommonGestureType.SWIPE_GESTURE);
4564    if (options !== undefined) {
4565      this.fingers = options.fingers;
4566      this.direction = options.direction;
4567      this.speed = options.speed;
4568    }
4569  }
4570
4571  onAction(event) {
4572    this.onActionCallback = event;
4573    return this;
4574  }
4575
4576  tag(tag) {
4577    this.gestureTag = tag;
4578    return this;
4579  }
4580
4581  allowedTypes(types) {
4582    this.allowedTypes = types;
4583    return this;
4584  }
4585}
4586
4587class PinchGestureHandler extends GestureHandler {
4588  constructor(options) {
4589    super(CommonGestureType.PINCH_GESTURE);
4590    if (options !== undefined) {
4591      this.fingers = options.fingers;
4592      this.distance = options.distance;
4593    }
4594  }
4595
4596  onActionStart(event) {
4597    this.onActionStartCallback = event;
4598    return this;
4599  }
4600
4601  onActionUpdate(event) {
4602    this.onActionUpdateCallback = event;
4603    return this;
4604  }
4605
4606  onActionEnd(event) {
4607    this.onActionEndCallback = event;
4608    return this;
4609  }
4610
4611  onActionCancel(event) {
4612    this.onActionCancelCallback = event;
4613    return this;
4614  }
4615
4616  tag(tag) {
4617    this.gestureTag = tag;
4618    return this;
4619  }
4620
4621  allowedTypes(types) {
4622    this.allowedTypes = types;
4623    return this;
4624  }
4625}
4626
4627class RotationGestureHandler extends GestureHandler {
4628  constructor(options) {
4629    super(CommonGestureType.ROTATION_GESTURE);
4630    if (options !== undefined) {
4631      this.fingers = options.fingers;
4632      this.angle = options.angle;
4633    }
4634  }
4635
4636  onActionStart(event) {
4637    this.onActionStartCallback = event;
4638    return this;
4639  }
4640
4641  onActionUpdate(event) {
4642    this.onActionUpdateCallback = event;
4643    return this;
4644  }
4645
4646  onActionEnd(event) {
4647    this.onActionEndCallback = event;
4648    return this;
4649  }
4650
4651  onActionCancel(event) {
4652    this.onActionCancelCallback = event;
4653    return this;
4654  }
4655
4656  tag(tag) {
4657    this.gestureTag = tag;
4658    return this;
4659  }
4660
4661  allowedTypes(types) {
4662    this.allowedTypes = types;
4663    return this;
4664  }
4665}
4666
4667class GestureGroupHandler extends GestureHandler {
4668  constructor(options) {
4669    super(CommonGestureType.GESTURE_GROUP);
4670    if (options !== undefined) {
4671      this.mode = options.mode;
4672      this.gestures = options.gestures;
4673    }
4674  }
4675
4676  onCancel(event) {
4677    this.onCancelCallback = event;
4678    return this;
4679  }
4680
4681  tag(tag) {
4682    this.gestureTag = tag;
4683    return this;
4684  }
4685}
4686
4687class UICommonEvent {
4688  setInstanceId(instanceId) {
4689    this._instanceId = instanceId;
4690  }
4691  setNodePtr(nodePtr) {
4692    this._nodePtr = nodePtr;
4693  }
4694  // the first param is used to indicate frameNode
4695  // the second param is used to indicate the callback
4696  // the third param is used to indicate the instanceid
4697  // other options will be indicated after them
4698  setOnClick(callback) {
4699    this._clickEvent = callback;
4700    getUINativeModule().frameNode.setOnClick(this._nodePtr, callback, this._instanceId);
4701  }
4702  setOnTouch(callback) {
4703    this._touchEvent = callback;
4704    getUINativeModule().frameNode.setOnTouch(this._nodePtr, callback, this._instanceId);
4705  }
4706  setOnAppear(callback) {
4707    this._onAppearEvent = callback;
4708    getUINativeModule().frameNode.setOnAppear(this._nodePtr, callback, this._instanceId);
4709  }
4710  setOnDisappear(callback) {
4711    this._onDisappearEvent = callback;
4712    getUINativeModule().frameNode.setOnDisappear(this._nodePtr, callback, this._instanceId);
4713  }
4714  setOnAttach(callback) {
4715    this._onAttachEvent = callback;
4716    getUINativeModule().frameNode.setOnAttach(this._nodePtr, callback, this._instanceId);
4717  }
4718  setOnDetach(callback) {
4719    this._onDetachEvent = callback;
4720    getUINativeModule().frameNode.setOnDetach(this._nodePtr, callback, this._instanceId);
4721  }
4722  setOnKeyEvent(callback) {
4723    this._onKeyEvent = callback;
4724    getUINativeModule().frameNode.setOnKeyEvent(this._nodePtr, callback, this._instanceId);
4725  }
4726  setOnFocus(callback) {
4727    this._onFocusEvent = callback;
4728    getUINativeModule().frameNode.setOnFocus(this._nodePtr, callback, this._instanceId);
4729  }
4730  setOnBlur(callback) {
4731    this._onBlur = callback;
4732    getUINativeModule().frameNode.setOnBlur(this._nodePtr, callback, this._instanceId);
4733  }
4734  setOnHover(callback) {
4735    this._onHoverEvent = callback;
4736    getUINativeModule().frameNode.setOnHover(this._nodePtr, callback, this._instanceId);
4737  }
4738  setOnMouse(callback) {
4739    this._onMouseEvent = callback;
4740    getUINativeModule().frameNode.setOnMouse(this._nodePtr, callback, this._instanceId);
4741  }
4742  setOnSizeChange(callback) {
4743    this._onSizeChangeEvent = callback;
4744    getUINativeModule().frameNode.setOnSizeChange(this._nodePtr, callback, this._instanceId);
4745  }
4746  setOnVisibleAreaApproximateChange(options, callback) {
4747    this._onVisibleAreaApproximateChange = callback;
4748    getUINativeModule().frameNode.setOnVisibleAreaApproximateChange(this._nodePtr, callback, this._instanceId, options.ratios, options.expectedUpdateInterval ? options.expectedUpdateInterval : 1000);
4749  }
4750}
4751
4752function attributeModifierFunc(modifier, componentBuilder, modifierBuilder) {
4753  if (modifier === undefined || modifier === null) {
4754    ArkLogConsole.info('custom modifier is undefined');
4755    return;
4756  }
4757  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
4758  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
4759  let component = this.createOrGetNode(elmtId, () => {
4760    return componentBuilder(nativeNode);
4761  });
4762  if (modifier.isAttributeUpdater === true) {
4763    let modifierJS = globalThis.requireNapi('arkui.modifier');
4764    if (modifier.modifierState === modifierJS.AttributeUpdater.StateEnum.INIT) {
4765      ArkLogConsole.info('AttributeUpdater is created for the first time in ' + (component ?
4766        component.constructor.name.toString() : 'undefined'));
4767      modifier.modifierState = modifierJS.AttributeUpdater.StateEnum.UPDATE;
4768      modifier.attribute = modifierBuilder(nativeNode, ModifierType.STATE, modifierJS);
4769      modifierJS.ModifierUtils.applySetOnChange(modifier.attribute);
4770      modifier.initializeModifier(modifier.attribute);
4771      applyUIAttributesInit(modifier, nativeNode, component);
4772      component.applyModifierPatch();
4773    } else {
4774      modifier.attribute.applyStateUpdatePtr(component);
4775      if (modifier.attribute._nativePtrChanged) {
4776        modifier.onComponentChanged(modifier.attribute);
4777      }
4778      modifier.attribute.applyNormalAttribute(component);
4779      applyUIAttributes(modifier, nativeNode, component);
4780      component.applyModifierPatch();
4781    }
4782  } else {
4783    applyUIAttributes(modifier, nativeNode, component);
4784    component.applyModifierPatch();
4785  }
4786}
4787
4788function attributeModifierFuncWithoutStateStyles(modifier, componentBuilder, modifierBuilder) {
4789  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
4790  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
4791  let component = this.createOrGetNode(elmtId, () => {
4792    return componentBuilder(nativeNode);
4793  });
4794  if (modifier.isAttributeUpdater === true) {
4795    let modifierJS = globalThis.requireNapi('arkui.modifier');
4796    if (modifier.modifierState === modifierJS.AttributeUpdater.StateEnum.INIT) {
4797      modifier.modifierState = modifierJS.AttributeUpdater.StateEnum.UPDATE;
4798      modifier.attribute = modifierBuilder(nativeNode, ModifierType.STATE, modifierJS);
4799      modifierJS.ModifierUtils.applySetOnChange(modifier.attribute);
4800      modifier.initializeModifier(modifier.attribute);
4801      component.applyModifierPatch();
4802    } else {
4803      modifier.attribute.applyStateUpdatePtr(component);
4804      modifier.attribute.applyNormalAttribute(component);
4805      if (modifier.applyNormalAttribute) {
4806        modifier.applyNormalAttribute(component);
4807      }
4808      component.applyModifierPatch();
4809    }
4810  } else {
4811    if (modifier.applyNormalAttribute) {
4812      modifier.applyNormalAttribute(component);
4813    }
4814    component.applyModifierPatch();
4815  }
4816}
4817
4818class UIGestureEvent {
4819  setNodePtr(nodePtr) {
4820    this._nodePtr = nodePtr;
4821  }
4822  setWeakNodePtr(weakNodePtr) {
4823    this._weakNodePtr = weakNodePtr;
4824  }
4825  registerFrameNodeDeletedCallback(nodePtr) {
4826    this._destructorCallback = (elementId) => {
4827      globalThis.__mapOfModifier__.delete(elementId);
4828    };
4829    getUINativeModule().common.registerFrameNodeDestructorCallback(nodePtr, this._destructorCallback);
4830  }
4831  addGesture(gesture, priority, mask) {
4832    if (this._weakNodePtr.invalid()) {
4833      return;
4834    }
4835    if (this._gestures === undefined) {
4836      this._gestures = [gesture];
4837    } else {
4838      this._gestures.push(gesture);
4839    }
4840    switch (gesture.gestureType) {
4841      case CommonGestureType.TAP_GESTURE: {
4842        let tapGesture = gesture;
4843        getUINativeModule().common.addTapGesture(this._nodePtr, priority, mask, tapGesture.gestureTag,
4844          tapGesture.allowedTypes, tapGesture.fingers, tapGesture.count, tapGesture.onActionCallback);
4845        break;
4846      }
4847      case CommonGestureType.LONG_PRESS_GESTURE: {
4848        let longPressGesture = gesture;
4849        getUINativeModule().common.addLongPressGesture(this._nodePtr, priority, mask, longPressGesture.gestureTag,
4850          longPressGesture.allowedTypes, longPressGesture.fingers, longPressGesture.repeat, longPressGesture.duration,
4851          longPressGesture.onActionCallback, longPressGesture.onActionEndCallback, longPressGesture.onActionCancelCallback);
4852        break;
4853      }
4854      case CommonGestureType.PAN_GESTURE: {
4855        let panGesture = gesture;
4856        getUINativeModule().common.addPanGesture(this._nodePtr, priority, mask, panGesture.gestureTag,
4857          panGesture.allowedTypes, panGesture.fingers, panGesture.direction, panGesture.distance, panGesture.onActionStartCallback,
4858          panGesture.onActionUpdateCallback, panGesture.onActionEndCallback, panGesture.onActionCancelCallback);
4859        break;
4860      }
4861      case CommonGestureType.SWIPE_GESTURE: {
4862        let swipeGesture = gesture;
4863        getUINativeModule().common.addSwipeGesture(this._nodePtr, priority, mask, swipeGesture.gestureTag,
4864          swipeGesture.allowedTypes, swipeGesture.fingers, swipeGesture.direction, swipeGesture.speed, swipeGesture.onActionCallback);
4865        break;
4866      }
4867      case CommonGestureType.PINCH_GESTURE: {
4868        let pinchGesture = gesture;
4869        getUINativeModule().common.addPinchGesture(this._nodePtr, priority, mask, pinchGesture.gestureTag,
4870          pinchGesture.allowedTypes, pinchGesture.fingers, pinchGesture.distance, pinchGesture.onActionStartCallback,
4871          pinchGesture.onActionUpdateCallback, pinchGesture.onActionEndCallback, pinchGesture.onActionCancelCallback);
4872        break;
4873      }
4874      case CommonGestureType.ROTATION_GESTURE: {
4875        let rotationGesture = gesture;
4876        getUINativeModule().common.addRotationGesture(this._nodePtr, priority, mask, rotationGesture.gestureTag,
4877          rotationGesture.allowedTypes, rotationGesture.fingers, rotationGesture.angle, rotationGesture.onActionStartCallback,
4878          rotationGesture.onActionUpdateCallback, rotationGesture.onActionEndCallback,
4879          rotationGesture.onActionCancelCallback);
4880        break;
4881      }
4882      case CommonGestureType.GESTURE_GROUP: {
4883        let gestureGroup = gesture;
4884        let groupPtr = getUINativeModule().common.addGestureGroup(this._nodePtr,
4885          gestureGroup.gestureTag, gestureGroup.onCancelCallback, gestureGroup.mode);
4886        gestureGroup.gestures.forEach((item) => {
4887          addGestureToGroup(this._nodePtr, item, groupPtr);
4888        });
4889        getUINativeModule().common.attachGestureGroup(this._nodePtr, priority, mask, groupPtr);
4890        break;
4891      }
4892      default:
4893        break;
4894    }
4895  }
4896  addParallelGesture(gesture, mask) {
4897    this.addGesture(gesture, GesturePriority.PARALLEL, mask);
4898  }
4899  removeGestureByTag(tag) {
4900    if (this._weakNodePtr.invalid()) {
4901      return;
4902    }
4903    getUINativeModule().common.removeGestureByTag(this._nodePtr, tag);
4904    for (let index = this._gestures.length - 1; index >= 0; index--) {
4905      if (this._gestures[index].gestureTag === tag) {
4906        this._gestures.splice(index, 1);
4907        continue;
4908      }
4909      if (this._gestures[index].gestureType === CommonGestureType.GESTURE_GROUP) {
4910        let gestureGroup = this._gestures[index];
4911        removeGestureByTagInGroup(gestureGroup, tag);
4912      }
4913    }
4914  }
4915  clearGestures() {
4916    if (this._weakNodePtr.invalid()) {
4917      return;
4918    }
4919    getUINativeModule().common.clearGestures(this._nodePtr);
4920    this._gestures = [];
4921  }
4922}
4923
4924function removeGestureByTagInGroup(gestureGroup, tag) {
4925  for (let index = gestureGroup.gestures.length - 1; index >= 0; index--) {
4926    if (gestureGroup.gestures[index].gestureTag === tag) {
4927      gestureGroup.gestures.splice(index, 1);
4928      continue;
4929    }
4930    if (gestureGroup.gestures[index].gestureType === CommonGestureType.GESTURE_GROUP) {
4931      removeGestureByTagInGroup(gestureGroup.gestures[index], tag);
4932    }
4933  }
4934}
4935
4936function addGestureToGroup(nodePtr, gesture, gestureGroupPtr) {
4937  switch (gesture.gestureType) {
4938    case CommonGestureType.TAP_GESTURE: {
4939      let tapGesture = gesture;
4940      getUINativeModule().common.addTapGestureToGroup(nodePtr, tapGesture.gestureTag, tapGesture.allowedTypes,
4941        tapGesture.fingers, tapGesture.count, tapGesture.onActionCallback, gestureGroupPtr);
4942      break;
4943    }
4944    case CommonGestureType.LONG_PRESS_GESTURE: {
4945      let longPressGesture = gesture;
4946      getUINativeModule().common.addLongPressGestureToGroup(nodePtr, longPressGesture.gestureTag, longPressGesture.allowedTypes,
4947        longPressGesture.fingers, longPressGesture.repeat, longPressGesture.duration,
4948        longPressGesture.onActionCallback, longPressGesture.onActionEndCallback, longPressGesture.onActionCancelCallback, gestureGroupPtr);
4949      break;
4950    }
4951    case CommonGestureType.PAN_GESTURE: {
4952      let panGesture = gesture;
4953      getUINativeModule().common.addPanGestureToGroup(nodePtr, panGesture.gestureTag, panGesture.allowedTypes,
4954        panGesture.fingers, panGesture.direction, panGesture.distance, panGesture.onActionStartCallback,
4955        panGesture.onActionUpdateCallback, panGesture.onActionEndCallback, panGesture.onActionCancelCallback, gestureGroupPtr);
4956      break;
4957    }
4958    case CommonGestureType.SWIPE_GESTURE: {
4959      let swipeGesture = gesture;
4960      getUINativeModule().common.addSwipeGestureToGroup(nodePtr, swipeGesture.gestureTag, swipeGesture.allowedTypes,
4961        swipeGesture.fingers, swipeGesture.direction, swipeGesture.speed, swipeGesture.onActionCallback, gestureGroupPtr);
4962      break;
4963    }
4964    case CommonGestureType.PINCH_GESTURE: {
4965      let pinchGesture = gesture;
4966      getUINativeModule().common.addPinchGestureToGroup(nodePtr, pinchGesture.gestureTag, pinchGesture.allowedTypes,
4967        pinchGesture.fingers, pinchGesture.distance, pinchGesture.onActionStartCallback,
4968        pinchGesture.onActionUpdateCallback, pinchGesture.onActionEndCallback, pinchGesture.onActionCancelCallback, gestureGroupPtr);
4969      break;
4970    }
4971    case CommonGestureType.ROTATION_GESTURE: {
4972      let rotationGesture = gesture;
4973      getUINativeModule().common.addRotationGestureToGroup(nodePtr, rotationGesture.gestureTag, rotationGesture.allowedTypes,
4974        rotationGesture.fingers, rotationGesture.angle, rotationGesture.onActionStartCallback,
4975        rotationGesture.onActionUpdateCallback, rotationGesture.onActionEndCallback,
4976        rotationGesture.onActionCancelCallback, gestureGroupPtr);
4977      break;
4978    }
4979    case CommonGestureType.GESTURE_GROUP: {
4980      let gestureGroup = gesture;
4981      let groupPtr = getUINativeModule().common.addGestureGroupToGroup(nodePtr,
4982        gestureGroup.gestureTag, gestureGroup.onCancelCallback, gestureGroup.mode, gestureGroupPtr);
4983        gestureGroup.gestures.forEach((item) => {
4984          addGestureToGroup(nodePtr, item, groupPtr);
4985        });
4986      break;
4987    }
4988    default:
4989      break;
4990  }
4991}
4992
4993function applyGesture(modifier, component) {
4994  if (modifier.applyGesture !== undefined) {
4995    let gestureEvent = component.getOrCreateGestureEvent();
4996    gestureEvent.clearGestures();
4997    modifier.applyGesture(gestureEvent);
4998  }
4999}
5000
5001globalThis.__mapOfModifier__ = new Map();
5002function __gestureModifier__(modifier) {
5003  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
5004  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
5005  if (globalThis.__mapOfModifier__.get(elmtId)) {
5006    let component = globalThis.__mapOfModifier__.get(elmtId);
5007    applyGesture(modifier, component);
5008  } else {
5009    let component = new ArkComponent(nativeNode);
5010    globalThis.__mapOfModifier__.set(elmtId, component);
5011    applyGesture(modifier, component);
5012  }
5013}
5014
5015const __elementIdToCustomProperties__ = new Map();
5016
5017function __setValidCustomProperty__(nodeId, key, value) {
5018  if (!__elementIdToCustomProperties__.has(nodeId)) {
5019    __elementIdToCustomProperties__.set(nodeId, new Map());
5020  }
5021
5022  const customProperties = __elementIdToCustomProperties__.get(nodeId);
5023
5024  if (customProperties) {
5025    customProperties.set(key, value);
5026  }
5027}
5028
5029function __removeCustomProperty__(nodeId, key) {
5030  if (__elementIdToCustomProperties__.has(nodeId)) {
5031    const customProperties = __elementIdToCustomProperties__.get(nodeId);
5032
5033    if (customProperties) {
5034      customProperties.delete(key);
5035      return customProperties.size > 0;
5036    }
5037  }
5038
5039  return false;
5040}
5041
5042function __removeCustomProperties__(nodeId) {
5043  __elementIdToCustomProperties__.delete(nodeId);
5044}
5045
5046function __getCustomProperty__(nodeId, key) {
5047  if (__elementIdToCustomProperties__.has(nodeId)) {
5048    const customProperties = __elementIdToCustomProperties__.get(nodeId);
5049
5050    if (customProperties) {
5051      return customProperties.get(key);
5052    }
5053  }
5054
5055  return undefined;
5056}
5057
5058function __getCustomPropertyString__(nodeId, key) {
5059  if (__elementIdToCustomProperties__.has(nodeId)) {
5060    const customProperties = __elementIdToCustomProperties__.get(nodeId);
5061
5062    if (customProperties) {
5063      return JSON.stringify(customProperties.get(key));
5064    }
5065  }
5066
5067  return undefined;
5068}
5069
5070function __setCustomProperty__(nodeId, key, value) {
5071  if (value !== undefined) {
5072    __setValidCustomProperty__(nodeId, key, value);
5073    return true;
5074  } else {
5075    return __removeCustomProperty__(nodeId, key);
5076  }
5077}
5078
5079function valueToArkBorder(value) {
5080  let borderValue = new ArkBorder();
5081  if (isUndefined(value)) {
5082    borderValue = undefined;
5083  }
5084
5085  if (!isUndefined(value?.width) && value?.width !== null) {
5086    if (isNumber(value.width) || isString(value.width) || isResource(value.width)) {
5087      borderValue.arkWidth.left = value.width;
5088      borderValue.arkWidth.right = value.width;
5089      borderValue.arkWidth.top = value.width;
5090      borderValue.arkWidth.bottom = value.width;
5091    } else {
5092      borderValue.arkWidth.start = value.width.start;
5093      borderValue.arkWidth.end = value.width.end;
5094      borderValue.arkWidth.left = value.width.left;
5095      borderValue.arkWidth.right = value.width.right;
5096      borderValue.arkWidth.top = value.width.top;
5097      borderValue.arkWidth.bottom = value.width.bottom;
5098    }
5099  }
5100  if (!isUndefined(value?.color) && value?.color !== null) {
5101    if (isNumber(value.color) || isString(value.color) || isResource(value.color)) {
5102      borderValue.arkColor.leftColor = value.color;
5103      borderValue.arkColor.rightColor = value.color;
5104      borderValue.arkColor.topColor = value.color;
5105      borderValue.arkColor.bottomColor = value.color;
5106    } else {
5107      borderValue.arkColor.start = (value.color).start;
5108      borderValue.arkColor.end = (value.color).end;
5109      borderValue.arkColor.leftColor = (value.color).left;
5110      borderValue.arkColor.rightColor = (value.color).right;
5111      borderValue.arkColor.topColor = (value.color).top;
5112      borderValue.arkColor.bottomColor = (value.color).bottom;
5113    }
5114  }
5115  if (!isUndefined(value?.radius) && value?.radius !== null) {
5116    if (isNumber(value.radius) || isString(value.radius) || isResource(value.radius)) {
5117      borderValue.arkRadius.topLeft = value.radius;
5118      borderValue.arkRadius.topRight = value.radius;
5119      borderValue.arkRadius.bottomLeft = value.radius;
5120      borderValue.arkRadius.bottomRight = value.radius;
5121    } else {
5122      borderValue.arkRadius.topStart = value.radius?.topStart;
5123      borderValue.arkRadius.topEnd = value.radius?.topEnd;
5124      borderValue.arkRadius.bottomStart = value.radius?.bottomStart;
5125      borderValue.arkRadius.bottomEnd = value.radius?.bottomEnd;
5126      borderValue.arkRadius.topLeft = value.radius?.topLeft;
5127      borderValue.arkRadius.topRight = value.radius?.topRight;
5128      borderValue.arkRadius.bottomLeft = value.radius?.bottomLeft;
5129      borderValue.arkRadius.bottomRight = value.radius?.bottomRight;
5130    }
5131  }
5132  if (!isUndefined(value?.style) && value?.style !== null) {
5133    let arkBorderStyle = new ArkBorderStyle();
5134    if (arkBorderStyle.parseBorderStyle(value.style)) {
5135      if (!isUndefined(arkBorderStyle.style)) {
5136        borderValue.arkStyle.top = arkBorderStyle.style;
5137        borderValue.arkStyle.left = arkBorderStyle.style;
5138        borderValue.arkStyle.bottom = arkBorderStyle.style;
5139        borderValue.arkStyle.right = arkBorderStyle.style;
5140      } else {
5141        borderValue.arkStyle.top = arkBorderStyle.top;
5142        borderValue.arkStyle.left = arkBorderStyle.left;
5143        borderValue.arkStyle.bottom = arkBorderStyle.bottom;
5144        borderValue.arkStyle.right = arkBorderStyle.right;
5145      }
5146    }
5147  }
5148  return borderValue;
5149}
5150
5151/// <reference path='./import.ts' />
5152class BlankColorModifier extends ModifierWithKey {
5153  constructor(value) {
5154    super(value);
5155  }
5156  applyPeer(node, reset) {
5157    if (reset) {
5158      getUINativeModule().blank.resetColor(node);
5159    }
5160    else {
5161      getUINativeModule().blank.setColor(node, this.value);
5162    }
5163  }
5164  checkObjectDiff() {
5165    return !isBaseOrResourceEqual(this.stageValue, this.value);
5166  }
5167}
5168BlankColorModifier.identity = Symbol('blankColor');
5169class BlankHeightModifier extends ModifierWithKey {
5170  constructor(value) {
5171    super(value);
5172  }
5173  applyPeer(node, reset) {
5174    if (reset) {
5175      getUINativeModule().blank.resetBlankHeight(node);
5176    } else {
5177      getUINativeModule().blank.setBlankHeight(node, this.value);
5178    }
5179  }
5180  checkObjectDiff() {
5181    return !isBaseOrResourceEqual(this.stageValue, this.value);
5182  }
5183}
5184BlankHeightModifier.identity = Symbol('blankHeight');
5185
5186class BlankMinModifier extends ModifierWithKey {
5187  constructor(value) {
5188    super(value);
5189  }
5190  applyPeer(node, reset) {
5191    if (reset) {
5192      getUINativeModule().blank.resetBlankMin(node);
5193    } else {
5194      getUINativeModule().blank.setBlankMin(node, this.value);
5195    }
5196  }
5197  checkObjectDiff() {
5198    return !isBaseOrResourceEqual(this.stageValue, this.value);
5199  }
5200}
5201BlankMinModifier.identity = Symbol('blankMin');
5202
5203class ArkBlankComponent extends ArkComponent {
5204  constructor(nativePtr, classType) {
5205    super(nativePtr, classType);
5206  }
5207  color(value) {
5208    modifierWithKey(this._modifiersWithKeys, BlankColorModifier.identity, BlankColorModifier, value);
5209    return this;
5210  }
5211  height(value) {
5212    modifierWithKey(this._modifiersWithKeys, BlankHeightModifier.identity, BlankHeightModifier, value);
5213    return this;
5214  }
5215
5216  initialize(value) {
5217    if (value[0] !== undefined) {
5218      modifierWithKey(this._modifiersWithKeys, BlankMinModifier.identity, BlankMinModifier, value[0]);
5219    }
5220    return this;
5221  }
5222  allowChildCount() {
5223    return 0;
5224  }
5225}
5226// @ts-ignore
5227if (globalThis.Blank !== undefined) {
5228  globalThis.Blank.attributeModifier = function (modifier) {
5229    attributeModifierFunc.call(this, modifier, (nativePtr) => {
5230      return new ArkBlankComponent(nativePtr);
5231    }, (nativePtr, classType, modifierJS) => {
5232      return new modifierJS.BlankModifier(nativePtr, classType);
5233    });
5234  };
5235}
5236
5237globalThis.applySymbolGlyphModifierToNode = function (modifier, nodePtr) {
5238  let component = new ArkSymbolGlyphComponent(nodePtr);
5239  applyUIAttributes(modifier, nodePtr, component);
5240  component.applyModifierPatch();
5241};
5242
5243globalThis.applyImageModifierToNode = function (modifier, nodePtr) {
5244  let component = new ArkImageComponent(nodePtr);
5245  applyUIAttributes(modifier, nodePtr, component);
5246  component.applyModifierPatch();
5247};
5248
5249globalThis.applyTextModifierToNode = function (modifier, nodePtr) {
5250  let component = new ArkTextComponent(nodePtr);
5251  applyUIAttributes(modifier, nodePtr, component);
5252  component.applyModifierPatch();
5253};
5254
5255/// <reference path='./import.ts' />
5256class ColumnAlignItemsModifier extends ModifierWithKey {
5257  constructor(value) {
5258    super(value);
5259  }
5260  applyPeer(node, reset) {
5261    if (reset) {
5262      getUINativeModule().column.resetAlignItems(node);
5263    }
5264    else {
5265      getUINativeModule().column.setAlignItems(node, this.value);
5266    }
5267  }
5268  checkObjectDiff() {
5269    return this.stageValue !== this.value;
5270  }
5271}
5272ColumnAlignItemsModifier.identity = Symbol('columnAlignItems');
5273class ColumnJustifyContentModifier extends ModifierWithKey {
5274  constructor(value) {
5275    super(value);
5276  }
5277  applyPeer(node, reset) {
5278    if (reset) {
5279      getUINativeModule().column.resetJustifyContent(node);
5280    }
5281    else {
5282      getUINativeModule().column.setJustifyContent(node, this.value);
5283    }
5284  }
5285  checkObjectDiff() {
5286    return this.stageValue !== this.value;
5287  }
5288}
5289ColumnJustifyContentModifier.identity = Symbol('columnJustifyContent');
5290
5291class ColumnSpaceModifier extends ModifierWithKey {
5292  constructor(value) {
5293    super(value);
5294  }
5295  applyPeer(node, reset) {
5296    if (reset) {
5297      getUINativeModule().column.resetSpace(node);
5298    }
5299    else {
5300      getUINativeModule().column.setSpace(node, this.value);
5301    }
5302  }
5303  checkObjectDiff() {
5304    return this.stageValue !== this.value;
5305  }
5306}
5307ColumnSpaceModifier.identity = Symbol('columnSpace');
5308
5309class ColumnPointLightModifier extends ModifierWithKey {
5310  constructor(value) {
5311    super(value);
5312  }
5313  applyPeer(node, reset) {
5314    if (reset) {
5315      getUINativeModule().common.resetPointLightStyle(node);
5316    } else {
5317      let positionX;
5318      let positionY;
5319      let positionZ;
5320      let intensity;
5321      let color;
5322      let illuminated;
5323      let bloom;
5324      if (!isUndefined(this.value.lightSource) && this.value.lightSource != null) {
5325        positionX = this.value.lightSource.positionX;
5326        positionY = this.value.lightSource.positionY;
5327        positionZ = this.value.lightSource.positionZ;
5328        intensity = this.value.lightSource.intensity;
5329        color = this.value.lightSource.color;
5330      }
5331      illuminated = this.value.illuminated;
5332      bloom = this.value.bloom;
5333      getUINativeModule().common.setPointLightStyle(node, positionX, positionY, positionZ, intensity, color,
5334        illuminated, bloom);
5335    }
5336  }
5337  checkObjectDiff() {
5338    return !isBaseOrResourceEqual(this.stageValue.lightSource?.positionX, this.value.lightSource?.positionX) ||
5339    !isBaseOrResourceEqual(this.stageValue.lightSource?.positionY, this.value.lightSource?.positionY) ||
5340    !isBaseOrResourceEqual(this.stageValue.lightSource?.positionZ, this.value.lightSource?.positionZ) ||
5341    !isBaseOrResourceEqual(this.stageValue.lightSource?.intensity, this.value.lightSource?.intensity) ||
5342    !isBaseOrResourceEqual(this.stageValue.lightSource?.color, this.value.lightSource?.color) ||
5343    !isBaseOrResourceEqual(this.stageValue.illuminated, this.value.illuminated) ||
5344    !isBaseOrResourceEqual(this.stageValue.bloom, this.value.bloom);
5345  }
5346}
5347ColumnPointLightModifier.identity = Symbol('columnPointLight');
5348
5349class ColumnReverseModifier extends ModifierWithKey {
5350  constructor(value) {
5351    super(value);
5352  }
5353  applyPeer(node, reset) {
5354    if (reset) {
5355      getUINativeModule().column.resetReverse(node);
5356    } else {
5357      getUINativeModule().column.setReverse(node, this.value);
5358    }
5359  }
5360  checkObjectDiff() {
5361    return this.stageValue !== this.value;
5362  }
5363}
5364ColumnReverseModifier.identity = Symbol('columnReverse');
5365
5366class ArkColumnComponent extends ArkComponent {
5367  constructor(nativePtr, classType) {
5368    super(nativePtr, classType);
5369  }
5370  initialize(value) {
5371    if (value[0] !== undefined) {
5372      modifierWithKey(this._modifiersWithKeys, ColumnSpaceModifier.identity, ColumnSpaceModifier, value[0].space);
5373    }
5374    return this
5375  }
5376  alignItems(value) {
5377    modifierWithKey(this._modifiersWithKeys, ColumnAlignItemsModifier.identity, ColumnAlignItemsModifier, value);
5378    return this;
5379  }
5380  justifyContent(value) {
5381    modifierWithKey(this._modifiersWithKeys, ColumnJustifyContentModifier.identity, ColumnJustifyContentModifier, value);
5382    return this;
5383  }
5384  pointLight(value) {
5385    modifierWithKey(this._modifiersWithKeys, ColumnPointLightModifier.identity, ColumnPointLightModifier, value);
5386    return this;
5387  }
5388  reverse(value) {
5389    modifierWithKey(this._modifiersWithKeys, ColumnReverseModifier.identity, ColumnReverseModifier, value);
5390    return this;
5391  }
5392}
5393// @ts-ignore
5394if (globalThis.Column !== undefined) {
5395  globalThis.Column.attributeModifier = function (modifier) {
5396    attributeModifierFunc.call(this, modifier, (nativePtr) => {
5397      return new ArkColumnComponent(nativePtr);
5398    }, (nativePtr, classType, modifierJS) => {
5399      return new modifierJS.ColumnModifier(nativePtr, classType);
5400    });
5401  };
5402}
5403
5404/// <reference path='./import.ts' />
5405class ColumnSplitDividerModifier extends ModifierWithKey {
5406  constructor(value) {
5407    super(value);
5408  }
5409  applyPeer(node, reset) {
5410    if (reset) {
5411      getUINativeModule().columnSplit.resetDivider(node);
5412    }
5413    else {
5414      getUINativeModule().columnSplit.setDivider(node, this.value.startMargin, this.value.endMargin);
5415    }
5416  }
5417  checkObjectDiff() {
5418    return !isBaseOrResourceEqual(this.stageValue.startMargin, this.value.startMargin) ||
5419      !isBaseOrResourceEqual(this.stageValue.endMargin, this.value.endMargin);
5420  }
5421}
5422ColumnSplitDividerModifier.identity = Symbol('columnSplitDivider');
5423class ColumnSplitResizeableModifier extends ModifierWithKey {
5424  constructor(value) {
5425    super(value);
5426  }
5427  applyPeer(node, reset) {
5428    if (reset) {
5429      getUINativeModule().columnSplit.resetResizeable(node);
5430    }
5431    else {
5432      getUINativeModule().columnSplit.setResizeable(node, this.value);
5433    }
5434  }
5435  checkObjectDiff() {
5436    return this.stageValue !== this.value;
5437  }
5438}
5439ColumnSplitResizeableModifier.identity = Symbol('columnSplitResizeable');
5440class ColumnSplitClipModifier extends ModifierWithKey {
5441  constructor(value) {
5442    super(value);
5443  }
5444  applyPeer(node, reset) {
5445    if (reset) {
5446      getUINativeModule().common.resetClipWithEdge(node);
5447    }
5448    else {
5449      getUINativeModule().common.setClipWithEdge(node, this.value);
5450    }
5451  }
5452  checkObjectDiff() {
5453    return true;
5454  }
5455}
5456ColumnSplitClipModifier.identity = Symbol('columnSplitClip');
5457class ArkColumnSplitComponent extends ArkComponent {
5458  constructor(nativePtr, classType) {
5459    super(nativePtr, classType);
5460  }
5461  resizeable(value) {
5462    modifierWithKey(this._modifiersWithKeys, ColumnSplitResizeableModifier.identity, ColumnSplitResizeableModifier, value);
5463    return this;
5464  }
5465  divider(value) {
5466    modifierWithKey(this._modifiersWithKeys, ColumnSplitDividerModifier.identity, ColumnSplitDividerModifier, value);
5467    return this;
5468  }
5469  clip(value) {
5470    modifierWithKey(this._modifiersWithKeys, ColumnSplitClipModifier.identity, ColumnSplitClipModifier, value);
5471    return this;
5472  }
5473}
5474// @ts-ignore
5475if (globalThis.ColumnSplit !== undefined) {
5476  globalThis.ColumnSplit.attributeModifier = function (modifier) {
5477    attributeModifierFunc.call(this, modifier, (nativePtr) => {
5478      return new ArkColumnSplitComponent(nativePtr);
5479    }, (nativePtr, classType, modifierJS) => {
5480      return new modifierJS.ColumnSplitModifier(nativePtr, classType);
5481    });
5482  };
5483}
5484
5485/// <reference path='./import.ts' />
5486class DividerVerticalModifier extends ModifierWithKey {
5487  constructor(value) {
5488    super(value);
5489  }
5490  applyPeer(node, reset) {
5491    if (reset) {
5492      getUINativeModule().divider.resetVertical(node);
5493    }
5494    else {
5495      getUINativeModule().divider.setVertical(node, this.value);
5496    }
5497  }
5498  checkObjectDiff() {
5499    return this.stageValue !== this.value;
5500  }
5501}
5502DividerVerticalModifier.identity = Symbol('dividerVertical');
5503class DividerLineCapModifier extends ModifierWithKey {
5504  constructor(value) {
5505    super(value);
5506  }
5507  applyPeer(node, reset) {
5508    if (reset) {
5509      getUINativeModule().divider.resetLineCap(node);
5510    }
5511    else {
5512      getUINativeModule().divider.setLineCap(node, this.value);
5513    }
5514  }
5515  checkObjectDiff() {
5516    return this.stageValue !== this.value;
5517  }
5518}
5519DividerLineCapModifier.identity = Symbol('dividerLineCap');
5520class DividerColorModifier extends ModifierWithKey {
5521  constructor(value) {
5522    super(value);
5523  }
5524  applyPeer(node, reset) {
5525    if (reset) {
5526      getUINativeModule().divider.resetColor(node);
5527    }
5528    else {
5529      getUINativeModule().divider.setColor(node, this.value);
5530    }
5531  }
5532  checkObjectDiff() {
5533    return !isBaseOrResourceEqual(this.stageValue, this.value);
5534  }
5535}
5536DividerColorModifier.identity = Symbol('dividerColor');
5537class DividerStrokeWidthModifier extends ModifierWithKey {
5538  constructor(value) {
5539    super(value);
5540  }
5541  applyPeer(node, reset) {
5542    if (reset) {
5543      getUINativeModule().divider.resetStrokeWidth(node);
5544    }
5545    else {
5546      getUINativeModule().divider.setStrokeWidth(node, this.value);
5547    }
5548  }
5549  checkObjectDiff() {
5550    return this.stageValue !== this.value;
5551  }
5552}
5553DividerStrokeWidthModifier.identity = Symbol('dividerStrokeWidth');
5554class ArkDividerComponent extends ArkComponent {
5555  constructor(nativePtr, classType) {
5556    super(nativePtr, classType);
5557  }
5558  initialize(value) {
5559    return this;
5560  }
5561  allowChildCount() {
5562    return 0;
5563  }
5564  vertical(value) {
5565    modifierWithKey(this._modifiersWithKeys, DividerVerticalModifier.identity, DividerVerticalModifier, value);
5566    return this;
5567  }
5568  color(value) {
5569    modifierWithKey(this._modifiersWithKeys, DividerColorModifier.identity, DividerColorModifier, value);
5570    return this;
5571  }
5572  strokeWidth(value) {
5573    modifierWithKey(this._modifiersWithKeys, DividerStrokeWidthModifier.identity, DividerStrokeWidthModifier, value);
5574    return this;
5575  }
5576  lineCap(value) {
5577    modifierWithKey(this._modifiersWithKeys, DividerLineCapModifier.identity, DividerLineCapModifier, value);
5578    return this;
5579  }
5580}
5581// @ts-ignore
5582if (globalThis.Divider !== undefined) {
5583  globalThis.Divider.attributeModifier = function (modifier) {
5584    attributeModifierFunc.call(this, modifier, (nativePtr) => {
5585      return new ArkDividerComponent(nativePtr);
5586    }, (nativePtr, classType, modifierJS) => {
5587      return new modifierJS.DividerModifier(nativePtr, classType);
5588    });
5589  };
5590}
5591
5592/// <reference path='./import.ts' />
5593class FlexInitializeModifier extends ModifierWithKey {
5594  constructor(value) {
5595    super(value);
5596  }
5597  applyPeer(node, reset) {
5598    if (reset) {
5599      getUINativeModule().flex.resetFlexInitialize(node);
5600    } else {
5601      getUINativeModule().flex.setFlexInitialize(node, this.value.direction, this.value.wrap,
5602        this.value.justifyContent, this.value.alignItems, this.value.alignContent, this.value?.space?.main,
5603        this.value?.space?.cross);
5604    }
5605  }
5606}
5607FlexInitializeModifier.identity = Symbol('flexInitialize');
5608class FlexPointLightModifier extends ModifierWithKey {
5609  constructor(value) {
5610    super(value);
5611  }
5612  applyPeer(node, reset) {
5613    if (reset) {
5614      getUINativeModule().common.resetPointLightStyle(node);
5615    } else {
5616      let positionX;
5617      let positionY;
5618      let positionZ;
5619      let intensity;
5620      let color;
5621      let illuminated;
5622      let bloom;
5623      if (!isUndefined(this.value.lightSource) && this.value.lightSource != null) {
5624        positionX = this.value.lightSource.positionX;
5625        positionY = this.value.lightSource.positionY;
5626        positionZ = this.value.lightSource.positionZ;
5627        intensity = this.value.lightSource.intensity;
5628        color = this.value.lightSource.color;
5629      }
5630      illuminated = this.value.illuminated;
5631      bloom = this.value.bloom;
5632      getUINativeModule().common.setPointLightStyle(node, positionX, positionY, positionZ, intensity, color,
5633        illuminated, bloom);
5634    }
5635  }
5636  checkObjectDiff() {
5637    return !isBaseOrResourceEqual(this.stageValue.lightSource?.positionX, this.value.lightSource?.positionX) ||
5638    !isBaseOrResourceEqual(this.stageValue.lightSource?.positionY, this.value.lightSource?.positionY) ||
5639    !isBaseOrResourceEqual(this.stageValue.lightSource?.positionZ, this.value.lightSource?.positionZ) ||
5640    !isBaseOrResourceEqual(this.stageValue.lightSource?.intensity, this.value.lightSource?.intensity) ||
5641    !isBaseOrResourceEqual(this.stageValue.lightSource?.color, this.value.lightSource?.color) ||
5642    !isBaseOrResourceEqual(this.stageValue.illuminated, this.value.illuminated) ||
5643    !isBaseOrResourceEqual(this.stageValue.bloom, this.value.bloom);
5644  }
5645}
5646FlexPointLightModifier.identity = Symbol('flexPointLight');
5647class ArkFlexComponent extends ArkComponent {
5648  constructor(nativePtr, classType) {
5649    super(nativePtr, classType);
5650  }
5651  pointLight(value) {
5652    modifierWithKey(this._modifiersWithKeys, FlexPointLightModifier.identity, FlexPointLightModifier, value);
5653    return this;
5654  }
5655  initialize(value) {
5656    if (value[0] !== undefined) {
5657      modifierWithKey(this._modifiersWithKeys, FlexInitializeModifier.identity, FlexInitializeModifier, value[0]);
5658    }
5659    return this;
5660  }
5661}
5662// @ts-ignore
5663if (globalThis.Flex !== undefined) {
5664  globalThis.Flex.attributeModifier = function (modifier) {
5665    attributeModifierFunc.call(this, modifier, (nativePtr) => {
5666      return new ArkFlexComponent(nativePtr);
5667    }, (nativePtr, classType, modifierJS) => {
5668      return new modifierJS.FlexModifier(nativePtr, classType);
5669    });
5670  };
5671}
5672
5673/// <reference path='./import.ts' />
5674class GridRowAlignItemsModifier extends ModifierWithKey {
5675  constructor(value) {
5676    super(value);
5677  }
5678  applyPeer(node, reset) {
5679    if (reset) {
5680      getUINativeModule().gridRow.resetAlignItems(node);
5681    }
5682    else {
5683      getUINativeModule().gridRow.setAlignItems(node, this.value);
5684    }
5685  }
5686  checkObjectDiff() {
5687    return !isBaseOrResourceEqual(this.stageValue, this.value);
5688  }
5689}
5690GridRowAlignItemsModifier.identity = Symbol('gridRowAlignItems');
5691class GridRowOnBreakpointChangeModifier extends ModifierWithKey {
5692  constructor(value) {
5693    super(value);
5694  }
5695  applyPeer(node, reset) {
5696    if (reset) {
5697      getUINativeModule().gridRow.resetOnBreakpointChange(node);
5698    } else {
5699      getUINativeModule().gridRow.setOnBreakpointChange(node, this.value);
5700    }
5701  }
5702}
5703GridRowOnBreakpointChangeModifier.identity = Symbol('gridRowOnBreakpointChange');
5704class SetDirectionModifier extends ModifierWithKey {
5705  constructor(value) {
5706    super(value);
5707  }
5708  applyPeer(node, reset) {
5709    if (reset) {
5710      getUINativeModule().gridRow.resetDirection(node);
5711    }
5712    else {
5713      getUINativeModule().gridRow.setDirection(node,  this.value);
5714    }
5715  }
5716}
5717SetDirectionModifier.identity = Symbol('gridRowDirection');
5718class SetBreakpointsModifier extends ModifierWithKey {
5719  constructor(value) {
5720    super(value);
5721  }
5722  applyPeer(node, reset) {
5723    if (reset) {
5724      getUINativeModule().gridRow.resetBreakpoints(node);
5725    }
5726    else {
5727      getUINativeModule().gridRow.setBreakpoints(node, this.value.value, this.value.reference);
5728    }
5729  }
5730}
5731SetBreakpointsModifier.identity = Symbol('gridRowBreakpoints');
5732class SetColumnsModifier extends ModifierWithKey {
5733  constructor(value) {
5734    super(value);
5735  }
5736  applyPeer(node, reset) {
5737    if (reset) {
5738      getUINativeModule().gridRow.resetColumns(node);
5739    }
5740    else {
5741      if (isUndefined(this.value) || isNull(this.value)) {
5742        getUINativeModule().gridRow.resetColumns(node);
5743      } else if (isNumber(this.value)) {
5744        getUINativeModule().gridRow.setColumns(node, this.value, this.value, this.value,
5745          this.value, this.value, this.value);
5746      } else {
5747        getUINativeModule().gridRow.setColumns(node, this.value.xs, this.value.sm, this.value.md,
5748          this.value.lg, this.value.xl, this.value.xxl);
5749      }
5750    }
5751  }
5752}
5753SetColumnsModifier.identity = Symbol('gridRowColumns');
5754class SetGutterModifier extends ModifierWithKey {
5755  constructor(value) {
5756    super(value);
5757  }
5758  applyPeer(node, reset) {
5759    if (reset) {
5760      getUINativeModule().gridRow.resetGutter(node);
5761    }
5762    else {
5763      if (isUndefined(this.value) || isNull(this.value)) {
5764        getUINativeModule().gridRow.resetGutter(node);
5765      }
5766      if (isNumber(this.value)) {
5767        getUINativeModule().gridRow.setGutter(node, this.value,
5768          this.value, this.value, this.value, this.value, this.value,
5769          this.value, this.value, this.value, this.value, this.value, this.value);
5770      } else {
5771        if (isNumber(this.value.x)) {
5772          if (isNumber(this.value.y)) {
5773            getUINativeModule().gridRow.setGutter(node,
5774              this.value.x, this.value.x, this.value.x, this.value.x, this.value.x, this.value.x,
5775              this.value.y, this.value.y, this.value.y, this.value.y, this.value.y, this.value.y);
5776          } else {
5777            getUINativeModule().gridRow.setGutter(node,
5778              this.value.x, this.value.x, this.value.x, this.value.x, this.value.x, this.value.x,
5779              this.value.y?.xs, this.value.y?.sm, this.value.y?.md, this.value.y?.lg, this.value.y?.xl, this.value.y?.xxl);
5780          }
5781        } else {
5782          if (isNumber(this.value.y)) {
5783            getUINativeModule().gridRow.setGutter(node,
5784              this.value.x?.xs, this.value.x?.sm, this.value.x?.md, this.value.x?.lg, this.value.x?.xl, this.value.x?.xxl,
5785              this.value.y, this.value.y, this.value.y, this.value.y, this.value.y, this.value.y);
5786          } else {
5787            getUINativeModule().gridRow.setGutter(node,
5788              this.value.x?.xs, this.value.x?.sm, this.value.x?.md, this.value.x?.lg, this.value.x?.xl, this.value.x?.xxl,
5789              this.value.y?.xs, this.value.y?.sm, this.value.y?.md, this.value.y?.lg, this.value.y?.xl, this.value.y?.xxl);
5790          }
5791        }
5792      }
5793    }
5794  }
5795}
5796SetGutterModifier.identity = Symbol('gridRowGutter');
5797class ArkGridRowComponent extends ArkComponent {
5798  constructor(nativePtr, classType) {
5799    super(nativePtr, classType);
5800  }
5801  allowChildTypes() {
5802    return ["GridCol"];
5803  }
5804  onBreakpointChange(callback) {
5805    modifierWithKey(this._modifiersWithKeys, GridRowOnBreakpointChangeModifier.identity, GridRowOnBreakpointChangeModifier, callback);
5806    return this;
5807  }
5808  alignItems(value) {
5809    modifierWithKey(this._modifiersWithKeys, GridRowAlignItemsModifier.identity, GridRowAlignItemsModifier, value);
5810    return this;
5811  }
5812  setDirection(value) {
5813    modifierWithKey(this._modifiersWithKeys, SetDirectionModifier.identity, SetDirectionModifier, value);
5814    return this;
5815  }
5816  setBreakpoints(value) {
5817    modifierWithKey(this._modifiersWithKeys, SetBreakpointsModifier.identity, SetBreakpointsModifier, value);
5818    return this;
5819  }
5820  setColumns(value) {
5821    modifierWithKey(this._modifiersWithKeys, SetColumnsModifier.identity, SetColumnsModifier, value);
5822    return this;
5823  }
5824  setGutter(value) {
5825    modifierWithKey(this._modifiersWithKeys, SetGutterModifier.identity, SetGutterModifier, value);
5826    return this;
5827  }
5828  initialize(value) {
5829    if (value[0] !== undefined) {
5830      this.setGutter(value[0].gutter);
5831      this.setColumns(value[0].columns);
5832      this.setBreakpoints(value[0].breakpoints);
5833      this.setDirection(value[0].direction);
5834    } else {
5835      this.setGutter(null);
5836      this.setColumns(null);
5837      this.setBreakpoints(null);
5838      this.setDirection(null);
5839    }
5840    return this;
5841  }
5842}
5843// @ts-ignore
5844if (globalThis.GridRow !== undefined) {
5845  globalThis.GridRow.attributeModifier = function (modifier) {
5846    attributeModifierFunc.call(this, modifier, (nativePtr) => {
5847      return new ArkGridRowComponent(nativePtr);
5848    }, (nativePtr, classType, modifierJS) => {
5849      return new modifierJS.GridRowModifier(nativePtr, classType);
5850    });
5851  };
5852}
5853
5854class ClipContentModifier extends ModifierWithKey {
5855  constructor(value) {
5856      super(value);
5857  }
5858  applyPeer(node, reset) {
5859      if (reset) {
5860          getUINativeModule().scrollable.resetContentClip(node);
5861      } else {
5862          getUINativeModule().scrollable.setContentClip(node, this.value);
5863      }
5864  }
5865}
5866ClipContentModifier.identity = Symbol('clipContent');
5867
5868class OnReachStartModifier extends ModifierWithKey {
5869  constructor(value) {
5870    super(value);
5871  }
5872  applyPeer(node, reset) {
5873    if (reset) {
5874      getUINativeModule().scrollable.resetOnReachStart(node);
5875    } else {
5876      getUINativeModule().scrollable.setOnReachStart(node, this.value);
5877    }
5878  }
5879}
5880OnReachStartModifier.identity = Symbol('onReachStart');
5881
5882class OnReachEndModifier extends ModifierWithKey {
5883  constructor(value) {
5884    super(value);
5885  }
5886  applyPeer(node, reset) {
5887    if (reset) {
5888      getUINativeModule().scrollable.resetOnReachEnd(node);
5889    } else {
5890      getUINativeModule().scrollable.setOnReachEnd(node, this.value);
5891    }
5892  }
5893}
5894OnReachStartModifier.identity = Symbol('onReachEnd');
5895
5896class ArkScrollable extends ArkComponent {
5897  constructor(nativePtr, classType) {
5898    super(nativePtr, classType);
5899  }
5900  clipContent(clip) {
5901    modifierWithKey(this._modifiersWithKeys, ClipContentModifier.identity, ClipContentModifier, clip);
5902    return this;
5903  }
5904  onReachStart(event) {
5905    modifierWithKey(this._modifiersWithKeys, OnReachStartModifier.identity, OnReachStartModifier, event);
5906    return this;
5907  }
5908
5909  onReachEnd(event) {
5910    modifierWithKey(this._modifiersWithKeys, OnReachEndModifier.identity, OnReachEndModifier, event);
5911    return this;
5912  }
5913}
5914
5915/// <reference path='./import.ts' />
5916class ArkGridComponent extends ArkScrollable {
5917  constructor(nativePtr, classType) {
5918    super(nativePtr, classType);
5919  }
5920  allowChildTypes() {
5921    return ['GridItem'];
5922  }
5923  initialize(value) {
5924    if (value.length === 1 && isObject(value[0])) {
5925      modifierWithKey(this._modifiersWithKeys, GridScrollerModifier.identity, GridScrollerModifier, value[0]);
5926      modifierWithKey(this._modifiersWithKeys, GridLayoutOptionsModifier.identity, GridLayoutOptionsModifier, undefined);
5927    }
5928    else if (value.length === 2 && isObject(value[0]) && isObject(value[1])) {
5929      modifierWithKey(this._modifiersWithKeys, GridScrollerModifier.identity, GridScrollerModifier, value[0]);
5930      modifierWithKey(this._modifiersWithKeys, GridLayoutOptionsModifier.identity, GridLayoutOptionsModifier, value[1]);
5931    }
5932    else {
5933      modifierWithKey(this._modifiersWithKeys, GridScrollerModifier.identity, GridScrollerModifier, undefined);
5934      modifierWithKey(this._modifiersWithKeys, GridLayoutOptionsModifier.identity, GridLayoutOptionsModifier, undefined);
5935    }
5936    return this;
5937  }
5938  columnsTemplate(value) {
5939    modifierWithKey(this._modifiersWithKeys, GridColumnsTemplateModifier.identity, GridColumnsTemplateModifier, value);
5940    return this;
5941  }
5942  rowsTemplate(value) {
5943    modifierWithKey(this._modifiersWithKeys, GridRowsTemplateModifier.identity, GridRowsTemplateModifier, value);
5944    return this;
5945  }
5946  columnsGap(value) {
5947    modifierWithKey(this._modifiersWithKeys, GridColumnsGapModifier.identity, GridColumnsGapModifier, value);
5948    return this;
5949  }
5950  rowsGap(value) {
5951    modifierWithKey(this._modifiersWithKeys, GridRowsGapModifier.identity, GridRowsGapModifier, value);
5952    return this;
5953  }
5954  scrollBarWidth(value) {
5955    modifierWithKey(this._modifiersWithKeys, GridScrollBarWidthModifier.identity, GridScrollBarWidthModifier, value);
5956    return this;
5957  }
5958  scrollBarColor(value) {
5959    modifierWithKey(this._modifiersWithKeys, GridScrollBarColorModifier.identity, GridScrollBarColorModifier, value);
5960    return this;
5961  }
5962  scrollBar(value) {
5963    modifierWithKey(this._modifiersWithKeys, GridScrollBarModifier.identity, GridScrollBarModifier, value);
5964    return this;
5965  }
5966  onScrollBarUpdate(event) {
5967    throw new Error('Method not implemented.');
5968  }
5969  onScrollIndex(event) {
5970    throw new Error('Method not implemented.');
5971  }
5972  cachedCount(count, show) {
5973    let opt = new ArkScrollableCacheOptions(count, show ? show : false);
5974    modifierWithKey(this._modifiersWithKeys, GridCachedCountModifier.identity, GridCachedCountModifier, opt);
5975    return this;
5976  }
5977  editMode(value) {
5978    modifierWithKey(this._modifiersWithKeys, GridEditModeModifier.identity, GridEditModeModifier, value);
5979    return this;
5980  }
5981  multiSelectable(value) {
5982    modifierWithKey(this._modifiersWithKeys, GridMultiSelectableModifier.identity, GridMultiSelectableModifier, value);
5983    return this;
5984  }
5985  maxCount(value) {
5986    modifierWithKey(this._modifiersWithKeys, GridMaxCountModifier.identity, GridMaxCountModifier, value);
5987    return this;
5988  }
5989  minCount(value) {
5990    modifierWithKey(this._modifiersWithKeys, GridMinCountModifier.identity, GridMinCountModifier, value);
5991    return this;
5992  }
5993  cellLength(value) {
5994    modifierWithKey(this._modifiersWithKeys, GridCellLengthModifier.identity, GridCellLengthModifier, value);
5995    return this;
5996  }
5997  layoutDirection(value) {
5998    modifierWithKey(this._modifiersWithKeys, GridLayoutDirectionModifier.identity, GridLayoutDirectionModifier, value);
5999    return this;
6000  }
6001  supportAnimation(value) {
6002    modifierWithKey(this._modifiersWithKeys, GridSupportAnimationModifier.identity, GridSupportAnimationModifier, value);
6003    return this;
6004  }
6005  onItemDragStart(event) {
6006    throw new Error('Method not implemented.');
6007  }
6008  onItemDragEnter(event) {
6009    throw new Error('Method not implemented.');
6010  }
6011  onItemDragMove(event) {
6012    throw new Error('Method not implemented.');
6013  }
6014  onItemDragLeave(event) {
6015    throw new Error('Method not implemented.');
6016  }
6017  onItemDrop(event) {
6018    throw new Error('Method not implemented.');
6019  }
6020  edgeEffect(value, options) {
6021    let effect = new ArkGridEdgeEffect();
6022    effect.value = value;
6023    effect.options = options;
6024    modifierWithKey(this._modifiersWithKeys, GridEdgeEffectModifier.identity, GridEdgeEffectModifier, effect);
6025    return this;
6026  }
6027  fadingEdge(value, options) {
6028    let fadingEdge = new ArkFadingEdge();
6029    fadingEdge.value = value;
6030    fadingEdge.options = options;
6031    modifierWithKey(this._modifiersWithKeys, GridFadingEdgeModifier.identity, GridFadingEdgeModifier, fadingEdge);
6032    return this;
6033  }
6034  nestedScroll(value) {
6035    modifierWithKey(this._modifiersWithKeys, GridNestedScrollModifier.identity, GridNestedScrollModifier, value);
6036    return this;
6037  }
6038  enableScrollInteraction(value) {
6039    modifierWithKey(this._modifiersWithKeys, GridEnableScrollModifier.identity, GridEnableScrollModifier, value);
6040    return this;
6041  }
6042  friction(value) {
6043    modifierWithKey(this._modifiersWithKeys, GridFrictionModifier.identity, GridFrictionModifier, value);
6044    return this;
6045  }
6046  onScroll(event) {
6047    throw new Error('Method not implemented.');
6048  }
6049  onReachStart(event) {
6050    throw new Error('Method not implemented.');
6051  }
6052  onReachEnd(event) {
6053    throw new Error('Method not implemented.');
6054  }
6055  onScrollStart(event) {
6056    throw new Error('Method not implemented.');
6057  }
6058  onScrollStop(event) {
6059    throw new Error('Method not implemented.');
6060  }
6061  onScrollFrameBegin(event) {
6062    throw new Error('Method not implemented.');
6063  }
6064  clip(value) {
6065    modifierWithKey(this._modifiersWithKeys, GridClipModifier.identity, GridClipModifier, value);
6066    return this;
6067  }
6068  flingSpeedLimit(value) {
6069    modifierWithKey(this._modifiersWithKeys, GridFlingSpeedLimitModifier.identity, GridFlingSpeedLimitModifier, value);
6070    return this;
6071  }
6072  alignItems(value) {
6073    modifierWithKey(this._modifiersWithKeys, GridAlignItemsModifier.identity, GridAlignItemsModifier, value);
6074    return this;
6075  }
6076}
6077class GridScrollerModifier extends ModifierWithKey {
6078  constructor(value) {
6079    super(value);
6080  }
6081  applyPeer(node, reset) {
6082    if (reset) {
6083      getUINativeModule().grid.setGridScroller(node, undefined);
6084    }
6085    else {
6086      getUINativeModule().grid.setGridScroller(node, this.value);
6087    }
6088  }
6089  checkObjectDiff() {
6090    return !isBaseOrResourceEqual(this.stageValue, this.value);
6091  }
6092}
6093GridScrollerModifier.identity = Symbol('gridScroller');
6094class GridLayoutOptionsModifier extends ModifierWithKey {
6095  constructor(value) {
6096    super(value);
6097  }
6098  applyPeer(node, reset) {
6099    let _a, _b, _c, _d;
6100    if (reset) {
6101      getUINativeModule().grid.setGridLayoutOptions(node, undefined, undefined, undefined, undefined, undefined);
6102    }
6103    else {
6104      getUINativeModule().grid.setGridLayoutOptions(node, isArray(this.value.regularSize) ? this.value.regularSize : undefined,
6105        isArray((_a = this.value) === null || _a === void 0 ? void 0 : _a.irregularIndexes) ? this.value.irregularIndexes : undefined,
6106        isArray((_b = this.value) === null || _b === void 0 ? void 0 : _b.irregularIndexes) ? this.value.irregularIndexes.length : undefined,
6107        isFunction((_c = this.value) === null || _c === void 0 ? void 0 : _c.onGetIrregularSizeByIndex) ? this.value.onGetIrregularSizeByIndex : undefined,
6108        isFunction((_d = this.value) === null || _d === void 0 ? void 0 : _d.onGetRectByIndex) ? this.value.onGetRectByIndex : undefined);
6109    }
6110  }
6111  checkObjectDiff() {
6112    let _a, _b, _c, _d, _e, _f, _g, _h;
6113    return !isBaseOrResourceEqual((_a = this.stageValue) === null || _a === void 0 ? void 0 : _a.regularSize,
6114      (_b = this.value) === null || _b === void 0 ? void 0 : _b.regularSize) ||
6115      !isBaseOrResourceEqual((_c = this.stageValue) === null || _c === void 0 ? void 0 : _c.irregularIndexes,
6116        (_d = this.value) === null || _d === void 0 ? void 0 : _d.irregularIndexes) ||
6117      !isBaseOrResourceEqual((_e = this.stageValue) === null || _e === void 0 ? void 0 : _e.onGetIrregularSizeByIndex,
6118        (_f = this.value) === null || _f === void 0 ? void 0 : _f.onGetIrregularSizeByIndex) ||
6119      !isBaseOrResourceEqual((_g = this.stageValue) === null || _g === void 0 ? void 0 : _g.onGetRectByIndex,
6120        (_h = this.value) === null || _h === void 0 ? void 0 : _h.onGetRectByIndex);
6121  }
6122}
6123GridLayoutOptionsModifier.identity = Symbol('gridLayoutOptions');
6124class GridColumnsTemplateModifier extends ModifierWithKey {
6125  constructor(value) {
6126    super(value);
6127  }
6128  applyPeer(node, reset) {
6129    if (reset) {
6130      getUINativeModule().grid.resetColumnsTemplate(node);
6131    }
6132    else {
6133      getUINativeModule().grid.setColumnsTemplate(node, this.value);
6134    }
6135  }
6136}
6137GridColumnsTemplateModifier.identity = Symbol('gridColumnsTemplate');
6138class GridRowsTemplateModifier extends ModifierWithKey {
6139  constructor(value) {
6140    super(value);
6141  }
6142  applyPeer(node, reset) {
6143    if (reset) {
6144      getUINativeModule().grid.resetRowsTemplate(node);
6145    }
6146    else {
6147      getUINativeModule().grid.setRowsTemplate(node, this.value);
6148    }
6149  }
6150}
6151GridRowsTemplateModifier.identity = Symbol('gridRowsTemplate');
6152class GridColumnsGapModifier extends ModifierWithKey {
6153  constructor(value) {
6154    super(value);
6155  }
6156  applyPeer(node, reset) {
6157    if (reset) {
6158      getUINativeModule().grid.resetColumnsGap(node);
6159    }
6160    else {
6161      getUINativeModule().grid.setColumnsGap(node, this.value);
6162    }
6163  }
6164  checkObjectDiff() {
6165    return !isBaseOrResourceEqual(this.stageValue, this.value);
6166  }
6167}
6168GridColumnsGapModifier.identity = Symbol('gridColumnsGap');
6169class GridRowsGapModifier extends ModifierWithKey {
6170  constructor(value) {
6171    super(value);
6172  }
6173  applyPeer(node, reset) {
6174    if (reset) {
6175      getUINativeModule().grid.resetRowsGap(node);
6176    }
6177    else {
6178      getUINativeModule().grid.setRowsGap(node, this.value);
6179    }
6180  }
6181  checkObjectDiff() {
6182    return !isBaseOrResourceEqual(this.stageValue, this.value);
6183  }
6184}
6185GridRowsGapModifier.identity = Symbol('gridRowsGap');
6186class GridScrollBarWidthModifier extends ModifierWithKey {
6187  constructor(value) {
6188    super(value);
6189  }
6190  applyPeer(node, reset) {
6191    if (reset) {
6192      getUINativeModule().grid.resetScrollBarWidth(node);
6193    }
6194    else {
6195      getUINativeModule().grid.setScrollBarWidth(node, this.value);
6196    }
6197  }
6198}
6199GridScrollBarWidthModifier.identity = Symbol('gridScrollBarWidth');
6200class GridScrollBarModifier extends ModifierWithKey {
6201  constructor(value) {
6202    super(value);
6203  }
6204  applyPeer(node, reset) {
6205    if (reset) {
6206      getUINativeModule().grid.resetScrollBar(node);
6207    }
6208    else {
6209      getUINativeModule().grid.setScrollBar(node, this.value);
6210    }
6211  }
6212}
6213GridScrollBarModifier.identity = Symbol('gridScrollBar');
6214class GridScrollBarColorModifier extends ModifierWithKey {
6215  constructor(value) {
6216    super(value);
6217  }
6218  applyPeer(node, reset) {
6219    if (reset) {
6220      getUINativeModule().grid.resetScrollBarColor(node);
6221    }
6222    else {
6223      getUINativeModule().grid.setScrollBarColor(node, this.value);
6224    }
6225  }
6226}
6227GridScrollBarColorModifier.identity = Symbol('gridScrollBarColor');
6228class GridEditModeModifier extends ModifierWithKey {
6229  constructor(value) {
6230    super(value);
6231  }
6232  applyPeer(node, reset) {
6233    if (reset) {
6234      getUINativeModule().grid.resetEditMode(node);
6235    }
6236    else {
6237      getUINativeModule().grid.setEditMode(node, this.value);
6238    }
6239  }
6240}
6241GridEditModeModifier.identity = Symbol('gridEditMode');
6242class GridCachedCountModifier extends ModifierWithKey {
6243  constructor(value) {
6244    super(value);
6245  }
6246  applyPeer(node, reset) {
6247    if (reset) {
6248      getUINativeModule().grid.resetCachedCount(node);
6249    }
6250    else {
6251      getUINativeModule().grid.setCachedCount(node, this.value.count, this.value.show);
6252    }
6253  }
6254}
6255GridCachedCountModifier.identity = Symbol('gridCachedCount');
6256class GridMultiSelectableModifier extends ModifierWithKey {
6257  constructor(value) {
6258    super(value);
6259  }
6260  applyPeer(node, reset) {
6261    if (reset) {
6262      getUINativeModule().grid.resetMultiSelectable(node);
6263    }
6264    else {
6265      getUINativeModule().grid.setMultiSelectable(node, this.value);
6266    }
6267  }
6268}
6269GridMultiSelectableModifier.identity = Symbol('gridMultiSelectable');
6270class GridEdgeEffectModifier extends ModifierWithKey {
6271  constructor(value) {
6272    super(value);
6273  }
6274  applyPeer(node, reset) {
6275    let _a, _b;
6276    if (reset) {
6277      getUINativeModule().grid.resetEdgeEffect(node);
6278    }
6279    else {
6280      getUINativeModule().grid.setEdgeEffect(node, (_a = this.value) === null ||
6281      _a === void 0 ? void 0 : _a.value, (_b = this.value.options) === null ||
6282      _b === void 0 ? void 0 : _b.alwaysEnabled);
6283    }
6284  }
6285  checkObjectDiff() {
6286    return !((this.stageValue.value === this.value.value) &&
6287      (this.stageValue.options === this.value.options));
6288  }
6289}
6290GridEdgeEffectModifier.identity = Symbol('gridEdgeEffect');
6291class GridFadingEdgeModifier extends ModifierWithKey {
6292  constructor(value) {
6293    super(value);
6294  }
6295  applyPeer(node, reset) {
6296    if (reset) {
6297      getUINativeModule().grid.resetFadingEdge(node);
6298    }
6299    else {
6300      getUINativeModule().grid.setFadingEdge(node, this.value.value, this.value.options?.fadingEdgeLength);
6301    }
6302  }
6303  checkObjectDiff() {
6304    return !((this.stageValue.value === this.value.value) &&
6305      (this.stageValue.options === this.value.options));
6306  }
6307}
6308GridFadingEdgeModifier.identity = Symbol('gridFadingEdge');
6309class GridNestedScrollModifier extends ModifierWithKey {
6310  constructor(value) {
6311    super(value);
6312  }
6313  applyPeer(node, reset) {
6314    let _a, _b;
6315    if (reset) {
6316      getUINativeModule().grid.resetNestedScroll(node);
6317    }
6318    else {
6319      getUINativeModule().grid.setNestedScroll(node, (_a = this.value) === null ||
6320      _a === void 0 ? void 0 : _a.scrollForward, (_b = this.value) === null ||
6321      _b === void 0 ? void 0 : _b.scrollBackward);
6322    }
6323  }
6324  checkObjectDiff() {
6325    return !((this.stageValue.scrollForward === this.value.scrollForward) &&
6326      (this.stageValue.scrollBackward === this.value.scrollBackward));
6327  }
6328}
6329GridNestedScrollModifier.identity = Symbol('gridNestedScroll');
6330class GridEnableScrollModifier extends ModifierWithKey {
6331  constructor(value) {
6332    super(value);
6333  }
6334  applyPeer(node, reset) {
6335    if (reset) {
6336      getUINativeModule().grid.resetEnableScroll(node);
6337    }
6338    else {
6339      getUINativeModule().grid.setEnableScroll(node, this.value);
6340    }
6341  }
6342}
6343GridEnableScrollModifier.identity = Symbol('gridEnableScroll');
6344class GridFrictionModifier extends ModifierWithKey {
6345  constructor(value) {
6346    super(value);
6347  }
6348  applyPeer(node, reset) {
6349    if (reset) {
6350      getUINativeModule().grid.resetFriction(node);
6351    }
6352    else {
6353      getUINativeModule().grid.setFriction(node, this.value);
6354    }
6355  }
6356  checkObjectDiff() {
6357    return !isBaseOrResourceEqual(this.stageValue, this.value);
6358  }
6359}
6360GridFrictionModifier.identity = Symbol('gridFriction');
6361class GridMaxCountModifier extends ModifierWithKey {
6362  constructor(value) {
6363    super(value);
6364  }
6365  applyPeer(node, reset) {
6366    if (reset) {
6367      getUINativeModule().grid.resetMaxCount(node);
6368    }
6369    else {
6370      getUINativeModule().grid.setMaxCount(node, this.value);
6371    }
6372  }
6373}
6374GridMaxCountModifier.identity = Symbol('gridMaxCount');
6375class GridMinCountModifier extends ModifierWithKey {
6376  constructor(value) {
6377    super(value);
6378  }
6379  applyPeer(node, reset) {
6380    if (reset) {
6381      getUINativeModule().grid.resetMinCount(node);
6382    }
6383    else {
6384      getUINativeModule().grid.setMinCount(node, this.value);
6385    }
6386  }
6387}
6388GridMinCountModifier.identity = Symbol('gridMinCount');
6389class GridCellLengthModifier extends ModifierWithKey {
6390  constructor(value) {
6391    super(value);
6392  }
6393  applyPeer(node, reset) {
6394    if (reset) {
6395      getUINativeModule().grid.resetCellLength(node);
6396    }
6397    else {
6398      getUINativeModule().grid.setCellLength(node, this.value);
6399    }
6400  }
6401}
6402GridCellLengthModifier.identity = Symbol('gridCellLength');
6403class GridLayoutDirectionModifier extends ModifierWithKey {
6404  constructor(value) {
6405    super(value);
6406  }
6407  applyPeer(node, reset) {
6408    if (reset) {
6409      getUINativeModule().grid.resetLayoutDirection(node);
6410    }
6411    else {
6412      getUINativeModule().grid.setLayoutDirection(node, this.value);
6413    }
6414  }
6415}
6416GridLayoutDirectionModifier.identity = Symbol('gridLayoutDirection');
6417class GridSupportAnimationModifier extends ModifierWithKey {
6418  constructor(value) {
6419    super(value);
6420  }
6421  applyPeer(node, reset) {
6422    if (reset) {
6423      getUINativeModule().grid.resetSupportAnimation(node);
6424    }
6425    else {
6426      getUINativeModule().grid.setSupportAnimation(node, this.value);
6427    }
6428  }
6429}
6430GridSupportAnimationModifier.identity = Symbol('gridSupportAnimation');
6431class GridClipModifier extends ModifierWithKey {
6432  constructor(value) {
6433    super(value);
6434  }
6435  applyPeer(node, reset) {
6436    if (reset) {
6437      getUINativeModule().common.resetClipWithEdge(node);
6438    }
6439    else {
6440      getUINativeModule().common.setClipWithEdge(node, this.value);
6441    }
6442  }
6443  checkObjectDiff() {
6444    return true;
6445  }
6446}
6447GridClipModifier.identity = Symbol('gridClip');
6448class GridFlingSpeedLimitModifier extends ModifierWithKey {
6449  constructor(value) {
6450    super(value);
6451  }
6452  applyPeer(node, reset) {
6453    if (reset) {
6454      getUINativeModule().grid.resetFlingSpeedLimit(node);
6455    }
6456    else {
6457      getUINativeModule().grid.setFlingSpeedLimit(node, this.value);
6458    }
6459  }
6460}
6461GridFlingSpeedLimitModifier.identity = Symbol('gridFlingSpeedLimit');
6462class GridAlignItemsModifier extends ModifierWithKey {
6463  constructor(value) {
6464    super(value);
6465  }
6466  applyPeer(node, reset) {
6467    if (reset) {
6468      getUINativeModule().grid.resetAlignItems(node);
6469    }
6470    else {
6471      getUINativeModule().grid.setAlignItems(node, this.value);
6472    }
6473  }
6474}
6475GridAlignItemsModifier.identity = Symbol('gridAlignItems');
6476// @ts-ignore
6477if (globalThis.Grid !== undefined) {
6478  globalThis.Grid.attributeModifier = function (modifier) {
6479    attributeModifierFunc.call(this, modifier, (nativePtr) => {
6480      return new ArkGridComponent(nativePtr);
6481    }, (nativePtr, classType, modifierJS) => {
6482      return new modifierJS.GridModifier(nativePtr, classType);
6483    });
6484  };
6485}
6486
6487/// <reference path='./import.ts' />
6488class GridColSpanModifier extends ModifierWithKey {
6489  constructor(value) {
6490    super(value);
6491  }
6492  applyPeer(node, reset) {
6493    if (reset) {
6494      getUINativeModule().gridCol.resetSpan(node);
6495    }
6496    else {
6497      if (isNumber(this.value)) {
6498        getUINativeModule().gridCol.setSpan(node, this.value, this.value, this.value, this.value, this.value, this.value);
6499      }
6500      else {
6501        getUINativeModule().gridCol.setSpan(node, this.value.xs, this.value.sm, this.value.md, this.value.lg, this.value.xl, this.value.xxl);
6502      }
6503    }
6504  }
6505  checkObjectDiff() {
6506    if (isNumber(this.stageValue) && isNumber(this.value)) {
6507      return this.stageValue !== this.value;
6508    }
6509    else if (isObject(this.stageValue) && isObject(this.value)) {
6510      return this.stageValue?.xs !== this.value?.xs ||
6511        this.stageValue?.sm !== this.value?.sm ||
6512        this.stageValue?.md !== this.value?.md ||
6513        this.stageValue?.lg !== this.value?.lg ||
6514        this.stageValue?.xl !== this.value?.xl ||
6515        this.stageValue?.xxl !== this.value?.xxl;
6516    }
6517    else {
6518      return true;
6519    }
6520  }
6521}
6522GridColSpanModifier.identity = Symbol('gridColSpan');
6523class GridColOffsetModifier extends ModifierWithKey {
6524  constructor(value) {
6525    super(value);
6526  }
6527  applyPeer(node, reset) {
6528    if (reset) {
6529      getUINativeModule().gridCol.resetGridColOffset(node);
6530    }
6531    else {
6532      if (isNumber(this.value)) {
6533        getUINativeModule().gridCol.setGridColOffset(node, this.value, this.value, this.value, this.value, this.value, this.value);
6534      }
6535      else {
6536        getUINativeModule().gridCol.setGridColOffset(node, this.value.xs, this.value.sm, this.value.md, this.value.lg, this.value.xl, this.value.xxl);
6537      }
6538    }
6539  }
6540  checkObjectDiff() {
6541    if (isNumber(this.stageValue) && isNumber(this.value)) {
6542      return this.stageValue !== this.value;
6543    }
6544    else if (isObject(this.stageValue) && isObject(this.value)) {
6545      return this.stageValue?.xs !== this.value?.xs ||
6546        this.stageValue?.sm !== this.value?.sm ||
6547        this.stageValue?.md !== this.value?.md ||
6548        this.stageValue?.lg !== this.value?.lg ||
6549        this.stageValue?.xl !== this.value?.xl ||
6550        this.stageValue?.xxl !== this.value?.xxl;
6551    }
6552    else {
6553      return true;
6554    }
6555  }
6556}
6557GridColOffsetModifier.identity = Symbol('gridColOffset');
6558class GridColOrderModifier extends ModifierWithKey {
6559  constructor(value) {
6560    super(value);
6561  }
6562  applyPeer(node, reset) {
6563    if (reset) {
6564      getUINativeModule().gridCol.resetOrder(node);
6565    }
6566    else {
6567      if (isNumber(this.value)) {
6568        getUINativeModule().gridCol.setOrder(node, this.value, this.value, this.value, this.value, this.value, this.value);
6569      }
6570      else {
6571        getUINativeModule().gridCol.setOrder(node, this.value.xs, this.value.sm, this.value.md, this.value.lg, this.value.xl, this.value.xxl);
6572      }
6573    }
6574  }
6575  checkObjectDiff() {
6576    if (isNumber(this.stageValue) && isNumber(this.value)) {
6577      return this.stageValue !== this.value;
6578    }
6579    else if (isObject(this.stageValue) && isObject(this.value)) {
6580      return this.stageValue?.xs !== this.value?.xs ||
6581        this.stageValue?.sm !== this.value?.sm ||
6582        this.stageValue?.md !== this.value?.md ||
6583        this.stageValue?.lg !== this.value?.lg ||
6584        this.stageValue?.xl !== this.value?.xl ||
6585        this.stageValue?.xxl !== this.value?.xxl;
6586    }
6587    else {
6588      return true;
6589    }
6590  }
6591}
6592GridColOrderModifier.identity = Symbol('gridColOrder');
6593class ArkGridColComponent extends ArkComponent {
6594  constructor(nativePtr, classType) {
6595    super(nativePtr, classType);
6596  }
6597  allowChildCount() {
6598    return 1;
6599  }
6600  span(value) {
6601    modifierWithKey(this._modifiersWithKeys, GridColSpanModifier.identity, GridColSpanModifier, value);
6602    return this;
6603  }
6604  gridColOffset(value) {
6605    modifierWithKey(this._modifiersWithKeys, GridColOffsetModifier.identity, GridColOffsetModifier, value);
6606    return this;
6607  }
6608  order(value) {
6609    modifierWithKey(this._modifiersWithKeys, GridColOrderModifier.identity, GridColOrderModifier, value);
6610    return this;
6611  }
6612  initialize(value) {
6613    if (value[0] !== undefined) {
6614      modifierWithKey(this._modifiersWithKeys, GridColSpanModifier.identity, GridColSpanModifier, value[0].span);
6615      modifierWithKey(this._modifiersWithKeys, GridColOffsetModifier.identity, GridColOffsetModifier, value[0].offset);
6616      modifierWithKey(this._modifiersWithKeys, GridColOrderModifier.identity, GridColOrderModifier, value[0].order);
6617    } else {
6618      modifierWithKey(this._modifiersWithKeys, GridColSpanModifier.identity, GridColSpanModifier, null);
6619      modifierWithKey(this._modifiersWithKeys, GridColOffsetModifier.identity, GridColOffsetModifier, null);
6620      modifierWithKey(this._modifiersWithKeys, GridColOrderModifier.identity, GridColOrderModifier, null);
6621    }
6622    return this;
6623  }
6624}
6625// @ts-ignore
6626if (globalThis.GridCol !== undefined) {
6627  globalThis.GridCol.attributeModifier = function (modifier) {
6628    attributeModifierFunc.call(this, modifier, (nativePtr) => {
6629      return new ArkGridColComponent(nativePtr);
6630    }, (nativePtr, classType, modifierJS) => {
6631      return new modifierJS.GridColModifier(nativePtr, classType);
6632    });
6633  };
6634}
6635
6636/// <reference path='./import.ts' />
6637class ImageColorFilterModifier extends ModifierWithKey {
6638  constructor(value) {
6639    super(value);
6640  }
6641  applyPeer(node, reset) {
6642    if (reset) {
6643      getUINativeModule().image.resetColorFilter(node);
6644    }
6645    else {
6646      getUINativeModule().image.setColorFilter(node, this.value);
6647    }
6648  }
6649  checkObjectDiff() {
6650    return true;
6651  }
6652}
6653ImageColorFilterModifier.identity = Symbol('imageColorFilter');
6654class ImageFillColorModifier extends ModifierWithKey {
6655  constructor(value) {
6656    super(value);
6657  }
6658  applyPeer(node, reset) {
6659    if (reset) {
6660      getUINativeModule().image.resetFillColor(node);
6661    }
6662    else {
6663      if (this.value && ((typeof this.value) === 'string')) {
6664        ArkLogConsole.info('ImageFillColorModifier set color ' + this.value);
6665      }
6666      getUINativeModule().image.setFillColor(node, this.value);
6667    }
6668  }
6669  checkObjectDiff() {
6670    return !isBaseOrResourceEqual(this.stageValue, this.value);
6671  }
6672}
6673ImageFillColorModifier.identity = Symbol('imageFillColor');
6674class ImageAltModifier extends ModifierWithKey {
6675  constructor(value) {
6676    super(value);
6677  }
6678  applyPeer(node, reset) {
6679    if (reset) {
6680      getUINativeModule().image.resetAlt(node);
6681    }
6682    else {
6683      getUINativeModule().image.setAlt(node, this.value);
6684    }
6685  }
6686  checkObjectDiff() {
6687    return !isBaseOrResourceEqual(this.stageValue, this.value);
6688  }
6689}
6690ImageAltModifier.identity = Symbol('imageAlt');
6691class ImageCopyOptionModifier extends ModifierWithKey {
6692  constructor(value) {
6693    super(value);
6694  }
6695  applyPeer(node, reset) {
6696    if (reset) {
6697      getUINativeModule().image.resetCopyOption(node);
6698    }
6699    else {
6700      getUINativeModule().image.setCopyOption(node, this.value);
6701    }
6702  }
6703  checkObjectDiff() {
6704    return this.stageValue !== this.value;
6705  }
6706}
6707ImageCopyOptionModifier.identity = Symbol('imageCopyOption');
6708class ImageAutoResizeModifier extends ModifierWithKey {
6709  constructor(value) {
6710    super(value);
6711  }
6712  applyPeer(node, reset) {
6713    if (reset) {
6714      getUINativeModule().image.resetAutoResize(node);
6715    }
6716    else {
6717      getUINativeModule().image.setAutoResize(node, this.value);
6718    }
6719  }
6720  checkObjectDiff() {
6721    return this.stageValue !== this.value;
6722  }
6723}
6724ImageAutoResizeModifier.identity = Symbol('imageAutoResize');
6725class ImageFitOriginalSizeModifier extends ModifierWithKey {
6726  constructor(value) {
6727    super(value);
6728  }
6729  applyPeer(node, reset) {
6730    if (reset) {
6731      getUINativeModule().image.resetFitOriginalSize(node);
6732    }
6733    else {
6734      getUINativeModule().image.setFitOriginalSize(node, this.value);
6735    }
6736  }
6737  checkObjectDiff() {
6738    return this.stageValue !== this.value;
6739  }
6740}
6741ImageFitOriginalSizeModifier.identity = Symbol('imageFitOriginalSize');
6742class ImageDraggableModifier extends ModifierWithKey {
6743  constructor(value) {
6744    super(value);
6745  }
6746  applyPeer(node, reset) {
6747    if (reset) {
6748      getUINativeModule().image.resetDraggable(node);
6749    }
6750    else {
6751      getUINativeModule().image.setDraggable(node, this.value);
6752    }
6753  }
6754  checkObjectDiff() {
6755    return this.stageValue !== this.value;
6756  }
6757}
6758ImageDraggableModifier.identity = Symbol('imageDraggable');
6759class ImageInterpolationModifier extends ModifierWithKey {
6760  constructor(value) {
6761    super(value);
6762  }
6763  applyPeer(node, reset) {
6764    if (reset) {
6765      getUINativeModule().image.resetImageInterpolation(node);
6766    }
6767    else {
6768      getUINativeModule().image.setImageInterpolation(node, this.value);
6769    }
6770  }
6771  checkObjectDiff() {
6772    return this.stageValue !== this.value;
6773  }
6774}
6775ImageInterpolationModifier.identity = Symbol('imageInterpolation');
6776class ImageSourceSizeModifier extends ModifierWithKey {
6777  constructor(value) {
6778    super(value);
6779  }
6780  applyPeer(node, reset) {
6781    if (reset) {
6782      getUINativeModule().image.resetSourceSize(node);
6783    }
6784    else {
6785      getUINativeModule().image.setSourceSize(node, this.value.width, this.value.height);
6786    }
6787  }
6788  checkObjectDiff() {
6789    return this.stageValue.width !== this.value.width ||
6790      this.stageValue.height !== this.value.height;
6791  }
6792}
6793ImageSourceSizeModifier.identity = Symbol('imageSourceSize');
6794class ImageMatchTextDirectionModifier extends ModifierWithKey {
6795  constructor(value) {
6796    super(value);
6797  }
6798  applyPeer(node, reset) {
6799    if (reset) {
6800      getUINativeModule().image.resetMatchTextDirection(node);
6801    }
6802    else {
6803      getUINativeModule().image.setMatchTextDirection(node, this.value);
6804    }
6805  }
6806  checkObjectDiff() {
6807    return this.stageValue !== this.value;
6808  }
6809}
6810ImageMatchTextDirectionModifier.identity = Symbol('imageMatchTextDirection');
6811class ImageObjectRepeatModifier extends ModifierWithKey {
6812  constructor(value) {
6813    super(value);
6814  }
6815  applyPeer(node, reset) {
6816    if (reset) {
6817      getUINativeModule().image.resetObjectRepeat(node);
6818    }
6819    else {
6820      getUINativeModule().image.setObjectRepeat(node, this.value);
6821    }
6822  }
6823  checkObjectDiff() {
6824    return this.stageValue !== this.value;
6825  }
6826}
6827ImageObjectRepeatModifier.identity = Symbol('imageObjectRepeat');
6828class ImageRenderModeModifier extends ModifierWithKey {
6829  constructor(value) {
6830    super(value);
6831  }
6832  applyPeer(node, reset) {
6833    if (reset) {
6834      getUINativeModule().image.resetRenderMode(node);
6835    }
6836    else {
6837      getUINativeModule().image.setRenderMode(node, this.value);
6838    }
6839  }
6840  checkObjectDiff() {
6841    return this.stageValue !== this.value;
6842  }
6843}
6844ImageRenderModeModifier.identity = Symbol('imageRenderMode');
6845class ImageSyncLoadModifier extends ModifierWithKey {
6846  constructor(value) {
6847    super(value);
6848  }
6849  applyPeer(node, reset) {
6850    if (reset) {
6851      getUINativeModule().image.resetSyncLoad(node);
6852    }
6853    else {
6854      getUINativeModule().image.setSyncLoad(node, this.value);
6855    }
6856  }
6857  checkObjectDiff() {
6858    return this.stageValue !== this.value;
6859  }
6860}
6861ImageSyncLoadModifier.identity = Symbol('imageSyncLoad');
6862class ImageeEdgeAntialiasingModifier extends ModifierWithKey {
6863  constructor(value) {
6864    super(value);
6865  }
6866  applyPeer(node, reset) {
6867    if (reset) {
6868      getUINativeModule().image.resetEdgeAntialiasing(node);
6869    } else {
6870      getUINativeModule().image.setEdgeAntialiasing(node, this.value);
6871    }
6872  }
6873}
6874ImageeEdgeAntialiasingModifier.identity = Symbol('edgeAntialiasing');
6875class ImageObjectFitModifier extends ModifierWithKey {
6876  constructor(value) {
6877    super(value);
6878  }
6879  applyPeer(node, reset) {
6880    if (reset) {
6881      getUINativeModule().image.resetObjectFit(node);
6882    }
6883    else {
6884      getUINativeModule().image.setObjectFit(node, this.value);
6885    }
6886  }
6887  checkObjectDiff() {
6888    return this.stageValue !== this.value;
6889  }
6890}
6891ImageObjectFitModifier.identity = Symbol('imageObjectFit');
6892class ImageBorderRadiusModifier extends ModifierWithKey {
6893  constructor(value) {
6894    super(value);
6895  }
6896  applyPeer(node, reset) {
6897    if (reset) {
6898      getUINativeModule().image.resetBorderRadius(node);
6899    }
6900    else {
6901      if (isNumber(this.value) || isString(this.value) || isResource(this.value)) {
6902        getUINativeModule().image.setBorderRadius(node, this.value, this.value, this.value, this.value);
6903      }
6904      else {
6905        getUINativeModule().image.setBorderRadius(node, this.value.topLeft, this.value.topRight, this.value.bottomLeft, this.value.bottomRight);
6906      }
6907    }
6908  }
6909  checkObjectDiff() {
6910    if (isResource(this.stageValue) && isResource(this.value)) {
6911      return !isResourceEqual(this.stageValue, this.value);
6912    }
6913    else if (!isResource(this.stageValue) && !isResource(this.value)) {
6914      return !(this.stageValue.topLeft === this.value.topLeft &&
6915        this.stageValue.topRight === this.value.topRight &&
6916        this.stageValue.bottomLeft === this.value.bottomLeft &&
6917        this.stageValue.bottomRight === this.value.bottomRight);
6918    }
6919    else {
6920      return true;
6921    }
6922  }
6923}
6924ImageBorderRadiusModifier.identity = Symbol('imageBorderRadius');
6925class ImageBorderModifier extends ModifierWithKey {
6926  constructor(value) {
6927    super(value);
6928  }
6929  applyPeer(node, reset) {
6930    if (reset) {
6931      getUINativeModule().image.resetImageBorder(node);
6932    } else {
6933      let widthLeft;
6934      let widthRight;
6935      let widthTop;
6936      let widthBottom;
6937      if (!isUndefined(this.value.width) && this.value.width != null) {
6938        if (isNumber(this.value.width) || isString(this.value.width) || isResource(this.value.width)) {
6939          widthLeft = this.value.width;
6940          widthRight = this.value.width;
6941          widthTop = this.value.width;
6942          widthBottom = this.value.width;
6943        } else {
6944          widthLeft = this.value.width.left;
6945          widthRight = this.value.width.right;
6946          widthTop = this.value.width.top;
6947          widthBottom = this.value.width.bottom;
6948        }
6949      }
6950      let leftColor;
6951      let rightColor;
6952      let topColor;
6953      let bottomColor;
6954      if (!isUndefined(this.value.color) && this.value.color !== null) {
6955        if (isNumber(this.value.color) || isString(this.value.color) || isResource(this.value.color)) {
6956          leftColor = this.value.color;
6957          rightColor = this.value.color;
6958          topColor = this.value.color;
6959          bottomColor = this.value.color;
6960        } else {
6961          leftColor = this.value.color.left;
6962          rightColor = this.value.color.right;
6963          topColor = this.value.color.top;
6964          bottomColor = this.value.color.bottom;
6965        }
6966      }
6967      let topLeft;
6968      let topRight;
6969      let bottomLeft;
6970      let bottomRight;
6971      if (!isUndefined(this.value.radius) && this.value.radius !== null) {
6972        if (isNumber(this.value.radius) || isString(this.value.radius) || isResource(this.value.radius)) {
6973          topLeft = this.value.radius;
6974          topRight = this.value.radius;
6975          bottomLeft = this.value.radius;
6976          bottomRight = this.value.radius;
6977        } else {
6978          topLeft = this.value.radius.topLeft;
6979          topRight = this.value.radius.topRight;
6980          bottomLeft = this.value.radius.bottomLeft;
6981          bottomRight = this.value.radius.bottomRight;
6982        }
6983      }
6984      let styleTop;
6985      let styleRight;
6986      let styleBottom;
6987      let styleLeft;
6988      if (!isUndefined(this.value.style) && this.value.style !== null) {
6989        if (isNumber(this.value.style) || isString(this.value.style) || isResource(this.value.style)) {
6990          styleTop = this.value.style;
6991          styleRight = this.value.style;
6992          styleBottom = this.value.style;
6993          styleLeft = this.value.style;
6994        } else {
6995          styleTop = this.value.style.top;
6996          styleRight = this.value.style.right;
6997          styleBottom = this.value.style.bottom;
6998          styleLeft = this.value.style.left;
6999        }
7000      }
7001      getUINativeModule().image.setImageBorder(
7002        node,
7003        widthLeft,
7004        widthRight,
7005        widthTop,
7006        widthBottom,
7007        leftColor,
7008        rightColor,
7009        topColor,
7010        bottomColor,
7011        topLeft,
7012        topRight,
7013        bottomLeft,
7014        bottomRight,
7015        styleTop,
7016        styleRight,
7017        styleBottom,
7018        styleLeft
7019      );
7020    }
7021  }
7022  checkObjectDiff() {
7023    return (
7024      !isBaseOrResourceEqual(this.stageValue.width, this.value.width) ||
7025      !isBaseOrResourceEqual(this.stageValue.color, this.value.color) ||
7026      !isBaseOrResourceEqual(this.stageValue.radius, this.value.radius) ||
7027      !isBaseOrResourceEqual(this.stageValue.style, this.value.style)
7028    );
7029  }
7030}
7031ImageBorderModifier.identity = Symbol('imageBorder');
7032class ImageOpacityModifier extends ModifierWithKey {
7033  constructor(value) {
7034    super(value);
7035  }
7036  applyPeer(node, reset) {
7037    if (reset) {
7038      getUINativeModule().image.resetImageOpacity(node);
7039    } else {
7040      getUINativeModule().image.setImageOpacity(node, this.value);
7041    }
7042  }
7043  checkObjectDiff() {
7044    return !isBaseOrResourceEqual(this.stageValue, this.value);
7045  }
7046}
7047ImageOpacityModifier.identity = Symbol('imageOpacity');
7048class ImageTransitionModifier extends ModifierWithKey {
7049  constructor(value) {
7050    super(value);
7051  }
7052  applyPeer(node, reset) {
7053    if (reset) {
7054      getUINativeModule().image.resetImageTransition(node);
7055    } else {
7056      getUINativeModule().image.setImageTransition(node, this.value);
7057    }
7058  }
7059}
7060ImageTransitionModifier.identity = Symbol('imageTransition');
7061class ImagePointLightModifier extends ModifierWithKey {
7062  constructor(value) {
7063    super(value);
7064  }
7065  applyPeer(node, reset) {
7066    if (reset) {
7067      getUINativeModule().common.resetPointLightStyle(node);
7068    } else {
7069      let positionX;
7070      let positionY;
7071      let positionZ;
7072      let intensity;
7073      let color;
7074      let illuminated;
7075      let bloom;
7076      if (!isUndefined(this.value.lightSource) && this.value.lightSource != null) {
7077        positionX = this.value.lightSource.positionX;
7078        positionY = this.value.lightSource.positionY;
7079        positionZ = this.value.lightSource.positionZ;
7080        intensity = this.value.lightSource.intensity;
7081        color = this.value.lightSource.color;
7082      }
7083      illuminated = this.value.illuminated;
7084      bloom = this.value.bloom;
7085      getUINativeModule().common.setPointLightStyle(node, positionX, positionY, positionZ, intensity, color,
7086        illuminated, bloom);
7087    }
7088  }
7089  checkObjectDiff() {
7090    return !isBaseOrResourceEqual(this.stageValue.lightSource?.positionX, this.value.lightSource?.positionX) ||
7091    !isBaseOrResourceEqual(this.stageValue.lightSource?.positionY, this.value.lightSource?.positionY) ||
7092    !isBaseOrResourceEqual(this.stageValue.lightSource?.positionZ, this.value.lightSource?.positionZ) ||
7093    !isBaseOrResourceEqual(this.stageValue.lightSource?.intensity, this.value.lightSource?.intensity) ||
7094    !isBaseOrResourceEqual(this.stageValue.lightSource?.color, this.value.lightSource?.color) ||
7095    !isBaseOrResourceEqual(this.stageValue.illuminated, this.value.illuminated) ||
7096    !isBaseOrResourceEqual(this.stageValue.bloom, this.value.bloom);
7097  }
7098}
7099ImagePointLightModifier.identity = Symbol('imagePointLight');
7100class ImageeResizableModifier extends ModifierWithKey {
7101  constructor(value) {
7102    super(value);
7103  }
7104  applyPeer(node, reset) {
7105    if (reset) {
7106      getUINativeModule().image.resetResizable(node);
7107    } else {
7108      if (!isUndefined(this.value.lattice)) {
7109        getUINativeModule().image.setResizableLattice(node, this.value.lattice);
7110      }
7111      let sliceTop;
7112      let sliceRight;
7113      let sliceBottom;
7114      let sliceLeft;
7115      if (!isUndefined(this.value.slice)) {
7116        let tmpSlice = this.value.slice;
7117        sliceTop = tmpSlice.top;
7118        sliceRight = tmpSlice.right;
7119        sliceBottom = tmpSlice.bottom;
7120        sliceLeft = tmpSlice.left;
7121      }
7122      getUINativeModule().image.setResizable(node, sliceTop, sliceRight, sliceBottom, sliceLeft);
7123    }
7124  }
7125}
7126ImageeResizableModifier.identity = Symbol('resizable');
7127class ImageSrcModifier extends ModifierWithKey {
7128  constructor(value) {
7129    super(value);
7130  }
7131  applyPeer(node, reset) {
7132    if (reset) {
7133      getUINativeModule().image.setImageShowSrc(node, '');
7134    }
7135    else {
7136      getUINativeModule().image.setImageShowSrc(node, this.value);
7137    }
7138  }
7139}
7140ImageSrcModifier.identity = Symbol('imageShowSrc');
7141class ImageDynamicRangeModeModifier extends ModifierWithKey {
7142  constructor(value) {
7143    super(value);
7144  }
7145  applyPeer(node, reset) {
7146    if (reset) {
7147      getUINativeModule().image.resetDynamicRangeMode(node);
7148    }
7149    else {
7150      getUINativeModule().image.setDynamicRangeMode(node, this.value);
7151    }
7152  }
7153  checkObjectDiff() {
7154    return this.stageValue !== this.value;
7155  }
7156}
7157ImageDynamicRangeModeModifier.identity = Symbol('dynamicRangeMode');
7158class ImageRotateOrientationModifier extends ModifierWithKey {
7159  constructor(value) {
7160    super(value);
7161  }
7162  applyPeer(node, reset) {
7163    if (reset) {
7164      getUINativeModule().image.resetOrientation(node);
7165    } else {
7166      getUINativeModule().image.setOrientation(node, this.value);
7167    }
7168  }
7169}
7170ImageRotateOrientationModifier.identity = Symbol('imageOrientaion');
7171class ImageEnhancedImageQualityModifier extends ModifierWithKey {
7172  constructor(value) {
7173    super(value);
7174  }
7175  applyPeer(node, reset) {
7176    if (reset) {
7177      getUINativeModule().image.resetEnhancedImageQuality(node);
7178    }
7179    else {
7180      getUINativeModule().image.setEnhancedImageQuality(node, this.value);
7181    }
7182  }
7183  checkObjectDiff() {
7184    return this.stageValue !== this.value;
7185  }
7186}
7187ImageObjectFitModifier.identity = Symbol('enhancedImageQuality');
7188
7189class ImageEnableAnalyzerModifier extends ModifierWithKey {
7190  constructor(value) {
7191    super(value);
7192  }
7193  applyPeer(node, reset) {
7194    if (reset) {
7195      getUINativeModule().image.enableAnalyzer(node, '');
7196    } else {
7197      getUINativeModule().image.enableAnalyzer(node, this.value);
7198    }
7199  }
7200}
7201ImageEnableAnalyzerModifier.identity = Symbol('enableAnalyzer');
7202
7203class ImageAnalyzerConfigModifier extends ModifierWithKey {
7204  constructor(value) {
7205    super(value);
7206  }
7207  applyPeer(node, reset) {
7208    if (reset) {
7209      getUINativeModule().image.analyzerConfig(node, '');
7210    }
7211    else {
7212      getUINativeModule().image.analyzerConfig(node, this.value);
7213    }
7214  }
7215}
7216ImageAnalyzerConfigModifier.identity = Symbol('analyzerConfig');
7217
7218class ImagePrivacySensitiveModifier extends ModifierWithKey {
7219  constructor(value) {
7220    super(value);
7221  }
7222  applyPeer(node, reset) {
7223    if (reset) {
7224      getUINativeModule().image.resetPrivacySensitive(node);
7225    }
7226    else {
7227      getUINativeModule().image.setPrivacySensitive(node, this.value);
7228    }
7229  }
7230  checkObjectDiff() {
7231    return !isBaseOrResourceEqual(this.stageValue, this.value);
7232  }
7233}
7234ImagePrivacySensitiveModifier.identity = Symbol('imagePrivacySensitive');
7235
7236class ImageOnCompleteModifier extends ModifierWithKey {
7237  constructor(value) {
7238    super(value);
7239  }
7240  applyPeer(node, reset) {
7241    if (reset) {
7242      getUINativeModule().image.resetOnComplete(node);
7243    } else {
7244      getUINativeModule().image.setOnComplete(node, this.value);
7245    }
7246  }
7247}
7248ImageOnCompleteModifier.identity = Symbol('imageOnComplete');
7249
7250class ImageOnErrorModifier extends ModifierWithKey {
7251  constructor(value) {
7252    super(value);
7253  }
7254  applyPeer(node, reset) {
7255    if (reset) {
7256      getUINativeModule().image.resetOnError(node);
7257    }
7258    else {
7259      getUINativeModule().image.setOnError(node, this.value);
7260    }
7261  }
7262}
7263ImageOnErrorModifier.identity = Symbol('imageOnError');
7264
7265class ImageOnFinishModifier extends ModifierWithKey {
7266  constructor(value) {
7267    super(value);
7268  }
7269  applyPeer(node, reset) {
7270    if (reset) {
7271      getUINativeModule().image.resetOnFinish(node);
7272    } else {
7273      getUINativeModule().image.setOnFinish(node, this.value);
7274    }
7275  }
7276}
7277ImageOnFinishModifier.identity = Symbol('imageOnFinish');
7278
7279class ArkImageComponent extends ArkComponent {
7280  constructor(nativePtr, classType) {
7281    super(nativePtr, classType);
7282  }
7283  initialize(value) {
7284    modifierWithKey(this._modifiersWithKeys, ImageSrcModifier.identity, ImageSrcModifier, value[0]);
7285    return this;
7286  }
7287  allowChildCount() {
7288    return 0;
7289  }
7290  draggable(value) {
7291    modifierWithKey(this._modifiersWithKeys, ImageDraggableModifier.identity, ImageDraggableModifier, value);
7292    return this;
7293  }
7294  edgeAntialiasing(value) {
7295    modifierWithKey(this._modifiersWithKeys, ImageeEdgeAntialiasingModifier.identity, ImageeEdgeAntialiasingModifier, value);
7296    return this;
7297  }
7298  resizable(value) {
7299    modifierWithKey(this._modifiersWithKeys, ImageeResizableModifier.identity, ImageeResizableModifier, value);
7300    return this;
7301  }
7302  alt(value) {
7303    modifierWithKey(this._modifiersWithKeys, ImageAltModifier.identity, ImageAltModifier, value);
7304    return this;
7305  }
7306  matchTextDirection(value) {
7307    modifierWithKey(this._modifiersWithKeys, ImageMatchTextDirectionModifier.identity, ImageMatchTextDirectionModifier, value);
7308    return this;
7309  }
7310  fitOriginalSize(value) {
7311    modifierWithKey(this._modifiersWithKeys, ImageFitOriginalSizeModifier.identity, ImageFitOriginalSizeModifier, value);
7312    return this;
7313  }
7314  fillColor(value) {
7315    modifierWithKey(this._modifiersWithKeys, ImageFillColorModifier.identity, ImageFillColorModifier, value);
7316    return this;
7317  }
7318  objectFit(value) {
7319    modifierWithKey(this._modifiersWithKeys, ImageObjectFitModifier.identity, ImageObjectFitModifier, value);
7320    return this;
7321  }
7322  objectRepeat(value) {
7323    modifierWithKey(this._modifiersWithKeys, ImageObjectRepeatModifier.identity, ImageObjectRepeatModifier, value);
7324    return this;
7325  }
7326  autoResize(value) {
7327    modifierWithKey(this._modifiersWithKeys, ImageAutoResizeModifier.identity, ImageAutoResizeModifier, value);
7328    return this;
7329  }
7330  renderMode(value) {
7331    modifierWithKey(this._modifiersWithKeys, ImageRenderModeModifier.identity, ImageRenderModeModifier, value);
7332    return this;
7333  }
7334  orientation(value) {
7335    modifierWithKey(this._modifiersWithKeys, ImageRotateOrientationModifier.identity, ImageRotateOrientationModifier, value);
7336    return this;
7337  }
7338  interpolation(value) {
7339    modifierWithKey(this._modifiersWithKeys, ImageInterpolationModifier.identity, ImageInterpolationModifier, value);
7340    return this;
7341  }
7342  pointLight(value) {
7343    modifierWithKey(this._modifiersWithKeys, ImagePointLightModifier.identity, ImagePointLightModifier, value);
7344    return this;
7345  }
7346  sourceSize(value) {
7347    modifierWithKey(this._modifiersWithKeys, ImageSourceSizeModifier.identity, ImageSourceSizeModifier, value);
7348    return this;
7349  }
7350  syncLoad(value) {
7351    modifierWithKey(this._modifiersWithKeys, ImageSyncLoadModifier.identity, ImageSyncLoadModifier, value);
7352    return this;
7353  }
7354  colorFilter(value) {
7355    modifierWithKey(this._modifiersWithKeys, ImageColorFilterModifier.identity, ImageColorFilterModifier, value);
7356    return this;
7357  }
7358  copyOption(value) {
7359    modifierWithKey(this._modifiersWithKeys, ImageCopyOptionModifier.identity, ImageCopyOptionModifier, value);
7360    return this;
7361  }
7362  borderRadius(value) {
7363    modifierWithKey(this._modifiersWithKeys, ImageBorderRadiusModifier.identity, ImageBorderRadiusModifier, value);
7364    return this;
7365  }
7366  onComplete(callback) {
7367    modifierWithKey(this._modifiersWithKeys, ImageOnCompleteModifier.identity, ImageOnCompleteModifier, callback);
7368    return this;
7369  }
7370  onError(callback) {
7371    modifierWithKey(this._modifiersWithKeys, ImageOnErrorModifier.identity, ImageOnErrorModifier, callback);
7372    return this;
7373  }
7374  onFinish(event) {
7375    modifierWithKey(this._modifiersWithKeys, ImageOnFinishModifier.identity, ImageOnFinishModifier, event);
7376    return this;
7377  }
7378  border(value) {
7379    modifierWithKey(this._modifiersWithKeys, ImageBorderModifier.identity, ImageBorderModifier, value);
7380    return this;
7381  }
7382  opacity(value) {
7383    modifierWithKey(this._modifiersWithKeys, ImageOpacityModifier.identity, ImageOpacityModifier, value);
7384    return this;
7385  }
7386  transition(value) {
7387    modifierWithKey(this._modifiersWithKeys, ImageTransitionModifier.identity, ImageTransitionModifier, value);
7388    return this;
7389  }
7390  dynamicRangeMode(value) {
7391    modifierWithKey(
7392      this._modifiersWithKeys, ImageDynamicRangeModeModifier.identity, ImageDynamicRangeModeModifier, value);
7393    return this;
7394  }
7395  enhancedImageQuality(value) {
7396    modifierWithKey(
7397      this._modifiersWithKeys, ImageEnhancedImageQualityModifier.identity, ImageEnhancedImageQualityModifier, value);
7398    return this;
7399  }
7400  enableAnalyzer(value) {
7401    modifierWithKey(
7402      this._modifiersWithKeys, ImageEnableAnalyzerModifier.identity, ImageEnableAnalyzerModifier, value);
7403    return this;
7404  }
7405  privacySensitive(value) {
7406    modifierWithKey(
7407      this._modifiersWithKeys, ImagePrivacySensitiveModifier.identity, ImagePrivacySensitiveModifier, value);
7408    return this;
7409  }
7410  analyzerConfig(value) {
7411    modifierWithKey(
7412      this._modifiersWithKeys, ImageAnalyzerConfigModifier.identity, ImageAnalyzerConfigModifier, value);
7413    return this;
7414  }
7415}
7416// @ts-ignore
7417if (globalThis.Image !== undefined) {
7418  globalThis.Image.attributeModifier = function (modifier) {
7419    attributeModifierFunc.call(this, modifier, (nativePtr) => {
7420      return new ArkImageComponent(nativePtr);
7421    }, (nativePtr, classType, modifierJS) => {
7422      return new modifierJS.ImageModifier(nativePtr, classType);
7423    });
7424  };
7425}
7426
7427/// <reference path='./import.ts' />
7428class ImageAnimatorImagesModifier extends ModifierWithKey {
7429  constructor(value) {
7430    super(value);
7431  }
7432  applyPeer(node, reset) {
7433    if (reset) {
7434      getUINativeModule().imageAnimator.resetImages(node);
7435    }
7436    else {
7437      let arkImageFrame = this.convertImageFrames(this.value);
7438      if (!arkImageFrame) {
7439        getUINativeModule().imageAnimator.resetImages(node);
7440      }
7441      else {
7442        getUINativeModule().imageAnimator.setImages(node, arkImageFrame.arrSrc,
7443          arkImageFrame.arrWidth, arkImageFrame.arrHeight, arkImageFrame.arrTop,
7444          arkImageFrame.arrLeft, arkImageFrame.arrDuration, arkImageFrame.arrSrc.length);
7445      }
7446    }
7447  }
7448  checkObjectDiff() {
7449    let checkDiff = true;
7450    if (this.value && this.value.length > 0 &&
7451      this.stageValue && this.stageValue.length > 0 &&
7452      this.value.length === this.stageValue.length) {
7453      let checkItemEqual = false;
7454      for (let i = 0; i < this.value.length; i++) {
7455        checkItemEqual = this.isEqual(this.stageValue[i], this.value[i]);
7456        if (!checkItemEqual) {
7457          checkDiff = !checkItemEqual;
7458          break;
7459        }
7460      }
7461    }
7462    return checkDiff;
7463  }
7464  isEqual(one, another) {
7465    if (!(one.width === another.width &&
7466      one.height === another.height &&
7467      one.top === another.top &&
7468      one.left === another.left &&
7469      one.duration === another.duration)) {
7470      return true;
7471    }
7472    else {
7473      return !isBaseOrResourceEqual(one.src, another.src);
7474    }
7475  }
7476  convertImageFrames(value) {
7477    if (value && value.length > 0) {
7478      let isFlag = true;
7479      for (let item of value) {
7480        if (item.src === undefined || item.src === null) {
7481          isFlag = false;
7482          break;
7483        }
7484      }
7485      if (isFlag) {
7486        let array = new ArkImageFrameInfoToArray();
7487        for (let item of value) {
7488          array.arrSrc.push(item.src);
7489          array.arrWidth.push((item.width === undefined || item.width === null) ? 0 : item.width);
7490          array.arrHeight.push((item.height === undefined || item.height === null) ? 0 : item.height);
7491          array.arrTop.push((item.top === undefined || item.top === null) ? 0 : item.top);
7492          array.arrLeft.push((item.left === undefined || item.left === null) ? 0 : item.left);
7493          array.arrDuration.push((item.duration === undefined || item.duration === null) ? 0 : item.duration);
7494        }
7495        return array;
7496      }
7497      else {
7498        return undefined;
7499      }
7500    }
7501    else {
7502      return undefined;
7503    }
7504  }
7505}
7506ImageAnimatorImagesModifier.identity = Symbol('imageAnimatorImages');
7507class ImageAnimatorDurationModifier extends ModifierWithKey {
7508  constructor(value) {
7509    super(value);
7510  }
7511  applyPeer(node, reset) {
7512    if (reset) {
7513      getUINativeModule().imageAnimator.resetDuration(node);
7514    }
7515    else {
7516      getUINativeModule().imageAnimator.setDuration(node, this.value);
7517    }
7518  }
7519  checkObjectDiff() {
7520    return this.stageValue !== this.value;
7521  }
7522}
7523ImageAnimatorDurationModifier.identity = Symbol('imageAnimatorDuration');
7524class ImageAnimatorReverseModifier extends ModifierWithKey {
7525  constructor(value) {
7526    super(value);
7527  }
7528  applyPeer(node, reset) {
7529    if (reset) {
7530      getUINativeModule().imageAnimator.resetReverse(node);
7531    }
7532    else {
7533      getUINativeModule().imageAnimator.setReverse(node, this.value);
7534    }
7535  }
7536  checkObjectDiff() {
7537    return this.stageValue !== this.value;
7538  }
7539}
7540ImageAnimatorReverseModifier.identity = Symbol('imageAnimatorReverse');
7541class ImageAnimatorStateModifier extends ModifierWithKey {
7542  constructor(value) {
7543    super(value);
7544  }
7545  applyPeer(node, reset) {
7546    if (reset) {
7547      getUINativeModule().imageAnimator.resetState(node);
7548    }
7549    else {
7550      getUINativeModule().imageAnimator.setState(node, this.value);
7551    }
7552  }
7553  checkObjectDiff() {
7554    return this.stageValue !== this.value;
7555  }
7556}
7557ImageAnimatorStateModifier.identity = Symbol('imageAnimatorState');
7558class ImageAnimatorFixedSizeModifier extends ModifierWithKey {
7559  constructor(value) {
7560    super(value);
7561  }
7562  applyPeer(node, reset) {
7563    if (reset) {
7564      getUINativeModule().imageAnimator.resetFixedSize(node);
7565    }
7566    else {
7567      getUINativeModule().imageAnimator.setFixedSize(node, this.value);
7568    }
7569  }
7570  checkObjectDiff() {
7571    return this.stageValue !== this.value;
7572  }
7573}
7574ImageAnimatorFixedSizeModifier.identity = Symbol('imageAnimatorFixedSize');
7575class ImageAnimatorFillModeModifier extends ModifierWithKey {
7576  constructor(value) {
7577    super(value);
7578  }
7579  applyPeer(node, reset) {
7580    if (reset) {
7581      getUINativeModule().imageAnimator.resetFillMode(node);
7582    }
7583    else {
7584      getUINativeModule().imageAnimator.setFillMode(node, this.value);
7585    }
7586  }
7587  checkObjectDiff() {
7588    return this.stageValue !== this.value;
7589  }
7590}
7591ImageAnimatorFillModeModifier.identity = Symbol('imageAnimatorFillMode');
7592class ImageAnimatorIterationsModeModifier extends ModifierWithKey {
7593  constructor(value) {
7594    super(value);
7595  }
7596  applyPeer(node, reset) {
7597    if (reset) {
7598      getUINativeModule().imageAnimator.resetIterations(node);
7599    }
7600    else {
7601      getUINativeModule().imageAnimator.setIterations(node, this.value);
7602    }
7603  }
7604  checkObjectDiff() {
7605    return this.stageValue !== this.value;
7606  }
7607}
7608ImageAnimatorIterationsModeModifier.identity = Symbol('imageAnimatorIterationsMode');
7609class ArkImageAnimatorComponent extends ArkComponent {
7610  constructor(nativePtr, classType) {
7611    super(nativePtr, classType);
7612  }
7613  images(value) {
7614    modifierWithKey(this._modifiersWithKeys, ImageAnimatorImagesModifier.identity, ImageAnimatorImagesModifier, value);
7615    return this;
7616  }
7617  state(value) {
7618    modifierWithKey(this._modifiersWithKeys, ImageAnimatorStateModifier.identity, ImageAnimatorStateModifier, value);
7619    return this;
7620  }
7621  duration(value) {
7622    modifierWithKey(this._modifiersWithKeys, ImageAnimatorDurationModifier.identity, ImageAnimatorDurationModifier, value);
7623    return this;
7624  }
7625  reverse(value) {
7626    modifierWithKey(this._modifiersWithKeys, ImageAnimatorReverseModifier.identity, ImageAnimatorReverseModifier, value);
7627    return this;
7628  }
7629  fixedSize(value) {
7630    modifierWithKey(this._modifiersWithKeys, ImageAnimatorFixedSizeModifier.identity, ImageAnimatorFixedSizeModifier, value);
7631    return this;
7632  }
7633  preDecode(value) {
7634    throw new Error('Method not implemented.');
7635  }
7636  fillMode(value) {
7637    modifierWithKey(this._modifiersWithKeys, ImageAnimatorFillModeModifier.identity, ImageAnimatorFillModeModifier, value);
7638    return this;
7639  }
7640  iterations(value) {
7641    modifierWithKey(this._modifiersWithKeys, ImageAnimatorIterationsModeModifier.identity, ImageAnimatorIterationsModeModifier, value);
7642    return this;
7643  }
7644  onStart(event) {
7645    throw new Error('Method not implemented.');
7646  }
7647  onPause(event) {
7648    throw new Error('Method not implemented.');
7649  }
7650  onRepeat(event) {
7651    throw new Error('Method not implemented.');
7652  }
7653  onCancel(event) {
7654    throw new Error('Method not implemented.');
7655  }
7656  onFinish(event) {
7657    throw new Error('Method not implemented.');
7658  }
7659}
7660// @ts-ignore
7661if (globalThis.ImageAnimator !== undefined) {
7662  globalThis.ImageAnimator.attributeModifier = function (modifier) {
7663    attributeModifierFunc.call(this, modifier, (nativePtr) => {
7664      return new ArkImageAnimatorComponent(nativePtr);
7665    }, (nativePtr, classType, modifierJS) => {
7666      return new modifierJS.ImageAnimatorModifier(nativePtr, classType);
7667    });
7668  };
7669}
7670
7671/// <reference path='./import.ts' />
7672class ImageSpanObjectFitModifier extends ModifierWithKey {
7673  constructor(value) {
7674    super(value);
7675  }
7676  applyPeer(node, reset) {
7677    if (reset) {
7678      getUINativeModule().imageSpan.resetObjectFit(node);
7679    }
7680    else {
7681      getUINativeModule().imageSpan.setObjectFit(node, this.value);
7682    }
7683  }
7684  checkObjectDiff() {
7685    return this.stageValue !== this.value;
7686  }
7687}
7688ImageSpanObjectFitModifier.identity = Symbol('imageSpanObjectFit');
7689class ImageSpanVerticalAlignModifier extends ModifierWithKey {
7690  constructor(value) {
7691    super(value);
7692  }
7693  applyPeer(node, reset) {
7694    if (reset) {
7695      getUINativeModule().imageSpan.resetVerticalAlign(node);
7696    }
7697    else {
7698      getUINativeModule().imageSpan.setVerticalAlign(node, this.value);
7699    }
7700  }
7701  checkObjectDiff() {
7702    return this.stageValue !== this.value;
7703  }
7704}
7705ImageSpanVerticalAlignModifier.identity = Symbol('imageSpanVerticalAlign');
7706class ImageSpanTextBackgroundStyleModifier extends ModifierWithKey {
7707  constructor(value) {
7708    super(value);
7709  }
7710  applyPeer(node, reset) {
7711    if (reset) {
7712      getUINativeModule().imageSpan.resetTextBackgroundStyle(node);
7713    }
7714    else {
7715      let textBackgroundStyle = new ArkTextBackGroundStyle();
7716      if (!textBackgroundStyle.convertTextBackGroundStyleOptions(this.value)) {
7717        getUINativeModule().imageSpan.resetTextBackgroundStyle(node);
7718      }
7719      else {
7720        getUINativeModule().imageSpan.setTextBackgroundStyle(node, textBackgroundStyle.color, textBackgroundStyle.radius.topLeft, textBackgroundStyle.radius.topRight, textBackgroundStyle.radius.bottomLeft, textBackgroundStyle.radius.bottomRight);
7721      }
7722    }
7723  }
7724  checkObjectDiff() {
7725    let textBackgroundStyle = new ArkTextBackGroundStyle();
7726    let stageTextBackGroundStyle = new ArkTextBackGroundStyle();
7727    if (!textBackgroundStyle.convertTextBackGroundStyleOptions(this.value) || !stageTextBackGroundStyle.convertTextBackGroundStyleOptions(this.stageValue)) {
7728      return false;
7729    }
7730    else {
7731      return textBackgroundStyle.checkObjectDiff(stageTextBackGroundStyle);
7732    }
7733  }
7734}
7735ImageSpanTextBackgroundStyleModifier.identity = Symbol('imageSpanTextBackgroundStyle');
7736class ImageSpanBaselineOffsetModifier extends ModifierWithKey {
7737  constructor(value) {
7738    super(value);
7739  }
7740  applyPeer(node, reset) {
7741    if (reset) {
7742      getUINativeModule().imageSpan.resetBaselineOffset(node);
7743    }
7744    else {
7745      getUINativeModule().imageSpan.setBaselineOffset(node, this.value);
7746    }
7747  }
7748}
7749ImageSpanBaselineOffsetModifier.identity = Symbol('imagespanBaselineOffset');
7750class ImageSpanAltModifier extends ModifierWithKey {
7751  constructor(value) {
7752    super(value);
7753  }
7754  applyPeer(node, reset) {
7755    if (reset) {
7756      getUINativeModule().imageSpan.resetAlt(node);
7757    }
7758    else {
7759      getUINativeModule().imageSpan.setAlt(node, this.value);
7760    }
7761  }
7762}
7763ImageSpanAltModifier.identity = Symbol('imagespanAlt');
7764class ImageSpanOnCompleteModifier extends ModifierWithKey {
7765  constructor(value) {
7766    super(value);
7767  }
7768  applyPeer(node, reset) {
7769    if (reset) {
7770      getUINativeModule().imageSpan.resetOnComplete(node);
7771    }
7772    else {
7773      getUINativeModule().imageSpan.setOnComplete(node, this.value);
7774    }
7775  }
7776}
7777ImageSpanOnCompleteModifier.identity = Symbol('imageSpanOnComplete');
7778class ImageSpanOnErrorModifier extends ModifierWithKey {
7779  constructor(value) {
7780    super(value);
7781  }
7782  applyPeer(node, reset) {
7783    if (reset) {
7784      getUINativeModule().imageSpan.resetOnError(node);
7785    }
7786    else {
7787      getUINativeModule().imageSpan.setOnError(node, this.value);
7788    }
7789  }
7790}
7791ImageSpanOnErrorModifier.identity = Symbol('imageSpanOnError');
7792
7793class ImageSpanBorderRadiusModifier extends ModifierWithKey {
7794  constructor(value) {
7795    super(value);
7796  }
7797  applyPeer(node, reset) {
7798    if (reset) {
7799      getUINativeModule().imageSpan.resetBorderRadius(node);
7800    } else {
7801      if (isNumber(this.value) || isString(this.value) || isResource(this.value)) {
7802        getUINativeModule().imageSpan.setBorderRadius(node, this.value, this.value, this.value, this.value);
7803      } else {
7804        getUINativeModule().imageSpan.setBorderRadius(node, this.value.topLeft, this.value.topRight,
7805          this.value.bottomLeft, this.value.bottomRight);
7806      }
7807    }
7808  }
7809  checkObjectDiff() {
7810    if (isResource(this.stageValue) && isResource(this.value)) {
7811      return !isResourceEqual(this.stageValue, this.value);
7812    } else if (!isResource(this.stageValue) && !isResource(this.value)) {
7813      return !(this.stageValue.topLeft === this.value.topLeft &&
7814        this.stageValue.topRight === this.value.topRight &&
7815        this.stageValue.bottomLeft === this.value.bottomLeft &&
7816        this.stageValue.bottomRight === this.value.bottomRight);
7817    } else {
7818      return true;
7819    }
7820  }
7821}
7822ImageSpanBorderRadiusModifier.identity = Symbol('imageSpanBorderRadius');
7823
7824class ImageSpanColorFilterModifier extends ModifierWithKey {
7825  constructor(value) {
7826    super(value);
7827  }
7828  applyPeer(node, reset) {
7829    if (reset) {
7830      getUINativeModule().imageSpan.resetColorFilter(node);
7831    } else {
7832      getUINativeModule().imageSpan.setColorFilter(node, this.value);
7833    }
7834  }
7835  checkObjectDiff() {
7836    return true;
7837  }
7838}
7839
7840ImageSpanColorFilterModifier.identity = Symbol('ImageSpanColorFilter');
7841
7842class ArkImageSpanComponent extends ArkComponent {
7843  constructor(nativePtr, classType) {
7844    super(nativePtr, classType);
7845  }
7846  objectFit(value) {
7847    modifierWithKey(this._modifiersWithKeys, ImageSpanObjectFitModifier.identity, ImageSpanObjectFitModifier, value);
7848    return this;
7849  }
7850  verticalAlign(value) {
7851    modifierWithKey(this._modifiersWithKeys, ImageSpanVerticalAlignModifier.identity, ImageSpanVerticalAlignModifier, value);
7852    return this;
7853  }
7854  textBackgroundStyle(value) {
7855    modifierWithKey(this._modifiersWithKeys, ImageSpanTextBackgroundStyleModifier.identity, ImageSpanTextBackgroundStyleModifier, value);
7856    return this;
7857  }
7858  baselineOffset(value) {
7859    modifierWithKey(this._modifiersWithKeys, ImageSpanBaselineOffsetModifier.identity, ImageSpanBaselineOffsetModifier, value);
7860    return this;
7861  }
7862  alt(value) {
7863    modifierWithKey(this._modifiersWithKeys, ImageSpanAltModifier.identity, ImageSpanAltModifier, value);
7864    return this;
7865  }
7866  onComplete(callback) {
7867    modifierWithKey(this._modifiersWithKeys, ImageSpanOnCompleteModifier.identity, ImageSpanOnCompleteModifier, callback);
7868    return this;
7869  }
7870  onError(callback) {
7871    modifierWithKey(this._modifiersWithKeys, ImageSpanOnErrorModifier.identity, ImageSpanOnErrorModifier, callback);
7872    return this;
7873  }
7874  borderRadius(value) {
7875    modifierWithKey(
7876      this._modifiersWithKeys, ImageSpanBorderRadiusModifier.identity, ImageSpanBorderRadiusModifier, value);
7877    return this;
7878  }
7879  colorFilter(value) {
7880    modifierWithKey(this._modifiersWithKeys, ImageSpanColorFilterModifier.identity, ImageSpanColorFilterModifier, value);
7881    return this;
7882  }
7883}
7884// @ts-ignore
7885if (globalThis.ImageSpan !== undefined) {
7886  globalThis.ImageSpan.attributeModifier = function (modifier) {
7887    attributeModifierFunc.call(this, modifier, (nativePtr) => {
7888      return new ArkImageSpanComponent(nativePtr);
7889    }, (nativePtr, classType, modifierJS) => {
7890      return new modifierJS.ImageSpanModifier(nativePtr, classType);
7891    });
7892  };
7893}
7894
7895/// <reference path='./import.ts' />
7896class PatternLockActiveColorModifier extends ModifierWithKey {
7897  constructor(value) {
7898    super(value);
7899  }
7900  applyPeer(node, reset) {
7901    if (reset) {
7902      getUINativeModule().patternLock.resetActiveColor(node);
7903    }
7904    else {
7905      getUINativeModule().patternLock.setActiveColor(node, this.value);
7906    }
7907  }
7908  checkObjectDiff() {
7909    return !isBaseOrResourceEqual(this.stageValue, this.value);
7910  }
7911}
7912PatternLockActiveColorModifier.identity = Symbol('patternLockActiveColor');
7913class PatternLockSelectedColorModifier extends ModifierWithKey {
7914  constructor(value) {
7915    super(value);
7916  }
7917  applyPeer(node, reset) {
7918    if (reset) {
7919      getUINativeModule().patternLock.resetSelectedColor(node);
7920    }
7921    else {
7922      getUINativeModule().patternLock.setSelectedColor(node, this.value);
7923    }
7924  }
7925  checkObjectDiff() {
7926    return !isBaseOrResourceEqual(this.stageValue, this.value);
7927  }
7928}
7929PatternLockSelectedColorModifier.identity = Symbol('patternLockSelectedColor');
7930class PatternLockPathColorModifier extends ModifierWithKey {
7931  constructor(value) {
7932    super(value);
7933  }
7934  applyPeer(node, reset) {
7935    if (reset) {
7936      getUINativeModule().patternLock.resetPathColor(node);
7937    }
7938    else {
7939      getUINativeModule().patternLock.setPathColor(node, this.value);
7940    }
7941  }
7942  checkObjectDiff() {
7943    return !isBaseOrResourceEqual(this.stageValue, this.value);
7944  }
7945}
7946PatternLockPathColorModifier.identity = Symbol('patternLockPathColor');
7947class PatternLockRegularColorModifier extends ModifierWithKey {
7948  constructor(value) {
7949    super(value);
7950  }
7951  applyPeer(node, reset) {
7952    if (reset) {
7953      getUINativeModule().patternLock.resetRegularColor(node);
7954    }
7955    else {
7956      getUINativeModule().patternLock.setRegularColor(node, this.value);
7957    }
7958  }
7959  checkObjectDiff() {
7960    return !isBaseOrResourceEqual(this.stageValue, this.value);
7961  }
7962}
7963PatternLockRegularColorModifier.identity = Symbol('patternLockRegularColor');
7964class PatternLockSideLengthModifier extends ModifierWithKey {
7965  constructor(value) {
7966    super(value);
7967  }
7968  applyPeer(node, reset) {
7969    if (reset) {
7970      getUINativeModule().patternLock.resetSideLength(node);
7971    }
7972    else {
7973      getUINativeModule().patternLock.setSideLength(node, this.value);
7974    }
7975  }
7976  checkObjectDiff() {
7977    return !isBaseOrResourceEqual(this.stageValue, this.value);
7978  }
7979}
7980PatternLockSideLengthModifier.identity = Symbol('patternLockSideLength');
7981class PatternLockPathStrokeModifier extends ModifierWithKey {
7982  constructor(value) {
7983    super(value);
7984  }
7985  applyPeer(node, reset) {
7986    if (reset) {
7987      getUINativeModule().patternLock.resetPathStrokeWidth(node);
7988    }
7989    else {
7990      getUINativeModule().patternLock.setPathStrokeWidth(node, this.value);
7991    }
7992  }
7993  checkObjectDiff() {
7994    return this.stageValue !== this.value;
7995  }
7996}
7997PatternLockPathStrokeModifier.identity = Symbol('patternLockPathStroke');
7998class PatternLockCircleRadiusModifier extends ModifierWithKey {
7999  constructor(value) {
8000    super(value);
8001  }
8002  applyPeer(node, reset) {
8003    if (reset) {
8004      getUINativeModule().patternLock.resetCircleRadius(node);
8005    }
8006    else {
8007      getUINativeModule().patternLock.setCircleRadius(node, this.value);
8008    }
8009  }
8010  checkObjectDiff() {
8011    return !isBaseOrResourceEqual(this.stageValue, this.value);
8012  }
8013}
8014PatternLockCircleRadiusModifier.identity = Symbol('patternLockCircleRadius');
8015class PatternLockAutoResetModifier extends ModifierWithKey {
8016  constructor(value) {
8017    super(value);
8018  }
8019  applyPeer(node, reset) {
8020    if (reset) {
8021      getUINativeModule().patternLock.resetAutoReset(node);
8022    }
8023    else {
8024      getUINativeModule().patternLock.setAutoReset(node, this.value);
8025    }
8026  }
8027  checkObjectDiff() {
8028    return this.stageValue !== this.value;
8029  }
8030}
8031PatternLockAutoResetModifier.identity = Symbol('patternlockautoreset');
8032class PatternLockActivateCircleStyleModifier extends ModifierWithKey {
8033  constructor(value) {
8034    super(value);
8035  }
8036  applyPeer(node, reset) {
8037    if (reset) {
8038      getUINativeModule().patternLock.resetActivateCircleStyle(node);
8039    }
8040    else {
8041      getUINativeModule().patternLock.setActivateCircleStyle(node, this.value);
8042    }
8043  }
8044  checkObjectDiff() {
8045    return !isBaseOrResourceEqual(this.stageValue, this.value);
8046  }
8047}
8048PatternLockActivateCircleStyleModifier.identity = Symbol('patternLockActivateCircleStyle');
8049class ArkPatternLockComponent extends ArkComponent {
8050  constructor(nativePtr, classType) {
8051    super(nativePtr, classType);
8052  }
8053  sideLength(value) {
8054    modifierWithKey(this._modifiersWithKeys, PatternLockSideLengthModifier.identity, PatternLockSideLengthModifier, value);
8055    return this;
8056  }
8057  circleRadius(value) {
8058    modifierWithKey(this._modifiersWithKeys, PatternLockCircleRadiusModifier.identity, PatternLockCircleRadiusModifier, value);
8059    return this;
8060  }
8061  regularColor(value) {
8062    modifierWithKey(this._modifiersWithKeys, PatternLockRegularColorModifier.identity, PatternLockRegularColorModifier, value);
8063    return this;
8064  }
8065  selectedColor(value) {
8066    modifierWithKey(this._modifiersWithKeys, PatternLockSelectedColorModifier.identity, PatternLockSelectedColorModifier, value);
8067    return this;
8068  }
8069  activeColor(value) {
8070    modifierWithKey(this._modifiersWithKeys, PatternLockActiveColorModifier.identity, PatternLockActiveColorModifier, value);
8071    return this;
8072  }
8073  pathColor(value) {
8074    modifierWithKey(this._modifiersWithKeys, PatternLockPathColorModifier.identity, PatternLockPathColorModifier, value);
8075    return this;
8076  }
8077  pathStrokeWidth(value) {
8078    modifierWithKey(this._modifiersWithKeys, PatternLockPathStrokeModifier.identity, PatternLockPathStrokeModifier, value);
8079    return this;
8080  }
8081  autoReset(value) {
8082    modifierWithKey(this._modifiersWithKeys, PatternLockAutoResetModifier.identity, PatternLockAutoResetModifier, value);
8083    return this;
8084  }
8085  activateCircleStyle(value) {
8086    modifierWithKey(this._modifiersWithKeys, PatternLockActivateCircleStyleModifier.identity, PatternLockActivateCircleStyleModifier, value);
8087    return this;
8088  }
8089  onPatternComplete(callback) {
8090    throw new Error('Method not implemented.');
8091  }
8092  onDotConnect(callback) {
8093    throw new Error('Method not implemented.');
8094  }
8095}
8096// @ts-ignore
8097if (globalThis.PatternLock !== undefined) {
8098  globalThis.PatternLock.attributeModifier = function (modifier) {
8099    attributeModifierFunc.call(this, modifier, (nativePtr) => {
8100      return new ArkPatternLockComponent(nativePtr);
8101    }, (nativePtr, classType, modifierJS) => {
8102      return new modifierJS.PatternLockModifier(nativePtr, classType);
8103    });
8104  };
8105}
8106
8107/// <reference path='./import.ts' />
8108class RichEditorEnableDataDetectorModifier extends ModifierWithKey {
8109  constructor(value) {
8110    super(value);
8111  }
8112  applyPeer(node, reset) {
8113    if (reset) {
8114      getUINativeModule().richEditor.resetEnableDataDetector(node);
8115    }
8116    else {
8117      getUINativeModule().richEditor.setEnableDataDetector(node, this.value);
8118    }
8119  }
8120  checkObjectDiff() {
8121    return !isBaseOrResourceEqual(this.stageValue, this.value);
8122  }
8123}
8124RichEditorEnableDataDetectorModifier.identity = Symbol('richEditorEnableDataDetector');
8125
8126class RichEditorDataDetectorConfigModifier extends ModifierWithKey {
8127  constructor(value) {
8128    super(value);
8129  }
8130  applyPeer(node, reset) {
8131    if (reset) {
8132      getUINativeModule().richEditor.resetDataDetectorConfig(node);
8133    } else {
8134      getUINativeModule().richEditor.setDataDetectorConfig(node, this.value.types, this.value.onDetectResultUpdate,
8135        this.value.color, this.value.decorationType, this.value.decorationColor, this.value.decorationStyle);
8136    }
8137  }
8138  checkObjectDiff() {
8139    return !isBaseOrResourceEqual(this.stageValue.types, this.value.types) ||
8140    !isBaseOrResourceEqual(this.stageValue.onDetectResultUpdate, this.value.onDetectResultUpdate) ||
8141    !isBaseOrResourceEqual(this.stageValue.color, this.value.color) ||
8142    !isBaseOrResourceEqual(this.stageValue.decorationType, this.value.decorationType) ||
8143    !isBaseOrResourceEqual(this.stageValue.decorationColor, this.value.decorationColor) ||
8144    !isBaseOrResourceEqual(this.stageValue.decorationStyle, this.value.decorationStyle);
8145  }
8146}
8147RichEditorDataDetectorConfigModifier.identity = Symbol('richEditorDataDetectorConfig');
8148
8149class RichEditorOnIMEInputCompleteModifier extends ModifierWithKey {
8150  constructor(value) {
8151    super(value);
8152  }
8153  applyPeer(node, reset) {
8154    if (reset) {
8155      getUINativeModule().richEditor.resetOnIMEInputComplete(node);
8156    } else {
8157      getUINativeModule().richEditor.setOnIMEInputComplete(node, this.value);
8158    }
8159  }
8160}
8161RichEditorOnIMEInputCompleteModifier.identity = Symbol('richEditorOnIMEInputComplete');
8162
8163class RichEditorCopyOptionsModifier extends ModifierWithKey {
8164  constructor(value) {
8165    super(value);
8166  }
8167  applyPeer(node, reset) {
8168    if (reset) {
8169      getUINativeModule().richEditor.resetCopyOptions(node);
8170    }
8171    else {
8172      getUINativeModule().richEditor.setCopyOptions(node, this.value);
8173    }
8174  }
8175  checkObjectDiff() {
8176    return this.stageValue !== this.value;
8177  }
8178}
8179RichEditorCopyOptionsModifier.identity = Symbol('richEditorCopyOptions');
8180
8181class RichEditorCaretColorModifier extends ModifierWithKey {
8182  constructor(value) {
8183    super(value);
8184  }
8185  applyPeer(node, reset) {
8186    if (reset) {
8187      getUINativeModule().richEditor.resetCaretColor(node);
8188    }
8189    else {
8190      getUINativeModule().richEditor.setCaretColor(node, this.value);
8191    }
8192  }
8193  checkObjectDiff() {
8194    return this.stageValue !== this.value;
8195  }
8196}
8197RichEditorCaretColorModifier.identity = Symbol('richEditorCaretColor');
8198
8199class RichEditorOnSelectionChangeModifier extends ModifierWithKey {
8200  constructor(value) {
8201    super(value);
8202  }
8203  applyPeer(node, reset) {
8204    if (reset) {
8205      getUINativeModule().richEditor.resetOnSelectionChange(node);
8206    } else {
8207      getUINativeModule().richEditor.setOnSelectionChange(node, this.value);
8208    }
8209  }
8210}
8211RichEditorOnSelectionChangeModifier.identity = Symbol('richEditorOnSelectionChange');
8212
8213class RichEditorOnSubmitModifier extends ModifierWithKey {
8214  constructor(value) {
8215    super(value);
8216  }
8217  applyPeer(node, reset) {
8218    if (reset) {
8219      getUINativeModule().richEditor.resetOnSubmit(node);
8220    } else {
8221      getUINativeModule().richEditor.setOnSubmit(node, this.value);
8222    }
8223  }
8224}
8225RichEditorOnSubmitModifier.identity = Symbol('richEditorOnSubmit');
8226
8227class RichEditorAboutToIMEInputModifier extends ModifierWithKey {
8228  constructor(value) {
8229    super(value);
8230  }
8231  applyPeer(node, reset) {
8232    if (reset) {
8233      getUINativeModule().richEditor.resetAboutToIMEInput(node);
8234    } else {
8235      getUINativeModule().richEditor.setAboutToIMEInput(node, this.value);
8236    }
8237  }
8238}
8239RichEditorAboutToIMEInputModifier.identity = Symbol('richEditorAboutToIMEInput');
8240
8241class RichEditorSelectedBackgroundColorModifier extends ModifierWithKey {
8242  constructor(value) {
8243    super(value);
8244  }
8245  applyPeer(node, reset) {
8246    if (reset) {
8247      getUINativeModule().richEditor.resetSelectedBackgroundColor(node);
8248    }
8249    else {
8250      getUINativeModule().richEditor.setSelectedBackgroundColor(node, this.value);
8251    }
8252  }
8253  checkObjectDiff() {
8254    return this.stageValue !== this.value;
8255  }
8256}
8257RichEditorSelectedBackgroundColorModifier.identity = Symbol('richEditorSelectedBackgroundColor');
8258
8259class RichEditorOnSelectModifier extends ModifierWithKey {
8260  constructor(value) {
8261    super(value);
8262  }
8263  applyPeer(node, reset) {
8264    if (reset) {
8265      getUINativeModule().richEditor.resetOnSelect(node);
8266    } else {
8267      getUINativeModule().richEditor.setOnSelect(node, this.value);
8268    }
8269  }
8270}
8271RichEditorOnSelectModifier.identity = Symbol('richEditorOnSelect');
8272
8273class RichEditorOnReadyModifier extends ModifierWithKey {
8274  constructor(value) {
8275    super(value);
8276  }
8277  applyPeer(node, reset) {
8278    if (reset) {
8279      getUINativeModule().richEditor.resetOnReady(node);
8280    } else {
8281      getUINativeModule().richEditor.setOnReady(node, this.value);
8282    }
8283  }
8284}
8285RichEditorOnReadyModifier.identity = Symbol('richEditorOnReady');
8286
8287class RichEditorOnDeleteCompleteModifier extends ModifierWithKey {
8288  constructor(value) {
8289    super(value);
8290  }
8291  applyPeer(node, reset) {
8292    if (reset) {
8293      getUINativeModule().richEditor.resetOnDeleteComplete(node);
8294    } else {
8295      getUINativeModule().richEditor.setOnDeleteComplete(node, this.value);
8296    }
8297  }
8298}
8299RichEditorOnDeleteCompleteModifier.identity = Symbol('richEditorOnDeleteComplete');
8300
8301class RichEditorOnEditingChangeModifier extends ModifierWithKey {
8302  constructor(value) {
8303    super(value);
8304  }
8305  applyPeer(node, reset) {
8306    if (reset) {
8307      getUINativeModule().richEditor.resetOnEditingChange(node);
8308    } else {
8309      getUINativeModule().richEditor.setOnEditingChange(node, this.value);
8310    }
8311  }
8312}
8313RichEditorOnEditingChangeModifier.identity = Symbol('richEditorOnEditingChange');
8314
8315class RichEditorOnPasteModifier extends ModifierWithKey {
8316  constructor(value) {
8317    super(value);
8318  }
8319  applyPeer(node, reset) {
8320    if (reset) {
8321      getUINativeModule().richEditor.resetOnPaste(node);
8322    } else {
8323      getUINativeModule().richEditor.setOnPaste(node, this.value);
8324    }
8325  }
8326}
8327RichEditorOnPasteModifier.identity = Symbol('richEditorOnPaste');
8328
8329class RichEditorOnCutModifier extends ModifierWithKey {
8330  constructor(value) {
8331    super(value);
8332  }
8333  applyPeer(node, reset) {
8334    if (reset) {
8335      getUINativeModule().richEditor.resetOnCut(node);
8336    } else {
8337      getUINativeModule().richEditor.setOnCut(node, this.value);
8338    }
8339  }
8340}
8341RichEditorOnCutModifier.identity = Symbol('richEditorOnCut');
8342
8343class RichEditorOnCopyModifier extends ModifierWithKey {
8344  constructor(value) {
8345    super(value);
8346  }
8347  applyPeer(node, reset) {
8348    if (reset) {
8349      getUINativeModule().richEditor.resetOnCopy(node);
8350    } else {
8351      getUINativeModule().richEditor.setOnCopy(node, this.value);
8352    }
8353  }
8354}
8355RichEditorOnCopyModifier.identity = Symbol('richEditorOnCopy');
8356
8357class RichEditorEnterKeyTypeModifier extends ModifierWithKey {
8358  constructor(value) {
8359    super(value);
8360  }
8361  applyPeer(node, reset) {
8362    if (reset) {
8363      getUINativeModule().richEditor.resetEnterKeyType(node);
8364    }
8365    else {
8366      getUINativeModule().richEditor.setEnterKeyType(node, this.value);
8367    }
8368  }
8369  checkObjectDiff() {
8370    return this.stageValue !== this.value;
8371  }
8372}
8373RichEditorEnterKeyTypeModifier.identity = Symbol('richEditorEnterKeyType');
8374
8375class ArkRichEditorComponent extends ArkComponent {
8376  constructor(nativePtr, classType) {
8377    super(nativePtr, classType);
8378  }
8379  enableDataDetector(value) {
8380    modifierWithKey(this._modifiersWithKeys, RichEditorEnableDataDetectorModifier.identity, RichEditorEnableDataDetectorModifier, value);
8381    return this;
8382  }
8383  dataDetectorConfig(config) {
8384    if (config === undefined || config === null) {
8385      return this;
8386    }
8387    let detectorConfig = new TextDataDetectorConfig();
8388    detectorConfig.types = config.types;
8389    detectorConfig.onDetectResultUpdate = config.onDetectResultUpdate;
8390    detectorConfig.color = config.color;
8391    if (config.decoration) {
8392      detectorConfig.decorationType = config.decoration.type;
8393      detectorConfig.decorationColor = config.decoration.color;
8394      detectorConfig.decorationStyle = config.decoration.style;
8395    }
8396    modifierWithKey(this._modifiersWithKeys, RichEditorDataDetectorConfigModifier.identity, RichEditorDataDetectorConfigModifier, detectorConfig);
8397    return this;
8398  }
8399  copyOptions(value) {
8400    modifierWithKey(this._modifiersWithKeys, RichEditorCopyOptionsModifier.identity, RichEditorCopyOptionsModifier, value);
8401    return this;
8402  }
8403
8404  caretColor(value) {
8405    modifierWithKey(this._modifiersWithKeys, RichEditorCaretColorModifier.identity, RichEditorCaretColorModifier, value);
8406    return this;
8407  }
8408
8409  onSelectionChange(callback) {
8410    modifierWithKey(this._modifiersWithKeys, RichEditorOnSelectionChangeModifier.identity, RichEditorOnSelectionChangeModifier, callback);
8411    return this;
8412  }
8413
8414  selectedBackgroundColor(value) {
8415    modifierWithKey(this._modifiersWithKeys, RichEditorSelectedBackgroundColorModifier.identity, RichEditorSelectedBackgroundColorModifier, value);
8416    return this;
8417  }
8418
8419  enterKeyType(value) {
8420    modifierWithKey(this._modifiersWithKeys, RichEditorEnterKeyTypeModifier.identity, RichEditorEnterKeyTypeModifier, value);
8421    return this;
8422  }
8423
8424  onPaste(callback) {
8425    modifierWithKey(this._modifiersWithKeys, RichEditorOnPasteModifier.identity, RichEditorOnPasteModifier, callback);
8426    return this;
8427  }
8428  onReady(callback) {
8429    modifierWithKey(this._modifiersWithKeys, RichEditorOnReadyModifier.identity, RichEditorOnReadyModifier, callback);
8430    return this;
8431  }
8432  onSelect(callback) {
8433    modifierWithKey(this._modifiersWithKeys, RichEditorOnSelectModifier.identity, RichEditorOnSelectModifier, callback);
8434    return this;
8435  }
8436  onSubmit(callback) {
8437    modifierWithKey(this._modifiersWithKeys, RichEditorOnSubmitModifier.identity, RichEditorOnSubmitModifier, callback);
8438    return this;
8439  }
8440  aboutToIMEInput(callback) {
8441    modifierWithKey(this._modifiersWithKeys, RichEditorAboutToIMEInputModifier.identity, RichEditorAboutToIMEInputModifier, callback);
8442    return this;
8443  }
8444  onIMEInputComplete(callback) {
8445    modifierWithKey(this._modifiersWithKeys, RichEditorOnIMEInputCompleteModifier.identity, RichEditorOnIMEInputCompleteModifier, callback);
8446    return this;
8447  }
8448  aboutToDelete(callback) {
8449    throw new Error('Method not implemented.');
8450  }
8451  onDeleteComplete(callback) {
8452    modifierWithKey(this._modifiersWithKeys, RichEditorOnDeleteCompleteModifier.identity, RichEditorOnDeleteCompleteModifier, callback);
8453    return this;
8454  }
8455  bindSelectionMenu(spanType, content, responseType, options) {
8456    throw new Error('Method not implemented.');
8457  }
8458  customKeyboard(value) {
8459    throw new Error('Method not implemented.');
8460  }
8461  onEditingChange(callback) {
8462    modifierWithKey(this._modifiersWithKeys, RichEditorOnEditingChangeModifier.identity, RichEditorOnEditingChangeModifier, callback);
8463    return this;
8464  }
8465  onCut(callback) {
8466    modifierWithKey(this._modifiersWithKeys, RichEditorOnCutModifier.identity, RichEditorOnCutModifier, callback);
8467    return this;
8468  }
8469  onCopy(callback) {
8470    modifierWithKey(this._modifiersWithKeys, RichEditorOnCopyModifier.identity, RichEditorOnCopyModifier, callback);
8471    return this;
8472  }
8473}
8474// @ts-ignore
8475if (globalThis.RichEditor !== undefined) {
8476  globalThis.RichEditor.attributeModifier = function (modifier) {
8477    attributeModifierFunc.call(this, modifier, (nativePtr) => {
8478      return new ArkRichEditorComponent(nativePtr);
8479    }, (nativePtr, classType, modifierJS) => {
8480      return new modifierJS.RichEditorModifier(nativePtr, classType);
8481    });
8482  };
8483}
8484
8485/// <reference path='./import.ts' />
8486class RowAlignItemsModifier extends ModifierWithKey {
8487  constructor(value) {
8488    super(value);
8489  }
8490  applyPeer(node, reset) {
8491    if (reset) {
8492      getUINativeModule().row.resetAlignItems(node);
8493    }
8494    else {
8495      getUINativeModule().row.setAlignItems(node, this.value);
8496    }
8497  }
8498  checkObjectDiff() {
8499    return this.stageValue !== this.value;
8500  }
8501}
8502RowAlignItemsModifier.identity = Symbol('rowAlignItems');
8503class RowJustifyContentlModifier extends ModifierWithKey {
8504  constructor(value) {
8505    super(value);
8506  }
8507  applyPeer(node, reset) {
8508    if (reset) {
8509      getUINativeModule().row.resetJustifyContent(node);
8510    }
8511    else {
8512      getUINativeModule().row.setJustifyContent(node, this.value);
8513    }
8514  }
8515  checkObjectDiff() {
8516    return this.stageValue !== this.value;
8517  }
8518}
8519RowJustifyContentlModifier.identity = Symbol('rowJustifyContent');
8520
8521class RowSpaceModifier extends ModifierWithKey {
8522  constructor(value) {
8523    super(value);
8524  }
8525  applyPeer(node, reset) {
8526    if (reset) {
8527      getUINativeModule().row.resetSpace(node);
8528    }
8529    else {
8530      getUINativeModule().row.setSpace(node, this.value);
8531    }
8532  }
8533  checkObjectDiff() {
8534    return this.stageValue !== this.value;
8535  }
8536}
8537RowSpaceModifier.identity = Symbol('rowSpace');
8538
8539class RowPointLightModifier extends ModifierWithKey {
8540  constructor(value) {
8541    super(value);
8542  }
8543  applyPeer(node, reset) {
8544    if (reset) {
8545      getUINativeModule().common.resetPointLightStyle(node);
8546    } else {
8547      let positionX;
8548      let positionY;
8549      let positionZ;
8550      let intensity;
8551      let color;
8552      let illuminated;
8553      let bloom;
8554      if (!isUndefined(this.value.lightSource) && this.value.lightSource != null) {
8555        positionX = this.value.lightSource.positionX;
8556        positionY = this.value.lightSource.positionY;
8557        positionZ = this.value.lightSource.positionZ;
8558        intensity = this.value.lightSource.intensity;
8559        color = this.value.lightSource.color;
8560      }
8561      illuminated = this.value.illuminated;
8562      bloom = this.value.bloom;
8563      getUINativeModule().common.setPointLightStyle(node, positionX, positionY, positionZ, intensity, color,
8564        illuminated, bloom);
8565    }
8566  }
8567  checkObjectDiff() {
8568    return !isBaseOrResourceEqual(this.stageValue.lightSource?.positionX, this.value.lightSource?.positionX) ||
8569    !isBaseOrResourceEqual(this.stageValue.lightSource?.positionY, this.value.lightSource?.positionY) ||
8570    !isBaseOrResourceEqual(this.stageValue.lightSource?.positionZ, this.value.lightSource?.positionZ) ||
8571    !isBaseOrResourceEqual(this.stageValue.lightSource?.intensity, this.value.lightSource?.intensity) ||
8572    !isBaseOrResourceEqual(this.stageValue.lightSource?.color, this.value.lightSource?.color) ||
8573    !isBaseOrResourceEqual(this.stageValue.illuminated, this.value.illuminated) ||
8574    !isBaseOrResourceEqual(this.stageValue.bloom, this.value.bloom);
8575  }
8576}
8577RowPointLightModifier.identity = Symbol('rowPointLight');
8578
8579class RowReverseModifier extends ModifierWithKey {
8580  constructor(value) {
8581    super(value);
8582  }
8583  applyPeer(node, reset) {
8584    if (reset) {
8585      getUINativeModule().row.resetReverse(node);
8586    } else {
8587      getUINativeModule().row.setReverse(node, this.value);
8588    }
8589  }
8590  checkObjectDiff() {
8591    return this.stageValue !== this.value;
8592  }
8593}
8594RowReverseModifier.identity = Symbol('rowReverse');
8595
8596class ArkRowComponent extends ArkComponent {
8597  constructor(nativePtr, classType) {
8598    super(nativePtr, classType);
8599  }
8600  initialize(value) {
8601    if (value[0] !== undefined) {
8602      modifierWithKey(this._modifiersWithKeys, RowSpaceModifier.identity, RowSpaceModifier, value[0].space);
8603    }
8604    return this
8605  }
8606  alignItems(value) {
8607    modifierWithKey(this._modifiersWithKeys, RowAlignItemsModifier.identity, RowAlignItemsModifier, value);
8608    return this;
8609  }
8610  justifyContent(value) {
8611    modifierWithKey(this._modifiersWithKeys, RowJustifyContentlModifier.identity, RowJustifyContentlModifier, value);
8612    return this;
8613  }
8614  pointLight(value) {
8615    modifierWithKey(this._modifiersWithKeys, RowPointLightModifier.identity, RowPointLightModifier, value);
8616    return this;
8617  }
8618  reverse(value) {
8619    modifierWithKey(this._modifiersWithKeys, RowReverseModifier.identity, RowReverseModifier, value);
8620    return this;
8621  }
8622}
8623// @ts-ignore
8624if (globalThis.Row !== undefined) {
8625  globalThis.Row.attributeModifier = function (modifier) {
8626    attributeModifierFunc.call(this, modifier, (nativePtr) => {
8627      return new ArkRowComponent(nativePtr);
8628    }, (nativePtr, classType, modifierJS) => {
8629      return new modifierJS.RowModifier(nativePtr, classType);
8630    });
8631  };
8632}
8633
8634/// <reference path='./import.ts' />
8635class RowSplitResizeableModifier extends ModifierWithKey {
8636  constructor(value) {
8637    super(value);
8638  }
8639  applyPeer(node, reset) {
8640    if (reset) {
8641      getUINativeModule().rowSplit.resetResizeable(node);
8642    }
8643    else {
8644      getUINativeModule().rowSplit.setResizeable(node, this.value);
8645    }
8646  }
8647}
8648RowSplitResizeableModifier.identity = Symbol('rowSplitResizeable');
8649class RowSplitClipModifier extends ModifierWithKey {
8650  constructor(value) {
8651    super(value);
8652  }
8653  applyPeer(node, reset) {
8654    if (reset) {
8655      getUINativeModule().common.resetClipWithEdge(node);
8656    }
8657    else {
8658      getUINativeModule().common.setClipWithEdge(node, this.value);
8659    }
8660  }
8661  checkObjectDiff() {
8662    return true;
8663  }
8664}
8665RowSplitClipModifier.identity = Symbol('rowSplitClip');
8666class ArkRowSplitComponent extends ArkComponent {
8667  constructor(nativePtr, classType) {
8668    super(nativePtr, classType);
8669  }
8670  resizeable(value) {
8671    modifierWithKey(this._modifiersWithKeys, RowSplitResizeableModifier.identity, RowSplitResizeableModifier, value);
8672    return this;
8673  }
8674  clip(value) {
8675    modifierWithKey(this._modifiersWithKeys, RowSplitClipModifier.identity, RowSplitClipModifier, value);
8676    return this;
8677  }
8678}
8679// @ts-ignore
8680if (globalThis.RowSplit !== undefined) {
8681  globalThis.RowSplit.attributeModifier = function (modifier) {
8682    attributeModifierFunc.call(this, modifier, (nativePtr) => {
8683      return new ArkRowSplitComponent(nativePtr);
8684    }, (nativePtr, classType, modifierJS) => {
8685      return new modifierJS.RowSplitModifier(nativePtr, classType);
8686    });
8687  };
8688}
8689
8690/// <reference path='./import.ts' />
8691class SearchSelectionMenuHiddenModifier extends ModifierWithKey {
8692  constructor(value) {
8693    super(value);
8694  }
8695  applyPeer(node, reset) {
8696    if (reset) {
8697      getUINativeModule().search.resetSelectionMenuHidden(node);
8698    }
8699    else {
8700      getUINativeModule().search.setSelectionMenuHidden(node, this.value);
8701    }
8702  }
8703  checkObjectDiff() {
8704    return this.stageValue !== this.value;
8705  }
8706}
8707SearchSelectionMenuHiddenModifier.identity = Symbol('searchSelectionMenuHidden');
8708class SearchCaretStyleModifier extends ModifierWithKey {
8709  constructor(value) {
8710    super(value);
8711  }
8712  applyPeer(node, reset) {
8713    if (reset) {
8714      getUINativeModule().search.resetCaretStyle(node);
8715    }
8716    else {
8717      getUINativeModule().search.setCaretStyle(node, this.value.width, this.value.color);
8718    }
8719  }
8720  checkObjectDiff() {
8721    return !isBaseOrResourceEqual(this.stageValue.width, this.value.width) ||
8722      !isBaseOrResourceEqual(this.stageValue.color, this.value.color);
8723  }
8724}
8725SearchCaretStyleModifier.identity = Symbol('searchCaretStyle');
8726class SearchEnableKeyboardOnFocusModifier extends ModifierWithKey {
8727  constructor(value) {
8728    super(value);
8729  }
8730  applyPeer(node, reset) {
8731    if (reset) {
8732      getUINativeModule().search.resetEnableKeyboardOnFocus(node);
8733    }
8734    else {
8735      getUINativeModule().search.setEnableKeyboardOnFocus(node, this.value);
8736    }
8737  }
8738  checkObjectDiff() {
8739    return this.stageValue !== this.value;
8740  }
8741}
8742SearchEnableKeyboardOnFocusModifier.identity = Symbol('searchEnableKeyboardOnFocus');
8743class SearchSearchIconModifier extends ModifierWithKey {
8744  constructor(value) {
8745    super(value);
8746  }
8747  applyPeer(node, reset) {
8748    if (reset) {
8749      getUINativeModule().search.resetSearchIcon(node);
8750    }
8751    else {
8752      getUINativeModule().search.setSearchIcon(node, this.value.size, this.value.color, this.value.src);
8753    }
8754  }
8755  checkObjectDiff() {
8756    return !isBaseOrResourceEqual(this.stageValue.size, this.value.size) ||
8757      !isBaseOrResourceEqual(this.stageValue.color, this.value.color) ||
8758      !isBaseOrResourceEqual(this.stageValue.src, this.value.src);
8759  }
8760}
8761SearchSearchIconModifier.identity = Symbol('searchSearchIcon');
8762class SearchPlaceholderFontModifier extends ModifierWithKey {
8763  constructor(value) {
8764    super(value);
8765  }
8766  applyPeer(node, reset) {
8767    if (reset) {
8768      getUINativeModule().search.resetPlaceholderFont(node);
8769    }
8770    else {
8771      getUINativeModule().search.setPlaceholderFont(node, this.value.size, this.value.weight, this.value.family, this.value.style);
8772    }
8773  }
8774  checkObjectDiff() {
8775    return this.stageValue.weight !== this.value.weight ||
8776      this.stageValue.style !== this.value.style ||
8777      !isBaseOrResourceEqual(this.stageValue.size, this.value.size) ||
8778      !isBaseOrResourceEqual(this.stageValue.family, this.value.family);
8779  }
8780}
8781SearchPlaceholderFontModifier.identity = Symbol('searchPlaceholderFont');
8782class SearchSearchButtonModifier extends ModifierWithKey {
8783  constructor(value) {
8784    super(value);
8785  }
8786  applyPeer(node, reset) {
8787    if (reset) {
8788      getUINativeModule().search.resetSearchButton(node);
8789    }
8790    else {
8791      getUINativeModule().search.setSearchButton(node, this.value.value, this.value.fontSize, this.value.fontColor);
8792    }
8793  }
8794  checkObjectDiff() {
8795    return this.stageValue.value !== this.value.value ||
8796      !isBaseOrResourceEqual(this.stageValue.fontSize, this.value.fontSize) ||
8797      !isBaseOrResourceEqual(this.stageValue.fontColor, this.value.fontColor);
8798  }
8799}
8800SearchSearchButtonModifier.identity = Symbol('searchSearchButton');
8801class SearchFontColorModifier extends ModifierWithKey {
8802  constructor(value) {
8803    super(value);
8804  }
8805  applyPeer(node, reset) {
8806    if (reset) {
8807      getUINativeModule().search.resetFontColor(node);
8808    }
8809    else {
8810      getUINativeModule().search.setFontColor(node, this.value);
8811    }
8812  }
8813  checkObjectDiff() {
8814    return !isBaseOrResourceEqual(this.stageValue, this.value);
8815  }
8816}
8817SearchFontColorModifier.identity = Symbol('searchFontColor');
8818class SearchFontFeatureModifier extends ModifierWithKey {
8819  constructor(value) {
8820    super(value);
8821  }
8822  applyPeer(node, reset) {
8823    if (reset) {
8824      getUINativeModule().search.resetFontFeature(node);
8825    } else {
8826      getUINativeModule().search.setFontFeature(node, this.value);
8827    }
8828  }
8829  checkObjectDiff() {
8830    return !isBaseOrResourceEqual(this.stageValue, this.value);
8831  }
8832}
8833SearchFontFeatureModifier.identity = Symbol('searchFontFeature');
8834class SearchCopyOptionModifier extends ModifierWithKey {
8835  constructor(value) {
8836    super(value);
8837  }
8838  applyPeer(node, reset) {
8839    if (reset) {
8840      getUINativeModule().search.resetCopyOption(node);
8841    }
8842    else {
8843      getUINativeModule().search.setCopyOption(node, this.value);
8844    }
8845  }
8846  checkObjectDiff() {
8847    return this.stageValue !== this.value;
8848  }
8849}
8850SearchCopyOptionModifier.identity = Symbol('searchCopyOption');
8851class SearchTextFontModifier extends ModifierWithKey {
8852  constructor(value) {
8853    super(value);
8854  }
8855  applyPeer(node, reset) {
8856    if (reset) {
8857      getUINativeModule().search.resetTextFont(node);
8858    }
8859    else {
8860      getUINativeModule().search.setTextFont(node, this.value.size, this.value.weight, this.value.family, this.value.style);
8861    }
8862  }
8863  checkObjectDiff() {
8864    return this.stageValue.weight !== this.value.weight ||
8865      this.stageValue.style !== this.value.style ||
8866      !isBaseOrResourceEqual(this.stageValue.size, this.value.size) ||
8867      !isBaseOrResourceEqual(this.stageValue.family, this.value.family);
8868  }
8869}
8870SearchTextFontModifier.identity = Symbol('searchTextFont');
8871class SearchPlaceholderColorModifier extends ModifierWithKey {
8872  constructor(value) {
8873    super(value);
8874  }
8875  applyPeer(node, reset) {
8876    if (reset) {
8877      getUINativeModule().search.resetPlaceholderColor(node);
8878    }
8879    else {
8880      getUINativeModule().search.setPlaceholderColor(node, this.value);
8881    }
8882  }
8883  checkObjectDiff() {
8884    return !isBaseOrResourceEqual(this.stageValue, this.value);
8885  }
8886}
8887SearchPlaceholderColorModifier.identity = Symbol('searchPlaceholderColor');
8888class SearchCancelButtonModifier extends ModifierWithKey {
8889  constructor(value) {
8890    super(value);
8891  }
8892  applyPeer(node, reset) {
8893    let _a, _b, _c;
8894    if (reset) {
8895      getUINativeModule().search.resetCancelButton(node);
8896    }
8897    else {
8898      getUINativeModule().search.setCancelButton(node, this.value.style,
8899        (_a = this.value.icon) === null || _a === void 0 ? void 0 : _a.size,
8900        (_b = this.value.icon) === null || _b === void 0 ? void 0 : _b.color,
8901        (_c = this.value.icon) === null || _c === void 0 ? void 0 : _c.src);
8902    }
8903  }
8904  checkObjectDiff() {
8905    let _a, _b, _c, _d, _e, _f;
8906    return this.stageValue.style !== this.value.style ||
8907      !isBaseOrResourceEqual((_a = this.stageValue.icon) === null || _a === void 0 ? void 0 : _a.size, (_b = this.value.icon) === null || _b === void 0 ? void 0 : _b.size) ||
8908      !isBaseOrResourceEqual((_c = this.stageValue.icon) === null || _c === void 0 ? void 0 : _c.color, (_d = this.value.icon) === null || _d === void 0 ? void 0 : _d.color) ||
8909      !isBaseOrResourceEqual((_e = this.stageValue.icon) === null || _e === void 0 ? void 0 : _e.src, (_f = this.value.icon) === null || _f === void 0 ? void 0 : _f.src);
8910  }
8911}
8912SearchCancelButtonModifier.identity = Symbol('searchCancelButton');
8913class SearchTextAlignModifier extends ModifierWithKey {
8914  constructor(value) {
8915    super(value);
8916  }
8917  applyPeer(node, reset) {
8918    if (reset) {
8919      getUINativeModule().search.resetTextAlign(node);
8920    }
8921    else {
8922      getUINativeModule().search.setTextAlign(node, this.value);
8923    }
8924  }
8925  checkObjectDiff() {
8926    return this.stageValue !== this.value;
8927  }
8928}
8929SearchTextAlignModifier.identity = Symbol('searchTextAlign');
8930class SearchEnterKeyTypeModifier extends ModifierWithKey {
8931  constructor(value) {
8932    super(value);
8933  }
8934  applyPeer(node, reset) {
8935    if (reset) {
8936      getUINativeModule().search.resetSearchEnterKeyType(node);
8937    } else {
8938      getUINativeModule().search.setSearchEnterKeyType(node, this.value);
8939    }
8940  }
8941  checkObjectDiff() {
8942    return !isBaseOrResourceEqual(this.stageValue, this.value);
8943  }
8944}
8945SearchEnterKeyTypeModifier.identity = Symbol('searchEnterKeyType');
8946class SearchHeightModifier extends ModifierWithKey {
8947  constructor(value) {
8948    super(value);
8949  }
8950  applyPeer(node, reset) {
8951    if (reset) {
8952      getUINativeModule().search.resetSearchHeight(node);
8953    } else {
8954      getUINativeModule().search.setSearchHeight(node, this.value);
8955    }
8956  }
8957  checkObjectDiff() {
8958    return !isBaseOrResourceEqual(this.stageValue, this.value);
8959  }
8960}
8961SearchHeightModifier.identity = Symbol('searchHeight');
8962class SearchDecorationModifier extends ModifierWithKey {
8963  constructor(value) {
8964    super(value);
8965  }
8966  applyPeer(node, reset) {
8967    if (reset) {
8968      getUINativeModule().search.resetDecoration(node);
8969    }
8970    else {
8971      getUINativeModule().search.setDecoration(node, this.value.type, this.value.color, this.value.style);
8972    }
8973  }
8974  checkObjectDiff() {
8975    if (this.stageValue.type !== this.value.type || this.stageValue.style !== this.value.style) {
8976      return true;
8977    }
8978    if (isResource(this.stageValue.color) && isResource(this.value.color)) {
8979      return !isResourceEqual(this.stageValue.color, this.value.color);
8980    }
8981    else if (!isResource(this.stageValue.color) && !isResource(this.value.color)) {
8982      return !(this.stageValue.color === this.value.color);
8983    }
8984    else {
8985      return true;
8986    }
8987  }
8988}
8989SearchDecorationModifier.identity = Symbol('searchDecoration');
8990class SearchLetterSpacingModifier extends ModifierWithKey {
8991    constructor(value) {
8992        super(value);
8993    }
8994    applyPeer(node, reset) {
8995        if (reset) {
8996            getUINativeModule().search.resetLetterSpacing(node);
8997        }
8998        else {
8999            getUINativeModule().search.setLetterSpacing(node, this.value);
9000        }
9001    }
9002    checkObjectDiff() {
9003        return !isBaseOrResourceEqual(this.stageValue, this.value);
9004    }
9005}
9006SearchLetterSpacingModifier.identity = Symbol('searchLetterSpacing');
9007class SearchLineHeightModifier extends ModifierWithKey {
9008    constructor(value) {
9009        super(value);
9010    }
9011    applyPeer(node, reset) {
9012        if (reset) {
9013            getUINativeModule().search.resetLineHeight(node);
9014        }
9015        else {
9016            getUINativeModule().search.setLineHeight(node, this.value);
9017        }
9018    }
9019    checkObjectDiff() {
9020        return !isBaseOrResourceEqual(this.stageValue, this.value);
9021    }
9022}
9023SearchLineHeightModifier.identity = Symbol('searchLineHeight');
9024class SearchMinFontSizeModifier extends ModifierWithKey {
9025    constructor(value) {
9026        super(value);
9027    }
9028    applyPeer(node, reset) {
9029        if (reset) {
9030            getUINativeModule().search.resetSearchMinFontSize(node);
9031        }
9032        else {
9033            getUINativeModule().search.setSearchMinFontSize(node, this.value);
9034        }
9035    }
9036    checkObjectDiff() {
9037        return !isBaseOrResourceEqual(this.stageValue, this.value);
9038    }
9039}
9040SearchMinFontSizeModifier.identity = Symbol('searchMinFontSize');
9041class SearchMaxFontSizeModifier extends ModifierWithKey {
9042    constructor(value) {
9043        super(value);
9044    }
9045    applyPeer(node, reset) {
9046        if (reset) {
9047            getUINativeModule().search.resetSearchMaxFontSize(node);
9048        }
9049        else {
9050            getUINativeModule().search.setSearchMaxFontSize(node, this.value);
9051        }
9052    }
9053    checkObjectDiff() {
9054        return !isBaseOrResourceEqual(this.stageValue, this.value);
9055    }
9056}
9057SearchMaxFontSizeModifier.identity = Symbol('searchMaxFontSize');
9058class SearchInputFilterModifier extends ModifierWithKey {
9059  constructor(value) {
9060      super(value);
9061  }
9062  applyPeer(node, reset) {
9063      if (reset) {
9064          getUINativeModule().search.resetInputFilter(node);
9065      } else {
9066          getUINativeModule().search.setInputFilter(node, this.value.value, this.value.error);
9067      }
9068  }
9069}
9070SearchInputFilterModifier.identity = Symbol('searchInputFilter');
9071class SearchSelectedBackgroundColorModifier extends ModifierWithKey {
9072  constructor(value) {
9073      super(value);
9074  }
9075  applyPeer(node, reset) {
9076      if (reset) {
9077          getUINativeModule().search.resetSelectedBackgroundColor(node);
9078      } else {
9079         getUINativeModule().search.setSelectedBackgroundColor(node, this.value);
9080      }
9081  }
9082  checkObjectDiff() {
9083      return !isBaseOrResourceEqual(this.stageValue, this.value);
9084  }
9085}
9086SearchSelectedBackgroundColorModifier.identity = Symbol('searchSelectedBackgroundColor');
9087class SearchTextIndentModifier extends ModifierWithKey {
9088  constructor(value) {
9089      super(value);
9090  }
9091  applyPeer(node, reset) {
9092      if (reset) {
9093          getUINativeModule().search.resetTextIndent(node);
9094      } else {
9095          getUINativeModule().search.setTextIndent(node, this.value);
9096      }
9097  }
9098  checkObjectDiff() {
9099      return !isBaseOrResourceEqual(this.stageValue, this.value);
9100  }
9101}
9102SearchTextIndentModifier.identity = Symbol('searchTextIndent');
9103class SearchMaxLengthModifier extends ModifierWithKey {
9104  constructor(value) {
9105    super(value);
9106  }
9107  applyPeer(node, reset) {
9108    if (reset) {
9109      getUINativeModule().search.resetMaxLength(node);
9110    } else {
9111      getUINativeModule().search.setMaxLength(node, this.value);
9112    }
9113  }
9114  checkObjectDiff() {
9115    return !isBaseOrResourceEqual(this.stageValue, this.value);
9116  }
9117}
9118SearchMaxLengthModifier.identity = Symbol('searchMaxLength');
9119class SearchTypeModifier extends ModifierWithKey {
9120  constructor(value) {
9121    super(value);
9122  }
9123  applyPeer(node, reset) {
9124    if (reset) {
9125      getUINativeModule().search.resetType(node);
9126    } else {
9127      getUINativeModule().search.setType(node, this.value);
9128    }
9129  }
9130  checkObjectDiff() {
9131    return !isBaseOrResourceEqual(this.stageValue, this.value);
9132  }
9133}
9134SearchTypeModifier.identity = Symbol('searchType');
9135class SearchOnEditChangeModifier extends ModifierWithKey {
9136  constructor(value) {
9137    super(value);
9138  }
9139  applyPeer(node, reset) {
9140    if (reset) {
9141      getUINativeModule().search.resetOnEditChange(node);
9142    } else {
9143      getUINativeModule().search.setOnEditChange(node, this.value);
9144    }
9145  }
9146}
9147SearchOnEditChangeModifier.identity = Symbol('searchOnEditChange');
9148class SearchOnSubmitModifier extends ModifierWithKey {
9149  constructor(value) {
9150    super(value);
9151  }
9152  applyPeer(node, reset) {
9153    if (reset) {
9154      getUINativeModule().search.resetOnSubmit(node);
9155    } else {
9156      getUINativeModule().search.setOnSubmit(node, this.value);
9157    }
9158  }
9159}
9160SearchOnSubmitModifier.identity = Symbol('searchOnSubmit');
9161class SearchOnCopyModifier extends ModifierWithKey {
9162  constructor(value) {
9163    super(value);
9164  }
9165  applyPeer(node, reset) {
9166    if (reset) {
9167      getUINativeModule().search.resetOnCopy(node);
9168    } else {
9169      getUINativeModule().search.setOnCopy(node, this.value);
9170    }
9171  }
9172}
9173SearchOnCopyModifier.identity = Symbol('searchOnCopy');
9174class SearchOnCutModifier extends ModifierWithKey {
9175  constructor(value) {
9176    super(value);
9177  }
9178  applyPeer(node, reset) {
9179    if (reset) {
9180      getUINativeModule().search.resetOnCut(node);
9181    } else {
9182      getUINativeModule().search.setOnCut(node, this.value);
9183    }
9184  }
9185}
9186SearchOnCutModifier.identity = Symbol('searchOnCut');
9187class SearchOnPasteModifier extends ModifierWithKey {
9188  constructor(value) {
9189    super(value);
9190  }
9191  static identity = Symbol('searchOnPaste');
9192  applyPeer(node, reset) {
9193    if (reset) {
9194      getUINativeModule().search.resetOnPaste(node);
9195    } else {
9196      getUINativeModule().search.setOnPaste(node, this.value);
9197    }
9198  }
9199}
9200SearchOnPasteModifier.identity = Symbol('searchOnPaste');
9201class SearchOnChangeModifier extends ModifierWithKey {
9202  constructor(value) {
9203    super(value);
9204  }
9205  applyPeer(node, reset) {
9206    if (reset) {
9207      getUINativeModule().search.resetOnChange(node);
9208    } else {
9209      getUINativeModule().search.setOnChange(node, this.value);
9210    }
9211  }
9212}
9213SearchOnChangeModifier.identity = Symbol('searchOnChange');
9214class SearchOnTextSelectionChangeModifier extends ModifierWithKey {
9215  constructor(value) {
9216    super(value);
9217  }
9218  applyPeer(node, reset) {
9219    if (reset) {
9220      getUINativeModule().search.resetOnTextSelectionChange(node);
9221    } else {
9222      getUINativeModule().search.setOnTextSelectionChange(node, this.value);
9223    }
9224  }
9225}
9226SearchOnTextSelectionChangeModifier.identity = Symbol('searchOnTextSelectionChange');
9227class SearchOnContentScrollModifier extends ModifierWithKey {
9228  constructor(value) {
9229    super(value);
9230  }
9231  applyPeer(node, reset) {
9232    if (reset) {
9233      getUINativeModule().search.resetOnContentScroll(node);
9234    } else {
9235      getUINativeModule().search.setOnContentScroll(node, this.value);
9236    }
9237  }
9238}
9239SearchOnContentScrollModifier.identity = Symbol('searchOnContentScroll');
9240class SearchShowCounterModifier extends ModifierWithKey {
9241  constructor(value) {
9242    super(value);
9243  }
9244  applyPeer(node, reset) {
9245    if (reset) {
9246      getUINativeModule().search.resetShowCounter(node);
9247    }
9248    else {
9249      getUINativeModule().search.setShowCounter(node, this.value.value, this.value.highlightBorder, this.value.thresholdPercentage);
9250    }
9251  }
9252  checkObjectDiff() {
9253    return !isBaseOrResourceEqual(this.stageValue.value, this.value.value) ||
9254      !isBaseOrResourceEqual(this.stageValue.highlightBorder, this.value.highlightBorder) ||
9255      !isBaseOrResourceEqual(this.stageValue.thresholdPercentage, this.value.thresholdPercentage);
9256  }
9257}
9258SearchShowCounterModifier.identity = Symbol('searchShowCounter');
9259class SearchInitializeModifier extends ModifierWithKey {
9260  constructor(value) {
9261    super(value);
9262  }
9263  applyPeer(node, reset) {
9264    if (reset) {
9265      getUINativeModule().search.resetSearchInitialize(node);
9266    } else {
9267      getUINativeModule().search.setSearchInitialize(node, this.value.value,
9268        this.value.placeholder, this.value.icon, this.value.controller);
9269    }
9270  }
9271}
9272SearchInitializeModifier.identity = Symbol('searchInitialize');
9273class SearchOnWillInsertModifier extends ModifierWithKey {
9274  constructor(value) {
9275    super(value);
9276  }
9277  applyPeer(node, reset) {
9278    if (reset) {
9279      getUINativeModule().search.resetOnWillInsert(node);
9280    } else {
9281      getUINativeModule().search.setOnWillInsert(node, this.value);
9282    }
9283  }
9284}
9285SearchOnWillInsertModifier.identity = Symbol('searchOnWillInsert');
9286class SearchOnDidInsertModifier extends ModifierWithKey {
9287  constructor(value) {
9288    super(value);
9289  }
9290  applyPeer(node, reset) {
9291    if (reset) {
9292      getUINativeModule().search.resetOnDidInsert(node);
9293    } else {
9294      getUINativeModule().search.setOnDidInsert(node, this.value);
9295    }
9296  }
9297}
9298SearchOnDidInsertModifier.identity = Symbol('searchOnDidInsert');
9299class SearchOnWillDeleteModifier extends ModifierWithKey {
9300  constructor(value) {
9301    super(value);
9302  }
9303  applyPeer(node, reset) {
9304    if (reset) {
9305      getUINativeModule().search.resetOnWillDelete(node);
9306    } else {
9307      getUINativeModule().search.setOnWillDelete(node, this.value);
9308    }
9309  }
9310}
9311SearchOnWillDeleteModifier.identity = Symbol('searchOnWillDelete');
9312class SearchOnDidDeleteModifier extends ModifierWithKey {
9313  constructor(value) {
9314    super(value);
9315  }
9316  applyPeer(node, reset) {
9317    if (reset) {
9318      getUINativeModule().search.resetOnDidDelete(node);
9319    } else {
9320      getUINativeModule().search.setOnDidDelete(node, this.value);
9321    }
9322  }
9323}
9324SearchOnDidDeleteModifier.identity = Symbol('searchOnDidDelete');
9325class SearchEnablePreviewTextModifier extends ModifierWithKey {
9326  constructor(value) {
9327    super(value);
9328  }
9329  applyPeer(node, reset) {
9330    if (reset) {
9331      getUINativeModule().search.resetEnablePreviewText(node);
9332    }
9333    else {
9334      getUINativeModule().search.setEnablePreviewText(node, this.value);
9335    }
9336  }
9337  checkObjectDiff() {
9338    return !isBaseOrResourceEqual(this.stageValue, this.value);
9339  }
9340}
9341SearchEnablePreviewTextModifier.identity = Symbol('searchEnablePreviewText');
9342class SearchIdModifier extends ModifierWithKey {
9343  constructor(value) {
9344    super(value);
9345  }
9346  applyPeer(node, reset) {
9347    if (reset) {
9348      getUINativeModule().search.resetSearchInspectorId(node);
9349    } else {
9350      getUINativeModule().search.setSearchInspectorId(node, this.value);
9351    }
9352  }
9353
9354  checkObjectDiff() {
9355    return !isBaseOrResourceEqual(this.stageValue, this.value);
9356  }
9357}
9358SearchIdModifier.identity = Symbol('searchId');
9359class SearchEditMenuOptionsModifier extends ModifierWithKey {
9360  constructor(value) {
9361    super(value);
9362  }
9363  applyPeer(node, reset) {
9364    if (reset) {
9365      getUINativeModule().search.resetSelectionMenuOptions(node);
9366    } else {
9367      getUINativeModule().search.setSelectionMenuOptions(node, this.value);
9368    }
9369  }
9370}
9371SearchEditMenuOptionsModifier.identity = Symbol('searchEditMenuOptions');
9372class SearchEnableHapticFeedbackModifier extends ModifierWithKey {
9373  constructor(value) {
9374    super(value);
9375  }
9376  applyPeer(node, reset) {
9377    if (reset) {
9378      getUINativeModule().search.resetEnableHapticFeedback(node);
9379    }
9380    else {
9381      getUINativeModule().search.setEnableHapticFeedback(node, this.value);
9382    }
9383  }
9384  checkObjectDiff() {
9385    return !isBaseOrResourceEqual(this.stageValue, this.value);
9386  }
9387}
9388SearchEnableHapticFeedbackModifier.identity = Symbol('searchEnableHapticFeedback');
9389class ArkSearchComponent extends ArkComponent {
9390  constructor(nativePtr, classType) {
9391    super(nativePtr, classType);
9392  }
9393  initialize(value) {
9394    if (value[0] !== undefined) {
9395      modifierWithKey(this._modifiersWithKeys, SearchInitializeModifier.identity, SearchInitializeModifier, value[0]);
9396    } else {
9397      modifierWithKey(this._modifiersWithKeys, SearchInitializeModifier.identity, SearchInitializeModifier, null);
9398    }
9399    return this;
9400  }
9401  onEditChange(callback) {
9402    modifierWithKey(this._modifiersWithKeys, SearchOnEditChangeModifier.identity, SearchOnEditChangeModifier, callback);
9403    return this;
9404  }
9405  type(value) {
9406    modifierWithKey(this._modifiersWithKeys, SearchTypeModifier.identity, SearchTypeModifier, value);
9407    return this;
9408  }
9409  maxLength(value) {
9410    modifierWithKey(this._modifiersWithKeys, SearchMaxLengthModifier.identity, SearchMaxLengthModifier, value);
9411    return this;
9412  }
9413  onEditChanged(callback) {
9414    modifierWithKey(this._modifiersWithKeys, SearchOnEditChangeModifier.identity, SearchOnEditChangeModifier, callback);
9415    return this;
9416  }
9417  customKeyboard(event) {
9418    throw new Error('Method not implemented.');
9419  }
9420  showUnit(event) {
9421    throw new Error('Method not implemented.');
9422  }
9423  onContentScroll(callback) {
9424    modifierWithKey(this._modifiersWithKeys, SearchOnContentScrollModifier.identity,
9425      SearchOnContentScrollModifier, callback);
9426    return this;
9427  }
9428  onChange(callback) {
9429    modifierWithKey(this._modifiersWithKeys, SearchOnChangeModifier.identity, SearchOnChangeModifier, callback);
9430    return this;
9431  }
9432  onTextSelectionChange(callback) {
9433    modifierWithKey(this._modifiersWithKeys, SearchOnTextSelectionChangeModifier.identity,
9434      SearchOnTextSelectionChangeModifier, callback);
9435    return this;
9436  }
9437  onCopy(callback) {
9438    modifierWithKey(this._modifiersWithKeys, SearchOnCopyModifier.identity, SearchOnCopyModifier, callback);
9439    return this;
9440  }
9441  onCut(callback) {
9442    modifierWithKey(this._modifiersWithKeys, SearchOnCutModifier.identity, SearchOnCutModifier, callback);
9443    return this;
9444  }
9445  onSubmit(callback) {
9446    modifierWithKey(this._modifiersWithKeys, SearchOnSubmitModifier.identity, SearchOnSubmitModifier, callback);
9447    return this;
9448  }
9449  onPaste(callback) {
9450    modifierWithKey(this._modifiersWithKeys, SearchOnPasteModifier.identity, SearchOnPasteModifier, callback);
9451    return this;
9452  }
9453  showCounter(value) {
9454    let arkValue = new ArkTextFieldShowCounter();
9455    arkValue.value = value;
9456    arkValue.highlightBorder = options?.highlightBorder;
9457    arkValue.thresholdPercentage = options?.thresholdPercentage;
9458    modifierWithKey(this._modifiersWithKeys, SearchShowCounterModifier.identity,
9459      SearchShowCounterModifier, arkValue);
9460    return this;
9461  }
9462  searchButton(value, option) {
9463    let searchButton = new ArkSearchButton();
9464    searchButton.value = value;
9465    searchButton.fontColor = option === null || option === void 0 ? void 0 : option.fontColor;
9466    searchButton.fontSize = option === null || option === void 0 ? void 0 : option.fontSize;
9467    modifierWithKey(this._modifiersWithKeys, SearchSearchButtonModifier.identity, SearchSearchButtonModifier, searchButton);
9468    return this;
9469  }
9470  selectionMenuHidden(value) {
9471    modifierWithKey(this._modifiersWithKeys, SearchSelectionMenuHiddenModifier.identity, SearchSelectionMenuHiddenModifier, value);
9472    return this;
9473  }
9474  enableKeyboardOnFocus(value) {
9475    modifierWithKey(this._modifiersWithKeys, SearchEnableKeyboardOnFocusModifier.identity, SearchEnableKeyboardOnFocusModifier, value);
9476    return this;
9477  }
9478  caretStyle(value) {
9479    modifierWithKey(this._modifiersWithKeys, SearchCaretStyleModifier.identity, SearchCaretStyleModifier, value);
9480    return this;
9481  }
9482  cancelButton(value) {
9483    modifierWithKey(this._modifiersWithKeys, SearchCancelButtonModifier.identity, SearchCancelButtonModifier, value);
9484    return this;
9485  }
9486  searchIcon(value) {
9487    modifierWithKey(this._modifiersWithKeys, SearchSearchIconModifier.identity, SearchSearchIconModifier, value);
9488    return this;
9489  }
9490  fontColor(value) {
9491    modifierWithKey(this._modifiersWithKeys, SearchFontColorModifier.identity, SearchFontColorModifier, value);
9492    return this;
9493  }
9494  fontFeature(value) {
9495    modifierWithKey(this._modifiersWithKeys, SearchFontFeatureModifier.identity, SearchFontFeatureModifier, value);
9496    return this;
9497  }
9498  placeholderColor(value) {
9499    modifierWithKey(this._modifiersWithKeys, SearchPlaceholderColorModifier.identity, SearchPlaceholderColorModifier, value);
9500    return this;
9501  }
9502  placeholderFont(value) {
9503    modifierWithKey(this._modifiersWithKeys, SearchPlaceholderFontModifier.identity, SearchPlaceholderFontModifier, value);
9504    return this;
9505  }
9506  textFont(value) {
9507    modifierWithKey(this._modifiersWithKeys, SearchTextFontModifier.identity, SearchTextFontModifier, value);
9508    return this;
9509  }
9510  copyOption(value) {
9511    modifierWithKey(this._modifiersWithKeys, SearchCopyOptionModifier.identity, SearchCopyOptionModifier, value);
9512    return this;
9513  }
9514  textAlign(value) {
9515    modifierWithKey(this._modifiersWithKeys, SearchTextAlignModifier.identity, SearchTextAlignModifier, value);
9516    return this;
9517  }
9518  enterKeyType(value) {
9519    modifierWithKey(this._modifiersWithKeys, SearchEnterKeyTypeModifier.identity, SearchEnterKeyTypeModifier, value);
9520    return this;
9521  }
9522  height(value) {
9523    modifierWithKey(this._modifiersWithKeys, SearchHeightModifier.identity, SearchHeightModifier, value);
9524    return this;
9525  }
9526  decoration(value) {
9527    modifierWithKey(this._modifiersWithKeys, SearchDecorationModifier.identity, SearchDecorationModifier, value);
9528    return this;
9529  }
9530  letterSpacing(value) {
9531    modifierWithKey(this._modifiersWithKeys, SearchLetterSpacingModifier.identity, SearchLetterSpacingModifier, value);
9532    return this;
9533  }
9534  lineHeight(value) {
9535    modifierWithKey(this._modifiersWithKeys, SearchLineHeightModifier.identity, SearchLineHeightModifier, value);
9536    return this;
9537  }
9538  id(value) {
9539    modifierWithKey(this._modifiersWithKeys, SearchIdModifier.identity, SearchIdModifier, value);
9540    return this;
9541  }
9542  key(value) {
9543    modifierWithKey(this._modifiersWithKeys, SearchIdModifier.identity, SearchIdModifier, value);
9544    return this;
9545  }
9546  minFontSize(value) {
9547    modifierWithKey(this._modifiersWithKeys, SearchMinFontSizeModifier.identity, SearchMinFontSizeModifier, value);
9548    return this;
9549  }
9550  maxFontSize(value) {
9551    modifierWithKey(this._modifiersWithKeys, SearchMaxFontSizeModifier.identity, SearchMaxFontSizeModifier, value);
9552    return this;
9553  }
9554  inputFilter(value, error) {
9555    let searchInputFilter = new ArkSearchInputFilter();
9556    searchInputFilter.value = value;
9557    searchInputFilter.error = error;
9558
9559    modifierWithKey(this._modifiersWithKeys, SearchInputFilterModifier.identity, SearchInputFilterModifier, searchInputFilter);
9560    return this;
9561  }
9562  selectedBackgroundColor(value) {
9563    modifierWithKey(this._modifiersWithKeys, SearchSelectedBackgroundColorModifier.identity, SearchSelectedBackgroundColorModifier, value);
9564    return this;
9565  }
9566  textIndent(value) {
9567    modifierWithKey(this._modifiersWithKeys, SearchTextIndentModifier.identity, SearchTextIndentModifier, value);
9568    return this;
9569  }
9570  onWillInsert(callback) {
9571    modifierWithKey(this._modifiersWithKeys, SearchOnWillInsertModifier.identity, SearchOnWillInsertModifier, callback);
9572    return this;
9573  }
9574  onDidInsert(callback) {
9575    modifierWithKey(this._modifiersWithKeys, SearchOnDidInsertModifier.identity, SearchOnDidInsertModifier, callback);
9576    return this;
9577  }
9578  onWillDelete(callback) {
9579    modifierWithKey(this._modifiersWithKeys, SearchOnWillDeleteModifier.identity, SearchOnWillDeleteModifier, callback);
9580    return this;
9581  }
9582  onDidDelete(callback) {
9583    modifierWithKey(this._modifiersWithKeys, SearchOnDidDeleteModifier.identity, SearchOnDidDeleteModifier, callback);
9584    return this;
9585  }
9586  enablePreviewText(value) {
9587    modifierWithKey(this._modifiersWithKeys, SearchEnablePreviewTextModifier.identity, SearchEnablePreviewTextModifier, value);
9588    return this;
9589  }
9590  editMenuOptions(value) {
9591    modifierWithKey(this._modifiersWithKeys, SearchEditMenuOptionsModifier.identity,
9592      SearchEditMenuOptionsModifier, value);
9593    return this;
9594  }
9595  enableHapticFeedback(value) {
9596    modifierWithKey(this._modifiersWithKeys, SearchEnableHapticFeedbackModifier.identity, SearchEnableHapticFeedbackModifier, value);
9597    return this;
9598  }
9599}
9600// @ts-ignore
9601if (globalThis.Search !== undefined) {
9602  globalThis.Search.attributeModifier = function (modifier) {
9603    attributeModifierFunc.call(this, modifier, (nativePtr) => {
9604      return new ArkSearchComponent(nativePtr);
9605    }, (nativePtr, classType, modifierJS) => {
9606      return new modifierJS.SearchModifier(nativePtr, classType);
9607    });
9608  };
9609}
9610
9611/// <reference path='./import.ts' />
9612class SpanFontSizeModifier extends ModifierWithKey {
9613  constructor(value) {
9614    super(value);
9615  }
9616  applyPeer(node, reset) {
9617    if (reset) {
9618      getUINativeModule().span.resetFontSize(node);
9619    }
9620    else {
9621      getUINativeModule().span.setFontSize(node, this.value);
9622    }
9623  }
9624  checkObjectDiff() {
9625    return !isBaseOrResourceEqual(this.stageValue, this.value);
9626  }
9627}
9628SpanFontSizeModifier.identity = Symbol('spanFontSize');
9629class SpanFontFamilyModifier extends ModifierWithKey {
9630  constructor(value) {
9631    super(value);
9632  }
9633  applyPeer(node, reset) {
9634    if (reset) {
9635      getUINativeModule().span.resetFontFamily(node);
9636    }
9637    else {
9638      getUINativeModule().span.setFontFamily(node, this.value);
9639    }
9640  }
9641  checkObjectDiff() {
9642    return !isBaseOrResourceEqual(this.stageValue, this.value);
9643  }
9644}
9645SpanFontFamilyModifier.identity = Symbol('spanFontFamily');
9646class SpanLineHeightModifier extends ModifierWithKey {
9647  constructor(value) {
9648    super(value);
9649  }
9650  applyPeer(node, reset) {
9651    if (reset) {
9652      getUINativeModule().span.resetLineHeight(node);
9653    }
9654    else {
9655      getUINativeModule().span.setLineHeight(node, this.value);
9656    }
9657  }
9658  checkObjectDiff() {
9659    return !isBaseOrResourceEqual(this.stageValue, this.value);
9660  }
9661}
9662SpanLineHeightModifier.identity = Symbol('spanLineHeight');
9663class SpanFontStyleModifier extends ModifierWithKey {
9664  constructor(value) {
9665    super(value);
9666  }
9667  applyPeer(node, reset) {
9668    if (reset) {
9669      getUINativeModule().span.resetFontStyle(node);
9670    }
9671    else {
9672      getUINativeModule().span.setFontStyle(node, this.value);
9673    }
9674  }
9675  checkObjectDiff() {
9676    return !isBaseOrResourceEqual(this.stageValue, this.value);
9677  }
9678}
9679SpanFontStyleModifier.identity = Symbol('spanFontStyle');
9680class SpanTextCaseModifier extends ModifierWithKey {
9681  constructor(value) {
9682    super(value);
9683  }
9684  applyPeer(node, reset) {
9685    if (reset) {
9686      getUINativeModule().span.resetTextCase(node);
9687    }
9688    else {
9689      getUINativeModule().span.setTextCase(node, this.value);
9690    }
9691  }
9692  checkObjectDiff() {
9693    return !isBaseOrResourceEqual(this.stageValue, this.value);
9694  }
9695}
9696SpanTextCaseModifier.identity = Symbol('spanTextCase');
9697class SpanTextBackgroundStyleModifier extends ModifierWithKey {
9698  constructor(value) {
9699    super(value);
9700  }
9701  applyPeer(node, reset) {
9702    if (reset) {
9703      getUINativeModule().span.resetTextBackgroundStyle(node);
9704    }
9705    else {
9706      let textBackgroundStyle = new ArkTextBackGroundStyle();
9707      if (!textBackgroundStyle.convertTextBackGroundStyleOptions(this.value)) {
9708        getUINativeModule().span.resetTextBackgroundStyle(node);
9709      }
9710      else {
9711        getUINativeModule().span.setTextBackgroundStyle(node, textBackgroundStyle.color, textBackgroundStyle.radius.topLeft, textBackgroundStyle.radius.topRight, textBackgroundStyle.radius.bottomLeft, textBackgroundStyle.radius.bottomRight);
9712      }
9713    }
9714  }
9715  checkObjectDiff() {
9716    let textBackgroundStyle = new ArkTextBackGroundStyle();
9717    let stageTextBackGroundStyle = new ArkTextBackGroundStyle();
9718    if (!textBackgroundStyle.convertTextBackGroundStyleOptions(this.value) || !stageTextBackGroundStyle.convertTextBackGroundStyleOptions(this.stageValue)) {
9719      return false;
9720    }
9721    else {
9722      return textBackgroundStyle.checkObjectDiff(stageTextBackGroundStyle);
9723    }
9724  }
9725}
9726SpanTextBackgroundStyleModifier.identity = Symbol('spanTextBackgroundStyle');
9727class SpanTextShadowModifier extends ModifierWithKey {
9728  constructor(value) {
9729    super(value);
9730  }
9731  applyPeer(node, reset) {
9732    if (reset) {
9733      getUINativeModule().span.resetTextShadow(node);
9734    }
9735    else {
9736      let shadow = new ArkShadowInfoToArray();
9737      if (!shadow.convertShadowOptions(this.value)) {
9738        getUINativeModule().span.resetTextShadow(node);
9739      }
9740      else {
9741        getUINativeModule().span.setTextShadow(node, shadow.radius, shadow.type, shadow.color,
9742          shadow.offsetX, shadow.offsetY, shadow.fill, shadow.radius.length);
9743      }
9744    }
9745  }
9746  checkObjectDiff() {
9747    let checkDiff = true;
9748    let arkShadow = new ArkShadowInfoToArray();
9749    if (Object.getPrototypeOf(this.stageValue).constructor === Object &&
9750      Object.getPrototypeOf(this.value).constructor === Object) {
9751      checkDiff = arkShadow.checkDiff(this.stageValue, this.value);
9752    }
9753    else if (Object.getPrototypeOf(this.stageValue).constructor === Array &&
9754      Object.getPrototypeOf(this.value).constructor === Array &&
9755      this.stageValue.length === this.value.length) {
9756      let isDiffItem = false;
9757      for (let i = 0; i < this.value.length; i++) {
9758        if (arkShadow.checkDiff(this.stageValue[i], this.value[1])) {
9759          isDiffItem = true;
9760          break;
9761        }
9762      }
9763      if (!isDiffItem) {
9764        checkDiff = false;
9765      }
9766    }
9767    return checkDiff;
9768  }
9769}
9770SpanTextShadowModifier.identity = Symbol('spanTextShadow');
9771class SpanFontColorModifier extends ModifierWithKey {
9772  constructor(value) {
9773    super(value);
9774  }
9775  applyPeer(node, reset) {
9776    if (reset) {
9777      getUINativeModule().span.resetFontColor(node);
9778    }
9779    else {
9780      getUINativeModule().span.setFontColor(node, this.value);
9781    }
9782  }
9783  checkObjectDiff() {
9784    return !isBaseOrResourceEqual(this.stageValue, this.value);
9785  }
9786}
9787SpanFontColorModifier.identity = Symbol('spanFontColor');
9788class SpanLetterSpacingModifier extends ModifierWithKey {
9789  constructor(value) {
9790    super(value);
9791  }
9792  applyPeer(node, reset) {
9793    if (reset) {
9794      getUINativeModule().span.resetLetterSpacing(node);
9795    }
9796    else {
9797      getUINativeModule().span.setLetterSpacing(node, this.value);
9798    }
9799  }
9800}
9801SpanLetterSpacingModifier.identity = Symbol('spanLetterSpacing');
9802class SpanBaselineOffsetModifier extends ModifierWithKey {
9803  constructor(value) {
9804    super(value);
9805  }
9806  applyPeer(node, reset) {
9807    if (reset) {
9808      getUINativeModule().span.resetBaselineOffset(node);
9809    }
9810    else {
9811      getUINativeModule().span.setBaselineOffset(node, this.value);
9812    }
9813  }
9814}
9815SpanBaselineOffsetModifier.identity = Symbol('spanBaselineOffset');
9816class SpanFontModifier extends ModifierWithKey {
9817  constructor(value) {
9818    super(value);
9819  }
9820  applyPeer(node, reset) {
9821    if (reset) {
9822      getUINativeModule().span.resetFont(node);
9823    }
9824    else {
9825      getUINativeModule().span.setFont(node, this.value.size, this.value.weight, this.value.family, this.value.style);
9826    }
9827  }
9828  checkObjectDiff() {
9829    if (this.stageValue.weight !== this.value.weight || this.stageValue.style !== this.value.style ||
9830      this.stageValue.enableVariableFontWeight !== this.value.enableVariableFontWeight) {
9831      return true;
9832    }
9833    if (((isResource(this.stageValue.size) && isResource(this.value.size) &&
9834      isResourceEqual(this.stageValue.size, this.value.size)) ||
9835      (!isResource(this.stageValue.size) && !isResource(this.value.size) &&
9836        this.stageValue.size === this.value.size)) &&
9837      ((isResource(this.stageValue.family) && isResource(this.value.family) &&
9838        isResourceEqual(this.stageValue.family, this.value.family)) ||
9839        (!isResource(this.stageValue.family) && !isResource(this.value.family) &&
9840          this.stageValue.family === this.value.family))) {
9841      return false;
9842    }
9843    else {
9844      return true;
9845    }
9846  }
9847}
9848SpanFontModifier.identity = Symbol('spanFont');
9849class SpanDecorationModifier extends ModifierWithKey {
9850  constructor(value) {
9851    super(value);
9852  }
9853  applyPeer(node, reset) {
9854    if (reset) {
9855      getUINativeModule().span.resetDecoration(node);
9856    }
9857    else {
9858      getUINativeModule().span.setDecoration(node, this.value.type, this.value.color, this.value.style);
9859    }
9860  }
9861  checkObjectDiff() {
9862    if (this.stageValue.type !== this.value.type || this.stageValue.style !== this.value.style) {
9863      return true;
9864    }
9865    if (isResource(this.stageValue.color) && isResource(this.value.color)) {
9866      return !isResourceEqual(this.stageValue.color, this.value.color);
9867    }
9868    else if (!isResource(this.stageValue.color) && !isResource(this.value.color)) {
9869      return !(this.stageValue.color === this.value.color);
9870    }
9871    else {
9872      return true;
9873    }
9874  }
9875}
9876SpanDecorationModifier.identity = Symbol('spanDecoration');
9877class SpanFontWeightModifier extends ModifierWithKey {
9878  constructor(value) {
9879    super(value);
9880  }
9881  applyPeer(node, reset) {
9882    if (reset) {
9883      getUINativeModule().span.resetFontWeight(node);
9884    }
9885    else {
9886      getUINativeModule().span.setFontWeight(node, this.value);
9887    }
9888  }
9889}
9890SpanFontWeightModifier.identity = Symbol('spanfontweight');
9891class SpanInputModifier extends ModifierWithKey {
9892  constructor(value) {
9893    super(value);
9894  }
9895  applyPeer(node, reset) {
9896    if (reset) {
9897      getUINativeModule().span.setSpanSrc(node, '');
9898    }
9899    else {
9900      getUINativeModule().span.setSpanSrc(node, this.value);
9901    }
9902  }
9903}
9904SpanInputModifier.identity = Symbol('spanInput');
9905class SpanAccessibilityTextModifier extends ModifierWithKey {
9906  constructor(value) {
9907    super(value);
9908  }
9909  applyPeer(node, reset) {
9910    if (reset) {
9911      getUINativeModule().span.resetAccessibilityText(node);
9912    } else {
9913      getUINativeModule().span.setAccessibilityText(node, this.value);
9914    }
9915  }
9916}
9917SpanAccessibilityTextModifier.identity = Symbol('spanAccessibilityText');
9918class SpanAccessibilityDescriptionModifier extends ModifierWithKey {
9919  constructor(value) {
9920    super(value);
9921  }
9922  applyPeer(node, reset) {
9923    if (reset) {
9924      getUINativeModule().span.resetAccessibilityDescription(node);
9925    } else {
9926      getUINativeModule().span.setAccessibilityDescription(node, this.value);
9927    }
9928  }
9929}
9930SpanAccessibilityDescriptionModifier.identity = Symbol('spanAccessibilityDescription');
9931class SpanAccessibilityLevelModifier extends ModifierWithKey {
9932  constructor(value) {
9933    super(value);
9934  }
9935  applyPeer(node, reset) {
9936    if (reset) {
9937      getUINativeModule().span.resetAccessibilityLevel(node);
9938    } else {
9939      getUINativeModule().span.setAccessibilityLevel(node, this.value);
9940    }
9941  }
9942}
9943SpanAccessibilityLevelModifier.identity = Symbol('spanAccessibilityLevel');
9944class ArkSpanComponent {
9945  constructor(nativePtr, classType) {
9946    this._modifiersWithKeys = new Map();
9947    this.nativePtr = nativePtr;
9948    this._changed = false;
9949    this._classType = classType;
9950    this._weakPtr = getUINativeModule().nativeUtils.createNativeWeakRef(nativePtr);
9951    this._nativePtrChanged = false;
9952  }
9953  initialize(value) {
9954    modifierWithKey(this._modifiersWithKeys, SpanInputModifier.identity, SpanInputModifier, value[0]);
9955    return this;
9956  }
9957  applyModifierPatch() {
9958    let expiringItemsWithKeys = [];
9959    this._modifiersWithKeys.forEach((value, key) => {
9960      if (value.applyStage(this.nativePtr)) {
9961        expiringItemsWithKeys.push(key);
9962      }
9963    });
9964    expiringItemsWithKeys.forEach(key => {
9965      this._modifiersWithKeys.delete(key);
9966    });
9967  }
9968  cleanStageValue() {
9969    if (!this._modifiersWithKeys) {
9970      return;
9971    }
9972    this._modifiersWithKeys.forEach((value, key) => {
9973        value.stageValue = undefined;
9974    });
9975  }
9976  applyStateUpdatePtr(instance) {
9977    if (this.nativePtr !== instance.nativePtr) {
9978      this.nativePtr = instance.nativePtr;
9979      this._nativePtrChanged = true;
9980      if (instance._weakPtr) {
9981        this._weakPtr = instance._weakPtr;
9982      } else {
9983        this._weakPtr = getUINativeModule().nativeUtils.createNativeWeakRef(this.nativePtr);
9984      }
9985    }
9986  }
9987  onGestureJudgeBegin(callback) {
9988    throw new Error('Method not implemented.');
9989  }
9990  outline(value) {
9991    throw new Error('Method not implemented.');
9992  }
9993  outlineColor(value) {
9994    throw new Error('Method not implemented.');
9995  }
9996  outlineRadius(value) {
9997    throw new Error('Method not implemented.');
9998  }
9999  outlineStyle(value) {
10000    throw new Error('Method not implemented.');
10001  }
10002  outlineWidth(value) {
10003    throw new Error('Method not implemented.');
10004  }
10005  width(value) {
10006    throw new Error('Method not implemented.');
10007  }
10008  height(value) {
10009    throw new Error('Method not implemented.');
10010  }
10011  expandSafeArea(types, edges) {
10012    throw new Error('Method not implemented.');
10013  }
10014  responseRegion(value) {
10015    throw new Error('Method not implemented.');
10016  }
10017  mouseResponseRegion(value) {
10018    throw new Error('Method not implemented.');
10019  }
10020  size(value) {
10021    throw new Error('Method not implemented.');
10022  }
10023  constraintSize(value) {
10024    throw new Error('Method not implemented.');
10025  }
10026  touchable(value) {
10027    throw new Error('Method not implemented.');
10028  }
10029  hitTestBehavior(value) {
10030    throw new Error('Method not implemented.');
10031  }
10032  layoutWeight(value) {
10033    throw new Error('Method not implemented.');
10034  }
10035  padding(value) {
10036    throw new Error('Method not implemented.');
10037  }
10038  margin(value) {
10039    throw new Error('Method not implemented.');
10040  }
10041  background(builder, options) {
10042    throw new Error('Method not implemented.');
10043  }
10044  backgroundColor(value) {
10045    throw new Error('Method not implemented.');
10046  }
10047  backgroundImage(src, repeat) {
10048    throw new Error('Method not implemented.');
10049  }
10050  backgroundImageSize(value) {
10051    throw new Error('Method not implemented.');
10052  }
10053  backgroundImagePosition(value) {
10054    throw new Error('Method not implemented.');
10055  }
10056  backgroundBlurStyle(value, options) {
10057    throw new Error('Method not implemented.');
10058  }
10059  foregroundBlurStyle(value, options) {
10060    throw new Error('Method not implemented.');
10061  }
10062  opacity(value) {
10063    throw new Error('Method not implemented.');
10064  }
10065  border(value) {
10066    throw new Error('Method not implemented.');
10067  }
10068  borderStyle(value) {
10069    throw new Error('Method not implemented.');
10070  }
10071  borderWidth(value) {
10072    throw new Error('Method not implemented.');
10073  }
10074  borderColor(value) {
10075    throw new Error('Method not implemented.');
10076  }
10077  borderRadius(value) {
10078    throw new Error('Method not implemented.');
10079  }
10080  borderImage(value) {
10081    throw new Error('Method not implemented.');
10082  }
10083  foregroundColor(value) {
10084    throw new Error('Method not implemented.');
10085  }
10086  onClick(event) {
10087    modifierWithKey(this._modifiersWithKeys, ClickModifier.identity, ClickModifier, event);
10088    return this;
10089  }
10090  onHover(event) {
10091    throw new Error('Method not implemented.');
10092  }
10093  hoverEffect(value) {
10094    throw new Error('Method not implemented.');
10095  }
10096  onMouse(event) {
10097    throw new Error('Method not implemented.');
10098  }
10099  onTouch(event) {
10100    throw new Error('Method not implemented.');
10101  }
10102  onKeyEvent(event) {
10103    throw new Error('Method not implemented.');
10104  }
10105  focusable(value) {
10106    throw new Error('Method not implemented.');
10107  }
10108  onFocus(event) {
10109    throw new Error('Method not implemented.');
10110  }
10111  onBlur(event) {
10112    throw new Error('Method not implemented.');
10113  }
10114  tabIndex(index) {
10115    throw new Error('Method not implemented.');
10116  }
10117  defaultFocus(value) {
10118    throw new Error('Method not implemented.');
10119  }
10120  groupDefaultFocus(value) {
10121    throw new Error('Method not implemented.');
10122  }
10123  focusOnTouch(value) {
10124    throw new Error('Method not implemented.');
10125  }
10126  animation(value) {
10127    throw new Error('Method not implemented.');
10128  }
10129  transition(value) {
10130    throw new Error('Method not implemented.');
10131  }
10132  gesture(gesture, mask) {
10133    throw new Error('Method not implemented.');
10134  }
10135  priorityGesture(gesture, mask) {
10136    throw new Error('Method not implemented.');
10137  }
10138  parallelGesture(gesture, mask) {
10139    throw new Error('Method not implemented.');
10140  }
10141  blur(value) {
10142    throw new Error('Method not implemented.');
10143  }
10144  linearGradientBlur(value, options) {
10145    throw new Error('Method not implemented.');
10146  }
10147  brightness(value) {
10148    throw new Error('Method not implemented.');
10149  }
10150  contrast(value) {
10151    throw new Error('Method not implemented.');
10152  }
10153  grayscale(value) {
10154    throw new Error('Method not implemented.');
10155  }
10156  colorBlend(value) {
10157    throw new Error('Method not implemented.');
10158  }
10159  saturate(value) {
10160    throw new Error('Method not implemented.');
10161  }
10162  sepia(value) {
10163    throw new Error('Method not implemented.');
10164  }
10165  invert(value) {
10166    throw new Error('Method not implemented.');
10167  }
10168  hueRotate(value) {
10169    throw new Error('Method not implemented.');
10170  }
10171  useEffect(value) {
10172    throw new Error('Method not implemented.');
10173  }
10174  backdropBlur(value) {
10175    throw new Error('Method not implemented.');
10176  }
10177  renderGroup(value) {
10178    throw new Error('Method not implemented.');
10179  }
10180  translate(value) {
10181    throw new Error('Method not implemented.');
10182  }
10183  scale(value) {
10184    throw new Error('Method not implemented.');
10185  }
10186  gridSpan(value) {
10187    throw new Error('Method not implemented.');
10188  }
10189  gridOffset(value) {
10190    throw new Error('Method not implemented.');
10191  }
10192  rotate(value) {
10193    throw new Error('Method not implemented.');
10194  }
10195  transform(value) {
10196    throw new Error('Method not implemented.');
10197  }
10198  onAppear(event) {
10199    throw new Error('Method not implemented.');
10200  }
10201  onDisAppear(event) {
10202    throw new Error('Method not implemented.');
10203  }
10204  onAttach(event) {
10205    throw new Error('Method not implemented.');
10206  }
10207  onDetach(event) {
10208    throw new Error('Method not implemented.');
10209  }
10210  onAreaChange(event) {
10211    throw new Error('Method not implemented.');
10212  }
10213  visibility(value) {
10214    throw new Error('Method not implemented.');
10215  }
10216  flexGrow(value) {
10217    throw new Error('Method not implemented.');
10218  }
10219  flexShrink(value) {
10220    throw new Error('Method not implemented.');
10221  }
10222  flexBasis(value) {
10223    throw new Error('Method not implemented.');
10224  }
10225  alignSelf(value) {
10226    throw new Error('Method not implemented.');
10227  }
10228  displayPriority(value) {
10229    throw new Error('Method not implemented.');
10230  }
10231  zIndex(value) {
10232    throw new Error('Method not implemented.');
10233  }
10234  sharedTransition(id, options) {
10235    throw new Error('Method not implemented.');
10236  }
10237  direction(value) {
10238    throw new Error('Method not implemented.');
10239  }
10240  align(value) {
10241    throw new Error('Method not implemented.');
10242  }
10243  position(value) {
10244    throw new Error('Method not implemented.');
10245  }
10246  markAnchor(value) {
10247    throw new Error('Method not implemented.');
10248  }
10249  offset(value) {
10250    throw new Error('Method not implemented.');
10251  }
10252  enabled(value) {
10253    throw new Error('Method not implemented.');
10254  }
10255  useSizeType(value) {
10256    throw new Error('Method not implemented.');
10257  }
10258  alignRules(value) {
10259    throw new Error('Method not implemented.');
10260  }
10261  aspectRatio(value) {
10262    throw new Error('Method not implemented.');
10263  }
10264  clickEffect(value) {
10265    throw new Error('Method not implemented.');
10266  }
10267  onDragStart(event) {
10268    throw new Error('Method not implemented.');
10269  }
10270  onDragEnter(event) {
10271    throw new Error('Method not implemented.');
10272  }
10273  onDragMove(event) {
10274    throw new Error('Method not implemented.');
10275  }
10276  onDragLeave(event) {
10277    throw new Error('Method not implemented.');
10278  }
10279  onDrop(event) {
10280    throw new Error('Method not implemented.');
10281  }
10282  onDragEnd(event) {
10283    throw new Error('Method not implemented.');
10284  }
10285  allowDrop(value) {
10286    throw new Error('Method not implemented.');
10287  }
10288  draggable(value) {
10289    throw new Error('Method not implemented.');
10290  }
10291  overlay(value, options) {
10292    throw new Error('Method not implemented.');
10293  }
10294  linearGradient(value) {
10295    throw new Error('Method not implemented.');
10296  }
10297  sweepGradient(value) {
10298    throw new Error('Method not implemented.');
10299  }
10300  radialGradient(value) {
10301    throw new Error('Method not implemented.');
10302  }
10303  motionPath(value) {
10304    throw new Error('Method not implemented.');
10305  }
10306  motionBlur(value) {
10307    throw new Error('Method not implemented.');
10308  }
10309  shadow(value) {
10310    throw new Error('Method not implemented.');
10311  }
10312  mask(value) {
10313    throw new Error('Method not implemented.');
10314  }
10315  key(value) {
10316    throw new Error('Method not implemented.');
10317  }
10318  id(value) {
10319    throw new Error('Method not implemented.');
10320  }
10321  geometryTransition(id) {
10322    throw new Error('Method not implemented.');
10323  }
10324  bindPopup(show, popup) {
10325    throw new Error('Method not implemented.');
10326  }
10327  bindMenu(content, options) {
10328    throw new Error('Method not implemented.');
10329  }
10330  bindContextMenu(content, responseType, options) {
10331    throw new Error('Method not implemented.');
10332  }
10333  bindContentCover(isShow, builder, type) {
10334    throw new Error('Method not implemented.');
10335  }
10336  blendMode(value) {
10337    throw new Error('Method not implemented.');
10338  }
10339  clip(value) {
10340    throw new Error('Method not implemented.');
10341  }
10342  bindSheet(isShow, builder, options) {
10343    throw new Error('Method not implemented.');
10344  }
10345  stateStyles(value) {
10346    throw new Error('Method not implemented.');
10347  }
10348  restoreId(value) {
10349    throw new Error('Method not implemented.');
10350  }
10351  onVisibleAreaChange(ratios, event) {
10352    throw new Error('Method not implemented.');
10353  }
10354  sphericalEffect(value) {
10355    throw new Error('Method not implemented.');
10356  }
10357  lightUpEffect(value) {
10358    throw new Error('Method not implemented.');
10359  }
10360  pixelStretchEffect(options) {
10361    throw new Error('Method not implemented.');
10362  }
10363  keyboardShortcut(value, keys, action) {
10364    throw new Error('Method not implemented.');
10365  }
10366  accessibilityGroup(value) {
10367    throw new Error('Method not implemented.');
10368  }
10369  accessibilityText(value) {
10370    if (typeof value === 'string') {
10371      modifierWithKey(this._modifiersWithKeys, SpanAccessibilityTextModifier.identity, SpanAccessibilityTextModifier, value);
10372    }
10373    else {
10374      modifierWithKey(this._modifiersWithKeys, SpanAccessibilityTextModifier.identity, SpanAccessibilityTextModifier, undefined);
10375    }
10376    return this;
10377  }
10378  accessibilityDescription(value) {
10379    if (typeof value === 'string') {
10380      modifierWithKey(this._modifiersWithKeys, SpanAccessibilityDescriptionModifier.identity, SpanAccessibilityDescriptionModifier, value);
10381    }
10382    else {
10383      modifierWithKey(this._modifiersWithKeys, SpanAccessibilityDescriptionModifier.identity, SpanAccessibilityDescriptionModifier, undefined);
10384    }
10385    return this;
10386  }
10387  accessibilityLevel(value) {
10388    if (typeof value === 'string') {
10389      modifierWithKey(this._modifiersWithKeys, SpanAccessibilityLevelModifier.identity, SpanAccessibilityLevelModifier, value);
10390    }
10391    else {
10392      modifierWithKey(this._modifiersWithKeys, SpanAccessibilityLevelModifier.identity, SpanAccessibilityLevelModifier, undefined);
10393    }
10394    return this;
10395  }
10396  obscured(reasons) {
10397    throw new Error('Method not implemented.');
10398  }
10399  reuseId(id) {
10400    throw new Error('Method not implemented.');
10401  }
10402  renderFit(fitMode) {
10403    throw new Error('Method not implemented.');
10404  }
10405  attributeModifier(modifier) {
10406    return this;
10407  }
10408  decoration(value) {
10409    modifierWithKey(this._modifiersWithKeys, SpanDecorationModifier.identity, SpanDecorationModifier, value);
10410    return this;
10411  }
10412  font(value) {
10413    modifierWithKey(this._modifiersWithKeys, SpanFontSizeModifier.identity, SpanFontSizeModifier,
10414      value === null || value === void 0 ? void 0 : value.size);
10415    modifierWithKey(this._modifiersWithKeys, SpanFontWeightModifier.identity, SpanFontWeightModifier,
10416      value === null || value === void 0 ? void 0 : value.weight);
10417    modifierWithKey(this._modifiersWithKeys, SpanFontFamilyModifier.identity, SpanFontFamilyModifier,
10418      value === null || value === void 0 ? void 0 : value.family);
10419    modifierWithKey(this._modifiersWithKeys, SpanFontStyleModifier.identity, SpanFontStyleModifier,
10420      value === null || value === void 0 ? void 0 : value.style);
10421    return this;
10422  }
10423  lineHeight(value) {
10424    modifierWithKey(this._modifiersWithKeys, SpanLineHeightModifier.identity, SpanLineHeightModifier, value);
10425    return this;
10426  }
10427  fontSize(value) {
10428    modifierWithKey(this._modifiersWithKeys, SpanFontSizeModifier.identity, SpanFontSizeModifier, value);
10429    return this;
10430  }
10431  fontColor(value) {
10432    modifierWithKey(this._modifiersWithKeys, SpanFontColorModifier.identity, SpanFontColorModifier, value);
10433    return this;
10434  }
10435  fontStyle(value) {
10436    modifierWithKey(this._modifiersWithKeys, SpanFontStyleModifier.identity, SpanFontStyleModifier, value);
10437    return this;
10438  }
10439  fontWeight(value) {
10440    modifierWithKey(this._modifiersWithKeys, SpanFontWeightModifier.identity, SpanFontWeightModifier, value);
10441    return this;
10442  }
10443  fontFamily(value) {
10444    modifierWithKey(this._modifiersWithKeys, SpanFontFamilyModifier.identity, SpanFontFamilyModifier, value);
10445    return this;
10446  }
10447  letterSpacing(value) {
10448    modifierWithKey(this._modifiersWithKeys, SpanLetterSpacingModifier.identity, SpanLetterSpacingModifier, value);
10449    return this;
10450  }
10451  baselineOffset(value) {
10452    modifierWithKey(this._modifiersWithKeys, SpanBaselineOffsetModifier.identity, SpanBaselineOffsetModifier, value);
10453    return this;
10454  }
10455  textCase(value) {
10456    modifierWithKey(this._modifiersWithKeys, SpanTextCaseModifier.identity, SpanTextCaseModifier, value);
10457    return this;
10458  }
10459  textBackgroundStyle(value) {
10460    modifierWithKey(this._modifiersWithKeys, SpanTextBackgroundStyleModifier.identity, SpanTextBackgroundStyleModifier, value);
10461    return this;
10462  }
10463  textShadow(value) {
10464    modifierWithKey(this._modifiersWithKeys, SpanTextShadowModifier.identity, SpanTextShadowModifier, value);
10465    return this;
10466  }
10467}
10468// @ts-ignore
10469if (globalThis.Span !== undefined) {
10470  globalThis.Span.attributeModifier = function (modifier) {
10471    attributeModifierFuncWithoutStateStyles.call(this, modifier, (nativePtr) => {
10472      return new ArkSpanComponent(nativePtr);
10473    }, (nativePtr, classType, modifierJS) => {
10474      return new modifierJS.SpanModifier(nativePtr, classType);
10475    });
10476  };
10477}
10478
10479/// <reference path='./import.ts' />
10480class SideBarContainerPositionModifier extends ModifierWithKey {
10481  constructor(value) {
10482    super(value);
10483  }
10484  applyPeer(node, reset) {
10485    if (reset) {
10486      getUINativeModule().sideBarContainer.resetSideBarPosition(node);
10487    }
10488    else {
10489      getUINativeModule().sideBarContainer.setSideBarPosition(node, this.value);
10490    }
10491  }
10492  checkObjectDiff() {
10493    return !isBaseOrResourceEqual(this.stageValue, this.value);
10494  }
10495}
10496SideBarContainerPositionModifier.identity = Symbol('sideBarContainerPosition');
10497class SideBarContainerAutoHideModifier extends ModifierWithKey {
10498  constructor(value) {
10499    super(value);
10500  }
10501  applyPeer(node, reset) {
10502    if (reset) {
10503      getUINativeModule().sideBarContainer.resetAutoHide(node);
10504    }
10505    else {
10506      getUINativeModule().sideBarContainer.setAutoHide(node, this.value);
10507    }
10508  }
10509  checkObjectDiff() {
10510    return !isBaseOrResourceEqual(this.stageValue, this.value);
10511  }
10512}
10513SideBarContainerAutoHideModifier.identity = Symbol('sideBarContainerautoHide');
10514class SideBarContainerShowSideBarModifier extends ModifierWithKey {
10515  constructor(value) {
10516    super(value);
10517  }
10518  applyPeer(node, reset) {
10519    if (reset) {
10520      getUINativeModule().sideBarContainer.resetShowSideBar(node);
10521    }
10522    else {
10523      getUINativeModule().sideBarContainer.setShowSideBar(node, this.value);
10524    }
10525  }
10526  checkObjectDiff() {
10527    return !isBaseOrResourceEqual(this.stageValue, this.value);
10528  }
10529}
10530SideBarContainerShowSideBarModifier.identity = Symbol('sideBarContainerShowSideBar');
10531class SideBarContainerMaxSideBarWidthModifier extends ModifierWithKey {
10532  constructor(value) {
10533    super(value);
10534  }
10535  applyPeer(node, reset) {
10536    if (reset) {
10537      getUINativeModule().sideBarContainer.resetMaxSideBarWidth(node);
10538    }
10539    else {
10540      getUINativeModule().sideBarContainer.setMaxSideBarWidth(node, this.value);
10541    }
10542  }
10543  checkObjectDiff() {
10544    return !isBaseOrResourceEqual(this.stageValue, this.value);
10545  }
10546}
10547SideBarContainerMaxSideBarWidthModifier.identity = Symbol('sideBarContainerMaxSideBarWidth');
10548class SideBarContainerWidthModifier extends ModifierWithKey {
10549  constructor(value) {
10550    super(value);
10551  }
10552  applyPeer(node, reset) {
10553    if (reset) {
10554      getUINativeModule().sideBarContainer.resetSideBarWidth(node);
10555    }
10556    else {
10557      getUINativeModule().sideBarContainer.setSideBarWidth(node, this.value);
10558    }
10559  }
10560  checkObjectDiff() {
10561    return !isBaseOrResourceEqual(this.stageValue, this.value);
10562  }
10563}
10564SideBarContainerWidthModifier.identity = Symbol('sideBarContainerWidth');
10565class SideBarContainerMinContentWidthModifier extends ModifierWithKey {
10566  constructor(value) {
10567    super(value);
10568  }
10569  applyPeer(node, reset) {
10570    if (reset) {
10571      getUINativeModule().sideBarContainer.resetMinContentWidth(node);
10572    }
10573    else {
10574      getUINativeModule().sideBarContainer.setMinContentWidth(node, this.value);
10575    }
10576  }
10577  checkObjectDiff() {
10578    return !isBaseOrResourceEqual(this.stageValue, this.value);
10579  }
10580}
10581SideBarContainerMinContentWidthModifier.identity = Symbol('sideBarContainerMinContentWidth');
10582class SideBarContainerShowControlButtonModifier extends ModifierWithKey {
10583  constructor(value) {
10584    super(value);
10585  }
10586  applyPeer(node, reset) {
10587    if (reset) {
10588      getUINativeModule().sideBarContainer.resetShowControlButton(node);
10589    }
10590    else {
10591      getUINativeModule().sideBarContainer.setShowControlButton(node, this.value);
10592    }
10593  }
10594  checkObjectDiff() {
10595    return !isBaseOrResourceEqual(this.stageValue, this.value);
10596  }
10597}
10598SideBarContainerShowControlButtonModifier.identity = Symbol('sideBarContainerShowControlButton');
10599class SideBarContainerMinSideBarWidthModifier extends ModifierWithKey {
10600  constructor(value) {
10601    super(value);
10602  }
10603  applyPeer(node, reset) {
10604    if (reset) {
10605      getUINativeModule().sideBarContainer.resetMinSideBarWidth(node);
10606    }
10607    else {
10608      getUINativeModule().sideBarContainer.setMinSideBarWidth(node, this.value);
10609    }
10610  }
10611  checkObjectDiff() {
10612    return !isBaseOrResourceEqual(this.stageValue, this.value);
10613  }
10614}
10615SideBarContainerMinSideBarWidthModifier.identity = Symbol('sideBarContainerMinSideBarWidth');
10616class SideBarContainerControlButtonModifier extends ModifierWithKey {
10617  constructor(value) {
10618    super(value);
10619  }
10620  applyPeer(node, reset) {
10621    let _a, _b, _c;
10622    if (reset) {
10623      getUINativeModule().sideBarContainer.resetControlButton(node);
10624    }
10625    else {
10626      getUINativeModule().sideBarContainer.setControlButton(node, this.value.left,
10627        this.value.top, this.value.width, this.value.height, (_a = this.value.icons) === null ||
10628        _a === void 0 ? void 0 : _a.shown, (_b = this.value.icons) === null ||
10629        _b === void 0 ? void 0 : _b.hidden, (_c = this.value.icons) === null ||
10630        _c === void 0 ? void 0 : _c.switching);
10631    }
10632  }
10633  checkObjectDiff() {
10634    let _a, _b, _c, _d, _e, _f;
10635    if (!(this.stageValue.left === this.value.left &&
10636      this.stageValue.top === this.value.top &&
10637      this.stageValue.width === this.value.width &&
10638      this.stageValue.height === this.value.height)) {
10639      return true;
10640    }
10641    else {
10642      return !isBaseOrResourceEqual((_a = this.stageValue.icons) === null || _a === void 0 ? void 0 : _a.shown, (_b = this.value.icons) === null ||
10643      _b === void 0 ? void 0 : _b.shown) ||
10644        !isBaseOrResourceEqual((_c = this.stageValue.icons) === null || _c === void 0 ? void 0 : _c.hidden, (_d = this.value.icons) === null ||
10645        _d === void 0 ? void 0 : _d.hidden) ||
10646        !isBaseOrResourceEqual((_e = this.stageValue.icons) === null || _e === void 0 ? void 0 : _e.switching, (_f = this.value.icons) === null ||
10647        _f === void 0 ? void 0 : _f.switching);
10648    }
10649  }
10650}
10651SideBarContainerControlButtonModifier.identity = Symbol('sideBarContainercontrolButton');
10652class SideBarContainerDividerModifier extends ModifierWithKey {
10653  constructor(value) {
10654    super(value);
10655  }
10656  applyPeer(node, reset) {
10657    if (reset) {
10658      getUINativeModule().sideBarContainer.resetDivider(node);
10659    }
10660    else {
10661      if (!this.value || !isObject(this.value) || !this.value.strokeWidth) {
10662        getUINativeModule().sideBarContainer.resetDivider(node);
10663      }
10664      else {
10665        getUINativeModule().sideBarContainer.setDivider(node, this.value.strokeWidth, this.value.color, this.value.startMargin, this.value.endMargin);
10666      }
10667    }
10668  }
10669  checkObjectDiff() {
10670    return !isBaseOrResourceEqual(this.stageValue.strokeWidth, this.value.strokeWidth) ||
10671      !isBaseOrResourceEqual(this.stageValue.color, this.value.color) ||
10672      !isBaseOrResourceEqual(this.stageValue.startMargin, this.value.startMargin) ||
10673      !isBaseOrResourceEqual(this.stageValue.endMargin, this.value.endMargin);
10674  }
10675}
10676SideBarContainerDividerModifier.identity = Symbol('sideBarContainerdivider');
10677class ArkSideBarContainerComponent extends ArkComponent {
10678  constructor(nativePtr, classType) {
10679    super(nativePtr, classType);
10680  }
10681  onChange(callback) {
10682    throw new Error('Method not implemented.');
10683  }
10684  autoHide(value) {
10685    modifierWithKey(this._modifiersWithKeys, SideBarContainerAutoHideModifier.identity, SideBarContainerAutoHideModifier, value);
10686    return this;
10687  }
10688  showSideBar(value) {
10689    modifierWithKey(this._modifiersWithKeys, SideBarContainerShowSideBarModifier.identity, SideBarContainerShowSideBarModifier, value);
10690    return this;
10691  }
10692  maxSideBarWidth(value) {
10693    modifierWithKey(this._modifiersWithKeys, SideBarContainerMaxSideBarWidthModifier.identity, SideBarContainerMaxSideBarWidthModifier, value);
10694    return this;
10695  }
10696  minSideBarWidth(value) {
10697    modifierWithKey(this._modifiersWithKeys, SideBarContainerMinSideBarWidthModifier.identity, SideBarContainerMinSideBarWidthModifier, value);
10698    return this;
10699  }
10700  minContentWidth(value) {
10701    modifierWithKey(this._modifiersWithKeys, SideBarContainerMinContentWidthModifier.identity, SideBarContainerMinContentWidthModifier, value);
10702    return this;
10703  }
10704  controlButton(value) {
10705    modifierWithKey(this._modifiersWithKeys, SideBarContainerControlButtonModifier.identity, SideBarContainerControlButtonModifier, value);
10706    return this;
10707  }
10708  divider(value) {
10709    modifierWithKey(this._modifiersWithKeys, SideBarContainerDividerModifier.identity, SideBarContainerDividerModifier, value);
10710    return this;
10711  }
10712  sideBarPosition(value) {
10713    modifierWithKey(this._modifiersWithKeys, SideBarContainerPositionModifier.identity, SideBarContainerPositionModifier, value);
10714    return this;
10715  }
10716  sideBarWidth(value) {
10717    modifierWithKey(this._modifiersWithKeys, SideBarContainerWidthModifier.identity, SideBarContainerWidthModifier, value);
10718    return this;
10719  }
10720  showControlButton(value) {
10721    modifierWithKey(this._modifiersWithKeys, SideBarContainerShowControlButtonModifier.identity, SideBarContainerShowControlButtonModifier, value);
10722    return this;
10723  }
10724}
10725// @ts-ignore
10726if (globalThis.SideBarContainer !== undefined) {
10727  globalThis.SideBarContainer.attributeModifier = function (modifier) {
10728    attributeModifierFunc.call(this, modifier, (nativePtr) => {
10729      return new ArkSideBarContainerComponent(nativePtr);
10730    }, (nativePtr, classType, modifierJS) => {
10731      return new modifierJS.SideBarContainerModifier(nativePtr, classType);
10732    });
10733  };
10734}
10735
10736/// <reference path='./import.ts' />
10737class ArkStackComponent extends ArkComponent {
10738  constructor(nativePtr, classType) {
10739    super(nativePtr, classType);
10740  }
10741  initialize(value) {
10742    if (value[0] !== undefined) {
10743      this.alignContent(value[0].alignContent);
10744    }
10745    return this
10746  }
10747  alignContent(value) {
10748    modifierWithKey(this._modifiersWithKeys, StackAlignContentModifier.identity, StackAlignContentModifier, value);
10749    return this;
10750  }
10751  align(value) {
10752    modifierWithKey(this._modifiersWithKeys, StackAlignContentModifier.identity, StackAlignContentModifier, value);
10753    return this;
10754  }
10755  pointLight(value) {
10756    modifierWithKey(this._modifiersWithKeys, StackPointLightModifier.identity, StackPointLightModifier, value);
10757    return this;
10758  }
10759}
10760class StackPointLightModifier extends ModifierWithKey {
10761  constructor(value) {
10762    super(value);
10763  }
10764  applyPeer(node, reset) {
10765    if (reset) {
10766      getUINativeModule().common.resetPointLightStyle(node);
10767    } else {
10768      let positionX;
10769      let positionY;
10770      let positionZ;
10771      let intensity;
10772      let color;
10773      let illuminated;
10774      let bloom;
10775      if (!isUndefined(this.value.lightSource) && this.value.lightSource != null) {
10776        positionX = this.value.lightSource.positionX;
10777        positionY = this.value.lightSource.positionY;
10778        positionZ = this.value.lightSource.positionZ;
10779        intensity = this.value.lightSource.intensity;
10780        color = this.value.lightSource.color;
10781      }
10782      illuminated = this.value.illuminated;
10783      bloom = this.value.bloom;
10784      getUINativeModule().common.setPointLightStyle(node, positionX, positionY, positionZ, intensity, color,
10785        illuminated, bloom);
10786    }
10787  }
10788  checkObjectDiff() {
10789    return !isBaseOrResourceEqual(this.stageValue.lightSource?.positionX, this.value.lightSource?.positionX) ||
10790    !isBaseOrResourceEqual(this.stageValue.lightSource?.positionY, this.value.lightSource?.positionY) ||
10791    !isBaseOrResourceEqual(this.stageValue.lightSource?.positionZ, this.value.lightSource?.positionZ) ||
10792    !isBaseOrResourceEqual(this.stageValue.lightSource?.intensity, this.value.lightSource?.intensity) ||
10793    !isBaseOrResourceEqual(this.stageValue.lightSource?.color, this.value.lightSource?.color) ||
10794    !isBaseOrResourceEqual(this.stageValue.illuminated, this.value.illuminated) ||
10795    !isBaseOrResourceEqual(this.stageValue.bloom, this.value.bloom);
10796  }
10797}
10798StackPointLightModifier.identity = Symbol('stackPointLight');
10799class StackAlignContentModifier extends ModifierWithKey {
10800  constructor(value) {
10801    super(value);
10802  }
10803  applyPeer(node, reset) {
10804    if (reset) {
10805      getUINativeModule().stack.resetAlignContent(node);
10806    }
10807    else {
10808      getUINativeModule().stack.setAlignContent(node, this.value);
10809    }
10810  }
10811  checkObjectDiff() {
10812    return this.stageValue !== this.value;
10813  }
10814}
10815StackAlignContentModifier.identity = Symbol('stackAlignContent');
10816// @ts-ignore
10817if (globalThis.Stack !== undefined) {
10818  globalThis.Stack.attributeModifier = function (modifier) {
10819    attributeModifierFunc.call(this, modifier, (nativePtr) => {
10820      return new ArkStackComponent(nativePtr);
10821    }, (nativePtr, classType, modifierJS) => {
10822      return new modifierJS.StackModifier(nativePtr, classType);
10823    });
10824  };
10825}
10826
10827/// <reference path='./import.ts' />
10828class ArkFolderStackComponent extends ArkComponent {
10829  constructor(nativePtr, classType) {
10830    super(nativePtr, classType);
10831  }
10832  alignContent(value) {
10833    modifierWithKey(this._modifiersWithKeys, FolderStackAlignContentModifier.identity, FolderStackAlignContentModifier, value);
10834    return this;
10835  }
10836  enableAnimation(value) {
10837    modifierWithKey(this._modifiersWithKeys, FolderStackEnableAnimationModifier.identity, FolderStackEnableAnimationModifier, value);
10838    return this;
10839  }
10840  autoHalfFold(value) {
10841    modifierWithKey(this._modifiersWithKeys, FolderStackAutoHalfFoldModifier.identity, FolderStackAutoHalfFoldModifier, value);
10842    return this;
10843  }
10844}
10845
10846class FolderStackAlignContentModifier extends ModifierWithKey {
10847  constructor(value) {
10848    super(value);
10849  }
10850  applyPeer(node, reset) {
10851    if (reset) {
10852      getUINativeModule().stack.resetAlignContent(node);
10853    } else {
10854      getUINativeModule().stack.setAlignContent(node, this.value);
10855    }
10856  }
10857}
10858FolderStackAlignContentModifier.identity = Symbol('folderStackAlignContent');
10859
10860class FolderStackEnableAnimationModifier extends ModifierWithKey {
10861  constructor(value) {
10862    super(value);
10863  }
10864  applyPeer(node, reset) {
10865    if (reset) {
10866      getUINativeModule().folderStack.resetEnableAnimation(node);
10867    } else {
10868      getUINativeModule().folderStack.setEnableAnimation(node, this.value);
10869    }
10870  }
10871}
10872FolderStackEnableAnimationModifier.identity = Symbol('folderStackEnableAnimation');
10873
10874class FolderStackAutoHalfFoldModifier extends ModifierWithKey {
10875  constructor(value) {
10876    super(value);
10877  }
10878  applyPeer(node, reset) {
10879    if (reset) {
10880      getUINativeModule().folderStack.resetAutoHalfFold(node);
10881    } else {
10882      getUINativeModule().folderStack.setAutoHalfFold(node, this.value);
10883    }
10884  }
10885}
10886FolderStackAutoHalfFoldModifier.identity = Symbol('folderStackAutoHalfFold');
10887
10888// @ts-ignore
10889if (globalThis.FolderStack !== undefined) {
10890  globalThis.FolderStack.attributeModifier = function (modifier) {
10891    attributeModifierFunc.call(this, modifier, (nativePtr) => {
10892      return new ArkFolderStackComponent(nativePtr);
10893    }, (nativePtr, classType, modifierJS) => {
10894      return new modifierJS.FolderStackModifier(nativePtr, classType);
10895    });
10896  };
10897}
10898
10899/// <reference path='./import.ts' />
10900class TextEnableDataDetectorModifier extends ModifierWithKey {
10901  constructor(value) {
10902    super(value);
10903  }
10904  applyPeer(node, reset) {
10905    if (reset) {
10906      getUINativeModule().text.resetEnableDataDetector(node);
10907    }
10908    else {
10909      getUINativeModule().text.setEnableDataDetector(node, this.value);
10910    }
10911  }
10912  checkObjectDiff() {
10913    return !isBaseOrResourceEqual(this.stageValue, this.value);
10914  }
10915}
10916TextEnableDataDetectorModifier.identity = Symbol('textEnableDataDetector');
10917class FontColorModifier extends ModifierWithKey {
10918  constructor(value) {
10919    super(value);
10920  }
10921  applyPeer(node, reset) {
10922    if (reset) {
10923      getUINativeModule().text.resetFontColor(node);
10924    }
10925    else {
10926      getUINativeModule().text.setFontColor(node, this.value);
10927    }
10928  }
10929  checkObjectDiff() {
10930    return !isBaseOrResourceEqual(this.stageValue, this.value);
10931  }
10932}
10933FontColorModifier.identity = Symbol('textFontColor');
10934class TextForegroundColorModifier extends ModifierWithKey {
10935  constructor(value) {
10936    super(value);
10937  }
10938  applyPeer(node, reset) {
10939    if (reset) {
10940      getUINativeModule().text.resetTextForegroundColor(node);
10941    }
10942    else {
10943      getUINativeModule().text.setTextForegroundColor(node, this.value);
10944    }
10945  }
10946  checkObjectDiff() {
10947    return !isBaseOrResourceEqual(this.stageValue, this.value);
10948  }
10949}
10950TextForegroundColorModifier.identity = Symbol('textForegroundColor');
10951class FontSizeModifier extends ModifierWithKey {
10952  constructor(value) {
10953    super(value);
10954  }
10955  applyPeer(node, reset) {
10956    if (reset) {
10957      getUINativeModule().text.resetFontSize(node);
10958    }
10959    else {
10960      getUINativeModule().text.setFontSize(node, this.value);
10961    }
10962  }
10963  checkObjectDiff() {
10964    return !isBaseOrResourceEqual(this.stageValue, this.value);
10965  }
10966}
10967FontSizeModifier.identity = Symbol('textFontSize');
10968class FontWeightModifier extends ModifierWithKey {
10969  constructor(value) {
10970    super(value);
10971  }
10972  applyPeer(node, reset) {
10973    if (reset) {
10974      getUINativeModule().text.resetFontWeight(node);
10975    }
10976    else {
10977      getUINativeModule().text.setFontWeight(node, this.value.value, this.value.enableVariableFontWeight);
10978    }
10979  }
10980}
10981FontWeightModifier.identity = Symbol('textFontWeight');
10982class FontStyleModifier extends ModifierWithKey {
10983  constructor(value) {
10984    super(value);
10985  }
10986  applyPeer(node, reset) {
10987    if (reset) {
10988      getUINativeModule().text.resetFontStyle(node);
10989    }
10990    else {
10991      getUINativeModule().text.setFontStyle(node, this.value);
10992    }
10993  }
10994}
10995FontStyleModifier.identity = Symbol('textFontStyle');
10996class TextAlignModifier extends ModifierWithKey {
10997  constructor(value) {
10998    super(value);
10999  }
11000  applyPeer(node, reset) {
11001    if (reset) {
11002      getUINativeModule().text.resetTextAlign(node);
11003    }
11004    else {
11005      getUINativeModule().text.setTextAlign(node, this.value);
11006    }
11007  }
11008}
11009TextAlignModifier.identity = Symbol('textAlign');
11010class TextHeightAdaptivePolicyModifier extends ModifierWithKey {
11011  constructor(value) {
11012    super(value);
11013  }
11014  applyPeer(node, reset) {
11015    if (reset) {
11016      getUINativeModule().text.resetHeightAdaptivePolicy(node);
11017    }
11018    else {
11019      getUINativeModule().text.setHeightAdaptivePolicy(node, this.value);
11020    }
11021  }
11022  checkObjectDiff() {
11023    return !isBaseOrResourceEqual(this.stageValue, this.value);
11024  }
11025}
11026TextHeightAdaptivePolicyModifier.identity = Symbol('textHeightAdaptivePolicy');
11027class TextDraggableModifier extends ModifierWithKey {
11028  constructor(value) {
11029    super(value);
11030  }
11031  applyPeer(node, reset) {
11032    if (reset) {
11033      getUINativeModule().text.resetDraggable(node);
11034    }
11035    else {
11036      getUINativeModule().text.setDraggable(node, this.value);
11037    }
11038  }
11039  checkObjectDiff() {
11040    return !isBaseOrResourceEqual(this.stageValue, this.value);
11041  }
11042}
11043TextDraggableModifier.identity = Symbol('textDraggable');
11044class TextPrivacySensitiveModifier extends ModifierWithKey {
11045  constructor(value) {
11046    super(value);
11047  }
11048  applyPeer(node, reset) {
11049    if (reset) {
11050      getUINativeModule().text.resetPrivacySensitive(node);
11051    }
11052    else {
11053      getUINativeModule().text.setPrivacySensitive(node, this.value);
11054    }
11055  }
11056  checkObjectDiff() {
11057    return !isBaseOrResourceEqual(this.stageValue, this.value);
11058  }
11059}
11060TextPrivacySensitiveModifier.identity = Symbol('textPrivacySensitive');
11061class TextWordBreakModifier extends ModifierWithKey {
11062  constructor(value) {
11063    super(value);
11064  }
11065  applyPeer(node, reset) {
11066    if (reset) {
11067      getUINativeModule().text.resetWordBreak(node);
11068    }
11069    else {
11070      getUINativeModule().text.setWordBreak(node, this.value);
11071    }
11072  }
11073  checkObjectDiff() {
11074    return !isBaseOrResourceEqual(this.stageValue, this.value);
11075  }
11076}
11077TextWordBreakModifier.identity = Symbol('textWordBreak');
11078
11079class TextLineBreakStrategyModifier extends ModifierWithKey {
11080  constructor(value) {
11081    super(value);
11082  }
11083  applyPeer(node, reset) {
11084    if (reset) {
11085      getUINativeModule().text.resetLineBreakStrategy(node);
11086    }
11087    else {
11088      getUINativeModule().text.setLineBreakStrategy(node, this.value);
11089    }
11090  }
11091  checkObjectDiff() {
11092    return !isBaseOrResourceEqual(this.stageValue, this.value);
11093  }
11094}
11095TextLineBreakStrategyModifier.identity = Symbol('textLineBreakStrategy');
11096
11097class TextFontFeatureModifier extends ModifierWithKey {
11098  constructor(value) {
11099    super(value);
11100  }
11101  applyPeer(node, reset) {
11102    if (reset) {
11103      getUINativeModule().text.resetFontFeature(node);
11104    } else {
11105      getUINativeModule().text.setFontFeature(node, this.value);
11106    }
11107  }
11108  checkObjectDiff() {
11109    return !isBaseOrResourceEqual(this.stageValue, this.value);
11110  }
11111}
11112TextFontFeatureModifier.identity = Symbol('textFontFeature');
11113
11114class TextEllipsisModeModifier extends ModifierWithKey {
11115  constructor(value) {
11116    super(value);
11117  }
11118  applyPeer(node, reset) {
11119    if (reset) {
11120      getUINativeModule().text.resetEllipsisMode(node);
11121    }
11122    else {
11123      getUINativeModule().text.setEllipsisMode(node, this.value);
11124    }
11125  }
11126  checkObjectDiff() {
11127    return !isBaseOrResourceEqual(this.stageValue, this.value);
11128  }
11129}
11130TextEllipsisModeModifier.identity = Symbol('textEllipsisMode');
11131class TextMinFontSizeModifier extends ModifierWithKey {
11132  constructor(value) {
11133    super(value);
11134  }
11135  applyPeer(node, reset) {
11136    if (reset) {
11137      getUINativeModule().text.resetMinFontSize(node);
11138    }
11139    else if (!isNumber(this.value) && !isString(this.value) && !isResource(this.value)) {
11140      getUINativeModule().text.resetMinFontSize(node);
11141    }
11142    else {
11143      getUINativeModule().text.setMinFontSize(node, this.value);
11144    }
11145  }
11146  checkObjectDiff() {
11147    return !isBaseOrResourceEqual(this.stageValue, this.value);
11148  }
11149}
11150TextMinFontSizeModifier.identity = Symbol('textMinFontSize');
11151class TextMaxFontSizeModifier extends ModifierWithKey {
11152  constructor(value) {
11153    super(value);
11154  }
11155  applyPeer(node, reset) {
11156    if (reset) {
11157      getUINativeModule().text.resetMaxFontSize(node);
11158    }
11159    else if (!isNumber(this.value) && !isString(this.value) && !isResource(this.value)) {
11160      getUINativeModule().text.resetMaxFontSize(node);
11161    }
11162    else {
11163      getUINativeModule().text.setMaxFontSize(node, this.value);
11164    }
11165  }
11166  checkObjectDiff() {
11167    return !isBaseOrResourceEqual(this.stageValue, this.value);
11168  }
11169}
11170TextMaxFontSizeModifier.identity = Symbol('textMaxFontSize');
11171class TextMinFontScaleModifier extends ModifierWithKey {
11172  constructor(value) {
11173    super(value);
11174  }
11175  applyPeer(node, reset) {
11176    if (reset) {
11177      getUINativeModule().text.resetMinFontScale(node);
11178    }
11179    else if (!isNumber(this.value) && !isResource(this.value)) {
11180      getUINativeModule().text.resetMinFontScale(node);
11181    }
11182    else {
11183      getUINativeModule().text.setMinFontScale(node, this.value);
11184    }
11185  }
11186  checkObjectDiff() {
11187    return !isBaseOrResourceEqual(this.stageValue, this.value);
11188  }
11189}
11190TextMinFontScaleModifier.identity = Symbol('textMinFontScale');
11191class TextMaxFontScaleModifier extends ModifierWithKey {
11192  constructor(value) {
11193    super(value);
11194  }
11195  applyPeer(node, reset) {
11196    if (reset) {
11197      getUINativeModule().text.resetMaxFontScale(node);
11198    }
11199    else if (!isNumber(this.value) && !isResource(this.value)) {
11200      getUINativeModule().text.resetMaxFontScale(node);
11201    }
11202    else {
11203      getUINativeModule().text.setMaxFontScale(node, this.value);
11204    }
11205  }
11206  checkObjectDiff() {
11207    return !isBaseOrResourceEqual(this.stageValue, this.value);
11208  }
11209}
11210TextMaxFontScaleModifier.identity = Symbol('textMaxFontScale');
11211class TextLineHeightModifier extends ModifierWithKey {
11212  constructor(value) {
11213    super(value);
11214  }
11215  applyPeer(node, reset) {
11216    if (reset) {
11217      getUINativeModule().text.resetLineHeight(node);
11218    }
11219    else if (!isNumber(this.value) && !isString(this.value) && !isResource(this.value)) {
11220      getUINativeModule().text.resetLineHeight(node);
11221    }
11222    else {
11223      getUINativeModule().text.setLineHeight(node, this.value);
11224    }
11225  }
11226  checkObjectDiff() {
11227    return !isBaseOrResourceEqual(this.stageValue, this.value);
11228  }
11229}
11230TextLineHeightModifier.identity = Symbol('textLineHeight');
11231class TextCopyOptionModifier extends ModifierWithKey {
11232  constructor(value) {
11233    super(value);
11234  }
11235  applyPeer(node, reset) {
11236    if (reset) {
11237      getUINativeModule().text.resetCopyOption(node);
11238    }
11239    else {
11240      getUINativeModule().text.setCopyOption(node, this.value);
11241    }
11242  }
11243  checkObjectDiff() {
11244    return !isBaseOrResourceEqual(this.stageValue, this.value);
11245  }
11246}
11247TextCopyOptionModifier.identity = Symbol('textCopyOption');
11248class TextFontFamilyModifier extends ModifierWithKey {
11249  constructor(value) {
11250    super(value);
11251  }
11252  applyPeer(node, reset) {
11253    if (reset) {
11254      getUINativeModule().text.resetFontFamily(node);
11255    }
11256    else if (!isString(this.value) && !isResource(this.value)) {
11257      getUINativeModule().text.resetFontFamily(node);
11258    }
11259    else {
11260      getUINativeModule().text.setFontFamily(node, this.value);
11261    }
11262  }
11263  checkObjectDiff() {
11264    return !isBaseOrResourceEqual(this.stageValue, this.value);
11265  }
11266}
11267TextFontFamilyModifier.identity = Symbol('textFontFamily');
11268class TextMaxLinesModifier extends ModifierWithKey {
11269  constructor(value) {
11270    super(value);
11271  }
11272  applyPeer(node, reset) {
11273    if (reset) {
11274      getUINativeModule().text.resetMaxLines(node);
11275    }
11276    else if (!isNumber(this.value)) {
11277      getUINativeModule().text.resetMaxLines(node);
11278    }
11279    else {
11280      getUINativeModule().text.setMaxLines(node, this.value);
11281    }
11282  }
11283  checkObjectDiff() {
11284    return !isBaseOrResourceEqual(this.stageValue, this.value);
11285  }
11286}
11287TextMaxLinesModifier.identity = Symbol('textMaxLines');
11288class TextLetterSpacingModifier extends ModifierWithKey {
11289  constructor(value) {
11290    super(value);
11291  }
11292  applyPeer(node, reset) {
11293    if (reset) {
11294      getUINativeModule().text.resetLetterSpacing(node);
11295    }
11296    else if (!isNumber(this.value) && !isString(this.value)) {
11297      getUINativeModule().text.resetLetterSpacing(node);
11298    }
11299    else {
11300      getUINativeModule().text.setLetterSpacing(node, this.value);
11301    }
11302  }
11303  checkObjectDiff() {
11304    return !isBaseOrResourceEqual(this.stageValue, this.value);
11305  }
11306}
11307TextLetterSpacingModifier.identity = Symbol('textLetterSpacing');
11308class TextLineSpacingModifier extends ModifierWithKey {
11309  constructor(value) {
11310    super(value);
11311  }
11312  applyPeer(node, reset) {
11313    if (reset) {
11314      getUINativeModule().text.resetLineSpacing(node);
11315    }
11316    else if (!isObject(this.value)) {
11317      getUINativeModule().text.resetLineSpacing(node);
11318    }
11319    else {
11320      getUINativeModule().text.setLineSpacing(node, this.value);
11321    }
11322  }
11323  checkObjectDiff() {
11324    return !isBaseOrResourceEqual(this.stageValue, this.value);
11325  }
11326}
11327TextLineSpacingModifier.identity = Symbol('textLineSpacing');
11328class TextTextOverflowModifier extends ModifierWithKey {
11329  constructor(value) {
11330    super(value);
11331  }
11332  applyPeer(node, reset) {
11333    if (reset) {
11334      getUINativeModule().text.resetTextOverflow(node);
11335    }
11336    else {
11337      getUINativeModule().text.setTextOverflow(node, this.value.overflow);
11338    }
11339  }
11340  checkObjectDiff() {
11341    return !isBaseOrResourceEqual(this.stageValue.overflow, this.value.overflow);
11342  }
11343}
11344TextTextOverflowModifier.identity = Symbol('textTextOverflow');
11345class TextBaselineOffsetModifier extends ModifierWithKey {
11346  constructor(value) {
11347    super(value);
11348  }
11349  applyPeer(node, reset) {
11350    if (reset) {
11351      getUINativeModule().text.resetBaselineOffset(node);
11352    }
11353    else if (!isNumber(this.value) && !isString(this.value)) {
11354      getUINativeModule().text.resetBaselineOffset(node);
11355    }
11356    else {
11357      getUINativeModule().text.setBaselineOffset(node, this.value);
11358    }
11359  }
11360  checkObjectDiff() {
11361    return !isBaseOrResourceEqual(this.stageValue, this.value);
11362  }
11363}
11364TextBaselineOffsetModifier.identity = Symbol('textBaselineOffset');
11365class TextTextCaseModifier extends ModifierWithKey {
11366  constructor(value) {
11367    super(value);
11368  }
11369  applyPeer(node, reset) {
11370    if (reset) {
11371      getUINativeModule().text.resetTextCase(node);
11372    }
11373    else {
11374      getUINativeModule().text.setTextCase(node, this.value);
11375    }
11376  }
11377  checkObjectDiff() {
11378    return !isBaseOrResourceEqual(this.stageValue, this.value);
11379  }
11380}
11381TextTextCaseModifier.identity = Symbol('textTextCase');
11382class TextTextIndentModifier extends ModifierWithKey {
11383  constructor(value) {
11384    super(value);
11385  }
11386  applyPeer(node, reset) {
11387    if (reset) {
11388      getUINativeModule().text.resetTextIndent(node);
11389    }
11390    else if (!isNumber(this.value) && !isString(this.value) && !isResource(this.value)) {
11391      getUINativeModule().text.resetTextIndent(node);
11392    }
11393    else {
11394      getUINativeModule().text.setTextIndent(node, this.value);
11395    }
11396  }
11397  checkObjectDiff() {
11398    return !isBaseOrResourceEqual(this.stageValue, this.value);
11399  }
11400}
11401TextTextIndentModifier.identity = Symbol('textTextIndent');
11402class TextTextShadowModifier extends ModifierWithKey {
11403  constructor(value) {
11404    super(value);
11405  }
11406  applyPeer(node, reset) {
11407    if (reset) {
11408      getUINativeModule().text.resetTextShadow(node);
11409    }
11410    else {
11411      let shadow = new ArkShadowInfoToArray();
11412      if (!shadow.convertShadowOptions(this.value)) {
11413        getUINativeModule().text.resetTextShadow(node);
11414      }
11415      else {
11416        getUINativeModule().text.setTextShadow(node, shadow.radius, shadow.type, shadow.color,
11417          shadow.offsetX, shadow.offsetY, shadow.fill, shadow.radius.length);
11418      }
11419    }
11420  }
11421  checkObjectDiff() {
11422    let checkDiff = true;
11423    let arkShadow = new ArkShadowInfoToArray();
11424    if (Object.getPrototypeOf(this.stageValue).constructor === Object &&
11425      Object.getPrototypeOf(this.value).constructor === Object) {
11426      checkDiff = arkShadow.checkDiff(this.stageValue, this.value);
11427    }
11428    else if (Object.getPrototypeOf(this.stageValue).constructor === Array &&
11429      Object.getPrototypeOf(this.value).constructor === Array &&
11430      this.stageValue.length === this.value.length) {
11431      let isDiffItem = false;
11432      for (let i = 0; i < this.value.length; i++) {
11433        if (arkShadow.checkDiff(this.stageValue[i], this.value[1])) {
11434          isDiffItem = true;
11435          break;
11436        }
11437      }
11438      if (!isDiffItem) {
11439        checkDiff = false;
11440      }
11441    }
11442    return checkDiff;
11443  }
11444}
11445TextTextShadowModifier.identity = Symbol('textTextShadow');
11446class TextDecorationModifier extends ModifierWithKey {
11447  constructor(value) {
11448    super(value);
11449  }
11450  applyPeer(node, reset) {
11451    if (reset) {
11452      getUINativeModule().text.resetDecoration(node);
11453    }
11454    else {
11455      getUINativeModule().text.setDecoration(node, this.value.type, this.value.color, this.value.style);
11456    }
11457  }
11458  checkObjectDiff() {
11459    if (this.stageValue.type !== this.value.type || this.stageValue.style !== this.value.style) {
11460      return true;
11461    }
11462    if (isResource(this.stageValue.color) && isResource(this.value.color)) {
11463      return !isResourceEqual(this.stageValue.color, this.value.color);
11464    }
11465    else if (!isResource(this.stageValue.color) && !isResource(this.value.color)) {
11466      return !(this.stageValue.color === this.value.color);
11467    }
11468    else {
11469      return true;
11470    }
11471  }
11472}
11473TextDecorationModifier.identity = Symbol('textDecoration');
11474class TextFontModifier extends ModifierWithKey {
11475  constructor(value) {
11476    super(value);
11477  }
11478  applyPeer(node, reset) {
11479    if (reset) {
11480      getUINativeModule().text.resetFont(node);
11481    }
11482    else {
11483      getUINativeModule().text.setFont(node, this.value.value.size, this.value.value.weight, this.value.value.family,
11484        this.value.value.style, this.value.enableVariableFontWeight);
11485    }
11486  }
11487  checkObjectDiff() {
11488    if (this.stageValue.weight !== this.value.weight || this.stageValue.style !== this.value.style ||
11489      this.stageValue.enableVariableFontWeight !== this.value.enableVariableFontWeight) {
11490      return true;
11491    }
11492    if (((isResource(this.stageValue.size) && isResource(this.value.size) &&
11493      isResourceEqual(this.stageValue.size, this.value.size)) ||
11494      (!isResource(this.stageValue.size) && !isResource(this.value.size) &&
11495        this.stageValue.size === this.value.size)) &&
11496      ((isResource(this.stageValue.family) && isResource(this.value.family) &&
11497        isResourceEqual(this.stageValue.family, this.value.family)) ||
11498        (!isResource(this.stageValue.family) && !isResource(this.value.family) &&
11499          this.stageValue.family === this.value.family))) {
11500      return false;
11501    }
11502    else {
11503      return true;
11504    }
11505  }
11506}
11507TextFontModifier.identity = Symbol('textFont');
11508class TextClipModifier extends ModifierWithKey {
11509  constructor(value) {
11510    super(value);
11511  }
11512  applyPeer(node, reset) {
11513    if (reset) {
11514      getUINativeModule().common.resetClipWithEdge(node);
11515    }
11516    else {
11517      getUINativeModule().common.setClipWithEdge(node, this.value);
11518    }
11519  }
11520  checkObjectDiff() {
11521    return true;
11522  }
11523}
11524TextClipModifier.identity = Symbol('textClip');
11525class TextContentModifier extends ModifierWithKey {
11526  constructor(value) {
11527    super(value);
11528  }
11529  applyPeer(node, reset) {
11530    if (reset) {
11531      getUINativeModule().text.setContent(node, '');
11532    }
11533    else {
11534      getUINativeModule().text.setContent(node, this.value);
11535    }
11536  }
11537}
11538TextContentModifier.identity = Symbol('textContent');
11539class TextSelectionModifier extends ModifierWithKey {
11540  constructor(value) {
11541    super(value);
11542  }
11543  applyPeer(node, reset) {
11544    if (reset) {
11545      getUINativeModule().text.resetSelection(node);
11546    } else {
11547      getUINativeModule().text.setSelection(node, this.value.selectionStart, this.value.selectionEnd);
11548    }
11549  }
11550  checkObjectDiff() {
11551    return !isBaseOrResourceEqual(this.stageValue.selectionStart, this.value.selectionStart) ||
11552    !isBaseOrResourceEqual(this.stageValue.selectionEnd, this.value.selectionEnd);
11553  }
11554}
11555TextSelectionModifier.identity = Symbol('textSelection');
11556class TextSelectableModifier extends ModifierWithKey {
11557  constructor(value) {
11558    super(value);
11559  }
11560  applyPeer(node, reset) {
11561    if (reset) {
11562      getUINativeModule().text.resetTextSelectableMode(node);
11563    } else {
11564      getUINativeModule().text.setTextSelectableMode(node, this.value);
11565    }
11566  }
11567  checkObjectDiff() {
11568    return !isBaseOrResourceEqual(this.stageValue, this.value);
11569  }
11570}
11571TextSelectableModifier.identity = Symbol('textTextSelectable');
11572class TextCaretColorModifier extends ModifierWithKey {
11573  constructor(value) {
11574    super(value);
11575  }
11576  applyPeer(node, reset) {
11577    if (reset) {
11578      getUINativeModule().text.resetCaretColor(node);
11579    } else {
11580      getUINativeModule().text.setCaretColor(node, this.value);
11581    }
11582  }
11583  checkObjectDiff() {
11584    return !isBaseOrResourceEqual(this.stageValue, this.value);
11585  }
11586}
11587TextCaretColorModifier.identity = Symbol('textCaretColor');
11588class TextSelectedBackgroundColorModifier extends ModifierWithKey {
11589  constructor(value) {
11590    super(value);
11591  }
11592  applyPeer(node, reset) {
11593    if (reset) {
11594      getUINativeModule().text.resetSelectedBackgroundColor(node);
11595    } else {
11596      getUINativeModule().text.setSelectedBackgroundColor(node, this.value);
11597    }
11598  }
11599  checkObjectDiff() {
11600    return !isBaseOrResourceEqual(this.stageValue, this.value);
11601  }
11602}
11603TextSelectedBackgroundColorModifier.identity = Symbol('textSelectedBackgroundColor');
11604class TextDataDetectorConfigModifier extends ModifierWithKey {
11605  constructor(value) {
11606    super(value);
11607  }
11608  applyPeer(node, reset) {
11609    if (reset) {
11610      getUINativeModule().text.resetDataDetectorConfig(node);
11611    } else {
11612      getUINativeModule().text.setDataDetectorConfig(node, this.value.types, this.value.onDetectResultUpdate,
11613        this.value.color, this.value.decorationType, this.value.decorationColor, this.value.decorationStyle);
11614    }
11615  }
11616  checkObjectDiff() {
11617    return !isBaseOrResourceEqual(this.stageValue.types, this.value.types) ||
11618    !isBaseOrResourceEqual(this.stageValue.onDetectResultUpdate, this.value.onDetectResultUpdate) ||
11619    !isBaseOrResourceEqual(this.stageValue.color, this.value.color) ||
11620    !isBaseOrResourceEqual(this.stageValue.decorationType, this.value.decorationType) ||
11621    !isBaseOrResourceEqual(this.stageValue.decorationColor, this.value.decorationColor) ||
11622    !isBaseOrResourceEqual(this.stageValue.decorationStyle, this.value.decorationStyle);
11623  }
11624}
11625TextDataDetectorConfigModifier.identity = Symbol('textDataDetectorConfig');
11626class TextOnCopyModifier extends ModifierWithKey {
11627  constructor(value) {
11628    super(value);
11629  }
11630  applyPeer(node, reset) {
11631    if (reset) {
11632      getUINativeModule().text.resetOnCopy(node);
11633    } else {
11634      getUINativeModule().text.setOnCopy(node, this.value);
11635    }
11636  }
11637}
11638TextOnCopyModifier.identity = Symbol('textOnCopy');
11639class TextOnTextSelectionChangeModifier extends ModifierWithKey {
11640  constructor(value) {
11641    super(value);
11642  }
11643  applyPeer(node, reset) {
11644    if (reset) {
11645      getUINativeModule().text.resetOnTextSelectionChange(node);
11646    } else {
11647      getUINativeModule().text.setOnTextSelectionChange(node, this.value);
11648    }
11649  }
11650}
11651TextOnTextSelectionChangeModifier.identity = Symbol('textOnTextSelectionChange');
11652
11653class TextControllerModifier extends ModifierWithKey {
11654  constructor(value) {
11655    super(value);
11656  }
11657  applyPeer(node, reset) {
11658    if (reset) {
11659      getUINativeModule().text.setTextController(node, '');
11660    }
11661    else {
11662      getUINativeModule().text.setTextController(node, this.value);
11663    }
11664  }
11665}
11666TextControllerModifier.identity = Symbol('textController');
11667
11668class TextEditMenuOptionsModifier extends ModifierWithKey {
11669  constructor(value) {
11670    super(value);
11671  }
11672  applyPeer(node, reset) {
11673    if (reset) {
11674      getUINativeModule().text.resetSelectionMenuOptions(node);
11675    } else {
11676      getUINativeModule().text.setSelectionMenuOptions(node, this.value);
11677    }
11678  }
11679}
11680TextEditMenuOptionsModifier.identity = Symbol('textEditMenuOptions');
11681
11682class TextHalfLeadingModifier extends ModifierWithKey {
11683  constructor(value) {
11684    super(value);
11685  }
11686  applyPeer(node, reset) {
11687    if (reset) {
11688      getUINativeModule().text.resetHalfLeading(node);
11689    }
11690    else {
11691      getUINativeModule().text.setHalfLeading(node, this.value);
11692    }
11693  }
11694  checkObjectDiff() {
11695    return !isBaseOrResourceEqual(this.stageValue, this.value);
11696  }
11697}
11698TextHalfLeadingModifier.identity = Symbol('textHalfLeading');
11699
11700class TextOnClickModifier extends ModifierWithKey {
11701  constructor(value) {
11702    super(value);
11703  }
11704  applyPeer(node, reset) {
11705    if (reset) {
11706      getUINativeModule().text.resetOnClick(node);
11707    }
11708    else {
11709      getUINativeModule().text.setOnClick(node, this.value);
11710    }
11711  }
11712  checkObjectDiff() {
11713    return !isBaseOrResourceEqual(this.stageValue, this.value);
11714  }
11715}
11716TextOnClickModifier.identity = Symbol('textOnClick');
11717
11718class TextResponseRegionModifier extends ModifierWithKey {
11719  constructor(value) {
11720    super(value);
11721  }
11722  applyPeer(node, reset) {
11723    let _a, _b, _c, _d, _e, _f, _g, _h;
11724    if (reset) {
11725      getUINativeModule().text.resetResponseRegion(node);
11726    }
11727    else {
11728      let responseRegion = [];
11729      if (Array.isArray(this.value)) {
11730        for (let i = 0; i < this.value.length; i++) {
11731          responseRegion.push((_a = this.value[i].x) !== null && _a !== void 0 ? _a : 'PLACEHOLDER');
11732          responseRegion.push((_b = this.value[i].y) !== null && _b !== void 0 ? _b : 'PLACEHOLDER');
11733          responseRegion.push((_c = this.value[i].width) !== null && _c !== void 0 ? _c : 'PLACEHOLDER');
11734          responseRegion.push((_d = this.value[i].height) !== null && _d !== void 0 ? _d : 'PLACEHOLDER');
11735        }
11736      }
11737      else {
11738        responseRegion.push((_e = this.value.x) !== null && _e !== void 0 ? _e : 'PLACEHOLDER');
11739        responseRegion.push((_f = this.value.y) !== null && _f !== void 0 ? _f : 'PLACEHOLDER');
11740        responseRegion.push((_g = this.value.width) !== null && _g !== void 0 ? _g : 'PLACEHOLDER');
11741        responseRegion.push((_h = this.value.height) !== null && _h !== void 0 ? _h : 'PLACEHOLDER');
11742      }
11743      getUINativeModule().text.setResponseRegion(node, responseRegion, responseRegion.length);
11744    }
11745  }
11746  checkObjectDiff() {
11747    return !isBaseOrResourceEqual(this.stageValue, this.value);
11748  }
11749}
11750TextResponseRegionModifier.identity = Symbol('textResponseRegion');
11751
11752class ArkTextComponent extends ArkComponent {
11753  constructor(nativePtr, classType) {
11754    super(nativePtr, classType);
11755  }
11756  initialize(content) {
11757    modifierWithKey(this._modifiersWithKeys, TextContentModifier.identity, TextContentModifier, content[0]);
11758    modifierWithKey(this._modifiersWithKeys, TextControllerModifier.identity, TextControllerModifier, content[1]);
11759    return this;
11760  }
11761  allowChildTypes() {
11762    return ["Span", "ImageSpan", "SymbolSpan", "ContainerSpan"];
11763  }
11764  enableDataDetector(value) {
11765    modifierWithKey(this._modifiersWithKeys, TextEnableDataDetectorModifier.identity, TextEnableDataDetectorModifier, value);
11766    return this;
11767  }
11768  dataDetectorConfig(config) {
11769    if (config === undefined || config === null) {
11770      return this;
11771    }
11772    let detectorConfig = new TextDataDetectorConfig();
11773    detectorConfig.types = config.types;
11774    detectorConfig.onDetectResultUpdate = config.onDetectResultUpdate;
11775    detectorConfig.color = config.color;
11776    if (config.decoration) {
11777      detectorConfig.decorationType = config.decoration.type;
11778      detectorConfig.decorationColor = config.decoration.color;
11779      detectorConfig.decorationStyle = config.decoration.style;
11780    }
11781    modifierWithKey(this._modifiersWithKeys, TextDataDetectorConfigModifier.identity, TextDataDetectorConfigModifier, detectorConfig);
11782    return this;
11783  }
11784  font(value, options) {
11785    if (value === undefined || value === null) {
11786      return this;
11787    }
11788    let arkTextFont = new ArkTextFont();
11789    arkTextFont.value = value;
11790    arkTextFont.enableVariableFontWeight = options?.enableVariableFontWeight;
11791    modifierWithKey(this._modifiersWithKeys, TextFontModifier.identity, TextFontModifier, arkTextFont);
11792    return this;
11793  }
11794  fontColor(value) {
11795    modifierWithKey(this._modifiersWithKeys, FontColorModifier.identity, FontColorModifier, value);
11796    return this;
11797  }
11798  fontSize(value) {
11799    modifierWithKey(this._modifiersWithKeys, FontSizeModifier.identity, FontSizeModifier, value);
11800    return this;
11801  }
11802  minFontSize(value) {
11803    modifierWithKey(this._modifiersWithKeys, TextMinFontSizeModifier.identity, TextMinFontSizeModifier, value);
11804    return this;
11805  }
11806  maxFontSize(value) {
11807    modifierWithKey(this._modifiersWithKeys, TextMaxFontSizeModifier.identity, TextMaxFontSizeModifier, value);
11808    return this;
11809  }
11810  minFontScale(value) {
11811    modifierWithKey(this._modifiersWithKeys, TextMinFontScaleModifier.identity, TextMinFontScaleModifier, value);
11812    return this;
11813  }
11814  maxFontScale(value) {
11815    modifierWithKey(this._modifiersWithKeys, TextMaxFontScaleModifier.identity, TextMaxFontScaleModifier, value);
11816    return this;
11817  }
11818  fontStyle(value) {
11819    modifierWithKey(this._modifiersWithKeys, FontStyleModifier.identity, FontStyleModifier, value);
11820    return this;
11821  }
11822  fontWeight(value, options) {
11823    let arkFontWeight = new ArkFontWeight();
11824    arkFontWeight.value = value;
11825    arkFontWeight.enableVariableFontWeight = options?.enableVariableFontWeight;
11826    modifierWithKey(this._modifiersWithKeys, FontWeightModifier.identity, FontWeightModifier, arkFontWeight);
11827    return this;
11828  }
11829  textAlign(value) {
11830    modifierWithKey(this._modifiersWithKeys, TextAlignModifier.identity, TextAlignModifier, value);
11831    return this;
11832  }
11833  lineHeight(value) {
11834    modifierWithKey(this._modifiersWithKeys, TextLineHeightModifier.identity, TextLineHeightModifier, value);
11835    return this;
11836  }
11837  textOverflow(value) {
11838    modifierWithKey(this._modifiersWithKeys, TextTextOverflowModifier.identity, TextTextOverflowModifier, value);
11839    return this;
11840  }
11841  fontFamily(value) {
11842    modifierWithKey(this._modifiersWithKeys, TextFontFamilyModifier.identity, TextFontFamilyModifier, value);
11843    return this;
11844  }
11845  maxLines(value) {
11846    modifierWithKey(this._modifiersWithKeys, TextMaxLinesModifier.identity, TextMaxLinesModifier, value);
11847    return this;
11848  }
11849  decoration(value) {
11850    modifierWithKey(this._modifiersWithKeys, TextDecorationModifier.identity, TextDecorationModifier, value);
11851    return this;
11852  }
11853  letterSpacing(value) {
11854    modifierWithKey(this._modifiersWithKeys, TextLetterSpacingModifier.identity, TextLetterSpacingModifier, value);
11855    return this;
11856  }
11857  lineSpacing(value) {
11858    modifierWithKey(this._modifiersWithKeys, TextLineSpacingModifier.identity, TextLineSpacingModifier, value);
11859    return this;
11860  }
11861  textCase(value) {
11862    modifierWithKey(this._modifiersWithKeys, TextTextCaseModifier.identity, TextTextCaseModifier, value);
11863    return this;
11864  }
11865  baselineOffset(value) {
11866    modifierWithKey(this._modifiersWithKeys, TextBaselineOffsetModifier.identity, TextBaselineOffsetModifier, value);
11867    return this;
11868  }
11869  copyOption(value) {
11870    modifierWithKey(this._modifiersWithKeys, TextCopyOptionModifier.identity, TextCopyOptionModifier, value);
11871    return this;
11872  }
11873  draggable(value) {
11874    modifierWithKey(this._modifiersWithKeys, TextDraggableModifier.identity, TextDraggableModifier, value);
11875    return this;
11876  }
11877  privacySensitive(value) {
11878    modifierWithKey(this._modifiersWithKeys, TextPrivacySensitiveModifier.identity, TextPrivacySensitiveModifier, value);
11879    return this;
11880  }
11881  textShadow(value) {
11882    modifierWithKey(this._modifiersWithKeys, TextTextShadowModifier.identity, TextTextShadowModifier, value);
11883    return this;
11884  }
11885  heightAdaptivePolicy(value) {
11886    modifierWithKey(this._modifiersWithKeys, TextHeightAdaptivePolicyModifier.identity, TextHeightAdaptivePolicyModifier, value);
11887    return this;
11888  }
11889  textIndent(value) {
11890    modifierWithKey(this._modifiersWithKeys, TextTextIndentModifier.identity, TextTextIndentModifier, value);
11891    return this;
11892  }
11893  wordBreak(value) {
11894    modifierWithKey(this._modifiersWithKeys, TextWordBreakModifier.identity, TextWordBreakModifier, value);
11895    return this;
11896  }
11897  lineBreakStrategy(value) {
11898    modifierWithKey(this._modifiersWithKeys, TextLineBreakStrategyModifier.identity,
11899      TextLineBreakStrategyModifier, value);
11900    return this;
11901  }
11902  fontFeature(value) {
11903    modifierWithKey(this._modifiersWithKeys, TextFontFeatureModifier.identity, TextFontFeatureModifier, value);
11904    return this;
11905  }
11906  onCopy(callback) {
11907    modifierWithKey(this._modifiersWithKeys, TextOnCopyModifier.identity,
11908      TextOnCopyModifier, callback);
11909    return this;
11910  }
11911  selection(selectionStart, selectionEnd) {
11912    let arkSelection = new ArkSelection();
11913    arkSelection.selectionStart = selectionStart;
11914    arkSelection.selectionEnd = selectionEnd;
11915    modifierWithKey(this._modifiersWithKeys, TextSelectionModifier.identity, TextSelectionModifier, arkSelection);
11916    return this;
11917  }
11918  textSelectable(value) {
11919    modifierWithKey(this._modifiersWithKeys, TextSelectableModifier.identity, TextSelectableModifier, value);
11920    return this;
11921  }
11922  caretColor(value) {
11923    modifierWithKey(this._modifiersWithKeys, TextCaretColorModifier.identity, TextCaretColorModifier, value);
11924    return this;
11925  }
11926  selectedBackgroundColor(value) {
11927    modifierWithKey(this._modifiersWithKeys, TextSelectedBackgroundColorModifier.identity,
11928      TextSelectedBackgroundColorModifier, value);
11929    return this;
11930  }
11931  ellipsisMode(value) {
11932    modifierWithKey(this._modifiersWithKeys, TextEllipsisModeModifier.identity, TextEllipsisModeModifier, value);
11933    return this;
11934  }
11935  clip(value) {
11936    modifierWithKey(this._modifiersWithKeys, TextClipModifier.identity, TextClipModifier, value);
11937    return this;
11938  }
11939  foregroundColor(value) {
11940    modifierWithKey(
11941      this._modifiersWithKeys, TextForegroundColorModifier.identity, TextForegroundColorModifier, value);
11942    return this;
11943  }
11944  onTextSelectionChange(callback) {
11945    modifierWithKey(this._modifiersWithKeys, TextOnTextSelectionChangeModifier.identity,
11946      TextOnTextSelectionChangeModifier, callback);
11947    return this;
11948  }
11949  editMenuOptions(value) {
11950    modifierWithKey(this._modifiersWithKeys, TextEditMenuOptionsModifier.identity,
11951      TextEditMenuOptionsModifier, value);
11952    return this;
11953  }
11954  halfLeading(value) {
11955    modifierWithKey(this._modifiersWithKeys, TextHalfLeadingModifier.identity, TextHalfLeadingModifier, value);
11956    return this;
11957  }
11958  onClick(value) {
11959    modifierWithKey(this._modifiersWithKeys, TextOnClickModifier.identity, TextOnClickModifier, value);
11960    return this;
11961  }
11962  responseRegion(value) {
11963    modifierWithKey(this._modifiersWithKeys, TextResponseRegionModifier.identity, TextResponseRegionModifier, value);
11964    return this;
11965  }
11966}
11967// @ts-ignore
11968if (globalThis.Text !== undefined) {
11969  globalThis.Text.attributeModifier = function (modifier) {
11970    attributeModifierFunc.call(this, modifier, (nativePtr) => {
11971      return new ArkTextComponent(nativePtr);
11972    }, (nativePtr, classType, modifierJS) => {
11973      return new modifierJS.TextModifier(nativePtr, classType);
11974    });
11975  };
11976}
11977
11978/// <reference path='./import.ts' />
11979class TextAreaFontStyleModifier extends ModifierWithKey {
11980  constructor(value) {
11981    super(value);
11982  }
11983  applyPeer(node, reset) {
11984    if (reset) {
11985      getUINativeModule().textArea.resetFontStyle(node);
11986    }
11987    else {
11988      getUINativeModule().textArea.setFontStyle(node, this.value);
11989    }
11990  }
11991  checkObjectDiff() {
11992    return !isBaseOrResourceEqual(this.stageValue, this.value);
11993  }
11994}
11995TextAreaFontStyleModifier.identity = Symbol('textAreaFontStyle');
11996class TextAreaDecorationModifier extends ModifierWithKey {
11997  constructor(value) {
11998    super(value);
11999  }
12000  applyPeer(node, reset) {
12001    if (reset) {
12002      getUINativeModule().textArea.resetDecoration(node);
12003    }
12004    else {
12005      getUINativeModule().textArea.setDecoration(node, this.value.type, this.value.color, this.value.style);
12006    }
12007  }
12008  checkObjectDiff() {
12009    if (this.stageValue.type !== this.value.type || this.stageValue.style !== this.value.style) {
12010      return true;
12011    }
12012    if (isResource(this.stageValue.color) && isResource(this.value.color)) {
12013      return !isResourceEqual(this.stageValue.color, this.value.color);
12014    }
12015    else if (!isResource(this.stageValue.color) && !isResource(this.value.color)) {
12016      return !(this.stageValue.color === this.value.color);
12017    }
12018    else {
12019      return true;
12020    }
12021  }
12022}
12023TextAreaDecorationModifier.identity = Symbol('textAreaDecoration');
12024class TextAreaLetterSpacingModifier extends ModifierWithKey {
12025    constructor(value) {
12026        super(value);
12027    }
12028    applyPeer(node, reset) {
12029        if (reset) {
12030            getUINativeModule().textArea.resetLetterSpacing(node);
12031        }
12032        else {
12033            getUINativeModule().textArea.setLetterSpacing(node, this.value);
12034        }
12035    }
12036    checkObjectDiff() {
12037        return !isBaseOrResourceEqual(this.stageValue, this.value);
12038    }
12039}
12040TextAreaLetterSpacingModifier.identity = Symbol('textAreaLetterSpacing');
12041class TextAreaLineSpacingModifier extends ModifierWithKey {
12042  constructor(value) {
12043    super(value);
12044  }
12045  applyPeer(node, reset) {
12046    if (reset) {
12047      getUINativeModule().textArea.resetLineSpacing(node);
12048    }
12049    else if (!isObject(this.value)) {
12050      getUINativeModule().textArea.resetLineSpacing(node);
12051    }
12052    else {
12053      getUINativeModule().textArea.setLineSpacing(node, this.value);
12054    }
12055  }
12056  checkObjectDiff() {
12057    return !isBaseOrResourceEqual(this.stageValue, this.value);
12058  }
12059}
12060TextAreaLineSpacingModifier.identity = Symbol('textAreaLineSpacing');
12061class TextAreaLineHeightModifier extends ModifierWithKey {
12062    constructor(value) {
12063        super(value);
12064    }
12065    applyPeer(node, reset) {
12066        if (reset) {
12067            getUINativeModule().textArea.resetLineHeight(node);
12068        }
12069        else {
12070            getUINativeModule().textArea.setLineHeight(node, this.value);
12071        }
12072    }
12073    checkObjectDiff() {
12074        return !isBaseOrResourceEqual(this.stageValue, this.value);
12075    }
12076}
12077TextAreaLineHeightModifier.identity = Symbol('textAreaLineHeight');
12078class TextAreaWordBreakModifier extends ModifierWithKey {
12079    constructor(value) {
12080        super(value);
12081    }
12082    applyPeer(node, reset) {
12083        if (reset) {
12084            getUINativeModule().textArea.resetWordBreak(node);
12085        }
12086        else {
12087            getUINativeModule().textArea.setWordBreak(node, this.value);
12088        }
12089    }
12090    checkObjectDiff() {
12091        return !isBaseOrResourceEqual(this.stageValue, this.value);
12092    }
12093}
12094TextAreaWordBreakModifier.identity = Symbol('textAreaWordBreak');
12095
12096class TextAreaLineBreakStrategyModifier extends ModifierWithKey {
12097  constructor(value) {
12098      super(value);
12099  }
12100  applyPeer(node, reset) {
12101      if (reset) {
12102          getUINativeModule().textArea.resetLineBreakStrategy(node);
12103      }
12104      else {
12105          getUINativeModule().textArea.setLineBreakStrategy(node, this.value);
12106      }
12107  }
12108  checkObjectDiff() {
12109      return !isBaseOrResourceEqual(this.stageValue, this.value);
12110  }
12111}
12112TextAreaLineBreakStrategyModifier.identity = Symbol('textAreaLineBreakStrategy');
12113class TextAreaSelectedBackgroundColorModifier extends ModifierWithKey {
12114  constructor(value) {
12115      super(value);
12116  }
12117  applyPeer(node, reset) {
12118      if (reset) {
12119          getUINativeModule().textArea.resetSelectedBackgroundColor(node);
12120      } else {
12121          getUINativeModule().textArea.setSelectedBackgroundColor(node, this.value);
12122      }
12123  }
12124  checkObjectDiff() {
12125      return !isBaseOrResourceEqual(this.stageValue, this.value);
12126  }
12127}
12128TextAreaSelectedBackgroundColorModifier.identity = Symbol('textAreaSelectedBackgroundColor');
12129class TextAreaCaretStyleModifier extends ModifierWithKey {
12130    constructor(value) {
12131        super(value);
12132    }
12133    applyPeer(node, reset) {
12134        if (reset) {
12135            getUINativeModule().textArea.resetCaretStyle(node);
12136        } else {
12137            getUINativeModule().textArea.setCaretStyle(node, this.value.width, this.value.color);
12138        }
12139    }
12140    checkObjectDiff() {
12141        return this.stageValue !== this.value;
12142    }
12143}
12144TextAreaCaretStyleModifier.identity = Symbol('textAreaCaretStyle');
12145class TextAreaTextOverflowModifier extends ModifierWithKey {
12146  constructor(value) {
12147      super(value);
12148  }
12149  applyPeer(node, reset) {
12150      if (reset) {
12151          getUINativeModule().textArea.resetTextOverflow(node);
12152      } else {
12153          getUINativeModule().textArea.setTextOverflow(node, this.value);
12154      }
12155  }
12156  checkObjectDiff() {
12157      return this.stageValue !== this.value;
12158  }
12159}
12160TextAreaTextOverflowModifier.identity = Symbol('textAreaTextOverflow');
12161class TextAreaTextIndentModifier extends ModifierWithKey {
12162  constructor(value) {
12163      super(value);
12164  }
12165  applyPeer(node, reset) {
12166      if (reset) {
12167          getUINativeModule().textArea.resetTextIndent(node);
12168      } else {
12169          getUINativeModule().textArea.setTextIndent(node, this.value);
12170      }
12171  }
12172  checkObjectDiff() {
12173      return !isBaseOrResourceEqual(this.stageValue, this.value);
12174  }
12175}
12176TextAreaTextIndentModifier.identity = Symbol('textAreaTextIndent');
12177class TextAreaCopyOptionModifier extends ModifierWithKey {
12178  constructor(value) {
12179    super(value);
12180  }
12181  applyPeer(node, reset) {
12182    if (reset) {
12183      getUINativeModule().textArea.resetCopyOption(node);
12184    }
12185    else {
12186      getUINativeModule().textArea.setCopyOption(node, this.value);
12187    }
12188  }
12189  checkObjectDiff() {
12190    return !isBaseOrResourceEqual(this.stageValue, this.value);
12191  }
12192}
12193TextAreaCopyOptionModifier.identity = Symbol('textAreaCopyOption');
12194class TextAreaMaxLinesModifier extends ModifierWithKey {
12195  constructor(value) {
12196    super(value);
12197  }
12198  applyPeer(node, reset) {
12199    if (reset) {
12200      getUINativeModule().textArea.resetMaxLines(node);
12201    }
12202    else {
12203      getUINativeModule().textArea.setMaxLines(node, this.value);
12204    }
12205  }
12206  checkObjectDiff() {
12207    return !isBaseOrResourceEqual(this.stageValue, this.value);
12208  }
12209}
12210TextAreaMaxLinesModifier.identity = Symbol('textAreaMaxLines');
12211class TextAreaMinFontSizeModifier extends ModifierWithKey {
12212    constructor(value) {
12213        super(value);
12214    }
12215    applyPeer(node, reset) {
12216        if (reset) {
12217            getUINativeModule().textArea.resetMinFontSize(node);
12218        }
12219        else {
12220            getUINativeModule().textArea.setMinFontSize(node, this.value);
12221        }
12222    }
12223    checkObjectDiff() {
12224        return !isBaseOrResourceEqual(this.stageValue, this.value);
12225    }
12226}
12227TextAreaMinFontSizeModifier.identity = Symbol('textAreaMinFontSize');
12228class TextAreaMaxFontSizeModifier extends ModifierWithKey {
12229    constructor(value) {
12230        super(value);
12231    }
12232    applyPeer(node, reset) {
12233        if (reset) {
12234            getUINativeModule().textArea.resetMaxFontSize(node);
12235        }
12236        else {
12237            getUINativeModule().textArea.setMaxFontSize(node, this.value);
12238        }
12239    }
12240    checkObjectDiff() {
12241        return !isBaseOrResourceEqual(this.stageValue, this.value);
12242    }
12243}
12244TextAreaMaxFontSizeModifier.identity = Symbol('textAreaMaxFontSize');
12245class TextAreaHeightAdaptivePolicyModifier extends ModifierWithKey {
12246    constructor(value) {
12247        super(value);
12248    }
12249    applyPeer(node, reset) {
12250        if (reset) {
12251            getUINativeModule().textArea.resetHeightAdaptivePolicy(node);
12252        }
12253        else {
12254            getUINativeModule().textArea.setHeightAdaptivePolicy(node, this.value);
12255        }
12256    }
12257    checkObjectDiff() {
12258        return !isBaseOrResourceEqual(this.stageValue, this.value);
12259    }
12260}
12261TextAreaHeightAdaptivePolicyModifier.identity = Symbol('textAreaHeightAdaptivePolicy');
12262class TextAreaFontSizeModifier extends ModifierWithKey {
12263  constructor(value) {
12264    super(value);
12265  }
12266  applyPeer(node, reset) {
12267    if (reset) {
12268      getUINativeModule().textArea.resetFontSize(node);
12269    }
12270    else {
12271      getUINativeModule().textArea.setFontSize(node, this.value);
12272    }
12273  }
12274  checkObjectDiff() {
12275    return !isBaseOrResourceEqual(this.stageValue, this.value);
12276  }
12277}
12278TextAreaFontSizeModifier.identity = Symbol('textAreaFontSize');
12279class TextAreaPlaceholderColorModifier extends ModifierWithKey {
12280  constructor(value) {
12281    super(value);
12282  }
12283  applyPeer(node, reset) {
12284    if (reset) {
12285      getUINativeModule().textArea.resetPlaceholderColor(node);
12286    }
12287    else {
12288      getUINativeModule().textArea.setPlaceholderColor(node, this.value);
12289    }
12290  }
12291  checkObjectDiff() {
12292    return !isBaseOrResourceEqual(this.stageValue, this.value);
12293  }
12294}
12295TextAreaPlaceholderColorModifier.identity = Symbol('textAreaPlaceholderColor');
12296class TextAreaFontColorModifier extends ModifierWithKey {
12297  constructor(value) {
12298    super(value);
12299  }
12300  applyPeer(node, reset) {
12301    if (reset) {
12302      getUINativeModule().textArea.resetFontColor(node);
12303    }
12304    else {
12305      getUINativeModule().textArea.setFontColor(node, this.value);
12306    }
12307  }
12308  checkObjectDiff() {
12309    return !isBaseOrResourceEqual(this.stageValue, this.value);
12310  }
12311}
12312TextAreaFontColorModifier.identity = Symbol('textAreaFontColor');
12313class TextAreaFontWeightModifier extends ModifierWithKey {
12314  constructor(value) {
12315    super(value);
12316  }
12317  applyPeer(node, reset) {
12318    if (reset) {
12319      getUINativeModule().textArea.resetFontWeight(node);
12320    }
12321    else {
12322      getUINativeModule().textArea.setFontWeight(node, this.value);
12323    }
12324  }
12325  checkObjectDiff() {
12326    return !isBaseOrResourceEqual(this.stageValue, this.value);
12327  }
12328}
12329TextAreaFontWeightModifier.identity = Symbol('textAreaFontWeight');
12330class TextAreaBarStateModifier extends ModifierWithKey {
12331  constructor(value) {
12332    super(value);
12333  }
12334  applyPeer(node, reset) {
12335    if (reset) {
12336      getUINativeModule().textArea.resetBarState(node);
12337    }
12338    else {
12339      getUINativeModule().textArea.setBarState(node, this.value);
12340    }
12341  }
12342  checkObjectDiff() {
12343    return !isBaseOrResourceEqual(this.stageValue, this.value);
12344  }
12345}
12346TextAreaBarStateModifier.identity = Symbol('textAreaBarState');
12347class TextAreaEnableKeyboardOnFocusModifier extends ModifierWithKey {
12348  constructor(value) {
12349    super(value);
12350  }
12351  applyPeer(node, reset) {
12352    if (reset) {
12353      getUINativeModule().textArea.resetEnableKeyboardOnFocus(node);
12354    }
12355    else {
12356      getUINativeModule().textArea.setEnableKeyboardOnFocus(node, this.value);
12357    }
12358  }
12359  checkObjectDiff() {
12360    return !isBaseOrResourceEqual(this.stageValue, this.value);
12361  }
12362}
12363TextAreaEnableKeyboardOnFocusModifier.identity = Symbol('textAreaEnableKeyboardOnFocus');
12364class TextAreaFontFamilyModifier extends ModifierWithKey {
12365  constructor(value) {
12366    super(value);
12367  }
12368  applyPeer(node, reset) {
12369    if (reset) {
12370      getUINativeModule().textArea.resetFontFamily(node);
12371    }
12372    else {
12373      getUINativeModule().textArea.setFontFamily(node, this.value);
12374    }
12375  }
12376  checkObjectDiff() {
12377    return !isBaseOrResourceEqual(this.stageValue, this.value);
12378  }
12379}
12380TextAreaFontFamilyModifier.identity = Symbol('textAreaFontFamily');
12381class TextAreaFontFeatureModifier extends ModifierWithKey {
12382  constructor(value) {
12383    super(value);
12384  }
12385  applyPeer(node, reset) {
12386    if (reset) {
12387      getUINativeModule().textArea.resetFontFeature(node);
12388    } else {
12389      getUINativeModule().textArea.setFontFeature(node, this.value);
12390    }
12391  }
12392  checkObjectDiff() {
12393    return !isBaseOrResourceEqual(this.stageValue, this.value);
12394  }
12395}
12396TextAreaFontFeatureModifier.identity = Symbol('textAreaFontFeature');
12397class TextAreaCaretColorModifier extends ModifierWithKey {
12398  constructor(value) {
12399    super(value);
12400  }
12401  applyPeer(node, reset) {
12402    if (reset) {
12403      getUINativeModule().textArea.resetCaretColor(node);
12404    }
12405    else {
12406      getUINativeModule().textArea.setCaretColor(node, this.value);
12407    }
12408  }
12409  checkObjectDiff() {
12410    return !isBaseOrResourceEqual(this.stageValue, this.value);
12411  }
12412}
12413TextAreaCaretColorModifier.identity = Symbol('textAreaCaretColor');
12414class TextAreaMaxLengthModifier extends ModifierWithKey {
12415  constructor(value) {
12416    super(value);
12417  }
12418  applyPeer(node, reset) {
12419    if (reset) {
12420      getUINativeModule().textArea.resetMaxLength(node);
12421    }
12422    else {
12423      getUINativeModule().textArea.setMaxLength(node, this.value);
12424    }
12425  }
12426  checkObjectDiff() {
12427    return !isBaseOrResourceEqual(this.stageValue, this.value);
12428  }
12429}
12430TextAreaMaxLengthModifier.identity = Symbol('textAreaMaxLength');
12431class TextAreaStyleModifier extends ModifierWithKey {
12432  constructor(value) {
12433    super(value);
12434  }
12435  applyPeer(node, reset) {
12436    if (reset) {
12437      getUINativeModule().textArea.resetStyle(node);
12438    }
12439    else {
12440      getUINativeModule().textArea.setStyle(node, this.value);
12441    }
12442  }
12443  checkObjectDiff() {
12444    return !isBaseOrResourceEqual(this.stageValue, this.value);
12445  }
12446}
12447TextAreaStyleModifier.identity = Symbol('textAreaStyle');
12448class TextAreaSelectionMenuHiddenModifier extends ModifierWithKey {
12449  constructor(value) {
12450    super(value);
12451  }
12452  applyPeer(node, reset) {
12453    if (reset) {
12454      getUINativeModule().textArea.resetSelectionMenuHidden(node);
12455    }
12456    else {
12457      getUINativeModule().textArea.setSelectionMenuHidden(node, this.value);
12458    }
12459  }
12460  checkObjectDiff() {
12461    return !isBaseOrResourceEqual(this.stageValue, this.value);
12462  }
12463}
12464TextAreaSelectionMenuHiddenModifier.identity = Symbol('textAreaSelectionMenuHidden');
12465class TextAreaPlaceholderFontModifier extends ModifierWithKey {
12466  constructor(value) {
12467    super(value);
12468  }
12469  applyPeer(node, reset) {
12470    if (reset) {
12471      getUINativeModule().textArea.resetPlaceholderFont(node);
12472    }
12473    else {
12474      getUINativeModule().textArea.setPlaceholderFont(node, this.value.size, this.value.weight, this.value.family, this.value.style);
12475    }
12476  }
12477  checkObjectDiff() {
12478    if (!(this.stageValue.weight === this.value.weight &&
12479      this.stageValue.style === this.value.style)) {
12480      return true;
12481    }
12482    else {
12483      return !isBaseOrResourceEqual(this.stageValue.size, this.value.size) ||
12484        !isBaseOrResourceEqual(this.stageValue.family, this.value.family);
12485    }
12486  }
12487}
12488TextAreaPlaceholderFontModifier.identity = Symbol('textAreaPlaceholderFont');
12489class TextAreaTextAlignModifier extends ModifierWithKey {
12490  constructor(value) {
12491    super(value);
12492  }
12493  applyPeer(node, reset) {
12494    if (reset) {
12495      getUINativeModule().textArea.resetTextAlign(node);
12496    }
12497    else {
12498      getUINativeModule().textArea.setTextAlign(node, this.value);
12499    }
12500  }
12501  checkObjectDiff() {
12502    return !isBaseOrResourceEqual(this.stageValue, this.value);
12503  }
12504}
12505TextAreaTextAlignModifier.identity = Symbol('textAreaTextAlign');
12506class TextAreaShowCounterModifier extends ModifierWithKey {
12507  constructor(value) {
12508    super(value);
12509  }
12510  applyPeer(node, reset) {
12511    if (reset) {
12512      getUINativeModule().textArea.resetShowCounter(node);
12513    }
12514    else {
12515      getUINativeModule().textArea.setShowCounter(node, this.value.value, this.value.highlightBorder, this.value.thresholdPercentage);
12516    }
12517  }
12518  checkObjectDiff() {
12519    return !isBaseOrResourceEqual(this.stageValue.value, this.value.value) ||
12520      !isBaseOrResourceEqual(this.stageValue.highlightBorder, this.value.highlightBorder) ||
12521      !isBaseOrResourceEqual(this.stageValue.thresholdPercentage, this.value.thresholdPercentage);
12522  }
12523}
12524TextAreaShowCounterModifier.identity = Symbol('textAreaShowCounter');
12525class TextAreaOnChangeModifier extends ModifierWithKey {
12526  constructor(value) {
12527    super(value);
12528  }
12529  applyPeer(node, reset) {
12530    if (reset) {
12531      getUINativeModule().textArea.resetOnChange(node);
12532    } else {
12533      getUINativeModule().textArea.setOnChange(node, this.value);
12534    }
12535  }
12536}
12537TextAreaOnChangeModifier.identity = Symbol('textAreaOnChange');
12538class TextAreaEnterKeyTypeModifier extends ModifierWithKey {
12539  constructor(value) {
12540    super(value);
12541  }
12542  applyPeer(node, reset) {
12543    if (reset) {
12544      getUINativeModule().textArea.resetEnterKeyType(node);
12545    } else {
12546      getUINativeModule().textArea.setEnterKeyType(node, this.value);
12547    }
12548  }
12549
12550  checkObjectDiff() {
12551    return !isBaseOrResourceEqual(this.stageValue, this.value);
12552  }
12553}
12554TextAreaEnterKeyTypeModifier.identity = Symbol('textAreaEnterKeyType');
12555class TextAreaInputFilterModifier extends ModifierWithKey {
12556  constructor(value) {
12557    super(value);
12558  }
12559  applyPeer(node, reset) {
12560    if (reset) {
12561      getUINativeModule().textArea.resetInputFilter(node);
12562    }
12563    else {
12564      getUINativeModule().textArea.setInputFilter(node, this.value.value, this.value.error);
12565    }
12566  }
12567  checkObjectDiff() {
12568    return !isBaseOrResourceEqual(this.stageValue.value, this.value.value) ||
12569      !isBaseOrResourceEqual(this.stageValue.error, this.value.error);
12570  }
12571}
12572TextAreaInputFilterModifier.identity = Symbol('textAreaInputFilter');
12573class TextAreaOnTextSelectionChangeModifier extends ModifierWithKey {
12574  constructor(value) {
12575    super(value);
12576  }
12577  applyPeer(node, reset) {
12578    if (reset) {
12579      getUINativeModule().textArea.resetOnTextSelectionChange(node);
12580    } else {
12581      getUINativeModule().textArea.setOnTextSelectionChange(node, this.value);
12582    }
12583  }
12584}
12585TextAreaOnTextSelectionChangeModifier.identity = Symbol('textAreaOnTextSelectionChange');
12586
12587class TextAreaOnContentScrollModifier extends ModifierWithKey {
12588  constructor(value) {
12589    super(value);
12590  }
12591  applyPeer(node, reset) {
12592    if (reset) {
12593      getUINativeModule().textArea.resetOnContentScroll(node);
12594    } else {
12595      getUINativeModule().textArea.setOnContentScroll(node, this.value);
12596    }
12597  }
12598}
12599TextAreaOnContentScrollModifier.identity = Symbol('textAreaOnContentScroll');
12600class TextAreaOnEditChangeModifier extends ModifierWithKey {
12601  constructor(value) {
12602    super(value);
12603  }
12604  applyPeer(node, reset) {
12605    if (reset) {
12606      getUINativeModule().textArea.resetOnEditChange(node);
12607    } else {
12608      getUINativeModule().textArea.setOnEditChange(node, this.value);
12609    }
12610  }
12611}
12612TextAreaOnEditChangeModifier.identity = Symbol('textAreaOnEditChange');
12613class TextAreaOnCopyModifier extends ModifierWithKey {
12614  constructor(value) {
12615    super(value);
12616  }
12617  applyPeer(node, reset) {
12618    if (reset) {
12619      getUINativeModule().textArea.resetOnCopy(node);
12620    } else {
12621      getUINativeModule().textArea.setOnCopy(node, this.value);
12622    }
12623  }
12624}
12625TextAreaOnCopyModifier.identity = Symbol('textAreaOnCopy');
12626class TextAreaOnCutModifier extends ModifierWithKey {
12627  constructor(value) {
12628    super(value);
12629  }
12630  applyPeer(node, reset) {
12631    if (reset) {
12632      getUINativeModule().textArea.resetOnCut(node);
12633    } else {
12634      getUINativeModule().textArea.setOnCut(node, this.value);
12635    }
12636  }
12637}
12638TextAreaOnCutModifier.identity = Symbol('textAreaOnCut');
12639class TextAreaOnPasteModifier extends ModifierWithKey {
12640  constructor(value) {
12641    super(value);
12642  }
12643  applyPeer(node, reset) {
12644    if (reset) {
12645      getUINativeModule().textArea.resetOnPaste(node);
12646    } else {
12647      getUINativeModule().textArea.setOnPaste(node, this.value);
12648    }
12649  }
12650}
12651TextAreaOnPasteModifier.identity = Symbol('textAreaOnPaste');
12652class TextAreaTypeModifier extends ModifierWithKey {
12653  constructor(value) {
12654    super(value);
12655  }
12656  applyPeer(node, reset) {
12657    if (reset) {
12658      getUINativeModule().textArea.resetType(node);
12659    }
12660    else {
12661      getUINativeModule().textArea.setType(node, this.value);
12662    }
12663  }
12664  checkObjectDiff() {
12665    return !isBaseOrResourceEqual(this.stageValue, this.value);
12666  }
12667}
12668TextAreaTypeModifier.identity = Symbol('textAreaType');
12669class TextAreaPaddingModifier extends ModifierWithKey {
12670  constructor(value) {
12671    super(value);
12672  }
12673  applyPeer(node, reset) {
12674    if (reset) {
12675      getUINativeModule().textArea.resetPadding(node);
12676    }
12677    else {
12678      getUINativeModule().textArea.setPadding(node, this.value.top, this.value.right, this.value.bottom, this.value.left);
12679    }
12680  }
12681  checkObjectDiff() {
12682    return !isBaseOrResourceEqual(this.stageValue.top, this.value.top) ||
12683      !isBaseOrResourceEqual(this.stageValue.right, this.value.right) ||
12684      !isBaseOrResourceEqual(this.stageValue.bottom, this.value.bottom) ||
12685      !isBaseOrResourceEqual(this.stageValue.left, this.value.left);
12686  }
12687}
12688TextAreaPaddingModifier.identity = Symbol('textAreaPadding');
12689class TextAreaOnSubmitModifier extends ModifierWithKey {
12690  constructor(value) {
12691    super(value);
12692  }
12693  applyPeer(node, reset) {
12694    if (reset) {
12695      getUINativeModule().textArea.resetOnSubmit(node);
12696    } else {
12697      getUINativeModule().textArea.setOnSubmit(node, this.value);
12698    }
12699  }
12700}
12701TextAreaOnSubmitModifier.identity = Symbol('textAreaOnSubmit');
12702class TextAreaContentTypeModifier extends ModifierWithKey {
12703  constructor(value) {
12704    super(value);
12705  }
12706  applyPeer(node, reset) {
12707    if (reset) {
12708      getUINativeModule().textArea.resetContentType(node);
12709    }
12710    else {
12711      getUINativeModule().textArea.setContentType(node, this.value);
12712    }
12713  }
12714  checkObjectDiff() {
12715    return !isBaseOrResourceEqual(this.stageValue, this.value);
12716  }
12717}
12718TextAreaContentTypeModifier.identity = Symbol('textAreaContentType');
12719class TextAreaEnableAutoFillModifier extends ModifierWithKey {
12720  constructor(value) {
12721    super(value);
12722  }
12723  applyPeer(node, reset) {
12724    if (reset) {
12725      getUINativeModule().textArea.resetEnableAutoFill(node);
12726    } else {
12727      getUINativeModule().textArea.setEnableAutoFill(node, this.value);
12728    }
12729  }
12730  checkObjectDiff() {
12731    return !isBaseOrResourceEqual(this.stageValue, this.value);
12732  }
12733}
12734TextAreaEnableAutoFillModifier.identity = Symbol('textAreaEnableAutoFill');
12735class TextAreaBorderModifier extends ModifierWithKey {
12736  constructor(value) {
12737    super(value);
12738  }
12739  applyPeer(node, reset) {
12740    if (reset) {
12741      getUINativeModule().textArea.resetBorder(node);
12742    } else {
12743      getUINativeModule().textArea.setBorder(node,
12744        this.value.arkWidth.left, this.value.arkWidth.right, this.value.arkWidth.top, this.value.arkWidth.bottom,
12745        this.value.arkColor.leftColor, this.value.arkColor.rightColor, this.value.arkColor.topColor, this.value.arkColor.bottomColor,
12746        this.value.arkRadius.topLeft, this.value.arkRadius.topRight, this.value.arkRadius.bottomLeft, this.value.arkRadius.bottomRight,
12747        this.value.arkStyle.top, this.value.arkStyle.right, this.value.arkStyle.bottom, this.value.arkStyle.left);
12748    }
12749  }
12750  checkObjectDiff() {
12751    return this.value.checkObjectDiff(this.stageValue);
12752  }
12753}
12754TextAreaBorderModifier.identity = Symbol('textAreaBorder');
12755class TextAreaBorderWidthModifier extends ModifierWithKey {
12756  constructor(value) {
12757    super(value);
12758  }
12759  applyPeer(node, reset) {
12760    if (reset) {
12761      getUINativeModule().textArea.resetBorderWidth(node);
12762    } else {
12763      if (isNumber(this.value) || isString(this.value) || isResource(this.value)) {
12764        getUINativeModule().textArea.setBorderWidth(node, this.value, this.value, this.value, this.value);
12765      } else {
12766        getUINativeModule().textArea.setBorderWidth(node, this.value.top, this.value.right,
12767          this.value.bottom, this.value.left);
12768      }
12769    }
12770  }
12771  checkObjectDiff() {
12772    if (isResource(this.stageValue) && isResource(this.value)) {
12773      return !isResourceEqual(this.stageValue, this.value);
12774    } else if (!isResource(this.stageValue) && !isResource(this.value)) {
12775      return !(this.stageValue.left === this.value.left &&
12776        this.stageValue.right === this.value.right &&
12777        this.stageValue.top === this.value.top &&
12778        this.stageValue.bottom === this.value.bottom);
12779    } else {
12780      return true;
12781    }
12782  }
12783}
12784TextAreaBorderWidthModifier.identity = Symbol('textAreaBorderWidth');
12785class TextAreaBorderColorModifier extends ModifierWithKey {
12786  constructor(value) {
12787    super(value);
12788  }
12789  applyPeer(node, reset) {
12790    if (reset) {
12791      getUINativeModule().textArea.resetBorderColor(node);
12792    } else {
12793      const valueType = typeof this.value;
12794      if (valueType === 'number' || valueType === 'string' || isResource(this.value)) {
12795        getUINativeModule().textArea.setBorderColor(node, this.value, this.value, this.value, this.value);
12796      } else {
12797        getUINativeModule().textArea.setBorderColor(node, this.value.top,
12798          this.value.right, this.value.bottom,
12799          this.value.left);
12800      }
12801    }
12802  }
12803  checkObjectDiff() {
12804    if (isResource(this.stageValue) && isResource(this.value)) {
12805      return !isResourceEqual(this.stageValue, this.value);
12806    } else if (!isResource(this.stageValue) && !isResource(this.value)) {
12807      return !(this.stageValue.left === this.value.left &&
12808        this.stageValue.right === this.value.right &&
12809        this.stageValue.top === this.value.top &&
12810        this.stageValue.bottom === his.value.bottom);
12811    } else {
12812      return true;
12813    }
12814  }
12815}
12816TextAreaBorderColorModifier.identity = Symbol('textAreaBorderColor');
12817class TextAreaBorderStyleModifier extends ModifierWithKey {
12818  constructor(value) {
12819    super(value);
12820  }
12821  applyPeer(node, reset) {
12822    if (reset) {
12823      getUINativeModule().textArea.resetBorderStyle(node);
12824    } else {
12825      let type;
12826      let style;
12827      let top;
12828      let right;
12829      let bottom;
12830      let left;
12831      if (isNumber(this.value)) {
12832        style = this.value;
12833        type = true;
12834      } else if (isObject(this.value)) {
12835        top = this.value?.top;
12836        right = this.value?.right;
12837        bottom = this.value?.bottom;
12838        left = this.value?.left;
12839        type = true;
12840      }
12841      if (type === true) {
12842        getUINativeModule().textArea.setBorderStyle(node, type, style, top, right, bottom, left);
12843      } else {
12844        getUINativeModule().textArea.resetBorderStyle(node);
12845      }
12846    }
12847  }
12848  checkObjectDiff() {
12849    return !(this.value?.top === this.stageValue?.top &&
12850      this.value?.right === this.stageValue?.right &&
12851      this.value?.bottom === this.stageValue?.bottom &&
12852      this.value?.left === this.stageValue?.left);
12853  }
12854}
12855TextAreaBorderStyleModifier.identity = Symbol('textAreaBorderStyle');
12856class TextAreaBorderRadiusModifier extends ModifierWithKey {
12857  constructor(value) {
12858    super(value);
12859  }
12860  applyPeer(node, reset) {
12861    if (reset) {
12862      getUINativeModule().textArea.resetBorderRadius(node);
12863    } else {
12864      if (isNumber(this.value) || isString(this.value) || isResource(this.value)) {
12865        getUINativeModule().textArea.setBorderRadius(node, this.value, this.value, this.value, this.value);
12866      } else {
12867        getUINativeModule().textArea.setBorderRadius(node, this.value.topLeft, this.value.topRight,
12868          this.value.bottomLeft, this.value.bottomRight);
12869      }
12870    }
12871  }
12872  checkObjectDiff() {
12873    if (isResource(this.stageValue) && isResource(this.value)) {
12874      return !isResourceEqual(this.stageValue, this.value);
12875    } else if (!isResource(this.stageValue) && !isResource(this.value)) {
12876      return !(this.stageValue.topLeft === this.value.topLeft &&
12877        this.stageValue.topRight === this.value.topRight &&
12878        this.stageValue.bottomLeft === this.value.bottomLeft &&
12879        this.stageValue.bottomRight === this.value.bottomRight);
12880    } else {
12881      return true;
12882    }
12883  }
12884}
12885TextAreaBorderRadiusModifier.identity = Symbol('textAreaBorderRadius');
12886class TextAreaBackgroundColorModifier extends ModifierWithKey {
12887  constructor(value) {
12888    super(value);
12889  }
12890  applyPeer(node, reset) {
12891    if (reset) {
12892      getUINativeModule().textArea.resetBackgroundColor(node);
12893    } else {
12894      getUINativeModule().textArea.setBackgroundColor(node, this.value);
12895    }
12896  }
12897
12898  checkObjectDiff() {
12899    return !isBaseOrResourceEqual(this.stageValue, this.value);
12900  }
12901}
12902TextAreaBackgroundColorModifier.identity = Symbol('textAreaBackgroundColor');
12903class TextAreaMarginModifier extends ModifierWithKey {
12904  constructor(value) {
12905    super(value);
12906  }
12907  applyPeer(node, reset) {
12908    if (reset) {
12909      getUINativeModule().textArea.resetMargin(node);
12910    }
12911    else {
12912      getUINativeModule().textArea.setMargin(node, this.value.top, this.value.right, this.value.bottom, this.value.left);
12913    }
12914  }
12915  checkObjectDiff() {
12916    return !isBaseOrResourceEqual(this.stageValue.top, this.value.top) ||
12917      !isBaseOrResourceEqual(this.stageValue.right, this.value.right) ||
12918      !isBaseOrResourceEqual(this.stageValue.bottom, this.value.bottom) ||
12919      !isBaseOrResourceEqual(this.stageValue.left, this.value.left);
12920  }
12921}
12922TextAreaMarginModifier.identity = Symbol('textAreaMargin');
12923class TextAreaOnWillInsertModifier extends ModifierWithKey {
12924  constructor(value) {
12925    super(value);
12926  }
12927  applyPeer(node, reset) {
12928    if (reset) {
12929      getUINativeModule().textArea.resetOnWillInsert(node);
12930    } else {
12931      getUINativeModule().textArea.setOnWillInsert(node, this.value);
12932    }
12933  }
12934}
12935TextAreaOnWillInsertModifier.identity = Symbol('textAreaOnWillInsert');
12936class TextAreaOnDidInsertModifier extends ModifierWithKey {
12937  constructor(value) {
12938    super(value);
12939  }
12940  applyPeer(node, reset) {
12941    if (reset) {
12942      getUINativeModule().textArea.resetOnDidInsert(node);
12943    } else {
12944      getUINativeModule().textArea.setOnDidInsert(node, this.value);
12945    }
12946  }
12947}
12948TextAreaOnDidInsertModifier.identity = Symbol('textAreaOnDidInsert');
12949class TextAreaOnWillDeleteModifier extends ModifierWithKey {
12950  constructor(value) {
12951    super(value);
12952  }
12953  applyPeer(node, reset) {
12954    if (reset) {
12955      getUINativeModule().textArea.resetOnWillDelete(node);
12956    } else {
12957      getUINativeModule().textArea.setOnWillDelete(node, this.value);
12958    }
12959  }
12960}
12961TextAreaOnWillDeleteModifier.identity = Symbol('textAreaOnWillDelete');
12962class TextAreaOnDidDeleteModifier extends ModifierWithKey {
12963  constructor(value) {
12964    super(value);
12965  }
12966  applyPeer(node, reset) {
12967    if (reset) {
12968      getUINativeModule().textArea.resetOnDidDelete(node);
12969    } else {
12970      getUINativeModule().textArea.setOnDidDelete(node, this.value);
12971    }
12972  }
12973}
12974TextAreaOnDidDeleteModifier.identity = Symbol('textAreaOnDidDelete');
12975class TextAreaEnablePreviewTextModifier extends ModifierWithKey {
12976  constructor(value) {
12977    super(value);
12978  }
12979  applyPeer(node, reset) {
12980    if (reset) {
12981      getUINativeModule().textArea.resetEnablePreviewText(node);
12982    }
12983    else {
12984      getUINativeModule().textArea.setEnablePreviewText(node, this.value);
12985    }
12986  }
12987  checkObjectDiff() {
12988    return !isBaseOrResourceEqual(this.stageValue, this.value);
12989  }
12990}
12991TextAreaEnablePreviewTextModifier.identity = Symbol('textAreaEnablePreviewText');
12992class TextAreaEditMenuOptionsModifier extends ModifierWithKey {
12993  constructor(value) {
12994    super(value);
12995  }
12996  applyPeer(node, reset) {
12997    if (reset) {
12998      getUINativeModule().textArea.resetSelectionMenuOptions(node);
12999    } else {
13000      getUINativeModule().textArea.setSelectionMenuOptions(node, this.value);
13001    }
13002  }
13003}
13004TextAreaEditMenuOptionsModifier.identity = Symbol('textAreaEditMenuOptions');
13005class TextAreaInitializeModifier extends ModifierWithKey {
13006  constructor(value) {
13007    super(value);
13008  }
13009  applyPeer(node, reset) {
13010    var _a, _b, _c;
13011    if (reset) {
13012      getUINativeModule().textArea.setTextAreaInitialize(node, undefined, undefined, undefined);
13013    }
13014    else {
13015      getUINativeModule().textArea.setTextAreaInitialize(node,
13016        (_a = this.value) === null || _a === void 0 ? void 0 : _a.placeholder,
13017        (_b = this.value) === null || _b === void 0 ? void 0 : _b.text,
13018        (_c = this.value) === null || _c === void 0 ? void 0 : _c.controller);
13019    }
13020  }
13021  checkObjectDiff() {
13022    var _a, _b, _c, _d, _e, _f;
13023    return !isBaseOrResourceEqual((_a = this.stageValue) === null || _a === void 0 ? void 0 : _a.placeholder,
13024      (_b = this.value) === null || _b === void 0 ? void 0 : _b.placeholder) ||
13025      !isBaseOrResourceEqual((_c = this.stageValue) === null || _c === void 0 ? void 0 : _c.text,
13026        (_d = this.value) === null || _d === void 0 ? void 0 : _d.text) ||
13027      !isBaseOrResourceEqual((_e = this.stageValue) === null || _e === void 0 ? void 0 : _e.controller,
13028        (_f = this.value) === null || _f === void 0 ? void 0 : _f.controller);
13029  }
13030}
13031TextAreaInitializeModifier.identity = Symbol('textAreaInitialize');
13032class TextAreaWidthModifier extends ModifierWithKey {
13033  constructor(value) {
13034    super(value);
13035  }
13036  applyPeer(node, reset) {
13037    if (reset) {
13038      getUINativeModule().textArea.resetWidth(node);
13039    } else {
13040      getUINativeModule().textArea.setWidth(node, this.value);
13041    }
13042  }
13043}
13044TextAreaWidthModifier.identity = Symbol('textAreaWidth');
13045class TextAreaEnableHapticFeedbackModifier extends ModifierWithKey {
13046  constructor(value) {
13047    super(value);
13048  }
13049  applyPeer(node, reset) {
13050    if (reset) {
13051      getUINativeModule().textArea.resetEnableHapticFeedback(node);
13052    }
13053    else {
13054      getUINativeModule().textArea.setEnableHapticFeedback(node, this.value);
13055    }
13056  }
13057  checkObjectDiff() {
13058    return !isBaseOrResourceEqual(this.stageValue, this.value);
13059  }
13060}
13061TextAreaEnableHapticFeedbackModifier.identity = Symbol('textAreaEnableHapticFeedback');
13062
13063class ArkTextAreaComponent extends ArkComponent {
13064  constructor(nativePtr, classType) {
13065    super(nativePtr, classType);
13066  }
13067  allowChildCount() {
13068    return 0;
13069  }
13070  initialize(value) {
13071    if (value.length === 1 && isObject(value[0])) {
13072      modifierWithKey(this._modifiersWithKeys, TextAreaInitializeModifier.identity, TextAreaInitializeModifier, value[0]);
13073    }
13074    return this;
13075  }
13076  type(value) {
13077    modifierWithKey(this._modifiersWithKeys, TextAreaTypeModifier.identity, TextAreaTypeModifier, value);
13078    return this;
13079  }
13080  placeholderColor(value) {
13081    modifierWithKey(this._modifiersWithKeys, TextAreaPlaceholderColorModifier.identity, TextAreaPlaceholderColorModifier, value);
13082    return this;
13083  }
13084  placeholderFont(value) {
13085    modifierWithKey(this._modifiersWithKeys, TextAreaPlaceholderFontModifier.identity, TextAreaPlaceholderFontModifier, value);
13086    return this;
13087  }
13088  textAlign(value) {
13089    modifierWithKey(this._modifiersWithKeys, TextAreaTextAlignModifier.identity, TextAreaTextAlignModifier, value);
13090    return this;
13091  }
13092  caretColor(value) {
13093    modifierWithKey(this._modifiersWithKeys, TextAreaCaretColorModifier.identity, TextAreaCaretColorModifier, value);
13094    return this;
13095  }
13096  fontColor(value) {
13097    modifierWithKey(this._modifiersWithKeys, TextAreaFontColorModifier.identity, TextAreaFontColorModifier, value);
13098    return this;
13099  }
13100  fontSize(value) {
13101    modifierWithKey(this._modifiersWithKeys, TextAreaFontSizeModifier.identity, TextAreaFontSizeModifier, value);
13102    return this;
13103  }
13104  fontStyle(value) {
13105    modifierWithKey(this._modifiersWithKeys, TextAreaFontStyleModifier.identity, TextAreaFontStyleModifier, value);
13106    return this;
13107  }
13108  fontWeight(value) {
13109    modifierWithKey(this._modifiersWithKeys, TextAreaFontWeightModifier.identity, TextAreaFontWeightModifier, value);
13110    return this;
13111  }
13112  fontFamily(value) {
13113    modifierWithKey(this._modifiersWithKeys, TextAreaFontFamilyModifier.identity, TextAreaFontFamilyModifier, value);
13114    return this;
13115  }
13116  fontFeature(value) {
13117    modifierWithKey(this._modifiersWithKeys, TextAreaFontFeatureModifier.identity, TextAreaFontFeatureModifier, value);
13118    return this;
13119  }
13120  inputFilter(value, error) {
13121    let arkValue = new ArkTextInputFilter();
13122    arkValue.value = value;
13123    arkValue.error = error;
13124    modifierWithKey(this._modifiersWithKeys, TextAreaInputFilterModifier.identity, TextAreaInputFilterModifier, arkValue);
13125    return this;
13126  }
13127  onChange(callback) {
13128    modifierWithKey(this._modifiersWithKeys, TextAreaOnChangeModifier.identity, TextAreaOnChangeModifier, callback);
13129    return this;
13130  }
13131  onTextSelectionChange(callback) {
13132    modifierWithKey(this._modifiersWithKeys, TextAreaOnTextSelectionChangeModifier.identity, TextAreaOnTextSelectionChangeModifier, callback);
13133    return this;
13134  }
13135  onContentScroll(callback) {
13136    modifierWithKey(this._modifiersWithKeys, TextAreaOnContentScrollModifier.identity, TextAreaOnContentScrollModifier, callback);
13137    return this;
13138  }
13139  onEditChange(callback) {
13140    modifierWithKey(this._modifiersWithKeys, TextAreaOnEditChangeModifier.identity, TextAreaOnEditChangeModifier, callback);
13141    return this;
13142  }
13143  onCopy(callback) {
13144    modifierWithKey(this._modifiersWithKeys, TextAreaOnCopyModifier.identity, TextAreaOnCopyModifier, callback);
13145    return this;
13146  }
13147  onCut(callback) {
13148    modifierWithKey(this._modifiersWithKeys, TextAreaOnCutModifier.identity, TextAreaOnCutModifier, callback);
13149    return this;
13150  }
13151  onPaste(callback) {
13152    modifierWithKey(this._modifiersWithKeys, TextAreaOnPasteModifier.identity, TextAreaOnPasteModifier, callback);
13153    return this;
13154  }
13155  copyOption(value) {
13156    modifierWithKey(this._modifiersWithKeys, TextAreaCopyOptionModifier.identity, TextAreaCopyOptionModifier, value);
13157    return this;
13158  }
13159  enableKeyboardOnFocus(value) {
13160    modifierWithKey(this._modifiersWithKeys, TextAreaEnableKeyboardOnFocusModifier.identity, TextAreaEnableKeyboardOnFocusModifier, value);
13161    return this;
13162  }
13163  maxLength(value) {
13164    modifierWithKey(this._modifiersWithKeys, TextAreaMaxLengthModifier.identity, TextAreaMaxLengthModifier, value);
13165    return this;
13166  }
13167  showCounter(value, options) {
13168    let arkValue = new ArkTextFieldShowCounter();
13169    arkValue.value = value;
13170    arkValue.highlightBorder = options?.highlightBorder;
13171    arkValue.thresholdPercentage = options?.thresholdPercentage;
13172    modifierWithKey(this._modifiersWithKeys, TextAreaShowCounterModifier.identity, TextAreaShowCounterModifier, arkValue);
13173    return this;
13174  }
13175  style(value) {
13176    modifierWithKey(this._modifiersWithKeys, TextAreaStyleModifier.identity, TextAreaStyleModifier, value);
13177    return this;
13178  }
13179  barState(value) {
13180    modifierWithKey(this._modifiersWithKeys, TextAreaBarStateModifier.identity, TextAreaBarStateModifier, value);
13181    return this;
13182  }
13183  selectionMenuHidden(value) {
13184    modifierWithKey(this._modifiersWithKeys, TextAreaSelectionMenuHiddenModifier.identity, TextAreaSelectionMenuHiddenModifier, value);
13185    return this;
13186  }
13187  maxLines(value) {
13188    modifierWithKey(this._modifiersWithKeys, TextAreaMaxLinesModifier.identity, TextAreaMaxLinesModifier, value);
13189    return this;
13190  }
13191  customKeyboard(value) {
13192    throw new Error('Method not implemented.');
13193  }
13194  decoration(value) {
13195    modifierWithKey(this._modifiersWithKeys, TextAreaDecorationModifier.identity, TextAreaDecorationModifier, value);
13196    return this;
13197  }
13198  letterSpacing(value) {
13199    modifierWithKey(this._modifiersWithKeys, TextAreaLetterSpacingModifier.identity, TextAreaLetterSpacingModifier, value);
13200    return this;
13201  }
13202  lineSpacing(value) {
13203    modifierWithKey(this._modifiersWithKeys, TextAreaLineSpacingModifier.identity, TextAreaLineSpacingModifier, value);
13204    return this;
13205  }
13206  lineHeight(value) {
13207    modifierWithKey(this._modifiersWithKeys, TextAreaLineHeightModifier.identity, TextAreaLineHeightModifier, value);
13208    return this;
13209  }
13210  wordBreak(value) {
13211    modifierWithKey(this._modifiersWithKeys, TextAreaWordBreakModifier.identity, TextAreaWordBreakModifier, value);
13212    return this;
13213  }
13214  lineBreakStrategy(value) {
13215    modifierWithKey(this._modifiersWithKeys, TextAreaLineBreakStrategyModifier.identity,
13216      TextAreaLineBreakStrategyModifier, value);
13217    return this;
13218  }
13219  minFontSize(value) {
13220    modifierWithKey(this._modifiersWithKeys, TextAreaMinFontSizeModifier.identity, TextAreaMinFontSizeModifier, value);
13221    return this;
13222  }
13223  maxFontSize(value) {
13224    modifierWithKey(this._modifiersWithKeys, TextAreaMaxFontSizeModifier.identity, TextAreaMaxFontSizeModifier, value);
13225    return this;
13226  }
13227  heightAdaptivePolicy(value) {
13228    modifierWithKey(this._modifiersWithKeys, TextAreaHeightAdaptivePolicyModifier.identity, TextAreaHeightAdaptivePolicyModifier, value);
13229    return this;
13230  }
13231  selectedBackgroundColor(value) {
13232    modifierWithKey(this._modifiersWithKeys, TextAreaSelectedBackgroundColorModifier.identity, TextAreaSelectedBackgroundColorModifier, value);
13233    return this;
13234  }
13235  caretStyle(value) {
13236    modifierWithKey(this._modifiersWithKeys, TextAreaCaretStyleModifier.identity, TextAreaCaretStyleModifier, value);
13237    return this;
13238  }
13239  textOverflow(value) {
13240    modifierWithKey(this._modifiersWithKeys, TextAreaTextOverflowModifier.identity, TextAreaTextOverflowModifier, value);
13241    return this;
13242  }
13243  textIndent(value) {
13244    modifierWithKey(this._modifiersWithKeys, TextAreaTextIndentModifier.identity, TextAreaTextIndentModifier, value);
13245    return this;
13246  }
13247  enterKeyType(value) {
13248    modifierWithKey(this._modifiersWithKeys, TextAreaEnterKeyTypeModifier.identity, TextAreaEnterKeyTypeModifier, value);
13249    return this;
13250  }
13251  padding(value) {
13252    let arkValue = new ArkPadding();
13253    if (value !== null && value !== undefined) {
13254      if (isLengthType(value) || isResource(value)) {
13255        arkValue.top = value;
13256        arkValue.right = value;
13257        arkValue.bottom = value;
13258        arkValue.left = value;
13259      }
13260      else {
13261        arkValue.top = value.top;
13262        arkValue.right = value.right;
13263        arkValue.bottom = value.bottom;
13264        arkValue.left = value.left;
13265      }
13266      modifierWithKey(this._modifiersWithKeys, TextAreaPaddingModifier.identity, TextAreaPaddingModifier, arkValue);
13267    }
13268    else {
13269      modifierWithKey(this._modifiersWithKeys, TextAreaPaddingModifier.identity, TextAreaPaddingModifier, undefined);
13270    }
13271    return this;
13272  }
13273  onSubmit(callback) {
13274    modifierWithKey(this._modifiersWithKeys, TextAreaOnSubmitModifier.identity, TextAreaOnSubmitModifier, callback);
13275    return this;
13276  }
13277  contentType(value) {
13278    modifierWithKey(this._modifiersWithKeys, TextAreaContentTypeModifier.identity,
13279      TextAreaContentTypeModifier, value);
13280    return this;
13281  }
13282  enableAutoFill(value) {
13283    modifierWithKey(this._modifiersWithKeys, TextAreaEnableAutoFillModifier.identity,
13284      TextAreaEnableAutoFillModifier, value);
13285    return this;
13286  }
13287  border(value) {
13288    let arkBorder = valueToArkBorder(value);
13289    modifierWithKey(this._modifiersWithKeys, TextAreaBorderModifier.identity, TextAreaBorderModifier, arkBorder);
13290    return this;
13291  }
13292  borderWidth(value) {
13293    modifierWithKey(this._modifiersWithKeys, TextAreaBorderWidthModifier.identity, TextAreaBorderWidthModifier, value);
13294    return this;
13295  }
13296  borderColor(value) {
13297    modifierWithKey(this._modifiersWithKeys, TextAreaBorderColorModifier.identity, TextAreaBorderColorModifier, value);
13298    return this;
13299  }
13300  borderStyle(value) {
13301    modifierWithKey(this._modifiersWithKeys, TextAreaBorderStyleModifier.identity, TextAreaBorderStyleModifier, value);
13302    return this;
13303  }
13304  borderRadius(value) {
13305    modifierWithKey(this._modifiersWithKeys, TextAreaBorderRadiusModifier.identity, TextAreaBorderRadiusModifier, value);
13306    return this;
13307  }
13308  backgroundColor(value) {
13309    modifierWithKey(this._modifiersWithKeys, TextAreaBackgroundColorModifier.identity, TextAreaBackgroundColorModifier, value);
13310    return this;
13311  }
13312  margin(value) {
13313    let arkValue = new ArkPadding();
13314    if (value !== null && value !== undefined) {
13315      if (isLengthType(value) || isResource(value)) {
13316        arkValue.top = value;
13317        arkValue.right = value;
13318        arkValue.bottom = value;
13319        arkValue.left = value;
13320      }
13321      else {
13322        arkValue.top = value.top;
13323        arkValue.right = value.right;
13324        arkValue.bottom = value.bottom;
13325        arkValue.left = value.left;
13326      }
13327      modifierWithKey(this._modifiersWithKeys, TextAreaMarginModifier.identity, TextAreaMarginModifier, arkValue);
13328    }
13329    else {
13330      modifierWithKey(this._modifiersWithKeys, TextAreaMarginModifier.identity, TextAreaMarginModifier, undefined);
13331    }
13332    return this;
13333  }
13334  onWillInsert(callback) {
13335    modifierWithKey(this._modifiersWithKeys, TextAreaOnWillInsertModifier.identity, TextAreaOnWillInsertModifier, callback);
13336    return this;
13337  }
13338  onDidInsert(callback) {
13339    modifierWithKey(this._modifiersWithKeys, TextAreaOnDidInsertModifier.identity, TextAreaOnDidInsertModifier, callback);
13340    return this;
13341  }
13342  onWillDelete(callback) {
13343    modifierWithKey(this._modifiersWithKeys, TextAreaOnWillDeleteModifier.identity, TextAreaOnWillDeleteModifier, callback);
13344    return this;
13345  }
13346  onDidDelete(callback) {
13347    modifierWithKey(this._modifiersWithKeys, TextAreaOnDidDeleteModifier.identity, TextAreaOnDidDeleteModifier, callback);
13348    return this;
13349  }
13350  enablePreviewText(value) {
13351    modifierWithKey(this._modifiersWithKeys, TextAreaEnablePreviewTextModifier.identity, TextAreaEnablePreviewTextModifier, value);
13352    return this;
13353  }
13354  editMenuOptions(value) {
13355    modifierWithKey(this._modifiersWithKeys, TextAreaEditMenuOptionsModifier.identity,
13356      TextAreaEditMenuOptionsModifier, value);
13357    return this;
13358  }
13359  width(value) {
13360    modifierWithKey(this._modifiersWithKeys, TextAreaWidthModifier.identity, TextAreaWidthModifier, value);
13361    return this;
13362  }
13363  enableHapticFeedback(value) {
13364    modifierWithKey(this._modifiersWithKeys, TextAreaEnableHapticFeedbackModifier.identity, TextAreaEnableHapticFeedbackModifier, value);
13365    return this;
13366  }
13367}
13368// @ts-ignore
13369if (globalThis.TextArea !== undefined) {
13370  globalThis.TextArea.attributeModifier = function (modifier) {
13371    attributeModifierFunc.call(this, modifier, (nativePtr) => {
13372      return new ArkTextAreaComponent(nativePtr);
13373    }, (nativePtr, classType, modifierJS) => {
13374      return new modifierJS.TextAreaModifier(nativePtr, classType);
13375    });
13376  };
13377}
13378
13379/// <reference path='./import.ts' />
13380class TextInputStyleModifier extends ModifierWithKey {
13381  constructor(value) {
13382    super(value);
13383  }
13384  applyPeer(node, reset) {
13385    if (reset) {
13386      getUINativeModule().textInput.resetStyle(node);
13387    }
13388    else {
13389      getUINativeModule().textInput.setStyle(node, this.value);
13390    }
13391  }
13392  checkObjectDiff() {
13393    return !isBaseOrResourceEqual(this.stageValue, this.value);
13394  }
13395}
13396TextInputStyleModifier.identity = Symbol('textInputStyle');
13397class TextInputMaxLengthModifier extends ModifierWithKey {
13398  constructor(value) {
13399    super(value);
13400  }
13401  applyPeer(node, reset) {
13402    if (reset) {
13403      getUINativeModule().textInput.resetMaxLength(node);
13404    }
13405    else {
13406      getUINativeModule().textInput.setMaxLength(node, this.value);
13407    }
13408  }
13409  checkObjectDiff() {
13410    return !isBaseOrResourceEqual(this.stageValue, this.value);
13411  }
13412}
13413TextInputMaxLengthModifier.identity = Symbol('textInputMaxLength');
13414class TextInputMaxLinesModifier extends ModifierWithKey {
13415  constructor(value) {
13416    super(value);
13417  }
13418  applyPeer(node, reset) {
13419    if (reset) {
13420      getUINativeModule().textInput.resetMaxLines(node);
13421    }
13422    else {
13423      getUINativeModule().textInput.setMaxLines(node, this.value);
13424    }
13425  }
13426  checkObjectDiff() {
13427    return !isBaseOrResourceEqual(this.stageValue, this.value);
13428  }
13429}
13430TextInputMaxLinesModifier.identity = Symbol('textInputMaxLines');
13431class TextInputDecorationModifier extends ModifierWithKey {
13432  constructor(value) {
13433    super(value);
13434  }
13435  applyPeer(node, reset) {
13436    if (reset) {
13437      getUINativeModule().textInput.resetDecoration(node);
13438    }
13439    else {
13440      getUINativeModule().textInput.setDecoration(node, this.value.type, this.value.color, this.value.style);
13441    }
13442  }
13443  checkObjectDiff() {
13444    if (this.stageValue.type !== this.value.type || this.stageValue.style !== this.value.style) {
13445      return true;
13446    }
13447    if (isResource(this.stageValue.color) && isResource(this.value.color)) {
13448      return !isResourceEqual(this.stageValue.color, this.value.color);
13449    }
13450    else if (!isResource(this.stageValue.color) && !isResource(this.value.color)) {
13451      return !(this.stageValue.color === this.value.color);
13452    }
13453    else {
13454      return true;
13455    }
13456  }
13457}
13458TextInputDecorationModifier.identity = Symbol('textInputDecoration');
13459class TextInputLetterSpacingModifier extends ModifierWithKey {
13460    constructor(value) {
13461        super(value);
13462    }
13463    applyPeer(node, reset) {
13464        if (reset) {
13465            getUINativeModule().textInput.resetLetterSpacing(node);
13466        }
13467        else {
13468            getUINativeModule().textInput.setLetterSpacing(node, this.value);
13469        }
13470    }
13471    checkObjectDiff() {
13472        return !isBaseOrResourceEqual(this.stageValue, this.value);
13473    }
13474}
13475TextInputLetterSpacingModifier.identity = Symbol('textInputLetterSpacing');
13476class TextInputLineHeightModifier extends ModifierWithKey {
13477    constructor(value) {
13478        super(value);
13479    }
13480    applyPeer(node, reset) {
13481        if (reset) {
13482            getUINativeModule().textInput.resetLineHeight(node);
13483        }
13484        else {
13485            getUINativeModule().textInput.setLineHeight(node, this.value);
13486        }
13487    }
13488    checkObjectDiff() {
13489        return !isBaseOrResourceEqual(this.stageValue, this.value);
13490    }
13491}
13492TextInputLineHeightModifier.identity = Symbol('textInputLineHeight');
13493class TextInputUnderlineColorModifier extends ModifierWithKey {
13494  constructor(value) {
13495      super(value);
13496  }
13497  applyPeer(node, reset) {
13498      if (reset) {
13499          getUINativeModule().textInput.resetUnderlineColor(node);
13500      }
13501      else {
13502          const valueType = typeof this.value;
13503          if (valueType === 'number' || valueType === 'string' || isResource(this.value)) {
13504              getUINativeModule().textInput.setUnderlineColor(node, this.value, undefined, undefined, undefined, undefined);
13505          }
13506          else {
13507              getUINativeModule().textInput.setUnderlineColor(node, undefined, this.value.normal, this.value.typing, this.value.error, this.value.disable);
13508          }
13509      }
13510  }
13511  checkObjectDiff() {
13512      if (isResource(this.stageValue) && isResource(this.value)) {
13513          return !isBaseOrResourceEqual(this.stageValue, this.value);
13514      }
13515      else if (!isResource(this.stageValue) && !isResource(this.value)) {
13516          return !(this.stageValue.normal === this.value.normal &&
13517              this.stageValue.typing === this.value.typing &&
13518              this.stageValue.error === this.value.error &&
13519              this.stageValue.disable === this.value.disable);
13520      }
13521      else {
13522          return true;
13523      }
13524  }
13525}
13526TextInputUnderlineColorModifier.identity = Symbol('textInputUnderlineColor');
13527class TextInputWordBreakModifier extends ModifierWithKey {
13528    constructor(value) {
13529        super(value);
13530    }
13531    applyPeer(node, reset) {
13532        if (reset) {
13533            getUINativeModule().textInput.resetWordBreak(node);
13534        }
13535        else {
13536            getUINativeModule().textInput.setWordBreak(node, this.value);
13537        }
13538    }
13539    checkObjectDiff() {
13540        return !isBaseOrResourceEqual(this.stageValue, this.value);
13541    }
13542}
13543TextInputWordBreakModifier.identity = Symbol('textInputWordBreak');
13544
13545class TextInputLineBreakStrategyModifier extends ModifierWithKey {
13546  constructor(value) {
13547      super(value);
13548  }
13549  applyPeer(node, reset) {
13550      if (reset) {
13551          getUINativeModule().textInput.resetLineBreakStrategy(node);
13552      }
13553      else {
13554          getUINativeModule().textInput.setLineBreakStrategy(node, this.value);
13555      }
13556  }
13557  checkObjectDiff() {
13558      return !isBaseOrResourceEqual(this.stageValue, this.value);
13559  }
13560}
13561TextInputLineBreakStrategyModifier.identity = Symbol('textInputLineBreakStrategy');
13562
13563class TextInputMinFontSizeModifier extends ModifierWithKey {
13564    constructor(value) {
13565        super(value);
13566    }
13567    applyPeer(node, reset) {
13568        if (reset) {
13569            getUINativeModule().textInput.resetMinFontSize(node);
13570        }
13571        else {
13572            getUINativeModule().textInput.setMinFontSize(node, this.value);
13573        }
13574    }
13575    checkObjectDiff() {
13576        return !isBaseOrResourceEqual(this.stageValue, this.value);
13577    }
13578}
13579TextInputMinFontSizeModifier.identity = Symbol('textInputMinFontSize');
13580class TextInputMaxFontSizeModifier extends ModifierWithKey {
13581    constructor(value) {
13582        super(value);
13583    }
13584    applyPeer(node, reset) {
13585        if (reset) {
13586            getUINativeModule().textInput.resetMaxFontSize(node);
13587        }
13588        else {
13589            getUINativeModule().textInput.setMaxFontSize(node, this.value);
13590        }
13591    }
13592    checkObjectDiff() {
13593        return !isBaseOrResourceEqual(this.stageValue, this.value);
13594    }
13595}
13596TextInputMaxFontSizeModifier.identity = Symbol('textInputMaxFontSize');
13597class TextInputHeightAdaptivePolicyModifier extends ModifierWithKey {
13598    constructor(value) {
13599        super(value);
13600    }
13601    applyPeer(node, reset) {
13602        if (reset) {
13603            getUINativeModule().textInput.resetHeightAdaptivePolicy(node);
13604        }
13605        else {
13606            getUINativeModule().textInput.setHeightAdaptivePolicy(node, this.value);
13607        }
13608    }
13609    checkObjectDiff() {
13610        return !isBaseOrResourceEqual(this.stageValue, this.value);
13611    }
13612}
13613TextInputHeightAdaptivePolicyModifier.identity = Symbol('textInputHeightAdaptivePolicy');
13614class TextInputTextOverflowModifier extends ModifierWithKey {
13615  constructor(value) {
13616      super(value);
13617  }
13618  applyPeer(node, reset) {
13619      if (reset) {
13620          getUINativeModule().textInput.resetTextOverflow(node);
13621      } else {
13622          getUINativeModule().textInput.setTextOverflow(node, this.value);
13623      }
13624  }
13625  checkObjectDiff() {
13626      return this.stageValue !== this.value;
13627  }
13628}
13629TextInputTextOverflowModifier.identity = Symbol('textInputTextOverflow');
13630class TextInputTextIndentModifier extends ModifierWithKey {
13631  constructor(value) {
13632      super(value);
13633  }
13634  applyPeer(node, reset) {
13635      if (reset) {
13636          getUINativeModule().textInput.resetTextIndent(node);
13637      } else {
13638          getUINativeModule().textInput.setTextIndent(node, this.value);
13639      }
13640  }
13641
13642  checkObjectDiff() {
13643      return !isBaseOrResourceEqual(this.stageValue, this.value);
13644  }
13645}
13646TextInputTextIndentModifier.identity = Symbol('textInputTextIndent');
13647class TextInputShowPasswordIconModifier extends ModifierWithKey {
13648  constructor(value) {
13649    super(value);
13650  }
13651  applyPeer(node, reset) {
13652    if (reset) {
13653      getUINativeModule().textInput.resetShowPasswordIcon(node);
13654    }
13655    else {
13656      getUINativeModule().textInput.setShowPasswordIcon(node, this.value);
13657    }
13658  }
13659  checkObjectDiff() {
13660    return !isBaseOrResourceEqual(this.stageValue, this.value);
13661  }
13662}
13663TextInputShowPasswordIconModifier.identity = Symbol('textInputShowPasswordIcon');
13664class TextInputShowPasswordModifier extends ModifierWithKey {
13665  constructor(value) {
13666    super(value);
13667  }
13668  applyPeer(node, reset) {
13669    if (reset) {
13670      getUINativeModule().textInput.resetShowPassword(node);
13671    }
13672    else {
13673      getUINativeModule().textInput.setShowPassword(node, this.value);
13674    }
13675  }
13676  checkObjectDiff() {
13677    return !isBaseOrResourceEqual(this.stageValue, this.value);
13678  }
13679}
13680TextInputShowPasswordModifier.identity = Symbol('textInputShowPassword');
13681class TextInputTextAlignModifier extends ModifierWithKey {
13682  constructor(value) {
13683    super(value);
13684  }
13685  applyPeer(node, reset) {
13686    if (reset) {
13687      getUINativeModule().textInput.resetTextAlign(node);
13688    }
13689    else {
13690      getUINativeModule().textInput.setTextAlign(node, this.value);
13691    }
13692  }
13693  checkObjectDiff() {
13694    return !isBaseOrResourceEqual(this.stageValue, this.value);
13695  }
13696}
13697TextInputTextAlignModifier.identity = Symbol('textInputTextAlign');
13698class TextInputPlaceholderFontModifier extends ModifierWithKey {
13699  constructor(value) {
13700    super(value);
13701  }
13702  applyPeer(node, reset) {
13703    if (reset) {
13704      getUINativeModule().textInput.resetPlaceholderFont(node);
13705    }
13706    else {
13707      getUINativeModule().textInput.setPlaceholderFont(node, this.value.size, this.value.weight, this.value.family, this.value.style);
13708    }
13709  }
13710  checkObjectDiff() {
13711    if (!(this.stageValue.weight === this.value.weight &&
13712      this.stageValue.style === this.value.style)) {
13713      return true;
13714    }
13715    else {
13716      if (((isResource(this.stageValue.size) && isResource(this.value.size) &&
13717        isResourceEqual(this.stageValue.size, this.value.size)) ||
13718        (!isResource(this.stageValue.size) && !isResource(this.value.size) &&
13719          this.stageValue.size === this.value.size)) &&
13720        ((isResource(this.stageValue.family) && isResource(this.value.family) &&
13721          isResourceEqual(this.stageValue.family, this.value.family)) ||
13722          (!isResource(this.stageValue.family) && !isResource(this.value.family) &&
13723            this.stageValue.family === this.value.family))) {
13724        return false;
13725      }
13726      else {
13727        return true;
13728      }
13729    }
13730  }
13731}
13732TextInputPlaceholderFontModifier.identity = Symbol('textInputPlaceholderFont');
13733class TextInputPlaceholderColorModifier extends ModifierWithKey {
13734  constructor(value) {
13735    super(value);
13736  }
13737  applyPeer(node, reset) {
13738    if (reset) {
13739      getUINativeModule().textInput.resetPlaceholderColor(node);
13740    }
13741    else {
13742      getUINativeModule().textInput.setPlaceholderColor(node, this.value);
13743    }
13744  }
13745  checkObjectDiff() {
13746    return !isBaseOrResourceEqual(this.stageValue, this.value);
13747  }
13748}
13749TextInputPlaceholderColorModifier.identity = Symbol('textInputPlaceholderColor');
13750class TextInputPasswordIconModifier extends ModifierWithKey {
13751  constructor(value) {
13752    super(value);
13753  }
13754  applyPeer(node, reset) {
13755    if (reset) {
13756      getUINativeModule().textInput.resetPasswordIcon(node);
13757    }
13758    else {
13759      getUINativeModule().textInput.setPasswordIcon(node, this.value.onIconSrc, this.value.offIconSrc);
13760    }
13761  }
13762  checkObjectDiff() {
13763    return !isBaseOrResourceEqual(this.stageValue.onIconSrc, this.value.onIconSrc) ||
13764      !isBaseOrResourceEqual(this.stageValue.offIconSrc, this.value.offIconSrc);
13765  }
13766}
13767TextInputPasswordIconModifier.identity = Symbol('textInputPasswordIcon');
13768class TextInputSelectedBackgroundColorModifier extends ModifierWithKey {
13769  constructor(value) {
13770    super(value);
13771  }
13772  applyPeer(node, reset) {
13773    if (reset) {
13774      getUINativeModule().textInput.resetSelectedBackgroundColor(node);
13775    }
13776    else {
13777      getUINativeModule().textInput.setSelectedBackgroundColor(node, this.value);
13778    }
13779  }
13780  checkObjectDiff() {
13781    return !isBaseOrResourceEqual(this.stageValue, this.value);
13782  }
13783}
13784TextInputSelectedBackgroundColorModifier.identity = Symbol('textInputSelectedBackgroundColor');
13785class TextInputSelectionMenuHiddenModifier extends ModifierWithKey {
13786  constructor(value) {
13787    super(value);
13788  }
13789  applyPeer(node, reset) {
13790    if (reset) {
13791      getUINativeModule().textInput.resetSelectionMenuHidden(node);
13792    }
13793    else {
13794      getUINativeModule().textInput.setSelectionMenuHidden(node, this.value);
13795    }
13796  }
13797  checkObjectDiff() {
13798    return !isBaseOrResourceEqual(this.stageValue, this.value);
13799  }
13800}
13801TextInputSelectionMenuHiddenModifier.identity = Symbol('textInputSelectionMenuHidden');
13802class TextInputShowUnderlineModifier extends ModifierWithKey {
13803  constructor(value) {
13804    super(value);
13805  }
13806  applyPeer(node, reset) {
13807    if (reset) {
13808      getUINativeModule().textInput.resetShowUnderline(node);
13809    }
13810    else {
13811      getUINativeModule().textInput.setShowUnderline(node, this.value);
13812    }
13813  }
13814  checkObjectDiff() {
13815    return !isBaseOrResourceEqual(this.stageValue, this.value);
13816  }
13817}
13818TextInputShowUnderlineModifier.identity = Symbol('textInputShowUnderLine');
13819
13820class TextInputPasswordRulesModifier extends ModifierWithKey {
13821  constructor(value) {
13822    super(value);
13823  }
13824  applyPeer(node, reset) {
13825    if (reset) {
13826      getUINativeModule().textInput.resetPasswordRules(node);
13827    } else {
13828      getUINativeModule().textInput.setPasswordRules(node, this.value);
13829    }
13830  }
13831  checkObjectDiff() {
13832    return !isBaseOrResourceEqual(this.stageValue, this.value);
13833  }
13834}
13835
13836TextInputPasswordRulesModifier.identity = Symbol('textInputPasswordRules');
13837class TextInputEnableAutoFillModifier extends ModifierWithKey {
13838  constructor(value) {
13839    super(value);
13840  }
13841  applyPeer(node, reset) {
13842    if (reset) {
13843      getUINativeModule().textInput.resetEnableAutoFill(node);
13844    } else {
13845      getUINativeModule().textInput.setEnableAutoFill(node, this.value);
13846    }
13847  }
13848  checkObjectDiff() {
13849    return !isBaseOrResourceEqual(this.stageValue, this.value);
13850  }
13851}
13852TextInputEnableAutoFillModifier.identity = Symbol('textInputEnableAutoFill');
13853
13854class TextInputFontFeatureModifier extends ModifierWithKey {
13855  constructor(value) {
13856    super(value);
13857  }
13858  applyPeer(node, reset) {
13859    if (reset) {
13860      getUINativeModule().textInput.resetFontFeature(node);
13861    } else {
13862      getUINativeModule().textInput.setFontFeature(node, this.value);
13863    }
13864  }
13865  checkObjectDiff() {
13866    return !isBaseOrResourceEqual(this.stageValue, this.value);
13867  }
13868}
13869TextInputFontFeatureModifier.identity = Symbol('textInputFontFeature');
13870
13871class TextInputShowErrorModifier extends ModifierWithKey {
13872  constructor(value) {
13873    super(value);
13874  }
13875  applyPeer(node, reset) {
13876    if (reset) {
13877      getUINativeModule().textInput.resetShowError(node);
13878    }
13879    else {
13880      getUINativeModule().textInput.setShowError(node, this.value);
13881    }
13882  }
13883  checkObjectDiff() {
13884    return !isBaseOrResourceEqual(this.stageValue, this.value);
13885  }
13886}
13887TextInputShowErrorModifier.identity = Symbol('textInputShowError');
13888class TextInputTypeModifier extends ModifierWithKey {
13889  constructor(value) {
13890    super(value);
13891  }
13892  applyPeer(node, reset) {
13893    if (reset) {
13894      getUINativeModule().textInput.resetType(node);
13895    }
13896    else {
13897      getUINativeModule().textInput.setType(node, this.value);
13898    }
13899  }
13900  checkObjectDiff() {
13901    return !isBaseOrResourceEqual(this.stageValue, this.value);
13902  }
13903}
13904TextInputTypeModifier.identity = Symbol('textInputType');
13905class TextInputCaretPositionModifier extends ModifierWithKey {
13906  constructor(value) {
13907    super(value);
13908  }
13909  applyPeer(node, reset) {
13910    if (reset) {
13911      getUINativeModule().textInput.resetCaretPosition(node);
13912    }
13913    else {
13914      getUINativeModule().textInput.setCaretPosition(node, this.value);
13915    }
13916  }
13917  checkObjectDiff() {
13918    return !isBaseOrResourceEqual(this.stageValue, this.value);
13919  }
13920}
13921TextInputCaretPositionModifier.identity = Symbol('textInputCaretPosition');
13922class TextInputCopyOptionModifier extends ModifierWithKey {
13923  constructor(value) {
13924    super(value);
13925  }
13926  applyPeer(node, reset) {
13927    if (reset) {
13928      getUINativeModule().textInput.resetCopyOption(node);
13929    }
13930    else {
13931      getUINativeModule().textInput.setCopyOption(node, this.value);
13932    }
13933  }
13934  checkObjectDiff() {
13935    return !isBaseOrResourceEqual(this.stageValue, this.value);
13936  }
13937}
13938TextInputCopyOptionModifier.identity = Symbol('textInputCopyOption');
13939class TextInputEnableKeyboardOnFocusModifier extends ModifierWithKey {
13940  constructor(value) {
13941    super(value);
13942  }
13943  applyPeer(node, reset) {
13944    if (reset) {
13945      getUINativeModule().textInput.resetEnableKeyboardOnFocus(node);
13946    }
13947    else {
13948      getUINativeModule().textInput.setEnableKeyboardOnFocus(node, this.value);
13949    }
13950  }
13951  checkObjectDiff() {
13952    return !isBaseOrResourceEqual(this.stageValue, this.value);
13953  }
13954}
13955TextInputEnableKeyboardOnFocusModifier.identity = Symbol('textInputEnableKeyboardOnFocus');
13956class TextInputCaretStyleModifier extends ModifierWithKey {
13957  constructor(value) {
13958    super(value);
13959  }
13960  applyPeer(node, reset) {
13961    if (reset) {
13962      getUINativeModule().textInput.resetCaretStyle(node);
13963    }
13964    else {
13965      getUINativeModule().textInput.setCaretStyle(node, this.value.width, this.value.color);
13966    }
13967  }
13968  checkObjectDiff() {
13969    if (isObject(this.stageValue) && isObject(this.value)) {
13970      return !isBaseOrResourceEqual(this.stageValue.width, this.value.width);
13971    }
13972    else {
13973      return true;
13974    }
13975  }
13976}
13977TextInputCaretStyleModifier.identity = Symbol('textInputCaretStyle');
13978class TextInputEnterKeyTypeModifier extends ModifierWithKey {
13979  constructor(value) {
13980    super(value);
13981  }
13982  applyPeer(node, reset) {
13983    if (reset) {
13984      getUINativeModule().textInput.resetEnterKeyType(node);
13985    }
13986    else {
13987      getUINativeModule().textInput.setEnterKeyType(node, this.value);
13988    }
13989  }
13990  checkObjectDiff() {
13991    return !isBaseOrResourceEqual(this.stageValue, this.value);
13992  }
13993}
13994TextInputEnterKeyTypeModifier.identity = Symbol('textInputEnterKeyType');
13995class TextInputBarStateModifier extends ModifierWithKey {
13996  constructor(value) {
13997    super(value);
13998  }
13999  applyPeer(node, reset) {
14000    if (reset) {
14001      getUINativeModule().textInput.resetBarState(node);
14002    }
14003    else {
14004      getUINativeModule().textInput.setBarState(node, this.value);
14005    }
14006  }
14007  checkObjectDiff() {
14008    return !isBaseOrResourceEqual(this.stageValue, this.value);
14009  }
14010}
14011TextInputBarStateModifier.identity = Symbol('textInputBarState');
14012class TextInputCaretColorModifier extends ModifierWithKey {
14013  constructor(value) {
14014    super(value);
14015  }
14016  applyPeer(node, reset) {
14017    if (reset) {
14018      getUINativeModule().textInput.resetCaretColor(node);
14019    }
14020    else {
14021      getUINativeModule().textInput.setCaretColor(node, this.value);
14022    }
14023  }
14024  checkObjectDiff() {
14025    return !isBaseOrResourceEqual(this.stageValue, this.value);
14026  }
14027}
14028TextInputCaretColorModifier.identity = Symbol('textinputCaretColor');
14029class TextInputFontColorModifier extends ModifierWithKey {
14030  constructor(value) {
14031    super(value);
14032  }
14033  applyPeer(node, reset) {
14034    if (reset) {
14035      getUINativeModule().textInput.resetFontColor(node);
14036    }
14037    else {
14038      getUINativeModule().textInput.setFontColor(node, this.value);
14039    }
14040  }
14041  checkObjectDiff() {
14042    return !isBaseOrResourceEqual(this.stageValue, this.value);
14043  }
14044}
14045TextInputFontColorModifier.identity = Symbol('textInputFontColor');
14046class TextInputFontSizeModifier extends ModifierWithKey {
14047  constructor(value) {
14048    super(value);
14049  }
14050  applyPeer(node, reset) {
14051    if (reset) {
14052      getUINativeModule().textInput.resetFontSize(node);
14053    }
14054    else {
14055      getUINativeModule().textInput.setFontSize(node, this.value);
14056    }
14057  }
14058  checkObjectDiff() {
14059    return !isBaseOrResourceEqual(this.stageValue, this.value);
14060  }
14061}
14062TextInputFontSizeModifier.identity = Symbol('textInputFontSize');
14063class TextInputFontStyleModifier extends ModifierWithKey {
14064  constructor(value) {
14065    super(value);
14066  }
14067  applyPeer(node, reset) {
14068    if (reset) {
14069      getUINativeModule().textInput.resetFontStyle(node);
14070    }
14071    else {
14072      getUINativeModule().textInput.setFontStyle(node, this.value);
14073    }
14074  }
14075  checkObjectDiff() {
14076    return !isBaseOrResourceEqual(this.stageValue, this.value);
14077  }
14078}
14079TextInputFontStyleModifier.identity = Symbol('textInputFontStyle');
14080class TextInputFontWeightModifier extends ModifierWithKey {
14081  constructor(value) {
14082    super(value);
14083  }
14084  applyPeer(node, reset) {
14085    if (reset) {
14086      getUINativeModule().textInput.resetFontWeight(node);
14087    }
14088    else {
14089      getUINativeModule().textInput.setFontWeight(node, this.value);
14090    }
14091  }
14092  checkObjectDiff() {
14093    return !isBaseOrResourceEqual(this.stageValue, this.value);
14094  }
14095}
14096TextInputFontWeightModifier.identity = Symbol('textInputFontWeight');
14097class TextInputFontFamilyModifier extends ModifierWithKey {
14098  constructor(value) {
14099    super(value);
14100  }
14101  applyPeer(node, reset) {
14102    if (reset) {
14103      getUINativeModule().textInput.resetFontFamily(node);
14104    }
14105    else {
14106      getUINativeModule().textInput.setFontFamily(node, this.value);
14107    }
14108  }
14109  checkObjectDiff() {
14110    return !isBaseOrResourceEqual(this.stageValue, this.value);
14111  }
14112}
14113TextInputFontFamilyModifier.identity = Symbol('textInputFontFamily');
14114class TextInputCancelButtonModifier extends ModifierWithKey {
14115  constructor(value) {
14116    super(value);
14117  }
14118  applyPeer(node, reset) {
14119    if (reset) {
14120      getUINativeModule().textInput.resetCancelButton(node);
14121    }
14122    else {
14123      let _a, _b, _c;
14124      getUINativeModule().textInput.setCancelButton(node, this.value.style,
14125        (_a = this.value.icon) === null || _a === void 0 ? void 0 : _a.size,
14126        (_b = this.value.icon) === null || _b === void 0 ? void 0 : _b.color,
14127        (_c = this.value.icon) === null || _c === void 0 ? void 0 : _c.src);
14128    }
14129  }
14130  checkObjectDiff() {
14131    let _a, _b, _c, _d, _e, _f;
14132    return this.stageValue.style !== this.value.style ||
14133      !isBaseOrResourceEqual((_a = this.stageValue.icon) === null || _a === void 0 ? void 0 : _a.size, (_b = this.value.icon) === null || _b === void 0 ? void 0 : _b.size) ||
14134      !isBaseOrResourceEqual((_c = this.stageValue.icon) === null || _c === void 0 ? void 0 : _c.color, (_d = this.value.icon) === null || _d === void 0 ? void 0 : _d.color) ||
14135      !isBaseOrResourceEqual((_e = this.stageValue.icon) === null || _e === void 0 ? void 0 : _e.src, (_f = this.value.icon) === null || _f === void 0 ? void 0 : _f.src);
14136  }
14137}
14138TextInputCancelButtonModifier.identity = Symbol('textInputCancelButton');
14139class TextInputSelectAllModifier extends ModifierWithKey {
14140  constructor(value) {
14141    super(value);
14142  }
14143  applyPeer(node, reset) {
14144    if (reset) {
14145      getUINativeModule().textInput.resetSelectAll(node);
14146    }
14147    else {
14148      getUINativeModule().textInput.setSelectAll(node, this.value);
14149    }
14150  }
14151  checkObjectDiff() {
14152    return !isBaseOrResourceEqual(this.stageValue, this.value);
14153  }
14154}
14155TextInputSelectAllModifier.identity = Symbol('textInputSelectAll');
14156class TextInputShowCounterModifier extends ModifierWithKey {
14157  constructor(value) {
14158    super(value);
14159  }
14160  applyPeer(node, reset) {
14161    if (reset) {
14162      getUINativeModule().textInput.resetShowCounter(node);
14163    }
14164    else {
14165      getUINativeModule().textInput.setShowCounter(node, this.value.value, this.value.highlightBorder, this.value.thresholdPercentage);
14166    }
14167  }
14168  checkObjectDiff() {
14169    return !isBaseOrResourceEqual(this.stageValue.value, this.value.value) ||
14170      !isBaseOrResourceEqual(this.stageValue.highlightBorder, this.value.highlightBorder) ||
14171      !isBaseOrResourceEqual(this.stageValue.thresholdPercentage, this.value.thresholdPercentage);
14172  }
14173}
14174TextInputShowCounterModifier.identity = Symbol('textInputShowCounter');
14175class TextInputOnEditChangeModifier extends ModifierWithKey {
14176  constructor(value) {
14177    super(value);
14178  }
14179  applyPeer(node, reset) {
14180    if (reset) {
14181      getUINativeModule().textInput.resetOnEditChange(node);
14182    } else {
14183      getUINativeModule().textInput.setOnEditChange(node, this.value);
14184    }
14185  }
14186}
14187TextInputOnEditChangeModifier.identity = Symbol('textInputOnEditChange');
14188class TextInputFilterModifier extends ModifierWithKey {
14189  constructor(value) {
14190    super(value);
14191  }
14192  applyPeer(node, reset) {
14193    if (reset) {
14194      getUINativeModule().textInput.resetInputFilter(node);
14195    }
14196    else {
14197      getUINativeModule().textInput.setInputFilter(node, this.value.value, this.value.error);
14198    }
14199  }
14200  checkObjectDiff() {
14201    return !isBaseOrResourceEqual(this.stageValue.value, this.value.value) ||
14202      !isBaseOrResourceEqual(this.stageValue.error, this.value.error);
14203  }
14204}
14205TextInputFilterModifier.identity = Symbol('textInputFilter');
14206class TextInputOnSubmitModifier extends ModifierWithKey {
14207  constructor(value) {
14208    super(value);
14209  }
14210  applyPeer(node, reset) {
14211    if (reset) {
14212      getUINativeModule().textInput.resetOnSubmit(node);
14213    } else {
14214      getUINativeModule().textInput.setOnSubmit(node, this.value);
14215    }
14216  }
14217}
14218TextInputOnSubmitModifier.identity = Symbol('textInputOnSubmit');
14219class TextInputOnChangeModifier extends ModifierWithKey {
14220  constructor(value) {
14221    super(value);
14222  }
14223  applyPeer(node, reset) {
14224    if (reset) {
14225      getUINativeModule().textInput.resetOnChange(node);
14226    } else {
14227      getUINativeModule().textInput.setOnChange(node, this.value);
14228    }
14229  }
14230}
14231TextInputOnChangeModifier.identity = Symbol('textInputOnChange');
14232class TextInputOnTextSelectionChangeModifier extends ModifierWithKey {
14233  constructor(value) {
14234    super(value);
14235  }
14236  applyPeer(node, reset) {
14237    if (reset) {
14238      getUINativeModule().textInput.resetOnTextSelectionChange(node);
14239    } else {
14240      getUINativeModule().textInput.setOnTextSelectionChange(node, this.value);
14241    }
14242  }
14243}
14244TextInputOnTextSelectionChangeModifier.identity = Symbol('textInputOnTextSelectionChange');
14245class TextInputOnContentScrollModifier extends ModifierWithKey {
14246  constructor(value) {
14247    super(value);
14248  }
14249  applyPeer(node, reset) {
14250    if (reset) {
14251      getUINativeModule().textInput.resetOnContentScroll(node);
14252    } else {
14253      getUINativeModule().textInput.setOnContentScroll(node, this.value);
14254    }
14255  }
14256}
14257TextInputOnContentScrollModifier.identity = Symbol('textInputOnContentScroll');
14258class TextInputOnCopyModifier extends ModifierWithKey {
14259  constructor(value) {
14260    super(value);
14261  }
14262  applyPeer(node, reset) {
14263    if (reset) {
14264      getUINativeModule().textInput.resetOnCopy(node);
14265    } else {
14266      getUINativeModule().textInput.setOnCopy(node, this.value);
14267    }
14268  }
14269}
14270TextInputOnCopyModifier.identity = Symbol('textInputOnCopy');
14271class TextInputOnCutModifier extends ModifierWithKey {
14272  constructor(value) {
14273    super(value);
14274  }
14275  applyPeer(node, reset) {
14276    if (reset) {
14277      getUINativeModule().textInput.resetOnCut(node);
14278    } else {
14279      getUINativeModule().textInput.setOnCut(node, this.value);
14280    }
14281  }
14282}
14283TextInputOnCutModifier.identity = Symbol('textInputOnCut');
14284class TextInputOnPasteModifier extends ModifierWithKey {
14285  constructor(value) {
14286    super(value);
14287  }
14288  applyPeer(node, reset) {
14289    if (reset) {
14290      getUINativeModule().textInput.resetOnPaste(node);
14291    } else {
14292      getUINativeModule().textInput.setOnPaste(node, this.value);
14293    }
14294  }
14295}
14296TextInputOnPasteModifier.identity = Symbol('textInputOnPaste');
14297class TextInputPaddingModifier extends ModifierWithKey {
14298  constructor(value) {
14299    super(value);
14300  }
14301  applyPeer(node, reset) {
14302    if (reset) {
14303      getUINativeModule().textInput.resetPadding(node);
14304    }
14305    else {
14306      getUINativeModule().textInput.setPadding(node, this.value.top, this.value.right, this.value.bottom, this.value.left);
14307    }
14308  }
14309  checkObjectDiff() {
14310    return !isBaseOrResourceEqual(this.stageValue.top, this.value.top) ||
14311      !isBaseOrResourceEqual(this.stageValue.right, this.value.right) ||
14312      !isBaseOrResourceEqual(this.stageValue.bottom, this.value.bottom) ||
14313      !isBaseOrResourceEqual(this.stageValue.left, this.value.left);
14314  }
14315}
14316TextInputPaddingModifier.identity = Symbol('textInputPadding');
14317
14318class TextInputTextModifier extends ModifierWithKey {
14319  constructor(value) {
14320    super(value);
14321  }
14322
14323  applyPeer(node, reset) {
14324    if (reset) {
14325      getUINativeModule().textInput.resetText(node);
14326    } else {
14327      getUINativeModule().textInput.setText(node, this.value);
14328    }
14329  }
14330
14331  checkObjectDiff() {
14332    return !isBaseOrResourceEqual(this.stageValue, this.value);
14333  }
14334}
14335TextInputTextModifier.identity = Symbol('textInputText');
14336
14337class TextInputPlaceholderModifier extends ModifierWithKey {
14338  constructor(value) {
14339    super(value);
14340  }
14341  applyPeer(node, reset) {
14342    if (reset) {
14343      getUINativeModule().textInput.resetPlaceholder(node);
14344    } else {
14345      getUINativeModule().textInput.setPlaceholder(node, this.value);
14346    }
14347  }
14348
14349  checkObjectDiff() {
14350    return !isBaseOrResourceEqual(this.stageValue, this.value);
14351  }
14352}
14353TextInputPlaceholderModifier.identity = Symbol('textInputPlaceholder');
14354
14355class TextInputControllerModifier extends ModifierWithKey {
14356  constructor(value) {
14357    super(value);
14358  }
14359
14360  applyPeer(node, reset) {
14361    if (reset) {
14362      getUINativeModule().textInput.resetController(node);
14363    } else {
14364      getUINativeModule().textInput.setController(node, this.value);
14365    }
14366  }
14367
14368}
14369TextInputControllerModifier.identity = Symbol('textInputController');
14370
14371
14372class TextInputContentTypeModifier extends ModifierWithKey {
14373  constructor(value) {
14374    super(value);
14375  }
14376  applyPeer(node, reset) {
14377    if (reset) {
14378      getUINativeModule().textInput.resetContentType(node);
14379    }
14380    else {
14381      getUINativeModule().textInput.setContentType(node, this.value);
14382    }
14383  }
14384  checkObjectDiff() {
14385    return !isBaseOrResourceEqual(this.stageValue, this.value);
14386  }
14387}
14388TextInputContentTypeModifier.identity = Symbol('textInputContentType');
14389class TextInputBorderModifier extends ModifierWithKey {
14390  constructor(value) {
14391    super(value);
14392  }
14393  applyPeer(node, reset) {
14394    if (reset) {
14395      getUINativeModule().textInput.resetBorder(node);
14396    } else {
14397      getUINativeModule().textInput.setBorder(node,
14398        this.value.arkWidth.left, this.value.arkWidth.right, this.value.arkWidth.top, this.value.arkWidth.bottom,
14399        this.value.arkColor.leftColor, this.value.arkColor.rightColor, this.value.arkColor.topColor, this.value.arkColor.bottomColor,
14400        this.value.arkRadius.topLeft, this.value.arkRadius.topRight, this.value.arkRadius.bottomLeft, this.value.arkRadius.bottomRight,
14401        this.value.arkStyle.top, this.value.arkStyle.right, this.value.arkStyle.bottom, this.value.arkStyle.left);
14402    }
14403  }
14404  checkObjectDiff() {
14405    return this.value.checkObjectDiff(this.stageValue);
14406  }
14407}
14408TextInputBorderModifier.identity = Symbol('textInputBorder');
14409class TextInputBorderWidthModifier extends ModifierWithKey {
14410  constructor(value) {
14411    super(value);
14412  }
14413  applyPeer(node, reset) {
14414    if (reset) {
14415      getUINativeModule().textInput.resetBorderWidth(node);
14416    } else {
14417      if (isNumber(this.value) || isString(this.value) || isResource(this.value)) {
14418        getUINativeModule().textInput.setBorderWidth(node, this.value, this.value, this.value, this.value);
14419      } else {
14420        getUINativeModule().textInput.setBorderWidth(node, this.value.top, this.value.right,
14421          this.value.bottom, this.value.left);
14422      }
14423    }
14424  }
14425  checkObjectDiff() {
14426    if (isResource(this.stageValue) && isResource(this.value)) {
14427      return !isResourceEqual(this.stageValue, this.value);
14428    } else if (!isResource(this.stageValue) && !isResource(this.value)) {
14429      return !(this.stageValue.left === this.value.left &&
14430        this.stageValue.right === this.value.right &&
14431        this.stageValue.top === this.value.top &&
14432        this.stageValue.bottom === this.value.bottom);
14433    } else {
14434      return true;
14435    }
14436  }
14437}
14438TextInputBorderWidthModifier.identity = Symbol('textInputBorderWidth');
14439class TextInputBorderColorModifier extends ModifierWithKey {
14440  constructor(value) {
14441    super(value);
14442  }
14443  applyPeer(node, reset) {
14444    if (reset) {
14445      getUINativeModule().textInput.resetBorderColor(node);
14446    } else {
14447      const valueType = typeof this.value;
14448      if (valueType === 'number' || valueType === 'string' || isResource(this.value)) {
14449        getUINativeModule().textInput.setBorderColor(node, this.value, this.value, this.value, this.value);
14450      } else {
14451        getUINativeModule().textInput.setBorderColor(node, this.value.top,
14452          this.value.right, this.value.bottom, this.value.left);
14453      }
14454    }
14455  }
14456  checkObjectDiff() {
14457    if (isResource(this.stageValue) && isResource(this.value)) {
14458      return !isResourceEqual(this.stageValue, this.value);
14459    } else if (!isResource(this.stageValue) && !isResource(this.value)) {
14460      return !(this.stageValue.left === this.value.left &&
14461        this.stageValue.right === this.value.right &&
14462        this.stageValue.top === this.value.top &&
14463        this.stageValue.bottom === this.value.bottom);
14464    } else {
14465      return true;
14466    }
14467  }
14468}
14469TextInputBorderColorModifier.identity = Symbol('textInputBorderColor');
14470class TextInputBorderStyleModifier extends ModifierWithKey {
14471  constructor(value) {
14472    super(value);
14473  }
14474  applyPeer(node, reset) {
14475    if (reset) {
14476      getUINativeModule().textInput.resetBorderStyle(node);
14477    } else {
14478      let type;
14479      let style;
14480      let top;
14481      let right;
14482      let bottom;
14483      let left;
14484      if (isNumber(this.value)) {
14485        style = this.value;
14486        type = true;
14487      } else if (isObject(this.value)) {
14488        top = this.value?.top;
14489        right = this.value?.right;
14490        bottom = this.value?.bottom;
14491        left = this.value?.left;
14492        type = true;
14493      }
14494      if (type === true) {
14495        getUINativeModule().textInput.setBorderStyle(node, type, style, top, right, bottom, left);
14496      } else {
14497        getUINativeModule().textInput.resetBorderStyle(node);
14498      }
14499    }
14500  }
14501  checkObjectDiff() {
14502    return !(this.value?.top === this.stageValue?.top &&
14503      this.value?.right === this.stageValue?.right &&
14504      this.value?.bottom === this.stageValue?.bottom &&
14505      this.value?.left === this.stageValue?.left);
14506  }
14507}
14508TextInputBorderStyleModifier.identity = Symbol('textInputBorderStyle');
14509class TextInputBorderRadiusModifier extends ModifierWithKey {
14510  constructor(value) {
14511    super(value);
14512  }
14513  applyPeer(node, reset) {
14514    if (reset) {
14515      getUINativeModule().textInput.resetBorderRadius(node);
14516    } else {
14517      if (isNumber(this.value) || isString(this.value) || isResource(this.value)) {
14518        getUINativeModule().textInput.setBorderRadius(node, this.value, this.value, this.value, this.value);
14519      } else {
14520        getUINativeModule().textInput.setBorderRadius(node, this.value.topLeft, this.value.topRight,
14521          this.value.bottomLeft, this.value.bottomRight);
14522      }
14523    }
14524  }
14525  checkObjectDiff() {
14526    if (isResource(this.stageValue) && isResource(this.value)) {
14527      return !isResourceEqual(this.stageValue, this.value);
14528    } else if (!isResource(this.stageValue) && !isResource(this.value)) {
14529      return !(this.stageValue.topLeft === this.value.topLeft &&
14530        this.stageValue.topRight === this.value.topRight &&
14531        this.stageValue.bottomLeft === this.value.bottomLeft &&
14532        this.stageValue.bottomRight === this.value.bottomRight);
14533    } else {
14534      return true;
14535    }
14536  }
14537}
14538TextInputBorderRadiusModifier.identity = Symbol('textInputBorderRadius');
14539class TextInputBackgroundColorModifier extends ModifierWithKey {
14540  constructor(value) {
14541    super(value);
14542  }
14543  applyPeer(node, reset) {
14544    if (reset) {
14545      getUINativeModule().textInput.resetBackgroundColor(node);
14546    } else {
14547      getUINativeModule().textInput.setBackgroundColor(node, this.value);
14548    }
14549  }
14550
14551  checkObjectDiff() {
14552    return !isBaseOrResourceEqual(this.stageValue, this.value);
14553  }
14554}
14555TextInputBackgroundColorModifier.identity = Symbol('textInputBackgroundColor');
14556class TextInputMarginModifier extends ModifierWithKey {
14557  constructor(value) {
14558    super(value);
14559  }
14560  applyPeer(node, reset) {
14561    if (reset) {
14562      getUINativeModule().textInput.resetMargin(node);
14563    }
14564    else {
14565      getUINativeModule().textInput.setMargin(node, this.value.top, this.value.right, this.value.bottom, this.value.left);
14566    }
14567  }
14568  checkObjectDiff() {
14569    return !isBaseOrResourceEqual(this.stageValue.top, this.value.top) ||
14570      !isBaseOrResourceEqual(this.stageValue.right, this.value.right) ||
14571      !isBaseOrResourceEqual(this.stageValue.bottom, this.value.bottom) ||
14572      !isBaseOrResourceEqual(this.stageValue.left, this.value.left);
14573  }
14574}
14575TextInputMarginModifier.identity = Symbol('textInputMargin');
14576class TextInputOnWillInsertModifier extends ModifierWithKey {
14577  constructor(value) {
14578    super(value);
14579  }
14580  applyPeer(node, reset) {
14581    if (reset) {
14582      getUINativeModule().textInput.resetOnWillInsert(node);
14583    } else {
14584      getUINativeModule().textInput.setOnWillInsert(node, this.value);
14585    }
14586  }
14587}
14588TextInputOnWillInsertModifier.identity = Symbol('textInputOnWillInsert');
14589
14590class TextInputOnDidInsertModifier extends ModifierWithKey {
14591  constructor(value) {
14592    super(value);
14593  }
14594  applyPeer(node, reset) {
14595    if (reset) {
14596      getUINativeModule().textInput.resetOnDidInsert(node);
14597    } else {
14598      getUINativeModule().textInput.setOnDidInsert(node, this.value);
14599    }
14600  }
14601}
14602TextInputOnDidInsertModifier.identity = Symbol('textInputOnDidInsert');
14603
14604class TextInputOnWillDeleteModifier extends ModifierWithKey {
14605  constructor(value) {
14606    super(value);
14607  }
14608  applyPeer(node, reset) {
14609    if (reset) {
14610      getUINativeModule().textInput.resetOnWillDelete(node);
14611    } else {
14612      getUINativeModule().textInput.setOnWillDelete(node, this.value);
14613    }
14614  }
14615}
14616TextInputOnWillDeleteModifier.identity = Symbol('textInputOnWillDelete');
14617
14618class TextInputOnDidDeleteModifier extends ModifierWithKey {
14619  constructor(value) {
14620    super(value);
14621  }
14622  applyPeer(node, reset) {
14623    if (reset) {
14624      getUINativeModule().textInput.resetOnDidDelete(node);
14625    } else {
14626      getUINativeModule().textInput.setOnDidDelete(node, this.value);
14627    }
14628  }
14629}
14630TextInputOnDidDeleteModifier.identity = Symbol('textInputOnDidDelete');
14631class TextInputEnablePreviewTextModifier extends ModifierWithKey {
14632  constructor(value) {
14633    super(value);
14634  }
14635  applyPeer(node, reset) {
14636    if (reset) {
14637      getUINativeModule().textInput.resetEnablePreviewText(node);
14638    }
14639    else {
14640      getUINativeModule().textInput.setEnablePreviewText(node, this.value);
14641    }
14642  }
14643  checkObjectDiff() {
14644    return !isBaseOrResourceEqual(this.stageValue, this.value);
14645  }
14646}
14647TextInputEnablePreviewTextModifier.identity = Symbol('textInputEnablePreviewText');
14648class TextInputEditMenuOptionsModifier extends ModifierWithKey {
14649  constructor(value) {
14650    super(value);
14651  }
14652  applyPeer(node, reset) {
14653    if (reset) {
14654      getUINativeModule().textInput.resetSelectionMenuOptions(node);
14655    } else {
14656      getUINativeModule().textInput.setSelectionMenuOptions(node, this.value);
14657    }
14658  }
14659}
14660TextInputEditMenuOptionsModifier.identity = Symbol('textInputEditMenuOptions');
14661
14662class TextInputWidthModifier extends ModifierWithKey {
14663  constructor(value) {
14664    super(value);
14665  }
14666  applyPeer(node, reset) {
14667    if (reset) {
14668      getUINativeModule().textInput.resetWidth(node);
14669    } else {
14670      getUINativeModule().textInput.setWidth(node, this.value);
14671    }
14672  }
14673}
14674TextInputWidthModifier.identity = Symbol('textInputWidth');
14675class TextInputEnableHapticFeedbackModifier extends ModifierWithKey {
14676  constructor(value) {
14677    super(value);
14678  }
14679  applyPeer(node, reset) {
14680    if (reset) {
14681      getUINativeModule().textInput.resetEnableHapticFeedback(node);
14682    }
14683    else {
14684      getUINativeModule().textInput.setEnableHapticFeedback(node, this.value);
14685    }
14686  }
14687  checkObjectDiff() {
14688    return !isBaseOrResourceEqual(this.stageValue, this.value);
14689  }
14690}
14691TextInputEnableHapticFeedbackModifier.identity = Symbol('textInputEnableHapticFeedback');
14692
14693class ArkTextInputComponent extends ArkComponent {
14694  constructor(nativePtr, classType) {
14695    super(nativePtr, classType);
14696  }
14697  initialize(value) {
14698    if (value[0] !== undefined) {
14699      this.setPlaceholder(value[0].placeholder);
14700      this.setText(value[0].text);
14701      this.setController(value[0].controller);
14702    }
14703    return this;
14704  }
14705  setText(value) {
14706    modifierWithKey(this._modifiersWithKeys, TextInputTextModifier.identity,
14707      TextInputTextModifier, value);
14708    return this;
14709  }
14710  setPlaceholder(value) {
14711    modifierWithKey(this._modifiersWithKeys, TextInputPlaceholderModifier.identity,
14712      TextInputPlaceholderModifier, value);
14713    return this;
14714  }
14715  setController(value) {
14716    modifierWithKey(this._modifiersWithKeys, TextInputControllerModifier.identity,
14717      TextInputControllerModifier, value);
14718    return this;
14719  }
14720
14721  cancelButton(value) {
14722    modifierWithKey(this._modifiersWithKeys, TextInputCancelButtonModifier.identity, TextInputCancelButtonModifier, value);
14723    return this;
14724  }
14725  selectAll(value) {
14726    modifierWithKey(this._modifiersWithKeys, TextInputSelectAllModifier.identity, TextInputSelectAllModifier, value);
14727    return this;
14728  }
14729  enableAutoFill(value) {
14730    modifierWithKey(this._modifiersWithKeys, TextInputEnableAutoFillModifier.identity, TextInputEnableAutoFillModifier, value);
14731    return this;
14732  }
14733  passwordRules(value) {
14734    modifierWithKey(this._modifiersWithKeys, TextInputPasswordRulesModifier.identity, TextInputPasswordRulesModifier, value);
14735    return this;
14736  }
14737  showCounter(value, options) {
14738    let arkValue = new ArkTextFieldShowCounter();
14739    arkValue.value = value;
14740    arkValue.highlightBorder = options?.highlightBorder;
14741    arkValue.thresholdPercentage = options?.thresholdPercentage;
14742    modifierWithKey(this._modifiersWithKeys, TextInputShowCounterModifier.identity, TextInputShowCounterModifier, arkValue);
14743    return this;
14744  }
14745  type(value) {
14746    modifierWithKey(this._modifiersWithKeys, TextInputTypeModifier.identity, TextInputTypeModifier, value);
14747    return this;
14748  }
14749  placeholderColor(value) {
14750    modifierWithKey(this._modifiersWithKeys, TextInputPlaceholderColorModifier.identity, TextInputPlaceholderColorModifier, value);
14751    return this;
14752  }
14753  placeholderFont(value) {
14754    modifierWithKey(this._modifiersWithKeys, TextInputPlaceholderFontModifier.identity, TextInputPlaceholderFontModifier, value);
14755    return this;
14756  }
14757  enterKeyType(value) {
14758    modifierWithKey(this._modifiersWithKeys, TextInputEnterKeyTypeModifier.identity, TextInputEnterKeyTypeModifier, value);
14759    return this;
14760  }
14761  caretColor(value) {
14762    modifierWithKey(this._modifiersWithKeys, TextInputCaretColorModifier.identity, TextInputCaretColorModifier, value);
14763    return this;
14764  }
14765  onEditChanged(callback) {
14766    modifierWithKey(this._modifiersWithKeys, TextInputOnEditChangeModifier.identity, TextInputOnEditChangeModifier, callback);
14767    return this;
14768  }
14769  onEditChange(callback) {
14770    modifierWithKey(this._modifiersWithKeys, TextInputOnEditChangeModifier.identity, TextInputOnEditChangeModifier, callback);
14771    return this;
14772  }
14773  onSubmit(callback) {
14774    modifierWithKey(this._modifiersWithKeys, TextInputOnSubmitModifier.identity, TextInputOnSubmitModifier, callback);
14775    return this;
14776  }
14777  onChange(callback) {
14778    modifierWithKey(this._modifiersWithKeys, TextInputOnChangeModifier.identity, TextInputOnChangeModifier, callback);
14779    return this;
14780  }
14781  onTextSelectionChange(callback) {
14782    modifierWithKey(this._modifiersWithKeys, TextInputOnTextSelectionChangeModifier.identity, TextInputOnTextSelectionChangeModifier, callback);
14783    return this;
14784  }
14785  onContentScroll(callback) {
14786    modifierWithKey(this._modifiersWithKeys, TextInputOnContentScrollModifier.identity, TextInputOnContentScrollModifier, callback);
14787    return this;
14788  }
14789  maxLength(value) {
14790    modifierWithKey(this._modifiersWithKeys, TextInputMaxLengthModifier.identity, TextInputMaxLengthModifier, value);
14791    return this;
14792  }
14793  fontColor(value) {
14794    modifierWithKey(this._modifiersWithKeys, TextInputFontColorModifier.identity, TextInputFontColorModifier, value);
14795    return this;
14796  }
14797  fontSize(value) {
14798    modifierWithKey(this._modifiersWithKeys, TextInputFontSizeModifier.identity, TextInputFontSizeModifier, value);
14799    return this;
14800  }
14801  fontStyle(value) {
14802    modifierWithKey(this._modifiersWithKeys, TextInputFontStyleModifier.identity, TextInputFontStyleModifier, value);
14803    return this;
14804  }
14805  fontWeight(value) {
14806    modifierWithKey(this._modifiersWithKeys, TextInputFontWeightModifier.identity, TextInputFontWeightModifier, value);
14807    return this;
14808  }
14809  fontFamily(value) {
14810    modifierWithKey(this._modifiersWithKeys, TextInputFontFamilyModifier.identity, TextInputFontFamilyModifier, value);
14811    return this;
14812  }
14813  inputFilter(value, error) {
14814    let arkValue = new ArkTextInputFilter();
14815    arkValue.value = value;
14816    arkValue.error = error;
14817    modifierWithKey(this._modifiersWithKeys, TextInputFilterModifier.identity, TextInputFilterModifier, arkValue);
14818    return this;
14819  }
14820  onCopy(callback) {
14821    modifierWithKey(this._modifiersWithKeys, TextInputOnCopyModifier.identity, TextInputOnCopyModifier, callback);
14822    return this;
14823  }
14824  onCut(callback) {
14825    modifierWithKey(this._modifiersWithKeys, TextInputOnCutModifier.identity, TextInputOnCutModifier, callback);
14826    return this;
14827  }
14828  onPaste(callback) {
14829    modifierWithKey(this._modifiersWithKeys, TextInputOnPasteModifier.identity, TextInputOnPasteModifier, callback);
14830    return this;
14831  }
14832  copyOption(value) {
14833    modifierWithKey(this._modifiersWithKeys, TextInputCopyOptionModifier.identity, TextInputCopyOptionModifier, value);
14834    return this;
14835  }
14836  showPasswordIcon(value) {
14837    modifierWithKey(this._modifiersWithKeys, TextInputShowPasswordIconModifier.identity, TextInputShowPasswordIconModifier, value);
14838    return this;
14839  }
14840  showPassword(value) {
14841    modifierWithKey(this._modifiersWithKeys, TextInputShowPasswordModifier.identity, TextInputShowPasswordModifier, value);
14842    return this;
14843  }
14844  textAlign(value) {
14845    modifierWithKey(this._modifiersWithKeys, TextInputTextAlignModifier.identity, TextInputTextAlignModifier, value);
14846    return this;
14847  }
14848  style(value) {
14849    modifierWithKey(this._modifiersWithKeys, TextInputStyleModifier.identity, TextInputStyleModifier, value);
14850    return this;
14851  }
14852  caretStyle(value) {
14853    modifierWithKey(this._modifiersWithKeys, TextInputCaretStyleModifier.identity, TextInputCaretStyleModifier, value);
14854    return this;
14855  }
14856  selectedBackgroundColor(value) {
14857    modifierWithKey(this._modifiersWithKeys, TextInputSelectedBackgroundColorModifier.identity, TextInputSelectedBackgroundColorModifier, value);
14858    return this;
14859  }
14860  caretPosition(value) {
14861    modifierWithKey(this._modifiersWithKeys, TextInputCaretPositionModifier.identity, TextInputCaretPositionModifier, value);
14862    return this;
14863  }
14864  enableKeyboardOnFocus(value) {
14865    modifierWithKey(this._modifiersWithKeys, TextInputEnableKeyboardOnFocusModifier.identity, TextInputEnableKeyboardOnFocusModifier, value);
14866    return this;
14867  }
14868  passwordIcon(value) {
14869    modifierWithKey(this._modifiersWithKeys, TextInputPasswordIconModifier.identity, TextInputPasswordIconModifier, value);
14870    return this;
14871  }
14872  showError(value) {
14873    modifierWithKey(this._modifiersWithKeys, TextInputShowErrorModifier.identity, TextInputShowErrorModifier, value);
14874    return this;
14875  }
14876  showUnit(event) {
14877    throw new Error('Method not implemented.');
14878  }
14879  showUnderline(value) {
14880    modifierWithKey(this._modifiersWithKeys, TextInputShowUnderlineModifier.identity, TextInputShowUnderlineModifier, value);
14881    return this;
14882  }
14883  fontFeature(value) {
14884    modifierWithKey(this._modifiersWithKeys, TextInputFontFeatureModifier.identity, TextInputFontFeatureModifier, value);
14885    return this;
14886  }
14887  selectionMenuHidden(value) {
14888    modifierWithKey(this._modifiersWithKeys, TextInputSelectionMenuHiddenModifier.identity, TextInputSelectionMenuHiddenModifier, value);
14889    return this;
14890  }
14891  barState(value) {
14892    modifierWithKey(this._modifiersWithKeys, TextInputBarStateModifier.identity, TextInputBarStateModifier, value);
14893    return this;
14894  }
14895  maxLines(value) {
14896    modifierWithKey(this._modifiersWithKeys, TextInputMaxLinesModifier.identity, TextInputMaxLinesModifier, value);
14897    return this;
14898  }
14899  customKeyboard(event) {
14900    throw new Error('Method not implemented.');
14901  }
14902  decoration(value) {
14903    modifierWithKey(this._modifiersWithKeys, TextInputDecorationModifier.identity, TextInputDecorationModifier, value);
14904    return this;
14905  }
14906  letterSpacing(value) {
14907    modifierWithKey(this._modifiersWithKeys, TextInputLetterSpacingModifier.identity, TextInputLetterSpacingModifier, value);
14908    return this;
14909  }
14910  lineHeight(value) {
14911    modifierWithKey(this._modifiersWithKeys, TextInputLineHeightModifier.identity, TextInputLineHeightModifier, value);
14912    return this;
14913  }
14914  underlineColor(value) {
14915    modifierWithKey(this._modifiersWithKeys, TextInputUnderlineColorModifier.identity, TextInputUnderlineColorModifier, value);
14916    return this;
14917  }
14918  wordBreak(value) {
14919    modifierWithKey(this._modifiersWithKeys, TextInputWordBreakModifier.identity, TextInputWordBreakModifier, value);
14920    return this;
14921  }
14922  lineBreakStrategy(value) {
14923    modifierWithKey(this._modifiersWithKeys, TextInputLineBreakStrategyModifier.identity,
14924      TextInputLineBreakStrategyModifier, value);
14925    return this;
14926  }
14927  minFontSize(value) {
14928    modifierWithKey(this._modifiersWithKeys, TextInputMinFontSizeModifier.identity, TextInputMinFontSizeModifier, value);
14929    return this;
14930  }
14931  maxFontSize(value) {
14932    modifierWithKey(this._modifiersWithKeys, TextInputMaxFontSizeModifier.identity, TextInputMaxFontSizeModifier, value);
14933    return this;
14934  }
14935  heightAdaptivePolicy(value) {
14936    modifierWithKey(this._modifiersWithKeys, TextInputHeightAdaptivePolicyModifier.identity, TextInputHeightAdaptivePolicyModifier, value);
14937    return this;
14938  }
14939  textOverflow(value) {
14940    modifierWithKey(this._modifiersWithKeys, TextInputTextOverflowModifier.identity, TextInputTextOverflowModifier, value);
14941    return this;
14942  }
14943  textIndent(value) {
14944    modifierWithKey(this._modifiersWithKeys, TextInputTextIndentModifier.identity, TextInputTextIndentModifier, value);
14945    return this;
14946  }
14947  padding(value) {
14948    let arkValue = new ArkPadding();
14949    if (value !== null && value !== undefined) {
14950      if (isLengthType(value) || isResource(value)) {
14951        arkValue.top = value;
14952        arkValue.right = value;
14953        arkValue.bottom = value;
14954        arkValue.left = value;
14955      }
14956      else {
14957        arkValue.top = value.top;
14958        arkValue.right = value.right;
14959        arkValue.bottom = value.bottom;
14960        arkValue.left = value.left;
14961      }
14962      modifierWithKey(this._modifiersWithKeys, TextInputPaddingModifier.identity, TextInputPaddingModifier, arkValue);
14963    }
14964    else {
14965      modifierWithKey(this._modifiersWithKeys, TextInputPaddingModifier.identity, TextInputPaddingModifier, undefined);
14966    }
14967    return this;
14968  }
14969  contentType(value) {
14970    modifierWithKey(this._modifiersWithKeys, TextInputContentTypeModifier.identity, TextInputContentTypeModifier, value);
14971    return this;
14972  }
14973  border(value) {
14974    let arkBorder = valueToArkBorder(value);
14975    modifierWithKey(this._modifiersWithKeys, TextInputBorderModifier.identity, TextInputBorderModifier, arkBorder);
14976    return this;
14977  }
14978  borderWidth(value) {
14979    modifierWithKey(this._modifiersWithKeys, TextInputBorderWidthModifier.identity, TextInputBorderWidthModifier, value);
14980    return this;
14981  }
14982  borderColor(value) {
14983    modifierWithKey(this._modifiersWithKeys, TextInputBorderColorModifier.identity, TextInputBorderColorModifier, value);
14984    return this;
14985  }
14986  borderStyle(value) {
14987    modifierWithKey(this._modifiersWithKeys, TextInputBorderStyleModifier.identity, TextInputBorderStyleModifier, value);
14988    return this;
14989  }
14990  borderRadius(value) {
14991    modifierWithKey(this._modifiersWithKeys, TextInputBorderRadiusModifier.identity, TextInputBorderRadiusModifier, value);
14992    return this;
14993  }
14994  backgroundColor(value) {
14995    modifierWithKey(this._modifiersWithKeys, TextInputBackgroundColorModifier.identity, TextInputBackgroundColorModifier, value);
14996    return this;
14997  }
14998  margin(value) {
14999    let arkValue = new ArkPadding();
15000    if (value !== null && value !== undefined) {
15001      if (isLengthType(value) || isResource(value)) {
15002        arkValue.top = value;
15003        arkValue.right = value;
15004        arkValue.bottom = value;
15005        arkValue.left = value;
15006      }
15007      else {
15008        arkValue.top = value.top;
15009        arkValue.right = value.right;
15010        arkValue.bottom = value.bottom;
15011        arkValue.left = value.left;
15012      }
15013      modifierWithKey(this._modifiersWithKeys, TextInputMarginModifier.identity, TextInputMarginModifier, arkValue);
15014    }
15015    else {
15016      modifierWithKey(this._modifiersWithKeys, TextInputMarginModifier.identity, TextInputMarginModifier, undefined);
15017    }
15018    return this;
15019  }
15020  onWillInsert(callback) {
15021    modifierWithKey(this._modifiersWithKeys, TextInputOnWillInsertModifier.identity, TextInputOnWillInsertModifier, callback);
15022    return this;
15023  }
15024  onDidInsert(callback) {
15025    modifierWithKey(this._modifiersWithKeys, TextInputOnDidInsertModifier.identity, TextInputOnDidInsertModifier, callback);
15026    return this;
15027  }
15028  onWillDelete(callback) {
15029    modifierWithKey(this._modifiersWithKeys, TextInputOnWillDeleteModifier.identity, TextInputOnWillDeleteModifier, callback);
15030    return this;
15031  }
15032  onDidDelete(callback) {
15033    modifierWithKey(this._modifiersWithKeys, TextInputOnDidDeleteModifier.identity, TextInputOnDidDeleteModifier, callback);
15034    return this;
15035  }
15036  enablePreviewText(value) {
15037    modifierWithKey(this._modifiersWithKeys, TextInputEnablePreviewTextModifier.identity, TextInputEnablePreviewTextModifier, value);
15038    return this;
15039  }
15040  editMenuOptions(value) {
15041    modifierWithKey(this._modifiersWithKeys, TextInputEditMenuOptionsModifier.identity,
15042      TextInputEditMenuOptionsModifier, value);
15043    return this;
15044  }
15045  width(value) {
15046    modifierWithKey(this._modifiersWithKeys, TextInputWidthModifier.identity, TextInputWidthModifier, value);
15047    return this;
15048  }
15049  enableHapticFeedback(value) {
15050    modifierWithKey(this._modifiersWithKeys, TextInputEnableHapticFeedbackModifier.identity, TextInputEnableHapticFeedbackModifier, value);
15051    return this;
15052  }
15053}
15054// @ts-ignore
15055if (globalThis.TextInput !== undefined) {
15056  globalThis.TextInput.attributeModifier = function (modifier) {
15057    attributeModifierFunc.call(this, modifier, (nativePtr) => {
15058      return new ArkTextInputComponent(nativePtr);
15059    }, (nativePtr, classType, modifierJS) => {
15060      return new modifierJS.TextInputModifier(nativePtr, classType);
15061    });
15062  };
15063}
15064
15065/// <reference path='./import.ts' />
15066class VideoObjectFitModifier extends ModifierWithKey {
15067  constructor(value) {
15068    super(value);
15069  }
15070  applyPeer(node, reset) {
15071    if (reset) {
15072      getUINativeModule().video.resetObjectFit(node);
15073    }
15074    else {
15075      getUINativeModule().video.setObjectFit(node, this.value);
15076    }
15077  }
15078  checkObjectDiff() {
15079    return !isBaseOrResourceEqual(this.stageValue, this.value);
15080  }
15081}
15082VideoObjectFitModifier.identity = Symbol('videoObjectFit');
15083class VideoAutoPlayModifier extends ModifierWithKey {
15084  constructor(value) {
15085    super(value);
15086  }
15087  applyPeer(node, reset) {
15088    if (reset) {
15089      getUINativeModule().video.resetAutoPlay(node);
15090    }
15091    else {
15092      getUINativeModule().video.setAutoPlay(node, this.value);
15093    }
15094  }
15095  checkObjectDiff() {
15096    return !isBaseOrResourceEqual(this.stageValue, this.value);
15097  }
15098}
15099VideoAutoPlayModifier.identity = Symbol('videoAutoPlayr');
15100class VideoControlsModifier extends ModifierWithKey {
15101  constructor(value) {
15102    super(value);
15103  }
15104  applyPeer(node, reset) {
15105    if (reset) {
15106      getUINativeModule().video.resetControls(node);
15107    }
15108    else {
15109      getUINativeModule().video.setControls(node, this.value);
15110    }
15111  }
15112  checkObjectDiff() {
15113    return !isBaseOrResourceEqual(this.stageValue, this.value);
15114  }
15115}
15116VideoControlsModifier.identity = Symbol('videoControls');
15117class VideoLoopModifier extends ModifierWithKey {
15118  constructor(value) {
15119    super(value);
15120  }
15121  applyPeer(node, reset) {
15122    if (reset) {
15123      getUINativeModule().video.resetLoop(node);
15124    }
15125    else {
15126      getUINativeModule().video.setLoop(node, this.value);
15127    }
15128  }
15129  checkObjectDiff() {
15130    return !isBaseOrResourceEqual(this.stageValue, this.value);
15131  }
15132}
15133VideoLoopModifier.identity = Symbol('videoLoop');
15134class VideoMutedModifier extends ModifierWithKey {
15135  constructor(value) {
15136    super(value);
15137  }
15138  applyPeer(node, reset) {
15139    if (reset) {
15140      getUINativeModule().video.resetMuted(node);
15141    }
15142    else {
15143      getUINativeModule().video.setMuted(node, this.value);
15144    }
15145  }
15146  checkObjectDiff() {
15147    return !isBaseOrResourceEqual(this.stageValue, this.value);
15148  }
15149}
15150VideoMutedModifier.identity = Symbol('videoMuted');
15151class VideoOpacityModifier extends ModifierWithKey {
15152  constructor(value) {
15153    super(value);
15154  }
15155  applyPeer(node, reset) {
15156    if (reset) {
15157      getUINativeModule().video.resetOpacity(node);
15158    }
15159    else {
15160      getUINativeModule().video.setOpacity(node, this.value);
15161    }
15162  }
15163  checkObjectDiff() {
15164    return !isBaseOrResourceEqual(this.stageValue, this.value);
15165  }
15166}
15167VideoOpacityModifier.identity = Symbol('videoOpacity');
15168class VideoTransitionModifier extends ModifierWithKey {
15169  constructor(value) {
15170    super(value);
15171  }
15172  applyPeer(node, reset) {
15173    if (reset) {
15174      getUINativeModule().video.resetTransition(node);
15175    }
15176    else {
15177      getUINativeModule().video.setTransition(node, this.value);
15178    }
15179  }
15180  checkObjectDiff() {
15181    return true;
15182  }
15183}
15184VideoTransitionModifier.identity = Symbol('videoTransition');
15185class ArkVideoComponent extends ArkComponent {
15186  constructor(nativePtr, classType) {
15187    super(nativePtr, classType);
15188  }
15189  muted(value) {
15190    modifierWithKey(this._modifiersWithKeys, VideoMutedModifier.identity, VideoMutedModifier, value);
15191    return this;
15192  }
15193  autoPlay(value) {
15194    modifierWithKey(this._modifiersWithKeys, VideoAutoPlayModifier.identity, VideoAutoPlayModifier, value);
15195    return this;
15196  }
15197  controls(value) {
15198    modifierWithKey(this._modifiersWithKeys, VideoControlsModifier.identity, VideoControlsModifier, value);
15199    return this;
15200  }
15201  loop(value) {
15202    modifierWithKey(this._modifiersWithKeys, VideoLoopModifier.identity, VideoLoopModifier, value);
15203    return this;
15204  }
15205  objectFit(value) {
15206    modifierWithKey(this._modifiersWithKeys, VideoObjectFitModifier.identity, VideoObjectFitModifier, value);
15207    return this;
15208  }
15209  opacity(value) {
15210    modifierWithKey(this._modifiersWithKeys, VideoOpacityModifier.identity, VideoOpacityModifier, value);
15211    return this;
15212  }
15213  transition(value) {
15214    modifierWithKey(this._modifiersWithKeys, VideoTransitionModifier.identity, VideoTransitionModifier, value);
15215    return this;
15216  }
15217  onStart(callback) {
15218    throw new Error('Method not implemented.');
15219  }
15220  onPause(callback) {
15221    throw new Error('Method not implemented.');
15222  }
15223  onFinish(event) {
15224    throw new Error('Method not implemented.');
15225  }
15226  onFullscreenChange(callback) {
15227    throw new Error('Method not implemented.');
15228  }
15229  onPrepared(callback) {
15230    throw new Error('Method not implemented.');
15231  }
15232  onSeeking(callback) {
15233    throw new Error('Method not implemented.');
15234  }
15235  onSeeked(callback) {
15236    throw new Error('Method not implemented.');
15237  }
15238  onUpdate(callback) {
15239    throw new Error('Method not implemented.');
15240  }
15241  onError(callback) {
15242    throw new Error('Method not implemented.');
15243  }
15244  onStop(callback) {
15245    throw new Error('Method not implemented.');
15246  }
15247}
15248// @ts-ignore
15249if (globalThis.Video !== undefined) {
15250  globalThis.Video.attributeModifier = function (modifier) {
15251    attributeModifierFunc.call(this, modifier, (nativePtr) => {
15252      return new ArkVideoComponent(nativePtr);
15253    }, (nativePtr, classType, modifierJS) => {
15254      return new modifierJS.VideoModifier(nativePtr, classType);
15255    });
15256  };
15257}
15258
15259/// <reference path='./import.ts' />
15260class ArkBorderStyle {
15261  constructor() {
15262    this.type = undefined;
15263    this.style = undefined;
15264    this.top = undefined;
15265    this.right = undefined;
15266    this.bottom = undefined;
15267    this.left = undefined;
15268  }
15269  isEqual(another) {
15270    return (this.type === another.type &&
15271      this.style === another.style &&
15272      this.top === another.top &&
15273      this.right === another.right &&
15274      this.bottom === another.bottom &&
15275      this.left === another.left);
15276  }
15277  parseBorderStyle(value) {
15278    if (typeof value === 'number') {
15279      this.style = value;
15280      this.type = true;
15281      return true;
15282    }
15283    else if (typeof value === 'object') {
15284      return this.parseEdgeStyles(value);
15285    }
15286    return false;
15287  }
15288  parseEdgeStyles(options) {
15289    this.top = options.top;
15290    this.right = options.right;
15291    this.bottom = options.bottom;
15292    this.left = options.left;
15293    this.type = true;
15294    return true;
15295  }
15296}
15297class ArkBorderColor {
15298  constructor() {
15299    this.startColor = undefined;
15300    this.endColor = undefined;
15301    this.leftColor = undefined;
15302    this.rightColor = undefined;
15303    this.topColor = undefined;
15304    this.bottomColor = undefined;
15305  }
15306  isEqual(another) {
15307    return (this.leftColor === another.leftColor &&
15308      this.rightColor === another.rightColor &&
15309      this.topColor === another.topColor &&
15310      this.bottomColor === another.bottomColor &&
15311      this.startColor === another.startColor &&
15312      this.endColor === another.endColor);
15313  }
15314}
15315class ArkBorderWidth {
15316  constructor() {
15317    this.start = undefined;
15318    this.end = undefined;
15319    this.left = undefined;
15320    this.right = undefined;
15321    this.top = undefined;
15322    this.bottom = undefined;
15323  }
15324  isEqual(another) {
15325    return (this.left === another.left &&
15326      this.right === another.right &&
15327      this.top === another.top &&
15328      this.bottom === another.bottom &&
15329      this.start === another.start &&
15330      this.end === another.end);
15331  }
15332}
15333class ArkBorderRadius {
15334  constructor() {
15335    this.topStart = undefined;
15336    this.topEnd = undefined;
15337    this.bottomStart = undefined;
15338    this.bottomEnd = undefined;
15339    this.topLeft = undefined;
15340    this.topRight = undefined;
15341    this.bottomLeft = undefined;
15342    this.bottomRight = undefined;
15343  }
15344  isEqual(another) {
15345    return (this.topLeft === another.topLeft &&
15346      this.topRight === another.topRight &&
15347      this.bottomLeft === another.bottomLeft &&
15348      this.bottomRight === another.bottomRight &&
15349      this.topStart === another.topStart &&
15350      this.topEnd === another.topEnd &&
15351      this.bottomStart === another.bottomStart &&
15352      this.bottomEnd === another.bottomEnd);
15353  }
15354}
15355class ArkLabelFont {
15356  constructor() {
15357    this.size = undefined;
15358    this.weight = undefined;
15359    this.family = undefined;
15360    this.style = undefined;
15361  }
15362  isEqual(another) {
15363    return (this.size === another.size &&
15364      this.weight === another.weight &&
15365      this.family === another.family &&
15366      this.style === another.style);
15367  }
15368}
15369function deepCompareArrays(arr1, arr2) {
15370  return (Array.isArray(arr1) &&
15371    Array.isArray(arr2) &&
15372    arr1.length === arr2.length &&
15373    arr1.every((value, index) => {
15374      if (Array.isArray(value) && Array.isArray(arr2[index])) {
15375        return deepCompareArrays(value, arr2[index]);
15376      }
15377      else {
15378        return value === arr2[index];
15379      }
15380    }));
15381}
15382class ArkLinearGradient {
15383  constructor(angle, direction, colors, repeating) {
15384    this.angle = angle;
15385    this.direction = direction;
15386    this.colors = colors;
15387    this.repeating = repeating;
15388  }
15389  isEqual(another) {
15390    return (this.angle === another.angle &&
15391      this.direction === another.direction &&
15392      deepCompareArrays(this.colors, another.colors) &&
15393      this.repeating === another.repeating);
15394  }
15395}
15396class ArkSweepGradient {
15397  constructor(center, start, end, rotation, colors, repeating) {
15398    this.center = center;
15399    this.start = start;
15400    this.end = end;
15401    this.rotation = rotation;
15402    this.colors = colors;
15403    this.repeating = repeating;
15404  }
15405  isEqual(another) {
15406    return (deepCompareArrays(this.center, another.center) &&
15407      this.start === another.start &&
15408      this.end === another.end &&
15409      this.rotation === another.rotation &&
15410      deepCompareArrays(this.colors, another.colors) &&
15411      this.repeating === another.repeating);
15412  }
15413}
15414class ArkForegroundBlurStyle {
15415  constructor() {
15416    this.blurStyle = undefined;
15417    this.colorMode = undefined;
15418    this.adaptiveColor = undefined;
15419    this.scale = undefined;
15420    this.blurOptions = undefined;
15421  }
15422  isEqual(another) {
15423    return (this.blurStyle === another.blurStyle &&
15424      this.colorMode === another.colorMode &&
15425      this.adaptiveColor === another.adaptiveColor &&
15426      this.scale === another.scale &&
15427      this.blurOptions === another.blurOptions);
15428  }
15429}
15430class ArkLinearGradientBlur {
15431  constructor() {
15432    this.blurRadius = undefined;
15433    this.fractionStops = undefined;
15434    this.direction = undefined;
15435  }
15436  isEqual(another) {
15437    return (this.blurRadius === another.blurRadius &&
15438      deepCompareArrays(this.fractionStops, another.fractionStops) &&
15439      this.direction === another.direction);
15440  }
15441}
15442class ArkOverlay {
15443  constructor() {
15444    this.value = undefined;
15445    this.align = undefined;
15446    this.offsetX = undefined;
15447    this.offsetY = undefined;
15448    this.hasOptions = undefined;
15449    this.hasOffset = undefined;
15450  }
15451  splitOption(options) {
15452    if (isUndefined(options)) {
15453      return true;
15454    }
15455    this.hasOptions = true;
15456    this.align = options.align;
15457    if (isUndefined(options.offset)) {
15458      return true;
15459    }
15460    this.hasOffset = true;
15461    this.offsetX = options.offset.x;
15462    this.offsetY = options.offset.y;
15463    return true;
15464  }
15465  splitOverlayValue(value, options) {
15466    if (typeof value === 'string') {
15467      this.value = value;
15468      return this.splitOption(options);
15469    }
15470    return false;
15471  }
15472  isEqual(another) {
15473    return ((this.value === another.value) && (this.align === another.align) &&
15474      (this.offsetX === another.offsetX) && (this.offsetY === another.offsetY) &&
15475      (this.hasOptions === another.hasOptions) && (this.hasOffset === another.hasOffset));
15476  }
15477  checkObjectDiff(another) {
15478    return !this.isEqual(another);
15479  }
15480}
15481class ArkSharedTransition {
15482  constructor() {
15483    this.id = undefined;
15484    this.options = undefined;
15485  }
15486  isEqual(another) {
15487    return (this.id === another.id) && (this.options === another.options);
15488  }
15489}
15490class ArkListEdgeEffect {
15491  constructor() {
15492    this.value = undefined;
15493    this.options = undefined;
15494  }
15495  isEqual(another) {
15496    return (this.value === another.value) &&
15497      (this.options === another.options);
15498  }
15499}
15500class ArkFadingEdge {
15501  constructor() {
15502    this.value = undefined;
15503    this.options = undefined;
15504  }
15505  isEqual(another) {
15506    return (this.value === another.value) &&
15507      (this.options === another.options);
15508  }
15509}
15510class ArkScrollEdgeEffect {
15511  constructor() {
15512    this.value = undefined;
15513    this.options = undefined;
15514  }
15515  isEqual(another) {
15516    return (this.value === another.value) &&
15517      (this.options === another.options);
15518  }
15519}
15520class ArkBlurOptions {
15521  constructor() {
15522    this.value = undefined;
15523    this.options = undefined;
15524  }
15525}
15526class InvertOptions {
15527  constructor() {
15528    this.high = undefined;
15529    this.low = undefined;
15530    this.threshold = undefined;
15531    this.thresholdRange = undefined;
15532  }
15533}
15534class ArkMenuAlignType {
15535  constructor(alignType, offset) {
15536    this.alignType = alignType;
15537    if (!isUndefined(offset) && isObject(offset)) {
15538      this.dx = offset.dx;
15539      this.dy = offset.dy;
15540    }
15541  }
15542  isEqual(another) {
15543    return this.alignType === another.alignType && this.dx === another.dx && this.dy === another.dy;
15544  }
15545}
15546
15547class ArkSelection {
15548  constructor() {
15549    this.selectionStart = undefined;
15550    this.selectionEnd = undefined;
15551  }
15552  isEqual(another) {
15553    return this.selectionStart === another.selectionStart &&
15554      this.selectionEnd === another.selectionEnd;
15555  }
15556}
15557
15558class TextDataDetectorConfig {
15559  constructor() {
15560    this.types = undefined;
15561    this.onDetectResultUpdate = undefined;
15562    this.color = undefined;
15563    this.decorationType = undefined;
15564    this.decorationColor = undefined;
15565    this.decorationStyle = undefined;
15566  }
15567  isEqual(another) {
15568    return (this.types === another.types) && (this.onDetectResultUpdate === another.onDetectResultUpdate) &&
15569    (this.color === another.color) && (this.decorationType === another.decorationType) &&
15570    (this.decorationColor === another.decorationColor) && (this.decorationStyle === another.decorationStyle);
15571  }
15572}
15573
15574class ArkSliderTips {
15575  constructor(value, content) {
15576    this.showTip = value;
15577    this.tipText = content;
15578  }
15579  isEqual(another) {
15580    return this.showTip === another.showTip && this.tipText === another.tipText;
15581  }
15582}
15583class ArkStarStyle {
15584  constructor() {
15585    this.backgroundUri = undefined;
15586    this.foregroundUri = undefined;
15587    this.secondaryUri = undefined;
15588  }
15589  isEqual(another) {
15590    return (this.backgroundUri === another.backgroundUri &&
15591      this.foregroundUri === another.foregroundUri &&
15592      this.secondaryUri === another.secondaryUri);
15593  }
15594}
15595class ArkBackgroundBlurStyle {
15596  constructor() {
15597    this.blurStyle = undefined;
15598    this.colorMode = undefined;
15599    this.adaptiveColor = undefined;
15600    this.scale = undefined;
15601    this.blurOptions = undefined;
15602    this.policy = undefined;
15603    this.inactiveColor = undefined;
15604    this.type = undefined;
15605  }
15606  isEqual(another) {
15607    return (this.blurStyle === another.blurStyle &&
15608      this.colorMode === another.colorMode &&
15609      this.adaptiveColor === another.adaptiveColor &&
15610      this.scale === another.scale &&
15611      this.blurOptions === another.blurOptions &&
15612      this.policy === another.policy &&
15613      this.inactiveColor === another.inactiveColor &&
15614      this.type === another.type);
15615  }
15616}
15617class ArkBorderDashGap {
15618  constructor() {
15619    this.left = undefined;
15620    this.right = undefined;
15621    this.top = undefined;
15622    this.bottom = undefined;
15623  }
15624  isEqual(another) {
15625    return (this.left === another.left &&
15626      this.right === another.right &&
15627      this.top === another.top &&
15628      this.bottom === another.bottom);
15629  }
15630}
15631class ArkBorderDashWidth {
15632  constructor() {
15633    this.left = undefined;
15634    this.right = undefined;
15635    this.top = undefined;
15636    this.bottom = undefined;
15637  }
15638  isEqual(another) {
15639    return (this.left === another.left &&
15640      this.right === another.right &&
15641      this.top === another.top &&
15642      this.bottom === another.bottom);
15643  }
15644}
15645class ArkBorder {
15646  constructor() {
15647    this.arkWidth = new ArkBorderWidth();
15648    this.arkColor = new ArkBorderColor();
15649    this.arkRadius = new ArkBorderRadius();
15650    this.arkStyle = new ArkBorderStyle();
15651    this.arkDashGap = new ArkBorderDashGap();
15652    this.arkDashWidth = new ArkBorderDashWidth();
15653  }
15654  isEqual(another) {
15655    return (this.arkWidth.isEqual(another.arkWidth) &&
15656      this.arkColor.isEqual(another.arkColor) &&
15657      this.arkRadius.isEqual(another.arkRadius) &&
15658      this.arkStyle.isEqual(another.arkStyle) &&
15659      this.arkDashGap.isEqual(another.arkDashGap) &&
15660      this.arkDashWidth.isEqual(another.arkDashWidth));
15661  }
15662  checkObjectDiff(another) {
15663    return !this.isEqual(another);
15664  }
15665}
15666class ArkBackgroundImageSize {
15667  constructor() {
15668    this.imageSize = undefined;
15669    this.width = undefined;
15670    this.height = undefined;
15671  }
15672  isEqual(another) {
15673    return this.imageSize === another.imageSize && this.width === another.width && this.height === another.height;
15674  }
15675}
15676class ArkBackgroundImage {
15677  constructor() {
15678    this.src = undefined;
15679    this.repeat = undefined;
15680  }
15681  isEqual(another) {
15682    return this.src === another.src && this.repeat === another.repeat;
15683  }
15684}
15685class ArkGridColColumnOption {
15686  constructor() {
15687    this.xs = undefined;
15688    this.sm = undefined;
15689    this.md = undefined;
15690    this.lg = undefined;
15691    this.xl = undefined;
15692    this.xxl = undefined;
15693  }
15694  isEqual(another) {
15695    return (this.xs === another.xs &&
15696      this.sm === another.sm &&
15697      this.md === another.md &&
15698      this.lg === another.lg &&
15699      this.xl === another.xl &&
15700      this.xxl === another.xxl);
15701  }
15702}
15703class ArkPadding {
15704  constructor() {
15705    this.top = undefined;
15706    this.right = undefined;
15707    this.bottom = undefined;
15708    this.left = undefined;
15709  }
15710  isEqual(another) {
15711    return (this.top === another.top &&
15712      this.right === another.right &&
15713      this.bottom === another.bottom &&
15714      this.left === another.left);
15715  }
15716}
15717
15718class ArkBarMode {
15719  isEqual(another) {
15720    return (this.barMode === another.barMode) && (this.options === another.options);
15721  }
15722}
15723class ArkDivider {
15724  isEqual(another) {
15725    return (this.divider === another.divider);
15726  }
15727}
15728class ArkBarGridAlign {
15729  isEqual(another) {
15730    return (this.barGridAlign === another.barGridAlign);
15731  }
15732}
15733class ArkScrollableBarModeOptions {
15734  isEqual(another) {
15735    return (this.value === another.value);
15736  }
15737}
15738class ArkAlignRules {
15739  constructor() {
15740    this.left = undefined;
15741    this.middle = undefined;
15742    this.right = undefined;
15743    this.top = undefined;
15744    this.center = undefined;
15745    this.bottom = undefined;
15746  }
15747  isEqual(another) {
15748    return (this.left === another.left &&
15749      this.middle === another.middle &&
15750      this.right === another.right &&
15751      this.top === another.top &&
15752      this.center === another.center &&
15753      this.bottom === another.bottom);
15754  }
15755}
15756class ArkSafeAreaExpandOpts {
15757  constructor() {
15758    this.type = undefined;
15759    this.edges = undefined;
15760  }
15761  isEqual(another) {
15762    return (this.type === another.type) && (this.edges === another.edges);
15763  }
15764}
15765class ArkButtonStyle {
15766  constructor() {
15767    this.left = 16;
15768    this.top = 48;
15769    this.width = 24;
15770    this.height = 24;
15771    this.icons = {
15772      shown: undefined,
15773      hidden: undefined,
15774      switching: undefined
15775    };
15776  }
15777  isEqual(another) {
15778    return (this.left === another.left &&
15779      this.top === another.top &&
15780      this.width === another.width &&
15781      this.height === another.height &&
15782      this.icons === another.icons);
15783  }
15784}
15785class ArkShadowInfoToArray {
15786  constructor() {
15787    this.radius = [];
15788    this.type = [];
15789    this.color = [];
15790    this.offsetX = [];
15791    this.offsetX = [];
15792    this.offsetY = [];
15793    this.fill = [];
15794  }
15795  isEqual(another) {
15796    return (this.radius === another.radius) &&
15797      (this.color === another.color) &&
15798      (this.offsetX === another.offsetX) &&
15799      (this.offsetY === another.offsetY) &&
15800      (this.fill === another.fill);
15801  }
15802  convertShadowOptions(value) {
15803    if (Object.getPrototypeOf(value).constructor === Object) {
15804      if (value.radius === null || value.radius === undefined) {
15805        return false;
15806      }
15807      else {
15808        this.radius.push(value.radius);
15809        this.type.push(value.type);
15810        this.color.push(value.color);
15811        this.offsetX.push((value.offsetX === undefined ||
15812          value.offsetX === null) ? 0 : value.offsetX);
15813        this.offsetY.push((value.offsetY === undefined ||
15814          value.offsetY === null) ? 0 : value.offsetY);
15815        this.fill.push((value.fill === undefined ||
15816          value.fill === null) ? false : value.fill);
15817        return true;
15818      }
15819    }
15820    else if (Object.getPrototypeOf(value).constructor === Array) {
15821      let isFlag = true;
15822      for (let item of value) {
15823        if (item.radius === undefined || item.radius === null) {
15824          isFlag = false;
15825          break;
15826        }
15827      }
15828      if (isFlag) {
15829        for (let objValue of value) {
15830          this.radius.push(objValue.radius);
15831          this.type.push(objValue.type);
15832          this.color.push(objValue.color);
15833          this.offsetX.push((objValue.offsetX === undefined || objValue.offsetX === null) ? 0 : objValue.offsetX);
15834          this.offsetY.push((objValue.offsetY === undefined || objValue.offsetY === null) ? 0 : objValue.offsetY);
15835          this.fill.push((objValue.fill === undefined || objValue.fill === null) ? false : objValue.fill);
15836        }
15837        return true;
15838      }
15839      else {
15840        return false;
15841      }
15842    }
15843  }
15844  checkDiff(value, stageValue) {
15845    if (!value || !stageValue || !value.radius || !stageValue.radius) {
15846      return true;
15847    }
15848    if (!((isResource(stageValue.radius) && isResource(value.radius) &&
15849      isResourceEqual(stageValue.radius, value.radius)) ||
15850      (isNumber(stageValue.radius) && isNumber(value.radius) &&
15851        stageValue.radius === value.radius))) {
15852      return true;
15853    }
15854    if (!(isNumber(stageValue.type) && isNumber(value.type) &&
15855      stageValue.type === value.type)) {
15856      return true;
15857    }
15858    if (!((isResource(stageValue.color) && isResource(value.color) &&
15859      isResourceEqual(stageValue.color, value.color)) ||
15860      (!isResource(stageValue.color) && !isResource(value.color) &&
15861        stageValue.color === value.color))) {
15862      return true;
15863    }
15864    if (!((isResource(stageValue.offsetX) && isResource(value.offsetX) &&
15865      isResourceEqual(stageValue.offsetX, value.offsetX)) ||
15866      (isNumber(stageValue.offsetX) && isNumber(value.offsetX) &&
15867        stageValue.offsetX === value.offsetX))) {
15868      return true;
15869    }
15870    if (!((isResource(stageValue.offsetY) && isResource(value.offsetY) &&
15871      isResourceEqual(stageValue.offsetY, value.offsetY)) ||
15872      (isNumber(stageValue.offsetY) && isNumber(value.offsetY) &&
15873        stageValue.offsetY === value.offsetY))) {
15874      return true;
15875    }
15876    if (!(isBoolean(stageValue.fill) && isBoolean(value.fill) &&
15877      stageValue.fill === value.fill)) {
15878      return true;
15879    }
15880    return false;
15881  }
15882}
15883class ArkTextBackGroundStyle {
15884  constructor() {
15885    this.color = undefined;
15886    this.radius = new ArkBorderRadius();
15887  }
15888  isEqual(another) {
15889    return (this.color === another.color &&
15890      this.radius.isEqual(another.arkRadius));
15891  }
15892  checkObjectDiff(another) {
15893    return !this.isEqual(another);
15894  }
15895  convertTextBackGroundStyleOptions(value) {
15896    let _a, _b, _c, _d;
15897    if (isUndefined(value)) {
15898      return false;
15899    }
15900    if (!isUndefined(value === null || value === void 0 ? void 0 : value.color) && (value === null || value === void 0 ? void 0 : value.color) !== null) {
15901      if (isNumber(value.color) || isString(value.color) || isResource(value.color)) {
15902        this.color = value.color;
15903      }
15904    }
15905
15906    if (!isUndefined(value === null || value === void 0 ? void 0 : value.radius) && (value === null || value === void 0 ? void 0 : value.radius) !== null) {
15907      if (isNumber(value.radius) || isString(value.radius) || isResource(value.radius)) {
15908        this.radius.topLeft = value.radius;
15909        this.radius.topRight = value.radius;
15910        this.radius.bottomLeft = value.radius;
15911        this.radius.bottomRight = value.radius;
15912      }
15913      else {
15914        this.radius.topLeft = (_a = value.radius) === null || _a === void 0 ? void 0 : _a.topLeft;
15915        this.radius.topRight = (_b = value.radius) === null || _b === void 0 ? void 0 : _b.topRight;
15916        this.radius.bottomLeft = (_c = value.radius) === null || _c === void 0 ? void 0 : _c.bottomLeft;
15917        this.radius.bottomRight = (_d = value.radius) === null || _d === void 0 ? void 0 : _d.bottomRight;
15918      }
15919    }
15920    return true;
15921  }
15922}
15923class ArkSearchButton {
15924  constructor() {
15925    this.value = undefined;
15926    this.fontSize = undefined;
15927    this.fontColor = undefined;
15928  }
15929  isEqual(another) {
15930    return (this.value === another.value) &&
15931      (this.fontSize === another.fontSize) &&
15932      (this.fontColor === another.fontColor);
15933  }
15934}
15935class ArkSearchInputFilter {
15936  constructor() {
15937    this.value = undefined;
15938    this.error = undefined;
15939  }
15940  isEqual(another) {
15941    return (this.value === another.value) &&
15942    (this.error === another.error);
15943  }
15944}
15945class ArkImageFrameInfoToArray {
15946  constructor() {
15947    this.arrSrc = [];
15948    this.arrWidth = [];
15949    this.arrHeight = [];
15950    this.arrTop = [];
15951    this.arrLeft = [];
15952    this.arrDuration = [];
15953  }
15954  isEqual(another) {
15955    return (this.arrSrc.toString() === another.arrSrc.toString()) &&
15956      (this.arrWidth.toString() === another.arrWidth.toString()) &&
15957      (this.arrHeight.toString() === another.arrHeight.toString()) &&
15958      (this.arrTop.toString() === another.arrTop.toString()) &&
15959      (this.arrLeft.toString() === another.arrLeft.toString()) &&
15960      (this.arrDuration.toString() === another.arrDuration.toString());
15961  }
15962}
15963class ArkEdgeAlign {
15964  constructor() {
15965    this.alignType = undefined;
15966    this.offset = undefined;
15967  }
15968  isEqual(another) {
15969    return (this.alignType === another.alignType && this.offset === another.offset);
15970  }
15971}
15972class ArkKeyBoardShortCut {
15973  constructor() {
15974    this.value = undefined;
15975    this.keys = undefined;
15976    this.action = undefined;
15977  }
15978  isEqual(another) {
15979    return (this.value === another.value) && (this.keys === another.keys) &&
15980      (this.action === another.action);
15981  }
15982}
15983
15984class ArkCustomProperty {
15985  constructor() {
15986    this.key = undefined;
15987    this.value = undefined;
15988  }
15989}
15990
15991class ArkUseEffect {
15992  constructor() {
15993    this.useEffect = undefined;
15994    this.effectType = undefined;
15995  }
15996  isEqual(another) {
15997    return (this.useEffect === another.useEffect) && (this.effectType === another.effectType);
15998  }
15999}
16000
16001class ArkBlendMode {
16002  constructor() {
16003    this.blendMode = undefined;
16004    this.blendApplyType = undefined;
16005  }
16006  isEqual(another) {
16007    return (this.blendMode === another.blendMode) && (this.blendApplyType === another.blendApplyType);
16008  }
16009}
16010class ArkAlignStyle {
16011  constructor() {
16012    this.indexerAlign = undefined;
16013    this.offset = undefined;
16014  }
16015  isEqual(another) {
16016    return (this.indexerAlign === another.indexerAlign && this.offset === another.offset);
16017  }
16018}
16019class ArkNestedScrollOptions {
16020  constructor() {
16021    this.scrollForward = undefined;
16022    this.scrollBackward = undefined;
16023  }
16024  isEqual(another) {
16025    return ((this.scrollForward === another.scrollForward) && (this.scrollBackward === another.scrollBackward));
16026  }
16027}
16028class ArkConstraintSizeOptions {
16029  constructor() {
16030    this.minWidth = undefined;
16031    this.maxWidth = undefined;
16032    this.minHeight = undefined;
16033    this.maxHeight = undefined;
16034  }
16035  isEqual(another) {
16036    return (this.minWidth === another.minWidth &&
16037      this.maxWidth === another.maxWidth &&
16038      this.minHeight === another.minHeight &&
16039      this.maxHeight === another.maxHeight);
16040  }
16041}
16042class ArkTextFieldShowCounter {
16043  constructor() {
16044    this.value = undefined;
16045    this.highlightBorder = undefined;
16046    this.thresholdPercentage = undefined;
16047  }
16048  isEqual(another) {
16049    return (this.value === another.value) &&
16050      (this.highlightBorder === another.highlightBorder) &&
16051      (this.thresholdPercentage === another.thresholdPercentage);
16052  }
16053}
16054class ArkTextInputFilter {
16055  constructor() {
16056    this.value = undefined;
16057    this.error = undefined;
16058  }
16059  isEqual(another) {
16060    return (this.value === another.value) &&
16061      (this.error === another.error);
16062  }
16063}
16064class ArkDotIndicator extends DotIndicator {
16065  constructor() {
16066    super();
16067    this.type = undefined;
16068    this.leftValue = undefined;
16069    this.topValue = undefined;
16070    this.rightValue = undefined;
16071    this.bottomValue = undefined;
16072    this.itemWidthValue = undefined;
16073    this.itemHeightValue = undefined;
16074    this.selectedItemWidthValue = undefined;
16075    this.selectedItemHeightValue = undefined;
16076    this.maskValue = undefined;
16077    this.colorValue = undefined;
16078    this.selectedColorValue = undefined;
16079    this.maxDisplayCountValue = undefined;
16080  }
16081  isEqual(another) {
16082    return (this.type === another.type &&
16083      this.leftValue === another.leftValue &&
16084      this.topValue === another.topValue &&
16085      this.rightValue === another.rightValue &&
16086      this.bottomValue === another.bottomValue &&
16087      this.itemWidthValue === another.itemWidthValue &&
16088      this.itemHeightValue === another.itemHeightValue &&
16089      this.selectedItemWidthValue === another.selectedItemWidthValue &&
16090      this.selectedItemHeightValue === another.selectedItemHeightValue &&
16091      this.maskValue === another.maskValue &&
16092      this.colorValue === another.colorValue &&
16093      this.selectedColorValue === another.selectedColorValue &&
16094      this.maxDisplayCountValue === another.maxDisplayCountValue);
16095  }
16096}
16097class ArkDigitIndicator extends DigitIndicator {
16098  constructor() {
16099    super();
16100    this.type = undefined;
16101    this.leftValue = undefined;
16102    this.topValue = undefined;
16103    this.rightValue = undefined;
16104    this.bottomValue = undefined;
16105    this.fontColorValue = undefined;
16106    this.selectedFontColorValue = undefined;
16107    this.digitFontValue = undefined;
16108    this.selectedDigitFontValue = undefined;
16109  }
16110  isEqual(another) {
16111    return (this.type === another.type &&
16112      this.leftValue === another.leftValue &&
16113      this.topValue === another.topValue &&
16114      this.rightValue === another.rightValue &&
16115      this.bottomValue === another.bottomValue &&
16116      this.digitFontValue === another.digitFontValue &&
16117      this.selectedDigitFontValue === another.selectedDigitFontValue);
16118  }
16119}
16120class ArkDigitFont {
16121  constructor() {
16122    this.size = undefined;
16123    this.weight = undefined;
16124  }
16125  isEqual(another) {
16126    return this.size === another.size && this.weight === another.weight;
16127  }
16128  parseFontWeight(value) {
16129    const valueWeightMap = {
16130      [0]: 'lighter',
16131      [1]: 'normal',
16132      [2]: 'regular',
16133      [3]: 'medium',
16134      [4]: 'bold',
16135      [5]: 'bolder'
16136    };
16137    if (isUndefined(value)) {
16138      this.weight = '-';
16139    }
16140    else if (value in valueWeightMap) {
16141      this.weight = valueWeightMap[value];
16142    }
16143    else {
16144      this.weight = value.toString();
16145    }
16146    return this.weight;
16147  }
16148}
16149class ArkDisplayArrow {
16150  constructor() {
16151    this.value = undefined;
16152    this.isHoverShow = undefined;
16153  }
16154  isEqual(another) {
16155    return this.value === another.value && this.isHoverShow === another.isHoverShow;
16156  }
16157}
16158class ArkDisplayCount {
16159  constructor() {
16160    this.value = undefined;
16161    this.swipeByGroup = undefined;
16162  }
16163  isEqual(another) {
16164    return this.value === another.value && this.swipeByGroup === another.swipeByGroup;
16165  }
16166}
16167class ArkGridEdgeEffect {
16168  constructor() {
16169    this.value = undefined;
16170    this.options = undefined;
16171  }
16172  isEqual(another) {
16173    return (this.value === another.value) &&
16174      (this.options === another.options);
16175  }
16176}
16177
16178class ArkWaterFlowEdgeEffect {
16179  constructor() {
16180    this.value = undefined;
16181    this.options = undefined;
16182  }
16183  isEqual(another) {
16184    return (this.value === another.value) &&
16185      (this.options === another.options);
16186  }
16187}
16188class ArkScrollableCacheOptions {
16189  constructor(count, show) {
16190    this.count = count;
16191    this.show = show;
16192  }
16193  isEqual(other) {
16194    return (this.count === other.count) &&
16195      (this.show === other.show);
16196  }
16197}
16198class ArkChainMode {
16199  constructor() {
16200    this.direction = undefined;
16201    this.style = undefined;
16202  }
16203  isEqual(another) {
16204    return (this.direction === another.direction) && (this.style === another.style);
16205  }
16206}
16207class ArkMesh {
16208  constructor() {
16209    this.value = undefined;
16210    this.column = undefined;
16211    this.row = undefined;
16212  }
16213  isEqual(another) {
16214    return (deepCompareArrays(this.value, another.value) &&
16215      this.column === another.column &&
16216      this.row === another.row);
16217  }
16218}
16219class ArkLanesOpt {
16220  constructor() {
16221    this.lanesNum = undefined;
16222    this.minLength = undefined;
16223    this.maxLength = undefined;
16224    this.gutter = undefined;
16225  }
16226  isEqual(another) {
16227    return (this.lanesNum === another.lanesNum && this.minLength === another.minLength
16228      && this.maxLength === another.maxLength && this.gutter === another.gutter);
16229  }
16230}
16231class ArkScrollSnapOptions {
16232  constructor() {
16233    this.snapAlign = undefined;
16234    this.snapPagination = undefined;
16235    this.enableSnapToStart = undefined;
16236    this.enableSnapToEnd = undefined;
16237  }
16238  isEqual(another) {
16239    return ((this.snapAlign === another.snapAlign) &&
16240    (this.snapPagination === another.snapPagination) &&
16241    (this.enableSnapToStart === another.enableSnapToStart) &&
16242    (this.enableSnapToEnd === another.enableSnapToEnd));
16243  }
16244}
16245class ArkScrollOffsetOptions {
16246  constructor() {
16247    this.xOffset = undefined;
16248    this.yOffset = undefined;
16249  }
16250  isEqual(another) {
16251    return this.xOffset === another.xOffset && this.yOffset === another.yOffset;
16252  }
16253}
16254
16255class ArkGeometryTransition {
16256  constructor() {
16257      this.id = undefined;
16258      this.options = undefined;
16259  }
16260  isEqual(another) {
16261      return (this.id === another.id && this.options === another.options);
16262  }
16263}
16264class ArkSymbolEffect {
16265  constructor() {
16266    this.symbolEffect = undefined;
16267    this.action = undefined;
16268  }
16269  isEqual(another) {
16270    return (this.symbolEffect === another.symbolEffect) &&
16271      (this.action === another.action);
16272  }
16273}
16274class ArkFocusScopeId {
16275  constructor() {
16276    this.id = undefined;
16277    this.isGroup = undefined;
16278    this.arrowStepOut = undefined;
16279  }
16280  isEqual(another) {
16281    return ((this.id === another.id) && (this.isGroup === another.isGroup) &&
16282      (this.arrowStepOut === another.arrowStepOut));
16283  }
16284}
16285class ArkFocusScopePriority {
16286  constructor() {
16287    this.scopeId = undefined;
16288    this.priority = undefined;
16289  }
16290  isEqual(another) {
16291    return (this.scopeId === another.scopeId) && (this.priority === another.priority);
16292  }
16293}
16294/// <reference path='./import.ts' />
16295/// <reference path='./ArkComponent.ts' />
16296const FontWeightMap = {
16297  0: 'lighter',
16298  1: 'normal',
16299  2: 'regular',
16300  3: 'medium',
16301  4: 'bold',
16302  5: 'bolder',
16303  100: '100',
16304  200: '200',
16305  300: '300',
16306  400: '400',
16307  500: '500',
16308  600: '600',
16309  700: '700',
16310  800: '800',
16311  900: '900',
16312};
16313
16314class ArkDragPreviewOptions {
16315  constructor() {
16316    this.mode = undefined;
16317    this.numberBadge = undefined;
16318    this.isMultiSelectionEnabled = undefined;
16319    this.defaultAnimationBeforeLifting = undefined;
16320  }
16321
16322  isEqual(another) {
16323    return (
16324      this.mode === another.mode &&
16325      this.numberBadge === another.numberBadge &&
16326      this.isMultiSelectionEnabled === another.isMultiSelectionEnabled &&
16327      this.defaultAnimationBeforeLifting === another.defaultAnimationBeforeLifting
16328    );
16329  }
16330}
16331
16332class ArkDragPreview {
16333  constructor() {
16334    this.inspectorId = undefined;
16335  }
16336
16337  isEqual(another) {
16338    return this.inspectorId === another.inspectorId;
16339  }
16340}
16341
16342class ArkTextFont {
16343  constructor() {
16344    this.value = undefined;
16345    this.enableVariableFontWeight = undefined;
16346  }
16347
16348  isEqual(another) {
16349    return (
16350      this.value === another.value &&
16351      this.enableVariableFontWeight === another.enableVariableFontWeight
16352    );
16353  }
16354
16355  checkObjectDiff(another) {
16356    return !this.isEqual(another);
16357  }
16358}
16359
16360class ArkFontWeight {
16361  constructor() {
16362    this.value = undefined;
16363    this.enableVariableFontWeight = undefined;
16364  }
16365
16366  isEqual(another) {
16367    return (
16368      this.value === another.value &&
16369      this.enableVariableFontWeight === another.enableVariableFontWeight
16370    );
16371  }
16372
16373  checkObjectDiff(another) {
16374    return !this.isEqual(another);
16375  }
16376}
16377
16378class ArkNavigationTitle {
16379  constructor() {
16380    this.value = undefined;
16381    this.navigationTitleOptions = undefined;
16382  }
16383  isEqual(another) {
16384    return (this.value === another.value) && (this.navigationTitleOptions === another.navigationTitleOptions);
16385  }
16386}
16387
16388class ArkNavHideTitleBarOrToolBar {
16389  constructor() {
16390    this.isHide = undefined;
16391    this.animated = undefined;
16392  }
16393  isEqual(another) {
16394    return (this.isHide === another.isHide) && (this.animated === another.animated);
16395  }
16396}
16397
16398class ArkButtonComponent extends ArkComponent {
16399  constructor(nativePtr, classType) {
16400    super(nativePtr, classType);
16401  }
16402  allowChildCount() {
16403    return 1;
16404  }
16405  initialize(value) {
16406    if (value.length >= 1 && (isResource(value[0]) || isString(value[0]))) {
16407      modifierWithKey(this._modifiersWithKeys, ButtonCreateTypeModifier.identity, ButtonCreateTypeModifier, true);
16408    } else {
16409      modifierWithKey(this._modifiersWithKeys, ButtonCreateTypeModifier.identity, ButtonCreateTypeModifier, false);
16410    }
16411    if (value.length === 1) {
16412      if (!isNull(value[0]) && isObject(value[0])) {
16413        modifierWithKey(this._modifiersWithKeys, ButtonOptionsModifier.identity, ButtonOptionsModifier, value[0]);
16414      } else if (isResource(value[0]) || isString(value[0])) {
16415        modifierWithKey(this._modifiersWithKeys, ButtonLabelModifier.identity, ButtonLabelModifier, value[0]);
16416      } else {
16417        modifierWithKey(this._modifiersWithKeys, ButtonLabelModifier.identity, ButtonLabelModifier, undefined);
16418        modifierWithKey(this._modifiersWithKeys, ButtonOptionsModifier.identity, ButtonOptionsModifier, undefined);
16419      }
16420    } else if (value.length === 2) {
16421      modifierWithKey(this._modifiersWithKeys, ButtonLabelModifier.identity, ButtonLabelModifier, value[0]);
16422      modifierWithKey(this._modifiersWithKeys, ButtonOptionsModifier.identity, ButtonOptionsModifier, value[1]);
16423    } else {
16424      modifierWithKey(this._modifiersWithKeys, ButtonLabelModifier.identity, ButtonLabelModifier, undefined);
16425      modifierWithKey(this._modifiersWithKeys, ButtonOptionsModifier.identity, ButtonOptionsModifier, undefined);
16426    }
16427    return this;
16428  }
16429  backgroundColor(value) {
16430    modifierWithKey(this._modifiersWithKeys, ButtonBackgroundColorModifier.identity, ButtonBackgroundColorModifier, value);
16431    return this;
16432  }
16433  type(value) {
16434    modifierWithKey(this._modifiersWithKeys, ButtonTypeModifier.identity, ButtonTypeModifier, value);
16435    return this;
16436  }
16437  stateEffect(value) {
16438    modifierWithKey(this._modifiersWithKeys, ButtonStateEffectModifier.identity, ButtonStateEffectModifier, value);
16439    return this;
16440  }
16441  fontColor(value) {
16442    modifierWithKey(this._modifiersWithKeys, ButtonFontColorModifier.identity, ButtonFontColorModifier, value);
16443    return this;
16444  }
16445  fontSize(value) {
16446    modifierWithKey(this._modifiersWithKeys, ButtonFontSizeModifier.identity, ButtonFontSizeModifier, value);
16447    return this;
16448  }
16449  fontWeight(value) {
16450    modifierWithKey(this._modifiersWithKeys, ButtonFontWeightModifier.identity, ButtonFontWeightModifier, value);
16451    return this;
16452  }
16453  fontStyle(value) {
16454    modifierWithKey(this._modifiersWithKeys, ButtonFontStyleModifier.identity, ButtonFontStyleModifier, value);
16455    return this;
16456  }
16457  fontFamily(value) {
16458    modifierWithKey(this._modifiersWithKeys, ButtonFontFamilyModifier.identity, ButtonFontFamilyModifier, value);
16459    return this;
16460  }
16461  labelStyle(value) {
16462    modifierWithKey(this._modifiersWithKeys, ButtonLabelStyleModifier.identity, ButtonLabelStyleModifier, value);
16463    return this;
16464  }
16465  borderRadius(value) {
16466    modifierWithKey(this._modifiersWithKeys, ButtonBorderRadiusModifier.identity, ButtonBorderRadiusModifier, value);
16467    return this;
16468  }
16469  border(value) {
16470    modifierWithKey(this._modifiersWithKeys, ButtonBorderModifier.identity, ButtonBorderModifier, value);
16471    return this;
16472  }
16473  size(value) {
16474    modifierWithKey(this._modifiersWithKeys, ButtonSizeModifier.identity, ButtonSizeModifier, value);
16475    return this;
16476  }
16477  contentModifier(value) {
16478    modifierWithKey(this._modifiersWithKeys, ButtonContentModifier.identity, ButtonContentModifier, value);
16479    return this;
16480  }
16481  setContentModifier(modifier) {
16482    if (modifier === undefined || modifier === null) {
16483      getUINativeModule().button.setContentModifierBuilder(this.nativePtr, false);
16484      return;
16485    }
16486    this.needRebuild = false;
16487    this.applyContent = modifier.applyContent();
16488    if (this.builder !== this.applyContent) {
16489      this.needRebuild = true;
16490    }
16491    this.builder = this.applyContent;
16492    this.modifier = modifier;
16493    getUINativeModule().button.setContentModifierBuilder(this.nativePtr, this);
16494  }
16495  makeContentModifierNode(context, buttonConfiguration) {
16496    buttonConfiguration.contentModifier = this.modifier;
16497    if (isUndefined(this.buttonNode) || this.needRebuild) {
16498      const xNode = globalThis.requireNapi('arkui.node');
16499      this.buttonNode = new xNode.BuilderNode(context);
16500      this.buttonNode.build(this.builder, buttonConfiguration);
16501      this.needRebuild = false;
16502    } else {
16503      this.buttonNode.update(buttonConfiguration);
16504    }
16505    return this.buttonNode.getFrameNode();
16506  }
16507  role(value) {
16508    modifierWithKey(this._modifiersWithKeys, ButtonRoleModifier.identity, ButtonRoleModifier, value);
16509    return this;
16510  }
16511  buttonStyle(value) {
16512    modifierWithKey(this._modifiersWithKeys, ButtonStyleModifier.identity, ButtonStyleModifier, value);
16513    return this;
16514  }
16515  controlSize(value) {
16516    modifierWithKey(this._modifiersWithKeys, ButtonControlSizeModifier.identity, ButtonControlSizeModifier, value);
16517    return this;
16518  }
16519}
16520class ButtonBackgroundColorModifier extends ModifierWithKey {
16521  constructor(value) {
16522    super(value);
16523  }
16524  applyPeer(node, reset) {
16525    if (reset) {
16526      getUINativeModule().button.resetBackgroundColor(node);
16527    }
16528    else {
16529      getUINativeModule().button.setBackgroundColor(node, this.value);
16530    }
16531  }
16532  checkObjectDiff() {
16533    return !isBaseOrResourceEqual(this.stageValue, this.value);
16534  }
16535}
16536ButtonBackgroundColorModifier.identity = Symbol('buttonBackgroundColor');
16537class ButtonRoleModifier extends ModifierWithKey {
16538  constructor(value) {
16539    super(value);
16540  }
16541  applyPeer(node, reset) {
16542    if (reset) {
16543      getUINativeModule().button.resetButtonRole(node);
16544    } else {
16545      getUINativeModule().button.setButtonRole(node, this.value);
16546    }
16547  }
16548  checkObjectDiff() {
16549    return !isBaseOrResourceEqual(this.stageValue, this.value);
16550  }
16551}
16552ButtonRoleModifier.identity = Symbol('buttonRole');
16553class ButtonStyleModifier extends ModifierWithKey {
16554  constructor(value) {
16555    super(value);
16556  }
16557  applyPeer(node, reset) {
16558    if (reset) {
16559      getUINativeModule().button.resetButtonStyle(node);
16560    } else {
16561      getUINativeModule().button.setButtonStyle(node, this.value);
16562    }
16563  }
16564  checkObjectDiff() {
16565    return !isBaseOrResourceEqual(this.stageValue, this.value);
16566  }
16567}
16568ButtonStyleModifier.identity = Symbol('buttonStyle');
16569class ButtonControlSizeModifier extends ModifierWithKey {
16570  constructor(value) {
16571    super(value);
16572  }
16573  applyPeer(node, reset) {
16574    if (reset) {
16575      getUINativeModule().button.resetButtonControlSize(node);
16576    } else {
16577      getUINativeModule().button.setButtonControlSize(node, this.value);
16578    }
16579  }
16580  checkObjectDiff() {
16581    return !isBaseOrResourceEqual(this.stageValue, this.value);
16582  }
16583}
16584ButtonControlSizeModifier.identity = Symbol('buttonControlSize');
16585class ButtonStateEffectModifier extends ModifierWithKey {
16586  constructor(value) {
16587    super(value);
16588  }
16589  applyPeer(node, reset) {
16590    if (reset) {
16591      getUINativeModule().button.resetStateEffect(node);
16592    }
16593    else {
16594      getUINativeModule().button.setStateEffect(node, this.value);
16595    }
16596  }
16597}
16598ButtonStateEffectModifier.identity = Symbol('buttonStateEffect');
16599class ButtonFontStyleModifier extends ModifierWithKey {
16600  constructor(value) {
16601    super(value);
16602  }
16603  applyPeer(node, reset) {
16604    if (reset) {
16605      getUINativeModule().button.resetFontStyle(node);
16606    }
16607    else {
16608      getUINativeModule().button.setFontStyle(node, this.value);
16609    }
16610  }
16611}
16612ButtonFontStyleModifier.identity = Symbol('buttonFontStyle');
16613class ButtonFontFamilyModifier extends ModifierWithKey {
16614  constructor(value) {
16615    super(value);
16616  }
16617  applyPeer(node, reset) {
16618    if (reset) {
16619      getUINativeModule().button.resetFontFamily(node);
16620    }
16621    else {
16622      getUINativeModule().button.setFontFamily(node, this.value);
16623    }
16624  }
16625  checkObjectDiff() {
16626    return !isBaseOrResourceEqual(this.stageValue, this.value);
16627  }
16628}
16629ButtonFontFamilyModifier.identity = Symbol('buttonFontFamily');
16630class ButtonLabelStyleModifier extends ModifierWithKey {
16631  constructor(value) {
16632    super(value);
16633  }
16634  applyPeer(node, reset) {
16635    if (reset) {
16636      getUINativeModule().button.resetLabelStyle(node);
16637    }
16638    else {
16639      let textOverflow = this.value.overflow; // number(enum) -> Ace::TextOverflow
16640      let maxLines = this.value.maxLines; // number -> uint32_t
16641      let minFontSize = this.value.minFontSize; // number | string | Resource -> Dimension
16642      let maxFontSize = this.value.maxFontSize; // number | string | Resource -> Dimension
16643      let heightAdaptivePolicy = this.value.heightAdaptivePolicy; // number(enum) -> Ace::TextHeightAdaptivePolicy
16644      let fontSize; // number | string | Resource -> Dimension
16645      let fontWeight; // number | string | Ace::FontWeight -> string -> Ace::FontWeight
16646      let fontStyle; // number(enum) -> Ace::FontStyle
16647      let fontFamily; // string -> std::vector<std::string>
16648      if (isObject(this.value.font)) {
16649        fontSize = this.value.font.size;
16650        fontStyle = this.value.font.style;
16651        fontFamily = this.value.font.family;
16652        fontWeight = this.value.font.weight;
16653      }
16654      getUINativeModule().button.setLabelStyle(node, textOverflow, maxLines, minFontSize,
16655        maxFontSize, heightAdaptivePolicy, fontSize, fontWeight, fontStyle, fontFamily);
16656    }
16657  }
16658  checkObjectDiff() {
16659    if (isResource(this.stageValue) && isResource(this.value)) {
16660      return !isResourceEqual(this.stageValue, this.value);
16661    }
16662    else if (!isResource(this.stageValue) && !isResource(this.value)) {
16663      return !(this.value.overflow === this.stageValue.overflow &&
16664        this.value.maxLines === this.stageValue.maxLines &&
16665        this.value.minFontSize === this.stageValue.minFontSize &&
16666        this.value.maxFontSize === this.stageValue.maxFontSize &&
16667        this.value.heightAdaptivePolicy === this.stageValue.heightAdaptivePolicy &&
16668        this.value.font === this.stageValue.font);
16669    }
16670    else {
16671      return true;
16672    }
16673  }
16674}
16675ButtonLabelStyleModifier.identity = Symbol('buttonLabelStyle');
16676class ButtonTypeModifier extends ModifierWithKey {
16677  constructor(value) {
16678    super(value);
16679  }
16680  applyStage(node, component) {
16681    if (this.stageValue === undefined || this.stageValue === null) {
16682      this.value = this.stageValue;
16683      this.applyPeer(node, true, component);
16684      return true;
16685    }
16686    this.value = this.stageValue;
16687    this.applyPeer(node, false, component);
16688    return false;
16689  }
16690  applyPeer(node, reset) {
16691    if (reset) {
16692      getUINativeModule().button.resetType(node);
16693    }
16694    else {
16695      getUINativeModule().button.setType(node, this.value);
16696    }
16697  }
16698}
16699ButtonTypeModifier.identity = Symbol('buttonType');
16700class ButtonFontColorModifier extends ModifierWithKey {
16701  constructor(value) {
16702    super(value);
16703  }
16704  applyPeer(node, reset) {
16705    if (reset) {
16706      getUINativeModule().button.resetFontColor(node);
16707    }
16708    else {
16709      getUINativeModule().button.setFontColor(node, this.value);
16710    }
16711  }
16712  checkObjectDiff() {
16713    return !isBaseOrResourceEqual(this.stageValue, this.value);
16714  }
16715}
16716ButtonFontColorModifier.identity = Symbol('buttonFontColor');
16717class ButtonFontSizeModifier extends ModifierWithKey {
16718  constructor(value) {
16719    super(value);
16720  }
16721  applyPeer(node, reset) {
16722    if (reset) {
16723      getUINativeModule().button.resetFontSize(node);
16724    }
16725    else {
16726      getUINativeModule().button.setFontSize(node, this.value);
16727    }
16728  }
16729  checkObjectDiff() {
16730    return !isBaseOrResourceEqual(this.stageValue, this.value);
16731  }
16732}
16733ButtonFontSizeModifier.identity = Symbol('buttonFontSize');
16734class ButtonFontWeightModifier extends ModifierWithKey {
16735  constructor(value) {
16736    super(value);
16737  }
16738  applyPeer(node, reset) {
16739    if (reset) {
16740      getUINativeModule().button.resetFontWeight(node);
16741    }
16742    else {
16743      getUINativeModule().button.setFontWeight(node, this.value);
16744    }
16745  }
16746}
16747ButtonFontWeightModifier.identity = Symbol('buttonFontWeight');
16748class ButtonBorderRadiusModifier extends ModifierWithKey {
16749  constructor(value) {
16750    super(value);
16751  }
16752  applyPeer(node, reset) {
16753    if (reset) {
16754      getUINativeModule().button.resetButtonBorderRadius(node);
16755    }
16756    else {
16757      if (isNumber(this.value) || isString(this.value) || isResource(this.value)) {
16758        getUINativeModule().button.setButtonBorderRadius(node, this.value, this.value, this.value, this.value);
16759      }
16760      else {
16761        getUINativeModule().button.setButtonBorderRadius(node, this.value.topLeft, this.value.topRight, this.value.bottomLeft, this.value.bottomRight);
16762      }
16763    }
16764  }
16765  checkObjectDiff() {
16766    if (isResource(this.stageValue) && isResource(this.value)) {
16767      return !isResourceEqual(this.stageValue, this.value);
16768    }
16769    else if (!isResource(this.stageValue) && !isResource(this.value)) {
16770      return !(this.stageValue.topLeft === this.value.topLeft &&
16771        this.stageValue.topRight === this.value.topRight &&
16772        this.stageValue.bottomLeft === this.value.bottomLeft &&
16773        this.stageValue.bottomRight === this.value.bottomRight);
16774    }
16775    else {
16776      return true;
16777    }
16778  }
16779}
16780ButtonBorderRadiusModifier.identity = Symbol('buttonBorderRadius');
16781class ButtonBorderModifier extends ModifierWithKey {
16782  constructor(value) {
16783    super(value);
16784  }
16785  applyPeer(node, reset) {
16786    if (reset) {
16787      getUINativeModule().button.resetButtonBorder(node);
16788    } else {
16789      let widthLeft;
16790      let widthRight;
16791      let widthTop;
16792      let widthBottom;
16793      if (!isUndefined(this.value.width) && this.value.width != null) {
16794        if (isNumber(this.value.width) || isString(this.value.width) || isResource(this.value.width)) {
16795          widthLeft = this.value.width;
16796          widthRight = this.value.width;
16797          widthTop = this.value.width;
16798          widthBottom = this.value.width;
16799        } else {
16800          widthLeft = this.value.width.left;
16801          widthRight = this.value.width.right;
16802          widthTop = this.value.width.top;
16803          widthBottom = this.value.width.bottom;
16804        }
16805      }
16806      let leftColor;
16807      let rightColor;
16808      let topColor;
16809      let bottomColor;
16810      if (!isUndefined(this.value.color) && this.value.color != null) {
16811        if (isNumber(this.value.color) || isString(this.value.color) || isResource(this.value.color)) {
16812          leftColor = this.value.color;
16813          rightColor = this.value.color;
16814          topColor = this.value.color;
16815          bottomColor = this.value.color;
16816        } else {
16817          leftColor = this.value.color.left;
16818          rightColor = this.value.color.right;
16819          topColor = this.value.color.top;
16820          bottomColor = this.value.color.bottom;
16821        }
16822      }
16823      let topLeft;
16824      let topRight;
16825      let bottomLeft;
16826      let bottomRight;
16827      if (!isUndefined(this.value.radius) && this.value.radius != null) {
16828        if (isNumber(this.value.radius) || isString(this.value.radius) || isResource(this.value.radius)) {
16829          topLeft = this.value.radius;
16830          topRight = this.value.radius;
16831          bottomLeft = this.value.radius;
16832          bottomRight = this.value.radius;
16833        } else {
16834          topLeft = this.value.radius.topLeft;
16835          topRight = this.value.radius.topRight;
16836          bottomLeft = this.value.radius.bottomLeft;
16837          bottomRight = this.value.radius.bottomRight;
16838        }
16839      }
16840      let styleTop;
16841      let styleRight;
16842      let styleBottom;
16843      let styleLeft;
16844      if (!isUndefined(this.value.style) && this.value.style != null) {
16845        if (isNumber(this.value.style) || isString(this.value.style) || isResource(this.value.style)) {
16846          styleTop = this.value.style;
16847          styleRight = this.value.style;
16848          styleBottom = this.value.style;
16849          styleLeft = this.value.style;
16850        } else {
16851          styleTop = this.value.style.top;
16852          styleRight = this.value.style.right;
16853          styleBottom = this.value.style.bottom;
16854          styleLeft = this.value.style.left;
16855        }
16856      }
16857      getUINativeModule().button.setButtonBorder(
16858        node,
16859        widthLeft,
16860        widthRight,
16861        widthTop,
16862        widthBottom,
16863        leftColor,
16864        rightColor,
16865        topColor,
16866        bottomColor,
16867        topLeft,
16868        topRight,
16869        bottomLeft,
16870        bottomRight,
16871        styleTop,
16872        styleRight,
16873        styleBottom,
16874        styleLeft
16875      );
16876    }
16877  }
16878  checkObjectDiff() {
16879    return (
16880      !isBaseOrResourceEqual(this.stageValue.width, this.value.width) ||
16881      !isBaseOrResourceEqual(this.stageValue.color, this.value.color) ||
16882      !isBaseOrResourceEqual(this.stageValue.radius, this.value.radius) ||
16883      !isBaseOrResourceEqual(this.stageValue.style, this.value.style)
16884    );
16885  }
16886}
16887ButtonBorderModifier.identity = Symbol('buttonBorder');
16888class ButtonSizeModifier extends ModifierWithKey {
16889  constructor(value) {
16890    super(value);
16891  }
16892  applyPeer(node, reset) {
16893    if (reset) {
16894      getUINativeModule().button.resetButtonSize(node);
16895    } else {
16896      getUINativeModule().button.setButtonSize(node, this.value.width, this.value.height);
16897    }
16898  }
16899  checkObjectDiff() {
16900    return (
16901      !isBaseOrResourceEqual(this.stageValue.width, this.value.width) ||
16902      !isBaseOrResourceEqual(this.stageValue.height, this.value.height)
16903    );
16904  }
16905}
16906ButtonSizeModifier.identity = Symbol('buttonSize');
16907class ButtonLabelModifier extends ModifierWithKey {
16908  constructor(value) {
16909    super(value);
16910  }
16911  applyPeer(node, reset) {
16912    if (reset) {
16913      getUINativeModule().button.resetLabel(node);
16914    } else {
16915      getUINativeModule().button.setLabel(node, this.value);
16916    }
16917  }
16918  checkObjectDiff() {
16919    return !isBaseOrResourceEqual(this.stageValue, this.value);
16920  }
16921}
16922ButtonLabelModifier.identity = Symbol('buttonLabel');
16923class ButtonOptionsModifier extends ModifierWithKey {
16924  applyPeer(node, reset) {
16925    if (reset) {
16926      getUINativeModule().button.resetOptions(node);
16927    } else {
16928      getUINativeModule().button.setOptions(node, this.value.type, this.value.stateEffect,
16929        this.value.buttonStyle, this.value.controlSize, this.value.role);
16930    }
16931  }
16932  checkObjectDiff() {
16933    return (
16934      !isBaseOrResourceEqual(this.stageValue.type, this.value.type) ||
16935      !isBaseOrResourceEqual(this.stageValue.stateEffect, this.value.stateEffect) ||
16936      !isBaseOrResourceEqual(this.stageValue.buttonStyle, this.value.buttonStyle) ||
16937      !isBaseOrResourceEqual(this.stageValue.controlSize, this.value.controlSize) ||
16938      !isBaseOrResourceEqual(this.stageValue.role, this.value.role)
16939    );
16940  }
16941}
16942ButtonOptionsModifier.identity = Symbol('buttonOptions');
16943class ButtonCreateTypeModifier extends ModifierWithKey {
16944  applyPeer(node, reset) {
16945    if (!reset) {
16946      getUINativeModule().button.setCreateWithLabel(node, this.value);
16947    }
16948  }
16949  checkObjectDiff() {
16950    return !isBaseOrResourceEqual(this.stageValue, this.value);
16951  }
16952}
16953ButtonCreateTypeModifier.identity = Symbol('buttonCreateType');
16954class ButtonContentModifier extends ModifierWithKey {
16955  constructor(value) {
16956    super(value);
16957  }
16958  applyPeer(node, reset, component) {
16959    let buttonComponent = component;
16960    buttonComponent.setContentModifier(this.value);
16961  }
16962}
16963ButtonContentModifier.identity = Symbol('buttonContentModifier');
16964// @ts-ignore
16965if (globalThis.Button !== undefined) {
16966  globalThis.Button.attributeModifier = function (modifier) {
16967    attributeModifierFunc.call(this, modifier, (nativePtr) => {
16968      return new ArkButtonComponent(nativePtr);
16969    }, (nativePtr, classType, modifierJS) => {
16970      return new modifierJS.ButtonModifier(nativePtr, classType);
16971    });
16972  };
16973  // @ts-ignore
16974  globalThis.Button.contentModifier = function (modifier) {
16975    const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
16976    let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
16977    let component = this.createOrGetNode(elmtId, () => {
16978      return new ArkButtonComponent(nativeNode);
16979    });
16980    component.setContentModifier(modifier);
16981  };
16982}
16983
16984/// <reference path='./import.ts' />
16985class ArkLoadingProgressComponent extends ArkComponent {
16986  constructor(nativePtr, classType) {
16987    super(nativePtr, classType);
16988  }
16989  initialize(value) {
16990    return this;
16991  }
16992  allowChildCount() {
16993    return 0;
16994  }
16995  color(value) {
16996    modifierWithKey(this._modifiersWithKeys, LoadingProgressColorModifier.identity, LoadingProgressColorModifier, value);
16997    return this;
16998  }
16999  enableLoading(value) {
17000    modifierWithKey(this._modifiersWithKeys, LoadingProgressEnableLoadingModifier.identity, LoadingProgressEnableLoadingModifier, value);
17001    return this;
17002  }
17003  foregroundColor(value) {
17004    modifierWithKey(this._modifiersWithKeys, LoadingProgressForegroundColorModifier.identity,
17005      LoadingProgressForegroundColorModifier, value);
17006    return this;
17007  }
17008  contentModifier(value) {
17009    modifierWithKey(this._modifiersWithKeys, LoadingProgressContentModifier.identity, LoadingProgressContentModifier, value);
17010    return this;
17011  }
17012  setContentModifier(modifier) {
17013    if (modifier === undefined || modifier === null) {
17014      getUINativeModule().loadingProgress.setContentModifierBuilder(this.nativePtr, false);
17015      return;
17016    }
17017    this.needRebuild = false;
17018    if (this.builder !== modifier.applyContent()) {
17019      this.needRebuild = true;
17020    }
17021    this.builder = modifier.applyContent();
17022    this.modifier = modifier;
17023    getUINativeModule().loadingProgress.setContentModifierBuilder(this.nativePtr, this);
17024  }
17025  makeContentModifierNode(context, loadingProgressConfiguration) {
17026    loadingProgressConfiguration.contentModifier = this.modifier;
17027    if (isUndefined(this.loadingProgressNode) || this.needRebuild) {
17028      const xNode = globalThis.requireNapi('arkui.node');
17029      this.loadingProgressNode = new xNode.BuilderNode(context);
17030      this.loadingProgressNode.build(this.builder, loadingProgressConfiguration);
17031      this.needRebuild = false;
17032    } else {
17033      this.loadingProgressNode.update(loadingProgressConfiguration);
17034    }
17035    return this.loadingProgressNode.getFrameNode();
17036  }
17037}
17038class LoadingProgressColorModifier extends ModifierWithKey {
17039  constructor(value) {
17040    super(value);
17041  }
17042  applyPeer(node, reset) {
17043    if (reset) {
17044      getUINativeModule().loadingProgress.resetColor(node);
17045    }
17046    else {
17047      getUINativeModule().loadingProgress.setColor(node, this.value);
17048    }
17049  }
17050  checkObjectDiff() {
17051    return !isBaseOrResourceEqual(this.stageValue, this.value);
17052  }
17053}
17054LoadingProgressColorModifier.identity = Symbol('loadingProgressColor');
17055class LoadingProgressForegroundColorModifier extends ModifierWithKey {
17056  constructor(value) {
17057    super(value);
17058  }
17059  applyPeer(node, reset) {
17060    if (reset) {
17061      getUINativeModule().loadingProgress.resetForegroundColor(node);
17062    }
17063    else {
17064      getUINativeModule().loadingProgress.setForegroundColor(node, this.value);
17065    }
17066  }
17067  checkObjectDiff() {
17068    return !isBaseOrResourceEqual(this.stageValue, this.value);
17069  }
17070}
17071LoadingProgressForegroundColorModifier.identity = Symbol('loadingProgressForegroundColor');
17072class LoadingProgressContentModifier extends ModifierWithKey {
17073  constructor(value) {
17074    super(value);
17075  }
17076  applyPeer(node, reset, component) {
17077    let loadingProgressComponent = component;
17078    loadingProgressComponent.setContentModifier(this.value);
17079  }
17080}
17081LoadingProgressContentModifier.identity = Symbol('loadingProgressContentModifier');
17082class LoadingProgressEnableLoadingModifier extends ModifierWithKey {
17083  constructor(value) {
17084    super(value);
17085  }
17086  applyPeer(node, reset) {
17087    if (reset) {
17088      getUINativeModule().loadingProgress.resetEnableLoading(node);
17089    }
17090    else {
17091      getUINativeModule().loadingProgress.setEnableLoading(node, this.value);
17092    }
17093  }
17094}
17095LoadingProgressEnableLoadingModifier.identity = Symbol('loadingProgressEnableLoading');
17096// @ts-ignore
17097if (globalThis.LoadingProgress !== undefined) {
17098  globalThis.LoadingProgress.attributeModifier = function (modifier) {
17099    attributeModifierFunc.call(this, modifier, (nativePtr) => {
17100      return new ArkLoadingProgressComponent(nativePtr);
17101    }, (nativePtr, classType, modifierJS) => {
17102      return new modifierJS.LoadingProgressModifier(nativePtr, classType);
17103    });
17104  };
17105
17106  globalThis.LoadingProgress.contentModifier = function (modifier) {
17107    const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
17108    let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
17109    let component = this.createOrGetNode(elmtId, () => {
17110      return new ArkLoadingProgressComponent(nativeNode);
17111    });
17112    component.setContentModifier(modifier);
17113  };
17114}
17115
17116/// <reference path='./import.ts' />
17117class ArkRefreshComponent extends ArkComponent {
17118  constructor(nativePtr, classType) {
17119    super(nativePtr, classType);
17120  }
17121  onStateChange(callback) {
17122    throw new Error('Method not implemented.');
17123  }
17124  onRefreshing(callback) {
17125    throw new Error('Method not implemented.');
17126  }
17127  refreshOffset(value) {
17128    modifierWithKey(this._modifiersWithKeys, RefreshOffsetModifier.identity, RefreshOffsetModifier, value);
17129    return this;
17130  }
17131  pullToRefresh(value) {
17132    modifierWithKey(this._modifiersWithKeys, PullToRefreshModifier.identity, PullToRefreshModifier, value);
17133    return this;
17134  }
17135  pullDownRatio(value) {
17136    modifierWithKey(this._modifiersWithKeys, PullDownRatioModifier.identity, PullDownRatioModifier, value);
17137    return this;
17138  }
17139}
17140class RefreshOffsetModifier extends ModifierWithKey {
17141  constructor(value) {
17142    super(value);
17143  }
17144  applyPeer(node, reset) {
17145    if (reset) {
17146      getUINativeModule().refresh.resetRefreshOffset(node);
17147    }
17148    else {
17149      getUINativeModule().refresh.setRefreshOffset(node, this.value);
17150    }
17151  }
17152}
17153RefreshOffsetModifier.identity = Symbol('refreshOffset');
17154class PullToRefreshModifier extends ModifierWithKey {
17155  constructor(value) {
17156    super(value);
17157  }
17158  applyPeer(node, reset) {
17159    if (reset) {
17160      getUINativeModule().refresh.resetPullToRefresh(node);
17161    }
17162    else {
17163      getUINativeModule().refresh.setPullToRefresh(node, this.value);
17164    }
17165  }
17166}
17167PullToRefreshModifier.identity = Symbol('pullToRefresh');
17168class PullDownRatioModifier extends ModifierWithKey {
17169  constructor(value) {
17170    super(value);
17171  }
17172  applyPeer(node, reset) {
17173    if (reset) {
17174      getUINativeModule().refresh.resetPullDownRatio(node);
17175    }
17176    else {
17177      getUINativeModule().refresh.setPullDownRatio(node, this.value);
17178    }
17179  }
17180  checkObjectDiff() {
17181    return !isBaseOrResourceEqual(this.stageValue, this.value);
17182  }
17183}
17184PullDownRatioModifier.identity = Symbol('pullDownRatio');
17185// @ts-ignore
17186if (globalThis.Refresh !== undefined) {
17187  globalThis.Refresh.attributeModifier = function (modifier) {
17188    attributeModifierFunc.call(this, modifier, (nativePtr) => {
17189      return new ArkRefreshComponent(nativePtr);
17190    }, (nativePtr, classType, modifierJS) => {
17191      return new modifierJS.RefreshModifier(nativePtr, classType);
17192    });
17193  };
17194}
17195
17196/// <reference path='./import.ts' />
17197class ScrollNestedScrollModifier extends ModifierWithKey {
17198  applyPeer(node, reset) {
17199    if (reset) {
17200      getUINativeModule().scroll.resetNestedScroll(node);
17201    }
17202    else {
17203      getUINativeModule().scroll.setNestedScroll(node, this.value.scrollForward, this.value.scrollBackward);
17204    }
17205  }
17206  checkObjectDiff() {
17207    return !isBaseOrResourceEqual(this.stageValue.scrollForward, this.value.scrollForward) ||
17208      !isBaseOrResourceEqual(this.stageValue.scrollBackward, this.value.scrollBackward);
17209  }
17210}
17211ScrollNestedScrollModifier.identity = Symbol('nestedScroll');
17212class ScrollEnableScrollInteractionModifier extends ModifierWithKey {
17213  applyPeer(node, reset) {
17214    if (reset) {
17215      getUINativeModule().scroll.resetEnableScroll(node);
17216    }
17217    else {
17218      getUINativeModule().scroll.setEnableScroll(node, this.value);
17219    }
17220  }
17221  checkObjectDiff() {
17222    return !isBaseOrResourceEqual(this.stageValue, this.value);
17223  }
17224}
17225ScrollEnableScrollInteractionModifier.identity = Symbol('enableScrollInteraction');
17226class ScrollEnablePagingModifier extends ModifierWithKey {
17227  applyPeer(node, reset) {
17228    if (reset) {
17229      getUINativeModule().scroll.resetEnablePaging(node);
17230    } else {
17231      getUINativeModule().scroll.setEnablePaging(node, this.value);
17232    }
17233  }
17234}
17235ScrollEnablePagingModifier.identity = Symbol('scrollEnablePaging');
17236class ScrollFrictionModifier extends ModifierWithKey {
17237  applyPeer(node, reset) {
17238    if (reset) {
17239      getUINativeModule().scroll.resetFriction(node);
17240    }
17241    else {
17242      getUINativeModule().scroll.setFriction(node, this.value);
17243    }
17244  }
17245  checkObjectDiff() {
17246    return !isBaseOrResourceEqual(this.stageValue, this.value);
17247  }
17248}
17249ScrollFrictionModifier.identity = Symbol('friction');
17250class ScrollScrollSnapModifier extends ModifierWithKey {
17251  applyPeer(node, reset) {
17252    if (reset) {
17253      getUINativeModule().scroll.resetScrollSnap(node);
17254    }
17255    else {
17256      let snapPagination = [];
17257      let isArray = true;
17258      if (Array.isArray(this.value.snapPagination)) {
17259        for (let i = 0; i < this.value.snapPagination.length; i++) {
17260          let item = this.value.snapPagination[i];
17261          snapPagination.push(item);
17262        }
17263      }
17264      else {
17265        isArray = false;
17266      }
17267      if (isArray) {
17268        getUINativeModule().scroll.setScrollSnap(node, this.value.snapAlign, snapPagination,
17269          this.value.enableSnapToStart, this.value.enableSnapToEnd);
17270      }
17271      else {
17272        getUINativeModule().scroll.setScrollSnap(node, this.value.snapAlign, this.value.snapPagination,
17273          this.value.enableSnapToStart, this.value.enableSnapToEnd);
17274      }
17275    }
17276  }
17277  checkObjectDiff() {
17278    return !((this.stageValue.snapAlign === this.value.snapAlign) &&
17279      (this.stageValue.enableSnapToStart === this.value.enableSnapToStart) &&
17280      (this.stageValue.enableSnapToEnd === this.value.enableSnapToEnd) &&
17281      (this.stageValue.snapPagination === this.value.snapPagination));
17282  }
17283}
17284ScrollScrollSnapModifier.identity = Symbol('scrollSnap');
17285class ScrollScrollBarModifier extends ModifierWithKey {
17286  applyPeer(node, reset) {
17287    if (reset) {
17288      getUINativeModule().scroll.resetScrollBar(node);
17289    }
17290    else {
17291      getUINativeModule().scroll.setScrollBar(node, this.value);
17292    }
17293  }
17294  checkObjectDiff() {
17295    return !isBaseOrResourceEqual(this.stageValue, this.value);
17296  }
17297}
17298ScrollScrollBarModifier.identity = Symbol('scrollBar');
17299class ScrollScrollableModifier extends ModifierWithKey {
17300  constructor(value) {
17301    super(value);
17302  }
17303  applyPeer(node, reset) {
17304    if (reset) {
17305      getUINativeModule().scroll.resetScrollable(node);
17306    }
17307    else {
17308      getUINativeModule().scroll.setScrollable(node, this.value);
17309    }
17310  }
17311  checkObjectDiff() {
17312    return this.stageValue !== this.value;
17313  }
17314}
17315ScrollScrollableModifier.identity = Symbol('scrollable');
17316class ScrollEdgeEffectModifier extends ModifierWithKey {
17317  constructor(value) {
17318    super(value);
17319  }
17320  applyPeer(node, reset) {
17321    let _a;
17322    if (reset) {
17323      getUINativeModule().scroll.resetEdgeEffect(node);
17324    }
17325    else {
17326      getUINativeModule().scroll.setEdgeEffect(node, this.value.value, (_a = this.value.options) === null || _a ===
17327      void 0 ? void 0 : _a.alwaysEnabled);
17328    }
17329  }
17330  checkObjectDiff() {
17331    return !((this.stageValue.value === this.value.value) &&
17332      (this.stageValue.options === this.value.options));
17333  }
17334}
17335ScrollEdgeEffectModifier.identity = Symbol('edgeEffect');
17336class ScrollFadingEdgeModifier extends ModifierWithKey {
17337  constructor(value) {
17338    super(value);
17339  }
17340  applyPeer(node, reset) {
17341    if (reset) {
17342      getUINativeModule().scroll.resetFadingEdge(node);
17343    }
17344    else {
17345      getUINativeModule().scroll.setFadingEdge(node, this.value.value, this.value.options?.fadingEdgeLength);
17346    }
17347  }
17348  checkObjectDiff() {
17349    return !((this.stageValue.value === this.value.value) &&
17350      (this.stageValue.options === this.value.options));
17351  }
17352}
17353ScrollFadingEdgeModifier.identity = Symbol('scrollFadingEdge');
17354class ScrollScrollBarWidthModifier extends ModifierWithKey {
17355  constructor(value) {
17356    super(value);
17357  }
17358  applyPeer(node, reset) {
17359    if (reset) {
17360      getUINativeModule().scroll.resetScrollBarWidth(node);
17361    }
17362    else {
17363      getUINativeModule().scroll.setScrollBarWidth(node, this.value);
17364    }
17365  }
17366  checkObjectDiff() {
17367    return this.stageValue !== this.value;
17368  }
17369}
17370ScrollScrollBarWidthModifier.identity = Symbol('scrollBarWidth');
17371class ScrollScrollBarColorModifier extends ModifierWithKey {
17372  constructor(value) {
17373    super(value);
17374  }
17375  applyPeer(node, reset) {
17376    if (reset) {
17377      getUINativeModule().scroll.resetScrollBarColor(node);
17378    }
17379    else {
17380      getUINativeModule().scroll.setScrollBarColor(node, this.value);
17381    }
17382  }
17383  checkObjectDiff() {
17384    return !isBaseOrResourceEqual(this.stageValue, this.value);
17385  }
17386}
17387ScrollScrollBarColorModifier.identity = Symbol('scrollBarColor');
17388class ScrollClipModifier extends ModifierWithKey {
17389  constructor(value) {
17390    super(value);
17391  }
17392  applyPeer(node, reset) {
17393    if (reset) {
17394      getUINativeModule().common.resetClipWithEdge(node);
17395    }
17396    else {
17397      getUINativeModule().common.setClipWithEdge(node, this.value);
17398    }
17399  }
17400  checkObjectDiff() {
17401    return true;
17402  }
17403}
17404ScrollClipModifier.identity = Symbol('scrollClip');
17405class ScrollInitialOffsetModifier extends ModifierWithKey {
17406  applyPeer(node, reset) {
17407    if (reset) {
17408      getUINativeModule().scroll.resetInitialOffset(node);
17409    }
17410    else {
17411      getUINativeModule().scroll.setInitialOffset(node, this.value.xOffset, this.value.yOffset);
17412    }
17413  }
17414  checkObjectDiff() {
17415    return !((this.stageValue.xOffset === this.value.xOffset) &&
17416    (this.stageValue.yOffset === this.value.yOffset));
17417  }
17418}
17419ScrollInitialOffsetModifier.identity = Symbol('initialOffset');
17420
17421class ScrollFlingSpeedLimitModifier extends ModifierWithKey {
17422  applyPeer(node, reset) {
17423    if (reset) {
17424      getUINativeModule().scroll.resetFlingSpeedLimit(node);
17425    } else {
17426      getUINativeModule().scroll.setFlingSpeedLimit(node, this.value);
17427    }
17428  }
17429  checkObjectDiff() {
17430    return true;
17431  }
17432}
17433ScrollFlingSpeedLimitModifier.identity = Symbol('flingSpeedLimit');
17434
17435class ScrollInitializeModifier extends ModifierWithKey {
17436  constructor(value) {
17437    super(value);
17438  }
17439  applyPeer(node, reset) {
17440    if (reset) {
17441      getUINativeModule().scroll.resetScrollInitialize(node);
17442    }
17443    else {
17444      getUINativeModule().scroll.setScrollInitialize(node, this.value);
17445    }
17446  }
17447}
17448ScrollInitializeModifier.identity = Symbol('scrollInitialize');
17449
17450class ScrollOnScrollStartModifier extends ModifierWithKey {
17451  constructor(value) {
17452    super(value);
17453  }
17454  applyPeer(node, reset) {
17455    if (reset) {
17456      getUINativeModule().scroll.resetScrollOnScrollStart(node);
17457    } else {
17458      getUINativeModule().scroll.setScrollOnScrollStart(node, this.value);
17459    }
17460  }
17461}
17462ScrollOnScrollStartModifier.identity = Symbol('scrollOnScrollStart');
17463
17464class ScrollOnScrollEndModifier extends ModifierWithKey {
17465  constructor(value) {
17466    super(value);
17467  }
17468  applyPeer(node, reset) {
17469    if (reset) {
17470      getUINativeModule().scroll.resetScrollOnScrollEnd(node);
17471    } else {
17472      getUINativeModule().scroll.setScrollOnScrollEnd(node, this.value);
17473    }
17474  }
17475}
17476ScrollOnScrollEndModifier.identity = Symbol('scrollOnScrollEnd');
17477
17478class ScrollOnScrollStopModifier extends ModifierWithKey {
17479  constructor(value) {
17480    super(value);
17481  }
17482  applyPeer(node, reset) {
17483    if (reset) {
17484      getUINativeModule().scroll.resetScrollOnScrollStop(node);
17485    } else {
17486      getUINativeModule().scroll.setScrollOnScrollStop(node, this.value);
17487    }
17488  }
17489}
17490ScrollOnScrollStopModifier.identity = Symbol('scrollOnScrollStop');
17491
17492class ScrollOnScrollModifier extends ModifierWithKey {
17493  constructor(value) {
17494    super(value);
17495  }
17496  applyPeer(node, reset) {
17497    if (reset) {
17498      getUINativeModule().scroll.resetScrollOnScroll(node);
17499    } else {
17500      getUINativeModule().scroll.setScrollOnScroll(node, this.value);
17501    }
17502  }
17503}
17504ScrollOnScrollModifier.identity = Symbol('scrollOnScroll');
17505
17506class ScrollOnScrollEdgeModifier extends ModifierWithKey {
17507  constructor(value) {
17508    super(value);
17509  }
17510  applyPeer(node, reset) {
17511    if (reset) {
17512      getUINativeModule().scroll.resetScrollOnScrollEdge(node);
17513    } else {
17514      getUINativeModule().scroll.setScrollOnScrollEdge(node, this.value);
17515    }
17516  }
17517}
17518ScrollOnScrollEdgeModifier.identity = Symbol('scrollOnScrollEdge');
17519
17520class ScrollOnDidScrollModifier extends ModifierWithKey {
17521  constructor(value) {
17522    super(value);
17523  }
17524  applyPeer(node, reset) {
17525    if (reset) {
17526      getUINativeModule().scroll.resetScrollOnDidScroll(node);
17527    } else {
17528      getUINativeModule().scroll.setScrollOnDidScroll(node, this.value);
17529    }
17530  }
17531}
17532ScrollOnDidScrollModifier.identity = Symbol('scrollOnDidScroll');
17533
17534class ScrollOnWillScrollModifier extends ModifierWithKey {
17535  constructor(value) {
17536    super(value);
17537  }
17538  applyPeer(node, reset) {
17539    if (reset) {
17540      getUINativeModule().scroll.resetScrollOnWillScroll(node);
17541    } else {
17542      getUINativeModule().scroll.setScrollOnWillScroll(node, this.value);
17543    }
17544  }
17545}
17546ScrollOnWillScrollModifier.identity = Symbol('scrollOnWillScroll');
17547
17548class ScrollOnScrollFrameBeginModifier extends ModifierWithKey {
17549  constructor(value) {
17550    super(value);
17551  }
17552  applyPeer(node, reset) {
17553    if (reset) {
17554      getUINativeModule().scroll.resetScrollOnScrollFrameBegin(node);
17555    } else {
17556      getUINativeModule().scroll.setScrollOnScrollFrameBegin(node, this.value);
17557    }
17558  }
17559}
17560ScrollOnScrollFrameBeginModifier.identity = Symbol('scrollOnScrollFrameBegin');
17561
17562class ArkScrollComponent extends ArkScrollable {
17563  constructor(nativePtr, classType) {
17564    super(nativePtr, classType);
17565  }
17566  initialize(value) {
17567    if (value[0] !== undefined) {
17568      modifierWithKey(this._modifiersWithKeys, ScrollInitializeModifier.identity, ScrollInitializeModifier, value[0]);
17569    }
17570    return this;
17571  }
17572  allowChildCount() {
17573    return 1;
17574  }
17575  scrollable(value) {
17576    modifierWithKey(this._modifiersWithKeys, ScrollScrollableModifier.identity, ScrollScrollableModifier, value);
17577    return this;
17578  }
17579  onScroll(event) {
17580    modifierWithKey(this._modifiersWithKeys, ScrollOnScrollModifier.identity, ScrollOnScrollModifier, event);
17581    return this;
17582  }
17583  onScrollEdge(event) {
17584    modifierWithKey(this._modifiersWithKeys, ScrollOnScrollEdgeModifier.identity, ScrollOnScrollEdgeModifier, event);
17585    return this;
17586  }
17587  onScrollStart(event) {
17588    modifierWithKey(this._modifiersWithKeys, ScrollOnScrollStartModifier.identity, ScrollOnScrollStartModifier, event);
17589    return this;
17590  }
17591  onScrollEnd(event) {
17592    modifierWithKey(this._modifiersWithKeys, ScrollOnScrollEndModifier.identity, ScrollOnScrollEndModifier, event);
17593    return this;
17594  }
17595  onScrollStop(event) {
17596    modifierWithKey(this._modifiersWithKeys, ScrollOnScrollStopModifier.identity, ScrollOnScrollStopModifier, event);
17597    return this;
17598  }
17599  scrollBar(value) {
17600    if (value in BarState) {
17601      modifierWithKey(this._modifiersWithKeys, ScrollScrollBarModifier.identity, ScrollScrollBarModifier, value);
17602    }
17603    else {
17604      modifierWithKey(this._modifiersWithKeys, ScrollScrollBarModifier.identity, ScrollScrollBarModifier, undefined);
17605    }
17606    return this;
17607  }
17608  scrollBarColor(color) {
17609    modifierWithKey(this._modifiersWithKeys, ScrollScrollBarColorModifier.identity, ScrollScrollBarColorModifier, color);
17610    return this;
17611  }
17612  scrollBarWidth(value) {
17613    modifierWithKey(this._modifiersWithKeys, ScrollScrollBarWidthModifier.identity, ScrollScrollBarWidthModifier, value);
17614    return this;
17615  }
17616  edgeEffect(value, options) {
17617    let effect = new ArkScrollEdgeEffect();
17618    effect.value = value;
17619    effect.options = options;
17620    modifierWithKey(this._modifiersWithKeys, ScrollEdgeEffectModifier.identity, ScrollEdgeEffectModifier, effect);
17621    return this;
17622  }
17623  fadingEdge(value, options) {
17624    let fadingEdge = new ArkFadingEdge();
17625    fadingEdge.value = value;
17626    fadingEdge.options = options;
17627    modifierWithKey(this._modifiersWithKeys, ScrollFadingEdgeModifier.identity, ScrollFadingEdgeModifier, fadingEdge);
17628    return this;
17629  }
17630  onScrollFrameBegin(callback) {
17631    modifierWithKey(this._modifiersWithKeys, ScrollOnScrollFrameBeginModifier.identity, ScrollOnScrollFrameBeginModifier, callback);
17632    return this;
17633  }
17634
17635  onWillScroll(callback) {
17636    modifierWithKey(this._modifiersWithKeys, ScrollOnWillScrollModifier.identity, ScrollOnWillScrollModifier, callback);
17637    return this;
17638  }
17639
17640  onDidScroll(callback) {
17641    modifierWithKey(this._modifiersWithKeys, ScrollOnDidScrollModifier.identity, ScrollOnDidScrollModifier, callback);
17642    return this;
17643  }
17644
17645  nestedScroll(value) {
17646    let options = new ArkNestedScrollOptions();
17647    if (value) {
17648      if (value.scrollForward) {
17649        options.scrollForward = value.scrollForward;
17650      }
17651      if (value.scrollBackward) {
17652        options.scrollBackward = value.scrollBackward;
17653      }
17654      modifierWithKey(this._modifiersWithKeys, ScrollNestedScrollModifier.identity, ScrollNestedScrollModifier, options);
17655    }
17656    return this;
17657  }
17658  enableScrollInteraction(value) {
17659    modifierWithKey(this._modifiersWithKeys, ScrollEnableScrollInteractionModifier.identity, ScrollEnableScrollInteractionModifier, value);
17660    return this;
17661  }
17662  enablePaging(value) {
17663    modifierWithKey(this._modifiersWithKeys, ScrollEnablePagingModifier.identity, ScrollEnablePagingModifier, value);
17664    return this;
17665  }
17666  friction(value) {
17667    modifierWithKey(this._modifiersWithKeys, ScrollFrictionModifier.identity, ScrollFrictionModifier, value);
17668    return this;
17669  }
17670  scrollSnap(value) {
17671    let options = new ArkScrollSnapOptions();
17672    if (value) {
17673      if (value.snapAlign) {
17674        options.snapAlign = value.snapAlign;
17675      }
17676      if (value.snapPagination) {
17677        options.snapPagination = value.snapPagination;
17678      }
17679      if (value.enableSnapToStart) {
17680        options.enableSnapToStart = value.enableSnapToStart;
17681      }
17682      if (value.enableSnapToEnd) {
17683        options.enableSnapToEnd = value.enableSnapToEnd;
17684      }
17685      modifierWithKey(this._modifiersWithKeys, ScrollScrollSnapModifier.identity, ScrollScrollSnapModifier, options);
17686    }
17687    return this;
17688  }
17689  clip(value) {
17690    modifierWithKey(this._modifiersWithKeys, ScrollClipModifier.identity, ScrollClipModifier, value);
17691    return this;
17692  }
17693  initialOffset(value) {
17694    let options = new ArkScrollOffsetOptions();
17695    if (value) {
17696      if (value.xOffset) {
17697        options.xOffset = value.xOffset;
17698      }
17699      if (value.yOffset) {
17700        options.yOffset = value.yOffset;
17701      }
17702      modifierWithKey(this._modifiersWithKeys, ScrollInitialOffsetModifier.identity, ScrollInitialOffsetModifier, options);
17703    }
17704    return this;
17705  }
17706  flingSpeedLimit(value) {
17707    modifierWithKey(this._modifiersWithKeys, ScrollFlingSpeedLimitModifier.identity, ScrollFlingSpeedLimitModifier, value);
17708    return this;
17709  }
17710}
17711// @ts-ignore
17712if (globalThis.Scroll !== undefined) {
17713  globalThis.Scroll.attributeModifier = function (modifier) {
17714    attributeModifierFunc.call(this, modifier, (nativePtr) => {
17715      return new ArkScrollComponent(nativePtr);
17716    }, (nativePtr, classType, modifierJS) => {
17717      return new modifierJS.ScrollModifier(nativePtr, classType);
17718    });
17719  };
17720}
17721
17722/// <reference path='./import.ts' />
17723class ArkToggleComponent extends ArkComponent {
17724  constructor(nativePtr, classType) {
17725    super(nativePtr, classType);
17726  }
17727  onChange(callback) {
17728    throw new Error('Method not implemented.');
17729  }
17730  selectedColor(value) {
17731    modifierWithKey(this._modifiersWithKeys, ToggleSelectedColorModifier.identity, ToggleSelectedColorModifier, value);
17732    return this;
17733  }
17734  switchPointColor(value) {
17735    modifierWithKey(this._modifiersWithKeys, ToggleSwitchPointColorModifier.identity, ToggleSwitchPointColorModifier, value);
17736    return this;
17737  }
17738  height(value) {
17739    modifierWithKey(this._modifiersWithKeys, ToggleHeightModifier.identity, ToggleHeightModifier, value);
17740    return this;
17741  }
17742  responseRegion(value) {
17743    modifierWithKey(this._modifiersWithKeys, ToggleResponseRegionModifier.identity, ToggleResponseRegionModifier, value);
17744    return this;
17745  }
17746  padding(value) {
17747    modifierWithKey(this._modifiersWithKeys, TogglePaddingModifier.identity, TogglePaddingModifier, value);
17748    return this;
17749  }
17750  backgroundColor(value) {
17751    modifierWithKey(this._modifiersWithKeys, ToggleBackgroundColorModifier.identity, ToggleBackgroundColorModifier, value);
17752    return this;
17753  }
17754  hoverEffect(value) {
17755    modifierWithKey(this._modifiersWithKeys, ToggleHoverEffectModifier.identity, ToggleHoverEffectModifier, value);
17756    return this;
17757  }
17758  switchStyle(value) {
17759    modifierWithKey(this._modifiersWithKeys, ToggleSwitchStyleModifier.identity, ToggleSwitchStyleModifier, value);
17760    return this;
17761  }
17762  contentModifier(value) {
17763    modifierWithKey(this._modifiersWithKeys, ToggleContentModifier.identity, ToggleContentModifier, value);
17764    return this;
17765  }
17766  setContentModifier(modifier) {
17767    if (modifier === undefined || modifier === null) {
17768      getUINativeModule().toggle.setContentModifierBuilder(this.nativePtr, false);
17769      return;
17770    }
17771    this.needRebuild = false;
17772    if (this.builder !== modifier.applyContent()) {
17773      this.needRebuild = true;
17774    }
17775    this.builder = modifier.applyContent();
17776    this.modifier = modifier;
17777    getUINativeModule().toggle.setContentModifierBuilder(this.nativePtr, this);
17778  }
17779  makeContentModifierNode(context, toggleConfiguration) {
17780    toggleConfiguration.contentModifier = this.modifier;
17781    if (isUndefined(this.toggleNode) || this.needRebuild) {
17782      const xNode = globalThis.requireNapi('arkui.node');
17783      this.toggleNode = new xNode.BuilderNode(context);
17784      this.toggleNode.build(this.builder, toggleConfiguration);
17785      this.needRebuild = false;
17786    } else {
17787      this.toggleNode.update(toggleConfiguration);
17788    }
17789    return this.toggleNode.getFrameNode();
17790  }
17791}
17792class ToggleSelectedColorModifier extends ModifierWithKey {
17793  constructor(value) {
17794    super(value);
17795  }
17796  applyPeer(node, reset) {
17797    if (reset) {
17798      getUINativeModule().toggle.resetSelectedColor(node);
17799    }
17800    else {
17801      getUINativeModule().toggle.setSelectedColor(node, this.value);
17802    }
17803  }
17804  checkObjectDiff() {
17805    return !isBaseOrResourceEqual(this.stageValue, this.value);
17806  }
17807}
17808ToggleSelectedColorModifier.identity = Symbol('toggleSelectedColor');
17809class ToggleSwitchPointColorModifier extends ModifierWithKey {
17810  constructor(value) {
17811    super(value);
17812  }
17813  applyPeer(node, reset) {
17814    if (reset) {
17815      getUINativeModule().toggle.resetSwitchPointColor(node);
17816    }
17817    else {
17818      getUINativeModule().toggle.setSwitchPointColor(node, this.value);
17819    }
17820  }
17821  checkObjectDiff() {
17822    return !isBaseOrResourceEqual(this.stageValue, this.value);
17823  }
17824}
17825ToggleSwitchPointColorModifier.identity = Symbol('toggleSwitchPointColor');
17826class ToggleHeightModifier extends ModifierWithKey {
17827  constructor(value) {
17828    super(value);
17829  }
17830  applyPeer(node, reset) {
17831    if (reset) {
17832      getUINativeModule().toggle.resetHeight(node);
17833    }
17834    else {
17835      getUINativeModule().toggle.setHeight(node, this.value);
17836    }
17837  }
17838  checkObjectDiff() {
17839    return !isBaseOrResourceEqual(this.stageValue, this.value);
17840  }
17841}
17842ToggleHeightModifier.identity = Symbol('toggleHeight');
17843class ToggleResponseRegionModifier extends ModifierWithKey {
17844  constructor(value) {
17845    super(value);
17846  }
17847  applyPeer(node, reset) {
17848    let _a, _b, _c, _d, _e, _f, _g, _h;
17849    if (reset) {
17850      getUINativeModule().toggle.resetResponseRegion(node);
17851    }
17852    else {
17853      let responseRegion = [];
17854      if (Array.isArray(this.value)) {
17855        for (let i = 0; i < this.value.length; i++) {
17856          responseRegion.push((_a = this.value[i].x) !== null && _a !== void 0 ? _a : 'PLACEHOLDER');
17857          responseRegion.push((_b = this.value[i].y) !== null && _b !== void 0 ? _b : 'PLACEHOLDER');
17858          responseRegion.push((_c = this.value[i].width) !== null && _c !== void 0 ? _c : 'PLACEHOLDER');
17859          responseRegion.push((_d = this.value[i].height) !== null && _d !== void 0 ? _d : 'PLACEHOLDER');
17860        }
17861      }
17862      else {
17863        responseRegion.push((_e = this.value.x) !== null && _e !== void 0 ? _e : 'PLACEHOLDER');
17864        responseRegion.push((_f = this.value.y) !== null && _f !== void 0 ? _f : 'PLACEHOLDER');
17865        responseRegion.push((_g = this.value.width) !== null && _g !== void 0 ? _g : 'PLACEHOLDER');
17866        responseRegion.push((_h = this.value.height) !== null && _h !== void 0 ? _h : 'PLACEHOLDER');
17867      }
17868      getUINativeModule().toggle.setResponseRegion(node, responseRegion, responseRegion.length);
17869    }
17870  }
17871  checkObjectDiff() {
17872    if (Array.isArray(this.stageValue) && Array.isArray(this.value)) {
17873      if (this.value.length !== this.stageValue.length) {
17874        return true;
17875      }
17876      else {
17877        for (let i = 0; i < this.value.length; i++) {
17878          if (!(isBaseOrResourceEqual(this.stageValue[i].x, this.value[i].x) &&
17879            isBaseOrResourceEqual(this.stageValue[i].y, this.value[i].y) &&
17880            isBaseOrResourceEqual(this.stageValue[i].width, this.value[i].width) &&
17881            isBaseOrResourceEqual(this.stageValue[i].height, this.value[i].height))) {
17882            return true;
17883          }
17884        }
17885        return false;
17886      }
17887    }
17888    else if (typeof this.stageValue === 'object' && typeof this.value === 'object') {
17889      return !(this.stageValue.x === this.value.x &&
17890        this.stageValue.y === this.value.y &&
17891        this.stageValue.height === this.value.height &&
17892        this.stageValue.width === this.value.width);
17893    }
17894    else {
17895      return true;
17896    }
17897  }
17898}
17899ToggleResponseRegionModifier.identity = Symbol('toggleResponseRegion');
17900class TogglePaddingModifier extends ModifierWithKey {
17901  constructor(value) {
17902    super(value);
17903  }
17904  applyPeer(node, reset) {
17905    if (reset) {
17906      getUINativeModule().toggle.resetPadding(node);
17907    }
17908    else {
17909      let top = undefined;
17910      let right = undefined;
17911      let bottom = undefined;
17912      let left = undefined;
17913      if (isLengthType(this.value) || isResource(this.value)) {
17914        top = this.value;
17915        right = this.value;
17916        bottom = this.value;
17917        left = this.value;
17918      }
17919      else if (typeof this.value === 'object') {
17920        top = this.value.top;
17921        right = this.value.right;
17922        bottom = this.value.bottom;
17923        left = this.value.left;
17924      }
17925      getUINativeModule().toggle.setPadding(node, top, right, bottom, left);
17926    }
17927  }
17928  checkObjectDiff() {
17929    if (isResource(this.stageValue) && isResource(this.value)) {
17930      return !isResourceEqual(this.stageValue, this.value);
17931    }
17932    else if (!isResource(this.stageValue) && !isResource(this.value)) {
17933      if (typeof this.stageValue === 'object' && typeof this.value === 'object') {
17934        return !(this.stageValue.left === this.value.left &&
17935          this.stageValue.right === this.value.right &&
17936          this.stageValue.top === this.value.top &&
17937          this.stageValue.bottom === this.value.bottom);
17938      }
17939      else {
17940        return !(this.stageValue === this.value);
17941      }
17942    }
17943    return true;
17944  }
17945}
17946TogglePaddingModifier.identity = Symbol('togglePadding');
17947class ToggleBackgroundColorModifier extends ModifierWithKey {
17948  constructor(value) {
17949    super(value);
17950  }
17951  applyPeer(node, reset) {
17952    if (reset) {
17953      getUINativeModule().toggle.resetBackgroundColor(node);
17954    }
17955    else {
17956      getUINativeModule().toggle.setBackgroundColor(node, this.value);
17957    }
17958  }
17959  checkObjectDiff() {
17960    return !isBaseOrResourceEqual(this.stageValue, this.value);
17961  }
17962}
17963ToggleBackgroundColorModifier.identity = Symbol('toggleBackgroundColor');
17964class ToggleHoverEffectModifier extends ModifierWithKey {
17965  constructor(value) {
17966    super(value);
17967  }
17968  applyPeer(node, reset) {
17969    if (reset) {
17970      getUINativeModule().toggle.resetHoverEffect(node);
17971    }
17972    else {
17973      getUINativeModule().toggle.setHoverEffect(node, this.value);
17974    }
17975  }
17976}
17977ToggleHoverEffectModifier.identity = Symbol('toggleHoverEffect');
17978class ToggleSwitchStyleModifier extends ModifierWithKey {
17979    constructor(value) {
17980        super(value);
17981    }
17982    applyPeer(node, reset) {
17983        if (reset) {
17984            getUINativeModule().toggle.resetSwitchStyle(node);
17985        }
17986        else {
17987            getUINativeModule().toggle.setSwitchStyle(node, this.value.pointRadius, this.value.unselectedColor, this.value.pointColor, this.value.trackBorderRadius);
17988        }
17989    }
17990    checkObjectDiff() {
17991        if (!isResource(this.stageValue) && !isResource(this.value)) {
17992            return !(this.stageValue.pointRadius === this.value.pointRadius &&
17993                this.stageValue.unselectedColor === this.value.unselectedColor &&
17994                this.stageValue.pointColor === this.value.pointColor &&
17995                this.stageValue.trackBorderRadius === this.value.trackBorderRadius);
17996        }
17997        else if (isResource(this.stageValue) && isResource(this.value)){
17998          return !(isResourceEqual(this.stageValue.pointRadius, this.value.pointRadius) &&
17999          isResourceEqual(this.stageValue.unselectedColor, this.value.unselectedColor) &&
18000          isResourceEqual(this.stageValue.pointColor, this.value.pointColor) &&
18001          isResourceEqual(this.stageValue.trackBorderRadius, this.value.trackBorderRadius));
18002        }
18003        else {
18004            return true;
18005        }
18006    }
18007}
18008ToggleSwitchStyleModifier.identity = Symbol('toggleSwitchStyle');
18009class ToggleContentModifier extends ModifierWithKey {
18010  constructor(value) {
18011    super(value);
18012  }
18013  applyPeer(node, reset, component) {
18014    let toggleComponent = component;
18015    toggleComponent.setNodePtr(node);
18016    toggleComponent.setContentModifier(this.value);
18017  }
18018}
18019ToggleContentModifier.identity = Symbol('toggleContentModifier');
18020// @ts-ignore
18021if (globalThis.Toggle !== undefined) {
18022  globalThis.Toggle.attributeModifier = function (modifier) {
18023    attributeModifierFunc.call(this, modifier, (nativePtr) => {
18024      return new ArkToggleComponent(nativePtr);
18025    }, (nativePtr, classType, modifierJS) => {
18026      return new modifierJS.ToggleModifier(nativePtr, classType);
18027    });
18028  };
18029  globalThis.Toggle.contentModifier = function (modifier) {
18030    const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
18031    let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
18032    let component = this.createOrGetNode(elmtId, () => {
18033      return new ArkToggleComponent(nativeNode);
18034    });
18035    component.setNodePtr(nativeNode);
18036    component.setContentModifier(modifier);
18037  };
18038}
18039
18040/// <reference path='./import.ts' />
18041class ArkSelectComponent extends ArkComponent {
18042  constructor(nativePtr, classType) {
18043    super(nativePtr, classType);
18044  }
18045  optionWidth(value) {
18046    modifierWithKey(this._modifiersWithKeys, SelectOptionWidthModifier.identity, SelectOptionWidthModifier, value);
18047    return this;
18048  }
18049  optionHeight(value) {
18050    modifierWithKey(this._modifiersWithKeys, SelectOptionHeightModifier.identity, SelectOptionHeightModifier, value);
18051    return this;
18052  }
18053  width(value) {
18054    modifierWithKey(this._modifiersWithKeys, SelectWidthModifier.identity, SelectWidthModifier, value);
18055    return this;
18056  }
18057  height(value) {
18058    modifierWithKey(this._modifiersWithKeys, SelectHeightModifier.identity, SelectHeightModifier, value);
18059    return this;
18060  }
18061  size(value) {
18062    modifierWithKey(this._modifiersWithKeys, SelectSizeModifier.identity, SelectSizeModifier, value);
18063    return this;
18064  }
18065  selected(value) {
18066    modifierWithKey(this._modifiersWithKeys, SelectedModifier.identity, SelectedModifier, value);
18067    return this;
18068  }
18069  value(value) {
18070    modifierWithKey(this._modifiersWithKeys, ValueModifier.identity, ValueModifier, value);
18071    return this;
18072  }
18073  font(value) {
18074    modifierWithKey(this._modifiersWithKeys, FontModifier.identity, FontModifier, value);
18075    return this;
18076  }
18077  fontColor(value) {
18078    modifierWithKey(this._modifiersWithKeys, SelectFontColorModifier.identity, SelectFontColorModifier, value);
18079    return this;
18080  }
18081  selectedOptionBgColor(value) {
18082    modifierWithKey(this._modifiersWithKeys, SelectedOptionBgColorModifier.identity, SelectedOptionBgColorModifier, value);
18083    return this;
18084  }
18085  selectedOptionFont(value) {
18086    modifierWithKey(this._modifiersWithKeys, SelectedOptionFontModifier.identity, SelectedOptionFontModifier, value);
18087    return this;
18088  }
18089  selectedOptionFontColor(value) {
18090    modifierWithKey(this._modifiersWithKeys, SelectedOptionFontColorModifier.identity, SelectedOptionFontColorModifier, value);
18091    return this;
18092  }
18093  optionBgColor(value) {
18094    modifierWithKey(this._modifiersWithKeys, OptionBgColorModifier.identity, OptionBgColorModifier, value);
18095    return this;
18096  }
18097  optionFont(value) {
18098    modifierWithKey(this._modifiersWithKeys, OptionFontModifier.identity, OptionFontModifier, value);
18099    return this;
18100  }
18101  optionFontColor(value) {
18102    modifierWithKey(this._modifiersWithKeys, OptionFontColorModifier.identity, OptionFontColorModifier, value);
18103    return this;
18104  }
18105  onSelect(callback) {
18106    throw new Error('Method not implemented.');
18107  }
18108  space(value) {
18109    modifierWithKey(this._modifiersWithKeys, SpaceModifier.identity, SpaceModifier, value);
18110    return this;
18111  }
18112  arrowPosition(value) {
18113    modifierWithKey(this._modifiersWithKeys, ArrowPositionModifier.identity, ArrowPositionModifier, value);
18114    return this;
18115  }
18116  menuAlign(alignType, offset) {
18117    let menuAlign = new ArkMenuAlignType(alignType, offset);
18118    modifierWithKey(this._modifiersWithKeys, MenuAlignModifier.identity, MenuAlignModifier, menuAlign);
18119    return this;
18120  }
18121  menuBackgroundColor(value) {
18122    modifierWithKey(
18123      this._modifiersWithKeys, MenuBackgroundColorModifier.identity, MenuBackgroundColorModifier, value);
18124    return this;
18125  }
18126  menuBackgroundBlurStyle(value) {
18127    modifierWithKey(
18128      this._modifiersWithKeys, MenuBackgroundBlurStyleModifier.identity, MenuBackgroundBlurStyleModifier, value);
18129    return this;
18130  }
18131  controlSize(controlSize) {
18132    modifierWithKey(this._modifiersWithKeys, ControlSizeModifier.identity, ControlSizeModifier, controlSize);
18133    return this;
18134  }
18135  setContentModifier(modifier) {
18136    if (modifier === undefined || modifier === null) {
18137      getUINativeModule().select.setContentModifierBuilder(this.nativePtr, false);
18138      return;
18139    }
18140    this.builder = modifier.applyContent();
18141    this.modifier = modifier;
18142    getUINativeModule().select.setContentModifierBuilder(this.nativePtr, this);
18143  }
18144  makeContentModifierNode(context, menuItemConfiguration) {
18145    menuItemConfiguration.contentModifier = this.modifier;
18146    const index = menuItemConfiguration.index;
18147    const xNode = globalThis.requireNapi('arkui.node');
18148    this.menuItemNodes = new xNode.BuilderNode(context);
18149    this.menuItemNodes.build(this.builder, menuItemConfiguration);
18150    return this.menuItemNodes.getFrameNode();
18151  }
18152  divider(value) {
18153    modifierWithKey(this._modifiersWithKeys, SelectDividerModifier.identity, SelectDividerModifier, value);
18154    return this;
18155  }
18156}
18157class MenuBackgroundColorModifier extends ModifierWithKey {
18158  constructor(value) {
18159    super(value);
18160  }
18161  applyPeer(node, reset) {
18162    if (reset) {
18163      getUINativeModule().select.resetMenuBackgroundColor(node);
18164    }
18165    else {
18166      getUINativeModule().select.setMenuBackgroundColor(node, this.value);
18167    }
18168  }
18169  checkObjectDiff() {
18170    return !isBaseOrResourceEqual(this.stageValue, this.value);
18171  }
18172}
18173MenuBackgroundColorModifier.identity = Symbol('selectMenuBackgroundColor');
18174class MenuBackgroundBlurStyleModifier extends ModifierWithKey {
18175  constructor(value) {
18176    super(value);
18177  }
18178  applyPeer(node, reset) {
18179    if (reset) {
18180      getUINativeModule().select.resetMenuBackgroundBlurStyle(node);
18181    }
18182    else {
18183      getUINativeModule().select.setMenuBackgroundBlurStyle(node, this.value);
18184    }
18185  }
18186  checkObjectDiff() {
18187    return !isBaseOrResourceEqual(this.stageValue, this.value);
18188  }
18189}
18190MenuBackgroundBlurStyleModifier.identity = Symbol('selectMenuBackgroundBlurStyle');
18191class FontModifier extends ModifierWithKey {
18192  constructor(value) {
18193    super(value);
18194  }
18195  applyPeer(node, reset) {
18196    if (reset) {
18197      getUINativeModule().select.resetFont(node);
18198    }
18199    else {
18200      getUINativeModule().select.setFont(node, this.value.size, this.value.weight, this.value.family, this.value.style);
18201    }
18202  }
18203  checkObjectDiff() {
18204    let sizeEQ = isBaseOrResourceEqual(this.stageValue.size, this.value.size);
18205    let weightEQ = this.stageValue.weight === this.value.weight;
18206    let familyEQ = isBaseOrResourceEqual(this.stageValue.family, this.value.family);
18207    let styleEQ = this.stageValue.style === this.value.style;
18208    return !sizeEQ || !weightEQ || !familyEQ || !styleEQ;
18209  }
18210}
18211FontModifier.identity = Symbol('selectFont');
18212class OptionFontModifier extends ModifierWithKey {
18213  constructor(value) {
18214    super(value);
18215  }
18216  applyPeer(node, reset) {
18217    if (reset) {
18218      getUINativeModule().select.resetOptionFont(node);
18219    }
18220    else {
18221      getUINativeModule().select.setOptionFont(node, this.value.size, this.value.weight, this.value.family, this.value.style);
18222    }
18223  }
18224  checkObjectDiff() {
18225    let sizeEQ = isBaseOrResourceEqual(this.stageValue.size, this.value.size);
18226    let weightEQ = this.stageValue.weight === this.value.weight;
18227    let familyEQ = isBaseOrResourceEqual(this.stageValue.family, this.value.family);
18228    let styleEQ = this.stageValue.style === this.value.style;
18229    return !sizeEQ || !weightEQ || !familyEQ || !styleEQ;
18230  }
18231}
18232OptionFontModifier.identity = Symbol('selectOptionFont');
18233class SelectedOptionFontModifier extends ModifierWithKey {
18234  constructor(value) {
18235    super(value);
18236  }
18237  applyPeer(node, reset) {
18238    if (reset) {
18239      getUINativeModule().select.resetSelectedOptionFont(node);
18240    }
18241    else {
18242      getUINativeModule().select.setSelectedOptionFont(node, this.value.size, this.value.weight, this.value.family, this.value.style);
18243    }
18244  }
18245  checkObjectDiff() {
18246    let sizeEQ = isBaseOrResourceEqual(this.stageValue.size, this.value.size);
18247    let weightEQ = this.stageValue.weight === this.value.weight;
18248    let familyEQ = isBaseOrResourceEqual(this.stageValue.family, this.value.family);
18249    let styleEQ = this.stageValue.style === this.value.style;
18250    return !sizeEQ || !weightEQ || !familyEQ || !styleEQ;
18251  }
18252}
18253SelectedOptionFontModifier.identity = Symbol('selectSelectedOptionFont');
18254class MenuAlignModifier extends ModifierWithKey {
18255  constructor(value) {
18256    super(value);
18257  }
18258  applyPeer(node, reset) {
18259    if (reset) {
18260      getUINativeModule().select.resetMenuAlign(node);
18261    }
18262    else {
18263      getUINativeModule().select.setMenuAlign(node, this.value.alignType, this.value.dx, this.value.dy);
18264    }
18265  }
18266  checkObjectDiff() {
18267    let alignTypeEQ = this.stageValue.alignType === this.value.alignType;
18268    let dxEQ = isBaseOrResourceEqual(this.stageValue, this.value);
18269    let dyEQ = isBaseOrResourceEqual(this.stageValue, this.value);
18270    return !alignTypeEQ || !dxEQ || !dyEQ;
18271  }
18272  isEqual(stageValue, value) {
18273    if ((!isUndefined(stageValue) && isResource(stageValue)) &&
18274      (!isUndefined(value) && isResource(value))) {
18275      return !isResourceEqual(stageValue, value);
18276    }
18277    else {
18278      return stageValue !== value;
18279    }
18280  }
18281}
18282MenuAlignModifier.identity = Symbol('selectMenuAlign');
18283class SelectDividerModifier extends ModifierWithKey {
18284  constructor(value) {
18285      super(value);
18286  }
18287  applyPeer(node, reset) {
18288      var _a, _b, _c, _d;
18289      if (reset) {
18290          getUINativeModule().select.resetDivider(node, this.value);
18291      }
18292      else {
18293          getUINativeModule().select.setDivider(node, (_a = this.value) === null || _a === void 0 ? void 0 : _a.strokeWidth,
18294            (_b = this.value) === null || _b === void 0 ? void 0 : _b.color, (_c = this.value) === null || _c === void 0 ? void 0 : _c.startMargin,
18295            (_d = this.value) === null || _d === void 0 ? void 0 : _d.endMargin);
18296      }
18297  }
18298  checkObjectDiff() {
18299      var _a, _b, _c, _d, _e, _f, _g, _h;
18300      return !(((_a = this.stageValue) === null || _a === void 0 ? void 0 : _a.strokeWidth) === ((_b = this.value) === null || _b === void 0 ? void 0 : _b.strokeWidth) &&
18301          ((_c = this.stageValue) === null || _c === void 0 ? void 0 : _c.color) === ((_d = this.value) === null || _d === void 0 ? void 0 : _d.color) &&
18302          ((_e = this.stageValue) === null || _e === void 0 ? void 0 : _e.startMargin) === ((_f = this.value) === null || _f === void 0 ? void 0 : _f.startMargin) &&
18303          ((_g = this.stageValue) === null || _g === void 0 ? void 0 : _g.endMargin) === ((_h = this.value) === null || _h === void 0 ? void 0 : _h.endMargin));
18304  }
18305}
18306SelectDividerModifier.identity = Symbol('selectDivider');
18307class ControlSizeModifier extends ModifierWithKey {
18308    constructor(value) {
18309        super(value);
18310    }
18311    applyPeer(node, reset) {
18312        if (reset) {
18313            getUINativeModule().select.resetControlSize(node);
18314        }
18315        else {
18316            getUINativeModule().select.setControlSize(node, this.value);
18317        }
18318    }
18319    checkObjectDiff() {
18320        return this.stageValue !== this.value;
18321    }
18322}
18323ControlSizeModifier.identity = Symbol('controlSize');
18324class ArrowPositionModifier extends ModifierWithKey {
18325  constructor(value) {
18326    super(value);
18327  }
18328  applyPeer(node, reset) {
18329    if (reset) {
18330      getUINativeModule().select.resetArrowPosition(node);
18331    }
18332    else {
18333      getUINativeModule().select.setArrowPosition(node, this.value);
18334    }
18335  }
18336  checkObjectDiff() {
18337    return this.stageValue !== this.value;
18338  }
18339}
18340ArrowPositionModifier.identity = Symbol('selectArrowPosition');
18341class SpaceModifier extends ModifierWithKey {
18342  constructor(value) {
18343    super(value);
18344  }
18345  applyPeer(node, reset) {
18346    if (reset) {
18347      getUINativeModule().select.resetSpace(node);
18348    }
18349    else {
18350      getUINativeModule().select.setSpace(node, this.value);
18351    }
18352  }
18353  checkObjectDiff() {
18354    return !isBaseOrResourceEqual(this.stageValue, this.value);
18355  }
18356}
18357SpaceModifier.identity = Symbol('selectSpace');
18358class ValueModifier extends ModifierWithKey {
18359  constructor(value) {
18360    super(value);
18361  }
18362  applyPeer(node, reset) {
18363    if (reset) {
18364      getUINativeModule().select.resetValue(node);
18365    }
18366    else {
18367      getUINativeModule().select.setValue(node, this.value);
18368    }
18369  }
18370  checkObjectDiff() {
18371    return !isBaseOrResourceEqual(this.stageValue, this.value);
18372  }
18373}
18374ValueModifier.identity = Symbol('selectValue');
18375class SelectedModifier extends ModifierWithKey {
18376  constructor(value) {
18377    super(value);
18378  }
18379  applyPeer(node, reset) {
18380    if (reset) {
18381      getUINativeModule().select.resetSelected(node);
18382    }
18383    else {
18384      getUINativeModule().select.setSelected(node, this.value);
18385    }
18386  }
18387  checkObjectDiff() {
18388    return !isBaseOrResourceEqual(this.stageValue, this.value);
18389  }
18390}
18391SelectedModifier.identity = Symbol('selectSelected');
18392class SelectFontColorModifier extends ModifierWithKey {
18393  constructor(value) {
18394    super(value);
18395  }
18396  applyPeer(node, reset) {
18397    if (reset) {
18398      getUINativeModule().select.resetFontColor(node);
18399    }
18400    else {
18401      getUINativeModule().select.setFontColor(node, this.value);
18402    }
18403  }
18404  checkObjectDiff() {
18405    return !isBaseOrResourceEqual(this.stageValue, this.value);
18406  }
18407}
18408SelectFontColorModifier.identity = Symbol('selectFontColor');
18409class SelectedOptionBgColorModifier extends ModifierWithKey {
18410  constructor(value) {
18411    super(value);
18412  }
18413  applyPeer(node, reset) {
18414    if (reset) {
18415      getUINativeModule().select.resetSelectedOptionBgColor(node);
18416    }
18417    else {
18418      getUINativeModule().select.setSelectedOptionBgColor(node, this.value);
18419    }
18420  }
18421  checkObjectDiff() {
18422    return !isBaseOrResourceEqual(this.stageValue, this.value);
18423  }
18424}
18425SelectedOptionBgColorModifier.identity = Symbol('selectSelectedOptionBgColor');
18426class OptionBgColorModifier extends ModifierWithKey {
18427  constructor(value) {
18428    super(value);
18429  }
18430  applyPeer(node, reset) {
18431    if (reset) {
18432      getUINativeModule().select.resetOptionBgColor(node);
18433    }
18434    else {
18435      getUINativeModule().select.setOptionBgColor(node, this.value);
18436    }
18437  }
18438  checkObjectDiff() {
18439    return !isBaseOrResourceEqual(this.stageValue, this.value);
18440  }
18441}
18442OptionBgColorModifier.identity = Symbol('selectOptionBgColor');
18443class OptionFontColorModifier extends ModifierWithKey {
18444  constructor(value) {
18445    super(value);
18446  }
18447  applyPeer(node, reset) {
18448    if (reset) {
18449      getUINativeModule().select.resetOptionFontColor(node);
18450    }
18451    else {
18452      getUINativeModule().select.setOptionFontColor(node, this.value);
18453    }
18454  }
18455  checkObjectDiff() {
18456    return !isBaseOrResourceEqual(this.stageValue, this.value);
18457  }
18458}
18459OptionFontColorModifier.identity = Symbol('selectOptionFontColor');
18460class SelectedOptionFontColorModifier extends ModifierWithKey {
18461  constructor(value) {
18462    super(value);
18463  }
18464  applyPeer(node, reset) {
18465    if (reset) {
18466      getUINativeModule().select.resetSelectedOptionFontColor(node);
18467    }
18468    else {
18469      getUINativeModule().select.setSelectedOptionFontColor(node, this.value);
18470    }
18471  }
18472  checkObjectDiff() {
18473    return !isBaseOrResourceEqual(this.stageValue, this.value);
18474  }
18475}
18476SelectedOptionFontColorModifier.identity = Symbol('selectSelectedOptionFontColor');
18477class SelectOptionWidthModifier extends ModifierWithKey {
18478  constructor(value) {
18479    super(value);
18480  }
18481  applyPeer(node, reset) {
18482    if (reset) {
18483      getUINativeModule().select.resetOptionWidth(node);
18484    } else {
18485      getUINativeModule().select.setOptionWidth(node, this.value);
18486    }
18487  }
18488
18489  checkObjectDiff() {
18490    return !isBaseOrResourceEqual(this.stageValue, this.value);
18491  }
18492}
18493SelectOptionWidthModifier.identity = Symbol('selectOptionWidth');
18494class SelectOptionHeightModifier extends ModifierWithKey {
18495  constructor(value) {
18496    super(value);
18497  }
18498  applyPeer(node, reset) {
18499    if (reset) {
18500      getUINativeModule().select.resetOptionHeight(node);
18501    } else {
18502      getUINativeModule().select.setOptionHeight(node, this.value);
18503    }
18504  }
18505
18506  checkObjectDiff() {
18507    return !isBaseOrResourceEqual(this.stageValue, this.value);
18508  }
18509}
18510SelectOptionHeightModifier.identity = Symbol('selectOptionHeight');
18511class SelectWidthModifier extends ModifierWithKey {
18512  constructor(value) {
18513    super(value);
18514  }
18515  applyPeer(node, reset) {
18516    if (reset) {
18517      getUINativeModule().select.resetWidth(node);
18518    } else {
18519      getUINativeModule().select.setWidth(node, this.value);
18520    }
18521  }
18522
18523  checkObjectDiff() {
18524    return !isBaseOrResourceEqual(this.stageValue, this.value);
18525  }
18526}
18527SelectWidthModifier.identity = Symbol('selectWidth');
18528class SelectHeightModifier extends ModifierWithKey {
18529  constructor(value) {
18530    super(value);
18531  }
18532  applyPeer(node, reset) {
18533    if (reset) {
18534      getUINativeModule().select.resetHeight(node);
18535    } else {
18536      getUINativeModule().select.setHeight(node, this.value);
18537    }
18538  }
18539
18540  checkObjectDiff() {
18541    return !isBaseOrResourceEqual(this.stageValue, this.value);
18542  }
18543}
18544SelectHeightModifier.identity = Symbol('selectHeight');
18545class SelectSizeModifier extends ModifierWithKey {
18546  constructor(value) {
18547    super(value);
18548  }
18549  applyPeer(node, reset) {
18550    if (reset) {
18551      getUINativeModule().select.resetSize(node);
18552    } else {
18553      getUINativeModule().select.setSize(node, this.value.width, this.value.height);
18554    }
18555  }
18556
18557  checkObjectDiff() {
18558    return !isBaseOrResourceEqual(this.stageValue.width, this.value.width) ||
18559      !isBaseOrResourceEqual(this.stageValue.height, this.value.height);
18560  }
18561}
18562SelectSizeModifier.identity = Symbol('selectSize');
18563// @ts-ignore
18564if (globalThis.Select !== undefined) {
18565  globalThis.Select.attributeModifier = function (modifier) {
18566    attributeModifierFunc.call(this, modifier, (nativePtr) => {
18567      return new ArkSelectComponent(nativePtr);
18568    }, (nativePtr, classType, modifierJS) => {
18569      return new modifierJS.SelectModifier(nativePtr, classType);
18570    });
18571  };
18572
18573  globalThis.Select.menuItemContentModifier = function (modifier) {
18574    const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
18575    let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
18576    let component = this.createOrGetNode(elmtId, () => {
18577      return new ArkSelectComponent(nativeNode);
18578    });
18579    component.setContentModifier(modifier);
18580  };
18581}
18582
18583/// <reference path='./import.ts' />
18584class ArkRadioComponent extends ArkComponent {
18585  constructor(nativePtr, classType) {
18586    super(nativePtr, classType);
18587  }
18588  checked(value) {
18589    modifierWithKey(this._modifiersWithKeys, RadioCheckedModifier.identity, RadioCheckedModifier, value);
18590    return this;
18591  }
18592  onChange(callback) {
18593    throw new Error('Method not implemented.');
18594  }
18595  radioStyle(value) {
18596    modifierWithKey(this._modifiersWithKeys, RadioStyleModifier.identity, RadioStyleModifier, value);
18597    return this;
18598  }
18599  width(value) {
18600    modifierWithKey(this._modifiersWithKeys, RadioWidthModifier.identity, RadioWidthModifier, value);
18601    return this;
18602  }
18603  height(value) {
18604    modifierWithKey(this._modifiersWithKeys, RadioHeightModifier.identity, RadioHeightModifier, value);
18605    return this;
18606  }
18607  size(value) {
18608    modifierWithKey(this._modifiersWithKeys, RadioSizeModifier.identity, RadioSizeModifier, value);
18609    return this;
18610  }
18611  hoverEffect(value) {
18612    modifierWithKey(this._modifiersWithKeys, RadioHoverEffectModifier.identity, RadioHoverEffectModifier, value);
18613    return this;
18614  }
18615  padding(value) {
18616    modifierWithKey(this._modifiersWithKeys, RadioPaddingModifier.identity, RadioPaddingModifier, value);
18617    return this;
18618  }
18619  responseRegion(value) {
18620    modifierWithKey(this._modifiersWithKeys, RadioResponseRegionModifier.identity, RadioResponseRegionModifier, value);
18621    return this;
18622  }
18623  contentModifier(value) {
18624    modifierWithKey(this._modifiersWithKeys, RadioContentModifier.identity, RadioContentModifier, value);
18625    return this;
18626  }
18627  setContentModifier(modifier) {
18628    if (modifier === undefined || modifier === null) {
18629      getUINativeModule().radio.setContentModifierBuilder(this.nativePtr, false);
18630      return;
18631    }
18632    this.needRebuild = false;
18633    if (this.builder !== modifier.applyContent()) {
18634      this.needRebuild = true;
18635    }
18636    this.builder = modifier.applyContent();
18637    this.modifier = modifier;
18638    getUINativeModule().radio.setContentModifierBuilder(this.nativePtr, this);
18639  }
18640  makeContentModifierNode(context, radioConfiguration) {
18641    radioConfiguration.contentModifier = this.modifier;
18642    if (isUndefined(this.radioNode) || this.needRebuild) {
18643      const xNode = globalThis.requireNapi('arkui.node');
18644      this.radioNode = new xNode.BuilderNode(context);
18645      this.radioNode.build(this.builder, radioConfiguration);
18646      this.needRebuild = false;
18647    } else {
18648      this.radioNode.update(radioConfiguration);
18649    }
18650    return this.radioNode.getFrameNode();
18651  }
18652}
18653class RadioCheckedModifier extends ModifierWithKey {
18654  constructor(value) {
18655    super(value);
18656  }
18657  applyPeer(node, reset) {
18658    if (reset) {
18659      getUINativeModule().radio.resetRadioChecked(node);
18660    }
18661    else {
18662      getUINativeModule().radio.setRadioChecked(node, this.value);
18663    }
18664  }
18665}
18666RadioCheckedModifier.identity = Symbol('radioChecked');
18667class RadioStyleModifier extends ModifierWithKey {
18668  constructor(value) {
18669    super(value);
18670  }
18671  applyPeer(node, reset) {
18672    if (reset) {
18673      getUINativeModule().radio.resetRadioStyle(node);
18674    }
18675    else {
18676      getUINativeModule().radio.setRadioStyle(node, this.value.checkedBackgroundColor, this.value.uncheckedBorderColor, this.value.indicatorColor);
18677    }
18678  }
18679  checkObjectDiff() {
18680    let checkedBackgroundColorEQ = isBaseOrResourceEqual(this.stageValue.checkedBackgroundColor, this.value.checkedBackgroundColor);
18681    let uncheckedBorderColorEQ = isBaseOrResourceEqual(this.stageValue.uncheckedBorderColor, this.value.uncheckedBorderColor);
18682    let indicatorColorEQ = isBaseOrResourceEqual(this.stageValue.indicatorColor, this.value.indicatorColor);
18683    return !checkedBackgroundColorEQ ||
18684      !uncheckedBorderColorEQ ||
18685      !indicatorColorEQ;
18686  }
18687}
18688RadioStyleModifier.identity = Symbol('radioStyle');
18689class RadioWidthModifier extends ModifierWithKey {
18690  constructor(value) {
18691    super(value);
18692  }
18693  applyPeer(node, reset) {
18694    if (reset) {
18695      getUINativeModule().radio.resetRadioWidth(node);
18696    }
18697    else {
18698      getUINativeModule().radio.setRadioWidth(node, this.value);
18699    }
18700  }
18701  checkObjectDiff() {
18702    return !isBaseOrResourceEqual(this.stageValue, this.value);
18703  }
18704}
18705RadioWidthModifier.identity = Symbol('radioWidth');
18706class RadioHeightModifier extends ModifierWithKey {
18707  constructor(value) {
18708    super(value);
18709  }
18710  applyPeer(node, reset) {
18711    if (reset) {
18712      getUINativeModule().radio.resetRadioHeight(node);
18713    }
18714    else {
18715      getUINativeModule().radio.setRadioHeight(node, this.value);
18716    }
18717  }
18718  checkObjectDiff() {
18719    return !isBaseOrResourceEqual(this.stageValue, this.value);
18720  }
18721}
18722RadioHeightModifier.identity = Symbol('radioHeight');
18723class RadioSizeModifier extends ModifierWithKey {
18724  constructor(value) {
18725    super(value);
18726  }
18727  applyPeer(node, reset) {
18728    if (reset) {
18729      getUINativeModule().radio.resetRadioSize(node);
18730    }
18731    else {
18732      getUINativeModule().radio.setRadioSize(node, this.value.width, this.value.height);
18733    }
18734  }
18735  checkObjectDiff() {
18736    return !isBaseOrResourceEqual(this.stageValue.width, this.value.width) ||
18737      !isBaseOrResourceEqual(this.stageValue.height, this.value.height);
18738  }
18739}
18740RadioSizeModifier.identity = Symbol('radioSize');
18741class RadioHoverEffectModifier extends ModifierWithKey {
18742  constructor(value) {
18743    super(value);
18744  }
18745  applyPeer(node, reset) {
18746    if (reset) {
18747      getUINativeModule().radio.resetRadioHoverEffect(node);
18748    }
18749    else {
18750      getUINativeModule().radio.setRadioHoverEffect(node, this.value);
18751    }
18752  }
18753  checkObjectDiff() {
18754    return !isBaseOrResourceEqual(this.stageValue, this.value);
18755  }
18756}
18757RadioHoverEffectModifier.identity = Symbol('radioHoverEffect');
18758class RadioPaddingModifier extends ModifierWithKey {
18759  constructor(value) {
18760    super(value);
18761  }
18762  applyPeer(node, reset) {
18763    if (reset) {
18764      getUINativeModule().radio.resetRadioPadding(node);
18765    }
18766    else {
18767      let paddingTop;
18768      let paddingRight;
18769      let paddingBottom;
18770      let paddingLeft;
18771      if (this.value !== null && this.value !== undefined) {
18772        if (isLengthType(this.value) || isResource(this.value)) {
18773          paddingTop = this.value;
18774          paddingRight = this.value;
18775          paddingBottom = this.value;
18776          paddingLeft = this.value;
18777        }
18778        else {
18779          paddingTop = this.value.top;
18780          paddingRight = this.value.right;
18781          paddingBottom = this.value.bottom;
18782          paddingLeft = this.value.left;
18783        }
18784      }
18785      getUINativeModule().radio.setRadioPadding(node, paddingTop, paddingRight, paddingBottom, paddingLeft);
18786    }
18787  }
18788  checkObjectDiff() {
18789    if (isResource(this.stageValue) && isResource(this.value)) {
18790      return !isResourceEqual(this.stageValue, this.value);
18791    } else if (!isResource(this.stageValue) && !isResource(this.value)) {
18792      return !(this.stageValue.left === this.value.left &&
18793        this.stageValue.right === this.value.right &&
18794        this.stageValue.top === this.value.top &&
18795        this.stageValue.bottom === this.value.bottom);
18796    } else {
18797      return true;
18798    }
18799  }
18800}
18801RadioPaddingModifier.identity = Symbol('radioPadding');
18802class RadioResponseRegionModifier extends ModifierWithKey {
18803  constructor(value) {
18804    super(value);
18805  }
18806  applyPeer(node, reset) {
18807    let _a, _b, _c, _d, _e, _f, _g, _h;
18808    if (reset) {
18809      getUINativeModule().radio.resetRadioResponseRegion(node);
18810    }
18811    else {
18812      let responseRegion = [];
18813      if (Array.isArray(this.value)) {
18814        for (let i = 0; i < this.value.length; i++) {
18815          responseRegion.push((_a = this.value[i].x) !== null && _a !== void 0 ? _a : 'PLACEHOLDER');
18816          responseRegion.push((_b = this.value[i].y) !== null && _b !== void 0 ? _b : 'PLACEHOLDER');
18817          responseRegion.push((_c = this.value[i].width) !== null && _c !== void 0 ? _c : 'PLACEHOLDER');
18818          responseRegion.push((_d = this.value[i].height) !== null && _d !== void 0 ? _d : 'PLACEHOLDER');
18819        }
18820      }
18821      else {
18822        responseRegion.push((_e = this.value.x) !== null && _e !== void 0 ? _e : 'PLACEHOLDER');
18823        responseRegion.push((_f = this.value.y) !== null && _f !== void 0 ? _f : 'PLACEHOLDER');
18824        responseRegion.push((_g = this.value.width) !== null && _g !== void 0 ? _g : 'PLACEHOLDER');
18825        responseRegion.push((_h = this.value.height) !== null && _h !== void 0 ? _h : 'PLACEHOLDER');
18826      }
18827      getUINativeModule().radio.setRadioResponseRegion(node, responseRegion, responseRegion.length);
18828    }
18829  }
18830  checkObjectDiff() {
18831    if (Array.isArray(this.value) && Array.isArray(this.stageValue)) {
18832      if (this.value.length !== this.stageValue.length) {
18833        return true;
18834      }
18835      else {
18836        for (let i = 0; i < this.value.length; i++) {
18837          if (!(isBaseOrResourceEqual(this.stageValue[i].x, this.value[i].x) &&
18838            isBaseOrResourceEqual(this.stageValue[i].y, this.value[i].y) &&
18839            isBaseOrResourceEqual(this.stageValue[i].width, this.value[i].width) &&
18840            isBaseOrResourceEqual(this.stageValue[i].height, this.value[i].height))) {
18841            return true;
18842          }
18843        }
18844        return false;
18845      }
18846    }
18847    else if (!Array.isArray(this.value) && !Array.isArray(this.stageValue)) {
18848      return (!(isBaseOrResourceEqual(this.stageValue.x, this.value.x) &&
18849        isBaseOrResourceEqual(this.stageValue.y, this.value.y) &&
18850        isBaseOrResourceEqual(this.stageValue.width, this.value.width) &&
18851        isBaseOrResourceEqual(this.stageValue.height, this.value.height)));
18852    }
18853    else {
18854      return true;
18855    }
18856  }
18857}
18858RadioResponseRegionModifier.identity = Symbol('radioResponseRegion');
18859class RadioContentModifier extends ModifierWithKey {
18860  constructor(value) {
18861    super(value);
18862  }
18863  applyPeer(node, reset, component) {
18864    let radioComponent = component;
18865    radioComponent.setContentModifier(this.value);
18866  }
18867}
18868RadioContentModifier.identity = Symbol('radioContentModifier');
18869// @ts-ignore
18870if (globalThis.Radio !== undefined) {
18871  globalThis.Radio.attributeModifier = function (modifier) {
18872    attributeModifierFunc.call(this, modifier, (nativePtr) => {
18873      return new ArkRadioComponent(nativePtr);
18874    }, (nativePtr, classType, modifierJS) => {
18875      return new modifierJS.RadioModifier(nativePtr, classType);
18876    });
18877  };
18878  globalThis.Radio.contentModifier = function (modifier) {
18879    const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
18880    let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
18881    let component = this.createOrGetNode(elmtId, () => {
18882      return new ArkRadioComponent(nativeNode);
18883    });
18884    component.setContentModifier(modifier);
18885  };
18886}
18887
18888/// <reference path='./import.ts' />
18889class ArkTimePickerComponent extends ArkComponent {
18890  constructor(nativePtr, classType) {
18891    super(nativePtr, classType);
18892  }
18893  loop(value) {
18894    modifierWithKey(this._modifiersWithKeys, TimepickerLoopModifier.identity, TimepickerLoopModifier, value);
18895    return this;
18896  }
18897  useMilitaryTime(value) {
18898    modifierWithKey(this._modifiersWithKeys, TimepickerUseMilitaryTimeModifier.identity, TimepickerUseMilitaryTimeModifier, value);
18899    return this;
18900  }
18901  disappearTextStyle(value) {
18902    modifierWithKey(this._modifiersWithKeys, TimepickerDisappearTextStyleModifier.identity, TimepickerDisappearTextStyleModifier, value);
18903    return this;
18904  }
18905  textStyle(value) {
18906    modifierWithKey(this._modifiersWithKeys, TimepickerTextStyleModifier.identity, TimepickerTextStyleModifier, value);
18907    return this;
18908  }
18909  selectedTextStyle(value) {
18910    modifierWithKey(this._modifiersWithKeys, TimepickerSelectedTextStyleModifier.identity, TimepickerSelectedTextStyleModifier, value);
18911    return this;
18912  }
18913  onChange(callback) {
18914    throw new Error('Method not implemented.');
18915  }
18916  dateTimeOptions(value) {
18917    modifierWithKey(this._modifiersWithKeys, TimepickerDateTimeOptionsModifier.identity, TimepickerDateTimeOptionsModifier, value);
18918    return this;
18919  }
18920}
18921class TimepickerTextStyleModifier extends ModifierWithKey {
18922  constructor(value) {
18923    super(value);
18924  }
18925  applyPeer(node, reset) {
18926    let _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
18927    if (reset) {
18928      getUINativeModule().timepicker.resetTextStyle(node);
18929    }
18930    else {
18931      getUINativeModule().timepicker.setTextStyle(node, (_b = (_a = this.value) === null ||
18932      _a === void 0 ? void 0 : _a.color) !== null && _b !== void 0 ? _b : undefined,
18933      (_e = (_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.font) === null ||
18934      _d === void 0 ? void 0 : _d.size) !== null && _e !== void 0 ? _e : undefined,
18935      (_h = (_g = (_f = this.value) === null || _f === void 0 ? void 0 : _f.font) === null ||
18936      _g === void 0 ? void 0 : _g.weight) !== null && _h !== void 0 ? _h : undefined,
18937      (_l = (_k = (_j = this.value) === null || _j === void 0 ? void 0 : _j.font) === null ||
18938      _k === void 0 ? void 0 : _k.family) !== null && _l !== void 0 ? _l : undefined,
18939      (_p = (_o = (_m = this.value) === null || _m === void 0 ? void 0 : _m.font) === null ||
18940      _o === void 0 ? void 0 : _o.style) !== null && _p !== void 0 ? _p : undefined);
18941    }
18942  }
18943  checkObjectDiff() {
18944    let _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
18945    if (!(((_b = (_a = this.stageValue) === null || _a === void 0 ? void 0 : _a.font) === null || _b === void 0 ? void 0 : _b.weight) ===
18946    ((_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.font) === null || _d === void 0 ? void 0 : _d.weight) &&
18947      ((_f = (_e = this.stageValue) === null || _e === void 0 ? void 0 : _e.font) === null || _f === void 0 ? void 0 : _f.style) ===
18948      ((_h = (_g = this.value) === null || _g === void 0 ? void 0 : _g.font) === null || _h === void 0 ? void 0 : _h.style))) {
18949      return true;
18950    }
18951    else {
18952      return !isBaseOrResourceEqual((_j = this.stageValue) === null || _j === void 0 ? void 0 : _j.color, (_k = this.value) === null ||
18953      _k === void 0 ? void 0 : _k.color) ||
18954        !isBaseOrResourceEqual((_m = (_l = this.stageValue) === null || _l === void 0 ? void 0 : _l.font) === null ||
18955        _m === void 0 ? void 0 : _m.size, (_p = (_o = this.value) === null || _o === void 0 ? void 0 : _o.font) === null ||
18956        _p === void 0 ? void 0 : _p.size) ||
18957        !isBaseOrResourceEqual((_r = (_q = this.stageValue) === null || _q === void 0 ? void 0 : _q.font) === null ||
18958        _r === void 0 ? void 0 : _r.family, (_t = (_s = this.value) === null || _s === void 0 ? void 0 : _s.font) === null ||
18959        _t === void 0 ? void 0 : _t.family);
18960    }
18961  }
18962}
18963TimepickerTextStyleModifier.identity = Symbol('textStyle');
18964class TimepickerSelectedTextStyleModifier extends ModifierWithKey {
18965  constructor(value) {
18966    super(value);
18967  }
18968  applyPeer(node, reset) {
18969    let _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
18970    if (reset) {
18971      getUINativeModule().timepicker.resetSelectedTextStyle(node);
18972    }
18973    else {
18974      getUINativeModule().timepicker.setSelectedTextStyle(node, (_b = (_a = this.value) === null ||
18975      _a === void 0 ? void 0 : _a.color) !== null && _b !== void 0 ? _b : undefined,
18976      (_e = (_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.font) === null ||
18977      _d === void 0 ? void 0 : _d.size) !== null && _e !== void 0 ? _e : undefined,
18978      (_h = (_g = (_f = this.value) === null || _f === void 0 ? void 0 : _f.font) === null ||
18979      _g === void 0 ? void 0 : _g.weight) !== null && _h !== void 0 ? _h : undefined,
18980      (_l = (_k = (_j = this.value) === null || _j === void 0 ? void 0 : _j.font) === null ||
18981      _k === void 0 ? void 0 : _k.family) !== null && _l !== void 0 ? _l : undefined,
18982      (_p = (_o = (_m = this.value) === null || _m === void 0 ? void 0 : _m.font) === null ||
18983      _o === void 0 ? void 0 : _o.style) !== null && _p !== void 0 ? _p : undefined);
18984    }
18985  }
18986  checkObjectDiff() {
18987    let _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
18988    if (!(((_b = (_a = this.stageValue) === null || _a === void 0 ? void 0 : _a.font) === null || _b === void 0 ? void 0 : _b.weight) ===
18989    ((_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.font) === null || _d === void 0 ? void 0 : _d.weight) &&
18990      ((_f = (_e = this.stageValue) === null || _e === void 0 ? void 0 : _e.font) === null || _f === void 0 ? void 0 : _f.style) ===
18991      ((_h = (_g = this.value) === null || _g === void 0 ? void 0 : _g.font) === null || _h === void 0 ? void 0 : _h.style))) {
18992      return true;
18993    }
18994    else {
18995      return !isBaseOrResourceEqual((_j = this.stageValue) === null || _j === void 0 ? void 0 : _j.color, (_k = this.value) === null || _k === void 0 ? void 0 : _k.color) ||
18996        !isBaseOrResourceEqual((_m = (_l = this.stageValue) === null || _l === void 0 ? void 0 : _l.font) === null || _m === void 0 ? void 0 : _m.size, (_p = (_o = this.value) === null || _o === void 0 ? void 0 : _o.font) === null || _p === void 0 ? void 0 : _p.size) ||
18997        !isBaseOrResourceEqual((_r = (_q = this.stageValue) === null || _q === void 0 ? void 0 : _q.font) === null || _r === void 0 ? void 0 : _r.family, (_t = (_s = this.value) === null || _s === void 0 ? void 0 : _s.font) === null || _t === void 0 ? void 0 : _t.family);
18998    }
18999  }
19000}
19001TimepickerSelectedTextStyleModifier.identity = Symbol('selectedTextStyle');
19002class TimepickerDisappearTextStyleModifier extends ModifierWithKey {
19003  constructor(value) {
19004    super(value);
19005  }
19006  applyPeer(node, reset) {
19007    let _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
19008    if (reset) {
19009      getUINativeModule().timepicker.resetDisappearTextStyle(node);
19010    }
19011    else {
19012      getUINativeModule().timepicker.setDisappearTextStyle(node, (_b = (_a = this.value) === null ||
19013      _a === void 0 ? void 0 : _a.color) !== null && _b !== void 0 ? _b : undefined,
19014      (_e = (_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.font) === null ||
19015      _d === void 0 ? void 0 : _d.size) !== null && _e !== void 0 ? _e : undefined,
19016      (_h = (_g = (_f = this.value) === null || _f === void 0 ? void 0 : _f.font) === null ||
19017      _g === void 0 ? void 0 : _g.weight) !== null && _h !== void 0 ? _h : undefined,
19018      (_l = (_k = (_j = this.value) === null || _j === void 0 ? void 0 : _j.font) === null ||
19019      _k === void 0 ? void 0 : _k.family) !== null && _l !== void 0 ? _l : undefined,
19020      (_p = (_o = (_m = this.value) === null || _m === void 0 ? void 0 : _m.font) === null ||
19021      _o === void 0 ? void 0 : _o.style) !== null && _p !== void 0 ? _p : undefined);
19022    }
19023  }
19024  checkObjectDiff() {
19025    let _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
19026    if (!(((_b = (_a = this.stageValue) === null || _a === void 0 ? void 0 : _a.font) === null || _b === void 0 ?
19027      void 0 : _b.weight) === ((_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.font) === null ||
19028      _d === void 0 ? void 0 : _d.weight) &&
19029      ((_f = (_e = this.stageValue) === null || _e === void 0 ? void 0 : _e.font) === null || _f === void 0 ?
19030        void 0 : _f.style) === ((_h = (_g = this.value) === null || _g === void 0 ? void 0 : _g.font) === null ||
19031        _h === void 0 ? void 0 : _h.style))) {
19032      return true;
19033    }
19034    else {
19035      return !isBaseOrResourceEqual((_j = this.stageValue) === null || _j === void 0 ? void 0 : _j.color,
19036      (_k = this.value) === null || _k === void 0 ? void 0 : _k.color) ||
19037        !isBaseOrResourceEqual((_m = (_l = this.stageValue) === null || _l === void 0 ? void 0 : _l.font) === null ||
19038        _m === void 0 ? void 0 : _m.size, (_p = (_o = this.value) === null || _o === void 0 ? void 0 : _o.font) === null ||
19039        _p === void 0 ? void 0 : _p.size) ||
19040        !isBaseOrResourceEqual((_r = (_q = this.stageValue) === null || _q === void 0 ? void 0 : _q.font) === null ||
19041        _r === void 0 ? void 0 : _r.family, (_t = (_s = this.value) === null || _s === void 0 ? void 0 : _s.font) === null ||
19042        _t === void 0 ? void 0 : _t.family);
19043    }
19044  }
19045}
19046TimepickerDisappearTextStyleModifier.identity = Symbol('disappearTextStyle');
19047class TimepickerUseMilitaryTimeModifier extends ModifierWithKey {
19048  constructor(value) {
19049    super(value);
19050  }
19051  applyPeer(node, reset) {
19052    if (reset) {
19053      getUINativeModule().timepicker.resetTimepickerUseMilitaryTime(node);
19054    }
19055    else {
19056      getUINativeModule().timepicker.setTimepickerUseMilitaryTime(node, this.value);
19057    }
19058  }
19059}
19060TimepickerUseMilitaryTimeModifier.identity = Symbol('timepickerUseMilitaryTime');
19061
19062class TimepickerLoopModifier extends ModifierWithKey {
19063  constructor(value) {
19064    super(value);
19065  }
19066  applyPeer(node, reset) {
19067    if (reset) {
19068      getUINativeModule().timepicker.resetTimepickerLoop(node);
19069    }
19070    else {
19071      getUINativeModule().timepicker.setTimepickerLoop(node, this.value);
19072    }
19073  }
19074}
19075TimepickerLoopModifier.identity = Symbol('timepickerLoop');
19076
19077class TimepickerDateTimeOptionsModifier extends ModifierWithKey {
19078  constructor(value) {
19079    super(value);
19080  }
19081  applyPeer(node, reset) {
19082    if (reset) {
19083      getUINativeModule().timepicker.resetTimepickerDateTimeOptions(node);
19084    }
19085    else {
19086      getUINativeModule().timepicker.setTimepickerDateTimeOptions(node, this.value.hour, this.value.minute, this.value.second);
19087    }
19088  }
19089}
19090TimepickerDateTimeOptionsModifier.identity = Symbol('timepickerDateTimeOptions');
19091
19092// @ts-ignore
19093if (globalThis.TimePicker !== undefined) {
19094  globalThis.TimePicker.attributeModifier = function (modifier) {
19095    attributeModifierFunc.call(this, modifier, (nativePtr) => {
19096      return new ArkTimePickerComponent(nativePtr);
19097    }, (nativePtr, classType, modifierJS) => {
19098      return new modifierJS.TimePickerModifier(nativePtr, classType);
19099    });
19100  };
19101}
19102
19103/// <reference path='./import.ts' />
19104class ArkTextPickerComponent extends ArkComponent {
19105  constructor(nativePtr, classType) {
19106    super(nativePtr, classType);
19107  }
19108  defaultPickerItemHeight(value) {
19109    modifierWithKey(this._modifiersWithKeys, TextpickerDefaultPickerItemHeightModifier.identity, TextpickerDefaultPickerItemHeightModifier, value);
19110    return this;
19111  }
19112  canLoop(value) {
19113    modifierWithKey(this._modifiersWithKeys, TextpickerCanLoopModifier.identity, TextpickerCanLoopModifier, value);
19114    return this;
19115  }
19116  disappearTextStyle(value) {
19117    modifierWithKey(this._modifiersWithKeys, TextpickerDisappearTextStyleModifier.identity, TextpickerDisappearTextStyleModifier, value);
19118    return this;
19119  }
19120  textStyle(value) {
19121    modifierWithKey(this._modifiersWithKeys, TextpickerTextStyleModifier.identity, TextpickerTextStyleModifier, value);
19122    return this;
19123  }
19124  selectedTextStyle(value) {
19125    modifierWithKey(this._modifiersWithKeys, TextpickerSelectedTextStyleModifier.identity, TextpickerSelectedTextStyleModifier, value);
19126    return this;
19127  }
19128  onAccept(callback) {
19129    throw new Error('Method not implemented.');
19130  }
19131  onCancel(callback) {
19132    throw new Error('Method not implemented.');
19133  }
19134  onChange(callback) {
19135    throw new Error('Method not implemented.');
19136  }
19137  selectedIndex(value) {
19138    modifierWithKey(this._modifiersWithKeys, TextpickerSelectedIndexModifier.identity, TextpickerSelectedIndexModifier, value);
19139    return this;
19140  }
19141  divider(value) {
19142    modifierWithKey(this._modifiersWithKeys, TextpickerDividerModifier.identity, TextpickerDividerModifier, value);
19143    return this;
19144  }
19145  gradientHeight(value) {
19146    modifierWithKey(this._modifiersWithKeys, TextpickerGradientHeightModifier.identity, TextpickerGradientHeightModifier, value);
19147    return this;
19148  }
19149}
19150class TextpickerCanLoopModifier extends ModifierWithKey {
19151  constructor(value) {
19152    super(value);
19153  }
19154  applyPeer(node, reset) {
19155    if (reset) {
19156      getUINativeModule().textpicker.resetCanLoop(node);
19157    }
19158    else {
19159      getUINativeModule().textpicker.setCanLoop(node, this.value);
19160    }
19161  }
19162}
19163TextpickerCanLoopModifier.identity = Symbol('textpickerCanLoop');
19164class TextpickerSelectedIndexModifier extends ModifierWithKey {
19165  constructor(value) {
19166    super(value);
19167  }
19168  applyPeer(node, reset) {
19169    if (reset) {
19170      getUINativeModule().textpicker.resetSelectedIndex(node);
19171    }
19172    else {
19173      getUINativeModule().textpicker.setSelectedIndex(node, this.value);
19174    }
19175  }
19176  checkObjectDiff() {
19177    if (Array.isArray(this.stageValue) && Array.isArray(this.value)) {
19178      return !deepCompareArrays(this.stageValue, this.value);
19179    }
19180    else if (Array.isArray(this.stageValue) || Array.isArray(this.value)) {
19181      return true;
19182    }
19183    else {
19184      return this.stageValue !== this.value;
19185    }
19186  }
19187}
19188TextpickerSelectedIndexModifier.identity = Symbol('textpickerSelectedIndex');
19189class TextpickerDividerModifier extends ModifierWithKey {
19190    constructor(value) {
19191        super(value);
19192    }
19193    applyPeer(node, reset) {
19194        var _a, _b, _c, _d;
19195        if (reset) {
19196            getUINativeModule().textpicker.resetDivider(node);
19197        }
19198        else {
19199            getUINativeModule().textpicker.setDivider(node, (_a = this.value) === null || _a === void 0 ? void 0 : _a.strokeWidth, (_b = this.value) === null || _b === void 0 ? void 0 : _b.color, (_c = this.value) === null || _c === void 0 ? void 0 : _c.startMargin, (_d = this.value) === null || _d === void 0 ? void 0 : _d.endMargin);
19200        }
19201    }
19202    checkObjectDiff() {
19203        var _a, _b, _c, _d, _e, _f, _g, _h;
19204        return !(((_a = this.stageValue) === null || _a === void 0 ? void 0 : _a.strokeWidth) === ((_b = this.value) === null || _b === void 0 ? void 0 : _b.strokeWidth) &&
19205            ((_c = this.stageValue) === null || _c === void 0 ? void 0 : _c.color) === ((_d = this.value) === null || _d === void 0 ? void 0 : _d.color) &&
19206            ((_e = this.stageValue) === null || _e === void 0 ? void 0 : _e.startMargin) === ((_f = this.value) === null || _f === void 0 ? void 0 : _f.startMargin) &&
19207            ((_g = this.stageValue) === null || _g === void 0 ? void 0 : _g.endMargin) === ((_h = this.value) === null || _h === void 0 ? void 0 : _h.endMargin));
19208    }
19209}
19210TextpickerDividerModifier.identity = Symbol('textpickerDivider');
19211
19212class TextpickerGradientHeightModifier extends ModifierWithKey {
19213  constructor(value) {
19214      super(value);
19215  }
19216  applyPeer(node, reset) {
19217      if (reset) {
19218          getUINativeModule().textpicker.resetGradientHeight(node);
19219      }
19220      else {
19221          getUINativeModule().textpicker.setGradientHeight(node, this.value);
19222      }
19223  }
19224  checkObjectDiff() {
19225      return !isBaseOrResourceEqual(this.stageValue, this.value);
19226  }
19227}
19228TextpickerGradientHeightModifier.identity = Symbol('textpickerGradientHeight');
19229class TextpickerTextStyleModifier extends ModifierWithKey {
19230  constructor(value) {
19231    super(value);
19232  }
19233  applyPeer(node, reset) {
19234    let _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
19235    if (reset) {
19236      getUINativeModule().textpicker.resetTextStyle(node);
19237    }
19238    else {
19239      getUINativeModule().textpicker.setTextStyle(node, (_b = (_a = this.value) === null ||
19240      _a === void 0 ? void 0 : _a.color) !== null && _b !== void 0 ? _b : undefined, (_e =
19241      (_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.font) === null ||
19242      _d === void 0 ? void 0 : _d.size) !== null && _e !== void 0 ? _e : undefined, (_h =
19243      (_g = (_f = this.value) === null || _f === void 0 ? void 0 : _f.font) === null ||
19244      _g === void 0 ? void 0 : _g.weight) !== null && _h !== void 0 ? _h : undefined,
19245      (_l = (_k = (_j = this.value) === null || _j === void 0 ? void 0 : _j.font) === null ||
19246      _k === void 0 ? void 0 : _k.family) !== null && _l !== void 0 ? _l : undefined,
19247      (_p = (_o = (_m = this.value) === null || _m === void 0 ? void 0 : _m.font) === null ||
19248      _o === void 0 ? void 0 : _o.style) !== null && _p !== void 0 ? _p : undefined);
19249    }
19250  }
19251  checkObjectDiff() {
19252    let _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
19253    if (!(((_b = (_a = this.stageValue) === null || _a === void 0 ? void 0 : _a.font) === null || _b === void 0 ? void 0 : _b.weight) ===
19254    ((_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.font) === null || _d === void 0 ? void 0 : _d.weight) &&
19255      ((_f = (_e = this.stageValue) === null || _e === void 0 ? void 0 : _e.font) === null || _f === void 0 ? void 0 : _f.style) ===
19256      ((_h = (_g = this.value) === null || _g === void 0 ? void 0 : _g.font) === null || _h === void 0 ? void 0 : _h.style))) {
19257      return true;
19258    }
19259    else {
19260      return !isBaseOrResourceEqual((_j = this.stageValue) === null || _j === void 0 ? void 0 : _j.color, (_k = this.value) === null ||
19261      _k === void 0 ? void 0 : _k.color) ||
19262        !isBaseOrResourceEqual((_m = (_l = this.stageValue) === null || _l === void 0 ? void 0 : _l.font) === null ||
19263        _m === void 0 ? void 0 : _m.size, (_p = (_o = this.value) === null || _o === void 0 ? void 0 : _o.font) === null ||
19264        _p === void 0 ? void 0 : _p.size) ||
19265        !isBaseOrResourceEqual((_r = (_q = this.stageValue) === null || _q === void 0 ? void 0 : _q.font) === null ||
19266        _r === void 0 ? void 0 : _r.family, (_t = (_s = this.value) === null || _s === void 0 ? void 0 : _s.font) === null ||
19267        _t === void 0 ? void 0 : _t.family);
19268    }
19269  }
19270}
19271TextpickerTextStyleModifier.identity = Symbol('textpickerTextStyle');
19272class TextpickerSelectedTextStyleModifier extends ModifierWithKey {
19273  constructor(value) {
19274    super(value);
19275  }
19276  applyPeer(node, reset) {
19277    let _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
19278    if (reset) {
19279      getUINativeModule().textpicker.resetSelectedTextStyle(node);
19280    }
19281    else {
19282      getUINativeModule().textpicker.setSelectedTextStyle(node, (_b =
19283        (_a = this.value) === null || _a === void 0 ? void 0 : _a.color) !== null &&
19284        _b !== void 0 ? _b : undefined, (_e = (_d = (_c = this.value) === null ||
19285        _c === void 0 ? void 0 : _c.font) === null ||
19286        _d === void 0 ? void 0 : _d.size) !== null && _e !== void 0 ? _e : undefined,
19287        (_h = (_g = (_f = this.value) === null || _f === void 0 ? void 0 : _f.font) === null ||
19288        _g === void 0 ? void 0 : _g.weight) !== null && _h !== void 0 ? _h : undefined,
19289        (_l = (_k = (_j = this.value) === null || _j === void 0 ? void 0 : _j.font) === null ||
19290        _k === void 0 ? void 0 : _k.family) !== null && _l !== void 0 ? _l : undefined,
19291        (_p = (_o = (_m = this.value) === null || _m === void 0 ? void 0 : _m.font) === null ||
19292        _o === void 0 ? void 0 : _o.style) !== null && _p !== void 0 ? _p : undefined);
19293    }
19294  }
19295  checkObjectDiff() {
19296    let _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
19297    if (!(((_b = (_a = this.stageValue) === null || _a === void 0 ? void 0 : _a.font) === null || _b === void 0 ? void 0 : _b.weight) ===
19298    ((_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.font) === null || _d === void 0 ? void 0 : _d.weight) &&
19299      ((_f = (_e = this.stageValue) === null || _e === void 0 ? void 0 : _e.font) === null || _f === void 0 ? void 0 : _f.style) ===
19300      ((_h = (_g = this.value) === null || _g === void 0 ? void 0 : _g.font) === null || _h === void 0 ? void 0 : _h.style))) {
19301      return true;
19302    }
19303    else {
19304      return !isBaseOrResourceEqual((_j = this.stageValue) === null || _j === void 0 ? void 0 : _j.color, (_k = this.value) === null ||
19305      _k === void 0 ? void 0 : _k.color) ||
19306        !isBaseOrResourceEqual((_m = (_l = this.stageValue) === null || _l === void 0 ? void 0 : _l.font) === null ||
19307        _m === void 0 ? void 0 : _m.size, (_p = (_o = this.value) === null || _o === void 0 ? void 0 : _o.font) === null ||
19308        _p === void 0 ? void 0 : _p.size) ||
19309        !isBaseOrResourceEqual((_r = (_q = this.stageValue) === null || _q === void 0 ? void 0 : _q.font) === null ||
19310        _r === void 0 ? void 0 : _r.family, (_t = (_s = this.value) === null || _s === void 0 ? void 0 : _s.font) === null ||
19311        _t === void 0 ? void 0 : _t.family);
19312    }
19313  }
19314}
19315TextpickerSelectedTextStyleModifier.identity = Symbol('textpickerSelectedTextStyle');
19316class TextpickerDisappearTextStyleModifier extends ModifierWithKey {
19317  constructor(value) {
19318    super(value);
19319  }
19320  applyPeer(node, reset) {
19321    let _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
19322    if (reset) {
19323      getUINativeModule().textpicker.resetDisappearTextStyle(node);
19324    }
19325    else {
19326      getUINativeModule().textpicker.setDisappearTextStyle(node, (_b =
19327        (_a = this.value) === null || _a === void 0 ? void 0 : _a.color) !== null &&
19328        _b !== void 0 ? _b : undefined, (_e = (_d = (_c = this.value) === null ||
19329        _c === void 0 ? void 0 : _c.font) === null || _d === void 0 ? void 0 : _d.size) !== null &&
19330        _e !== void 0 ? _e : undefined, (_h = (_g = (_f = this.value) === null ||
19331        _f === void 0 ? void 0 : _f.font) === null || _g === void 0 ? void 0 : _g.weight) !== null &&
19332        _h !== void 0 ? _h : undefined, (_l = (_k = (_j = this.value) === null ||
19333        _j === void 0 ? void 0 : _j.font) === null || _k === void 0 ? void 0 : _k.family) !== null &&
19334        _l !== void 0 ? _l : undefined, (_p = (_o = (_m = this.value) === null ||
19335        _m === void 0 ? void 0 : _m.font) === null || _o === void 0 ? void 0 : _o.style) !== null &&
19336        _p !== void 0 ? _p : undefined);
19337    }
19338  }
19339  checkObjectDiff() {
19340    let _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
19341    if (!(((_b = (_a = this.stageValue) === null || _a === void 0 ? void 0 : _a.font) === null || _b === void 0 ? void 0 : _b.weight) === ((_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.font) === null || _d === void 0 ? void 0 : _d.weight) &&
19342      ((_f = (_e = this.stageValue) === null || _e === void 0 ? void 0 : _e.font) === null || _f === void 0 ? void 0 : _f.style) === ((_h = (_g = this.value) === null || _g === void 0 ? void 0 : _g.font) === null || _h === void 0 ? void 0 : _h.style))) {
19343      return true;
19344    }
19345    else {
19346      return !isBaseOrResourceEqual((_j = this.stageValue) === null || _j === void 0 ? void 0 : _j.color, (_k = this.value) === null || _k === void 0 ? void 0 : _k.color) ||
19347        !isBaseOrResourceEqual((_m = (_l = this.stageValue) === null || _l === void 0 ? void 0 : _l.font) === null || _m === void 0 ? void 0 : _m.size, (_p = (_o = this.value) === null || _o === void 0 ? void 0 : _o.font) === null || _p === void 0 ? void 0 : _p.size) ||
19348        !isBaseOrResourceEqual((_r = (_q = this.stageValue) === null || _q === void 0 ? void 0 : _q.font) === null || _r === void 0 ? void 0 : _r.family, (_t = (_s = this.value) === null || _s === void 0 ? void 0 : _s.font) === null || _t === void 0 ? void 0 : _t.family);
19349    }
19350  }
19351}
19352TextpickerDisappearTextStyleModifier.identity = Symbol('textpickerDisappearTextStyle');
19353class TextpickerDefaultPickerItemHeightModifier extends ModifierWithKey {
19354  constructor(value) {
19355    super(value);
19356  }
19357  applyPeer(node, reset) {
19358    if (reset) {
19359      getUINativeModule().textpicker.resetDefaultPickerItemHeight(node);
19360    }
19361    else {
19362      getUINativeModule().textpicker.setDefaultPickerItemHeight(node, this.value);
19363    }
19364  }
19365}
19366TextpickerDefaultPickerItemHeightModifier.identity = Symbol('textpickerDefaultPickerItemHeight');
19367// @ts-ignore
19368if (globalThis.TextPicker !== undefined) {
19369  globalThis.TextPicker.attributeModifier = function (modifier) {
19370    attributeModifierFunc.call(this, modifier, (nativePtr) => {
19371      return new ArkTextPickerComponent(nativePtr);
19372    }, (nativePtr, classType, modifierJS) => {
19373      return new modifierJS.TextPickerModifier(nativePtr, classType);
19374    });
19375  };
19376}
19377
19378/// <reference path='./import.ts' />
19379class ArkSliderComponent extends ArkComponent {
19380  constructor(nativePtr, classType) {
19381    super(nativePtr, classType);
19382  }
19383  blockColor(value) {
19384    modifierWithKey(this._modifiersWithKeys, BlockColorModifier.identity, BlockColorModifier, value);
19385    return this;
19386  }
19387  trackColor(value) {
19388    modifierWithKey(this._modifiersWithKeys, TrackColorModifier.identity, TrackColorModifier, value);
19389    return this;
19390  }
19391  selectedColor(value) {
19392    modifierWithKey(this._modifiersWithKeys, SelectColorModifier.identity, SelectColorModifier, value);
19393    return this;
19394  }
19395  minLabel(value) {
19396    throw new Error('Method not implemented.');
19397  }
19398  maxLabel(value) {
19399    throw new Error('Method not implemented.');
19400  }
19401  showSteps(value) {
19402    modifierWithKey(this._modifiersWithKeys, ShowStepsModifier.identity, ShowStepsModifier, value);
19403    return this;
19404  }
19405  showTips(value, content) {
19406    let showTips = new ArkSliderTips(value, content);
19407    modifierWithKey(this._modifiersWithKeys, ShowTipsModifier.identity, ShowTipsModifier, showTips);
19408    return this;
19409  }
19410  trackThickness(value) {
19411    modifierWithKey(this._modifiersWithKeys, TrackThicknessModifier.identity, TrackThicknessModifier, value);
19412    return this;
19413  }
19414  onChange(callback) {
19415    throw new Error('Method not implemented.');
19416  }
19417  blockBorderColor(value) {
19418    modifierWithKey(this._modifiersWithKeys, BlockBorderColorModifier.identity, BlockBorderColorModifier, value);
19419    return this;
19420  }
19421  blockBorderWidth(value) {
19422    modifierWithKey(this._modifiersWithKeys, BlockBorderWidthModifier.identity, BlockBorderWidthModifier, value);
19423    return this;
19424  }
19425  stepColor(value) {
19426    modifierWithKey(this._modifiersWithKeys, StepColorModifier.identity, StepColorModifier, value);
19427    return this;
19428  }
19429  trackBorderRadius(value) {
19430    modifierWithKey(this._modifiersWithKeys, TrackBorderRadiusModifier.identity, TrackBorderRadiusModifier, value);
19431    return this;
19432  }
19433  selectedBorderRadius(value) {
19434    modifierWithKey(this._modifiersWithKeys, SelectedBorderRadiusModifier.identity, SelectedBorderRadiusModifier, value);
19435    return this;
19436  }
19437  blockSize(value) {
19438    modifierWithKey(this._modifiersWithKeys, BlockSizeModifier.identity, BlockSizeModifier, value);
19439    return this;
19440  }
19441  blockStyle(value) {
19442    modifierWithKey(this._modifiersWithKeys, BlockStyleModifier.identity, BlockStyleModifier, value);
19443    return this;
19444  }
19445  stepSize(value) {
19446    modifierWithKey(this._modifiersWithKeys, StepSizeModifier.identity, StepSizeModifier, value);
19447    return this;
19448  }
19449  sliderInteractionMode(value) {
19450    modifierWithKey(this._modifiersWithKeys, InteractionModeModifier.identity, InteractionModeModifier, value);
19451    return this;
19452  }
19453  minResponsiveDistance(value) {
19454    modifierWithKey(this._modifiersWithKeys, MinResponsiveDistanceModifier.identity, MinResponsiveDistanceModifier, value);
19455    return this;
19456  }
19457  contentModifier(value) {
19458    modifierWithKey(this._modifiersWithKeys, SliderContentModifier.identity, SliderContentModifier, value);
19459    return this;
19460  }
19461  slideRange(value) {
19462    modifierWithKey(this._modifiersWithKeys, ValidSlideRangeModifier.identity, ValidSlideRangeModifier, value);
19463    return this;
19464  }
19465  setContentModifier(modifier) {
19466    if (modifier === undefined || modifier === null) {
19467      getUINativeModule().slider.setContentModifierBuilder(this.nativePtr, false);
19468      return;
19469    }
19470    this.needRebuild = false;
19471    if (this.builder !== modifier.applyContent()) {
19472      this.needRebuild = true;
19473    }
19474    this.builder = modifier.applyContent();
19475    this.modifier = modifier;
19476    getUINativeModule().slider.setContentModifierBuilder(this.nativePtr, this);
19477  }
19478  makeContentModifierNode(context, sliderConfiguration) {
19479    sliderConfiguration.contentModifier = this.modifier;
19480    if (isUndefined(this.sliderNode) || this.needRebuild) {
19481      const xNode = globalThis.requireNapi('arkui.node');
19482      this.sliderNode = new xNode.BuilderNode(context);
19483      this.sliderNode.build(this.builder, sliderConfiguration);
19484      this.needRebuild = false;
19485    } else {
19486      this.sliderNode.update(sliderConfiguration);
19487    }
19488    return this.sliderNode.getFrameNode();
19489  }
19490}
19491class BlockStyleModifier extends ModifierWithKey {
19492  constructor(value) {
19493    super(value);
19494  }
19495  applyPeer(node, reset) {
19496    if (reset) {
19497      getUINativeModule().slider.resetBlockStyle(node);
19498    }
19499    else {
19500      getUINativeModule().slider.setBlockStyle(node, this.value);
19501    }
19502  }
19503  checkObjectDiff() {
19504    return !(this.stageValue.type === this.value.type &&
19505      this.stageValue.image === this.value.image &&
19506      this.stageValue.shape === this.value.shape);
19507  }
19508}
19509BlockStyleModifier.identity = Symbol('sliderBlockStyle');
19510class ShowTipsModifier extends ModifierWithKey {
19511  constructor(value) {
19512    super(value);
19513  }
19514  applyPeer(node, reset) {
19515    let _a;
19516    if (reset) {
19517      getUINativeModule().slider.resetShowTips(node);
19518    }
19519    else {
19520      getUINativeModule().slider.setShowTips(node, this.value.showTip, (_a = this.value) === null || _a === void 0 ? void 0 : _a.tipText);
19521    }
19522  }
19523  checkObjectDiff() {
19524    let showTipDiff = this.stageValue.showTip !== this.value.showTip;
19525    let tipTextDiff = !isBaseOrResourceEqual(this.stageValue.tipText, this.value.tipText);
19526    return showTipDiff || tipTextDiff;
19527  }
19528}
19529ShowTipsModifier.identity = Symbol('sliderShowTips');
19530class StepSizeModifier extends ModifierWithKey {
19531  constructor(value) {
19532    super(value);
19533  }
19534  applyPeer(node, reset) {
19535    if (reset) {
19536      getUINativeModule().slider.resetStepSize(node);
19537    }
19538    else {
19539      getUINativeModule().slider.setStepSize(node, this.value);
19540    }
19541  }
19542  checkObjectDiff() {
19543    return !isBaseOrResourceEqual(this.stageValue, this.value);
19544  }
19545}
19546StepSizeModifier.identity = Symbol('sliderStepSize');
19547class BlockSizeModifier extends ModifierWithKey {
19548  constructor(value) {
19549    super(value);
19550  }
19551  applyPeer(node, reset) {
19552    if (reset) {
19553      getUINativeModule().slider.resetBlockSize(node);
19554    }
19555    else {
19556      getUINativeModule().slider.setBlockSize(node, this.value.width, this.value.height);
19557    }
19558  }
19559  checkObjectDiff() {
19560    if (isResource(this.stageValue.height) && isResource(this.value.height) && isResource(this.stageValue.width) && isResource(this.value.width)) {
19561      return !(isResourceEqual(this.stageValue.height, this.value.height) && isResourceEqual(this.stageValue.width, this.value.width));
19562    }
19563    else {
19564      return true;
19565    }
19566  }
19567}
19568BlockSizeModifier.identity = Symbol('sliderBlockSize');
19569class TrackBorderRadiusModifier extends ModifierWithKey {
19570  constructor(value) {
19571    super(value);
19572  }
19573  applyPeer(node, reset) {
19574    if (reset) {
19575      getUINativeModule().slider.resetTrackBorderRadius(node);
19576    }
19577    else {
19578      getUINativeModule().slider.setTrackBorderRadius(node, this.value);
19579    }
19580  }
19581  checkObjectDiff() {
19582    return !isBaseOrResourceEqual(this.stageValue, this.value);
19583  }
19584}
19585TrackBorderRadiusModifier.identity = Symbol('sliderTrackBorderRadius');
19586class StepColorModifier extends ModifierWithKey {
19587  constructor(value) {
19588    super(value);
19589  }
19590  applyPeer(node, reset) {
19591    if (reset) {
19592      getUINativeModule().slider.resetStepColor(node);
19593    }
19594    else {
19595      getUINativeModule().slider.setStepColor(node, this.value);
19596    }
19597  }
19598  checkObjectDiff() {
19599    return !isBaseOrResourceEqual(this.stageValue, this.value);
19600  }
19601}
19602StepColorModifier.identity = Symbol('sliderStepColor');
19603class BlockBorderColorModifier extends ModifierWithKey {
19604  constructor(value) {
19605    super(value);
19606  }
19607  applyPeer(node, reset) {
19608    if (reset) {
19609      getUINativeModule().slider.resetBlockBorderColor(node);
19610    }
19611    else {
19612      getUINativeModule().slider.setBlockBorderColor(node, this.value);
19613    }
19614  }
19615  checkObjectDiff() {
19616    return !isBaseOrResourceEqual(this.stageValue, this.value);
19617  }
19618}
19619BlockBorderColorModifier.identity = Symbol('sliderBlockBorderColor');
19620class BlockBorderWidthModifier extends ModifierWithKey {
19621  constructor(value) {
19622    super(value);
19623  }
19624  applyPeer(node, reset) {
19625    if (reset) {
19626      getUINativeModule().slider.resetBlockBorderWidth(node);
19627    }
19628    else {
19629      getUINativeModule().slider.setBlockBorderWidth(node, this.value);
19630    }
19631  }
19632  checkObjectDiff() {
19633    return !isBaseOrResourceEqual(this.stageValue, this.value);
19634  }
19635}
19636BlockBorderWidthModifier.identity = Symbol('sliderBlockBorderWidth');
19637class BlockColorModifier extends ModifierWithKey {
19638  constructor(value) {
19639    super(value);
19640  }
19641  applyPeer(node, reset) {
19642    if (reset) {
19643      getUINativeModule().slider.resetBlockColor(node);
19644    }
19645    else {
19646      getUINativeModule().slider.setBlockColor(node, this.value);
19647    }
19648  }
19649  checkObjectDiff() {
19650    return !isBaseOrResourceEqual(this.stageValue, this.value);
19651  }
19652}
19653BlockColorModifier.identity = Symbol('sliderBlockColor');
19654class TrackColorModifier extends ModifierWithKey {
19655  constructor(value) {
19656    super(value);
19657  }
19658  applyPeer(node, reset) {
19659    if (reset) {
19660      getUINativeModule().slider.resetTrackBackgroundColor(node);
19661    }
19662    else {
19663      getUINativeModule().slider.setTrackBackgroundColor(node, this.value);
19664    }
19665  }
19666  checkObjectDiff() {
19667    return !isBaseOrResourceEqual(this.stageValue, this.value);
19668  }
19669}
19670TrackColorModifier.identity = Symbol('sliderTrackColor');
19671class SelectColorModifier extends ModifierWithKey {
19672  constructor(value) {
19673    super(value);
19674  }
19675  applyPeer(node, reset) {
19676    if (reset) {
19677      getUINativeModule().slider.resetSelectColor(node);
19678    }
19679    else {
19680      getUINativeModule().slider.setSelectColor(node, this.value);
19681    }
19682  }
19683  checkObjectDiff() {
19684    return !isBaseOrResourceEqual(this.stageValue, this.value);
19685  }
19686}
19687SelectColorModifier.identity = Symbol('sliderSelectColor');
19688class ShowStepsModifier extends ModifierWithKey {
19689  constructor(value) {
19690    super(value);
19691  }
19692  applyPeer(node, reset) {
19693    if (reset) {
19694      getUINativeModule().slider.resetShowSteps(node);
19695    }
19696    else {
19697      getUINativeModule().slider.setShowSteps(node, this.value);
19698    }
19699  }
19700  checkObjectDiff() {
19701    return this.stageValue !== this.value;
19702  }
19703}
19704ShowStepsModifier.identity = Symbol('sliderShowSteps');
19705class TrackThicknessModifier extends ModifierWithKey {
19706  constructor(value) {
19707    super(value);
19708  }
19709  applyPeer(node, reset) {
19710    if (reset) {
19711      getUINativeModule().slider.resetThickness(node);
19712    }
19713    else {
19714      getUINativeModule().slider.setThickness(node, this.value);
19715    }
19716  }
19717  checkObjectDiff() {
19718    return !isBaseOrResourceEqual(this.stageValue, this.value);
19719  }
19720}
19721TrackThicknessModifier.identity = Symbol('sliderTrackThickness');
19722class ValidSlideRangeModifier extends ModifierWithKey {
19723  constructor(value) {
19724    super(value);
19725  }
19726  applyPeer(node, reset) {
19727    if (reset) {
19728      getUINativeModule().slider.resetValidSlideRange(node);
19729    } else {
19730      getUINativeModule().slider.setValidSlideRange(node, this.value);
19731    }
19732  }
19733  checkObjectDiff() {
19734    return !isBaseOrResourceEqual(this.stageValue, this.value);
19735  }
19736}
19737ValidSlideRangeModifier.identity = Symbol('slideRange');
19738class SelectedBorderRadiusModifier extends ModifierWithKey {
19739  constructor(value) {
19740    super(value);
19741  }
19742  applyPeer(node, reset) {
19743    if (reset) {
19744      getUINativeModule().slider.resetSelectedBorderRadius(node);
19745    } else {
19746      getUINativeModule().slider.setSelectedBorderRadius(node, this.value);
19747    }
19748  }
19749  checkObjectDiff() {
19750    return !isBaseOrResourceEqual(this.stageValue, this.value);
19751  }
19752}
19753SelectedBorderRadiusModifier.identity = Symbol('sliderSelectedBorderRadius');
19754class InteractionModeModifier extends ModifierWithKey {
19755  constructor(value) {
19756    super(value);
19757  }
19758  applyPeer(node, reset) {
19759    if (reset) {
19760      getUINativeModule().slider.resetInteractionMode(node);
19761    } else {
19762      getUINativeModule().slider.setInteractionMode(node, this.value);
19763    }
19764  }
19765  checkObjectDiff() {
19766    return !isBaseOrResourceEqual(this.stageValue, this.value);
19767  }
19768}
19769InteractionModeModifier.identity = Symbol('sliderInteractionMode');
19770class MinResponsiveDistanceModifier extends ModifierWithKey {
19771  constructor(value) {
19772    super(value);
19773  }
19774  applyPeer(node, reset) {
19775    if (reset) {
19776      getUINativeModule().slider.resetMinResponsiveDistance(node);
19777    } else {
19778      getUINativeModule().slider.setMinResponsiveDistance(node, this.value);
19779    }
19780  }
19781  checkObjectDiff() {
19782    return !isBaseOrResourceEqual(this.stageValue, this.value);
19783  }
19784}
19785MinResponsiveDistanceModifier.identity = Symbol('sliderMinResponsiveDistance');
19786class SliderContentModifier extends ModifierWithKey {
19787  constructor(value) {
19788    super(value);
19789  }
19790  applyPeer(nodenode, reset, component) {
19791    let sliderComponent = component;
19792    sliderComponent.setContentModifier(this.value);
19793  }
19794}
19795SliderContentModifier.identity = Symbol('sliderContentModifier');
19796// @ts-ignore
19797if (globalThis.Slider !== undefined) {
19798  globalThis.Slider.attributeModifier = function (modifier) {
19799    attributeModifierFunc.call(this, modifier, (nativePtr) => {
19800      return new ArkSliderComponent(nativePtr);
19801    }, (nativePtr, classType, modifierJS) => {
19802      return new modifierJS.SliderModifier(nativePtr, classType);
19803    });
19804  };
19805  globalThis.Slider.contentModifier = function (modifier) {
19806    const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
19807    let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
19808    let component = this.createOrGetNode(elmtId, () => {
19809      return new ArkSliderComponent(nativeNode);
19810    });
19811    component.setContentModifier(modifier);
19812  };
19813}
19814
19815/// <reference path='./import.ts' />
19816class RatingStarsModifier extends ModifierWithKey {
19817  constructor(value) {
19818    super(value);
19819  }
19820  applyPeer(node, reset) {
19821    if (reset) {
19822      getUINativeModule().rating.resetStars(node);
19823    }
19824    else {
19825      getUINativeModule().rating.setStars(node, this.value);
19826    }
19827  }
19828}
19829RatingStarsModifier.identity = Symbol('ratingStars');
19830class RatingStepSizeModifier extends ModifierWithKey {
19831  constructor(value) {
19832    super(value);
19833  }
19834  applyPeer(node, reset) {
19835    if (reset) {
19836      getUINativeModule().rating.resetStepSize(node);
19837    }
19838    else {
19839      getUINativeModule().rating.setStepSize(node, this.value);
19840    }
19841  }
19842}
19843RatingStepSizeModifier.identity = Symbol('ratingStepSize');
19844class RatingStarStyleModifier extends ModifierWithKey {
19845  constructor(value) {
19846    super(value);
19847  }
19848  applyPeer(node, reset) {
19849    let _a, _b, _c;
19850    if (reset) {
19851      getUINativeModule().rating.resetStarStyle(node);
19852    }
19853    else {
19854      getUINativeModule().rating.setStarStyle(node, (_a = this.value) === null ||
19855      _a === void 0 ? void 0 : _a.backgroundUri, (_b = this.value) === null ||
19856      _b === void 0 ? void 0 : _b.foregroundUri, (_c = this.value) === null ||
19857      _c === void 0 ? void 0 : _c.secondaryUri);
19858    }
19859  }
19860  checkObjectDiff() {
19861    let _a, _b, _c, _d, _e, _f;
19862    return ((_a = this.stageValue) === null || _a === void 0 ? void 0 : _a.backgroundUri) !==
19863      ((_b = this.value) === null || _b === void 0 ? void 0 : _b.backgroundUri) ||
19864      ((_c = this.stageValue) === null || _c === void 0 ? void 0 : _c.foregroundUri) !==
19865      ((_d = this.value) === null || _d === void 0 ? void 0 : _d.foregroundUri) ||
19866      ((_e = this.stageValue) === null || _e === void 0 ? void 0 : _e.secondaryUri) !==
19867      ((_f = this.value) === null || _f === void 0 ? void 0 : _f.secondaryUri);
19868  }
19869}
19870RatingStarStyleModifier.identity = Symbol('ratingStarStyle');
19871class RatingContentModifier extends ModifierWithKey {
19872  constructor(value) {
19873    super(value);
19874  }
19875  applyPeer(node, reset, component) {
19876    let ratingComponent = component;
19877    ratingComponent.setContentModifier(this.value);
19878  }
19879}
19880RatingStarStyleModifier.identity = Symbol('ratingContentModifier');
19881class ArkRatingComponent extends ArkComponent {
19882  constructor(nativePtr, classType) {
19883    super(nativePtr, classType);
19884  }
19885  stars(value) {
19886    modifierWithKey(this._modifiersWithKeys, RatingStarsModifier.identity, RatingStarsModifier, value);
19887    return this;
19888  }
19889  stepSize(value) {
19890    modifierWithKey(this._modifiersWithKeys, RatingStepSizeModifier.identity, RatingStepSizeModifier, value);
19891    return this;
19892  }
19893  starStyle(value) {
19894    let starStyle = new ArkStarStyle();
19895    if (!isUndefined(value)) {
19896      starStyle.backgroundUri = value.backgroundUri;
19897      starStyle.foregroundUri = value.foregroundUri;
19898      starStyle.secondaryUri = value.secondaryUri;
19899      modifierWithKey(this._modifiersWithKeys, RatingStarStyleModifier.identity, RatingStarStyleModifier, value);
19900    }
19901    else {
19902      modifierWithKey(this._modifiersWithKeys, RatingStarStyleModifier.identity, RatingStarStyleModifier, undefined);
19903    }
19904    return this;
19905  }
19906  onChange(callback) {
19907    throw new Error('Method not implemented.');
19908  }
19909  contentModifier(value) {
19910    modifierWithKey(this._modifiersWithKeys, RatingContentModifier.identity, RatingContentModifier, value);
19911    return this;
19912  }
19913  setContentModifier(modifier) {
19914    if (modifier === undefined || modifier === null) {
19915      getUINativeModule().rating.setContentModifierBuilder(this.nativePtr, false);
19916      return;
19917    }
19918    this.needRebuild = false;
19919    if (this.builder !== modifier.applyContent()) {
19920      this.needRebuild = true;
19921    }
19922    this.builder = modifier.applyContent();
19923    this.modifier = modifier;
19924    getUINativeModule().rating.setContentModifierBuilder(this.nativePtr, this);
19925  }
19926  makeContentModifierNode(context, ratingConfiguration) {
19927    ratingConfiguration.contentModifier = this.modifier;
19928    if (isUndefined(this.ratingNode) || this.needRebuild) {
19929      const xNode = globalThis.requireNapi('arkui.node');
19930      this.ratingNode = new xNode.BuilderNode(context);
19931      this.ratingNode.build(this.builder, ratingConfiguration);
19932      this.needRebuild = false;
19933    } else {
19934      this.ratingNode.update(ratingConfiguration);
19935    }
19936    return this.ratingNode.getFrameNode();
19937  }
19938}
19939// @ts-ignore
19940if (globalThis.Rating !== undefined) {
19941  globalThis.Rating.attributeModifier = function (modifier) {
19942    attributeModifierFunc.call(this, modifier, (nativePtr) => {
19943      return new ArkRatingComponent(nativePtr);
19944    }, (nativePtr, classType, modifierJS) => {
19945      return new modifierJS.RatingModifier(nativePtr, classType);
19946    });
19947  };
19948  globalThis.Rating.contentModifier = function (modifier) {
19949    const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
19950    let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
19951    let component = this.createOrGetNode(elmtId, () => {
19952      return new ArkRatingComponent(nativeNode);
19953    });
19954    component.setContentModifier(modifier);
19955  };
19956}
19957
19958/// <reference path='./import.ts' />
19959class ArkCheckboxComponent extends ArkComponent {
19960  constructor(nativePtr, classType) {
19961    super(nativePtr, classType);
19962  }
19963  shape(value) {
19964    modifierWithKey(this._modifiersWithKeys, CheckBoxShapeModifier.identity, CheckBoxShapeModifier, value);
19965    return this;
19966  }
19967  width(value) {
19968    modifierWithKey(this._modifiersWithKeys, CheckboxWidthModifier.identity, CheckboxWidthModifier, value);
19969    return this;
19970  }
19971  height(value) {
19972    modifierWithKey(this._modifiersWithKeys, CheckboxHeightModifier.identity, CheckboxHeightModifier, value);
19973    return this;
19974  }
19975  select(value) {
19976    modifierWithKey(this._modifiersWithKeys, CheckboxSelectModifier.identity, CheckboxSelectModifier, value);
19977    return this;
19978  }
19979  selectedColor(value) {
19980    modifierWithKey(this._modifiersWithKeys, CheckboxSelectedColorModifier.identity, CheckboxSelectedColorModifier, value);
19981    return this;
19982  }
19983  unselectedColor(value) {
19984    modifierWithKey(this._modifiersWithKeys, CheckboxUnselectedColorModifier.identity, CheckboxUnselectedColorModifier, value);
19985    return this;
19986  }
19987  mark(value) {
19988    modifierWithKey(this._modifiersWithKeys, CheckboxMarkModifier.identity, CheckboxMarkModifier, value);
19989    return this;
19990  }
19991  padding(value) {
19992    let arkValue = new ArkPadding();
19993    if (value !== null && value !== undefined) {
19994      if (isLengthType(value) || isResource(value)) {
19995        arkValue.top = value;
19996        arkValue.right = value;
19997        arkValue.bottom = value;
19998        arkValue.left = value;
19999      }
20000      else {
20001        arkValue.top = value.top;
20002        arkValue.right = value.right;
20003        arkValue.bottom = value.bottom;
20004        arkValue.left = value.left;
20005      }
20006      modifierWithKey(this._modifiersWithKeys, CheckBoxPaddingModifier.identity, CheckBoxPaddingModifier, arkValue);
20007    }
20008    else {
20009      modifierWithKey(this._modifiersWithKeys, CheckBoxPaddingModifier.identity, CheckBoxPaddingModifier, undefined);
20010    }
20011    return this;
20012  }
20013  size(value) {
20014    modifierWithKey(this._modifiersWithKeys, CheckBoxSizeModifier.identity, CheckBoxSizeModifier, value);
20015    return this;
20016  }
20017  responseRegion(value) {
20018    modifierWithKey(this._modifiersWithKeys, CheckBoxResponseRegionModifier.identity, CheckBoxResponseRegionModifier, value);
20019    return this;
20020  }
20021  contentModifier(value) {
20022    modifierWithKey(this._modifiersWithKeys, CheckBoxContentModifier.identity, CheckBoxContentModifier, value);
20023    return this;
20024  }
20025  setContentModifier(modifier) {
20026    if (modifier === undefined || modifier === null) {
20027      getUINativeModule().checkbox.setContentModifierBuilder(this.nativePtr, false);
20028      return;
20029    }
20030    this.needRebuild = false;
20031    if (this.builder !== modifier.applyContent()) {
20032      this.needRebuild = true;
20033    }
20034    this.builder = modifier.applyContent();
20035    this.modifier = modifier;
20036    getUINativeModule().checkbox.setContentModifierBuilder(this.nativePtr, this);
20037  }
20038  makeContentModifierNode(context, checkBoxConfiguration) {
20039    checkBoxConfiguration.contentModifier = this.modifier;
20040    if (isUndefined(this.checkboxNode) || this.needRebuild) {
20041      const xNode = globalThis.requireNapi('arkui.node');
20042      this.checkboxNode = new xNode.BuilderNode(context);
20043      this.checkboxNode.build(this.builder, checkBoxConfiguration);
20044      this.needRebuild = false;
20045    } else {
20046      this.checkboxNode.update(checkBoxConfiguration);
20047    }
20048    return this.checkboxNode.getFrameNode();
20049  }
20050  onChange(callback) {
20051    throw new Error('Method not implemented.');
20052  }
20053}
20054class CheckBoxResponseRegionModifier extends ModifierWithKey {
20055  constructor(value) {
20056    super(value);
20057  }
20058  applyPeer(node, reset) {
20059    let _a, _b, _c, _d, _e, _f, _g, _h;
20060    if (reset) {
20061      getUINativeModule().checkbox.resetCheckboxResponseRegion(node);
20062    }
20063    else {
20064      let responseRegion = [];
20065      if (Array.isArray(this.value)) {
20066        for (let i = 0; i < this.value.length; i++) {
20067          responseRegion.push((_a = this.value[i].x) !== null && _a !== void 0 ? _a : 'PLACEHOLDER');
20068          responseRegion.push((_b = this.value[i].y) !== null && _b !== void 0 ? _b : 'PLACEHOLDER');
20069          responseRegion.push((_c = this.value[i].width) !== null && _c !== void 0 ? _c : 'PLACEHOLDER');
20070          responseRegion.push((_d = this.value[i].height) !== null && _d !== void 0 ? _d : 'PLACEHOLDER');
20071        }
20072      }
20073      else {
20074        responseRegion.push((_e = this.value.x) !== null && _e !== void 0 ? _e : 'PLACEHOLDER');
20075        responseRegion.push((_f = this.value.y) !== null && _f !== void 0 ? _f : 'PLACEHOLDER');
20076        responseRegion.push((_g = this.value.width) !== null && _g !== void 0 ? _g : 'PLACEHOLDER');
20077        responseRegion.push((_h = this.value.height) !== null && _h !== void 0 ? _h : 'PLACEHOLDER');
20078      }
20079      getUINativeModule().checkbox.setCheckboxResponseRegion(node, responseRegion, responseRegion.length);
20080    }
20081  }
20082  checkObjectDiff() {
20083    if (Array.isArray(this.value) && Array.isArray(this.stageValue)) {
20084      if (this.value.length !== this.stageValue.length) {
20085        return true;
20086      }
20087      else {
20088        for (let i = 0; i < this.value.length; i++) {
20089          if (!(isBaseOrResourceEqual(this.stageValue[i].x, this.value[i].x) &&
20090            isBaseOrResourceEqual(this.stageValue[i].y, this.value[i].y) &&
20091            isBaseOrResourceEqual(this.stageValue[i].width, this.value[i].width) &&
20092            isBaseOrResourceEqual(this.stageValue[i].height, this.value[i].height))) {
20093            return true;
20094          }
20095        }
20096        return false;
20097      }
20098    }
20099    else if (!Array.isArray(this.value) && !Array.isArray(this.stageValue)) {
20100      return (!(isBaseOrResourceEqual(this.stageValue.x, this.value.x) &&
20101        isBaseOrResourceEqual(this.stageValue.y, this.value.y) &&
20102        isBaseOrResourceEqual(this.stageValue.width, this.value.width) &&
20103        isBaseOrResourceEqual(this.stageValue.height, this.value.height)));
20104    }
20105    else {
20106      return true;
20107    }
20108  }
20109}
20110CheckBoxResponseRegionModifier.identity = Symbol('responseRegion');
20111class CheckBoxContentModifier extends ModifierWithKey {
20112  constructor(value) {
20113    super(value);
20114  }
20115  applyPeer(node, reset, component) {
20116    let checkboxComponent = component;
20117    checkboxComponent.setContentModifier(this.value);
20118  }
20119}
20120CheckBoxContentModifier.identity = Symbol('checkBoxContentModifier');
20121class CheckBoxShapeModifier extends ModifierWithKey {
20122  constructor(value) {
20123    super(value);
20124  }
20125  applyPeer(node, reset) {
20126    if (reset) {
20127      getUINativeModule().checkbox.resetCheckboxShape(node);
20128    } else {
20129      getUINativeModule().checkbox.setCheckboxShape(node, this.value);
20130    }
20131  }
20132
20133  checkObjectDiff() {
20134    return !isBaseOrResourceEqual(this.stageValue, this.value);
20135  }
20136}
20137CheckBoxShapeModifier.identity = Symbol('checkboxShape');
20138class CheckBoxSizeModifier extends ModifierWithKey {
20139  constructor(value) {
20140    super(value);
20141  }
20142  applyPeer(node, reset) {
20143    if (reset) {
20144      getUINativeModule().checkbox.resetCheckboxSize(node);
20145    }
20146    else {
20147      getUINativeModule().checkbox.setCheckboxSize(node, this.value.width, this.value.height);
20148    }
20149  }
20150  checkObjectDiff() {
20151    return !isBaseOrResourceEqual(this.stageValue.width, this.value.width) ||
20152      !isBaseOrResourceEqual(this.stageValue.height, this.value.height);
20153  }
20154}
20155CheckBoxSizeModifier.identity = Symbol('size');
20156class CheckBoxPaddingModifier extends ModifierWithKey {
20157  constructor(value) {
20158    super(value);
20159  }
20160  applyPeer(node, reset) {
20161    if (reset) {
20162      getUINativeModule().checkbox.resetCheckboxPadding(node);
20163    }
20164    else {
20165      getUINativeModule().checkbox.setCheckboxPadding(node, this.value.top, this.value.right, this.value.bottom, this.value.left);
20166    }
20167  }
20168  checkObjectDiff() {
20169    return !isBaseOrResourceEqual(this.stageValue.top, this.value.top) ||
20170      !isBaseOrResourceEqual(this.stageValue.right, this.value.right) ||
20171      !isBaseOrResourceEqual(this.stageValue.bottom, this.value.bottom) ||
20172      !isBaseOrResourceEqual(this.stageValue.left, this.value.left);
20173  }
20174}
20175CheckBoxPaddingModifier.identity = Symbol('padding');
20176class CheckboxMarkModifier extends ModifierWithKey {
20177  constructor(value) {
20178    super(value);
20179  }
20180  applyPeer(node, reset) {
20181    let _a, _b, _c;
20182    if (reset) {
20183      getUINativeModule().checkbox.resetMark(node);
20184    }
20185    else {
20186      getUINativeModule().checkbox.setMark(node, (_a = this.value) === null ||
20187      _a === void 0 ? void 0 : _a.strokeColor, (_b = this.value) === null ||
20188      _b === void 0 ? void 0 : _b.size, (_c = this.value) === null ||
20189      _c === void 0 ? void 0 : _c.strokeWidth);
20190    }
20191  }
20192  checkObjectDiff() {
20193    let colorEQ = isBaseOrResourceEqual(this.stageValue.strokeColor, this.value.strokeColor);
20194    let sizeEQ = isBaseOrResourceEqual(this.stageValue.size, this.value.size);
20195    let widthEQ = isBaseOrResourceEqual(this.stageValue.strokeWidth, this.value.strokeWidth);
20196    return !colorEQ || !sizeEQ || !widthEQ;
20197  }
20198}
20199CheckboxMarkModifier.identity = Symbol('checkboxMark');
20200class CheckboxSelectModifier extends ModifierWithKey {
20201  constructor(value) {
20202    super(value);
20203  }
20204  applyPeer(node, reset) {
20205    if (reset) {
20206      getUINativeModule().checkbox.resetSelect(node);
20207    }
20208    else {
20209      getUINativeModule().checkbox.setSelect(node, this.value);
20210    }
20211  }
20212  checkObjectDiff() {
20213    return this.stageValue !== this.value;
20214  }
20215}
20216CheckboxSelectModifier.identity = Symbol('checkboxSelect');
20217class CheckboxHeightModifier extends ModifierWithKey {
20218  constructor(value) {
20219    super(value);
20220  }
20221  applyPeer(node, reset) {
20222    if (reset) {
20223      getUINativeModule().checkbox.resetHeight(node);
20224    }
20225    else {
20226      getUINativeModule().checkbox.setHeight(node, this.value);
20227    }
20228  }
20229  checkObjectDiff() {
20230    return !isBaseOrResourceEqual(this.stageValue, this.value);
20231  }
20232}
20233CheckboxHeightModifier.identity = Symbol('checkboxHeight');
20234class CheckboxWidthModifier extends ModifierWithKey {
20235  constructor(value) {
20236    super(value);
20237  }
20238  applyPeer(node, reset) {
20239    if (reset) {
20240      getUINativeModule().checkbox.resetWidth(node);
20241    }
20242    else {
20243      getUINativeModule().checkbox.setWidth(node, this.value);
20244    }
20245  }
20246  checkObjectDiff() {
20247    return !isBaseOrResourceEqual(this.stageValue, this.value);
20248  }
20249}
20250CheckboxWidthModifier.identity = Symbol('checkboxWidth');
20251class CheckboxSelectedColorModifier extends ModifierWithKey {
20252  constructor(value) {
20253    super(value);
20254  }
20255  applyPeer(node, reset) {
20256    if (reset) {
20257      getUINativeModule().checkbox.resetSelectedColor(node);
20258    }
20259    else {
20260      getUINativeModule().checkbox.setSelectedColor(node, this.value);
20261    }
20262  }
20263  checkObjectDiff() {
20264    return !isBaseOrResourceEqual(this.stageValue, this.value);
20265  }
20266}
20267CheckboxSelectedColorModifier.identity = Symbol('checkboxSelectedColor');
20268class CheckboxUnselectedColorModifier extends ModifierWithKey {
20269  constructor(value) {
20270    super(value);
20271  }
20272  applyPeer(node, reset) {
20273    if (reset) {
20274      getUINativeModule().checkbox.resetUnSelectedColor(node);
20275    }
20276    else {
20277      getUINativeModule().checkbox.setUnSelectedColor(node, this.value);
20278    }
20279  }
20280  checkObjectDiff() {
20281    return !isBaseOrResourceEqual(this.stageValue, this.value);
20282  }
20283}
20284CheckboxUnselectedColorModifier.identity = Symbol('checkboxUnselectedColor');
20285// @ts-ignore
20286if (globalThis.Checkbox !== undefined) {
20287  globalThis.Checkbox.attributeModifier = function (modifier) {
20288    attributeModifierFunc.call(this, modifier, (nativePtr) => {
20289      return new ArkCheckboxComponent(nativePtr);
20290    }, (nativePtr, classType, modifierJS) => {
20291      return new modifierJS.CheckboxModifier(nativePtr, classType);
20292    });
20293  };
20294  globalThis.Checkbox.contentModifier = function (modifier) {
20295    const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
20296    let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
20297    let component = this.createOrGetNode(elmtId, () => {
20298      return new ArkCheckboxComponent(nativeNode);
20299    });
20300    component.setContentModifier(modifier);
20301  };
20302}
20303
20304/// <reference path='./import.ts' />
20305class ArkNavDestinationComponent extends ArkComponent {
20306  constructor(nativePtr, classType) {
20307    super(nativePtr, classType);
20308  }
20309  title(value, options) {
20310    if (isUndefined(value) || isNull(value)) {
20311      modifierWithKey(this._modifiersWithKeys, NavDestinationTitleModifier.identity,
20312        NavDestinationTitleModifier, undefined);
20313      return this;
20314    }
20315    let arkNavigationTitle = new ArkNavigationTitle();
20316    arkNavigationTitle.value = value;
20317    if (!isUndefined(options) && !isNull(options) && isObject(options)) {
20318      if (Object.keys(options).length !== 0) {
20319        arkNavigationTitle.navigationTitleOptions = options;
20320      }
20321    }
20322    modifierWithKey(this._modifiersWithKeys, NavDestinationTitleModifier.identity,
20323      NavDestinationTitleModifier, arkNavigationTitle);
20324    return this;
20325  }
20326  menus(value) {
20327    if (isUndefined(value)) {
20328      modifierWithKey(this._modifiersWithKeys, NavDestinationMenusModifier.identity,
20329        NavDestinationMenusModifier, undefined);
20330      return this;
20331    }
20332    modifierWithKey(this._modifiersWithKeys, NavDestinationMenusModifier.identity,
20333        NavDestinationMenusModifier, value);
20334    return this;
20335  }
20336  hideTitleBar(isHide, animated) {
20337    let arkNavDestinationHideTitleBar = new ArkNavHideTitleBarOrToolBar();
20338    if (!isUndefined(isHide) && !isNull(isHide)) {
20339      arkNavDestinationHideTitleBar.isHide = isHide;
20340    }
20341    if (!isUndefined(animated) && !isNull(animated)) {
20342      arkNavDestinationHideTitleBar.animated = animated;
20343    }
20344    if (arkNavDestinationHideTitleBar.isHide === undefined && arkNavDestinationHideTitleBar.animated === undefined) {
20345        modifierWithKey(this._modifiersWithKeys, HideTitleBarModifier.identity, HideTitleBarModifier, undefined);
20346    } else {
20347        modifierWithKey(this._modifiersWithKeys, HideTitleBarModifier.identity, HideTitleBarModifier, arkNavDestinationHideTitleBar);
20348    }
20349    return this;
20350  }
20351  hideToolBar(isHide, animated) {
20352    let arkNavDestinationHideToolBar = new ArkNavHideTitleBarOrToolBar();
20353    if (!isUndefined(isHide) && !isNull(isHide)) {
20354      arkNavDestinationHideToolBar.isHide = isHide;
20355    }
20356    if (!isUndefined(animated) && !isNull(animated)) {
20357      arkNavDestinationHideToolBar.animated = animated;
20358    }
20359    if (arkNavDestinationHideToolBar.isHide === undefined && arkNavDestinationHideToolBar.animated === undefined) {
20360        modifierWithKey(this._modifiersWithKeys, NavDestinationHideToolBarModifier.identity,
20361          NavDestinationHideToolBarModifier, undefined);
20362    } else {
20363        modifierWithKey(this._modifiersWithKeys, NavDestinationHideToolBarModifier.identity,
20364          NavDestinationHideToolBarModifier, arkNavDestinationHideToolBar);
20365    }
20366    return this;
20367  }
20368  toolbarConfiguration(value) {
20369    throw new Error('Method not implemented.');
20370  }
20371  backButtonIcon(value) {
20372    modifierWithKey(this._modifiersWithKeys, NavDestinationBackButtonIconModifier.identity,
20373      NavDestinationBackButtonIconModifier, value);
20374    return this;
20375  }
20376  mode(value) {
20377    modifierWithKey(this._modifiersWithKeys, NavDestinationModeModifier.identity,
20378      NavDestinationModeModifier, value);
20379    return this;
20380  }
20381  systemTransition(value) {
20382    modifierWithKey(this._modifiersWithKeys, NavDestinationSystemTransitionModifier.identity,
20383      NavDestinationSystemTransitionModifier, value);
20384    return this;
20385  }
20386  onShown(callback) {
20387    throw new Error('Method not implemented.');
20388  }
20389  onHidden(callback) {
20390    throw new Error('Method not implemented.');
20391  }
20392  onBackPressed(callback) {
20393    throw new Error('Method not implemented.');
20394  }
20395  ignoreLayoutSafeArea(types, edges) {
20396    let opts = new ArkSafeAreaExpandOpts();
20397    if (types && types.length >= 0) {
20398      let safeAreaType = '';
20399      for (let param of types) {
20400        if (!isNumber(param) || param >= SAFE_AREA_TYPE_LIMIT || param < SAFE_AREA_LOWER_LIMIT) {
20401          safeAreaType = undefined;
20402          break;
20403        }
20404        if (safeAreaType) {
20405          safeAreaType += '|';
20406          safeAreaType += param.toString();
20407        }
20408        else {
20409          safeAreaType += param.toString();
20410        }
20411      }
20412      opts.type = safeAreaType;
20413    }
20414    if (edges && edges.length >= 0) {
20415      let safeAreaEdge = '';
20416      for (let param of edges) {
20417        if (!isNumber(param) || param >= SAFE_AREA_EDGE_LIMIT || param < SAFE_AREA_LOWER_LIMIT) {
20418          safeAreaEdge = undefined;
20419          break;
20420        }
20421        if (safeAreaEdge) {
20422          safeAreaEdge += '|';
20423          safeAreaEdge += param.toString();
20424        }
20425        else {
20426          safeAreaEdge += param.toString();
20427        }
20428      }
20429      opts.edges = safeAreaEdge;
20430    }
20431    if (opts.type === undefined && opts.edges === undefined) {
20432      modifierWithKey(this._modifiersWithKeys, IgnoreLayoutSafeAreaModifier.identity, IgnoreLayoutSafeAreaModifier, undefined);
20433    }
20434    else {
20435      modifierWithKey(this._modifiersWithKeys, IgnoreLayoutSafeAreaModifier.identity, IgnoreLayoutSafeAreaModifier, opts);
20436    }
20437    return this;
20438  }
20439  recoverable(value) {
20440    modifierWithKey(this._modifiersWithKeys, NavDestinationRecoverableModifier.identity, NavDestinationRecoverableModifier, value);
20441    return this;
20442  }
20443}
20444class HideTitleBarModifier extends ModifierWithKey {
20445  constructor(value) {
20446    super(value);
20447  }
20448  applyPeer(node, reset) {
20449    if (reset) {
20450      getUINativeModule().navDestination.resetHideTitleBar(node);
20451    }
20452    else {
20453      getUINativeModule().navDestination.setHideTitleBar(node, this.value?.isHide, this.value?.animated);
20454    }
20455  }
20456}
20457HideTitleBarModifier.identity = Symbol('hideTitleBar');
20458
20459class NavDestinationHideToolBarModifier extends ModifierWithKey {
20460  constructor(value) {
20461    super(value);
20462  }
20463  applyPeer(node, reset) {
20464    if (reset) {
20465      getUINativeModule().navDestination.resetHideToolBar(node);
20466    }
20467    else {
20468      getUINativeModule().navDestination.setHideToolBar(node, this.value?.isHide, this.value?.animated);
20469    }
20470  }
20471}
20472NavDestinationHideToolBarModifier.identity = Symbol('hideToolBar');
20473
20474class IgnoreLayoutSafeAreaModifier extends ModifierWithKey {
20475  constructor(value) {
20476    super(value);
20477  }
20478  applyPeer(node, reset) {
20479    if (reset) {
20480      getUINativeModule().navDestination.resetIgnoreLayoutSafeArea(node);
20481    }
20482    else {
20483      getUINativeModule().navDestination.setIgnoreLayoutSafeArea(node, this.value.type, this.value.edges);
20484    }
20485  }
20486  checkObjectDiff() {
20487    return !isBaseOrResourceEqual(this.stageValue.type, this.value.type) ||
20488      !isBaseOrResourceEqual(this.stageValue.edges, this.value.edges);
20489  }
20490}
20491IgnoreLayoutSafeAreaModifier.identity = Symbol('ignoreLayoutSafeArea');
20492
20493class NavDestinationRecoverableModifier extends ModifierWithKey {
20494  constructor(value) {
20495    super(value);
20496  }
20497
20498  applyPeer(node, reset) {
20499    if (reset) {
20500      getUINativeModule().navDestination.resetRecoverable(node);
20501    } else {
20502      getUINativeModule().navDestination.setRecoverable(node, this.value);
20503    }
20504  }
20505}
20506NavDestinationRecoverableModifier.identity = Symbol('recoverable');
20507
20508class NavDestinationTitleModifier extends ModifierWithKey {
20509  constructor(value) {
20510    super(value);
20511  }
20512  applyPeer(node, reset) {
20513    if (reset) {
20514      getUINativeModule().navDestination.resetTitle(node);
20515    } else {
20516      getUINativeModule().navDestination.setTitle(node, this.value?.value, this.value?.navigationTitleOptions);
20517    }
20518  }
20519  checkObjectDiff() {
20520    return !this.value.isEqual(this.stageValue);
20521  }
20522}
20523NavDestinationTitleModifier.identity = Symbol('title');
20524
20525class NavDestinationMenusModifier extends ModifierWithKey {
20526  constructor(value) {
20527    super(value);
20528  }
20529  applyPeer(node, reset) {
20530    if (reset) {
20531      getUINativeModule().navDestination.resetMenus(node);
20532    } else {
20533      getUINativeModule().navDestination.setMenus(node, this.value);
20534    }
20535  }
20536  checkObjectDiff() {
20537    if (!Array.isArray(this.value) || !Array.isArray(this.stageValue)) {
20538      return true;
20539    }
20540    if (this.value.length !== this.stageValue.length) {
20541      return true;
20542    }
20543    for (let i = 0; i < this.value.length; i++) {
20544      if (!(isBaseOrResourceEqual(this.stageValue[i].value, this.value[i].value) &&
20545        isBaseOrResourceEqual(this.stageValue[i].icon, this.value[i].icon) &&
20546        isBaseOrResourceEqual(this.stageValue[i].isEnabled, this.value[i].isEnabled) &&
20547        isBaseOrResourceEqual(this.stageValue[i].action, this.value[i].action) &&
20548        isBaseOrResourceEqual(this.stageValue[i].symbolIcon, this.value[i].symbolIcon)
20549      )) {
20550        return true;
20551      }
20552    }
20553    return false;
20554  }
20555}
20556NavDestinationMenusModifier.identity = Symbol('menus');
20557
20558//@ts-ignore
20559if (globalThis.NavDestination !== undefined) {
20560  globalThis.NavDestination.attributeModifier = function (modifier) {
20561    attributeModifierFunc.call(this, modifier, (nativePtr) => {
20562      return new ArkNavDestinationComponent(nativePtr);
20563    }, (nativePtr, classType, modifierJS) => {
20564      return new modifierJS.NavDestinationModifier(nativePtr, classType);
20565    });
20566  };
20567}
20568
20569/// <reference path='./import.ts' />
20570class ArkCounterComponent extends ArkComponent {
20571  constructor(nativePtr, classType) {
20572    super(nativePtr, classType);
20573  }
20574  onInc(event) {
20575    throw new Error('Method not implemented.');
20576  }
20577  onDec(event) {
20578    throw new Error('Method not implemented.');
20579  }
20580  enableDec(value) {
20581    modifierWithKey(this._modifiersWithKeys, EnableDecModifier.identity, EnableDecModifier, value);
20582    return this;
20583  }
20584  enableInc(value) {
20585    modifierWithKey(this._modifiersWithKeys, EnableIncModifier.identity, EnableIncModifier, value);
20586    return this;
20587  }
20588  backgroundColor(value) {
20589    modifierWithKey(this._modifiersWithKeys, CounterBackgroundColorModifier.identity, CounterBackgroundColorModifier, value);
20590    return this;
20591  }
20592  width(value) {
20593    modifierWithKey(this._modifiersWithKeys, CounterWidthModifier.identity, CounterWidthModifier, value);
20594    return this;
20595  }
20596  height(value) {
20597    modifierWithKey(this._modifiersWithKeys, CounterHeightModifier.identity, CounterHeightModifier, value);
20598    return this;
20599  }
20600  size(value) {
20601    modifierWithKey(this._modifiersWithKeys, CounterSizeModifier.identity, CounterSizeModifier, value);
20602    return this;
20603  }
20604}
20605class CounterHeightModifier extends ModifierWithKey {
20606  constructor(value) {
20607    super(value);
20608  }
20609  applyPeer(node, reset) {
20610    if (reset) {
20611      getUINativeModule().counter.resetCounterHeight(node);
20612    }
20613    else {
20614      getUINativeModule().counter.setCounterHeight(node, this.value);
20615    }
20616  }
20617  checkObjectDiff() {
20618    return !isBaseOrResourceEqual(this.stageValue, this.value);
20619  }
20620}
20621CounterHeightModifier.identity = Symbol('CounterHeight');
20622class CounterWidthModifier extends ModifierWithKey {
20623  constructor(value) {
20624    super(value);
20625  }
20626  applyPeer(node, reset) {
20627    if (reset) {
20628      getUINativeModule().counter.resetCounterWidth(node);
20629    }
20630    else {
20631      getUINativeModule().counter.setCounterWidth(node, this.value);
20632    }
20633  }
20634  checkObjectDiff() {
20635    return !isBaseOrResourceEqual(this.stageValue, this.value);
20636  }
20637}
20638CounterWidthModifier.identity = Symbol('CounterWidth');
20639class CounterBackgroundColorModifier extends ModifierWithKey {
20640  constructor(value) {
20641    super(value);
20642  }
20643  applyPeer(node, reset) {
20644    if (reset) {
20645      getUINativeModule().counter.resetCounterBackgroundColor(node);
20646    }
20647    else {
20648      getUINativeModule().counter.setCounterBackgroundColor(node, this.value);
20649    }
20650  }
20651  checkObjectDiff() {
20652    return !isBaseOrResourceEqual(this.stageValue, this.value);
20653  }
20654}
20655CounterBackgroundColorModifier.identity = Symbol('CounterBackgroundColor');
20656class CounterSizeModifier extends ModifierWithKey {
20657  constructor(value) {
20658    super(value);
20659  }
20660  applyPeer(node, reset) {
20661    if (reset) {
20662      getUINativeModule().counter.resetCounterSize(node);
20663    }
20664    else {
20665      getUINativeModule().counter.setCounterSize(node, this.value.width, this.value.height);
20666    }
20667  }
20668  checkObjectDiff() {
20669    return !isBaseOrResourceEqual(this.stageValue.width, this.value.width) ||
20670      !isBaseOrResourceEqual(this.stageValue.height, this.value.height);
20671  }
20672}
20673CounterSizeModifier.identity = Symbol('CounterSize');
20674class EnableIncModifier extends ModifierWithKey {
20675  constructor(value) {
20676    super(value);
20677  }
20678  applyPeer(node, reset) {
20679    if (reset) {
20680      getUINativeModule().counter.resetEnableInc(node);
20681    }
20682    else {
20683      getUINativeModule().counter.setEnableInc(node, this.value);
20684    }
20685  }
20686}
20687EnableIncModifier.identity = Symbol('enableInc');
20688class EnableDecModifier extends ModifierWithKey {
20689  constructor(value) {
20690    super(value);
20691  }
20692  applyPeer(node, reset) {
20693    if (reset) {
20694      getUINativeModule().counter.resetEnableDec(node);
20695    }
20696    else {
20697      getUINativeModule().counter.setEnableDec(node, this.value);
20698    }
20699  }
20700}
20701EnableDecModifier.identity = Symbol('enableDec');
20702// @ts-ignore
20703if (globalThis.Counter !== undefined) {
20704  globalThis.Counter.attributeModifier = function (modifier) {
20705    attributeModifierFunc.call(this, modifier, (nativePtr) => {
20706      return new ArkCounterComponent(nativePtr);
20707    }, (nativePtr, classType, modifierJS) => {
20708      return new modifierJS.CounterModifier(nativePtr, classType);
20709    });
20710  };
20711}
20712
20713/// <reference path='./import.ts' />
20714class CheckboxGroupSelectAllModifier extends ModifierWithKey {
20715  constructor(value) {
20716    super(value);
20717  }
20718  applyPeer(node, reset) {
20719    if (reset) {
20720      getUINativeModule().checkboxgroup.resetCheckboxGroupSelectAll(node);
20721    }
20722    else {
20723      getUINativeModule().checkboxgroup.setCheckboxGroupSelectAll(node, this.value);
20724    }
20725  }
20726}
20727CheckboxGroupSelectAllModifier.identity = Symbol('checkboxgroupSelectAll');
20728class CheckboxGroupSelectedColorModifier extends ModifierWithKey {
20729  constructor(value) {
20730    super(value);
20731  }
20732  applyPeer(node, reset) {
20733    if (reset) {
20734      getUINativeModule().checkboxgroup.resetCheckboxGroupSelectedColor(node);
20735    }
20736    else {
20737      getUINativeModule().checkboxgroup.setCheckboxGroupSelectedColor(node, this.value);
20738    }
20739  }
20740  checkObjectDiff() {
20741    return !isBaseOrResourceEqual(this.stageValue, this.value);
20742  }
20743}
20744CheckboxGroupSelectedColorModifier.identity = Symbol('checkboxgroupSelectedColor');
20745class CheckboxGroupUnselectedColorModifier extends ModifierWithKey {
20746  constructor(value) {
20747    super(value);
20748  }
20749  applyPeer(node, reset) {
20750    if (reset) {
20751      getUINativeModule().checkboxgroup.resetCheckboxGroupUnSelectedColor(node);
20752    }
20753    else {
20754      getUINativeModule().checkboxgroup.setCheckboxGroupUnSelectedColor(node, this.value);
20755    }
20756  }
20757  checkObjectDiff() {
20758    return !isBaseOrResourceEqual(this.stageValue, this.value);
20759  }
20760}
20761CheckboxGroupUnselectedColorModifier.identity = Symbol('checkboxgroupUnselectedColor');
20762class CheckboxGroupMarkModifier extends ModifierWithKey {
20763  constructor(value) {
20764    super(value);
20765  }
20766  applyPeer(node, reset) {
20767    let _a, _b, _c;
20768    if (reset) {
20769      getUINativeModule().checkboxgroup.resetCheckboxGroupMark(node);
20770    }
20771    else {
20772      getUINativeModule().checkboxgroup.setCheckboxGroupMark(node, (_a = this.value) === null ||
20773      _a === void 0 ? void 0 : _a.strokeColor, (_b = this.value) === null ||
20774      _b === void 0 ? void 0 : _b.size, (_c = this.value) === null ||
20775      _c === void 0 ? void 0 : _c.strokeWidth);
20776    }
20777  }
20778  checkObjectDiff() {
20779    let colorEQ = isBaseOrResourceEqual(this.stageValue.strokeColor, this.value.strokeColor);
20780    let sizeEQ = isBaseOrResourceEqual(this.stageValue.size, this.value.size);
20781    let widthEQ = isBaseOrResourceEqual(this.stageValue.strokeWidth, this.value.strokeWidth);
20782    return !colorEQ || !sizeEQ || !widthEQ;
20783  }
20784}
20785CheckboxGroupMarkModifier.identity = Symbol('checkboxgroupMark');
20786class CheckboxGroupWidthModifier extends ModifierWithKey {
20787  constructor(value) {
20788    super(value);
20789  }
20790  applyPeer(node, reset) {
20791    if (reset) {
20792      getUINativeModule().checkboxgroup.resetCheckboxGroupWidth(node);
20793    }
20794    else {
20795      getUINativeModule().checkboxgroup.setCheckboxGroupWidth(node, this.value);
20796    }
20797  }
20798  checkObjectDiff() {
20799    return !isBaseOrResourceEqual(this.stageValue, this.value);
20800  }
20801}
20802CheckboxGroupWidthModifier.identity = Symbol('checkboxGroupWidth');
20803class CheckboxGroupSizeModifier extends ModifierWithKey {
20804  constructor(value) {
20805    super(value);
20806  }
20807  applyPeer(node, reset) {
20808    if (reset) {
20809      getUINativeModule().checkboxgroup.resetCheckboxGroupSize(node);
20810    }
20811    else {
20812      getUINativeModule().checkboxgroup.setCheckboxGroupSize(node, this.value.width, this.value.height);
20813    }
20814  }
20815  checkObjectDiff() {
20816    return !isBaseOrResourceEqual(this.stageValue.width, this.value.width) ||
20817      !isBaseOrResourceEqual(this.stageValue.height, this.value.height);
20818  }
20819}
20820CheckboxGroupSizeModifier.identity = Symbol('checkboxGroupSize');
20821class CheckboxGroupHeightModifier extends ModifierWithKey {
20822  constructor(value) {
20823    super(value);
20824  }
20825  applyPeer(node, reset) {
20826    if (reset) {
20827      getUINativeModule().checkboxgroup.resetCheckboxGroupHeight(node);
20828    }
20829    else {
20830      getUINativeModule().checkboxgroup.setCheckboxGroupHeight(node, this.value);
20831    }
20832  }
20833  checkObjectDiff() {
20834    return !isBaseOrResourceEqual(this.stageValue, this.value);
20835  }
20836}
20837CheckboxGroupHeightModifier.identity = Symbol('checkboxGroupHeight');
20838class CheckboxGroupStyleModifier extends ModifierWithKey {
20839  constructor(value) {
20840    super(value);
20841  }
20842  applyPeer(node, reset) {
20843    if (reset) {
20844      getUINativeModule().checkboxgroup.resetCheckboxGroupStyle(node);
20845    } else {
20846      getUINativeModule().checkboxgroup.setCheckboxGroupStyle(node, this.value);
20847    }
20848  }
20849
20850  checkObjectDiff() {
20851    return !isBaseOrResourceEqual(this.stageValue, this.value);
20852  }
20853}
20854CheckboxGroupStyleModifier.identity = Symbol('checkboxgroupStyle');
20855class ArkCheckboxGroupComponent extends ArkComponent {
20856  constructor(nativePtr, classType) {
20857    super(nativePtr, classType);
20858  }
20859  selectAll(value) {
20860    modifierWithKey(this._modifiersWithKeys, CheckboxGroupSelectAllModifier.identity, CheckboxGroupSelectAllModifier, value);
20861    return this;
20862  }
20863  selectedColor(value) {
20864    modifierWithKey(this._modifiersWithKeys, CheckboxGroupSelectedColorModifier.identity, CheckboxGroupSelectedColorModifier, value);
20865    return this;
20866  }
20867  unselectedColor(value) {
20868    modifierWithKey(this._modifiersWithKeys, CheckboxGroupUnselectedColorModifier.identity, CheckboxGroupUnselectedColorModifier, value);
20869    return this;
20870  }
20871  mark(value) {
20872    modifierWithKey(this._modifiersWithKeys, CheckboxGroupMarkModifier.identity, CheckboxGroupMarkModifier, value);
20873    return this;
20874  }
20875  onChange(callback) {
20876    throw new Error('Method not implemented.');
20877  }
20878  size(value) {
20879    modifierWithKey(this._modifiersWithKeys, CheckboxGroupSizeModifier.identity, CheckboxGroupSizeModifier, value);
20880    return this;
20881  }
20882  width(value) {
20883    modifierWithKey(this._modifiersWithKeys, CheckboxGroupWidthModifier.identity, CheckboxGroupWidthModifier, value);
20884    return this;
20885  }
20886  height(value) {
20887    modifierWithKey(this._modifiersWithKeys, CheckboxGroupHeightModifier.identity, CheckboxGroupHeightModifier, value);
20888    return this;
20889  }
20890  checkboxShape(value) {
20891    modifierWithKey(this._modifiersWithKeys, CheckboxGroupStyleModifier.identity, CheckboxGroupStyleModifier, value);
20892    return this;
20893  }
20894}
20895// @ts-ignore
20896if (globalThis.CheckboxGroup !== undefined) {
20897  globalThis.CheckboxGroup.attributeModifier = function (modifier) {
20898    attributeModifierFunc.call(this, modifier, (nativePtr) => {
20899      return new ArkCheckboxGroupComponent(nativePtr);
20900    }, (nativePtr, classType, modifierJS) => {
20901      return new modifierJS.CheckboxGroupModifier(nativePtr, classType);
20902    });
20903  };
20904}
20905
20906/// <reference path='./import.ts' />
20907class ArkPanelComponent extends ArkComponent {
20908  constructor(nativePtr, classType) {
20909    super(nativePtr, classType);
20910  }
20911  mode(value) {
20912    modifierWithKey(this._modifiersWithKeys, PanelModeModifier.identity, PanelModeModifier, value);
20913    return this;
20914  }
20915  type(value) {
20916    modifierWithKey(this._modifiersWithKeys, PanelTypeModifier.identity, PanelTypeModifier, value);
20917    return this;
20918  }
20919  dragBar(value) {
20920    modifierWithKey(this._modifiersWithKeys, DragBarModifier.identity, DragBarModifier, value);
20921    return this;
20922  }
20923  customHeight(value) {
20924    modifierWithKey(this._modifiersWithKeys, PanelCustomHeightModifier.identity, PanelCustomHeightModifier, value);
20925    return this;
20926  }
20927  fullHeight(value) {
20928    modifierWithKey(this._modifiersWithKeys, PanelFullHeightModifier.identity, PanelFullHeightModifier, value);
20929    return this;
20930  }
20931  halfHeight(value) {
20932    modifierWithKey(this._modifiersWithKeys, PanelHalfHeightModifier.identity, PanelHalfHeightModifier, value);
20933    return this;
20934  }
20935  miniHeight(value) {
20936    modifierWithKey(this._modifiersWithKeys, PanelMiniHeightModifier.identity, PanelMiniHeightModifier, value);
20937    return this;
20938  }
20939  show(value) {
20940    modifierWithKey(this._modifiersWithKeys, ShowModifier.identity, ShowModifier, value);
20941    return this;
20942  }
20943  backgroundMask(color) {
20944    modifierWithKey(this._modifiersWithKeys, PanelBackgroundMaskModifier.identity, PanelBackgroundMaskModifier, color);
20945    return this;
20946  }
20947  showCloseIcon(value) {
20948    modifierWithKey(this._modifiersWithKeys, ShowCloseIconModifier.identity, ShowCloseIconModifier, value);
20949    return this;
20950  }
20951  onChange(event) {
20952    throw new Error('Method not implemented.');
20953  }
20954  onHeightChange(callback) {
20955    throw new Error('Method not implemented.');
20956  }
20957}
20958class PanelBackgroundMaskModifier extends ModifierWithKey {
20959  constructor(value) {
20960    super(value);
20961  }
20962  applyPeer(node, reset) {
20963    if (reset) {
20964      getUINativeModule().panel.resetPanelBackgroundMask(node);
20965    }
20966    else {
20967      getUINativeModule().panel.setPanelBackgroundMask(node, this.value);
20968    }
20969  }
20970  checkObjectDiff() {
20971    return !isBaseOrResourceEqual(this.stageValue, this.value);
20972  }
20973}
20974PanelBackgroundMaskModifier.identity = Symbol('panelBackgroundMask');
20975class PanelModeModifier extends ModifierWithKey {
20976  constructor(value) {
20977    super(value);
20978  }
20979  applyPeer(node, reset) {
20980    if (reset) {
20981      getUINativeModule().panel.resetPanelMode(node);
20982    }
20983    else {
20984      getUINativeModule().panel.setPanelMode(node, this.value);
20985    }
20986  }
20987  checkObjectDiff() {
20988    return !isBaseOrResourceEqual(this.stageValue, this.value);
20989  }
20990}
20991PanelModeModifier.identity = Symbol('panelMode');
20992class PanelTypeModifier extends ModifierWithKey {
20993  constructor(value) {
20994    super(value);
20995  }
20996  applyPeer(node, reset) {
20997    if (reset) {
20998      getUINativeModule().panel.resetPanelType(node);
20999    }
21000    else {
21001      getUINativeModule().panel.setPanelType(node, this.value);
21002    }
21003  }
21004  checkObjectDiff() {
21005    return !isBaseOrResourceEqual(this.stageValue, this.value);
21006  }
21007}
21008PanelTypeModifier.identity = Symbol('panelType');
21009class PanelCustomHeightModifier extends ModifierWithKey {
21010  constructor(value) {
21011    super(value);
21012  }
21013  applyPeer(node, reset) {
21014    if (reset) {
21015      getUINativeModule().panel.resetPanelCustomHeight(node);
21016    }
21017    else {
21018      getUINativeModule().panel.setPanelCustomHeight(node, this.value);
21019    }
21020  }
21021  checkObjectDiff() {
21022    return !isBaseOrResourceEqual(this.stageValue, this.value);
21023  }
21024}
21025PanelCustomHeightModifier.identity = Symbol('panelCustomHeight');
21026class PanelFullHeightModifier extends ModifierWithKey {
21027  constructor(value) {
21028    super(value);
21029  }
21030  applyPeer(node, reset) {
21031    if (reset) {
21032      getUINativeModule().panel.resetPanelFullHeight(node);
21033    }
21034    else {
21035      getUINativeModule().panel.setPanelFullHeight(node, this.value);
21036    }
21037  }
21038  checkObjectDiff() {
21039    return !isBaseOrResourceEqual(this.stageValue, this.value);
21040  }
21041}
21042PanelFullHeightModifier.identity = Symbol('panelFullHeight');
21043class PanelHalfHeightModifier extends ModifierWithKey {
21044  constructor(value) {
21045    super(value);
21046  }
21047  applyPeer(node, reset) {
21048    if (reset) {
21049      getUINativeModule().panel.resetPanelHalfHeight(node);
21050    }
21051    else {
21052      getUINativeModule().panel.setPanelHalfHeight(node, this.value);
21053    }
21054  }
21055  checkObjectDiff() {
21056    return !isBaseOrResourceEqual(this.stageValue, this.value);
21057  }
21058}
21059PanelHalfHeightModifier.identity = Symbol('panelHalfHeight');
21060class PanelMiniHeightModifier extends ModifierWithKey {
21061  constructor(value) {
21062    super(value);
21063  }
21064  applyPeer(node, reset) {
21065    if (reset) {
21066      getUINativeModule().panel.resetPanelMiniHeight(node);
21067    }
21068    else {
21069      getUINativeModule().panel.setPanelMiniHeight(node, this.value);
21070    }
21071  }
21072  checkObjectDiff() {
21073    return !isBaseOrResourceEqual(this.stageValue, this.value);
21074  }
21075}
21076PanelMiniHeightModifier.identity = Symbol('panelMiniHeight');
21077class ShowCloseIconModifier extends ModifierWithKey {
21078  constructor(value) {
21079    super(value);
21080  }
21081  applyPeer(node, reset) {
21082    if (reset) {
21083      getUINativeModule().panel.resetShowCloseIcon(node);
21084    }
21085    else {
21086      getUINativeModule().panel.setShowCloseIcon(node, this.value);
21087    }
21088  }
21089  checkObjectDiff() {
21090    return !isBaseOrResourceEqual(this.stageValue, this.value);
21091  }
21092}
21093ShowCloseIconModifier.identity = Symbol('showCloseIcon');
21094class DragBarModifier extends ModifierWithKey {
21095  constructor(value) {
21096    super(value);
21097  }
21098  applyPeer(node, reset) {
21099    if (reset) {
21100      getUINativeModule().panel.resetDragBar(node);
21101    }
21102    else {
21103      getUINativeModule().panel.setDragBar(node, this.value);
21104    }
21105  }
21106  checkObjectDiff() {
21107    return !isBaseOrResourceEqual(this.stageValue, this.value);
21108  }
21109}
21110DragBarModifier.identity = Symbol('dragBar');
21111class ShowModifier extends ModifierWithKey {
21112  constructor(value) {
21113    super(value);
21114  }
21115  applyPeer(node, reset) {
21116    if (reset) {
21117      getUINativeModule().panel.resetShow(node);
21118    }
21119    else {
21120      getUINativeModule().panel.setShow(node, this.value);
21121    }
21122  }
21123  checkObjectDiff() {
21124    return !isBaseOrResourceEqual(this.stageValue, this.value);
21125  }
21126}
21127ShowModifier.identity = Symbol('show');
21128// @ts-ignore
21129if (globalThis.Panel !== undefined) {
21130  globalThis.Panel.attributeModifier = function (modifier) {
21131    attributeModifierFunc.call(this, modifier, (nativePtr) => {
21132      return new ArkPanelComponent(nativePtr);
21133    }, (nativePtr, classType, modifierJS) => {
21134      return new modifierJS.PanelModifier(nativePtr, classType);
21135    });
21136  };
21137}
21138
21139/// <reference path='./import.ts' />
21140const TITLE_MODE_RANGE = 2;
21141const NAV_BAR_POSITION_RANGE = 1;
21142const NAVIGATION_MODE_RANGE = 2;
21143const DEFAULT_NAV_BAR_WIDTH = 240;
21144const MIN_NAV_BAR_WIDTH_DEFAULT = '240vp';
21145const MAX_NAV_BAR_WIDTH_DEFAULT = '40%';
21146const NAVIGATION_TITLE_MODE_DEFAULT = 0;
21147const DEFAULT_UNIT = 'vp';
21148class ArkNavigationComponent extends ArkComponent {
21149  constructor(nativePtr, classType) {
21150    super(nativePtr, classType);
21151  }
21152  navBarWidth(value) {
21153    modifierWithKey(this._modifiersWithKeys, NavBarWidthModifier.identity, NavBarWidthModifier, value);
21154    return this;
21155  }
21156  navBarPosition(value) {
21157    modifierWithKey(this._modifiersWithKeys, NavBarPositionModifier.identity, NavBarPositionModifier, value);
21158    return this;
21159  }
21160  navBarWidthRange(value) {
21161    modifierWithKey(this._modifiersWithKeys, NavBarWidthRangeModifier.identity, NavBarWidthRangeModifier, value);
21162    return this;
21163  }
21164  minContentWidth(value) {
21165    modifierWithKey(this._modifiersWithKeys, MinContentWidthModifier.identity, MinContentWidthModifier, value);
21166    return this;
21167  }
21168  enableDragBar(value) {
21169    modifierWithKey(this._modifiersWithKeys, NavigationEnableDragBarModifier.identity, NavigationEnableDragBarModifier, value);
21170    return this;
21171  }
21172  mode(value) {
21173    modifierWithKey(this._modifiersWithKeys, ModeModifier.identity, ModeModifier, value);
21174    return this;
21175  }
21176  backButtonIcon(value) {
21177    modifierWithKey(this._modifiersWithKeys, BackButtonIconModifier.identity, BackButtonIconModifier, value);
21178    return this;
21179  }
21180  hideNavBar(value) {
21181    modifierWithKey(this._modifiersWithKeys, HideNavBarModifier.identity, HideNavBarModifier, value);
21182    return this;
21183  }
21184  title(value, options) {
21185    if (isUndefined(value) || isNull(value)) {
21186      modifierWithKey(this._modifiersWithKeys, TitleModifier.identity,
21187        TitleModifier, undefined);
21188      return this;
21189    }
21190    let arkNavigationTitle = new ArkNavigationTitle();
21191    arkNavigationTitle.value = value;
21192    if (!isUndefined(options) && !isNull(options) && isObject(options)) {
21193      if (Object.keys(options).length !== 0) {
21194        arkNavigationTitle.navigationTitleOptions = options;
21195      }
21196    }
21197    modifierWithKey(this._modifiersWithKeys, TitleModifier.identity,
21198      TitleModifier, arkNavigationTitle);
21199    return this;
21200  }
21201  subTitle(value) {
21202    modifierWithKey(this._modifiersWithKeys, SubTitleModifier.identity, SubTitleModifier, value);
21203    return this;
21204  }
21205  hideTitleBar(isHide, animated) {
21206    let arkNavigationHideTitleBar = new ArkNavHideTitleBarOrToolBar();
21207    if (!isUndefined(isHide) && !isNull(isHide)) {
21208      arkNavigationHideTitleBar.isHide = isHide;
21209    }
21210    if (!isUndefined(animated) && !isNull(animated)) {
21211      arkNavigationHideTitleBar.animated = animated;
21212    }
21213    if (arkNavigationHideTitleBar.isHide === undefined && arkNavigationHideTitleBar.animated === undefined) {
21214        modifierWithKey(this._modifiersWithKeys, NavigationHideTitleBarModifier.identity, NavigationHideTitleBarModifier, undefined);
21215    } else {
21216        modifierWithKey(this._modifiersWithKeys, NavigationHideTitleBarModifier.identity, NavigationHideTitleBarModifier, arkNavigationHideTitleBar);
21217    }
21218    return this;
21219  }
21220  hideBackButton(value) {
21221    modifierWithKey(this._modifiersWithKeys, HideBackButtonModifier.identity, HideBackButtonModifier, value);
21222    return this;
21223  }
21224  titleMode(value) {
21225    modifierWithKey(this._modifiersWithKeys, TitleModeModifier.identity, TitleModeModifier, value);
21226    return this;
21227  }
21228  menus(value) {
21229    if (isUndefined(value)) {
21230      modifierWithKey(this._modifiersWithKeys, MenusModifier.identity, MenusModifier, undefined);
21231      return this;
21232    }
21233    modifierWithKey(this._modifiersWithKeys, MenusModifier.identity, MenusModifier, value);
21234    return this;
21235  }
21236  toolBar(value) {
21237    throw new Error('Method not implemented.');
21238  }
21239  toolbarConfiguration(value) {
21240    throw new Error('Method not implemented.');
21241  }
21242  hideToolBar(isHide, animated) {
21243    let arkNavigationHideToolBar = new ArkNavHideTitleBarOrToolBar();
21244    if (!isUndefined(isHide) && !isNull(isHide)) {
21245      arkNavigationHideToolBar.isHide = isHide;
21246    }
21247    if (!isUndefined(animated) && !isNull(animated)) {
21248      arkNavigationHideToolBar.animated = animated;
21249    }
21250    if (arkNavigationHideToolBar.isHide === undefined && arkNavigationHideToolBar.animated === undefined) {
21251        modifierWithKey(this._modifiersWithKeys, HideToolBarModifier.identity, HideToolBarModifier, undefined);
21252    } else {
21253        modifierWithKey(this._modifiersWithKeys, HideToolBarModifier.identity, HideToolBarModifier, arkNavigationHideToolBar);
21254    }
21255    return this;
21256  }
21257  onTitleModeChange(callback) {
21258    throw new Error('Method not implemented.');
21259  }
21260  onNavBarStateChange(callback) {
21261    throw new Error('Method not implemented.');
21262  }
21263  onNavigationModeChange(callback) {
21264    throw new Error('Method not implemented.');
21265  }
21266  navDestination(builder) {
21267    throw new Error('Method not implemented.');
21268  }
21269  ignoreLayoutSafeArea(types, edges) {
21270    let opts = new ArkSafeAreaExpandOpts();
21271    if (types && types.length >= 0) {
21272      let safeAreaType = '';
21273      for (let param of types) {
21274        if (!isNumber(param) || param >= SAFE_AREA_TYPE_LIMIT || param < SAFE_AREA_LOWER_LIMIT) {
21275          safeAreaType = undefined;
21276          break;
21277        }
21278        if (safeAreaType) {
21279          safeAreaType += '|';
21280          safeAreaType += param.toString();
21281        }
21282        else {
21283          safeAreaType += param.toString();
21284        }
21285      }
21286      opts.type = safeAreaType;
21287    }
21288    if (edges && edges.length >= 0) {
21289      let safeAreaEdge = '';
21290      for (let param of edges) {
21291        if (!isNumber(param) || param >= SAFE_AREA_EDGE_LIMIT || param < SAFE_AREA_LOWER_LIMIT) {
21292          safeAreaEdge = undefined;
21293          break;
21294        }
21295        if (safeAreaEdge) {
21296          safeAreaEdge += '|';
21297          safeAreaEdge += param.toString();
21298        }
21299        else {
21300          safeAreaEdge += param.toString();
21301        }
21302      }
21303      opts.edges = safeAreaEdge;
21304    }
21305    if (opts.type === undefined && opts.edges === undefined) {
21306      modifierWithKey(this._modifiersWithKeys, IgnoreNavLayoutSafeAreaModifier.identity, IgnoreNavLayoutSafeAreaModifier, undefined);
21307    }
21308    else {
21309      modifierWithKey(this._modifiersWithKeys, IgnoreNavLayoutSafeAreaModifier.identity, IgnoreNavLayoutSafeAreaModifier, opts);
21310    }
21311    return this;
21312  }
21313  recoverable(value) {
21314    modifierWithKey(this._modifiersWithKeys, NavigationRecoverableModifier.identity, NavigationRecoverableModifier, value);
21315    return this;
21316  }
21317}
21318class BackButtonIconModifier extends ModifierWithKey {
21319  constructor(value) {
21320    super(value);
21321  }
21322  applyPeer(node, reset) {
21323    if (reset) {
21324      getUINativeModule().navigation.resetBackButtonIcon(node);
21325    }
21326    else {
21327      getUINativeModule().navigation.setBackButtonIcon(node, this.value);
21328    }
21329  }
21330  checkObjectDiff() {
21331    return !isBaseOrResourceEqual(this.stageValue, this.value);
21332  }
21333}
21334BackButtonIconModifier.identity = Symbol('backButtonIcon');
21335class NavBarWidthRangeModifier extends ModifierWithKey {
21336  constructor(value) {
21337    super(value);
21338  }
21339  applyPeer(node, reset) {
21340    if (reset) {
21341      getUINativeModule().navigation.resetNavBarWidthRange(node);
21342    }
21343    else {
21344      getUINativeModule().navigation.setNavBarWidthRange(node, this.value);
21345    }
21346  }
21347  checkObjectDiff() {
21348    return !isBaseOrResourceEqual(this.stageValue, this.value);
21349  }
21350}
21351NavBarWidthRangeModifier.identity = Symbol('navBarWidthRange');
21352class MinContentWidthModifier extends ModifierWithKey {
21353  constructor(value) {
21354    super(value);
21355  }
21356  applyPeer(node, reset) {
21357    if (reset) {
21358      getUINativeModule().navigation.resetMinContentWidth(node);
21359    }
21360    else {
21361      getUINativeModule().navigation.setMinContentWidth(node, this.value);
21362    }
21363  }
21364  checkObjectDiff() {
21365    return !isBaseOrResourceEqual(this.stageValue, this.value);
21366  }
21367}
21368MinContentWidthModifier.identity = Symbol('minContentWidth');
21369class NavBarWidthModifier extends ModifierWithKey {
21370  constructor(value) {
21371    super(value);
21372  }
21373  applyPeer(node, reset) {
21374    if (reset) {
21375      getUINativeModule().navigation.resetNavBarWidth(node);
21376    }
21377    else {
21378      getUINativeModule().navigation.setNavBarWidth(node, this.value);
21379    }
21380  }
21381  checkObjectDiff() {
21382    return !isBaseOrResourceEqual(this.stageValue, this.value);
21383  }
21384}
21385NavBarWidthModifier.identity = Symbol('navBarWidth');
21386class NavBarPositionModifier extends ModifierWithKey {
21387  constructor(value) {
21388    super(value);
21389  }
21390  applyPeer(node, reset) {
21391    if (reset) {
21392      getUINativeModule().navigation.resetNavBarPosition(node);
21393    }
21394    else {
21395      getUINativeModule().navigation.setNavBarPosition(node, this.value);
21396    }
21397  }
21398}
21399NavBarPositionModifier.identity = Symbol('navBarPosition');
21400class ModeModifier extends ModifierWithKey {
21401  constructor(value) {
21402    super(value);
21403  }
21404  static identity = Symbol('mode');
21405  applyPeer(node, reset) {
21406    if (reset) {
21407      getUINativeModule().navigation.resetMode(node);
21408    }
21409    else {
21410      getUINativeModule().navigation.setMode(node, this.value);
21411    }
21412  }
21413}
21414class NavDestinationBackButtonIconModifier extends ModifierWithKey {
21415  constructor(value) {
21416    super(value);
21417  }
21418  static identity = Symbol('backButtonIcon');
21419  applyPeer(node, reset) {
21420    if (reset) {
21421      getUINativeModule().navDestination.resetBackButtonIcon(node);
21422    } else {
21423      getUINativeModule().navDestination.setBackButtonIcon(node, this.value);
21424    }
21425  }
21426}
21427
21428class NavDestinationModeModifier extends ModifierWithKey {
21429  constructor(value) {
21430    super(value);
21431  }
21432  applyPeer(node, reset) {
21433    if (reset) {
21434      getUINativeModule().navDestination.resetMode(node);
21435    }
21436    else {
21437      getUINativeModule().navDestination.setMode(node, this.value);
21438    }
21439  }
21440}
21441NavDestinationModeModifier.identity = Symbol('mode');
21442
21443class NavDestinationSystemTransitionModifier extends ModifierWithKey {
21444  constructor(value) {
21445    super(value);
21446  }
21447  applyPeer(node, reset) {
21448    if (reset) {
21449      getUINativeModule().navDestination.resetSystemTransition(node);
21450    }
21451    else {
21452      getUINativeModule().navDestination.setSystemTransition(node, this.value);
21453    }
21454  }
21455}
21456NavDestinationSystemTransitionModifier.identity = Symbol('systemTransition');
21457
21458class HideToolBarModifier extends ModifierWithKey {
21459  constructor(value) {
21460    super(value);
21461  }
21462  applyPeer(node, reset) {
21463    if (reset) {
21464      getUINativeModule().navigation.resetHideToolBar(node);
21465    }
21466    else {
21467      getUINativeModule().navigation.setHideToolBar(node, this.value?.isHide, this.value?.animated);
21468    }
21469  }
21470}
21471HideToolBarModifier.identity = Symbol('hideToolBar');
21472class TitleModeModifier extends ModifierWithKey {
21473  constructor(value) {
21474    super(value);
21475  }
21476  applyPeer(node, reset) {
21477    if (reset) {
21478      getUINativeModule().navigation.resetTitleMode(node);
21479    }
21480    else {
21481      getUINativeModule().navigation.setTitleMode(node, this.value);
21482    }
21483  }
21484}
21485TitleModeModifier.identity = Symbol('titleMode');
21486class HideBackButtonModifier extends ModifierWithKey {
21487  constructor(value) {
21488    super(value);
21489  }
21490  applyPeer(node, reset) {
21491    if (reset) {
21492      getUINativeModule().navigation.resetHideBackButton(node);
21493    }
21494    else {
21495      getUINativeModule().navigation.setHideBackButton(node, this.value);
21496    }
21497  }
21498}
21499HideBackButtonModifier.identity = Symbol('hideBackButton');
21500class SubTitleModifier extends ModifierWithKey {
21501  constructor(value) {
21502    super(value);
21503  }
21504  applyPeer(node, reset) {
21505    if (reset) {
21506      getUINativeModule().navigation.resetSubTitle(node);
21507    }
21508    else {
21509      getUINativeModule().navigation.setSubTitle(node, this.value);
21510    }
21511  }
21512}
21513SubTitleModifier.identity = Symbol('subTitle');
21514class NavigationHideTitleBarModifier extends ModifierWithKey {
21515  constructor(value) {
21516    super(value);
21517  }
21518  applyPeer(node, reset) {
21519    if (reset) {
21520      getUINativeModule().navigation.resetHideTitleBar(node);
21521    }
21522    else {
21523      getUINativeModule().navigation.setHideTitleBar(node, this.value?.isHide, this.value?.animated);
21524    }
21525  }
21526}
21527NavigationHideTitleBarModifier.identity = Symbol('hideTitleBar');
21528class HideNavBarModifier extends ModifierWithKey {
21529  constructor(value) {
21530    super(value);
21531  }
21532  applyPeer(node, reset) {
21533    if (reset) {
21534      getUINativeModule().navigation.resetHideNavBar(node);
21535    }
21536    else {
21537      getUINativeModule().navigation.setHideNavBar(node, this.value);
21538    }
21539  }
21540}
21541HideNavBarModifier.identity = Symbol('hideNavBar');
21542
21543class NavigationEnableDragBarModifier extends ModifierWithKey {
21544  constructor(value) {
21545    super(value);
21546  }
21547
21548  applyPeer(node, reset) {
21549    if (reset) {
21550      getUINativeModule().navigation.resetEnableDragBar(node);
21551    } else {
21552      getUINativeModule().navigation.setEnableDragBar(node, this.value);
21553    }
21554  }
21555}
21556NavigationEnableDragBarModifier.identity = Symbol('enableDragBar');
21557class IgnoreNavLayoutSafeAreaModifier extends ModifierWithKey {
21558  constructor(value) {
21559    super(value);
21560  }
21561  applyPeer(node, reset) {
21562    if (reset) {
21563      getUINativeModule().navigation.resetIgnoreLayoutSafeArea(node);
21564    }
21565    else {
21566      getUINativeModule().navigation.setIgnoreLayoutSafeArea(node, this.value.type, this.value.edges);
21567    }
21568  }
21569  checkObjectDiff() {
21570    return !isBaseOrResourceEqual(this.stageValue.type, this.value.type) ||
21571      !isBaseOrResourceEqual(this.stageValue.edges, this.value.edges);
21572  }
21573}
21574IgnoreNavLayoutSafeAreaModifier.identity = Symbol('ignoreLayoutSafeArea');
21575
21576class NavigationRecoverableModifier extends ModifierWithKey {
21577  constructor(value) {
21578    super(value);
21579  }
21580
21581  applyPeer(node, reset) {
21582    if (reset) {
21583      getUINativeModule().navigation.resetRecoverable(node);
21584    } else {
21585      getUINativeModule().navigation.setRecoverable(node, this.value);
21586    }
21587  }
21588}
21589NavigationRecoverableModifier.identity = Symbol('recoverable');
21590
21591class MenusModifier extends ModifierWithKey {
21592  constructor(value) {
21593    super(value);
21594  }
21595  applyPeer(node, reset) {
21596    if (reset) {
21597      getUINativeModule().navigation.resetMenus(node);
21598    } else {
21599      getUINativeModule().navigation.setMenus(node, this.value);
21600    }
21601  }
21602  checkObjectDiff() {
21603    if (!Array.isArray(this.value) || !Array.isArray(this.stageValue)) {
21604      return true;
21605    }
21606    if (this.value.length !== this.stageValue.length) {
21607      return true;
21608    }
21609    for (let i = 0; i < this.value.length; i++) {
21610      if (!(isBaseOrResourceEqual(this.stageValue[i].value, this.value[i].value) &&
21611        isBaseOrResourceEqual(this.stageValue[i].icon, this.value[i].icon) &&
21612        isBaseOrResourceEqual(this.stageValue[i].isEnabled, this.value[i].isEnabled) &&
21613        isBaseOrResourceEqual(this.stageValue[i].action, this.value[i].action) &&
21614        isBaseOrResourceEqual(this.stageValue[i].symbolIcon, this.value[i].symbolIcon)
21615      )) {
21616        return true;
21617      }
21618    }
21619    return false;
21620  }
21621}
21622MenusModifier.identity = Symbol('menus');
21623
21624class TitleModifier extends ModifierWithKey {
21625  constructor(value) {
21626    super(value);
21627  }
21628  applyPeer(node, reset) {
21629    if (reset) {
21630      getUINativeModule().navigation.resetTitle(node);
21631    } else {
21632      getUINativeModule().navigation.setTitle(node, this.value?.value, this.value?.navigationTitleOptions);
21633    }
21634  }
21635  checkObjectDiff() {
21636    return !this.value.isEqual(this.stageValue);
21637  }
21638}
21639TitleModifier.identity = Symbol('title');
21640
21641// @ts-ignore
21642if (globalThis.Navigation !== undefined) {
21643  globalThis.Navigation.attributeModifier = function (modifier) {
21644    attributeModifierFunc.call(this, modifier, (nativePtr) => {
21645      return new ArkNavigationComponent(nativePtr);
21646    }, (nativePtr, classType, modifierJS) => {
21647      return new modifierJS.NavigationModifier(nativePtr, classType);
21648    });
21649  };
21650}
21651
21652/// <reference path='./import.ts' />
21653class ArkNavRouterComponent extends ArkComponent {
21654  constructor(nativePtr, classType) {
21655    super(nativePtr, classType);
21656  }
21657  onStateChange(callback) {
21658    throw new Error('Method not implemented.');
21659  }
21660  mode(mode) {
21661    modifierWithKey(this._modifiersWithKeys, NavRouterModeModifier.identity, NavRouterModeModifier, mode);
21662    return this;
21663  }
21664}
21665class NavRouterModeModifier extends ModifierWithKey {
21666  constructor(value) {
21667    super(value);
21668  }
21669  applyPeer(node, reset) {
21670    if (reset) {
21671      getUINativeModule().navRouter.resetMode(node);
21672    }
21673    else {
21674      getUINativeModule().navRouter.setMode(node, this.value);
21675    }
21676  }
21677}
21678NavRouterModeModifier.identity = Symbol('mode');
21679// @ts-ignore
21680if (globalThis.NavRouter !== undefined) {
21681  globalThis.NavRouter.attributeModifier = function (modifier) {
21682    attributeModifierFunc.call(this, modifier, (nativePtr) => {
21683      return new ArkNavRouterComponent(nativePtr);
21684    }, (nativePtr, classType, modifierJS) => {
21685      return new modifierJS.NavRouterModifier(nativePtr, classType);
21686    });
21687  };
21688}
21689
21690/// <reference path='./import.ts' />
21691class ArkNavigatorComponent extends ArkComponent {
21692  constructor(nativePtr, classType) {
21693    super(nativePtr, classType);
21694  }
21695  active(value) {
21696    modifierWithKey(this._modifiersWithKeys, ActiveModifier.identity, ActiveModifier, value);
21697    return this;
21698  }
21699  type(value) {
21700    modifierWithKey(this._modifiersWithKeys, TypeModifier.identity, TypeModifier, value);
21701    return this;
21702  }
21703  target(value) {
21704    modifierWithKey(this._modifiersWithKeys, TargetModifier.identity, TargetModifier, value);
21705    return this;
21706  }
21707  params(value) {
21708    modifierWithKey(this._modifiersWithKeys, ParamsModifier.identity, ParamsModifier, JSON.stringify(value));
21709    return this;
21710  }
21711}
21712class ParamsModifier extends ModifierWithKey {
21713  constructor(value) {
21714    super(value);
21715  }
21716  applyPeer(node, reset) {
21717    if (reset) {
21718      getUINativeModule().navigator.resetParams(node);
21719    }
21720    else {
21721      getUINativeModule().navigator.setParams(node, this.value);
21722    }
21723  }
21724}
21725ParamsModifier.identity = Symbol('params');
21726class TypeModifier extends ModifierWithKey {
21727  constructor(value) {
21728    super(value);
21729  }
21730  applyPeer(node, reset) {
21731    if (reset) {
21732      getUINativeModule().navigator.resetType(node);
21733    }
21734    else {
21735      getUINativeModule().navigator.setType(node, this.value);
21736    }
21737  }
21738}
21739TypeModifier.identity = Symbol('type');
21740class ActiveModifier extends ModifierWithKey {
21741  constructor(value) {
21742    super(value);
21743  }
21744  applyPeer(node, reset) {
21745    if (reset) {
21746      getUINativeModule().navigator.resetActive(node);
21747    }
21748    else {
21749      getUINativeModule().navigator.setActive(node, this.value);
21750    }
21751  }
21752}
21753ActiveModifier.identity = Symbol('active');
21754class TargetModifier extends ModifierWithKey {
21755  constructor(value) {
21756    super(value);
21757  }
21758  applyPeer(node, reset) {
21759    if (reset) {
21760      getUINativeModule().navigator.resetTarget(node);
21761    }
21762    else {
21763      getUINativeModule().navigator.setTarget(node, this.value);
21764    }
21765  }
21766}
21767TargetModifier.identity = Symbol('target');
21768// @ts-ignore
21769if (globalThis.Navigator !== undefined) {
21770  globalThis.Navigator.attributeModifier = function (modifier) {
21771    attributeModifierFunc.call(this, modifier, (nativePtr) => {
21772      return new ArkNavigatorComponent(nativePtr);
21773    }, (nativePtr, classType, modifierJS) => {
21774      return new modifierJS.NavigatorModifier(nativePtr, classType);
21775    });
21776  };
21777}
21778
21779/// <reference path='./import.ts' />
21780class ArkAlphabetIndexerComponent extends ArkComponent {
21781  constructor(nativePtr, classType) {
21782    super(nativePtr, classType);
21783  }
21784  onSelected(callback) {
21785    throw new Error('Method not implemented.');
21786  }
21787  color(value) {
21788    modifierWithKey(this._modifiersWithKeys, ColorModifier.identity, ColorModifier, value);
21789    return this;
21790  }
21791  selectedColor(value) {
21792    modifierWithKey(this._modifiersWithKeys, SelectedColorModifier.identity, SelectedColorModifier, value);
21793    return this;
21794  }
21795  popupColor(value) {
21796    modifierWithKey(this._modifiersWithKeys, PopupColorModifier.identity, PopupColorModifier, value);
21797    return this;
21798  }
21799  selectedBackgroundColor(value) {
21800    modifierWithKey(this._modifiersWithKeys, SelectedBackgroundColorModifier.identity, SelectedBackgroundColorModifier, value);
21801    return this;
21802  }
21803  popupBackground(value) {
21804    modifierWithKey(this._modifiersWithKeys, PopupBackgroundModifier.identity, PopupBackgroundModifier, value);
21805    return this;
21806  }
21807  popupSelectedColor(value) {
21808    modifierWithKey(this._modifiersWithKeys, PopupSelectedColorModifier.identity, PopupSelectedColorModifier, value);
21809    return this;
21810  }
21811  popupUnselectedColor(value) {
21812    modifierWithKey(this._modifiersWithKeys, PopupUnselectedColorModifier.identity, PopupUnselectedColorModifier, value);
21813    return this;
21814  }
21815  popupItemBackgroundColor(value) {
21816    modifierWithKey(this._modifiersWithKeys, PopupItemBackgroundColorModifier.identity, PopupItemBackgroundColorModifier, value);
21817    return this;
21818  }
21819  usingPopup(value) {
21820    modifierWithKey(this._modifiersWithKeys, UsingPopupModifier.identity, UsingPopupModifier, value);
21821    return this;
21822  }
21823  selectedFont(value) {
21824    modifierWithKey(this._modifiersWithKeys, SelectedFontModifier.identity, SelectedFontModifier, value);
21825    return this;
21826  }
21827  popupFont(value) {
21828    modifierWithKey(this._modifiersWithKeys, PopupFontModifier.identity, PopupFontModifier, value);
21829    return this;
21830  }
21831  popupItemFont(value) {
21832    modifierWithKey(this._modifiersWithKeys, PopupItemFontModifier.identity, PopupItemFontModifier, value);
21833    return this;
21834  }
21835  itemSize(value) {
21836    modifierWithKey(this._modifiersWithKeys, ItemSizeModifier.identity, ItemSizeModifier, value);
21837    return this;
21838  }
21839  font(value) {
21840    modifierWithKey(this._modifiersWithKeys, AlphabetIndexerFontModifier.identity, AlphabetIndexerFontModifier, value);
21841    return this;
21842  }
21843  alignStyle(value, offset) {
21844    let alignStyle = new ArkAlignStyle;
21845    alignStyle.indexerAlign = value;
21846    alignStyle.offset = offset;
21847    modifierWithKey(this._modifiersWithKeys, AlignStyleModifier.identity, AlignStyleModifier, alignStyle);
21848    return this;
21849  }
21850  onSelect(callback) {
21851    throw new Error('Method not implemented.');
21852  }
21853  onRequestPopupData(callback) {
21854    throw new Error('Method not implemented.');
21855  }
21856  onPopupSelect(callback) {
21857    throw new Error('Method not implemented.');
21858  }
21859  selected(index) {
21860    modifierWithKey(this._modifiersWithKeys, AlphabetIndexerSelectedModifier.identity, AlphabetIndexerSelectedModifier, index);
21861    return this;
21862  }
21863  popupPosition(value) {
21864    modifierWithKey(this._modifiersWithKeys, PopupPositionModifier.identity, PopupPositionModifier, value);
21865    return this;
21866  }
21867  popupItemBorderRadius(value) {
21868    modifierWithKey(this._modifiersWithKeys, PopupItemBorderRadiusModifier.identity, PopupItemBorderRadiusModifier, value);
21869    return this;
21870  }
21871  itemBorderRadius(value) {
21872    modifierWithKey(this._modifiersWithKeys, ItemBorderRadiusModifier.identity, ItemBorderRadiusModifier, value);
21873    return this;
21874  }
21875  popupBackgroundBlurStyle(value) {
21876    modifierWithKey(this._modifiersWithKeys, PopupBackgroundBlurStyleModifier.identity, PopupBackgroundBlurStyleModifier, value);
21877    return this;
21878  }
21879  popupTitleBackground(value) {
21880    modifierWithKey(this._modifiersWithKeys, PopupTitleBackgroundModifier.identity, PopupTitleBackgroundModifier, value);
21881    return this;
21882  }
21883  width(value) {
21884    modifierWithKey(this._modifiersWithKeys, AdaptiveWidthModifier.identity, AdaptiveWidthModifier, value);
21885    return this;
21886  }
21887  autoCollapse(value) {
21888    modifierWithKey(this._modifiersWithKeys, AutoCollapseModifier.identity, AutoCollapseModifier, value);
21889    return this;
21890  }
21891  enableHapticFeedback(value) {
21892    modifierWithKey(this._modifiersWithKeys, EnableHapticFeedbackModifier.identity, EnableHapticFeedbackModifier, value);
21893    return this;
21894  }
21895}
21896// @ts-ignore
21897if (globalThis.AlphabetIndexer !== undefined) {
21898  globalThis.AlphabetIndexer.attributeModifier = function (modifier) {
21899    attributeModifierFunc.call(this, modifier, (nativePtr) => {
21900      return new ArkAlphabetIndexerComponent(nativePtr);
21901    }, (nativePtr, classType, modifierJS) => {
21902      return new modifierJS.AlphabetIndexerModifier(nativePtr, classType);
21903    });
21904  };
21905}
21906
21907class PopupItemFontModifier extends ModifierWithKey {
21908  constructor(value) {
21909    super(value);
21910  }
21911  applyPeer(node, reset) {
21912    if (reset) {
21913      getUINativeModule().alphabetIndexer.resetPopupItemFont(node);
21914    }
21915    else {
21916      getUINativeModule().alphabetIndexer.setPopupItemFont(node, this.value.size, this.value.weight, this.value.family, this.value.style);
21917    }
21918  }
21919  checkObjectDiff() {
21920    let sizeEQ = isBaseOrResourceEqual(this.stageValue.size, this.value.size);
21921    let weightEQ = this.stageValue.weight === this.value.weight;
21922    let familyEQ = isBaseOrResourceEqual(this.stageValue.family, this.value.family);
21923    let styleEQ = this.stageValue.style === this.value.style;
21924    return !sizeEQ || !weightEQ || !familyEQ || !styleEQ;
21925  }
21926}
21927PopupItemFontModifier.identity = Symbol('popupItemFont');
21928class SelectedFontModifier extends ModifierWithKey {
21929  constructor(value) {
21930    super(value);
21931  }
21932  applyPeer(node, reset) {
21933    if (reset) {
21934      getUINativeModule().alphabetIndexer.resetSelectedFont(node);
21935    }
21936    else {
21937      getUINativeModule().alphabetIndexer.setSelectedFont(node, this.value.size, this.value.weight, this.value.family, this.value.style);
21938    }
21939  }
21940  checkObjectDiff() {
21941    let sizeEQ = isBaseOrResourceEqual(this.stageValue.size, this.value.size);
21942    let weightEQ = this.stageValue.weight === this.value.weight;
21943    let familyEQ = isBaseOrResourceEqual(this.stageValue.family, this.value.family);
21944    let styleEQ = this.stageValue.style === this.value.style;
21945    return !sizeEQ || !weightEQ || !familyEQ || !styleEQ;
21946  }
21947}
21948SelectedFontModifier.identity = Symbol('alphaBetIndexerSelectedFont');
21949class PopupFontModifier extends ModifierWithKey {
21950  constructor(value) {
21951    super(value);
21952  }
21953  applyPeer(node, reset) {
21954    if (reset) {
21955      getUINativeModule().alphabetIndexer.resetPopupFont(node);
21956    }
21957    else {
21958      getUINativeModule().alphabetIndexer.setPopupFont(node, this.value.size, this.value.weight, this.value.family, this.value.style);
21959    }
21960  }
21961  checkObjectDiff() {
21962    let sizeEQ = isBaseOrResourceEqual(this.stageValue.size, this.value.size);
21963    let weightEQ = this.stageValue.weight === this.value.weight;
21964    let familyEQ = isBaseOrResourceEqual(this.stageValue.family, this.value.family);
21965    let styleEQ = this.stageValue.style === this.value.style;
21966    return !sizeEQ || !weightEQ || !familyEQ || !styleEQ;
21967  }
21968}
21969PopupFontModifier.identity = Symbol('popupFont');
21970class AlphabetIndexerFontModifier extends ModifierWithKey {
21971  constructor(value) {
21972    super(value);
21973  }
21974  applyPeer(node, reset) {
21975    if (reset) {
21976      getUINativeModule().alphabetIndexer.resetFont(node);
21977    }
21978    else {
21979      getUINativeModule().alphabetIndexer.setFont(node, this.value.size, this.value.weight, this.value.family, this.value.style);
21980    }
21981  }
21982  checkObjectDiff() {
21983    let sizeEQ = isBaseOrResourceEqual(this.stageValue.size, this.value.size);
21984    let weightEQ = this.stageValue.weight === this.value.weight;
21985    let familyEQ = isBaseOrResourceEqual(this.stageValue.family, this.value.family);
21986    let styleEQ = this.stageValue.style === this.value.style;
21987    return !sizeEQ || !weightEQ || !familyEQ || !styleEQ;
21988  }
21989}
21990AlphabetIndexerFontModifier.identity = Symbol('alphaBetIndexerFont');
21991class PopupItemBackgroundColorModifier extends ModifierWithKey {
21992  constructor(value) {
21993    super(value);
21994  }
21995  applyPeer(node, reset) {
21996    if (reset) {
21997      getUINativeModule().alphabetIndexer.resetPopupItemBackgroundColor(node);
21998    }
21999    else {
22000      getUINativeModule().alphabetIndexer.setPopupItemBackgroundColor(node, this.value);
22001    }
22002  }
22003  checkObjectDiff() {
22004    return !isBaseOrResourceEqual(this.stageValue, this.value);
22005  }
22006}
22007PopupItemBackgroundColorModifier.identity = Symbol('popupItemBackgroundColor');
22008class ColorModifier extends ModifierWithKey {
22009  constructor(value) {
22010    super(value);
22011  }
22012  applyPeer(node, reset) {
22013    if (reset) {
22014      getUINativeModule().alphabetIndexer.resetColor(node);
22015    }
22016    else {
22017      getUINativeModule().alphabetIndexer.setColor(node, this.value);
22018    }
22019  }
22020  checkObjectDiff() {
22021    return !isBaseOrResourceEqual(this.stageValue, this.value);
22022  }
22023}
22024ColorModifier.identity = Symbol('alphabetColor');
22025class PopupColorModifier extends ModifierWithKey {
22026  constructor(value) {
22027    super(value);
22028  }
22029  applyPeer(node, reset) {
22030    if (reset) {
22031      getUINativeModule().alphabetIndexer.resetPopupColor(node);
22032    }
22033    else {
22034      getUINativeModule().alphabetIndexer.setPopupColor(node, this.value);
22035    }
22036  }
22037  checkObjectDiff() {
22038    return !isBaseOrResourceEqual(this.stageValue, this.value);
22039  }
22040}
22041PopupColorModifier.identity = Symbol('popupColor');
22042class SelectedColorModifier extends ModifierWithKey {
22043  constructor(value) {
22044    super(value);
22045  }
22046  applyPeer(node, reset) {
22047    if (reset) {
22048      getUINativeModule().alphabetIndexer.resetSelectedColor(node);
22049    }
22050    else {
22051      getUINativeModule().alphabetIndexer.setSelectedColor(node, this.value);
22052    }
22053  }
22054  checkObjectDiff() {
22055    return !isBaseOrResourceEqual(this.stageValue, this.value);
22056  }
22057}
22058SelectedColorModifier.identity = Symbol('selectedColor');
22059class PopupBackgroundModifier extends ModifierWithKey {
22060  constructor(value) {
22061    super(value);
22062  }
22063  applyPeer(node, reset) {
22064    if (reset) {
22065      getUINativeModule().alphabetIndexer.resetPopupBackground(node);
22066    }
22067    else {
22068      getUINativeModule().alphabetIndexer.setPopupBackground(node, this.value);
22069    }
22070  }
22071  checkObjectDiff() {
22072    return !isBaseOrResourceEqual(this.stageValue, this.value);
22073  }
22074}
22075PopupBackgroundModifier.identity = Symbol('popupBackground');
22076class SelectedBackgroundColorModifier extends ModifierWithKey {
22077  constructor(value) {
22078    super(value);
22079  }
22080  applyPeer(node, reset) {
22081    if (reset) {
22082      getUINativeModule().alphabetIndexer.resetSelectedBackgroundColor(node);
22083    }
22084    else {
22085      getUINativeModule().alphabetIndexer.setSelectedBackgroundColor(node, this.value);
22086    }
22087  }
22088  checkObjectDiff() {
22089    return !isBaseOrResourceEqual(this.stageValue, this.value);
22090  }
22091}
22092SelectedBackgroundColorModifier.identity = Symbol('selectedBackgroundColor');
22093class PopupUnselectedColorModifier extends ModifierWithKey {
22094  constructor(value) {
22095    super(value);
22096  }
22097  applyPeer(node, reset) {
22098    if (reset) {
22099      getUINativeModule().alphabetIndexer.resetPopupUnselectedColor(node);
22100    }
22101    else {
22102      getUINativeModule().alphabetIndexer.setPopupUnselectedColor(node, this.value);
22103    }
22104  }
22105  checkObjectDiff() {
22106    return !isBaseOrResourceEqual(this.stageValue, this.value);
22107  }
22108}
22109PopupUnselectedColorModifier.identity = Symbol('popupUnselectedColor');
22110class PopupSelectedColorModifier extends ModifierWithKey {
22111  constructor(value) {
22112    super(value);
22113  }
22114  applyPeer(node, reset) {
22115    if (reset) {
22116      getUINativeModule().alphabetIndexer.resetPopupSelectedColor(node);
22117    }
22118    else {
22119      getUINativeModule().alphabetIndexer.setPopupSelectedColor(node, this.value);
22120    }
22121  }
22122  checkObjectDiff() {
22123    return !isBaseOrResourceEqual(this.stageValue, this.value);
22124  }
22125}
22126PopupSelectedColorModifier.identity = Symbol('popupSelectedColor');
22127class AlignStyleModifier extends ModifierWithKey {
22128  constructor(value) {
22129    super(value);
22130  }
22131  applyPeer(node, reset) {
22132    if (reset) {
22133      getUINativeModule().alphabetIndexer.resetAlignStyle(node);
22134    }
22135    else {
22136      getUINativeModule().alphabetIndexer.setAlignStyle(node, this.value.indexerAlign, this.value.offset);
22137    }
22138  }
22139  checkObjectDiff() {
22140    let indexerAlignEQ = isBaseOrResourceEqual(this.stageValue.indexerAlign, this.value.indexerAlign);
22141    let offsetEQ = isBaseOrResourceEqual(this.stageValue.offset, this.value.offset);
22142    return !indexerAlignEQ || !offsetEQ;
22143  }
22144}
22145AlignStyleModifier.identity = Symbol('alignStyle');
22146class UsingPopupModifier extends ModifierWithKey {
22147  constructor(value) {
22148    super(value);
22149  }
22150  applyPeer(node, reset) {
22151    if (reset) {
22152      getUINativeModule().alphabetIndexer.resetUsingPopup(node);
22153    }
22154    else {
22155      getUINativeModule().alphabetIndexer.setUsingPopup(node, this.value);
22156    }
22157  }
22158}
22159UsingPopupModifier.identity = Symbol('usingPopup');
22160class AlphabetIndexerSelectedModifier extends ModifierWithKey {
22161  constructor(value) {
22162    super(value);
22163  }
22164  applyPeer(node, reset) {
22165    if (reset) {
22166      getUINativeModule().alphabetIndexer.resetSelected(node);
22167    }
22168    else {
22169      getUINativeModule().alphabetIndexer.setSelected(node, this.value);
22170    }
22171  }
22172}
22173AlphabetIndexerSelectedModifier.identity = Symbol('alphabetIndexerSelected');
22174class ItemSizeModifier extends ModifierWithKey {
22175  constructor(value) {
22176    super(value);
22177  }
22178  applyPeer(node, reset) {
22179    if (reset) {
22180      getUINativeModule().alphabetIndexer.resetItemSize(node);
22181    }
22182    else {
22183      getUINativeModule().alphabetIndexer.setItemSize(node, this.value);
22184    }
22185  }
22186}
22187ItemSizeModifier.identity = Symbol('itemSize');
22188class PopupPositionModifier extends ModifierWithKey {
22189  constructor(value) {
22190    super(value);
22191  }
22192  applyPeer(node, reset) {
22193    if (reset) {
22194      getUINativeModule().alphabetIndexer.resetPopupPosition(node);
22195    }
22196    else {
22197      getUINativeModule().alphabetIndexer.setPopupPosition(node, this.value.x, this.value.y);
22198    }
22199  }
22200  checkObjectDiff() {
22201    let xEQ = isBaseOrResourceEqual(this.stageValue.x, this.value.x);
22202    let yEQ = isBaseOrResourceEqual(this.stageValue.y, this.value.y);
22203    return !xEQ || !yEQ;
22204  }
22205}
22206PopupPositionModifier.identity = Symbol('popupPosition');
22207class PopupItemBorderRadiusModifier extends ModifierWithKey {
22208  constructor(value) {
22209    super(value);
22210  }
22211  applyPeer(node, reset) {
22212    if (reset) {
22213      getUINativeModule().alphabetIndexer.resetPopupItemBorderRadius(node);
22214    } else {
22215      getUINativeModule().alphabetIndexer.setPopupItemBorderRadius(node, this.value);
22216    }
22217  }
22218}
22219PopupItemBorderRadiusModifier.identity = Symbol('popupItemBorderRadius');
22220class ItemBorderRadiusModifier extends ModifierWithKey {
22221  constructor(value) {
22222    super(value);
22223  }
22224  applyPeer(node, reset) {
22225    if (reset) {
22226      getUINativeModule().alphabetIndexer.resetItemBorderRadius(node);
22227    } else {
22228      getUINativeModule().alphabetIndexer.setItemBorderRadius(node, this.value);
22229    }
22230  }
22231}
22232ItemBorderRadiusModifier.identity = Symbol('itemBorderRadius');
22233class PopupBackgroundBlurStyleModifier extends ModifierWithKey {
22234  constructor(value) {
22235    super(value);
22236  }
22237  applyPeer(node, reset) {
22238    if (reset) {
22239      getUINativeModule().alphabetIndexer.resetPopupBackgroundBlurStyle(node);
22240    } else {
22241      getUINativeModule().alphabetIndexer.setPopupBackgroundBlurStyle(node, this.value);
22242    }
22243  }
22244}
22245ItemBorderRadiusModifier.identity = Symbol('popupBackgroundBlurStyle');
22246
22247class PopupTitleBackgroundModifier extends ModifierWithKey {
22248  constructor(value) {
22249    super(value);
22250  }
22251  applyPeer(node, reset) {
22252    if (reset) {
22253      getUINativeModule().alphabetIndexer.resetPopupTitleBackground(node);
22254    } else {
22255      getUINativeModule().alphabetIndexer.setPopupTitleBackground(node, this.value);
22256    }
22257  }
22258}
22259PopupTitleBackgroundModifier.identity = Symbol('popupTitleBackground');
22260class AdaptiveWidthModifier extends ModifierWithKey {
22261  constructor(value) {
22262      super(value);
22263  }
22264  applyPeer(node, reset) {
22265    if (reset) {
22266        getUINativeModule().alphabetIndexer.resetAdaptiveWidth(node);
22267    } else {
22268        getUINativeModule().alphabetIndexer.setAdaptiveWidth(node, this.value);
22269    }
22270  }
22271}
22272AdaptiveWidthModifier.identity = Symbol('adaptiveWidth');
22273class AutoCollapseModifier extends ModifierWithKey {
22274  constructor(value) {
22275    super(value);
22276  }
22277  applyPeer(node, reset) {
22278    if (reset) {
22279      getUINativeModule().alphabetIndexer.resetAutoCollapse(node);
22280    }
22281    else {
22282      getUINativeModule().alphabetIndexer.setAutoCollapse(node, this.value);
22283    }
22284  }
22285  checkObjectDiff() {
22286    return !isBaseOrResourceEqual(this.stageValue, this.value);
22287  }
22288}
22289AutoCollapseModifier.identity = Symbol('autoCollapse');
22290class EnableHapticFeedbackModifier extends ModifierWithKey {
22291  constructor(value) {
22292    super(value);
22293  }
22294  applyPeer(node, reset) {
22295    if (reset) {
22296      getUINativeModule().alphabetIndexer.resetEnableHapticFeedback(node);
22297    }
22298    else {
22299      getUINativeModule().alphabetIndexer.setEnableHapticFeedback(node, this.value);
22300    }
22301  }
22302  checkObjectDiff() {
22303    return !isBaseOrResourceEqual(this.stageValue, this.value);
22304  }
22305}
22306EnableHapticFeedbackModifier.identity = Symbol('enableHapticFeedback');
22307
22308/// <reference path='./import.ts' />
22309class TextStyleModifier extends ModifierWithKey {
22310  constructor(value) {
22311    super(value);
22312  }
22313  applyPeer(node, reset) {
22314    let _a, _b, _c, _d, _e, _f, _g, _h;
22315    if (reset) {
22316      getUINativeModule().calendarPicker.resetTextStyle(node);
22317    }
22318    else {
22319      getUINativeModule().calendarPicker.setTextStyle(node, (_b = (_a = this.value) === null ||
22320      _a === void 0 ? void 0 : _a.color) !== null && _b !== void 0 ? _b : undefined,
22321      (_e = (_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.font) === null ||
22322      _d === void 0 ? void 0 : _d.size) !== null && _e !== void 0 ? _e : undefined, (_h =
22323      (_g = (_f = this.value) === null || _f === void 0 ? void 0 : _f.font) === null ||
22324      _g === void 0 ? void 0 : _g.weight) !== null && _h !== void 0 ? _h : undefined);
22325    }
22326  }
22327  checkObjectDiff() {
22328    let _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
22329    if (!(((_b = (_a = this.stageValue) === null || _a === void 0 ? void 0 : _a.font) === null || _b === void 0 ? void 0 : _b.weight) ===
22330    ((_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.font) === null || _d === void 0 ? void 0 : _d.weight))) {
22331      return true;
22332    }
22333    else {
22334      return !isBaseOrResourceEqual((_e = this.stageValue) === null || _e === void 0 ? void 0 : _e.color, (_f = this.value) === null ||
22335      _f === void 0 ? void 0 : _f.color) ||
22336        !isBaseOrResourceEqual((_h = (_g = this.stageValue) === null || _g === void 0 ? void 0 : _g.font) === null ||
22337         _h === void 0 ? void 0 : _h.size, (_k = (_j = this.value) === null || _j === void 0 ? void 0 : _j.font) === null ||
22338         _k === void 0 ? void 0 : _k.size);
22339    }
22340  }
22341}
22342TextStyleModifier.identity = Symbol('textStyle');
22343class EdgeAlignModifier extends ModifierWithKey {
22344  constructor(value) {
22345    super(value);
22346  }
22347  applyPeer(node, reset) {
22348    let _a, _b, _c, _d, _e, _f, _g, _h;
22349    if (reset) {
22350      getUINativeModule().calendarPicker.resetEdgeAlign(node);
22351    }
22352    else {
22353      getUINativeModule().calendarPicker.setEdgeAlign(node, (_b = (_a = this.value) === null ||
22354      _a === void 0 ? void 0 : _a.alignType) !== null && _b !== void 0 ? _b : undefined,
22355      (_e = (_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.offset) === null ||
22356      _d === void 0 ? void 0 : _d.dx) !== null && _e !== void 0 ? _e : undefined, (_h = (_g =
22357      (_f = this.value) === null || _f === void 0 ? void 0 : _f.offset) === null ||
22358      _g === void 0 ? void 0 : _g.dy) !== null && _h !== void 0 ? _h : undefined);
22359    }
22360  }
22361  checkObjectDiff() {
22362    let _a, _b, _c, _d, _e, _f, _g, _h;
22363    if (!(this.stageValue.alignType === this.value.alignType)) {
22364      return true;
22365    }
22366    else {
22367      return !isBaseOrResourceEqual((_b = (_a = this.stageValue) === null || _a === void 0 ? void 0 : _a.offset) === null || _b === void 0 ? void 0 : _b.dx, (_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.offset) === null || _d === void 0 ? void 0 : _d.dx) ||
22368        !isBaseOrResourceEqual((_f = (_e = this.stageValue) === null || _e === void 0 ? void 0 : _e.offset) === null || _f === void 0 ? void 0 : _f.dy, (_h = (_g = this.value) === null || _g === void 0 ? void 0 : _g.offset) === null || _h === void 0 ? void 0 : _h.dy);
22369    }
22370  }
22371}
22372EdgeAlignModifier.identity = Symbol('edgeAlign');
22373class CalendarPickerPaddingModifier extends ModifierWithKey {
22374  constructor(value) {
22375    super(value);
22376  }
22377  applyPeer(node, reset) {
22378    if (reset) {
22379      getUINativeModule().calendarPicker.resetCalendarPickerPadding(node);
22380    }
22381    else {
22382      getUINativeModule().calendarPicker.setCalendarPickerPadding(node, this.value.top, this.value.right, this.value.bottom, this.value.left);
22383    }
22384  }
22385  checkObjectDiff() {
22386    return !isBaseOrResourceEqual(this.stageValue.top, this.value.top) ||
22387      !isBaseOrResourceEqual(this.stageValue.right, this.value.right) ||
22388      !isBaseOrResourceEqual(this.stageValue.bottom, this.value.bottom) ||
22389      !isBaseOrResourceEqual(this.stageValue.left, this.value.left);
22390  }
22391}
22392CalendarPickerPaddingModifier.identity = Symbol('calendarPickerPadding');
22393class CalendarPickerBorderModifier extends ModifierWithKey {
22394  constructor(value) {
22395    super(value);
22396  }
22397  applyPeer(node, reset) {
22398    if (reset) {
22399      getUINativeModule().calendarPicker.resetCalendarPickerBorder(node);
22400    }
22401    else {
22402      getUINativeModule().calendarPicker.setCalendarPickerBorder(node, this.value.arkWidth.left,
22403        this.value.arkWidth.right, this.value.arkWidth.top, this.value.arkWidth.bottom,
22404        this.value.arkColor.leftColor, this.value.arkColor.rightColor, this.value.arkColor.topColor,
22405        this.value.arkColor.bottomColor, this.value.arkRadius.topLeft, this.value.arkRadius.topRight,
22406        this.value.arkRadius.bottomLeft, this.value.arkRadius.bottomRight, this.value.arkStyle.top,
22407        this.value.arkStyle.right, this.value.arkStyle.bottom, this.value.arkStyle.left);
22408    }
22409  }
22410  checkObjectDiff() {
22411    return this.value.checkObjectDiff(this.stageValue);
22412  }
22413}
22414CalendarPickerBorderModifier.identity = Symbol('calendarPickerBorder');
22415
22416class CalendarPickerHeightModifier extends ModifierWithKey {
22417  constructor(value) {
22418    super(value);
22419  }
22420  applyPeer(node, reset) {
22421    if (reset) {
22422      getUINativeModule().calendarPicker.resetCalendarPickerHeight(node);
22423    }
22424    else {
22425      getUINativeModule().calendarPicker.setCalendarPickerHeight(node, this.value);
22426    }
22427  }
22428  checkObjectDiff() {
22429    return !isBaseOrResourceEqual(this.stageValue, this.value);
22430  }
22431}
22432CalendarPickerHeightModifier.identity = Symbol('calendarPickerHeight');
22433
22434class CalendarPickerBorderRadiusModifier extends ModifierWithKey {
22435  constructor(value) {
22436    super(value);
22437  }
22438  applyPeer(node, reset) {
22439    if (reset) {
22440      getUINativeModule().calendarPicker.resetCalendarPickerBorderRadius(node);
22441    }
22442    else {
22443      if (isNumber(this.value) || isString(this.value) || isResource(this.value)) {
22444        getUINativeModule().calendarPicker.setCalendarPickerBorderRadius(node, this.value, this.value, this.value, this.value);
22445      }
22446      else {
22447        if ((Object.keys(this.value).indexOf('topStart') >= 0) ||
22448            (Object.keys(this.value).indexOf('topEnd') >= 0) ||
22449            (Object.keys(this.value).indexOf('bottomStart') >= 0) ||
22450            (Object.keys(this.value).indexOf('bottomEnd') >= 0)) {
22451          getUINativeModule().calendarPicker.setCalendarPickerBorderRadius(node, this.value.topStart, this.value.topEnd, this.value.bottomStart, this.value.bottomEnd);
22452        } else {
22453          getUINativeModule().calendarPicker.setCalendarPickerBorderRadius(node, this.value.topLeft, this.value.topRight, this.value.bottomLeft, this.value.bottomRight);
22454        }
22455      }
22456    }
22457  }
22458  checkObjectDiff() {
22459    if (isResource(this.stageValue) && isResource(this.value)) {
22460      return !isResourceEqual(this.stageValue, this.value);
22461    }
22462    else if (!isResource(this.stageValue) && !isResource(this.value)) {
22463      if ((Object.keys(this.value).indexOf('topStart') >= 0) ||
22464          (Object.keys(this.value).indexOf('topEnd') >= 0) ||
22465          (Object.keys(this.value).indexOf('bottomStart') >= 0) ||
22466          (Object.keys(this.value).indexOf('bottomEnd') >= 0)) {
22467        return !(this.stageValue.topStart === this.value.topStart &&
22468          this.stageValue.topEnd === this.value.topEnd &&
22469          this.stageValue.bottomStart === this.value.bottomStart &&
22470          this.stageValue.bottomEnd === this.value.bottomEnd);
22471      }
22472      return !(this.stageValue.topLeft === this.value.topLeft &&
22473        this.stageValue.topRight === this.value.topRight &&
22474        this.stageValue.bottomLeft === this.value.bottomLeft &&
22475        this.stageValue.bottomRight === this.value.bottomRight);
22476    }
22477    else {
22478      return true;
22479    }
22480  }
22481}
22482CalendarPickerBorderRadiusModifier.identity = Symbol('calendarPickerBorderRadius');
22483
22484class CalendarPickerBorderColorModifier extends ModifierWithKey {
22485  constructor(value) {
22486    super(value);
22487  }
22488  applyPeer(node, reset) {
22489    if (reset) {
22490      getUINativeModule().calendarPicker.resetCalendarPickerBorderColor(node);
22491    }
22492    else {
22493      const valueType = typeof this.value;
22494      if (valueType === 'number' || valueType === 'string' || isResource(this.value)) {
22495        getUINativeModule().calendarPicker.setCalendarPickerBorderColor(node, this.value, this.value, this.value, this.value, false);
22496      }
22497      else {
22498        if ((Object.keys(this.value).indexOf('start') >= 0) ||
22499            (Object.keys(this.value).indexOf('end') >= 0)) {
22500          getUINativeModule().calendarPicker.setCalendarPickerBorderColor(node, this.value.top, this.value.end, this.value.bottom, this.value.start, true);
22501        } else {
22502          getUINativeModule().calendarPicker.setCalendarPickerBorderColor(node, this.value.top, this.value.right, this.value.bottom, this.value.left, false);
22503        }
22504      }
22505    }
22506  }
22507  checkObjectDiff() {
22508    if (isResource(this.stageValue) && isResource(this.value)) {
22509      return !isResourceEqual(this.stageValue, this.value);
22510    }
22511    else if (!isResource(this.stageValue) && !isResource(this.value)) {
22512      if ((Object.keys(this.value).indexOf('start') >= 0) ||
22513          (Object.keys(this.value).indexOf('end') >= 0)) {
22514        return !(this.stageValue.start === this.value.start &&
22515          this.stageValue.end === this.value.end &&
22516          this.stageValue.top === this.value.top &&
22517          this.stageValue.bottom === this.value.bottom);
22518      }
22519      return !(this.stageValue.left === this.value.left &&
22520        this.stageValue.right === this.value.right &&
22521        this.stageValue.top === this.value.top &&
22522        this.stageValue.bottom === this.value.bottom);
22523    }
22524    else {
22525      return true;
22526    }
22527  }
22528}
22529CalendarPickerBorderColorModifier.identity = Symbol('calendarPickerBorderColor');
22530
22531class ArkCalendarPickerComponent extends ArkComponent {
22532  constructor(nativePtr, classType) {
22533    super(nativePtr, classType);
22534  }
22535  edgeAlign(alignType, offset) {
22536    let arkEdgeAlign = new ArkEdgeAlign();
22537    arkEdgeAlign.alignType = alignType;
22538    arkEdgeAlign.offset = offset;
22539    modifierWithKey(this._modifiersWithKeys, EdgeAlignModifier.identity, EdgeAlignModifier, arkEdgeAlign);
22540    return this;
22541  }
22542  textStyle(value) {
22543    modifierWithKey(this._modifiersWithKeys, TextStyleModifier.identity, TextStyleModifier, value);
22544    return this;
22545  }
22546  onChange(callback) {
22547    throw new Error('Method not implemented.');
22548  }
22549  padding(value) {
22550    let arkValue = new ArkPadding();
22551    if (value !== null && value !== undefined) {
22552      if (isLengthType(value) || isResource(value)) {
22553        arkValue.top = value;
22554        arkValue.right = value;
22555        arkValue.bottom = value;
22556        arkValue.left = value;
22557      }
22558      else {
22559        arkValue.top = value.top;
22560        arkValue.right = value.right;
22561        arkValue.bottom = value.bottom;
22562        arkValue.left = value.left;
22563      }
22564      modifierWithKey(this._modifiersWithKeys, CalendarPickerPaddingModifier.identity, CalendarPickerPaddingModifier, arkValue);
22565    }
22566    else {
22567      modifierWithKey(this._modifiersWithKeys, CalendarPickerPaddingModifier.identity, CalendarPickerPaddingModifier, undefined);
22568    }
22569    return this;
22570  }
22571  border(value) {
22572    let _a, _b, _c, _d;
22573    let arkBorder = new ArkBorder();
22574    if (isUndefined(value)) {
22575      arkBorder = undefined;
22576    }
22577    if (!isUndefined(value === null || value === void 0 ? void 0 : value.width) && (value === null || value === void 0 ? void 0 : value.width) !== null) {
22578      if (isNumber(value.width) || isString(value.width) || isResource(value.width)) {
22579        arkBorder.arkWidth.left = value.width;
22580        arkBorder.arkWidth.right = value.width;
22581        arkBorder.arkWidth.top = value.width;
22582        arkBorder.arkWidth.bottom = value.width;
22583      }
22584      else {
22585        arkBorder.arkWidth.left = value.width.left;
22586        arkBorder.arkWidth.right = value.width.right;
22587        arkBorder.arkWidth.top = value.width.top;
22588        arkBorder.arkWidth.bottom = value.width.bottom;
22589      }
22590    }
22591    if (!isUndefined(value === null || value === void 0 ? void 0 : value.color) && (value === null || value === void 0 ? void 0 : value.color) !== null) {
22592      if (isNumber(value.color) || isString(value.color) || isResource(value.color)) {
22593        arkBorder.arkColor.leftColor = value.color;
22594        arkBorder.arkColor.rightColor = value.color;
22595        arkBorder.arkColor.topColor = value.color;
22596        arkBorder.arkColor.bottomColor = value.color;
22597      }
22598      else {
22599        arkBorder.arkColor.leftColor = value.color.left;
22600        arkBorder.arkColor.rightColor = value.color.right;
22601        arkBorder.arkColor.topColor = value.color.top;
22602        arkBorder.arkColor.bottomColor = value.color.bottom;
22603      }
22604    }
22605    if (!isUndefined(value === null || value === void 0 ? void 0 : value.radius) && (value === null || value === void 0 ? void 0 : value.radius) !== null) {
22606      if (isNumber(value.radius) || isString(value.radius) || isResource(value.radius)) {
22607        arkBorder.arkRadius.topLeft = value.radius;
22608        arkBorder.arkRadius.topRight = value.radius;
22609        arkBorder.arkRadius.bottomLeft = value.radius;
22610        arkBorder.arkRadius.bottomRight = value.radius;
22611      }
22612      else {
22613        arkBorder.arkRadius.topLeft = (_a = value.radius) === null || _a === void 0 ? void 0 : _a.topLeft;
22614        arkBorder.arkRadius.topRight = (_b = value.radius) === null || _b === void 0 ? void 0 : _b.topRight;
22615        arkBorder.arkRadius.bottomLeft = (_c = value.radius) === null || _c === void 0 ? void 0 : _c.bottomLeft;
22616        arkBorder.arkRadius.bottomRight = (_d = value.radius) === null || _d === void 0 ? void 0 : _d.bottomRight;
22617      }
22618    }
22619    if (!isUndefined(value === null || value === void 0 ? void 0 : value.style) && (value === null || value === void 0 ? void 0 : value.style) !== null) {
22620      let arkBorderStyle = new ArkBorderStyle();
22621      if (arkBorderStyle.parseBorderStyle(value.style)) {
22622        if (!isUndefined(arkBorderStyle.style)) {
22623          arkBorder.arkStyle.top = arkBorderStyle.style;
22624          arkBorder.arkStyle.left = arkBorderStyle.style;
22625          arkBorder.arkStyle.bottom = arkBorderStyle.style;
22626          arkBorder.arkStyle.right = arkBorderStyle.style;
22627        }
22628        else {
22629          arkBorder.arkStyle.top = arkBorderStyle.top;
22630          arkBorder.arkStyle.left = arkBorderStyle.left;
22631          arkBorder.arkStyle.bottom = arkBorderStyle.bottom;
22632          arkBorder.arkStyle.right = arkBorderStyle.right;
22633        }
22634      }
22635    }
22636    modifierWithKey(this._modifiersWithKeys, CalendarPickerBorderModifier.identity, CalendarPickerBorderModifier, arkBorder);
22637    return this;
22638  }
22639  height(value) {
22640    modifierWithKey(this._modifiersWithKeys, CalendarPickerHeightModifier.identity, CalendarPickerHeightModifier, value);
22641    return this;
22642  }
22643  borderRadius(value) {
22644    modifierWithKey(this._modifiersWithKeys, CalendarPickerBorderRadiusModifier.identity, CalendarPickerBorderRadiusModifier, value);
22645    return this;
22646  }
22647  borderColor(value) {
22648    modifierWithKey(this._modifiersWithKeys, CalendarPickerBorderColorModifier.identity, CalendarPickerBorderColorModifier, value);
22649    return this;
22650  }
22651}
22652// @ts-ignore
22653if (globalThis.CalendarPicker !== undefined) {
22654  globalThis.CalendarPicker.attributeModifier = function (modifier) {
22655    attributeModifierFunc.call(this, modifier, (nativePtr) => {
22656      return new ArkCalendarPickerComponent(nativePtr);
22657    }, (nativePtr, classType, modifierJS) => {
22658      return new modifierJS.CalendarPickerModifier(nativePtr, classType);
22659    });
22660  };
22661}
22662
22663/// <reference path='./import.ts' />
22664class ArkDataPanelComponent extends ArkComponent {
22665  constructor(nativePtr, classType) {
22666    super(nativePtr, classType);
22667  }
22668  closeEffect(value) {
22669    modifierWithKey(this._modifiersWithKeys, DataPanelCloseEffectModifier.identity, DataPanelCloseEffectModifier, value);
22670    return this;
22671  }
22672  valueColors(value) {
22673    modifierWithKey(this._modifiersWithKeys, DataPanelValueColorsModifier.identity, DataPanelValueColorsModifier, value);
22674    return this;
22675  }
22676  trackBackgroundColor(value) {
22677    modifierWithKey(this._modifiersWithKeys, DataPanelTrackBackgroundColorModifier.identity, DataPanelTrackBackgroundColorModifier, value);
22678    return this;
22679  }
22680  strokeWidth(value) {
22681    modifierWithKey(this._modifiersWithKeys, DataPanelStrokeWidthModifier.identity, DataPanelStrokeWidthModifier, value);
22682    return this;
22683  }
22684  trackShadow(value) {
22685    modifierWithKey(this._modifiersWithKeys, DataPanelTrackShadowModifier.identity, DataPanelTrackShadowModifier, value);
22686    return this;
22687  }
22688  contentModifier(value) {
22689    modifierWithKey(this._modifiersWithKeys, DataPanelContentModifier.identity, DataPanelContentModifier, value);
22690    return this;
22691  }
22692  setContentModifier(modifier) {
22693    if (modifier === undefined || modifier === null) {
22694      getUINativeModule().dataPanel.setContentModifierBuilder(this.nativePtr, false);
22695      return;
22696    }
22697    if (this.builder !== modifier.applyContent()) {
22698      this.needRebuild = true;
22699    }
22700    this.builder = modifier.applyContent();
22701    this.modifier = modifier;
22702    getUINativeModule().dataPanel.setContentModifierBuilder(this.nativePtr, this);
22703  }
22704  makeContentModifierNode(context, dataPanelConfig) {
22705    dataPanelConfig.contentModifier = this.modifier;
22706    if (isUndefined(this.dataPanelNode) || this.needRebuild) {
22707      let xNode = globalThis.requireNapi('arkui.node');
22708      this.dataPanelNode = new xNode.BuilderNode(context);
22709      this.dataPanelNode.build(this.builder, dataPanelConfig);
22710      this.needRebuild = false;
22711    } else {
22712      this.dataPanelNode.update(dataPanelConfig);
22713    }
22714    return this.dataPanelNode.getFrameNode();
22715  }
22716}
22717class DataPanelStrokeWidthModifier extends ModifierWithKey {
22718  applyPeer(node, reset) {
22719    if (reset) {
22720      getUINativeModule().dataPanel.resetDataPanelStrokeWidth(node);
22721    }
22722    else {
22723      getUINativeModule().dataPanel.setDataPanelStrokeWidth(node, this.value);
22724    }
22725  }
22726  checkObjectDiff() {
22727    return !isBaseOrResourceEqual(this.stageValue, this.value);
22728  }
22729}
22730DataPanelStrokeWidthModifier.identity = Symbol('dataPanelStrokeWidth');
22731class DataPanelCloseEffectModifier extends ModifierWithKey {
22732  applyPeer(node, reset) {
22733    if (reset) {
22734      getUINativeModule().dataPanel.resetCloseEffect(node);
22735    }
22736    else {
22737      getUINativeModule().dataPanel.setCloseEffect(node, this.value);
22738    }
22739  }
22740  checkObjectDiff() {
22741    return !isBaseOrResourceEqual(this.stageValue, this.value);
22742  }
22743}
22744DataPanelCloseEffectModifier.identity = Symbol('dataPanelCloseEffect');
22745class DataPanelTrackBackgroundColorModifier extends ModifierWithKey {
22746  applyPeer(node, reset) {
22747    if (reset) {
22748      getUINativeModule().dataPanel.resetDataPanelTrackBackgroundColor(node);
22749    }
22750    else {
22751      getUINativeModule().dataPanel.setDataPanelTrackBackgroundColor(node, this.value);
22752    }
22753  }
22754  checkObjectDiff() {
22755    return !isBaseOrResourceEqual(this.stageValue, this.value);
22756  }
22757}
22758DataPanelTrackBackgroundColorModifier.identity = Symbol('dataPanelTrackBackgroundColorModifier');
22759class DataPanelTrackShadowModifier extends ModifierWithKey {
22760  applyPeer(node, reset) {
22761    if (reset) {
22762      if (this.value === null) {
22763        getUINativeModule().dataPanel.setDataPanelTrackShadow(node, null);
22764      }
22765      getUINativeModule().dataPanel.resetDataPanelTrackShadow(node);
22766    }
22767    else {
22768      getUINativeModule().dataPanel.setDataPanelTrackShadow(node, this.value);
22769    }
22770  }
22771  checkObjectDiff() {
22772    return true;
22773  }
22774}
22775DataPanelTrackShadowModifier.identity = Symbol('dataPanelTrackShadow');
22776class DataPanelContentModifier extends ModifierWithKey {
22777  constructor(value) {
22778    super(value);
22779  }
22780  applyPeer(node, reset, component) {
22781    let dataPanelComponent = component;
22782    dataPanelComponent.setContentModifier(this.value);
22783  }
22784}
22785DataPanelContentModifier.identity = Symbol('dataPanelContentModifier');
22786class DataPanelValueColorsModifier extends ModifierWithKey {
22787  applyPeer(node, reset) {
22788    if (reset) {
22789      getUINativeModule().dataPanel.resetDataPanelValueColors(node);
22790      return;
22791    }
22792    else {
22793      getUINativeModule().dataPanel.setDataPanelValueColors(node, this.value);
22794    }
22795  }
22796  checkObjectDiff() {
22797    return true;
22798  }
22799}
22800DataPanelValueColorsModifier.identity = Symbol('dataPanelValueColors');
22801// @ts-ignore
22802if (globalThis.DataPanel !== undefined) {
22803  globalThis.DataPanel.attributeModifier = function (modifier) {
22804    attributeModifierFunc.call(this, modifier, (nativePtr) => {
22805      return new ArkDataPanelComponent(nativePtr);
22806    }, (nativePtr, classType, modifierJS) => {
22807      return new modifierJS.DataPanelModifier(nativePtr, classType);
22808    });
22809  };
22810}
22811
22812/// <reference path='./import.ts' />
22813class ArkDatePickerComponent extends ArkComponent {
22814  constructor(nativePtr, classType) {
22815    super(nativePtr, classType);
22816  }
22817  lunar(value) {
22818    modifierWithKey(this._modifiersWithKeys, DatePickerLunarModifier.identity, DatePickerLunarModifier, value);
22819    return this;
22820  }
22821  disappearTextStyle(value) {
22822    modifierWithKey(this._modifiersWithKeys, DatePickerDisappearTextStyleModifier.identity, DatePickerDisappearTextStyleModifier, value);
22823    return this;
22824  }
22825  textStyle(value) {
22826    modifierWithKey(this._modifiersWithKeys, DatePickerTextStyleModifier.identity, DatePickerTextStyleModifier, value);
22827    return this;
22828  }
22829  selectedTextStyle(value) {
22830    modifierWithKey(this._modifiersWithKeys, DatePickerSelectedTextStyleModifier.identity, DatePickerSelectedTextStyleModifier, value);
22831    return this;
22832  }
22833  onChange(callback) {
22834    throw new Error('Method not implemented.');
22835  }
22836  onDateChange(callback) {
22837    throw new Error('Method not implemented.');
22838  }
22839  backgroundColor(value) {
22840    modifierWithKey(this._modifiersWithKeys, DatePickerBackgroundColorModifier.identity, DatePickerBackgroundColorModifier, value);
22841    return this;
22842  }
22843}
22844class DatePickerLunarModifier extends ModifierWithKey {
22845  constructor(value) {
22846    super(value);
22847  }
22848  applyPeer(node, reset) {
22849    if (reset) {
22850      getUINativeModule().datePicker.resetLunar(node);
22851    }
22852    else {
22853      getUINativeModule().datePicker.setLunar(node, this.value);
22854    }
22855  }
22856}
22857DatePickerLunarModifier.identity = Symbol('lunar');
22858class DatePickerTextStyleModifier extends ModifierWithKey {
22859  constructor(value) {
22860    super(value);
22861  }
22862  applyPeer(node, reset) {
22863    let _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
22864    if (reset) {
22865      getUINativeModule().datePicker.resetTextStyle(node);
22866    }
22867    else {
22868      getUINativeModule().datePicker.setTextStyle(node, (_b = (_a = this.value) === null ||
22869      _a === void 0 ? void 0 : _a.color) !== null && _b !== void 0 ? _b : undefined, (_e = (_d = (_c = this.value) === null ||
22870      _c === void 0 ? void 0 : _c.font) === null || _d === void 0 ? void 0 : _d.size) !== null && _e !== void 0 ? _e : undefined,
22871      (_h = (_g = (_f = this.value) === null || _f === void 0 ? void 0 : _f.font) === null ||
22872      _g === void 0 ? void 0 : _g.weight) !== null && _h !== void 0 ? _h : undefined,
22873      (_l = (_k = (_j = this.value) === null || _j === void 0 ? void 0 : _j.font) === null ||
22874      _k === void 0 ? void 0 : _k.family) !== null && _l !== void 0 ? _l : undefined,
22875      (_p = (_o = (_m = this.value) === null || _m === void 0 ? void 0 : _m.font) === null ||
22876      _o === void 0 ? void 0 : _o.style) !== null && _p !== void 0 ? _p : undefined);
22877    }
22878  }
22879  checkObjectDiff() {
22880    let _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
22881    if (!(((_b = (_a = this.stageValue) === null || _a === void 0 ? void 0 : _a.font) === null || _b === void 0 ? void 0 : _b.weight) ===
22882      ((_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.font) === null || _d === void 0 ? void 0 : _d.weight) &&
22883      ((_f = (_e = this.stageValue) === null || _e === void 0 ? void 0 : _e.font) === null || _f === void 0 ? void 0 : _f.style) ===
22884      ((_h = (_g = this.value) === null || _g === void 0 ? void 0 : _g.font) === null || _h === void 0 ? void 0 : _h.style))) {
22885      return true;
22886    }
22887    else {
22888      return !isBaseOrResourceEqual((_j = this.stageValue) === null || _j === void 0 ? void 0 : _j.color, (_k = this.value) === null ||
22889      _k === void 0 ? void 0 : _k.color) ||
22890        !isBaseOrResourceEqual((_m = (_l = this.stageValue) === null || _l === void 0 ? void 0 : _l.font) === null ||
22891        _m === void 0 ? void 0 : _m.size, (_p = (_o = this.value) === null || _o === void 0 ? void 0 : _o.font) === null || _p === void 0 ? void 0 : _p.size) ||
22892        !isBaseOrResourceEqual((_r = (_q = this.stageValue) === null || _q === void 0 ? void 0 : _q.font) === null ||
22893        _r === void 0 ? void 0 : _r.family, (_t = (_s = this.value) === null || _s === void 0 ? void 0 : _s.font) === null ||
22894        _t === void 0 ? void 0 : _t.family);
22895    }
22896  }
22897}
22898DatePickerTextStyleModifier.identity = Symbol('textStyle');
22899class DatePickerSelectedTextStyleModifier extends ModifierWithKey {
22900  constructor(value) {
22901    super(value);
22902  }
22903  applyPeer(node, reset) {
22904    let _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
22905    if (reset) {
22906      getUINativeModule().datePicker.resetSelectedTextStyle(node);
22907    }
22908    else {
22909      getUINativeModule().datePicker.setSelectedTextStyle(node, (_b = (_a = this.value) === null ||
22910      _a === void 0 ? void 0 : _a.color) !== null && _b !== void 0 ? _b : undefined,
22911      (_e = (_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.font) === null ||
22912      _d === void 0 ? void 0 : _d.size) !== null && _e !== void 0 ? _e : undefined, (_h = (_g =
22913      (_f = this.value) === null || _f === void 0 ? void 0 : _f.font) === null ||
22914      _g === void 0 ? void 0 : _g.weight) !== null && _h !== void 0 ? _h : undefined,
22915      (_l = (_k = (_j = this.value) === null || _j === void 0 ? void 0 : _j.font) === null ||
22916      _k === void 0 ? void 0 : _k.family) !== null && _l !== void 0 ? _l : undefined, (_p =
22917      (_o = (_m = this.value) === null || _m === void 0 ? void 0 : _m.font) === null ||
22918      _o === void 0 ? void 0 : _o.style) !== null && _p !== void 0 ? _p : undefined);
22919    }
22920  }
22921  checkObjectDiff() {
22922    let _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
22923    if (!(((_b = (_a = this.stageValue) === null || _a === void 0 ? void 0 : _a.font) === null || _b === void 0 ? void 0 : _b.weight) ===
22924    ((_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.font) === null || _d === void 0 ? void 0 : _d.weight) &&
22925      ((_f = (_e = this.stageValue) === null || _e === void 0 ? void 0 : _e.font) === null || _f === void 0 ? void 0 : _f.style) ===
22926      ((_h = (_g = this.value) === null || _g === void 0 ? void 0 : _g.font) === null || _h === void 0 ? void 0 : _h.style))) {
22927      return true;
22928    }
22929    else {
22930      return !isBaseOrResourceEqual((_j = this.stageValue) === null || _j === void 0 ? void 0 : _j.color, (_k = this.value) === null ||
22931      _k === void 0 ? void 0 : _k.color) ||
22932        !isBaseOrResourceEqual((_m = (_l = this.stageValue) === null || _l === void 0 ? void 0 : _l.font) === null || _m ===
22933        void 0 ? void 0 : _m.size, (_p = (_o = this.value) === null || _o === void 0 ? void 0 : _o.font) === null || _p ===
22934        void 0 ? void 0 : _p.size) ||
22935        !isBaseOrResourceEqual((_r = (_q = this.stageValue) === null || _q === void 0 ? void 0 : _q.font) === null || _r ===
22936        void 0 ? void 0 : _r.family, (_t = (_s = this.value) === null || _s === void 0 ? void 0 : _s.font) === null || _t ===
22937        void 0 ? void 0 : _t.family);
22938    }
22939  }
22940}
22941DatePickerSelectedTextStyleModifier.identity = Symbol('selectedTextStyle');
22942class DatePickerDisappearTextStyleModifier extends ModifierWithKey {
22943  constructor(value) {
22944    super(value);
22945  }
22946  applyPeer(node, reset) {
22947    let _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
22948    if (reset) {
22949      getUINativeModule().datePicker.resetDisappearTextStyle(node);
22950    }
22951    else {
22952      getUINativeModule().datePicker.setDisappearTextStyle(node, (_b = (_a = this.value) === null ||
22953      _a === void 0 ? void 0 : _a.color) !== null && _b !== void 0 ? _b : undefined,
22954      (_e = (_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.font) === null ||
22955      _d === void 0 ? void 0 : _d.size) !== null && _e !== void 0 ? _e : undefined,
22956      (_h = (_g = (_f = this.value) === null || _f === void 0 ? void 0 : _f.font) === null ||
22957      _g === void 0 ? void 0 : _g.weight) !== null && _h !== void 0 ? _h : undefined,
22958      (_l = (_k = (_j = this.value) === null || _j === void 0 ? void 0 : _j.font) === null ||
22959      _k === void 0 ? void 0 : _k.family) !== null && _l !== void 0 ? _l : undefined,
22960      (_p = (_o = (_m = this.value) === null || _m === void 0 ? void 0 : _m.font) === null ||
22961      _o === void 0 ? void 0 : _o.style) !== null && _p !== void 0 ? _p : undefined);
22962    }
22963  }
22964  checkObjectDiff() {
22965    let _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
22966    if (!(((_b = (_a = this.stageValue) === null || _a === void 0 ? void 0 : _a.font) === null || _b === void 0 ? void 0 : _b.weight) ===
22967    ((_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.font) === null || _d === void 0 ? void 0 : _d.weight) &&
22968      ((_f = (_e = this.stageValue) === null || _e === void 0 ? void 0 : _e.font) === null || _f === void 0 ? void 0 : _f.style) ===
22969      ((_h = (_g = this.value) === null || _g === void 0 ? void 0 : _g.font) === null || _h === void 0 ? void 0 : _h.style))) {
22970      return true;
22971    }
22972    else {
22973      return !isBaseOrResourceEqual((_j = this.stageValue) === null || _j === void 0 ? void 0 : _j.color, (_k = this.value) === null ||
22974      _k === void 0 ? void 0 : _k.color) ||
22975        !isBaseOrResourceEqual((_m = (_l = this.stageValue) === null || _l === void 0 ? void 0 : _l.font) === null ||
22976        _m === void 0 ? void 0 : _m.size, (_p = (_o = this.value) === null || _o === void 0 ? void 0 : _o.font) === null ||
22977        _p === void 0 ? void 0 : _p.size) ||
22978        !isBaseOrResourceEqual((_r = (_q = this.stageValue) === null || _q === void 0 ? void 0 : _q.font) === null ||
22979        _r === void 0 ? void 0 : _r.family, (_t = (_s = this.value) === null ||
22980        _s === void 0 ? void 0 : _s.font) === null || _t === void 0 ? void 0 : _t.family);
22981    }
22982  }
22983}
22984DatePickerDisappearTextStyleModifier.identity = Symbol('disappearTextStyle');
22985class DatePickerBackgroundColorModifier extends ModifierWithKey {
22986  constructor(value) {
22987    super(value);
22988  }
22989  applyPeer(node, reset) {
22990    if (reset) {
22991      getUINativeModule().datePicker.resetBackgroundColor(node);
22992    }
22993    else {
22994      getUINativeModule().datePicker.setBackgroundColor(node, this.value);
22995    }
22996  }
22997  checkObjectDiff() {
22998    return !isBaseOrResourceEqual(this.stageValue, this.value);
22999  }
23000}
23001DatePickerBackgroundColorModifier.identity = Symbol('datePickerBackgroundColor');
23002//@ts-ignore
23003if (globalThis.DatePicker !== undefined) {
23004  globalThis.DatePicker.attributeModifier = function (modifier) {
23005    attributeModifierFunc.call(this, modifier, (nativePtr) => {
23006      return new ArkDatePickerComponent(nativePtr);
23007    }, (nativePtr, classType, modifierJS) => {
23008      return new modifierJS.DatePickerModifier(nativePtr, classType);
23009    });
23010  };
23011}
23012
23013/// <reference path='./import.ts' />
23014class ArkFormComponentComponent extends ArkComponent {
23015  constructor(nativePtr, classType) {
23016    super(nativePtr, classType);
23017  }
23018  size(value) {
23019    modifierWithKey(this._modifiersWithKeys, FormComponentSizeModifier.identity, FormComponentSizeModifier, value);
23020    return this;
23021  }
23022  visibility(value) {
23023    modifierWithKey(this._modifiersWithKeys, FormComponentVisibilityModifier.identity, FormComponentVisibilityModifier, value);
23024    return this;
23025  }
23026  moduleName(value) {
23027    modifierWithKey(this._modifiersWithKeys, FormComponentModuleNameModifier.identity, FormComponentModuleNameModifier, value);
23028    return this;
23029  }
23030  dimension(value) {
23031    modifierWithKey(this._modifiersWithKeys, FormComponentDimensionModifier.identity, FormComponentDimensionModifier, value);
23032    return this;
23033  }
23034  allowUpdate(value) {
23035    modifierWithKey(this._modifiersWithKeys, FormComponentAllowUpdateModifier.identity, FormComponentAllowUpdateModifier, value);
23036    return this;
23037  }
23038  onAcquired(callback) {
23039    throw new Error('Method not implemented.');
23040  }
23041  onError(callback) {
23042    throw new Error('Method not implemented.');
23043  }
23044  onRouter(callback) {
23045    throw new Error('Method not implemented.');
23046  }
23047  onUninstall(callback) {
23048    throw new Error('Method not implemented.');
23049  }
23050  onLoad(callback) {
23051    throw new Error('Method not implemented.');
23052  }
23053}
23054class FormComponentModuleNameModifier extends ModifierWithKey {
23055  constructor(value) {
23056    super(value);
23057  }
23058  applyPeer(node, reset) {
23059    if (reset) {
23060      getUINativeModule().formComponent.resetModuleName(node);
23061    }
23062    else {
23063      getUINativeModule().formComponent.setModuleName(node, this.value);
23064    }
23065  }
23066}
23067FormComponentModuleNameModifier.identity = Symbol('formComponentModuleName');
23068class FormComponentDimensionModifier extends ModifierWithKey {
23069  constructor(value) {
23070    super(value);
23071  }
23072  applyPeer(node, reset) {
23073    if (reset) {
23074      getUINativeModule().formComponent.resetDimension(node);
23075    }
23076    else {
23077      getUINativeModule().formComponent.setDimension(node, this.value);
23078    }
23079  }
23080  checkObjectDiff() {
23081    return !isBaseOrResourceEqual(this.stageValue, this.value);
23082  }
23083}
23084FormComponentDimensionModifier.identity = Symbol('formComponentDimension');
23085class FormComponentAllowUpdateModifier extends ModifierWithKey {
23086  constructor(value) {
23087    super(value);
23088  }
23089  applyPeer(node, reset) {
23090    if (reset) {
23091      getUINativeModule().formComponent.resetAllowUpdate(node);
23092    }
23093    else {
23094      getUINativeModule().formComponent.setAllowUpdate(node, this.value);
23095    }
23096  }
23097}
23098FormComponentAllowUpdateModifier.identity = Symbol('formComponentAllowUpdate');
23099class FormComponentSizeModifier extends ModifierWithKey {
23100  constructor(value) {
23101    super(value);
23102  }
23103  applyPeer(node, reset) {
23104    if (reset) {
23105      getUINativeModule().formComponent.resetSize(node);
23106    }
23107    else {
23108      getUINativeModule().formComponent.setSize(node, this.value.width, this.value.height);
23109    }
23110  }
23111  checkObjectDiff() {
23112    let widthEQ = isBaseOrResourceEqual(this.stageValue.width, this.value.width);
23113    let heightEQ = isBaseOrResourceEqual(this.stageValue.height, this.value.height);
23114    return !widthEQ || !heightEQ;
23115  }
23116}
23117FormComponentSizeModifier.identity = Symbol('formComponentSize');
23118class FormComponentVisibilityModifier extends ModifierWithKey {
23119  constructor(value) {
23120    super(value);
23121  }
23122  applyPeer(node, reset) {
23123    if (reset) {
23124      getUINativeModule().formComponent.resetVisibility(node);
23125    }
23126    else {
23127      getUINativeModule().formComponent.setVisibility(node, this.value);
23128    }
23129  }
23130}
23131FormComponentVisibilityModifier.identity = Symbol('formComponentVisibility');
23132// @ts-ignore
23133if (globalThis.FormComponent !== undefined) {
23134  globalThis.FormComponent.attributeModifier = function (modifier) {
23135    attributeModifierFunc.call(this, modifier, (nativePtr) => {
23136      return new ArkFormComponentComponent(nativePtr);
23137    }, (nativePtr, classType, modifierJS) => {
23138      return new modifierJS.FormComponentModifier(nativePtr, classType);
23139    });
23140  };
23141}
23142
23143/// <reference path='./import.ts' />
23144class ArkGaugeComponent extends ArkComponent {
23145  constructor(nativePtr, classType) {
23146    super(nativePtr, classType);
23147  }
23148  value(value) {
23149    modifierWithKey(this._modifiersWithKeys, GaugeVauleModifier.identity, GaugeVauleModifier, value);
23150    return this;
23151  }
23152  startAngle(angle) {
23153    modifierWithKey(this._modifiersWithKeys, GaugeStartAngleModifier.identity, GaugeStartAngleModifier, angle);
23154    return this;
23155  }
23156  endAngle(angle) {
23157    modifierWithKey(this._modifiersWithKeys, GaugeEndAngleModifier.identity, GaugeEndAngleModifier, angle);
23158    return this;
23159  }
23160  colors(colors) {
23161    modifierWithKey(this._modifiersWithKeys, GaugeColorsModifier.identity, GaugeColorsModifier, colors);
23162    return this;
23163  }
23164  strokeWidth(length) {
23165    modifierWithKey(this._modifiersWithKeys, GaugeStrokeWidthModifier.identity, GaugeStrokeWidthModifier, length);
23166    return this;
23167  }
23168  description(value) {
23169    throw new Error('Method not implemented.');
23170  }
23171  trackShadow(value) {
23172    modifierWithKey(this._modifiersWithKeys, GaugeTrackShadowModifier.identity, GaugeTrackShadowModifier, value);
23173    return this;
23174  }
23175  indicator(value) {
23176    modifierWithKey(this._modifiersWithKeys, GaugeIndicatorModifier.identity, GaugeIndicatorModifier, value);
23177    return this;
23178  }
23179  contentModifier(value) {
23180    modifierWithKey(this._modifiersWithKeys, GaugeContentModifier.identity, GaugeContentModifier, value);
23181    return this;
23182  }
23183  setContentModifier(modifier) {
23184    if (modifier === undefined || modifier === null) {
23185      getUINativeModule().gauge.setContentModifierBuilder(this.nativePtr, false);
23186      return;
23187    }
23188    this.needRebuild = false;
23189    if (this.builder !== modifier.applyContent()) {
23190      this.needRebuild = true;
23191    }
23192    this.builder = modifier.applyContent();
23193    this.modifier = modifier;
23194    getUINativeModule().gauge.setContentModifierBuilder(this.nativePtr, this);
23195  }
23196  makeContentModifierNode(context, gaugeConfiguration) {
23197    gaugeConfiguration.contentModifier = this.modifier;
23198    if (isUndefined(this.gaugeNode) || this.needRebuild) {
23199      let xNode = globalThis.requireNapi('arkui.node');
23200      this.gaugeNode = new xNode.BuilderNode(context);
23201      this.gaugeNode.build(this.builder, gaugeConfiguration);
23202      this.needRebuild = false;
23203    } else {
23204      this.gaugeNode.update(gaugeConfiguration);
23205    }
23206    return this.gaugeNode.getFrameNode();
23207  }
23208}
23209class GaugeIndicatorModifier extends ModifierWithKey {
23210  applyPeer(node, reset) {
23211    if (reset) {
23212      getUINativeModule().gauge.resetGaugeIndicator(node, this.value);
23213    }
23214    else {
23215      getUINativeModule().gauge.setGaugeIndicator(node, this.value.icon, this.value.space);
23216    }
23217  }
23218  checkObjectDiff() {
23219    return !isBaseOrResourceEqual(this.stageValue.icon, this.value.icon) ||
23220      !isBaseOrResourceEqual(this.stageValue.space, this.value.space);
23221  }
23222}
23223GaugeIndicatorModifier.identity = Symbol('gaugeIndicator');
23224class GaugeContentModifier extends ModifierWithKey {
23225  constructor(value) {
23226    super(value);
23227  }
23228  applyPeer(node, reset, component) {
23229    let gaugeComponent = component;
23230    gaugeComponent.setContentModifier(this.value);
23231  }
23232}
23233GaugeContentModifier.identity = Symbol('gaugeContentModifier');
23234class GaugeColorsModifier extends ModifierWithKey {
23235  applyPeer(node, reset) {
23236    if (reset) {
23237      getUINativeModule().gauge.resetGaugeColors(node);
23238    }
23239    else {
23240      getUINativeModule().gauge.setGaugeColors(node, this.value);
23241    }
23242  }
23243  checkObjectDiff() {
23244    return true;
23245  }
23246}
23247GaugeColorsModifier.identity = Symbol('gaugeColors');
23248class GaugeVauleModifier extends ModifierWithKey {
23249  applyPeer(node, reset) {
23250    if (reset) {
23251      getUINativeModule().gauge.resetGaugeVaule(node);
23252    }
23253    else {
23254      getUINativeModule().gauge.setGaugeVaule(node, this.value);
23255    }
23256  }
23257  checkObjectDiff() {
23258    return !isBaseOrResourceEqual(this.stageValue, this.value);
23259  }
23260}
23261GaugeVauleModifier.identity = Symbol('gaugeVaule');
23262class GaugeStartAngleModifier extends ModifierWithKey {
23263  applyPeer(node, reset) {
23264    if (reset) {
23265      getUINativeModule().gauge.resetGaugeStartAngle(node);
23266    }
23267    else {
23268      getUINativeModule().gauge.setGaugeStartAngle(node, this.value);
23269    }
23270  }
23271  checkObjectDiff() {
23272    return !isBaseOrResourceEqual(this.stageValue, this.value);
23273  }
23274}
23275GaugeStartAngleModifier.identity = Symbol('gaugeStartAngle');
23276class GaugeEndAngleModifier extends ModifierWithKey {
23277  applyPeer(node, reset) {
23278    if (reset) {
23279      getUINativeModule().gauge.resetGaugeEndAngle(node);
23280    }
23281    else {
23282      getUINativeModule().gauge.setGaugeEndAngle(node, this.value);
23283    }
23284  }
23285  checkObjectDiff() {
23286    return !isBaseOrResourceEqual(this.stageValue, this.value);
23287  }
23288}
23289GaugeEndAngleModifier.identity = Symbol('gaugeEndAngle');
23290class GaugeStrokeWidthModifier extends ModifierWithKey {
23291  applyPeer(node, reset) {
23292    if (reset) {
23293      getUINativeModule().gauge.resetGaugeStrokeWidth(node);
23294    }
23295    else {
23296      getUINativeModule().gauge.setGaugeStrokeWidth(node, this.value);
23297    }
23298  }
23299  checkObjectDiff() {
23300    return !isBaseOrResourceEqual(this.stageValue, this.value);
23301  }
23302}
23303GaugeStrokeWidthModifier.identity = Symbol('gaugeStrokeWidth');
23304class GaugeTrackShadowModifier extends ModifierWithKey {
23305  applyPeer(node, reset) {
23306    if (reset) {
23307      getUINativeModule().gauge.resetGaugeTrackShadow(node);
23308    }
23309    else {
23310      getUINativeModule().gauge.setGaugeTrackShadow(node, this.value, this.value.radius, this.value.offsetX, this.value.offsetY);
23311    }
23312  }
23313  checkObjectDiff() {
23314    return !isBaseOrResourceEqual(this.stageValue, this.value);
23315  }
23316}
23317GaugeTrackShadowModifier.identity = Symbol('gaugeTrackShadow');
23318// @ts-ignore
23319if (globalThis.Gauge !== undefined) {
23320  globalThis.Gauge.attributeModifier = function (modifier) {
23321    attributeModifierFunc.call(this, modifier, (nativePtr) => {
23322      return new ArkGaugeComponent(nativePtr);
23323    }, (nativePtr, classType, modifierJS) => {
23324      return new modifierJS.GaugeModifier(nativePtr, classType);
23325    });
23326  };
23327  globalThis.Gauge.contentModifier = function (modifier) {
23328    const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
23329    let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
23330    let component = this.createOrGetNode(elmtId, () => {
23331      return new ArkGaugeComponent(nativeNode);
23332    });
23333    component.setContentModifier(modifier);
23334  };
23335}
23336
23337/// <reference path='./import.ts' />
23338class ArkMarqueeComponent extends ArkComponent {
23339  constructor(nativePtr, classType) {
23340    super(nativePtr, classType);
23341  }
23342  allowChildCount() {
23343    return 0;
23344  }
23345  initialize(value) {
23346    if (value.length === 1 && isObject(value[0])) {
23347      modifierWithKey(this._modifiersWithKeys, MarqueeInitializeModifier.identity, MarqueeInitializeModifier, value[0]);
23348    } else {
23349      modifierWithKey(this._modifiersWithKeys, MarqueeInitializeModifier.identity, MarqueeInitializeModifier, undefined);
23350    }
23351    return this;
23352  }
23353  fontSize(value) {
23354    modifierWithKey(this._modifiersWithKeys, MarqueeFontSizeModifier.identity, MarqueeFontSizeModifier, value);
23355    return this;
23356  }
23357  fontColor(value) {
23358    modifierWithKey(this._modifiersWithKeys, MarqueeFontColorModifier.identity, MarqueeFontColorModifier, value);
23359    return this;
23360  }
23361  allowScale(value) {
23362    modifierWithKey(this._modifiersWithKeys, MarqueeAllowScaleModifier.identity, MarqueeAllowScaleModifier, value);
23363    return this;
23364  }
23365  fontWeight(value) {
23366    modifierWithKey(this._modifiersWithKeys, MarqueeFontWeightModifier.identity, MarqueeFontWeightModifier, value);
23367    return this;
23368  }
23369  fontFamily(value) {
23370    modifierWithKey(this._modifiersWithKeys, MarqueeFontFamilyModifier.identity, MarqueeFontFamilyModifier, value);
23371    return this;
23372  }
23373  onStart(event) {
23374    modifierWithKey(this._modifiersWithKeys, MarqueeOnStartModifier.identity, MarqueeOnStartModifier, event);
23375    return this;
23376  }
23377  onBounce(event) {
23378    modifierWithKey(this._modifiersWithKeys, MarqueeOnBounceModifier.identity, MarqueeOnBounceModifier, event);
23379    return this;
23380  }
23381  onFinish(event) {
23382    modifierWithKey(this._modifiersWithKeys, MarqueeOnFinishModifier.identity, MarqueeOnFinishModifier, event);
23383    return this;
23384  }
23385  marqueeUpdateStrategy(value) {
23386    modifierWithKey(this._modifiersWithKeys, MarqueeUpdateStrategyModifier.identity, MarqueeUpdateStrategyModifier, value);
23387    return this;
23388  }
23389}
23390class MarqueeInitializeModifier extends ModifierWithKey {
23391  constructor(value) {
23392    super(value);
23393  }
23394  applyPeer(node, reset) {
23395    var _a, _b, _c, _d, _e;
23396    if (reset) {
23397      getUINativeModule().marquee.setInitialize(node, undefined, undefined, undefined, undefined, undefined);
23398    }
23399    else {
23400      getUINativeModule().marquee.setInitialize(node, (_a = this.value) === null || _a === void 0 ? void 0 : _a.start,
23401        (_b = this.value) === null || _b === void 0 ? void 0 : _b.step, (_c = this.value) === null || _c === void 0 ? void 0 : _c.loop,
23402        (_d = this.value) === null || _d === void 0 ? void 0 : _d.fromStart, (_e = this.value) === null || _e === void 0 ? void 0 : _e.src);
23403    }
23404  }
23405
23406  checkObjectDiff() {
23407    var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
23408    return !isBaseOrResourceEqual((_a = this.stageValue) === null || _a === void 0 ? void 0 : _a.start, (_b = this.value) === null || _b === void 0 ? void 0 : _b.start) ||
23409        !isBaseOrResourceEqual((_c = this.stageValue) === null || _c === void 0 ? void 0 : _c.step, (_d = this.value) === null || _d === void 0 ? void 0 : _d.step) ||
23410        !isBaseOrResourceEqual((_e = this.stageValue) === null || _e === void 0 ? void 0 : _e.loop, (_f = this.value) === null || _f === void 0 ? void 0 : _f.loop) ||
23411        !isBaseOrResourceEqual((_g = this.stageValue) === null || _g === void 0 ? void 0 : _g.fromStart, (_h = this.value) === null || _h === void 0 ? void 0 : _h.fromStart) ||
23412        !isBaseOrResourceEqual((_j = this.stageValue) === null || _j === void 0 ? void 0 : _j.src, (_k = this.value) === null || _k === void 0 ? void 0 : _k.src);
23413  }
23414}
23415MarqueeInitializeModifier.identity = Symbol('marqueeInitialize');
23416class MarqueeFontColorModifier extends ModifierWithKey {
23417  constructor(value) {
23418    super(value);
23419  }
23420  applyPeer(node, reset) {
23421    if (reset) {
23422      getUINativeModule().marquee.resetFontColor(node);
23423    }
23424    else {
23425      getUINativeModule().marquee.setFontColor(node, this.value);
23426    }
23427  }
23428  checkObjectDiff() {
23429    return !isBaseOrResourceEqual(this.stageValue, this.value);
23430  }
23431}
23432MarqueeFontColorModifier.identity = Symbol('fontColor');
23433class MarqueeFontSizeModifier extends ModifierWithKey {
23434  constructor(value) {
23435    super(value);
23436  }
23437  applyPeer(node, reset) {
23438    if (reset) {
23439      getUINativeModule().marquee.resetFontSize(node);
23440    }
23441    else {
23442      getUINativeModule().marquee.setFontSize(node, this.value);
23443    }
23444  }
23445  checkObjectDiff() {
23446    return !isBaseOrResourceEqual(this.stageValue, this.value);
23447  }
23448}
23449MarqueeFontSizeModifier.identity = Symbol('fontSize');
23450class MarqueeAllowScaleModifier extends ModifierWithKey {
23451  constructor(value) {
23452    super(value);
23453  }
23454  applyPeer(node, reset) {
23455    if (reset) {
23456      getUINativeModule().marquee.resetAllowScale(node);
23457    }
23458    else {
23459      getUINativeModule().marquee.setAllowScale(node, this.value);
23460    }
23461  }
23462}
23463MarqueeAllowScaleModifier.identity = Symbol('allowScale');
23464class MarqueeFontWeightModifier extends ModifierWithKey {
23465  constructor(value) {
23466    super(value);
23467  }
23468  applyPeer(node, reset) {
23469    if (reset) {
23470      getUINativeModule().marquee.resetFontWeight(node);
23471    }
23472    else {
23473      getUINativeModule().marquee.setFontWeight(node, this.value);
23474    }
23475  }
23476  checkObjectDiff() {
23477    return this.stageValue !== this.value;
23478  }
23479}
23480MarqueeFontWeightModifier.identity = Symbol('fontWeight');
23481class MarqueeFontFamilyModifier extends ModifierWithKey {
23482  constructor(value) {
23483    super(value);
23484  }
23485  applyPeer(node, reset) {
23486    if (reset) {
23487      getUINativeModule().marquee.resetFontFamily(node);
23488    }
23489    else {
23490      getUINativeModule().marquee.setFontFamily(node, this.value);
23491    }
23492  }
23493}
23494MarqueeFontFamilyModifier.identity = Symbol('fontFamily');
23495class MarqueeUpdateStrategyModifier extends ModifierWithKey {
23496    constructor(value) {
23497        super(value);
23498    }
23499    applyPeer(node, reset) {
23500        if (reset) {
23501            getUINativeModule().marquee.resetMarqueeUpdateStrategy(node);
23502        }
23503        else {
23504            getUINativeModule().marquee.setMarqueeUpdateStrategy(node, this.value);
23505        }
23506    }
23507}
23508MarqueeUpdateStrategyModifier.identity = Symbol('marqueeUpdateStrategy');
23509class MarqueeOnStartModifier extends ModifierWithKey {
23510  constructor(value) {
23511    super(value);
23512  }
23513  applyPeer(node, reset) {
23514    if (reset) {
23515      getUINativeModule().marquee.resetMarqueeOnStart(node);
23516    } else {
23517      getUINativeModule().marquee.setMarqueeOnStart(node, this.value);
23518    }
23519  }
23520}
23521MarqueeOnStartModifier.identity = Symbol('marqueeOnStart');
23522class MarqueeOnBounceModifier extends ModifierWithKey {
23523  constructor(value) {
23524    super(value);
23525  }
23526  applyPeer(node, reset) {
23527    if (reset) {
23528      getUINativeModule().marquee.resetMarqueeOnBounce(node);
23529    } else {
23530      getUINativeModule().marquee.setMarqueeOnBounce(node, this.value);
23531    }
23532  }
23533}
23534MarqueeOnBounceModifier.identity = Symbol('marqueeOnBounce');
23535class MarqueeOnFinishModifier extends ModifierWithKey {
23536  constructor(value) {
23537    super(value);
23538  }
23539  applyPeer(node, reset) {
23540    if (reset) {
23541      getUINativeModule().marquee.resetMarqueeOnFinish(node);
23542    } else {
23543      getUINativeModule().marquee.setMarqueeOnFinish(node, this.value);
23544    }
23545  }
23546}
23547MarqueeOnFinishModifier.identity = Symbol('marqueeOnFinish');
23548// @ts-ignore
23549if (globalThis.Marquee !== undefined) {
23550  globalThis.Marquee.attributeModifier = function (modifier) {
23551    attributeModifierFunc.call(this, modifier, (nativePtr) => {
23552      return new ArkMarqueeComponent(nativePtr);
23553    }, (nativePtr, classType, modifierJS) => {
23554      return new modifierJS.MarqueeModifier(nativePtr, classType);
23555    });
23556  };
23557}
23558
23559/// <reference path='./import.ts' />
23560class MenuFontColorModifier extends ModifierWithKey {
23561  constructor(value) {
23562    super(value);
23563  }
23564  applyPeer(node, reset) {
23565    if (reset) {
23566      getUINativeModule().menu.resetMenuFontColor(node);
23567    }
23568    else {
23569      getUINativeModule().menu.setMenuFontColor(node, this.value);
23570    }
23571  }
23572  checkObjectDiff() {
23573    return !isBaseOrResourceEqual(this.stageValue, this.value);
23574  }
23575}
23576MenuFontColorModifier.identity = Symbol('fontColor');
23577class MenuWidthModifier extends ModifierWithKey {
23578  applyPeer(node, reset) {
23579    if (reset) {
23580      getUINativeModule().menu.resetWidth(node);
23581    } else {
23582      getUINativeModule().menu.setWidth(node, this.value);
23583    }
23584  }
23585
23586  checkObjectDiff() {
23587    return !isBaseOrResourceEqual(this.stageValue, this.value);
23588  }
23589}
23590MenuWidthModifier.identity = Symbol('menuWidth');
23591class MenuFontModifier extends ModifierWithKey {
23592  constructor(value) {
23593    super(value);
23594  }
23595  applyPeer(node, reset) {
23596    if (reset || !this.value) {
23597      getUINativeModule().menu.resetFont(node);
23598    }
23599    else {
23600      getUINativeModule().menu.setFont(node, this.value.size, this.value.weight, this.value.family, this.value.style);
23601    }
23602  }
23603  checkObjectDiff() {
23604    let sizeEQ = isBaseOrResourceEqual(this.stageValue.size, this.value.size);
23605    let weightEQ = this.stageValue.weight === this.value.weight;
23606    let familyEQ = isBaseOrResourceEqual(this.stageValue.family, this.value.family);
23607    let styleEQ = this.stageValue.style === this.value.style;
23608    return !sizeEQ || !weightEQ || !familyEQ || !styleEQ;
23609  }
23610}
23611MenuFontModifier.identity = Symbol('font');
23612class RadiusModifier extends ModifierWithKey {
23613  constructor(value) {
23614    super(value);
23615  }
23616  applyPeer(node, reset) {
23617    if (reset) {
23618      getUINativeModule().menu.resetRadius(node);
23619    }
23620    else {
23621      if (isNumber(this.value) || isString(this.value) || isResource(this.value)) {
23622        getUINativeModule().menu.setRadius(node, this.value, this.value, this.value, this.value, false);
23623      }
23624      else {
23625        getUINativeModule().menu.setRadius(node, this.value.topLeft, this.value.topRight, this.value.bottomLeft, this.value.bottomRight, true);
23626      }
23627    }
23628  }
23629  checkObjectDiff() {
23630    if (isResource(this.stageValue) && isResource(this.value)) {
23631      return !isResourceEqual(this.stageValue, this.value);
23632    }
23633    else if (!isResource(this.stageValue) && !isResource(this.value)) {
23634      return !(this.stageValue.topLeft === this.value.topLeft &&
23635        this.stageValue.topRight === this.value.topRight &&
23636        this.stageValue.bottomLeft === this.value.bottomLeft &&
23637        this.stageValue.bottomRight === this.value.bottomRight);
23638    }
23639    else {
23640      return true;
23641    }
23642  }
23643}
23644RadiusModifier.identity = Symbol('radius');
23645class MenuItemDividerModifier extends ModifierWithKey {
23646  constructor(value) {
23647    super(value);
23648  }
23649  applyPeer(node, reset) {
23650    if (reset || !this.value) {
23651      getUINativeModule().menu.resetMenuItemDivider(node);
23652    } else {
23653      getUINativeModule().menu.setMenuItemDivider(node, this.value.strokeWidth, this.value.color, this.value.startMargin, this.value.endMargin);
23654    }
23655  }
23656  checkObjectDiff() {
23657    if (isResource(this.stageValue) && isResource(this.value)) {
23658      return !isResourceEqual(this.stageValue, this.value);
23659    } else if (!isResource(this.stageValue) && !isResource(this.value)) {
23660      return !(this.stageValue.strokeWidth === this.value.strokeWidth &&
23661        this.stageValue.color === this.value.color &&
23662        this.stageValue.startMargin === this.value.startMargin &&
23663        this.stageValue.endMargin === this.value.endMargin);
23664    } else {
23665      return true;
23666    }
23667  }
23668}
23669MenuItemDividerModifier.identity = Symbol('menuItemDivider');
23670class MenuItemGroupDividerModifier extends ModifierWithKey {
23671  constructor(value) {
23672    super(value);
23673  }
23674  applyPeer(node, reset) {
23675    if (reset || !this.value) {
23676      getUINativeModule().menu.resetMenuItemGroupDivider(node);
23677    } else {
23678      getUINativeModule().menu.setMenuItemGroupDivider(node, this.value.strokeWidth, this.value.color, this.value.startMargin, this.value.endMargin);
23679    }
23680  }
23681
23682  checkObjectDiff() {
23683    if (isResource(this.stageValue) && isResource(this.value)) {
23684      return !isResourceEqual(this.stageValue, this.value);
23685    } else if (!isResource(this.stageValue) && !isResource(this.value)) {
23686      return !(this.stageValue.strokeWidth === this.value.strokeWidth &&
23687        this.stageValue.color === this.value.color &&
23688        this.stageValue.startMargin === this.value.startMargin &&
23689        this.stageValue.endMargin === this.value.endMargin);
23690    } else {
23691      return true;
23692    }
23693  }
23694}
23695MenuItemGroupDividerModifier.identity = Symbol('menuItemGroupDivider');
23696class SubMenuExpandingModeModifier extends ModifierWithKey {
23697  constructor(value) {
23698    super(value);
23699  }
23700  applyPeer(node, reset) {
23701    if (reset) {
23702      getUINativeModule().menu.resetSubMenuExpandingMode(node);
23703    } else {
23704      getUINativeModule().menu.setSubMenuExpandingMode(node, this.value);
23705    }
23706  }
23707}
23708SubMenuExpandingModeModifier.identity = Symbol('subMenuExpandingMode');
23709class ArkMenuComponent extends ArkComponent {
23710  constructor(nativePtr, classType) {
23711    super(nativePtr, classType);
23712  }
23713  width(value) {
23714    modifierWithKey(this._modifiersWithKeys, MenuWidthModifier.identity, MenuWidthModifier, value);
23715    return this;
23716  }
23717  fontSize(value) {
23718    throw new Error('Method not implemented.');
23719  }
23720  font(value) {
23721    modifierWithKey(this._modifiersWithKeys, MenuFontModifier.identity, MenuFontModifier, value);
23722    return this;
23723  }
23724  fontColor(value) {
23725    modifierWithKey(this._modifiersWithKeys, MenuFontColorModifier.identity, MenuFontColorModifier, value);
23726    return this;
23727  }
23728  radius(value) {
23729    modifierWithKey(this._modifiersWithKeys, RadiusModifier.identity, RadiusModifier, value);
23730    return this;
23731  }
23732  menuItemDivider(value) {
23733    modifierWithKey(this._modifiersWithKeys, MenuItemDividerModifier.identity, MenuItemDividerModifier, value);
23734    return this;
23735  }
23736  menuItemGroupDivider(value) {
23737    modifierWithKey(this._modifiersWithKeys, MenuItemGroupDividerModifier.identity, MenuItemGroupDividerModifier, value);
23738    return this;
23739  }
23740  subMenuExpandingMode(value) {
23741    modifierWithKey(this._modifiersWithKeys, SubMenuExpandingModeModifier.identity, SubMenuExpandingModeModifier, value);
23742    return this;
23743  }
23744}
23745// @ts-ignore
23746if (globalThis.Menu !== undefined) {
23747  globalThis.Menu.attributeModifier = function (modifier) {
23748    attributeModifierFunc.call(this, modifier, (nativePtr) => {
23749      return new ArkMenuComponent(nativePtr);
23750    }, (nativePtr, classType, modifierJS) => {
23751      return new modifierJS.MenuModifier(nativePtr, classType);
23752    });
23753  };
23754}
23755
23756/// <reference path='./import.ts' />
23757class MenuItemSelectedModifier extends ModifierWithKey {
23758  constructor(value) {
23759    super(value);
23760  }
23761  applyPeer(node, reset) {
23762    if (reset) {
23763      getUINativeModule().menuitem.resetMenuItemSelected(node);
23764    }
23765    else {
23766      getUINativeModule().menuitem.setMenuItemSelected(node, this.value);
23767    }
23768  }
23769  checkObjectDiff() {
23770    return !isBaseOrResourceEqual(this.stageValue, this.value);
23771  }
23772}
23773MenuItemSelectedModifier.identity = Symbol('menuItemSelected');
23774class LabelFontColorModifier extends ModifierWithKey {
23775  constructor(value) {
23776    super(value);
23777  }
23778  applyPeer(node, reset) {
23779    if (reset) {
23780      getUINativeModule().menuitem.resetLabelFontColor(node);
23781    }
23782    else {
23783      getUINativeModule().menuitem.setLabelFontColor(node, this.value);
23784    }
23785  }
23786  checkObjectDiff() {
23787    return !isBaseOrResourceEqual(this.stageValue, this.value);
23788  }
23789}
23790LabelFontColorModifier.identity = Symbol('labelfontColor');
23791class ContentFontColorModifier extends ModifierWithKey {
23792  constructor(value) {
23793    super(value);
23794  }
23795  applyPeer(node, reset) {
23796    if (reset) {
23797      getUINativeModule().menuitem.resetContentFontColor(node);
23798    }
23799    else {
23800      getUINativeModule().menuitem.setContentFontColor(node, this.value);
23801    }
23802  }
23803  checkObjectDiff() {
23804    return !isBaseOrResourceEqual(this.stageValue, this.value);
23805  }
23806}
23807ContentFontColorModifier.identity = Symbol('contentfontColor');
23808class LabelFontModifier extends ModifierWithKey {
23809  constructor(value) {
23810    super(value);
23811  }
23812  applyPeer(node, reset) {
23813    if (reset || !this.value) {
23814      getUINativeModule().menuitem.resetLabelFont(node);
23815    }
23816    else {
23817      getUINativeModule().menuitem.setLabelFont(node, this.value.size, this.value.weight, this.value.family, this.value.style);
23818    }
23819  }
23820  checkObjectDiff() {
23821    let sizeEQ = isBaseOrResourceEqual(this.stageValue.size, this.value.size);
23822    let weightEQ = this.stageValue.weight === this.value.weight;
23823    let familyEQ = isBaseOrResourceEqual(this.stageValue.family, this.value.family);
23824    let styleEQ = this.stageValue.style === this.value.style;
23825    return !sizeEQ || !weightEQ || !familyEQ || !styleEQ;
23826  }
23827}
23828LabelFontModifier.identity = Symbol('labelFont');
23829class ContentFontModifier extends ModifierWithKey {
23830  constructor(value) {
23831    super(value);
23832  }
23833  applyPeer(node, reset) {
23834    if (reset || !this.value) {
23835      getUINativeModule().menuitem.resetContentFont(node);
23836    }
23837    else {
23838      getUINativeModule().menuitem.setContentFont(node, this.value.size, this.value.weight, this.value.family, this.value.style);
23839    }
23840  }
23841  checkObjectDiff() {
23842    let sizeEQ = isBaseOrResourceEqual(this.stageValue.size, this.value.size);
23843    let weightEQ = this.stageValue.weight === this.value.weight;
23844    let familyEQ = isBaseOrResourceEqual(this.stageValue.family, this.value.family);
23845    let styleEQ = this.stageValue.style === this.value.style;
23846    return !sizeEQ || !weightEQ || !familyEQ || !styleEQ;
23847  }
23848}
23849ContentFontModifier.identity = Symbol('contentFont');
23850class MenuItemSelectIconModifier extends ModifierWithKey {
23851  applyPeer(node, reset) {
23852    if (reset || !this.value) {
23853      getUINativeModule().menuitem.resetSelectIcon(node);
23854    } else {
23855      getUINativeModule().menuitem.setSelectIcon(node, this.value);
23856    }
23857  }
23858  checkObjectDiff() {
23859    return !isBaseOrResourceEqual(this.stageValue, this.value);
23860  }
23861}
23862MenuItemSelectIconModifier.identity = Symbol('selectIcon');
23863class ArkMenuItemComponent extends ArkComponent {
23864  constructor(nativePtr, classType) {
23865    super(nativePtr, classType);
23866  }
23867  selected(value) {
23868    modifierWithKey(this._modifiersWithKeys, MenuItemSelectedModifier.identity, MenuItemSelectedModifier, value);
23869    return this;
23870  }
23871  selectIcon(value) {
23872    modifierWithKey(this._modifiersWithKeys, MenuItemSelectIconModifier.identity, MenuItemSelectIconModifier, value);
23873    return this;
23874  }
23875  onChange(callback) {
23876    throw new Error('Method not implemented.');
23877  }
23878  contentFont(value) {
23879    modifierWithKey(this._modifiersWithKeys, ContentFontModifier.identity, ContentFontModifier, value);
23880    return this;
23881  }
23882  contentFontColor(value) {
23883    modifierWithKey(this._modifiersWithKeys, ContentFontColorModifier.identity, ContentFontColorModifier, value);
23884    return this;
23885  }
23886  labelFont(value) {
23887    modifierWithKey(this._modifiersWithKeys, LabelFontModifier.identity, LabelFontModifier, value);
23888    return this;
23889  }
23890  labelFontColor(value) {
23891    modifierWithKey(this._modifiersWithKeys, LabelFontColorModifier.identity, LabelFontColorModifier, value);
23892    return this;
23893  }
23894}
23895// @ts-ignore
23896if (globalThis.MenuItem !== undefined) {
23897  globalThis.MenuItem.attributeModifier = function (modifier) {
23898    attributeModifierFunc.call(this, modifier, (nativePtr) => {
23899      return new ArkMenuItemComponent(nativePtr);
23900    }, (nativePtr, classType, modifierJS) => {
23901      return new modifierJS.MenuItemModifier(nativePtr, classType);
23902    });
23903  };
23904}
23905
23906/// <reference path='./import.ts' />
23907class ArkMenuItemGroupComponent extends ArkComponent {
23908  constructor(nativePtr, classType) {
23909    super(nativePtr, classType);
23910  }
23911}
23912// @ts-ignore
23913if (globalThis.MenuItemGroup !== undefined) {
23914  globalThis.MenuItemGroup.attributeModifier = function (modifier) {
23915    attributeModifierFunc.call(this, modifier, (nativePtr) => {
23916      return new ArkMenuItemGroupComponent(nativePtr);
23917    }, (nativePtr, classType, modifierJS) => {
23918      return new modifierJS.CommonModifier(nativePtr, classType);
23919    });
23920  };
23921}
23922
23923/// <reference path='./import.ts' />
23924class ArkPluginComponent extends ArkComponent {
23925  constructor(nativePtr, classType) {
23926    super(nativePtr, classType);
23927  }
23928  onComplete(callback) {
23929    throw new Error('Method not implemented.');
23930  }
23931  onError(callback) {
23932    throw new Error('Method not implemented.');
23933  }
23934  size(value) {
23935    modifierWithKey(this._modifiersWithKeys, PluginSizeModifier.identity, PluginSizeModifier, value);
23936    return this;
23937  }
23938  width(value) {
23939    modifierWithKey(this._modifiersWithKeys, PluginWidthModifier.identity, PluginWidthModifier, value);
23940    return this;
23941  }
23942  height(value) {
23943    modifierWithKey(this._modifiersWithKeys, PluginHeightModifier.identity, PluginHeightModifier, value);
23944    return this;
23945  }
23946}
23947class PluginWidthModifier extends ModifierWithKey {
23948  constructor(value) {
23949    super(value);
23950  }
23951  applyPeer(node, reset) {
23952    if (reset) {
23953      getUINativeModule().plugin.resetWidth(node);
23954    }
23955    else {
23956      getUINativeModule().plugin.setWidth(node, this.value);
23957    }
23958  }
23959  checkObjectDiff() {
23960    if (isResource(this.stageValue) && isResource(this.value)) {
23961      return !isResourceEqual(this.stageValue, this.value);
23962    }
23963    else {
23964      return true;
23965    }
23966  }
23967}
23968PluginWidthModifier.identity = Symbol('pluginWidth');
23969class PluginHeightModifier extends ModifierWithKey {
23970  constructor(value) {
23971    super(value);
23972  }
23973  applyPeer(node, reset) {
23974    if (reset) {
23975      getUINativeModule().plugin.resetHeight(node);
23976    }
23977    else {
23978      getUINativeModule().plugin.setHeight(node, this.value);
23979    }
23980  }
23981  checkObjectDiff() {
23982    if (isResource(this.stageValue) && isResource(this.value)) {
23983      return !isResourceEqual(this.stageValue, this.value);
23984    }
23985    else {
23986      return true;
23987    }
23988  }
23989}
23990PluginHeightModifier.identity = Symbol('pluginHeight');
23991class PluginSizeModifier extends ModifierWithKey {
23992  constructor(value) {
23993    super(value);
23994  }
23995  applyPeer(node, reset) {
23996    if (reset) {
23997      getUINativeModule().plugin.resetSize(node);
23998    }
23999    else {
24000      getUINativeModule().plugin.setSize(node, this.value.width, this.value.height);
24001    }
24002  }
24003  checkObjectDiff() {
24004    return !isBaseOrResourceEqual(this.stageValue.width, this.value.width) ||
24005      !isBaseOrResourceEqual(this.stageValue.height, this.value.height);
24006  }
24007}
24008PluginSizeModifier.identity = Symbol('size');
24009// @ts-ignore
24010if (globalThis.PluginComponent !== undefined) {
24011  globalThis.PluginComponent.attributeModifier = function (modifier) {
24012    attributeModifierFunc.call(this, modifier, (nativePtr) => {
24013      return new ArkPluginComponent(nativePtr);
24014    }, (nativePtr, classType, modifierJS) => {
24015      return new modifierJS.PluginComponentModifier(nativePtr, classType);
24016    });
24017  };
24018}
24019
24020/// <reference path='./import.ts' />
24021class ArkProgressComponent extends ArkComponent {
24022  constructor(nativePtr, classType) {
24023    super(nativePtr, classType);
24024  }
24025  initialize(value) {
24026    if (value[0] !== undefined) {
24027      modifierWithKey(this._modifiersWithKeys,
24028        ProgressInitializeModifier.identity, ProgressInitializeModifier, value[0]);
24029    }
24030    return this;
24031  }
24032  allowChildCount() {
24033    return 0;
24034  }
24035  value(value) {
24036    modifierWithKey(this._modifiersWithKeys, ProgressValueModifier.identity, ProgressValueModifier, value);
24037    return this;
24038  }
24039  color(value) {
24040    modifierWithKey(this._modifiersWithKeys, ProgressColorModifier.identity, ProgressColorModifier, value);
24041    return this;
24042  }
24043  style(value) {
24044    modifierWithKey(this._modifiersWithKeys, ProgressStyleModifier.identity, ProgressStyleModifier, value);
24045    return this;
24046  }
24047  backgroundColor(value) {
24048    modifierWithKey(this._modifiersWithKeys, ProgressBackgroundColorModifier.identity, ProgressBackgroundColorModifier, value);
24049    return this;
24050  }
24051  contentModifier(value) {
24052    modifierWithKey(this._modifiersWithKeys, ProgressContentModifier.identity, ProgressContentModifier, value);
24053    return this;
24054  }
24055  setContentModifier(modifier) {
24056    if (modifier === undefined || modifier === null) {
24057      getUINativeModule().progress.setContentModifierBuilder(this.nativePtr, false);
24058      return;
24059    }
24060    this.needRebuild = false;
24061    if (this.builder !== modifier.applyContent()) {
24062      this.needRebuild = true;
24063    }
24064    this.builder = modifier.applyContent();
24065    this.modifier = modifier;
24066    getUINativeModule().progress.setContentModifierBuilder(this.nativePtr, this);
24067    return this;
24068  }
24069  makeContentModifierNode(context, progressConfig) {
24070    progressConfig.contentModifier = this.modifier;
24071    if (isUndefined(this.progressNode) || this.needRebuild) {
24072      let xNode = globalThis.requireNapi('arkui.node');
24073      this.progressNode = new xNode.BuilderNode(context);
24074      this.progressNode.build(this.builder, progressConfig);
24075      this.needRebuild = false;
24076    } else {
24077      this.progressNode.update(progressConfig);
24078    }
24079    return this.progressNode.getFrameNode();
24080  }
24081}
24082class ProgressInitializeModifier extends ModifierWithKey {
24083  constructor(value) {
24084    super(value);
24085  }
24086  applyPeer(node, reset) {
24087    if (reset) {
24088      getUINativeModule().progress.resetProgressInitialize(node);
24089    }
24090    else {
24091      getUINativeModule().progress.setProgressInitialize(node, this.value.value,
24092        this.value.total, this.value.style, this.value.type);
24093    }
24094  }
24095}
24096ProgressInitializeModifier.identity = Symbol('progressInitialize');
24097class ProgressValueModifier extends ModifierWithKey {
24098  applyPeer(node, reset) {
24099    if (reset) {
24100      getUINativeModule().progress.ResetProgressValue(node);
24101    }
24102    else {
24103      getUINativeModule().progress.SetProgressValue(node, this.value);
24104    }
24105  }
24106  checkObjectDiff() {
24107    return true;
24108  }
24109}
24110ProgressValueModifier.identity = Symbol('value');
24111class ProgressColorModifier extends ModifierWithKey {
24112  applyPeer(node, reset) {
24113    if (reset) {
24114      getUINativeModule().progress.resetProgressColor(node);
24115    }
24116    else {
24117      getUINativeModule().progress.setProgressColor(node, this.value);
24118    }
24119  }
24120  checkObjectDiff() {
24121    return this.stageValue !== this.value;
24122  }
24123}
24124ProgressColorModifier.identity = Symbol('color');
24125class ProgressStyleModifier extends ModifierWithKey {
24126  applyPeer(node, reset) {
24127    if (reset) {
24128      getUINativeModule().progress.ResetProgressStyle(node);
24129    }
24130    else {
24131      let strokeWidth = this.value.strokeWidth;
24132      let scaleCount = this.value.scaleCount;
24133      let scaleWidth = this.value.scaleWidth;
24134      let enableSmoothEffect = this.value.enableSmoothEffect;
24135      let borderColor = this.value.borderColor;
24136      let borderWidth = this.value.borderWidth;
24137      let content = this.value.content;
24138      let fontSize;
24139      let fontWeight;
24140      let fontFamily;
24141      let fontStyle;
24142      if (this.value.font) {
24143        fontSize = this.value.font.size;
24144        fontWeight = this.value.font.weight;
24145        fontFamily = this.value.font.family;
24146        fontStyle = this.value.font.style;
24147      }
24148      let fontColor = this.value.fontColor;
24149      let enableScanEffect = this.value.enableScanEffect;
24150      let showDefaultPercentage = this.value.showDefaultPercentage;
24151      let shadow = this.value.shadow;
24152      let status = this.value.status;
24153      let strokeRadius = this.value.strokeRadius;
24154      getUINativeModule().progress.SetProgressStyle(node, strokeWidth, scaleCount,
24155        scaleWidth, enableSmoothEffect, borderColor, borderWidth, content, fontSize,
24156        fontWeight, fontFamily, fontStyle, fontColor, enableScanEffect, showDefaultPercentage,
24157        shadow, status, strokeRadius);
24158    }
24159  }
24160  checkObjectDiff() {
24161    return true;
24162  }
24163}
24164ProgressStyleModifier.identity = Symbol('style');
24165class ProgressBackgroundColorModifier extends ModifierWithKey {
24166  applyPeer(node, reset) {
24167    if (reset) {
24168      getUINativeModule().progress.resetProgressBackgroundColor(node);
24169    }
24170    else {
24171      getUINativeModule().progress.setProgressBackgroundColor(node, this.value);
24172    }
24173  }
24174  checkObjectDiff() {
24175    return !isBaseOrResourceEqual(this.stageValue, this.value);
24176  }
24177}
24178ProgressBackgroundColorModifier.identity = Symbol('progressBackgroundColor');
24179class ProgressContentModifier extends ModifierWithKey {
24180  constructor(value) {
24181    super(value);
24182  }
24183  applyPeer(node, reset, component) {
24184    let progressComponent = component;
24185    progressComponent.setContentModifier(this.value);
24186  }
24187}
24188ProgressContentModifier.identity = Symbol('progressContentModifier');
24189// @ts-ignore
24190if (globalThis.Progress !== undefined) {
24191  globalThis.Progress.attributeModifier = function (modifier) {
24192    attributeModifierFunc.call(this, modifier, (nativePtr) => {
24193      return new ArkProgressComponent(nativePtr);
24194    }, (nativePtr, classType, modifierJS) => {
24195      return new modifierJS.ProgressModifier(nativePtr, classType);
24196    });
24197  };
24198
24199  globalThis.Progress.contentModifier = function (modifier) {
24200    const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
24201    let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
24202    let component = this.createOrGetNode(elmtId, () => {
24203      return new ArkProgressComponent(nativeNode);
24204    });
24205    component.setContentModifier(modifier);
24206  };
24207}
24208
24209/// <reference path='./import.ts' />
24210class ArkQRCodeComponent extends ArkComponent {
24211  constructor(nativePtr, classType) {
24212    super(nativePtr, classType);
24213  }
24214  allowChildCount() {
24215    return 0;
24216  }
24217  initialize(value) {
24218    modifierWithKey(this._modifiersWithKeys, QRValueModifier.identity, QRValueModifier, value[0]);
24219    return this;
24220  }
24221  color(value) {
24222    modifierWithKey(this._modifiersWithKeys, QRColorModifier.identity, QRColorModifier, value);
24223    return this;
24224  }
24225  backgroundColor(value) {
24226    modifierWithKey(this._modifiersWithKeys, QRBackgroundColorModifier.identity, QRBackgroundColorModifier, value);
24227    return this;
24228  }
24229  contentOpacity(value) {
24230    modifierWithKey(this._modifiersWithKeys, QRContentOpacityModifier.identity, QRContentOpacityModifier, value);
24231    return this;
24232  }
24233}
24234class QRValueModifier extends ModifierWithKey {
24235  constructor(value) {
24236    super(value);
24237  }
24238  applyPeer(node, reset) {
24239    getUINativeModule().qrcode.setQRValue(node, this.value);
24240  }
24241  checkObjectDiff() {
24242    return !isBaseOrResourceEqual(this.stageValue, this.value);
24243  }
24244}
24245QRValueModifier.identity = Symbol('QRCodeValue');
24246class QRColorModifier extends ModifierWithKey {
24247  constructor(value) {
24248    super(value);
24249  }
24250  applyPeer(node, reset) {
24251    if (reset) {
24252      getUINativeModule().qrcode.resetQRColor(node);
24253    }
24254    else {
24255      getUINativeModule().qrcode.setQRColor(node, this.value);
24256    }
24257  }
24258  checkObjectDiff() {
24259    return !isBaseOrResourceEqual(this.stageValue, this.value);
24260  }
24261}
24262QRColorModifier.identity = Symbol('color');
24263class QRBackgroundColorModifier extends ModifierWithKey {
24264  constructor(value) {
24265    super(value);
24266  }
24267  applyPeer(node, reset) {
24268    if (reset) {
24269      getUINativeModule().qrcode.resetQRBackgroundColor(node);
24270    }
24271    else {
24272      getUINativeModule().qrcode.setQRBackgroundColor(node, this.value);
24273    }
24274  }
24275  checkObjectDiff() {
24276    return !isBaseOrResourceEqual(this.stageValue, this.value);
24277  }
24278}
24279QRBackgroundColorModifier.identity = Symbol('qrBackgroundColor');
24280class QRContentOpacityModifier extends ModifierWithKey {
24281  constructor(value) {
24282    super(value);
24283  }
24284  applyPeer(node, reset) {
24285    if (reset) {
24286      getUINativeModule().qrcode.resetContentOpacity(node);
24287    }
24288    else {
24289      getUINativeModule().qrcode.setContentOpacity(node, this.value);
24290    }
24291  }
24292  checkObjectDiff() {
24293    return !isBaseOrResourceEqual(this.stageValue, this.value);
24294  }
24295}
24296QRContentOpacityModifier.identity = Symbol('qrContentOpacity');
24297// @ts-ignore
24298if (globalThis.QRCode !== undefined) {
24299  globalThis.QRCode.attributeModifier = function (modifier) {
24300    attributeModifierFunc.call(this, modifier, (nativePtr) => {
24301      return new ArkQRCodeComponent(nativePtr);
24302    }, (nativePtr, classType, modifierJS) => {
24303      return new modifierJS.QRCodeModifier(nativePtr, classType);
24304    });
24305  };
24306}
24307
24308/// <reference path='./import.ts' />
24309class ArkRichTextComponent extends ArkComponent {
24310  constructor(nativePtr, classType) {
24311    super(nativePtr, classType);
24312  }
24313  onStart(callback) {
24314    throw new Error('Method not implemented.');
24315  }
24316  onComplete(callback) {
24317    throw new Error('Method not implemented.');
24318  }
24319}
24320// @ts-ignore
24321if (globalThis.RichText !== undefined) {
24322  globalThis.RichText.attributeModifier = function (modifier) {
24323    attributeModifierFunc.call(this, modifier, (nativePtr) => {
24324      return new ArkRichTextComponent(nativePtr);
24325    }, (nativePtr, classType, modifierJS) => {
24326      return new modifierJS.CommonModifier(nativePtr, classType);
24327    });
24328  };
24329}
24330
24331class ScrollBarEnableNestedScrollModifier extends ModifierWithKey {
24332  applyPeer(node, reset) {
24333    if (reset) {
24334      getUINativeModule().ScrollBar.resetScrollBarEnableNestedScroll(node);
24335    } else {
24336      getUINativeModule().ScrollBar.setScrollBarEnableNestedScroll(node, this.value);
24337    }
24338  }
24339}
24340ScrollBarEnableNestedScrollModifier.identity = Symbol('enableNestedScroll');
24341
24342/// <reference path='./import.ts' />
24343class ArkScrollBarComponent extends ArkComponent {
24344  constructor(nativePtr, classType) {
24345    super(nativePtr, classType);
24346  }
24347  enableNestedScroll(value) {
24348    modifierWithKey(this._modifiersWithKeys, ScrollBarEnableNestedScrollModifier.identity,
24349      ScrollBarEnableNestedScrollModifier, value);
24350    return this;
24351  }
24352}
24353// @ts-ignore
24354if (globalThis.ScrollBar !== undefined) {
24355  globalThis.ScrollBar.attributeModifier = function (modifier) {
24356    attributeModifierFunc.call(this, modifier, (nativePtr) => {
24357      return new ArkScrollBarComponent(nativePtr);
24358    }, (nativePtr, classType, modifierJS) => {
24359      return new modifierJS.CommonModifier(nativePtr, classType);
24360    });
24361  };
24362}
24363
24364/// <reference path='./import.ts' />
24365class ArkStepperComponent extends ArkComponent {
24366  constructor(nativePtr, classType) {
24367    super(nativePtr, classType);
24368  }
24369  onFinish(callback) {
24370    throw new Error('Method not implemented.');
24371  }
24372  onSkip(callback) {
24373    throw new Error('Method not implemented.');
24374  }
24375  onChange(callback) {
24376    throw new Error('Method not implemented.');
24377  }
24378  onNext(callback) {
24379    throw new Error('Method not implemented.');
24380  }
24381  onPrevious(callback) {
24382    throw new Error('Method not implemented.');
24383  }
24384}
24385// @ts-ignore
24386if (globalThis.Stepper !== undefined) {
24387  globalThis.Stepper.attributeModifier = function (modifier) {
24388    attributeModifierFunc.call(this, modifier, (nativePtr) => {
24389      return new ArkStepperComponent(nativePtr);
24390    }, (nativePtr, classType, modifierJS) => {
24391      return new modifierJS.CommonModifier(nativePtr, classType);
24392    });
24393  };
24394}
24395
24396/// <reference path='./import.ts' />
24397class ArkStepperItemComponent extends ArkComponent {
24398  constructor(nativePtr, classType) {
24399    super(nativePtr, classType);
24400  }
24401  prevLabel(value) {
24402    modifierWithKey(this._modifiersWithKeys, PrevLabelModifier.identity, PrevLabelModifier, value);
24403    return this;
24404  }
24405  nextLabel(value) {
24406    modifierWithKey(this._modifiersWithKeys, NextLabelModifier.identity, NextLabelModifier, value);
24407    return this;
24408  }
24409  status(value) {
24410    modifierWithKey(this._modifiersWithKeys, StatusModifier.identity, StatusModifier, value);
24411    return this;
24412  }
24413}
24414class NextLabelModifier extends ModifierWithKey {
24415  constructor(value) {
24416    super(value);
24417  }
24418  applyPeer(node, reset) {
24419    if (reset) {
24420      getUINativeModule().stepperItem.resetNextLabel(node);
24421    }
24422    else {
24423      getUINativeModule().stepperItem.setNextLabel(node, this.value);
24424    }
24425  }
24426}
24427NextLabelModifier.identity = Symbol('NextLabel');
24428
24429class PrevLabelModifier extends ModifierWithKey {
24430  constructor(value) {
24431    super(value);
24432  }
24433  static identity = Symbol('prevLabel');
24434  applyPeer(node, reset) {
24435    if (reset) {
24436      getUINativeModule().stepperItem.resetPrevLabel(node);
24437    }
24438    else {
24439      getUINativeModule().stepperItem.setPrevLabel(node, this.value);
24440    }
24441  }
24442}
24443
24444class StatusModifier extends ModifierWithKey {
24445  constructor(value) {
24446    super(value);
24447  }
24448  static identity = Symbol('status');
24449  applyPeer(node, reset) {
24450    if (reset) {
24451      getUINativeModule().stepperItem.resetStatus(node);
24452    }
24453    else {
24454      getUINativeModule().stepperItem.setStatus(node, this.value);
24455    }
24456  }
24457}
24458// @ts-ignore
24459if (globalThis.StepperItem !== undefined) {
24460  globalThis.StepperItem.attributeModifier = function (modifier) {
24461    attributeModifierFunc.call(this, modifier, (nativePtr) => {
24462      return new ArkStepperItemComponent(nativePtr);
24463    }, (nativePtr, classType, modifierJS) => {
24464      return new modifierJS.StepperItemModifier(nativePtr, classType);
24465    });
24466  };
24467}
24468
24469/// <reference path='./import.ts' />
24470class ArkTextClockComponent extends ArkComponent {
24471  constructor(nativePtr, classType) {
24472    super(nativePtr, classType);
24473  }
24474  allowChildCount() {
24475    return 0;
24476  }
24477  initialize(value) {
24478    let _a, _b;
24479    if (value.length === 1 && isObject(value[0])) {
24480      if (((_a = value[0]) === null || _a === void 0 ? void 0 : _a.timeZoneOffset) !== undefined) {
24481        modifierWithKey(this._modifiersWithKeys, TextClockTimeZoneOffsetModifier.identity, TextClockTimeZoneOffsetModifier, value[0].timeZoneOffset);
24482      } else {
24483        modifierWithKey(this._modifiersWithKeys, TextClockTimeZoneOffsetModifier.identity, TextClockTimeZoneOffsetModifier, undefined);
24484      }
24485      if (((_b = value[0]) === null || _b === void 0 ? void 0 : _b.controller) !== undefined) {
24486        modifierWithKey(this._modifiersWithKeys, TextClockControllerModifier.identity, TextClockControllerModifier, value[0].controller);
24487      } else {
24488        modifierWithKey(this._modifiersWithKeys, TextClockControllerModifier.identity, TextClockControllerModifier, undefined);
24489      }
24490    }
24491    else {
24492      modifierWithKey(this._modifiersWithKeys, TextClockTimeZoneOffsetModifier.identity, TextClockTimeZoneOffsetModifier, undefined);
24493      modifierWithKey(this._modifiersWithKeys, TextClockControllerModifier.identity, TextClockControllerModifier, undefined);
24494    }
24495    return this;
24496  }
24497  format(value) {
24498    modifierWithKey(this._modifiersWithKeys, TextClockFormatModifier.identity, TextClockFormatModifier, value);
24499    return this;
24500  }
24501  onDateChange(event) {
24502    throw new Error('Method not implemented.');
24503  }
24504  fontColor(value) {
24505    modifierWithKey(this._modifiersWithKeys, TextClockFontColorModifier.identity, TextClockFontColorModifier, value);
24506    return this;
24507  }
24508  fontSize(value) {
24509    modifierWithKey(this._modifiersWithKeys, TextClockFontSizeModifier.identity, TextClockFontSizeModifier, value);
24510    return this;
24511  }
24512  fontStyle(value) {
24513    modifierWithKey(this._modifiersWithKeys, TextClockFontStyleModifier.identity, TextClockFontStyleModifier, value);
24514    return this;
24515  }
24516  fontWeight(value) {
24517    modifierWithKey(this._modifiersWithKeys, TextClockFontWeightModifier.identity, TextClockFontWeightModifier, value);
24518    return this;
24519  }
24520  fontFamily(value) {
24521    modifierWithKey(this._modifiersWithKeys, TextClockFontFamilyModifier.identity, TextClockFontFamilyModifier, value);
24522    return this;
24523  }
24524  textShadow(value) {
24525    modifierWithKey(this._modifiersWithKeys, TextClockTextShadowModifier.identity, TextClockTextShadowModifier, value);
24526    return this;
24527  }
24528  fontFeature(value) {
24529    modifierWithKey(this._modifiersWithKeys, TextClockFontFeatureModifier.identity, TextClockFontFeatureModifier, value);
24530    return this;
24531  }
24532  contentModifier(value) {
24533    modifierWithKey(this._modifiersWithKeys, TextClockContentModifier.identity, TextClockContentModifier, value);
24534    return this;
24535  }
24536  setContentModifier(modifier) {
24537    if (modifier === undefined || modifier === null) {
24538      getUINativeModule().textClock.setContentModifierBuilder(this.nativePtr, false);
24539      return;
24540    }
24541    this.needRebuild = false;
24542    if (this.builder !== modifier.applyContent()) {
24543      this.needRebuild = true;
24544    }
24545    this.builder = modifier.applyContent();
24546    this.modifier = modifier;
24547    getUINativeModule().textClock.setContentModifierBuilder(this.nativePtr, this);
24548  }
24549  makeContentModifierNode(context, textClockConfiguration) {
24550    textClockConfiguration.contentModifier = this.modifier;
24551    if (isUndefined(this.textClockNode) || this.needRebuild) {
24552      const xNode = globalThis.requireNapi('arkui.node');
24553      this.textClockNode = new xNode.BuilderNode(context);
24554      this.textClockNode.build(this.builder, textClockConfiguration);
24555      this.needRebuild = false;
24556    } else {
24557      this.textClockNode.update(textClockConfiguration);
24558    }
24559    return this.textClockNode.getFrameNode();
24560  }
24561  dateTimeOptions(value) {
24562    modifierWithKey(this._modifiersWithKeys, TextClockDateTimeOptionsModifier.identity, TextClockDateTimeOptionsModifier, value);
24563    return this;
24564  }
24565}
24566class TextClockTimeZoneOffsetModifier extends ModifierWithKey {
24567  constructor(value) {
24568    super(value);
24569  }
24570  applyPeer(node, reset) {
24571    if (reset) {
24572      getUINativeModule().textClock.setTextClockTimeZoneOffset(node, undefined);
24573    } else {
24574      getUINativeModule().textClock.setTextClockTimeZoneOffset(node, this.value);
24575    }
24576  }
24577  checkObjectDiff() {
24578    return !isBaseOrResourceEqual(this.stageValue, this.value);
24579  }
24580}
24581TextClockTimeZoneOffsetModifier.identity = Symbol('textClockTimeZoneOffset');
24582class TextClockControllerModifier extends ModifierWithKey {
24583  constructor(value) {
24584    super(value);
24585  }
24586  applyPeer(node, reset) {
24587    if (reset) {
24588      getUINativeModule().textClock.setTextClockController(node, undefined);
24589    } else {
24590      getUINativeModule().textClock.setTextClockController(node, this.value);
24591    }
24592  }
24593  checkObjectDiff() {
24594    return !isBaseOrResourceEqual(this.stageValue, this.value);
24595  }
24596}
24597TextClockControllerModifier.identity = Symbol('textClockController');
24598class TextClockFormatModifier extends ModifierWithKey {
24599  constructor(value) {
24600    super(value);
24601  }
24602  applyPeer(node, reset) {
24603    if (reset) {
24604      getUINativeModule().textClock.resetFormat(node);
24605    }
24606    else {
24607      getUINativeModule().textClock.setFormat(node, this.value);
24608    }
24609  }
24610}
24611TextClockFormatModifier.identity = Symbol('textClockFormat');
24612class TextClockFontColorModifier extends ModifierWithKey {
24613  constructor(value) {
24614    super(value);
24615  }
24616  applyPeer(node, reset) {
24617    if (reset) {
24618      getUINativeModule().textClock.resetFontColor(node);
24619    }
24620    else {
24621      getUINativeModule().textClock.setFontColor(node, this.value);
24622    }
24623  }
24624  checkObjectDiff() {
24625    return !isBaseOrResourceEqual(this.stageValue, this.value);
24626  }
24627}
24628TextClockFontColorModifier.identity = Symbol('textClockFontColor');
24629class TextClockFontSizeModifier extends ModifierWithKey {
24630  constructor(value) {
24631    super(value);
24632  }
24633  applyPeer(node, reset) {
24634    if (reset) {
24635      getUINativeModule().textClock.resetFontSize(node);
24636    }
24637    else {
24638      getUINativeModule().textClock.setFontSize(node, this.value);
24639    }
24640  }
24641  checkObjectDiff() {
24642    return !isBaseOrResourceEqual(this.stageValue, this.value);
24643  }
24644}
24645TextClockFontSizeModifier.identity = Symbol('textClockFontSize');
24646class TextClockFontStyleModifier extends ModifierWithKey {
24647  constructor(value) {
24648    super(value);
24649  }
24650  applyPeer(node, reset) {
24651    if (reset) {
24652      getUINativeModule().textClock.resetFontStyle(node);
24653    }
24654    else {
24655      getUINativeModule().textClock.setFontStyle(node, this.value);
24656    }
24657  }
24658}
24659TextClockFontStyleModifier.identity = Symbol('textClockFontStyle');
24660class TextClockFontWeightModifier extends ModifierWithKey {
24661  constructor(value) {
24662    super(value);
24663  }
24664  applyPeer(node, reset) {
24665    if (reset) {
24666      getUINativeModule().textClock.resetFontWeight(node);
24667    }
24668    else {
24669      getUINativeModule().textClock.setFontWeight(node, this.value);
24670    }
24671  }
24672}
24673TextClockFontWeightModifier.identity = Symbol('textClockFontWeight');
24674class TextClockFontFamilyModifier extends ModifierWithKey {
24675  constructor(value) {
24676    super(value);
24677  }
24678  applyPeer(node, reset) {
24679    if (reset) {
24680      getUINativeModule().textClock.resetFontFamily(node);
24681    }
24682    else {
24683      getUINativeModule().textClock.setFontFamily(node, this.value);
24684    }
24685  }
24686  checkObjectDiff() {
24687    return !isBaseOrResourceEqual(this.stageValue, this.value);
24688  }
24689}
24690TextClockFontFamilyModifier.identity = Symbol('textClockFontFamily');
24691class TextClockFontFeatureModifier extends ModifierWithKey {
24692  constructor(value) {
24693    super(value);
24694  }
24695  applyPeer(node, reset) {
24696    if (reset) {
24697      getUINativeModule().textClock.resetFontFeature(node);
24698    }
24699    else {
24700      getUINativeModule().textClock.setFontFeature(node, this.value);
24701    }
24702  }
24703  checkObjectDiff() {
24704    return !isBaseOrResourceEqual(this.stageValue, this.value);
24705  }
24706}
24707TextClockFontFeatureModifier.identity = Symbol('textClockFontFeature');
24708class TextClockContentModifier extends ModifierWithKey {
24709  constructor(value) {
24710    super(value);
24711  }
24712  applyPeer(node, reset, component) {
24713    let textClockComponent = component;
24714    textClockComponent.setContentModifier(this.value);
24715  }
24716}
24717TextClockContentModifier.identity = Symbol('textClockContentModifier');
24718class TextClockTextShadowModifier extends ModifierWithKey {
24719  constructor(value) {
24720    super(value);
24721  }
24722  applyPeer(node, reset) {
24723    if (reset) {
24724      getUINativeModule().textClock.resetTextShadow(node);
24725    }
24726    else {
24727      let shadow = new ArkShadowInfoToArray();
24728      if (!shadow.convertShadowOptions(this.value)) {
24729        getUINativeModule().textClock.resetTextShadow(node);
24730      }
24731      else {
24732        getUINativeModule().textClock.setTextShadow(node, shadow.radius, shadow.type, shadow.color,
24733          shadow.offsetX, shadow.offsetY, shadow.fill, shadow.radius.length);
24734      }
24735    }
24736  }
24737  checkObjectDiff() {
24738    let checkDiff = true;
24739    let arkShadow = new ArkShadowInfoToArray();
24740    if (Object.getPrototypeOf(this.stageValue).constructor === Object &&
24741      Object.getPrototypeOf(this.value).constructor === Object) {
24742      checkDiff = arkShadow.checkDiff(this.stageValue, this.value);
24743    }
24744    else if (Object.getPrototypeOf(this.stageValue).constructor === Array &&
24745      Object.getPrototypeOf(this.value).constructor === Array &&
24746      this.stageValue.length === this.value.length) {
24747      let isDiffItem = false;
24748      for (let i = 0; i < this.value.length; i++) {
24749        if (arkShadow.checkDiff(this.stageValue[i], this.value[1])) {
24750          isDiffItem = true;
24751          break;
24752        }
24753      }
24754      if (!isDiffItem) {
24755        checkDiff = false;
24756      }
24757    }
24758    return checkDiff;
24759  }
24760}
24761TextClockTextShadowModifier.identity = Symbol('textClockTextShadow');
24762
24763class TextClockDateTimeOptionsModifier extends ModifierWithKey {
24764  constructor(value) {
24765    super(value);
24766  }
24767  applyPeer(node, reset) {
24768    if (reset) {
24769      getUINativeModule().textClock.resetDateTimeOptions(node);
24770    }
24771    else {
24772      getUINativeModule().textClock.setDateTimeOptions(node, this.value.hour);
24773    }
24774  }
24775  checkObjectDiff() {
24776    return !isBaseOrResourceEqual(this.stageValue, this.value);
24777  }
24778}
24779TextClockDateTimeOptionsModifier.identity = Symbol('textClockDateTimeOptions');
24780
24781// @ts-ignore
24782if (globalThis.TextClock !== undefined) {
24783  globalThis.TextClock.attributeModifier = function (modifier) {
24784    attributeModifierFunc.call(this, modifier, (nativePtr) => {
24785      return new ArkTextClockComponent(nativePtr);
24786    }, (nativePtr, classType, modifierJS) => {
24787      return new modifierJS.TextClockModifier(nativePtr, classType);
24788    });
24789  };
24790  globalThis.TextClock.contentModifier = function (modifier) {
24791    const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
24792    let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
24793    let component = this.createOrGetNode(elmtId, () => {
24794      return new ArkTextClockComponent(nativeNode);
24795    });
24796    component.setContentModifier(modifier);
24797  };
24798}
24799
24800/// <reference path='./import.ts' />
24801class ArkTextTimerComponent extends ArkComponent {
24802  constructor(nativePtr, classType) {
24803    super(nativePtr, classType);
24804  }
24805  allowChildCount() {
24806    return 0;
24807  }
24808  initialize(value) {
24809    if (value.length === 1 && isObject(value[0])) {
24810      modifierWithKey(this._modifiersWithKeys, TextTimerOptionsModifier.identity, TextTimerOptionsModifier, value[0]);
24811    } else {
24812      modifierWithKey(this._modifiersWithKeys, TextTimerOptionsModifier.identity, TextTimerOptionsModifier, undefined);
24813    }
24814    return this;
24815  }
24816  fontColor(value) {
24817    modifierWithKey(this._modifiersWithKeys, TextTimerFontColorModifier.identity, TextTimerFontColorModifier, value);
24818    return this;
24819  }
24820  fontSize(value) {
24821    modifierWithKey(this._modifiersWithKeys, TextTimerFontSizeModifier.identity, TextTimerFontSizeModifier, value);
24822    return this;
24823  }
24824  fontWeight(value) {
24825    modifierWithKey(this._modifiersWithKeys, TextTimerFontWeightModifier.identity, TextTimerFontWeightModifier, value);
24826    return this;
24827  }
24828  fontStyle(value) {
24829    modifierWithKey(this._modifiersWithKeys, TextTimerFontStyleModifier.identity, TextTimerFontStyleModifier, value);
24830    return this;
24831  }
24832  fontFamily(value) {
24833    modifierWithKey(this._modifiersWithKeys, TextTimerFontFamilyModifier.identity, TextTimerFontFamilyModifier, value);
24834    return this;
24835  }
24836  format(value) {
24837    modifierWithKey(this._modifiersWithKeys, TextTimerFormatModifier.identity, TextTimerFormatModifier, value);
24838    return this;
24839  }
24840  textShadow(value) {
24841    modifierWithKey(this._modifiersWithKeys, TextTimerTextShadowModifier.identity, TextTimerTextShadowModifier, value);
24842    return this;
24843  }
24844  contentModifier(value) {
24845    modifierWithKey(this._modifiersWithKeys, TextTimerContentModifier.identity, TextTimerContentModifier, value);
24846    return this;
24847  }
24848  setContentModifier(modifier) {
24849    if (modifier === undefined || modifier === null) {
24850      getUINativeModule().textTimer.setContentModifierBuilder(this.nativePtr, false);
24851      return;
24852    }
24853    this.builder = modifier.applyContent();
24854    this.modifier = modifier;
24855    getUINativeModule().textTimer.setContentModifierBuilder(this.nativePtr, this);
24856  }
24857  makeContentModifierNode(context, textTimerConfiguration) {
24858    textTimerConfiguration.contentModifier = this.modifier;
24859    if (isUndefined(this.textTimerNode)) {
24860      let xNode = globalThis.requireNapi('arkui.node');
24861      this.textTimerNode = new xNode.BuilderNode(context);
24862      this.textTimerNode.build(this.builder, textTimerConfiguration);
24863    } else {
24864      this.textTimerNode.update(textTimerConfiguration);
24865    }
24866    return this.textTimerNode.getFrameNode();
24867  }
24868  onTimer(event) {
24869    throw new Error('Method not implemented.');
24870  }
24871}
24872class TextTimerOptionsModifier extends ModifierWithKey {
24873  constructor(value) {
24874    super(value);
24875  }
24876  applyPeer(node, reset) {
24877    let _a, _b, _c;
24878    if (reset) {
24879      getUINativeModule().textTimer.setTextTimerOptions(node, undefined, undefined, undefined);
24880    }
24881    else {
24882      getUINativeModule().textTimer.setTextTimerOptions(node,
24883        (_a = this.value) === null || _a === void 0 ? void 0 : _a.isCountDown,
24884        (_b = this.value) === null || _b === void 0 ? void 0 : _b.count,
24885        (_c = this.value) === null || _c === void 0 ? void 0 : _c.controller);
24886    }
24887  }
24888  checkObjectDiff() {
24889    let _a, _b, _c, _d, _e, _f;
24890    return !isBaseOrResourceEqual((_a = this.stageValue) === null || _a === void 0 ? void 0 : _a.isCountDown,
24891      (_b = this.value) === null || _b === void 0 ? void 0 : _b.isCountDown) ||
24892      !isBaseOrResourceEqual((_c = this.stageValue) === null || _c === void 0 ? void 0 : _c.count,
24893        (_d = this.value) === null || _d === void 0 ? void 0 : _d.count) ||
24894      !isBaseOrResourceEqual((_e = this.stageValue) === null || _e === void 0 ? void 0 : _e.controller,
24895        (_f = this.value) === null || _f === void 0 ? void 0 : _f.controller);
24896  }
24897}
24898TextTimerOptionsModifier.identity = Symbol('textTimerOptions');
24899class TextTimerFontColorModifier extends ModifierWithKey {
24900  applyPeer(node, reset) {
24901    if (reset) {
24902      getUINativeModule().textTimer.resetFontColor(node);
24903    }
24904    else {
24905      getUINativeModule().textTimer.setFontColor(node, this.value);
24906    }
24907  }
24908  checkObjectDiff() {
24909    return !isBaseOrResourceEqual(this.stageValue, this.value);
24910  }
24911}
24912TextTimerFontColorModifier.identity = Symbol('fontColor');
24913class TextTimerFontSizeModifier extends ModifierWithKey {
24914  applyPeer(node, reset) {
24915    if (reset) {
24916      getUINativeModule().textTimer.resetFontSize(node);
24917    }
24918    else {
24919      getUINativeModule().textTimer.setFontSize(node, this.value);
24920    }
24921  }
24922  checkObjectDiff() {
24923    return !isBaseOrResourceEqual(this.stageValue, this.value);
24924  }
24925}
24926TextTimerFontSizeModifier.identity = Symbol('fontSize');
24927class TextTimerFontWeightModifier extends ModifierWithKey {
24928  applyPeer(node, reset) {
24929    if (reset) {
24930      getUINativeModule().textTimer.resetFontWeight(node);
24931    }
24932    else {
24933      getUINativeModule().textTimer.setFontWeight(node, this.value);
24934    }
24935  }
24936}
24937TextTimerFontWeightModifier.identity = Symbol('fontWeight');
24938class TextTimerFontStyleModifier extends ModifierWithKey {
24939  applyPeer(node, reset) {
24940    if (reset) {
24941      getUINativeModule().textTimer.resetFontStyle(node);
24942    }
24943    else {
24944      getUINativeModule().textTimer.setFontStyle(node, this.value);
24945    }
24946  }
24947  checkObjectDiff() {
24948    return !isBaseOrResourceEqual(this.stageValue, this.value);
24949  }
24950}
24951TextTimerFontStyleModifier.identity = Symbol('fontStyle');
24952class TextTimerFontFamilyModifier extends ModifierWithKey {
24953  applyPeer(node, reset) {
24954    if (reset) {
24955      getUINativeModule().textTimer.resetFontFamily(node);
24956    }
24957    else {
24958      getUINativeModule().textTimer.setFontFamily(node, this.value);
24959    }
24960  }
24961  checkObjectDiff() {
24962    return !isBaseOrResourceEqual(this.stageValue, this.value);
24963  }
24964}
24965TextTimerFontFamilyModifier.identity = Symbol('fontFamily');
24966class TextTimerFormatModifier extends ModifierWithKey {
24967  applyPeer(node, reset) {
24968    if (reset) {
24969      getUINativeModule().textTimer.resetFormat(node);
24970    }
24971    else {
24972      getUINativeModule().textTimer.setFormat(node, this.value);
24973    }
24974  }
24975}
24976TextTimerFormatModifier.identity = Symbol('textTimerFormat');
24977class TextTimerTextShadowModifier extends ModifierWithKey {
24978  constructor(value) {
24979    super(value);
24980  }
24981  applyPeer(node, reset) {
24982    if (reset) {
24983      getUINativeModule().textTimer.resetTextShadow(node);
24984    }
24985    else {
24986      let shadow = new ArkShadowInfoToArray();
24987      if (!shadow.convertShadowOptions(this.value)) {
24988        getUINativeModule().textTimer.resetTextShadow(node);
24989      }
24990      else {
24991        getUINativeModule().textTimer.setTextShadow(node, shadow.radius, shadow.type, shadow.color,
24992          shadow.offsetX, shadow.offsetY, shadow.fill, shadow.radius.length);
24993      }
24994    }
24995  }
24996  checkObjectDiff() {
24997    let checkDiff = true;
24998    let arkShadow = new ArkShadowInfoToArray();
24999    if (Object.getPrototypeOf(this.stageValue).constructor === Object &&
25000      Object.getPrototypeOf(this.value).constructor === Object) {
25001      checkDiff = arkShadow.checkDiff(this.stageValue, this.value);
25002    }
25003    else if (Object.getPrototypeOf(this.stageValue).constructor === Array &&
25004      Object.getPrototypeOf(this.value).constructor === Array &&
25005      this.stageValue.length === this.value.length) {
25006      let isDiffItem = false;
25007      for (let i = 0; i < this.value.length; i++) {
25008        if (arkShadow.checkDiff(this.stageValue[i], this.value[1])) {
25009          isDiffItem = true;
25010          break;
25011        }
25012      }
25013      if (!isDiffItem) {
25014        checkDiff = false;
25015      }
25016    }
25017    return checkDiff;
25018  }
25019}
25020TextTimerTextShadowModifier.identity = Symbol('textTimerTextShadow');
25021class TextTimerContentModifier extends ModifierWithKey {
25022  constructor(value) {
25023    super(value);
25024  }
25025  applyPeer(node, reset, component) {
25026    let textTimerComponent = component;
25027    textTimerComponent.setContentModifier(this.value);
25028  }
25029}
25030TextTimerContentModifier.identity = Symbol('textTimerContentModifier');
25031// @ts-ignore
25032if (globalThis.TextTimer !== undefined) {
25033  globalThis.TextTimer.attributeModifier = function (modifier) {
25034    attributeModifierFunc.call(this, modifier, (nativePtr) => {
25035      return new ArkTextTimerComponent(nativePtr);
25036    }, (nativePtr, classType, modifierJS) => {
25037      return new modifierJS.TextTimerModifier(nativePtr, classType);
25038    });
25039  };
25040  globalThis.TextTimer.contentModifier = function (modifier) {
25041    const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
25042    let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
25043    let component = this.createOrGetNode(elmtId, () => {
25044      return new ArkTextTimerComponent(nativeNode);
25045    });
25046    component.setContentModifier(modifier);
25047  };
25048}
25049
25050/// <reference path='./import.ts' />
25051class ArkWebComponent extends ArkComponent {
25052  constructor(nativePtr, classType) {
25053    super(nativePtr, classType);
25054  }
25055  javaScriptAccess(javaScriptAccess) {
25056    throw new Error('Method not implemented.');
25057  }
25058  fileAccess(fileAccess) {
25059    throw new Error('Method not implemented.');
25060  }
25061  onlineImageAccess(onlineImageAccess) {
25062    throw new Error('Method not implemented.');
25063  }
25064  domStorageAccess(domStorageAccess) {
25065    throw new Error('Method not implemented.');
25066  }
25067  imageAccess(imageAccess) {
25068    throw new Error('Method not implemented.');
25069  }
25070  mixedMode(mixedMode) {
25071    throw new Error('Method not implemented.');
25072  }
25073  zoomAccess(zoomAccess) {
25074    throw new Error('Method not implemented.');
25075  }
25076  geolocationAccess(geolocationAccess) {
25077    throw new Error('Method not implemented.');
25078  }
25079  javaScriptProxy(javaScriptProxy) {
25080    throw new Error('Method not implemented.');
25081  }
25082  password(password) {
25083    throw new Error('Method not implemented.');
25084  }
25085  cacheMode(cacheMode) {
25086    throw new Error('Method not implemented.');
25087  }
25088  darkMode(mode) {
25089    throw new Error('Method not implemented.');
25090  }
25091  forceDarkAccess(access) {
25092    throw new Error('Method not implemented.');
25093  }
25094  mediaOptions(options) {
25095    throw new Error('Method not implemented.');
25096  }
25097  tableData(tableData) {
25098    throw new Error('Method not implemented.');
25099  }
25100  wideViewModeAccess(wideViewModeAccess) {
25101    throw new Error('Method not implemented.');
25102  }
25103  overviewModeAccess(overviewModeAccess) {
25104    throw new Error('Method not implemented.');
25105  }
25106  overScrollMode(mode) {
25107    throw new Error('Method not implemented.');
25108  }
25109  textZoomAtio(textZoomAtio) {
25110    throw new Error('Method not implemented.');
25111  }
25112  textZoomRatio(textZoomRatio) {
25113    throw new Error('Method not implemented.');
25114  }
25115  databaseAccess(databaseAccess) {
25116    throw new Error('Method not implemented.');
25117  }
25118  initialScale(percent) {
25119    throw new Error('Method not implemented.');
25120  }
25121  userAgent(userAgent) {
25122    throw new Error('Method not implemented.');
25123  }
25124  onPageEnd(callback) {
25125    throw new Error('Method not implemented.');
25126  }
25127  onPageBegin(callback) {
25128    throw new Error('Method not implemented.');
25129  }
25130  onProgressChange(callback) {
25131    throw new Error('Method not implemented.');
25132  }
25133  onTitleReceive(callback) {
25134    throw new Error('Method not implemented.');
25135  }
25136  onGeolocationHide(callback) {
25137    throw new Error('Method not implemented.');
25138  }
25139  onGeolocationShow(callback) {
25140    throw new Error('Method not implemented.');
25141  }
25142  onRequestSelected(callback) {
25143    throw new Error('Method not implemented.');
25144  }
25145  onAlert(callback) {
25146    throw new Error('Method not implemented.');
25147  }
25148  onBeforeUnload(callback) {
25149    throw new Error('Method not implemented.');
25150  }
25151  onConfirm(callback) {
25152    throw new Error('Method not implemented.');
25153  }
25154  onPrompt(callback) {
25155    throw new Error('Method not implemented.');
25156  }
25157  onConsole(callback) {
25158    throw new Error('Method not implemented.');
25159  }
25160  onErrorReceive(callback) {
25161    throw new Error('Method not implemented.');
25162  }
25163  onHttpErrorReceive(callback) {
25164    throw new Error('Method not implemented.');
25165  }
25166  onDownloadStart(callback) {
25167    throw new Error('Method not implemented.');
25168  }
25169  onRefreshAccessedHistory(callback) {
25170    throw new Error('Method not implemented.');
25171  }
25172  onUrlLoadIntercept(callback) {
25173    throw new Error('Method not implemented.');
25174  }
25175  onSslErrorReceive(callback) {
25176    throw new Error('Method not implemented.');
25177  }
25178  onRenderExited(callback) {
25179    throw new Error('Method not implemented.');
25180  }
25181  onShowFileSelector(callback) {
25182    throw new Error('Method not implemented.');
25183  }
25184  onFileSelectorShow(callback) {
25185    throw new Error('Method not implemented.');
25186  }
25187  onResourceLoad(callback) {
25188    throw new Error('Method not implemented.');
25189  }
25190  onFullScreenExit(callback) {
25191    throw new Error('Method not implemented.');
25192  }
25193  onFullScreenEnter(callback) {
25194    throw new Error('Method not implemented.');
25195  }
25196  onScaleChange(callback) {
25197    throw new Error('Method not implemented.');
25198  }
25199  onHttpAuthRequest(callback) {
25200    throw new Error('Method not implemented.');
25201  }
25202  onInterceptRequest(callback) {
25203    throw new Error('Method not implemented.');
25204  }
25205  onPermissionRequest(callback) {
25206    throw new Error('Method not implemented.');
25207  }
25208  onScreenCaptureRequest(callback) {
25209    throw new Error('Method not implemented.');
25210  }
25211  onContextMenuShow(callback) {
25212    throw new Error('Method not implemented.');
25213  }
25214  mediaPlayGestureAccess(access) {
25215    throw new Error('Method not implemented.');
25216  }
25217  onSearchResultReceive(callback) {
25218    throw new Error('Method not implemented.');
25219  }
25220  onScroll(callback) {
25221    throw new Error('Method not implemented.');
25222  }
25223  onSslErrorEventReceive(callback) {
25224    throw new Error('Method not implemented.');
25225  }
25226  onSslErrorEvent(callback) {
25227    throw new Error('Method not implemented.');
25228  }
25229  onClientAuthenticationRequest(callback) {
25230    throw new Error('Method not implemented.');
25231  }
25232  onWindowNew(callback) {
25233    throw new Error('Method not implemented.');
25234  }
25235  onWindowExit(callback) {
25236    throw new Error('Method not implemented.');
25237  }
25238  multiWindowAccess(multiWindow) {
25239    throw new Error('Method not implemented.');
25240  }
25241  onInterceptKeyEvent(callback) {
25242    throw new Error('Method not implemented.');
25243  }
25244  webStandardFont(family) {
25245    throw new Error('Method not implemented.');
25246  }
25247  webSerifFont(family) {
25248    throw new Error('Method not implemented.');
25249  }
25250  webSansSerifFont(family) {
25251    throw new Error('Method not implemented.');
25252  }
25253  webFixedFont(family) {
25254    throw new Error('Method not implemented.');
25255  }
25256  webFantasyFont(family) {
25257    throw new Error('Method not implemented.');
25258  }
25259  webCursiveFont(family) {
25260    throw new Error('Method not implemented.');
25261  }
25262  defaultFixedFontSize(size) {
25263    throw new Error('Method not implemented.');
25264  }
25265  defaultFontSize(size) {
25266    throw new Error('Method not implemented.');
25267  }
25268  minFontSize(size) {
25269    throw new Error('Method not implemented.');
25270  }
25271  minLogicalFontSize(size) {
25272    throw new Error('Method not implemented.');
25273  }
25274  blockNetwork(block) {
25275    throw new Error('Method not implemented.');
25276  }
25277  horizontalScrollBarAccess(horizontalScrollBar) {
25278    throw new Error('Method not implemented.');
25279  }
25280  verticalScrollBarAccess(verticalScrollBar) {
25281    throw new Error('Method not implemented.');
25282  }
25283  onTouchIconUrlReceived(callback) {
25284    throw new Error('Method not implemented.');
25285  }
25286  onFaviconReceived(callback) {
25287    throw new Error('Method not implemented.');
25288  }
25289  onPageVisible(callback) {
25290    throw new Error('Method not implemented.');
25291  }
25292  onDataResubmitted(callback) {
25293    throw new Error('Method not implemented.');
25294  }
25295  pinchSmooth(isEnabled) {
25296    throw new Error('Method not implemented.');
25297  }
25298  allowWindowOpenMethod(flag) {
25299    throw new Error('Method not implemented.');
25300  }
25301  onAudioStateChanged(callback) {
25302    throw new Error('Method not implemented.');
25303  }
25304  onFirstContentfulPaint(callback) {
25305    throw new Error('Method not implemented.');
25306  }
25307  onLoadIntercept(callback) {
25308    throw new Error('Method not implemented.');
25309  }
25310  onControllerAttached(callback) {
25311    throw new Error('Method not implemented.');
25312  }
25313  onOverScroll(callback) {
25314    throw new Error('Method not implemented.');
25315  }
25316  javaScriptOnDocumentStart(scripts) {
25317    throw new Error('Method not implemented.');
25318  }
25319  layoutMode(mode) {
25320    throw new Error('Method not implemented.');
25321  }
25322  nestedScroll(value) {
25323    throw new Error('Method not implemented.');
25324  }
25325  onOverrideUrlLoading(callback) {
25326    throw new Error('Method not implemented.');
25327  }
25328  enableNativeMediaPlayer(config) {
25329    throw new Error('Method not implemented.');
25330  }
25331  onRenderProcessNotResponding(callback) {
25332    throw new Error('Method not implemented.');
25333  }
25334  onRenderProcessResponding(callback) {
25335    throw new Error('Method not implemented.');
25336  }
25337  onViewportFitChanged(callback) {
25338    throw new Error('Method not implemented.');
25339  }
25340  onAdsBlocked(callback) {
25341    throw new Error('Method not implemented.');
25342  }
25343}
25344// @ts-ignore
25345if (globalThis.Web !== undefined) {
25346  globalThis.Web.attributeModifier = function (modifier) {
25347    attributeModifierFunc.call(this, modifier, (nativePtr) => {
25348      return new ArkWebComponent(nativePtr);
25349    }, (nativePtr, classType, modifierJS) => {
25350      return new modifierJS.CommonModifier(nativePtr, classType);
25351    });
25352  };
25353}
25354
25355/// <reference path='./import.ts' />
25356class ArkXComponentComponent extends ArkComponent {
25357  constructor(nativePtr, classType) {
25358    super(nativePtr, classType);
25359  }
25360  allowChildCount() {
25361    return 0;
25362  }
25363  initialize(value) {
25364    if (value[0]) {
25365      modifierWithKey(this._modifiersWithKeys, XComponentInitializeModifier.identity,
25366        XComponentInitializeModifier, value[0]);
25367    }
25368    return this;
25369  }
25370  applyModifierPatch() {
25371    let expiringItemsWithKeys = [];
25372    this._modifiersWithKeys.forEach((value, key) => {
25373      if (value.applyStage(this.nativePtr)) {
25374        expiringItemsWithKeys.push(key);
25375      }
25376    });
25377    expiringItemsWithKeys.forEach(key => {
25378      this._modifiersWithKeys.delete(key);
25379    });
25380  }
25381  outline(value) {
25382    throw new Error('Method not implemented.');
25383  }
25384  outlineColor(value) {
25385    throw new Error('Method not implemented.');
25386  }
25387  outlineRadius(value) {
25388    throw new Error('Method not implemented.');
25389  }
25390  outlineStyle(value) {
25391    throw new Error('Method not implemented.');
25392  }
25393  outlineWidth(value) {
25394    throw new Error('Method not implemented.');
25395  }
25396  expandSafeArea(types, edges) {
25397    throw new Error('Method not implemented.');
25398  }
25399  responseRegion(value) {
25400    throw new Error('Method not implemented.');
25401  }
25402  mouseResponseRegion(value) {
25403    throw new Error('Method not implemented.');
25404  }
25405  size(value) {
25406    throw new Error('Method not implemented.');
25407  }
25408  constraintSize(value) {
25409    throw new Error('Method not implemented.');
25410  }
25411  touchable(value) {
25412    throw new Error('Method not implemented.');
25413  }
25414  hitTestBehavior(value) {
25415    throw new Error('Method not implemented.');
25416  }
25417  layoutWeight(value) {
25418    throw new Error('Method not implemented.');
25419  }
25420  padding(value) {
25421    throw new Error('Method not implemented.');
25422  }
25423  margin(value) {
25424    throw new Error('Method not implemented.');
25425  }
25426  background(builder, options) {
25427    throw new Error('Method not implemented.');
25428  }
25429  backgroundColor(value) {
25430    modifierWithKey(this._modifiersWithKeys, XComponentBackgroundColorModifier.identity, XComponentBackgroundColorModifier, value);
25431    return this;
25432  }
25433  backgroundImage(src, repeat) {
25434    let arkBackgroundImage = new ArkBackgroundImage();
25435    arkBackgroundImage.src = src;
25436    arkBackgroundImage.repeat = repeat;
25437    modifierWithKey(this._modifiersWithKeys, XComponentBackgroundImageModifier.identity, XComponentBackgroundImageModifier, arkBackgroundImage);
25438    return this;
25439  }
25440  backgroundImageSize(value) {
25441    modifierWithKey(this._modifiersWithKeys, XComponentBackgroundImageSizeModifier.identity, XComponentBackgroundImageSizeModifier, value);
25442    return this;
25443  }
25444  backgroundImagePosition(value) {
25445    modifierWithKey(this._modifiersWithKeys, XComponentBackgroundImagePositionModifier.identity, XComponentBackgroundImagePositionModifier, value);
25446    return this;
25447  }
25448  backgroundBlurStyle(value, options) {
25449    throw new Error('Method not implemented.');
25450  }
25451  foregroundBlurStyle(value, options) {
25452    throw new Error('Method not implemented.');
25453  }
25454  opacity(value) {
25455    modifierWithKey(this._modifiersWithKeys, XComponentOpacityModifier.identity, XComponentOpacityModifier, value);
25456    return this;
25457  }
25458  border(value) {
25459    throw new Error('Method not implemented.');
25460  }
25461  borderStyle(value) {
25462    throw new Error('Method not implemented.');
25463  }
25464  borderWidth(value) {
25465    throw new Error('Method not implemented.');
25466  }
25467  borderColor(value) {
25468    throw new Error('Method not implemented.');
25469  }
25470  borderRadius(value) {
25471    throw new Error('Method not implemented.');
25472  }
25473  borderImage(value) {
25474    throw new Error('Method not implemented.');
25475  }
25476  foregroundColor(value) {
25477    throw new Error('Method not implemented.');
25478  }
25479  onClick(event) {
25480    throw new Error('Method not implemented.');
25481  }
25482  onHover(event) {
25483    throw new Error('Method not implemented.');
25484  }
25485  hoverEffect(value) {
25486    throw new Error('Method not implemented.');
25487  }
25488  onMouse(event) {
25489    throw new Error('Method not implemented.');
25490  }
25491  onTouch(event) {
25492    throw new Error('Method not implemented.');
25493  }
25494  onKeyEvent(event) {
25495    throw new Error('Method not implemented.');
25496  }
25497  onFocus(event) {
25498    throw new Error('Method not implemented.');
25499  }
25500  onBlur(event) {
25501    throw new Error('Method not implemented.');
25502  }
25503  tabIndex(index) {
25504    throw new Error('Method not implemented.');
25505  }
25506  groupDefaultFocus(value) {
25507    throw new Error('Method not implemented.');
25508  }
25509  animation(value) {
25510    throw new Error('Method not implemented.');
25511  }
25512  transition(value) {
25513    throw new Error('Method not implemented.');
25514  }
25515  gesture(gesture, mask) {
25516    throw new Error('Method not implemented.');
25517  }
25518  priorityGesture(gesture, mask) {
25519    throw new Error('Method not implemented.');
25520  }
25521  parallelGesture(gesture, mask) {
25522    throw new Error('Method not implemented.');
25523  }
25524  blur(value) {
25525    modifierWithKey(this._modifiersWithKeys, XComponentBlurModifier.identity, XComponentBlurModifier, value);
25526    return this;
25527  }
25528  linearGradientBlur(value, options) {
25529    if (isUndefined(value) || isNull(value) || isUndefined(options) || isNull(options)) {
25530      modifierWithKey(this._modifiersWithKeys, XComponentLinearGradientBlurModifier.identity, XComponentLinearGradientBlurModifier, undefined);
25531      return this;
25532    }
25533    let arkLinearGradientBlur = new ArkLinearGradientBlur();
25534    arkLinearGradientBlur.blurRadius = value;
25535    arkLinearGradientBlur.fractionStops = options.fractionStops;
25536    arkLinearGradientBlur.direction = options.direction;
25537    modifierWithKey(this._modifiersWithKeys, XComponentLinearGradientBlurModifier.identity, XComponentLinearGradientBlurModifier, arkLinearGradientBlur);
25538    return this;
25539  }
25540  brightness(value) {
25541    modifierWithKey(this._modifiersWithKeys, XComponentBrightnessModifier.identity, XComponentBrightnessModifier, value);
25542    return this;
25543  }
25544  contrast(value) {
25545    modifierWithKey(this._modifiersWithKeys, XComponentContrastModifier.identity, XComponentContrastModifier, value);
25546    return this;
25547  }
25548  grayscale(value) {
25549    modifierWithKey(this._modifiersWithKeys, XComponentGrayscaleModifier.identity, XComponentGrayscaleModifier, value);
25550    return this;
25551  }
25552  colorBlend(value) {
25553    modifierWithKey(this._modifiersWithKeys, XComponentColorBlendModifier.identity, XComponentColorBlendModifier, value);
25554    return this;
25555  }
25556  saturate(value) {
25557    modifierWithKey(this._modifiersWithKeys, XComponentSaturateModifier.identity, XComponentSaturateModifier, value);
25558    return this;
25559  }
25560  sepia(value) {
25561    modifierWithKey(this._modifiersWithKeys, XComponentSepiaModifier.identity, XComponentSepiaModifier, value);
25562    return this;
25563  }
25564  invert(value) {
25565    modifierWithKey(this._modifiersWithKeys, XComponentInvertModifier.identity, XComponentInvertModifier, value);
25566    return this;
25567  }
25568  hueRotate(value) {
25569    modifierWithKey(this._modifiersWithKeys, XComponentHueRotateModifier.identity, XComponentHueRotateModifier, value);
25570    return this;
25571  }
25572  useEffect(value) {
25573    throw new Error('Method not implemented.');
25574  }
25575  backdropBlur(value) {
25576    modifierWithKey(this._modifiersWithKeys, XComponentBackdropBlurModifier.identity, XComponentBackdropBlurModifier, value);
25577    return this;
25578  }
25579  renderGroup(value) {
25580    throw new Error('Method not implemented.');
25581  }
25582  translate(value) {
25583    throw new Error('Method not implemented.');
25584  }
25585  scale(value) {
25586    throw new Error('Method not implemented.');
25587  }
25588  gridSpan(value) {
25589    throw new Error('Method not implemented.');
25590  }
25591  gridOffset(value) {
25592    throw new Error('Method not implemented.');
25593  }
25594  rotate(value) {
25595    throw new Error('Method not implemented.');
25596  }
25597  transform(value) {
25598    throw new Error('Method not implemented.');
25599  }
25600  onAppear(event) {
25601    throw new Error('Method not implemented.');
25602  }
25603  onDisAppear(event) {
25604    throw new Error('Method not implemented.');
25605  }
25606  onAttach(event) {
25607    throw new Error('Method not implemented.');
25608  }
25609  onDetach(event) {
25610    throw new Error('Method not implemented.');
25611  }
25612  onAreaChange(event) {
25613    throw new Error('Method not implemented.');
25614  }
25615  visibility(value) {
25616    throw new Error('Method not implemented.');
25617  }
25618  flexGrow(value) {
25619    throw new Error('Method not implemented.');
25620  }
25621  flexShrink(value) {
25622    throw new Error('Method not implemented.');
25623  }
25624  flexBasis(value) {
25625    throw new Error('Method not implemented.');
25626  }
25627  alignSelf(value) {
25628    throw new Error('Method not implemented.');
25629  }
25630  displayPriority(value) {
25631    throw new Error('Method not implemented.');
25632  }
25633  zIndex(value) {
25634    throw new Error('Method not implemented.');
25635  }
25636  sharedTransition(id, options) {
25637    throw new Error('Method not implemented.');
25638  }
25639  direction(value) {
25640    throw new Error('Method not implemented.');
25641  }
25642  align(value) {
25643    throw new Error('Method not implemented.');
25644  }
25645  position(value) {
25646    throw new Error('Method not implemented.');
25647  }
25648  markAnchor(value) {
25649    throw new Error('Method not implemented.');
25650  }
25651  offset(value) {
25652    throw new Error('Method not implemented.');
25653  }
25654  enabled(value) {
25655    throw new Error('Method not implemented.');
25656  }
25657  useSizeType(value) {
25658    throw new Error('Method not implemented.');
25659  }
25660  alignRules(value) {
25661    throw new Error('Method not implemented.');
25662  }
25663  aspectRatio(value) {
25664    throw new Error('Method not implemented.');
25665  }
25666  clickEffect(value) {
25667    throw new Error('Method not implemented.');
25668  }
25669  allowDrop(value) {
25670    throw new Error('Method not implemented.');
25671  }
25672  privacySensitive(value) {
25673    throw new Error('Method not implemented.');
25674  }
25675  overlay(value, options) {
25676    throw new Error('Method not implemented.');
25677  }
25678  linearGradient(value) {
25679    throw new Error('Method not implemented.');
25680  }
25681  sweepGradient(value) {
25682    throw new Error('Method not implemented.');
25683  }
25684  radialGradient(value) {
25685    throw new Error('Method not implemented.');
25686  }
25687  motionPath(value) {
25688    throw new Error('Method not implemented.');
25689  }
25690  motionBlur(value) {
25691    throw new Error('Method not implemented.');
25692  }
25693  shadow(value) {
25694    modifierWithKey(this._modifiersWithKeys, ShadowModifier.identity, ShadowModifier, value);
25695    return this;
25696  }
25697  blendMode(value) {
25698    throw new Error('Method not implemented.');
25699  }
25700  clip(value) {
25701    throw new Error('Method not implemented.');
25702  }
25703  mask(value) {
25704    throw new Error('Method not implemented.');
25705  }
25706  key(value) {
25707    throw new Error('Method not implemented.');
25708  }
25709  id(value) {
25710    throw new Error('Method not implemented.');
25711  }
25712  geometryTransition(id) {
25713    throw new Error('Method not implemented.');
25714  }
25715  bindPopup(show, popup) {
25716    throw new Error('Method not implemented.');
25717  }
25718  bindMenu(content, options) {
25719    throw new Error('Method not implemented.');
25720  }
25721  bindContextMenu(content, responseType, options) {
25722    throw new Error('Method not implemented.');
25723  }
25724  bindContentCover(isShow, builder, options) {
25725    throw new Error('Method not implemented.');
25726  }
25727  bindSheet(isShow, builder, options) {
25728    throw new Error('Method not implemented.');
25729  }
25730  stateStyles(value) {
25731    throw new Error('Method not implemented.');
25732  }
25733  restoreId(value) {
25734    throw new Error('Method not implemented.');
25735  }
25736  onVisibleAreaChange(ratios, event) {
25737    throw new Error('Method not implemented.');
25738  }
25739  sphericalEffect(value) {
25740    modifierWithKey(this._modifiersWithKeys, XComponentSphericalEffectModifier.identity, XComponentSphericalEffectModifier, value);
25741    return this;
25742  }
25743  lightUpEffect(value) {
25744    modifierWithKey(this._modifiersWithKeys, XComponentLightUpEffectModifier.identity, XComponentLightUpEffectModifier, value);
25745    return this;
25746  }
25747  pixelStretchEffect(options) {
25748    modifierWithKey(this._modifiersWithKeys, XComponentPixelStretchEffectModifier.identity, XComponentPixelStretchEffectModifier, options);
25749    return this;
25750  }
25751  keyboardShortcut(value, keys, action) {
25752    throw new Error('Method not implemented.');
25753  }
25754  accessibilityGroup(value) {
25755    throw new Error('Method not implemented.');
25756  }
25757  accessibilityText(value) {
25758    throw new Error('Method not implemented.');
25759  }
25760  accessibilityDescription(value) {
25761    throw new Error('Method not implemented.');
25762  }
25763  accessibilityLevel(value) {
25764    throw new Error('Method not implemented.');
25765  }
25766  obscured(reasons) {
25767    throw new Error('Method not implemented.');
25768  }
25769  reuseId(id) {
25770    throw new Error('Method not implemented.');
25771  }
25772  renderFit(fitMode) {
25773    modifierWithKey(this._modifiersWithKeys, XComponentRenderFitModifier.identity, XComponentRenderFitModifier, fitMode);
25774    return this;
25775  }
25776  attributeModifier(modifier) {
25777    return this;
25778  }
25779  onGestureJudgeBegin(callback) {
25780    throw new Error('Method not implemented.');
25781  }
25782  onLoad(callback) {
25783    modifierWithKey(this._modifiersWithKeys, XComponentOnLoadModifier.identity, XComponentOnLoadModifier, callback);
25784    return this;
25785  }
25786  onDestroy(event) {
25787    modifierWithKey(this._modifiersWithKeys, XComponentOnDestroyModifier.identity, XComponentOnDestroyModifier, event);
25788    return this;
25789  }
25790  enableAnalyzer(value) {
25791    modifierWithKey(this._modifiersWithKeys, XComponentEnableAnalyzerModifier.identity, XComponentEnableAnalyzerModifier, value);
25792    return this;
25793  }
25794  enableSecure(value) {
25795    modifierWithKey(this._modifiersWithKeys, XComponentEnableSecureModifier.identity, XComponentEnableSecureModifier, value);
25796    return this;
25797  }
25798}
25799// @ts-ignore
25800if (globalThis.XComponent !== undefined) {
25801  globalThis.XComponent.attributeModifier = function (modifier) {
25802    const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
25803    let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
25804    let component = this.createOrGetNode(elmtId, () => {
25805      return new ArkXComponentComponent(nativeNode);
25806    });
25807    applyUIAttributes(modifier, nativeNode, component);
25808    component.applyModifierPatch();
25809  };
25810  globalThis.DataPanel.contentModifier = function (style) {
25811      const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
25812      let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
25813      let component = this.createOrGetNode(elmtId, () => {
25814        return new ArkDataPanelComponent(nativeNode);
25815      });
25816    component.setContentModifier(style);
25817  };
25818}
25819
25820class XComponentInitializeModifier extends ModifierWithKey {
25821  constructor(value) {
25822    super(value);
25823  }
25824  applyPeer(node, reset) {
25825    if (reset) {
25826      getUINativeModule().xComponent.resetXComponentInitialize(node);
25827    }
25828    else {
25829      getUINativeModule().xComponent.setXComponentInitialize(node, this.value?.id,
25830        this.value?.type, this.value?.imageAIOptions, this.value?.libraryname, this.value?.controller);
25831
25832    }
25833  }
25834}
25835XComponentInitializeModifier.identity = Symbol('xComponentInitialize');
25836class XComponentOpacityModifier extends ModifierWithKey {
25837  constructor(value) {
25838    super(value);
25839  }
25840  applyPeer(node, reset) {
25841    if (reset) {
25842      getUINativeModule().xComponent.resetOpacity(node);
25843    }
25844    else {
25845      getUINativeModule().xComponent.setOpacity(node, this.value);
25846    }
25847  }
25848  checkObjectDiff() {
25849    return !isBaseOrResourceEqual(this.stageValue, this.value);
25850  }
25851}
25852XComponentOpacityModifier.identity = Symbol('xComponentOpacity');
25853class XComponentBackgroundColorModifier extends ModifierWithKey {
25854  constructor(value) {
25855    super(value);
25856  }
25857  applyPeer(node, reset) {
25858    if (reset) {
25859      getUINativeModule().xComponent.resetBackgroundColor(node);
25860    }
25861    else {
25862      getUINativeModule().xComponent.setBackgroundColor(node, this.value);
25863    }
25864  }
25865  checkObjectDiff() {
25866    return !isBaseOrResourceEqual(this.stageValue, this.value);
25867  }
25868}
25869XComponentBackgroundColorModifier.identity = Symbol('xComponentBackgroundColor');
25870class XComponentBackgroundImageModifier extends ModifierWithKey {
25871  constructor(value) {
25872    super(value);
25873  }
25874  applyPeer(node, reset) {
25875    if (reset) {
25876      getUINativeModule().xComponent.resetBackgroundImage(node);
25877    }
25878    else {
25879      getUINativeModule().xComponent.setBackgroundImage(node, this.value.src, this.value.repeat);
25880    }
25881  }
25882  checkObjectDiff() {
25883    return !(this.stageValue.src === this.value.src &&
25884      this.stageValue.repeat === this.value.repeat);
25885  }
25886}
25887XComponentBackgroundImageModifier.identity = Symbol('xComponentBackgroundImage');
25888class XComponentBackgroundImageSizeModifier extends ModifierWithKey {
25889  constructor(value) {
25890    super(value);
25891  }
25892  applyPeer(node, reset) {
25893    let _a, _b;
25894    if (reset) {
25895      getUINativeModule().xComponent.resetBackgroundImageSize(node);
25896    }
25897    else {
25898      if (isNumber(this.value)) {
25899        getUINativeModule().xComponent.setBackgroundImageSize(node, this.value, undefined, undefined);
25900      }
25901      else {
25902        getUINativeModule().xComponent.setBackgroundImageSize(node, undefined, (_a = this.value) === null ||
25903          _a === void 0 ? void 0 : _a.width, (_b = this.value) === null || _b === void 0 ? void 0 : _b.height);
25904      }
25905    }
25906  }
25907  checkObjectDiff() {
25908    return !(this.value.width === this.stageValue.width &&
25909      this.value.height === this.stageValue.height);
25910  }
25911}
25912XComponentBackgroundImageSizeModifier.identity = Symbol('xComponentBackgroundImageSize');
25913class XComponentBackgroundImagePositionModifier extends ModifierWithKey {
25914  constructor(value) {
25915    super(value);
25916  }
25917  applyPeer(node, reset) {
25918    let _a, _b;
25919    if (reset) {
25920      getUINativeModule().xComponent.resetBackgroundImagePosition(node);
25921    }
25922    else {
25923      if (isNumber(this.value)) {
25924        getUINativeModule().xComponent.setBackgroundImagePosition(node, this.value, undefined, undefined);
25925      }
25926      else {
25927        getUINativeModule().xComponent.setBackgroundImagePosition(node, undefined, (_a = this.value) === null ||
25928          _a === void 0 ? void 0 : _a.x, (_b = this.value) === null || _b === void 0 ? void 0 : _b.y);
25929      }
25930    }
25931  }
25932  checkObjectDiff() {
25933    let _a, _b, _c, _d;
25934    return !(((_a = this.value) === null || _a === void 0 ? void 0 : _a.x) === ((_b = this.stageValue) === null || _b === void 0 ? void 0 : _b.x) &&
25935      ((_c = this.value) === null || _c === void 0 ? void 0 : _c.y) === ((_d = this.stageValue) === null || _d === void 0 ? void 0 : _d.y));
25936  }
25937}
25938XComponentBackgroundImagePositionModifier.identity = Symbol('xComponentBackgroundImagePosition');
25939class XComponentBlurModifier extends ModifierWithKey {
25940  constructor(value) {
25941    super(value);
25942  }
25943  applyPeer(node, reset) {
25944    if (reset) {
25945      getUINativeModule().xComponent.resetBlur(node);
25946    }
25947    else {
25948      getUINativeModule().xComponent.setBlur(node, this.value);
25949    }
25950  }
25951}
25952XComponentBlurModifier.identity = Symbol('xComponentBlur');
25953class XComponentBackdropBlurModifier extends ModifierWithKey {
25954  constructor(value) {
25955    super(value);
25956  }
25957  applyPeer(node, reset) {
25958    if (reset) {
25959      getUINativeModule().xComponent.resetBackdropBlur(node);
25960    }
25961    else {
25962      getUINativeModule().xComponent.setBackdropBlur(node, this.value);
25963    }
25964  }
25965}
25966XComponentBackdropBlurModifier.identity = Symbol('xComponentBackdropBlur');
25967class XComponentGrayscaleModifier extends ModifierWithKey {
25968  constructor(value) {
25969    super(value);
25970  }
25971  applyPeer(node, reset) {
25972    if (reset) {
25973      getUINativeModule().xComponent.resetGrayscale(node);
25974    }
25975    else {
25976      getUINativeModule().xComponent.setGrayscale(node, this.value);
25977    }
25978  }
25979}
25980XComponentGrayscaleModifier.identity = Symbol('xComponentGrayscale');
25981class XComponentBrightnessModifier extends ModifierWithKey {
25982  constructor(value) {
25983    super(value);
25984  }
25985  applyPeer(node, reset) {
25986    if (reset) {
25987      getUINativeModule().xComponent.resetBrightness(node);
25988    }
25989    else {
25990      getUINativeModule().xComponent.setBrightness(node, this.value);
25991    }
25992  }
25993}
25994XComponentBrightnessModifier.identity = Symbol('xComponentBrightness');
25995class XComponentSaturateModifier extends ModifierWithKey {
25996  constructor(value) {
25997    super(value);
25998  }
25999  applyPeer(node, reset) {
26000    if (reset) {
26001      getUINativeModule().xComponent.resetSaturate(node);
26002    }
26003    else {
26004      getUINativeModule().xComponent.setSaturate(node, this.value);
26005    }
26006  }
26007}
26008XComponentSaturateModifier.identity = Symbol('xComponentSaturate');
26009class XComponentContrastModifier extends ModifierWithKey {
26010  constructor(value) {
26011    super(value);
26012  }
26013  applyPeer(node, reset) {
26014    if (reset) {
26015      getUINativeModule().xComponent.resetContrast(node);
26016    }
26017    else {
26018      getUINativeModule().xComponent.setContrast(node, this.value);
26019    }
26020  }
26021}
26022XComponentContrastModifier.identity = Symbol('xComponentContrast');
26023class XComponentInvertModifier extends ModifierWithKey {
26024  constructor(value) {
26025    super(value);
26026  }
26027  applyPeer(node, reset) {
26028    if (reset) {
26029      getUINativeModule().xComponent.resetInvert(node);
26030    }
26031    else {
26032      getUINativeModule().xComponent.setInvert(node, this.value);
26033    }
26034  }
26035}
26036XComponentInvertModifier.identity = Symbol('xComponentInvert');
26037class XComponentSepiaModifier extends ModifierWithKey {
26038  constructor(value) {
26039    super(value);
26040  }
26041  applyPeer(node, reset) {
26042    if (reset) {
26043      getUINativeModule().xComponent.resetSepia(node);
26044    }
26045    else {
26046      getUINativeModule().xComponent.setSepia(node, this.value);
26047    }
26048  }
26049}
26050XComponentSepiaModifier.identity = Symbol('xComponentSepia');
26051class XComponentHueRotateModifier extends ModifierWithKey {
26052  constructor(value) {
26053    super(value);
26054  }
26055  applyPeer(node, reset) {
26056    if (reset) {
26057      getUINativeModule().xComponent.resetHueRotate(node);
26058    }
26059    else {
26060      getUINativeModule().xComponent.setHueRotate(node, this.value);
26061    }
26062  }
26063}
26064XComponentHueRotateModifier.identity = Symbol('xComponentHueRotate');
26065class XComponentColorBlendModifier extends ModifierWithKey {
26066  constructor(value) {
26067    super(value);
26068  }
26069  applyPeer(node, reset) {
26070    if (reset) {
26071      getUINativeModule().xComponent.resetColorBlend(node);
26072    }
26073    else {
26074      getUINativeModule().xComponent.setColorBlend(node, this.value);
26075    }
26076  }
26077  checkObjectDiff() {
26078    return !isBaseOrResourceEqual(this.stageValue, this.value);
26079  }
26080}
26081XComponentColorBlendModifier.identity = Symbol('xComponentColorBlend');
26082class XComponentSphericalEffectModifier extends ModifierWithKey {
26083  constructor(value) {
26084    super(value);
26085  }
26086  applyPeer(node, reset) {
26087    if (reset) {
26088      getUINativeModule().xComponent.resetSphericalEffect(node);
26089    }
26090    else {
26091      getUINativeModule().xComponent.setSphericalEffect(node, this.value);
26092    }
26093  }
26094}
26095XComponentSphericalEffectModifier.identity = Symbol('xComponentSphericalEffect');
26096class XComponentLightUpEffectModifier extends ModifierWithKey {
26097  constructor(value) {
26098    super(value);
26099  }
26100  applyPeer(node, reset) {
26101    if (reset) {
26102      getUINativeModule().xComponent.resetLightUpEffect(node);
26103    }
26104    else {
26105      getUINativeModule().xComponent.setLightUpEffect(node, this.value);
26106    }
26107  }
26108}
26109XComponentLightUpEffectModifier.identity = Symbol('xComponentLightUpEffect');
26110class XComponentPixelStretchEffectModifier extends ModifierWithKey {
26111  constructor(value) {
26112    super(value);
26113  }
26114  applyPeer(node, reset) {
26115    if (reset) {
26116      getUINativeModule().xComponent.resetPixelStretchEffect(node);
26117    }
26118    else {
26119      getUINativeModule().xComponent.setPixelStretchEffect(node, this.value.top, this.value.right, this.value.bottom, this.value.left);
26120    }
26121  }
26122  checkObjectDiff() {
26123    return !(this.stageValue.left === this.value.left &&
26124      this.stageValue.right === this.value.right &&
26125      this.stageValue.top === this.value.top &&
26126      this.stageValue.bottom === this.value.bottom);
26127  }
26128}
26129XComponentPixelStretchEffectModifier.identity = Symbol('xComponentPixelStretchEffect');
26130class XComponentLinearGradientBlurModifier extends ModifierWithKey {
26131  constructor(value) {
26132    super(value);
26133  }
26134  applyPeer(node, reset) {
26135    if (reset) {
26136      getUINativeModule().xComponent.resetLinearGradientBlur(node);
26137    }
26138    else {
26139      getUINativeModule().xComponent.setLinearGradientBlur(node, this.value.blurRadius, this.value.fractionStops, this.value.direction);
26140    }
26141  }
26142  checkObjectDiff() {
26143    return !this.value.isEqual(this.stageValue);
26144  }
26145}
26146XComponentLinearGradientBlurModifier.identity = Symbol('xComponentlinearGradientBlur');
26147class XComponentOnLoadModifier extends ModifierWithKey {
26148  constructor(value) {
26149    super(value);
26150  }
26151  applyPeer(node, reset) {
26152    if (reset) {
26153      getUINativeModule().xComponent.resetOnLoad(node);
26154    }
26155    else {
26156      getUINativeModule().xComponent.setOnLoad(node, this.value);
26157    }
26158  }
26159}
26160XComponentOnLoadModifier.identity = Symbol('xComponentOnLoad');
26161class XComponentOnDestroyModifier extends ModifierWithKey {
26162  constructor(value) {
26163    super(value);
26164  }
26165  applyPeer(node, reset) {
26166    if (reset) {
26167      getUINativeModule().xComponent.resetOnDestroy(node);
26168    }
26169    else {
26170      getUINativeModule().xComponent.setOnDestroy(node, this.value);
26171    }
26172  }
26173}
26174XComponentOnDestroyModifier.identity = Symbol('xComponentOnDestroy');
26175class XComponentEnableAnalyzerModifier extends ModifierWithKey {
26176  constructor(value) {
26177    super(value);
26178  }
26179  applyPeer(node, reset) {
26180    if (reset) {
26181      getUINativeModule().xComponent.resetEnableAnalyzer(node);
26182    }
26183    else {
26184      getUINativeModule().xComponent.setEnableAnalyzer(node, this.value);
26185    }
26186  }
26187  checkObjectDiff() {
26188    return !isBaseOrResourceEqual(this.stageValue, this.value);
26189  }
26190}
26191XComponentEnableAnalyzerModifier.identity = Symbol('xComponentEnableAnalyzer');
26192class XComponentEnableSecureModifier extends ModifierWithKey {
26193  constructor(value) {
26194    super(value);
26195  }
26196  applyPeer(node, reset) {
26197    if (reset) {
26198      getUINativeModule().xComponent.resetEnableSecure(node);
26199    }
26200    else {
26201      getUINativeModule().xComponent.setEnableSecure(node, this.value);
26202    }
26203  }
26204  checkObjectDiff() {
26205    return !isBaseOrResourceEqual(this.stageValue, this.value);
26206  }
26207}
26208XComponentEnableSecureModifier.identity = Symbol('xComponentEnableSecure');
26209class XComponentRenderFitModifier extends ModifierWithKey {
26210  constructor(value) {
26211    super(value);
26212  }
26213  applyPeer(node, reset) {
26214    if (reset) {
26215      getUINativeModule().xComponent.resetRenderFit(node);
26216    }
26217    else {
26218      getUINativeModule().xComponent.setRenderFit(node, this.value);
26219    }
26220  }
26221}
26222XComponentRenderFitModifier.identity = Symbol('xComponentRenderFit');
26223/// <reference path='./import.ts' />
26224class ArkBadgeComponent extends ArkComponent {
26225  constructor(nativePtr, classType) {
26226    super(nativePtr, classType);
26227  }
26228  allowChildCount() {
26229    return 1;
26230  }
26231  initialize(value) {
26232    let _a, _b;
26233    if (value.length === 1 && isObject(value[0])) {
26234      if (((_a = value[0]) === null || _a === void 0 ? void 0 : _a.count) !== undefined) {
26235        modifierWithKey(
26236          this._modifiersWithKeys, BadgeParamWithNumberModifier.identity, BadgeParamWithNumberModifier, value[0]);
26237      }
26238      else if (((_b = value[0]) === null || _b === void 0 ? void 0 : _b.value) !== undefined) {
26239        modifierWithKey(
26240          this._modifiersWithKeys, BadgeParamWithStringModifier.identity, BadgeParamWithStringModifier, value[0]);
26241      }
26242      else {
26243        modifierWithKey(
26244          this._modifiersWithKeys, BadgeParamWithNumberModifier.identity, BadgeParamWithNumberModifier, undefined);
26245      }
26246      return this;
26247    }
26248    modifierWithKey(
26249      this._modifiersWithKeys, BadgeParamWithNumberModifier.identity, BadgeParamWithNumberModifier, undefined);
26250    return this;
26251  }
26252}
26253class BadgeParamWithNumberModifier extends ModifierWithKey {
26254  constructor(value) {
26255    super(value);
26256  }
26257  applyPeer(node, reset) {
26258    let _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1;
26259    if (reset) {
26260      getUINativeModule().badge.setBadgeParamWithNumber(node, undefined, undefined, undefined, undefined, undefined,
26261        undefined, undefined, undefined, undefined, undefined, undefined, 0, undefined);
26262    }
26263    else {
26264      if (((_a = this.value) === null || _a === void 0 ? void 0 : _a.style) === undefined) {
26265        getUINativeModule().badge.setBadgeParamWithNumber(node,
26266          isNumber((_b = this.value) === null || _b === void 0 ? void 0 : _b.position) ? this.value.position : undefined,
26267          isObject((_c = this.value) === null || _c === void 0 ? void 0 : _c.position) ?
26268          (_d = this.value.position) === null || _d === void 0 ? void 0 : _d.x : undefined,
26269          isObject((_e = this.value) === null || _e === void 0 ? void 0 : _e.position) ?
26270          (_f = this.value.position) === null || _f === void 0 ? void 0 : _f.y : undefined,
26271          undefined, undefined, undefined, undefined, undefined, undefined, undefined,
26272          isObject((_g = this.value) === null || _g === void 0 ? void 0 : _g.position) &&
26273          !isNull((_h = this.value) === null || _h === void 0 ? void 0 : _h.position),
26274          (_j = this.value) === null || _j === void 0 ? void 0 : _j.count,
26275          (_k = this.value) === null || _k === void 0 ? void 0 : _k.maxCount);
26276      }
26277      else {
26278        getUINativeModule().badge.setBadgeParamWithNumber(node,
26279          isNumber((_l = this.value) === null || _l === void 0 ? void 0 : _l.position) ? this.value.position : undefined,
26280          isObject((_m = this.value) === null || _m === void 0 ? void 0 : _m.position) ?
26281          (_o = this.value.position) === null || _o === void 0 ? void 0 : _o.x : undefined,
26282          isObject((_p = this.value) === null || _p === void 0 ? void 0 : _p.position) ?
26283          (_q = this.value.position) === null || _q === void 0 ? void 0 : _q.y : undefined,
26284          (_r = this.value.style) === null || _r === void 0 ? void 0 : _r.badgeColor,
26285          (_s = this.value.style) === null || _s === void 0 ? void 0 : _s.badgeSize,
26286          (_t = this.value.style) === null || _t === void 0 ? void 0 : _t.borderColor,
26287          (_u = this.value.style) === null || _u === void 0 ? void 0 : _u.borderWidth,
26288          (_v = this.value.style) === null || _v === void 0 ? void 0 : _v.color,
26289          (_w = this.value.style) === null || _w === void 0 ? void 0 : _w.fontSize,
26290          (_x = this.value.style) === null || _x === void 0 ? void 0 : _x.fontWeight,
26291          isObject((_y = this.value) === null || _y === void 0 ? void 0 : _y.position) &&
26292          !isNull((_z = this.value) === null || _z === void 0 ? void 0 : _z.position),
26293          (_0 = this.value) === null || _0 === void 0 ? void 0 : _0.count,
26294          (_1 = this.value) === null || _1 === void 0 ? void 0 : _1.maxCount);
26295      }
26296    }
26297  }
26298  checkObjectDiff() {
26299    let _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7;
26300    let positionResult = false;
26301    let badgeSizeResult = false;
26302    let borderWidthResult = false;
26303    let badgeColorResult = false;
26304    let borderColorResult = false;
26305    let colorResult = false;
26306    let fontSizeResult = false;
26307    let fontWeightResult = false;
26308    if (isNumber((_a = this.stageValue) === null || _a === void 0 ? void 0 : _a.position) &&
26309      isNumber((_b = this.value) === null || _b === void 0 ? void 0 : _b.position)) {
26310      positionResult = !isBaseOrResourceEqual(this.stageValue.position, this.value.position);
26311    }
26312    else if (isObject((_c = this.stageValue) === null || _c === void 0 ? void 0 : _c.position) &&
26313      isObject((_d = this.value) === null || _d === void 0 ? void 0 : _d.position)) {
26314      positionResult = !isBaseOrResourceEqual((_e = this.stageValue.position) === null || _e === void 0 ? void 0 : _e.x,
26315        (_f = this.value.position) === null || _f === void 0 ? void 0 : _f.x) ||
26316        !isBaseOrResourceEqual((_g = this.stageValue.position) === null || _g === void 0 ? void 0 : _g.y,
26317        (_h = this.value.position) === null || _h === void 0 ? void 0 : _h.y);
26318    }
26319    else if (((_j = this.stageValue) === null || _j === void 0 ? void 0 : _j.position) !== undefined ||
26320      ((_k = this.value) === null || _k === void 0 ? void 0 : _k.position) !== undefined) {
26321      positionResult = true;
26322    }
26323    if (isObject((_l = this.stageValue) === null || _l === void 0 ? void 0 : _l.style) &&
26324      isObject((_m = this.value) === null || _m === void 0 ? void 0 : _m.style)) {
26325      badgeSizeResult = !isBaseOrResourceEqual((_o = this.stageValue.style) === null || _o === void 0 ? void 0 : _o.badgeSize,
26326        (_p = this.value.style) === null || _p === void 0 ? void 0 : _p.badgeSize);
26327      borderWidthResult = !isBaseOrResourceEqual((_q = this.stageValue.style) === null || _q === void 0 ? void 0 : _q.borderWidth,
26328        (_r = this.value.style) === null || _r === void 0 ? void 0 : _r.borderWidth);
26329      badgeColorResult = !isBaseOrResourceEqual((_s = this.stageValue.style) === null || _s === void 0 ? void 0 : _s.badgeColor,
26330        (_t = this.value.style) === null || _t === void 0 ? void 0 : _t.badgeColor);
26331      borderColorResult = !isBaseOrResourceEqual((_u = this.stageValue.style) === null || _u === void 0 ? void 0 : _u.borderColor,
26332        (_v = this.value.style) === null || _v === void 0 ? void 0 : _v.borderColor);
26333      colorResult = !isBaseOrResourceEqual((_w = this.stageValue.style) === null || _w === void 0 ? void 0 : _w.color,
26334        (_x = this.value.style) === null || _x === void 0 ? void 0 : _x.color);
26335      fontSizeResult = !isBaseOrResourceEqual((_y = this.stageValue.style) === null || _y === void 0 ? void 0 : _y.fontSize,
26336        (_z = this.value.style) === null || _z === void 0 ? void 0 : _z.fontSize);
26337      fontWeightResult = !isBaseOrResourceEqual((_0 = this.stageValue.style) === null || _0 === void 0 ? void 0 : _0.fontWeight,
26338        (_1 = this.value.style) === null || _1 === void 0 ? void 0 : _1.fontWeight);
26339    }
26340    else if (((_2 = this.stageValue) === null || _2 === void 0 ? void 0 : _2.style) !== undefined ||
26341      ((_3 = this.value) === null || _3 === void 0 ? void 0 : _3.style) !== undefined) {
26342      badgeSizeResult = true;
26343      borderWidthResult = true;
26344      badgeColorResult = true;
26345      borderColorResult = true;
26346      colorResult = true;
26347      fontSizeResult = true;
26348      fontWeightResult = true;
26349    }
26350    return positionResult || badgeSizeResult || borderWidthResult || badgeColorResult || borderColorResult || colorResult ||
26351      fontSizeResult || fontWeightResult || !isBaseOrResourceEqual((_4 = this.stageValue) === null || _4 === void 0 ? void 0 : _4.count,
26352      (_5 = this.value) === null || _5 === void 0 ? void 0 : _5.count) ||
26353      !isBaseOrResourceEqual((_6 = this.stageValue) === null || _6 === void 0 ? void 0 : _6.maxCount,
26354      (_7 = this.value) === null || _7 === void 0 ? void 0 : _7.maxCount);
26355  }
26356}
26357BadgeParamWithNumberModifier.identity = Symbol('BadgeParamWithNumber');
26358class BadgeParamWithStringModifier extends ModifierWithKey {
26359  constructor(value) {
26360    super(value);
26361  }
26362  applyPeer(node, reset) {
26363    let _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
26364    if (reset) {
26365      getUINativeModule().badge.setBadgeParamWithString(node, undefined, undefined, undefined, undefined, undefined,
26366        undefined, undefined, undefined, undefined, undefined, undefined, undefined);
26367    }
26368    else {
26369      if (((_a = this.value) === null || _a === void 0 ? void 0 : _a.style) === undefined) {
26370        getUINativeModule().badge.setBadgeParamWithString(node,
26371          isNumber((_b = this.value) === null || _b === void 0 ? void 0 : _b.position) ? this.value.position : undefined,
26372          isObject((_c = this.value) === null || _c === void 0 ? void 0 : _c.position) ?
26373          (_d = this.value.position) === null || _d === void 0 ? void 0 : _d.x : undefined,
26374          isObject((_e = this.value) === null || _e === void 0 ? void 0 : _e.position) ?
26375          (_f = this.value.position) === null || _f === void 0 ? void 0 : _f.y : undefined,
26376          undefined, undefined, undefined, undefined, undefined, undefined, undefined,
26377          isObject((_g = this.value) === null || _g === void 0 ? void 0 : _g.position) &&
26378          !isNull((_h = this.value) === null || _h === void 0 ? void 0 : _h.position),
26379          (_j = this.value) === null || _j === void 0 ? void 0 : _j.value);
26380      }
26381      else {
26382        getUINativeModule().badge.setBadgeParamWithString(node,
26383          isNumber((_k = this.value) === null || _k === void 0 ? void 0 : _k.position) ? this.value.position : undefined,
26384          isObject((_l = this.value) === null || _l === void 0 ? void 0 : _l.position) ?
26385          (_m = this.value.position) === null || _m === void 0 ? void 0 : _m.x : undefined,
26386          isObject((_o = this.value) === null || _o === void 0 ? void 0 : _o.position) ?
26387          (_p = this.value.position) === null || _p === void 0 ? void 0 : _p.y : undefined,
26388          (_q = this.value.style) === null || _q === void 0 ? void 0 : _q.badgeColor,
26389          (_r = this.value.style) === null || _r === void 0 ? void 0 : _r.badgeSize,
26390          (_s = this.value.style) === null || _s === void 0 ? void 0 : _s.borderColor,
26391          (_t = this.value.style) === null || _t === void 0 ? void 0 : _t.borderWidth,
26392          (_u = this.value.style) === null || _u === void 0 ? void 0 : _u.color,
26393          (_v = this.value.style) === null || _v === void 0 ? void 0 : _v.fontSize,
26394          (_w = this.value.style) === null || _w === void 0 ? void 0 : _w.fontWeight,
26395          isObject((_x = this.value) === null || _x === void 0 ? void 0 : _x.position) &&
26396          !isNull((_y = this.value) === null || _y === void 0 ? void 0 : _y.position),
26397          (_z = this.value) === null || _z === void 0 ? void 0 : _z.value);
26398      }
26399    }
26400  }
26401  checkObjectDiff() {
26402    let _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5;
26403    let positionResult = false;
26404    let badgeSizeResult = false;
26405    let borderWidthResult = false;
26406    let badgeColorResult = false;
26407    let borderColorResult = false;
26408    let colorResult = false;
26409    let fontSizeResult = false;
26410    let fontWeightResult = false;
26411    if (isNumber((_a = this.stageValue) === null || _a === void 0 ? void 0 : _a.position) &&
26412      isNumber((_b = this.value) === null || _b === void 0 ? void 0 : _b.position)) {
26413      positionResult = !isBaseOrResourceEqual(this.stageValue.position, this.value.position);
26414    }
26415    else if (isObject((_c = this.stageValue) === null || _c === void 0 ? void 0 : _c.position) &&
26416      isObject((_d = this.value) === null || _d === void 0 ? void 0 : _d.position)) {
26417      positionResult = !isBaseOrResourceEqual((_e = this.stageValue.position) === null || _e === void 0 ? void 0 : _e.x,
26418        (_f = this.value.position) === null || _f === void 0 ? void 0 : _f.x) ||
26419        !isBaseOrResourceEqual((_g = this.stageValue.position) === null || _g === void 0 ? void 0 : _g.y,
26420        (_h = this.value.position) === null || _h === void 0 ? void 0 : _h.y);
26421    }
26422    else if (((_j = this.stageValue) === null || _j === void 0 ? void 0 : _j.position) !== undefined ||
26423      ((_k = this.value) === null || _k === void 0 ? void 0 : _k.position) !== undefined) {
26424      positionResult = true;
26425    }
26426    if (isObject((_l = this.stageValue) === null || _l === void 0 ? void 0 : _l.style) &&
26427      isObject((_m = this.value) === null || _m === void 0 ? void 0 : _m.style)) {
26428      badgeSizeResult = !isBaseOrResourceEqual((_o = this.stageValue.style) === null || _o === void 0 ? void 0 : _o.badgeSize,
26429        (_p = this.value.style) === null || _p === void 0 ? void 0 : _p.badgeSize);
26430      borderWidthResult = !isBaseOrResourceEqual((_q = this.stageValue.style) === null || _q === void 0 ? void 0 : _q.borderWidth,
26431        (_r = this.value.style) === null || _r === void 0 ? void 0 : _r.borderWidth);
26432      badgeColorResult = !isBaseOrResourceEqual((_s = this.stageValue.style) === null || _s === void 0 ? void 0 : _s.badgeColor,
26433        (_t = this.value.style) === null || _t === void 0 ? void 0 : _t.badgeColor);
26434      borderColorResult = !isBaseOrResourceEqual((_u = this.stageValue.style) === null || _u === void 0 ? void 0 : _u.borderColor,
26435        (_v = this.value.style) === null || _v === void 0 ? void 0 : _v.borderColor);
26436      colorResult = !isBaseOrResourceEqual((_w = this.stageValue.style) === null || _w === void 0 ? void 0 : _w.color,
26437        (_x = this.value.style) === null || _x === void 0 ? void 0 : _x.color);
26438      fontSizeResult = !isBaseOrResourceEqual((_y = this.stageValue.style) === null || _y === void 0 ? void 0 : _y.fontSize,
26439        (_z = this.value.style) === null || _z === void 0 ? void 0 : _z.fontSize);
26440      fontWeightResult = !isBaseOrResourceEqual((_0 = this.stageValue.style) === null || _0 === void 0 ? void 0 : _0.fontWeight,
26441        (_1 = this.value.style) === null || _1 === void 0 ? void 0 : _1.fontWeight);
26442    }
26443    else if (((_2 = this.stageValue) === null || _2 === void 0 ? void 0 : _2.style) !== undefined ||
26444      ((_3 = this.value) === null || _3 === void 0 ? void 0 : _3.style) !== undefined) {
26445      badgeSizeResult = true;
26446      borderWidthResult = true;
26447      badgeColorResult = true;
26448      borderColorResult = true;
26449      colorResult = true;
26450      fontSizeResult = true;
26451      fontWeightResult = true;
26452    }
26453    return positionResult || badgeSizeResult || borderWidthResult || badgeColorResult || borderColorResult || colorResult ||
26454      fontSizeResult || fontWeightResult || !isBaseOrResourceEqual((_4 = this.stageValue) === null || _4 === void 0 ? void 0 : _4.value,
26455      (_5 = this.value) === null || _5 === void 0 ? void 0 : _5.value);
26456  }
26457}
26458BadgeParamWithStringModifier.identity = Symbol('BadgeParamWithString');
26459// @ts-ignore
26460if (globalThis.Badge !== undefined) {
26461  globalThis.Badge.attributeModifier = function (modifier) {
26462    attributeModifierFunc.call(this, modifier, (nativePtr) => {
26463      return new ArkBadgeComponent(nativePtr);
26464    }, (nativePtr, classType, modifierJS) => {
26465      return new modifierJS.CommonModifier(nativePtr, classType);
26466    });
26467  };
26468}
26469
26470/// <reference path='./import.ts' />
26471class ArkFlowItemComponent extends ArkComponent {
26472  constructor(nativePtr, classType) {
26473    super(nativePtr, classType);
26474  }
26475  initialize(value) {
26476    return this;
26477  }
26478  allowChildCount() {
26479    return 1;
26480  }
26481}
26482// @ts-ignore
26483if (globalThis.FlowItem !== undefined) {
26484  globalThis.FlowItem.attributeModifier = function (modifier) {
26485    attributeModifierFunc.call(this, modifier, (nativePtr) => {
26486      return new ArkFlowItemComponent(nativePtr);
26487    }, (nativePtr, classType, modifierJS) => {
26488      return new modifierJS.CommonModifier(nativePtr, classType);
26489    });
26490  };
26491}
26492
26493/// <reference path='./import.ts' />
26494class ArkFormLinkComponent extends ArkComponent {
26495  constructor(nativePtr, classType) {
26496    super(nativePtr, classType);
26497  }
26498}
26499// @ts-ignore
26500if (globalThis.FormLink !== undefined) {
26501  globalThis.FormLink.attributeModifier = function (modifier) {
26502    attributeModifierFunc.call(this, modifier, (nativePtr) => {
26503      return new ArkFormLinkComponent(nativePtr);
26504    }, (nativePtr, classType, modifierJS) => {
26505      return new modifierJS.CommonModifier(nativePtr, classType);
26506    });
26507  };
26508}
26509
26510/// <reference path='./import.ts' />
26511class GridItemSelectableModifier extends ModifierWithKey {
26512  applyPeer(node, reset) {
26513    if (reset) {
26514      getUINativeModule().gridItem.resetGridItemSelectable(node);
26515    }
26516    else {
26517      getUINativeModule().gridItem.setGridItemSelectable(node, this.value);
26518    }
26519  }
26520}
26521GridItemSelectableModifier.identity = Symbol('gridItemSelectable');
26522class GridItemSelectedModifier extends ModifierWithKey {
26523  applyPeer(node, reset) {
26524    if (reset) {
26525      getUINativeModule().gridItem.resetGridItemSelected(node);
26526    }
26527    else {
26528      getUINativeModule().gridItem.setGridItemSelected(node, this.value);
26529    }
26530  }
26531}
26532GridItemSelectedModifier.identity = Symbol('gridItemSelected');
26533class GridItemRowStartModifier extends ModifierWithKey {
26534  applyPeer(node, reset) {
26535    if (reset) {
26536      getUINativeModule().gridItem.resetGridItemRowStart(node);
26537    }
26538    else {
26539      getUINativeModule().gridItem.setGridItemRowStart(node, this.value);
26540    }
26541  }
26542}
26543GridItemRowStartModifier.identity = Symbol('gridItemRowStart');
26544class GridItemRowEndModifier extends ModifierWithKey {
26545  applyPeer(node, reset) {
26546    if (reset) {
26547      getUINativeModule().gridItem.resetGridItemRowEnd(node);
26548    }
26549    else {
26550      getUINativeModule().gridItem.setGridItemRowEnd(node, this.value);
26551    }
26552  }
26553}
26554GridItemRowEndModifier.identity = Symbol('gridItemRowEnd');
26555class GridItemColumnStartModifier extends ModifierWithKey {
26556  applyPeer(node, reset) {
26557    if (reset) {
26558      getUINativeModule().gridItem.resetGridItemColumnStart(node);
26559    }
26560    else {
26561      getUINativeModule().gridItem.setGridItemColumnStart(node, this.value);
26562    }
26563  }
26564}
26565GridItemColumnStartModifier.identity = Symbol('gridItemColumnStart');
26566class GridItemColumnEndModifier extends ModifierWithKey {
26567  applyPeer(node, reset) {
26568    if (reset) {
26569      getUINativeModule().gridItem.resetGridItemColumnEnd(node);
26570    }
26571    else {
26572      getUINativeModule().gridItem.setGridItemColumnEnd(node, this.value);
26573    }
26574  }
26575}
26576GridItemColumnEndModifier.identity = Symbol('gridItemColumnEnd');
26577class GridItemOptionsModifier extends ModifierWithKey {
26578  applyPeer(node, reset) {
26579    let _a;
26580    if (reset) {
26581      getUINativeModule().gridItem.setGridItemOptions(node, undefined);
26582    }
26583    else {
26584      if (((_a = this.value) === null || _a === void 0 ? void 0 : _a.style) === undefined) {
26585        getUINativeModule().gridItem.setGridItemOptions(node, undefined);
26586      }
26587      else {
26588        getUINativeModule().gridItem.setGridItemOptions(node, this.value.style);
26589      }
26590    }
26591  }
26592  checkObjectDiff() {
26593    let _a, _b;
26594    return !isBaseOrResourceEqual((_a = this.stageValue) === null || _a === void 0 ? void 0 : _a.style,
26595      (_b = this.value) === null || _b === void 0 ? void 0 : _b.style);
26596  }
26597}
26598GridItemOptionsModifier.identity = Symbol('gridItemOptions');
26599class ArkGridItemComponent extends ArkComponent {
26600  constructor(nativePtr, classType) {
26601    super(nativePtr, classType);
26602  }
26603  allowChildCount() {
26604    return 1;
26605  }
26606  initialize(value) {
26607    if (value.length === 1 && isObject(value[0])) {
26608      modifierWithKey(this._modifiersWithKeys, GridItemOptionsModifier.identity, GridItemOptionsModifier, value[0]);
26609    }
26610    return this;
26611  }
26612  rowStart(value) {
26613    modifierWithKey(this._modifiersWithKeys, GridItemRowStartModifier.identity, GridItemRowStartModifier, value);
26614    return this;
26615  }
26616  rowEnd(value) {
26617    modifierWithKey(this._modifiersWithKeys, GridItemRowEndModifier.identity, GridItemRowEndModifier, value);
26618    return this;
26619  }
26620  columnStart(value) {
26621    modifierWithKey(this._modifiersWithKeys, GridItemColumnStartModifier.identity, GridItemColumnStartModifier, value);
26622    return this;
26623  }
26624  columnEnd(value) {
26625    modifierWithKey(this._modifiersWithKeys, GridItemColumnEndModifier.identity, GridItemColumnEndModifier, value);
26626    return this;
26627  }
26628  forceRebuild(value) {
26629    throw new Error('Method not implemented.');
26630  }
26631  selectable(value) {
26632    modifierWithKey(this._modifiersWithKeys, GridItemSelectableModifier.identity, GridItemSelectableModifier, value);
26633    return this;
26634  }
26635  selected(value) {
26636    modifierWithKey(this._modifiersWithKeys, GridItemSelectedModifier.identity, GridItemSelectedModifier, value);
26637    return this;
26638  }
26639  onSelect(event) {
26640    throw new Error('Method not implemented.');
26641  }
26642}
26643// @ts-ignore
26644if (globalThis.GridItem !== undefined) {
26645  globalThis.GridItem.attributeModifier = function (modifier) {
26646    attributeModifierFunc.call(this, modifier, (nativePtr) => {
26647      return new ArkGridItemComponent(nativePtr);
26648    }, (nativePtr, classType, modifierJS) => {
26649      return new modifierJS.GridItemModifier(nativePtr, classType);
26650    });
26651  };
26652}
26653
26654/// <reference path='./import.ts' />
26655class ArkHyperlinkComponent extends ArkComponent {
26656  constructor(nativePtr, classType) {
26657    super(nativePtr, classType);
26658  }
26659  color(value) {
26660    modifierWithKey(this._modifiersWithKeys, HyperlinkColorModifier.identity, HyperlinkColorModifier, value);
26661    return this;
26662  }
26663  draggable(value) {
26664    modifierWithKey(this._modifiersWithKeys, HyperlinkDraggableModifier.identity, HyperlinkDraggableModifier, value);
26665    return this;
26666  }
26667  responseRegion(value) {
26668    modifierWithKey(this._modifiersWithKeys, HyperlinkResponseRegionModifier.identity, HyperlinkResponseRegionModifier, value);
26669    return this;
26670  }
26671}
26672class HyperlinkColorModifier extends ModifierWithKey {
26673  constructor(value) {
26674    super(value);
26675  }
26676  applyPeer(node, reset) {
26677    if (reset) {
26678      getUINativeModule().hyperlink.resetColor(node);
26679    }
26680    else {
26681      getUINativeModule().hyperlink.setColor(node, this.value);
26682    }
26683  }
26684  checkObjectDiff() {
26685    return !isBaseOrResourceEqual(this.stageValue, this.value);
26686  }
26687}
26688HyperlinkColorModifier.identity = Symbol('hyperlinkColor');
26689class HyperlinkDraggableModifier extends ModifierWithKey {
26690  constructor(value) {
26691    super(value);
26692  }
26693  applyPeer(node, reset) {
26694    if (reset) {
26695      getUINativeModule().hyperlink.resetDraggable(node);
26696    }
26697    else {
26698      getUINativeModule().hyperlink.setDraggable(node, this.value);
26699    }
26700  }
26701}
26702HyperlinkDraggableModifier.identity = Symbol('hyperlinkDraggable');
26703class HyperlinkResponseRegionModifier extends ModifierWithKey {
26704  constructor(value) {
26705    super(value);
26706  }
26707  applyPeer(node, reset) {
26708    let _a, _b, _c, _d, _e, _f, _g, _h;
26709    if (reset) {
26710      getUINativeModule().hyperlink.resetResponseRegion(node);
26711    }
26712    else {
26713      let responseRegion = [];
26714      if (Array.isArray(this.value)) {
26715        for (let i = 0; i < this.value.length; i++) {
26716          responseRegion.push((_a = this.value[i].x) !== null && _a !== void 0 ? _a : 'PLACEHOLDER');
26717          responseRegion.push((_b = this.value[i].y) !== null && _b !== void 0 ? _b : 'PLACEHOLDER');
26718          responseRegion.push((_c = this.value[i].width) !== null && _c !== void 0 ? _c : 'PLACEHOLDER');
26719          responseRegion.push((_d = this.value[i].height) !== null && _d !== void 0 ? _d : 'PLACEHOLDER');
26720        }
26721      }
26722      else {
26723        responseRegion.push((_e = this.value.x) !== null && _e !== void 0 ? _e : 'PLACEHOLDER');
26724        responseRegion.push((_f = this.value.y) !== null && _f !== void 0 ? _f : 'PLACEHOLDER');
26725        responseRegion.push((_g = this.value.width) !== null && _g !== void 0 ? _g : 'PLACEHOLDER');
26726        responseRegion.push((_h = this.value.height) !== null && _h !== void 0 ? _h : 'PLACEHOLDER');
26727      }
26728      getUINativeModule().hyperlink.setResponseRegion(node, responseRegion, responseRegion.length);
26729    }
26730  }
26731  checkObjectDiff() {
26732    return !isBaseOrResourceEqual(this.stageValue, this.value);
26733  }
26734}
26735HyperlinkResponseRegionModifier.identity = Symbol('hyperlinkResponseRegion');
26736// @ts-ignore
26737if (globalThis.Hyperlink !== undefined) {
26738  globalThis.Hyperlink.attributeModifier = function (modifier) {
26739    attributeModifierFunc.call(this, modifier, (nativePtr) => {
26740      return new ArkHyperlinkComponent(nativePtr);
26741    }, (nativePtr, classType, modifierJS) => {
26742      return new modifierJS.HyperlinkModifier(nativePtr, classType);
26743    });
26744  };
26745}
26746
26747/// <reference path='./import.ts' />
26748class ListEditModeModifier extends ModifierWithKey {
26749  constructor(value) {
26750    super(value);
26751  }
26752  applyPeer(node, reset) {
26753    if (reset) {
26754      getUINativeModule().list.resetEditMode(node);
26755    }
26756    else {
26757      getUINativeModule().list.setEditMode(node, this.value);
26758    }
26759  }
26760}
26761ListEditModeModifier.identity = Symbol('editMode');
26762class ListMultiSelectableModifier extends ModifierWithKey {
26763  constructor(value) {
26764    super(value);
26765  }
26766  applyPeer(node, reset) {
26767    if (reset) {
26768      getUINativeModule().list.resetMultiSelectable(node);
26769    }
26770    else {
26771      getUINativeModule().list.setMultiSelectable(node, this.value);
26772    }
26773  }
26774}
26775ListMultiSelectableModifier.identity = Symbol('listMultiSelectable');
26776class ListAlignListItemModifier extends ModifierWithKey {
26777  constructor(value) {
26778    super(value);
26779  }
26780  applyPeer(node, reset) {
26781    if (reset) {
26782      getUINativeModule().list.resetAlignListItem(node);
26783    }
26784    else {
26785      getUINativeModule().list.setAlignListItem(node, this.value);
26786    }
26787  }
26788}
26789ListAlignListItemModifier.identity = Symbol('listAlignListItem');
26790class ListScrollSnapAlignModifier extends ModifierWithKey {
26791  constructor(value) {
26792    super(value);
26793  }
26794  applyPeer(node, reset) {
26795    if (reset) {
26796      getUINativeModule().list.resetScrollSnapAlign(node);
26797    }
26798    else {
26799      getUINativeModule().list.setScrollSnapAlign(node, this.value);
26800    }
26801  }
26802}
26803ListScrollSnapAlignModifier.identity = Symbol('listScrollSnapAlign');
26804class ContentStartOffsetModifier extends ModifierWithKey {
26805  constructor(value) {
26806    super(value);
26807  }
26808  applyPeer(node, reset) {
26809    if (reset) {
26810      getUINativeModule().list.resetContentStartOffset(node);
26811    }
26812    else {
26813      getUINativeModule().list.setContentStartOffset(node, this.value);
26814    }
26815  }
26816}
26817ContentStartOffsetModifier.identity = Symbol('contentStartOffset');
26818class ContentEndOffsetModifier extends ModifierWithKey {
26819  constructor(value) {
26820    super(value);
26821  }
26822  applyPeer(node, reset) {
26823    if (reset) {
26824      getUINativeModule().list.resetContentEndOffset(node);
26825    }
26826    else {
26827      getUINativeModule().list.setContentEndOffset(node, this.value);
26828    }
26829  }
26830}
26831ContentEndOffsetModifier.identity = Symbol('contentEndOffset');
26832class ListDividerModifier extends ModifierWithKey {
26833  constructor(value) {
26834    super(value);
26835  }
26836  applyPeer(node, reset) {
26837    let _a, _b, _c, _d;
26838    if (reset) {
26839      getUINativeModule().list.resetDivider(node);
26840    }
26841    else {
26842      getUINativeModule().list.setDivider(node, (_a = this.value) === null ||
26843      _a === void 0 ? void 0 : _a.strokeWidth, (_b = this.value) === null ||
26844      _b === void 0 ? void 0 : _b.color, (_c = this.value) === null ||
26845      _c === void 0 ? void 0 : _c.startMargin, (_d = this.value) === null ||
26846      _d === void 0 ? void 0 : _d.endMargin);
26847    }
26848  }
26849  checkObjectDiff() {
26850    let _a, _b, _c, _d, _e, _f, _g, _h;
26851    return !(((_a = this.stageValue) === null || _a === void 0 ? void 0 : _a.strokeWidth) === ((_b = this.value) === null || _b === void 0 ? void 0 : _b.strokeWidth) &&
26852      ((_c = this.stageValue) === null || _c === void 0 ? void 0 : _c.color) === ((_d = this.value) === null || _d === void 0 ? void 0 : _d.color) &&
26853      ((_e = this.stageValue) === null || _e === void 0 ? void 0 : _e.startMargin) === ((_f = this.value) === null || _f === void 0 ? void 0 : _f.startMargin) &&
26854      ((_g = this.stageValue) === null || _g === void 0 ? void 0 : _g.endMargin) === ((_h = this.value) === null || _h === void 0 ? void 0 : _h.endMargin));
26855  }
26856}
26857ListDividerModifier.identity = Symbol('listDivider');
26858class ChainAnimationOptionsModifier extends ModifierWithKey {
26859  constructor(value) {
26860    super(value);
26861  }
26862  applyPeer(node, reset) {
26863    let _a, _b, _c, _d, _e, _f, _g;
26864    if (reset) {
26865      getUINativeModule().list.resetChainAnimationOptions(node);
26866    }
26867    else {
26868      getUINativeModule().list.setChainAnimationOptions(node, (_a = this.value) === null ||
26869      _a === void 0 ? void 0 : _a.minSpace, (_b = this.value) === null ||
26870      _b === void 0 ? void 0 : _b.maxSpace, (_c = this.value) === null ||
26871      _c === void 0 ? void 0 : _c.conductivity, (_d = this.value) === null ||
26872      _d === void 0 ? void 0 : _d.intensity, (_e = this.value) === null ||
26873      _e === void 0 ? void 0 : _e.edgeEffect, (_f = this.value) === null ||
26874      _f === void 0 ? void 0 : _f.stiffness, (_g = this.value) === null ||
26875      _g === void 0 ? void 0 : _g.damping);
26876    }
26877  }
26878  checkObjectDiff() {
26879    return !(this.stageValue.minSpace === this.value.minSpace && this.stageValue.maxSpace === this.value.maxSpace &&
26880      this.stageValue.conductivity === this.value.conductivity && this.stageValue.intensity === this.value.intensity &&
26881      this.stageValue.edgeEffect === this.value.edgeEffect && this.stageValue.stiffness === this.value.stiffness &&
26882      this.stageValue.damping === this.value.damping);
26883  }
26884}
26885ChainAnimationOptionsModifier.identity = Symbol('chainAnimationOptions');
26886class ListChainAnimationModifier extends ModifierWithKey {
26887  constructor(value) {
26888    super(value);
26889  }
26890  applyPeer(node, reset) {
26891    if (reset) {
26892      getUINativeModule().list.resetChainAnimation(node);
26893    }
26894    else {
26895      getUINativeModule().list.setChainAnimation(node, this.value);
26896    }
26897  }
26898}
26899ListChainAnimationModifier.identity = Symbol('listChainAnimation');
26900class ListCachedCountModifier extends ModifierWithKey {
26901  constructor(value) {
26902    super(value);
26903  }
26904  applyPeer(node, reset) {
26905    if (reset) {
26906      getUINativeModule().list.resetCachedCount(node);
26907    }
26908    else {
26909      getUINativeModule().list.setCachedCount(node, this.value.count, this.value.show);
26910    }
26911  }
26912}
26913ListCachedCountModifier.identity = Symbol('listCachedCount');
26914class ListEnableScrollInteractionModifier extends ModifierWithKey {
26915  constructor(value) {
26916    super(value);
26917  }
26918  applyPeer(node, reset) {
26919    if (reset) {
26920      getUINativeModule().list.resetEnableScrollInteraction(node);
26921    }
26922    else {
26923      getUINativeModule().list.setEnableScrollInteraction(node, this.value);
26924    }
26925  }
26926}
26927ListEnableScrollInteractionModifier.identity = Symbol('listEnableScrollInteraction');
26928class ListStickyModifier extends ModifierWithKey {
26929  constructor(value) {
26930    super(value);
26931  }
26932  applyPeer(node, reset) {
26933    if (reset) {
26934      getUINativeModule().list.resetSticky(node);
26935    }
26936    else {
26937      getUINativeModule().list.setSticky(node, this.value);
26938    }
26939  }
26940}
26941ListStickyModifier.identity = Symbol('listSticky');
26942class ListEdgeEffectModifier extends ModifierWithKey {
26943  constructor(value) {
26944    super(value);
26945  }
26946  applyPeer(node, reset) {
26947    let _a;
26948    if (reset) {
26949      getUINativeModule().list.resetListEdgeEffect(node);
26950    }
26951    else {
26952      getUINativeModule().list.setListEdgeEffect(node, this.value.value, (_a = this.value.options) === null ||
26953      _a === void 0 ? void 0 : _a.alwaysEnabled);
26954    }
26955  }
26956  checkObjectDiff() {
26957    return !((this.stageValue.value === this.value.value) &&
26958      (this.stageValue.options === this.value.options));
26959  }
26960}
26961ListEdgeEffectModifier.identity = Symbol('listEdgeEffect');
26962class ListListDirectionModifier extends ModifierWithKey {
26963  constructor(value) {
26964    super(value);
26965  }
26966  applyPeer(node, reset) {
26967    if (reset) {
26968      getUINativeModule().list.resetListDirection(node);
26969    }
26970    else {
26971      getUINativeModule().list.setListDirection(node, this.value);
26972    }
26973  }
26974}
26975ListListDirectionModifier.identity = Symbol('listListDirection');
26976class ListFrictionModifier extends ModifierWithKey {
26977  constructor(value) {
26978    super(value);
26979  }
26980  applyPeer(node, reset) {
26981    if (reset) {
26982      getUINativeModule().list.resetListFriction(node);
26983    }
26984    else {
26985      if (!isNumber(this.value) && !isResource(this.value)) {
26986        getUINativeModule().list.resetListFriction(node);
26987      }
26988      else {
26989        getUINativeModule().list.setListFriction(node, this.value);
26990      }
26991    }
26992  }
26993  checkObjectDiff() {
26994    return !isBaseOrResourceEqual(this.stageValue, this.value);
26995  }
26996}
26997ListFrictionModifier.identity = Symbol('listFriction');
26998class ListMaintainVisibleContentPositionModifier extends ModifierWithKey {
26999  constructor(value) {
27000    super(value);
27001  }
27002  applyPeer(node, reset) {
27003    if (reset) {
27004      getUINativeModule().list.resetListMaintainVisibleContentPosition(node);
27005    } else {
27006      getUINativeModule().list.setListMaintainVisibleContentPosition(node, this.value);
27007    }
27008  }
27009}
27010ListMaintainVisibleContentPositionModifier.identity = Symbol('listMaintainVisibleContentPosition');
27011class ListNestedScrollModifier extends ModifierWithKey {
27012  constructor(value) {
27013    super(value);
27014  }
27015  applyPeer(node, reset) {
27016    let _a, _b;
27017    if (reset) {
27018      getUINativeModule().list.resetListNestedScroll(node);
27019    }
27020    else {
27021      getUINativeModule().list.setListNestedScroll(node, (_a = this.value) === null ||
27022      _a === void 0 ? void 0 : _a.scrollForward, (_b = this.value) === null ||
27023      _b === void 0 ? void 0 : _b.scrollBackward);
27024    }
27025  }
27026}
27027ListNestedScrollModifier.identity = Symbol('listNestedScroll');
27028class ListScrollBarModifier extends ModifierWithKey {
27029  constructor(value) {
27030    super(value);
27031  }
27032  applyPeer(node, reset) {
27033    if (reset) {
27034      getUINativeModule().list.resetListScrollBar(node);
27035    }
27036    else {
27037      getUINativeModule().list.setListScrollBar(node, this.value);
27038    }
27039  }
27040}
27041ListScrollBarModifier.identity = Symbol('listScrollBar');
27042class ListScrollBarWidthModifier extends ModifierWithKey {
27043  constructor(value) {
27044    super(value);
27045  }
27046  applyPeer(node, reset) {
27047    if (reset) {
27048      getUINativeModule().list.resetListScrollBarWidth(node);
27049    }
27050    else {
27051      getUINativeModule().list.setListScrollBarWidth(node, this.value);
27052    }
27053  }
27054}
27055ListScrollBarWidthModifier.identity = Symbol('listScrollBarWidth');
27056class ListScrollBarColorModifier extends ModifierWithKey {
27057  constructor(value) {
27058    super(value);
27059  }
27060  applyPeer(node, reset) {
27061    if (reset) {
27062      getUINativeModule().list.resetListScrollBarColor(node);
27063    }
27064    else {
27065      getUINativeModule().list.setListScrollBarColor(node, this.value);
27066    }
27067  }
27068}
27069ListScrollBarColorModifier.identity = Symbol('listScrollBarColor');
27070class ListFlingSpeedLimitModifier extends ModifierWithKey {
27071  constructor(value) {
27072    super(value);
27073  }
27074  applyPeer(node, reset) {
27075    if (reset) {
27076      getUINativeModule().list.resetFlingSpeedLimit(node);
27077    }
27078    else {
27079      getUINativeModule().list.setFlingSpeedLimit(node, this.value);
27080    }
27081  }
27082}
27083ListFlingSpeedLimitModifier.identity = Symbol('listFlingSpeedLimit');
27084class ListLanesModifier extends ModifierWithKey {
27085  constructor(value) {
27086    super(value);
27087  }
27088  applyPeer(node, reset) {
27089    if (reset) {
27090      getUINativeModule().list.resetListLanes(node);
27091    }
27092    else {
27093      getUINativeModule().list.setListLanes(node, this.value.lanesNum, this.value.minLength, this.value.maxLength, this.value.gutter);
27094    }
27095  }
27096  checkObjectDiff() {
27097    return true;
27098  }
27099}
27100ListLanesModifier.identity = Symbol('listLanes');
27101class ListClipModifier extends ModifierWithKey {
27102  constructor(value) {
27103    super(value);
27104  }
27105  applyPeer(node, reset) {
27106    if (reset) {
27107      getUINativeModule().common.resetClipWithEdge(node);
27108    }
27109    else {
27110      getUINativeModule().common.setClipWithEdge(node, this.value);
27111    }
27112  }
27113  checkObjectDiff() {
27114    return true;
27115  }
27116}
27117ListClipModifier.identity = Symbol('listClip');
27118class ListOnScrollIndexModifier extends ModifierWithKey {
27119  constructor(value) {
27120    super(value);
27121  }
27122  applyPeer(node, reset) {
27123    if (reset) {
27124      getUINativeModule().list.resetOnScrollIndex(node);
27125    } else {
27126      getUINativeModule().list.setOnScrollIndex(node, this.value);
27127    }
27128  }
27129}
27130ListOnScrollIndexModifier.identity = Symbol('listOnScrollIndex');
27131class ListOnScrollVisibleContentChangeModifier extends ModifierWithKey {
27132  constructor(value) {
27133    super(value);
27134  }
27135  applyPeer(node, reset) {
27136    if (reset) {
27137      getUINativeModule().list.resetOnScrollVisibleContentChange(node);
27138    } else {
27139      getUINativeModule().list.setOnScrollVisibleContentChange(node, this.value);
27140    }
27141  }
27142}
27143ListOnScrollVisibleContentChangeModifier.identity = Symbol('listOnScrollVisibleContentChange');
27144class ListOnItemMoveModifier extends ModifierWithKey {
27145  constructor(value) {
27146    super(value);
27147  }
27148  applyPeer(node, reset) {
27149    if (reset) {
27150      getUINativeModule().list.resetOnItemMove(node);
27151    } else {
27152      getUINativeModule().list.setOnItemMove(node, this.value);
27153    }
27154  }
27155}
27156ListOnItemMoveModifier.identity = Symbol('listOnItemMove');
27157class ListOnItemDragStartModifier extends ModifierWithKey {
27158  constructor(value) {
27159    super(value);
27160  }
27161  applyPeer(node, reset) {
27162    if (reset) {
27163      getUINativeModule().list.resetOnItemDragStart(node);
27164    } else {
27165      getUINativeModule().list.setOnItemDragStart(node, this.value);
27166    }
27167  }
27168}
27169ListOnItemDragStartModifier.identity = Symbol('listOnItemDragStart');
27170class ListOnItemDragEnterModifier extends ModifierWithKey {
27171  constructor(value) {
27172    super(value);
27173  }
27174  applyPeer(node, reset) {
27175    if (reset) {
27176      getUINativeModule().list.resetOnItemDragEnter(node);
27177    } else {
27178      getUINativeModule().list.setOnItemDragEnter(node, this.value);
27179    }
27180  }
27181}
27182ListOnItemDragEnterModifier.identity = Symbol('listOnItemDragEnter');
27183class ListOnItemDragMoveModifier extends ModifierWithKey {
27184  constructor(value) {
27185    super(value);
27186  }
27187  applyPeer(node, reset) {
27188    if (reset) {
27189      getUINativeModule().list.resetOnItemDragMove(node);
27190    } else {
27191      getUINativeModule().list.setOnItemDragMove(node, this.value);
27192    }
27193  }
27194}
27195ListOnItemDragMoveModifier.identity = Symbol('listOnItemDragMove');
27196class ListOnItemDragLeaveModifier extends ModifierWithKey {
27197  constructor(value) {
27198    super(value);
27199  }
27200  applyPeer(node, reset) {
27201    if (reset) {
27202      getUINativeModule().list.resetOnItemDragLeave(node);
27203    } else {
27204      getUINativeModule().list.setOnItemDragLeave(node, this.value);
27205    }
27206  }
27207}
27208ListOnItemDragLeaveModifier.identity = Symbol('listOnItemDragLeave');
27209class ListOnItemDropModifier extends ModifierWithKey {
27210  constructor(value) {
27211    super(value);
27212  }
27213  applyPeer(node, reset) {
27214    if (reset) {
27215      getUINativeModule().list.resetOnItemDrop(node);
27216    } else {
27217      getUINativeModule().list.setOnItemDrop(node, this.value);
27218    }
27219  }
27220}
27221ListOnItemDropModifier.identity = Symbol('listOnItemDrop');
27222class ListOnScrollFrameBeginModifier extends ModifierWithKey {
27223  constructor(value) {
27224    super(value);
27225  }
27226  applyPeer(node, reset) {
27227    if (reset) {
27228      getUINativeModule().list.resetOnScrollFrameBegin(node);
27229    } else {
27230      getUINativeModule().list.setOnScrollFrameBegin(node, this.value);
27231    }
27232  }
27233}
27234ListOnScrollFrameBeginModifier.identity = Symbol('listOnScrollFrameBegin');
27235class ListOnWillScrollModifier extends ModifierWithKey {
27236  constructor(value) {
27237    super(value);
27238  }
27239  applyPeer(node, reset) {
27240    if (reset) {
27241      getUINativeModule().list.resetOnWillScroll(node);
27242    } else {
27243      getUINativeModule().list.setOnWillScroll(node, this.value);
27244    }
27245  }
27246}
27247ListOnWillScrollModifier.identity = Symbol('listOnWillScroll');
27248class ListOnDidScrollModifier extends ModifierWithKey {
27249  constructor(value) {
27250    super(value);
27251  }
27252  applyPeer(node, reset) {
27253    if (reset) {
27254      getUINativeModule().list.resetOnDidScroll(node);
27255    } else {
27256      getUINativeModule().list.setOnDidScroll(node, this.value);
27257    }
27258  }
27259}
27260ListOnDidScrollModifier.identity = Symbol('listOnDidScroll');
27261class ListOnReachStartModifier extends ModifierWithKey {
27262  constructor(value) {
27263    super(value);
27264  }
27265  applyPeer(node, reset) {
27266    if (reset) {
27267      getUINativeModule().list.resetOnReachStart(node);
27268    } else {
27269      getUINativeModule().list.setOnReachStart(node, this.value);
27270    }
27271  }
27272}
27273ListOnReachStartModifier.identity = Symbol('listOnReachStart');
27274class ListOnReachEndModifier extends ModifierWithKey {
27275  constructor(value) {
27276    super(value);
27277  }
27278  applyPeer(node, reset) {
27279    if (reset) {
27280      getUINativeModule().list.resetOnReachEnd(node);
27281    } else {
27282      getUINativeModule().list.setOnReachEnd(node, this.value);
27283    }
27284  }
27285}
27286ListOnReachEndModifier.identity = Symbol('listOnReachEnd');
27287class ListOnScrollStartModifier extends ModifierWithKey {
27288  constructor(value) {
27289    super(value);
27290  }
27291  applyPeer(node, reset) {
27292    if (reset) {
27293      getUINativeModule().list.resetOnScrollStart(node);
27294    } else {
27295      getUINativeModule().list.setOnScrollStart(node, this.value);
27296    }
27297  }
27298}
27299ListOnScrollStartModifier.identity = Symbol('listOnScrollStart');
27300class ListOnScrollStopModifier extends ModifierWithKey {
27301  constructor(value) {
27302    super(value);
27303  }
27304  applyPeer(node, reset) {
27305    if (reset) {
27306      getUINativeModule().list.resetOnScrollStop(node);
27307    } else {
27308      getUINativeModule().list.setOnScrollStop(node, this.value);
27309    }
27310  }
27311}
27312ListOnScrollStopModifier.identity = Symbol('listOnScrollStop');
27313class ListFadingEdgeModifier extends ModifierWithKey {
27314  constructor(value) {
27315    super(value);
27316  }
27317  applyPeer(node, reset) {
27318    if (reset) {
27319      getUINativeModule().list.resetFadingEdge(node);
27320    }
27321    else {
27322      getUINativeModule().list.setFadingEdge(node, this.value.value, this.value.options?.fadingEdgeLength);
27323    }
27324  }
27325  checkObjectDiff() {
27326    return !((this.stageValue.value === this.value.value) &&
27327      (this.stageValue.options === this.value.options));
27328  }
27329}
27330ListFadingEdgeModifier.identity = Symbol('listFadingEdge');
27331
27332class ListChildrenMainSizeModifier extends ModifierWithKey {
27333  constructor(value) {
27334    super(value);
27335  }
27336  applyPeer(node, reset) {
27337    if (reset) {
27338      getUINativeModule().list.resetListChildrenMainSize(node);
27339    }
27340    else {
27341      getUINativeModule().list.setListChildrenMainSize(node, this.value);
27342    }
27343  }
27344  checkObjectDiff() {
27345    return true;
27346  }
27347}
27348ListChildrenMainSizeModifier.identity = Symbol('listChildrenMainSize');
27349
27350class ListSpaceModifier extends ModifierWithKey {
27351  constructor(value) {
27352    super(value);
27353  }
27354  applyPeer(node, reset) {
27355    if (reset) {
27356      getUINativeModule().list.resetSpace(node);
27357    }
27358    else {
27359      getUINativeModule().list.setSpace(node, this.value);
27360    }
27361  }
27362}
27363ListSpaceModifier.identity = Symbol('listSpace');
27364
27365class ListInitialIndexModifier extends ModifierWithKey {
27366  constructor(value) {
27367    super(value);
27368  }
27369  applyPeer(node, reset) {
27370    if (reset) {
27371      getUINativeModule().list.resetInitialIndex(node);
27372    }
27373    else {
27374      getUINativeModule().list.setInitialIndex(node, this.value);
27375    }
27376  }
27377}
27378ListInitialIndexModifier.identity = Symbol('listInitialIndex');
27379
27380class ListInitialScrollerModifier extends ModifierWithKey {
27381  constructor(value) {
27382    super(value);
27383  }
27384  applyPeer(node, reset) {
27385    if (reset) {
27386      getUINativeModule().list.resetInitialScroller(node);
27387    }
27388    else {
27389      getUINativeModule().list.setInitialScroller(node, this.value);
27390    }
27391  }
27392}
27393ListInitialScrollerModifier.identity = Symbol('listInitialScroller');
27394
27395class ArkListComponent extends ArkScrollable {
27396  constructor(nativePtr, classType) {
27397    super(nativePtr, classType);
27398  }
27399
27400  initialize(value) {
27401    if (value[0] !== undefined) {
27402      if (value[0].initialIndex !== undefined) {
27403        modifierWithKey(this._modifiersWithKeys, ListInitialIndexModifier.identity, ListInitialIndexModifier, value[0].initialIndex);
27404      }
27405      if (value[0].space !== undefined) {
27406        modifierWithKey(this._modifiersWithKeys, ListSpaceModifier.identity, ListSpaceModifier, value[0].space);
27407      }
27408      if (value[0].scroller !== undefined) {
27409        modifierWithKey(this._modifiersWithKeys, ListInitialScrollerModifier.identity, ListInitialScrollerModifier, value[0].scroller);
27410      }
27411    }
27412    return this;
27413  }
27414  allowChildTypes() {
27415    return ["ListItem", "ListItemGroup"];
27416  }
27417  lanes(value, gutter) {
27418    let opt = new ArkLanesOpt();
27419    opt.gutter = gutter;
27420    if (isUndefined(value)) {
27421      opt.lanesNum = undefined;
27422    }
27423    else if (isNumber(value)) {
27424      opt.lanesNum = value;
27425    }
27426    else {
27427      const lc = value;
27428      opt.minLength = lc.minLength;
27429      opt.maxLength = lc.maxLength;
27430    }
27431    modifierWithKey(this._modifiersWithKeys, ListLanesModifier.identity, ListLanesModifier, opt);
27432    return this;
27433  }
27434  alignListItem(value) {
27435    modifierWithKey(this._modifiersWithKeys, ListAlignListItemModifier.identity, ListAlignListItemModifier, value);
27436    return this;
27437  }
27438  listDirection(value) {
27439    modifierWithKey(this._modifiersWithKeys, ListListDirectionModifier.identity, ListListDirectionModifier, value);
27440    return this;
27441  }
27442  scrollBar(value) {
27443    modifierWithKey(this._modifiersWithKeys, ListScrollBarModifier.identity, ListScrollBarModifier, value);
27444    return this;
27445  }
27446  scrollBarWidth(value) {
27447    modifierWithKey(this._modifiersWithKeys, ListScrollBarWidthModifier.identity, ListScrollBarWidthModifier, value);
27448    return this;
27449  }
27450  scrollBarColor(value) {
27451    modifierWithKey(this._modifiersWithKeys, ListScrollBarColorModifier.identity, ListScrollBarColorModifier, value);
27452    return this;
27453  }
27454  flingSpeedLimit(value) {
27455    modifierWithKey(this._modifiersWithKeys, ListFlingSpeedLimitModifier.identity, ListFlingSpeedLimitModifier, value);
27456    return this;
27457  }
27458  edgeEffect(value, options) {
27459    let effect = new ArkListEdgeEffect();
27460    effect.value = value;
27461    effect.options = options;
27462    modifierWithKey(this._modifiersWithKeys, ListEdgeEffectModifier.identity, ListEdgeEffectModifier, effect);
27463    return this;
27464  }
27465  contentStartOffset(value) {
27466    modifierWithKey(this._modifiersWithKeys, ContentStartOffsetModifier.identity, ContentStartOffsetModifier, value);
27467    return this;
27468  }
27469  contentEndOffset(value) {
27470    modifierWithKey(this._modifiersWithKeys, ContentEndOffsetModifier.identity, ContentEndOffsetModifier, value);
27471    return this;
27472  }
27473  divider(value) {
27474    modifierWithKey(this._modifiersWithKeys, ListDividerModifier.identity, ListDividerModifier, value);
27475    return this;
27476  }
27477  editMode(value) {
27478    modifierWithKey(this._modifiersWithKeys, ListEditModeModifier.identity, ListEditModeModifier, value);
27479    return this;
27480  }
27481  multiSelectable(value) {
27482    modifierWithKey(this._modifiersWithKeys, ListMultiSelectableModifier.identity, ListMultiSelectableModifier, value);
27483    return this;
27484  }
27485  cachedCount(count, show) {
27486    let opt = new ArkScrollableCacheOptions(count, show ? show : false);
27487    modifierWithKey(this._modifiersWithKeys, ListCachedCountModifier.identity, ListCachedCountModifier, opt);
27488    return this;
27489  }
27490  chainAnimation(value) {
27491    modifierWithKey(this._modifiersWithKeys, ListChainAnimationModifier.identity, ListChainAnimationModifier, value);
27492    return this;
27493  }
27494  chainAnimationOptions(value) {
27495    modifierWithKey(this._modifiersWithKeys, ChainAnimationOptionsModifier.identity, ChainAnimationOptionsModifier, value);
27496    return this;
27497  }
27498  sticky(value) {
27499    modifierWithKey(this._modifiersWithKeys, ListStickyModifier.identity, ListStickyModifier, value);
27500    return this;
27501  }
27502  scrollSnapAlign(value) {
27503    modifierWithKey(this._modifiersWithKeys, ListScrollSnapAlignModifier.identity, ListScrollSnapAlignModifier, value);
27504    return this;
27505  }
27506  nestedScroll(value) {
27507    modifierWithKey(this._modifiersWithKeys, ListNestedScrollModifier.identity, ListNestedScrollModifier, value);
27508    return this;
27509  }
27510  enableScrollInteraction(value) {
27511    modifierWithKey(this._modifiersWithKeys, ListEnableScrollInteractionModifier.identity, ListEnableScrollInteractionModifier, value);
27512    return this;
27513  }
27514  friction(value) {
27515    modifierWithKey(this._modifiersWithKeys, ListFrictionModifier.identity, ListFrictionModifier, value);
27516    return this;
27517  }
27518  maintainVisibleContentPosition(value) {
27519    modifierWithKey(this._modifiersWithKeys, ListMaintainVisibleContentPositionModifier.identity,
27520      ListMaintainVisibleContentPositionModifier, value);
27521    return this;
27522  }
27523  clip(value) {
27524    modifierWithKey(this._modifiersWithKeys, ListClipModifier.identity, ListClipModifier, value);
27525    return this;
27526  }
27527  onScroll(event) {
27528    throw new Error('Method not implemented.');
27529  }
27530  onScrollIndex(event) {
27531    modifierWithKey(this._modifiersWithKeys, ListOnScrollIndexModifier.identity, ListOnScrollIndexModifier, event);
27532    return this;
27533  }
27534  onScrollVisibleContentChange(callback) {
27535    modifierWithKey(this._modifiersWithKeys, ListOnScrollVisibleContentChangeModifier.identity, ListOnScrollVisibleContentChangeModifier, callback);
27536    return this;
27537  }
27538  onItemDelete(event) {
27539    throw new Error('Method not implemented.');
27540  }
27541  onItemMove(event) {
27542    modifierWithKey(this._modifiersWithKeys, ListOnItemMoveModifier.identity, ListOnItemMoveModifier, event);
27543    return this;
27544  }
27545  onItemDragStart(event) {
27546    modifierWithKey(this._modifiersWithKeys, ListOnItemDragStartModifier.identity, ListOnItemDragStartModifier, event);
27547    return this;
27548  }
27549  onItemDragEnter(event) {
27550    modifierWithKey(this._modifiersWithKeys, ListOnItemDragEnterModifier.identity, ListOnItemDragEnterModifier, event);
27551    return this;
27552  }
27553  onItemDragMove(event) {
27554    modifierWithKey(this._modifiersWithKeys, ListOnItemDragMoveModifier.identity, ListOnItemDragMoveModifier, event);
27555    return this;
27556  }
27557  onItemDragLeave(event) {
27558    modifierWithKey(this._modifiersWithKeys, ListOnItemDragLeaveModifier.identity, ListOnItemDragLeaveModifier, event);
27559    return this;
27560  }
27561  onItemDrop(event) {
27562    modifierWithKey(this._modifiersWithKeys, ListOnItemDropModifier.identity, ListOnItemDropModifier, event);
27563    return this;
27564  }
27565  onScrollFrameBegin(callback) {
27566    modifierWithKey(this._modifiersWithKeys, ListOnScrollFrameBeginModifier.identity, ListOnScrollFrameBeginModifier, callback);
27567    return this;
27568  }
27569  onWillScroll(callback) {
27570    modifierWithKey(this._modifiersWithKeys, ListOnWillScrollModifier.identity, ListOnWillScrollModifier, callback);
27571    return this;
27572  }
27573  onDidScroll(callback) {
27574    modifierWithKey(this._modifiersWithKeys, ListOnDidScrollModifier.identity, ListOnDidScrollModifier, callback);
27575    return this;
27576  }
27577  onReachStart(event) {
27578    modifierWithKey(this._modifiersWithKeys, ListOnReachStartModifier.identity, ListOnReachStartModifier, event);
27579    return this;
27580  }
27581  onReachEnd(event) {
27582    modifierWithKey(this._modifiersWithKeys, ListOnReachEndModifier.identity, ListOnReachEndModifier, event);
27583    return this;
27584  }
27585  onScrollStart(event) {
27586    modifierWithKey(this._modifiersWithKeys, ListOnScrollStartModifier.identity, ListOnScrollStartModifier, event);
27587    return this;
27588  }
27589  onScrollStop(event) {
27590    modifierWithKey(this._modifiersWithKeys, ListOnScrollStopModifier.identity, ListOnScrollStopModifier, event);
27591    return this;
27592  }
27593  fadingEdge(value, options) {
27594    let fadingEdge = new ArkFadingEdge();
27595    fadingEdge.value = value;
27596    fadingEdge.options = options;
27597    modifierWithKey(this._modifiersWithKeys, ListFadingEdgeModifier.identity, ListFadingEdgeModifier, fadingEdge);
27598    return this;
27599  }
27600  childrenMainSize(value) {
27601    modifierWithKey(this._modifiersWithKeys, ListChildrenMainSizeModifier.identity, ListChildrenMainSizeModifier, value);
27602    return this;
27603  }
27604}
27605// @ts-ignore
27606if (globalThis.List !== undefined) {
27607  globalThis.List.attributeModifier = function (modifier) {
27608    attributeModifierFunc.call(this, modifier, (nativePtr) => {
27609      return new ArkListComponent(nativePtr);
27610    }, (nativePtr, classType, modifierJS) => {
27611      return new modifierJS.ListModifier(nativePtr, classType);
27612    });
27613  };
27614}
27615
27616/// <reference path='./import.ts' />
27617class ListItemSelectedModifier extends ModifierWithKey {
27618  applyPeer(node, reset) {
27619    if (reset) {
27620      getUINativeModule().listItem.resetListItemSelected(node);
27621    }
27622    else {
27623      getUINativeModule().listItem.setListItemSelected(node, this.value);
27624    }
27625  }
27626}
27627ListItemSelectedModifier.identity = Symbol('listItemSelected');
27628class ListItemSelectableModifier extends ModifierWithKey {
27629  applyPeer(node, reset) {
27630    if (reset) {
27631      getUINativeModule().listItem.resetSelectable(node);
27632    }
27633    else {
27634      getUINativeModule().listItem.setSelectable(node, this.value);
27635    }
27636  }
27637}
27638ListItemSelectableModifier.identity = Symbol('listItemSelectable');
27639class ListItemSwipeActionModifier extends ModifierWithKey {
27640  constructor(value) {
27641    super(value);
27642  }
27643  applyPeer(node, reset) {
27644    if (reset) {
27645      getUINativeModule().listItem.resetSwipeAction(node);
27646    } else {
27647      getUINativeModule().listItem.setSwipeAction(node, this.value);
27648    }
27649  }
27650  checkObjectDiff() {
27651    return true;
27652  }
27653}
27654ListItemSwipeActionModifier.identity = Symbol('listItemSwipeAction');
27655class ArkListItemComponent extends ArkComponent {
27656  constructor(nativePtr, classType) {
27657    super(nativePtr, classType);
27658  }
27659  initialize(value) {
27660    return this;
27661  }
27662  sticky(value) {
27663    throw new Error('Method not implemented.');
27664  }
27665  editable(value) {
27666    throw new Error('Method not implemented.');
27667  }
27668  selectable(value) {
27669    modifierWithKey(this._modifiersWithKeys, ListItemSelectableModifier.identity, ListItemSelectableModifier, value);
27670    return this;
27671  }
27672  selected(value) {
27673    modifierWithKey(this._modifiersWithKeys, ListItemSelectedModifier.identity, ListItemSelectedModifier, value);
27674    return this;
27675  }
27676  swipeAction(value) {
27677    modifierWithKey(this._modifiersWithKeys, ListItemSwipeActionModifier.identity, ListItemSwipeActionModifier, value);
27678    return this;
27679  }
27680  onSelect(event) {
27681    throw new Error('Method not implemented.');
27682  }
27683}
27684// @ts-ignore
27685if (globalThis.ListItem !== undefined) {
27686  globalThis.ListItem.attributeModifier = function (modifier) {
27687    attributeModifierFunc.call(this, modifier, (nativePtr) => {
27688      return new ArkListItemComponent(nativePtr);
27689    }, (nativePtr, classType, modifierJS) => {
27690      return new modifierJS.ListItemModifier(nativePtr, classType);
27691    });
27692  };
27693}
27694
27695/// <reference path='./import.ts' />
27696class ListItemGroupInitializeModifier extends ModifierWithKey {
27697  constructor(value) {
27698    super(value);
27699  }
27700  applyPeer(node, reset) {
27701    if (reset) {
27702      getUINativeModule().listItemGroup.resetListItemGroupInitialize(node);
27703    } else {
27704      getUINativeModule().listItemGroup.setListItemGroupInitialize(node, this.value?.space, this.value?.style);
27705    }
27706  }
27707}
27708ListItemGroupInitializeModifier.identity = Symbol('listItemGroupinitialize');
27709class ListItemGroupDividerModifier extends ModifierWithKey {
27710  constructor(value) {
27711    super(value);
27712  }
27713  applyPeer(node, reset) {
27714    let _a, _b, _c, _d;
27715    if (reset) {
27716      getUINativeModule().listItemGroup.resetDivider(node);
27717    }
27718    else {
27719      getUINativeModule().listItemGroup.setDivider(node, (_a = this.value) === null ||
27720      _a === void 0 ? void 0 : _a.strokeWidth, (_b = this.value) === null ||
27721      _b === void 0 ? void 0 : _b.color, (_c = this.value) === null ||
27722      _c === void 0 ? void 0 : _c.startMargin, (_d = this.value) === null ||
27723      _d === void 0 ? void 0 : _d.endMargin);
27724    }
27725  }
27726  checkObjectDiff() {
27727    let _a, _b, _c, _d, _e, _f, _g, _h;
27728    return !(((_a = this.stageValue) === null || _a === void 0 ? void 0 : _a.strokeWidth) === ((_b = this.value) === null || _b === void 0 ? void 0 : _b.strokeWidth) &&
27729      ((_c = this.stageValue) === null || _c === void 0 ? void 0 : _c.color) === ((_d = this.value) === null || _d === void 0 ? void 0 : _d.color) &&
27730      ((_e = this.stageValue) === null || _e === void 0 ? void 0 : _e.startMargin) === ((_f = this.value) === null || _f === void 0 ? void 0 : _f.startMargin) &&
27731      ((_g = this.stageValue) === null || _g === void 0 ? void 0 : _g.endMargin) === ((_h = this.value) === null || _h === void 0 ? void 0 : _h.endMargin));
27732  }
27733}
27734ListItemGroupDividerModifier.identity = Symbol('listItemGroupDivider');
27735class ListItemGroupChildrenMainSizeModifier extends ModifierWithKey {
27736  constructor(value) {
27737    super(value);
27738  }
27739  applyPeer(node, reset) {
27740    if (reset) {
27741      getUINativeModule().listItemGroup.resetListItemGroupChildrenMainSize(node);
27742    }
27743    else {
27744      getUINativeModule().listItemGroup.setListItemGroupChildrenMainSize(node, this.value);
27745    }
27746  }
27747  checkObjectDiff() {
27748    return true;
27749  }
27750}
27751ListItemGroupChildrenMainSizeModifier.identity = Symbol('listItemGroupChildrenMainSize');
27752class ArkListItemGroupComponent extends ArkComponent {
27753  constructor(nativePtr, classType) {
27754    super(nativePtr, classType);
27755  }
27756  divider(value) {
27757    modifierWithKey(this._modifiersWithKeys, ListItemGroupDividerModifier.identity, ListItemGroupDividerModifier, value);
27758    return this;
27759  }
27760  childrenMainSize(value) {
27761    modifierWithKey(this._modifiersWithKeys, ListItemGroupChildrenMainSizeModifier.identity, ListItemGroupChildrenMainSizeModifier, value);
27762    return this;
27763  }
27764  initialize(value) {
27765    if (value[0] !== undefined) {
27766      modifierWithKey(this._modifiersWithKeys, ListItemGroupInitializeModifier.identity,
27767        ListItemGroupInitializeModifier, value[0]);
27768    } else {
27769      modifierWithKey(this._modifiersWithKeys, ListItemGroupInitializeModifier.identity,
27770        ListItemGroupInitializeModifier, undefined);
27771    }
27772    return this;
27773  }
27774  allowChildTypes() {
27775    return ["ListItem"];
27776  }
27777}
27778// @ts-ignore
27779if (globalThis.ListItemGroup !== undefined) {
27780  globalThis.ListItemGroup.attributeModifier = function (modifier) {
27781    attributeModifierFunc.call(this, modifier, (nativePtr) => {
27782      return new ArkListItemGroupComponent(nativePtr);
27783    }, (nativePtr, classType, modifierJS) => {
27784      return new modifierJS.ListItemGroupModifier(nativePtr, classType);
27785    });
27786  };
27787}
27788
27789class ArkRelativeContainerGuideLine {
27790  constructor() {
27791    this.ids = undefined;
27792    this.directions = undefined;
27793    this.positions = undefined;
27794  }
27795
27796  isEqual(another) {
27797    return (
27798      this.ids === another.ids &&
27799      this.directions === another.directions &&
27800      this.positions === another.positions
27801    );
27802  }
27803}
27804
27805class ArkRelativeContainerBarrier {
27806  constructor() {
27807    this.ids = undefined;
27808    this.directions = undefined;
27809    this.referencedIds = undefined;
27810  }
27811
27812  isEqual(another) {
27813    return (
27814      this.ids === another.ids &&
27815      this.directions === another.directions &&
27816      this.referencedIds === another.positions
27817    );
27818  }
27819}
27820
27821class RelativeContainerGuideLineModifier extends ModifierWithKey {
27822  constructor(value) {
27823    super(value);
27824  }
27825  applyPeer(node, reset) {
27826    if (reset) {
27827      getUINativeModule().relativeContainer.resetGuideLine(node);
27828    } else {
27829      getUINativeModule().relativeContainer.setGuideLine(node,
27830        this.value.ids, this.value.directions, this.value.positions);
27831    }
27832  }
27833  checkObjectDiff() {
27834    return !isBaseOrResourceEqual(this.stageValue.ids, this.value.ids) ||
27835      !isBaseOrResourceEqual(this.stageValue.directions, this.value.directions) ||
27836      !isBaseOrResourceEqual(this.stageValue.positions, this.value.positions);
27837  }
27838}
27839RelativeContainerGuideLineModifier.identity = Symbol('relativeContainerGuideLine');
27840class RelativeContainerBarrierModifier extends ModifierWithKey {
27841  constructor(value) {
27842    super(value);
27843  }
27844  applyPeer(node, reset) {
27845    if (reset) {
27846      getUINativeModule().relativeContainer.resetBarrier(node);
27847    } else {
27848      getUINativeModule().relativeContainer.setBarrier(node,
27849        this.value.ids, this.value.directions, this.value.referencedIds);
27850    }
27851  }
27852  checkObjectDiff() {
27853    return !isBaseOrResourceEqual(this.stageValue.ids, this.value.ids) ||
27854      !isBaseOrResourceEqual(this.stageValue.directions, this.value.directions) ||
27855      !isBaseOrResourceEqual(this.stageValue.referencedIds, this.value.referencedIds);
27856  }
27857}
27858RelativeContainerBarrierModifier.identity = Symbol('relativeContainerBarrier');
27859/// <reference path='./import.ts' />
27860class ArkRelativeContainerComponent extends ArkComponent {
27861  constructor(nativePtr, classType) {
27862    super(nativePtr, classType);
27863  }
27864  initialize(value) {
27865    return this;
27866  }
27867  guideLine(value) {
27868    let guideLineInfo = new ArkRelativeContainerGuideLine();
27869    guideLineInfo.ids = value.map(item => { return item.id; });
27870    guideLineInfo.directions = value.map(item => { return item.direction; });
27871    guideLineInfo.positions = new Array();
27872    for (let i = 0; i < value.length; i++) {
27873      guideLineInfo.positions.push(value[i].position.start);
27874      guideLineInfo.positions.push(value[i].position.end);
27875    }
27876    modifierWithKey(this._modifiersWithKeys, RelativeContainerGuideLineModifier.identity, RelativeContainerGuideLineModifier, guideLineInfo);
27877    return this;
27878  }
27879  barrier(value) {
27880    let barrierInfo = new ArkRelativeContainerBarrier();
27881    barrierInfo.ids = value.map(item => { return item.id; });
27882    barrierInfo.directions = value.map(item => { return item.direction; });
27883    barrierInfo.referencedIds = value.map(item => { return item.referencedId; });
27884    modifierWithKey(this._modifiersWithKeys, RelativeContainerBarrierModifier.identity, RelativeContainerBarrierModifier, barrierInfo);
27885    return this;
27886  }
27887}
27888// @ts-ignore
27889if (globalThis.RelativeContainer !== undefined) {
27890  globalThis.RelativeContainer.attributeModifier = function (modifier) {
27891    attributeModifierFunc.call(this, modifier, (nativePtr) => {
27892      return new ArkRelativeContainerComponent(nativePtr);
27893    }, (nativePtr, classType, modifierJS) => {
27894      return new modifierJS.RelativeContainerModifier(nativePtr, classType);
27895    });
27896  };
27897}
27898
27899/// <reference path='./import.ts' />
27900class ArkSwiperComponent extends ArkComponent {
27901  constructor(nativePtr, classType) {
27902    super(nativePtr, classType);
27903  }
27904  initialize(value) {
27905    if (value[0] !== undefined) {
27906      modifierWithKey(this._modifiersWithKeys, SwiperInitializeModifier.identity, SwiperInitializeModifier, value[0]);
27907    }
27908    return this;
27909  }
27910  index(value) {
27911    modifierWithKey(this._modifiersWithKeys, SwiperIndexModifier.identity, SwiperIndexModifier, value);
27912    return this;
27913  }
27914  autoPlay(value) {
27915    modifierWithKey(this._modifiersWithKeys, SwiperAutoPlayModifier.identity, SwiperAutoPlayModifier, value);
27916    return this;
27917  }
27918  interval(value) {
27919    modifierWithKey(this._modifiersWithKeys, SwiperIntervalModifier.identity, SwiperIntervalModifier, value);
27920    return this;
27921  }
27922  indicator(value) {
27923    modifierWithKey(this._modifiersWithKeys, SwiperIndicatorModifier.identity, SwiperIndicatorModifier, value);
27924    return this;
27925  }
27926  displayArrow(value, isHoverShow) {
27927    let arkDisplayArrow = new ArkDisplayArrow();
27928    arkDisplayArrow.value = value;
27929    arkDisplayArrow.isHoverShow = isHoverShow;
27930    modifierWithKey(this._modifiersWithKeys, SwiperDisplayArrowModifier.identity, SwiperDisplayArrowModifier, arkDisplayArrow);
27931    return this;
27932  }
27933  loop(value) {
27934    modifierWithKey(this._modifiersWithKeys, SwiperLoopModifier.identity, SwiperLoopModifier, value);
27935    return this;
27936  }
27937  duration(value) {
27938    modifierWithKey(this._modifiersWithKeys, SwiperDurationModifier.identity, SwiperDurationModifier, value);
27939    return this;
27940  }
27941  vertical(value) {
27942    modifierWithKey(this._modifiersWithKeys, SwiperVerticalModifier.identity, SwiperVerticalModifier, value);
27943    return this;
27944  }
27945  itemSpace(value) {
27946    modifierWithKey(this._modifiersWithKeys, SwiperItemSpaceModifier.identity, SwiperItemSpaceModifier, value);
27947    return this;
27948  }
27949  displayMode(value) {
27950    modifierWithKey(this._modifiersWithKeys, SwiperDisplayModeModifier.identity, SwiperDisplayModeModifier, value);
27951    return this;
27952  }
27953  cachedCount(value) {
27954    modifierWithKey(this._modifiersWithKeys, SwiperCachedCountModifier.identity, SwiperCachedCountModifier, value);
27955    return this;
27956  }
27957  displayCount(value, swipeByGroup) {
27958    let arkDisplayCount = new ArkDisplayCount();
27959    arkDisplayCount.value = value;
27960    arkDisplayCount.swipeByGroup = swipeByGroup;
27961    modifierWithKey(this._modifiersWithKeys, SwiperDisplayCountModifier.identity, SwiperDisplayCountModifier, arkDisplayCount);
27962    return this;
27963  }
27964  effectMode(value) {
27965    modifierWithKey(this._modifiersWithKeys, SwiperEffectModeModifier.identity, SwiperEffectModeModifier, value);
27966    return this;
27967  }
27968  disableSwipe(value) {
27969    modifierWithKey(this._modifiersWithKeys, SwiperDisableSwipeModifier.identity, SwiperDisableSwipeModifier, value);
27970    return this;
27971  }
27972  curve(value) {
27973    modifierWithKey(this._modifiersWithKeys, SwiperCurveModifier.identity, SwiperCurveModifier, value);
27974    return this;
27975  }
27976  onChange(value) {
27977    modifierWithKey(this._modifiersWithKeys, SwiperOnChangeModifier.identity, SwiperOnChangeModifier, value);
27978    return this;
27979  }
27980  indicatorStyle(value) {
27981    throw new Error('Method not implemented.');
27982  }
27983  prevMargin(value) {
27984    modifierWithKey(this._modifiersWithKeys, SwiperPrevMarginModifier.identity, SwiperPrevMarginModifier, value);
27985    return this;
27986  }
27987  nextMargin(value) {
27988    modifierWithKey(this._modifiersWithKeys, SwiperNextMarginModifier.identity, SwiperNextMarginModifier, value);
27989    return this;
27990  }
27991  enabled(value) {
27992    modifierWithKey(this._modifiersWithKeys, SwiperEnabledModifier.identity, SwiperEnabledModifier, value);
27993    return this;
27994  }
27995  onAnimationStart(value) {
27996    modifierWithKey(this._modifiersWithKeys, SwiperOnAnimationStartModifier.identity, SwiperOnAnimationStartModifier, value);
27997    return this;
27998  }
27999  onAnimationEnd(value) {
28000    modifierWithKey(this._modifiersWithKeys, SwiperOnAnimationEndModifier.identity, SwiperOnAnimationEndModifier, value);
28001    return this;
28002  }
28003  onGestureSwipe(value) {
28004    modifierWithKey(this._modifiersWithKeys, SwiperOnGestureSwipeModifier.identity, SwiperOnGestureSwipeModifier, value);
28005    return this;
28006  }
28007  nestedScroll(value) {
28008    modifierWithKey(this._modifiersWithKeys, SwiperNestedScrollModifier.identity, SwiperNestedScrollModifier, value);
28009    return this;
28010  }
28011  indicatorInteractive(value) {
28012    modifierWithKey(this._modifiersWithKeys, SwiperIndicatorInteractiveModifier.identity, SwiperIndicatorInteractiveModifier, value);
28013    return this;
28014  }
28015  customContentTransition(value) {
28016    modifierWithKey(this._modifiersWithKeys, SwiperCustomContentTransitionModifier.identity, SwiperCustomContentTransitionModifier, value);
28017    return this;
28018  }
28019  onContentDidScroll(value) {
28020    modifierWithKey(this._modifiersWithKeys, SwiperOnContentDidScrollModifier.identity, SwiperOnContentDidScrollModifier, value);
28021    return this;
28022  }
28023}
28024class SwiperInitializeModifier extends ModifierWithKey {
28025  applyPeer(node, reset) {
28026    if (reset) {
28027      getUINativeModule().swiper.resetSwiperInitialize(node);
28028    }
28029    else {
28030      getUINativeModule().swiper.setSwiperInitialize(node, this.value);
28031    }
28032  }
28033}
28034SwiperInitializeModifier.identity = Symbol('swiperInitialize');
28035class SwiperNextMarginModifier extends ModifierWithKey {
28036  applyPeer(node, reset) {
28037    if (reset) {
28038      getUINativeModule().swiper.resetSwiperNextMargin(node);
28039    }
28040    else {
28041      getUINativeModule().swiper.setSwiperNextMargin(node, this.value);
28042    }
28043  }
28044  checkObjectDiff() {
28045    return !isBaseOrResourceEqual(this.stageValue, this.value);
28046  }
28047}
28048SwiperNextMarginModifier.identity = Symbol('swiperNextMargin');
28049class SwiperPrevMarginModifier extends ModifierWithKey {
28050  applyPeer(node, reset) {
28051    if (reset) {
28052      getUINativeModule().swiper.resetSwiperPrevMargin(node);
28053    }
28054    else {
28055      getUINativeModule().swiper.setSwiperPrevMargin(node, this.value);
28056    }
28057  }
28058  checkObjectDiff() {
28059    return !isBaseOrResourceEqual(this.stageValue, this.value);
28060  }
28061}
28062SwiperPrevMarginModifier.identity = Symbol('swiperPrevMargin');
28063class SwiperDisplayCountModifier extends ModifierWithKey {
28064  applyPeer(node, reset) {
28065    if (reset) {
28066      getUINativeModule().swiper.resetSwiperSwipeByGroup(node);
28067      getUINativeModule().swiper.resetSwiperDisplayCount(node);
28068    }
28069    else {
28070      if (!isNull(this.value) && !isUndefined(this.value)) {
28071        let swipeByGroup;
28072        if (typeof this.value.swipeByGroup === 'boolean') {
28073          swipeByGroup = this.value.swipeByGroup;
28074        }
28075
28076        getUINativeModule().swiper.setSwiperSwipeByGroup(node, swipeByGroup);
28077
28078        if (typeof this.value.value === 'object') {
28079          let minSize = this.value.value.minSize.toString();
28080          getUINativeModule().swiper.setSwiperDisplayCount(node, minSize, typeof this.value.value);
28081        } else {
28082          getUINativeModule().swiper.setSwiperDisplayCount(node, this.value.value, typeof this.value.value, swipeByGroup);
28083        }
28084      } else {
28085        getUINativeModule().swiper.resetSwiperSwipeByGroup(node);
28086        getUINativeModule().swiper.resetSwiperDisplayCount(node);
28087      }
28088    }
28089  }
28090  checkObjectDiff() {
28091    if (this.stageValue.swipeByGroup !== this.value.swipeByGroup ||
28092      typeof this.stageValue.value !== typeof this.value.value) {
28093      return true;
28094    }
28095    else if (typeof this.stageValue.value === 'object' &&
28096      typeof this.value.value === 'object') {
28097      return this.stageValue.value.minSize !== this.value.value.minSize;
28098    }
28099    else {
28100      return !isBaseOrResourceEqual(this.stageValue.value, this.value.value);
28101    }
28102  }
28103}
28104SwiperDisplayCountModifier.identity = Symbol('swiperDisplayCount');
28105class SwiperDisplayArrowModifier extends ModifierWithKey {
28106  applyPeer(node, reset) {
28107    if (reset) {
28108      getUINativeModule().swiper.resetSwiperDisplayArrow(node);
28109    }
28110    else {
28111      if (!isNull(this.value.value) && !isUndefined(this.value.value) && typeof this.value === 'object') {
28112        let displayArrowValue = 3;
28113        let showBackground;
28114        let isSidebarMiddle;
28115        let backgroundSize;
28116        let backgroundColor;
28117        let arrowSize;
28118        let arrowColor;
28119        if (typeof this.value.value === 'boolean') {
28120          if (this.value.value) {
28121            displayArrowValue = 1;
28122          }
28123          else {
28124            displayArrowValue = 0;
28125          }
28126        }
28127        else if (typeof this.value.value === 'object') {
28128          displayArrowValue = 2;
28129          showBackground = this.value.value.showBackground;
28130          isSidebarMiddle = this.value.value.isSidebarMiddle;
28131          backgroundSize = this.value.value.backgroundSize;
28132          backgroundColor = this.value.value.backgroundColor;
28133          arrowSize = this.value.value.arrowSize;
28134          arrowColor = this.value.value.arrowColor;
28135        }
28136        let isHoverShow;
28137        if (typeof this.value.isHoverShow === 'boolean') {
28138          isHoverShow = this.value.isHoverShow;
28139        }
28140        getUINativeModule().swiper.setSwiperDisplayArrow(node, displayArrowValue, showBackground,
28141          isSidebarMiddle, backgroundSize, backgroundColor, arrowSize, arrowColor, isHoverShow);
28142      }
28143      else {
28144        getUINativeModule().swiper.resetSwiperDisplayArrow(node);
28145      }
28146    }
28147  }
28148  checkObjectDiff() {
28149    if (this.stageValue.isHoverShow !== this.value.isHoverShow ||
28150      typeof this.stageValue.value !== typeof this.value.value) {
28151      return true;
28152    }
28153    if (typeof this.stageValue.value === 'boolean' &&
28154      typeof this.value.value === 'boolean' &&
28155      this.stageValue.value !== this.value.value) {
28156      return true;
28157    }
28158    else if (typeof this.stageValue.value === 'object' && typeof this.value.value === 'object') {
28159      return (!isBaseOrResourceEqual(this.stageValue.value.showBackground, this.value.value.showBackground) ||
28160        !isBaseOrResourceEqual(this.stageValue.value.isSidebarMiddle, this.value.value.isSidebarMiddle) ||
28161        !isBaseOrResourceEqual(this.stageValue.value.backgroundSize, this.value.value.backgroundSize) ||
28162        !isBaseOrResourceEqual(this.stageValue.value.backgroundColor, this.value.value.backgroundColor) ||
28163        !isBaseOrResourceEqual(this.stageValue.value.arrowSize, this.value.value.arrowSize) ||
28164        !isBaseOrResourceEqual(this.stageValue.value.arrowColor, this.value.value.arrowColor));
28165    }
28166    else {
28167      return true;
28168    }
28169  }
28170}
28171SwiperDisplayArrowModifier.identity = Symbol('swiperDisplayArrow');
28172class SwiperIndicatorModifier extends ModifierWithKey {
28173  applyPeer(node, reset) {
28174    if (reset) {
28175      getUINativeModule().swiper.resetSwiperIndicator(node);
28176    }
28177    else {
28178      let left;
28179      let top;
28180      let right;
28181      let bottom;
28182      let itemWidth;
28183      let itemHeight;
28184      let selectedItemWidth;
28185      let selectedItemHeight;
28186      let mask;
28187      let color;
28188      let selectedColor;
28189      let fontColor;
28190      let selectedFontColor;
28191      let digitFontSize;
28192      let digitFontWeight;
28193      let selectedDigitFontSize;
28194      let selectedDigitFontWeight;
28195      let maxDisplayCount;
28196      if (typeof this.value === 'boolean') {
28197        getUINativeModule().swiper.setSwiperIndicator(node, 'boolean', this.value);
28198      }
28199      else if (typeof this.value === 'object' && this.value.type === 'DotIndicator') {
28200        left = this.value.leftValue;
28201        top = this.value.topValue;
28202        right = this.value.rightValue;
28203        bottom = this.value.bottomValue;
28204        itemWidth = this.value.itemWidthValue;
28205        itemHeight = this.value.itemHeightValue;
28206        selectedItemWidth = this.value.selectedItemWidthValue;
28207        selectedItemHeight = this.value.selectedItemHeightValue;
28208        mask = this.value.maskValue;
28209        color = this.value.colorValue;
28210        selectedColor = this.value.selectedColorValue;
28211        maxDisplayCount = this.value.maxDisplayCountValue;
28212        getUINativeModule().swiper.setSwiperIndicator(node, 'ArkDotIndicator', itemWidth, itemHeight, selectedItemWidth,
28213        selectedItemHeight, mask, color, selectedColor, left, top, right, bottom, maxDisplayCount);
28214      }
28215      else if (typeof this.value === 'object' && this.value.type === 'DigitIndicator') {
28216        left = this.value.leftValue;
28217        top = this.value.topValue;
28218        right = this.value.rightValue;
28219        bottom = this.value.bottomValue;
28220        fontColor = this.value.fontColorValue;
28221        selectedFontColor = this.value.selectedFontColorValue;
28222        let arkDigitFont = new ArkDigitFont();
28223        if (typeof this.value.digitFontValue === 'object') {
28224          digitFontSize = this.value.digitFontValue.size;
28225          digitFontWeight = arkDigitFont.parseFontWeight(this.value.digitFontValue.weight);
28226        }
28227        if (typeof this.value.selectedDigitFontValue === 'object') {
28228          selectedDigitFontSize = this.value.selectedDigitFontValue.size;
28229          selectedDigitFontWeight = arkDigitFont.parseFontWeight(this.value.selectedDigitFontValue.weight);
28230        }
28231        getUINativeModule().swiper.setSwiperIndicator(node, 'ArkDigitIndicator', fontColor, selectedFontColor, digitFontSize,
28232          digitFontWeight, selectedDigitFontSize, selectedDigitFontWeight, left, top, right, bottom);
28233      }
28234      else {
28235        getUINativeModule().swiper.setSwiperIndicator(node, 'boolean', true);
28236      }
28237    }
28238  }
28239  checkObjectDiff() {
28240    if (typeof this.stageValue !== typeof this.value) {
28241      return true;
28242    }
28243    if (typeof this.stageValue === 'boolean' && typeof this.value === 'boolean') {
28244      return this.stageValue !== this.value;
28245    }
28246    if (this.stageValue instanceof ArkDotIndicator && this.value instanceof ArkDotIndicator) {
28247      return (!isBaseOrResourceEqual(this.stageValue.itemWidthValue, this.value.itemWidthValue) ||
28248        !isBaseOrResourceEqual(this.stageValue.itemHeightValue, this.value.itemHeightValue) ||
28249        !isBaseOrResourceEqual(this.stageValue.selectedItemWidthValue, this.value.selectedItemWidthValue) ||
28250        !isBaseOrResourceEqual(this.stageValue.selectedItemHeightValue, this.value.selectedItemHeightValue) ||
28251        !isBaseOrResourceEqual(this.stageValue.maskValue, this.value.maskValue) ||
28252        !isBaseOrResourceEqual(this.stageValue.colorValue, this.value.colorValue) ||
28253        !isBaseOrResourceEqual(this.stageValue.selectedColorValue, this.value.selectedColorValue) ||
28254        !isBaseOrResourceEqual(this.stageValue.maxDisplayCountValue, this.value.maxDisplayCountValue));
28255    }
28256    else if (this.stageValue instanceof ArkDigitIndicator && this.value instanceof ArkDigitIndicator) {
28257      return (!isBaseOrResourceEqual(this.stageValue.fontColorValue, this.value.fontColorValue) ||
28258        !isBaseOrResourceEqual(this.stageValue.selectedFontColorValue, this.value.selectedFontColorValue) ||
28259        !isBaseOrResourceEqual(this.stageValue.digitFontValue.size, this.value.digitFontValue.size) ||
28260        !isBaseOrResourceEqual(this.stageValue.digitFontValue.weight, this.value.digitFontValue.weight) ||
28261        !isBaseOrResourceEqual(this.stageValue.selectedDigitFontValue.size, this.value.selectedDigitFontValue.size) ||
28262        !isBaseOrResourceEqual(this.stageValue.selectedDigitFontValue.weight, this.value.selectedDigitFontValue.weight));
28263    }
28264    else {
28265      return true;
28266    }
28267  }
28268}
28269SwiperIndicatorModifier.identity = Symbol('swiperIndicator');
28270class SwiperCurveModifier extends ModifierWithKey {
28271  applyPeer(node, reset) {
28272    if (reset) {
28273      getUINativeModule().swiper.resetSwiperCurve(node);
28274    }
28275    else {
28276      const curveMap = {
28277        [0]: 'linear',
28278        [1]: 'ease',
28279        [2]: 'ease-in',
28280        [3]: 'ease-out',
28281        [4]: 'ease-in-out',
28282        [5]: 'fast-out-slow-in',
28283        [6]: 'linear-out-slow-in',
28284        [7]: 'fast-out-linear-in',
28285        [8]: 'extreme-deceleration',
28286        [9]: 'sharp',
28287        [10]: 'rhythm',
28288        [11]: 'smooth',
28289        [12]: 'friction'
28290      };
28291      if (typeof this.value === 'number') {
28292        if (this.value in curveMap) {
28293          this.value = curveMap[this.value];
28294        }
28295        else {
28296          this.value = this.value.toString();
28297        }
28298      }
28299      getUINativeModule().swiper.setSwiperCurve(node, this.value);
28300    }
28301  }
28302  checkObjectDiff() {
28303    return !isBaseOrResourceEqual(this.stageValue, this.value);
28304  }
28305}
28306SwiperCurveModifier.identity = Symbol('swiperCurve');
28307class SwiperDisableSwipeModifier extends ModifierWithKey {
28308  applyPeer(node, reset) {
28309    if (reset) {
28310      getUINativeModule().swiper.resetSwiperDisableSwipe(node);
28311    }
28312    else {
28313      getUINativeModule().swiper.setSwiperDisableSwipe(node, this.value);
28314    }
28315  }
28316  checkObjectDiff() {
28317    return !isBaseOrResourceEqual(this.stageValue, this.value);
28318  }
28319}
28320SwiperDisableSwipeModifier.identity = Symbol('swiperDisableSwipe');
28321class SwiperOnChangeModifier extends ModifierWithKey {
28322  constructor(value) {
28323    super(value);
28324  }
28325  applyPeer(node, reset) {
28326    if (reset) {
28327      getUINativeModule().swiper.resetSwiperOnChange(node);
28328    } else {
28329      getUINativeModule().swiper.setSwiperOnChange(node, this.value);
28330    }
28331  }
28332  checkObjectDiff() {
28333    return !isBaseOrResourceEqual(this.stageValue, this.value);
28334  }
28335}
28336SwiperOnChangeModifier.identity = Symbol('swiperOnChange');
28337class SwiperEffectModeModifier extends ModifierWithKey {
28338  applyPeer(node, reset) {
28339    if (reset) {
28340      getUINativeModule().swiper.resetSwiperEffectMode(node);
28341    }
28342    else {
28343      getUINativeModule().swiper.setSwiperEffectMode(node, this.value);
28344    }
28345  }
28346  checkObjectDiff() {
28347    return !isBaseOrResourceEqual(this.stageValue, this.value);
28348  }
28349}
28350SwiperEffectModeModifier.identity = Symbol('swiperEffectMode');
28351class SwiperCachedCountModifier extends ModifierWithKey {
28352  applyPeer(node, reset) {
28353    if (reset) {
28354      getUINativeModule().swiper.resetSwiperCachedCount(node);
28355    }
28356    else {
28357      getUINativeModule().swiper.setSwiperCachedCount(node, this.value);
28358    }
28359  }
28360  checkObjectDiff() {
28361    return !isBaseOrResourceEqual(this.stageValue, this.value);
28362  }
28363}
28364SwiperCachedCountModifier.identity = Symbol('swiperCachedCount');
28365class SwiperDisplayModeModifier extends ModifierWithKey {
28366  applyPeer(node, reset) {
28367    if (reset) {
28368      getUINativeModule().swiper.resetSwiperDisplayMode(node);
28369    }
28370    else {
28371      getUINativeModule().swiper.setSwiperDisplayMode(node, this.value);
28372    }
28373  }
28374  checkObjectDiff() {
28375    return !isBaseOrResourceEqual(this.stageValue, this.value);
28376  }
28377}
28378SwiperDisplayModeModifier.identity = Symbol('swiperDisplayMode');
28379class SwiperItemSpaceModifier extends ModifierWithKey {
28380  applyPeer(node, reset) {
28381    if (reset) {
28382      getUINativeModule().swiper.resetSwiperItemSpace(node);
28383    }
28384    else {
28385      getUINativeModule().swiper.setSwiperItemSpace(node, this.value);
28386    }
28387  }
28388  checkObjectDiff() {
28389    return !isBaseOrResourceEqual(this.stageValue, this.value);
28390  }
28391}
28392SwiperItemSpaceModifier.identity = Symbol('swiperItemSpace');
28393class SwiperVerticalModifier extends ModifierWithKey {
28394  applyPeer(node, reset) {
28395    if (reset) {
28396      getUINativeModule().swiper.resetSwiperVertical(node);
28397    }
28398    else {
28399      getUINativeModule().swiper.setSwiperVertical(node, this.value);
28400    }
28401  }
28402  checkObjectDiff() {
28403    return !isBaseOrResourceEqual(this.stageValue, this.value);
28404  }
28405}
28406SwiperVerticalModifier.identity = Symbol('swiperVertical');
28407class SwiperLoopModifier extends ModifierWithKey {
28408  applyPeer(node, reset) {
28409    if (reset) {
28410      getUINativeModule().swiper.resetSwiperLoop(node);
28411    }
28412    else {
28413      getUINativeModule().swiper.setSwiperLoop(node, this.value);
28414    }
28415  }
28416  checkObjectDiff() {
28417    return !isBaseOrResourceEqual(this.stageValue, this.value);
28418  }
28419}
28420SwiperLoopModifier.identity = Symbol('swiperLoop');
28421class SwiperIntervalModifier extends ModifierWithKey {
28422  applyPeer(node, reset) {
28423    if (reset) {
28424      getUINativeModule().swiper.resetSwiperInterval(node);
28425    }
28426    else {
28427      getUINativeModule().swiper.setSwiperInterval(node, this.value);
28428    }
28429  }
28430  checkObjectDiff() {
28431    return !isBaseOrResourceEqual(this.stageValue, this.value);
28432  }
28433}
28434SwiperIntervalModifier.identity = Symbol('swiperInterval');
28435class SwiperAutoPlayModifier extends ModifierWithKey {
28436  applyPeer(node, reset) {
28437    if (reset) {
28438      getUINativeModule().swiper.resetSwiperAutoPlay(node);
28439    }
28440    else {
28441      getUINativeModule().swiper.setSwiperAutoPlay(node, this.value);
28442    }
28443  }
28444  checkObjectDiff() {
28445    return !isBaseOrResourceEqual(this.stageValue, this.value);
28446  }
28447}
28448SwiperAutoPlayModifier.identity = Symbol('swiperAutoPlay');
28449class SwiperIndexModifier extends ModifierWithKey {
28450  applyPeer(node, reset) {
28451    if (reset) {
28452      getUINativeModule().swiper.resetSwiperIndex(node);
28453    }
28454    else {
28455      getUINativeModule().swiper.setSwiperIndex(node, this.value);
28456    }
28457  }
28458  checkObjectDiff() {
28459    return !isBaseOrResourceEqual(this.stageValue, this.value);
28460  }
28461}
28462SwiperIndexModifier.identity = Symbol('swiperIndex');
28463class SwiperDurationModifier extends ModifierWithKey {
28464  applyPeer(node, reset) {
28465    if (reset) {
28466      getUINativeModule().swiper.resetSwiperDuration(node);
28467    }
28468    else {
28469      getUINativeModule().swiper.setSwiperDuration(node, this.value);
28470    }
28471  }
28472  checkObjectDiff() {
28473    return !isBaseOrResourceEqual(this.stageValue, this.value);
28474  }
28475}
28476SwiperDurationModifier.identity = Symbol('swiperDuration');
28477class SwiperEnabledModifier extends ModifierWithKey {
28478  constructor(value) {
28479    super(value);
28480  }
28481  applyPeer(node, reset) {
28482    if (reset) {
28483      getUINativeModule().swiper.resetSwiperEnabled(node);
28484    }
28485    else {
28486      getUINativeModule().swiper.setSwiperEnabled(node, this.value);
28487    }
28488  }
28489}
28490SwiperEnabledModifier.identity = Symbol('swiperenabled');
28491class SwiperNestedScrollModifier extends ModifierWithKey {
28492  constructor(value) {
28493    super(value);
28494  }
28495  applyPeer(node, reset) {
28496    if (reset) {
28497      getUINativeModule().swiper.resetNestedScroll(node);
28498    } else {
28499      getUINativeModule().swiper.setNestedScroll(node, this.value);
28500    }
28501  }
28502  checkObjectDiff() {
28503    return !isBaseOrResourceEqual(this.stageValue, this.value);
28504  }
28505}
28506SwiperNestedScrollModifier.identity = Symbol('nestedScroll');
28507class SwiperOnAnimationStartModifier extends ModifierWithKey {
28508  constructor(value) {
28509    super(value);
28510  }
28511  applyPeer(node, reset) {
28512    if (reset) {
28513      getUINativeModule().swiper.resetSwiperOnAnimationStart(node);
28514    } else {
28515      getUINativeModule().swiper.setSwiperOnAnimationStart(node, this.value);
28516    }
28517  }
28518  checkObjectDiff() {
28519    return !isBaseOrResourceEqual(this.stageValue, this.value);
28520  }
28521}
28522SwiperOnAnimationStartModifier.identity = Symbol('swiperOnAnimationStart');
28523class SwiperOnAnimationEndModifier extends ModifierWithKey {
28524  constructor(value) {
28525    super(value);
28526  }
28527  applyPeer(node, reset) {
28528    if (reset) {
28529      getUINativeModule().swiper.resetSwiperOnAnimationEnd(node);
28530    } else {
28531      getUINativeModule().swiper.setSwiperOnAnimationEnd(node, this.value);
28532    }
28533  }
28534  checkObjectDiff() {
28535    return !isBaseOrResourceEqual(this.stageValue, this.value);
28536  }
28537}
28538SwiperOnAnimationEndModifier.identity = Symbol('swiperOnAnimationEnd');
28539class SwiperOnGestureSwipeModifier extends ModifierWithKey {
28540  constructor(value) {
28541    super(value);
28542  }
28543  applyPeer(node, reset) {
28544    if (reset) {
28545      getUINativeModule().swiper.resetSwiperOnGestureSwipe(node);
28546    } else {
28547      getUINativeModule().swiper.setSwiperOnGestureSwipe(node, this.value);
28548    }
28549  }
28550  checkObjectDiff() {
28551    return !isBaseOrResourceEqual(this.stageValue, this.value);
28552  }
28553}
28554SwiperOnGestureSwipeModifier.identity = Symbol('swiperOnGestureSwipe');
28555class SwiperIndicatorInteractiveModifier extends ModifierWithKey {
28556  constructor(value) {
28557    super(value);
28558  }
28559  applyPeer(node, reset) {
28560    if (reset) {
28561      getUINativeModule().swiper.resetIndicatorInteractive(node);
28562    } else {
28563      getUINativeModule().swiper.setIndicatorInteractive(node, this.value);
28564    }
28565  }
28566}
28567SwiperIndicatorInteractiveModifier.identity = Symbol('indicatorInteractive');
28568class SwiperCustomContentTransitionModifier extends ModifierWithKey {
28569  constructor(value) {
28570    super(value);
28571  }
28572  applyPeer(node, reset) {
28573    if (reset) {
28574      getUINativeModule().swiper.resetSwiperCustomContentTransition(node);
28575    } else {
28576      getUINativeModule().swiper.setSwiperCustomContentTransition(node, this.value);
28577    }
28578  }
28579  checkObjectDiff() {
28580    return !isBaseOrResourceEqual(this.stageValue, this.value);
28581  }
28582}
28583SwiperCustomContentTransitionModifier.identity = Symbol('swiperCustomContentTransition');
28584class SwiperOnContentDidScrollModifier extends ModifierWithKey {
28585  constructor(value) {
28586    super(value);
28587  }
28588  applyPeer(node, reset) {
28589    if (reset) {
28590      getUINativeModule().swiper.resetSwiperOnContentDidScroll(node);
28591    } else {
28592      getUINativeModule().swiper.setSwiperOnContentDidScroll(node, this.value);
28593    }
28594  }
28595  checkObjectDiff() {
28596    return !isBaseOrResourceEqual(this.stageValue, this.value);
28597  }
28598}
28599SwiperOnContentDidScrollModifier.identity = Symbol('swiperOnContentDidScroll');
28600// @ts-ignore
28601if (globalThis.Swiper !== undefined) {
28602  globalThis.Swiper.attributeModifier = function (modifier) {
28603    attributeModifierFunc.call(this, modifier, (nativePtr) => {
28604      return new ArkSwiperComponent(nativePtr);
28605    }, (nativePtr, classType, modifierJS) => {
28606      return new modifierJS.SwiperModifier(nativePtr, classType);
28607    });
28608  };
28609}
28610
28611/// <reference path='./import.ts' />
28612class ArkTabsComponent extends ArkComponent {
28613  constructor(nativePtr, classType) {
28614    super(nativePtr, classType);
28615  }
28616  onAnimationStart(handler) {
28617    throw new Error('Method not implemented.');
28618  }
28619  onAnimationEnd(handler) {
28620    throw new Error('Method not implemented.');
28621  }
28622  onGestureSwipe(handler) {
28623    throw new Error('Method not implemented.');
28624  }
28625  vertical(value) {
28626    modifierWithKey(this._modifiersWithKeys, TabsVerticalModifier.identity, TabsVerticalModifier, value);
28627    return this;
28628  }
28629  barPosition(value) {
28630    modifierWithKey(this._modifiersWithKeys, BarPositionModifier.identity, BarPositionModifier, value);
28631    return this;
28632  }
28633  scrollable(value) {
28634    modifierWithKey(this._modifiersWithKeys, ScrollableModifier.identity, ScrollableModifier, value);
28635    return this;
28636  }
28637  barMode(value, options) {
28638    let arkBarMode = new ArkBarMode();
28639    arkBarMode.barMode = value;
28640    arkBarMode.options = options;
28641    modifierWithKey(this._modifiersWithKeys, TabBarModeModifier.identity, TabBarModeModifier, arkBarMode);
28642    return this;
28643  }
28644  barWidth(value) {
28645    modifierWithKey(this._modifiersWithKeys, BarWidthModifier.identity, BarWidthModifier, value);
28646    return this;
28647  }
28648  barHeight(value) {
28649    if (isUndefined(value) || isNull(value)) {
28650      modifierWithKey(this._modifiersWithKeys, BarHeightModifier.identity, BarHeightModifier, undefined);
28651    }
28652    else {
28653      modifierWithKey(this._modifiersWithKeys, BarHeightModifier.identity, BarHeightModifier, value);
28654    }
28655    return this;
28656  }
28657  animationDuration(value) {
28658    modifierWithKey(this._modifiersWithKeys, AnimationDurationModifier.identity, AnimationDurationModifier, value);
28659    return this;
28660  }
28661  animationMode(value) {
28662    modifierWithKey(this._modifiersWithKeys, AnimationModeModifier.identity, AnimationModeModifier, value);
28663    return this;
28664  }
28665  onChange(event) {
28666    throw new Error('Method not implemented.');
28667  }
28668  onTabBarClick(event) {
28669    throw new Error('Method not implemented.');
28670  }
28671  fadingEdge(value) {
28672    modifierWithKey(this._modifiersWithKeys, FadingEdgeModifier.identity, FadingEdgeModifier, value);
28673    return this;
28674  }
28675  divider(value) {
28676    modifierWithKey(this._modifiersWithKeys, TabsDividerModifier.identity, TabsDividerModifier, value);
28677    return this;
28678  }
28679  barOverlap(value) {
28680    modifierWithKey(this._modifiersWithKeys, BarOverlapModifier.identity, BarOverlapModifier, value);
28681    return this;
28682  }
28683  barBackgroundColor(value) {
28684    modifierWithKey(this._modifiersWithKeys, BarBackgroundColorModifier.identity, BarBackgroundColorModifier, value);
28685    return this;
28686  }
28687  barBackgroundBlurStyle(value) {
28688    modifierWithKey(this._modifiersWithKeys, BarBackgroundBlurStyleModifier.identity, BarBackgroundBlurStyleModifier, value);
28689    return this;
28690  }
28691  barGridAlign(value) {
28692    modifierWithKey(this._modifiersWithKeys, BarGridAlignModifier.identity, BarGridAlignModifier, value);
28693    return this;
28694  }
28695  clip(value) {
28696    modifierWithKey(this._modifiersWithKeys, TabClipModifier.identity, TabClipModifier, value);
28697    return this;
28698  }
28699  width(value) {
28700    modifierWithKey(this._modifiersWithKeys, TabWidthModifier.identity, TabWidthModifier, value);
28701    return this;
28702  }
28703  height(value) {
28704    modifierWithKey(this._modifiersWithKeys, TabHeightModifier.identity, TabHeightModifier, value);
28705    return this;
28706  }
28707}
28708class BarGridAlignModifier extends ModifierWithKey {
28709  constructor(value) {
28710    super(value);
28711  }
28712  applyPeer(node, reset) {
28713    if (reset) {
28714      getUINativeModule().tabs.resetBarGridAlign(node);
28715    }
28716    else {
28717      getUINativeModule().tabs.setBarGridAlign(node, this.value.sm, this.value.md, this.value.lg, this.value.gutter, this.value.margin);
28718    }
28719  }
28720  checkObjectDiff() {
28721    return !(this.stageValue.sm === this.value.sm &&
28722      this.stageValue.md === this.value.md &&
28723      this.stageValue.lg === this.value.lg &&
28724      this.stageValue.gutter === this.value.gutter &&
28725      this.stageValue.margin === this.value.margin);
28726  }
28727}
28728BarGridAlignModifier.identity = Symbol('barGridAlign');
28729class TabsDividerModifier extends ModifierWithKey {
28730  constructor(value) {
28731    super(value);
28732  }
28733  applyPeer(node, reset) {
28734    if (reset) {
28735      getUINativeModule().tabs.resetDivider(node);
28736    }
28737    else {
28738      getUINativeModule().tabs.setDivider(node, this.value.strokeWidth, this.value.color, this.value.startMargin, this.value.endMargin);
28739    }
28740  }
28741  checkObjectDiff() {
28742    return !(this.stageValue.strokeWidth === this.value.strokeWidth &&
28743      this.stageValue.color === this.value.color &&
28744      this.stageValue.startMargin === this.value.startMargin &&
28745      this.stageValue.endMargin === this.value.endMargin);
28746  }
28747}
28748TabsDividerModifier.identity = Symbol('tabsDivider');
28749class BarWidthModifier extends ModifierWithKey {
28750  constructor(value) {
28751    super(value);
28752  }
28753  applyPeer(node, reset) {
28754    if (reset) {
28755      getUINativeModule().tabs.resetTabBarWidth(node);
28756    }
28757    else {
28758      getUINativeModule().tabs.setTabBarWidth(node, this.value);
28759    }
28760  }
28761  checkObjectDiff() {
28762    return !isBaseOrResourceEqual(this.stageValue, this.value);
28763  }
28764}
28765BarWidthModifier.identity = Symbol('barWidth');
28766class BarAdaptiveHeightModifier extends ModifierWithKey {
28767  constructor(value) {
28768    super(value);
28769  }
28770  applyPeer(node, reset) {
28771    if (reset) {
28772      getUINativeModule().tabs.resetBarAdaptiveHeight(node);
28773    }
28774    else {
28775      getUINativeModule().tabs.setBarAdaptiveHeight(node, this.value);
28776    }
28777  }
28778}
28779BarAdaptiveHeightModifier.identity = Symbol('barAdaptiveHeight');
28780class BarHeightModifier extends ModifierWithKey {
28781  constructor(value) {
28782    super(value);
28783  }
28784  applyPeer(node, reset) {
28785    if (reset) {
28786      getUINativeModule().tabs.resetTabBarHeight(node);
28787    }
28788    else {
28789      getUINativeModule().tabs.setTabBarHeight(node, this.value);
28790    }
28791  }
28792  checkObjectDiff() {
28793    return !isBaseOrResourceEqual(this.stageValue, this.value);
28794  }
28795}
28796BarHeightModifier.identity = Symbol('barHeight');
28797class BarOverlapModifier extends ModifierWithKey {
28798  constructor(value) {
28799    super(value);
28800  }
28801  applyPeer(node, reset) {
28802    if (reset) {
28803      getUINativeModule().tabs.resetBarOverlap(node);
28804    }
28805    else {
28806      getUINativeModule().tabs.setBarOverlap(node, this.value);
28807    }
28808  }
28809}
28810BarOverlapModifier.identity = Symbol('barOverlap');
28811class TabsVerticalModifier extends ModifierWithKey {
28812  constructor(value) {
28813    super(value);
28814  }
28815  applyPeer(node, reset) {
28816    if (reset) {
28817      getUINativeModule().tabs.resetIsVertical(node);
28818    }
28819    else {
28820      getUINativeModule().tabs.setIsVertical(node, this.value);
28821    }
28822  }
28823}
28824TabsVerticalModifier.identity = Symbol('vertical');
28825class AnimationDurationModifier extends ModifierWithKey {
28826  constructor(value) {
28827    super(value);
28828  }
28829  applyPeer(node, reset) {
28830    if (reset) {
28831      getUINativeModule().tabs.resetAnimationDuration(node);
28832    }
28833    else {
28834      getUINativeModule().tabs.setAnimationDuration(node, this.value);
28835    }
28836  }
28837}
28838AnimationDurationModifier.identity = Symbol('animationduration');
28839class AnimationModeModifier extends ModifierWithKey {
28840  constructor(value) {
28841    super(value);
28842  }
28843  applyPeer(node, reset) {
28844    if (reset) {
28845      getUINativeModule().tabs.resetAnimateMode(node);
28846    }
28847    else {
28848      getUINativeModule().tabs.setAnimateMode(node, this.value);
28849    }
28850  }
28851  checkObjectDiff() {
28852    return !isBaseOrResourceEqual(this.stageValue, this.value);
28853  }
28854}
28855AnimationModeModifier.identity = Symbol('animationMode');
28856class ScrollableModifier extends ModifierWithKey {
28857  constructor(value) {
28858    super(value);
28859  }
28860  applyPeer(node, reset) {
28861    if (reset) {
28862      getUINativeModule().tabs.resetScrollable(node);
28863    }
28864    else {
28865      getUINativeModule().tabs.setScrollable(node, this.value);
28866    }
28867  }
28868}
28869ScrollableModifier.identity = Symbol('scrollable');
28870class TabBarModeModifier extends ModifierWithKey {
28871  constructor(value) {
28872    super(value);
28873  }
28874  applyPeer(node, reset) {
28875    let _a, _b;
28876    if (reset) {
28877      getUINativeModule().tabs.resetTabBarMode(node);
28878    }
28879    else {
28880      getUINativeModule().tabs.setTabBarMode(node, this.value.barMode,
28881        (_a = this.value.options) === null || _a === void 0 ? void 0 : _a.margin,
28882        (_b = this.value.options) === null || _b === void 0 ? void 0 : _b.nonScrollableLayoutStyle);
28883    }
28884  }
28885  checkObjectDiff() {
28886    let _a, _b, _c, _d;
28887    if (isResource(this.stageValue) && isResource(this.value)) {
28888      return !isResourceEqual(this.stageValue, this.value);
28889    }
28890    else if (!isResource(this.stageValue) && !isResource(this.value)) {
28891      return !(this.value.barMode === this.stageValue.barMode &&
28892        ((_a = this.value.options) === null || _a === void 0 ? void 0 : _a.margin) === ((_b = this.stageValue.options) === null ||
28893        _b === void 0 ? void 0 : _b.margin) &&
28894        ((_c = this.value.options) === null || _c === void 0 ? void 0 : _c.nonScrollableLayoutStyle) === ((_d = this.stageValue.options) === null ||
28895        _d === void 0 ? void 0 : _d.nonScrollableLayoutStyle));
28896    }
28897    else {
28898      return true;
28899    }
28900  }
28901}
28902TabBarModeModifier.identity = Symbol('tabsbarMode');
28903class BarPositionModifier extends ModifierWithKey {
28904  constructor(value) {
28905    super(value);
28906  }
28907  applyPeer(node, reset) {
28908    if (reset) {
28909      getUINativeModule().tabs.resetTabBarPosition(node);
28910    }
28911    else {
28912      getUINativeModule().tabs.setTabBarPosition(node, this.value);
28913    }
28914  }
28915}
28916BarPositionModifier.identity = Symbol('barPosition');
28917class TabsHideTitleBarModifier extends ModifierWithKey {
28918  constructor(value) {
28919    super(value);
28920  }
28921  applyPeer(node, reset) {
28922    if (reset) {
28923      getUINativeModule().tabs.resetHideTitleBar(node);
28924    }
28925    else {
28926      getUINativeModule().tabs.setHideTitleBar(node, this.value);
28927    }
28928  }
28929}
28930TabsHideTitleBarModifier.identity = Symbol('hideTitleBar');
28931class BarBackgroundColorModifier extends ModifierWithKey {
28932  constructor(value) {
28933    super(value);
28934  }
28935  applyPeer(node, reset) {
28936    if (reset) {
28937      getUINativeModule().tabs.resetBarBackgroundColor(node);
28938    }
28939    else {
28940      getUINativeModule().tabs.setBarBackgroundColor(node, this.value);
28941    }
28942  }
28943  checkObjectDiff() {
28944    return !isBaseOrResourceEqual(this.stageValue, this.value);
28945  }
28946}
28947BarBackgroundColorModifier.identity = Symbol('barbackgroundcolor');
28948class BarBackgroundBlurStyleModifier extends ModifierWithKey {
28949  constructor(value) {
28950    super(value);
28951  }
28952  applyPeer(node, reset) {
28953    if (reset) {
28954      getUINativeModule().tabs.resetBarBackgroundBlurStyle(node);
28955    }
28956    else {
28957      getUINativeModule().tabs.setBarBackgroundBlurStyle(node, this.value);
28958    }
28959  }
28960  checkObjectDiff() {
28961    return !isBaseOrResourceEqual(this.stageValue, this.value);
28962  }
28963}
28964BarBackgroundBlurStyleModifier.identity = Symbol('barbackgroundblurstyle');
28965class FadingEdgeModifier extends ModifierWithKey {
28966  constructor(value) {
28967    super(value);
28968  }
28969  applyPeer(node, reset) {
28970    if (reset) {
28971      getUINativeModule().tabs.resetFadingEdge(node);
28972    }
28973    else {
28974      getUINativeModule().tabs.setFadingEdge(node, this.value);
28975    }
28976  }
28977}
28978FadingEdgeModifier.identity = Symbol('fadingedge');
28979class TabClipModifier extends ModifierWithKey {
28980  constructor(value) {
28981    super(value);
28982  }
28983  applyPeer(node, reset) {
28984    if (reset) {
28985      getUINativeModule().tabs.resetTabClip(node);
28986    }
28987    else {
28988      getUINativeModule().tabs.setTabClip(node, this.value);
28989    }
28990  }
28991  checkObjectDiff() {
28992    return true;
28993  }
28994}
28995TabClipModifier.identity = Symbol('tabclip');
28996class TabEdgeEffectModifier extends ModifierWithKey {
28997  applyPeer(node, reset) {
28998    if (reset) {
28999      getUINativeModule().tabs.resetTabEdgeEffect(node);
29000    } else {
29001      getUINativeModule().tabs.setTabEdgeEffect(node, this.value);
29002    }
29003  }
29004  checkObjectDiff() {
29005    return !isBaseOrResourceEqual(this.stageValue, this.value);
29006  }
29007}
29008TabClipModifier.identity = Symbol('tabedgeEffect');
29009class TabWidthModifier extends ModifierWithKey {
29010    constructor(value) {
29011        super(value);
29012    }
29013    applyPeer(node, reset) {
29014        if (reset) {
29015            getUINativeModule().tabs.resetTabWidth(node);
29016        }
29017        else {
29018            getUINativeModule().tabs.setTabWidth(node, this.value);
29019        }
29020    }
29021}
29022TabWidthModifier.identity = Symbol('tabWidth');
29023class TabHeightModifier extends ModifierWithKey {
29024    constructor(value) {
29025        super(value);
29026    }
29027    applyPeer(node, reset) {
29028        if (reset) {
29029            getUINativeModule().tabs.resetTabHeight(node);
29030        }
29031        else {
29032            getUINativeModule().tabs.setTabHeight(node, this.value);
29033        }
29034    }
29035}
29036TabHeightModifier.identity = Symbol('tabHeight');
29037// @ts-ignore
29038if (globalThis.Tabs !== undefined) {
29039  globalThis.Tabs.attributeModifier = function (modifier) {
29040    attributeModifierFunc.call(this, modifier, (nativePtr) => {
29041      return new ArkTabsComponent(nativePtr);
29042    }, (nativePtr, classType, modifierJS) => {
29043      return new modifierJS.TabsModifier(nativePtr, classType);
29044    });
29045  };
29046}
29047
29048/// <reference path='./import.ts' />
29049class ArkTabContentComponent extends ArkComponent {
29050  constructor(nativePtr, classType) {
29051    super(nativePtr, classType);
29052  }
29053  tabBar(value) {
29054    modifierWithKey(this._modifiersWithKeys, TabContentTabBarModifier.identity, TabContentTabBarModifier, value);
29055    return this;
29056  }
29057  size(value) {
29058    modifierWithKey(this._modifiersWithKeys, TabContentSizeModifier.identity, TabContentSizeModifier, value);
29059    return this;
29060  }
29061  width(value) {
29062    modifierWithKey(this._modifiersWithKeys, TabContentWidthModifier.identity, TabContentWidthModifier, value);
29063    return this;
29064  }
29065  height(value) {
29066    modifierWithKey(this._modifiersWithKeys, TabContentHeightModifier.identity, TabContentHeightModifier, value);
29067    return this;
29068  }
29069}
29070class TabContentTabBarModifier extends ModifierWithKey {
29071  constructor(value) {
29072    super(value);
29073  }
29074  applyPeer(node, reset) {
29075    if (reset) {
29076      getUINativeModule().tabContent.resetTabBar(node);
29077    } else {
29078      getUINativeModule().tabContent.setTabBar(this.value);
29079    }
29080  }
29081  checkObjectDiff() {
29082    return !isBaseOrResourceEqual(this.stageValue, this.value);
29083  }
29084}
29085TabContentTabBarModifier.identity = Symbol('tabContentTabBar');
29086class TabContentWidthModifier extends ModifierWithKey {
29087  constructor(value) {
29088    super(value);
29089  }
29090  applyPeer(node, reset) {
29091    if (reset) {
29092      getUINativeModule().tabContent.resetTabContentWidth(node);
29093    }
29094    else {
29095      getUINativeModule().tabContent.setTabContentWidth(node, this.value);
29096    }
29097  }
29098  checkObjectDiff() {
29099    return !isBaseOrResourceEqual(this.stageValue, this.value);
29100  }
29101}
29102TabContentWidthModifier.identity = Symbol('tabcontentwidth');
29103class TabContentHeightModifier extends ModifierWithKey {
29104  constructor(value) {
29105    super(value);
29106  }
29107  applyPeer(node, reset) {
29108    if (reset) {
29109      getUINativeModule().tabContent.resetTabContentHeight(node);
29110    }
29111    else {
29112      getUINativeModule().tabContent.setTabContentHeight(node, this.value);
29113    }
29114  }
29115  checkObjectDiff() {
29116    return !isBaseOrResourceEqual(this.stageValue, this.value);
29117  }
29118}
29119TabContentHeightModifier.identity = Symbol('tabcontentheight');
29120class TabContentSizeModifier extends ModifierWithKey {
29121  constructor(value) {
29122    super(value);
29123  }
29124  applyPeer(node, reset) {
29125    if (reset) {
29126      getUINativeModule().tabContent.resetTabContentSize(node);
29127    }
29128    else {
29129      getUINativeModule().tabContent.setTabContentSize(node, this.value.width, this.value.height);
29130    }
29131  }
29132  checkObjectDiff() {
29133    return !isBaseOrResourceEqual(this.stageValue.width, this.value.width) ||
29134      !isBaseOrResourceEqual(this.stageValue.height, this.value.height);
29135  }
29136}
29137TabContentSizeModifier.identity = Symbol('tabcontentsize');
29138// @ts-ignore
29139if (globalThis.TabContent !== undefined) {
29140  globalThis.TabContent.attributeModifier = function (modifier) {
29141    attributeModifierFunc.call(this, modifier, (nativePtr) => {
29142      return new ArkTabContentComponent(nativePtr);
29143    }, (nativePtr, classType, modifierJS) => {
29144      return new modifierJS.TabContentModifier(nativePtr, classType);
29145    });
29146  };
29147}
29148
29149/// <reference path='./import.ts' />
29150class ArkUIExtensionComponentComponent extends ArkComponent {
29151  constructor(nativePtr, classType) {
29152    super(nativePtr, classType);
29153  }
29154  onRemoteReady(callback) {
29155    throw new Error('Method not implemented.');
29156  }
29157  onReceive(callback) {
29158    throw new Error('Method not implemented.');
29159  }
29160  onResult(callback) {
29161    throw new Error('Method not implemented.');
29162  }
29163  onRelease(callback) {
29164    throw new Error('Method not implemented.');
29165  }
29166  onError(callback) {
29167    throw new Error('Method not implemented.');
29168  }
29169}
29170// @ts-ignore
29171if (globalThis.UIExtensionComponent !== undefined) {
29172  globalThis.UIExtensionComponent.attributeModifier = function (modifier) {
29173    attributeModifierFunc.call(this, modifier, (nativePtr) => {
29174      return new ArkUIExtensionComponentComponent(nativePtr);
29175    }, (nativePtr, classType, modifierJS) => {
29176      return new modifierJS.CommonModifier(nativePtr, classType);
29177    });
29178  };
29179}
29180
29181/// <reference path='./import.ts' />
29182class ItemConstraintSizeModifier extends ModifierWithKey {
29183  constructor(value) {
29184    super(value);
29185  }
29186  applyPeer(node, reset) {
29187    if (reset) {
29188      getUINativeModule().waterFlow.resetItemConstraintSize(node);
29189    }
29190    else {
29191      getUINativeModule().waterFlow.setItemConstraintSize(node, this.value.minWidth, this.value.maxWidth, this.value.minHeight, this.value.maxHeight);
29192    }
29193  }
29194  checkObjectDiff() {
29195    return !isBaseOrResourceEqual(this.stageValue.minWidth, this.value.minWidth) ||
29196      !isBaseOrResourceEqual(this.stageValue.maxWidth, this.value.maxWidth) ||
29197      !isBaseOrResourceEqual(this.stageValue.minHeight, this.value.minHeight) ||
29198      !isBaseOrResourceEqual(this.stageValue.maxHeight, this.value.maxHeight);
29199  }
29200}
29201ItemConstraintSizeModifier.identity = Symbol('itemConstraintSize');
29202class ColumnsTemplateModifier extends ModifierWithKey {
29203  constructor(value) {
29204    super(value);
29205  }
29206  applyPeer(node, reset) {
29207    if (reset) {
29208      getUINativeModule().waterFlow.resetColumnsTemplate(node);
29209    }
29210    else {
29211      getUINativeModule().waterFlow.setColumnsTemplate(node, this.value);
29212    }
29213  }
29214}
29215ColumnsTemplateModifier.identity = Symbol('columnsTemplate');
29216class RowsTemplateModifier extends ModifierWithKey {
29217  constructor(value) {
29218    super(value);
29219  }
29220  applyPeer(node, reset) {
29221    if (reset) {
29222      getUINativeModule().waterFlow.resetRowsTemplate(node);
29223    }
29224    else {
29225      getUINativeModule().waterFlow.setRowsTemplate(node, this.value);
29226    }
29227  }
29228}
29229RowsTemplateModifier.identity = Symbol('rowsTemplate');
29230class EnableScrollInteractionModifier extends ModifierWithKey {
29231  constructor(value) {
29232    super(value);
29233  }
29234  applyPeer(node, reset) {
29235    if (reset) {
29236      getUINativeModule().waterFlow.resetEnableScrollInteraction(node);
29237    }
29238    else {
29239      getUINativeModule().waterFlow.setEnableScrollInteraction(node, this.value);
29240    }
29241  }
29242}
29243EnableScrollInteractionModifier.identity = Symbol('enableScrollInteraction');
29244class RowsGapModifier extends ModifierWithKey {
29245  constructor(value) {
29246    super(value);
29247  }
29248  applyPeer(node, reset) {
29249    if (reset) {
29250      getUINativeModule().waterFlow.resetRowsGap(node);
29251    }
29252    else {
29253      getUINativeModule().waterFlow.setRowsGap(node, this.value);
29254    }
29255  }
29256  checkObjectDiff() {
29257    return !isBaseOrResourceEqual(this.stageValue, this.value);
29258  }
29259}
29260RowsGapModifier.identity = Symbol('rowsGap');
29261class WaterFlowClipModifier extends ModifierWithKey {
29262  constructor(value) {
29263    super(value);
29264  }
29265  applyPeer(node, reset) {
29266    if (reset) {
29267      getUINativeModule().common.resetClipWithEdge(node);
29268    }
29269    else {
29270      getUINativeModule().common.setClipWithEdge(node, this.value);
29271    }
29272  }
29273  checkObjectDiff() {
29274    return true;
29275  }
29276}
29277WaterFlowClipModifier.identity = Symbol('waterFlowclip');
29278class ColumnsGapModifier extends ModifierWithKey {
29279  constructor(value) {
29280    super(value);
29281  }
29282  applyPeer(node, reset) {
29283    if (reset) {
29284      getUINativeModule().waterFlow.resetColumnsGap(node);
29285    }
29286    else {
29287      getUINativeModule().waterFlow.setColumnsGap(node, this.value);
29288    }
29289  }
29290  checkObjectDiff() {
29291    return !isBaseOrResourceEqual(this.stageValue, this.value);
29292  }
29293}
29294ColumnsGapModifier.identity = Symbol('columnsGap');
29295class LayoutDirectionModifier extends ModifierWithKey {
29296  constructor(value) {
29297    super(value);
29298  }
29299  applyPeer(node, reset) {
29300    if (reset) {
29301      getUINativeModule().waterFlow.resetLayoutDirection(node);
29302    }
29303    else {
29304      getUINativeModule().waterFlow.setLayoutDirection(node, this.value);
29305    }
29306  }
29307}
29308LayoutDirectionModifier.identity = Symbol('layoutDirection');
29309class NestedScrollModifier extends ModifierWithKey {
29310  constructor(value) {
29311    super(value);
29312  }
29313  applyPeer(node, reset) {
29314    if (reset) {
29315      getUINativeModule().waterFlow.resetNestedScroll(node);
29316    }
29317    else {
29318      getUINativeModule().waterFlow.setNestedScroll(node, this.value.scrollForward, this.value.scrollBackward);
29319    }
29320  }
29321}
29322NestedScrollModifier.identity = Symbol('nestedScroll');
29323class FrictionModifier extends ModifierWithKey {
29324  constructor(value) {
29325    super(value);
29326  }
29327  applyPeer(node, reset) {
29328    if (reset) {
29329      getUINativeModule().waterFlow.resetFriction(node);
29330    }
29331    else {
29332      getUINativeModule().waterFlow.setFriction(node, this.value);
29333    }
29334  }
29335  checkObjectDiff() {
29336    return !isBaseOrResourceEqual(this.stageValue, this.value);
29337  }
29338}
29339FrictionModifier.identity = Symbol('friction');
29340
29341class WaterFlowEdgeEffectModifier extends ModifierWithKey {
29342  constructor(value) {
29343    super(value);
29344  }
29345  applyPeer(node, reset) {
29346    let _a, _b;
29347    if (reset) {
29348      getUINativeModule().waterFlow.resetEdgeEffect(node);
29349    }
29350    else {
29351      getUINativeModule().waterFlow.setEdgeEffect(node, (_a = this.value) === null ||
29352      _a === void 0 ? void 0 : _a.value, (_b = this.value.options) === null ||
29353      _b === void 0 ? void 0 : _b.alwaysEnabled);
29354    }
29355  }
29356  checkObjectDiff() {
29357    return !((this.stageValue.value === this.value.value) &&
29358      (this.stageValue.options === this.value.options));
29359  }
29360}
29361WaterFlowEdgeEffectModifier.identity = Symbol('waterFlowEdgeEffect');
29362class WaterFlowFadingEdgeModifier extends ModifierWithKey {
29363  constructor(value) {
29364    super(value);
29365  }
29366  applyPeer(node, reset) {
29367    if (reset) {
29368      getUINativeModule().waterFlow.resetFadingEdge(node);
29369    }
29370    else {
29371      getUINativeModule().waterFlow.setFadingEdge(node, this.value.value, this.value.options?.fadingEdgeLength);
29372    }
29373  }
29374  checkObjectDiff() {
29375    return !((this.stageValue.value === this.value.value) &&
29376      (this.stageValue.options === this.value.options));
29377  }
29378}
29379WaterFlowFadingEdgeModifier.identity = Symbol('waterFlowFadingEdge');
29380
29381class WaterFlowScrollBarWidthModifier extends ModifierWithKey {
29382  constructor(value) {
29383    super(value);
29384  }
29385  applyPeer(node, reset) {
29386    if (reset) {
29387      getUINativeModule().waterFlow.resetScrollBarWidth(node);
29388    }
29389    else {
29390      getUINativeModule().waterFlow.setScrollBarWidth(node, this.value);
29391    }
29392  }
29393}
29394WaterFlowScrollBarWidthModifier.identity = Symbol('waterFlowScrollBarWidth');
29395class WaterFlowScrollBarModifier extends ModifierWithKey {
29396  constructor(value) {
29397    super(value);
29398  }
29399  applyPeer(node, reset) {
29400    if (reset) {
29401      getUINativeModule().waterFlow.resetScrollBar(node);
29402    }
29403    else {
29404      getUINativeModule().waterFlow.setScrollBar(node, this.value);
29405    }
29406  }
29407}
29408WaterFlowScrollBarModifier.identity = Symbol('waterFlowScrollBar');
29409class WaterFlowScrollBarColorModifier extends ModifierWithKey {
29410  constructor(value) {
29411    super(value);
29412  }
29413  applyPeer(node, reset) {
29414    if (reset) {
29415      getUINativeModule().waterFlow.resetScrollBarColor(node);
29416    }
29417    else {
29418      getUINativeModule().waterFlow.setScrollBarColor(node, this.value);
29419    }
29420  }
29421}
29422WaterFlowScrollBarColorModifier.identity = Symbol('waterFlowScrollBarColor');
29423
29424class WaterFlowCachedCountModifier extends ModifierWithKey {
29425  constructor(value) {
29426    super(value);
29427  }
29428  applyPeer(node, reset) {
29429    if (reset) {
29430      getUINativeModule().waterFlow.resetCachedCount(node);
29431    }
29432    else {
29433      getUINativeModule().waterFlow.setCachedCount(node, this.value.count, this.value.show);
29434    }
29435  }
29436}
29437WaterFlowCachedCountModifier.identity = Symbol('waterFlowCachedCount');
29438
29439class WaterFlowFlingSpeedLimitModifier extends ModifierWithKey {
29440  constructor(value) {
29441    super(value);
29442  }
29443  applyPeer(node, reset) {
29444    if (reset) {
29445      getUINativeModule().waterFlow.resetFlingSpeedLimit(node);
29446    }
29447    else {
29448      getUINativeModule().waterFlow.setFlingSpeedLimit(node, this.value);
29449    }
29450  }
29451}
29452WaterFlowFlingSpeedLimitModifier.identity = Symbol('waterFlowFlingSpeedLimit');
29453
29454class WaterFlowInitializeModifier extends ModifierWithKey {
29455  constructor(value) {
29456    super(value);
29457  }
29458  applyPeer(node, reset) {
29459    if (reset) {
29460      getUINativeModule().waterFlow.resetWaterFlowInitialize(node);
29461    } else {
29462      getUINativeModule().waterFlow.setWaterFlowInitialize(node,
29463        this.value?.scroller, this.value?.sections, this.value?.layoutMode);
29464    }
29465  }
29466}
29467WaterFlowInitializeModifier.identity = Symbol('waterFlowInitialize');
29468
29469class ArkWaterFlowComponent extends ArkScrollable {
29470  constructor(nativePtr, classType) {
29471    super(nativePtr, classType);
29472  }
29473  columnsTemplate(value) {
29474    modifierWithKey(this._modifiersWithKeys, ColumnsTemplateModifier.identity, ColumnsTemplateModifier, value);
29475    return this;
29476  }
29477  rowsTemplate(value) {
29478    modifierWithKey(this._modifiersWithKeys, RowsTemplateModifier.identity, RowsTemplateModifier, value);
29479    return this;
29480  }
29481  itemConstraintSize(value) {
29482    if (!value) {
29483      modifierWithKey(this._modifiersWithKeys, ItemConstraintSizeModifier.identity, ItemConstraintSizeModifier, undefined);
29484      return this;
29485    }
29486    let arkValue = new ArkConstraintSizeOptions();
29487    arkValue.minWidth = value.minWidth;
29488    arkValue.maxWidth = value.maxWidth;
29489    arkValue.minHeight = value.minHeight;
29490    arkValue.maxHeight = value.maxHeight;
29491    modifierWithKey(this._modifiersWithKeys, ItemConstraintSizeModifier.identity, ItemConstraintSizeModifier, arkValue);
29492    return this;
29493  }
29494  columnsGap(value) {
29495    modifierWithKey(this._modifiersWithKeys, ColumnsGapModifier.identity, ColumnsGapModifier, value);
29496    return this;
29497  }
29498  rowsGap(value) {
29499    modifierWithKey(this._modifiersWithKeys, RowsGapModifier.identity, RowsGapModifier, value);
29500    return this;
29501  }
29502  layoutDirection(value) {
29503    modifierWithKey(this._modifiersWithKeys, LayoutDirectionModifier.identity, LayoutDirectionModifier, value);
29504    return this;
29505  }
29506  nestedScroll(value) {
29507    let options = new ArkNestedScrollOptions();
29508    if (value) {
29509      if (value.scrollForward) {
29510        options.scrollForward = value.scrollForward;
29511      }
29512      if (value.scrollBackward) {
29513        options.scrollBackward = value.scrollBackward;
29514      }
29515      modifierWithKey(this._modifiersWithKeys, NestedScrollModifier.identity, NestedScrollModifier, options);
29516    }
29517    return this;
29518  }
29519  enableScrollInteraction(value) {
29520    modifierWithKey(this._modifiersWithKeys, EnableScrollInteractionModifier.identity, EnableScrollInteractionModifier, value);
29521    return this;
29522  }
29523  friction(value) {
29524    modifierWithKey(this._modifiersWithKeys, FrictionModifier.identity, FrictionModifier, value);
29525    return this;
29526  }
29527  cachedCount(count, show) {
29528    let opt = new ArkScrollableCacheOptions(count, show ? show : false);
29529    modifierWithKey(this._modifiersWithKeys, WaterFlowCachedCountModifier.identity, WaterFlowCachedCountModifier, opt);
29530    return this;
29531  }
29532  onReachStart(event) {
29533    throw new Error('Method not implemented.');
29534  }
29535  onReachEnd(event) {
29536    throw new Error('Method not implemented.');
29537  }
29538  onScrollFrameBegin(event) {
29539    throw new Error('Method not implemented.');
29540  }
29541  clip(value) {
29542    modifierWithKey(this._modifiersWithKeys, WaterFlowClipModifier.identity, WaterFlowClipModifier, value);
29543    return this;
29544  }
29545  edgeEffect(value, options) {
29546    let effect = new ArkWaterFlowEdgeEffect();
29547    effect.value = value;
29548    effect.options = options;
29549    modifierWithKey(this._modifiersWithKeys, WaterFlowEdgeEffectModifier.identity, WaterFlowEdgeEffectModifier, effect);
29550    return this;
29551  }
29552  fadingEdge(value, options) {
29553    let fadingEdge = new ArkFadingEdge();
29554    fadingEdge.value = value;
29555    fadingEdge.options = options;
29556    modifierWithKey(this._modifiersWithKeys, WaterFlowFadingEdgeModifier.identity, WaterFlowFadingEdgeModifier, fadingEdge);
29557    return this;
29558  }
29559  scrollBarWidth(value) {
29560    modifierWithKey(this._modifiersWithKeys, WaterFlowScrollBarWidthModifier.identity, WaterFlowScrollBarWidthModifier, value);
29561    return this;
29562  }
29563  scrollBarColor(value) {
29564    modifierWithKey(this._modifiersWithKeys, WaterFlowScrollBarColorModifier.identity, WaterFlowScrollBarColorModifier, value);
29565    return this;
29566  }
29567  scrollBar(value) {
29568    modifierWithKey(this._modifiersWithKeys, WaterFlowScrollBarModifier.identity, WaterFlowScrollBarModifier, value);
29569    return this;
29570  }
29571  flingSpeedLimit(value) {
29572    modifierWithKey(this._modifiersWithKeys, WaterFlowFlingSpeedLimitModifier.identity, WaterFlowFlingSpeedLimitModifier, value);
29573    return this;
29574  }
29575  initialize(value) {
29576    if (value[0] !== undefined) {
29577      modifierWithKey(this._modifiersWithKeys, WaterFlowInitializeModifier.identity,
29578        WaterFlowInitializeModifier, value[0]);
29579    } else {
29580      modifierWithKey(this._modifiersWithKeys, WaterFlowInitializeModifier.identity,
29581        WaterFlowInitializeModifier, undefined);
29582    }
29583    return this;
29584  }
29585  allowChildTypes() {
29586    return ["FlowItem"];
29587  }
29588}
29589
29590// @ts-ignore
29591if (globalThis.WaterFlow !== undefined) {
29592  globalThis.WaterFlow.attributeModifier = function (modifier) {
29593    attributeModifierFunc.call(this, modifier, (nativePtr) => {
29594      return new ArkWaterFlowComponent(nativePtr);
29595    }, (nativePtr, classType, modifierJS) => {
29596      return new modifierJS.WaterFlowModifier(nativePtr, classType);
29597    });
29598  };
29599}
29600
29601/// <reference path='./import.ts' />
29602class ArkCommonShapeComponent extends ArkComponent {
29603  constructor(nativePtr, classType) {
29604    super(nativePtr, classType);
29605  }
29606  viewPort(value) {
29607    throw new Error('Method not implemented.');
29608  }
29609  stroke(value) {
29610    modifierWithKey(this._modifiersWithKeys, StrokeModifier.identity, StrokeModifier, value);
29611    return this;
29612  }
29613  fill(value) {
29614    modifierWithKey(this._modifiersWithKeys, FillModifier.identity, FillModifier, value);
29615    return this;
29616  }
29617  strokeDashOffset(value) {
29618    modifierWithKey(this._modifiersWithKeys, StrokeDashOffsetModifier.identity, StrokeDashOffsetModifier, value);
29619    return this;
29620  }
29621  strokeLineCap(value) {
29622    modifierWithKey(this._modifiersWithKeys, StrokeLineCapModifier.identity, StrokeLineCapModifier, value);
29623    return this;
29624  }
29625  strokeLineJoin(value) {
29626    modifierWithKey(this._modifiersWithKeys, StrokeLineJoinModifier.identity, StrokeLineJoinModifier, value);
29627    return this;
29628  }
29629  strokeMiterLimit(value) {
29630    modifierWithKey(this._modifiersWithKeys, StrokeMiterLimitModifier.identity, StrokeMiterLimitModifier, value);
29631    return this;
29632  }
29633  strokeOpacity(value) {
29634    modifierWithKey(this._modifiersWithKeys, StrokeOpacityModifier.identity, StrokeOpacityModifier, value);
29635    return this;
29636  }
29637  fillOpacity(value) {
29638    modifierWithKey(this._modifiersWithKeys, FillOpacityModifier.identity, FillOpacityModifier, value);
29639    return this;
29640  }
29641  strokeWidth(value) {
29642    modifierWithKey(this._modifiersWithKeys, StrokeWidthModifier.identity, StrokeWidthModifier, value);
29643    return this;
29644  }
29645  antiAlias(value) {
29646    modifierWithKey(this._modifiersWithKeys, AntiAliasModifier.identity, AntiAliasModifier, value);
29647    return this;
29648  }
29649  strokeDashArray(value) {
29650    modifierWithKey(this._modifiersWithKeys, StrokeDashArrayModifier.identity, StrokeDashArrayModifier, value);
29651    return this;
29652  }
29653  mesh(value, column, row) {
29654    throw new Error('Method not implemented.');
29655  }
29656  height(value) {
29657    modifierWithKey(this._modifiersWithKeys, CommonShapeHeightModifier.identity, CommonShapeHeightModifier, value);
29658    return this;
29659  }
29660  width(value) {
29661    modifierWithKey(this._modifiersWithKeys, CommonShapeWidthModifier.identity, CommonShapeWidthModifier, value);
29662    return this;
29663  }
29664  foregroundColor(value) {
29665    modifierWithKey(
29666      this._modifiersWithKeys, CommonShapeForegroundColorModifier.identity, CommonShapeForegroundColorModifier, value);
29667    return this;
29668  }
29669}
29670class StrokeDashArrayModifier extends ModifierWithKey {
29671  constructor(value) {
29672    super(value);
29673  }
29674  applyPeer(node, reset) {
29675    if (reset) {
29676      getUINativeModule().commonShape.resetStrokeDashArray(node);
29677    }
29678    else {
29679      getUINativeModule().commonShape.setStrokeDashArray(node, this.value);
29680    }
29681  }
29682  checkObjectDiff() {
29683    return !isBaseOrResourceEqual(this.stageValue, this.value);
29684  }
29685}
29686StrokeDashArrayModifier.identity = Symbol('strokeDashArray');
29687class StrokeModifier extends ModifierWithKey {
29688  constructor(value) {
29689    super(value);
29690  }
29691  applyPeer(node, reset) {
29692    if (reset) {
29693      getUINativeModule().commonShape.resetStroke(node);
29694    }
29695    else {
29696      getUINativeModule().commonShape.setStroke(node, this.value);
29697    }
29698  }
29699  checkObjectDiff() {
29700    return !isBaseOrResourceEqual(this.stageValue, this.value);
29701  }
29702}
29703StrokeModifier.identity = Symbol('stroke');
29704class FillModifier extends ModifierWithKey {
29705  constructor(value) {
29706    super(value);
29707  }
29708  applyPeer(node, reset) {
29709    if (reset) {
29710      getUINativeModule().commonShape.resetFill(node);
29711    }
29712    else {
29713      getUINativeModule().commonShape.setFill(node, this.value);
29714    }
29715  }
29716  checkObjectDiff() {
29717    return !isBaseOrResourceEqual(this.stageValue, this.value);
29718  }
29719}
29720FillModifier.identity = Symbol('fill');
29721class StrokeDashOffsetModifier extends ModifierWithKey {
29722  constructor(value) {
29723    super(value);
29724  }
29725  applyPeer(node, reset) {
29726    if (reset) {
29727      getUINativeModule().commonShape.resetStrokeDashOffset(node);
29728    }
29729    else {
29730      getUINativeModule().commonShape.setStrokeDashOffset(node, this.value);
29731    }
29732  }
29733  checkObjectDiff() {
29734    return !isBaseOrResourceEqual(this.stageValue, this.value);
29735  }
29736}
29737StrokeDashOffsetModifier.identity = Symbol('strokeDashOffset');
29738class StrokeLineCapModifier extends ModifierWithKey {
29739  constructor(value) {
29740    super(value);
29741  }
29742  applyPeer(node, reset) {
29743    if (reset) {
29744      getUINativeModule().commonShape.resetStrokeLineCap(node);
29745    }
29746    else {
29747      getUINativeModule().commonShape.setStrokeLineCap(node, this.value);
29748    }
29749  }
29750}
29751StrokeLineCapModifier.identity = Symbol('strokeLineCap');
29752class StrokeLineJoinModifier extends ModifierWithKey {
29753  constructor(value) {
29754    super(value);
29755  }
29756  applyPeer(node, reset) {
29757    if (reset) {
29758      getUINativeModule().commonShape.resetStrokeLineJoin(node);
29759    }
29760    else {
29761      getUINativeModule().commonShape.setStrokeLineJoin(node, this.value);
29762    }
29763  }
29764}
29765StrokeLineJoinModifier.identity = Symbol('strokeLineJoin');
29766class StrokeMiterLimitModifier extends ModifierWithKey {
29767  constructor(value) {
29768    super(value);
29769  }
29770  applyPeer(node, reset) {
29771    if (reset) {
29772      getUINativeModule().commonShape.resetStrokeMiterLimit(node);
29773    }
29774    else {
29775      getUINativeModule().commonShape.setStrokeMiterLimit(node, this.value);
29776    }
29777  }
29778}
29779StrokeMiterLimitModifier.identity = Symbol('strokeMiterLimit');
29780class FillOpacityModifier extends ModifierWithKey {
29781  constructor(value) {
29782    super(value);
29783  }
29784  applyPeer(node, reset) {
29785    if (reset) {
29786      getUINativeModule().commonShape.resetFillOpacity(node);
29787    }
29788    else {
29789      getUINativeModule().commonShape.setFillOpacity(node, this.value);
29790    }
29791  }
29792  checkObjectDiff() {
29793    return !isBaseOrResourceEqual(this.stageValue, this.value);
29794  }
29795}
29796FillOpacityModifier.identity = Symbol('FillOpacity');
29797class StrokeOpacityModifier extends ModifierWithKey {
29798  constructor(value) {
29799    super(value);
29800  }
29801  applyPeer(node, reset) {
29802    if (reset) {
29803      getUINativeModule().commonShape.resetStrokeOpacity(node);
29804    }
29805    else {
29806      getUINativeModule().commonShape.setStrokeOpacity(node, this.value);
29807    }
29808  }
29809  checkObjectDiff() {
29810    return !isBaseOrResourceEqual(this.stageValue, this.value);
29811  }
29812}
29813StrokeOpacityModifier.identity = Symbol('StrokeOpacity');
29814class StrokeWidthModifier extends ModifierWithKey {
29815  constructor(value) {
29816    super(value);
29817  }
29818  applyPeer(node, reset) {
29819    if (reset) {
29820      getUINativeModule().commonShape.resetStrokeWidth(node);
29821    }
29822    else {
29823      getUINativeModule().commonShape.setStrokeWidth(node, this.value);
29824    }
29825  }
29826}
29827StrokeWidthModifier.identity = Symbol('strokeWidth');
29828class AntiAliasModifier extends ModifierWithKey {
29829  constructor(value) {
29830    super(value);
29831  }
29832  applyPeer(node, reset) {
29833    if (reset) {
29834      getUINativeModule().commonShape.resetAntiAlias(node);
29835    }
29836    else {
29837      getUINativeModule().commonShape.setAntiAlias(node, this.value);
29838    }
29839  }
29840}
29841AntiAliasModifier.identity = Symbol('antiAlias');
29842class CommonShapeHeightModifier extends ModifierWithKey {
29843  constructor(value) {
29844    super(value);
29845  }
29846  applyPeer(node, reset) {
29847    if (reset) {
29848      getUINativeModule().commonShape.resetHeight(node);
29849    }
29850    else {
29851      getUINativeModule().commonShape.setHeight(node, this.value);
29852    }
29853  }
29854  checkObjectDiff() {
29855    return !isBaseOrResourceEqual(this.stageValue, this.value);
29856  }
29857}
29858CommonShapeHeightModifier.identity = Symbol('commonShapeHeight');
29859class CommonShapeWidthModifier extends ModifierWithKey {
29860  constructor(value) {
29861    super(value);
29862  }
29863  applyPeer(node, reset) {
29864    if (reset) {
29865      getUINativeModule().commonShape.resetWidth(node);
29866    }
29867    else {
29868      getUINativeModule().commonShape.setWidth(node, this.value);
29869    }
29870  }
29871  checkObjectDiff() {
29872    return !isBaseOrResourceEqual(this.stageValue, this.value);
29873  }
29874}
29875CommonShapeWidthModifier.identity = Symbol('commonShapeWidth');
29876class CommonShapeForegroundColorModifier extends ModifierWithKey {
29877  constructor(value) {
29878    super(value);
29879  }
29880  applyPeer(node, reset) {
29881    if (reset) {
29882      getUINativeModule().commonShape.resetForegroundColor(node);
29883    }
29884    else {
29885      getUINativeModule().commonShape.setForegroundColor(node, this.value);
29886    }
29887  }
29888  checkObjectDiff() {
29889    return !isBaseOrResourceEqual(this.stageValue, this.value);
29890  }
29891}
29892CommonShapeForegroundColorModifier.identity = Symbol('commonShapeForegroundColor');
29893
29894/// <reference path='./import.ts' />
29895class ArkCircleComponent extends ArkCommonShapeComponent {
29896}
29897// @ts-ignore
29898if (globalThis.Circle !== undefined) {
29899  globalThis.Circle.attributeModifier = function (modifier) {
29900    attributeModifierFunc.call(this, modifier, (nativePtr) => {
29901      return new ArkCircleComponent(nativePtr);
29902    }, (nativePtr, classType, modifierJS) => {
29903      return new modifierJS.CircleModifier(nativePtr, classType);
29904    });
29905  };
29906}
29907
29908/// <reference path='./import.ts' />
29909class ArkEllipseComponent extends ArkCommonShapeComponent {
29910  constructor(nativePtr, classType) {
29911    super(nativePtr, classType);
29912  }
29913}
29914// @ts-ignore
29915if (globalThis.Ellipse !== undefined) {
29916  globalThis.Ellipse.attributeModifier = function (modifier) {
29917    attributeModifierFunc.call(this, modifier, (nativePtr) => {
29918      return new ArkEllipseComponent(nativePtr);
29919    }, (nativePtr, classType, modifierJS) => {
29920      return new modifierJS.CommonModifier(nativePtr, classType);
29921    });
29922  };
29923}
29924
29925/// <reference path='./import.ts' />
29926/// <reference path='./ArkCommonShape.ts' />
29927class ArkLineComponent extends ArkCommonShapeComponent {
29928  constructor(nativePtr, classType) {
29929    super(nativePtr, classType);
29930  }
29931  startPoint(value) {
29932    modifierWithKey(this._modifiersWithKeys, LineStartPointModifier.identity, LineStartPointModifier, value);
29933    return this;
29934  }
29935  endPoint(value) {
29936    modifierWithKey(this._modifiersWithKeys, LineEndPointModifier.identity, LineEndPointModifier, value);
29937    return this;
29938  }
29939}
29940class LineStartPointModifier extends ModifierWithKey {
29941  constructor(value) {
29942    super(value);
29943  }
29944  applyPeer(node, reset) {
29945    if (reset) {
29946      getUINativeModule().line.resetStartPoint(node);
29947    }
29948    else {
29949      getUINativeModule().line.setStartPoint(node, this.value);
29950    }
29951  }
29952  checkObjectDiff() {
29953    return this.stageValue !== this.value;
29954  }
29955}
29956LineStartPointModifier.identity = Symbol('startPoint');
29957class LineEndPointModifier extends ModifierWithKey {
29958  constructor(value) {
29959    super(value);
29960  }
29961  applyPeer(node, reset) {
29962    if (reset) {
29963      getUINativeModule().line.resetEndPoint(node);
29964    }
29965    else {
29966      getUINativeModule().line.setEndPoint(node, this.value);
29967    }
29968  }
29969  checkObjectDiff() {
29970    return this.stageValue !== this.value;
29971  }
29972}
29973LineEndPointModifier.identity = Symbol('endPoint');
29974// @ts-ignore
29975if (globalThis.Line !== undefined) {
29976  globalThis.Line.attributeModifier = function (modifier) {
29977    attributeModifierFunc.call(this, modifier, (nativePtr) => {
29978      return new ArkLineComponent(nativePtr);
29979    }, (nativePtr, classType, modifierJS) => {
29980      return new modifierJS.LineModifier(nativePtr, classType);
29981    });
29982  };
29983}
29984
29985/// <reference path='./import.ts' />
29986/// <reference path='./ArkCommonShape.ts' />
29987const ARRAY_LENGTH = 2;
29988class ArkPolylineComponent extends ArkCommonShapeComponent {
29989  constructor(nativePtr, classType) {
29990    super(nativePtr, classType);
29991  }
29992  points(value) {
29993    modifierWithKey(this._modifiersWithKeys, PolylinePointsModifier.identity, PolylinePointsModifier, value);
29994    return this;
29995  }
29996}
29997class PolylinePointsModifier extends ModifierWithKey {
29998  constructor(value) {
29999    super(value);
30000  }
30001  applyPeer(node, reset) {
30002    let xPoint = [];
30003    let yPoint = [];
30004    if (Array.isArray(this.value)) {
30005      for (let i = 0; i <= this.value.length; i++) {
30006        let item = this.value[i];
30007        if (!Array.isArray(item)) {
30008          continue;
30009        }
30010        if (item.length < ARRAY_LENGTH || isUndefined(item[0]) || isUndefined(item[1])) {
30011          reset = true;
30012          break;
30013        }
30014        xPoint.push(item[0]);
30015        yPoint.push(item[1]);
30016      }
30017    }
30018    else {
30019      reset = true;
30020    }
30021    if (reset) {
30022      getUINativeModule().polyline.resetPoints(node);
30023    }
30024    else {
30025      getUINativeModule().polyline.setPoints(node, xPoint, yPoint);
30026    }
30027  }
30028  checkObjectDiff() {
30029    return this.stageValue !== this.value;
30030  }
30031}
30032PolylinePointsModifier.identity = Symbol('points');
30033// @ts-ignore
30034if (globalThis.Polyline !== undefined) {
30035  globalThis.Polyline.attributeModifier = function (modifier) {
30036    attributeModifierFunc.call(this, modifier, (nativePtr) => {
30037      return new ArkPolylineComponent(nativePtr);
30038    }, (nativePtr, classType, modifierJS) => {
30039      return new modifierJS.PolylineModifier(nativePtr, classType);
30040    });
30041  };
30042}
30043
30044/// <reference path='./import.ts' />
30045class ArkPolygonComponent extends ArkCommonShapeComponent {
30046  constructor(nativePtr, classType) {
30047    super(nativePtr, classType);
30048  }
30049  points(value) {
30050    modifierWithKey(this._modifiersWithKeys, PolygonPointsModifier.identity, PolygonPointsModifier, value);
30051    return this;
30052  }
30053}
30054class PolygonPointsModifier extends ModifierWithKey {
30055  constructor(value) {
30056    super(value);
30057  }
30058  applyPeer(node, reset) {
30059    let xPoint = [];
30060    let yPoint = [];
30061    if (Array.isArray(this.value)) {
30062      for (let i = 0; i <= this.value.length; i++) {
30063        let item = this.value[i];
30064        if (!Array.isArray(item)) {
30065          continue;
30066        }
30067        if (item.length < ARRAY_LENGTH || isUndefined(item[0]) || isUndefined(item[1])) {
30068          reset = true;
30069          break;
30070        }
30071        xPoint.push(item[0]);
30072        yPoint.push(item[1]);
30073      }
30074    }
30075    else {
30076      reset = true;
30077    }
30078    if (reset) {
30079      getUINativeModule().polygon.resetPolygonPoints(node);
30080    }
30081    else {
30082      getUINativeModule().polygon.setPolygonPoints(node, xPoint, yPoint);
30083    }
30084  }
30085  checkObjectDiff() {
30086    return this.stageValue !== this.value;
30087  }
30088}
30089PolygonPointsModifier.identity = Symbol('polygonPoints');
30090// @ts-ignore
30091if (globalThis.Polygon !== undefined) {
30092  globalThis.Polygon.attributeModifier = function (modifier) {
30093    attributeModifierFunc.call(this, modifier, (nativePtr) => {
30094      return new ArkPolygonComponent(nativePtr);
30095    }, (nativePtr, classType, modifierJS) => {
30096      return new modifierJS.PolygonModifier(nativePtr, classType);
30097    });
30098  };
30099}
30100
30101/// <reference path='./import.ts' />
30102class ArkPathComponent extends ArkCommonShapeComponent {
30103  constructor(nativePtr, classType) {
30104    super(nativePtr, classType);
30105  }
30106  commands(value) {
30107    modifierWithKey(this._modifiersWithKeys, CommandsModifier.identity, CommandsModifier, value);
30108    return this;
30109  }
30110}
30111class CommandsModifier extends ModifierWithKey {
30112  constructor(value) {
30113    super(value);
30114  }
30115  applyPeer(node, reset) {
30116    if (reset) {
30117      getUINativeModule().path.resetPathCommands(node);
30118    }
30119    else {
30120      getUINativeModule().path.setPathCommands(node, this.value);
30121    }
30122  }
30123  checkObjectDiff() {
30124    if (isString(this.stageValue) && isString(this.value)) {
30125      return this.stageValue !== this.value;
30126    }
30127    else {
30128      return true;
30129    }
30130  }
30131}
30132CommandsModifier.identity = Symbol('commands');
30133// @ts-ignore
30134if (globalThis.Path !== undefined) {
30135  globalThis.Path.attributeModifier = function (modifier) {
30136    attributeModifierFunc.call(this, modifier, (nativePtr) => {
30137      return new ArkPathComponent(nativePtr);
30138    }, (nativePtr, classType, modifierJS) => {
30139      return new modifierJS.PathModifier(nativePtr, classType);
30140    });
30141  };
30142}
30143
30144/// <reference path='./import.ts' />
30145/// <reference path='./ArkCommonShape.ts' />
30146class RectRadiusWidthModifier extends ModifierWithKey {
30147  constructor(value) {
30148    super(value);
30149  }
30150  applyPeer(node, reset) {
30151    if (reset) {
30152      getUINativeModule().rect.resetRectRadiusWidth(node);
30153    }
30154    else {
30155      getUINativeModule().rect.setRectRadiusWidth(node, this.value);
30156    }
30157  }
30158}
30159RectRadiusWidthModifier.identity = Symbol('rectRadiusWidth');
30160class RectRadiusHeightModifier extends ModifierWithKey {
30161  constructor(value) {
30162    super(value);
30163  }
30164  applyPeer(node, reset) {
30165    if (reset) {
30166      getUINativeModule().rect.resetRectRadiusHeight(node);
30167    }
30168    else {
30169      getUINativeModule().rect.setRectRadiusHeight(node, this.value);
30170    }
30171  }
30172}
30173RectRadiusHeightModifier.identity = Symbol('rectRadiusHeight');
30174class RectRadiusModifier extends ModifierWithKey {
30175  constructor(value) {
30176    super(value);
30177  }
30178  applyPeer(node, reset) {
30179    if (reset) {
30180      getUINativeModule().rect.resetRectRadius(node);
30181    }
30182    else {
30183      getUINativeModule().rect.setRectRadius(node, this.value);
30184    }
30185  }
30186  checkObjectDiff() {
30187    return !(this.stageValue === this.value);
30188  }
30189}
30190RectRadiusModifier.identity = Symbol('rectRadius');
30191class ArkRectComponent extends ArkCommonShapeComponent {
30192  constructor(nativePtr, classType) {
30193    super(nativePtr, classType);
30194  }
30195  radiusWidth(value) {
30196    modifierWithKey(this._modifiersWithKeys, RectRadiusWidthModifier.identity, RectRadiusWidthModifier, value);
30197    return this;
30198  }
30199  radiusHeight(value) {
30200    modifierWithKey(this._modifiersWithKeys, RectRadiusHeightModifier.identity, RectRadiusHeightModifier, value);
30201    return this;
30202  }
30203  radius(value) {
30204    modifierWithKey(this._modifiersWithKeys, RectRadiusModifier.identity, RectRadiusModifier, value);
30205    return this;
30206  }
30207}
30208// @ts-ignore
30209if (globalThis.Rect !== undefined) {
30210  globalThis.Rect.attributeModifier = function (modifier) {
30211    attributeModifierFunc.call(this, modifier, (nativePtr) => {
30212      return new ArkRectComponent(nativePtr);
30213    }, (nativePtr, classType, modifierJS) => {
30214      return new modifierJS.RectModifier(nativePtr, classType);
30215    });
30216  };
30217}
30218
30219/// <reference path='./import.ts' />
30220/// <reference path='./ArkCommonShape.ts' />
30221class ShapeViewPortModifier extends ModifierWithKey {
30222  constructor(value) {
30223    super(value);
30224  }
30225  applyPeer(node, reset) {
30226    if (reset) {
30227      getUINativeModule().shape.resetShapeViewPort(node);
30228    }
30229    else {
30230      getUINativeModule().shape.setShapeViewPort(node, this.value.x, this.value.y, this.value.width, this.value.height);
30231    }
30232  }
30233  checkObjectDiff() {
30234    return !(this.stageValue.x === this.value.x && this.stageValue.y === this.value.y &&
30235      this.stageValue.width === this.value.width && this.stageValue.height === this.value.height);
30236  }
30237}
30238ShapeViewPortModifier.identity = Symbol('shapeViewPort');
30239class ShapeMeshModifier extends ModifierWithKey {
30240  constructor(value) {
30241    super(value);
30242  }
30243  applyPeer(node, reset) {
30244    if (reset) {
30245      getUINativeModule().shape.resetShapeMesh(node);
30246    }
30247    else {
30248      getUINativeModule().shape.setShapeMesh(node, this.value.value, this.value.column, this.value.row);
30249    }
30250  }
30251  checkObjectDiff() {
30252    return !this.stageValue.isEqual(this.value);
30253  }
30254}
30255ShapeMeshModifier.identity = Symbol('shapeMesh');
30256class ShapeHeightModifier extends ModifierWithKey {
30257  constructor(value) {
30258    super(value);
30259  }
30260  applyPeer(node, reset) {
30261    if (reset) {
30262      getUINativeModule().common.resetHeight(node);
30263    }
30264    else {
30265      getUINativeModule().common.setHeight(node, this.value);
30266    }
30267  }
30268  checkObjectDiff() {
30269    return !isBaseOrResourceEqual(this.stageValue, this.value);
30270  }
30271}
30272ShapeHeightModifier.identity = Symbol('shapeHeight');
30273class ShapeWidthModifier extends ModifierWithKey {
30274  constructor(value) {
30275    super(value);
30276  }
30277  applyPeer(node, reset) {
30278    if (reset) {
30279      getUINativeModule().common.resetWidth(node);
30280    }
30281    else {
30282      getUINativeModule().common.setWidth(node, this.value);
30283    }
30284  }
30285  checkObjectDiff() {
30286    return !isBaseOrResourceEqual(this.stageValue, this.value);
30287  }
30288}
30289ShapeWidthModifier.identity = Symbol('shapeWidth');
30290class ArkShapeComponent extends ArkCommonShapeComponent {
30291  constructor(nativePtr, classType) {
30292    super(nativePtr, classType);
30293  }
30294  viewPort(value) {
30295    if (value === null) {
30296      value = undefined;
30297    }
30298    modifierWithKey(this._modifiersWithKeys, ShapeViewPortModifier.identity, ShapeViewPortModifier, value);
30299    return this;
30300  }
30301  mesh(value, column, row) {
30302    let arkMesh = new ArkMesh();
30303    if (value !== null && column !== null && row !== null) {
30304      arkMesh.value = value;
30305      arkMesh.column = column;
30306      arkMesh.row = row;
30307    }
30308    modifierWithKey(this._modifiersWithKeys, ShapeMeshModifier.identity, ShapeMeshModifier, arkMesh);
30309    return this;
30310  }
30311  height(value) {
30312    modifierWithKey(this._modifiersWithKeys, ShapeHeightModifier.identity, ShapeHeightModifier, value);
30313    return this;
30314  }
30315  width(value) {
30316    modifierWithKey(this._modifiersWithKeys, ShapeWidthModifier.identity, ShapeWidthModifier, value);
30317    return this;
30318  }
30319}
30320// @ts-ignore
30321if (globalThis.Shape !== undefined) {
30322  globalThis.Shape.attributeModifier = function (modifier) {
30323    attributeModifierFunc.call(this, modifier, (nativePtr) => {
30324      return new ArkShapeComponent(nativePtr);
30325    }, (nativePtr, classType, modifierJS) => {
30326      return new modifierJS.ShapeModifier(nativePtr, classType);
30327    });
30328  };
30329}
30330
30331/// <reference path='./import.ts' />
30332class ArkCanvasComponent extends ArkComponent {
30333  constructor(nativePtr, classType) {
30334    super(nativePtr, classType);
30335  }
30336  onReady(event) {
30337    throw new Error('Method not implemented.');
30338  }
30339}
30340// @ts-ignore
30341if (globalThis.Canvas !== undefined) {
30342  globalThis.Canvas.attributeModifier = function (modifier) {
30343    attributeModifierFunc.call(this, modifier, (nativePtr) => {
30344      return new ArkCanvasComponent(nativePtr);
30345    }, (nativePtr, classType, modifierJS) => {
30346      return new modifierJS.CommonModifier(nativePtr, classType);
30347    });
30348  };
30349}
30350
30351/// <reference path='./import.ts' />
30352class ArkGridContainerComponent extends ArkComponent {
30353  constructor(nativePtr, classType) {
30354    super(nativePtr, classType);
30355  }
30356  alignItems(value) {
30357    throw new Error('Method not implemented.');
30358  }
30359  justifyContent(value) {
30360    throw new Error('Method not implemented.');
30361  }
30362  pointLight(value) {
30363    throw new Error('Method not implemented.');
30364  }
30365}
30366// @ts-ignore
30367if (globalThis.GridContainer !== undefined) {
30368  globalThis.GridContainer.attributeModifier = function (modifier) {
30369    attributeModifierFunc.call(this, modifier, (nativePtr) => {
30370      return new ArkGridContainerComponent(nativePtr);
30371    }, (nativePtr, classType, modifierJS) => {
30372      return new modifierJS.CommonModifier(nativePtr, classType);
30373    });
30374  };
30375}
30376
30377/// <reference path='./import.ts' />
30378class ArkEffectComponentComponent extends ArkComponent {
30379}
30380// @ts-ignore
30381if (globalThis.EffectComponent !== undefined) {
30382  // @ts-ignore
30383  globalThis.EffectComponent.attributeModifier = function (modifier) {
30384    attributeModifierFunc.call(this, modifier, (nativePtr) => {
30385      return new ArkEffectComponentComponent(nativePtr);
30386    }, (nativePtr, classType, modifierJS) => {
30387      return new modifierJS.CommonModifier(nativePtr, classType);
30388    });
30389  };
30390}
30391
30392/// <reference path='./import.ts' />
30393class ArkRemoteWindowComponent extends ArkComponent {
30394}
30395// @ts-ignore
30396if (globalThis.RemoteWindow !== undefined) {
30397  // @ts-ignore
30398  globalThis.RemoteWindow.attributeModifier = function (modifier) {
30399    attributeModifierFunc.call(this, modifier, (nativePtr) => {
30400      return new ArkRemoteWindowComponent(nativePtr);
30401    }, (nativePtr, classType, modifierJS) => {
30402      return new modifierJS.CommonModifier(nativePtr, classType);
30403    });
30404  };
30405}
30406
30407class ParticleDisturbanceFieldModifier extends ModifierWithKey {
30408  constructor(value) {
30409    super(value);
30410  }
30411
30412  applyPeer(node, reset) {
30413    if (reset) {
30414      getUINativeModule().particle.resetDisturbanceField(node);
30415    }
30416    else {
30417      let dataArray = [];
30418      if (!Array.isArray(this.value)) {
30419        return;
30420      }
30421      for (let i = 0; i < this.value.length; i++) {
30422        let data = this.value[i];
30423        dataArray.push(parseWithDefaultNumber(data.strength, 0));
30424        dataArray.push(parseWithDefaultNumber(data.shape, 0));
30425        if (isObject(data.size)) {
30426          dataArray.push(parseWithDefaultNumber(data.size.width, 0));
30427          dataArray.push(parseWithDefaultNumber(data.size.height, 0));
30428        }
30429        else {
30430          dataArray.push(0);
30431          dataArray.push(0);
30432        }
30433        if (isObject(data.position)) {
30434          dataArray.push(parseWithDefaultNumber(data.position.x, 0));
30435          dataArray.push(parseWithDefaultNumber(data.position.y, 0));
30436        }
30437        else {
30438          dataArray.push(0);
30439          dataArray.push(0);
30440        }
30441        dataArray.push(parseWithDefaultNumber(data.feather, 0));
30442        dataArray.push(parseWithDefaultNumber(data.noiseScale, 1));
30443        dataArray.push(parseWithDefaultNumber(data.noiseFrequency, 1));
30444        dataArray.push(parseWithDefaultNumber(data.noiseAmplitude, 1));
30445      }
30446      getUINativeModule().particle.setDisturbanceField(node, dataArray);
30447    }
30448  }
30449  checkObjectDiff() {
30450    return !isBaseOrResourceEqual(this.stageValue, this.value);
30451  }
30452}
30453
30454ParticleDisturbanceFieldModifier.identity = Symbol('disturbanceFields');
30455
30456class ParticleEmitterModifier extends ModifierWithKey {
30457  constructor(value) {
30458    super(value);
30459  }
30460
30461  applyPeer(node, reset) {
30462    let _a, _b, _c, _d, _e;
30463    if (reset) {
30464      getUINativeModule().particle.resetEmitter(node);
30465    }
30466    else {
30467      let dataArray = [];
30468      if (!Array.isArray(this.value)) {
30469        return;
30470      }
30471      for (let i = 0; i < this.value.length; i++) {
30472        let data = this.value[i];
30473        let indexValue = 0;
30474        if (data.index > 0) {
30475          indexValue = data.index;
30476        }
30477        dataArray.push(indexValue);
30478
30479        let emitRateValue = 5;
30480        if (isNumber(data.emitRate)) {
30481          dataArray.push(1);
30482          if (data.emitRate >= 0) {
30483            emitRateValue = data.emitRate;
30484          }
30485          dataArray.push(emitRateValue);
30486        } else {
30487          dataArray.push(0);
30488          dataArray.push(_a);
30489        }
30490
30491        if (isObject(data.position)) {
30492          if (isNumber(data.position.x) && isNumber(data.position.y)) {
30493            dataArray.push(1);
30494            dataArray.push(data.position.x);
30495            dataArray.push(data.position.y);
30496          } else {
30497            dataArray.push(0);
30498            dataArray.push(_b);
30499            dataArray.push(_c);
30500          }
30501        } else {
30502          dataArray.push(0);
30503          dataArray.push(_b);
30504          dataArray.push(_c);
30505        }
30506
30507        if (isObject(data.size)) {
30508          if (data.size.width > 0 && data.size.height > 0) {
30509            dataArray.push(1);
30510            dataArray.push(data.size.width);
30511            dataArray.push(data.size.height);
30512          } else {
30513            dataArray.push(0);
30514            dataArray.push(_d);
30515            dataArray.push(_e);
30516          }
30517        }
30518        else {
30519          dataArray.push(0);
30520          dataArray.push(_d);
30521          dataArray.push(_e);
30522        }
30523      }
30524      getUINativeModule().particle.setEmitter(node, dataArray);
30525    }
30526  }
30527
30528  checkObjectDiff() {
30529    return !isBaseOrResourceEqual(this.stageValue, this.value);
30530  }
30531}
30532
30533ParticleEmitterModifier.identity = Symbol('emitter');
30534
30535/// <reference path='./import.ts' />
30536class ArkParticleComponent extends ArkComponent {
30537  constructor(nativePtr, classType) {
30538    super(nativePtr, classType);
30539  }
30540  disturbanceFields(value) {
30541     modifierWithKey(this._modifiersWithKeys, ParticleDisturbanceFieldModifier.identity, ParticleDisturbanceFieldModifier, value);
30542    return this;
30543  }
30544
30545  emitter(value) {
30546    modifierWithKey(this._modifiersWithKeys, ParticleEmitterModifier.identity, ParticleEmitterModifier, value);
30547    return this;
30548  }
30549}
30550// @ts-ignore
30551if (globalThis.Particle !== undefined) {
30552
30553  // @ts-ignore
30554  globalThis.Particle.attributeModifier = function (modifier) {
30555    attributeModifierFunc.call(this, modifier, (nativePtr) => {
30556      return new ArkParticleComponent(nativePtr);
30557    }, (nativePtr, classType, modifierJS) => {
30558      return new modifierJS.ParticleModifier(nativePtr, classType);
30559    });
30560  };
30561}
30562
30563let arkUINativeAdvancedModule = undefined;
30564function getUINativeAdvancedModule() {
30565  if (arkUINativeAdvancedModule) {
30566    return arkUINativeAdvancedModule;
30567  } else if (globalThis.getArkUIAdvancedModule !== undefined) {
30568    arkUINativeAdvancedModule = globalThis.getArkUIAdvancedModule();
30569  }
30570  return arkUINativeAdvancedModule;
30571}
30572
30573class MediaCachedImageSrcModifier extends ModifierWithKey {
30574  constructor(value) {
30575    super(value);
30576  }
30577  applyPeer(node, reset) {
30578    if (getUINativeAdvancedModule() === undefined) {
30579      return;
30580    }
30581    if (reset) {
30582      getUINativeAdvancedModule().mediaCachedImage.setMediaCachedImageSrc(node, '');
30583    } else {
30584      if (isResource(this.value) || isString(this.value)) {
30585        getUINativeAdvancedModule().mediaCachedImage.setMediaCachedImageSrc(node, 0, this.value);
30586      } else if (Array.isArray(this.value.sources)) {
30587        getUINativeAdvancedModule().mediaCachedImage.setMediaCachedImageSrc(
30588          node, 1, this.value.sources, this.value.sources.length, this.value.column);
30589      } else {
30590        getUINativeAdvancedModule().mediaCachedImage.setMediaCachedImageSrc(node, 0, this.value);
30591      }
30592    }
30593  }
30594}
30595MediaCachedImageSrcModifier.identity = Symbol('mediaCachedImageSrc');
30596class MediaCachedImageAltModifier extends ModifierWithKey {
30597  constructor(value) {
30598    super(value);
30599  }
30600  applyPeer(node, reset) {
30601    if (getUINativeAdvancedModule() === undefined) {
30602      return;
30603    }
30604    if (reset) {
30605      getUINativeAdvancedModule().mediaCachedImage.resetAlt(node);
30606    } else {
30607      getUINativeAdvancedModule().mediaCachedImage.setAlt(node, this.value);
30608    }
30609  }
30610  checkObjectDiff() {
30611    return true;
30612  }
30613}
30614MediaCachedImageAltModifier.identity = Symbol('mediaCachedImageAlt');
30615class ArkMediaCachedImageComponent extends ArkImageComponent {
30616  constructor(nativePtr, classType) {
30617    super(nativePtr, classType);
30618  }
30619  initialize(value) {
30620    if (value[0] !== undefined) {
30621      modifierWithKey(this._modifiersWithKeys, MediaCachedImageSrcModifier.identity, MediaCachedImageSrcModifier, value[0]);
30622    }
30623    return this;
30624  }
30625  alt(value) {
30626    modifierWithKey(this._modifiersWithKeys, MediaCachedImageAltModifier.identity, MediaCachedImageAltModifier, value);
30627    return this;
30628  }
30629}
30630// @ts-ignore
30631if (globalThis.MediaCachedImage !== undefined) {
30632  globalThis.MediaCachedImage.attributeModifier = function (modifier) {
30633    attributeModifierFunc.call(this, modifier, (nativePtr) => {
30634      return new ArkMediaCachedImageComponent(nativePtr);
30635    }, (nativePtr, classType, modifierJS) => {
30636      return new modifierJS.MediaCachedImageModifier(nativePtr, classType);
30637    });
30638  };
30639}
30640
30641class SymbolFontColorModifier extends ModifierWithKey {
30642  constructor(value) {
30643    super(value);
30644  }
30645  applyPeer(node, reset) {
30646    if (reset) {
30647      getUINativeModule().symbolGlyph.resetFontColor(node);
30648    }
30649    else {
30650      getUINativeModule().symbolGlyph.setFontColor(node, this.value);
30651    }
30652  }
30653  checkObjectDiff() {
30654    return !isBaseOrResourceEqual(this.stageValue, this.value);
30655  }
30656}
30657SymbolFontColorModifier.identity = Symbol('symbolGlyphFontColor');
30658
30659class SymbolFontSizeModifier extends ModifierWithKey {
30660  constructor(value) {
30661    super(value);
30662  }
30663  applyPeer(node, reset) {
30664    if (reset) {
30665      getUINativeModule().symbolGlyph.resetFontSize(node);
30666    }
30667    else {
30668      getUINativeModule().symbolGlyph.setFontSize(node, this.value);
30669    }
30670  }
30671  checkObjectDiff() {
30672    return !isBaseOrResourceEqual(this.stageValue, this.value);
30673  }
30674}
30675SymbolFontSizeModifier.identity = Symbol('symbolGlyphFontSize');
30676
30677class SymbolFontWeightModifier extends ModifierWithKey {
30678  constructor(value) {
30679    super(value);
30680  }
30681  applyPeer(node, reset) {
30682    if (reset) {
30683      getUINativeModule().symbolGlyph.resetFontWeight(node);
30684    }
30685    else {
30686      getUINativeModule().symbolGlyph.setFontWeight(node, this.value);
30687    }
30688  }
30689}
30690SymbolFontWeightModifier.identity = Symbol('symbolGlyphFontWeight');
30691
30692class RenderingStrategyModifier extends ModifierWithKey {
30693  constructor(value) {
30694    super(value);
30695  }
30696  applyPeer(node, reset) {
30697    if (reset) {
30698      getUINativeModule().symbolGlyph.resetRenderingStrategy(node);
30699    }
30700    else {
30701      getUINativeModule().symbolGlyph.setRenderingStrategy(node, this.value);
30702    }
30703  }
30704}
30705RenderingStrategyModifier.identity = Symbol('symbolGlyphRenderingStrategy');
30706
30707class EffectStrategyModifier extends ModifierWithKey {
30708  constructor(value) {
30709    super(value);
30710  }
30711  applyPeer(node, reset) {
30712    if (reset) {
30713      getUINativeModule().symbolGlyph.resetEffectStrategy(node);
30714    }
30715    else {
30716      getUINativeModule().symbolGlyph.setEffectStrategy(node, this.value);
30717    }
30718  }
30719}
30720EffectStrategyModifier.identity = Symbol('symbolGlyphEffectStrategy');
30721
30722class SymbolContentModifier extends ModifierWithKey {
30723  constructor(value) {
30724    super(value);
30725  }
30726  applyPeer(node, reset) {
30727    if (reset) {
30728      getUINativeModule().symbolGlyph.resetSymbolGlyphInitialize(node);
30729    } else {
30730      getUINativeModule().symbolGlyph.setSymbolGlyphInitialize(node, this.value);
30731    }
30732  }
30733}
30734SymbolContentModifier.identity = Symbol('symbolContent');
30735
30736class SymbolEffectModifier extends ModifierWithKey {
30737  constructor(value) {
30738    super(value);
30739  }
30740  applyPeer(node, reset) {
30741    if (reset) {
30742      getUINativeModule().symbolGlyph.resetSymbolEffectOptions(node);
30743    } else {
30744      getUINativeModule().symbolGlyph.setSymbolEffectOptions(node, this.value.symbolEffect, this.value.action);
30745    }
30746  }
30747}
30748SymbolEffectModifier.identity = Symbol('symbolEffect');
30749
30750/// <reference path='./import.ts' />
30751class ArkSymbolGlyphComponent extends ArkComponent {
30752  constructor(nativePtr, classType) {
30753    super(nativePtr, classType);
30754  }
30755  initialize(value) {
30756    if (value[0] !== undefined) {
30757      modifierWithKey(this._modifiersWithKeys, SymbolContentModifier.identity, SymbolContentModifier, value[0]);
30758    }
30759    else {
30760      modifierWithKey(this._modifiersWithKeys, SymbolContentModifier.identity, SymbolContentModifier, undefined);
30761    }
30762    return this;
30763  }
30764  fontColor(value) {
30765    modifierWithKey(this._modifiersWithKeys, SymbolFontColorModifier.identity, SymbolFontColorModifier, value);
30766    return this;
30767  }
30768  fontSize(value) {
30769    modifierWithKey(this._modifiersWithKeys, SymbolFontSizeModifier.identity, SymbolFontSizeModifier, value);
30770    return this;
30771  }
30772  fontWeight(value) {
30773    modifierWithKey(this._modifiersWithKeys, SymbolFontWeightModifier.identity, SymbolFontWeightModifier, value);
30774    return this;
30775  }
30776  renderingStrategy(value) {
30777    modifierWithKey(this._modifiersWithKeys, RenderingStrategyModifier.identity, RenderingStrategyModifier, value);
30778    return this;
30779  }
30780  effectStrategy(value) {
30781    modifierWithKey(this._modifiersWithKeys, EffectStrategyModifier.identity, EffectStrategyModifier, value);
30782    return this;
30783  }
30784  symbolEffect(effect, action) {
30785    let symbolEffect = new ArkSymbolEffect();
30786    symbolEffect.symbolEffect = effect;
30787    symbolEffect.action = action;
30788    modifierWithKey(this._modifiersWithKeys, SymbolEffectModifier.identity, SymbolEffectModifier, symbolEffect);
30789    return this;
30790  }
30791}
30792
30793class SystemBarEffectModifier extends ModifierWithKey {
30794  constructor(value) {
30795    super(value);
30796  }
30797  applyPeer(node, reset) {
30798    getUINativeModule().common.setSystemBarEffect(node, true);
30799  }
30800}
30801SystemBarEffectModifier.identity = Symbol('systemBarEffect');
30802
30803// @ts-ignore
30804if (globalThis.SymbolGlyph !== undefined) {
30805  globalThis.SymbolGlyph.attributeModifier = function (modifier) {
30806    attributeModifierFunc.call(this, modifier, (nativePtr) => {
30807      return new ArkSymbolGlyphComponent(nativePtr);
30808    }, (nativePtr, classType, modifierJS) => {
30809      return new modifierJS.SymbolGlyphModifier(undefined, nativePtr, classType);
30810    });
30811  };
30812}
30813
30814class SymbolSpanFontColorModifier extends ModifierWithKey {
30815  constructor(value) {
30816    super(value);
30817  }
30818  applyPeer(node, reset) {
30819    if (reset) {
30820    getUINativeModule().symbolSpan.resetFontColor(node);
30821    } else {
30822    getUINativeModule().symbolSpan.setFontColor(node, this.value);
30823    }
30824  }
30825  checkObjectDiff() {
30826    if (isResource(this.stageValue) && isResource(this.value)) {
30827      return !isResourceEqual(this.stageValue, this.value);
30828    } else {
30829      return true;
30830    }
30831  }
30832}
30833SymbolSpanFontColorModifier.identity = Symbol('symbolSpanFontColor');
30834class SymbolSpanFontSizeModifier extends ModifierWithKey {
30835  constructor(value) {
30836    super(value);
30837  }
30838  applyPeer(node, reset) {
30839    if (reset) {
30840      getUINativeModule().symbolSpan.resetFontSize(node);
30841    } else {
30842      getUINativeModule().symbolSpan.setFontSize(node, this.value);
30843    }
30844  }
30845  checkObjectDiff() {
30846    if (isResource(this.stageValue) && isResource(this.value)) {
30847      return !isResourceEqual(this.stageValue, this.value);
30848    } else {
30849      return true;
30850    }
30851  }
30852}
30853SymbolSpanFontSizeModifier.identity = Symbol('symbolSpanFontSize');
30854class SymbolSpanFontWeightModifier extends ModifierWithKey {
30855  constructor(value) {
30856    super(value);
30857  }
30858  applyPeer(node, reset) {
30859    if (reset) {
30860      getUINativeModule().symbolSpan.resetFontWeight(node);
30861    } else {
30862      getUINativeModule().symbolSpan.setFontWeight(node, this.value);
30863    }
30864  }
30865  checkObjectDiff() {
30866    if (isResource(this.stageValue) && isResource(this.value)) {
30867      return !isResourceEqual(this.stageValue, this.value);
30868    } else {
30869      return true;
30870    }
30871  }
30872}
30873SymbolSpanFontWeightModifier.identity = Symbol('symbolSpanFontWeight');
30874class SymbolSpanEffectStrategyModifier extends ModifierWithKey {
30875  constructor(value) {
30876    super(value);
30877  }
30878  applyPeer(node, reset) {
30879    if (reset) {
30880      getUINativeModule().symbolSpan.resetEffectStrategy(node);
30881    } else {
30882      getUINativeModule().symbolSpan.setEffectStrategy(node, this.value);
30883    }
30884  }
30885  checkObjectDiff() {
30886    if (isResource(this.stageValue) && isResource(this.value)) {
30887      return !isResourceEqual(this.stageValue, this.value);
30888    } else {
30889      return true;
30890    }
30891  }
30892}
30893SymbolSpanEffectStrategyModifier.identity = Symbol('symbolSpanEffectStrategy');
30894class SymbolSpanRenderingStrategyModifier extends ModifierWithKey {
30895  constructor(value) {
30896    super(value);
30897  }
30898  applyPeer(node, reset) {
30899    if (reset) {
30900      getUINativeModule().symbolSpan.resetRenderingStrategy(node);
30901    } else {
30902      getUINativeModule().symbolSpan.setRenderingStrategy(node, this.value);
30903    }
30904  }
30905  checkObjectDiff() {
30906    if (isResource(this.stageValue) && isResource(this.value)) {
30907      return !isResourceEqual(this.stageValue, this.value);
30908    } else {
30909      return true;
30910    }
30911  }
30912}
30913SymbolSpanRenderingStrategyModifier.identity = Symbol('symbolSpanRenderingStrategy');
30914class SymbolSpanIdModifier extends ModifierWithKey {
30915  constructor(value) {
30916    super(value);
30917  }
30918  applyPeer(node, reset) {
30919    if (reset) {
30920      getUINativeModule().symbolSpan.setId(node, '');
30921    }
30922    else {
30923      getUINativeModule().symbolSpan.setId(node, this.value);
30924    }
30925  }
30926}
30927SymbolSpanIdModifier.identity = Symbol('symbolSpanId');
30928/// <reference path='./import.ts' />
30929class ArkSymbolSpanComponent extends ArkComponent {
30930  constructor(nativePtr, classType) {
30931    super(nativePtr, classType);
30932  }
30933  initialize(value) {
30934    if (value[0] !== undefined) {
30935      modifierWithKey(this._modifiersWithKeys, SymbolSpanIdModifier.identity, SymbolSpanIdModifier, value[0]);
30936    }
30937    return this;
30938  }
30939  fontSize(value) {
30940    modifierWithKey(this._modifiersWithKeys, SymbolSpanFontSizeModifier.identity,
30941      SymbolSpanFontSizeModifier, value);
30942    return this;
30943  }
30944  fontColor(value) {
30945    modifierWithKey(this._modifiersWithKeys, SymbolSpanFontColorModifier.identity,
30946      SymbolSpanFontColorModifier, value);
30947    return this;
30948  }
30949  fontWeight(value) {
30950    let fontWeightStr = '400';
30951    if (isNumber(value)) {
30952      fontWeightStr = value.toString();
30953    } else if (isString(value)) {
30954      fontWeightStr = String(value);
30955    }
30956    modifierWithKey(this._modifiersWithKeys, SymbolSpanFontWeightModifier.identity,
30957      SymbolSpanFontWeightModifier, fontWeightStr);
30958    return this;
30959  }
30960  effectStrategy(value) {
30961    modifierWithKey(this._modifiersWithKeys, SymbolSpanEffectStrategyModifier.identity,
30962      SymbolSpanEffectStrategyModifier, value);
30963    return this;
30964  }
30965  renderingStrategy(value) {
30966    modifierWithKey(this._modifiersWithKeys, SymbolSpanRenderingStrategyModifier.identity,
30967      SymbolSpanRenderingStrategyModifier, value);
30968    return this;
30969  }
30970}
30971
30972// @ts-ignore
30973if (globalThis.SymbolSpan !== undefined) {
30974  globalThis.SymbolSpan.attributeModifier = function (modifier) {
30975    attributeModifierFuncWithoutStateStyles.call(this, modifier, (nativePtr) => {
30976      return new ArkSymbolSpanComponent(nativePtr);
30977    }, (nativePtr, classType, modifierJS) => {
30978      return new modifierJS.SymbolSpanModifier(undefined, nativePtr, classType);
30979    });
30980  };
30981}
30982
30983class ShaderInputBufferModifier extends ModifierWithKey {
30984  constructor(value) {
30985    super(value);
30986  }
30987  applyPeer(node, reset) {
30988    if (reset) {
30989      getUINativeModule().component3D.resetShaderInputBuffer(node);
30990    } else {
30991      getUINativeModule().component3D.setShaderInputBuffer(node, this.value);
30992    }
30993  }
30994  checkObjectDiff() {
30995    return !isBaseOrResourceEqual(this.stageValue, this.value);
30996  }
30997}
30998ShaderInputBufferModifier.identity = Symbol('shaderInputBuffer');
30999
31000/// <reference path='./import.ts' />
31001class ArkComponent3DComponent extends ArkComponent {
31002  constructor(nativePtr, classType) {
31003    super(nativePtr, classType);
31004  }
31005  environment(uri) {
31006    throw new Error('Method not implemented.');
31007  };
31008  customRender(uri, selfRenderUpdate) {
31009    throw new Error('Method not implemented.');
31010  };
31011  shader(uri) {
31012    throw new Error('Method not implemented.');
31013  };
31014  shaderImageTexture(uri) {
31015    throw new Error('Method not implemented.');
31016  };
31017  shaderInputBuffer(buffer) {
31018    modifierWithKey(this._modifiersWithKeys, ShaderInputBufferModifier.identity, ShaderInputBufferModifier, buffer);
31019    return this;
31020  };
31021  renderWidth(value) {
31022    throw new Error('Method not implemented.');
31023  };
31024  renderHeight(value) {
31025    throw new Error('Method not implemented.');
31026  };
31027}
31028// @ts-ignore
31029if (globalThis.Component3D !== undefined) {
31030  globalThis.Component3D.attributeModifier = function (modifier) {
31031    attributeModifierFunc.call(this, modifier, (nativePtr) => {
31032      return new ArkComponent3DComponent(nativePtr);
31033    }, (nativePtr, classType, modifierJS) => {
31034      return new modifierJS.Component3DModifier(nativePtr, classType);
31035    });
31036  };
31037}
31038
31039class ContainerSpanTextBackgroundStyleModifier extends ModifierWithKey {
31040  constructor(value) {
31041    super(value);
31042  }
31043  applyPeer(node, reset) {
31044    if (reset) {
31045      getUINativeModule().containerSpan.resetTextBackgroundStyle(node);
31046    } else {
31047      let textBackgroundStyle = new ArkTextBackGroundStyle();
31048      if (!textBackgroundStyle.convertTextBackGroundStyleOptions(this.value)) {
31049        getUINativeModule().containerSpan.resetTextBackgroundStyle(node);
31050      } else {
31051        getUINativeModule().containerSpan.setTextBackgroundStyle(node,
31052          textBackgroundStyle.color,
31053          textBackgroundStyle.radius.topLeft,
31054          textBackgroundStyle.radius.topRight,
31055          textBackgroundStyle.radius.bottomLeft,
31056          textBackgroundStyle.radius.bottomRight);
31057      }
31058    }
31059  }
31060  checkObjectDiff() {
31061    let textBackgroundStyle = new ArkTextBackGroundStyle();
31062    let stageTextBackGroundStyle = new ArkTextBackGroundStyle();
31063    if (!textBackgroundStyle.convertTextBackGroundStyleOptions(this.value) || !stageTextBackGroundStyle.convertTextBackGroundStyleOptions(this.stageValue)) {
31064      return false;
31065    } else {
31066      return textBackgroundStyle.checkObjectDiff(stageTextBackGroundStyle);
31067    }
31068  }
31069}
31070ContainerSpanTextBackgroundStyleModifier.identity = Symbol('containerSpanTextBackgroundStyle');
31071/// <reference path='./import.ts' />
31072class ArkContainerSpanComponent extends ArkComponent {
31073  constructor(nativePtr, classType) {
31074    super(nativePtr, classType);
31075  }
31076  textBackgroundStyle(value) {
31077    modifierWithKey(this._modifiersWithKeys, ContainerSpanTextBackgroundStyleModifier.identity, ContainerSpanTextBackgroundStyleModifier, value);
31078    return this;
31079  }
31080}
31081// @ts-ignore
31082if (globalThis.ContainerSpan !== undefined) {
31083  globalThis.ContainerSpan.attributeModifier = function (modifier) {
31084    attributeModifierFunc.call(this, modifier, (nativePtr) => {
31085      return new ArkContainerSpanComponent(nativePtr);
31086    }, (nativePtr, classType, modifierJS) => {
31087      return new modifierJS.ContainerSpanModifier(nativePtr, classType);
31088    });
31089  };
31090}
31091
31092function getArkUINodeFromNapi() {
31093  if (globalThis.__XNode__ === undefined) {
31094      globalThis.__XNode__ = globalThis.requireNapi('arkui.node');
31095  }
31096  return globalThis.__XNode__;
31097}
31098
31099globalThis.__getArkUINode__ = getArkUINodeFromNapi;
31100