• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2023 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' />
17const arkUINativeModule = globalThis.getArkUINativeModule();
18function getUINativeModule() {
19  if (arkUINativeModule) {
20    return arkUINativeModule;
21  }
22  return arkUINativeModule;
23}
24const UI_STATE_NORMAL = 0;
25const UI_STATE_PRESSED = 1;
26const UI_STATE_FOCUSED = 1 << 1;
27const UI_STATE_DISABLED = 1 << 2;
28const UI_STATE_SELECTED = 1 << 3;
29function applyUIAttributes(modifier, nativeNode, component) {
30  let state = 0;
31  if (modifier.applyPressedAttribute !== undefined) {
32    state |= UI_STATE_PRESSED;
33  }
34  if (modifier.applyFocusedAttribute !== undefined) {
35    state |= UI_STATE_FOCUSED;
36  }
37  if (modifier.applyDisabledAttribute !== undefined) {
38    state |= UI_STATE_DISABLED;
39  }
40  if (modifier.applySelectedAttribute !== undefined) {
41    state |= UI_STATE_SELECTED;
42  }
43  getUINativeModule().setSupportedUIState(nativeNode, state);
44  const currentUIState = getUINativeModule().getUIState(nativeNode);
45  if (modifier.applyNormalAttribute !== undefined) {
46    modifier.applyNormalAttribute(component);
47  }
48  if ((currentUIState & UI_STATE_PRESSED) && (modifier.applyPressedAttribute !== undefined)) {
49    modifier.applyPressedAttribute(component);
50  }
51  if ((currentUIState & UI_STATE_FOCUSED) && (modifier.applyFocusedAttribute !== undefined)) {
52    modifier.applyFocusedAttribute(component);
53  }
54  if ((currentUIState & UI_STATE_DISABLED) && (modifier.applyDisabledAttribute !== undefined)) {
55    modifier.applyDisabledAttribute(component);
56  }
57  if ((currentUIState & UI_STATE_SELECTED) && (modifier.applySelectedAttribute !== undefined)) {
58    modifier.applySelectedAttribute(component);
59  }
60}
61function isResource(variable) {
62  return (variable === null || variable === void 0 ? void 0 : variable.bundleName) !== undefined;
63}
64function isResourceEqual(stageValue, value) {
65  return (stageValue.bundleName === value.bundleName) &&
66    (stageValue.moduleName === value.moduleName) &&
67    (stageValue.id === value.id) &&
68    (stageValue.params === value.params) &&
69    (stageValue.type === value.type);
70}
71function isBaseOrResourceEqual(stageValue, value) {
72  if (isResource(stageValue) && isResource(value)) {
73    return isResourceEqual(stageValue, value);
74  }
75  else if (!isResource(stageValue) && !isResource(value)) {
76    return (stageValue === value);
77  }
78  return false;
79}
80const SAFE_AREA_TYPE_NONE = 0;
81const SAFE_AREA_TYPE_SYSTEM = 1;
82const SAFE_AREA_TYPE_CUTOUT = 2;
83const SAFE_AREA_TYPE_KEYBOARD = 4;
84const SAFE_AREA_TYPE_ALL = 7;
85const SAFE_AREA_EDGE_NONE = 0;
86const SAFE_AREA_EDGE_TOP = 1;
87const SAFE_AREA_EDGE_BOTTOM = 2;
88const SAFE_AREA_EDGE_START = 4;
89const SAFE_AREA_EDGE_END = 8;
90const SAFE_AREA_EDGE_ALL = 15;
91const SAFE_AREA_TYPE_LIMIT = 3;
92const SAFE_AREA_EDGE_LIMIT = 4;
93const DIRECTION_RANGE = 3;
94class Modifier {
95  constructor(value) {
96    this.stageValue = value;
97  }
98  applyStage(node) {
99    if (this.stageValue === this.value) {
100      if (this.value === undefined) {
101        this.applyPeer(node, true);
102      }
103      delete this.stageValue;
104      return;
105    }
106    if (typeof this.stageValue === 'object' && typeof this.value === 'object') {
107      if (this.stageValue.isEqual(this.value)) {
108        delete this.stageValue;
109        return;
110      }
111    }
112    this.value = this.stageValue;
113    delete this.stageValue;
114    this.applyPeer(node, this.value === undefined);
115    return (this.value === undefined);
116  }
117  applyPeer(node, reset) { }
118}
119class ModifierWithKey {
120  constructor(value) {
121    this.stageValue = value;
122  }
123  applyStage(node) {
124    if (this.stageValue === undefined || this.stageValue === null) {
125      this.value = this.stageValue;
126      this.applyPeer(node, true);
127      return true;
128    }
129    const stageTypeInfo = typeof this.stageValue;
130    const valueTypeInfo = typeof this.value;
131    let different = false;
132    if (stageTypeInfo !== valueTypeInfo) {
133      different = true;
134    }
135    else if (stageTypeInfo === 'number' || stageTypeInfo === 'string' || stageTypeInfo === 'boolean') {
136      different = (this.stageValue !== this.value);
137    }
138    else {
139      different = this.checkObjectDiff();
140    }
141    if (different) {
142      this.value = this.stageValue;
143      this.applyPeer(node, false);
144    }
145    this.stageValue = undefined;
146    return false;
147  }
148  applyPeer(node, reset) { }
149  checkObjectDiff() {
150    return true;
151  }
152}
153class BackgroundColorModifier extends ModifierWithKey {
154  constructor(value) {
155    super(value);
156  }
157  applyPeer(node, reset) {
158    if (reset) {
159      getUINativeModule().common.resetBackgroundColor(node);
160    }
161    else {
162      getUINativeModule().common.setBackgroundColor(node, this.value);
163    }
164  }
165  checkObjectDiff() {
166    return !isBaseOrResourceEqual(this.stageValue, this.value);
167  }
168}
169BackgroundColorModifier.identity = Symbol('backgroundColor');
170class WidthModifier extends ModifierWithKey {
171  constructor(value) {
172    super(value);
173  }
174  applyPeer(node, reset) {
175    if (reset) {
176      getUINativeModule().common.resetWidth(node);
177    }
178    else {
179      getUINativeModule().common.setWidth(node, this.value);
180    }
181  }
182  checkObjectDiff() {
183    return !isBaseOrResourceEqual(this.stageValue, this.value);
184  }
185}
186WidthModifier.identity = Symbol('width');
187class BorderWidthModifier extends ModifierWithKey {
188  constructor(value) {
189    super(value);
190  }
191  applyPeer(node, reset) {
192    if (reset) {
193      getUINativeModule().common.resetBorderWidth(node);
194    }
195    else {
196      if (isNumber(this.value) || isString(this.value) || isResource(this.value)) {
197        getUINativeModule().common.setBorderWidth(node, this.value, this.value, this.value, this.value);
198      }
199      else {
200        getUINativeModule().common.setBorderWidth(node, this.value.left, this.value.right, this.value.top, this.value.bottom);
201      }
202    }
203  }
204  checkObjectDiff() {
205    if (isResource(this.stageValue) && isResource(this.value)) {
206      return !isResourceEqual(this.stageValue, this.value);
207    }
208    else if (!isResource(this.stageValue) && !isResource(this.value)) {
209      return !(this.stageValue.left === this.value.left &&
210        this.stageValue.right === this.value.right &&
211        this.stageValue.top === this.value.top &&
212        this.stageValue.bottom === this.value.bottom);
213    }
214    else {
215      return true;
216    }
217  }
218}
219BorderWidthModifier.identity = Symbol('borderWidth');
220class HeightModifier extends ModifierWithKey {
221  constructor(value) {
222    super(value);
223  }
224  applyPeer(node, reset) {
225    if (reset) {
226      getUINativeModule().common.resetHeight(node);
227    }
228    else {
229      getUINativeModule().common.setHeight(node, this.value);
230    }
231  }
232  checkObjectDiff() {
233    return !isBaseOrResourceEqual(this.stageValue, this.value);
234  }
235}
236HeightModifier.identity = Symbol('height');
237class BorderRadiusModifier extends ModifierWithKey {
238  constructor(value) {
239    super(value);
240  }
241  applyPeer(node, reset) {
242    if (reset) {
243      getUINativeModule().common.resetBorderRadius(node);
244    }
245    else {
246      if (isNumber(this.value) || isString(this.value) || isResource(this.value)) {
247        getUINativeModule().common.setBorderRadius(node, this.value, this.value, this.value, this.value);
248      }
249      else {
250        getUINativeModule().common.setBorderRadius(node, this.value.topLeft, this.value.topRight, this.value.bottomLeft, this.value.bottomRight);
251      }
252    }
253  }
254  checkObjectDiff() {
255    if (isResource(this.stageValue) && isResource(this.value)) {
256      return !isResourceEqual(this.stageValue, this.value);
257    }
258    else if (!isResource(this.stageValue) && !isResource(this.value)) {
259      return !(this.stageValue.topLeft === this.value.topLeft &&
260        this.stageValue.topRight === this.value.topRight &&
261        this.stageValue.bottomLeft === this.value.bottomLeft &&
262        this.stageValue.bottomRight === this.value.bottomRight);
263    }
264    else {
265      return true;
266    }
267  }
268}
269BorderRadiusModifier.identity = Symbol('borderRadius');
270class PositionModifier extends ModifierWithKey {
271  constructor(value) {
272    super(value);
273  }
274  applyPeer(node, reset) {
275    if (reset) {
276      getUINativeModule().common.resetPosition(node);
277    }
278    else {
279      getUINativeModule().common.setPosition(node, this.value.x, this.value.y);
280    }
281  }
282  checkObjectDiff() {
283    return !isBaseOrResourceEqual(this.stageValue.x, this.value.x) ||
284      !isBaseOrResourceEqual(this.stageValue.y, this.value.y);
285  }
286}
287PositionModifier.identity = Symbol('position');
288class BorderColorModifier extends ModifierWithKey {
289  constructor(value) {
290    super(value);
291  }
292  applyPeer(node, reset) {
293    if (reset) {
294      getUINativeModule().common.resetBorderColor(node);
295    }
296    else {
297      const valueType = typeof this.value;
298      if (valueType === 'number' || valueType === 'string' || isResource(this.value)) {
299        getUINativeModule().common.setBorderColor(node, this.value, this.value, this.value, this.value);
300      }
301      else {
302        getUINativeModule().common.setBorderColor(node, this.value.left, this.value.right, this.value.top, this.value.bottom);
303      }
304    }
305  }
306  checkObjectDiff() {
307    if (isResource(this.stageValue) && isResource(this.value)) {
308      return !isResourceEqual(this.stageValue, this.value);
309    }
310    else if (!isResource(this.stageValue) && !isResource(this.value)) {
311      return !(this.stageValue.left === this.value.left &&
312        this.stageValue.right === this.value.right &&
313        this.stageValue.top === this.value.top &&
314        this.stageValue.bottom === this.value.bottom);
315    }
316    else {
317      return true;
318    }
319  }
320}
321BorderColorModifier.identity = Symbol('borderColor');
322class TransformModifier extends ModifierWithKey {
323  constructor(value) {
324    super(value);
325  }
326  applyPeer(node, reset) {
327    if (reset) {
328      getUINativeModule().common.resetTransform(node);
329    }
330    else {
331      getUINativeModule().common.setTransform(node, this.value.matrix4x4);
332    }
333  }
334  checkObjectDiff() {
335    return !deepCompareArrays(this.stageValue.matrix4x4, this.value.matrix4x4);
336  }
337}
338TransformModifier.identity = Symbol('transform');
339class BorderStyleModifier extends ModifierWithKey {
340  constructor(value) {
341    super(value);
342  }
343  applyPeer(node, reset) {
344    let _a, _b, _c, _d;
345    if (reset) {
346      getUINativeModule().common.resetBorderStyle(node);
347    }
348    else {
349      let type;
350      let style;
351      let top;
352      let right;
353      let bottom;
354      let left;
355      if (isNumber(this.value)) {
356        style = this.value;
357        type = true;
358      }
359      else if (isObject(this.value)) {
360        top = (_a = this.value) === null || _a === void 0 ? void 0 : _a.top;
361        right = (_b = this.value) === null || _b === void 0 ? void 0 : _b.right;
362        bottom = (_c = this.value) === null || _c === void 0 ? void 0 : _c.bottom;
363        left = (_d = this.value) === null || _d === void 0 ? void 0 : _d.left;
364        type = true;
365      }
366      if (type === true) {
367        getUINativeModule().common.setBorderStyle(node, type, style, top, right, bottom, left);
368      }
369      else {
370        getUINativeModule().common.resetBorderStyle(node);
371      }
372    }
373  }
374  checkObjectDiff() {
375    let _a, _b, _c, _d, _e, _f, _g, _h;
376    return !(((_a = this.value) === null || _a === void 0 ? void 0 : _a.top) === ((_b = this.stageValue) === null || _b === void 0 ? void 0 : _b.top) &&
377      ((_c = this.value) === null || _c === void 0 ? void 0 : _c.right) === ((_d = this.stageValue) === null || _d === void 0 ? void 0 : _d.right) &&
378      ((_e = this.value) === null || _e === void 0 ? void 0 : _e.bottom) === ((_f = this.stageValue) === null || _f === void 0 ? void 0 : _f.bottom) &&
379      ((_g = this.value) === null || _g === void 0 ? void 0 : _g.left) === ((_h = this.stageValue) === null || _h === void 0 ? void 0 : _h.left));
380  }
381}
382BorderStyleModifier.identity = Symbol('borderStyle');
383class ShadowModifier extends ModifierWithKey {
384  constructor(value) {
385    super(value);
386  }
387  applyPeer(node, reset) {
388    if (reset) {
389      getUINativeModule().common.resetShadow(node);
390    }
391    else {
392      if (isNumber(this.value)) {
393        getUINativeModule().common.setShadow(node, this.value, undefined, undefined, undefined, undefined, undefined, undefined);
394      }
395      else {
396        getUINativeModule().common.setShadow(node, undefined, this.value.radius,
397          this.value.type, this.value.color,
398          this.value.offsetX, this.value.offsetY, this.value.fill);
399      }
400    }
401  }
402  checkObjectDiff() {
403    return !(this.stageValue.radius === this.value.radius &&
404      this.stageValue.type === this.value.type &&
405      this.stageValue.color === this.value.color &&
406      this.stageValue.offsetX === this.value.offsetX &&
407      this.stageValue.offsetY === this.value.offsetY &&
408      this.stageValue.fill === this.value.fill);
409  }
410}
411ShadowModifier.identity = Symbol('shadow');
412class HitTestBehaviorModifier extends ModifierWithKey {
413  constructor(value) {
414    super(value);
415  }
416  applyPeer(node, reset) {
417    if (reset) {
418      getUINativeModule().common.resetHitTestBehavior(node);
419    }
420    else {
421      getUINativeModule().common.setHitTestBehavior(node, this.value);
422    }
423  }
424}
425HitTestBehaviorModifier.identity = Symbol('hitTestBehavior');
426class ZIndexModifier extends ModifierWithKey {
427  constructor(value) {
428    super(value);
429  }
430  applyPeer(node, reset) {
431    if (reset) {
432      getUINativeModule().common.resetZIndex(node);
433    }
434    else {
435      getUINativeModule().common.setZIndex(node, this.value);
436    }
437  }
438}
439ZIndexModifier.identity = Symbol('zIndex');
440class OpacityModifier extends ModifierWithKey {
441  constructor(value) {
442    super(value);
443  }
444  applyPeer(node, reset) {
445    if (reset) {
446      getUINativeModule().common.resetOpacity(node);
447    }
448    else {
449      getUINativeModule().common.setOpacity(node, this.value);
450    }
451  }
452  checkObjectDiff() {
453    return !isBaseOrResourceEqual(this.stageValue, this.value);
454  }
455}
456OpacityModifier.identity = Symbol('opacity');
457class AlignModifier extends ModifierWithKey {
458  constructor(value) {
459    super(value);
460  }
461  applyPeer(node, reset) {
462    if (reset) {
463      getUINativeModule().common.resetAlign(node);
464    }
465    else {
466      getUINativeModule().common.setAlign(node, this.value);
467    }
468  }
469}
470AlignModifier.identity = Symbol('align');
471class BackdropBlurModifier extends ModifierWithKey {
472  constructor(value) {
473    super(value);
474  }
475  applyPeer(node, reset) {
476    if (reset) {
477      getUINativeModule().common.resetBackdropBlur(node);
478    }
479    else {
480      getUINativeModule().common.setBackdropBlur(node, this.value);
481    }
482  }
483}
484BackdropBlurModifier.identity = Symbol('backdropBlur');
485class HueRotateModifier extends ModifierWithKey {
486  constructor(value) {
487    super(value);
488  }
489  applyPeer(node, reset) {
490    if (reset) {
491      getUINativeModule().common.resetHueRotate(node);
492    }
493    else {
494      getUINativeModule().common.setHueRotate(node, this.value);
495    }
496  }
497}
498HueRotateModifier.identity = Symbol('hueRotate');
499class InvertModifier extends ModifierWithKey {
500  constructor(value) {
501    super(value);
502  }
503  applyPeer(node, reset) {
504    if (reset) {
505      getUINativeModule().common.resetInvert(node);
506    }
507    else {
508      getUINativeModule().common.setInvert(node, this.value);
509    }
510  }
511}
512InvertModifier.identity = Symbol('invert');
513class SepiaModifier extends ModifierWithKey {
514  constructor(value) {
515    super(value);
516  }
517  applyPeer(node, reset) {
518    if (reset) {
519      getUINativeModule().common.resetSepia(node);
520    }
521    else {
522      getUINativeModule().common.setSepia(node, this.value);
523    }
524  }
525}
526SepiaModifier.identity = Symbol('sepia');
527class SaturateModifier extends ModifierWithKey {
528  constructor(value) {
529    super(value);
530  }
531  applyPeer(node, reset) {
532    if (reset) {
533      getUINativeModule().common.resetSaturate(node);
534    }
535    else {
536      getUINativeModule().common.setSaturate(node, this.value);
537    }
538  }
539}
540SaturateModifier.identity = Symbol('saturate');
541class ColorBlendModifier extends ModifierWithKey {
542  constructor(value) {
543    super(value);
544  }
545  applyPeer(node, reset) {
546    if (reset) {
547      getUINativeModule().common.resetColorBlend(node);
548    }
549    else {
550      getUINativeModule().common.setColorBlend(node, this.value);
551    }
552  }
553  checkObjectDiff() {
554    return !isBaseOrResourceEqual(this.stageValue, this.value);
555  }
556}
557ColorBlendModifier.identity = Symbol('colorBlend');
558class GrayscaleModifier extends ModifierWithKey {
559  constructor(value) {
560    super(value);
561  }
562  applyPeer(node, reset) {
563    if (reset) {
564      getUINativeModule().common.resetGrayscale(node);
565    }
566    else {
567      getUINativeModule().common.setGrayscale(node, this.value);
568    }
569  }
570}
571GrayscaleModifier.identity = Symbol('grayscale');
572class ContrastModifier extends ModifierWithKey {
573  constructor(value) {
574    super(value);
575  }
576  applyPeer(node, reset) {
577    if (reset) {
578      getUINativeModule().common.resetContrast(node);
579    }
580    else {
581      getUINativeModule().common.setContrast(node, this.value);
582    }
583  }
584}
585ContrastModifier.identity = Symbol('contrast');
586class BrightnessModifier extends ModifierWithKey {
587  constructor(value) {
588    super(value);
589  }
590  applyPeer(node, reset) {
591    if (reset) {
592      getUINativeModule().common.resetBrightness(node);
593    }
594    else {
595      getUINativeModule().common.setBrightness(node, this.value);
596    }
597  }
598}
599BrightnessModifier.identity = Symbol('brightness');
600class BlurModifier extends ModifierWithKey {
601  constructor(value) {
602    super(value);
603  }
604  applyPeer(node, reset) {
605    if (reset) {
606      getUINativeModule().common.resetBlur(node);
607    }
608    else {
609      getUINativeModule().common.setBlur(node, this.value);
610    }
611  }
612}
613BlurModifier.identity = Symbol('blur');
614class LinearGradientModifier extends ModifierWithKey {
615  constructor(value) {
616    super(value);
617  }
618  applyPeer(node, reset) {
619    if (reset) {
620      getUINativeModule().common.resetLinearGradient(node);
621    }
622    else {
623      getUINativeModule().common.setLinearGradient(node, this.value.angle, this.value.direction, this.value.colors, this.value.repeating);
624    }
625  }
626  checkObjectDiff() {
627    return !((this.stageValue.angle === this.value.angle) &&
628      (this.stageValue.direction === this.value.direction) &&
629      (this.stageValue.colors === this.value.colors) &&
630      (this.stageValue.repeating === this.value.repeating));
631  }
632}
633LinearGradientModifier.identity = Symbol('linearGradient');
634class RadialGradientModifier extends ModifierWithKey {
635  constructor(value) {
636    super(value);
637  }
638  applyPeer(node, reset) {
639    if (reset) {
640      getUINativeModule().common.resetRadialGradient(node);
641    }
642    else {
643      getUINativeModule().common.setRadialGradient(node, this.value.center, this.value.radius, this.value.colors, this.value.repeating);
644    }
645  }
646  checkObjectDiff() {
647    return !((this.stageValue.center === this.value.center) &&
648      (this.stageValue.radius === this.value.radius) &&
649      (this.stageValue.colors === this.value.colors) &&
650      (this.stageValue.repeating === this.value.repeating));
651  }
652}
653RadialGradientModifier.identity = Symbol('radialGradient');
654class SweepGradientModifier extends ModifierWithKey {
655  constructor(value) {
656    super(value);
657  }
658  applyPeer(node, reset) {
659    if (reset) {
660      getUINativeModule().common.resetSweepGradient(node);
661    }
662    else {
663      getUINativeModule().common.setSweepGradient(node, this.value.center, this.value.start,
664        this.value.end, this.value.rotation, this.value.colors, this.value.repeating);
665    }
666  }
667  checkObjectDiff() {
668    return !((this.stageValue.center === this.value.center) &&
669      (this.stageValue.start === this.value.start) &&
670      (this.stageValue.end === this.value.end) &&
671      (this.stageValue.rotation === this.value.rotation) &&
672      (this.stageValue.colors === this.value.colors) &&
673      (this.stageValue.repeating === this.value.repeating));
674  }
675}
676SweepGradientModifier.identity = Symbol('sweepGradient');
677class OverlayModifier extends ModifierWithKey {
678  constructor(value) {
679    super(value);
680  }
681  applyPeer(node, reset) {
682    if (reset) {
683      getUINativeModule().common.resetOverlay(node);
684    }
685    else {
686      getUINativeModule().common.setOverlay(node, this.value.value, this.value.align,
687        this.value.offsetX, this.value.offsetY, this.value.hasOptions, this.value.hasOffset);
688    }
689  }
690  checkObjectDiff() {
691    if (isUndefined(this.value)) {
692      return !isUndefined(this.stageValue);
693    }
694    return this.value.checkObjectDiff(this.stageValue);
695  }
696}
697OverlayModifier.identity = Symbol('overlay');
698class BorderImageModifier extends ModifierWithKey {
699  constructor(value) {
700    super(value);
701  }
702  applyPeer(node, reset) {
703    if (reset) {
704      getUINativeModule().common.resetBorderImage(node);
705    }
706    else {
707      let sliceTop;
708      let sliceRight;
709      let sliceBottom;
710      let sliceLeft;
711      let repeat;
712      let source;
713      let sourceAngle;
714      let sourceDirection;
715      let sourceColors;
716      let sourceRepeating;
717      let widthTop;
718      let widthRight;
719      let widthBottom;
720      let widthLeft;
721      let outsetTop;
722      let outsetRight;
723      let outsetBottom;
724      let outsetLeft;
725      let fill;
726      if (!isUndefined(this.value.slice)) {
727        if (isLengthType(this.value.slice) || isResource(this.value.slice)) {
728          let tmpSlice = this.value.slice;
729          sliceTop = tmpSlice;
730          sliceRight = tmpSlice;
731          sliceBottom = tmpSlice;
732          sliceLeft = tmpSlice;
733        }
734        else {
735          let tmpSlice = this.value.slice;
736          sliceTop = tmpSlice.top;
737          sliceRight = tmpSlice.right;
738          sliceBottom = tmpSlice.bottom;
739          sliceLeft = tmpSlice.left;
740        }
741      }
742      repeat = this.value.repeat;
743      if (!isUndefined(this.value.source)) {
744        if (isString(this.value.source) || isResource(this.value.source)) {
745          source = this.value.source;
746        }
747        else {
748          let tmpSource = this.value.source;
749          sourceAngle = tmpSource.angle;
750          sourceDirection = tmpSource.direction;
751          sourceColors = tmpSource.colors;
752          sourceRepeating = tmpSource.repeating;
753        }
754      }
755      if (!isUndefined(this.value.width)) {
756        if (isLengthType(this.value.width) || isResource(this.value.width)) {
757          let tmpWidth = this.value.width;
758          widthTop = tmpWidth;
759          widthRight = tmpWidth;
760          widthBottom = tmpWidth;
761          widthLeft = tmpWidth;
762        }
763        else {
764          let tmpWidth = this.value.width;
765          widthTop = tmpWidth.top;
766          widthRight = tmpWidth.right;
767          widthBottom = tmpWidth.bottom;
768          widthLeft = tmpWidth.left;
769        }
770      }
771      if (!isUndefined(this.value.outset)) {
772        if (isLengthType(this.value.outset) || isResource(this.value.outset)) {
773          let tmpOutset = this.value.outset;
774          outsetTop = tmpOutset;
775          outsetRight = tmpOutset;
776          outsetBottom = tmpOutset;
777          outsetLeft = tmpOutset;
778        }
779        else {
780          let tmpOutset = this.value.outset;
781          outsetTop = tmpOutset.top;
782          outsetRight = tmpOutset.right;
783          outsetBottom = tmpOutset.bottom;
784          outsetLeft = tmpOutset.left;
785        }
786      }
787      fill = this.value.fill;
788      getUINativeModule().common.setBorderImage(node, sliceTop, sliceRight, sliceBottom,
789        sliceLeft, repeat, source, sourceAngle, sourceDirection, sourceColors, sourceRepeating,
790        widthTop, widthRight, widthBottom, widthLeft, outsetTop, outsetRight, outsetBottom,
791        outsetLeft, fill);
792    }
793  }
794}
795BorderImageModifier.identity = Symbol('borderImage');
796class BorderModifier extends ModifierWithKey {
797  constructor(value) {
798    super(value);
799  }
800  applyPeer(node, reset) {
801    if (reset) {
802      getUINativeModule().common.resetBorder(node);
803    }
804    else {
805      getUINativeModule().common.setBorder(node, this.value.arkWidth.left,
806        this.value.arkWidth.right, this.value.arkWidth.top, this.value.arkWidth.bottom,
807        this.value.arkColor.leftColor, this.value.arkColor.rightColor,
808        this.value.arkColor.topColor, this.value.arkColor.bottomColor,
809        this.value.arkRadius.topLeft, this.value.arkRadius.topRight,
810        this.value.arkRadius.bottomLeft, this.value.arkRadius.bottomRight,
811        this.value.arkStyle.top, this.value.arkStyle.right, this.value.arkStyle.bottom,
812        this.value.arkStyle.left);
813    }
814  }
815  checkObjectDiff() {
816    return this.value.checkObjectDiff(this.stageValue);
817  }
818}
819BorderModifier.identity = Symbol('border');
820class OutlineColorModifier extends ModifierWithKey {
821  constructor(value) {
822    super(value);
823  }
824  applyPeer(node, reset) {
825    if (reset) {
826      getUINativeModule().common.resetOutlineColor(node);
827    }
828    else {
829      const valueType = typeof this.value;
830      if (valueType === 'number' || valueType === 'string' || isResource(this.value)) {
831        getUINativeModule().common.setOutlineColor(node, this.value, this.value, this.value, this.value);
832      }
833      else {
834        getUINativeModule().common.setOutlineColor(node, this.value.left, this.value.right, this.value.top, this.value.bottom);
835      }
836    }
837  }
838  checkObjectDiff() {
839    if (isResource(this.stageValue) && isResource(this.value)) {
840      return !isResourceEqual(this.stageValue, this.value);
841    }
842    else if (!isResource(this.stageValue) && !isResource(this.value)) {
843      return !(this.stageValue.left === this.value.left &&
844        this.stageValue.right === this.value.right &&
845        this.stageValue.top === this.value.top &&
846        this.stageValue.bottom === this.value.bottom);
847    }
848    else {
849      return true;
850    }
851  }
852}
853OutlineColorModifier.identity = Symbol('outlineColor');
854class OutlineRadiusModifier extends ModifierWithKey {
855  constructor(value) {
856    super(value);
857  }
858  applyPeer(node, reset) {
859    if (reset) {
860      getUINativeModule().common.resetOutlineRadius(node);
861    }
862    else {
863      const valueType = typeof this.value;
864      if (valueType === 'number' || valueType === 'string' || isResource(this.value)) {
865        getUINativeModule().common.setOutlineRadius(node, this.value, this.value, this.value, this.value);
866      }
867      else {
868        getUINativeModule().common.setOutlineRadius(node, this.value.topLeft, this.value.topRight, this.value.bottomLeft, this.value.bottomRight);
869      }
870    }
871  }
872  checkObjectDiff() {
873    if (isResource(this.stageValue) && isResource(this.value)) {
874      return !isResourceEqual(this.stageValue, this.value);
875    }
876    else if (!isResource(this.stageValue) && !isResource(this.value)) {
877      return !(this.stageValue.topLeft === this.value.topLeft &&
878        this.stageValue.topRight === this.value.topRight &&
879        this.stageValue.bottomLeft === this.value.bottomLeft &&
880        this.stageValue.bottomRight === this.value.bottomRight);
881    }
882    else {
883      return true;
884    }
885  }
886}
887OutlineRadiusModifier.identity = Symbol('outlineRadius');
888class OutlineStyleModifier extends ModifierWithKey {
889  constructor(value) {
890    super(value);
891  }
892  applyPeer(node, reset) {
893    if (reset) {
894      getUINativeModule().common.resetOutlineStyle(node);
895    }
896    else {
897      if (isNumber(this.value)) {
898        getUINativeModule().common.setOutlineStyle(node, this.value, this.value, this.value, this.value);
899      }
900      else {
901        getUINativeModule().common.setOutlineStyle(node, this.value.top, this.value.right, this.value.bottom, this.value.left);
902      }
903    }
904  }
905  checkObjectDiff() {
906    return !(this.value.top === this.stageValue.top &&
907      this.value.right === this.stageValue.right &&
908      this.value.bottom === this.stageValue.bottom &&
909      this.value.left === this.stageValue.left);
910  }
911}
912OutlineStyleModifier.identity = Symbol('outlineStyle');
913class OutlineWidthModifier extends ModifierWithKey {
914  constructor(value) {
915    super(value);
916  }
917  applyPeer(node, reset) {
918    if (reset) {
919      getUINativeModule().common.resetOutlineWidth(node);
920    }
921    else {
922      if (isNumber(this.value) || isString(this.value) || isResource(this.value)) {
923        getUINativeModule().common.setOutlineWidth(node, this.value, this.value, this.value, this.value);
924      }
925      else {
926        getUINativeModule().common.setOutlineWidth(node, this.value.left, this.value.right, this.value.top, this.value.bottom);
927      }
928    }
929  }
930  checkObjectDiff() {
931    if (isResource(this.stageValue) && isResource(this.value)) {
932      return !isResourceEqual(this.stageValue, this.value);
933    }
934    else if (!isResource(this.stageValue) && !isResource(this.value)) {
935      return !(this.stageValue.left === this.value.left &&
936        this.stageValue.right === this.value.right &&
937        this.stageValue.top === this.value.top &&
938        this.stageValue.bottom === this.value.bottom);
939    }
940    else {
941      return true;
942    }
943  }
944}
945OutlineWidthModifier.identity = Symbol('outlineWidth');
946class OutlineModifier extends ModifierWithKey {
947  constructor(value) {
948    super(value);
949  }
950  applyPeer(node, reset) {
951    if (reset) {
952      getUINativeModule().common.resetOutline(node);
953    }
954    else {
955      let widthLeft;
956      let widthRight;
957      let widthTop;
958      let widthBottom;
959      if (!isUndefined(this.value.width) && this.value.width != null) {
960        if (isNumber(this.value.width) || isString(this.value.width) || isResource(this.value.width)) {
961          widthLeft = this.value.width;
962          widthRight = this.value.width;
963          widthTop = this.value.width;
964          widthBottom = this.value.width;
965        }
966        else {
967          widthLeft = this.value.width.left;
968          widthRight = this.value.width.right;
969          widthTop = this.value.width.top;
970          widthBottom = this.value.width.bottom;
971        }
972      }
973      let leftColor;
974      let rightColor;
975      let topColor;
976      let bottomColor;
977      if (!isUndefined(this.value.color) && this.value.color != null) {
978        if (isNumber(this.value.color) || isString(this.value.color) || isResource(this.value.color)) {
979          leftColor = this.value.color;
980          rightColor = this.value.color;
981          topColor = this.value.color;
982          bottomColor = this.value.color;
983        }
984        else {
985          leftColor = this.value.color.left;
986          rightColor = this.value.color.right;
987          topColor = this.value.color.top;
988          bottomColor = this.value.color.bottom;
989        }
990      }
991      let topLeft;
992      let topRight;
993      let bottomLeft;
994      let bottomRight;
995      if (!isUndefined(this.value.radius) && this.value.radius != null) {
996        if (isNumber(this.value.radius) || isString(this.value.radius) || isResource(this.value.radius)) {
997          topLeft = this.value.radius;
998          topRight = this.value.radius;
999          bottomLeft = this.value.radius;
1000          bottomRight = this.value.radius;
1001        }
1002        else {
1003          topLeft = this.value.radius.topLeft;
1004          topRight = this.value.radius.topRight;
1005          bottomLeft = this.value.radius.bottomLeft;
1006          bottomRight = this.value.radius.bottomRight;
1007        }
1008      }
1009      let styleTop;
1010      let styleRight;
1011      let styleBottom;
1012      let styleLeft;
1013      if (!isUndefined(this.value.style) && this.value.style != null) {
1014        if (isNumber(this.value.style) || isString(this.value.style) || isResource(this.value.style)) {
1015          styleTop = this.value.style;
1016          styleRight = this.value.style;
1017          styleBottom = this.value.style;
1018          styleLeft = this.value.style;
1019        }
1020        else {
1021          styleTop = this.value.style.top;
1022          styleRight = this.value.style.right;
1023          styleBottom = this.value.style.bottom;
1024          styleLeft = this.value.style.left;
1025        }
1026      }
1027      getUINativeModule().common.setOutline(node, widthLeft, widthRight, widthTop, widthBottom,
1028        leftColor, rightColor, topColor, bottomColor,
1029        topLeft, topRight, bottomLeft, bottomRight,
1030        styleTop, styleRight, styleBottom, styleLeft);
1031    }
1032  }
1033  checkObjectDiff() {
1034    return !isBaseOrResourceEqual(this.stageValue.width, this.value.width) ||
1035      !isBaseOrResourceEqual(this.stageValue.color, this.value.color) ||
1036      !isBaseOrResourceEqual(this.stageValue.radius, this.value.radius) ||
1037      !isBaseOrResourceEqual(this.stageValue.style, this.value.style);
1038  }
1039}
1040OutlineModifier.identity = Symbol('outline');
1041class ForegroundBlurStyleModifier extends ModifierWithKey {
1042  constructor(value) {
1043    super(value);
1044  }
1045  applyPeer(node, reset) {
1046    if (reset) {
1047      getUINativeModule().common.resetForegroundBlurStyle(node);
1048    }
1049    else {
1050      getUINativeModule().common.setForegroundBlurStyle(node, this.value.blurStyle, this.value.colorMode, this.value.adaptiveColor, this.value.scale);
1051    }
1052  }
1053  checkObjectDiff() {
1054    return !(this.stageValue.blurStyle === this.value.blurStyle &&
1055      this.stageValue.colorMode === this.value.colorMode &&
1056      this.stageValue.adaptiveColor === this.value.adaptiveColor &&
1057      this.stageValue.scale === this.value.scale);
1058  }
1059}
1060ForegroundBlurStyleModifier.identity = Symbol('foregroundBlurStyle');
1061class BackgroundImagePositionModifier extends ModifierWithKey {
1062  constructor(value) {
1063    super(value);
1064  }
1065  applyPeer(node, reset) {
1066    let _a, _b;
1067    if (reset) {
1068      getUINativeModule().common.resetBackgroundImagePosition(node);
1069    }
1070    else {
1071      if (isNumber(this.value)) {
1072        getUINativeModule().common.setBackgroundImagePosition(node, this.value, undefined, undefined);
1073      }
1074      else {
1075        getUINativeModule().common.setBackgroundImagePosition(node, undefined,
1076          (_a = this.value) === null || _a === void 0 ? void 0 : _a.x,
1077          (_b = this.value) === null || _b === void 0 ? void 0 : _b.y);
1078      }
1079    }
1080  }
1081  checkObjectDiff() {
1082    let _a, _b, _c, _d;
1083    return !(((_a = this.value) === null || _a === void 0 ? void 0 : _a.x) === ((_b = this.stageValue) === null || _b === void 0 ? void 0 : _b.x) &&
1084      ((_c = this.value) === null || _c === void 0 ? void 0 : _c.y) === ((_d = this.stageValue) === null || _d === void 0 ? void 0 : _d.y));
1085  }
1086}
1087BackgroundImagePositionModifier.identity = Symbol('backgroundImagePosition');
1088class LinearGradientBlurModifier extends ModifierWithKey {
1089  constructor(value) {
1090    super(value);
1091  }
1092  applyPeer(node, reset) {
1093    if (reset) {
1094      getUINativeModule().common.resetLinearGradientBlur(node);
1095    }
1096    else {
1097      getUINativeModule().common.setLinearGradientBlur(node, this.value.blurRadius, this.value.fractionStops, this.value.direction);
1098    }
1099  }
1100  checkObjectDiff() {
1101    return !this.value.isEqual(this.stageValue);
1102  }
1103}
1104LinearGradientBlurModifier.identity = Symbol('linearGradientBlur');
1105class BackgroundImageModifier extends ModifierWithKey {
1106  constructor(value) {
1107    super(value);
1108  }
1109  applyPeer(node, reset) {
1110    if (reset) {
1111      getUINativeModule().common.resetBackgroundImage(node);
1112    }
1113    else {
1114      getUINativeModule().common.setBackgroundImage(node, this.value.src, this.value.repeat);
1115    }
1116  }
1117  checkObjectDiff() {
1118    return !(this.stageValue.src === this.value.src &&
1119      this.stageValue.repeat === this.value.repeat);
1120  }
1121}
1122BackgroundImageModifier.identity = Symbol('backgroundImage');
1123class BackgroundBlurStyleModifier extends ModifierWithKey {
1124  constructor(value) {
1125    super(value);
1126  }
1127  applyPeer(node, reset) {
1128    if (reset) {
1129      getUINativeModule().common.resetBackgroundBlurStyle(node);
1130    }
1131    else {
1132      getUINativeModule().common.setBackgroundBlurStyle(node, this.value.blurStyle, this.value.colorMode, this.value.adaptiveColor, this.value.scale);
1133    }
1134  }
1135}
1136BackgroundBlurStyleModifier.identity = Symbol('backgroundBlurStyle');
1137class BackgroundImageSizeModifier extends ModifierWithKey {
1138  constructor(value) {
1139    super(value);
1140  }
1141  applyPeer(node, reset) {
1142    let _a, _b;
1143    if (reset) {
1144      getUINativeModule().common.resetBackgroundImageSize(node);
1145    }
1146    else {
1147      if (isNumber(this.value)) {
1148        getUINativeModule().common.setBackgroundImageSize(node, this.value, undefined, undefined);
1149      }
1150      else {
1151        getUINativeModule().common.setBackgroundImageSize(node, undefined,
1152          (_a = this.value) === null || _a === void 0 ? void 0 : _a.width,
1153          (_b = this.value) === null || _b === void 0 ? void 0 : _b.height);
1154      }
1155    }
1156  }
1157  checkObjectDiff() {
1158    return !(this.value.width === this.stageValue.width &&
1159      this.value.height === this.stageValue.height);
1160  }
1161}
1162BackgroundImageSizeModifier.identity = Symbol('backgroundImageSize');
1163class TranslateModifier extends ModifierWithKey {
1164  constructor(value) {
1165    super(value);
1166  }
1167  applyPeer(node, reset) {
1168    if (reset) {
1169      getUINativeModule().common.resetTranslate(node);
1170    }
1171    else {
1172      getUINativeModule().common.setTranslate(node, this.value.x, this.value.y, this.value.z);
1173    }
1174  }
1175  checkObjectDiff() {
1176    return !(this.value.x === this.stageValue.x &&
1177      this.value.y === this.stageValue.y &&
1178      this.value.z === this.stageValue.z);
1179  }
1180}
1181TranslateModifier.identity = Symbol('translate');
1182class ScaleModifier extends ModifierWithKey {
1183  constructor(value) {
1184    super(value);
1185  }
1186  applyPeer(node, reset) {
1187    if (reset) {
1188      getUINativeModule().common.resetScale(node);
1189    }
1190    else {
1191      getUINativeModule().common.setScale(node, this.value.x, this.value.y, this.value.z, this.value.centerX, this.value.centerY);
1192    }
1193  }
1194  checkObjectDiff() {
1195    return !(this.value.x === this.stageValue.x &&
1196      this.value.y === this.stageValue.y &&
1197      this.value.z === this.stageValue.z &&
1198      this.value.centerX === this.stageValue.centerX &&
1199      this.value.centerY === this.stageValue.centerY);
1200  }
1201}
1202ScaleModifier.identity = Symbol('scale');
1203class RotateModifier extends ModifierWithKey {
1204  constructor(value) {
1205    super(value);
1206  }
1207  applyPeer(node, reset) {
1208    if (reset) {
1209      getUINativeModule().common.resetRotate(node);
1210    }
1211    else {
1212      getUINativeModule().common.setRotate(node, this.value.x, this.value.y,
1213        this.value.z, this.value.angle, this.value.centerX, this.value.centerY,
1214        this.value.centerY, this.value.perspective);
1215    }
1216  }
1217  checkObjectDiff() {
1218    return !(this.value.x === this.stageValue.x &&
1219      this.value.y === this.stageValue.y &&
1220      this.value.z === this.stageValue.z &&
1221      this.value.angle === this.stageValue.angle &&
1222      this.value.centerX === this.stageValue.centerX &&
1223      this.value.centerY === this.stageValue.centerY &&
1224      this.value.centerZ === this.stageValue.centerZ &&
1225      this.value.perspective === this.stageValue.perspective);
1226  }
1227}
1228RotateModifier.identity = Symbol('rotate');
1229class GeometryTransitionModifier extends ModifierWithKey {
1230  constructor(value) {
1231    super(value);
1232  }
1233  applyPeer(node, reset) {
1234    if (reset) {
1235      getUINativeModule().common.resetGeometryTransition(node);
1236    }
1237    else {
1238      getUINativeModule().common.setGeometryTransition(node, this.value);
1239    }
1240  }
1241}
1242GeometryTransitionModifier.identity = Symbol('geometryTransition');
1243class BlendModeModifier extends ModifierWithKey {
1244  constructor(value) {
1245    super(value);
1246  }
1247  applyPeer(node, reset) {
1248    if (reset) {
1249      getUINativeModule().common.resetBlendMode(node);
1250    }
1251    else {
1252      getUINativeModule().common.setBlendMode(node, this.value.blendMode, this.value.blendApplyType);
1253    }
1254  }
1255}
1256BlendModeModifier.identity = Symbol('blendMode');
1257class ClipModifier extends ModifierWithKey {
1258  constructor(value) {
1259    super(value);
1260  }
1261  applyPeer(node, reset) {
1262    if (reset) {
1263      getUINativeModule().common.resetClip(node);
1264    }
1265    else {
1266      getUINativeModule().common.setClip(node, this.value);
1267    }
1268  }
1269  checkObjectDiff() {
1270    return true;
1271  }
1272}
1273ClipModifier.identity = Symbol('clip');
1274class MaskModifier extends ModifierWithKey {
1275  constructor(value) {
1276    super(value);
1277  }
1278  applyPeer(node, reset) {
1279    if (reset) {
1280      getUINativeModule().common.resetMask(node);
1281    }
1282    else {
1283      getUINativeModule().common.setMask(node, this.value);
1284    }
1285  }
1286  checkObjectDiff() {
1287    return true;
1288  }
1289}
1290MaskModifier.identity = Symbol('mask');
1291class PixelStretchEffectModifier extends ModifierWithKey {
1292  constructor(value) {
1293    super(value);
1294  }
1295  applyPeer(node, reset) {
1296    if (reset) {
1297      getUINativeModule().common.resetPixelStretchEffect(node);
1298    }
1299    else {
1300      getUINativeModule().common.setPixelStretchEffect(node, this.value.top, this.value.right, this.value.bottom, this.value.left);
1301    }
1302  }
1303  checkObjectDiff() {
1304    return !(this.stageValue.left === this.value.left &&
1305      this.stageValue.right === this.value.right &&
1306      this.stageValue.top === this.value.top &&
1307      this.stageValue.bottom === this.value.bottom);
1308  }
1309}
1310PixelStretchEffectModifier.identity = Symbol('pixelStretchEffect');
1311class LightUpEffectModifier extends ModifierWithKey {
1312  constructor(value) {
1313    super(value);
1314  }
1315  applyPeer(node, reset) {
1316    if (reset) {
1317      getUINativeModule().common.resetLightUpEffect(node);
1318    }
1319    else {
1320      getUINativeModule().common.setLightUpEffect(node, this.value);
1321    }
1322  }
1323}
1324LightUpEffectModifier.identity = Symbol('lightUpEffect');
1325class SphericalEffectModifier extends ModifierWithKey {
1326  constructor(value) {
1327    super(value);
1328  }
1329  applyPeer(node, reset) {
1330    if (reset) {
1331      getUINativeModule().common.resetSphericalEffect(node);
1332    }
1333    else {
1334      getUINativeModule().common.setSphericalEffect(node, this.value);
1335    }
1336  }
1337}
1338SphericalEffectModifier.identity = Symbol('sphericalEffect');
1339class RenderGroupModifier extends ModifierWithKey {
1340  constructor(value) {
1341    super(value);
1342  }
1343  applyPeer(node, reset) {
1344    if (reset) {
1345      getUINativeModule().common.resetRenderGroup(node);
1346    }
1347    else {
1348      getUINativeModule().common.setRenderGroup(node, this.value);
1349    }
1350  }
1351}
1352RenderGroupModifier.identity = Symbol('renderGroup');
1353class RenderFitModifier extends ModifierWithKey {
1354  constructor(value) {
1355    super(value);
1356  }
1357  applyPeer(node, reset) {
1358    if (reset) {
1359      getUINativeModule().common.resetRenderFit(node);
1360    }
1361    else {
1362      getUINativeModule().common.setRenderFit(node, this.value);
1363    }
1364  }
1365}
1366RenderFitModifier.identity = Symbol('renderFit');
1367class UseEffectModifier extends ModifierWithKey {
1368  constructor(value) {
1369    super(value);
1370  }
1371  applyPeer(node, reset) {
1372    if (reset) {
1373      getUINativeModule().common.resetUseEffect(node);
1374    }
1375    else {
1376      getUINativeModule().common.setUseEffect(node, this.value);
1377    }
1378  }
1379}
1380UseEffectModifier.identity = Symbol('useEffect');
1381class ForegroundColorModifier extends ModifierWithKey {
1382  constructor(value) {
1383    super(value);
1384  }
1385  applyPeer(node, reset) {
1386    if (reset) {
1387      getUINativeModule().common.resetForegroundColor(node);
1388    }
1389    else {
1390      getUINativeModule().common.setForegroundColor(node, this.value);
1391    }
1392  }
1393  checkObjectDiff() {
1394    return !isBaseOrResourceEqual(this.stageValue, this.value);
1395  }
1396}
1397ForegroundColorModifier.identity = Symbol('foregroundColor');
1398class MotionPathModifier extends ModifierWithKey {
1399  constructor(value) {
1400    super(value);
1401  }
1402  applyPeer(node, reset) {
1403    if (reset) {
1404      getUINativeModule().common.resetMotionPath(node);
1405    }
1406    else {
1407      let path;
1408      let rotatable;
1409      let from;
1410      let to;
1411      if (isString(this.value.path)) {
1412        path = this.value.path;
1413      }
1414      if (isBoolean(this.value.rotatable)) {
1415        rotatable = this.value.rotatable;
1416      }
1417      if (isNumber(this.value.from) && isNumber(this.value.to)) {
1418        from = this.value.from;
1419        to = this.value.to;
1420      }
1421      getUINativeModule().common.setMotionPath(node, path, from, to, rotatable);
1422    }
1423  }
1424  checkObjectDiff() {
1425    return !(this.value.path === this.stageValue.path &&
1426      this.value.from === this.stageValue.from &&
1427      this.value.to === this.stageValue.to &&
1428      this.value.rotatable === this.stageValue.rotatable);
1429  }
1430}
1431MotionPathModifier.identity = Symbol('motionPath');
1432class GroupDefaultFocusModifier extends ModifierWithKey {
1433  constructor(value) {
1434    super(value);
1435  }
1436  applyPeer(node, reset) {
1437    if (reset) {
1438      getUINativeModule().common.resetGroupDefaultFocus(node);
1439    }
1440    else {
1441      getUINativeModule().common.setGroupDefaultFocus(node, this.value);
1442    }
1443  }
1444}
1445GroupDefaultFocusModifier.identity = Symbol('groupDefaultFocus');
1446class FocusOnTouchModifier extends ModifierWithKey {
1447  constructor(value) {
1448    super(value);
1449  }
1450  applyPeer(node, reset) {
1451    if (reset) {
1452      getUINativeModule().common.resetFocusOnTouch(node);
1453    }
1454    else {
1455      getUINativeModule().common.setFocusOnTouch(node, this.value);
1456    }
1457  }
1458}
1459FocusOnTouchModifier.identity = Symbol('focusOnTouch');
1460class OffsetModifier extends ModifierWithKey {
1461  constructor(value) {
1462    super(value);
1463  }
1464  applyPeer(node, reset) {
1465    let _a, _b;
1466    if (reset) {
1467      getUINativeModule().common.resetOffset(node);
1468    }
1469    else {
1470      getUINativeModule().common.setOffset(node, (_a = this.value) === null ||
1471      _a === void 0 ? void 0 : _a.x, (_b = this.value) === null || _b === void 0 ? void 0 : _b.y);
1472    }
1473  }
1474  checkObjectDiff() {
1475    return !isBaseOrResourceEqual(this.stageValue.x, this.value.x) ||
1476      !isBaseOrResourceEqual(this.stageValue.y, this.value.y);
1477  }
1478}
1479OffsetModifier.identity = Symbol('offset');
1480class MarkAnchorModifier extends ModifierWithKey {
1481  constructor(value) {
1482    super(value);
1483  }
1484  applyPeer(node, reset) {
1485    let _a, _b;
1486    if (reset) {
1487      getUINativeModule().common.resetMarkAnchor(node);
1488    }
1489    else {
1490      getUINativeModule().common.setMarkAnchor(node, (_a = this.value) === null ||
1491      _a === void 0 ? void 0 : _a.x, (_b = this.value) === null || _b === void 0 ? void 0 : _b.y);
1492    }
1493  }
1494  checkObjectDiff() {
1495    return !isBaseOrResourceEqual(this.stageValue.x, this.value.x) ||
1496      !isBaseOrResourceEqual(this.stageValue.y, this.value.y);
1497  }
1498}
1499MarkAnchorModifier.identity = Symbol('markAnchor');
1500class DefaultFocusModifier extends ModifierWithKey {
1501  constructor(value) {
1502    super(value);
1503  }
1504  applyPeer(node, reset) {
1505    if (reset) {
1506      getUINativeModule().common.resetDefaultFocus(node);
1507    }
1508    else {
1509      getUINativeModule().common.setDefaultFocus(node, this.value);
1510    }
1511  }
1512}
1513DefaultFocusModifier.identity = Symbol('defaultFocus');
1514class FocusableModifier extends ModifierWithKey {
1515  constructor(value) {
1516    super(value);
1517  }
1518  applyPeer(node, reset) {
1519    if (reset) {
1520      getUINativeModule().common.resetFocusable(node);
1521    }
1522    else {
1523      getUINativeModule().common.setFocusable(node, this.value);
1524    }
1525  }
1526}
1527FocusableModifier.identity = Symbol('focusable');
1528class TouchableModifier extends ModifierWithKey {
1529  constructor(value) {
1530    super(value);
1531  }
1532  applyPeer(node, reset) {
1533    if (reset) {
1534      getUINativeModule().common.resetTouchable(node);
1535    }
1536    else {
1537      getUINativeModule().common.setTouchable(node, this.value);
1538    }
1539  }
1540}
1541TouchableModifier.identity = Symbol('touchable');
1542class MarginModifier extends ModifierWithKey {
1543  constructor(value) {
1544    super(value);
1545  }
1546  applyPeer(node, reset) {
1547    if (reset) {
1548      getUINativeModule().common.resetMargin(node);
1549    }
1550    else {
1551      getUINativeModule().common.setMargin(node, this.value.top, this.value.right, this.value.bottom, this.value.left);
1552    }
1553  }
1554  checkObjectDiff() {
1555    return !isBaseOrResourceEqual(this.stageValue.top, this.value.top) ||
1556      !isBaseOrResourceEqual(this.stageValue.right, this.value.right) ||
1557      !isBaseOrResourceEqual(this.stageValue.bottom, this.value.bottom) ||
1558      !isBaseOrResourceEqual(this.stageValue.left, this.value.left);
1559  }
1560}
1561MarginModifier.identity = Symbol('margin');
1562class PaddingModifier extends ModifierWithKey {
1563  constructor(value) {
1564    super(value);
1565  }
1566  applyPeer(node, reset) {
1567    if (reset) {
1568      getUINativeModule().common.resetPadding(node);
1569    }
1570    else {
1571      getUINativeModule().common.setPadding(node, this.value.top, this.value.right, this.value.bottom, this.value.left);
1572    }
1573  }
1574  checkObjectDiff() {
1575    return !isBaseOrResourceEqual(this.stageValue.top, this.value.top) ||
1576      !isBaseOrResourceEqual(this.stageValue.right, this.value.right) ||
1577      !isBaseOrResourceEqual(this.stageValue.bottom, this.value.bottom) ||
1578      !isBaseOrResourceEqual(this.stageValue.left, this.value.left);
1579  }
1580}
1581PaddingModifier.identity = Symbol('padding');
1582class VisibilityModifier extends ModifierWithKey {
1583  constructor(value) {
1584    super(value);
1585  }
1586  applyPeer(node, reset) {
1587    if (reset) {
1588      getUINativeModule().common.resetVisibility(node);
1589    }
1590    else {
1591      getUINativeModule().common.setVisibility(node, this.value);
1592    }
1593  }
1594  checkObjectDiff() {
1595    return this.stageValue !== this.value;
1596  }
1597}
1598VisibilityModifier.identity = Symbol('visibility');
1599class AccessibilityTextModifier extends ModifierWithKey {
1600  constructor(value) {
1601    super(value);
1602  }
1603  applyPeer(node, reset) {
1604    if (reset) {
1605      getUINativeModule().common.resetAccessibilityText(node);
1606    }
1607    else {
1608      getUINativeModule().common.setAccessibilityText(node, this.value);
1609    }
1610  }
1611}
1612AccessibilityTextModifier.identity = Symbol('accessibilityText');
1613class AllowDropModifier extends ModifierWithKey {
1614  constructor(value) {
1615    super(value);
1616  }
1617  applyPeer(node, reset) {
1618    if (reset) {
1619      getUINativeModule().common.resetAllowDrop(node);
1620    }
1621    else {
1622      getUINativeModule().common.setAllowDrop(node, this.value);
1623    }
1624  }
1625  checkObjectDiff() {
1626    return !(Array.isArray(this.value) && Array.isArray(this.stageValue) &&
1627      this.value.length === this.stageValue.length &&
1628      this.value.every((value, index) => value === this.stageValue[index]));
1629  }
1630}
1631AllowDropModifier.identity = Symbol('allowDrop');
1632class AccessibilityLevelModifier extends ModifierWithKey {
1633  constructor(value) {
1634    super(value);
1635  }
1636  applyPeer(node, reset) {
1637    if (reset) {
1638      getUINativeModule().common.resetAccessibilityLevel(node);
1639    }
1640    else {
1641      getUINativeModule().common.setAccessibilityLevel(node, this.value);
1642    }
1643  }
1644}
1645AccessibilityLevelModifier.identity = Symbol('accessibilityLevel');
1646class AccessibilityDescriptionModifier extends ModifierWithKey {
1647  constructor(value) {
1648    super(value);
1649  }
1650  applyPeer(node, reset) {
1651    if (reset) {
1652      getUINativeModule().common.resetAccessibilityDescription(node);
1653    }
1654    else {
1655      getUINativeModule().common.setAccessibilityDescription(node, this.value);
1656    }
1657  }
1658}
1659AccessibilityDescriptionModifier.identity = Symbol('accessibilityDescription');
1660class DirectionModifier extends ModifierWithKey {
1661  constructor(value) {
1662    super(value);
1663  }
1664  applyPeer(node, reset) {
1665    if (reset) {
1666      getUINativeModule().common.resetDirection(node);
1667    }
1668    else {
1669      getUINativeModule().common.setDirection(node, this.value);
1670    }
1671  }
1672  checkObjectDiff() {
1673    return !isBaseOrResourceEqual(this.stageValue, this.value);
1674  }
1675}
1676DirectionModifier.identity = Symbol('direction');
1677class AlignRulesModifier extends ModifierWithKey {
1678  constructor(value) {
1679    super(value);
1680  }
1681  applyPeer(node, reset) {
1682    if (reset) {
1683      getUINativeModule().common.resetAlignRules(node);
1684    }
1685    else {
1686      getUINativeModule().common.setAlignRules(node, this.value.left, this.value.middle,
1687        this.value.right, this.value.top, this.value.center, this.value.bottom);
1688    }
1689  }
1690  checkObjectDiff() {
1691    return !isBaseOrResourceEqual(this.stageValue.left, this.value.left) ||
1692      !isBaseOrResourceEqual(this.stageValue.middle, this.value.middle) ||
1693      !isBaseOrResourceEqual(this.stageValue.right, this.value.right) ||
1694      !isBaseOrResourceEqual(this.stageValue.top, this.value.top) ||
1695      !isBaseOrResourceEqual(this.stageValue.center, this.value.center) ||
1696      !isBaseOrResourceEqual(this.stageValue.bottom, this.value.bottom);
1697  }
1698}
1699AlignRulesModifier.identity = Symbol('alignRules');
1700class ExpandSafeAreaModifier extends ModifierWithKey {
1701  constructor(value) {
1702    super(value);
1703  }
1704  applyPeer(node, reset) {
1705    if (reset) {
1706      getUINativeModule().common.resetExpandSafeArea(node);
1707    }
1708    else {
1709      getUINativeModule().common.setExpandSafeArea(node, this.value.type, this.value.edges);
1710    }
1711  }
1712  checkObjectDiff() {
1713    return !isBaseOrResourceEqual(this.stageValue.type, this.value.type) ||
1714      !isBaseOrResourceEqual(this.stageValue.edges, this.value.edges);
1715  }
1716}
1717ExpandSafeAreaModifier.identity = Symbol('expandSafeArea');
1718class GridSpanModifier extends ModifierWithKey {
1719  constructor(value) {
1720    super(value);
1721  }
1722  applyPeer(node, reset) {
1723    if (reset) {
1724      getUINativeModule().common.resetGridSpan(node);
1725    }
1726    else {
1727      getUINativeModule().common.setGridSpan(node, this.value);
1728    }
1729  }
1730}
1731GridSpanModifier.identity = Symbol('gridSpan');
1732class GridOffsetModifier extends ModifierWithKey {
1733  constructor(value) {
1734    super(value);
1735  }
1736  applyPeer(node, reset) {
1737    if (reset) {
1738      getUINativeModule().common.resetGridOffset(node);
1739    }
1740    else {
1741      getUINativeModule().common.setGridOffset(node, this.value);
1742    }
1743  }
1744}
1745GridOffsetModifier.identity = Symbol('gridOffset');
1746class AlignSelfModifier extends ModifierWithKey {
1747  constructor(value) {
1748    super(value);
1749  }
1750  applyPeer(node, reset) {
1751    if (reset) {
1752      getUINativeModule().common.resetAlignSelf(node);
1753    }
1754    else {
1755      getUINativeModule().common.setAlignSelf(node, this.value);
1756    }
1757  }
1758  checkObjectDiff() {
1759    return !isBaseOrResourceEqual(this.stageValue, this.value);
1760  }
1761}
1762AlignSelfModifier.identity = Symbol('alignSelf');
1763class SizeModifier extends ModifierWithKey {
1764  constructor(value) {
1765    super(value);
1766  }
1767  applyPeer(node, reset) {
1768    if (reset) {
1769      getUINativeModule().common.resetSize(node);
1770    }
1771    else {
1772      getUINativeModule().common.setSize(node, this.value.width, this.value.height);
1773    }
1774  }
1775  checkObjectDiff() {
1776    return !isBaseOrResourceEqual(this.stageValue.width, this.value.width) ||
1777      !isBaseOrResourceEqual(this.stageValue.height, this.value.height);
1778  }
1779}
1780SizeModifier.identity = Symbol('size');
1781class DisplayPriorityModifier extends ModifierWithKey {
1782  constructor(value) {
1783    super(value);
1784  }
1785  applyPeer(node, reset) {
1786    if (reset) {
1787      getUINativeModule().common.resetDisplayPriority(node);
1788    }
1789    else {
1790      getUINativeModule().common.setDisplayPriority(node, this.value);
1791    }
1792  }
1793  checkObjectDiff() {
1794    return !isBaseOrResourceEqual(this.stageValue, this.value);
1795  }
1796}
1797DisplayPriorityModifier.identity = Symbol('displayPriority');
1798class IdModifier extends ModifierWithKey {
1799  constructor(value) {
1800    super(value);
1801  }
1802  applyPeer(node, reset) {
1803    if (reset) {
1804      getUINativeModule().common.resetId(node);
1805    }
1806    else {
1807      getUINativeModule().common.setId(node, this.value);
1808    }
1809  }
1810}
1811IdModifier.identity = Symbol('id');
1812class KeyModifier extends ModifierWithKey {
1813  constructor(value) {
1814    super(value);
1815  }
1816  applyPeer(node, reset) {
1817    if (reset) {
1818      getUINativeModule().common.resetKey(node);
1819    }
1820    else {
1821      getUINativeModule().common.setKey(node, this.value);
1822    }
1823  }
1824}
1825KeyModifier.identity = Symbol('key');
1826class RestoreIdModifier extends ModifierWithKey {
1827  constructor(value) {
1828    super(value);
1829  }
1830  applyPeer(node, reset) {
1831    if (reset) {
1832      getUINativeModule().common.resetRestoreId(node);
1833    }
1834    else {
1835      getUINativeModule().common.setRestoreId(node, this.value);
1836    }
1837  }
1838}
1839RestoreIdModifier.identity = Symbol('restoreId');
1840class TabIndexModifier extends ModifierWithKey {
1841  constructor(value) {
1842    super(value);
1843  }
1844  applyPeer(node, reset) {
1845    if (reset) {
1846      getUINativeModule().common.resetTabIndex(node);
1847    }
1848    else {
1849      getUINativeModule().common.setTabIndex(node, this.value);
1850    }
1851  }
1852}
1853TabIndexModifier.identity = Symbol('tabIndex');
1854class ObscuredModifier extends ModifierWithKey {
1855  constructor(value) {
1856    super(value);
1857  }
1858  applyPeer(node, reset) {
1859    if (reset || (!Array.isArray(this.value))) {
1860      getUINativeModule().common.resetObscured(node);
1861    }
1862    else {
1863      getUINativeModule().common.setObscured(node, this.value);
1864    }
1865  }
1866  checkObjectDiff() {
1867    return !(Array.isArray(this.value) && Array.isArray(this.stageValue) &&
1868      this.value.length === this.stageValue.length &&
1869      this.value.every((value, index) => value === this.stageValue[index]));
1870  }
1871}
1872ObscuredModifier.identity = Symbol('obscured');
1873class BackgroundEffectModifier extends ModifierWithKey {
1874  constructor(options) {
1875    super(options);
1876  }
1877  applyPeer(node, reset) {
1878    let _a;
1879    if (reset) {
1880      getUINativeModule().common.resetBackgroundEffect(node);
1881    }
1882    else {
1883      getUINativeModule().common.setBackgroundEffect(node, this.value.radius, this.value.saturation, this.value.brightness, this.value.color,
1884        this.value.adaptiveColor, (_a = this.value.blurOptions) === null || _a === void 0 ? void 0 : _a.grayscale);
1885    }
1886  }
1887  checkObjectDiff() {
1888    let _a;
1889    let _b;
1890    return !(this.value.radius === this.stageValue.radius && this.value.saturation === this.stageValue.saturation &&
1891      this.value.brightness === this.stageValue.brightness &&
1892      isBaseOrResourceEqual(this.stageValue.color, this.value.color) &&
1893      this.value.adaptiveColor === this.stageValue.adaptiveColor &&
1894      ((_a = this.value.blurOptions) === null || _a === void 0 ? void 0 : _a.grayscale) === ((_b = this.stageValue.blurOptions) === null ||
1895      _b === void 0 ? void 0 : _b.grayscale));
1896  }
1897}
1898BackgroundEffectModifier.identity = Symbol('backgroundEffect');
1899class BackgroundBrightnessModifier extends ModifierWithKey {
1900  constructor(params) {
1901    super(params);
1902  }
1903  applyPeer(node, reset) {
1904    if (reset) {
1905      getUINativeModule().common.resetBackgroundBrightness(node);
1906    }
1907    else {
1908      getUINativeModule().common.setBackgroundBrightness(node, this.value.rate, this.value.lightUpDegree);
1909    }
1910  }
1911  checkObjectDiff() {
1912    return !(this.value.rate === this.stageValue.rate && this.value.lightUpDegree === this.stageValue.lightUpDegree);
1913  }
1914}
1915BackgroundBrightnessModifier.identity = Symbol('backgroundBrightness');
1916class DragPreviewOptionsModifier extends ModifierWithKey {
1917  constructor(value) {
1918    super(value);
1919  }
1920  applyPeer(node, reset) {
1921    if (reset) {
1922      getUINativeModule().common.resetDragPreviewOptions(node);
1923    }
1924    else {
1925      getUINativeModule().common.setDragPreviewOptions(node, this.value.mode);
1926    }
1927  }
1928  checkObjectDiff() {
1929    return !(this.value.mode === this.stageValue.mode);
1930  }
1931}
1932DragPreviewOptionsModifier.identity = Symbol('dragPreviewOptions');
1933class MouseResponseRegionModifier extends ModifierWithKey {
1934  constructor(value) {
1935    super(value);
1936  }
1937  applyPeer(node, reset) {
1938    let _a, _b, _c, _d, _e, _f, _g, _h;
1939    if (reset) {
1940      getUINativeModule().common.resetMouseResponseRegion(node);
1941    }
1942    else {
1943      let responseRegion = [];
1944      if (Array.isArray(this.value)) {
1945        for (let i = 0; i < this.value.length; i++) {
1946          responseRegion.push((_a = this.value[i].x) !== null && _a !== void 0 ? _a : 'PLACEHOLDER');
1947          responseRegion.push((_b = this.value[i].y) !== null && _b !== void 0 ? _b : 'PLACEHOLDER');
1948          responseRegion.push((_c = this.value[i].width) !== null && _c !== void 0 ? _c : 'PLACEHOLDER');
1949          responseRegion.push((_d = this.value[i].height) !== null && _d !== void 0 ? _d : 'PLACEHOLDER');
1950        }
1951      }
1952      else {
1953        responseRegion.push((_e = this.value.x) !== null && _e !== void 0 ? _e : 'PLACEHOLDER');
1954        responseRegion.push((_f = this.value.y) !== null && _f !== void 0 ? _f : 'PLACEHOLDER');
1955        responseRegion.push((_g = this.value.width) !== null && _g !== void 0 ? _g : 'PLACEHOLDER');
1956        responseRegion.push((_h = this.value.height) !== null && _h !== void 0 ? _h : 'PLACEHOLDER');
1957      }
1958      getUINativeModule().common.setMouseResponseRegion(node, responseRegion, responseRegion.length);
1959    }
1960  }
1961  checkObjectDiff() {
1962    if (Array.isArray(this.value) && Array.isArray(this.stageValue)) {
1963      if (this.value.length !== this.stageValue.length) {
1964        return true;
1965      }
1966      else {
1967        for (let i = 0; i < this.value.length; i++) {
1968          if (!(isBaseOrResourceEqual(this.stageValue[i].x, this.value[i].x) &&
1969            isBaseOrResourceEqual(this.stageValue[i].y, this.value[i].y) &&
1970            isBaseOrResourceEqual(this.stageValue[i].width, this.value[i].width) &&
1971            isBaseOrResourceEqual(this.stageValue[i].height, this.value[i].height))) {
1972            return true;
1973          }
1974        }
1975        return false;
1976      }
1977    }
1978    else if (!Array.isArray(this.value) && !Array.isArray(this.stageValue)) {
1979      return (!(isBaseOrResourceEqual(this.stageValue.x, this.value.x) &&
1980        isBaseOrResourceEqual(this.stageValue.y, this.value.y) &&
1981        isBaseOrResourceEqual(this.stageValue.width, this.value.width) &&
1982        isBaseOrResourceEqual(this.stageValue.height, this.value.height)));
1983    }
1984    else {
1985      return false;
1986    }
1987  }
1988}
1989MouseResponseRegionModifier.identity = Symbol('mouseResponseRegion');
1990class ResponseRegionModifier extends ModifierWithKey {
1991  constructor(value) {
1992    super(value);
1993  }
1994  applyPeer(node, reset) {
1995    let _a, _b, _c, _d, _e, _f, _g, _h;
1996    if (reset) {
1997      getUINativeModule().common.resetResponseRegion(node);
1998    }
1999    else {
2000      let responseRegion = [];
2001      if (Array.isArray(this.value)) {
2002        for (let i = 0; i < this.value.length; i++) {
2003          responseRegion.push((_a = this.value[i].x) !== null && _a !== void 0 ? _a : 'PLACEHOLDER');
2004          responseRegion.push((_b = this.value[i].y) !== null && _b !== void 0 ? _b : 'PLACEHOLDER');
2005          responseRegion.push((_c = this.value[i].width) !== null && _c !== void 0 ? _c : 'PLACEHOLDER');
2006          responseRegion.push((_d = this.value[i].height) !== null && _d !== void 0 ? _d : 'PLACEHOLDER');
2007        }
2008      }
2009      else {
2010        responseRegion.push((_e = this.value.x) !== null && _e !== void 0 ? _e : 'PLACEHOLDER');
2011        responseRegion.push((_f = this.value.y) !== null && _f !== void 0 ? _f : 'PLACEHOLDER');
2012        responseRegion.push((_g = this.value.width) !== null && _g !== void 0 ? _g : 'PLACEHOLDER');
2013        responseRegion.push((_h = this.value.height) !== null && _h !== void 0 ? _h : 'PLACEHOLDER');
2014      }
2015      getUINativeModule().common.setResponseRegion(node, responseRegion, responseRegion.length);
2016    }
2017  }
2018  checkObjectDiff() {
2019    if (Array.isArray(this.value) && Array.isArray(this.stageValue)) {
2020      if (this.value.length !== this.stageValue.length) {
2021        return true;
2022      }
2023      else {
2024        for (let i = 0; i < this.value.length; i++) {
2025          if (!(isBaseOrResourceEqual(this.stageValue[i].x, this.value[i].x) &&
2026            isBaseOrResourceEqual(this.stageValue[i].y, this.value[i].y) &&
2027            isBaseOrResourceEqual(this.stageValue[i].width, this.value[i].width) &&
2028            isBaseOrResourceEqual(this.stageValue[i].height, this.value[i].height))) {
2029            return true;
2030          }
2031        }
2032        return false;
2033      }
2034    }
2035    else if (!Array.isArray(this.value) && !Array.isArray(this.stageValue)) {
2036      return (!(isBaseOrResourceEqual(this.stageValue.x, this.value.x) &&
2037        isBaseOrResourceEqual(this.stageValue.y, this.value.y) &&
2038        isBaseOrResourceEqual(this.stageValue.width, this.value.width) &&
2039        isBaseOrResourceEqual(this.stageValue.height, this.value.height)));
2040    }
2041    else {
2042      return false;
2043    }
2044  }
2045}
2046ResponseRegionModifier.identity = Symbol('responseRegion');
2047class FlexGrowModifier extends ModifierWithKey {
2048  constructor(value) {
2049    super(value);
2050  }
2051  applyPeer(node, reset) {
2052    if (reset) {
2053      getUINativeModule().common.resetFlexGrow(node);
2054    }
2055    else {
2056      getUINativeModule().common.setFlexGrow(node, this.value);
2057    }
2058  }
2059  checkObjectDiff() {
2060    return this.stageValue !== this.value;
2061  }
2062}
2063FlexGrowModifier.identity = Symbol('flexGrow');
2064class FlexShrinkModifier extends ModifierWithKey {
2065  constructor(value) {
2066    super(value);
2067  }
2068  applyPeer(node, reset) {
2069    if (reset) {
2070      getUINativeModule().common.resetFlexShrink(node);
2071    }
2072    else {
2073      getUINativeModule().common.setFlexShrink(node, this.value);
2074    }
2075  }
2076  checkObjectDiff() {
2077    return this.stageValue !== this.value;
2078  }
2079}
2080FlexShrinkModifier.identity = Symbol('flexShrink');
2081class AspectRatioModifier extends ModifierWithKey {
2082  constructor(value) {
2083    super(value);
2084  }
2085  applyPeer(node, reset) {
2086    if (reset) {
2087      getUINativeModule().common.resetAspectRatio(node);
2088    }
2089    else {
2090      getUINativeModule().common.setAspectRatio(node, this.value);
2091    }
2092  }
2093  checkObjectDiff() {
2094    return this.stageValue !== this.value;
2095  }
2096}
2097AspectRatioModifier.identity = Symbol('aspectRatio');
2098class ConstraintSizeModifier extends ModifierWithKey {
2099  constructor(value) {
2100    super(value);
2101  }
2102  applyPeer(node, reset) {
2103    if (reset) {
2104      getUINativeModule().common.resetConstraintSize(node);
2105    }
2106    else {
2107      getUINativeModule().common.setConstraintSize(node, this.value.minWidth, this.value.maxWidth, this.value.minHeight, this.value.maxHeight);
2108    }
2109  }
2110  checkObjectDiff() {
2111    return !isBaseOrResourceEqual(this.stageValue.minWidth, this.value.minWidth) ||
2112      !isBaseOrResourceEqual(this.stageValue.maxWidth, this.value.maxWidth) ||
2113      !isBaseOrResourceEqual(this.stageValue.minHeight, this.value.minHeight) ||
2114      !isBaseOrResourceEqual(this.stageValue.maxHeight, this.value.maxHeight);
2115  }
2116}
2117ConstraintSizeModifier.identity = Symbol('constraintSize');
2118class FlexBasisModifier extends ModifierWithKey {
2119  constructor(value) {
2120    super(value);
2121  }
2122  applyPeer(node, reset) {
2123    if (reset) {
2124      getUINativeModule().common.resetFlexBasis(node);
2125    }
2126    else {
2127      getUINativeModule().common.setFlexBasis(node, this.value);
2128    }
2129  }
2130  checkObjectDiff() {
2131    return this.stageValue !== this.value;
2132  }
2133}
2134FlexBasisModifier.identity = Symbol('flexBasis');
2135class LayoutWeightModifier extends ModifierWithKey {
2136  constructor(value) {
2137    super(value);
2138  }
2139  applyPeer(node, reset) {
2140    if (reset) {
2141      getUINativeModule().common.resetLayoutWeight(node);
2142    }
2143    else {
2144      getUINativeModule().common.setLayoutWeight(node, this.value);
2145    }
2146  }
2147}
2148LayoutWeightModifier.identity = Symbol('layoutWeight');
2149class EnabledModifier extends ModifierWithKey {
2150  constructor(value) {
2151    super(value);
2152  }
2153  applyPeer(node, reset) {
2154    if (reset) {
2155      getUINativeModule().common.resetEnabled(node);
2156    }
2157    else {
2158      getUINativeModule().common.setEnabled(node, this.value);
2159    }
2160  }
2161}
2162EnabledModifier.identity = Symbol('enabled');
2163class UseShadowBatchingModifier extends ModifierWithKey {
2164  constructor(value) {
2165    super(value);
2166  }
2167  applyPeer(node, reset) {
2168    if (reset) {
2169      getUINativeModule().common.resetUseShadowBatching(node);
2170    }
2171    else {
2172      getUINativeModule().common.setUseShadowBatching(node, this.value);
2173    }
2174  }
2175}
2176UseShadowBatchingModifier.identity = Symbol('useShadowBatching');
2177class MonopolizeEventsModifier extends ModifierWithKey {
2178  constructor(value) {
2179    super(value);
2180  }
2181  applyPeer(node, reset) {
2182    if (reset) {
2183      getUINativeModule().common.resetMonopolizeEvents(node);
2184    }
2185    else {
2186      getUINativeModule().common.setMonopolizeEvents(node, this.value);
2187    }
2188  }
2189}
2190MonopolizeEventsModifier.identity = Symbol('monopolizeEvents');
2191class DraggableModifier extends ModifierWithKey {
2192  constructor(value) {
2193    super(value);
2194  }
2195  applyPeer(node, reset) {
2196    if (reset) {
2197      getUINativeModule().common.resetDraggable(node);
2198    }
2199    else {
2200      getUINativeModule().common.setDraggable(node, this.value);
2201    }
2202  }
2203}
2204DraggableModifier.identity = Symbol('draggable');
2205class AccessibilityGroupModifier extends ModifierWithKey {
2206  constructor(value) {
2207    super(value);
2208  }
2209  applyPeer(node, reset) {
2210    if (reset) {
2211      getUINativeModule().common.resetAccessibilityGroup(node);
2212    }
2213    else {
2214      getUINativeModule().common.setAccessibilityGroup(node, this.value);
2215    }
2216  }
2217}
2218AccessibilityGroupModifier.identity = Symbol('accessibilityGroup');
2219class HoverEffectModifier extends Modifier {
2220  constructor(value) {
2221    super(value);
2222  }
2223  applyPeer(node, reset) {
2224    if (reset) {
2225      getUINativeModule().common.resetHoverEffect(node);
2226    }
2227    else {
2228      getUINativeModule().common.setHoverEffect(node, this.value);
2229    }
2230  }
2231}
2232HoverEffectModifier.identity = Symbol('hoverEffect');
2233class ClickEffectModifier extends ModifierWithKey {
2234  constructor(value) {
2235    super(value);
2236  }
2237  applyPeer(node, reset) {
2238    if (reset || !this.value) {
2239      getUINativeModule().common.resetClickEffect(node);
2240    }
2241    else {
2242      getUINativeModule().common.setClickEffect(node, this.value.level, this.value.scale);
2243    }
2244  }
2245  checkObjectDiff() {
2246    return !((this.value.level === this.stageValue.level) && (this.value.scale === this.stageValue.scale));
2247  }
2248}
2249ClickEffectModifier.identity = Symbol('clickEffect');
2250class KeyBoardShortCutModifier extends ModifierWithKey {
2251  constructor(value) {
2252    super(value);
2253  }
2254  applyPeer(node, reset) {
2255    if (reset) {
2256      getUINativeModule().common.resetKeyBoardShortCut(node);
2257    }
2258    else {
2259      getUINativeModule().common.setKeyBoardShortCut(node, this.value.value, this.value.keys);
2260    }
2261  }
2262  checkObjectDiff() {
2263    return !this.value.isEqual(this.stageValue);
2264  }
2265}
2266KeyBoardShortCutModifier.identity = Symbol('keyboardShortcut');
2267class TransitionModifier extends ModifierWithKey {
2268  constructor(value) {
2269    super(value);
2270  }
2271  applyPeer(node, reset) {
2272    if (reset) {
2273      getUINativeModule().common.resetTransition(node);
2274    }
2275    else {
2276      getUINativeModule().common.setTransition(node, this.value);
2277    }
2278  }
2279}
2280TransitionModifier.identity = Symbol('transition');
2281class SharedTransitionModifier extends ModifierWithKey {
2282  constructor(value) {
2283    super(value);
2284  }
2285  applyPeer(node, reset) {
2286    if (reset) {
2287      getUINativeModule().common.resetSharedTransition(node);
2288    }
2289    else {
2290      getUINativeModule().common.setSharedTransition(node, this.value.id, this.value.options);
2291    }
2292  }
2293}
2294SharedTransitionModifier.identity = Symbol('sharedTransition');
2295const JSCallbackInfoType = { STRING: 0, NUMBER: 1, OBJECT: 2, BOOLEAN: 3, FUNCTION: 4 };
2296const isString = (val) => typeof val === 'string';
2297const isNumber = (val) => typeof val === 'number';
2298const isBigint = (val) => typeof val === 'bigint';
2299const isBoolean = (val) => typeof val === 'boolean';
2300const isSymbol = (val) => typeof val === 'symbol';
2301const isUndefined = (val) => typeof val === 'undefined';
2302const isObject = (val) => typeof val === 'object';
2303const isFunction = (val) => typeof val === 'function';
2304const isLengthType = (val) => typeof val === 'string' || typeof val === 'number';
2305function checkJsCallbackInfo(value, checklist) {
2306  let typeVerified = false;
2307  checklist.forEach(function (infoType) {
2308    switch (infoType) {
2309      case JSCallbackInfoType.STRING:
2310        if (isString(value)) {
2311          typeVerified = true;
2312        }
2313        break;
2314      case JSCallbackInfoType.NUMBER:
2315        if (isNumber(value)) {
2316          typeVerified = true;
2317        }
2318        break;
2319      case JSCallbackInfoType.OBJECT:
2320        if (isObject(value)) {
2321          typeVerified = true;
2322        }
2323        break;
2324      case JSCallbackInfoType.FUNCTION:
2325        if (isFunction(value)) {
2326          typeVerified = true;
2327        }
2328        break;
2329      default:
2330        break;
2331    }
2332  });
2333  return typeVerified || checklist.length === 0;
2334}
2335function modifier(modifiers, modifierClass, value) {
2336  const identity = modifierClass['identity'];
2337  const item = modifiers.get(identity);
2338  if (item) {
2339    item.stageValue = value;
2340  }
2341  else {
2342    modifiers.set(identity, new modifierClass(value));
2343  }
2344}
2345function modifierWithKey(modifiers, identity, modifierClass, value) {
2346  const item = modifiers.get(identity);
2347  if (item) {
2348    item.stageValue = value;
2349  }
2350  else {
2351    modifiers.set(identity, new modifierClass(value));
2352  }
2353}
2354class ArkComponent {
2355  constructor(nativePtr) {
2356    this._modifiers = new Map();
2357    this._modifiersWithKeys = new Map();
2358    this.nativePtr = nativePtr;
2359  }
2360  applyModifierPatch() {
2361    let expiringItems = [];
2362    let expiringItemsWithKeys = [];
2363    this._modifiers.forEach((value, key) => {
2364      if (value.applyStage(this.nativePtr)) {
2365        expiringItems.push(key);
2366      }
2367    });
2368    this._modifiersWithKeys.forEach((value, key) => {
2369      if (value.applyStage(this.nativePtr)) {
2370        expiringItemsWithKeys.push(key);
2371      }
2372    });
2373    expiringItems.forEach(key => {
2374      this._modifiers.delete(key);
2375    });
2376    expiringItemsWithKeys.forEach(key => {
2377      this._modifiersWithKeys.delete(key);
2378    });
2379  }
2380  onGestureJudgeBegin(callback) {
2381    throw new Error('Method not implemented.');
2382  }
2383  outline(value) {
2384    modifierWithKey(this._modifiersWithKeys, OutlineModifier.identity, OutlineModifier, value);
2385    return this;
2386  }
2387  outlineColor(value) {
2388    modifierWithKey(this._modifiersWithKeys, OutlineColorModifier.identity, OutlineColorModifier, value);
2389    return this;
2390  }
2391  outlineRadius(value) {
2392    modifierWithKey(this._modifiersWithKeys, OutlineRadiusModifier.identity, OutlineRadiusModifier, value);
2393    return this;
2394  }
2395  outlineStyle(value) {
2396    modifierWithKey(this._modifiersWithKeys, OutlineStyleModifier.identity, OutlineStyleModifier, value);
2397    return this;
2398  }
2399  outlineWidth(value) {
2400    modifierWithKey(this._modifiersWithKeys, OutlineWidthModifier.identity, OutlineWidthModifier, value);
2401    return this;
2402  }
2403  width(value) {
2404    modifierWithKey(this._modifiersWithKeys, WidthModifier.identity, WidthModifier, value);
2405    return this;
2406  }
2407  height(value) {
2408    modifierWithKey(this._modifiersWithKeys, HeightModifier.identity, HeightModifier, value);
2409    return this;
2410  }
2411  expandSafeArea(types, edges) {
2412    let opts = new ArkSafeAreaExpandOpts();
2413    if (types && types.length > 0) {
2414      let safeAreaType = '';
2415      for (let param of types) {
2416        if (!isNumber(param) || param >= SAFE_AREA_TYPE_LIMIT) {
2417          safeAreaType = undefined;
2418          break;
2419        }
2420        if (safeAreaType) {
2421          safeAreaType += '|';
2422        }
2423        else {
2424          safeAreaType += param.toString();
2425        }
2426      }
2427      opts.type = safeAreaType;
2428    }
2429    if (edges && edges.length > 0) {
2430      let safeAreaEdge = '';
2431      for (let param of edges) {
2432        if (!isNumber(param) || param >= SAFE_AREA_EDGE_LIMIT) {
2433          safeAreaEdge = undefined;
2434          break;
2435        }
2436        if (safeAreaEdge) {
2437          safeAreaEdge += '|';
2438        }
2439        else {
2440          safeAreaEdge += param.toString();
2441        }
2442      }
2443      opts.edges = safeAreaEdge;
2444    }
2445    if (opts.type === undefined && opts.edges === undefined) {
2446      modifierWithKey(this._modifiersWithKeys, ExpandSafeAreaModifier.identity, ExpandSafeAreaModifier, undefined);
2447    }
2448    else {
2449      modifierWithKey(this._modifiersWithKeys, ExpandSafeAreaModifier.identity, ExpandSafeAreaModifier, opts);
2450    }
2451    return this;
2452  }
2453  backgroundEffect(options) {
2454    modifierWithKey(this._modifiersWithKeys, BackgroundEffectModifier.identity, BackgroundEffectModifier, options);
2455    return this;
2456  }
2457  backgroundBrightness(params) {
2458    modifierWithKey(this._modifiersWithKeys, BackgroundBrightnessModifier.identity, BackgroundBrightnessModifier, params);
2459    return this;
2460  }
2461  dragPreviewOptions(value) {
2462    modifierWithKey(this._modifiersWithKeys, DragPreviewOptionsModifier.identity, DragPreviewOptionsModifier, value);
2463    return this;
2464  }
2465  responseRegion(value) {
2466    modifierWithKey(this._modifiersWithKeys, ResponseRegionModifier.identity, ResponseRegionModifier, value);
2467    return this;
2468  }
2469  mouseResponseRegion(value) {
2470    modifierWithKey(this._modifiersWithKeys, MouseResponseRegionModifier.identity, MouseResponseRegionModifier, value);
2471    return this;
2472  }
2473  size(value) {
2474    modifierWithKey(this._modifiersWithKeys, SizeModifier.identity, SizeModifier, value);
2475    return this;
2476  }
2477  constraintSize(value) {
2478    modifierWithKey(this._modifiersWithKeys, ConstraintSizeModifier.identity, ConstraintSizeModifier, value);
2479    return this;
2480  }
2481  touchable(value) {
2482    if (typeof value === 'boolean') {
2483      modifierWithKey(this._modifiersWithKeys, TouchableModifier.identity, TouchableModifier, value);
2484    }
2485    else {
2486      modifierWithKey(this._modifiersWithKeys, TouchableModifier.identity, TouchableModifier, undefined);
2487    }
2488    return this;
2489  }
2490  hitTestBehavior(value) {
2491    if (value) {
2492      modifierWithKey(this._modifiersWithKeys, HitTestBehaviorModifier.identity, HitTestBehaviorModifier, value);
2493    }
2494    else {
2495      modifierWithKey(this._modifiersWithKeys, HitTestBehaviorModifier.identity, HitTestBehaviorModifier, undefined);
2496    }
2497    return this;
2498  }
2499  layoutWeight(value) {
2500    if (isNumber(value)) {
2501      modifierWithKey(this._modifiersWithKeys, LayoutWeightModifier.identity, LayoutWeightModifier, value);
2502    }
2503    else if (isString(value) && !isNaN(Number(value))) {
2504      modifierWithKey(this._modifiersWithKeys, LayoutWeightModifier.identity, LayoutWeightModifier, parseInt(value.toString()));
2505    }
2506    else {
2507      modifierWithKey(this._modifiersWithKeys, LayoutWeightModifier.identity, LayoutWeightModifier, undefined);
2508    }
2509    return this;
2510  }
2511  padding(value) {
2512    let arkValue = new ArkPadding();
2513    if (value !== null && value !== undefined) {
2514      if (isLengthType(value) || isResource(value)) {
2515        arkValue.top = value;
2516        arkValue.right = value;
2517        arkValue.bottom = value;
2518        arkValue.left = value;
2519      }
2520      else {
2521        arkValue.top = value.top;
2522        arkValue.right = value.right;
2523        arkValue.bottom = value.bottom;
2524        arkValue.left = value.left;
2525      }
2526      modifierWithKey(this._modifiersWithKeys, PaddingModifier.identity, PaddingModifier, arkValue);
2527    }
2528    else {
2529      modifierWithKey(this._modifiersWithKeys, PaddingModifier.identity, PaddingModifier, undefined);
2530    }
2531    return this;
2532  }
2533  margin(value) {
2534    let arkValue = new ArkPadding();
2535    if (value !== null && value !== undefined) {
2536      if (isLengthType(value) || isResource(value)) {
2537        arkValue.top = value;
2538        arkValue.right = value;
2539        arkValue.bottom = value;
2540        arkValue.left = value;
2541      }
2542      else {
2543        arkValue.top = value.top;
2544        arkValue.right = value.right;
2545        arkValue.bottom = value.bottom;
2546        arkValue.left = value.left;
2547      }
2548      modifierWithKey(this._modifiersWithKeys, MarginModifier.identity, MarginModifier, arkValue);
2549    }
2550    else {
2551      modifierWithKey(this._modifiersWithKeys, MarginModifier.identity, MarginModifier, undefined);
2552    }
2553    return this;
2554  }
2555  background(builder, options) {
2556    throw new Error('Method not implemented.');
2557  }
2558  backgroundColor(value) {
2559    modifierWithKey(this._modifiersWithKeys, BackgroundColorModifier.identity, BackgroundColorModifier, value);
2560    return this;
2561  }
2562  backgroundImage(src, repeat) {
2563    let arkBackgroundImage = new ArkBackgroundImage();
2564    arkBackgroundImage.src = src;
2565    arkBackgroundImage.repeat = repeat;
2566    modifierWithKey(this._modifiersWithKeys, BackgroundImageModifier.identity, BackgroundImageModifier, arkBackgroundImage);
2567    return this;
2568  }
2569  backgroundImageSize(value) {
2570    modifierWithKey(this._modifiersWithKeys, BackgroundImageSizeModifier.identity, BackgroundImageSizeModifier, value);
2571    return this;
2572  }
2573  backgroundImagePosition(value) {
2574    modifierWithKey(this._modifiersWithKeys, BackgroundImagePositionModifier.identity, BackgroundImagePositionModifier, value);
2575    return this;
2576  }
2577  backgroundBlurStyle(value, options) {
2578    if (isUndefined(value)) {
2579      modifierWithKey(this._modifiersWithKeys, BackgroundBlurStyleModifier.identity, BackgroundBlurStyleModifier, undefined);
2580      return this;
2581    }
2582    let arkBackgroundBlurStyle = new ArkBackgroundBlurStyle();
2583    arkBackgroundBlurStyle.blurStyle = value;
2584    if (typeof options === 'object') {
2585      arkBackgroundBlurStyle.colorMode = options.colorMode;
2586      arkBackgroundBlurStyle.adaptiveColor = options.adaptiveColor;
2587      arkBackgroundBlurStyle.scale = options.scale;
2588    }
2589    modifierWithKey(this._modifiersWithKeys, BackgroundBlurStyleModifier.identity, BackgroundBlurStyleModifier, arkBackgroundBlurStyle);
2590    return this;
2591  }
2592  foregroundBlurStyle(value, options) {
2593    if (isUndefined(value)) {
2594      modifierWithKey(this._modifiersWithKeys, ForegroundBlurStyleModifier.identity, ForegroundBlurStyleModifier, undefined);
2595      return this;
2596    }
2597    let arkForegroundBlurStyle = new ArkForegroundBlurStyle();
2598    arkForegroundBlurStyle.blurStyle = value;
2599    if (typeof options === 'object') {
2600      arkForegroundBlurStyle.colorMode = options.colorMode;
2601      arkForegroundBlurStyle.adaptiveColor = options.adaptiveColor;
2602      arkForegroundBlurStyle.scale = options.scale;
2603    }
2604    modifierWithKey(this._modifiersWithKeys, ForegroundBlurStyleModifier.identity, ForegroundBlurStyleModifier, arkForegroundBlurStyle);
2605    return this;
2606  }
2607  opacity(value) {
2608    modifierWithKey(this._modifiersWithKeys, OpacityModifier.identity, OpacityModifier, value);
2609    return this;
2610  }
2611  border(value) {
2612    let _a, _b, _c, _d;
2613    let arkBorder = new ArkBorder();
2614    if (isUndefined(value)) {
2615      arkBorder = undefined;
2616    }
2617    if (!isUndefined(value === null || value === void 0 ? void 0 : value.width) && (value === null || value === void 0 ? void 0 : value.width) !== null) {
2618      if (isNumber(value.width) || isString(value.width) || isResource(value.width)) {
2619        arkBorder.arkWidth.left = value.width;
2620        arkBorder.arkWidth.right = value.width;
2621        arkBorder.arkWidth.top = value.width;
2622        arkBorder.arkWidth.bottom = value.width;
2623      }
2624      else {
2625        arkBorder.arkWidth.left = value.width.left;
2626        arkBorder.arkWidth.right = value.width.right;
2627        arkBorder.arkWidth.top = value.width.top;
2628        arkBorder.arkWidth.bottom = value.width.bottom;
2629      }
2630    }
2631    if (!isUndefined(value === null || value === void 0 ? void 0 : value.color) && (value === null || value === void 0 ? void 0 : value.color) !== null) {
2632      if (isNumber(value.color) || isString(value.color) || isResource(value.color)) {
2633        arkBorder.arkColor.leftColor = value.color;
2634        arkBorder.arkColor.rightColor = value.color;
2635        arkBorder.arkColor.topColor = value.color;
2636        arkBorder.arkColor.bottomColor = value.color;
2637      }
2638      else {
2639        arkBorder.arkColor.leftColor = value.color.left;
2640        arkBorder.arkColor.rightColor = value.color.right;
2641        arkBorder.arkColor.topColor = value.color.top;
2642        arkBorder.arkColor.bottomColor = value.color.bottom;
2643      }
2644    }
2645    if (!isUndefined(value === null || value === void 0 ? void 0 : value.radius) && (value === null || value === void 0 ? void 0 : value.radius) !== null) {
2646      if (isNumber(value.radius) || isString(value.radius) || isResource(value.radius)) {
2647        arkBorder.arkRadius.topLeft = value.radius;
2648        arkBorder.arkRadius.topRight = value.radius;
2649        arkBorder.arkRadius.bottomLeft = value.radius;
2650        arkBorder.arkRadius.bottomRight = value.radius;
2651      }
2652      else {
2653        arkBorder.arkRadius.topLeft = (_a = value.radius) === null || _a === void 0 ? void 0 : _a.topLeft;
2654        arkBorder.arkRadius.topRight = (_b = value.radius) === null || _b === void 0 ? void 0 : _b.topRight;
2655        arkBorder.arkRadius.bottomLeft = (_c = value.radius) === null || _c === void 0 ? void 0 : _c.bottomLeft;
2656        arkBorder.arkRadius.bottomRight = (_d = value.radius) === null || _d === void 0 ? void 0 : _d.bottomRight;
2657      }
2658    }
2659    if (!isUndefined(value === null || value === void 0 ? void 0 : value.style) && (value === null || value === void 0 ? void 0 : value.style) !== null) {
2660      let arkBorderStyle = new ArkBorderStyle();
2661      if (arkBorderStyle.parseBorderStyle(value.style)) {
2662        if (!isUndefined(arkBorderStyle.style)) {
2663          arkBorder.arkStyle.top = arkBorderStyle.style;
2664          arkBorder.arkStyle.left = arkBorderStyle.style;
2665          arkBorder.arkStyle.bottom = arkBorderStyle.style;
2666          arkBorder.arkStyle.right = arkBorderStyle.style;
2667        }
2668        else {
2669          arkBorder.arkStyle.top = arkBorderStyle.top;
2670          arkBorder.arkStyle.left = arkBorderStyle.left;
2671          arkBorder.arkStyle.bottom = arkBorderStyle.bottom;
2672          arkBorder.arkStyle.right = arkBorderStyle.right;
2673        }
2674      }
2675    }
2676    modifierWithKey(this._modifiersWithKeys, BorderModifier.identity, BorderModifier, arkBorder);
2677    return this;
2678  }
2679  borderStyle(value) {
2680    modifierWithKey(this._modifiersWithKeys, BorderStyleModifier.identity, BorderStyleModifier, value);
2681    return this;
2682  }
2683  borderWidth(value) {
2684    modifierWithKey(this._modifiersWithKeys, BorderWidthModifier.identity, BorderWidthModifier, value);
2685    return this;
2686  }
2687  borderColor(value) {
2688    modifierWithKey(this._modifiersWithKeys, BorderColorModifier.identity, BorderColorModifier, value);
2689    return this;
2690  }
2691  borderRadius(value) {
2692    modifierWithKey(this._modifiersWithKeys, BorderRadiusModifier.identity, BorderRadiusModifier, value);
2693    return this;
2694  }
2695  borderImage(value) {
2696    modifierWithKey(this._modifiersWithKeys, BorderImageModifier.identity, BorderImageModifier, value);
2697    return this;
2698  }
2699  foregroundColor(value) {
2700    modifierWithKey(this._modifiersWithKeys, ForegroundColorModifier.identity, ForegroundColorModifier, value);
2701    return this;
2702  }
2703  onClick(event) {
2704    throw new Error('Method not implemented.');
2705  }
2706  onHover(event) {
2707    throw new Error('Method not implemented.');
2708  }
2709  hoverEffect(value) {
2710    modifier(this._modifiers, HoverEffectModifier, value);
2711    return this;
2712  }
2713  onMouse(event) {
2714    throw new Error('Method not implemented.');
2715  }
2716  onTouch(event) {
2717    throw new Error('Method not implemented.');
2718  }
2719  onKeyEvent(event) {
2720    throw new Error('Method not implemented.');
2721  }
2722  focusable(value) {
2723    if (typeof value === 'boolean') {
2724      modifierWithKey(this._modifiersWithKeys, FocusableModifier.identity, FocusableModifier, value);
2725    }
2726    else {
2727      modifierWithKey(this._modifiersWithKeys, FocusableModifier.identity, FocusableModifier, undefined);
2728    }
2729    return this;
2730  }
2731  onFocus(event) {
2732    throw new Error('Method not implemented.');
2733  }
2734  onBlur(event) {
2735    throw new Error('Method not implemented.');
2736  }
2737  tabIndex(index) {
2738    if (typeof index !== 'number') {
2739      modifierWithKey(this._modifiersWithKeys, TabIndexModifier.identity, TabIndexModifier, undefined);
2740    }
2741    else {
2742      modifierWithKey(this._modifiersWithKeys, TabIndexModifier.identity, TabIndexModifier, index);
2743    }
2744    return this;
2745  }
2746  defaultFocus(value) {
2747    if (typeof value === 'boolean') {
2748      modifierWithKey(this._modifiersWithKeys, DefaultFocusModifier.identity, DefaultFocusModifier, value);
2749    }
2750    else {
2751      modifierWithKey(this._modifiersWithKeys, DefaultFocusModifier.identity, DefaultFocusModifier, undefined);
2752    }
2753    return this;
2754  }
2755  groupDefaultFocus(value) {
2756    if (typeof value === 'boolean') {
2757      modifierWithKey(this._modifiersWithKeys, GroupDefaultFocusModifier.identity, GroupDefaultFocusModifier, value);
2758    }
2759    else {
2760      modifierWithKey(this._modifiersWithKeys, GroupDefaultFocusModifier.identity, GroupDefaultFocusModifier, undefined);
2761    }
2762    return this;
2763  }
2764  focusOnTouch(value) {
2765    if (typeof value === 'boolean') {
2766      modifierWithKey(this._modifiersWithKeys, FocusOnTouchModifier.identity, FocusOnTouchModifier, value);
2767    }
2768    else {
2769      modifierWithKey(this._modifiersWithKeys, FocusOnTouchModifier.identity, FocusOnTouchModifier, undefined);
2770    }
2771    return this;
2772  }
2773  animation(value) {
2774    throw new Error('Method not implemented.');
2775  }
2776  transition(value) {
2777    modifierWithKey(this._modifiersWithKeys, TransitionModifier.identity, TransitionModifier, value);
2778    return this;
2779  }
2780  gesture(gesture, mask) {
2781    throw new Error('Method not implemented.');
2782  }
2783  priorityGesture(gesture, mask) {
2784    throw new Error('Method not implemented.');
2785  }
2786  parallelGesture(gesture, mask) {
2787    throw new Error('Method not implemented.');
2788  }
2789  blur(value) {
2790    if (!isNumber(value)) {
2791      modifierWithKey(this._modifiersWithKeys, BlurModifier.identity, BlurModifier, undefined);
2792    }
2793    else {
2794      modifierWithKey(this._modifiersWithKeys, BlurModifier.identity, BlurModifier, value);
2795    }
2796    return this;
2797  }
2798  linearGradientBlur(value, options) {
2799    if (isUndefined(value) || isNull(value) || isUndefined(options) || isNull(options)) {
2800      modifierWithKey(this._modifiersWithKeys, LinearGradientBlurModifier.identity, LinearGradientBlurModifier, undefined);
2801      return this;
2802    }
2803    let arkLinearGradientBlur = new ArkLinearGradientBlur();
2804    arkLinearGradientBlur.blurRadius = value;
2805    arkLinearGradientBlur.fractionStops = options.fractionStops;
2806    arkLinearGradientBlur.direction = options.direction;
2807    modifierWithKey(this._modifiersWithKeys, LinearGradientBlurModifier.identity, LinearGradientBlurModifier, arkLinearGradientBlur);
2808    return this;
2809  }
2810  brightness(value) {
2811    if (!isNumber(value)) {
2812      modifierWithKey(this._modifiersWithKeys, BrightnessModifier.identity, BrightnessModifier, undefined);
2813    }
2814    else {
2815      modifierWithKey(this._modifiersWithKeys, BrightnessModifier.identity, BrightnessModifier, value);
2816    }
2817    return this;
2818  }
2819  contrast(value) {
2820    if (!isNumber(value)) {
2821      modifierWithKey(this._modifiersWithKeys, ContrastModifier.identity, ContrastModifier, undefined);
2822    }
2823    else {
2824      modifierWithKey(this._modifiersWithKeys, ContrastModifier.identity, ContrastModifier, value);
2825    }
2826    return this;
2827  }
2828  grayscale(value) {
2829    if (!isNumber(value)) {
2830      modifierWithKey(this._modifiersWithKeys, GrayscaleModifier.identity, GrayscaleModifier, undefined);
2831    }
2832    else {
2833      modifierWithKey(this._modifiersWithKeys, GrayscaleModifier.identity, GrayscaleModifier, value);
2834    }
2835    return this;
2836  }
2837  colorBlend(value) {
2838    modifierWithKey(this._modifiersWithKeys, ColorBlendModifier.identity, ColorBlendModifier, value);
2839    return this;
2840  }
2841  saturate(value) {
2842    if (!isNumber(value)) {
2843      modifierWithKey(this._modifiersWithKeys, SaturateModifier.identity, SaturateModifier, undefined);
2844    }
2845    else {
2846      modifierWithKey(this._modifiersWithKeys, SaturateModifier.identity, SaturateModifier, value);
2847    }
2848    return this;
2849  }
2850  sepia(value) {
2851    if (!isNumber(value)) {
2852      modifierWithKey(this._modifiersWithKeys, SepiaModifier.identity, SepiaModifier, undefined);
2853    }
2854    else {
2855      modifierWithKey(this._modifiersWithKeys, SepiaModifier.identity, SepiaModifier, value);
2856    }
2857    return this;
2858  }
2859  invert(value) {
2860    if (!isNumber(value)) {
2861      modifierWithKey(this._modifiersWithKeys, InvertModifier.identity, InvertModifier, undefined);
2862    }
2863    else {
2864      modifierWithKey(this._modifiersWithKeys, InvertModifier.identity, InvertModifier, value);
2865    }
2866    return this;
2867  }
2868  hueRotate(value) {
2869    if (!isNumber(value) && !isString(value)) {
2870      modifierWithKey(this._modifiersWithKeys, HueRotateModifier.identity, HueRotateModifier, undefined);
2871    }
2872    else {
2873      modifierWithKey(this._modifiersWithKeys, HueRotateModifier.identity, HueRotateModifier, value);
2874    }
2875    return this;
2876  }
2877  useEffect(value) {
2878    modifierWithKey(this._modifiersWithKeys, UseEffectModifier.identity, UseEffectModifier, value);
2879    return this;
2880  }
2881  backdropBlur(value) {
2882    if (!isNumber(value)) {
2883      modifierWithKey(this._modifiersWithKeys, BackdropBlurModifier.identity, BackdropBlurModifier, undefined);
2884    }
2885    else {
2886      modifierWithKey(this._modifiersWithKeys, BackdropBlurModifier.identity, BackdropBlurModifier, value);
2887    }
2888    return this;
2889  }
2890  renderGroup(value) {
2891    modifierWithKey(this._modifiersWithKeys, RenderGroupModifier.identity, RenderGroupModifier, value);
2892    return this;
2893  }
2894  translate(value) {
2895    modifierWithKey(this._modifiersWithKeys, TranslateModifier.identity, TranslateModifier, value);
2896    return this;
2897  }
2898  scale(value) {
2899    modifierWithKey(this._modifiersWithKeys, ScaleModifier.identity, ScaleModifier, value);
2900    return this;
2901  }
2902  gridSpan(value) {
2903    if (isNumber(value)) {
2904      modifierWithKey(this._modifiersWithKeys, GridSpanModifier.identity, GridSpanModifier, value);
2905    }
2906    else {
2907      modifierWithKey(this._modifiersWithKeys, GridSpanModifier.identity, GridSpanModifier, undefined);
2908    }
2909    return this;
2910  }
2911  gridOffset(value) {
2912    if (isNumber(value)) {
2913      modifierWithKey(this._modifiersWithKeys, GridOffsetModifier.identity, GridOffsetModifier, value);
2914    }
2915    else {
2916      modifierWithKey(this._modifiersWithKeys, GridOffsetModifier.identity, GridOffsetModifier, undefined);
2917    }
2918    return this;
2919  }
2920  rotate(value) {
2921    modifierWithKey(this._modifiersWithKeys, RotateModifier.identity, RotateModifier, value);
2922    return this;
2923  }
2924  transform(value) {
2925    modifierWithKey(this._modifiersWithKeys, TransformModifier.identity, TransformModifier, value);
2926    return this;
2927  }
2928  onAppear(event) {
2929    throw new Error('Method not implemented.');
2930  }
2931  onDisAppear(event) {
2932    throw new Error('Method not implemented.');
2933  }
2934  onAreaChange(event) {
2935    throw new Error('Method not implemented.');
2936  }
2937  visibility(value) {
2938    modifierWithKey(this._modifiersWithKeys, VisibilityModifier.identity, VisibilityModifier, value);
2939    return this;
2940  }
2941  flexGrow(value) {
2942    modifierWithKey(this._modifiersWithKeys, FlexGrowModifier.identity, FlexGrowModifier, value);
2943    return this;
2944  }
2945  flexShrink(value) {
2946    modifierWithKey(this._modifiersWithKeys, FlexShrinkModifier.identity, FlexShrinkModifier, value);
2947    return this;
2948  }
2949  flexBasis(value) {
2950    modifierWithKey(this._modifiersWithKeys, FlexBasisModifier.identity, FlexBasisModifier, value);
2951    return this;
2952  }
2953  alignSelf(value) {
2954    modifierWithKey(this._modifiersWithKeys, AlignSelfModifier.identity, AlignSelfModifier, value);
2955    return this;
2956  }
2957  displayPriority(value) {
2958    modifierWithKey(this._modifiersWithKeys, DisplayPriorityModifier.identity, DisplayPriorityModifier, value);
2959    return this;
2960  }
2961  zIndex(value) {
2962    if (value !== null) {
2963      let zIndex = 0;
2964      if (typeof (value) === 'number') {
2965        zIndex = value;
2966      }
2967      modifierWithKey(this._modifiersWithKeys, ZIndexModifier.identity, ZIndexModifier, zIndex);
2968    }
2969    return this;
2970  }
2971  sharedTransition(id, options) {
2972    let arkSharedTransition = new ArkSharedTransition();
2973    if (isString(id)) {
2974      arkSharedTransition.id = id;
2975    }
2976    if (typeof options === 'object') {
2977      arkSharedTransition.options = options;
2978    }
2979    modifierWithKey(this._modifiersWithKeys, SharedTransitionModifier.identity, SharedTransitionModifier, arkSharedTransition);
2980    return this;
2981  }
2982  direction(value) {
2983    modifierWithKey(this._modifiersWithKeys, DirectionModifier.identity, DirectionModifier, value);
2984    return this;
2985  }
2986  align(value) {
2987    if (isNumber(value)) {
2988      modifierWithKey(this._modifiersWithKeys, AlignModifier.identity, AlignModifier, value);
2989    }
2990    else {
2991      modifierWithKey(this._modifiersWithKeys, AlignModifier.identity, AlignModifier, undefined);
2992    }
2993    return this;
2994  }
2995  position(value) {
2996    modifierWithKey(this._modifiersWithKeys, PositionModifier.identity, PositionModifier, value);
2997    return this;
2998  }
2999  markAnchor(value) {
3000    modifierWithKey(this._modifiersWithKeys, MarkAnchorModifier.identity, MarkAnchorModifier, value);
3001    return this;
3002  }
3003  offset(value) {
3004    modifierWithKey(this._modifiersWithKeys, OffsetModifier.identity, OffsetModifier, value);
3005    return this;
3006  }
3007  enabled(value) {
3008    if (typeof value === 'boolean') {
3009      modifierWithKey(this._modifiersWithKeys, EnabledModifier.identity, EnabledModifier, value);
3010    }
3011    else {
3012      modifierWithKey(this._modifiersWithKeys, EnabledModifier.identity, EnabledModifier, undefined);
3013    }
3014    return this;
3015  }
3016  useShadowBatching(value) {
3017    modifierWithKey(this._modifiersWithKeys, UseShadowBatchingModifier.identity, UseShadowBatchingModifier, value);
3018    return this;
3019  }
3020  monopolizeEvents(value) {
3021    modifierWithKey(this._modifiersWithKeys, MonopolizeEventsModifier.identity, MonopolizeEventsModifier, value);
3022    return this;
3023  }
3024  useSizeType(value) {
3025    throw new Error('Method not implemented.');
3026  }
3027  alignRules(value) {
3028    if (!isObject(value) || JSON.stringify(value) === '{}') {
3029      modifierWithKey(this._modifiersWithKeys, AlignRulesModifier.identity, AlignRulesModifier, undefined);
3030      return this;
3031    }
3032    let keys = ['left', 'middle', 'right', 'top', 'center', 'bottom'];
3033    let arkValue = new ArkAlignRules();
3034    for (let i = 0; i < keys.length; i++) {
3035      let rule = value[keys[i]];
3036      let alignRule = '';
3037      if (isObject(rule)) {
3038        let alignSign = false;
3039        let anchorSign = false;
3040        let align = rule.align;
3041        let anchor = rule.anchor;
3042        if (isString(anchor)) {
3043          anchorSign = true;
3044        }
3045        if (i < DIRECTION_RANGE) {
3046          if (align in HorizontalAlign) {
3047            alignSign = true;
3048          }
3049        }
3050        else {
3051          if (align in VerticalAlign) {
3052            alignSign = true;
3053          }
3054        }
3055        if (!alignSign && !anchorSign) {
3056          alignRule += '';
3057        }
3058        else if (!anchorSign) {
3059          alignRule += align.toString();
3060          alignRule += '|';
3061          alignRule += '__container__';
3062        }
3063        else if (!alignSign) {
3064          alignRule += '2';
3065          alignRule += '|';
3066          alignRule += anchor;
3067        }
3068        else {
3069          alignRule += align.toString();
3070          alignRule += '|';
3071          alignRule += anchor;
3072        }
3073      }
3074      else {
3075        alignRule += '';
3076      }
3077      switch (keys[i]) {
3078        case 'left':
3079          arkValue.left = alignRule;
3080          break;
3081        case 'middle':
3082          arkValue.middle = alignRule;
3083          break;
3084        case 'right':
3085          arkValue.right = alignRule;
3086          break;
3087        case 'top':
3088          arkValue.top = alignRule;
3089          break;
3090        case 'center':
3091          arkValue.center = alignRule;
3092          break;
3093        case 'bottom':
3094          arkValue.bottom = alignRule;
3095          break;
3096      }
3097    }
3098    modifierWithKey(this._modifiersWithKeys, AlignRulesModifier.identity, AlignRulesModifier, arkValue);
3099    return this;
3100  }
3101  aspectRatio(value) {
3102    modifierWithKey(this._modifiersWithKeys, AspectRatioModifier.identity, AspectRatioModifier, value);
3103    return this;
3104  }
3105  clickEffect(value) {
3106    modifierWithKey(this._modifiersWithKeys, ClickEffectModifier.identity, ClickEffectModifier, value);
3107    return this;
3108  }
3109  onDragStart(event) {
3110    throw new Error('Method not implemented.');
3111  }
3112  onDragEnter(event) {
3113    throw new Error('Method not implemented.');
3114  }
3115  onDragMove(event) {
3116    throw new Error('Method not implemented.');
3117  }
3118  onDragLeave(event) {
3119    throw new Error('Method not implemented.');
3120  }
3121  onDrop(event) {
3122    throw new Error('Method not implemented.');
3123  }
3124  onDragEnd(event) {
3125    throw new Error('Method not implemented.');
3126  }
3127  allowDrop(value) {
3128    modifierWithKey(this._modifiersWithKeys, AllowDropModifier.identity, AllowDropModifier, value);
3129    return this;
3130  }
3131  draggable(value) {
3132    if (typeof value === 'boolean') {
3133      modifierWithKey(this._modifiersWithKeys, DraggableModifier.identity, DraggableModifier, value);
3134    }
3135    else {
3136      modifierWithKey(this._modifiersWithKeys, DraggableModifier.identity, DraggableModifier, undefined);
3137    }
3138    return this;
3139  }
3140  overlay(value, options) {
3141    if (typeof value === 'undefined') {
3142      modifierWithKey(this._modifiersWithKeys, OverlayModifier.identity, OverlayModifier, undefined);
3143      return this;
3144    }
3145    let arkOverlay = new ArkOverlay();
3146    if (arkOverlay.splitOverlayValue(value, options)) {
3147      modifierWithKey(this._modifiersWithKeys, OverlayModifier.identity, OverlayModifier, arkOverlay);
3148    }
3149    else {
3150      modifierWithKey(this._modifiersWithKeys, OverlayModifier.identity, OverlayModifier, undefined);
3151    }
3152    return this;
3153  }
3154  linearGradient(value) {
3155    modifierWithKey(this._modifiersWithKeys, LinearGradientModifier.identity, LinearGradientModifier, value);
3156    return this;
3157  }
3158  sweepGradient(value) {
3159    modifierWithKey(this._modifiersWithKeys, SweepGradientModifier.identity, SweepGradientModifier, value);
3160    return this;
3161  }
3162  radialGradient(value) {
3163    modifierWithKey(this._modifiersWithKeys, RadialGradientModifier.identity, RadialGradientModifier, value);
3164    return this;
3165  }
3166  motionPath(value) {
3167    modifierWithKey(this._modifiersWithKeys, MotionPathModifier.identity, MotionPathModifier, value);
3168    return this;
3169  }
3170  shadow(value) {
3171    modifierWithKey(this._modifiersWithKeys, ShadowModifier.identity, ShadowModifier, value);
3172    return this;
3173  }
3174  mask(value) {
3175    modifierWithKey(this._modifiersWithKeys, MaskModifier.identity, MaskModifier, value);
3176    return this;
3177  }
3178  key(value) {
3179    if (typeof value === 'string') {
3180      modifierWithKey(this._modifiersWithKeys, KeyModifier.identity, KeyModifier, value);
3181    }
3182    else {
3183      modifierWithKey(this._modifiersWithKeys, KeyModifier.identity, KeyModifier, undefined);
3184    }
3185    return this;
3186  }
3187  id(value) {
3188    if (typeof value === 'string') {
3189      modifierWithKey(this._modifiersWithKeys, IdModifier.identity, IdModifier, value);
3190    }
3191    else {
3192      modifierWithKey(this._modifiersWithKeys, IdModifier.identity, IdModifier, undefined);
3193    }
3194    return this;
3195  }
3196  geometryTransition(id) {
3197    if (isString(id)) {
3198      modifierWithKey(this._modifiersWithKeys, GeometryTransitionModifier.identity, GeometryTransitionModifier, id);
3199    }
3200    return this;
3201  }
3202  bindPopup(show, popup) {
3203    throw new Error('Method not implemented.');
3204  }
3205  bindMenu(content, options) {
3206    throw new Error('Method not implemented.');
3207  }
3208  bindContextMenu(content, responseType, options) {
3209    throw new Error('Method not implemented.');
3210  }
3211  bindContentCover(isShow, builder, type) {
3212    throw new Error('Method not implemented.');
3213  }
3214  blendMode(blendMode, blendApplyType) {
3215    let arkBlendMode = new ArkBlendMode();
3216    arkBlendMode.blendMode = blendMode;
3217    arkBlendMode.blendApplyType = blendApplyType;
3218    modifierWithKey(this._modifiersWithKeys, BlendModeModifier.identity, BlendModeModifier, arkBlendMode);
3219    return this;
3220  }
3221  clip(value) {
3222    modifierWithKey(this._modifiersWithKeys, ClipModifier.identity, ClipModifier, value);
3223    return this;
3224  }
3225  bindSheet(isShow, builder, options) {
3226    throw new Error('Method not implemented.');
3227  }
3228  stateStyles(value) {
3229    throw new Error('Method not implemented.');
3230  }
3231  restoreId(value) {
3232    if (typeof value !== 'number') {
3233      modifierWithKey(this._modifiersWithKeys, RestoreIdModifier.identity, RestoreIdModifier, undefined);
3234    }
3235    else {
3236      modifierWithKey(this._modifiersWithKeys, RestoreIdModifier.identity, RestoreIdModifier, value);
3237    }
3238    return this;
3239  }
3240  onVisibleAreaChange(ratios, event) {
3241    throw new Error('Method not implemented.');
3242  }
3243  sphericalEffect(value) {
3244    modifierWithKey(this._modifiersWithKeys, SphericalEffectModifier.identity, SphericalEffectModifier, value);
3245    return this;
3246  }
3247  lightUpEffect(value) {
3248    modifierWithKey(this._modifiersWithKeys, LightUpEffectModifier.identity, LightUpEffectModifier, value);
3249    return this;
3250  }
3251  pixelStretchEffect(options) {
3252    modifierWithKey(this._modifiersWithKeys, PixelStretchEffectModifier.identity, PixelStretchEffectModifier, options);
3253    return this;
3254  }
3255  keyboardShortcut(value, keys, action) {
3256    let keyboardShortCut = new ArkKeyBoardShortCut();
3257    keyboardShortCut.value = value;
3258    keyboardShortCut.keys = keys;
3259    modifierWithKey(this._modifiersWithKeys, KeyBoardShortCutModifier.identity, KeyBoardShortCutModifier, keyboardShortCut);
3260    return this;
3261  }
3262  accessibilityGroup(value) {
3263    if (typeof value === 'boolean') {
3264      modifierWithKey(this._modifiersWithKeys, AccessibilityGroupModifier.identity, AccessibilityGroupModifier, value);
3265    }
3266    else {
3267      modifierWithKey(this._modifiersWithKeys, AccessibilityGroupModifier.identity, AccessibilityGroupModifier, undefined);
3268    }
3269    return this;
3270  }
3271  accessibilityText(value) {
3272    if (typeof value === 'string') {
3273      modifierWithKey(this._modifiersWithKeys, AccessibilityTextModifier.identity, AccessibilityTextModifier, value);
3274    }
3275    else {
3276      modifierWithKey(this._modifiersWithKeys, AccessibilityTextModifier.identity, AccessibilityTextModifier, undefined);
3277    }
3278    return this;
3279  }
3280  accessibilityDescription(value) {
3281    if (typeof value !== 'string') {
3282      modifierWithKey(this._modifiersWithKeys, AccessibilityDescriptionModifier.identity, AccessibilityDescriptionModifier, undefined);
3283    }
3284    else {
3285      modifierWithKey(this._modifiersWithKeys, AccessibilityDescriptionModifier.identity, AccessibilityDescriptionModifier, value);
3286    }
3287    return this;
3288  }
3289  accessibilityLevel(value) {
3290    if (typeof value !== 'string') {
3291      modifierWithKey(this._modifiersWithKeys, AccessibilityLevelModifier.identity, AccessibilityLevelModifier, undefined);
3292    }
3293    else {
3294      modifierWithKey(this._modifiersWithKeys, AccessibilityLevelModifier.identity, AccessibilityLevelModifier, value);
3295    }
3296    return this;
3297  }
3298  obscured(reasons) {
3299    modifierWithKey(this._modifiersWithKeys, ObscuredModifier.identity, ObscuredModifier, reasons);
3300    return this;
3301  }
3302  reuseId(id) {
3303    throw new Error('Method not implemented.');
3304  }
3305  renderFit(fitMode) {
3306    modifierWithKey(this._modifiersWithKeys, RenderFitModifier.identity, RenderFitModifier, fitMode);
3307    return this;
3308  }
3309  attributeModifier(modifier) {
3310    return this;
3311  }
3312}
3313const isNull = (val) => typeof val === 'object' && val === null;
3314const isArray = (val) => Array.isArray(val);
3315const isDate = (val) => val instanceof Date;
3316const isRegExp = (val) => val instanceof RegExp;
3317const isError = (val) => val instanceof Error;
3318const isFloat = (val) => Number.isFinite(val) && !Number.isInteger(val);
3319const isInteger = (val) => Number.isInteger(val);
3320const isNonEmptyMap = (val) => val instanceof Map && val.size > 0;
3321const isTruthyString = (val) => typeof val === 'string' && val.trim() !== '';
3322
3323/// <reference path='./import.ts' />
3324class BlankColorModifier extends ModifierWithKey {
3325  constructor(value) {
3326    super(value);
3327  }
3328  applyPeer(node, reset) {
3329    if (reset) {
3330      getUINativeModule().blank.resetColor(node);
3331    }
3332    else {
3333      getUINativeModule().blank.setColor(node, this.value);
3334    }
3335  }
3336  checkObjectDiff() {
3337    return !isBaseOrResourceEqual(this.stageValue, this.value);
3338  }
3339}
3340BlankColorModifier.identity = Symbol('blankColor');
3341class BlankHeightModifier extends ModifierWithKey {
3342  constructor(value) {
3343    super(value);
3344  }
3345  applyPeer(node, reset) {
3346    if (reset) {
3347      getUINativeModule().blank.resetBlankHeight(node);
3348    } else {
3349      getUINativeModule().blank.setBlankHeight(node, this.value);
3350    }
3351  }
3352  checkObjectDiff() {
3353    return !isBaseOrResourceEqual(this.stageValue, this.value);
3354  }
3355}
3356BlankHeightModifier.identity = Symbol('blankHeight');
3357class ArkBlankComponent extends ArkComponent {
3358  constructor(nativePtr) {
3359    super(nativePtr);
3360  }
3361  color(value) {
3362    modifierWithKey(this._modifiersWithKeys, BlankColorModifier.identity, BlankColorModifier, value);
3363    return this;
3364  }
3365  height(value) {
3366    modifierWithKey(this._modifiersWithKeys, BlankHeightModifier.identity, BlankHeightModifier, value);
3367    return this;
3368  }
3369}
3370// @ts-ignore
3371globalThis.Blank.attributeModifier = function (modifier) {
3372  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
3373  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
3374  let component = this.createOrGetNode(elmtId, () => {
3375    return new ArkBlankComponent(nativeNode);
3376  });
3377  applyUIAttributes(modifier, nativeNode, component);
3378  component.applyModifierPatch();
3379};
3380
3381/// <reference path='./import.ts' />
3382class ColumnAlignItemsModifier extends ModifierWithKey {
3383  constructor(value) {
3384    super(value);
3385  }
3386  applyPeer(node, reset) {
3387    if (reset) {
3388      getUINativeModule().column.resetAlignItems(node);
3389    }
3390    else {
3391      getUINativeModule().column.setAlignItems(node, this.value);
3392    }
3393  }
3394  checkObjectDiff() {
3395    return this.stageValue !== this.value;
3396  }
3397}
3398ColumnAlignItemsModifier.identity = Symbol('columnAlignItems');
3399class ColumnJustifyContentModifier extends ModifierWithKey {
3400  constructor(value) {
3401    super(value);
3402  }
3403  applyPeer(node, reset) {
3404    if (reset) {
3405      getUINativeModule().column.resetJustifyContent(node);
3406    }
3407    else {
3408      getUINativeModule().column.setJustifyContent(node, this.value);
3409    }
3410  }
3411  checkObjectDiff() {
3412    return this.stageValue !== this.value;
3413  }
3414}
3415ColumnJustifyContentModifier.identity = Symbol('columnJustifyContent');
3416class ArkColumnComponent extends ArkComponent {
3417  constructor(nativePtr) {
3418    super(nativePtr);
3419  }
3420  alignItems(value) {
3421    modifierWithKey(this._modifiersWithKeys, ColumnAlignItemsModifier.identity, ColumnAlignItemsModifier, value);
3422    return this;
3423  }
3424  justifyContent(value) {
3425    modifierWithKey(this._modifiersWithKeys, ColumnJustifyContentModifier.identity, ColumnJustifyContentModifier, value);
3426    return this;
3427  }
3428  pointLight(value) {
3429    throw new Error('Method not implemented.');
3430  }
3431}
3432// @ts-ignore
3433globalThis.Column.attributeModifier = function (modifier) {
3434  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
3435  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
3436  let component = this.createOrGetNode(elmtId, () => {
3437    return new ArkColumnComponent(nativeNode);
3438  });
3439  applyUIAttributes(modifier, nativeNode, component);
3440  component.applyModifierPatch();
3441};
3442
3443/// <reference path='./import.ts' />
3444class ColumnSplitDividerModifier extends ModifierWithKey {
3445  constructor(value) {
3446    super(value);
3447  }
3448  applyPeer(node, reset) {
3449    if (reset) {
3450      getUINativeModule().columnSplit.resetDivider(node);
3451    }
3452    else {
3453      getUINativeModule().columnSplit.setDivider(node, this.value.startMargin, this.value.endMargin);
3454    }
3455  }
3456  checkObjectDiff() {
3457    return !isBaseOrResourceEqual(this.stageValue.startMargin, this.value.startMargin) ||
3458      !isBaseOrResourceEqual(this.stageValue.endMargin, this.value.endMargin);
3459  }
3460}
3461ColumnSplitDividerModifier.identity = Symbol('columnSplitDivider');
3462class ColumnSplitResizeableModifier extends ModifierWithKey {
3463  constructor(value) {
3464    super(value);
3465  }
3466  applyPeer(node, reset) {
3467    if (reset) {
3468      getUINativeModule().columnSplit.resetResizeable(node);
3469    }
3470    else {
3471      getUINativeModule().columnSplit.setResizeable(node, this.value);
3472    }
3473  }
3474  checkObjectDiff() {
3475    return this.stageValue !== this.value;
3476  }
3477}
3478ColumnSplitResizeableModifier.identity = Symbol('columnSplitResizeable');
3479class ColumnSplitClipModifier extends ModifierWithKey {
3480  constructor(value) {
3481    super(value);
3482  }
3483  applyPeer(node, reset) {
3484    if (reset) {
3485      getUINativeModule().common.resetClipWithEdge(node);
3486    }
3487    else {
3488      getUINativeModule().common.setClipWithEdge(node, this.value);
3489    }
3490  }
3491  checkObjectDiff() {
3492    return true;
3493  }
3494}
3495ColumnSplitClipModifier.identity = Symbol('columnSplitClip');
3496class ArkColumnSplitComponent extends ArkComponent {
3497  constructor(nativePtr) {
3498    super(nativePtr);
3499  }
3500  resizeable(value) {
3501    modifierWithKey(this._modifiersWithKeys, ColumnSplitResizeableModifier.identity, ColumnSplitResizeableModifier, value);
3502    return this;
3503  }
3504  divider(value) {
3505    modifierWithKey(this._modifiersWithKeys, ColumnSplitDividerModifier.identity, ColumnSplitDividerModifier, value);
3506    return this;
3507  }
3508  clip(value) {
3509    modifierWithKey(this._modifiersWithKeys, ColumnSplitClipModifier.identity, ColumnSplitClipModifier, value);
3510    return this;
3511  }
3512}
3513// @ts-ignore
3514globalThis.ColumnSplit.attributeModifier = function (modifier) {
3515  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
3516  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
3517  let component = this.createOrGetNode(elmtId, () => {
3518    return new ArkColumnSplitComponent(nativeNode);
3519  });
3520  applyUIAttributes(modifier, nativeNode, component);
3521  component.applyModifierPatch();
3522};
3523
3524/// <reference path='./import.ts' />
3525class DividerVerticalModifier extends ModifierWithKey {
3526  constructor(value) {
3527    super(value);
3528  }
3529  applyPeer(node, reset) {
3530    if (reset) {
3531      getUINativeModule().divider.resetVertical(node);
3532    }
3533    else {
3534      getUINativeModule().divider.setVertical(node, this.value);
3535    }
3536  }
3537  checkObjectDiff() {
3538    return this.stageValue !== this.value;
3539  }
3540}
3541DividerVerticalModifier.identity = Symbol('dividerVertical');
3542class DividerLineCapModifier extends ModifierWithKey {
3543  constructor(value) {
3544    super(value);
3545  }
3546  applyPeer(node, reset) {
3547    if (reset) {
3548      getUINativeModule().divider.resetLineCap(node);
3549    }
3550    else {
3551      getUINativeModule().divider.setLineCap(node, this.value);
3552    }
3553  }
3554  checkObjectDiff() {
3555    return this.stageValue !== this.value;
3556  }
3557}
3558DividerLineCapModifier.identity = Symbol('dividerLineCap');
3559class DividerColorModifier extends ModifierWithKey {
3560  constructor(value) {
3561    super(value);
3562  }
3563  applyPeer(node, reset) {
3564    if (reset) {
3565      getUINativeModule().divider.resetColor(node);
3566    }
3567    else {
3568      getUINativeModule().divider.setColor(node, this.value);
3569    }
3570  }
3571  checkObjectDiff() {
3572    return !isBaseOrResourceEqual(this.stageValue, this.value);
3573  }
3574}
3575DividerColorModifier.identity = Symbol('dividerColor');
3576class DividerStrokeWidthModifier extends ModifierWithKey {
3577  constructor(value) {
3578    super(value);
3579  }
3580  applyPeer(node, reset) {
3581    if (reset) {
3582      getUINativeModule().divider.resetStrokeWidth(node);
3583    }
3584    else {
3585      getUINativeModule().divider.setStrokeWidth(node, this.value);
3586    }
3587  }
3588  checkObjectDiff() {
3589    return this.stageValue !== this.value;
3590  }
3591}
3592DividerStrokeWidthModifier.identity = Symbol('dividerStrokeWidth');
3593class ArkDividerComponent extends ArkComponent {
3594  constructor(nativePtr) {
3595    super(nativePtr);
3596  }
3597  vertical(value) {
3598    modifierWithKey(this._modifiersWithKeys, DividerVerticalModifier.identity, DividerVerticalModifier, value);
3599    return this;
3600  }
3601  color(value) {
3602    modifierWithKey(this._modifiersWithKeys, DividerColorModifier.identity, DividerColorModifier, value);
3603    return this;
3604  }
3605  strokeWidth(value) {
3606    modifierWithKey(this._modifiersWithKeys, DividerStrokeWidthModifier.identity, DividerStrokeWidthModifier, value);
3607    return this;
3608  }
3609  lineCap(value) {
3610    modifierWithKey(this._modifiersWithKeys, DividerLineCapModifier.identity, DividerLineCapModifier, value);
3611    return this;
3612  }
3613}
3614// @ts-ignore
3615globalThis.Divider.attributeModifier = function (modifier) {
3616  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
3617  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
3618  let component = this.createOrGetNode(elmtId, () => {
3619    return new ArkDividerComponent(nativeNode);
3620  });
3621  applyUIAttributes(modifier, nativeNode, component);
3622  component.applyModifierPatch();
3623};
3624
3625/// <reference path='./import.ts' />
3626class ArkFlexComponent extends ArkComponent {
3627  constructor(nativePtr) {
3628    super(nativePtr);
3629  }
3630  pointLight(value) {
3631    throw new Error('Method not implemented.');
3632  }
3633}
3634// @ts-ignore
3635globalThis.Flex.attributeModifier = function (modifier) {
3636  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
3637  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
3638  let component = this.createOrGetNode(elmtId, () => {
3639    return new ArkFlexComponent(nativeNode);
3640  });
3641  applyUIAttributes(modifier, nativeNode, component);
3642  component.applyModifierPatch();
3643};
3644
3645/// <reference path='./import.ts' />
3646class GridRowAlignItemsModifier extends ModifierWithKey {
3647  constructor(value) {
3648    super(value);
3649  }
3650  applyPeer(node, reset) {
3651    if (reset) {
3652      getUINativeModule().gridRow.resetAlignItems(node);
3653    }
3654    else {
3655      getUINativeModule().gridRow.setAlignItems(node, this.value);
3656    }
3657  }
3658  checkObjectDiff() {
3659    return !isBaseOrResourceEqual(this.stageValue, this.value);
3660  }
3661}
3662GridRowAlignItemsModifier.identity = Symbol('gridRowAlignItems');
3663class ArkGridRowComponent extends ArkComponent {
3664  constructor(nativePtr) {
3665    super(nativePtr);
3666  }
3667  onBreakpointChange(callback) {
3668    throw new Error('Method not implemented.');
3669  }
3670  alignItems(value) {
3671    modifierWithKey(this._modifiersWithKeys, GridRowAlignItemsModifier.identity, GridRowAlignItemsModifier, value);
3672    return this;
3673  }
3674}
3675// @ts-ignore
3676globalThis.GridRow.attributeModifier = function (modifier) {
3677  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
3678  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
3679  let component = this.createOrGetNode(elmtId, () => {
3680    return new ArkGridRowComponent(nativeNode);
3681  });
3682  applyUIAttributes(modifier, nativeNode, component);
3683  component.applyModifierPatch();
3684};
3685
3686/// <reference path='./import.ts' />
3687class ArkGridComponent extends ArkComponent {
3688  constructor(nativePtr) {
3689    super(nativePtr);
3690  }
3691  columnsTemplate(value) {
3692    modifierWithKey(this._modifiersWithKeys, GridColumnsTemplateModifier.identity, GridColumnsTemplateModifier, value);
3693    return this;
3694  }
3695  rowsTemplate(value) {
3696    modifierWithKey(this._modifiersWithKeys, GridRowsTemplateModifier.identity, GridRowsTemplateModifier, value);
3697    return this;
3698  }
3699  columnsGap(value) {
3700    modifierWithKey(this._modifiersWithKeys, GridColumnsGapModifier.identity, GridColumnsGapModifier, value);
3701    return this;
3702  }
3703  rowsGap(value) {
3704    modifierWithKey(this._modifiersWithKeys, GridRowsGapModifier.identity, GridRowsGapModifier, value);
3705    return this;
3706  }
3707  scrollBarWidth(value) {
3708    modifierWithKey(this._modifiersWithKeys, GridScrollBarWidthModifier.identity, GridScrollBarWidthModifier, value);
3709    return this;
3710  }
3711  scrollBarColor(value) {
3712    modifierWithKey(this._modifiersWithKeys, GridScrollBarColorModifier.identity, GridScrollBarColorModifier, value);
3713    return this;
3714  }
3715  scrollBar(value) {
3716    modifierWithKey(this._modifiersWithKeys, GridScrollBarModifier.identity, GridScrollBarModifier, value);
3717    return this;
3718  }
3719  onScrollBarUpdate(event) {
3720    throw new Error('Method not implemented.');
3721  }
3722  onScrollIndex(event) {
3723    throw new Error('Method not implemented.');
3724  }
3725  cachedCount(value) {
3726    modifierWithKey(this._modifiersWithKeys, GridCachedCountModifier.identity, GridCachedCountModifier, value);
3727    return this;
3728  }
3729  editMode(value) {
3730    modifierWithKey(this._modifiersWithKeys, GridEditModeModifier.identity, GridEditModeModifier, value);
3731    return this;
3732  }
3733  multiSelectable(value) {
3734    modifierWithKey(this._modifiersWithKeys, GridMultiSelectableModifier.identity, GridMultiSelectableModifier, value);
3735    return this;
3736  }
3737  maxCount(value) {
3738    modifierWithKey(this._modifiersWithKeys, GridMaxCountModifier.identity, GridMaxCountModifier, value);
3739    return this;
3740  }
3741  minCount(value) {
3742    modifierWithKey(this._modifiersWithKeys, GridMinCountModifier.identity, GridMinCountModifier, value);
3743    return this;
3744  }
3745  cellLength(value) {
3746    modifierWithKey(this._modifiersWithKeys, GridCellLengthModifier.identity, GridCellLengthModifier, value);
3747    return this;
3748  }
3749  layoutDirection(value) {
3750    modifierWithKey(this._modifiersWithKeys, GridLayoutDirectionModifier.identity, GridLayoutDirectionModifier, value);
3751    return this;
3752  }
3753  supportAnimation(value) {
3754    modifierWithKey(this._modifiersWithKeys, GridSupportAnimationModifier.identity, GridSupportAnimationModifier, value);
3755    return this;
3756  }
3757  onItemDragStart(event) {
3758    throw new Error('Method not implemented.');
3759  }
3760  onItemDragEnter(event) {
3761    throw new Error('Method not implemented.');
3762  }
3763  onItemDragMove(event) {
3764    throw new Error('Method not implemented.');
3765  }
3766  onItemDragLeave(event) {
3767    throw new Error('Method not implemented.');
3768  }
3769  onItemDrop(event) {
3770    throw new Error('Method not implemented.');
3771  }
3772  edgeEffect(value, options) {
3773    let effect = new ArkGridEdgeEffect();
3774    effect.value = value;
3775    effect.options = options;
3776    modifierWithKey(this._modifiersWithKeys, GridEdgeEffectModifier.identity, GridEdgeEffectModifier, effect);
3777    return this;
3778  }
3779  nestedScroll(value) {
3780    modifierWithKey(this._modifiersWithKeys, GridNestedScrollModifier.identity, GridNestedScrollModifier, value);
3781    return this;
3782  }
3783  enableScrollInteraction(value) {
3784    modifierWithKey(this._modifiersWithKeys, GridEnableScrollModifier.identity, GridEnableScrollModifier, value);
3785    return this;
3786  }
3787  friction(value) {
3788    modifierWithKey(this._modifiersWithKeys, GridFrictionModifier.identity, GridFrictionModifier, value);
3789    return this;
3790  }
3791  onScroll(event) {
3792    throw new Error('Method not implemented.');
3793  }
3794  onReachStart(event) {
3795    throw new Error('Method not implemented.');
3796  }
3797  onReachEnd(event) {
3798    throw new Error('Method not implemented.');
3799  }
3800  onScrollStart(event) {
3801    throw new Error('Method not implemented.');
3802  }
3803  onScrollStop(event) {
3804    throw new Error('Method not implemented.');
3805  }
3806  onScrollFrameBegin(event) {
3807    throw new Error('Method not implemented.');
3808  }
3809  clip(value) {
3810    modifierWithKey(this._modifiersWithKeys, GridClipModifier.identity, GridClipModifier, value);
3811    return this;
3812  }
3813
3814}
3815class GridColumnsTemplateModifier extends ModifierWithKey {
3816  constructor(value) {
3817    super(value);
3818  }
3819  applyPeer(node, reset) {
3820    if (reset) {
3821      getUINativeModule().grid.resetColumnsTemplate(node);
3822    }
3823    else {
3824      getUINativeModule().grid.setColumnsTemplate(node, this.value);
3825    }
3826  }
3827}
3828GridColumnsTemplateModifier.identity = Symbol('gridColumnsTemplate');
3829class GridRowsTemplateModifier extends ModifierWithKey {
3830  constructor(value) {
3831    super(value);
3832  }
3833  applyPeer(node, reset) {
3834    if (reset) {
3835      getUINativeModule().grid.resetRowsTemplate(node);
3836    }
3837    else {
3838      getUINativeModule().grid.setRowsTemplate(node, this.value);
3839    }
3840  }
3841}
3842GridRowsTemplateModifier.identity = Symbol('gridRowsTemplate');
3843class GridColumnsGapModifier extends ModifierWithKey {
3844  constructor(value) {
3845    super(value);
3846  }
3847  applyPeer(node, reset) {
3848    if (reset) {
3849      getUINativeModule().grid.resetColumnsGap(node);
3850    }
3851    else {
3852      getUINativeModule().grid.setColumnsGap(node, this.value);
3853    }
3854  }
3855  checkObjectDiff() {
3856    return !isBaseOrResourceEqual(this.stageValue, this.value);
3857  }
3858}
3859GridColumnsGapModifier.identity = Symbol('gridColumnsGap');
3860class GridRowsGapModifier extends ModifierWithKey {
3861  constructor(value) {
3862    super(value);
3863  }
3864  applyPeer(node, reset) {
3865    if (reset) {
3866      getUINativeModule().grid.resetRowsGap(node);
3867    }
3868    else {
3869      getUINativeModule().grid.setRowsGap(node, this.value);
3870    }
3871  }
3872  checkObjectDiff() {
3873    return !isBaseOrResourceEqual(this.stageValue, this.value);
3874  }
3875}
3876GridRowsGapModifier.identity = Symbol('gridRowsGap');
3877class GridScrollBarWidthModifier extends ModifierWithKey {
3878  constructor(value) {
3879    super(value);
3880  }
3881  applyPeer(node, reset) {
3882    if (reset) {
3883      getUINativeModule().grid.resetScrollBarWidth(node);
3884    }
3885    else {
3886      getUINativeModule().grid.setScrollBarWidth(node, this.value);
3887    }
3888  }
3889}
3890GridScrollBarWidthModifier.identity = Symbol('gridScrollBarWidth');
3891class GridScrollBarModifier extends ModifierWithKey {
3892  constructor(value) {
3893    super(value);
3894  }
3895  applyPeer(node, reset) {
3896    if (reset) {
3897      getUINativeModule().grid.resetScrollBar(node);
3898    }
3899    else {
3900      getUINativeModule().grid.setScrollBar(node, this.value);
3901    }
3902  }
3903}
3904GridScrollBarModifier.identity = Symbol('gridScrollBar');
3905class GridScrollBarColorModifier extends ModifierWithKey {
3906  constructor(value) {
3907    super(value);
3908  }
3909  applyPeer(node, reset) {
3910    if (reset) {
3911      getUINativeModule().grid.resetScrollBarColor(node);
3912    }
3913    else {
3914      getUINativeModule().grid.setScrollBarColor(node, this.value);
3915    }
3916  }
3917}
3918GridScrollBarColorModifier.identity = Symbol('gridScrollBarColor');
3919class GridEditModeModifier extends ModifierWithKey {
3920  constructor(value) {
3921    super(value);
3922  }
3923  applyPeer(node, reset) {
3924    if (reset) {
3925      getUINativeModule().grid.resetEditMode(node);
3926    }
3927    else {
3928      getUINativeModule().grid.setEditMode(node, this.value);
3929    }
3930  }
3931}
3932GridEditModeModifier.identity = Symbol('gridEditMode');
3933class GridCachedCountModifier extends ModifierWithKey {
3934  constructor(value) {
3935    super(value);
3936  }
3937  applyPeer(node, reset) {
3938    if (reset) {
3939      getUINativeModule().grid.resetCachedCount(node);
3940    }
3941    else {
3942      getUINativeModule().grid.setCachedCount(node, this.value);
3943    }
3944  }
3945}
3946GridCachedCountModifier.identity = Symbol('gridCachedCount');
3947class GridMultiSelectableModifier extends ModifierWithKey {
3948  constructor(value) {
3949    super(value);
3950  }
3951  applyPeer(node, reset) {
3952    if (reset) {
3953      getUINativeModule().grid.resetMultiSelectable(node);
3954    }
3955    else {
3956      getUINativeModule().grid.setMultiSelectable(node, this.value);
3957    }
3958  }
3959}
3960GridMultiSelectableModifier.identity = Symbol('gridMultiSelectable');
3961class GridEdgeEffectModifier extends ModifierWithKey {
3962  constructor(value) {
3963    super(value);
3964  }
3965  applyPeer(node, reset) {
3966    let _a, _b;
3967    if (reset) {
3968      getUINativeModule().grid.resetEdgeEffect(node);
3969    }
3970    else {
3971      getUINativeModule().grid.setEdgeEffect(node, (_a = this.value) === null ||
3972      _a === void 0 ? void 0 : _a.value, (_b = this.value.options) === null ||
3973      _b === void 0 ? void 0 : _b.alwaysEnabled);
3974    }
3975  }
3976  checkObjectDiff() {
3977    return !((this.stageValue.value === this.value.value) &&
3978      (this.stageValue.options === this.value.options));
3979  }
3980}
3981GridEdgeEffectModifier.identity = Symbol('gridEdgeEffect');
3982class GridNestedScrollModifier extends ModifierWithKey {
3983  constructor(value) {
3984    super(value);
3985  }
3986  applyPeer(node, reset) {
3987    let _a, _b;
3988    if (reset) {
3989      getUINativeModule().grid.resetNestedScroll(node);
3990    }
3991    else {
3992      getUINativeModule().grid.setNestedScroll(node, (_a = this.value) === null ||
3993      _a === void 0 ? void 0 : _a.scrollForward, (_b = this.value) === null ||
3994      _b === void 0 ? void 0 : _b.scrollBackward);
3995    }
3996  }
3997  checkObjectDiff() {
3998    return !((this.stageValue.scrollForward === this.value.scrollForward) &&
3999      (this.stageValue.scrollBackward === this.value.scrollBackward));
4000  }
4001}
4002GridNestedScrollModifier.identity = Symbol('gridNestedScroll');
4003class GridEnableScrollModifier extends ModifierWithKey {
4004  constructor(value) {
4005    super(value);
4006  }
4007  applyPeer(node, reset) {
4008    if (reset) {
4009      getUINativeModule().grid.resetEnableScroll(node);
4010    }
4011    else {
4012      getUINativeModule().grid.setEnableScroll(node, this.value);
4013    }
4014  }
4015}
4016GridEnableScrollModifier.identity = Symbol('gridEnableScroll');
4017class GridFrictionModifier extends ModifierWithKey {
4018  constructor(value) {
4019    super(value);
4020  }
4021  applyPeer(node, reset) {
4022    if (reset) {
4023      getUINativeModule().grid.resetFriction(node);
4024    }
4025    else {
4026      getUINativeModule().grid.setFriction(node, this.value);
4027    }
4028  }
4029  checkObjectDiff() {
4030    return !isBaseOrResourceEqual(this.stageValue, this.value);
4031  }
4032}
4033GridFrictionModifier.identity = Symbol('gridFriction');
4034class GridMaxCountModifier extends ModifierWithKey {
4035  constructor(value) {
4036    super(value);
4037  }
4038  applyPeer(node, reset) {
4039    if (reset) {
4040      getUINativeModule().grid.resetMaxCount(node);
4041    }
4042    else {
4043      getUINativeModule().grid.setMaxCount(node, this.value);
4044    }
4045  }
4046}
4047GridMaxCountModifier.identity = Symbol('gridMaxCount');
4048class GridMinCountModifier extends ModifierWithKey {
4049  constructor(value) {
4050    super(value);
4051  }
4052  applyPeer(node, reset) {
4053    if (reset) {
4054      getUINativeModule().grid.resetMinCount(node);
4055    }
4056    else {
4057      getUINativeModule().grid.setMinCount(node, this.value);
4058    }
4059  }
4060}
4061GridMinCountModifier.identity = Symbol('gridMinCount');
4062class GridCellLengthModifier extends ModifierWithKey {
4063  constructor(value) {
4064    super(value);
4065  }
4066  applyPeer(node, reset) {
4067    if (reset) {
4068      getUINativeModule().grid.resetCellLength(node);
4069    }
4070    else {
4071      getUINativeModule().grid.setCellLength(node, this.value);
4072    }
4073  }
4074}
4075GridCellLengthModifier.identity = Symbol('gridCellLength');
4076class GridLayoutDirectionModifier extends ModifierWithKey {
4077  constructor(value) {
4078    super(value);
4079  }
4080  applyPeer(node, reset) {
4081    if (reset) {
4082      getUINativeModule().grid.resetLayoutDirection(node);
4083    }
4084    else {
4085      getUINativeModule().grid.setLayoutDirection(node, this.value);
4086    }
4087  }
4088}
4089GridLayoutDirectionModifier.identity = Symbol('gridLayoutDirection');
4090class GridSupportAnimationModifier extends ModifierWithKey {
4091  constructor(value) {
4092    super(value);
4093  }
4094  applyPeer(node, reset) {
4095    if (reset) {
4096      getUINativeModule().grid.resetSupportAnimation(node);
4097    }
4098    else {
4099      getUINativeModule().grid.setSupportAnimation(node, this.value);
4100    }
4101  }
4102}
4103GridSupportAnimationModifier.identity = Symbol('gridSupportAnimation');
4104class GridClipModifier extends ModifierWithKey {
4105  constructor(value) {
4106    super(value);
4107  }
4108  applyPeer(node, reset) {
4109    if (reset) {
4110      getUINativeModule().common.resetClipWithEdge(node);
4111    }
4112    else {
4113      getUINativeModule().common.setClipWithEdge(node, this.value);
4114    }
4115  }
4116  checkObjectDiff() {
4117    return true;
4118  }
4119}
4120GridClipModifier.identity = Symbol('gridClip');
4121// @ts-ignore
4122globalThis.Grid.attributeModifier = function (modifier) {
4123  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
4124  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
4125  let component = this.createOrGetNode(elmtId, () => {
4126    return new ArkGridComponent(nativeNode);
4127  });
4128  applyUIAttributes(modifier, nativeNode, component);
4129  component.applyModifierPatch();
4130};
4131
4132/// <reference path='./import.ts' />
4133class GridColSpanModifier extends ModifierWithKey {
4134  constructor(value) {
4135    super(value);
4136  }
4137  applyPeer(node, reset) {
4138    if (reset) {
4139      getUINativeModule().gridCol.resetSpan(node);
4140    }
4141    else {
4142      if (isNumber(this.value)) {
4143        getUINativeModule().gridCol.setSpan(node, this.value, this.value, this.value, this.value, this.value, this.value);
4144      }
4145      else {
4146        getUINativeModule().gridCol.setSpan(node, this.value.xs, this.value.sm, this.value.md, this.value.lg, this.value.xl, this.value.xxl);
4147      }
4148    }
4149  }
4150  checkObjectDiff() {
4151    if (isNumber(this.stageValue) && isNumber(this.value)) {
4152      return this.stageValue !== this.value;
4153    }
4154    else if (isObject(this.stageValue) && isObject(this.value)) {
4155      return this.stageValue.xs !== this.value.xs ||
4156        this.stageValue.sm !== this.value.sm ||
4157        this.stageValue.md !== this.value.md ||
4158        this.stageValue.lg !== this.value.lg ||
4159        this.stageValue.xl !== this.value.xl ||
4160        this.stageValue.xxl !== this.value.xxl;
4161    }
4162    else {
4163      return true;
4164    }
4165  }
4166}
4167GridColSpanModifier.identity = Symbol('gridColSpan');
4168class GridColOffsetModifier extends ModifierWithKey {
4169  constructor(value) {
4170    super(value);
4171  }
4172  applyPeer(node, reset) {
4173    if (reset) {
4174      getUINativeModule().gridCol.resetGridColOffset(node);
4175    }
4176    else {
4177      if (isNumber(this.value)) {
4178        getUINativeModule().gridCol.setGridColOffset(node, this.value, this.value, this.value, this.value, this.value, this.value);
4179      }
4180      else {
4181        getUINativeModule().gridCol.setGridColOffset(node, this.value.xs, this.value.sm, this.value.md, this.value.lg, this.value.xl, this.value.xxl);
4182      }
4183    }
4184  }
4185  checkObjectDiff() {
4186    if (isNumber(this.stageValue) && isNumber(this.value)) {
4187      return this.stageValue !== this.value;
4188    }
4189    else if (isObject(this.stageValue) && isObject(this.value)) {
4190      return this.stageValue.xs !== this.value.xs ||
4191        this.stageValue.sm !== this.value.sm ||
4192        this.stageValue.md !== this.value.md ||
4193        this.stageValue.lg !== this.value.lg ||
4194        this.stageValue.xl !== this.value.xl ||
4195        this.stageValue.xxl !== this.value.xxl;
4196    }
4197    else {
4198      return true;
4199    }
4200  }
4201}
4202GridColOffsetModifier.identity = Symbol('gridColOffset');
4203class GridColOrderModifier extends ModifierWithKey {
4204  constructor(value) {
4205    super(value);
4206  }
4207  applyPeer(node, reset) {
4208    if (reset) {
4209      getUINativeModule().gridCol.resetOrder(node);
4210    }
4211    else {
4212      if (isNumber(this.value)) {
4213        getUINativeModule().gridCol.setOrder(node, this.value, this.value, this.value, this.value, this.value, this.value);
4214      }
4215      else {
4216        getUINativeModule().gridCol.setOrder(node, this.value.xs, this.value.sm, this.value.md, this.value.lg, this.value.xl, this.value.xxl);
4217      }
4218    }
4219  }
4220  checkObjectDiff() {
4221    if (isNumber(this.stageValue) && isNumber(this.value)) {
4222      return this.stageValue !== this.value;
4223    }
4224    else if (isObject(this.stageValue) && isObject(this.value)) {
4225      return this.stageValue.xs !== this.value.xs ||
4226        this.stageValue.sm !== this.value.sm ||
4227        this.stageValue.md !== this.value.md ||
4228        this.stageValue.lg !== this.value.lg ||
4229        this.stageValue.xl !== this.value.xl ||
4230        this.stageValue.xxl !== this.value.xxl;
4231    }
4232    else {
4233      return true;
4234    }
4235  }
4236}
4237GridColOrderModifier.identity = Symbol('gridColOrder');
4238class ArkGridColComponent extends ArkComponent {
4239  constructor(nativePtr) {
4240    super(nativePtr);
4241  }
4242  span(value) {
4243    modifierWithKey(this._modifiersWithKeys, GridColSpanModifier.identity, GridColSpanModifier, value);
4244    return this;
4245  }
4246  gridColOffset(value) {
4247    modifierWithKey(this._modifiersWithKeys, GridColOffsetModifier.identity, GridColOffsetModifier, value);
4248    return this;
4249  }
4250  order(value) {
4251    modifierWithKey(this._modifiersWithKeys, GridColOrderModifier.identity, GridColOrderModifier, value);
4252    return this;
4253  }
4254}
4255// @ts-ignore
4256globalThis.GridCol.attributeModifier = function (modifier) {
4257  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
4258  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
4259  let component = this.createOrGetNode(elmtId, () => {
4260    return new ArkGridColComponent(nativeNode);
4261  });
4262  applyUIAttributes(modifier, nativeNode, component);
4263  component.applyModifierPatch();
4264};
4265
4266/// <reference path='./import.ts' />
4267class ImageColorFilterModifier extends ModifierWithKey {
4268  constructor(value) {
4269    super(value);
4270  }
4271  applyPeer(node, reset) {
4272    if (reset) {
4273      getUINativeModule().image.resetColorFilter(node);
4274    }
4275    else {
4276      getUINativeModule().image.setColorFilter(node, this.value);
4277    }
4278  }
4279  checkObjectDiff() {
4280    return true;
4281  }
4282}
4283ImageColorFilterModifier.identity = Symbol('imageColorFilter');
4284class ImageFillColorModifier extends ModifierWithKey {
4285  constructor(value) {
4286    super(value);
4287  }
4288  applyPeer(node, reset) {
4289    if (reset) {
4290      getUINativeModule().image.resetFillColor(node);
4291    }
4292    else {
4293      getUINativeModule().image.setFillColor(node, this.value);
4294    }
4295  }
4296  checkObjectDiff() {
4297    return !isBaseOrResourceEqual(this.stageValue, this.value);
4298  }
4299}
4300ImageFillColorModifier.identity = Symbol('imageFillColor');
4301class ImageAltModifier extends ModifierWithKey {
4302  constructor(value) {
4303    super(value);
4304  }
4305  applyPeer(node, reset) {
4306    if (reset) {
4307      getUINativeModule().image.resetAlt(node);
4308    }
4309    else {
4310      getUINativeModule().image.setAlt(node, this.value);
4311    }
4312  }
4313  checkObjectDiff() {
4314    return !isBaseOrResourceEqual(this.stageValue, this.value);
4315  }
4316}
4317ImageAltModifier.identity = Symbol('imageAlt');
4318class ImageCopyOptionModifier extends ModifierWithKey {
4319  constructor(value) {
4320    super(value);
4321  }
4322  applyPeer(node, reset) {
4323    if (reset) {
4324      getUINativeModule().image.resetCopyOption(node);
4325    }
4326    else {
4327      getUINativeModule().image.setCopyOption(node, this.value);
4328    }
4329  }
4330  checkObjectDiff() {
4331    return this.stageValue !== this.value;
4332  }
4333}
4334ImageCopyOptionModifier.identity = Symbol('imageCopyOption');
4335class ImageAutoResizeModifier extends ModifierWithKey {
4336  constructor(value) {
4337    super(value);
4338  }
4339  applyPeer(node, reset) {
4340    if (reset) {
4341      getUINativeModule().image.resetAutoResize(node);
4342    }
4343    else {
4344      getUINativeModule().image.setAutoResize(node, this.value);
4345    }
4346  }
4347  checkObjectDiff() {
4348    return this.stageValue !== this.value;
4349  }
4350}
4351ImageAutoResizeModifier.identity = Symbol('imageAutoResize');
4352class ImageFitOriginalSizeModifier extends ModifierWithKey {
4353  constructor(value) {
4354    super(value);
4355  }
4356  applyPeer(node, reset) {
4357    if (reset) {
4358      getUINativeModule().image.resetFitOriginalSize(node);
4359    }
4360    else {
4361      getUINativeModule().image.setFitOriginalSize(node, this.value);
4362    }
4363  }
4364  checkObjectDiff() {
4365    return this.stageValue !== this.value;
4366  }
4367}
4368ImageFitOriginalSizeModifier.identity = Symbol('imageFitOriginalSize');
4369class ImageDraggableModifier extends ModifierWithKey {
4370  constructor(value) {
4371    super(value);
4372  }
4373  applyPeer(node, reset) {
4374    if (reset) {
4375      getUINativeModule().image.resetDraggable(node);
4376    }
4377    else {
4378      getUINativeModule().image.setDraggable(node, this.value);
4379    }
4380  }
4381  checkObjectDiff() {
4382    return this.stageValue !== this.value;
4383  }
4384}
4385ImageDraggableModifier.identity = Symbol('imageDraggable');
4386class ImageInterpolationModifier extends ModifierWithKey {
4387  constructor(value) {
4388    super(value);
4389  }
4390  applyPeer(node, reset) {
4391    if (reset) {
4392      getUINativeModule().image.resetImageInterpolation(node);
4393    }
4394    else {
4395      getUINativeModule().image.setImageInterpolation(node, this.value);
4396    }
4397  }
4398  checkObjectDiff() {
4399    return this.stageValue !== this.value;
4400  }
4401}
4402ImageInterpolationModifier.identity = Symbol('imageInterpolation');
4403class ImageSourceSizeModifier extends ModifierWithKey {
4404  constructor(value) {
4405    super(value);
4406  }
4407  applyPeer(node, reset) {
4408    if (reset) {
4409      getUINativeModule().image.resetSourceSize(node);
4410    }
4411    else {
4412      getUINativeModule().image.setSourceSize(node, this.value.width, this.value.height);
4413    }
4414  }
4415  checkObjectDiff() {
4416    return this.stageValue.width !== this.value.width ||
4417      this.stageValue.height !== this.value.height;
4418  }
4419}
4420ImageSourceSizeModifier.identity = Symbol('imageSourceSize');
4421class ImageMatchTextDirectionModifier extends ModifierWithKey {
4422  constructor(value) {
4423    super(value);
4424  }
4425  applyPeer(node, reset) {
4426    if (reset) {
4427      getUINativeModule().image.resetMatchTextDirection(node);
4428    }
4429    else {
4430      getUINativeModule().image.setMatchTextDirection(node, this.value);
4431    }
4432  }
4433  checkObjectDiff() {
4434    return this.stageValue !== this.value;
4435  }
4436}
4437ImageMatchTextDirectionModifier.identity = Symbol('imageMatchTextDirection');
4438class ImageObjectRepeatModifier extends ModifierWithKey {
4439  constructor(value) {
4440    super(value);
4441  }
4442  applyPeer(node, reset) {
4443    if (reset) {
4444      getUINativeModule().image.resetObjectRepeat(node);
4445    }
4446    else {
4447      getUINativeModule().image.setObjectRepeat(node, this.value);
4448    }
4449  }
4450  checkObjectDiff() {
4451    return this.stageValue !== this.value;
4452  }
4453}
4454ImageObjectRepeatModifier.identity = Symbol('imageObjectRepeat');
4455class ImageRenderModeModifier extends ModifierWithKey {
4456  constructor(value) {
4457    super(value);
4458  }
4459  applyPeer(node, reset) {
4460    if (reset) {
4461      getUINativeModule().image.resetRenderMode(node);
4462    }
4463    else {
4464      getUINativeModule().image.setRenderMode(node, this.value);
4465    }
4466  }
4467  checkObjectDiff() {
4468    return this.stageValue !== this.value;
4469  }
4470}
4471ImageRenderModeModifier.identity = Symbol('imageRenderMode');
4472class ImageSyncLoadModifier extends ModifierWithKey {
4473  constructor(value) {
4474    super(value);
4475  }
4476  applyPeer(node, reset) {
4477    if (reset) {
4478      getUINativeModule().image.resetSyncLoad(node);
4479    }
4480    else {
4481      getUINativeModule().image.setSyncLoad(node, this.value);
4482    }
4483  }
4484  checkObjectDiff() {
4485    return this.stageValue !== this.value;
4486  }
4487}
4488ImageSyncLoadModifier.identity = Symbol('imageSyncLoad');
4489class ImageObjectFitModifier extends ModifierWithKey {
4490  constructor(value) {
4491    super(value);
4492  }
4493  applyPeer(node, reset) {
4494    if (reset) {
4495      getUINativeModule().image.resetObjectFit(node);
4496    }
4497    else {
4498      getUINativeModule().image.setObjectFit(node, this.value);
4499    }
4500  }
4501  checkObjectDiff() {
4502    return this.stageValue !== this.value;
4503  }
4504}
4505ImageObjectFitModifier.identity = Symbol('imageObjectFit');
4506class ImageBorderRadiusModifier extends ModifierWithKey {
4507  constructor(value) {
4508    super(value);
4509  }
4510  applyPeer(node, reset) {
4511    if (reset) {
4512      getUINativeModule().image.resetBorderRadius(node);
4513    }
4514    else {
4515      if (isNumber(this.value) || isString(this.value) || isResource(this.value)) {
4516        getUINativeModule().image.setBorderRadius(node, this.value, this.value, this.value, this.value);
4517      }
4518      else {
4519        getUINativeModule().image.setBorderRadius(node, this.value.topLeft, this.value.topRight, this.value.bottomLeft, this.value.bottomRight);
4520      }
4521    }
4522  }
4523  checkObjectDiff() {
4524    if (isResource(this.stageValue) && isResource(this.value)) {
4525      return !isResourceEqual(this.stageValue, this.value);
4526    }
4527    else if (!isResource(this.stageValue) && !isResource(this.value)) {
4528      return !(this.stageValue.topLeft === this.value.topLeft &&
4529        this.stageValue.topRight === this.value.topRight &&
4530        this.stageValue.bottomLeft === this.value.bottomLeft &&
4531        this.stageValue.bottomRight === this.value.bottomRight);
4532    }
4533    else {
4534      return true;
4535    }
4536  }
4537}
4538ImageBorderRadiusModifier.identity = Symbol('imageBorderRadius');
4539class ImageBorderModifier extends ModifierWithKey {
4540  constructor(value) {
4541    super(value);
4542  }
4543  applyPeer(node, reset) {
4544    if (reset) {
4545      getUINativeModule().image.resetImageBorder(node);
4546    } else {
4547      let widthLeft;
4548      let widthRight;
4549      let widthTop;
4550      let widthBottom;
4551      if (!isUndefined(this.value.width) && this.value.width != null) {
4552        if (isNumber(this.value.width) || isString(this.value.width) || isResource(this.value.width)) {
4553          widthLeft = this.value.width;
4554          widthRight = this.value.width;
4555          widthTop = this.value.width;
4556          widthBottom = this.value.width;
4557        } else {
4558          widthLeft = this.value.width.left;
4559          widthRight = this.value.width.right;
4560          widthTop = this.value.width.top;
4561          widthBottom = this.value.width.bottom;
4562        }
4563      }
4564      let leftColor;
4565      let rightColor;
4566      let topColor;
4567      let bottomColor;
4568      if (!isUndefined(this.value.color) && this.value.color != null) {
4569        if (isNumber(this.value.color) || isString(this.value.color) || isResource(this.value.color)) {
4570          leftColor = this.value.color;
4571          rightColor = this.value.color;
4572          topColor = this.value.color;
4573          bottomColor = this.value.color;
4574        } else {
4575          leftColor = this.value.color.left;
4576          rightColor = this.value.color.right;
4577          topColor = this.value.color.top;
4578          bottomColor = this.value.color.bottom;
4579        }
4580      }
4581      let topLeft;
4582      let topRight;
4583      let bottomLeft;
4584      let bottomRight;
4585      if (!isUndefined(this.value.radius) && this.value.radius != null) {
4586        if (isNumber(this.value.radius) || isString(this.value.radius) || isResource(this.value.radius)) {
4587          topLeft = this.value.radius;
4588          topRight = this.value.radius;
4589          bottomLeft = this.value.radius;
4590          bottomRight = this.value.radius;
4591        } else {
4592          topLeft = this.value.radius.topLeft;
4593          topRight = this.value.radius.topRight;
4594          bottomLeft = this.value.radius.bottomLeft;
4595          bottomRight = this.value.radius.bottomRight;
4596        }
4597      }
4598      let styleTop;
4599      let styleRight;
4600      let styleBottom;
4601      let styleLeft;
4602      if (!isUndefined(this.value.style) && this.value.style != null) {
4603        if (isNumber(this.value.style) || isString(this.value.style) || isResource(this.value.style)) {
4604          styleTop = this.value.style;
4605          styleRight = this.value.style;
4606          styleBottom = this.value.style;
4607          styleLeft = this.value.style;
4608        } else {
4609          styleTop = this.value.style.top;
4610          styleRight = this.value.style.right;
4611          styleBottom = this.value.style.bottom;
4612          styleLeft = this.value.style.left;
4613        }
4614      }
4615      getUINativeModule().image.setImageBorder(
4616        node,
4617        widthLeft,
4618        widthRight,
4619        widthTop,
4620        widthBottom,
4621        leftColor,
4622        rightColor,
4623        topColor,
4624        bottomColor,
4625        topLeft,
4626        topRight,
4627        bottomLeft,
4628        bottomRight,
4629        styleTop,
4630        styleRight,
4631        styleBottom,
4632        styleLeft
4633      );
4634    }
4635  }
4636  checkObjectDiff() {
4637    return (
4638      !isBaseOrResourceEqual(this.stageValue.width, this.value.width) ||
4639      !isBaseOrResourceEqual(this.stageValue.color, this.value.color) ||
4640      !isBaseOrResourceEqual(this.stageValue.radius, this.value.radius) ||
4641      !isBaseOrResourceEqual(this.stageValue.style, this.value.style)
4642    );
4643  }
4644}
4645ImageBorderModifier.identity = Symbol('imageBorder');
4646class ImageOpacityModifier extends ModifierWithKey {
4647  constructor(value) {
4648    super(value);
4649  }
4650  applyPeer(node, reset) {
4651    if (reset) {
4652      getUINativeModule().image.resetImageOpacity(node);
4653    } else {
4654      getUINativeModule().image.setImageOpacity(node, this.value);
4655    }
4656  }
4657  checkObjectDiff() {
4658    return !isBaseOrResourceEqual(this.stageValue, this.value);
4659  }
4660}
4661ImageOpacityModifier.identity = Symbol('imageOpacity');
4662class ImageeEdgeAntialiasingModifier extends ModifierWithKey {
4663  constructor(value) {
4664    super(value);
4665  }
4666  applyPeer(node, reset) {
4667    if (reset) {
4668      getUINativeModule().image.resetEdgeAntialiasing(node);
4669    } else {
4670      getUINativeModule().image.setEdgeAntialiasing(node, this.value);
4671    }
4672  }
4673}
4674ImageeEdgeAntialiasingModifier.identity = Symbol('edgeAntialiasing');
4675class ImageTransitionModifier extends ModifierWithKey {
4676  constructor(value) {
4677    super(value);
4678  }
4679  applyPeer(node, reset) {
4680    if (reset) {
4681      getUINativeModule().image.resetImageTransition(node);
4682    } else {
4683      getUINativeModule().image.setImageTransition(node, this.value);
4684    }
4685  }
4686}
4687ImageTransitionModifier.identity = Symbol('imageTransition');
4688class ArkImageComponent extends ArkComponent {
4689  constructor(nativePtr) {
4690    super(nativePtr);
4691  }
4692  onGestureJudgeBegin(callback) {
4693    throw new Error('Method not implemented.');
4694  }
4695  draggable(value) {
4696    modifierWithKey(this._modifiersWithKeys, ImageDraggableModifier.identity, ImageDraggableModifier, value);
4697    return this;
4698  }
4699  edgeAntialiasing(value) {
4700    modifierWithKey(this._modifiersWithKeys, ImageeEdgeAntialiasingModifier.identity, ImageeEdgeAntialiasingModifier, value);
4701    return this;
4702  }
4703  alt(value) {
4704    modifierWithKey(this._modifiersWithKeys, ImageAltModifier.identity, ImageAltModifier, value);
4705    return this;
4706  }
4707  matchTextDirection(value) {
4708    modifierWithKey(this._modifiersWithKeys, ImageMatchTextDirectionModifier.identity, ImageMatchTextDirectionModifier, value);
4709    return this;
4710  }
4711  fitOriginalSize(value) {
4712    modifierWithKey(this._modifiersWithKeys, ImageFitOriginalSizeModifier.identity, ImageFitOriginalSizeModifier, value);
4713    return this;
4714  }
4715  fillColor(value) {
4716    modifierWithKey(this._modifiersWithKeys, ImageFillColorModifier.identity, ImageFillColorModifier, value);
4717    return this;
4718  }
4719  objectFit(value) {
4720    modifierWithKey(this._modifiersWithKeys, ImageObjectFitModifier.identity, ImageObjectFitModifier, value);
4721    return this;
4722  }
4723  objectRepeat(value) {
4724    modifierWithKey(this._modifiersWithKeys, ImageObjectRepeatModifier.identity, ImageObjectRepeatModifier, value);
4725    return this;
4726  }
4727  autoResize(value) {
4728    modifierWithKey(this._modifiersWithKeys, ImageAutoResizeModifier.identity, ImageAutoResizeModifier, value);
4729    return this;
4730  }
4731  renderMode(value) {
4732    modifierWithKey(this._modifiersWithKeys, ImageRenderModeModifier.identity, ImageRenderModeModifier, value);
4733    return this;
4734  }
4735  interpolation(value) {
4736    modifierWithKey(this._modifiersWithKeys, ImageInterpolationModifier.identity, ImageInterpolationModifier, value);
4737    return this;
4738  }
4739  sourceSize(value) {
4740    modifierWithKey(this._modifiersWithKeys, ImageSourceSizeModifier.identity, ImageSourceSizeModifier, value);
4741    return this;
4742  }
4743  syncLoad(value) {
4744    modifierWithKey(this._modifiersWithKeys, ImageSyncLoadModifier.identity, ImageSyncLoadModifier, value);
4745    return this;
4746  }
4747  colorFilter(value) {
4748    modifierWithKey(this._modifiersWithKeys, ImageColorFilterModifier.identity, ImageColorFilterModifier, value);
4749    return this;
4750  }
4751  copyOption(value) {
4752    modifierWithKey(this._modifiersWithKeys, ImageCopyOptionModifier.identity, ImageCopyOptionModifier, value);
4753    return this;
4754  }
4755  borderRadius(value) {
4756    modifierWithKey(this._modifiersWithKeys, ImageBorderRadiusModifier.identity, ImageBorderRadiusModifier, value);
4757    return this;
4758  }
4759  onComplete(callback) {
4760    throw new Error('Method not implemented.');
4761  }
4762  onError(callback) {
4763    throw new Error('Method not implemented.');
4764  }
4765  onFinish(event) {
4766    throw new Error('Method not implemented.');
4767  }
4768  border(value) {
4769    modifierWithKey(this._modifiersWithKeys, ImageBorderModifier.identity, ImageBorderModifier, value);
4770    return this;
4771  }
4772  opacity(value) {
4773    modifierWithKey(this._modifiersWithKeys, ImageOpacityModifier.identity, ImageOpacityModifier, value);
4774    return this;
4775  }
4776  transition(value) {
4777    modifierWithKey(this._modifiersWithKeys, ImageTransitionModifier.identity, ImageTransitionModifier, value);
4778    return this;
4779  }
4780}
4781// @ts-ignore
4782globalThis.Image.attributeModifier = function (modifier) {
4783  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
4784  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
4785  let component = this.createOrGetNode(elmtId, () => {
4786    return new ArkImageComponent(nativeNode);
4787  });
4788  applyUIAttributes(modifier, nativeNode, component);
4789  component.applyModifierPatch();
4790};
4791
4792/// <reference path='./import.ts' />
4793class ImageAnimatorImagesModifier extends ModifierWithKey {
4794  constructor(value) {
4795    super(value);
4796  }
4797  applyPeer(node, reset) {
4798    if (reset) {
4799      getUINativeModule().imageAnimator.resetImages(node);
4800    }
4801    else {
4802      let arkImageFrame = this.convertImageFrames(this.value);
4803      if (!arkImageFrame) {
4804        getUINativeModule().imageAnimator.resetImages(node);
4805      }
4806      else {
4807        getUINativeModule().imageAnimator.setImages(node, arkImageFrame.arrSrc,
4808          arkImageFrame.arrWidth, arkImageFrame.arrHeight, arkImageFrame.arrTop,
4809          arkImageFrame.arrLeft, arkImageFrame.arrDuration, arkImageFrame.arrSrc.length);
4810      }
4811    }
4812  }
4813  checkObjectDiff() {
4814    let checkDiff = true;
4815    if (this.value && this.value.length > 0 &&
4816      this.stageValue && this.stageValue.length > 0 &&
4817      this.value.length === this.stageValue.length) {
4818      let checkItemEqual = false;
4819      for (let i = 0; i < this.value.length; i++) {
4820        checkItemEqual = this.isEqual(this.stageValue[i], this.value[i]);
4821        if (!checkItemEqual) {
4822          checkDiff = !checkItemEqual;
4823          break;
4824        }
4825      }
4826    }
4827    return checkDiff;
4828  }
4829  isEqual(one, another) {
4830    if (!(one.width === another.width &&
4831      one.height === another.height &&
4832      one.top === another.top &&
4833      one.left === another.left &&
4834      one.duration === another.duration)) {
4835      return true;
4836    }
4837    else {
4838      return !isBaseOrResourceEqual(one.src, another.src);
4839    }
4840  }
4841  convertImageFrames(value) {
4842    if (value && value.length > 0) {
4843      let isFlag = true;
4844      for (let item of value) {
4845        if (item.src === undefined || item.src === null) {
4846          isFlag = false;
4847          break;
4848        }
4849      }
4850      if (isFlag) {
4851        let array = new ArkImageFrameInfoToArray();
4852        for (let item of value) {
4853          array.arrSrc.push(item.src);
4854          array.arrWidth.push((item.width === undefined || item.width === null) ? 0 : item.width);
4855          array.arrHeight.push((item.height === undefined || item.height === null) ? 0 : item.height);
4856          array.arrTop.push((item.top === undefined || item.top === null) ? 0 : item.top);
4857          array.arrLeft.push((item.left === undefined || item.left === null) ? 0 : item.left);
4858          array.arrDuration.push((item.duration === undefined || item.duration === null) ? 0 : item.duration);
4859        }
4860        return array;
4861      }
4862      else {
4863        return undefined;
4864      }
4865    }
4866    else {
4867      return undefined;
4868    }
4869  }
4870}
4871ImageAnimatorImagesModifier.identity = Symbol('imageAnimatorImages');
4872class ImageAnimatorDurationModifier extends ModifierWithKey {
4873  constructor(value) {
4874    super(value);
4875  }
4876  applyPeer(node, reset) {
4877    if (reset) {
4878      getUINativeModule().imageAnimator.resetDuration(node);
4879    }
4880    else {
4881      getUINativeModule().imageAnimator.setDuration(node, this.value);
4882    }
4883  }
4884  checkObjectDiff() {
4885    return this.stageValue !== this.value;
4886  }
4887}
4888ImageAnimatorDurationModifier.identity = Symbol('imageAnimatorDuration');
4889class ImageAnimatorReverseModifier extends ModifierWithKey {
4890  constructor(value) {
4891    super(value);
4892  }
4893  applyPeer(node, reset) {
4894    if (reset) {
4895      getUINativeModule().imageAnimator.resetReverse(node);
4896    }
4897    else {
4898      getUINativeModule().imageAnimator.setReverse(node, this.value);
4899    }
4900  }
4901  checkObjectDiff() {
4902    return this.stageValue !== this.value;
4903  }
4904}
4905ImageAnimatorReverseModifier.identity = Symbol('imageAnimatorReverse');
4906class ImageAnimatorStateModifier extends ModifierWithKey {
4907  constructor(value) {
4908    super(value);
4909  }
4910  applyPeer(node, reset) {
4911    if (reset) {
4912      getUINativeModule().imageAnimator.resetState(node);
4913    }
4914    else {
4915      getUINativeModule().imageAnimator.setState(node, this.value);
4916    }
4917  }
4918  checkObjectDiff() {
4919    return this.stageValue !== this.value;
4920  }
4921}
4922ImageAnimatorStateModifier.identity = Symbol('imageAnimatorState');
4923class ImageAnimatorFixedSizeModifier extends ModifierWithKey {
4924  constructor(value) {
4925    super(value);
4926  }
4927  applyPeer(node, reset) {
4928    if (reset) {
4929      getUINativeModule().imageAnimator.resetFixedSize(node);
4930    }
4931    else {
4932      getUINativeModule().imageAnimator.setFixedSize(node, this.value);
4933    }
4934  }
4935  checkObjectDiff() {
4936    return this.stageValue !== this.value;
4937  }
4938}
4939ImageAnimatorFixedSizeModifier.identity = Symbol('imageAnimatorFixedSize');
4940class ImageAnimatorFillModeModifier extends ModifierWithKey {
4941  constructor(value) {
4942    super(value);
4943  }
4944  applyPeer(node, reset) {
4945    if (reset) {
4946      getUINativeModule().imageAnimator.resetFillMode(node);
4947    }
4948    else {
4949      getUINativeModule().imageAnimator.setFillMode(node, this.value);
4950    }
4951  }
4952  checkObjectDiff() {
4953    return this.stageValue !== this.value;
4954  }
4955}
4956ImageAnimatorFillModeModifier.identity = Symbol('imageAnimatorFillMode');
4957class ImageAnimatorIterationsModeModifier extends ModifierWithKey {
4958  constructor(value) {
4959    super(value);
4960  }
4961  applyPeer(node, reset) {
4962    if (reset) {
4963      getUINativeModule().imageAnimator.resetIterations(node);
4964    }
4965    else {
4966      getUINativeModule().imageAnimator.setIterations(node, this.value);
4967    }
4968  }
4969  checkObjectDiff() {
4970    return this.stageValue !== this.value;
4971  }
4972}
4973ImageAnimatorIterationsModeModifier.identity = Symbol('imageAnimatorIterationsMode');
4974class ArkImageAnimatorComponent extends ArkComponent {
4975  constructor(nativePtr) {
4976    super(nativePtr);
4977  }
4978  images(value) {
4979    modifierWithKey(this._modifiersWithKeys, ImageAnimatorImagesModifier.identity, ImageAnimatorImagesModifier, value);
4980    return this;
4981  }
4982  state(value) {
4983    modifierWithKey(this._modifiersWithKeys, ImageAnimatorStateModifier.identity, ImageAnimatorStateModifier, value);
4984    return this;
4985  }
4986  duration(value) {
4987    modifierWithKey(this._modifiersWithKeys, ImageAnimatorDurationModifier.identity, ImageAnimatorDurationModifier, value);
4988    return this;
4989  }
4990  reverse(value) {
4991    modifierWithKey(this._modifiersWithKeys, ImageAnimatorReverseModifier.identity, ImageAnimatorReverseModifier, value);
4992    return this;
4993  }
4994  fixedSize(value) {
4995    modifierWithKey(this._modifiersWithKeys, ImageAnimatorFixedSizeModifier.identity, ImageAnimatorFixedSizeModifier, value);
4996    return this;
4997  }
4998  preDecode(value) {
4999    throw new Error('Method not implemented.');
5000  }
5001  fillMode(value) {
5002    modifierWithKey(this._modifiersWithKeys, ImageAnimatorFillModeModifier.identity, ImageAnimatorFillModeModifier, value);
5003    return this;
5004  }
5005  iterations(value) {
5006    modifierWithKey(this._modifiersWithKeys, ImageAnimatorIterationsModeModifier.identity, ImageAnimatorIterationsModeModifier, value);
5007    return this;
5008  }
5009  onStart(event) {
5010    throw new Error('Method not implemented.');
5011  }
5012  onPause(event) {
5013    throw new Error('Method not implemented.');
5014  }
5015  onRepeat(event) {
5016    throw new Error('Method not implemented.');
5017  }
5018  onCancel(event) {
5019    throw new Error('Method not implemented.');
5020  }
5021  onFinish(event) {
5022    throw new Error('Method not implemented.');
5023  }
5024}
5025// @ts-ignore
5026globalThis.ImageAnimator.attributeModifier = function (modifier) {
5027  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
5028  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
5029  let component = this.createOrGetNode(elmtId, () => {
5030    return new ArkImageAnimatorComponent(nativeNode);
5031  });
5032  applyUIAttributes(modifier, nativeNode, component);
5033  component.applyModifierPatch();
5034};
5035
5036/// <reference path='./import.ts' />
5037class ImageSpanObjectFitModifier extends ModifierWithKey {
5038  constructor(value) {
5039    super(value);
5040  }
5041  applyPeer(node, reset) {
5042    if (reset) {
5043      getUINativeModule().imageSpan.resetObjectFit(node);
5044    }
5045    else {
5046      getUINativeModule().imageSpan.setObjectFit(node, this.value);
5047    }
5048  }
5049  checkObjectDiff() {
5050    return this.stageValue !== this.value;
5051  }
5052}
5053ImageSpanObjectFitModifier.identity = Symbol('imageSpanObjectFit');
5054class ImageSpanVerticalAlignModifier extends ModifierWithKey {
5055  constructor(value) {
5056    super(value);
5057  }
5058  applyPeer(node, reset) {
5059    if (reset) {
5060      getUINativeModule().imageSpan.resetVerticalAlign(node);
5061    }
5062    else {
5063      getUINativeModule().imageSpan.setVerticalAlign(node, this.value);
5064    }
5065  }
5066  checkObjectDiff() {
5067    return this.stageValue !== this.value;
5068  }
5069}
5070ImageSpanVerticalAlignModifier.identity = Symbol('imageSpanVerticalAlign');
5071class ArkImageSpanComponent extends ArkComponent {
5072  constructor(nativePtr) {
5073    super(nativePtr);
5074  }
5075  objectFit(value) {
5076    modifierWithKey(this._modifiersWithKeys, ImageSpanObjectFitModifier.identity, ImageSpanObjectFitModifier, value);
5077    return this;
5078  }
5079  verticalAlign(value) {
5080    modifierWithKey(this._modifiersWithKeys, ImageSpanVerticalAlignModifier.identity, ImageSpanVerticalAlignModifier, value);
5081    return this;
5082  }
5083}
5084// @ts-ignore
5085globalThis.ImageSpan.attributeModifier = function (modifier) {
5086  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
5087  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
5088  let component = this.createOrGetNode(elmtId, () => {
5089    return new ArkImageSpanComponent(nativeNode);
5090  });
5091  applyUIAttributes(modifier, nativeNode, component);
5092  component.applyModifierPatch();
5093};
5094
5095/// <reference path='./import.ts' />
5096class PatternLockActiveColorModifier extends ModifierWithKey {
5097  constructor(value) {
5098    super(value);
5099  }
5100  applyPeer(node, reset) {
5101    if (reset) {
5102      getUINativeModule().patternLock.resetActiveColor(node);
5103    }
5104    else {
5105      getUINativeModule().patternLock.setActiveColor(node, this.value);
5106    }
5107  }
5108  checkObjectDiff() {
5109    return !isBaseOrResourceEqual(this.stageValue, this.value);
5110  }
5111}
5112PatternLockActiveColorModifier.identity = Symbol('patternLockActiveColor');
5113class PatternLockSelectedColorModifier extends ModifierWithKey {
5114  constructor(value) {
5115    super(value);
5116  }
5117  applyPeer(node, reset) {
5118    if (reset) {
5119      getUINativeModule().patternLock.resetSelectedColor(node);
5120    }
5121    else {
5122      getUINativeModule().patternLock.setSelectedColor(node, this.value);
5123    }
5124  }
5125  checkObjectDiff() {
5126    return !isBaseOrResourceEqual(this.stageValue, this.value);
5127  }
5128}
5129PatternLockSelectedColorModifier.identity = Symbol('patternLockSelectedColor');
5130class PatternLockPathColorModifier extends ModifierWithKey {
5131  constructor(value) {
5132    super(value);
5133  }
5134  applyPeer(node, reset) {
5135    if (reset) {
5136      getUINativeModule().patternLock.resetPathColor(node);
5137    }
5138    else {
5139      getUINativeModule().patternLock.setPathColor(node, this.value);
5140    }
5141  }
5142  checkObjectDiff() {
5143    return !isBaseOrResourceEqual(this.stageValue, this.value);
5144  }
5145}
5146PatternLockPathColorModifier.identity = Symbol('patternLockPathColor');
5147class PatternLockRegularColorModifier extends ModifierWithKey {
5148  constructor(value) {
5149    super(value);
5150  }
5151  applyPeer(node, reset) {
5152    if (reset) {
5153      getUINativeModule().patternLock.resetRegularColor(node);
5154    }
5155    else {
5156      getUINativeModule().patternLock.setRegularColor(node, this.value);
5157    }
5158  }
5159  checkObjectDiff() {
5160    return !isBaseOrResourceEqual(this.stageValue, this.value);
5161  }
5162}
5163PatternLockRegularColorModifier.identity = Symbol('patternLockRegularColor');
5164class PatternLockSideLengthModifier extends ModifierWithKey {
5165  constructor(value) {
5166    super(value);
5167  }
5168  applyPeer(node, reset) {
5169    if (reset) {
5170      getUINativeModule().patternLock.resetSideLength(node);
5171    }
5172    else {
5173      getUINativeModule().patternLock.setSideLength(node, this.value);
5174    }
5175  }
5176  checkObjectDiff() {
5177    return !isBaseOrResourceEqual(this.stageValue, this.value);
5178  }
5179}
5180PatternLockSideLengthModifier.identity = Symbol('patternLockSideLength');
5181class PatternLockPathStrokeModifier extends ModifierWithKey {
5182  constructor(value) {
5183    super(value);
5184  }
5185  applyPeer(node, reset) {
5186    if (reset) {
5187      getUINativeModule().patternLock.resetPathStrokeWidth(node);
5188    }
5189    else {
5190      getUINativeModule().patternLock.setPathStrokeWidth(node, this.value);
5191    }
5192  }
5193  checkObjectDiff() {
5194    return this.stageValue !== this.value;
5195  }
5196}
5197PatternLockPathStrokeModifier.identity = Symbol('patternLockPathStroke');
5198class PatternLockCircleRadiusModifier extends ModifierWithKey {
5199  constructor(value) {
5200    super(value);
5201  }
5202  applyPeer(node, reset) {
5203    if (reset) {
5204      getUINativeModule().patternLock.resetCircleRadius(node);
5205    }
5206    else {
5207      getUINativeModule().patternLock.setCircleRadius(node, this.value);
5208    }
5209  }
5210  checkObjectDiff() {
5211    return !isBaseOrResourceEqual(this.stageValue, this.value);
5212  }
5213}
5214PatternLockCircleRadiusModifier.identity = Symbol('patternLockCircleRadius');
5215class PatternLockAutoResetModifier extends ModifierWithKey {
5216  constructor(value) {
5217    super(value);
5218  }
5219  applyPeer(node, reset) {
5220    if (reset) {
5221      getUINativeModule().patternLock.resetAutoReset(node);
5222    }
5223    else {
5224      getUINativeModule().patternLock.setAutoReset(node, this.value);
5225    }
5226  }
5227  checkObjectDiff() {
5228    return this.stageValue !== this.value;
5229  }
5230}
5231PatternLockAutoResetModifier.identity = Symbol('patternlockautoreset');
5232class ArkPatternLockComponent extends ArkComponent {
5233  constructor(nativePtr) {
5234    super(nativePtr);
5235  }
5236  sideLength(value) {
5237    modifierWithKey(this._modifiersWithKeys, PatternLockSideLengthModifier.identity, PatternLockSideLengthModifier, value);
5238    return this;
5239  }
5240  circleRadius(value) {
5241    modifierWithKey(this._modifiersWithKeys, PatternLockCircleRadiusModifier.identity, PatternLockCircleRadiusModifier, value);
5242    return this;
5243  }
5244  regularColor(value) {
5245    modifierWithKey(this._modifiersWithKeys, PatternLockRegularColorModifier.identity, PatternLockRegularColorModifier, value);
5246    return this;
5247  }
5248  selectedColor(value) {
5249    modifierWithKey(this._modifiersWithKeys, PatternLockSelectedColorModifier.identity, PatternLockSelectedColorModifier, value);
5250    return this;
5251  }
5252  activeColor(value) {
5253    modifierWithKey(this._modifiersWithKeys, PatternLockActiveColorModifier.identity, PatternLockActiveColorModifier, value);
5254    return this;
5255  }
5256  pathColor(value) {
5257    modifierWithKey(this._modifiersWithKeys, PatternLockPathColorModifier.identity, PatternLockPathColorModifier, value);
5258    return this;
5259  }
5260  pathStrokeWidth(value) {
5261    modifierWithKey(this._modifiersWithKeys, PatternLockPathStrokeModifier.identity, PatternLockPathStrokeModifier, value);
5262    return this;
5263  }
5264  autoReset(value) {
5265    modifierWithKey(this._modifiersWithKeys, PatternLockAutoResetModifier.identity, PatternLockAutoResetModifier, value);
5266    return this;
5267  }
5268  onPatternComplete(callback) {
5269    throw new Error('Method not implemented.');
5270  }
5271  onDotConnect(callback) {
5272    throw new Error('Method not implemented.');
5273  }
5274}
5275// @ts-ignore
5276globalThis.PatternLock.attributeModifier = function (modifier) {
5277  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
5278  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
5279  let component = this.createOrGetNode(elmtId, () => {
5280    return new ArkPatternLockComponent(nativeNode);
5281  });
5282  applyUIAttributes(modifier, nativeNode, component);
5283  component.applyModifierPatch();
5284};
5285
5286/// <reference path='./import.ts' />
5287class RichEditorCopyOptionsModifier extends ModifierWithKey {
5288  constructor(value) {
5289    super(value);
5290  }
5291  applyPeer(node, reset) {
5292    if (reset) {
5293      getUINativeModule().richEditor.resetCopyOptions(node);
5294    }
5295    else {
5296      getUINativeModule().richEditor.setCopyOptions(node, this.value);
5297    }
5298  }
5299  checkObjectDiff() {
5300    return this.stageValue !== this.value;
5301  }
5302}
5303RichEditorCopyOptionsModifier.identity = Symbol('richEditorCopyOptions');
5304class ArkRichEditorComponent extends ArkComponent {
5305  constructor(nativePtr) {
5306    super(nativePtr);
5307  }
5308  enableDataDetector(enable) {
5309    throw new Error('Method not implemented.');
5310  }
5311  dataDetectorConfig(config) {
5312    throw new Error('Method not implemented.');
5313  }
5314  copyOptions(value) {
5315    modifierWithKey(this._modifiersWithKeys, RichEditorCopyOptionsModifier.identity, RichEditorCopyOptionsModifier, value);
5316    return this;
5317  }
5318  onPaste(callback) {
5319    throw new Error('Method not implemented.');
5320  }
5321  onReady(callback) {
5322    throw new Error('Method not implemented.');
5323  }
5324  onSelect(callback) {
5325    throw new Error('Method not implemented.');
5326  }
5327  aboutToIMEInput(callback) {
5328    throw new Error('Method not implemented.');
5329  }
5330  onIMEInputComplete(callback) {
5331    throw new Error('Method not implemented.');
5332  }
5333  aboutToDelete(callback) {
5334    throw new Error('Method not implemented.');
5335  }
5336  onDeleteComplete(callback) {
5337    throw new Error('Method not implemented.');
5338  }
5339  bindSelectionMenu(spanType, content, responseType, options) {
5340    throw new Error('Method not implemented.');
5341  }
5342  customKeyboard(value) {
5343    throw new Error('Method not implemented.');
5344  }
5345}
5346// @ts-ignore
5347globalThis.RichEditor.attributeModifier = function (modifier) {
5348  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
5349  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
5350  let component = this.createOrGetNode(elmtId, () => {
5351    return new ArkRichEditorComponent(nativeNode);
5352  });
5353  applyUIAttributes(modifier, nativeNode, component);
5354  component.applyModifierPatch();
5355};
5356
5357/// <reference path='./import.ts' />
5358class RowAlignItemsModifier extends ModifierWithKey {
5359  constructor(value) {
5360    super(value);
5361  }
5362  applyPeer(node, reset) {
5363    if (reset) {
5364      getUINativeModule().row.resetAlignItems(node);
5365    }
5366    else {
5367      getUINativeModule().row.setAlignItems(node, this.value);
5368    }
5369  }
5370  checkObjectDiff() {
5371    return this.stageValue !== this.value;
5372  }
5373}
5374RowAlignItemsModifier.identity = Symbol('rowAlignItems');
5375class RowJustifyContentlModifier extends ModifierWithKey {
5376  constructor(value) {
5377    super(value);
5378  }
5379  applyPeer(node, reset) {
5380    if (reset) {
5381      getUINativeModule().row.resetJustifyContent(node);
5382    }
5383    else {
5384      getUINativeModule().row.setJustifyContent(node, this.value);
5385    }
5386  }
5387  checkObjectDiff() {
5388    return this.stageValue !== this.value;
5389  }
5390}
5391RowJustifyContentlModifier.identity = Symbol('rowJustifyContent');
5392class ArkRowComponent extends ArkComponent {
5393  constructor(nativePtr) {
5394    super(nativePtr);
5395  }
5396  alignItems(value) {
5397    modifierWithKey(this._modifiersWithKeys, RowAlignItemsModifier.identity, RowAlignItemsModifier, value);
5398    return this;
5399  }
5400  justifyContent(value) {
5401    modifierWithKey(this._modifiersWithKeys, RowJustifyContentlModifier.identity, RowJustifyContentlModifier, value);
5402    return this;
5403  }
5404  pointLight(value) {
5405    throw new Error('Method not implemented.');
5406  }
5407}
5408// @ts-ignore
5409globalThis.Row.attributeModifier = function (modifier) {
5410  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
5411  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
5412  let component = this.createOrGetNode(elmtId, () => {
5413    return new ArkRowComponent(nativeNode);
5414  });
5415  applyUIAttributes(modifier, nativeNode, component);
5416  component.applyModifierPatch();
5417};
5418
5419/// <reference path='./import.ts' />
5420class RowSplitResizeableModifier extends ModifierWithKey {
5421  constructor(value) {
5422    super(value);
5423  }
5424  applyPeer(node, reset) {
5425    if (reset) {
5426      getUINativeModule().rowSplit.resetResizeable(node);
5427    }
5428    else {
5429      getUINativeModule().rowSplit.setResizeable(node, this.value);
5430    }
5431  }
5432}
5433RowSplitResizeableModifier.identity = Symbol('rowSplitResizeable');
5434class RowSplitClipModifier extends ModifierWithKey {
5435  constructor(value) {
5436    super(value);
5437  }
5438  applyPeer(node, reset) {
5439    if (reset) {
5440      getUINativeModule().common.resetClipWithEdge(node);
5441    }
5442    else {
5443      getUINativeModule().common.setClipWithEdge(node, this.value);
5444    }
5445  }
5446  checkObjectDiff() {
5447    return true;
5448  }
5449}
5450RowSplitClipModifier.identity = Symbol('rowSplitClip');
5451class ArkRowSplitComponent extends ArkComponent {
5452  constructor(nativePtr) {
5453    super(nativePtr);
5454  }
5455  resizeable(value) {
5456    modifierWithKey(this._modifiersWithKeys, RowSplitResizeableModifier.identity, RowSplitResizeableModifier, value);
5457    return this;
5458  }
5459  clip(value) {
5460    modifierWithKey(this._modifiersWithKeys, RowSplitClipModifier.identity, RowSplitClipModifier, value);
5461    return this;
5462  }
5463}
5464// @ts-ignore
5465globalThis.RowSplit.attributeModifier = function (modifier) {
5466  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
5467  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
5468  let component = this.createOrGetNode(elmtId, () => {
5469    return new ArkRowSplitComponent(nativeNode);
5470  });
5471  applyUIAttributes(modifier, nativeNode, component);
5472  component.applyModifierPatch();
5473};
5474
5475/// <reference path='./import.ts' />
5476class SearchSelectionMenuHiddenModifier extends ModifierWithKey {
5477  constructor(value) {
5478    super(value);
5479  }
5480  applyPeer(node, reset) {
5481    if (reset) {
5482      getUINativeModule().search.resetSelectionMenuHidden(node);
5483    }
5484    else {
5485      getUINativeModule().search.setSelectionMenuHidden(node, this.value);
5486    }
5487  }
5488  checkObjectDiff() {
5489    return this.stageValue !== this.value;
5490  }
5491}
5492SearchSelectionMenuHiddenModifier.identity = Symbol('searchSelectionMenuHidden');
5493class SearchCaretStyleModifier extends ModifierWithKey {
5494  constructor(value) {
5495    super(value);
5496  }
5497  applyPeer(node, reset) {
5498    if (reset) {
5499      getUINativeModule().search.resetCaretStyle(node);
5500    }
5501    else {
5502      getUINativeModule().search.setCaretStyle(node, this.value.width, this.value.color);
5503    }
5504  }
5505  checkObjectDiff() {
5506    return !isBaseOrResourceEqual(this.stageValue.width, this.value.width) ||
5507      !isBaseOrResourceEqual(this.stageValue.color, this.value.color);
5508  }
5509}
5510SearchCaretStyleModifier.identity = Symbol('searchCaretStyle');
5511class SearchEnableKeyboardOnFocusModifier extends ModifierWithKey {
5512  constructor(value) {
5513    super(value);
5514  }
5515  applyPeer(node, reset) {
5516    if (reset) {
5517      getUINativeModule().search.resetEnableKeyboardOnFocus(node);
5518    }
5519    else {
5520      getUINativeModule().search.setEnableKeyboardOnFocus(node, this.value);
5521    }
5522  }
5523  checkObjectDiff() {
5524    return this.stageValue !== this.value;
5525  }
5526}
5527SearchEnableKeyboardOnFocusModifier.identity = Symbol('searchEnableKeyboardOnFocus');
5528class SearchSearchIconModifier extends ModifierWithKey {
5529  constructor(value) {
5530    super(value);
5531  }
5532  applyPeer(node, reset) {
5533    if (reset) {
5534      getUINativeModule().search.resetSearchIcon(node);
5535    }
5536    else {
5537      getUINativeModule().search.setSearchIcon(node, this.value.size, this.value.color, this.value.src);
5538    }
5539  }
5540  checkObjectDiff() {
5541    return !isBaseOrResourceEqual(this.stageValue.size, this.value.size) ||
5542      !isBaseOrResourceEqual(this.stageValue.color, this.value.color) ||
5543      !isBaseOrResourceEqual(this.stageValue.src, this.value.src);
5544  }
5545}
5546SearchSearchIconModifier.identity = Symbol('searchSearchIcon');
5547class SearchPlaceholderFontModifier extends ModifierWithKey {
5548  constructor(value) {
5549    super(value);
5550  }
5551  applyPeer(node, reset) {
5552    if (reset) {
5553      getUINativeModule().search.resetPlaceholderFont(node);
5554    }
5555    else {
5556      getUINativeModule().search.setPlaceholderFont(node, this.value.size, this.value.weight, this.value.family, this.value.style);
5557    }
5558  }
5559  checkObjectDiff() {
5560    return this.stageValue.weight !== this.value.weight ||
5561      this.stageValue.style !== this.value.style ||
5562      !isBaseOrResourceEqual(this.stageValue.size, this.value.size) ||
5563      !isBaseOrResourceEqual(this.stageValue.family, this.value.family);
5564  }
5565}
5566SearchPlaceholderFontModifier.identity = Symbol('searchPlaceholderFont');
5567class SearchSearchButtonModifier extends ModifierWithKey {
5568  constructor(value) {
5569    super(value);
5570  }
5571  applyPeer(node, reset) {
5572    if (reset) {
5573      getUINativeModule().search.resetSearchButton(node);
5574    }
5575    else {
5576      getUINativeModule().search.setSearchButton(node, this.value.value, this.value.fontSize, this.value.fontColor);
5577    }
5578  }
5579  checkObjectDiff() {
5580    return this.stageValue.value !== this.value.value ||
5581      !isBaseOrResourceEqual(this.stageValue.fontSize, this.value.fontSize) ||
5582      !isBaseOrResourceEqual(this.stageValue.fontColor, this.value.fontColor);
5583  }
5584}
5585SearchSearchButtonModifier.identity = Symbol('searchSearchButton');
5586class SearchFontColorModifier extends ModifierWithKey {
5587  constructor(value) {
5588    super(value);
5589  }
5590  applyPeer(node, reset) {
5591    if (reset) {
5592      getUINativeModule().search.resetFontColor(node);
5593    }
5594    else {
5595      getUINativeModule().search.setFontColor(node, this.value);
5596    }
5597  }
5598  checkObjectDiff() {
5599    return !isBaseOrResourceEqual(this.stageValue, this.value);
5600  }
5601}
5602SearchFontColorModifier.identity = Symbol('searchFontColor');
5603class SearchCopyOptionModifier extends ModifierWithKey {
5604  constructor(value) {
5605    super(value);
5606  }
5607  applyPeer(node, reset) {
5608    if (reset) {
5609      getUINativeModule().search.resetCopyOption(node);
5610    }
5611    else {
5612      getUINativeModule().search.setCopyOption(node, this.value);
5613    }
5614  }
5615  checkObjectDiff() {
5616    return this.stageValue !== this.value;
5617  }
5618}
5619SearchCopyOptionModifier.identity = Symbol('searchCopyOption');
5620class SearchTextFontModifier extends ModifierWithKey {
5621  constructor(value) {
5622    super(value);
5623  }
5624  applyPeer(node, reset) {
5625    if (reset) {
5626      getUINativeModule().search.resetTextFont(node);
5627    }
5628    else {
5629      getUINativeModule().search.setTextFont(node, this.value.size, this.value.weight, this.value.family, this.value.style);
5630    }
5631  }
5632  checkObjectDiff() {
5633    return this.stageValue.weight !== this.value.weight ||
5634      this.stageValue.style !== this.value.style ||
5635      !isBaseOrResourceEqual(this.stageValue.size, this.value.size) ||
5636      !isBaseOrResourceEqual(this.stageValue.family, this.value.family);
5637  }
5638}
5639SearchTextFontModifier.identity = Symbol('searchTextFont');
5640class SearchPlaceholderColorModifier extends ModifierWithKey {
5641  constructor(value) {
5642    super(value);
5643  }
5644  applyPeer(node, reset) {
5645    if (reset) {
5646      getUINativeModule().search.resetPlaceholderColor(node);
5647    }
5648    else {
5649      getUINativeModule().search.setPlaceholderColor(node, this.value);
5650    }
5651  }
5652  checkObjectDiff() {
5653    return !isBaseOrResourceEqual(this.stageValue, this.value);
5654  }
5655}
5656SearchPlaceholderColorModifier.identity = Symbol('searchPlaceholderColor');
5657class SearchCancelButtonModifier extends ModifierWithKey {
5658  constructor(value) {
5659    super(value);
5660  }
5661  applyPeer(node, reset) {
5662    let _a, _b, _c;
5663    if (reset) {
5664      getUINativeModule().search.resetCancelButton(node);
5665    }
5666    else {
5667      getUINativeModule().search.setCancelButton(node, this.value.style,
5668        (_a = this.value.icon) === null || _a === void 0 ? void 0 : _a.size,
5669        (_b = this.value.icon) === null || _b === void 0 ? void 0 : _b.color,
5670        (_c = this.value.icon) === null || _c === void 0 ? void 0 : _c.src);
5671    }
5672  }
5673  checkObjectDiff() {
5674    let _a, _b, _c, _d, _e, _f;
5675    return this.stageValue.style !== this.value.style ||
5676      !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) ||
5677      !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) ||
5678      !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);
5679  }
5680}
5681SearchCancelButtonModifier.identity = Symbol('searchCancelButton');
5682class SearchTextAlignModifier extends ModifierWithKey {
5683  constructor(value) {
5684    super(value);
5685  }
5686  applyPeer(node, reset) {
5687    if (reset) {
5688      getUINativeModule().search.resetTextAlign(node);
5689    }
5690    else {
5691      getUINativeModule().search.setTextAlign(node, this.value);
5692    }
5693  }
5694  checkObjectDiff() {
5695    return this.stageValue !== this.value;
5696  }
5697}
5698SearchTextAlignModifier.identity = Symbol('searchTextAlign');
5699class SearchHeightModifier extends ModifierWithKey {
5700  constructor(value) {
5701    super(value);
5702  }
5703  applyPeer(node, reset) {
5704    if (reset) {
5705      getUINativeModule().search.resetSearchHeight(node);
5706    } else {
5707      getUINativeModule().search.setSearchHeight(node, this.value);
5708    }
5709  }
5710  checkObjectDiff() {
5711    return !isBaseOrResourceEqual(this.stageValue, this.value);
5712  }
5713}
5714SearchHeightModifier.identity = Symbol('searchHeight');
5715class ArkSearchComponent extends ArkComponent {
5716  constructor(nativePtr) {
5717    super(nativePtr);
5718  }
5719  onEditChange(callback) {
5720    throw new Error('Method not implemented.');
5721  }
5722  type(value) {
5723    throw new Error('Method not implemented.');
5724  }
5725  maxLength(value) {
5726    throw new Error('Method not implemented.');
5727  }
5728  onEditChanged(callback) {
5729    throw new Error('Method not implemented.');
5730  }
5731  customKeyboard(event) {
5732    throw new Error('Method not implemented.');
5733  }
5734  showUnit(event) {
5735    throw new Error('Method not implemented.');
5736  }
5737  onContentScroll(callback) {
5738    throw new Error('Method not implemented.');
5739  }
5740  onChange(callback) {
5741    throw new Error('Method not implemented.');
5742  }
5743  onTextSelectionChange(callback) {
5744    throw new Error('Method not implemented.');
5745  }
5746  onCopy(callback) {
5747    throw new Error('Method not implemented.');
5748  }
5749  onCut(callback) {
5750    throw new Error('Method not implemented.');
5751  }
5752  onSubmit(callback) {
5753    throw new Error('Method not implemented.');
5754  }
5755  onPaste(callback) {
5756    throw new Error('Method not implemented.');
5757  }
5758  showCounter(value) {
5759    throw new Error('Method not implemented.');
5760  }
5761  searchButton(value, option) {
5762    let searchButton = new ArkSearchButton();
5763    searchButton.value = value;
5764    searchButton.fontColor = option === null || option === void 0 ? void 0 : option.fontColor;
5765    searchButton.fontSize = option === null || option === void 0 ? void 0 : option.fontSize;
5766    modifierWithKey(this._modifiersWithKeys, SearchSearchButtonModifier.identity, SearchSearchButtonModifier, searchButton);
5767    return this;
5768  }
5769  selectionMenuHidden(value) {
5770    modifierWithKey(this._modifiersWithKeys, SearchSelectionMenuHiddenModifier.identity, SearchSelectionMenuHiddenModifier, value);
5771    return this;
5772  }
5773  enableKeyboardOnFocus(value) {
5774    modifierWithKey(this._modifiersWithKeys, SearchEnableKeyboardOnFocusModifier.identity, SearchEnableKeyboardOnFocusModifier, value);
5775    return this;
5776  }
5777  caretStyle(value) {
5778    modifierWithKey(this._modifiersWithKeys, SearchCaretStyleModifier.identity, SearchCaretStyleModifier, value);
5779    return this;
5780  }
5781  cancelButton(value) {
5782    modifierWithKey(this._modifiersWithKeys, SearchCancelButtonModifier.identity, SearchCancelButtonModifier, value);
5783    return this;
5784  }
5785  searchIcon(value) {
5786    modifierWithKey(this._modifiersWithKeys, SearchSearchIconModifier.identity, SearchSearchIconModifier, value);
5787    return this;
5788  }
5789  fontColor(value) {
5790    modifierWithKey(this._modifiersWithKeys, SearchFontColorModifier.identity, SearchFontColorModifier, value);
5791    return this;
5792  }
5793  placeholderColor(value) {
5794    modifierWithKey(this._modifiersWithKeys, SearchPlaceholderColorModifier.identity, SearchPlaceholderColorModifier, value);
5795    return this;
5796  }
5797  placeholderFont(value) {
5798    modifierWithKey(this._modifiersWithKeys, SearchPlaceholderFontModifier.identity, SearchPlaceholderFontModifier, value);
5799    return this;
5800  }
5801  textFont(value) {
5802    modifierWithKey(this._modifiersWithKeys, SearchTextFontModifier.identity, SearchTextFontModifier, value);
5803    return this;
5804  }
5805  copyOption(value) {
5806    modifierWithKey(this._modifiersWithKeys, SearchCopyOptionModifier.identity, SearchCopyOptionModifier, value);
5807    return this;
5808  }
5809  textAlign(value) {
5810    modifierWithKey(this._modifiersWithKeys, SearchTextAlignModifier.identity, SearchTextAlignModifier, value);
5811    return this;
5812  }
5813  height(value) {
5814    modifierWithKey(this._modifiersWithKeys, SearchHeightModifier.identity, SearchHeightModifier, value);
5815    return this;
5816  }
5817}
5818// @ts-ignore
5819globalThis.Search.attributeModifier = function (modifier) {
5820  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
5821  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
5822  let component = this.createOrGetNode(elmtId, () => {
5823    return new ArkSearchComponent(nativeNode);
5824  });
5825  applyUIAttributes(modifier, nativeNode, component);
5826  component.applyModifierPatch();
5827};
5828
5829/// <reference path='./import.ts' />
5830class SpanFontSizeModifier extends ModifierWithKey {
5831  constructor(value) {
5832    super(value);
5833  }
5834  applyPeer(node, reset) {
5835    if (reset) {
5836      getUINativeModule().span.resetFontSize(node);
5837    }
5838    else {
5839      getUINativeModule().span.setFontSize(node, this.value);
5840    }
5841  }
5842  checkObjectDiff() {
5843    return !isBaseOrResourceEqual(this.stageValue, this.value);
5844  }
5845}
5846SpanFontSizeModifier.identity = Symbol('spanFontSize');
5847class SpanFontFamilyModifier extends ModifierWithKey {
5848  constructor(value) {
5849    super(value);
5850  }
5851  applyPeer(node, reset) {
5852    if (reset) {
5853      getUINativeModule().span.resetFontFamily(node);
5854    }
5855    else {
5856      getUINativeModule().span.setFontFamily(node, this.value);
5857    }
5858  }
5859  checkObjectDiff() {
5860    return !isBaseOrResourceEqual(this.stageValue, this.value);
5861  }
5862}
5863SpanFontFamilyModifier.identity = Symbol('spanFontFamily');
5864class SpanLineHeightModifier extends ModifierWithKey {
5865  constructor(value) {
5866    super(value);
5867  }
5868  applyPeer(node, reset) {
5869    if (reset) {
5870      getUINativeModule().span.resetLineHeight(node);
5871    }
5872    else {
5873      getUINativeModule().span.setLineHeight(node, this.value);
5874    }
5875  }
5876  checkObjectDiff() {
5877    return !isBaseOrResourceEqual(this.stageValue, this.value);
5878  }
5879}
5880SpanLineHeightModifier.identity = Symbol('spanLineHeight');
5881class SpanFontStyleModifier extends ModifierWithKey {
5882  constructor(value) {
5883    super(value);
5884  }
5885  applyPeer(node, reset) {
5886    if (reset) {
5887      getUINativeModule().span.resetFontStyle(node);
5888    }
5889    else {
5890      getUINativeModule().span.setFontStyle(node, this.value);
5891    }
5892  }
5893  checkObjectDiff() {
5894    return !isBaseOrResourceEqual(this.stageValue, this.value);
5895  }
5896}
5897SpanFontStyleModifier.identity = Symbol('spanFontStyle');
5898class SpanTextCaseModifier extends ModifierWithKey {
5899  constructor(value) {
5900    super(value);
5901  }
5902  applyPeer(node, reset) {
5903    if (reset) {
5904      getUINativeModule().span.resetTextCase(node);
5905    }
5906    else {
5907      getUINativeModule().span.setTextCase(node, this.value);
5908    }
5909  }
5910  checkObjectDiff() {
5911    return !isBaseOrResourceEqual(this.stageValue, this.value);
5912  }
5913}
5914SpanTextCaseModifier.identity = Symbol('spanTextCase');
5915class SpanFontColorModifier extends ModifierWithKey {
5916  constructor(value) {
5917    super(value);
5918  }
5919  applyPeer(node, reset) {
5920    if (reset) {
5921      getUINativeModule().span.resetFontColor(node);
5922    }
5923    else {
5924      getUINativeModule().span.setFontColor(node, this.value);
5925    }
5926  }
5927  checkObjectDiff() {
5928    return !isBaseOrResourceEqual(this.stageValue, this.value);
5929  }
5930}
5931SpanFontColorModifier.identity = Symbol('spanFontColor');
5932class SpanLetterSpacingModifier extends ModifierWithKey {
5933  constructor(value) {
5934    super(value);
5935  }
5936  applyPeer(node, reset) {
5937    if (reset) {
5938      getUINativeModule().span.resetLetterSpacing(node);
5939    }
5940    else {
5941      getUINativeModule().span.setLetterSpacing(node, this.value);
5942    }
5943  }
5944}
5945SpanLetterSpacingModifier.identity = Symbol('spanLetterSpacing');
5946class SpanFontModifier extends ModifierWithKey {
5947  constructor(value) {
5948    super(value);
5949  }
5950  applyPeer(node, reset) {
5951    if (reset) {
5952      getUINativeModule().span.resetFont(node);
5953    }
5954    else {
5955      getUINativeModule().span.setFont(node, this.value.size, this.value.weight, this.value.family, this.value.style);
5956    }
5957  }
5958  checkObjectDiff() {
5959    if (this.stageValue.weight !== this.value.weight || this.stageValue.style !== this.value.style) {
5960      return true;
5961    }
5962    if (((isResource(this.stageValue.size) && isResource(this.value.size) &&
5963      isResourceEqual(this.stageValue.size, this.value.size)) ||
5964      (!isResource(this.stageValue.size) && !isResource(this.value.size) &&
5965        this.stageValue.size === this.value.size)) &&
5966      ((isResource(this.stageValue.family) && isResource(this.value.family) &&
5967        isResourceEqual(this.stageValue.family, this.value.family)) ||
5968        (!isResource(this.stageValue.family) && !isResource(this.value.family) &&
5969          this.stageValue.family === this.value.family))) {
5970      return false;
5971    }
5972    else {
5973      return true;
5974    }
5975  }
5976}
5977SpanFontModifier.identity = Symbol('spanFont');
5978class SpanDecorationModifier extends ModifierWithKey {
5979  constructor(value) {
5980    super(value);
5981  }
5982  applyPeer(node, reset) {
5983    if (reset) {
5984      getUINativeModule().span.resetDecoration(node);
5985    }
5986    else {
5987      getUINativeModule().span.setDecoration(node, this.value.type, this.value.color);
5988    }
5989  }
5990  checkObjectDiff() {
5991    if (this.stageValue.type !== this.value.type) {
5992      return true;
5993    }
5994    if (isResource(this.stageValue.color) && isResource(this.value.color)) {
5995      return !isResourceEqual(this.stageValue.color, this.value.color);
5996    }
5997    else if (!isResource(this.stageValue.color) && !isResource(this.value.color)) {
5998      return !(this.stageValue.color === this.value.color);
5999    }
6000    else {
6001      return true;
6002    }
6003  }
6004}
6005SpanDecorationModifier.identity = Symbol('spanDecoration');
6006class SpanFontWeightModifier extends ModifierWithKey {
6007  constructor(value) {
6008    super(value);
6009  }
6010  applyPeer(node, reset) {
6011    if (reset) {
6012      getUINativeModule().span.resetFontWeight(node);
6013    }
6014    else {
6015      getUINativeModule().span.setFontWeight(node, this.value);
6016    }
6017  }
6018}
6019SpanFontWeightModifier.identity = Symbol('spanfontweight');
6020class ArkSpanComponent {
6021  constructor(nativePtr) {
6022    this._modifiersWithKeys = new Map();
6023    this.nativePtr = nativePtr;
6024  }
6025  applyModifierPatch() {
6026    let expiringItemsWithKeys = [];
6027    this._modifiersWithKeys.forEach((value, key) => {
6028      if (value.applyStage(this.nativePtr)) {
6029        expiringItemsWithKeys.push(key);
6030      }
6031    });
6032    expiringItemsWithKeys.forEach(key => {
6033      this._modifiersWithKeys.delete(key);
6034    });
6035  }
6036  onGestureJudgeBegin(callback) {
6037    throw new Error('Method not implemented.');
6038  }
6039  outline(value) {
6040    throw new Error('Method not implemented.');
6041  }
6042  outlineColor(value) {
6043    throw new Error('Method not implemented.');
6044  }
6045  outlineRadius(value) {
6046    throw new Error('Method not implemented.');
6047  }
6048  outlineStyle(value) {
6049    throw new Error('Method not implemented.');
6050  }
6051  outlineWidth(value) {
6052    throw new Error('Method not implemented.');
6053  }
6054  width(value) {
6055    throw new Error('Method not implemented.');
6056  }
6057  height(value) {
6058    throw new Error('Method not implemented.');
6059  }
6060  expandSafeArea(types, edges) {
6061    throw new Error('Method not implemented.');
6062  }
6063  responseRegion(value) {
6064    throw new Error('Method not implemented.');
6065  }
6066  mouseResponseRegion(value) {
6067    throw new Error('Method not implemented.');
6068  }
6069  size(value) {
6070    throw new Error('Method not implemented.');
6071  }
6072  constraintSize(value) {
6073    throw new Error('Method not implemented.');
6074  }
6075  touchable(value) {
6076    throw new Error('Method not implemented.');
6077  }
6078  hitTestBehavior(value) {
6079    throw new Error('Method not implemented.');
6080  }
6081  layoutWeight(value) {
6082    throw new Error('Method not implemented.');
6083  }
6084  padding(value) {
6085    throw new Error('Method not implemented.');
6086  }
6087  margin(value) {
6088    throw new Error('Method not implemented.');
6089  }
6090  background(builder, options) {
6091    throw new Error('Method not implemented.');
6092  }
6093  backgroundColor(value) {
6094    throw new Error('Method not implemented.');
6095  }
6096  backgroundImage(src, repeat) {
6097    throw new Error('Method not implemented.');
6098  }
6099  backgroundImageSize(value) {
6100    throw new Error('Method not implemented.');
6101  }
6102  backgroundImagePosition(value) {
6103    throw new Error('Method not implemented.');
6104  }
6105  backgroundBlurStyle(value, options) {
6106    throw new Error('Method not implemented.');
6107  }
6108  foregroundBlurStyle(value, options) {
6109    throw new Error('Method not implemented.');
6110  }
6111  opacity(value) {
6112    throw new Error('Method not implemented.');
6113  }
6114  border(value) {
6115    throw new Error('Method not implemented.');
6116  }
6117  borderStyle(value) {
6118    throw new Error('Method not implemented.');
6119  }
6120  borderWidth(value) {
6121    throw new Error('Method not implemented.');
6122  }
6123  borderColor(value) {
6124    throw new Error('Method not implemented.');
6125  }
6126  borderRadius(value) {
6127    throw new Error('Method not implemented.');
6128  }
6129  borderImage(value) {
6130    throw new Error('Method not implemented.');
6131  }
6132  foregroundColor(value) {
6133    throw new Error('Method not implemented.');
6134  }
6135  onClick(event) {
6136    throw new Error('Method not implemented.');
6137  }
6138  onHover(event) {
6139    throw new Error('Method not implemented.');
6140  }
6141  hoverEffect(value) {
6142    throw new Error('Method not implemented.');
6143  }
6144  onMouse(event) {
6145    throw new Error('Method not implemented.');
6146  }
6147  onTouch(event) {
6148    throw new Error('Method not implemented.');
6149  }
6150  onKeyEvent(event) {
6151    throw new Error('Method not implemented.');
6152  }
6153  focusable(value) {
6154    throw new Error('Method not implemented.');
6155  }
6156  onFocus(event) {
6157    throw new Error('Method not implemented.');
6158  }
6159  onBlur(event) {
6160    throw new Error('Method not implemented.');
6161  }
6162  tabIndex(index) {
6163    throw new Error('Method not implemented.');
6164  }
6165  defaultFocus(value) {
6166    throw new Error('Method not implemented.');
6167  }
6168  groupDefaultFocus(value) {
6169    throw new Error('Method not implemented.');
6170  }
6171  focusOnTouch(value) {
6172    throw new Error('Method not implemented.');
6173  }
6174  animation(value) {
6175    throw new Error('Method not implemented.');
6176  }
6177  transition(value) {
6178    throw new Error('Method not implemented.');
6179  }
6180  gesture(gesture, mask) {
6181    throw new Error('Method not implemented.');
6182  }
6183  priorityGesture(gesture, mask) {
6184    throw new Error('Method not implemented.');
6185  }
6186  parallelGesture(gesture, mask) {
6187    throw new Error('Method not implemented.');
6188  }
6189  blur(value) {
6190    throw new Error('Method not implemented.');
6191  }
6192  linearGradientBlur(value, options) {
6193    throw new Error('Method not implemented.');
6194  }
6195  brightness(value) {
6196    throw new Error('Method not implemented.');
6197  }
6198  contrast(value) {
6199    throw new Error('Method not implemented.');
6200  }
6201  grayscale(value) {
6202    throw new Error('Method not implemented.');
6203  }
6204  colorBlend(value) {
6205    throw new Error('Method not implemented.');
6206  }
6207  saturate(value) {
6208    throw new Error('Method not implemented.');
6209  }
6210  sepia(value) {
6211    throw new Error('Method not implemented.');
6212  }
6213  invert(value) {
6214    throw new Error('Method not implemented.');
6215  }
6216  hueRotate(value) {
6217    throw new Error('Method not implemented.');
6218  }
6219  useEffect(value) {
6220    throw new Error('Method not implemented.');
6221  }
6222  backdropBlur(value) {
6223    throw new Error('Method not implemented.');
6224  }
6225  renderGroup(value) {
6226    throw new Error('Method not implemented.');
6227  }
6228  translate(value) {
6229    throw new Error('Method not implemented.');
6230  }
6231  scale(value) {
6232    throw new Error('Method not implemented.');
6233  }
6234  gridSpan(value) {
6235    throw new Error('Method not implemented.');
6236  }
6237  gridOffset(value) {
6238    throw new Error('Method not implemented.');
6239  }
6240  rotate(value) {
6241    throw new Error('Method not implemented.');
6242  }
6243  transform(value) {
6244    throw new Error('Method not implemented.');
6245  }
6246  onAppear(event) {
6247    throw new Error('Method not implemented.');
6248  }
6249  onDisAppear(event) {
6250    throw new Error('Method not implemented.');
6251  }
6252  onAreaChange(event) {
6253    throw new Error('Method not implemented.');
6254  }
6255  visibility(value) {
6256    throw new Error('Method not implemented.');
6257  }
6258  flexGrow(value) {
6259    throw new Error('Method not implemented.');
6260  }
6261  flexShrink(value) {
6262    throw new Error('Method not implemented.');
6263  }
6264  flexBasis(value) {
6265    throw new Error('Method not implemented.');
6266  }
6267  alignSelf(value) {
6268    throw new Error('Method not implemented.');
6269  }
6270  displayPriority(value) {
6271    throw new Error('Method not implemented.');
6272  }
6273  zIndex(value) {
6274    throw new Error('Method not implemented.');
6275  }
6276  sharedTransition(id, options) {
6277    throw new Error('Method not implemented.');
6278  }
6279  direction(value) {
6280    throw new Error('Method not implemented.');
6281  }
6282  align(value) {
6283    throw new Error('Method not implemented.');
6284  }
6285  position(value) {
6286    throw new Error('Method not implemented.');
6287  }
6288  markAnchor(value) {
6289    throw new Error('Method not implemented.');
6290  }
6291  offset(value) {
6292    throw new Error('Method not implemented.');
6293  }
6294  enabled(value) {
6295    throw new Error('Method not implemented.');
6296  }
6297  useSizeType(value) {
6298    throw new Error('Method not implemented.');
6299  }
6300  alignRules(value) {
6301    throw new Error('Method not implemented.');
6302  }
6303  aspectRatio(value) {
6304    throw new Error('Method not implemented.');
6305  }
6306  clickEffect(value) {
6307    throw new Error('Method not implemented.');
6308  }
6309  onDragStart(event) {
6310    throw new Error('Method not implemented.');
6311  }
6312  onDragEnter(event) {
6313    throw new Error('Method not implemented.');
6314  }
6315  onDragMove(event) {
6316    throw new Error('Method not implemented.');
6317  }
6318  onDragLeave(event) {
6319    throw new Error('Method not implemented.');
6320  }
6321  onDrop(event) {
6322    throw new Error('Method not implemented.');
6323  }
6324  onDragEnd(event) {
6325    throw new Error('Method not implemented.');
6326  }
6327  allowDrop(value) {
6328    throw new Error('Method not implemented.');
6329  }
6330  draggable(value) {
6331    throw new Error('Method not implemented.');
6332  }
6333  overlay(value, options) {
6334    throw new Error('Method not implemented.');
6335  }
6336  linearGradient(value) {
6337    throw new Error('Method not implemented.');
6338  }
6339  sweepGradient(value) {
6340    throw new Error('Method not implemented.');
6341  }
6342  radialGradient(value) {
6343    throw new Error('Method not implemented.');
6344  }
6345  motionPath(value) {
6346    throw new Error('Method not implemented.');
6347  }
6348  shadow(value) {
6349    throw new Error('Method not implemented.');
6350  }
6351  mask(value) {
6352    throw new Error('Method not implemented.');
6353  }
6354  key(value) {
6355    throw new Error('Method not implemented.');
6356  }
6357  id(value) {
6358    throw new Error('Method not implemented.');
6359  }
6360  geometryTransition(id) {
6361    throw new Error('Method not implemented.');
6362  }
6363  bindPopup(show, popup) {
6364    throw new Error('Method not implemented.');
6365  }
6366  bindMenu(content, options) {
6367    throw new Error('Method not implemented.');
6368  }
6369  bindContextMenu(content, responseType, options) {
6370    throw new Error('Method not implemented.');
6371  }
6372  bindContentCover(isShow, builder, type) {
6373    throw new Error('Method not implemented.');
6374  }
6375  blendMode(value) {
6376    throw new Error('Method not implemented.');
6377  }
6378  clip(value) {
6379    throw new Error('Method not implemented.');
6380  }
6381  bindSheet(isShow, builder, options) {
6382    throw new Error('Method not implemented.');
6383  }
6384  stateStyles(value) {
6385    throw new Error('Method not implemented.');
6386  }
6387  restoreId(value) {
6388    throw new Error('Method not implemented.');
6389  }
6390  onVisibleAreaChange(ratios, event) {
6391    throw new Error('Method not implemented.');
6392  }
6393  sphericalEffect(value) {
6394    throw new Error('Method not implemented.');
6395  }
6396  lightUpEffect(value) {
6397    throw new Error('Method not implemented.');
6398  }
6399  pixelStretchEffect(options) {
6400    throw new Error('Method not implemented.');
6401  }
6402  keyboardShortcut(value, keys, action) {
6403    throw new Error('Method not implemented.');
6404  }
6405  accessibilityGroup(value) {
6406    throw new Error('Method not implemented.');
6407  }
6408  accessibilityText(value) {
6409    throw new Error('Method not implemented.');
6410  }
6411  accessibilityDescription(value) {
6412    throw new Error('Method not implemented.');
6413  }
6414  accessibilityLevel(value) {
6415    throw new Error('Method not implemented.');
6416  }
6417  obscured(reasons) {
6418    throw new Error('Method not implemented.');
6419  }
6420  reuseId(id) {
6421    throw new Error('Method not implemented.');
6422  }
6423  renderFit(fitMode) {
6424    throw new Error('Method not implemented.');
6425  }
6426  attributeModifier(modifier) {
6427    return this;
6428  }
6429  decoration(value) {
6430    modifierWithKey(this._modifiersWithKeys, SpanDecorationModifier.identity, SpanDecorationModifier, value);
6431    return this;
6432  }
6433  font(value) {
6434    modifierWithKey(this._modifiersWithKeys, SpanFontModifier.identity, SpanFontModifier, value);
6435    return this;
6436  }
6437  lineHeight(value) {
6438    modifierWithKey(this._modifiersWithKeys, SpanLineHeightModifier.identity, SpanLineHeightModifier, value);
6439    return this;
6440  }
6441  fontSize(value) {
6442    modifierWithKey(this._modifiersWithKeys, SpanFontSizeModifier.identity, SpanFontSizeModifier, value);
6443    return this;
6444  }
6445  fontColor(value) {
6446    modifierWithKey(this._modifiersWithKeys, SpanFontColorModifier.identity, SpanFontColorModifier, value);
6447    return this;
6448  }
6449  fontStyle(value) {
6450    modifierWithKey(this._modifiersWithKeys, SpanFontStyleModifier.identity, SpanFontStyleModifier, value);
6451    return this;
6452  }
6453  fontWeight(value) {
6454    modifierWithKey(this._modifiersWithKeys, SpanFontWeightModifier.identity, SpanFontWeightModifier, value);
6455    return this;
6456  }
6457  fontFamily(value) {
6458    modifierWithKey(this._modifiersWithKeys, SpanFontFamilyModifier.identity, SpanFontFamilyModifier, value);
6459    return this;
6460  }
6461  letterSpacing(value) {
6462    modifierWithKey(this._modifiersWithKeys, SpanLetterSpacingModifier.identity, SpanLetterSpacingModifier, value);
6463    return this;
6464  }
6465  textCase(value) {
6466    modifierWithKey(this._modifiersWithKeys, SpanTextCaseModifier.identity, SpanTextCaseModifier, value);
6467    return this;
6468  }
6469}
6470// @ts-ignore
6471globalThis.Span.attributeModifier = function (modifier) {
6472  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
6473  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
6474  let component = this.createOrGetNode(elmtId, () => {
6475    return new ArkSpanComponent(nativeNode);
6476  });
6477  modifier.applyNormalAttribute(component);
6478  component.applyModifierPatch();
6479};
6480
6481/// <reference path='./import.ts' />
6482class SideBarContainerPositionModifier extends ModifierWithKey {
6483  constructor(value) {
6484    super(value);
6485  }
6486  applyPeer(node, reset) {
6487    if (reset) {
6488      getUINativeModule().sideBarContainer.resetSideBarPosition(node);
6489    }
6490    else {
6491      getUINativeModule().sideBarContainer.setSideBarPosition(node, this.value);
6492    }
6493  }
6494  checkObjectDiff() {
6495    return !isBaseOrResourceEqual(this.stageValue, this.value);
6496  }
6497}
6498SideBarContainerPositionModifier.identity = Symbol('sideBarContainerPosition');
6499class SideBarContainerAutoHideModifier extends ModifierWithKey {
6500  constructor(value) {
6501    super(value);
6502  }
6503  applyPeer(node, reset) {
6504    if (reset) {
6505      getUINativeModule().sideBarContainer.resetAutoHide(node);
6506    }
6507    else {
6508      getUINativeModule().sideBarContainer.setAutoHide(node, this.value);
6509    }
6510  }
6511  checkObjectDiff() {
6512    return !isBaseOrResourceEqual(this.stageValue, this.value);
6513  }
6514}
6515SideBarContainerAutoHideModifier.identity = Symbol('sideBarContainerautoHide');
6516class SideBarContainerShowSideBarModifier extends ModifierWithKey {
6517  constructor(value) {
6518    super(value);
6519  }
6520  applyPeer(node, reset) {
6521    if (reset) {
6522      getUINativeModule().sideBarContainer.resetShowSideBar(node);
6523    }
6524    else {
6525      getUINativeModule().sideBarContainer.setShowSideBar(node, this.value);
6526    }
6527  }
6528  checkObjectDiff() {
6529    return !isBaseOrResourceEqual(this.stageValue, this.value);
6530  }
6531}
6532SideBarContainerShowSideBarModifier.identity = Symbol('sideBarContainerShowSideBar');
6533class SideBarContainerMaxSideBarWidthModifier extends ModifierWithKey {
6534  constructor(value) {
6535    super(value);
6536  }
6537  applyPeer(node, reset) {
6538    if (reset) {
6539      getUINativeModule().sideBarContainer.resetMaxSideBarWidth(node);
6540    }
6541    else {
6542      getUINativeModule().sideBarContainer.setMaxSideBarWidth(node, this.value);
6543    }
6544  }
6545  checkObjectDiff() {
6546    return !isBaseOrResourceEqual(this.stageValue, this.value);
6547  }
6548}
6549SideBarContainerMaxSideBarWidthModifier.identity = Symbol('sideBarContainerMaxSideBarWidth');
6550class SideBarContainerWidthModifier extends ModifierWithKey {
6551  constructor(value) {
6552    super(value);
6553  }
6554  applyPeer(node, reset) {
6555    if (reset) {
6556      getUINativeModule().sideBarContainer.resetSideBarWidth(node);
6557    }
6558    else {
6559      getUINativeModule().sideBarContainer.setSideBarWidth(node, this.value);
6560    }
6561  }
6562  checkObjectDiff() {
6563    return !isBaseOrResourceEqual(this.stageValue, this.value);
6564  }
6565}
6566SideBarContainerWidthModifier.identity = Symbol('sideBarContainerWidth');
6567class SideBarContainerMinContentWidthModifier extends ModifierWithKey {
6568  constructor(value) {
6569    super(value);
6570  }
6571  applyPeer(node, reset) {
6572    if (reset) {
6573      getUINativeModule().sideBarContainer.resetMinContentWidth(node);
6574    }
6575    else {
6576      getUINativeModule().sideBarContainer.setMinContentWidth(node, this.value);
6577    }
6578  }
6579  checkObjectDiff() {
6580    return !isBaseOrResourceEqual(this.stageValue, this.value);
6581  }
6582}
6583SideBarContainerMinContentWidthModifier.identity = Symbol('sideBarContainerMinContentWidth');
6584class SideBarContainerShowControlButtonModifier extends ModifierWithKey {
6585  constructor(value) {
6586    super(value);
6587  }
6588  applyPeer(node, reset) {
6589    if (reset) {
6590      getUINativeModule().sideBarContainer.resetShowControlButton(node);
6591    }
6592    else {
6593      getUINativeModule().sideBarContainer.setShowControlButton(node, this.value);
6594    }
6595  }
6596  checkObjectDiff() {
6597    return !isBaseOrResourceEqual(this.stageValue, this.value);
6598  }
6599}
6600SideBarContainerShowControlButtonModifier.identity = Symbol('sideBarContainerShowControlButton');
6601class SideBarContainerMinSideBarWidthModifier extends ModifierWithKey {
6602  constructor(value) {
6603    super(value);
6604  }
6605  applyPeer(node, reset) {
6606    if (reset) {
6607      getUINativeModule().sideBarContainer.resetMinSideBarWidth(node);
6608    }
6609    else {
6610      getUINativeModule().sideBarContainer.setMinSideBarWidth(node, this.value);
6611    }
6612  }
6613  checkObjectDiff() {
6614    return !isBaseOrResourceEqual(this.stageValue, this.value);
6615  }
6616}
6617SideBarContainerMinSideBarWidthModifier.identity = Symbol('sideBarContainerMinSideBarWidth');
6618class SideBarContainerControlButtonModifier extends ModifierWithKey {
6619  constructor(value) {
6620    super(value);
6621  }
6622  applyPeer(node, reset) {
6623    let _a, _b, _c;
6624    if (reset) {
6625      getUINativeModule().sideBarContainer.resetControlButton(node);
6626    }
6627    else {
6628      getUINativeModule().sideBarContainer.setControlButton(node, this.value.left,
6629        this.value.top, this.value.width, this.value.height, (_a = this.value.icons) === null ||
6630        _a === void 0 ? void 0 : _a.shown, (_b = this.value.icons) === null ||
6631        _b === void 0 ? void 0 : _b.hidden, (_c = this.value.icons) === null ||
6632        _c === void 0 ? void 0 : _c.switching);
6633    }
6634  }
6635  checkObjectDiff() {
6636    let _a, _b, _c, _d, _e, _f;
6637    if (!(this.stageValue.left === this.value.left &&
6638      this.stageValue.top === this.value.top &&
6639      this.stageValue.width === this.value.width &&
6640      this.stageValue.height === this.value.height)) {
6641      return true;
6642    }
6643    else {
6644      return !isBaseOrResourceEqual((_a = this.stageValue.icons) === null || _a === void 0 ? void 0 : _a.shown, (_b = this.value.icons) === null ||
6645      _b === void 0 ? void 0 : _b.shown) ||
6646        !isBaseOrResourceEqual((_c = this.stageValue.icons) === null || _c === void 0 ? void 0 : _c.hidden, (_d = this.value.icons) === null ||
6647        _d === void 0 ? void 0 : _d.hidden) ||
6648        !isBaseOrResourceEqual((_e = this.stageValue.icons) === null || _e === void 0 ? void 0 : _e.switching, (_f = this.value.icons) === null ||
6649        _f === void 0 ? void 0 : _f.switching);
6650    }
6651  }
6652}
6653SideBarContainerControlButtonModifier.identity = Symbol('sideBarContainercontrolButton');
6654class SideBarContainerDividerModifier extends ModifierWithKey {
6655  constructor(value) {
6656    super(value);
6657  }
6658  applyPeer(node, reset) {
6659    if (reset) {
6660      getUINativeModule().sideBarContainer.resetDivider(node);
6661    }
6662    else {
6663      if (!this.value || !isObject(this.value) || !this.value.strokeWidth) {
6664        getUINativeModule().sideBarContainer.resetDivider(node);
6665      }
6666      else {
6667        getUINativeModule().sideBarContainer.setDivider(node, this.value.strokeWidth, this.value.color, this.value.startMargin, this.value.endMargin);
6668      }
6669    }
6670  }
6671  checkObjectDiff() {
6672    return !isBaseOrResourceEqual(this.stageValue.strokeWidth, this.value.strokeWidth) ||
6673      !isBaseOrResourceEqual(this.stageValue.color, this.value.color) ||
6674      !isBaseOrResourceEqual(this.stageValue.startMargin, this.value.startMargin) ||
6675      !isBaseOrResourceEqual(this.stageValue.endMargin, this.value.endMargin);
6676  }
6677}
6678SideBarContainerDividerModifier.identity = Symbol('sideBarContainerdivider');
6679class ArkSideBarContainerComponent extends ArkComponent {
6680  constructor(nativePtr) {
6681    super(nativePtr);
6682  }
6683  onChange(callback) {
6684    throw new Error('Method not implemented.');
6685  }
6686  autoHide(value) {
6687    modifierWithKey(this._modifiersWithKeys, SideBarContainerAutoHideModifier.identity, SideBarContainerAutoHideModifier, value);
6688    return this;
6689  }
6690  showSideBar(value) {
6691    modifierWithKey(this._modifiersWithKeys, SideBarContainerShowSideBarModifier.identity, SideBarContainerShowSideBarModifier, value);
6692    return this;
6693  }
6694  maxSideBarWidth(value) {
6695    modifierWithKey(this._modifiersWithKeys, SideBarContainerMaxSideBarWidthModifier.identity, SideBarContainerMaxSideBarWidthModifier, value);
6696    return this;
6697  }
6698  minSideBarWidth(value) {
6699    modifierWithKey(this._modifiersWithKeys, SideBarContainerMinSideBarWidthModifier.identity, SideBarContainerMinSideBarWidthModifier, value);
6700    return this;
6701  }
6702  minContentWidth(value) {
6703    modifierWithKey(this._modifiersWithKeys, SideBarContainerMinContentWidthModifier.identity, SideBarContainerMinContentWidthModifier, value);
6704    return this;
6705  }
6706  controlButton(value) {
6707    modifierWithKey(this._modifiersWithKeys, SideBarContainerControlButtonModifier.identity, SideBarContainerControlButtonModifier, value);
6708    return this;
6709  }
6710  divider(value) {
6711    modifierWithKey(this._modifiersWithKeys, SideBarContainerDividerModifier.identity, SideBarContainerDividerModifier, value);
6712    return this;
6713  }
6714  sideBarPosition(value) {
6715    modifierWithKey(this._modifiersWithKeys, SideBarContainerPositionModifier.identity, SideBarContainerPositionModifier, value);
6716    return this;
6717  }
6718  sideBarWidth(value) {
6719    modifierWithKey(this._modifiersWithKeys, SideBarContainerWidthModifier.identity, SideBarContainerWidthModifier, value);
6720    return this;
6721  }
6722  showControlButton(value) {
6723    modifierWithKey(this._modifiersWithKeys, SideBarContainerShowControlButtonModifier.identity, SideBarContainerShowControlButtonModifier, value);
6724    return this;
6725  }
6726}
6727// @ts-ignore
6728globalThis.SideBarContainer.attributeModifier = function (modifier) {
6729  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
6730  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
6731  let component = this.createOrGetNode(elmtId, () => {
6732    return new ArkSideBarContainerComponent(nativeNode);
6733  });
6734  applyUIAttributes(modifier, nativeNode, component);
6735  component.applyModifierPatch();
6736};
6737
6738/// <reference path='./import.ts' />
6739class ArkStackComponent extends ArkComponent {
6740  constructor(nativePtr) {
6741    super(nativePtr);
6742  }
6743  onGestureJudgeBegin(callback) {
6744    throw new Error('Method not implemented.');
6745  }
6746  alignContent(value) {
6747    modifierWithKey(this._modifiersWithKeys, StackAlignContentModifier.identity, StackAlignContentModifier, value);
6748    return this;
6749  }
6750  align(value) {
6751    modifierWithKey(this._modifiersWithKeys, StackAlignContentModifier.identity, StackAlignContentModifier, value);
6752    return this;
6753  }
6754}
6755class StackAlignContentModifier extends ModifierWithKey {
6756  constructor(nativePtr) {
6757    super(nativePtr);
6758  }
6759  applyPeer(node, reset) {
6760    if (reset) {
6761      getUINativeModule().stack.resetAlignContent(node);
6762    }
6763    else {
6764      getUINativeModule().stack.setAlignContent(node, this.value);
6765    }
6766  }
6767  checkObjectDiff() {
6768    return this.stageValue !== this.value;
6769  }
6770}
6771StackAlignContentModifier.identity = Symbol('stackAlignContent');
6772// @ts-ignore
6773globalThis.Stack.attributeModifier = function (modifier) {
6774  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
6775  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
6776  let component = this.createOrGetNode(elmtId, () => {
6777    return new ArkStackComponent(nativeNode);
6778  });
6779  applyUIAttributes(modifier, nativeNode, component);
6780  component.applyModifierPatch();
6781};
6782
6783/// <reference path='./import.ts' />
6784class FontColorModifier extends ModifierWithKey {
6785  constructor(value) {
6786    super(value);
6787  }
6788  applyPeer(node, reset) {
6789    if (reset) {
6790      getUINativeModule().text.resetFontColor(node);
6791    }
6792    else {
6793      getUINativeModule().text.setFontColor(node, this.value);
6794    }
6795  }
6796  checkObjectDiff() {
6797    return !isBaseOrResourceEqual(this.stageValue, this.value);
6798  }
6799}
6800FontColorModifier.identity = Symbol('textFontColor');
6801class FontSizeModifier extends ModifierWithKey {
6802  constructor(value) {
6803    super(value);
6804  }
6805  applyPeer(node, reset) {
6806    if (reset) {
6807      getUINativeModule().text.resetFontSize(node);
6808    }
6809    else {
6810      getUINativeModule().text.setFontSize(node, this.value);
6811    }
6812  }
6813  checkObjectDiff() {
6814    return !isBaseOrResourceEqual(this.stageValue, this.value);
6815  }
6816}
6817FontSizeModifier.identity = Symbol('textFontSize');
6818class FontWeightModifier extends ModifierWithKey {
6819  constructor(value) {
6820    super(value);
6821  }
6822  applyPeer(node, reset) {
6823    if (reset) {
6824      getUINativeModule().text.resetFontWeight(node);
6825    }
6826    else {
6827      getUINativeModule().text.setFontWeight(node, this.value);
6828    }
6829  }
6830}
6831FontWeightModifier.identity = Symbol('textFontWeight');
6832class FontStyleModifier extends ModifierWithKey {
6833  constructor(value) {
6834    super(value);
6835  }
6836  applyPeer(node, reset) {
6837    if (reset) {
6838      getUINativeModule().text.resetFontStyle(node);
6839    }
6840    else {
6841      getUINativeModule().text.setFontStyle(node, this.value);
6842    }
6843  }
6844}
6845FontStyleModifier.identity = Symbol('textFontStyle');
6846class TextAlignModifier extends ModifierWithKey {
6847  constructor(value) {
6848    super(value);
6849  }
6850  applyPeer(node, reset) {
6851    if (reset) {
6852      getUINativeModule().text.resetTextAlign(node);
6853    }
6854    else {
6855      getUINativeModule().text.setTextAlign(node, this.value);
6856    }
6857  }
6858}
6859TextAlignModifier.identity = Symbol('textAlign');
6860class TextHeightAdaptivePolicyModifier extends ModifierWithKey {
6861  constructor(value) {
6862    super(value);
6863  }
6864  applyPeer(node, reset) {
6865    if (reset) {
6866      getUINativeModule().text.resetHeightAdaptivePolicy(node);
6867    }
6868    else {
6869      getUINativeModule().text.setHeightAdaptivePolicy(node, this.value);
6870    }
6871  }
6872  checkObjectDiff() {
6873    return !isBaseOrResourceEqual(this.stageValue, this.value);
6874  }
6875}
6876TextHeightAdaptivePolicyModifier.identity = Symbol('textHeightAdaptivePolicy');
6877class TextDraggableModifier extends ModifierWithKey {
6878  constructor(value) {
6879    super(value);
6880  }
6881  applyPeer(node, reset) {
6882    if (reset) {
6883      getUINativeModule().text.resetDraggable(node);
6884    }
6885    else {
6886      getUINativeModule().text.setDraggable(node, this.value);
6887    }
6888  }
6889  checkObjectDiff() {
6890    return !isBaseOrResourceEqual(this.stageValue, this.value);
6891  }
6892}
6893TextDraggableModifier.identity = Symbol('textDraggable');
6894class TextWordBreakModifier extends ModifierWithKey {
6895  constructor(value) {
6896    super(value);
6897  }
6898  applyPeer(node, reset) {
6899    if (reset) {
6900      getUINativeModule().text.resetWordBreak(node);
6901    }
6902    else {
6903      getUINativeModule().text.setWordBreak(node, this.value);
6904    }
6905  }
6906  checkObjectDiff() {
6907    return !isBaseOrResourceEqual(this.stageValue, this.value);
6908  }
6909}
6910TextWordBreakModifier.identity = Symbol('textWordBreak');
6911
6912class TextEllipsisModeModifier extends ModifierWithKey {
6913  constructor(value) {
6914    super(value);
6915  }
6916  applyPeer(node, reset) {
6917    if (reset) {
6918      getUINativeModule().text.resetEllipsisMode(node);
6919    }
6920    else {
6921      getUINativeModule().text.setEllipsisMode(node, this.value);
6922    }
6923  }
6924  checkObjectDiff() {
6925    return !isBaseOrResourceEqual(this.stageValue, this.value);
6926  }
6927}
6928TextEllipsisModeModifier.identity = Symbol('textEllipsisMode');
6929
6930class TextMinFontSizeModifier extends ModifierWithKey {
6931  constructor(value) {
6932    super(value);
6933  }
6934  applyPeer(node, reset) {
6935    if (reset) {
6936      getUINativeModule().text.resetMinFontSize(node);
6937    }
6938    else if (!isNumber(this.value) && !isString(this.value) && !isResource(this.value)) {
6939      getUINativeModule().text.resetMinFontSize(node);
6940    }
6941    else {
6942      getUINativeModule().text.setMinFontSize(node, this.value);
6943    }
6944  }
6945  checkObjectDiff() {
6946    return !isBaseOrResourceEqual(this.stageValue, this.value);
6947  }
6948}
6949TextMinFontSizeModifier.identity = Symbol('textMinFontSize');
6950class TextMaxFontSizeModifier extends ModifierWithKey {
6951  constructor(value) {
6952    super(value);
6953  }
6954  applyPeer(node, reset) {
6955    if (reset) {
6956      getUINativeModule().text.resetMaxFontSize(node);
6957    }
6958    else if (!isNumber(this.value) && !isString(this.value) && !isResource(this.value)) {
6959      getUINativeModule().text.resetMaxFontSize(node);
6960    }
6961    else {
6962      getUINativeModule().text.setMaxFontSize(node, this.value);
6963    }
6964  }
6965  checkObjectDiff() {
6966    return !isBaseOrResourceEqual(this.stageValue, this.value);
6967  }
6968}
6969TextMaxFontSizeModifier.identity = Symbol('textMaxFontSize');
6970class TextLineHeightModifier extends ModifierWithKey {
6971  constructor(value) {
6972    super(value);
6973  }
6974  applyPeer(node, reset) {
6975    if (reset) {
6976      getUINativeModule().text.resetLineHeight(node);
6977    }
6978    else if (!isNumber(this.value) && !isString(this.value) && !isResource(this.value)) {
6979      getUINativeModule().text.resetLineHeight(node);
6980    }
6981    else {
6982      getUINativeModule().text.setLineHeight(node, this.value);
6983    }
6984  }
6985  checkObjectDiff() {
6986    return !isBaseOrResourceEqual(this.stageValue, this.value);
6987  }
6988}
6989TextLineHeightModifier.identity = Symbol('textLineHeight');
6990class TextCopyOptionModifier extends ModifierWithKey {
6991  constructor(value) {
6992    super(value);
6993  }
6994  applyPeer(node, reset) {
6995    if (reset) {
6996      getUINativeModule().text.resetCopyOption(node);
6997    }
6998    else {
6999      getUINativeModule().text.setCopyOption(node, this.value);
7000    }
7001  }
7002  checkObjectDiff() {
7003    return !isBaseOrResourceEqual(this.stageValue, this.value);
7004  }
7005}
7006TextCopyOptionModifier.identity = Symbol('textCopyOption');
7007class TextFontFamilyModifier extends ModifierWithKey {
7008  constructor(value) {
7009    super(value);
7010  }
7011  applyPeer(node, reset) {
7012    if (reset) {
7013      getUINativeModule().text.resetFontFamily(node);
7014    }
7015    else if (!isString(this.value) && !isResource(this.value)) {
7016      getUINativeModule().text.resetFontFamily(node);
7017    }
7018    else {
7019      getUINativeModule().text.setFontFamily(node, this.value);
7020    }
7021  }
7022  checkObjectDiff() {
7023    return !isBaseOrResourceEqual(this.stageValue, this.value);
7024  }
7025}
7026TextFontFamilyModifier.identity = Symbol('textFontFamily');
7027class TextMaxLinesModifier extends ModifierWithKey {
7028  constructor(value) {
7029    super(value);
7030  }
7031  applyPeer(node, reset) {
7032    if (reset) {
7033      getUINativeModule().text.resetMaxLines(node);
7034    }
7035    else if (!isNumber(this.value)) {
7036      getUINativeModule().text.resetMaxLines(node);
7037    }
7038    else {
7039      getUINativeModule().text.setMaxLines(node, this.value);
7040    }
7041  }
7042  checkObjectDiff() {
7043    return !isBaseOrResourceEqual(this.stageValue, this.value);
7044  }
7045}
7046TextMaxLinesModifier.identity = Symbol('textMaxLines');
7047class TextLetterSpacingModifier extends ModifierWithKey {
7048  constructor(value) {
7049    super(value);
7050  }
7051  applyPeer(node, reset) {
7052    if (reset) {
7053      getUINativeModule().text.resetLetterSpacing(node);
7054    }
7055    else if (!isNumber(this.value) && !isString(this.value)) {
7056      getUINativeModule().text.resetLetterSpacing(node);
7057    }
7058    else {
7059      getUINativeModule().text.setLetterSpacing(node, this.value);
7060    }
7061  }
7062  checkObjectDiff() {
7063    return !isBaseOrResourceEqual(this.stageValue, this.value);
7064  }
7065}
7066TextLetterSpacingModifier.identity = Symbol('textLetterSpacing');
7067class TextTextOverflowModifier extends ModifierWithKey {
7068  constructor(value) {
7069    super(value);
7070  }
7071  applyPeer(node, reset) {
7072    if (reset) {
7073      getUINativeModule().text.resetTextOverflow(node);
7074    }
7075    else {
7076      getUINativeModule().text.setTextOverflow(node, this.value.overflow);
7077    }
7078  }
7079  checkObjectDiff() {
7080    return !isBaseOrResourceEqual(this.stageValue.overflow, this.value.overflow);
7081  }
7082}
7083TextTextOverflowModifier.identity = Symbol('textTextOverflow');
7084class TextBaselineOffsetModifier extends ModifierWithKey {
7085  constructor(value) {
7086    super(value);
7087  }
7088  applyPeer(node, reset) {
7089    if (reset) {
7090      getUINativeModule().text.resetBaselineOffset(node);
7091    }
7092    else if (!isNumber(this.value) && !isString(this.value)) {
7093      getUINativeModule().text.resetBaselineOffset(node);
7094    }
7095    else {
7096      getUINativeModule().text.setBaselineOffset(node, this.value);
7097    }
7098  }
7099  checkObjectDiff() {
7100    return !isBaseOrResourceEqual(this.stageValue, this.value);
7101  }
7102}
7103TextBaselineOffsetModifier.identity = Symbol('textBaselineOffset');
7104class TextTextCaseModifier extends ModifierWithKey {
7105  constructor(value) {
7106    super(value);
7107  }
7108  applyPeer(node, reset) {
7109    if (reset) {
7110      getUINativeModule().text.resetTextCase(node);
7111    }
7112    else {
7113      getUINativeModule().text.setTextCase(node, this.value);
7114    }
7115  }
7116  checkObjectDiff() {
7117    return !isBaseOrResourceEqual(this.stageValue, this.value);
7118  }
7119}
7120TextTextCaseModifier.identity = Symbol('textTextCase');
7121class TextTextIndentModifier extends ModifierWithKey {
7122  constructor(value) {
7123    super(value);
7124  }
7125  applyPeer(node, reset) {
7126    if (reset) {
7127      getUINativeModule().text.resetTextIndent(node);
7128    }
7129    else if (!isNumber(this.value) && !isString(this.value) && !isResource(this.value)) {
7130      getUINativeModule().text.resetTextIndent(node);
7131    }
7132    else {
7133      getUINativeModule().text.setTextIndent(node, this.value);
7134    }
7135  }
7136  checkObjectDiff() {
7137    return !isBaseOrResourceEqual(this.stageValue, this.value);
7138  }
7139}
7140TextTextIndentModifier.identity = Symbol('textTextIndent');
7141class TextTextShadowModifier extends ModifierWithKey {
7142  constructor(value) {
7143    super(value);
7144  }
7145  applyPeer(node, reset) {
7146    if (reset) {
7147      getUINativeModule().text.resetTextShadow(node);
7148    }
7149    else {
7150      let shadow = new ArkShadowInfoToArray();
7151      if (!shadow.convertShadowOptions(this.value)) {
7152        getUINativeModule().text.resetTextShadow(node);
7153      }
7154      else {
7155        getUINativeModule().text.setTextShadow(node, shadow.radius, shadow.type, shadow.color,
7156          shadow.offsetX, shadow.offsetY, shadow.fill, shadow.radius.length);
7157      }
7158    }
7159  }
7160  checkObjectDiff() {
7161    let checkDiff = true;
7162    let arkShadow = new ArkShadowInfoToArray();
7163    if (Object.getPrototypeOf(this.stageValue).constructor === Object &&
7164      Object.getPrototypeOf(this.value).constructor === Object) {
7165      checkDiff = arkShadow.checkDiff(this.stageValue, this.value);
7166    }
7167    else if (Object.getPrototypeOf(this.stageValue).constructor === Array &&
7168      Object.getPrototypeOf(this.value).constructor === Array &&
7169      this.stageValue.length === this.value.length) {
7170      let isDiffItem = false;
7171      for (let i = 0; i < this.value.length; i++) {
7172        if (arkShadow.checkDiff(this.stageValue[i], this.value[1])) {
7173          isDiffItem = true;
7174          break;
7175        }
7176      }
7177      if (!isDiffItem) {
7178        checkDiff = false;
7179      }
7180    }
7181    return checkDiff;
7182  }
7183}
7184TextTextShadowModifier.identity = Symbol('textTextShadow');
7185class TextDecorationModifier extends ModifierWithKey {
7186  constructor(value) {
7187    super(value);
7188  }
7189  applyPeer(node, reset) {
7190    if (reset) {
7191      getUINativeModule().text.resetDecoration(node);
7192    }
7193    else {
7194      getUINativeModule().text.setDecoration(node, this.value.type, this.value.color);
7195    }
7196  }
7197  checkObjectDiff() {
7198    if (this.stageValue.type !== this.value.type) {
7199      return true;
7200    }
7201    if (isResource(this.stageValue.color) && isResource(this.value.color)) {
7202      return !isResourceEqual(this.stageValue.color, this.value.color);
7203    }
7204    else if (!isResource(this.stageValue.color) && !isResource(this.value.color)) {
7205      return !(this.stageValue.color === this.value.color);
7206    }
7207    else {
7208      return true;
7209    }
7210  }
7211}
7212TextDecorationModifier.identity = Symbol('textDecoration');
7213class TextFontModifier extends ModifierWithKey {
7214  constructor(value) {
7215    super(value);
7216  }
7217  applyPeer(node, reset) {
7218    if (reset) {
7219      getUINativeModule().text.resetFont(node);
7220    }
7221    else {
7222      getUINativeModule().text.setFont(node, this.value.size, this.value.weight, this.value.family, this.value.style);
7223    }
7224  }
7225  checkObjectDiff() {
7226    if (this.stageValue.weight !== this.value.weight || this.stageValue.style !== this.value.style) {
7227      return true;
7228    }
7229    if (((isResource(this.stageValue.size) && isResource(this.value.size) &&
7230      isResourceEqual(this.stageValue.size, this.value.size)) ||
7231      (!isResource(this.stageValue.size) && !isResource(this.value.size) &&
7232        this.stageValue.size === this.value.size)) &&
7233      ((isResource(this.stageValue.family) && isResource(this.value.family) &&
7234        isResourceEqual(this.stageValue.family, this.value.family)) ||
7235        (!isResource(this.stageValue.family) && !isResource(this.value.family) &&
7236          this.stageValue.family === this.value.family))) {
7237      return false;
7238    }
7239    else {
7240      return true;
7241    }
7242  }
7243}
7244TextFontModifier.identity = Symbol('textFont');
7245class TextClipModifier extends ModifierWithKey {
7246  constructor(value) {
7247    super(value);
7248  }
7249  applyPeer(node, reset) {
7250    if (reset) {
7251      getUINativeModule().common.resetClipWithEdge(node);
7252    }
7253    else {
7254      getUINativeModule().common.setClipWithEdge(node, this.value);
7255    }
7256  }
7257  checkObjectDiff() {
7258    return true;
7259  }
7260}
7261TextClipModifier.identity = Symbol('textClip');
7262class ArkTextComponent extends ArkComponent {
7263  constructor(nativePtr) {
7264    super(nativePtr);
7265  }
7266  enableDataDetector(enable) {
7267    throw new Error('Method not implemented.');
7268  }
7269  dataDetectorConfig(config) {
7270    throw new Error('Method not implemented.');
7271  }
7272  onGestureJudgeBegin(callback) {
7273    throw new Error('Method not implemented.');
7274  }
7275  font(value) {
7276    modifierWithKey(this._modifiersWithKeys, TextFontModifier.identity, TextFontModifier, value);
7277    return this;
7278  }
7279  fontColor(value) {
7280    modifierWithKey(this._modifiersWithKeys, FontColorModifier.identity, FontColorModifier, value);
7281    return this;
7282  }
7283  fontSize(value) {
7284    modifierWithKey(this._modifiersWithKeys, FontSizeModifier.identity, FontSizeModifier, value);
7285    return this;
7286  }
7287  minFontSize(value) {
7288    modifierWithKey(this._modifiersWithKeys, TextMinFontSizeModifier.identity, TextMinFontSizeModifier, value);
7289    return this;
7290  }
7291  maxFontSize(value) {
7292    modifierWithKey(this._modifiersWithKeys, TextMaxFontSizeModifier.identity, TextMaxFontSizeModifier, value);
7293    return this;
7294  }
7295  fontStyle(value) {
7296    modifierWithKey(this._modifiersWithKeys, FontStyleModifier.identity, FontStyleModifier, value);
7297    return this;
7298  }
7299  fontWeight(value) {
7300    let fontWeightStr = '400';
7301    if (isNumber(value)) {
7302      fontWeightStr = value.toString();
7303    }
7304    else if (isString(value)) {
7305      fontWeightStr = String(value);
7306    }
7307    modifierWithKey(this._modifiersWithKeys, FontWeightModifier.identity, FontWeightModifier, fontWeightStr);
7308    return this;
7309  }
7310  textAlign(value) {
7311    modifierWithKey(this._modifiersWithKeys, TextAlignModifier.identity, TextAlignModifier, value);
7312    return this;
7313  }
7314  lineHeight(value) {
7315    modifierWithKey(this._modifiersWithKeys, TextLineHeightModifier.identity, TextLineHeightModifier, value);
7316    return this;
7317  }
7318  textOverflow(value) {
7319    modifierWithKey(this._modifiersWithKeys, TextTextOverflowModifier.identity, TextTextOverflowModifier, value);
7320    return this;
7321  }
7322  fontFamily(value) {
7323    modifierWithKey(this._modifiersWithKeys, TextFontFamilyModifier.identity, TextFontFamilyModifier, value);
7324    return this;
7325  }
7326  maxLines(value) {
7327    modifierWithKey(this._modifiersWithKeys, TextMaxLinesModifier.identity, TextMaxLinesModifier, value);
7328    return this;
7329  }
7330  decoration(value) {
7331    modifierWithKey(this._modifiersWithKeys, TextDecorationModifier.identity, TextDecorationModifier, value);
7332    return this;
7333  }
7334  letterSpacing(value) {
7335    modifierWithKey(this._modifiersWithKeys, TextLetterSpacingModifier.identity, TextLetterSpacingModifier, value);
7336    return this;
7337  }
7338  textCase(value) {
7339    modifierWithKey(this._modifiersWithKeys, TextTextCaseModifier.identity, TextTextCaseModifier, value);
7340    return this;
7341  }
7342  baselineOffset(value) {
7343    modifierWithKey(this._modifiersWithKeys, TextBaselineOffsetModifier.identity, TextBaselineOffsetModifier, value);
7344    return this;
7345  }
7346  copyOption(value) {
7347    modifierWithKey(this._modifiersWithKeys, TextCopyOptionModifier.identity, TextCopyOptionModifier, value);
7348    return this;
7349  }
7350  draggable(value) {
7351    modifierWithKey(this._modifiersWithKeys, TextDraggableModifier.identity, TextDraggableModifier, value);
7352    return this;
7353  }
7354  textShadow(value) {
7355    modifierWithKey(this._modifiersWithKeys, TextTextShadowModifier.identity, TextTextShadowModifier, value);
7356    return this;
7357  }
7358  heightAdaptivePolicy(value) {
7359    modifierWithKey(this._modifiersWithKeys, TextHeightAdaptivePolicyModifier.identity, TextHeightAdaptivePolicyModifier, value);
7360    return this;
7361  }
7362  textIndent(value) {
7363    modifierWithKey(this._modifiersWithKeys, TextTextIndentModifier.identity, TextTextIndentModifier, value);
7364    return this;
7365  }
7366  wordBreak(value) {
7367    modifierWithKey(this._modifiersWithKeys, TextWordBreakModifier.identity, TextWordBreakModifier, value);
7368    return this;
7369  }
7370  onCopy(callback) {
7371    throw new Error('Method not implemented.');
7372  }
7373  selection(selectionStart, selectionEnd) {
7374    throw new Error('Method not implemented.');
7375  }
7376  ellipsisMode(value) {
7377    modifierWithKey(this._modifiersWithKeys, TextEllipsisModeModifier.identity, TextEllipsisModeModifier, value);
7378    return this;
7379  }
7380  clip(value) {
7381    modifierWithKey(this._modifiersWithKeys, TextClipModifier.identity, TextClipModifier, value);
7382    return this;
7383  }
7384}
7385// @ts-ignore
7386globalThis.Text.attributeModifier = function (modifier) {
7387  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
7388  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
7389  let component = this.createOrGetNode(elmtId, () => {
7390    return new ArkTextComponent(nativeNode);
7391  });
7392  applyUIAttributes(modifier, nativeNode, component);
7393  component.applyModifierPatch();
7394};
7395
7396/// <reference path='./import.ts' />
7397class TextAreaFontStyleModifier extends ModifierWithKey {
7398  constructor(value) {
7399    super(value);
7400  }
7401  applyPeer(node, reset) {
7402    if (reset) {
7403      getUINativeModule().textArea.resetFontStyle(node);
7404    }
7405    else {
7406      getUINativeModule().textArea.setFontStyle(node, this.value);
7407    }
7408  }
7409  checkObjectDiff() {
7410    return !isBaseOrResourceEqual(this.stageValue, this.value);
7411  }
7412}
7413TextAreaFontStyleModifier.identity = Symbol('textAreaFontStyle');
7414class TextAreaCopyOptionModifier extends ModifierWithKey {
7415  constructor(value) {
7416    super(value);
7417  }
7418  applyPeer(node, reset) {
7419    if (reset) {
7420      getUINativeModule().textArea.resetCopyOption(node);
7421    }
7422    else {
7423      getUINativeModule().textArea.setCopyOption(node, this.value);
7424    }
7425  }
7426  checkObjectDiff() {
7427    return !isBaseOrResourceEqual(this.stageValue, this.value);
7428  }
7429}
7430TextAreaCopyOptionModifier.identity = Symbol('textAreaCopyOption');
7431class TextAreaMaxLinesModifier extends ModifierWithKey {
7432  constructor(value) {
7433    super(value);
7434  }
7435  applyPeer(node, reset) {
7436    if (reset) {
7437      getUINativeModule().textArea.resetMaxLines(node);
7438    }
7439    else {
7440      getUINativeModule().textArea.setMaxLines(node, this.value);
7441    }
7442  }
7443  checkObjectDiff() {
7444    return !isBaseOrResourceEqual(this.stageValue, this.value);
7445  }
7446}
7447TextAreaMaxLinesModifier.identity = Symbol('textAreaMaxLines');
7448class TextAreaFontSizeModifier extends ModifierWithKey {
7449  constructor(value) {
7450    super(value);
7451  }
7452  applyPeer(node, reset) {
7453    if (reset) {
7454      getUINativeModule().textArea.resetFontSize(node);
7455    }
7456    else {
7457      getUINativeModule().textArea.setFontSize(node, this.value);
7458    }
7459  }
7460  checkObjectDiff() {
7461    return !isBaseOrResourceEqual(this.stageValue, this.value);
7462  }
7463}
7464TextAreaFontSizeModifier.identity = Symbol('textAreaFontSize');
7465class TextAreaPlaceholderColorModifier extends ModifierWithKey {
7466  constructor(value) {
7467    super(value);
7468  }
7469  applyPeer(node, reset) {
7470    if (reset) {
7471      getUINativeModule().textArea.resetPlaceholderColor(node);
7472    }
7473    else {
7474      getUINativeModule().textArea.setPlaceholderColor(node, this.value);
7475    }
7476  }
7477  checkObjectDiff() {
7478    return !isBaseOrResourceEqual(this.stageValue, this.value);
7479  }
7480}
7481TextAreaPlaceholderColorModifier.identity = Symbol('textAreaPlaceholderColor');
7482class TextAreaFontColorModifier extends ModifierWithKey {
7483  constructor(value) {
7484    super(value);
7485  }
7486  applyPeer(node, reset) {
7487    if (reset) {
7488      getUINativeModule().textArea.resetFontColor(node);
7489    }
7490    else {
7491      getUINativeModule().textArea.setFontColor(node, this.value);
7492    }
7493  }
7494  checkObjectDiff() {
7495    return !isBaseOrResourceEqual(this.stageValue, this.value);
7496  }
7497}
7498TextAreaFontColorModifier.identity = Symbol('textAreaFontColor');
7499class TextAreaFontWeightModifier extends ModifierWithKey {
7500  constructor(value) {
7501    super(value);
7502  }
7503  applyPeer(node, reset) {
7504    if (reset) {
7505      getUINativeModule().textArea.resetFontWeight(node);
7506    }
7507    else {
7508      getUINativeModule().textArea.setFontWeight(node, this.value);
7509    }
7510  }
7511  checkObjectDiff() {
7512    return !isBaseOrResourceEqual(this.stageValue, this.value);
7513  }
7514}
7515TextAreaFontWeightModifier.identity = Symbol('textAreaFontWeight');
7516class TextAreaBarStateModifier extends ModifierWithKey {
7517  constructor(value) {
7518    super(value);
7519  }
7520  applyPeer(node, reset) {
7521    if (reset) {
7522      getUINativeModule().textArea.resetBarState(node);
7523    }
7524    else {
7525      getUINativeModule().textArea.setBarState(node, this.value);
7526    }
7527  }
7528  checkObjectDiff() {
7529    return !isBaseOrResourceEqual(this.stageValue, this.value);
7530  }
7531}
7532TextAreaBarStateModifier.identity = Symbol('textAreaBarState');
7533class TextAreaEnableKeyboardOnFocusModifier extends ModifierWithKey {
7534  constructor(value) {
7535    super(value);
7536  }
7537  applyPeer(node, reset) {
7538    if (reset) {
7539      getUINativeModule().textArea.resetEnableKeyboardOnFocus(node);
7540    }
7541    else {
7542      getUINativeModule().textArea.setEnableKeyboardOnFocus(node, this.value);
7543    }
7544  }
7545  checkObjectDiff() {
7546    return !isBaseOrResourceEqual(this.stageValue, this.value);
7547  }
7548}
7549TextAreaEnableKeyboardOnFocusModifier.identity = Symbol('textAreaEnableKeyboardOnFocus');
7550class TextAreaFontFamilyModifier extends ModifierWithKey {
7551  constructor(value) {
7552    super(value);
7553  }
7554  applyPeer(node, reset) {
7555    if (reset) {
7556      getUINativeModule().textArea.resetFontFamily(node);
7557    }
7558    else {
7559      getUINativeModule().textArea.setFontFamily(node, this.value);
7560    }
7561  }
7562  checkObjectDiff() {
7563    return !isBaseOrResourceEqual(this.stageValue, this.value);
7564  }
7565}
7566TextAreaFontFamilyModifier.identity = Symbol('textAreaFontFamily');
7567class TextAreaCaretColorModifier extends ModifierWithKey {
7568  constructor(value) {
7569    super(value);
7570  }
7571  applyPeer(node, reset) {
7572    if (reset) {
7573      getUINativeModule().textArea.resetCaretColor(node);
7574    }
7575    else {
7576      getUINativeModule().textArea.setCaretColor(node, this.value);
7577    }
7578  }
7579  checkObjectDiff() {
7580    return !isBaseOrResourceEqual(this.stageValue, this.value);
7581  }
7582}
7583TextAreaCaretColorModifier.identity = Symbol('textAreaCaretColor');
7584class TextAreaMaxLengthModifier extends ModifierWithKey {
7585  constructor(value) {
7586    super(value);
7587  }
7588  applyPeer(node, reset) {
7589    if (reset) {
7590      getUINativeModule().textArea.resetMaxLength(node);
7591    }
7592    else {
7593      getUINativeModule().textArea.setMaxLength(node, this.value);
7594    }
7595  }
7596  checkObjectDiff() {
7597    return !isBaseOrResourceEqual(this.stageValue, this.value);
7598  }
7599}
7600TextAreaMaxLengthModifier.identity = Symbol('textAreaMaxLength');
7601class TextAreaStyleModifier extends ModifierWithKey {
7602  constructor(value) {
7603    super(value);
7604  }
7605  applyPeer(node, reset) {
7606    if (reset) {
7607      getUINativeModule().textArea.resetStyle(node);
7608    }
7609    else {
7610      getUINativeModule().textArea.setStyle(node, this.value);
7611    }
7612  }
7613  checkObjectDiff() {
7614    return !isBaseOrResourceEqual(this.stageValue, this.value);
7615  }
7616}
7617TextAreaStyleModifier.identity = Symbol('textAreaStyle');
7618class TextAreaSelectionMenuHiddenModifier extends ModifierWithKey {
7619  constructor(value) {
7620    super(value);
7621  }
7622  applyPeer(node, reset) {
7623    if (reset) {
7624      getUINativeModule().textArea.resetSelectionMenuHidden(node);
7625    }
7626    else {
7627      getUINativeModule().textArea.setSelectionMenuHidden(node, this.value);
7628    }
7629  }
7630  checkObjectDiff() {
7631    return !isBaseOrResourceEqual(this.stageValue, this.value);
7632  }
7633}
7634TextAreaSelectionMenuHiddenModifier.identity = Symbol('textAreaSelectionMenuHidden');
7635class TextAreaPlaceholderFontModifier extends ModifierWithKey {
7636  constructor(value) {
7637    super(value);
7638  }
7639  applyPeer(node, reset) {
7640    if (reset) {
7641      getUINativeModule().textArea.resetPlaceholderFont(node);
7642    }
7643    else {
7644      getUINativeModule().textArea.setPlaceholderFont(node, this.value.size, this.value.weight, this.value.family, this.value.style);
7645    }
7646  }
7647  checkObjectDiff() {
7648    if (!(this.stageValue.weight === this.value.weight &&
7649      this.stageValue.style === this.value.style)) {
7650      return true;
7651    }
7652    else {
7653      return !isBaseOrResourceEqual(this.stageValue.size, this.value.size) ||
7654        !isBaseOrResourceEqual(this.stageValue.family, this.value.family);
7655    }
7656  }
7657}
7658TextAreaPlaceholderFontModifier.identity = Symbol('textAreaPlaceholderFont');
7659class TextAreaTextAlignModifier extends ModifierWithKey {
7660  constructor(value) {
7661    super(value);
7662  }
7663  applyPeer(node, reset) {
7664    if (reset) {
7665      getUINativeModule().textArea.resetTextAlign(node);
7666    }
7667    else {
7668      getUINativeModule().textArea.setTextAlign(node, this.value);
7669    }
7670  }
7671  checkObjectDiff() {
7672    return !isBaseOrResourceEqual(this.stageValue, this.value);
7673  }
7674}
7675TextAreaTextAlignModifier.identity = Symbol('textAreaTextAlign');
7676class TextAreaShowCounterModifier extends ModifierWithKey {
7677  constructor(value) {
7678    super(value);
7679  }
7680  applyPeer(node, reset) {
7681    if (reset) {
7682      getUINativeModule().textArea.resetShowCounter(node);
7683    }
7684    else {
7685      getUINativeModule().textArea.setShowCounter(node, this.value.value, this.value.options);
7686    }
7687  }
7688  checkObjectDiff() {
7689    return !isBaseOrResourceEqual(this.stageValue.value, this.value.value) ||
7690      !isBaseOrResourceEqual(this.stageValue.options, this.value.options);
7691  }
7692}
7693TextAreaShowCounterModifier.identity = Symbol('textAreaShowCounter');
7694class ArkTextAreaComponent extends ArkComponent {
7695  constructor(nativePtr) {
7696    super(nativePtr);
7697  }
7698  type(value) {
7699    throw new Error('Method not implemented.');
7700  }
7701  placeholderColor(value) {
7702    modifierWithKey(this._modifiersWithKeys, TextAreaPlaceholderColorModifier.identity, TextAreaPlaceholderColorModifier, value);
7703    return this;
7704  }
7705  placeholderFont(value) {
7706    modifierWithKey(this._modifiersWithKeys, TextAreaPlaceholderFontModifier.identity, TextAreaPlaceholderFontModifier, value);
7707    return this;
7708  }
7709  textAlign(value) {
7710    modifierWithKey(this._modifiersWithKeys, TextAreaTextAlignModifier.identity, TextAreaTextAlignModifier, value);
7711    return this;
7712  }
7713  caretColor(value) {
7714    modifierWithKey(this._modifiersWithKeys, TextAreaCaretColorModifier.identity, TextAreaCaretColorModifier, value);
7715    return this;
7716  }
7717  fontColor(value) {
7718    modifierWithKey(this._modifiersWithKeys, TextAreaFontColorModifier.identity, TextAreaFontColorModifier, value);
7719    return this;
7720  }
7721  fontSize(value) {
7722    modifierWithKey(this._modifiersWithKeys, TextAreaFontSizeModifier.identity, TextAreaFontSizeModifier, value);
7723    return this;
7724  }
7725  fontStyle(value) {
7726    modifierWithKey(this._modifiersWithKeys, TextAreaFontStyleModifier.identity, TextAreaFontStyleModifier, value);
7727    return this;
7728  }
7729  fontWeight(value) {
7730    modifierWithKey(this._modifiersWithKeys, TextAreaFontWeightModifier.identity, TextAreaFontWeightModifier, value);
7731    return this;
7732  }
7733  fontFamily(value) {
7734    modifierWithKey(this._modifiersWithKeys, TextAreaFontFamilyModifier.identity, TextAreaFontFamilyModifier, value);
7735    return this;
7736  }
7737  inputFilter(value, error) {
7738    throw new Error('Method not implemented.');
7739  }
7740  onChange(callback) {
7741    throw new Error('Method not implemented.');
7742  }
7743  onTextSelectionChange(callback) {
7744    throw new Error('Method not implemented.');
7745  }
7746  onContentScroll(callback) {
7747    throw new Error('Method not implemented.');
7748  }
7749  onEditChange(callback) {
7750    throw new Error('Method not implemented.');
7751  }
7752  onCopy(callback) {
7753    throw new Error('Method not implemented.');
7754  }
7755  onCut(callback) {
7756    throw new Error('Method not implemented.');
7757  }
7758  onPaste(callback) {
7759    throw new Error('Method not implemented.');
7760  }
7761  copyOption(value) {
7762    modifierWithKey(this._modifiersWithKeys, TextAreaCopyOptionModifier.identity, TextAreaCopyOptionModifier, value);
7763    return this;
7764  }
7765  enableKeyboardOnFocus(value) {
7766    modifierWithKey(this._modifiersWithKeys, TextAreaEnableKeyboardOnFocusModifier.identity, TextAreaEnableKeyboardOnFocusModifier, value);
7767    return this;
7768  }
7769  maxLength(value) {
7770    modifierWithKey(this._modifiersWithKeys, TextAreaMaxLengthModifier.identity, TextAreaMaxLengthModifier, value);
7771    return this;
7772  }
7773  showCounter(value, options) {
7774    let arkValue = new ArkTextAreaShowCounter();
7775    arkValue.value = value;
7776    arkValue.options = options;
7777    modifierWithKey(this._modifiersWithKeys, TextAreaShowCounterModifier.identity, TextAreaShowCounterModifier, arkValue);
7778    return this;
7779  }
7780  style(value) {
7781    modifierWithKey(this._modifiersWithKeys, TextAreaStyleModifier.identity, TextAreaStyleModifier, value);
7782    return this;
7783  }
7784  barState(value) {
7785    modifierWithKey(this._modifiersWithKeys, TextAreaBarStateModifier.identity, TextAreaBarStateModifier, value);
7786    return this;
7787  }
7788  selectionMenuHidden(value) {
7789    modifierWithKey(this._modifiersWithKeys, TextAreaSelectionMenuHiddenModifier.identity, TextAreaSelectionMenuHiddenModifier, value);
7790    return this;
7791  }
7792  maxLines(value) {
7793    modifierWithKey(this._modifiersWithKeys, TextAreaMaxLinesModifier.identity, TextAreaMaxLinesModifier, value);
7794    return this;
7795  }
7796  customKeyboard(value) {
7797    throw new Error('Method not implemented.');
7798  }
7799}
7800// @ts-ignore
7801globalThis.TextArea.attributeModifier = function (modifier) {
7802  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
7803  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
7804  let component = this.createOrGetNode(elmtId, () => {
7805    return new ArkTextAreaComponent(nativeNode);
7806  });
7807  applyUIAttributes(modifier, nativeNode, component);
7808  component.applyModifierPatch();
7809};
7810
7811/// <reference path='./import.ts' />
7812class TextInputStyleModifier extends ModifierWithKey {
7813  constructor(value) {
7814    super(value);
7815  }
7816  applyPeer(node, reset) {
7817    if (reset) {
7818      getUINativeModule().textInput.resetStyle(node);
7819    }
7820    else {
7821      getUINativeModule().textInput.setStyle(node, this.value);
7822    }
7823  }
7824  checkObjectDiff() {
7825    return !isBaseOrResourceEqual(this.stageValue, this.value);
7826  }
7827}
7828TextInputStyleModifier.identity = Symbol('textInputStyle');
7829class TextInputMaxLengthModifier extends ModifierWithKey {
7830  constructor(value) {
7831    super(value);
7832  }
7833  applyPeer(node, reset) {
7834    if (reset) {
7835      getUINativeModule().textInput.resetMaxLength(node);
7836    }
7837    else {
7838      getUINativeModule().textInput.setMaxLength(node, this.value);
7839    }
7840  }
7841  checkObjectDiff() {
7842    return !isBaseOrResourceEqual(this.stageValue, this.value);
7843  }
7844}
7845TextInputMaxLengthModifier.identity = Symbol('textInputMaxLength');
7846class TextInputMaxLinesModifier extends ModifierWithKey {
7847  constructor(value) {
7848    super(value);
7849  }
7850  applyPeer(node, reset) {
7851    if (reset) {
7852      getUINativeModule().textInput.resetMaxLines(node);
7853    }
7854    else {
7855      getUINativeModule().textInput.setMaxLines(node, this.value);
7856    }
7857  }
7858  checkObjectDiff() {
7859    return !isBaseOrResourceEqual(this.stageValue, this.value);
7860  }
7861}
7862TextInputMaxLinesModifier.identity = Symbol('textInputMaxLines');
7863class TextInputShowPasswordIconModifier extends ModifierWithKey {
7864  constructor(value) {
7865    super(value);
7866  }
7867  applyPeer(node, reset) {
7868    if (reset) {
7869      getUINativeModule().textInput.resetShowPasswordIcon(node);
7870    }
7871    else {
7872      getUINativeModule().textInput.setShowPasswordIcon(node, this.value);
7873    }
7874  }
7875  checkObjectDiff() {
7876    return !isBaseOrResourceEqual(this.stageValue, this.value);
7877  }
7878}
7879TextInputShowPasswordIconModifier.identity = Symbol('textInputShowPasswordIcon');
7880class TextInputTextAlignModifier extends ModifierWithKey {
7881  constructor(value) {
7882    super(value);
7883  }
7884  applyPeer(node, reset) {
7885    if (reset) {
7886      getUINativeModule().textInput.resetTextAlign(node);
7887    }
7888    else {
7889      getUINativeModule().textInput.setTextAlign(node, this.value);
7890    }
7891  }
7892  checkObjectDiff() {
7893    return !isBaseOrResourceEqual(this.stageValue, this.value);
7894  }
7895}
7896TextInputTextAlignModifier.identity = Symbol('textInputTextAlign');
7897class TextInputPlaceholderFontModifier extends ModifierWithKey {
7898  constructor(value) {
7899    super(value);
7900  }
7901  applyPeer(node, reset) {
7902    if (reset) {
7903      getUINativeModule().textInput.resetPlaceholderFont(node);
7904    }
7905    else {
7906      getUINativeModule().textInput.setPlaceholderFont(node, this.value.size, this.value.weight, this.value.family, this.value.style);
7907    }
7908  }
7909  checkObjectDiff() {
7910    if (!(this.stageValue.weight === this.value.weight &&
7911      this.stageValue.style === this.value.style)) {
7912      return true;
7913    }
7914    else {
7915      if (((isResource(this.stageValue.size) && isResource(this.value.size) &&
7916        isResourceEqual(this.stageValue.size, this.value.size)) ||
7917        (!isResource(this.stageValue.size) && !isResource(this.value.size) &&
7918          this.stageValue.size === this.value.size)) &&
7919        ((isResource(this.stageValue.family) && isResource(this.value.family) &&
7920          isResourceEqual(this.stageValue.family, this.value.family)) ||
7921          (!isResource(this.stageValue.family) && !isResource(this.value.family) &&
7922            this.stageValue.family === this.value.family))) {
7923        return false;
7924      }
7925      else {
7926        return true;
7927      }
7928    }
7929  }
7930}
7931TextInputPlaceholderFontModifier.identity = Symbol('textInputPlaceholderFont');
7932class TextInputPlaceholderColorModifier extends ModifierWithKey {
7933  constructor(value) {
7934    super(value);
7935  }
7936  applyPeer(node, reset) {
7937    if (reset) {
7938      getUINativeModule().textInput.resetPlaceholderColor(node);
7939    }
7940    else {
7941      getUINativeModule().textInput.setPlaceholderColor(node, this.value);
7942    }
7943  }
7944  checkObjectDiff() {
7945    return !isBaseOrResourceEqual(this.stageValue, this.value);
7946  }
7947}
7948TextInputPlaceholderColorModifier.identity = Symbol('textInputPlaceholderColor');
7949class TextInputPasswordIconModifier extends ModifierWithKey {
7950  constructor(value) {
7951    super(value);
7952  }
7953  applyPeer(node, reset) {
7954    if (reset) {
7955      getUINativeModule().textInput.resetPasswordIcon(node);
7956    }
7957    else {
7958      getUINativeModule().textInput.setPasswordIcon(node, this.value.onIconSrc, this.value.offIconSrc);
7959    }
7960  }
7961  checkObjectDiff() {
7962    return !isBaseOrResourceEqual(this.stageValue.onIconSrc, this.value.onIconSrc) ||
7963      !isBaseOrResourceEqual(this.stageValue.offIconSrc, this.value.offIconSrc);
7964  }
7965}
7966TextInputPasswordIconModifier.identity = Symbol('textInputPasswordIcon');
7967class TextInputSelectedBackgroundColorModifier extends ModifierWithKey {
7968  constructor(value) {
7969    super(value);
7970  }
7971  applyPeer(node, reset) {
7972    if (reset) {
7973      getUINativeModule().textInput.resetSelectedBackgroundColor(node);
7974    }
7975    else {
7976      getUINativeModule().textInput.setSelectedBackgroundColor(node, this.value);
7977    }
7978  }
7979  checkObjectDiff() {
7980    return !isBaseOrResourceEqual(this.stageValue, this.value);
7981  }
7982}
7983TextInputSelectedBackgroundColorModifier.identity = Symbol('textInputSelectedBackgroundColor');
7984class TextInputSelectionMenuHiddenModifier extends ModifierWithKey {
7985  constructor(value) {
7986    super(value);
7987  }
7988  applyPeer(node, reset) {
7989    if (reset) {
7990      getUINativeModule().textInput.resetSelectionMenuHidden(node);
7991    }
7992    else {
7993      getUINativeModule().textInput.setSelectionMenuHidden(node, this.value);
7994    }
7995  }
7996  checkObjectDiff() {
7997    return !isBaseOrResourceEqual(this.stageValue, this.value);
7998  }
7999}
8000TextInputSelectionMenuHiddenModifier.identity = Symbol('textInputSelectionMenuHidden');
8001class TextInputShowUnderlineModifier extends ModifierWithKey {
8002  constructor(value) {
8003    super(value);
8004  }
8005  applyPeer(node, reset) {
8006    if (reset) {
8007      getUINativeModule().textInput.resetShowUnderline(node);
8008    }
8009    else {
8010      getUINativeModule().textInput.setShowUnderline(node, this.value);
8011    }
8012  }
8013  checkObjectDiff() {
8014    return !isBaseOrResourceEqual(this.stageValue, this.value);
8015  }
8016}
8017TextInputShowUnderlineModifier.identity = Symbol('textInputShowUnderLine');
8018class TextInputShowErrorModifier extends ModifierWithKey {
8019  constructor(value) {
8020    super(value);
8021  }
8022  applyPeer(node, reset) {
8023    if (reset) {
8024      getUINativeModule().textInput.resetShowError(node);
8025    }
8026    else {
8027      getUINativeModule().textInput.setShowError(node, this.value);
8028    }
8029  }
8030  checkObjectDiff() {
8031    return !isBaseOrResourceEqual(this.stageValue, this.value);
8032  }
8033}
8034TextInputShowErrorModifier.identity = Symbol('textInputShowError');
8035class TextInputTypeModifier extends ModifierWithKey {
8036  constructor(value) {
8037    super(value);
8038  }
8039  applyPeer(node, reset) {
8040    if (reset) {
8041      getUINativeModule().textInput.resetType(node);
8042    }
8043    else {
8044      getUINativeModule().textInput.setType(node, this.value);
8045    }
8046  }
8047  checkObjectDiff() {
8048    return !isBaseOrResourceEqual(this.stageValue, this.value);
8049  }
8050}
8051TextInputTypeModifier.identity = Symbol('textInputType');
8052class TextInputCaretPositionModifier extends ModifierWithKey {
8053  constructor(value) {
8054    super(value);
8055  }
8056  applyPeer(node, reset) {
8057    if (reset) {
8058      getUINativeModule().textInput.resetCaretPosition(node);
8059    }
8060    else {
8061      getUINativeModule().textInput.setCaretPosition(node, this.value);
8062    }
8063  }
8064  checkObjectDiff() {
8065    return !isBaseOrResourceEqual(this.stageValue, this.value);
8066  }
8067}
8068TextInputCaretPositionModifier.identity = Symbol('textInputCaretPosition');
8069class TextInputCopyOptionModifier extends ModifierWithKey {
8070  constructor(value) {
8071    super(value);
8072  }
8073  applyPeer(node, reset) {
8074    if (reset) {
8075      getUINativeModule().textInput.resetCopyOption(node);
8076    }
8077    else {
8078      getUINativeModule().textInput.setCopyOption(node, this.value);
8079    }
8080  }
8081  checkObjectDiff() {
8082    return !isBaseOrResourceEqual(this.stageValue, this.value);
8083  }
8084}
8085TextInputCopyOptionModifier.identity = Symbol('textInputCopyOption');
8086class TextInputEnableKeyboardOnFocusModifier extends ModifierWithKey {
8087  constructor(value) {
8088    super(value);
8089  }
8090  applyPeer(node, reset) {
8091    if (reset) {
8092      getUINativeModule().textInput.resetEnableKeyboardOnFocus(node);
8093    }
8094    else {
8095      getUINativeModule().textInput.setEnableKeyboardOnFocus(node, this.value);
8096    }
8097  }
8098  checkObjectDiff() {
8099    return !isBaseOrResourceEqual(this.stageValue, this.value);
8100  }
8101}
8102TextInputEnableKeyboardOnFocusModifier.identity = Symbol('textInputEnableKeyboardOnFocus');
8103class TextInputCaretStyleModifier extends ModifierWithKey {
8104  constructor(value) {
8105    super(value);
8106  }
8107  applyPeer(node, reset) {
8108    if (reset) {
8109      getUINativeModule().textInput.resetCaretStyle(node);
8110    }
8111    else {
8112      getUINativeModule().textInput.setCaretStyle(node, this.value.width);
8113    }
8114  }
8115  checkObjectDiff() {
8116    if (isObject(this.stageValue) && isObject(this.value)) {
8117      return !isBaseOrResourceEqual(this.stageValue.width, this.value.width);
8118    }
8119    else {
8120      return true;
8121    }
8122  }
8123}
8124TextInputCaretStyleModifier.identity = Symbol('textInputCaretStyle');
8125class TextInputEnterKeyTypeModifier extends ModifierWithKey {
8126  constructor(value) {
8127    super(value);
8128  }
8129  applyPeer(node, reset) {
8130    if (reset) {
8131      getUINativeModule().textInput.resetEnterKeyType(node);
8132    }
8133    else {
8134      getUINativeModule().textInput.setEnterKeyType(node, this.value);
8135    }
8136  }
8137  checkObjectDiff() {
8138    return !isBaseOrResourceEqual(this.stageValue, this.value);
8139  }
8140}
8141TextInputEnterKeyTypeModifier.identity = Symbol('textInputEnterKeyType');
8142class TextInputBarStateModifier extends ModifierWithKey {
8143  constructor(value) {
8144    super(value);
8145  }
8146  applyPeer(node, reset) {
8147    if (reset) {
8148      getUINativeModule().textInput.resetBarState(node);
8149    }
8150    else {
8151      getUINativeModule().textInput.setBarState(node, this.value);
8152    }
8153  }
8154  checkObjectDiff() {
8155    return !isBaseOrResourceEqual(this.stageValue, this.value);
8156  }
8157}
8158TextInputBarStateModifier.identity = Symbol('textInputBarState');
8159class TextInputCaretColorModifier extends ModifierWithKey {
8160  constructor(value) {
8161    super(value);
8162  }
8163  applyPeer(node, reset) {
8164    if (reset) {
8165      getUINativeModule().textInput.resetCaretColor(node);
8166    }
8167    else {
8168      getUINativeModule().textInput.setCaretColor(node, this.value);
8169    }
8170  }
8171  checkObjectDiff() {
8172    return !isBaseOrResourceEqual(this.stageValue, this.value);
8173  }
8174}
8175TextInputCaretColorModifier.identity = Symbol('textinputCaretColor');
8176class TextInputFontColorModifier extends ModifierWithKey {
8177  constructor(value) {
8178    super(value);
8179  }
8180  applyPeer(node, reset) {
8181    if (reset) {
8182      getUINativeModule().textInput.resetFontColor(node);
8183    }
8184    else {
8185      getUINativeModule().textInput.setFontColor(node, this.value);
8186    }
8187  }
8188  checkObjectDiff() {
8189    return !isBaseOrResourceEqual(this.stageValue, this.value);
8190  }
8191}
8192TextInputFontColorModifier.identity = Symbol('textInputFontColor');
8193class TextInputFontSizeModifier extends ModifierWithKey {
8194  constructor(value) {
8195    super(value);
8196  }
8197  applyPeer(node, reset) {
8198    if (reset) {
8199      getUINativeModule().textInput.resetFontSize(node);
8200    }
8201    else {
8202      getUINativeModule().textInput.setFontSize(node, this.value);
8203    }
8204  }
8205  checkObjectDiff() {
8206    return !isBaseOrResourceEqual(this.stageValue, this.value);
8207  }
8208}
8209TextInputFontSizeModifier.identity = Symbol('textInputFontSize');
8210class TextInputFontStyleModifier extends ModifierWithKey {
8211  constructor(value) {
8212    super(value);
8213  }
8214  applyPeer(node, reset) {
8215    if (reset) {
8216      getUINativeModule().textInput.resetFontStyle(node);
8217    }
8218    else {
8219      getUINativeModule().textInput.setFontStyle(node, this.value);
8220    }
8221  }
8222  checkObjectDiff() {
8223    return !isBaseOrResourceEqual(this.stageValue, this.value);
8224  }
8225}
8226TextInputFontStyleModifier.identity = Symbol('textInputFontStyle');
8227class TextInputFontWeightModifier extends ModifierWithKey {
8228  constructor(value) {
8229    super(value);
8230  }
8231  applyPeer(node, reset) {
8232    if (reset) {
8233      getUINativeModule().textInput.resetFontWeight(node);
8234    }
8235    else {
8236      getUINativeModule().textInput.setFontWeight(node, this.value);
8237    }
8238  }
8239  checkObjectDiff() {
8240    return !isBaseOrResourceEqual(this.stageValue, this.value);
8241  }
8242}
8243TextInputFontWeightModifier.identity = Symbol('textInputFontWeight');
8244class TextInputFontFamilyModifier extends ModifierWithKey {
8245  constructor(value) {
8246    super(value);
8247  }
8248  applyPeer(node, reset) {
8249    if (reset) {
8250      getUINativeModule().textInput.resetFontFamily(node);
8251    }
8252    else {
8253      getUINativeModule().textInput.setFontFamily(node, this.value);
8254    }
8255  }
8256  checkObjectDiff() {
8257    return !isBaseOrResourceEqual(this.stageValue, this.value);
8258  }
8259}
8260TextInputFontFamilyModifier.identity = Symbol('textInputFontFamily');
8261class ArkTextInputComponent extends ArkComponent {
8262  constructor(nativePtr) {
8263    super(nativePtr);
8264  }
8265  cancelButton(value) {
8266    throw new Error('Method not implemented.');
8267  }
8268  onGestureJudgeBegin(callback) {
8269    throw new Error('Method not implemented.');
8270  }
8271  selectAll(value) {
8272    throw new Error('Method not implemented.');
8273  }
8274  enableAutoFill(value) {
8275    throw new Error('Method not implemented.');
8276  }
8277  passwordRules(value) {
8278    throw new Error('Method not implemented.');
8279  }
8280  showCounter(value) {
8281    throw new Error('Method not implemented.');
8282  }
8283  type(value) {
8284    modifierWithKey(this._modifiersWithKeys, TextInputTypeModifier.identity, TextInputTypeModifier, value);
8285    return this;
8286  }
8287  placeholderColor(value) {
8288    modifierWithKey(this._modifiersWithKeys, TextInputPlaceholderColorModifier.identity, TextInputPlaceholderColorModifier, value);
8289    return this;
8290  }
8291  placeholderFont(value) {
8292    modifierWithKey(this._modifiersWithKeys, TextInputPlaceholderFontModifier.identity, TextInputPlaceholderFontModifier, value);
8293    return this;
8294  }
8295  enterKeyType(value) {
8296    modifierWithKey(this._modifiersWithKeys, TextInputEnterKeyTypeModifier.identity, TextInputEnterKeyTypeModifier, value);
8297    return this;
8298  }
8299  caretColor(value) {
8300    modifierWithKey(this._modifiersWithKeys, TextInputCaretColorModifier.identity, TextInputCaretColorModifier, value);
8301    return this;
8302  }
8303  onEditChanged(callback) {
8304    throw new Error('Method not implemented.');
8305  }
8306  onEditChange(callback) {
8307    throw new Error('Method not implemented.');
8308  }
8309  onSubmit(callback) {
8310    throw new Error('Method not implemented.');
8311  }
8312  onChange(callback) {
8313    throw new Error('Method not implemented.');
8314  }
8315  onTextSelectionChange(callback) {
8316    throw new Error('Method not implemented.');
8317  }
8318  onContentScroll(callback) {
8319    throw new Error('Method not implemented.');
8320  }
8321  maxLength(value) {
8322    modifierWithKey(this._modifiersWithKeys, TextInputMaxLengthModifier.identity, TextInputMaxLengthModifier, value);
8323    return this;
8324  }
8325  fontColor(value) {
8326    modifierWithKey(this._modifiersWithKeys, TextInputFontColorModifier.identity, TextInputFontColorModifier, value);
8327    return this;
8328  }
8329  fontSize(value) {
8330    modifierWithKey(this._modifiersWithKeys, TextInputFontSizeModifier.identity, TextInputFontSizeModifier, value);
8331    return this;
8332  }
8333  fontStyle(value) {
8334    modifierWithKey(this._modifiersWithKeys, TextInputFontStyleModifier.identity, TextInputFontStyleModifier, value);
8335    return this;
8336  }
8337  fontWeight(value) {
8338    modifierWithKey(this._modifiersWithKeys, TextInputFontWeightModifier.identity, TextInputFontWeightModifier, value);
8339    return this;
8340  }
8341  fontFamily(value) {
8342    modifierWithKey(this._modifiersWithKeys, TextInputFontFamilyModifier.identity, TextInputFontFamilyModifier, value);
8343    return this;
8344  }
8345  inputFilter(value, error) {
8346    throw new Error('Method not implemented.');
8347  }
8348  onCopy(callback) {
8349    throw new Error('Method not implemented.');
8350  }
8351  onCut(callback) {
8352    throw new Error('Method not implemented.');
8353  }
8354  onPaste(callback) {
8355    throw new Error('Method not implemented.');
8356  }
8357  copyOption(value) {
8358    modifierWithKey(this._modifiersWithKeys, TextInputCopyOptionModifier.identity, TextInputCopyOptionModifier, value);
8359    return this;
8360  }
8361  showPasswordIcon(value) {
8362    modifierWithKey(this._modifiersWithKeys, TextInputShowPasswordIconModifier.identity, TextInputShowPasswordIconModifier, value);
8363    return this;
8364  }
8365  textAlign(value) {
8366    modifierWithKey(this._modifiersWithKeys, TextInputTextAlignModifier.identity, TextInputTextAlignModifier, value);
8367    return this;
8368  }
8369  style(value) {
8370    modifierWithKey(this._modifiersWithKeys, TextInputStyleModifier.identity, TextInputStyleModifier, value);
8371    return this;
8372  }
8373  caretStyle(value) {
8374    modifierWithKey(this._modifiersWithKeys, TextInputCaretStyleModifier.identity, TextInputCaretStyleModifier, value);
8375    return this;
8376  }
8377  selectedBackgroundColor(value) {
8378    modifierWithKey(this._modifiersWithKeys, TextInputSelectedBackgroundColorModifier.identity, TextInputSelectedBackgroundColorModifier, value);
8379    return this;
8380  }
8381  caretPosition(value) {
8382    modifierWithKey(this._modifiersWithKeys, TextInputCaretPositionModifier.identity, TextInputCaretPositionModifier, value);
8383    return this;
8384  }
8385  enableKeyboardOnFocus(value) {
8386    modifierWithKey(this._modifiersWithKeys, TextInputEnableKeyboardOnFocusModifier.identity, TextInputEnableKeyboardOnFocusModifier, value);
8387    return this;
8388  }
8389  passwordIcon(value) {
8390    modifierWithKey(this._modifiersWithKeys, TextInputPasswordIconModifier.identity, TextInputPasswordIconModifier, value);
8391    return this;
8392  }
8393  showError(value) {
8394    modifierWithKey(this._modifiersWithKeys, TextInputShowErrorModifier.identity, TextInputShowErrorModifier, value);
8395    return this;
8396  }
8397  showUnit(event) {
8398    throw new Error('Method not implemented.');
8399  }
8400  showUnderline(value) {
8401    modifierWithKey(this._modifiersWithKeys, TextInputShowUnderlineModifier.identity, TextInputShowUnderlineModifier, value);
8402    return this;
8403  }
8404  selectionMenuHidden(value) {
8405    modifierWithKey(this._modifiersWithKeys, TextInputSelectionMenuHiddenModifier.identity, TextInputSelectionMenuHiddenModifier, value);
8406    return this;
8407  }
8408  barState(value) {
8409    modifierWithKey(this._modifiersWithKeys, TextInputBarStateModifier.identity, TextInputBarStateModifier, value);
8410    return this;
8411  }
8412  maxLines(value) {
8413    modifierWithKey(this._modifiersWithKeys, TextInputMaxLinesModifier.identity, TextInputMaxLinesModifier, value);
8414    return this;
8415  }
8416  customKeyboard(event) {
8417    throw new Error('Method not implemented.');
8418  }
8419}
8420// @ts-ignore
8421globalThis.TextInput.attributeModifier = function (modifier) {
8422  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
8423  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
8424  let component = this.createOrGetNode(elmtId, () => {
8425    return new ArkTextInputComponent(nativeNode);
8426  });
8427  applyUIAttributes(modifier, nativeNode, component);
8428  component.applyModifierPatch();
8429};
8430
8431/// <reference path='./import.ts' />
8432class VideoObjectFitModifier extends ModifierWithKey {
8433  constructor(value) {
8434    super(value);
8435  }
8436  applyPeer(node, reset) {
8437    if (reset) {
8438      getUINativeModule().video.resetObjectFit(node);
8439    }
8440    else {
8441      getUINativeModule().video.setObjectFit(node, this.value);
8442    }
8443  }
8444  checkObjectDiff() {
8445    return !isBaseOrResourceEqual(this.stageValue, this.value);
8446  }
8447}
8448VideoObjectFitModifier.identity = Symbol('videoObjectFit');
8449class VideoAutoPlayModifier extends ModifierWithKey {
8450  constructor(value) {
8451    super(value);
8452  }
8453  applyPeer(node, reset) {
8454    if (reset) {
8455      getUINativeModule().video.resetAutoPlay(node);
8456    }
8457    else {
8458      getUINativeModule().video.setAutoPlay(node, this.value);
8459    }
8460  }
8461  checkObjectDiff() {
8462    return !isBaseOrResourceEqual(this.stageValue, this.value);
8463  }
8464}
8465VideoAutoPlayModifier.identity = Symbol('videoAutoPlayr');
8466class VideoControlsModifier extends ModifierWithKey {
8467  constructor(value) {
8468    super(value);
8469  }
8470  applyPeer(node, reset) {
8471    if (reset) {
8472      getUINativeModule().video.resetControls(node);
8473    }
8474    else {
8475      getUINativeModule().video.setControls(node, this.value);
8476    }
8477  }
8478  checkObjectDiff() {
8479    return !isBaseOrResourceEqual(this.stageValue, this.value);
8480  }
8481}
8482VideoControlsModifier.identity = Symbol('videoControls');
8483class VideoLoopModifier extends ModifierWithKey {
8484  constructor(value) {
8485    super(value);
8486  }
8487  applyPeer(node, reset) {
8488    if (reset) {
8489      getUINativeModule().video.resetLoop(node);
8490    }
8491    else {
8492      getUINativeModule().video.setLoop(node, this.value);
8493    }
8494  }
8495  checkObjectDiff() {
8496    return !isBaseOrResourceEqual(this.stageValue, this.value);
8497  }
8498}
8499VideoLoopModifier.identity = Symbol('videoLoop');
8500class VideoMutedModifier extends ModifierWithKey {
8501  constructor(value) {
8502    super(value);
8503  }
8504  applyPeer(node, reset) {
8505    if (reset) {
8506      getUINativeModule().video.resetMuted(node);
8507    }
8508    else {
8509      getUINativeModule().video.setMuted(node, this.value);
8510    }
8511  }
8512  checkObjectDiff() {
8513    return !isBaseOrResourceEqual(this.stageValue, this.value);
8514  }
8515}
8516VideoMutedModifier.identity = Symbol('videoMuted');
8517class VideoOpacityModifier extends ModifierWithKey {
8518  constructor(value) {
8519    super(value);
8520  }
8521  applyPeer(node, reset) {
8522    if (reset) {
8523      getUINativeModule().video.resetOpacity(node);
8524    }
8525    else {
8526      getUINativeModule().video.setOpacity(node, this.value);
8527    }
8528  }
8529  checkObjectDiff() {
8530    return !isBaseOrResourceEqual(this.stageValue, this.value);
8531  }
8532}
8533VideoOpacityModifier.identity = Symbol('videoOpacity');
8534class VideoTransitionModifier extends ModifierWithKey {
8535  constructor(value) {
8536    super(value);
8537  }
8538  applyPeer(node, reset) {
8539    if (reset) {
8540      getUINativeModule().video.resetTransition(node);
8541    }
8542    else {
8543      getUINativeModule().video.setTransition(node, this.value);
8544    }
8545  }
8546  checkObjectDiff() {
8547    return true;
8548  }
8549}
8550VideoTransitionModifier.identity = Symbol('videoTransition');
8551class ArkVideoComponent extends ArkComponent {
8552  constructor(nativePtr) {
8553    super(nativePtr);
8554  }
8555  muted(value) {
8556    modifierWithKey(this._modifiersWithKeys, VideoMutedModifier.identity, VideoMutedModifier, value);
8557    return this;
8558  }
8559  autoPlay(value) {
8560    modifierWithKey(this._modifiersWithKeys, VideoAutoPlayModifier.identity, VideoAutoPlayModifier, value);
8561    return this;
8562  }
8563  controls(value) {
8564    modifierWithKey(this._modifiersWithKeys, VideoControlsModifier.identity, VideoControlsModifier, value);
8565    return this;
8566  }
8567  loop(value) {
8568    modifierWithKey(this._modifiersWithKeys, VideoLoopModifier.identity, VideoLoopModifier, value);
8569    return this;
8570  }
8571  objectFit(value) {
8572    modifierWithKey(this._modifiersWithKeys, VideoObjectFitModifier.identity, VideoObjectFitModifier, value);
8573    return this;
8574  }
8575  opacity(value) {
8576    modifierWithKey(this._modifiersWithKeys, VideoOpacityModifier.identity, VideoOpacityModifier, value);
8577    return this;
8578  }
8579  transition(value) {
8580    modifierWithKey(this._modifiersWithKeys, VideoTransitionModifier.identity, VideoTransitionModifier, value);
8581    return this;
8582  }
8583  onStart(callback) {
8584    throw new Error('Method not implemented.');
8585  }
8586  onPause(callback) {
8587    throw new Error('Method not implemented.');
8588  }
8589  onFinish(event) {
8590    throw new Error('Method not implemented.');
8591  }
8592  onFullscreenChange(callback) {
8593    throw new Error('Method not implemented.');
8594  }
8595  onPrepared(callback) {
8596    throw new Error('Method not implemented.');
8597  }
8598  onSeeking(callback) {
8599    throw new Error('Method not implemented.');
8600  }
8601  onSeeked(callback) {
8602    throw new Error('Method not implemented.');
8603  }
8604  onUpdate(callback) {
8605    throw new Error('Method not implemented.');
8606  }
8607  onError(callback) {
8608    throw new Error('Method not implemented.');
8609  }
8610}
8611// @ts-ignore
8612globalThis.Video.attributeModifier = function (modifier) {
8613  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
8614  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
8615  let component = this.createOrGetNode(elmtId, () => {
8616    return new ArkVideoComponent(nativeNode);
8617  });
8618  applyUIAttributes(modifier, nativeNode, component);
8619  component.applyModifierPatch();
8620};
8621
8622/// <reference path='./import.ts' />
8623class ArkBorderStyle {
8624  constructor() {
8625    this.type = undefined;
8626    this.style = undefined;
8627    this.top = undefined;
8628    this.right = undefined;
8629    this.bottom = undefined;
8630    this.left = undefined;
8631  }
8632  isEqual(another) {
8633    return (this.type === another.type &&
8634      this.style === another.style &&
8635      this.top === another.top &&
8636      this.right === another.right &&
8637      this.bottom === another.bottom &&
8638      this.left === another.left);
8639  }
8640  parseBorderStyle(value) {
8641    if (typeof value === 'number') {
8642      this.style = value;
8643      this.type = true;
8644      return true;
8645    }
8646    else if (typeof value === 'object') {
8647      return this.parseEdgeStyles(value);
8648    }
8649    return false;
8650  }
8651  parseEdgeStyles(options) {
8652    this.top = options.top;
8653    this.right = options.right;
8654    this.bottom = options.bottom;
8655    this.left = options.left;
8656    this.type = true;
8657    return true;
8658  }
8659}
8660class ArkBorderColor {
8661  constructor() {
8662    this.leftColor = undefined;
8663    this.rightColor = undefined;
8664    this.topColor = undefined;
8665    this.bottomColor = undefined;
8666  }
8667  isEqual(another) {
8668    return (this.leftColor === another.leftColor &&
8669      this.rightColor === another.rightColor &&
8670      this.topColor === another.topColor &&
8671      this.bottomColor === another.bottomColor);
8672  }
8673}
8674class ArkPosition {
8675  constructor() {
8676    this.x = undefined;
8677    this.y = undefined;
8678  }
8679  isEqual(another) {
8680    return this.x === another.x && this.y === another.y;
8681  }
8682}
8683class ArkBorderWidth {
8684  constructor() {
8685    this.left = undefined;
8686    this.right = undefined;
8687    this.top = undefined;
8688    this.bottom = undefined;
8689  }
8690  isEqual(another) {
8691    return (this.left === another.left &&
8692      this.right === another.right &&
8693      this.top === another.top &&
8694      this.bottom === another.bottom);
8695  }
8696}
8697class ArkBorderRadius {
8698  constructor() {
8699    this.topLeft = undefined;
8700    this.topRight = undefined;
8701    this.bottomLeft = undefined;
8702    this.bottomRight = undefined;
8703  }
8704  isEqual(another) {
8705    return (this.topLeft === another.topLeft &&
8706      this.topRight === another.topRight &&
8707      this.bottomLeft === another.bottomLeft &&
8708      this.bottomRight === another.bottomRight);
8709  }
8710}
8711class ArkLabelFont {
8712  constructor() {
8713    this.size = undefined;
8714    this.weight = undefined;
8715    this.family = undefined;
8716    this.style = undefined;
8717  }
8718  isEqual(another) {
8719    return (this.size === another.size &&
8720      this.weight === another.weight &&
8721      this.family === another.family &&
8722      this.style === another.style);
8723  }
8724}
8725function deepCompareArrays(arr1, arr2) {
8726  return (Array.isArray(arr1) &&
8727    Array.isArray(arr2) &&
8728    arr1.length === arr2.length &&
8729    arr1.every((value, index) => {
8730      if (Array.isArray(value) && Array.isArray(arr2[index])) {
8731        return deepCompareArrays(value, arr2[index]);
8732      }
8733      else {
8734        return value === arr2[index];
8735      }
8736    }));
8737}
8738class ArkLinearGradient {
8739  constructor(angle, direction, colors, repeating) {
8740    this.angle = angle;
8741    this.direction = direction;
8742    this.colors = colors;
8743    this.repeating = repeating;
8744  }
8745  isEqual(another) {
8746    return (this.angle === another.angle &&
8747      this.direction === another.direction &&
8748      deepCompareArrays(this.colors, another.colors) &&
8749      this.repeating === another.repeating);
8750  }
8751}
8752class ArkSweepGradient {
8753  constructor(center, start, end, rotation, colors, repeating) {
8754    this.center = center;
8755    this.start = start;
8756    this.end = end;
8757    this.rotation = rotation;
8758    this.colors = colors;
8759    this.repeating = repeating;
8760  }
8761  isEqual(another) {
8762    return (deepCompareArrays(this.center, another.center) &&
8763      this.start === another.start &&
8764      this.end === another.end &&
8765      this.rotation === another.rotation &&
8766      deepCompareArrays(this.colors, another.colors) &&
8767      this.repeating === another.repeating);
8768  }
8769}
8770class ArkForegroundBlurStyle {
8771  constructor() {
8772    this.blurStyle = undefined;
8773    this.colorMode = undefined;
8774    this.adaptiveColor = undefined;
8775    this.scale = undefined;
8776  }
8777  isEqual(another) {
8778    return (this.blurStyle === another.blurStyle &&
8779      this.colorMode === another.colorMode &&
8780      this.adaptiveColor === another.adaptiveColor &&
8781      this.scale === another.scale);
8782  }
8783}
8784class ArkLinearGradientBlur {
8785  constructor() {
8786    this.blurRadius = undefined;
8787    this.fractionStops = undefined;
8788    this.direction = undefined;
8789  }
8790  isEqual(another) {
8791    return (this.blurRadius === another.blurRadius &&
8792      deepCompareArrays(this.fractionStops, another.fractionStops) &&
8793      this.direction === another.direction);
8794  }
8795}
8796class ArkOverlay {
8797  constructor() {
8798    this.value = undefined;
8799    this.align = undefined;
8800    this.offsetX = undefined;
8801    this.offsetY = undefined;
8802    this.hasOptions = undefined;
8803    this.hasOffset = undefined;
8804  }
8805  splitOption(options) {
8806    if (isUndefined(options)) {
8807      return true;
8808    }
8809    this.hasOptions = true;
8810    this.align = options.align;
8811    if (isUndefined(options.offset)) {
8812      return true;
8813    }
8814    this.hasOffset = true;
8815    this.offsetX = options.offset.x;
8816    this.offsetY = options.offset.y;
8817    return true;
8818  }
8819  splitOverlayValue(value, options) {
8820    if (typeof value === 'string') {
8821      this.value = value;
8822      return this.splitOption(options);
8823    }
8824    return false;
8825  }
8826  isEqual(another) {
8827    return ((this.value === another.value) && (this.align === another.align) &&
8828      (this.offsetX === another.offsetX) && (this.offsetY === another.offsetY) &&
8829      (this.hasOptions === another.hasOptions) && (this.hasOffset === another.hasOffset));
8830  }
8831  checkObjectDiff(another) {
8832    return !this.isEqual(another);
8833  }
8834}
8835class ArkSharedTransition {
8836  constructor() {
8837    this.id = undefined;
8838    this.options = undefined;
8839  }
8840  isEqual(another) {
8841    return (this.id === another.id) && (this.options === another.options);
8842  }
8843}
8844class ArkListEdgeEffect {
8845  constructor() {
8846    this.value = undefined;
8847    this.options = undefined;
8848  }
8849  isEqual(another) {
8850    return (this.value === another.value) &&
8851      (this.options === another.options);
8852  }
8853}
8854class ArkScrollEdgeEffect {
8855  constructor() {
8856    this.value = undefined;
8857    this.options = undefined;
8858  }
8859  isEqual(another) {
8860    return (this.value === another.value) &&
8861      (this.options === another.options);
8862  }
8863}
8864class ArkMenuAlignType {
8865  constructor(alignType, offset) {
8866    this.alignType = alignType;
8867    if (!isUndefined(offset) && isObject(offset)) {
8868      this.dx = offset.dx;
8869      this.dy = offset.dy;
8870    }
8871  }
8872  isEqual(another) {
8873    return this.alignType === another.alignType && this.dx === another.dx && this.dy === another.dy;
8874  }
8875}
8876class ArkSliderTips {
8877  constructor(value, content) {
8878    this.showTip = value;
8879    this.tipText = content;
8880  }
8881  isEqual(another) {
8882    return this.showTip === another.showTip && this.tipText === another.tipText;
8883  }
8884}
8885class ArkStarStyle {
8886  constructor() {
8887    this.backgroundUri = undefined;
8888    this.foregroundUri = undefined;
8889    this.secondaryUri = undefined;
8890  }
8891  isEqual(another) {
8892    return (this.backgroundUri === another.backgroundUri &&
8893      this.foregroundUri === another.foregroundUri &&
8894      this.secondaryUri === another.secondaryUri);
8895  }
8896}
8897class ArkBackgroundBlurStyle {
8898  constructor() {
8899    this.blurStyle = undefined;
8900    this.colorMode = undefined;
8901    this.adaptiveColor = undefined;
8902    this.scale = undefined;
8903  }
8904  isEqual(another) {
8905    return (this.blurStyle === another.blurStyle &&
8906      this.colorMode === another.colorMode &&
8907      this.adaptiveColor === another.adaptiveColor &&
8908      this.scale === another.scale);
8909  }
8910}
8911class ArkBorder {
8912  constructor() {
8913    this.arkWidth = new ArkBorderWidth();
8914    this.arkColor = new ArkBorderColor();
8915    this.arkRadius = new ArkBorderRadius();
8916    this.arkStyle = new ArkBorderStyle();
8917  }
8918  isEqual(another) {
8919    return (this.arkWidth.isEqual(another.arkWidth) &&
8920      this.arkColor.isEqual(another.arkColor) &&
8921      this.arkRadius.isEqual(another.arkRadius) &&
8922      this.arkStyle.isEqual(another.arkStyle));
8923  }
8924  checkObjectDiff(another) {
8925    return !this.isEqual(another);
8926  }
8927}
8928class ArkBackgroundImageSize {
8929  constructor() {
8930    this.imageSize = undefined;
8931    this.width = undefined;
8932    this.height = undefined;
8933  }
8934  isEqual(another) {
8935    return this.imageSize === another.imageSize && this.width === another.width && this.height === another.height;
8936  }
8937}
8938class ArkBackgroundImage {
8939  constructor() {
8940    this.src = undefined;
8941    this.repeat = undefined;
8942  }
8943  isEqual(another) {
8944    return this.src === another.src && this.repeat === another.repeat;
8945  }
8946}
8947class ArkGridColColumnOption {
8948  constructor() {
8949    this.xs = undefined;
8950    this.sm = undefined;
8951    this.md = undefined;
8952    this.lg = undefined;
8953    this.xl = undefined;
8954    this.xxl = undefined;
8955  }
8956  isEqual(another) {
8957    return (this.xs === another.xs &&
8958      this.sm === another.sm &&
8959      this.md === another.md &&
8960      this.lg === another.lg &&
8961      this.xl === another.xl &&
8962      this.xxl === another.xxl);
8963  }
8964}
8965class ArkPadding {
8966  constructor() {
8967    this.top = undefined;
8968    this.right = undefined;
8969    this.bottom = undefined;
8970    this.left = undefined;
8971  }
8972  isEqual(another) {
8973    return (this.top === another.top &&
8974      this.right === another.right &&
8975      this.bottom === another.bottom &&
8976      this.left === another.left);
8977  }
8978}
8979class ArkBarMode {
8980  isEqual(another) {
8981    return (this.barMode === another.barMode) && (this.options === another.options);
8982  }
8983}
8984class ArkDivider {
8985  isEqual(another) {
8986    return (this.divider === another.divider);
8987  }
8988}
8989class ArkBarGridAlign {
8990  isEqual(another) {
8991    return (this.barGridAlign === another.barGridAlign);
8992  }
8993}
8994class ArkScrollableBarModeOptions {
8995  isEqual(another) {
8996    return (this.value === another.value);
8997  }
8998}
8999class ArkAlignRules {
9000  constructor() {
9001    this.left = undefined;
9002    this.middle = undefined;
9003    this.right = undefined;
9004    this.top = undefined;
9005    this.center = undefined;
9006    this.bottom = undefined;
9007  }
9008  isEqual(another) {
9009    return (this.left === another.left &&
9010      this.middle === another.middle &&
9011      this.right === another.right &&
9012      this.top === another.top &&
9013      this.center === another.center &&
9014      this.bottom === another.bottom);
9015  }
9016}
9017class ArkSafeAreaExpandOpts {
9018  constructor() {
9019    this.type = undefined;
9020    this.edges = undefined;
9021  }
9022  isEqual(another) {
9023    return (this.type === another.type) && (this.edges === another.edges);
9024  }
9025}
9026class ArkButtonStyle {
9027  constructor() {
9028    this.left = 16;
9029    this.top = 48;
9030    this.width = 24;
9031    this.height = 24;
9032    this.icons = {
9033      shown: undefined,
9034      hidden: undefined,
9035      switching: undefined
9036    };
9037  }
9038  isEqual(another) {
9039    return (this.left === another.left &&
9040      this.top === another.top &&
9041      this.width === another.width &&
9042      this.height === another.height &&
9043      this.icons === another.icons);
9044  }
9045}
9046class ArkShadowInfoToArray {
9047  constructor() {
9048    this.radius = [];
9049    this.type = [];
9050    this.color = [];
9051    this.offsetX = [];
9052    this.offsetX = [];
9053    this.offsetY = [];
9054    this.fill = [];
9055  }
9056  isEqual(another) {
9057    return (this.radius === another.radius) &&
9058      (this.color === another.color) &&
9059      (this.offsetX === another.offsetX) &&
9060      (this.offsetY === another.offsetY) &&
9061      (this.fill === another.fill);
9062  }
9063  convertShadowOptions(value) {
9064    if (Object.getPrototypeOf(value).constructor === Object) {
9065      if (value.radius === null || value.radius === undefined) {
9066        return false;
9067      }
9068      else {
9069        this.radius.push(value.radius);
9070        this.type.push(value.type);
9071        this.color.push(value.color);
9072        this.offsetX.push((value.offsetX === undefined ||
9073          value.offsetX === null) ? 0 : value.offsetX);
9074        this.offsetY.push((value.offsetY === undefined ||
9075          value.offsetY === null) ? 0 : value.offsetY);
9076        this.fill.push((value.fill === undefined ||
9077          value.fill === null) ? false : value.fill);
9078        return true;
9079      }
9080    }
9081    else if (Object.getPrototypeOf(value).constructor === Array) {
9082      let isFlag = true;
9083      for (let item of value) {
9084        if (item.radius === undefined || item.radius === null) {
9085          isFlag = false;
9086          break;
9087        }
9088      }
9089      if (isFlag) {
9090        for (let objValue of value) {
9091          this.radius.push(objValue.radius);
9092          this.type.push(objValue.type);
9093          this.color.push(objValue.color);
9094          this.offsetX.push((objValue.offsetX === undefined || objValue.offsetX === null) ? 0 : objValue.offsetX);
9095          this.offsetY.push((objValue.offsetY === undefined || objValue.offsetY === null) ? 0 : objValue.offsetY);
9096          this.fill.push((objValue.fill === undefined || objValue.fill === null) ? false : objValue.fill);
9097        }
9098        return true;
9099      }
9100      else {
9101        return false;
9102      }
9103    }
9104  }
9105  checkDiff(value, stageValue) {
9106    if (!value || !stageValue || !value.radius || !stageValue.radius) {
9107      return true;
9108    }
9109    if (!((isResource(stageValue.radius) && isResource(value.radius) &&
9110      isResourceEqual(stageValue.radius, value.radius)) ||
9111      (isNumber(stageValue.radius) && isNumber(value.radius) &&
9112        stageValue.radius === value.radius))) {
9113      return true;
9114    }
9115    if (!(isNumber(stageValue.type) && isNumber(value.type) &&
9116      stageValue.type === value.type)) {
9117      return true;
9118    }
9119    if (!((isResource(stageValue.color) && isResource(value.color) &&
9120      isResourceEqual(stageValue.color, value.color)) ||
9121      (!isResource(stageValue.color) && !isResource(value.color) &&
9122        stageValue.color === value.color))) {
9123      return true;
9124    }
9125    if (!((isResource(stageValue.offsetX) && isResource(value.offsetX) &&
9126      isResourceEqual(stageValue.offsetX, value.offsetX)) ||
9127      (isNumber(stageValue.offsetX) && isNumber(value.offsetX) &&
9128        stageValue.offsetX === value.offsetX))) {
9129      return true;
9130    }
9131    if (!((isResource(stageValue.offsetY) && isResource(value.offsetY) &&
9132      isResourceEqual(stageValue.offsetY, value.offsetY)) ||
9133      (isNumber(stageValue.offsetY) && isNumber(value.offsetY) &&
9134        stageValue.offsetY === value.offsetY))) {
9135      return true;
9136    }
9137    if (!(isBoolean(stageValue.fill) && isBoolean(value.fill) &&
9138      stageValue.fill === value.fill)) {
9139      return true;
9140    }
9141    return false;
9142  }
9143}
9144class ArkSearchButton {
9145  constructor() {
9146    this.value = undefined;
9147    this.fontSize = undefined;
9148    this.fontColor = undefined;
9149  }
9150  isEqual(another) {
9151    return (this.value === another.value) &&
9152      (this.fontSize === another.fontSize) &&
9153      (this.fontColor === another.fontColor);
9154  }
9155}
9156class ArkImageFrameInfoToArray {
9157  constructor() {
9158    this.arrSrc = [];
9159    this.arrWidth = [];
9160    this.arrHeight = [];
9161    this.arrTop = [];
9162    this.arrLeft = [];
9163    this.arrDuration = [];
9164  }
9165  isEqual(another) {
9166    return (this.arrSrc.toString() === another.arrSrc.toString()) &&
9167      (this.arrWidth.toString() === another.arrWidth.toString()) &&
9168      (this.arrHeight.toString() === another.arrHeight.toString()) &&
9169      (this.arrTop.toString() === another.arrTop.toString()) &&
9170      (this.arrLeft.toString() === another.arrLeft.toString()) &&
9171      (this.arrDuration.toString() === another.arrDuration.toString());
9172  }
9173}
9174class ArkEdgeAlign {
9175  constructor() {
9176    this.alignType = undefined;
9177    this.offset = undefined;
9178  }
9179  isEqual(another) {
9180    return (this.alignType === another.alignType && this.offset === another.offset);
9181  }
9182}
9183class ArkKeyBoardShortCut {
9184  constructor() {
9185    this.value = undefined;
9186    this.keys = undefined;
9187    this.action = undefined;
9188  }
9189  isEqual(another) {
9190    return (this.value === another.value) && (this.keys === another.keys) &&
9191      (this.action === another.action);
9192  }
9193}
9194class ArkBlendMode {
9195  constructor() {
9196    this.blendMode = undefined;
9197    this.blendApplyType = undefined;
9198  }
9199  isEqual(another) {
9200    return (this.blendMode === another.blendMode) && (this.blendApplyType === another.blendApplyType);
9201  }
9202}
9203class ArkAlignStyle {
9204  constructor() {
9205    this.indexerAlign = undefined;
9206    this.offset = undefined;
9207  }
9208  isEqual(another) {
9209    return (this.indexerAlign === another.indexerAlign && this.offset === another.offset);
9210  }
9211}
9212class ArkNestedScrollOptions {
9213  constructor() {
9214    this.scrollForward = undefined;
9215    this.scrollBackward = undefined;
9216  }
9217  isEqual(another) {
9218    return ((this.scrollForward === another.scrollForward) && (this.scrollBackward === another.scrollBackward));
9219  }
9220}
9221class ArkConstraintSizeOptions {
9222  constructor() {
9223    this.minWidth = undefined;
9224    this.maxWidth = undefined;
9225    this.minHeight = undefined;
9226    this.maxHeight = undefined;
9227  }
9228  isEqual(another) {
9229    return (this.minWidth === another.minWidth &&
9230      this.maxWidth === another.maxWidth &&
9231      this.minHeight === another.minHeight &&
9232      this.maxHeight === another.maxHeight);
9233  }
9234}
9235class ArkTextAreaShowCounter {
9236  constructor() {
9237    this.value = undefined;
9238    this.options = undefined;
9239  }
9240  isEqual(another) {
9241    return (this.value === another.value) &&
9242      (this.options === another.options);
9243  }
9244}
9245class ArkDotIndicator extends DotIndicator {
9246  constructor() {
9247    super();
9248    this.type = undefined;
9249    this.leftValue = undefined;
9250    this.topValue = undefined;
9251    this.rightValue = undefined;
9252    this.bottomValue = undefined;
9253    this.itemWidthValue = undefined;
9254    this.itemHeightValue = undefined;
9255    this.selectedItemWidthValue = undefined;
9256    this.selectedItemHeightValue = undefined;
9257    this.maskValue = undefined;
9258    this.colorValue = undefined;
9259    this.selectedColorValue = undefined;
9260  }
9261  isEqual(another) {
9262    return (this.type === another.type &&
9263      this.leftValue === another.leftValue &&
9264      this.topValue === another.topValue &&
9265      this.rightValue === another.rightValue &&
9266      this.bottomValue === another.bottomValue &&
9267      this.itemWidthValue === another.itemWidthValue &&
9268      this.itemHeightValue === another.itemHeightValue &&
9269      this.selectedItemWidthValue === another.selectedItemWidthValue &&
9270      this.selectedItemHeightValue === another.selectedItemHeightValue &&
9271      this.maskValue === another.maskValue &&
9272      this.colorValue === another.colorValue &&
9273      this.selectedColorValue === another.selectedColorValue);
9274  }
9275}
9276class ArkDigitIndicator extends DigitIndicator {
9277  constructor() {
9278    super();
9279    this.type = undefined;
9280    this.leftValue = undefined;
9281    this.topValue = undefined;
9282    this.rightValue = undefined;
9283    this.bottomValue = undefined;
9284    this.fontColorValue = undefined;
9285    this.selectedFontColorValue = undefined;
9286    this.digitFontValue = undefined;
9287    this.selectedDigitFontValue = undefined;
9288  }
9289  isEqual(another) {
9290    return (this.type === another.type &&
9291      this.leftValue === another.leftValue &&
9292      this.topValue === another.topValue &&
9293      this.rightValue === another.rightValue &&
9294      this.bottomValue === another.bottomValue &&
9295      this.digitFontValue === another.digitFontValue &&
9296      this.selectedDigitFontValue === another.selectedDigitFontValue);
9297  }
9298}
9299class ArkDigitFont {
9300  constructor() {
9301    this.size = undefined;
9302    this.weight = undefined;
9303  }
9304  isEqual(another) {
9305    return this.size === another.size && this.weight === another.weight;
9306  }
9307  parseFontWeight(value) {
9308    const valueWeightMap = {
9309      [0]: 'lighter',
9310      [1]: 'normal',
9311      [2]: 'regular',
9312      [3]: 'medium',
9313      [4]: 'bold',
9314      [5]: 'bolder'
9315    };
9316    if (isUndefined(value)) {
9317      this.weight = '-';
9318    }
9319    else if (value in valueWeightMap) {
9320      this.weight = valueWeightMap[value];
9321    }
9322    else {
9323      this.weight = value.toString();
9324    }
9325    return this.weight;
9326  }
9327}
9328class ArkDisplayArrow {
9329  constructor() {
9330    this.value = undefined;
9331    this.isHoverShow = undefined;
9332  }
9333  isEqual(another) {
9334    return this.value === another.value && this.isHoverShow === another.isHoverShow;
9335  }
9336}
9337class ArkGridEdgeEffect {
9338  constructor() {
9339    this.value = undefined;
9340    this.options = undefined;
9341  }
9342  isEqual(another) {
9343    return (this.value === another.value) &&
9344      (this.options === another.options);
9345  }
9346}
9347class ArkMesh {
9348  constructor() {
9349    this.value = undefined;
9350    this.column = undefined;
9351    this.row = undefined;
9352  }
9353  isEqual(another) {
9354    return (deepCompareArrays(this.value, another.value) &&
9355      this.column === another.column &&
9356      this.row === another.row);
9357  }
9358}
9359class ArkLanesOpt {
9360  constructor() {
9361    this.lanesNum = undefined;
9362    this.minLength = undefined;
9363    this.maxLength = undefined;
9364    this.gutter = undefined;
9365  }
9366  isEqual(another) {
9367    return (this.lanesNum === another.lanesNum && this.minLength === another.minLength
9368      && this.maxLength === another.maxLength && this.gutter === another.gutter);
9369  }
9370}
9371class ArkScrollSnapOptions {
9372  constructor() {
9373    this.snapAlign = undefined;
9374    this.snapPagination = undefined;
9375    this.enableSnapToStart = undefined;
9376    this.enableSnapToEnd = undefined;
9377  }
9378  isEqual(another) {
9379    return ((this.snapAlign === another.snapAlign)
9380      && (this.snapPagination === another.snapPagination)
9381      && (this.enableSnapToStart === another.enableSnapToStart)
9382      && (this.enableSnapToEnd === another.enableSnapToEnd));
9383  }
9384}
9385
9386/// <reference path='./import.ts' />
9387/// <reference path='./ArkComponent.ts' />
9388const FontWeightMap = {
9389  0: 'lighter',
9390  1: 'normal',
9391  2: 'regular',
9392  3: 'medium',
9393  4: 'bold',
9394  5: 'bolder',
9395  100: '100',
9396  200: '200',
9397  300: '300',
9398  400: '400',
9399  500: '500',
9400  600: '600',
9401  700: '700',
9402  800: '800',
9403  900: '900',
9404};
9405class ArkButtonComponent extends ArkComponent {
9406  constructor(nativePtr) {
9407    super(nativePtr);
9408  }
9409  onGestureJudgeBegin(callback) {
9410    throw new Error('Method not implemented.');
9411  }
9412  backgroundColor(value) {
9413    modifierWithKey(this._modifiersWithKeys, ButtonBackgroundColorModifier.identity, ButtonBackgroundColorModifier, value);
9414    return this;
9415  }
9416  type(value) {
9417    modifierWithKey(this._modifiersWithKeys, ButtonTypeModifier.identity, ButtonTypeModifier, value);
9418    return this;
9419  }
9420  stateEffect(value) {
9421    modifierWithKey(this._modifiersWithKeys, ButtonStateEffectModifier.identity, ButtonStateEffectModifier, value);
9422    return this;
9423  }
9424  fontColor(value) {
9425    modifierWithKey(this._modifiersWithKeys, ButtonFontColorModifier.identity, ButtonFontColorModifier, value);
9426    return this;
9427  }
9428  fontSize(value) {
9429    modifierWithKey(this._modifiersWithKeys, ButtonFontSizeModifier.identity, ButtonFontSizeModifier, value);
9430    return this;
9431  }
9432  fontWeight(value) {
9433    modifierWithKey(this._modifiersWithKeys, ButtonFontWeightModifier.identity, ButtonFontWeightModifier, value);
9434    return this;
9435  }
9436  fontStyle(value) {
9437    modifierWithKey(this._modifiersWithKeys, ButtonFontStyleModifier.identity, ButtonFontStyleModifier, value);
9438    return this;
9439  }
9440  fontFamily(value) {
9441    modifierWithKey(this._modifiersWithKeys, ButtonFontFamilyModifier.identity, ButtonFontFamilyModifier, value);
9442    return this;
9443  }
9444  labelStyle(value) {
9445    modifierWithKey(this._modifiersWithKeys, ButtonLabelStyleModifier.identity, ButtonLabelStyleModifier, value);
9446    return this;
9447  }
9448  borderRadius(value) {
9449    modifierWithKey(this._modifiersWithKeys, ButtonBorderRadiusModifier.identity, ButtonBorderRadiusModifier, value);
9450    return this;
9451  }
9452  border(value) {
9453    modifierWithKey(this._modifiersWithKeys, ButtonBorderModifier.identity, ButtonBorderModifier, value);
9454    return this;
9455  }
9456  size(value) {
9457    modifierWithKey(this._modifiersWithKeys, ButtonSizeModifier.identity, ButtonSizeModifier, value);
9458    return this;
9459  }
9460}
9461class ButtonBackgroundColorModifier extends ModifierWithKey {
9462  constructor(value) {
9463    super(value);
9464  }
9465  applyPeer(node, reset) {
9466    if (reset) {
9467      getUINativeModule().button.resetBackgroundColor(node);
9468    }
9469    else {
9470      getUINativeModule().button.setBackgroundColor(node, this.value);
9471    }
9472  }
9473  checkObjectDiff() {
9474    return !isBaseOrResourceEqual(this.stageValue, this.value);
9475  }
9476}
9477ButtonBackgroundColorModifier.identity = Symbol('buttonBackgroundColor');
9478class ButtonStateEffectModifier extends ModifierWithKey {
9479  constructor(value) {
9480    super(value);
9481  }
9482  applyPeer(node, reset) {
9483    if (reset) {
9484      getUINativeModule().button.resetStateEffect(node);
9485    }
9486    else {
9487      getUINativeModule().button.setStateEffect(node, this.value);
9488    }
9489  }
9490}
9491ButtonStateEffectModifier.identity = Symbol('buttonStateEffect');
9492class ButtonFontStyleModifier extends ModifierWithKey {
9493  constructor(value) {
9494    super(value);
9495  }
9496  applyPeer(node, reset) {
9497    if (reset) {
9498      getUINativeModule().button.resetFontStyle(node);
9499    }
9500    else {
9501      getUINativeModule().button.setFontStyle(node, this.value);
9502    }
9503  }
9504}
9505ButtonFontStyleModifier.identity = Symbol('buttonFontStyle');
9506class ButtonFontFamilyModifier extends ModifierWithKey {
9507  constructor(value) {
9508    super(value);
9509  }
9510  applyPeer(node, reset) {
9511    if (reset) {
9512      getUINativeModule().button.resetFontFamily(node);
9513    }
9514    else {
9515      getUINativeModule().button.setFontFamily(node, this.value);
9516    }
9517  }
9518  checkObjectDiff() {
9519    return !isBaseOrResourceEqual(this.stageValue, this.value);
9520  }
9521}
9522ButtonFontFamilyModifier.identity = Symbol('buttonFontFamily');
9523class ButtonLabelStyleModifier extends ModifierWithKey {
9524  constructor(value) {
9525    super(value);
9526  }
9527  applyPeer(node, reset) {
9528    if (reset) {
9529      getUINativeModule().button.resetLabelStyle(node);
9530    }
9531    else {
9532      let textOverflow = this.value.overflow; // number(enum) -> Ace::TextOverflow
9533      let maxLines = this.value.maxLines; // number -> uint32_t
9534      let minFontSize = this.value.minFontSize; // number | string | Resource -> Dimension
9535      let maxFontSize = this.value.maxFontSize; // number | string | Resource -> Dimension
9536      let heightAdaptivePolicy = this.value.heightAdaptivePolicy; // number(enum) -> Ace::TextHeightAdaptivePolicy
9537      let fontSize; // number | string | Resource -> Dimension
9538      let fontWeight; // number | string | Ace::FontWeight -> string -> Ace::FontWeight
9539      let fontStyle; // number(enum) -> Ace::FontStyle
9540      let fontFamily; // string -> std::vector<std::string>
9541      if (isObject(this.value.font)) {
9542        fontSize = this.value.font.size;
9543        fontStyle = this.value.font.style;
9544        fontFamily = this.value.font.family;
9545        fontWeight = this.value.font.weight;
9546      }
9547      getUINativeModule().button.setLabelStyle(node, textOverflow, maxLines, minFontSize,
9548        maxFontSize, heightAdaptivePolicy, fontSize, fontWeight, fontStyle, fontFamily);
9549    }
9550  }
9551  checkObjectDiff() {
9552    if (isResource(this.stageValue) && isResource(this.value)) {
9553      return !isResourceEqual(this.stageValue, this.value);
9554    }
9555    else if (!isResource(this.stageValue) && !isResource(this.value)) {
9556      return !(this.value.overflow === this.stageValue.overflow &&
9557        this.value.maxLines === this.stageValue.maxLines &&
9558        this.value.minFontSize === this.stageValue.minFontSize &&
9559        this.value.maxFontSize === this.stageValue.maxFontSize &&
9560        this.value.heightAdaptivePolicy === this.stageValue.heightAdaptivePolicy &&
9561        this.value.font === this.stageValue.font);
9562    }
9563    else {
9564      return true;
9565    }
9566  }
9567}
9568ButtonLabelStyleModifier.identity = Symbol('buttonLabelStyle');
9569class ButtonTypeModifier extends ModifierWithKey {
9570  constructor(value) {
9571    super(value);
9572  }
9573  applyPeer(node, reset) {
9574    if (reset) {
9575      getUINativeModule().button.resetType(node);
9576    }
9577    else {
9578      getUINativeModule().button.setType(node, this.value);
9579    }
9580  }
9581}
9582ButtonTypeModifier.identity = Symbol('buttonType');
9583class ButtonFontColorModifier extends ModifierWithKey {
9584  constructor(value) {
9585    super(value);
9586  }
9587  applyPeer(node, reset) {
9588    if (reset) {
9589      getUINativeModule().button.resetFontColor(node);
9590    }
9591    else {
9592      getUINativeModule().button.setFontColor(node, this.value);
9593    }
9594  }
9595  checkObjectDiff() {
9596    return !isBaseOrResourceEqual(this.stageValue, this.value);
9597  }
9598}
9599ButtonFontColorModifier.identity = Symbol('buttonFontColor');
9600class ButtonFontSizeModifier extends ModifierWithKey {
9601  constructor(value) {
9602    super(value);
9603  }
9604  applyPeer(node, reset) {
9605    if (reset) {
9606      getUINativeModule().button.resetFontSize(node);
9607    }
9608    else {
9609      getUINativeModule().button.setFontSize(node, this.value);
9610    }
9611  }
9612  checkObjectDiff() {
9613    return !isBaseOrResourceEqual(this.stageValue, this.value);
9614  }
9615}
9616ButtonFontSizeModifier.identity = Symbol('buttonFontSize');
9617class ButtonFontWeightModifier extends ModifierWithKey {
9618  constructor(value) {
9619    super(value);
9620  }
9621  applyPeer(node, reset) {
9622    if (reset) {
9623      getUINativeModule().button.resetFontWeight(node);
9624    }
9625    else {
9626      getUINativeModule().button.setFontWeight(node, this.value);
9627    }
9628  }
9629}
9630ButtonFontWeightModifier.identity = Symbol('buttonFontWeight');
9631class ButtonBorderRadiusModifier extends ModifierWithKey {
9632  constructor(value) {
9633    super(value);
9634  }
9635  applyPeer(node, reset) {
9636    if (reset) {
9637      getUINativeModule().button.resetButtonBorderRadius(node);
9638    }
9639    else {
9640      if (isNumber(this.value) || isString(this.value) || isResource(this.value)) {
9641        getUINativeModule().button.setButtonBorderRadius(node, this.value, this.value, this.value, this.value);
9642      }
9643      else {
9644        getUINativeModule().button.setButtonBorderRadius(node, this.value.topLeft, this.value.topRight, this.value.bottomLeft, this.value.bottomRight);
9645      }
9646    }
9647  }
9648  checkObjectDiff() {
9649    if (isResource(this.stageValue) && isResource(this.value)) {
9650      return !isResourceEqual(this.stageValue, this.value);
9651    }
9652    else if (!isResource(this.stageValue) && !isResource(this.value)) {
9653      return !(this.stageValue.topLeft === this.value.topLeft &&
9654        this.stageValue.topRight === this.value.topRight &&
9655        this.stageValue.bottomLeft === this.value.bottomLeft &&
9656        this.stageValue.bottomRight === this.value.bottomRight);
9657    }
9658    else {
9659      return true;
9660    }
9661  }
9662}
9663ButtonBorderRadiusModifier.identity = Symbol('buttonBorderRadius');
9664class ButtonBorderModifier extends ModifierWithKey {
9665  constructor(value) {
9666    super(value);
9667  }
9668  applyPeer(node, reset) {
9669    if (reset) {
9670      getUINativeModule().button.resetButtonBorder(node);
9671    } else {
9672      let widthLeft;
9673      let widthRight;
9674      let widthTop;
9675      let widthBottom;
9676      if (!isUndefined(this.value.width) && this.value.width != null) {
9677        if (isNumber(this.value.width) || isString(this.value.width) || isResource(this.value.width)) {
9678          widthLeft = this.value.width;
9679          widthRight = this.value.width;
9680          widthTop = this.value.width;
9681          widthBottom = this.value.width;
9682        } else {
9683          widthLeft = this.value.width.left;
9684          widthRight = this.value.width.right;
9685          widthTop = this.value.width.top;
9686          widthBottom = this.value.width.bottom;
9687        }
9688      }
9689      let leftColor;
9690      let rightColor;
9691      let topColor;
9692      let bottomColor;
9693      if (!isUndefined(this.value.color) && this.value.color != null) {
9694        if (isNumber(this.value.color) || isString(this.value.color) || isResource(this.value.color)) {
9695          leftColor = this.value.color;
9696          rightColor = this.value.color;
9697          topColor = this.value.color;
9698          bottomColor = this.value.color;
9699        } else {
9700          leftColor = this.value.color.left;
9701          rightColor = this.value.color.right;
9702          topColor = this.value.color.top;
9703          bottomColor = this.value.color.bottom;
9704        }
9705      }
9706      let topLeft;
9707      let topRight;
9708      let bottomLeft;
9709      let bottomRight;
9710      if (!isUndefined(this.value.radius) && this.value.radius != null) {
9711        if (isNumber(this.value.radius) || isString(this.value.radius) || isResource(this.value.radius)) {
9712          topLeft = this.value.radius;
9713          topRight = this.value.radius;
9714          bottomLeft = this.value.radius;
9715          bottomRight = this.value.radius;
9716        } else {
9717          topLeft = this.value.radius.topLeft;
9718          topRight = this.value.radius.topRight;
9719          bottomLeft = this.value.radius.bottomLeft;
9720          bottomRight = this.value.radius.bottomRight;
9721        }
9722      }
9723      let styleTop;
9724      let styleRight;
9725      let styleBottom;
9726      let styleLeft;
9727      if (!isUndefined(this.value.style) && this.value.style != null) {
9728        if (isNumber(this.value.style) || isString(this.value.style) || isResource(this.value.style)) {
9729          styleTop = this.value.style;
9730          styleRight = this.value.style;
9731          styleBottom = this.value.style;
9732          styleLeft = this.value.style;
9733        } else {
9734          styleTop = this.value.style.top;
9735          styleRight = this.value.style.right;
9736          styleBottom = this.value.style.bottom;
9737          styleLeft = this.value.style.left;
9738        }
9739      }
9740      getUINativeModule().button.setButtonBorder(
9741        node,
9742        widthLeft,
9743        widthRight,
9744        widthTop,
9745        widthBottom,
9746        leftColor,
9747        rightColor,
9748        topColor,
9749        bottomColor,
9750        topLeft,
9751        topRight,
9752        bottomLeft,
9753        bottomRight,
9754        styleTop,
9755        styleRight,
9756        styleBottom,
9757        styleLeft
9758      );
9759    }
9760  }
9761  checkObjectDiff() {
9762    return (
9763      !isBaseOrResourceEqual(this.stageValue.width, this.value.width) ||
9764      !isBaseOrResourceEqual(this.stageValue.color, this.value.color) ||
9765      !isBaseOrResourceEqual(this.stageValue.radius, this.value.radius) ||
9766      !isBaseOrResourceEqual(this.stageValue.style, this.value.style)
9767    );
9768  }
9769}
9770ButtonBorderModifier.identity = Symbol('buttonBorder');
9771class ButtonSizeModifier extends ModifierWithKey {
9772  constructor(value) {
9773    super(value);
9774  }
9775  applyPeer(node, reset) {
9776    if (reset) {
9777      getUINativeModule().button.resetButtonSize(node);
9778    } else {
9779      getUINativeModule().button.setButtonSize(node, this.value.width, this.value.height);
9780    }
9781  }
9782  checkObjectDiff() {
9783    return (
9784      !isBaseOrResourceEqual(this.stageValue.width, this.value.width) ||
9785      !isBaseOrResourceEqual(this.stageValue.height, this.value.height)
9786    );
9787  }
9788}
9789ButtonSizeModifier.identity = Symbol('buttonSize');
9790// @ts-ignore
9791globalThis.Button.attributeModifier = function (modifier) {
9792  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
9793  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
9794  let component = this.createOrGetNode(elmtId, () => {
9795    return new ArkButtonComponent(nativeNode);
9796  });
9797  applyUIAttributes(modifier, nativeNode, component);
9798  component.applyModifierPatch();
9799};
9800
9801/// <reference path='./import.ts' />
9802class ArkLoadingProgressComponent extends ArkComponent {
9803  constructor(nativePtr) {
9804    super(nativePtr);
9805  }
9806  onGestureJudgeBegin(callback) {
9807    throw new Error('Method not implemented.');
9808  }
9809  color(value) {
9810    modifierWithKey(this._modifiersWithKeys, LoadingProgressColorModifier.identity, LoadingProgressColorModifier, value);
9811    return this;
9812  }
9813  enableLoading(value) {
9814    modifierWithKey(this._modifiersWithKeys, LoadingProgressEnableLoadingModifier.identity, LoadingProgressEnableLoadingModifier, value);
9815    return this;
9816  }
9817  foregroundColor(value) {
9818    modifierWithKey(this._modifiersWithKeys, LoadingProgressForegroundColorModifier.identity,
9819      LoadingProgressForegroundColorModifier, value);
9820    return this;
9821  }
9822}
9823class LoadingProgressColorModifier extends ModifierWithKey {
9824  constructor(value) {
9825    super(value);
9826  }
9827  applyPeer(node, reset) {
9828    if (reset) {
9829      getUINativeModule().loadingProgress.resetColor(node);
9830    }
9831    else {
9832      getUINativeModule().loadingProgress.setColor(node, this.value);
9833    }
9834  }
9835  checkObjectDiff() {
9836    return !isBaseOrResourceEqual(this.stageValue, this.value);
9837  }
9838}
9839LoadingProgressColorModifier.identity = Symbol('loadingProgressColor');
9840class LoadingProgressForegroundColorModifier extends ModifierWithKey {
9841  constructor(value) {
9842    super(value);
9843  }
9844  applyPeer(node, reset) {
9845    if (reset) {
9846      getUINativeModule().loadingProgress.resetForegroundColor(node);
9847    }
9848    else {
9849      getUINativeModule().loadingProgress.setForegroundColor(node, this.value);
9850    }
9851  }
9852  checkObjectDiff() {
9853    return !isBaseOrResourceEqual(this.stageValue, this.value);
9854  }
9855}
9856LoadingProgressForegroundColorModifier.identity = Symbol('loadingProgressForegroundColor');
9857class LoadingProgressEnableLoadingModifier extends ModifierWithKey {
9858  constructor(value) {
9859    super(value);
9860  }
9861  applyPeer(node, reset) {
9862    if (reset) {
9863      getUINativeModule().loadingProgress.resetEnableLoading(node);
9864    }
9865    else {
9866      getUINativeModule().loadingProgress.setEnableLoading(node, this.value);
9867    }
9868  }
9869}
9870LoadingProgressEnableLoadingModifier.identity = Symbol('loadingProgressEnableLoading');
9871// @ts-ignore
9872globalThis.LoadingProgress.attributeModifier = function (modifier) {
9873  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
9874  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
9875  let component = this.createOrGetNode(elmtId, () => {
9876    return new ArkLoadingProgressComponent(nativeNode);
9877  });
9878  applyUIAttributes(modifier, nativeNode, component);
9879  component.applyModifierPatch();
9880};
9881
9882/// <reference path='./import.ts' />
9883class ArkRefreshComponent extends ArkComponent {
9884  constructor(nativePtr) {
9885    super(nativePtr);
9886  }
9887  onGestureJudgeBegin(callback) {
9888    throw new Error('Method not implemented.');
9889  }
9890  onStateChange(callback) {
9891    throw new Error('Method not implemented.');
9892  }
9893  onRefreshing(callback) {
9894    throw new Error('Method not implemented.');
9895  }
9896}
9897// @ts-ignore
9898globalThis.Refresh.attributeModifier = function (modifier) {
9899  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
9900  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
9901  let component = this.createOrGetNode(elmtId, () => {
9902    return new ArkRefreshComponent(nativeNode);
9903  });
9904  applyUIAttributes(modifier, nativeNode, component);
9905  component.applyModifierPatch();
9906};
9907
9908/// <reference path='./import.ts' />
9909class ScrollNestedScrollModifier extends ModifierWithKey {
9910  applyPeer(node, reset) {
9911    if (reset) {
9912      getUINativeModule().scroll.resetNestedScroll(node);
9913    }
9914    else {
9915      getUINativeModule().scroll.setNestedScroll(node, this.value.scrollForward, this.value.scrollBackward);
9916    }
9917  }
9918  checkObjectDiff() {
9919    return !isBaseOrResourceEqual(this.stageValue.scrollForward, this.value.scrollForward) ||
9920      !isBaseOrResourceEqual(this.stageValue.scrollBackward, this.value.scrollBackward);
9921  }
9922}
9923ScrollNestedScrollModifier.identity = Symbol('nestedScroll');
9924class ScrollEnableScrollInteractionModifier extends ModifierWithKey {
9925  applyPeer(node, reset) {
9926    if (reset) {
9927      getUINativeModule().scroll.resetEnableScroll(node);
9928    }
9929    else {
9930      getUINativeModule().scroll.setEnableScroll(node, this.value);
9931    }
9932  }
9933  checkObjectDiff() {
9934    return !isBaseOrResourceEqual(this.stageValue, this.value);
9935  }
9936}
9937ScrollEnableScrollInteractionModifier.identity = Symbol('enableScrollInteraction');
9938class ScrollEnablePagingModifier extends ModifierWithKey {
9939  applyPeer(node, reset) {
9940    if (reset) {
9941      getUINativeModule().scroll.resetEnablePaging(node);
9942    } else {
9943      getUINativeModule().scroll.setEnablePaging(node, this.value);
9944    }
9945  }
9946}
9947ScrollEnablePagingModifier.identity = Symbol('scrollEnablePaging');
9948class ScrollFrictionModifier extends ModifierWithKey {
9949  applyPeer(node, reset) {
9950    if (reset) {
9951      getUINativeModule().scroll.resetFriction(node);
9952    }
9953    else {
9954      getUINativeModule().scroll.setFriction(node, this.value);
9955    }
9956  }
9957  checkObjectDiff() {
9958    return !isBaseOrResourceEqual(this.stageValue, this.value);
9959  }
9960}
9961ScrollFrictionModifier.identity = Symbol('friction');
9962class ScrollScrollSnapModifier extends ModifierWithKey {
9963  applyPeer(node, reset) {
9964    if (reset) {
9965      getUINativeModule().scroll.resetScrollSnap(node);
9966    }
9967    else {
9968      let snapPagination = [];
9969      let isArray = true;
9970      if (Array.isArray(this.value.snapPagination)) {
9971        for (let i = 0; i <= this.value.snapPagination.length; i++) {
9972          let item = this.value.snapPagination[i];
9973          snapPagination.push(item);
9974        }
9975      }
9976      else {
9977        isArray = false;
9978      }
9979      if (isArray) {
9980        getUINativeModule().scroll.setScrollSnap(node, this.value.snapAlign, snapPagination,
9981          this.value.enableSnapToStart, this.value.enableSnapToEnd);
9982      }
9983      else {
9984        getUINativeModule().scroll.setScrollSnap(node, this.value.snapAlign, this.value.snapPagination,
9985          this.value.enableSnapToStart, this.value.enableSnapToEnd);
9986      }
9987    }
9988  }
9989  checkObjectDiff() {
9990    return !((this.stageValue.snapAlign === this.value.snapAlign) &&
9991      (this.stageValue.enableSnapToStart === this.value.enableSnapToStart) &&
9992      (this.stageValue.enableSnapToEnd === this.value.enableSnapToEnd) &&
9993      (this.stageValue.snapPagination === this.value.snapPagination));
9994  }
9995}
9996ScrollScrollSnapModifier.identity = Symbol('scrollSnap');
9997class ScrollScrollBarModifier extends ModifierWithKey {
9998  applyPeer(node, reset) {
9999    if (reset) {
10000      getUINativeModule().scroll.resetScrollBar(node);
10001    }
10002    else {
10003      getUINativeModule().scroll.setScrollBar(node, this.value);
10004    }
10005  }
10006  checkObjectDiff() {
10007    return !isBaseOrResourceEqual(this.stageValue, this.value);
10008  }
10009}
10010ScrollScrollBarModifier.identity = Symbol('scrollBar');
10011class ScrollScrollableModifier extends ModifierWithKey {
10012  constructor(value) {
10013    super(value);
10014  }
10015  applyPeer(node, reset) {
10016    if (reset) {
10017      getUINativeModule().scroll.resetScrollable(node);
10018    }
10019    else {
10020      getUINativeModule().scroll.setScrollable(node, this.value);
10021    }
10022  }
10023  checkObjectDiff() {
10024    return this.stageValue !== this.value;
10025  }
10026}
10027ScrollScrollableModifier.identity = Symbol('scrollable');
10028class ScrollEdgeEffectModifier extends ModifierWithKey {
10029  constructor(value) {
10030    super(value);
10031  }
10032  applyPeer(node, reset) {
10033    let _a;
10034    if (reset) {
10035      getUINativeModule().scroll.resetEdgeEffect(node);
10036    }
10037    else {
10038      getUINativeModule().scroll.setEdgeEffect(node, this.value.value, (_a = this.value.options) === null || _a ===
10039      void 0 ? void 0 : _a.alwaysEnabled);
10040    }
10041  }
10042  checkObjectDiff() {
10043    return !((this.stageValue.value === this.value.value) &&
10044      (this.stageValue.options === this.value.options));
10045  }
10046}
10047ScrollEdgeEffectModifier.identity = Symbol('edgeEffect');
10048class ScrollScrollBarWidthModifier extends ModifierWithKey {
10049  constructor(value) {
10050    super(value);
10051  }
10052  applyPeer(node, reset) {
10053    if (reset) {
10054      getUINativeModule().scroll.resetScrollBarWidth(node);
10055    }
10056    else {
10057      getUINativeModule().scroll.setScrollBarWidth(node, this.value);
10058    }
10059  }
10060  checkObjectDiff() {
10061    return this.stageValue !== this.value;
10062  }
10063}
10064ScrollScrollBarWidthModifier.identity = Symbol('scrollBarWidth');
10065class ScrollScrollBarColorModifier extends ModifierWithKey {
10066  constructor(value) {
10067    super(value);
10068  }
10069  applyPeer(node, reset) {
10070    if (reset) {
10071      getUINativeModule().scroll.resetScrollBarColor(node);
10072    }
10073    else {
10074      getUINativeModule().scroll.setScrollBarColor(node, this.value);
10075    }
10076  }
10077  checkObjectDiff() {
10078    return !isBaseOrResourceEqual(this.stageValue, this.value);
10079  }
10080}
10081ScrollScrollBarColorModifier.identity = Symbol('scrollBarColor');
10082class ScrollClipModifier extends ModifierWithKey {
10083  constructor(value) {
10084    super(value);
10085  }
10086  applyPeer(node, reset) {
10087    if (reset) {
10088      getUINativeModule().common.resetClipWithEdge(node);
10089    }
10090    else {
10091      getUINativeModule().common.setClipWithEdge(node, this.value);
10092    }
10093  }
10094  checkObjectDiff() {
10095    return true;
10096  }
10097}
10098ScrollClipModifier.identity = Symbol('scrollClip');
10099class ArkScrollComponent extends ArkComponent {
10100  constructor(nativePtr) {
10101    super(nativePtr);
10102  }
10103  onGestureJudgeBegin(callback) {
10104    throw new Error('Method not implemented.');
10105  }
10106  scrollable(value) {
10107    modifierWithKey(this._modifiersWithKeys, ScrollScrollableModifier.identity, ScrollScrollableModifier, value);
10108    return this;
10109  }
10110  onScroll(event) {
10111    throw new Error('Method not implemented.');
10112  }
10113  onScrollEdge(event) {
10114    throw new Error('Method not implemented.');
10115  }
10116  onScrollStart(event) {
10117    throw new Error('Method not implemented.');
10118  }
10119  onScrollEnd(event) {
10120    throw new Error('Method not implemented.');
10121  }
10122  onScrollStop(event) {
10123    throw new Error('Method not implemented.');
10124  }
10125  scrollBar(value) {
10126    if (value in BarState) {
10127      modifierWithKey(this._modifiersWithKeys, ScrollScrollBarModifier.identity, ScrollScrollBarModifier, value);
10128    }
10129    else {
10130      modifierWithKey(this._modifiersWithKeys, ScrollScrollBarModifier.identity, ScrollScrollBarModifier, undefined);
10131    }
10132    return this;
10133  }
10134  scrollBarColor(color) {
10135    modifierWithKey(this._modifiersWithKeys, ScrollScrollBarColorModifier.identity, ScrollScrollBarColorModifier, color);
10136    return this;
10137  }
10138  scrollBarWidth(value) {
10139    modifierWithKey(this._modifiersWithKeys, ScrollScrollBarWidthModifier.identity, ScrollScrollBarWidthModifier, value);
10140    return this;
10141  }
10142  edgeEffect(value, options) {
10143    let effect = new ArkScrollEdgeEffect();
10144    effect.value = value;
10145    effect.options = options;
10146    modifierWithKey(this._modifiersWithKeys, ScrollEdgeEffectModifier.identity, ScrollEdgeEffectModifier, effect);
10147    return this;
10148  }
10149  onScrollFrameBegin(event) {
10150    throw new Error('Method not implemented.');
10151  }
10152  nestedScroll(value) {
10153    let options = new ArkNestedScrollOptions();
10154    if (value) {
10155      if (value.scrollForward) {
10156        options.scrollForward = value.scrollForward;
10157      }
10158      if (value.scrollBackward) {
10159        options.scrollBackward = value.scrollBackward;
10160      }
10161      modifierWithKey(this._modifiersWithKeys, ScrollNestedScrollModifier.identity, ScrollNestedScrollModifier, options);
10162    }
10163    return this;
10164  }
10165  enableScrollInteraction(value) {
10166    modifierWithKey(this._modifiersWithKeys, ScrollEnableScrollInteractionModifier.identity, ScrollEnableScrollInteractionModifier, value);
10167    return this;
10168  }
10169  enablePaging(value) {
10170    modifierWithKey(this._modifiersWithKeys, ScrollEnablePagingModifier.identity, ScrollEnablePagingModifier, value);
10171    return this;
10172  }
10173  friction(value) {
10174    modifierWithKey(this._modifiersWithKeys, ScrollFrictionModifier.identity, ScrollFrictionModifier, value);
10175    return this;
10176  }
10177  scrollSnap(value) {
10178    let options = new ArkScrollSnapOptions();
10179    if (value) {
10180      if (value.snapAlign) {
10181        options.snapAlign = value.snapAlign;
10182      }
10183      if (value.snapPagination) {
10184        options.snapPagination = value.snapPagination;
10185      }
10186      if (value.enableSnapToStart) {
10187        options.enableSnapToStart = value.enableSnapToStart;
10188      }
10189      if (value.enableSnapToEnd) {
10190        options.enableSnapToEnd = value.enableSnapToEnd;
10191      }
10192      modifierWithKey(this._modifiersWithKeys, ScrollScrollSnapModifier.identity, ScrollScrollSnapModifier, options);
10193    }
10194    return this;
10195  }
10196  clip(value) {
10197    modifierWithKey(this._modifiersWithKeys, ScrollClipModifier.identity, ScrollClipModifier, value);
10198    return this;
10199  }
10200}
10201// @ts-ignore
10202globalThis.Scroll.attributeModifier = function (modifier) {
10203  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
10204  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
10205  let component = this.createOrGetNode(elmtId, () => {
10206    return new ArkScrollComponent(nativeNode);
10207  });
10208  applyUIAttributes(modifier, nativeNode, component);
10209  component.applyModifierPatch();
10210};
10211
10212/// <reference path='./import.ts' />
10213class ArkToggleComponent extends ArkComponent {
10214  constructor(nativePtr) {
10215    super(nativePtr);
10216  }
10217  onGestureJudgeBegin(callback) {
10218    throw new Error('Method not implemented.');
10219  }
10220  onChange(callback) {
10221    throw new Error('Method not implemented.');
10222  }
10223  selectedColor(value) {
10224    modifierWithKey(this._modifiersWithKeys, ToggleSelectedColorModifier.identity, ToggleSelectedColorModifier, value);
10225    return this;
10226  }
10227  switchPointColor(value) {
10228    modifierWithKey(this._modifiersWithKeys, ToggleSwitchPointColorModifier.identity, ToggleSwitchPointColorModifier, value);
10229    return this;
10230  }
10231  height(value) {
10232    modifierWithKey(this._modifiersWithKeys, ToggleHeightModifier.identity, ToggleHeightModifier, value);
10233    return this;
10234  }
10235  responseRegion(value) {
10236    modifierWithKey(this._modifiersWithKeys, ToggleResponseRegionModifier.identity, ToggleResponseRegionModifier, value);
10237    return this;
10238  }
10239  padding(value) {
10240    modifierWithKey(this._modifiersWithKeys, TogglePaddingModifier.identity, TogglePaddingModifier, value);
10241    return this;
10242  }
10243  backgroundColor(value) {
10244    modifierWithKey(this._modifiersWithKeys, ToggleBackgroundColorModifier.identity, ToggleBackgroundColorModifier, value);
10245    return this;
10246  }
10247  hoverEffect(value) {
10248    modifierWithKey(this._modifiersWithKeys, ToggleHoverEffectModifier.identity, ToggleHoverEffectModifier, value);
10249    return this;
10250  }
10251}
10252class ToggleSelectedColorModifier extends ModifierWithKey {
10253  constructor(value) {
10254    super(value);
10255  }
10256  applyPeer(node, reset) {
10257    if (reset) {
10258      getUINativeModule().toggle.resetSelectedColor(node);
10259    }
10260    else {
10261      getUINativeModule().toggle.setSelectedColor(node, this.value);
10262    }
10263  }
10264  checkObjectDiff() {
10265    return !isBaseOrResourceEqual(this.stageValue, this.value);
10266  }
10267}
10268ToggleSelectedColorModifier.identity = Symbol('toggleSelectedColor');
10269class ToggleSwitchPointColorModifier extends ModifierWithKey {
10270  constructor(value) {
10271    super(value);
10272  }
10273  applyPeer(node, reset) {
10274    if (reset) {
10275      getUINativeModule().toggle.resetSwitchPointColor(node);
10276    }
10277    else {
10278      getUINativeModule().toggle.setSwitchPointColor(node, this.value);
10279    }
10280  }
10281  checkObjectDiff() {
10282    return !isBaseOrResourceEqual(this.stageValue, this.value);
10283  }
10284}
10285ToggleSwitchPointColorModifier.identity = Symbol('toggleSwitchPointColor');
10286class ToggleHeightModifier extends ModifierWithKey {
10287  constructor(value) {
10288    super(value);
10289  }
10290  applyPeer(node, reset) {
10291    if (reset) {
10292      getUINativeModule().toggle.resetHeight(node);
10293    }
10294    else {
10295      getUINativeModule().toggle.setHeight(node, this.value);
10296    }
10297  }
10298  checkObjectDiff() {
10299    return !isBaseOrResourceEqual(this.stageValue, this.value);
10300  }
10301}
10302ToggleHeightModifier.identity = Symbol('toggleHeight');
10303class ToggleResponseRegionModifier extends ModifierWithKey {
10304  constructor(value) {
10305    super(value);
10306  }
10307  applyPeer(node, reset) {
10308    let _a, _b, _c, _d, _e, _f, _g, _h;
10309    if (reset) {
10310      getUINativeModule().toggle.resetResponseRegion(node);
10311    }
10312    else {
10313      let responseRegion = [];
10314      if (Array.isArray(this.value)) {
10315        for (let i = 0; i < this.value.length; i++) {
10316          responseRegion.push((_a = this.value[i].x) !== null && _a !== void 0 ? _a : 'PLACEHOLDER');
10317          responseRegion.push((_b = this.value[i].y) !== null && _b !== void 0 ? _b : 'PLACEHOLDER');
10318          responseRegion.push((_c = this.value[i].width) !== null && _c !== void 0 ? _c : 'PLACEHOLDER');
10319          responseRegion.push((_d = this.value[i].height) !== null && _d !== void 0 ? _d : 'PLACEHOLDER');
10320        }
10321      }
10322      else {
10323        responseRegion.push((_e = this.value.x) !== null && _e !== void 0 ? _e : 'PLACEHOLDER');
10324        responseRegion.push((_f = this.value.y) !== null && _f !== void 0 ? _f : 'PLACEHOLDER');
10325        responseRegion.push((_g = this.value.width) !== null && _g !== void 0 ? _g : 'PLACEHOLDER');
10326        responseRegion.push((_h = this.value.height) !== null && _h !== void 0 ? _h : 'PLACEHOLDER');
10327      }
10328      getUINativeModule().toggle.setResponseRegion(node, responseRegion, responseRegion.length);
10329    }
10330  }
10331  checkObjectDiff() {
10332    if (Array.isArray(this.stageValue) && Array.isArray(this.value)) {
10333      if (this.value.length !== this.stageValue.length) {
10334        return true;
10335      }
10336      else {
10337        for (let i = 0; i < this.value.length; i++) {
10338          if (!(isBaseOrResourceEqual(this.stageValue[i].x, this.value[i].x) &&
10339            isBaseOrResourceEqual(this.stageValue[i].y, this.value[i].y) &&
10340            isBaseOrResourceEqual(this.stageValue[i].width, this.value[i].width) &&
10341            isBaseOrResourceEqual(this.stageValue[i].height, this.value[i].height))) {
10342            return true;
10343          }
10344        }
10345        return false;
10346      }
10347    }
10348    else if (typeof this.stageValue === 'object' && typeof this.value === 'object') {
10349      return !(this.stageValue.x === this.value.x &&
10350        this.stageValue.y === this.value.y &&
10351        this.stageValue.height === this.value.height &&
10352        this.stageValue.width === this.value.width);
10353    }
10354    else {
10355      return true;
10356    }
10357  }
10358}
10359ToggleResponseRegionModifier.identity = Symbol('toggleResponseRegion');
10360class TogglePaddingModifier extends ModifierWithKey {
10361  constructor(value) {
10362    super(value);
10363  }
10364  applyPeer(node, reset) {
10365    if (reset) {
10366      getUINativeModule().toggle.resetPadding(node);
10367    }
10368    else {
10369      let top = undefined;
10370      let right = undefined;
10371      let bottom = undefined;
10372      let left = undefined;
10373      if (isLengthType(this.value) || isResource(this.value)) {
10374        top = this.value;
10375        right = this.value;
10376        bottom = this.value;
10377        left = this.value;
10378      }
10379      else if (typeof this.value === 'object') {
10380        top = this.value.top;
10381        right = this.value.right;
10382        bottom = this.value.bottom;
10383        left = this.value.left;
10384      }
10385      getUINativeModule().toggle.setPadding(node, top, right, bottom, left);
10386    }
10387  }
10388  checkObjectDiff() {
10389    if (isResource(this.stageValue) && isResource(this.value)) {
10390      return !isResourceEqual(this.stageValue, this.value);
10391    }
10392    else if (!isResource(this.stageValue) && !isResource(this.value)) {
10393      if (typeof this.stageValue === 'object' && typeof this.value === 'object') {
10394        return !(this.stageValue.left === this.value.left &&
10395          this.stageValue.right === this.value.right &&
10396          this.stageValue.top === this.value.top &&
10397          this.stageValue.bottom === this.value.bottom);
10398      }
10399      else {
10400        return !(this.stageValue === this.value);
10401      }
10402    }
10403    return true;
10404  }
10405}
10406TogglePaddingModifier.identity = Symbol('togglePadding');
10407class ToggleBackgroundColorModifier extends ModifierWithKey {
10408  constructor(value) {
10409    super(value);
10410  }
10411  applyPeer(node, reset) {
10412    if (reset) {
10413      getUINativeModule().toggle.resetBackgroundColor(node);
10414    }
10415    else {
10416      getUINativeModule().toggle.setBackgroundColor(node, this.value);
10417    }
10418  }
10419  checkObjectDiff() {
10420    return !isBaseOrResourceEqual(this.stageValue, this.value);
10421  }
10422}
10423ToggleBackgroundColorModifier.identity = Symbol('toggleBackgroundColor');
10424class ToggleHoverEffectModifier extends ModifierWithKey {
10425  constructor(value) {
10426    super(value);
10427  }
10428  applyPeer(node, reset) {
10429    if (reset) {
10430      getUINativeModule().toggle.resetHoverEffect(node);
10431    }
10432    else {
10433      getUINativeModule().toggle.setHoverEffect(node, this.value);
10434    }
10435  }
10436}
10437ToggleHoverEffectModifier.identity = Symbol('toggleHoverEffect');
10438// @ts-ignore
10439globalThis.Toggle.attributeModifier = function (modifier) {
10440  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
10441  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
10442  let component = this.createOrGetNode(elmtId, () => {
10443    return new ArkToggleComponent(nativeNode);
10444  });
10445  applyUIAttributes(modifier, nativeNode, component);
10446  component.applyModifierPatch();
10447};
10448
10449/// <reference path='./import.ts' />
10450class ArkSelectComponent extends ArkComponent {
10451  constructor(nativePtr) {
10452    super(nativePtr);
10453  }
10454  onGestureJudgeBegin(callback) {
10455    throw new Error('Method not implemented.');
10456  }
10457  optionWidth(value) {
10458    modifierWithKey(this._modifiersWithKeys, SelectOptionWidthModifier.identity, SelectOptionWidthModifier, value);
10459    return this;
10460  }
10461  optionHeight(value) {
10462    modifierWithKey(this._modifiersWithKeys, SelectOptionHeightModifier.identity, SelectOptionHeightModifier, value);
10463    return this;
10464  }
10465  width(value) {
10466    modifierWithKey(this._modifiersWithKeys, SelectWidthModifier.identity, SelectWidthModifier, value);
10467    return this;
10468  }
10469  height(value) {
10470    modifierWithKey(this._modifiersWithKeys, SelectHeightModifier.identity, SelectHeightModifier, value);
10471    return this;
10472  }
10473  size(value) {
10474    modifierWithKey(this._modifiersWithKeys, SelectSizeModifier.identity, SelectSizeModifier, value);
10475    return this;
10476  }
10477  selected(value) {
10478    modifierWithKey(this._modifiersWithKeys, SelectedModifier.identity, SelectedModifier, value);
10479    return this;
10480  }
10481  value(value) {
10482    modifierWithKey(this._modifiersWithKeys, ValueModifier.identity, ValueModifier, value);
10483    return this;
10484  }
10485  font(value) {
10486    modifierWithKey(this._modifiersWithKeys, FontModifier.identity, FontModifier, value);
10487    return this;
10488  }
10489  fontColor(value) {
10490    modifierWithKey(this._modifiersWithKeys, SelectFontColorModifier.identity, SelectFontColorModifier, value);
10491    return this;
10492  }
10493  selectedOptionBgColor(value) {
10494    modifierWithKey(this._modifiersWithKeys, SelectedOptionBgColorModifier.identity, SelectedOptionBgColorModifier, value);
10495    return this;
10496  }
10497  selectedOptionFont(value) {
10498    modifierWithKey(this._modifiersWithKeys, SelectedOptionFontModifier.identity, SelectedOptionFontModifier, value);
10499    return this;
10500  }
10501  selectedOptionFontColor(value) {
10502    modifierWithKey(this._modifiersWithKeys, SelectedOptionFontColorModifier.identity, SelectedOptionFontColorModifier, value);
10503    return this;
10504  }
10505  optionBgColor(value) {
10506    modifierWithKey(this._modifiersWithKeys, OptionBgColorModifier.identity, OptionBgColorModifier, value);
10507    return this;
10508  }
10509  optionFont(value) {
10510    modifierWithKey(this._modifiersWithKeys, OptionFontModifier.identity, OptionFontModifier, value);
10511    return this;
10512  }
10513  optionFontColor(value) {
10514    modifierWithKey(this._modifiersWithKeys, OptionFontColorModifier.identity, OptionFontColorModifier, value);
10515    return this;
10516  }
10517  onSelect(callback) {
10518    throw new Error('Method not implemented.');
10519  }
10520  space(value) {
10521    modifierWithKey(this._modifiersWithKeys, SpaceModifier.identity, SpaceModifier, value);
10522    return this;
10523  }
10524  arrowPosition(value) {
10525    modifierWithKey(this._modifiersWithKeys, ArrowPositionModifier.identity, ArrowPositionModifier, value);
10526    return this;
10527  }
10528  menuAlign(alignType, offset) {
10529    let menuAlign = new ArkMenuAlignType(alignType, offset);
10530    modifierWithKey(this._modifiersWithKeys, MenuAlignModifier.identity, MenuAlignModifier, menuAlign);
10531    return this;
10532  }
10533}
10534class FontModifier extends ModifierWithKey {
10535  constructor(value) {
10536    super(value);
10537  }
10538  applyPeer(node, reset) {
10539    if (reset) {
10540      getUINativeModule().select.resetFont(node);
10541    }
10542    else {
10543      getUINativeModule().select.setFont(node, this.value.size, this.value.weight, this.value.family, this.value.style);
10544    }
10545  }
10546  checkObjectDiff() {
10547    let sizeEQ = isBaseOrResourceEqual(this.stageValue.size, this.value.size);
10548    let weightEQ = this.stageValue.weight === this.value.weight;
10549    let familyEQ = isBaseOrResourceEqual(this.stageValue.family, this.value.family);
10550    let styleEQ = this.stageValue.style === this.value.style;
10551    return !sizeEQ || !weightEQ || !familyEQ || !styleEQ;
10552  }
10553}
10554FontModifier.identity = Symbol('selectFont');
10555class OptionFontModifier extends ModifierWithKey {
10556  constructor(value) {
10557    super(value);
10558  }
10559  applyPeer(node, reset) {
10560    if (reset) {
10561      getUINativeModule().select.resetOptionFont(node);
10562    }
10563    else {
10564      getUINativeModule().select.setOptionFont(node, this.value.size, this.value.weight, this.value.family, this.value.style);
10565    }
10566  }
10567  checkObjectDiff() {
10568    let sizeEQ = isBaseOrResourceEqual(this.stageValue.size, this.value.size);
10569    let weightEQ = this.stageValue.weight === this.value.weight;
10570    let familyEQ = isBaseOrResourceEqual(this.stageValue.family, this.value.family);
10571    let styleEQ = this.stageValue.style === this.value.style;
10572    return !sizeEQ || !weightEQ || !familyEQ || !styleEQ;
10573  }
10574}
10575OptionFontModifier.identity = Symbol('selectOptionFont');
10576class SelectedOptionFontModifier extends ModifierWithKey {
10577  constructor(value) {
10578    super(value);
10579  }
10580  applyPeer(node, reset) {
10581    if (reset) {
10582      getUINativeModule().select.resetSelectedOptionFont(node);
10583    }
10584    else {
10585      getUINativeModule().select.setSelectedOptionFont(node, this.value.size, this.value.weight, this.value.family, this.value.style);
10586    }
10587  }
10588  checkObjectDiff() {
10589    let sizeEQ = isBaseOrResourceEqual(this.stageValue.size, this.value.size);
10590    let weightEQ = this.stageValue.weight === this.value.weight;
10591    let familyEQ = isBaseOrResourceEqual(this.stageValue.family, this.value.family);
10592    let styleEQ = this.stageValue.style === this.value.style;
10593    return !sizeEQ || !weightEQ || !familyEQ || !styleEQ;
10594  }
10595}
10596SelectedOptionFontModifier.identity = Symbol('selectSelectedOptionFont');
10597class MenuAlignModifier extends ModifierWithKey {
10598  constructor(value) {
10599    super(value);
10600  }
10601  applyPeer(node, reset) {
10602    if (reset) {
10603      getUINativeModule().select.resetMenuAlign(node);
10604    }
10605    else {
10606      getUINativeModule().select.setMenuAlign(node, this.value.alignType, this.value.dx, this.value.dy);
10607    }
10608  }
10609  checkObjectDiff() {
10610    let alignTypeEQ = this.stageValue.alignType === this.value.alignType;
10611    let dxEQ = isBaseOrResourceEqual(this.stageValue, this.value);
10612    let dyEQ = isBaseOrResourceEqual(this.stageValue, this.value);
10613    return !alignTypeEQ || !dxEQ || !dyEQ;
10614  }
10615  isEqual(stageValue, value) {
10616    if ((!isUndefined(stageValue) && isResource(stageValue)) &&
10617      (!isUndefined(value) && isResource(value))) {
10618      return !isResourceEqual(stageValue, value);
10619    }
10620    else {
10621      return stageValue !== value;
10622    }
10623  }
10624}
10625MenuAlignModifier.identity = Symbol('selectMenuAlign');
10626class ArrowPositionModifier extends ModifierWithKey {
10627  constructor(value) {
10628    super(value);
10629  }
10630  applyPeer(node, reset) {
10631    if (reset) {
10632      getUINativeModule().select.resetArrowPosition(node);
10633    }
10634    else {
10635      getUINativeModule().select.setArrowPosition(node, this.value);
10636    }
10637  }
10638  checkObjectDiff() {
10639    return this.stageValue !== this.value;
10640  }
10641}
10642ArrowPositionModifier.identity = Symbol('selectArrowPosition');
10643class SpaceModifier extends ModifierWithKey {
10644  constructor(value) {
10645    super(value);
10646  }
10647  applyPeer(node, reset) {
10648    if (reset) {
10649      getUINativeModule().select.resetSpace(node);
10650    }
10651    else {
10652      getUINativeModule().select.setSpace(node, this.value);
10653    }
10654  }
10655  checkObjectDiff() {
10656    return !isBaseOrResourceEqual(this.stageValue, this.value);
10657  }
10658}
10659SpaceModifier.identity = Symbol('selectSpace');
10660class ValueModifier extends ModifierWithKey {
10661  constructor(value) {
10662    super(value);
10663  }
10664  applyPeer(node, reset) {
10665    if (reset) {
10666      getUINativeModule().select.resetValue(node);
10667    }
10668    else {
10669      getUINativeModule().select.setValue(node, this.value);
10670    }
10671  }
10672  checkObjectDiff() {
10673    return !isBaseOrResourceEqual(this.stageValue, this.value);
10674  }
10675}
10676ValueModifier.identity = Symbol('selectValue');
10677class SelectedModifier extends ModifierWithKey {
10678  constructor(value) {
10679    super(value);
10680  }
10681  applyPeer(node, reset) {
10682    if (reset) {
10683      getUINativeModule().select.resetSelected(node);
10684    }
10685    else {
10686      getUINativeModule().select.setSelected(node, this.value);
10687    }
10688  }
10689  checkObjectDiff() {
10690    return !isBaseOrResourceEqual(this.stageValue, this.value);
10691  }
10692}
10693SelectedModifier.identity = Symbol('selectSelected');
10694class SelectFontColorModifier extends ModifierWithKey {
10695  constructor(value) {
10696    super(value);
10697  }
10698  applyPeer(node, reset) {
10699    if (reset) {
10700      getUINativeModule().select.resetFontColor(node);
10701    }
10702    else {
10703      getUINativeModule().select.setFontColor(node, this.value);
10704    }
10705  }
10706  checkObjectDiff() {
10707    return !isBaseOrResourceEqual(this.stageValue, this.value);
10708  }
10709}
10710SelectFontColorModifier.identity = Symbol('selectFontColor');
10711class SelectedOptionBgColorModifier extends ModifierWithKey {
10712  constructor(value) {
10713    super(value);
10714  }
10715  applyPeer(node, reset) {
10716    if (reset) {
10717      getUINativeModule().select.resetSelectedOptionBgColor(node);
10718    }
10719    else {
10720      getUINativeModule().select.setSelectedOptionBgColor(node, this.value);
10721    }
10722  }
10723  checkObjectDiff() {
10724    return !isBaseOrResourceEqual(this.stageValue, this.value);
10725  }
10726}
10727SelectedOptionBgColorModifier.identity = Symbol('selectSelectedOptionBgColor');
10728class OptionBgColorModifier extends ModifierWithKey {
10729  constructor(value) {
10730    super(value);
10731  }
10732  applyPeer(node, reset) {
10733    if (reset) {
10734      getUINativeModule().select.resetOptionBgColor(node);
10735    }
10736    else {
10737      getUINativeModule().select.setOptionBgColor(node, this.value);
10738    }
10739  }
10740  checkObjectDiff() {
10741    return !isBaseOrResourceEqual(this.stageValue, this.value);
10742  }
10743}
10744OptionBgColorModifier.identity = Symbol('selectOptionBgColor');
10745class OptionFontColorModifier extends ModifierWithKey {
10746  constructor(value) {
10747    super(value);
10748  }
10749  applyPeer(node, reset) {
10750    if (reset) {
10751      getUINativeModule().select.resetOptionFontColor(node);
10752    }
10753    else {
10754      getUINativeModule().select.setOptionFontColor(node, this.value);
10755    }
10756  }
10757  checkObjectDiff() {
10758    return !isBaseOrResourceEqual(this.stageValue, this.value);
10759  }
10760}
10761OptionFontColorModifier.identity = Symbol('selectOptionFontColor');
10762class SelectedOptionFontColorModifier extends ModifierWithKey {
10763  constructor(value) {
10764    super(value);
10765  }
10766  applyPeer(node, reset) {
10767    if (reset) {
10768      getUINativeModule().select.resetSelectedOptionFontColor(node);
10769    }
10770    else {
10771      getUINativeModule().select.setSelectedOptionFontColor(node, this.value);
10772    }
10773  }
10774  checkObjectDiff() {
10775    return !isBaseOrResourceEqual(this.stageValue, this.value);
10776  }
10777}
10778SelectedOptionFontColorModifier.identity = Symbol('selectSelectedOptionFontColor');
10779class SelectOptionWidthModifier extends ModifierWithKey {
10780  constructor(value) {
10781    super(value);
10782  }
10783  applyPeer(node, reset) {
10784    if (reset) {
10785      getUINativeModule().select.resetOptionWidth(node);
10786    } else {
10787      getUINativeModule().select.setOptionWidth(node, this.value);
10788    }
10789  }
10790
10791  checkObjectDiff() {
10792    return !isBaseOrResourceEqual(this.stageValue, this.value);
10793  }
10794}
10795SelectOptionWidthModifier.identity = Symbol('selectOptionWidth');
10796class SelectOptionHeightModifier extends ModifierWithKey {
10797  constructor(value) {
10798    super(value);
10799  }
10800  applyPeer(node, reset) {
10801    if (reset) {
10802      getUINativeModule().select.resetOptionHeight(node);
10803    } else {
10804      getUINativeModule().select.setOptionHeight(node, this.value);
10805    }
10806  }
10807
10808  checkObjectDiff() {
10809    return !isBaseOrResourceEqual(this.stageValue, this.value);
10810  }
10811}
10812SelectOptionHeightModifier.identity = Symbol('selectOptionHeight');
10813class SelectWidthModifier extends ModifierWithKey {
10814  constructor(value) {
10815    super(value);
10816  }
10817  applyPeer(node, reset) {
10818    if (reset) {
10819      getUINativeModule().select.resetWidth(node);
10820    } else {
10821      getUINativeModule().select.setWidth(node, this.value);
10822    }
10823  }
10824
10825  checkObjectDiff() {
10826    return !isBaseOrResourceEqual(this.stageValue, this.value);
10827  }
10828}
10829SelectWidthModifier.identity = Symbol('selectWidth');
10830class SelectHeightModifier extends ModifierWithKey {
10831  constructor(value) {
10832    super(value);
10833  }
10834  applyPeer(node, reset) {
10835    if (reset) {
10836      getUINativeModule().select.resetHeight(node);
10837    } else {
10838      getUINativeModule().select.setHeight(node, this.value);
10839    }
10840  }
10841
10842  checkObjectDiff() {
10843    return !isBaseOrResourceEqual(this.stageValue, this.value);
10844  }
10845}
10846SelectHeightModifier.identity = Symbol('selectHeight');
10847class SelectSizeModifier extends ModifierWithKey {
10848  constructor(value) {
10849    super(value);
10850  }
10851  applyPeer(node, reset) {
10852    if (reset) {
10853      getUINativeModule().select.resetSize(node);
10854    } else {
10855      getUINativeModule().select.setSize(node, this.value.width, this.value.height);
10856    }
10857  }
10858
10859  checkObjectDiff() {
10860    return !isBaseOrResourceEqual(this.stageValue.width, this.value.width) ||
10861      !isBaseOrResourceEqual(this.stageValue.height, this.value.height);
10862  }
10863}
10864SelectSizeModifier.identity = Symbol('selectSize');
10865// @ts-ignore
10866globalThis.Select.attributeModifier = function (modifier) {
10867  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
10868  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
10869  let component = this.createOrGetNode(elmtId, () => {
10870    return new ArkSelectComponent(nativeNode);
10871  });
10872  applyUIAttributes(modifier, nativeNode, component);
10873  component.applyModifierPatch();
10874};
10875
10876/// <reference path='./import.ts' />
10877class ArkRadioComponent extends ArkComponent {
10878  constructor(nativePtr) {
10879    super(nativePtr);
10880  }
10881  onGestureJudgeBegin(callback) {
10882    throw new Error('Method not implemented.');
10883  }
10884  checked(value) {
10885    modifierWithKey(this._modifiersWithKeys, RadioCheckedModifier.identity, RadioCheckedModifier, value);
10886    return this;
10887  }
10888  onChange(callback) {
10889    throw new Error('Method not implemented.');
10890  }
10891  radioStyle(value) {
10892    modifierWithKey(this._modifiersWithKeys, RadioStyleModifier.identity, RadioStyleModifier, value);
10893    return this;
10894  }
10895  width(value) {
10896    modifierWithKey(this._modifiersWithKeys, RadioWidthModifier.identity, RadioWidthModifier, value);
10897    return this;
10898  }
10899  height(value) {
10900    modifierWithKey(this._modifiersWithKeys, RadioHeightModifier.identity, RadioHeightModifier, value);
10901    return this;
10902  }
10903  size(value) {
10904    modifierWithKey(this._modifiersWithKeys, RadioSizeModifier.identity, RadioSizeModifier, value);
10905    return this;
10906  }
10907  hoverEffect(value) {
10908    modifierWithKey(this._modifiersWithKeys, RadioHoverEffectModifier.identity, RadioHoverEffectModifier, value);
10909    return this;
10910  }
10911  padding(value) {
10912    modifierWithKey(this._modifiersWithKeys, RadioPaddingModifier.identity, RadioPaddingModifier, value);
10913    return this;
10914  }
10915  responseRegion(value) {
10916    modifierWithKey(this._modifiersWithKeys, RadioResponseRegionModifier.identity, RadioResponseRegionModifier, value);
10917    return this;
10918  }
10919}
10920class RadioCheckedModifier extends ModifierWithKey {
10921  constructor(value) {
10922    super(value);
10923  }
10924  applyPeer(node, reset) {
10925    if (reset) {
10926      getUINativeModule().radio.resetRadioChecked(node);
10927    }
10928    else {
10929      getUINativeModule().radio.setRadioChecked(node, this.value);
10930    }
10931  }
10932}
10933RadioCheckedModifier.identity = Symbol('radioChecked');
10934class RadioStyleModifier extends ModifierWithKey {
10935  constructor(value) {
10936    super(value);
10937  }
10938  applyPeer(node, reset) {
10939    if (reset) {
10940      getUINativeModule().radio.resetRadioStyle(node);
10941    }
10942    else {
10943      getUINativeModule().radio.setRadioStyle(node, this.value.checkedBackgroundColor, this.value.uncheckedBorderColor, this.value.indicatorColor);
10944    }
10945  }
10946  checkObjectDiff() {
10947    let checkedBackgroundColorEQ = isBaseOrResourceEqual(this.stageValue.checkedBackgroundColor, this.value.checkedBackgroundColor);
10948    let uncheckedBorderColorEQ = isBaseOrResourceEqual(this.stageValue.uncheckedBorderColor, this.value.uncheckedBorderColor);
10949    let indicatorColorEQ = isBaseOrResourceEqual(this.stageValue.indicatorColor, this.value.indicatorColor);
10950    return !checkedBackgroundColorEQ ||
10951      !uncheckedBorderColorEQ ||
10952      !indicatorColorEQ;
10953  }
10954}
10955RadioStyleModifier.identity = Symbol('radioStyle');
10956class RadioWidthModifier extends ModifierWithKey {
10957  constructor(value) {
10958    super(value);
10959  }
10960  applyPeer(node, reset) {
10961    if (reset) {
10962      getUINativeModule().radio.resetRadioWidth(node);
10963    }
10964    else {
10965      getUINativeModule().radio.setRadioWidth(node, this.value);
10966    }
10967  }
10968  checkObjectDiff() {
10969    return !isBaseOrResourceEqual(this.stageValue, this.value);
10970  }
10971}
10972RadioWidthModifier.identity = Symbol('radioWidth');
10973class RadioHeightModifier extends ModifierWithKey {
10974  constructor(value) {
10975    super(value);
10976  }
10977  applyPeer(node, reset) {
10978    if (reset) {
10979      getUINativeModule().radio.resetRadioHeight(node);
10980    }
10981    else {
10982      getUINativeModule().radio.setRadioHeight(node, this.value);
10983    }
10984  }
10985  checkObjectDiff() {
10986    return !isBaseOrResourceEqual(this.stageValue, this.value);
10987  }
10988}
10989RadioHeightModifier.identity = Symbol('radioHeight');
10990class RadioSizeModifier extends ModifierWithKey {
10991  constructor(value) {
10992    super(value);
10993  }
10994  applyPeer(node, reset) {
10995    if (reset) {
10996      getUINativeModule().radio.resetRadioSize(node);
10997    }
10998    else {
10999      getUINativeModule().radio.setRadioSize(node, this.value.width, this.value.height);
11000    }
11001  }
11002  checkObjectDiff() {
11003    return !isBaseOrResourceEqual(this.stageValue.width, this.value.width) ||
11004      !isBaseOrResourceEqual(this.stageValue.height, this.value.height);
11005  }
11006}
11007RadioSizeModifier.identity = Symbol('radioSize');
11008class RadioHoverEffectModifier extends ModifierWithKey {
11009  constructor(value) {
11010    super(value);
11011  }
11012  applyPeer(node, reset) {
11013    if (reset) {
11014      getUINativeModule().radio.resetRadioHoverEffect(node);
11015    }
11016    else {
11017      getUINativeModule().radio.setRadioHoverEffect(node, this.value);
11018    }
11019  }
11020  checkObjectDiff() {
11021    return !isBaseOrResourceEqual(this.stageValue, this.value);
11022  }
11023}
11024RadioHoverEffectModifier.identity = Symbol('radioHoverEffect');
11025class RadioPaddingModifier extends ModifierWithKey {
11026  constructor(value) {
11027    super(value);
11028  }
11029  applyPeer(node, reset) {
11030    if (reset) {
11031      getUINativeModule().radio.resetRadioPadding(node);
11032    }
11033    else {
11034      let paddingTop;
11035      let paddingRight;
11036      let paddingBottom;
11037      let paddingLeft;
11038      if (this.value !== null && this.value !== undefined) {
11039        if (isLengthType(this.value) || isResource(this.value)) {
11040          paddingTop = this.value;
11041          paddingRight = this.value;
11042          paddingBottom = this.value;
11043          paddingLeft = this.value;
11044        }
11045        else {
11046          paddingTop = this.value.top;
11047          paddingRight = this.value.right;
11048          paddingBottom = this.value.bottom;
11049          paddingLeft = this.value.left;
11050        }
11051      }
11052      getUINativeModule().radio.setRadioPadding(node, paddingTop, paddingRight, paddingBottom, paddingLeft);
11053    }
11054  }
11055  checkObjectDiff() {
11056    if (isResource(this.stageValue) && isResource(this.value)) {
11057      return !isResourceEqual(this.stageValue, this.value);
11058    } else if (!isResource(this.stageValue) && !isResource(this.value)) {
11059      return !(this.stageValue.left === this.value.left &&
11060        this.stageValue.right === this.value.right &&
11061        this.stageValue.top === this.value.top &&
11062        this.stageValue.bottom === this.value.bottom);
11063    } else {
11064      return true;
11065    }
11066  }
11067}
11068RadioPaddingModifier.identity = Symbol('radioPadding');
11069class RadioResponseRegionModifier extends ModifierWithKey {
11070  constructor(value) {
11071    super(value);
11072  }
11073  applyPeer(node, reset) {
11074    let _a, _b, _c, _d, _e, _f, _g, _h;
11075    if (reset) {
11076      getUINativeModule().radio.resetRadioResponseRegion(node);
11077    }
11078    else {
11079      let responseRegion = [];
11080      if (Array.isArray(this.value)) {
11081        for (let i = 0; i < this.value.length; i++) {
11082          responseRegion.push((_a = this.value[i].x) !== null && _a !== void 0 ? _a : 'PLACEHOLDER');
11083          responseRegion.push((_b = this.value[i].y) !== null && _b !== void 0 ? _b : 'PLACEHOLDER');
11084          responseRegion.push((_c = this.value[i].width) !== null && _c !== void 0 ? _c : 'PLACEHOLDER');
11085          responseRegion.push((_d = this.value[i].height) !== null && _d !== void 0 ? _d : 'PLACEHOLDER');
11086        }
11087      }
11088      else {
11089        responseRegion.push((_e = this.value.x) !== null && _e !== void 0 ? _e : 'PLACEHOLDER');
11090        responseRegion.push((_f = this.value.y) !== null && _f !== void 0 ? _f : 'PLACEHOLDER');
11091        responseRegion.push((_g = this.value.width) !== null && _g !== void 0 ? _g : 'PLACEHOLDER');
11092        responseRegion.push((_h = this.value.height) !== null && _h !== void 0 ? _h : 'PLACEHOLDER');
11093      }
11094      getUINativeModule().radio.setRadioResponseRegion(node, responseRegion, responseRegion.length);
11095    }
11096  }
11097  checkObjectDiff() {
11098    if (Array.isArray(this.value) && Array.isArray(this.stageValue)) {
11099      if (this.value.length !== this.stageValue.length) {
11100        return true;
11101      }
11102      else {
11103        for (let i = 0; i < this.value.length; i++) {
11104          if (!(isBaseOrResourceEqual(this.stageValue[i].x, this.value[i].x) &&
11105            isBaseOrResourceEqual(this.stageValue[i].y, this.value[i].y) &&
11106            isBaseOrResourceEqual(this.stageValue[i].width, this.value[i].width) &&
11107            isBaseOrResourceEqual(this.stageValue[i].height, this.value[i].height))) {
11108            return true;
11109          }
11110        }
11111        return false;
11112      }
11113    }
11114    else if (!Array.isArray(this.value) && !Array.isArray(this.stageValue)) {
11115      return (!(isBaseOrResourceEqual(this.stageValue.x, this.value.x) &&
11116        isBaseOrResourceEqual(this.stageValue.y, this.value.y) &&
11117        isBaseOrResourceEqual(this.stageValue.width, this.value.width) &&
11118        isBaseOrResourceEqual(this.stageValue.height, this.value.height)));
11119    }
11120    else {
11121      return true;
11122    }
11123  }
11124}
11125RadioResponseRegionModifier.identity = Symbol('radioResponseRegion');
11126// @ts-ignore
11127globalThis.Radio.attributeModifier = function (modifier) {
11128  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
11129  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
11130  let component = this.createOrGetNode(elmtId, () => {
11131    return new ArkRadioComponent(nativeNode);
11132  });
11133  applyUIAttributes(modifier, nativeNode, component);
11134  component.applyModifierPatch();
11135};
11136
11137/// <reference path='./import.ts' />
11138class ArkTimePickerComponent extends ArkComponent {
11139  constructor(nativePtr) {
11140    super(nativePtr);
11141  }
11142  onGestureJudgeBegin(callback) {
11143    throw new Error('Method not implemented.');
11144  }
11145  loop(value) {
11146    throw new Error('Method not implemented.');
11147  }
11148  useMilitaryTime(value) {
11149    modifierWithKey(this._modifiersWithKeys, TimepickerUseMilitaryTimeModifier.identity, TimepickerUseMilitaryTimeModifier, value);
11150    return this;
11151  }
11152  disappearTextStyle(value) {
11153    modifierWithKey(this._modifiersWithKeys, TimepickerDisappearTextStyleModifier.identity, TimepickerDisappearTextStyleModifier, value);
11154    return this;
11155  }
11156  textStyle(value) {
11157    modifierWithKey(this._modifiersWithKeys, TimepickerTextStyleModifier.identity, TimepickerTextStyleModifier, value);
11158    return this;
11159  }
11160  selectedTextStyle(value) {
11161    modifierWithKey(this._modifiersWithKeys, TimepickerSelectedTextStyleModifier.identity, TimepickerSelectedTextStyleModifier, value);
11162    return this;
11163  }
11164  onChange(callback) {
11165    throw new Error('Method not implemented.');
11166  }
11167}
11168class TimepickerTextStyleModifier extends ModifierWithKey {
11169  constructor(value) {
11170    super(value);
11171  }
11172  applyPeer(node, reset) {
11173    let _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
11174    if (reset) {
11175      getUINativeModule().timepicker.resetTextStyle(node);
11176    }
11177    else {
11178      getUINativeModule().timepicker.setTextStyle(node, (_b = (_a = this.value) === null ||
11179      _a === void 0 ? void 0 : _a.color) !== null && _b !== void 0 ? _b : undefined,
11180      (_e = (_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.font) === null ||
11181      _d === void 0 ? void 0 : _d.size) !== null && _e !== void 0 ? _e : undefined,
11182      (_h = (_g = (_f = this.value) === null || _f === void 0 ? void 0 : _f.font) === null ||
11183      _g === void 0 ? void 0 : _g.weight) !== null && _h !== void 0 ? _h : undefined,
11184      (_l = (_k = (_j = this.value) === null || _j === void 0 ? void 0 : _j.font) === null ||
11185      _k === void 0 ? void 0 : _k.family) !== null && _l !== void 0 ? _l : undefined,
11186      (_p = (_o = (_m = this.value) === null || _m === void 0 ? void 0 : _m.font) === null ||
11187      _o === void 0 ? void 0 : _o.style) !== null && _p !== void 0 ? _p : undefined);
11188    }
11189  }
11190  checkObjectDiff() {
11191    let _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
11192    if (!(((_b = (_a = this.stageValue) === null || _a === void 0 ? void 0 : _a.font) === null || _b === void 0 ? void 0 : _b.weight) ===
11193    ((_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.font) === null || _d === void 0 ? void 0 : _d.weight) &&
11194      ((_f = (_e = this.stageValue) === null || _e === void 0 ? void 0 : _e.font) === null || _f === void 0 ? void 0 : _f.style) ===
11195      ((_h = (_g = this.value) === null || _g === void 0 ? void 0 : _g.font) === null || _h === void 0 ? void 0 : _h.style))) {
11196      return true;
11197    }
11198    else {
11199      return !isBaseOrResourceEqual((_j = this.stageValue) === null || _j === void 0 ? void 0 : _j.color, (_k = this.value) === null ||
11200      _k === void 0 ? void 0 : _k.color) ||
11201        !isBaseOrResourceEqual((_m = (_l = this.stageValue) === null || _l === void 0 ? void 0 : _l.font) === null ||
11202        _m === void 0 ? void 0 : _m.size, (_p = (_o = this.value) === null || _o === void 0 ? void 0 : _o.font) === null ||
11203        _p === void 0 ? void 0 : _p.size) ||
11204        !isBaseOrResourceEqual((_r = (_q = this.stageValue) === null || _q === void 0 ? void 0 : _q.font) === null ||
11205        _r === void 0 ? void 0 : _r.family, (_t = (_s = this.value) === null || _s === void 0 ? void 0 : _s.font) === null ||
11206        _t === void 0 ? void 0 : _t.family);
11207    }
11208  }
11209}
11210TimepickerTextStyleModifier.identity = Symbol('textStyle');
11211class TimepickerSelectedTextStyleModifier extends ModifierWithKey {
11212  constructor(value) {
11213    super(value);
11214  }
11215  applyPeer(node, reset) {
11216    let _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
11217    if (reset) {
11218      getUINativeModule().timepicker.resetSelectedTextStyle(node);
11219    }
11220    else {
11221      getUINativeModule().timepicker.setSelectedTextStyle(node, (_b = (_a = this.value) === null ||
11222      _a === void 0 ? void 0 : _a.color) !== null && _b !== void 0 ? _b : undefined,
11223      (_e = (_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.font) === null ||
11224      _d === void 0 ? void 0 : _d.size) !== null && _e !== void 0 ? _e : undefined,
11225      (_h = (_g = (_f = this.value) === null || _f === void 0 ? void 0 : _f.font) === null ||
11226      _g === void 0 ? void 0 : _g.weight) !== null && _h !== void 0 ? _h : undefined,
11227      (_l = (_k = (_j = this.value) === null || _j === void 0 ? void 0 : _j.font) === null ||
11228      _k === void 0 ? void 0 : _k.family) !== null && _l !== void 0 ? _l : undefined,
11229      (_p = (_o = (_m = this.value) === null || _m === void 0 ? void 0 : _m.font) === null ||
11230      _o === void 0 ? void 0 : _o.style) !== null && _p !== void 0 ? _p : undefined);
11231    }
11232  }
11233  checkObjectDiff() {
11234    let _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
11235    if (!(((_b = (_a = this.stageValue) === null || _a === void 0 ? void 0 : _a.font) === null || _b === void 0 ? void 0 : _b.weight) ===
11236    ((_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.font) === null || _d === void 0 ? void 0 : _d.weight) &&
11237      ((_f = (_e = this.stageValue) === null || _e === void 0 ? void 0 : _e.font) === null || _f === void 0 ? void 0 : _f.style) ===
11238      ((_h = (_g = this.value) === null || _g === void 0 ? void 0 : _g.font) === null || _h === void 0 ? void 0 : _h.style))) {
11239      return true;
11240    }
11241    else {
11242      return !isBaseOrResourceEqual((_j = this.stageValue) === null || _j === void 0 ? void 0 : _j.color, (_k = this.value) === null || _k === void 0 ? void 0 : _k.color) ||
11243        !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) ||
11244        !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);
11245    }
11246  }
11247}
11248TimepickerSelectedTextStyleModifier.identity = Symbol('selectedTextStyle');
11249class TimepickerDisappearTextStyleModifier extends ModifierWithKey {
11250  constructor(value) {
11251    super(value);
11252  }
11253  applyPeer(node, reset) {
11254    let _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
11255    if (reset) {
11256      getUINativeModule().timepicker.resetDisappearTextStyle(node);
11257    }
11258    else {
11259      getUINativeModule().timepicker.setDisappearTextStyle(node, (_b = (_a = this.value) === null ||
11260      _a === void 0 ? void 0 : _a.color) !== null && _b !== void 0 ? _b : undefined,
11261      (_e = (_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.font) === null ||
11262      _d === void 0 ? void 0 : _d.size) !== null && _e !== void 0 ? _e : undefined,
11263      (_h = (_g = (_f = this.value) === null || _f === void 0 ? void 0 : _f.font) === null ||
11264      _g === void 0 ? void 0 : _g.weight) !== null && _h !== void 0 ? _h : undefined,
11265      (_l = (_k = (_j = this.value) === null || _j === void 0 ? void 0 : _j.font) === null ||
11266      _k === void 0 ? void 0 : _k.family) !== null && _l !== void 0 ? _l : undefined,
11267      (_p = (_o = (_m = this.value) === null || _m === void 0 ? void 0 : _m.font) === null ||
11268      _o === void 0 ? void 0 : _o.style) !== null && _p !== void 0 ? _p : undefined);
11269    }
11270  }
11271  checkObjectDiff() {
11272    let _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
11273    if (!(((_b = (_a = this.stageValue) === null || _a === void 0 ? void 0 : _a.font) === null || _b === void 0 ?
11274      void 0 : _b.weight) === ((_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.font) === null ||
11275      _d === void 0 ? void 0 : _d.weight) &&
11276      ((_f = (_e = this.stageValue) === null || _e === void 0 ? void 0 : _e.font) === null || _f === void 0 ?
11277        void 0 : _f.style) === ((_h = (_g = this.value) === null || _g === void 0 ? void 0 : _g.font) === null ||
11278        _h === void 0 ? void 0 : _h.style))) {
11279      return true;
11280    }
11281    else {
11282      return !isBaseOrResourceEqual((_j = this.stageValue) === null || _j === void 0 ? void 0 : _j.color,
11283      (_k = this.value) === null || _k === void 0 ? void 0 : _k.color) ||
11284        !isBaseOrResourceEqual((_m = (_l = this.stageValue) === null || _l === void 0 ? void 0 : _l.font) === null ||
11285        _m === void 0 ? void 0 : _m.size, (_p = (_o = this.value) === null || _o === void 0 ? void 0 : _o.font) === null ||
11286        _p === void 0 ? void 0 : _p.size) ||
11287        !isBaseOrResourceEqual((_r = (_q = this.stageValue) === null || _q === void 0 ? void 0 : _q.font) === null ||
11288        _r === void 0 ? void 0 : _r.family, (_t = (_s = this.value) === null || _s === void 0 ? void 0 : _s.font) === null ||
11289        _t === void 0 ? void 0 : _t.family);
11290    }
11291  }
11292}
11293TimepickerDisappearTextStyleModifier.identity = Symbol('disappearTextStyle');
11294class TimepickerUseMilitaryTimeModifier extends ModifierWithKey {
11295  constructor(value) {
11296    super(value);
11297  }
11298  applyPeer(node, reset) {
11299    if (reset) {
11300      getUINativeModule().timepicker.resetTimepickerUseMilitaryTime(node);
11301    }
11302    else {
11303      getUINativeModule().timepicker.setTimepickerUseMilitaryTime(node, this.value);
11304    }
11305  }
11306}
11307TimepickerUseMilitaryTimeModifier.identity = Symbol('timepickerUseMilitaryTime');
11308
11309// @ts-ignore
11310globalThis.TimePicker.attributeModifier = function (modifier) {
11311  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
11312  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
11313  let component = this.createOrGetNode(elmtId, () => {
11314    return new ArkTimePickerComponent(nativeNode);
11315  });
11316  applyUIAttributes(modifier, nativeNode, component);
11317  component.applyModifierPatch();
11318};
11319
11320/// <reference path='./import.ts' />
11321class ArkTextPickerComponent extends ArkComponent {
11322  constructor(nativePtr) {
11323    super(nativePtr);
11324  }
11325  onGestureJudgeBegin(callback) {
11326    throw new Error('Method not implemented.');
11327  }
11328  defaultPickerItemHeight(value) {
11329    modifierWithKey(this._modifiersWithKeys, TextpickerDefaultPickerItemHeightModifier.identity, TextpickerDefaultPickerItemHeightModifier, value);
11330    return this;
11331  }
11332  canLoop(value) {
11333    modifierWithKey(this._modifiersWithKeys, TextpickerCanLoopModifier.identity, TextpickerCanLoopModifier, value);
11334    return this;
11335  }
11336  disappearTextStyle(value) {
11337    modifierWithKey(this._modifiersWithKeys, TextpickerDisappearTextStyleModifier.identity, TextpickerDisappearTextStyleModifier, value);
11338    return this;
11339  }
11340  textStyle(value) {
11341    modifierWithKey(this._modifiersWithKeys, TextpickerTextStyleModifier.identity, TextpickerTextStyleModifier, value);
11342    return this;
11343  }
11344  selectedTextStyle(value) {
11345    modifierWithKey(this._modifiersWithKeys, TextpickerSelectedTextStyleModifier.identity, TextpickerSelectedTextStyleModifier, value);
11346    return this;
11347  }
11348  onAccept(callback) {
11349    throw new Error('Method not implemented.');
11350  }
11351  onCancel(callback) {
11352    throw new Error('Method not implemented.');
11353  }
11354  onChange(callback) {
11355    throw new Error('Method not implemented.');
11356  }
11357  selectedIndex(value) {
11358    modifierWithKey(this._modifiersWithKeys, TextpickerSelectedIndexModifier.identity, TextpickerSelectedIndexModifier, value);
11359    return this;
11360  }
11361}
11362class TextpickerCanLoopModifier extends ModifierWithKey {
11363  constructor(value) {
11364    super(value);
11365  }
11366  applyPeer(node, reset) {
11367    if (reset) {
11368      getUINativeModule().textpicker.resetCanLoop(node);
11369    }
11370    else {
11371      getUINativeModule().textpicker.setCanLoop(node, this.value);
11372    }
11373  }
11374}
11375TextpickerCanLoopModifier.identity = Symbol('textpickerCanLoop');
11376class TextpickerSelectedIndexModifier extends ModifierWithKey {
11377  constructor(value) {
11378    super(value);
11379  }
11380  applyPeer(node, reset) {
11381    if (reset) {
11382      getUINativeModule().textpicker.resetSelectedIndex(node);
11383    }
11384    else {
11385      getUINativeModule().textpicker.setSelectedIndex(node, this.value);
11386    }
11387  }
11388  checkObjectDiff() {
11389    if (Array.isArray(this.stageValue) && Array.isArray(this.value)) {
11390      return !deepCompareArrays(this.stageValue, this.value);
11391    }
11392    else if (Array.isArray(this.stageValue) || Array.isArray(this.value)) {
11393      return true;
11394    }
11395    else {
11396      return this.stageValue !== this.value;
11397    }
11398  }
11399}
11400TextpickerSelectedIndexModifier.identity = Symbol('textpickerSelectedIndex');
11401class TextpickerTextStyleModifier extends ModifierWithKey {
11402  constructor(value) {
11403    super(value);
11404  }
11405  applyPeer(node, reset) {
11406    let _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
11407    if (reset) {
11408      getUINativeModule().textpicker.resetTextStyle(node);
11409    }
11410    else {
11411      getUINativeModule().textpicker.setTextStyle(node, (_b = (_a = this.value) === null ||
11412      _a === void 0 ? void 0 : _a.color) !== null && _b !== void 0 ? _b : undefined, (_e =
11413      (_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.font) === null ||
11414      _d === void 0 ? void 0 : _d.size) !== null && _e !== void 0 ? _e : undefined, (_h =
11415      (_g = (_f = this.value) === null || _f === void 0 ? void 0 : _f.font) === null ||
11416      _g === void 0 ? void 0 : _g.weight) !== null && _h !== void 0 ? _h : undefined,
11417      (_l = (_k = (_j = this.value) === null || _j === void 0 ? void 0 : _j.font) === null ||
11418      _k === void 0 ? void 0 : _k.family) !== null && _l !== void 0 ? _l : undefined,
11419      (_p = (_o = (_m = this.value) === null || _m === void 0 ? void 0 : _m.font) === null ||
11420      _o === void 0 ? void 0 : _o.style) !== null && _p !== void 0 ? _p : undefined);
11421    }
11422  }
11423  checkObjectDiff() {
11424    let _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
11425    if (!(((_b = (_a = this.stageValue) === null || _a === void 0 ? void 0 : _a.font) === null || _b === void 0 ? void 0 : _b.weight) ===
11426    ((_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.font) === null || _d === void 0 ? void 0 : _d.weight) &&
11427      ((_f = (_e = this.stageValue) === null || _e === void 0 ? void 0 : _e.font) === null || _f === void 0 ? void 0 : _f.style) ===
11428      ((_h = (_g = this.value) === null || _g === void 0 ? void 0 : _g.font) === null || _h === void 0 ? void 0 : _h.style))) {
11429      return true;
11430    }
11431    else {
11432      return !isBaseOrResourceEqual((_j = this.stageValue) === null || _j === void 0 ? void 0 : _j.color, (_k = this.value) === null ||
11433      _k === void 0 ? void 0 : _k.color) ||
11434        !isBaseOrResourceEqual((_m = (_l = this.stageValue) === null || _l === void 0 ? void 0 : _l.font) === null ||
11435        _m === void 0 ? void 0 : _m.size, (_p = (_o = this.value) === null || _o === void 0 ? void 0 : _o.font) === null ||
11436        _p === void 0 ? void 0 : _p.size) ||
11437        !isBaseOrResourceEqual((_r = (_q = this.stageValue) === null || _q === void 0 ? void 0 : _q.font) === null ||
11438        _r === void 0 ? void 0 : _r.family, (_t = (_s = this.value) === null || _s === void 0 ? void 0 : _s.font) === null ||
11439        _t === void 0 ? void 0 : _t.family);
11440    }
11441  }
11442}
11443TextpickerTextStyleModifier.identity = Symbol('textpickerTextStyle');
11444class TextpickerSelectedTextStyleModifier extends ModifierWithKey {
11445  constructor(value) {
11446    super(value);
11447  }
11448  applyPeer(node, reset) {
11449    let _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
11450    if (reset) {
11451      getUINativeModule().textpicker.resetSelectedTextStyle(node);
11452    }
11453    else {
11454      getUINativeModule().textpicker.setSelectedTextStyle(node, (_b =
11455        (_a = this.value) === null || _a === void 0 ? void 0 : _a.color) !== null &&
11456        _b !== void 0 ? _b : undefined, (_e = (_d = (_c = this.value) === null ||
11457        _c === void 0 ? void 0 : _c.font) === null ||
11458        _d === void 0 ? void 0 : _d.size) !== null && _e !== void 0 ? _e : undefined,
11459        (_h = (_g = (_f = this.value) === null || _f === void 0 ? void 0 : _f.font) === null ||
11460        _g === void 0 ? void 0 : _g.weight) !== null && _h !== void 0 ? _h : undefined,
11461        (_l = (_k = (_j = this.value) === null || _j === void 0 ? void 0 : _j.font) === null ||
11462        _k === void 0 ? void 0 : _k.family) !== null && _l !== void 0 ? _l : undefined,
11463        (_p = (_o = (_m = this.value) === null || _m === void 0 ? void 0 : _m.font) === null ||
11464        _o === void 0 ? void 0 : _o.style) !== null && _p !== void 0 ? _p : undefined);
11465    }
11466  }
11467  checkObjectDiff() {
11468    let _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
11469    if (!(((_b = (_a = this.stageValue) === null || _a === void 0 ? void 0 : _a.font) === null || _b === void 0 ? void 0 : _b.weight) ===
11470    ((_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.font) === null || _d === void 0 ? void 0 : _d.weight) &&
11471      ((_f = (_e = this.stageValue) === null || _e === void 0 ? void 0 : _e.font) === null || _f === void 0 ? void 0 : _f.style) ===
11472      ((_h = (_g = this.value) === null || _g === void 0 ? void 0 : _g.font) === null || _h === void 0 ? void 0 : _h.style))) {
11473      return true;
11474    }
11475    else {
11476      return !isBaseOrResourceEqual((_j = this.stageValue) === null || _j === void 0 ? void 0 : _j.color, (_k = this.value) === null ||
11477      _k === void 0 ? void 0 : _k.color) ||
11478        !isBaseOrResourceEqual((_m = (_l = this.stageValue) === null || _l === void 0 ? void 0 : _l.font) === null ||
11479        _m === void 0 ? void 0 : _m.size, (_p = (_o = this.value) === null || _o === void 0 ? void 0 : _o.font) === null ||
11480        _p === void 0 ? void 0 : _p.size) ||
11481        !isBaseOrResourceEqual((_r = (_q = this.stageValue) === null || _q === void 0 ? void 0 : _q.font) === null ||
11482        _r === void 0 ? void 0 : _r.family, (_t = (_s = this.value) === null || _s === void 0 ? void 0 : _s.font) === null ||
11483        _t === void 0 ? void 0 : _t.family);
11484    }
11485  }
11486}
11487TextpickerSelectedTextStyleModifier.identity = Symbol('textpickerSelectedTextStyle');
11488class TextpickerDisappearTextStyleModifier extends ModifierWithKey {
11489  constructor(value) {
11490    super(value);
11491  }
11492  applyPeer(node, reset) {
11493    let _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
11494    if (reset) {
11495      getUINativeModule().textpicker.resetDisappearTextStyle(node);
11496    }
11497    else {
11498      getUINativeModule().textpicker.setDisappearTextStyle(node, (_b =
11499        (_a = this.value) === null || _a === void 0 ? void 0 : _a.color) !== null &&
11500        _b !== void 0 ? _b : undefined, (_e = (_d = (_c = this.value) === null ||
11501        _c === void 0 ? void 0 : _c.font) === null || _d === void 0 ? void 0 : _d.size) !== null &&
11502        _e !== void 0 ? _e : undefined, (_h = (_g = (_f = this.value) === null ||
11503        _f === void 0 ? void 0 : _f.font) === null || _g === void 0 ? void 0 : _g.weight) !== null &&
11504        _h !== void 0 ? _h : undefined, (_l = (_k = (_j = this.value) === null ||
11505        _j === void 0 ? void 0 : _j.font) === null || _k === void 0 ? void 0 : _k.family) !== null &&
11506        _l !== void 0 ? _l : undefined, (_p = (_o = (_m = this.value) === null ||
11507        _m === void 0 ? void 0 : _m.font) === null || _o === void 0 ? void 0 : _o.style) !== null &&
11508        _p !== void 0 ? _p : undefined);
11509    }
11510  }
11511  checkObjectDiff() {
11512    let _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
11513    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) &&
11514      ((_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))) {
11515      return true;
11516    }
11517    else {
11518      return !isBaseOrResourceEqual((_j = this.stageValue) === null || _j === void 0 ? void 0 : _j.color, (_k = this.value) === null || _k === void 0 ? void 0 : _k.color) ||
11519        !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) ||
11520        !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);
11521    }
11522  }
11523}
11524TextpickerDisappearTextStyleModifier.identity = Symbol('textpickerDisappearTextStyle');
11525class TextpickerDefaultPickerItemHeightModifier extends ModifierWithKey {
11526  constructor(value) {
11527    super(value);
11528  }
11529  applyPeer(node, reset) {
11530    if (reset) {
11531      getUINativeModule().textpicker.resetDefaultPickerItemHeight(node);
11532    }
11533    else {
11534      getUINativeModule().textpicker.setDefaultPickerItemHeight(node, this.value);
11535    }
11536  }
11537}
11538TextpickerDefaultPickerItemHeightModifier.identity = Symbol('textpickerDefaultPickerItemHeight');
11539// @ts-ignore
11540globalThis.TextPicker.attributeModifier = function (modifier) {
11541  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
11542  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
11543  let component = this.createOrGetNode(elmtId, () => {
11544    return new ArkTextPickerComponent(nativeNode);
11545  });
11546  applyUIAttributes(modifier, nativeNode, component);
11547  component.applyModifierPatch();
11548};
11549
11550/// <reference path='./import.ts' />
11551class ArkSliderComponent extends ArkComponent {
11552  constructor(nativePtr) {
11553    super(nativePtr);
11554  }
11555  onGestureJudgeBegin(callback) {
11556    throw new Error('Method not implemented.');
11557  }
11558  blockColor(value) {
11559    modifierWithKey(this._modifiersWithKeys, BlockColorModifier.identity, BlockColorModifier, value);
11560    return this;
11561  }
11562  trackColor(value) {
11563    modifierWithKey(this._modifiersWithKeys, TrackColorModifier.identity, TrackColorModifier, value);
11564    return this;
11565  }
11566  selectedColor(value) {
11567    modifierWithKey(this._modifiersWithKeys, SelectColorModifier.identity, SelectColorModifier, value);
11568    return this;
11569  }
11570  minLabel(value) {
11571    throw new Error('Method not implemented.');
11572  }
11573  maxLabel(value) {
11574    throw new Error('Method not implemented.');
11575  }
11576  showSteps(value) {
11577    modifier(this._modifiers, ShowStepsModifier, value);
11578    return this;
11579  }
11580  showTips(value, content) {
11581    let showTips = new ArkSliderTips(value, content);
11582    modifierWithKey(this._modifiersWithKeys, ShowTipsModifier.identity, ShowTipsModifier, showTips);
11583    return this;
11584  }
11585  trackThickness(value) {
11586    modifierWithKey(this._modifiersWithKeys, TrackThicknessModifier.identity, TrackThicknessModifier, value);
11587    return this;
11588  }
11589  onChange(callback) {
11590    throw new Error('Method not implemented.');
11591  }
11592  blockBorderColor(value) {
11593    modifierWithKey(this._modifiersWithKeys, BlockBorderColorModifier.identity, BlockBorderColorModifier, value);
11594    return this;
11595  }
11596  blockBorderWidth(value) {
11597    modifierWithKey(this._modifiersWithKeys, BlockBorderWidthModifier.identity, BlockBorderWidthModifier, value);
11598    return this;
11599  }
11600  stepColor(value) {
11601    modifierWithKey(this._modifiersWithKeys, StepColorModifier.identity, StepColorModifier, value);
11602    return this;
11603  }
11604  trackBorderRadius(value) {
11605    modifierWithKey(this._modifiersWithKeys, TrackBorderRadiusModifier.identity, TrackBorderRadiusModifier, value);
11606    return this;
11607  }
11608  blockSize(value) {
11609    modifierWithKey(this._modifiersWithKeys, BlockSizeModifier.identity, BlockSizeModifier, value);
11610    return this;
11611  }
11612  blockStyle(value) {
11613    modifierWithKey(this._modifiersWithKeys, BlockStyleModifier.identity, BlockStyleModifier, value);
11614    return this;
11615  }
11616  stepSize(value) {
11617    modifierWithKey(this._modifiersWithKeys, StepSizeModifier.identity, StepSizeModifier, value);
11618    return this;
11619  }
11620}
11621class BlockStyleModifier extends ModifierWithKey {
11622  constructor(value) {
11623    super(value);
11624  }
11625  applyPeer(node, reset) {
11626    if (reset) {
11627      getUINativeModule().slider.resetBlockStyle(node);
11628    }
11629    else {
11630      getUINativeModule().slider.setBlockStyle(node, this.value);
11631    }
11632  }
11633  checkObjectDiff() {
11634    return !(this.stageValue.type === this.value.type &&
11635      this.stageValue.image === this.value.image &&
11636      this.stageValue.shape === this.value.shape);
11637  }
11638}
11639BlockStyleModifier.identity = Symbol('sliderBlockStyle');
11640class ShowTipsModifier extends ModifierWithKey {
11641  constructor(value) {
11642    super(value);
11643  }
11644  applyPeer(node, reset) {
11645    let _a;
11646    if (reset) {
11647      getUINativeModule().slider.resetShowTips(node);
11648    }
11649    else {
11650      getUINativeModule().slider.setShowTips(node, this.value.showTip, (_a = this.value) === null || _a === void 0 ? void 0 : _a.tipText);
11651    }
11652  }
11653  checkObjectDiff() {
11654    let showTipDiff = this.stageValue.showTip !== this.value.showTip;
11655    let tipTextDiff = !isBaseOrResourceEqual(this.stageValue.tipText, this.value.tipText);
11656    return showTipDiff || tipTextDiff;
11657  }
11658}
11659ShowTipsModifier.identity = Symbol('sliderShowTips');
11660class StepSizeModifier extends ModifierWithKey {
11661  constructor(value) {
11662    super(value);
11663  }
11664  applyPeer(node, reset) {
11665    if (reset) {
11666      getUINativeModule().slider.resetStepSize(node);
11667    }
11668    else {
11669      getUINativeModule().slider.setStepSize(node, this.value);
11670    }
11671  }
11672  checkObjectDiff() {
11673    return !isBaseOrResourceEqual(this.stageValue, this.value);
11674  }
11675}
11676StepSizeModifier.identity = Symbol('sliderStepSize');
11677class BlockSizeModifier extends ModifierWithKey {
11678  constructor(value) {
11679    super(value);
11680  }
11681  applyPeer(node, reset) {
11682    if (reset) {
11683      getUINativeModule().slider.resetBlockSize(node);
11684    }
11685    else {
11686      getUINativeModule().slider.setBlockSize(node, this.value.width, this.value.height);
11687    }
11688  }
11689  checkObjectDiff() {
11690    if (isResource(this.stageValue.height) && isResource(this.value.height) && isResource(this.stageValue.width) && isResource(this.value.width)) {
11691      return !(isResourceEqual(this.stageValue.height, this.value.height) && isResourceEqual(this.stageValue.width, this.value.width));
11692    }
11693    else {
11694      return true;
11695    }
11696  }
11697}
11698BlockSizeModifier.identity = Symbol('sliderBlockSize');
11699class TrackBorderRadiusModifier extends ModifierWithKey {
11700  constructor(value) {
11701    super(value);
11702  }
11703  applyPeer(node, reset) {
11704    if (reset) {
11705      getUINativeModule().slider.resetTrackBorderRadius(node);
11706    }
11707    else {
11708      getUINativeModule().slider.setTrackBorderRadius(node, this.value);
11709    }
11710  }
11711  checkObjectDiff() {
11712    return !isBaseOrResourceEqual(this.stageValue, this.value);
11713  }
11714}
11715TrackBorderRadiusModifier.identity = Symbol('sliderTrackBorderRadius');
11716class StepColorModifier extends ModifierWithKey {
11717  constructor(value) {
11718    super(value);
11719  }
11720  applyPeer(node, reset) {
11721    if (reset) {
11722      getUINativeModule().slider.resetStepColor(node);
11723    }
11724    else {
11725      getUINativeModule().slider.setStepColor(node, this.value);
11726    }
11727  }
11728  checkObjectDiff() {
11729    return !isBaseOrResourceEqual(this.stageValue, this.value);
11730  }
11731}
11732StepColorModifier.identity = Symbol('sliderStepColor');
11733class BlockBorderColorModifier extends ModifierWithKey {
11734  constructor(value) {
11735    super(value);
11736  }
11737  applyPeer(node, reset) {
11738    if (reset) {
11739      getUINativeModule().slider.resetBlockBorderColor(node);
11740    }
11741    else {
11742      getUINativeModule().slider.setBlockBorderColor(node, this.value);
11743    }
11744  }
11745  checkObjectDiff() {
11746    return !isBaseOrResourceEqual(this.stageValue, this.value);
11747  }
11748}
11749BlockBorderColorModifier.identity = Symbol('sliderBlockBorderColor');
11750class BlockBorderWidthModifier extends ModifierWithKey {
11751  constructor(value) {
11752    super(value);
11753  }
11754  applyPeer(node, reset) {
11755    if (reset) {
11756      getUINativeModule().slider.resetBlockBorderWidth(node);
11757    }
11758    else {
11759      getUINativeModule().slider.setBlockBorderWidth(node, this.value);
11760    }
11761  }
11762  checkObjectDiff() {
11763    return !isBaseOrResourceEqual(this.stageValue, this.value);
11764  }
11765}
11766BlockBorderWidthModifier.identity = Symbol('sliderBlockBorderWidth');
11767class BlockColorModifier extends ModifierWithKey {
11768  constructor(value) {
11769    super(value);
11770  }
11771  applyPeer(node, reset) {
11772    if (reset) {
11773      getUINativeModule().slider.resetBlockColor(node);
11774    }
11775    else {
11776      getUINativeModule().slider.setBlockColor(node, this.value);
11777    }
11778  }
11779  checkObjectDiff() {
11780    return !isBaseOrResourceEqual(this.stageValue, this.value);
11781  }
11782}
11783BlockColorModifier.identity = Symbol('sliderBlockColor');
11784class TrackColorModifier extends ModifierWithKey {
11785  constructor(value) {
11786    super(value);
11787  }
11788  applyPeer(node, reset) {
11789    if (reset) {
11790      getUINativeModule().slider.resetTrackBackgroundColor(node);
11791    }
11792    else {
11793      getUINativeModule().slider.setTrackBackgroundColor(node, this.value);
11794    }
11795  }
11796  checkObjectDiff() {
11797    return !isBaseOrResourceEqual(this.stageValue, this.value);
11798  }
11799}
11800TrackColorModifier.identity = Symbol('sliderTrackColor');
11801class SelectColorModifier extends ModifierWithKey {
11802  constructor(value) {
11803    super(value);
11804  }
11805  applyPeer(node, reset) {
11806    if (reset) {
11807      getUINativeModule().slider.resetSelectColor(node);
11808    }
11809    else {
11810      getUINativeModule().slider.setSelectColor(node, this.value);
11811    }
11812  }
11813  checkObjectDiff() {
11814    return !isBaseOrResourceEqual(this.stageValue, this.value);
11815  }
11816}
11817SelectColorModifier.identity = Symbol('sliderSelectColor');
11818class ShowStepsModifier extends ModifierWithKey {
11819  constructor(value) {
11820    super(value);
11821  }
11822  applyPeer(node, reset) {
11823    if (reset) {
11824      getUINativeModule().slider.resetShowSteps(node);
11825    }
11826    else {
11827      getUINativeModule().slider.setShowSteps(node, this.value);
11828    }
11829  }
11830  checkObjectDiff() {
11831    return this.stageValue !== this.value;
11832  }
11833}
11834ShowStepsModifier.identity = Symbol('sliderShowSteps');
11835class TrackThicknessModifier extends ModifierWithKey {
11836  constructor(value) {
11837    super(value);
11838  }
11839  applyPeer(node, reset) {
11840    if (reset) {
11841      getUINativeModule().slider.resetThickness(node);
11842    }
11843    else {
11844      getUINativeModule().slider.setThickness(node, this.value);
11845    }
11846  }
11847  checkObjectDiff() {
11848    return !isBaseOrResourceEqual(this.stageValue, this.value);
11849  }
11850}
11851TrackThicknessModifier.identity = Symbol('sliderTrackThickness');
11852// @ts-ignore
11853globalThis.Slider.attributeModifier = function (modifier) {
11854  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
11855  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
11856  let component = this.createOrGetNode(elmtId, () => {
11857    return new ArkSliderComponent(nativeNode);
11858  });
11859  applyUIAttributes(modifier, nativeNode, component);
11860  component.applyModifierPatch();
11861};
11862
11863/// <reference path='./import.ts' />
11864class RatingStarsModifier extends ModifierWithKey {
11865  constructor(value) {
11866    super(value);
11867  }
11868  applyPeer(node, reset) {
11869    if (reset) {
11870      getUINativeModule().rating.resetStars(node);
11871    }
11872    else {
11873      getUINativeModule().rating.setStars(node, this.value);
11874    }
11875  }
11876}
11877RatingStarsModifier.identity = Symbol('ratingStars');
11878class RatingStepSizeModifier extends ModifierWithKey {
11879  constructor(value) {
11880    super(value);
11881  }
11882  applyPeer(node, reset) {
11883    if (reset) {
11884      getUINativeModule().rating.resetStepSize(node);
11885    }
11886    else {
11887      getUINativeModule().rating.setStepSize(node, this.value);
11888    }
11889  }
11890}
11891RatingStepSizeModifier.identity = Symbol('ratingStepSize');
11892class RatingStarStyleModifier extends ModifierWithKey {
11893  constructor(value) {
11894    super(value);
11895  }
11896  applyPeer(node, reset) {
11897    let _a, _b, _c;
11898    if (reset) {
11899      getUINativeModule().rating.resetStarStyle(node);
11900    }
11901    else {
11902      getUINativeModule().rating.setStarStyle(node, (_a = this.value) === null ||
11903      _a === void 0 ? void 0 : _a.backgroundUri, (_b = this.value) === null ||
11904      _b === void 0 ? void 0 : _b.foregroundUri, (_c = this.value) === null ||
11905      _c === void 0 ? void 0 : _c.secondaryUri);
11906    }
11907  }
11908  checkObjectDiff() {
11909    let _a, _b, _c, _d, _e, _f;
11910    return ((_a = this.stageValue) === null || _a === void 0 ? void 0 : _a.backgroundUri) !==
11911      ((_b = this.value) === null || _b === void 0 ? void 0 : _b.backgroundUri) ||
11912      ((_c = this.stageValue) === null || _c === void 0 ? void 0 : _c.foregroundUri) !==
11913      ((_d = this.value) === null || _d === void 0 ? void 0 : _d.foregroundUri) ||
11914      ((_e = this.stageValue) === null || _e === void 0 ? void 0 : _e.secondaryUri) !==
11915      ((_f = this.value) === null || _f === void 0 ? void 0 : _f.secondaryUri);
11916  }
11917}
11918RatingStarStyleModifier.identity = Symbol('ratingStarStyle');
11919class ArkRatingComponent extends ArkComponent {
11920  constructor(nativePtr) {
11921    super(nativePtr);
11922  }
11923  onGestureJudgeBegin(callback) {
11924    throw new Error('Method not implemented.');
11925  }
11926  stars(value) {
11927    modifierWithKey(this._modifiersWithKeys, RatingStarsModifier.identity, RatingStarsModifier, value);
11928    return this;
11929  }
11930  stepSize(value) {
11931    modifierWithKey(this._modifiersWithKeys, RatingStepSizeModifier.identity, RatingStepSizeModifier, value);
11932    return this;
11933  }
11934  starStyle(value) {
11935    let starStyle = new ArkStarStyle();
11936    if (!isUndefined(value)) {
11937      starStyle.backgroundUri = value.backgroundUri;
11938      starStyle.foregroundUri = value.foregroundUri;
11939      starStyle.secondaryUri = value.secondaryUri;
11940      modifierWithKey(this._modifiersWithKeys, RatingStarStyleModifier.identity, RatingStarStyleModifier, value);
11941    }
11942    else {
11943      modifierWithKey(this._modifiersWithKeys, RatingStarStyleModifier.identity, RatingStarStyleModifier, undefined);
11944    }
11945    return this;
11946  }
11947  onChange(callback) {
11948    throw new Error('Method not implemented.');
11949  }
11950}
11951// @ts-ignore
11952globalThis.Rating.attributeModifier = function (modifier) {
11953  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
11954  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
11955  let component = this.createOrGetNode(elmtId, () => {
11956    return new ArkRatingComponent(nativeNode);
11957  });
11958  applyUIAttributes(modifier, nativeNode, component);
11959  component.applyModifierPatch();
11960};
11961
11962/// <reference path='./import.ts' />
11963class ArkCheckboxComponent extends ArkComponent {
11964  constructor(nativePtr) {
11965    super(nativePtr);
11966  }
11967  shape(value) {
11968    throw new Error('Method not implemented.');
11969  }
11970  width(value) {
11971    modifierWithKey(this._modifiersWithKeys, CheckboxWidthModifier.identity, CheckboxWidthModifier, value);
11972    return this;
11973  }
11974  height(value) {
11975    modifierWithKey(this._modifiersWithKeys, CheckboxHeightModifier.identity, CheckboxHeightModifier, value);
11976    return this;
11977  }
11978  select(value) {
11979    modifierWithKey(this._modifiersWithKeys, CheckboxSelectModifier.identity, CheckboxSelectModifier, value);
11980    return this;
11981  }
11982  selectedColor(value) {
11983    modifierWithKey(this._modifiersWithKeys, CheckboxSelectedColorModifier.identity, CheckboxSelectedColorModifier, value);
11984    return this;
11985  }
11986  unselectedColor(value) {
11987    modifierWithKey(this._modifiersWithKeys, CheckboxUnselectedColorModifier.identity, CheckboxUnselectedColorModifier, value);
11988    return this;
11989  }
11990  mark(value) {
11991    modifierWithKey(this._modifiersWithKeys, CheckboxMarkModifier.identity, CheckboxMarkModifier, value);
11992    return this;
11993  }
11994  padding(value) {
11995    let arkValue = new ArkPadding();
11996    if (value !== null && value !== undefined) {
11997      if (isLengthType(value) || isResource(value)) {
11998        arkValue.top = value;
11999        arkValue.right = value;
12000        arkValue.bottom = value;
12001        arkValue.left = value;
12002      }
12003      else {
12004        arkValue.top = value.top;
12005        arkValue.right = value.right;
12006        arkValue.bottom = value.bottom;
12007        arkValue.left = value.left;
12008      }
12009      modifierWithKey(this._modifiersWithKeys, CheckBoxPaddingModifier.identity, CheckBoxPaddingModifier, arkValue);
12010    }
12011    else {
12012      modifierWithKey(this._modifiersWithKeys, CheckBoxPaddingModifier.identity, CheckBoxPaddingModifier, undefined);
12013    }
12014    return this;
12015  }
12016  size(value) {
12017    modifierWithKey(this._modifiersWithKeys, CheckBoxSizeModifier.identity, CheckBoxSizeModifier, value);
12018    return this;
12019  }
12020  responseRegion(value) {
12021    modifierWithKey(this._modifiersWithKeys, CheckBoxResponseRegionModifier.identity, CheckBoxResponseRegionModifier, value);
12022    return this;
12023  }
12024  onChange(callback) {
12025    throw new Error('Method not implemented.');
12026  }
12027}
12028class CheckBoxResponseRegionModifier extends ModifierWithKey {
12029  constructor(value) {
12030    super(value);
12031  }
12032  applyPeer(node, reset) {
12033    let _a, _b, _c, _d, _e, _f, _g, _h;
12034    if (reset) {
12035      getUINativeModule().checkbox.resetCheckboxResponseRegion(node);
12036    }
12037    else {
12038      let responseRegion = [];
12039      if (Array.isArray(this.value)) {
12040        for (let i = 0; i < this.value.length; i++) {
12041          responseRegion.push((_a = this.value[i].x) !== null && _a !== void 0 ? _a : 'PLACEHOLDER');
12042          responseRegion.push((_b = this.value[i].y) !== null && _b !== void 0 ? _b : 'PLACEHOLDER');
12043          responseRegion.push((_c = this.value[i].width) !== null && _c !== void 0 ? _c : 'PLACEHOLDER');
12044          responseRegion.push((_d = this.value[i].height) !== null && _d !== void 0 ? _d : 'PLACEHOLDER');
12045        }
12046      }
12047      else {
12048        responseRegion.push((_e = this.value.x) !== null && _e !== void 0 ? _e : 'PLACEHOLDER');
12049        responseRegion.push((_f = this.value.y) !== null && _f !== void 0 ? _f : 'PLACEHOLDER');
12050        responseRegion.push((_g = this.value.width) !== null && _g !== void 0 ? _g : 'PLACEHOLDER');
12051        responseRegion.push((_h = this.value.height) !== null && _h !== void 0 ? _h : 'PLACEHOLDER');
12052      }
12053      getUINativeModule().checkbox.setCheckboxResponseRegion(node, responseRegion, responseRegion.length);
12054    }
12055  }
12056  checkObjectDiff() {
12057    if (Array.isArray(this.value) && Array.isArray(this.stageValue)) {
12058      if (this.value.length !== this.stageValue.length) {
12059        return true;
12060      }
12061      else {
12062        for (let i = 0; i < this.value.length; i++) {
12063          if (!(isBaseOrResourceEqual(this.stageValue[i].x, this.value[i].x) &&
12064            isBaseOrResourceEqual(this.stageValue[i].y, this.value[i].y) &&
12065            isBaseOrResourceEqual(this.stageValue[i].width, this.value[i].width) &&
12066            isBaseOrResourceEqual(this.stageValue[i].height, this.value[i].height))) {
12067            return true;
12068          }
12069        }
12070        return false;
12071      }
12072    }
12073    else if (!Array.isArray(this.value) && !Array.isArray(this.stageValue)) {
12074      return (!(isBaseOrResourceEqual(this.stageValue.x, this.value.x) &&
12075        isBaseOrResourceEqual(this.stageValue.y, this.value.y) &&
12076        isBaseOrResourceEqual(this.stageValue.width, this.value.width) &&
12077        isBaseOrResourceEqual(this.stageValue.height, this.value.height)));
12078    }
12079    else {
12080      return true;
12081    }
12082  }
12083}
12084CheckBoxResponseRegionModifier.identity = Symbol('responseRegion');
12085class CheckBoxSizeModifier extends ModifierWithKey {
12086  constructor(value) {
12087    super(value);
12088  }
12089  applyPeer(node, reset) {
12090    if (reset) {
12091      getUINativeModule().checkbox.resetCheckboxSize(node);
12092    }
12093    else {
12094      getUINativeModule().checkbox.setCheckboxSize(node, this.value.width, this.value.height);
12095    }
12096  }
12097  checkObjectDiff() {
12098    return !isBaseOrResourceEqual(this.stageValue.width, this.value.width) ||
12099      !isBaseOrResourceEqual(this.stageValue.height, this.value.height);
12100  }
12101}
12102CheckBoxSizeModifier.identity = Symbol('size');
12103class CheckBoxPaddingModifier extends ModifierWithKey {
12104  constructor(value) {
12105    super(value);
12106  }
12107  applyPeer(node, reset) {
12108    if (reset) {
12109      getUINativeModule().checkbox.resetCheckboxPadding(node);
12110    }
12111    else {
12112      getUINativeModule().checkbox.setCheckboxPadding(node, this.value.top, this.value.right, this.value.bottom, this.value.left);
12113    }
12114  }
12115  checkObjectDiff() {
12116    return !isBaseOrResourceEqual(this.stageValue.top, this.value.top) ||
12117      !isBaseOrResourceEqual(this.stageValue.right, this.value.right) ||
12118      !isBaseOrResourceEqual(this.stageValue.bottom, this.value.bottom) ||
12119      !isBaseOrResourceEqual(this.stageValue.left, this.value.left);
12120  }
12121}
12122CheckBoxPaddingModifier.identity = Symbol('padding');
12123class CheckboxMarkModifier extends ModifierWithKey {
12124  constructor(value) {
12125    super(value);
12126  }
12127  applyPeer(node, reset) {
12128    let _a, _b, _c;
12129    if (reset) {
12130      getUINativeModule().checkbox.resetMark(node);
12131    }
12132    else {
12133      getUINativeModule().checkbox.setMark(node, (_a = this.value) === null ||
12134      _a === void 0 ? void 0 : _a.strokeColor, (_b = this.value) === null ||
12135      _b === void 0 ? void 0 : _b.size, (_c = this.value) === null ||
12136      _c === void 0 ? void 0 : _c.strokeWidth);
12137    }
12138  }
12139  checkObjectDiff() {
12140    let colorEQ = isBaseOrResourceEqual(this.stageValue.strokeColor, this.value.strokeColor);
12141    let sizeEQ = isBaseOrResourceEqual(this.stageValue.size, this.value.size);
12142    let widthEQ = isBaseOrResourceEqual(this.stageValue.strokeWidth, this.value.strokeWidth);
12143    return !colorEQ || !sizeEQ || !widthEQ;
12144  }
12145}
12146CheckboxMarkModifier.identity = Symbol('checkboxMark');
12147class CheckboxSelectModifier extends ModifierWithKey {
12148  constructor(value) {
12149    super(value);
12150  }
12151  applyPeer(node, reset) {
12152    if (reset) {
12153      getUINativeModule().checkbox.resetSelect(node);
12154    }
12155    else {
12156      getUINativeModule().checkbox.setSelect(node, this.value);
12157    }
12158  }
12159  checkObjectDiff() {
12160    return this.stageValue !== this.value;
12161  }
12162}
12163CheckboxSelectModifier.identity = Symbol('checkboxSelect');
12164class CheckboxHeightModifier extends ModifierWithKey {
12165  constructor(value) {
12166    super(value);
12167  }
12168  applyPeer(node, reset) {
12169    if (reset) {
12170      getUINativeModule().checkbox.resetHeight(node);
12171    }
12172    else {
12173      getUINativeModule().checkbox.setHeight(node, this.value);
12174    }
12175  }
12176  checkObjectDiff() {
12177    return !isBaseOrResourceEqual(this.stageValue, this.value);
12178  }
12179}
12180CheckboxHeightModifier.identity = Symbol('checkboxHeight');
12181class CheckboxWidthModifier extends ModifierWithKey {
12182  constructor(value) {
12183    super(value);
12184  }
12185  applyPeer(node, reset) {
12186    if (reset) {
12187      getUINativeModule().checkbox.resetWidth(node);
12188    }
12189    else {
12190      getUINativeModule().checkbox.setWidth(node, this.value);
12191    }
12192  }
12193  checkObjectDiff() {
12194    return !isBaseOrResourceEqual(this.stageValue, this.value);
12195  }
12196}
12197CheckboxWidthModifier.identity = Symbol('checkboxWidth');
12198class CheckboxSelectedColorModifier extends ModifierWithKey {
12199  constructor(value) {
12200    super(value);
12201  }
12202  applyPeer(node, reset) {
12203    if (reset) {
12204      getUINativeModule().checkbox.resetSelectedColor(node);
12205    }
12206    else {
12207      getUINativeModule().checkbox.setSelectedColor(node, this.value);
12208    }
12209  }
12210  checkObjectDiff() {
12211    return !isBaseOrResourceEqual(this.stageValue, this.value);
12212  }
12213}
12214CheckboxSelectedColorModifier.identity = Symbol('checkboxSelectedColor');
12215class CheckboxUnselectedColorModifier extends ModifierWithKey {
12216  constructor(value) {
12217    super(value);
12218  }
12219  applyPeer(node, reset) {
12220    if (reset) {
12221      getUINativeModule().checkbox.resetUnSelectedColor(node);
12222    }
12223    else {
12224      getUINativeModule().checkbox.setUnSelectedColor(node, this.value);
12225    }
12226  }
12227  checkObjectDiff() {
12228    return !isBaseOrResourceEqual(this.stageValue, this.value);
12229  }
12230}
12231CheckboxUnselectedColorModifier.identity = Symbol('checkboxUnselectedColor');
12232// @ts-ignore
12233globalThis.Checkbox.attributeModifier = function (modifier) {
12234  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
12235  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
12236  let component = this.createOrGetNode(elmtId, () => {
12237    return new ArkCheckboxComponent(nativeNode);
12238  });
12239  applyUIAttributes(modifier, nativeNode, component);
12240  component.applyModifierPatch();
12241};
12242
12243/// <reference path='./import.ts' />
12244class ArkNavDestinationComponent extends ArkComponent {
12245  constructor(nativePtr) {
12246    super(nativePtr);
12247  }
12248  title(value) {
12249    throw new Error('Method not implemented.');
12250  }
12251  hideTitleBar(value) {
12252    modifierWithKey(this._modifiersWithKeys, HideTitleBarModifier.identity, HideTitleBarModifier, value);
12253    return this;
12254  }
12255  onShown(callback) {
12256    throw new Error('Method not implemented.');
12257  }
12258  onHidden(callback) {
12259    throw new Error('Method not implemented.');
12260  }
12261  onBackPressed(callback) {
12262    throw new Error('Method not implemented.');
12263  }
12264}
12265class HideTitleBarModifier extends ModifierWithKey {
12266  constructor(value) {
12267    super(value);
12268  }
12269  applyPeer(node, reset) {
12270    if (reset) {
12271      getUINativeModule().navDestination.resetHideTitleBar(node);
12272    }
12273    else {
12274      getUINativeModule().navDestination.setHideTitleBar(node, this.value);
12275    }
12276  }
12277}
12278HideTitleBarModifier.identity = Symbol('hideTitleBar');
12279//@ts-ignore
12280globalThis.NavDestination.attributeModifier = function (modifier) {
12281  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
12282  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
12283  let component = this.createOrGetNode(elmtId, () => {
12284    return new ArkNavDestinationComponent(nativeNode);
12285  });
12286  applyUIAttributes(modifier, nativeNode, component);
12287  component.applyModifierPatch();
12288};
12289
12290/// <reference path='./import.ts' />
12291class ArkCounterComponent extends ArkComponent {
12292  constructor(nativePtr) {
12293    super(nativePtr);
12294  }
12295  onInc(event) {
12296    throw new Error('Method not implemented.');
12297  }
12298  onDec(event) {
12299    throw new Error('Method not implemented.');
12300  }
12301  enableDec(value) {
12302    modifierWithKey(this._modifiersWithKeys, EnableDecModifier.identity, EnableDecModifier, value);
12303    return this;
12304  }
12305  enableInc(value) {
12306    modifierWithKey(this._modifiersWithKeys, EnableIncModifier.identity, EnableIncModifier, value);
12307    return this;
12308  }
12309  backgroundColor(value) {
12310    modifierWithKey(this._modifiersWithKeys, CounterBackgroundColorModifier.identity, CounterBackgroundColorModifier, value);
12311    return this;
12312  }
12313  width(value) {
12314    modifierWithKey(this._modifiersWithKeys, CounterWidthModifier.identity, CounterWidthModifier, value);
12315    return this;
12316  }
12317  height(value) {
12318    modifierWithKey(this._modifiersWithKeys, CounterHeightModifier.identity, CounterHeightModifier, value);
12319    return this;
12320  }
12321  size(value) {
12322    modifierWithKey(this._modifiersWithKeys, CounterSizeModifier.identity, CounterSizeModifier, value);
12323    return this;
12324  }
12325}
12326class CounterHeightModifier extends ModifierWithKey {
12327  constructor(value) {
12328    super(value);
12329  }
12330  applyPeer(node, reset) {
12331    if (reset) {
12332      getUINativeModule().counter.resetCounterHeight(node);
12333    }
12334    else {
12335      getUINativeModule().counter.setCounterHeight(node, this.value);
12336    }
12337  }
12338  checkObjectDiff() {
12339    return !isBaseOrResourceEqual(this.stageValue, this.value);
12340  }
12341}
12342CounterHeightModifier.identity = Symbol('CounterHeight');
12343class CounterWidthModifier extends ModifierWithKey {
12344  constructor(value) {
12345    super(value);
12346  }
12347  applyPeer(node, reset) {
12348    if (reset) {
12349      getUINativeModule().counter.resetCounterWidth(node);
12350    }
12351    else {
12352      getUINativeModule().counter.setCounterWidth(node, this.value);
12353    }
12354  }
12355  checkObjectDiff() {
12356    return !isBaseOrResourceEqual(this.stageValue, this.value);
12357  }
12358}
12359CounterWidthModifier.identity = Symbol('CounterWidth');
12360class CounterBackgroundColorModifier extends ModifierWithKey {
12361  constructor(value) {
12362    super(value);
12363  }
12364  applyPeer(node, reset) {
12365    if (reset) {
12366      getUINativeModule().counter.resetCounterBackgroundColor(node);
12367    }
12368    else {
12369      getUINativeModule().counter.setCounterBackgroundColor(node, this.value);
12370    }
12371  }
12372  checkObjectDiff() {
12373    return !isBaseOrResourceEqual(this.stageValue, this.value);
12374  }
12375}
12376CounterBackgroundColorModifier.identity = Symbol('CounterBackgroundColor');
12377class CounterSizeModifier extends ModifierWithKey {
12378  constructor(value) {
12379    super(value);
12380  }
12381  applyPeer(node, reset) {
12382    if (reset) {
12383      getUINativeModule().counter.resetCounterSize(node);
12384    }
12385    else {
12386      getUINativeModule().counter.setCounterSize(node, this.value.width, this.value.height);
12387    }
12388  }
12389  checkObjectDiff() {
12390    return !isBaseOrResourceEqual(this.stageValue.width, this.value.width) ||
12391      !isBaseOrResourceEqual(this.stageValue.height, this.value.height);
12392  }
12393}
12394CounterSizeModifier.identity = Symbol('CounterSize');
12395class EnableIncModifier extends ModifierWithKey {
12396  constructor(value) {
12397    super(value);
12398  }
12399  applyPeer(node, reset) {
12400    if (reset) {
12401      getUINativeModule().counter.resetEnableInc(node);
12402    }
12403    else {
12404      getUINativeModule().counter.setEnableInc(node, this.value);
12405    }
12406  }
12407}
12408EnableIncModifier.identity = Symbol('enableInc');
12409class EnableDecModifier extends ModifierWithKey {
12410  constructor(value) {
12411    super(value);
12412  }
12413  applyPeer(node, reset) {
12414    if (reset) {
12415      getUINativeModule().counter.resetEnableDec(node);
12416    }
12417    else {
12418      getUINativeModule().counter.setEnableDec(node, this.value);
12419    }
12420  }
12421}
12422EnableDecModifier.identity = Symbol('enableDec');
12423// @ts-ignore
12424globalThis.Counter.attributeModifier = function (modifier) {
12425  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
12426  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
12427  let component = this.createOrGetNode(elmtId, () => {
12428    return new ArkCounterComponent(nativeNode);
12429  });
12430  applyUIAttributes(modifier, nativeNode, component);
12431  component.applyModifierPatch();
12432};
12433
12434/// <reference path='./import.ts' />
12435class CheckboxGroupSelectAllModifier extends ModifierWithKey {
12436  constructor(value) {
12437    super(value);
12438  }
12439  applyPeer(node, reset) {
12440    if (reset) {
12441      getUINativeModule().checkboxgroup.resetCheckboxGroupSelectAll(node);
12442    }
12443    else {
12444      getUINativeModule().checkboxgroup.setCheckboxGroupSelectAll(node, this.value);
12445    }
12446  }
12447}
12448CheckboxGroupSelectAllModifier.identity = Symbol('checkboxgroupSelectAll');
12449class CheckboxGroupSelectedColorModifier extends ModifierWithKey {
12450  constructor(value) {
12451    super(value);
12452  }
12453  applyPeer(node, reset) {
12454    if (reset) {
12455      getUINativeModule().checkboxgroup.resetCheckboxGroupSelectedColor(node);
12456    }
12457    else {
12458      getUINativeModule().checkboxgroup.setCheckboxGroupSelectedColor(node, this.value);
12459    }
12460  }
12461  checkObjectDiff() {
12462    return !isBaseOrResourceEqual(this.stageValue, this.value);
12463  }
12464}
12465CheckboxGroupSelectedColorModifier.identity = Symbol('checkboxgroupSelectedColor');
12466class CheckboxGroupUnselectedColorModifier extends ModifierWithKey {
12467  constructor(value) {
12468    super(value);
12469  }
12470  applyPeer(node, reset) {
12471    if (reset) {
12472      getUINativeModule().checkboxgroup.resetCheckboxGroupUnSelectedColor(node);
12473    }
12474    else {
12475      getUINativeModule().checkboxgroup.setCheckboxGroupUnSelectedColor(node, this.value);
12476    }
12477  }
12478  checkObjectDiff() {
12479    return !isBaseOrResourceEqual(this.stageValue, this.value);
12480  }
12481}
12482CheckboxGroupUnselectedColorModifier.identity = Symbol('checkboxgroupUnselectedColor');
12483class CheckboxGroupMarkModifier extends ModifierWithKey {
12484  constructor(value) {
12485    super(value);
12486  }
12487  applyPeer(node, reset) {
12488    let _a, _b, _c;
12489    if (reset) {
12490      getUINativeModule().checkboxgroup.resetCheckboxGroupMark(node);
12491    }
12492    else {
12493      getUINativeModule().checkboxgroup.setCheckboxGroupMark(node, (_a = this.value) === null ||
12494      _a === void 0 ? void 0 : _a.strokeColor, (_b = this.value) === null ||
12495      _b === void 0 ? void 0 : _b.size, (_c = this.value) === null ||
12496      _c === void 0 ? void 0 : _c.strokeWidth);
12497    }
12498  }
12499  checkObjectDiff() {
12500    let colorEQ = isBaseOrResourceEqual(this.stageValue.strokeColor, this.value.strokeColor);
12501    let sizeEQ = isBaseOrResourceEqual(this.stageValue.size, this.value.size);
12502    let widthEQ = isBaseOrResourceEqual(this.stageValue.strokeWidth, this.value.strokeWidth);
12503    return !colorEQ || !sizeEQ || !widthEQ;
12504  }
12505}
12506CheckboxGroupMarkModifier.identity = Symbol('checkboxgroupMark');
12507class CheckboxGroupWidthModifier extends ModifierWithKey {
12508  constructor(value) {
12509    super(value);
12510  }
12511  applyPeer(node, reset) {
12512    if (reset) {
12513      getUINativeModule().checkboxgroup.resetCheckboxGroupWidth(node);
12514    }
12515    else {
12516      getUINativeModule().checkboxgroup.setCheckboxGroupWidth(node, this.value);
12517    }
12518  }
12519  checkObjectDiff() {
12520    return !isBaseOrResourceEqual(this.stageValue, this.value);
12521  }
12522}
12523CheckboxGroupWidthModifier.identity = Symbol('checkboxGroupWidth');
12524class CheckboxGroupSizeModifier extends ModifierWithKey {
12525  constructor(value) {
12526    super(value);
12527  }
12528  applyPeer(node, reset) {
12529    if (reset) {
12530      getUINativeModule().checkboxgroup.resetCheckboxGroupSize(node);
12531    }
12532    else {
12533      getUINativeModule().checkboxgroup.setCheckboxGroupSize(node, this.value.width, this.value.height);
12534    }
12535  }
12536  checkObjectDiff() {
12537    return !isBaseOrResourceEqual(this.stageValue.width, this.value.width) ||
12538      !isBaseOrResourceEqual(this.stageValue.height, this.value.height);
12539  }
12540}
12541CheckboxGroupSizeModifier.identity = Symbol('checkboxGroupSize');
12542class CheckboxGroupHeightModifier extends ModifierWithKey {
12543  constructor(value) {
12544    super(value);
12545  }
12546  applyPeer(node, reset) {
12547    if (reset) {
12548      getUINativeModule().checkboxgroup.resetCheckboxGroupHeight(node);
12549    }
12550    else {
12551      getUINativeModule().checkboxgroup.setCheckboxGroupHeight(node, this.value);
12552    }
12553  }
12554  checkObjectDiff() {
12555    return !isBaseOrResourceEqual(this.stageValue, this.value);
12556  }
12557}
12558CheckboxGroupHeightModifier.identity = Symbol('checkboxGroupHeight');
12559class ArkCheckboxGroupComponent extends ArkComponent {
12560  constructor(nativePtr) {
12561    super(nativePtr);
12562  }
12563  selectAll(value) {
12564    modifierWithKey(this._modifiersWithKeys, CheckboxGroupSelectAllModifier.identity, CheckboxGroupSelectAllModifier, value);
12565    return this;
12566  }
12567  selectedColor(value) {
12568    modifierWithKey(this._modifiersWithKeys, CheckboxGroupSelectedColorModifier.identity, CheckboxGroupSelectedColorModifier, value);
12569    return this;
12570  }
12571  unselectedColor(value) {
12572    modifierWithKey(this._modifiersWithKeys, CheckboxGroupUnselectedColorModifier.identity, CheckboxGroupUnselectedColorModifier, value);
12573    return this;
12574  }
12575  mark(value) {
12576    modifierWithKey(this._modifiersWithKeys, CheckboxGroupMarkModifier.identity, CheckboxGroupMarkModifier, value);
12577    return this;
12578  }
12579  onChange(callback) {
12580    throw new Error('Method not implemented.');
12581  }
12582  size(value) {
12583    modifierWithKey(this._modifiersWithKeys, CheckboxGroupSizeModifier.identity, CheckboxGroupSizeModifier, value);
12584    return this;
12585  }
12586  width(value) {
12587    modifierWithKey(this._modifiersWithKeys, CheckboxGroupWidthModifier.identity, CheckboxGroupWidthModifier, value);
12588    return this;
12589  }
12590  height(value) {
12591    modifierWithKey(this._modifiersWithKeys, CheckboxGroupHeightModifier.identity, CheckboxGroupHeightModifier, value);
12592    return this;
12593  }
12594}
12595// @ts-ignore
12596globalThis.CheckboxGroup.attributeModifier = function (modifier) {
12597  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
12598  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
12599  let component = this.createOrGetNode(elmtId, () => {
12600    return new ArkCheckboxGroupComponent(nativeNode);
12601  });
12602  applyUIAttributes(modifier, nativeNode, component);
12603  component.applyModifierPatch();
12604};
12605
12606/// <reference path='./import.ts' />
12607class ArkPanelComponent extends ArkComponent {
12608  constructor(nativePtr) {
12609    super(nativePtr);
12610  }
12611  mode(value) {
12612    modifierWithKey(this._modifiersWithKeys, PanelModeModifier.identity, PanelModeModifier, value);
12613    return this;
12614  }
12615  type(value) {
12616    modifierWithKey(this._modifiersWithKeys, PanelTypeModifier.identity, PanelTypeModifier, value);
12617    return this;
12618  }
12619  dragBar(value) {
12620    modifierWithKey(this._modifiersWithKeys, DragBarModifier.identity, DragBarModifier, value);
12621    return this;
12622  }
12623  customHeight(value) {
12624    modifierWithKey(this._modifiersWithKeys, PanelCustomHeightModifier.identity, PanelCustomHeightModifier, value);
12625    return this;
12626  }
12627  fullHeight(value) {
12628    modifierWithKey(this._modifiersWithKeys, PanelFullHeightModifier.identity, PanelFullHeightModifier, value);
12629    return this;
12630  }
12631  halfHeight(value) {
12632    modifierWithKey(this._modifiersWithKeys, PanelHalfHeightModifier.identity, PanelHalfHeightModifier, value);
12633    return this;
12634  }
12635  miniHeight(value) {
12636    modifierWithKey(this._modifiersWithKeys, PanelMiniHeightModifier.identity, PanelMiniHeightModifier, value);
12637    return this;
12638  }
12639  show(value) {
12640    modifierWithKey(this._modifiersWithKeys, ShowModifier.identity, ShowModifier, value);
12641    return this;
12642  }
12643  backgroundMask(color) {
12644    modifierWithKey(this._modifiersWithKeys, PanelBackgroundMaskModifier.identity, PanelBackgroundMaskModifier, color);
12645    return this;
12646  }
12647  showCloseIcon(value) {
12648    modifierWithKey(this._modifiersWithKeys, ShowCloseIconModifier.identity, ShowCloseIconModifier, value);
12649    return this;
12650  }
12651  onChange(event) {
12652    throw new Error('Method not implemented.');
12653  }
12654  onHeightChange(callback) {
12655    throw new Error('Method not implemented.');
12656  }
12657}
12658class PanelBackgroundMaskModifier extends ModifierWithKey {
12659  constructor(value) {
12660    super(value);
12661  }
12662  applyPeer(node, reset) {
12663    if (reset) {
12664      getUINativeModule().panel.resetPanelBackgroundMask(node);
12665    }
12666    else {
12667      getUINativeModule().panel.setPanelBackgroundMask(node, this.value);
12668    }
12669  }
12670  checkObjectDiff() {
12671    return !isBaseOrResourceEqual(this.stageValue, this.value);
12672  }
12673}
12674PanelBackgroundMaskModifier.identity = Symbol('panelBackgroundMask');
12675class PanelModeModifier extends ModifierWithKey {
12676  constructor(value) {
12677    super(value);
12678  }
12679  applyPeer(node, reset) {
12680    if (reset) {
12681      getUINativeModule().panel.resetPanelMode(node);
12682    }
12683    else {
12684      getUINativeModule().panel.setPanelMode(node, this.value);
12685    }
12686  }
12687  checkObjectDiff() {
12688    return !isBaseOrResourceEqual(this.stageValue, this.value);
12689  }
12690}
12691PanelModeModifier.identity = Symbol('panelMode');
12692class PanelTypeModifier extends ModifierWithKey {
12693  constructor(value) {
12694    super(value);
12695  }
12696  applyPeer(node, reset) {
12697    if (reset) {
12698      getUINativeModule().panel.resetPanelType(node);
12699    }
12700    else {
12701      getUINativeModule().panel.setPanelType(node, this.value);
12702    }
12703  }
12704  checkObjectDiff() {
12705    return !isBaseOrResourceEqual(this.stageValue, this.value);
12706  }
12707}
12708PanelTypeModifier.identity = Symbol('panelType');
12709class PanelCustomHeightModifier extends ModifierWithKey {
12710  constructor(value) {
12711    super(value);
12712  }
12713  applyPeer(node, reset) {
12714    if (reset) {
12715      getUINativeModule().panel.resetPanelCustomHeight(node);
12716    }
12717    else {
12718      getUINativeModule().panel.setPanelCustomHeight(node, this.value);
12719    }
12720  }
12721  checkObjectDiff() {
12722    return !isBaseOrResourceEqual(this.stageValue, this.value);
12723  }
12724}
12725PanelCustomHeightModifier.identity = Symbol('panelCustomHeight');
12726class PanelFullHeightModifier extends ModifierWithKey {
12727  constructor(value) {
12728    super(value);
12729  }
12730  applyPeer(node, reset) {
12731    if (reset) {
12732      getUINativeModule().panel.resetPanelFullHeight(node);
12733    }
12734    else {
12735      getUINativeModule().panel.setPanelFullHeight(node, this.value);
12736    }
12737  }
12738  checkObjectDiff() {
12739    return !isBaseOrResourceEqual(this.stageValue, this.value);
12740  }
12741}
12742PanelFullHeightModifier.identity = Symbol('panelFullHeight');
12743class PanelHalfHeightModifier extends ModifierWithKey {
12744  constructor(value) {
12745    super(value);
12746  }
12747  applyPeer(node, reset) {
12748    if (reset) {
12749      getUINativeModule().panel.resetPanelHalfHeight(node);
12750    }
12751    else {
12752      getUINativeModule().panel.setPanelHalfHeight(node, this.value);
12753    }
12754  }
12755  checkObjectDiff() {
12756    return !isBaseOrResourceEqual(this.stageValue, this.value);
12757  }
12758}
12759PanelHalfHeightModifier.identity = Symbol('panelHalfHeight');
12760class PanelMiniHeightModifier extends ModifierWithKey {
12761  constructor(value) {
12762    super(value);
12763  }
12764  applyPeer(node, reset) {
12765    if (reset) {
12766      getUINativeModule().panel.resetPanelMiniHeight(node);
12767    }
12768    else {
12769      getUINativeModule().panel.setPanelMiniHeight(node, this.value);
12770    }
12771  }
12772  checkObjectDiff() {
12773    return !isBaseOrResourceEqual(this.stageValue, this.value);
12774  }
12775}
12776PanelMiniHeightModifier.identity = Symbol('panelMiniHeight');
12777class ShowCloseIconModifier extends ModifierWithKey {
12778  constructor(value) {
12779    super(value);
12780  }
12781  applyPeer(node, reset) {
12782    if (reset) {
12783      getUINativeModule().panel.resetShowCloseIcon(node);
12784    }
12785    else {
12786      getUINativeModule().panel.setShowCloseIcon(node, this.value);
12787    }
12788  }
12789  checkObjectDiff() {
12790    return !isBaseOrResourceEqual(this.stageValue, this.value);
12791  }
12792}
12793ShowCloseIconModifier.identity = Symbol('showCloseIcon');
12794class DragBarModifier extends ModifierWithKey {
12795  constructor(value) {
12796    super(value);
12797  }
12798  applyPeer(node, reset) {
12799    if (reset) {
12800      getUINativeModule().panel.resetDragBar(node);
12801    }
12802    else {
12803      getUINativeModule().panel.setDragBar(node, this.value);
12804    }
12805  }
12806  checkObjectDiff() {
12807    return !isBaseOrResourceEqual(this.stageValue, this.value);
12808  }
12809}
12810DragBarModifier.identity = Symbol('dragBar');
12811class ShowModifier extends ModifierWithKey {
12812  constructor(value) {
12813    super(value);
12814  }
12815  applyPeer(node, reset) {
12816    if (reset) {
12817      getUINativeModule().panel.resetShow(node);
12818    }
12819    else {
12820      getUINativeModule().panel.setShow(node, this.value);
12821    }
12822  }
12823  checkObjectDiff() {
12824    return !isBaseOrResourceEqual(this.stageValue, this.value);
12825  }
12826}
12827ShowModifier.identity = Symbol('show');
12828// @ts-ignore
12829globalThis.Panel.attributeModifier = function (modifier) {
12830  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
12831  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
12832  let component = this.createOrGetNode(elmtId, () => {
12833    return new ArkPanelComponent(nativeNode);
12834  });
12835  applyUIAttributes(modifier, nativeNode, component);
12836  component.applyModifierPatch();
12837};
12838
12839/// <reference path='./import.ts' />
12840const TITLE_MODE_RANGE = 2;
12841const NAV_BAR_POSITION_RANGE = 1;
12842const NAVIGATION_MODE_RANGE = 2;
12843const DEFAULT_NAV_BAR_WIDTH = 240;
12844const MIN_NAV_BAR_WIDTH_DEFAULT = '240vp';
12845const MAX_NAV_BAR_WIDTH_DEFAULT = '40%';
12846const NAVIGATION_TITLE_MODE_DEFAULT = 0;
12847const DEFAULT_UNIT = 'vp';
12848class ArkNavigationComponent extends ArkComponent {
12849  constructor(nativePtr) {
12850    super(nativePtr);
12851  }
12852  navBarWidth(value) {
12853    modifierWithKey(this._modifiersWithKeys, NavBarWidthModifier.identity, NavBarWidthModifier, value);
12854    return this;
12855  }
12856  navBarPosition(value) {
12857    modifierWithKey(this._modifiersWithKeys, NavBarPositionModifier.identity, NavBarPositionModifier, value);
12858    return this;
12859  }
12860  navBarWidthRange(value) {
12861    modifierWithKey(this._modifiersWithKeys, NavBarWidthRangeModifier.identity, NavBarWidthRangeModifier, value);
12862    return this;
12863  }
12864  minContentWidth(value) {
12865    modifierWithKey(this._modifiersWithKeys, MinContentWidthModifier.identity, MinContentWidthModifier, value);
12866    return this;
12867  }
12868  mode(value) {
12869    modifierWithKey(this._modifiersWithKeys, ModeModifier.identity, ModeModifier, value);
12870    return this;
12871  }
12872  backButtonIcon(value) {
12873    modifierWithKey(this._modifiersWithKeys, BackButtonIconModifier.identity, BackButtonIconModifier, value);
12874    return this;
12875  }
12876  hideNavBar(value) {
12877    modifierWithKey(this._modifiersWithKeys, HideNavBarModifier.identity, HideNavBarModifier, value);
12878    return this;
12879  }
12880  title(value) {
12881    throw new Error('Method not implemented.');
12882  }
12883  subTitle(value) {
12884    modifierWithKey(this._modifiersWithKeys, SubTitleModifier.identity, SubTitleModifier, value);
12885    return this;
12886  }
12887  hideTitleBar(value) {
12888    modifierWithKey(this._modifiersWithKeys, NavigationHideTitleBarModifier.identity, NavigationHideTitleBarModifier, value);
12889    return this;
12890  }
12891  hideBackButton(value) {
12892    modifierWithKey(this._modifiersWithKeys, HideBackButtonModifier.identity, HideBackButtonModifier, value);
12893    return this;
12894  }
12895  titleMode(value) {
12896    modifierWithKey(this._modifiersWithKeys, TitleModeModifier.identity, TitleModeModifier, value);
12897    return this;
12898  }
12899  menus(value) {
12900    throw new Error('Method not implemented.');
12901  }
12902  toolBar(value) {
12903    throw new Error('Method not implemented.');
12904  }
12905  toolbarConfiguration(value) {
12906    throw new Error('Method not implemented.');
12907  }
12908  hideToolBar(value) {
12909    modifierWithKey(this._modifiersWithKeys, HideToolBarModifier.identity, HideToolBarModifier, value);
12910    return this;
12911  }
12912  onTitleModeChange(callback) {
12913    throw new Error('Method not implemented.');
12914  }
12915  onNavBarStateChange(callback) {
12916    throw new Error('Method not implemented.');
12917  }
12918  onNavigationModeChange(callback) {
12919    throw new Error('Method not implemented.');
12920  }
12921  navDestination(builder) {
12922    throw new Error('Method not implemented.');
12923  }
12924}
12925class BackButtonIconModifier extends ModifierWithKey {
12926  constructor(value) {
12927    super(value);
12928  }
12929  applyPeer(node, reset) {
12930    if (reset) {
12931      getUINativeModule().navigation.resetBackButtonIcon(node);
12932    }
12933    else {
12934      getUINativeModule().navigation.setBackButtonIcon(node, this.value);
12935    }
12936  }
12937  checkObjectDiff() {
12938    return !isBaseOrResourceEqual(this.stageValue, this.value);
12939  }
12940}
12941BackButtonIconModifier.identity = Symbol('backButtonIcon');
12942class NavBarWidthRangeModifier extends ModifierWithKey {
12943  constructor(value) {
12944    super(value);
12945  }
12946  applyPeer(node, reset) {
12947    if (reset) {
12948      getUINativeModule().navigation.resetNavBarWidthRange(node);
12949    }
12950    else {
12951      getUINativeModule().navigation.setNavBarWidthRange(node, this.value);
12952    }
12953  }
12954  checkObjectDiff() {
12955    return !isBaseOrResourceEqual(this.stageValue, this.value);
12956  }
12957}
12958NavBarWidthRangeModifier.identity = Symbol('navBarWidthRange');
12959class MinContentWidthModifier extends ModifierWithKey {
12960  constructor(value) {
12961    super(value);
12962  }
12963  applyPeer(node, reset) {
12964    if (reset) {
12965      getUINativeModule().navigation.resetMinContentWidth(node);
12966    }
12967    else {
12968      getUINativeModule().navigation.setMinContentWidth(node, this.value);
12969    }
12970  }
12971  checkObjectDiff() {
12972    return !isBaseOrResourceEqual(this.stageValue, this.value);
12973  }
12974}
12975MinContentWidthModifier.identity = Symbol('minContentWidth');
12976class NavBarWidthModifier extends ModifierWithKey {
12977  constructor(value) {
12978    super(value);
12979  }
12980  applyPeer(node, reset) {
12981    if (reset) {
12982      getUINativeModule().navigation.resetNavBarWidth(node);
12983    }
12984    else {
12985      getUINativeModule().navigation.setNavBarWidth(node, this.value);
12986    }
12987  }
12988  checkObjectDiff() {
12989    return !isBaseOrResourceEqual(this.stageValue, this.value);
12990  }
12991}
12992NavBarWidthModifier.identity = Symbol('navBarWidth');
12993class NavBarPositionModifier extends ModifierWithKey {
12994  constructor(value) {
12995    super(value);
12996  }
12997  applyPeer(node, reset) {
12998    if (reset) {
12999      getUINativeModule().navigation.resetNavBarPosition(node);
13000    }
13001    else {
13002      getUINativeModule().navigation.setNavBarPosition(node, this.value);
13003    }
13004  }
13005}
13006NavBarPositionModifier.identity = Symbol('navBarPosition');
13007class ModeModifier extends ModifierWithKey {
13008  constructor(value) {
13009    super(value);
13010  }
13011  applyPeer(node, reset) {
13012    if (reset) {
13013      getUINativeModule().navigation.resetMode(node);
13014    }
13015    else {
13016      getUINativeModule().navigation.setMode(node, this.value);
13017    }
13018  }
13019}
13020ModeModifier.identity = Symbol('mode');
13021class HideToolBarModifier extends ModifierWithKey {
13022  constructor(value) {
13023    super(value);
13024  }
13025  applyPeer(node, reset) {
13026    if (reset) {
13027      getUINativeModule().navigation.resetHideToolBar(node);
13028    }
13029    else {
13030      getUINativeModule().navigation.setHideToolBar(node, this.value);
13031    }
13032  }
13033}
13034HideToolBarModifier.identity = Symbol('hideToolBar');
13035class TitleModeModifier extends ModifierWithKey {
13036  constructor(value) {
13037    super(value);
13038  }
13039  applyPeer(node, reset) {
13040    if (reset) {
13041      getUINativeModule().navigation.resetTitleMode(node);
13042    }
13043    else {
13044      getUINativeModule().navigation.setTitleMode(node, this.value);
13045    }
13046  }
13047}
13048TitleModeModifier.identity = Symbol('titleMode');
13049class HideBackButtonModifier extends ModifierWithKey {
13050  constructor(value) {
13051    super(value);
13052  }
13053  applyPeer(node, reset) {
13054    if (reset) {
13055      getUINativeModule().navigation.resetHideBackButton(node);
13056    }
13057    else {
13058      getUINativeModule().navigation.setHideBackButton(node, this.value);
13059    }
13060  }
13061}
13062HideBackButtonModifier.identity = Symbol('hideBackButton');
13063class SubTitleModifier extends ModifierWithKey {
13064  constructor(value) {
13065    super(value);
13066  }
13067  applyPeer(node, reset) {
13068    if (reset) {
13069      getUINativeModule().navigation.resetSubTitle(node);
13070    }
13071    else {
13072      getUINativeModule().navigation.setSubTitle(node, this.value);
13073    }
13074  }
13075}
13076SubTitleModifier.identity = Symbol('subTitle');
13077class NavigationHideTitleBarModifier extends ModifierWithKey {
13078  constructor(value) {
13079    super(value);
13080  }
13081  applyPeer(node, reset) {
13082    if (reset) {
13083      getUINativeModule().navigation.resetHideTitleBar(node);
13084    }
13085    else {
13086      getUINativeModule().navigation.setHideTitleBar(node, this.value);
13087    }
13088  }
13089}
13090NavigationHideTitleBarModifier.identity = Symbol('hideTitleBar');
13091class HideNavBarModifier extends ModifierWithKey {
13092  constructor(value) {
13093    super(value);
13094  }
13095  applyPeer(node, reset) {
13096    if (reset) {
13097      getUINativeModule().navigation.resetHideNavBar(node);
13098    }
13099    else {
13100      getUINativeModule().navigation.setHideNavBar(node, this.value);
13101    }
13102  }
13103}
13104HideNavBarModifier.identity = Symbol('hideNavBar');
13105// @ts-ignore
13106globalThis.Navigation.attributeModifier = function (modifier) {
13107  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
13108  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
13109  let component = this.createOrGetNode(elmtId, () => {
13110    return new ArkNavigationComponent(nativeNode);
13111  });
13112  applyUIAttributes(modifier, nativeNode, component);
13113  component.applyModifierPatch();
13114};
13115
13116/// <reference path='./import.ts' />
13117class ArkNavRouterComponent extends ArkComponent {
13118  constructor(nativePtr) {
13119    super(nativePtr);
13120  }
13121  onStateChange(callback) {
13122    throw new Error('Method not implemented.');
13123  }
13124  mode(mode) {
13125    modifierWithKey(this._modifiersWithKeys, NavRouterModeModifier.identity, NavRouterModeModifier, mode);
13126    return this;
13127  }
13128}
13129class NavRouterModeModifier extends ModifierWithKey {
13130  constructor(value) {
13131    super(value);
13132  }
13133  applyPeer(node, reset) {
13134    if (reset) {
13135      getUINativeModule().navRouter.resetMode(node);
13136    }
13137    else {
13138      getUINativeModule().navRouter.setMode(node, this.value);
13139    }
13140  }
13141}
13142NavRouterModeModifier.identity = Symbol('mode');
13143// @ts-ignore
13144globalThis.NavRouter.attributeModifier = function (modifier) {
13145  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
13146  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
13147  let component = this.createOrGetNode(elmtId, () => {
13148    return new ArkNavRouterComponent(nativeNode);
13149  });
13150  applyUIAttributes(modifier, nativeNode, component);
13151  component.applyModifierPatch();
13152};
13153
13154/// <reference path='./import.ts' />
13155class ArkNavigatorComponent extends ArkComponent {
13156  constructor(nativePtr) {
13157    super(nativePtr);
13158  }
13159  active(value) {
13160    modifierWithKey(this._modifiersWithKeys, ActiveModifier.identity, ActiveModifier, value);
13161    return this;
13162  }
13163  type(value) {
13164    modifierWithKey(this._modifiersWithKeys, TypeModifier.identity, TypeModifier, value);
13165    return this;
13166  }
13167  target(value) {
13168    modifierWithKey(this._modifiersWithKeys, TargetModifier.identity, TargetModifier, value);
13169    return this;
13170  }
13171  params(value) {
13172    modifierWithKey(this._modifiersWithKeys, ParamsModifier.identity, ParamsModifier, JSON.stringify(value));
13173    return this;
13174  }
13175}
13176class ParamsModifier extends ModifierWithKey {
13177  constructor(value) {
13178    super(value);
13179  }
13180  applyPeer(node, reset) {
13181    if (reset) {
13182      getUINativeModule().navigator.resetParams(node);
13183    }
13184    else {
13185      getUINativeModule().navigator.setParams(node, this.value);
13186    }
13187  }
13188}
13189ParamsModifier.identity = Symbol('params');
13190class TypeModifier extends ModifierWithKey {
13191  constructor(value) {
13192    super(value);
13193  }
13194  applyPeer(node, reset) {
13195    if (reset) {
13196      getUINativeModule().navigator.resetType(node);
13197    }
13198    else {
13199      getUINativeModule().navigator.setType(node, this.value);
13200    }
13201  }
13202}
13203TypeModifier.identity = Symbol('type');
13204class ActiveModifier extends ModifierWithKey {
13205  constructor(value) {
13206    super(value);
13207  }
13208  applyPeer(node, reset) {
13209    if (reset) {
13210      getUINativeModule().navigator.resetActive(node);
13211    }
13212    else {
13213      getUINativeModule().navigator.setActive(node, this.value);
13214    }
13215  }
13216}
13217ActiveModifier.identity = Symbol('active');
13218class TargetModifier extends ModifierWithKey {
13219  constructor(value) {
13220    super(value);
13221  }
13222  applyPeer(node, reset) {
13223    if (reset) {
13224      getUINativeModule().navigator.resetTarget(node);
13225    }
13226    else {
13227      getUINativeModule().navigator.setTarget(node, this.value);
13228    }
13229  }
13230}
13231TargetModifier.identity = Symbol('target');
13232// @ts-ignore
13233globalThis.Navigator.attributeModifier = function (modifier) {
13234  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
13235  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
13236  let component = this.createOrGetNode(elmtId, () => {
13237    return new ArkNavigatorComponent(nativeNode);
13238  });
13239  applyUIAttributes(modifier, nativeNode, component);
13240  component.applyModifierPatch();
13241};
13242
13243/// <reference path='./import.ts' />
13244class ArkAlphabetIndexerComponent extends ArkComponent {
13245  constructor(nativePtr) {
13246    super(nativePtr);
13247  }
13248  onSelected(callback) {
13249    throw new Error('Method not implemented.');
13250  }
13251  color(value) {
13252    modifierWithKey(this._modifiersWithKeys, ColorModifier.identity, ColorModifier, value);
13253    return this;
13254  }
13255  selectedColor(value) {
13256    modifierWithKey(this._modifiersWithKeys, SelectedColorModifier.identity, SelectedColorModifier, value);
13257    return this;
13258  }
13259  popupColor(value) {
13260    modifierWithKey(this._modifiersWithKeys, PopupColorModifier.identity, PopupColorModifier, value);
13261    return this;
13262  }
13263  selectedBackgroundColor(value) {
13264    modifierWithKey(this._modifiersWithKeys, SelectedBackgroundColorModifier.identity, SelectedBackgroundColorModifier, value);
13265    return this;
13266  }
13267  popupBackground(value) {
13268    modifierWithKey(this._modifiersWithKeys, PopupBackgroundModifier.identity, PopupBackgroundModifier, value);
13269    return this;
13270  }
13271  popupSelectedColor(value) {
13272    modifierWithKey(this._modifiersWithKeys, PopupSelectedColorModifier.identity, PopupSelectedColorModifier, value);
13273    return this;
13274  }
13275  popupUnselectedColor(value) {
13276    modifierWithKey(this._modifiersWithKeys, PopupUnselectedColorModifier.identity, PopupUnselectedColorModifier, value);
13277    return this;
13278  }
13279  popupItemBackgroundColor(value) {
13280    modifierWithKey(this._modifiersWithKeys, PopupItemBackgroundColorModifier.identity, PopupItemBackgroundColorModifier, value);
13281    return this;
13282  }
13283  usingPopup(value) {
13284    modifierWithKey(this._modifiersWithKeys, UsingPopupModifier.identity, UsingPopupModifier, value);
13285    return this;
13286  }
13287  selectedFont(value) {
13288    modifierWithKey(this._modifiersWithKeys, SelectedFontModifier.identity, SelectedFontModifier, value);
13289    return this;
13290  }
13291  popupFont(value) {
13292    modifierWithKey(this._modifiersWithKeys, PopupFontModifier.identity, PopupFontModifier, value);
13293    return this;
13294  }
13295  popupItemFont(value) {
13296    modifierWithKey(this._modifiersWithKeys, PopupItemFontModifier.identity, PopupItemFontModifier, value);
13297    return this;
13298  }
13299  itemSize(value) {
13300    modifierWithKey(this._modifiersWithKeys, ItemSizeModifier.identity, ItemSizeModifier, value);
13301    return this;
13302  }
13303  font(value) {
13304    modifierWithKey(this._modifiersWithKeys, AlphabetIndexerFontModifier.identity, AlphabetIndexerFontModifier, value);
13305    return this;
13306  }
13307  alignStyle(value, offset) {
13308    let alignStyle = new ArkAlignStyle;
13309    alignStyle.indexerAlign = value;
13310    alignStyle.offset = offset;
13311    modifierWithKey(this._modifiersWithKeys, AlignStyleModifier.identity, AlignStyleModifier, alignStyle);
13312    return this;
13313  }
13314  onSelect(callback) {
13315    throw new Error('Method not implemented.');
13316  }
13317  onRequestPopupData(callback) {
13318    throw new Error('Method not implemented.');
13319  }
13320  onPopupSelect(callback) {
13321    throw new Error('Method not implemented.');
13322  }
13323  selected(index) {
13324    modifierWithKey(this._modifiersWithKeys, AlphabetIndexerSelectedModifier.identity, AlphabetIndexerSelectedModifier, index);
13325    return this;
13326  }
13327  popupPosition(value) {
13328    modifierWithKey(this._modifiersWithKeys, PopupPositionModifier.identity, PopupPositionModifier, value);
13329    return this;
13330  }
13331}
13332// @ts-ignore
13333globalThis.AlphabetIndexer.attributeModifier = function (modifier) {
13334  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
13335  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
13336  let component = this.createOrGetNode(elmtId, () => {
13337    return new ArkAlphabetIndexerComponent(nativeNode);
13338  });
13339  applyUIAttributes(modifier, nativeNode, component);
13340  component.applyModifierPatch();
13341};
13342class PopupItemFontModifier extends ModifierWithKey {
13343  constructor(value) {
13344    super(value);
13345  }
13346  applyPeer(node, reset) {
13347    if (reset) {
13348      getUINativeModule().alphabetIndexer.resetPopupItemFont(node);
13349    }
13350    else {
13351      getUINativeModule().alphabetIndexer.setPopupItemFont(node, this.value.size, this.value.weight, this.value.family, this.value.style);
13352    }
13353  }
13354  checkObjectDiff() {
13355    let sizeEQ = isBaseOrResourceEqual(this.stageValue.size, this.value.size);
13356    let weightEQ = this.stageValue.weight === this.value.weight;
13357    let familyEQ = isBaseOrResourceEqual(this.stageValue.family, this.value.family);
13358    let styleEQ = this.stageValue.style === this.value.style;
13359    return !sizeEQ || !weightEQ || !familyEQ || !styleEQ;
13360  }
13361}
13362PopupItemFontModifier.identity = Symbol('popupItemFont');
13363class SelectedFontModifier extends ModifierWithKey {
13364  constructor(value) {
13365    super(value);
13366  }
13367  applyPeer(node, reset) {
13368    if (reset) {
13369      getUINativeModule().alphabetIndexer.resetSelectedFont(node);
13370    }
13371    else {
13372      getUINativeModule().alphabetIndexer.setSelectedFont(node, this.value.size, this.value.weight, this.value.family, this.value.style);
13373    }
13374  }
13375  checkObjectDiff() {
13376    let sizeEQ = isBaseOrResourceEqual(this.stageValue.size, this.value.size);
13377    let weightEQ = this.stageValue.weight === this.value.weight;
13378    let familyEQ = isBaseOrResourceEqual(this.stageValue.family, this.value.family);
13379    let styleEQ = this.stageValue.style === this.value.style;
13380    return !sizeEQ || !weightEQ || !familyEQ || !styleEQ;
13381  }
13382}
13383SelectedFontModifier.identity = Symbol('alphaBetIndexerSelectedFont');
13384class PopupFontModifier extends ModifierWithKey {
13385  constructor(value) {
13386    super(value);
13387  }
13388  applyPeer(node, reset) {
13389    if (reset) {
13390      getUINativeModule().alphabetIndexer.resetPopupFont(node);
13391    }
13392    else {
13393      getUINativeModule().alphabetIndexer.setPopupFont(node, this.value.size, this.value.weight, this.value.family, this.value.style);
13394    }
13395  }
13396  checkObjectDiff() {
13397    let sizeEQ = isBaseOrResourceEqual(this.stageValue.size, this.value.size);
13398    let weightEQ = this.stageValue.weight === this.value.weight;
13399    let familyEQ = isBaseOrResourceEqual(this.stageValue.family, this.value.family);
13400    let styleEQ = this.stageValue.style === this.value.style;
13401    return !sizeEQ || !weightEQ || !familyEQ || !styleEQ;
13402  }
13403}
13404PopupFontModifier.identity = Symbol('popupFont');
13405class AlphabetIndexerFontModifier extends ModifierWithKey {
13406  constructor(value) {
13407    super(value);
13408  }
13409  applyPeer(node, reset) {
13410    if (reset) {
13411      getUINativeModule().alphabetIndexer.resetFont(node);
13412    }
13413    else {
13414      getUINativeModule().alphabetIndexer.setFont(node, this.value.size, this.value.weight, this.value.family, this.value.style);
13415    }
13416  }
13417  checkObjectDiff() {
13418    let sizeEQ = isBaseOrResourceEqual(this.stageValue.size, this.value.size);
13419    let weightEQ = this.stageValue.weight === this.value.weight;
13420    let familyEQ = isBaseOrResourceEqual(this.stageValue.family, this.value.family);
13421    let styleEQ = this.stageValue.style === this.value.style;
13422    return !sizeEQ || !weightEQ || !familyEQ || !styleEQ;
13423  }
13424}
13425AlphabetIndexerFontModifier.identity = Symbol('alphaBetIndexerFont');
13426class PopupItemBackgroundColorModifier extends ModifierWithKey {
13427  constructor(value) {
13428    super(value);
13429  }
13430  applyPeer(node, reset) {
13431    if (reset) {
13432      getUINativeModule().alphabetIndexer.resetPopupItemBackgroundColor(node);
13433    }
13434    else {
13435      getUINativeModule().alphabetIndexer.setPopupItemBackgroundColor(node, this.value);
13436    }
13437  }
13438  checkObjectDiff() {
13439    return !isBaseOrResourceEqual(this.stageValue, this.value);
13440  }
13441}
13442PopupItemBackgroundColorModifier.identity = Symbol('popupItemBackgroundColor');
13443class ColorModifier extends ModifierWithKey {
13444  constructor(value) {
13445    super(value);
13446  }
13447  applyPeer(node, reset) {
13448    if (reset) {
13449      getUINativeModule().alphabetIndexer.resetColor(node);
13450    }
13451    else {
13452      getUINativeModule().alphabetIndexer.setColor(node, this.value);
13453    }
13454  }
13455  checkObjectDiff() {
13456    return !isBaseOrResourceEqual(this.stageValue, this.value);
13457  }
13458}
13459ColorModifier.identity = Symbol('alphabetColor');
13460class PopupColorModifier extends ModifierWithKey {
13461  constructor(value) {
13462    super(value);
13463  }
13464  applyPeer(node, reset) {
13465    if (reset) {
13466      getUINativeModule().alphabetIndexer.resetPopupColor(node);
13467    }
13468    else {
13469      getUINativeModule().alphabetIndexer.setPopupColor(node, this.value);
13470    }
13471  }
13472  checkObjectDiff() {
13473    return !isBaseOrResourceEqual(this.stageValue, this.value);
13474  }
13475}
13476PopupColorModifier.identity = Symbol('popupColor');
13477class SelectedColorModifier extends ModifierWithKey {
13478  constructor(value) {
13479    super(value);
13480  }
13481  applyPeer(node, reset) {
13482    if (reset) {
13483      getUINativeModule().alphabetIndexer.resetSelectedColor(node);
13484    }
13485    else {
13486      getUINativeModule().alphabetIndexer.setSelectedColor(node, this.value);
13487    }
13488  }
13489  checkObjectDiff() {
13490    return !isBaseOrResourceEqual(this.stageValue, this.value);
13491  }
13492}
13493SelectedColorModifier.identity = Symbol('selectedColor');
13494class PopupBackgroundModifier extends ModifierWithKey {
13495  constructor(value) {
13496    super(value);
13497  }
13498  applyPeer(node, reset) {
13499    if (reset) {
13500      getUINativeModule().alphabetIndexer.resetPopupBackground(node);
13501    }
13502    else {
13503      getUINativeModule().alphabetIndexer.setPopupBackground(node, this.value);
13504    }
13505  }
13506  checkObjectDiff() {
13507    return !isBaseOrResourceEqual(this.stageValue, this.value);
13508  }
13509}
13510PopupBackgroundModifier.identity = Symbol('popupBackground');
13511class SelectedBackgroundColorModifier extends ModifierWithKey {
13512  constructor(value) {
13513    super(value);
13514  }
13515  applyPeer(node, reset) {
13516    if (reset) {
13517      getUINativeModule().alphabetIndexer.resetSelectedBackgroundColor(node);
13518    }
13519    else {
13520      getUINativeModule().alphabetIndexer.setSelectedBackgroundColor(node, this.value);
13521    }
13522  }
13523  checkObjectDiff() {
13524    return !isBaseOrResourceEqual(this.stageValue, this.value);
13525  }
13526}
13527SelectedBackgroundColorModifier.identity = Symbol('selectedBackgroundColor');
13528class PopupUnselectedColorModifier extends ModifierWithKey {
13529  constructor(value) {
13530    super(value);
13531  }
13532  applyPeer(node, reset) {
13533    if (reset) {
13534      getUINativeModule().alphabetIndexer.resetPopupUnselectedColor(node);
13535    }
13536    else {
13537      getUINativeModule().alphabetIndexer.setPopupUnselectedColor(node, this.value);
13538    }
13539  }
13540  checkObjectDiff() {
13541    return !isBaseOrResourceEqual(this.stageValue, this.value);
13542  }
13543}
13544PopupUnselectedColorModifier.identity = Symbol('popupUnselectedColor');
13545class PopupSelectedColorModifier extends ModifierWithKey {
13546  constructor(value) {
13547    super(value);
13548  }
13549  applyPeer(node, reset) {
13550    if (reset) {
13551      getUINativeModule().alphabetIndexer.resetPopupSelectedColor(node);
13552    }
13553    else {
13554      getUINativeModule().alphabetIndexer.setPopupSelectedColor(node, this.value);
13555    }
13556  }
13557  checkObjectDiff() {
13558    return !isBaseOrResourceEqual(this.stageValue, this.value);
13559  }
13560}
13561PopupSelectedColorModifier.identity = Symbol('popupSelectedColor');
13562class AlignStyleModifier extends ModifierWithKey {
13563  constructor(value) {
13564    super(value);
13565  }
13566  applyPeer(node, reset) {
13567    if (reset) {
13568      getUINativeModule().alphabetIndexer.resetAlignStyle(node);
13569    }
13570    else {
13571      getUINativeModule().alphabetIndexer.setAlignStyle(node, this.value.indexerAlign, this.value.offset);
13572    }
13573  }
13574  checkObjectDiff() {
13575    let indexerAlignEQ = isBaseOrResourceEqual(this.stageValue.indexerAlign, this.value.indexerAlign);
13576    let offsetEQ = isBaseOrResourceEqual(this.stageValue.offset, this.value.offset);
13577    return !indexerAlignEQ || !offsetEQ;
13578  }
13579}
13580AlignStyleModifier.identity = Symbol('alignStyle');
13581class UsingPopupModifier extends ModifierWithKey {
13582  constructor(value) {
13583    super(value);
13584  }
13585  applyPeer(node, reset) {
13586    if (reset) {
13587      getUINativeModule().alphabetIndexer.resetUsingPopup(node);
13588    }
13589    else {
13590      getUINativeModule().alphabetIndexer.setUsingPopup(node, this.value);
13591    }
13592  }
13593}
13594UsingPopupModifier.identity = Symbol('usingPopup');
13595class AlphabetIndexerSelectedModifier extends ModifierWithKey {
13596  constructor(value) {
13597    super(value);
13598  }
13599  applyPeer(node, reset) {
13600    if (reset) {
13601      getUINativeModule().alphabetIndexer.resetSelected(node);
13602    }
13603    else {
13604      getUINativeModule().alphabetIndexer.setSelected(node, this.value);
13605    }
13606  }
13607}
13608AlphabetIndexerSelectedModifier.identity = Symbol('alphabetIndexerSelected');
13609class ItemSizeModifier extends ModifierWithKey {
13610  constructor(value) {
13611    super(value);
13612  }
13613  applyPeer(node, reset) {
13614    if (reset) {
13615      getUINativeModule().alphabetIndexer.resetItemSize(node);
13616    }
13617    else {
13618      getUINativeModule().alphabetIndexer.setItemSize(node, this.value);
13619    }
13620  }
13621}
13622ItemSizeModifier.identity = Symbol('itemSize');
13623class PopupPositionModifier extends ModifierWithKey {
13624  constructor(value) {
13625    super(value);
13626  }
13627  applyPeer(node, reset) {
13628    if (reset) {
13629      getUINativeModule().alphabetIndexer.resetPopupPosition(node);
13630    }
13631    else {
13632      getUINativeModule().alphabetIndexer.setPopupPosition(node, this.value.x, this.value.y);
13633    }
13634  }
13635  checkObjectDiff() {
13636    let xEQ = isBaseOrResourceEqual(this.stageValue.x, this.value.x);
13637    let yEQ = isBaseOrResourceEqual(this.stageValue.y, this.value.y);
13638    return !xEQ || !yEQ;
13639  }
13640}
13641PopupPositionModifier.identity = Symbol('popupPosition');
13642
13643/// <reference path='./import.ts' />
13644class TextStyleModifier extends ModifierWithKey {
13645  constructor(value) {
13646    super(value);
13647  }
13648  applyPeer(node, reset) {
13649    let _a, _b, _c, _d, _e, _f, _g, _h;
13650    if (reset) {
13651      getUINativeModule().calendarPicker.resetTextStyle(node);
13652    }
13653    else {
13654      getUINativeModule().calendarPicker.setTextStyle(node, (_b = (_a = this.value) === null ||
13655      _a === void 0 ? void 0 : _a.color) !== null && _b !== void 0 ? _b : undefined,
13656      (_e = (_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.font) === null ||
13657      _d === void 0 ? void 0 : _d.size) !== null && _e !== void 0 ? _e : undefined, (_h =
13658      (_g = (_f = this.value) === null || _f === void 0 ? void 0 : _f.font) === null ||
13659      _g === void 0 ? void 0 : _g.weight) !== null && _h !== void 0 ? _h : undefined);
13660    }
13661  }
13662  checkObjectDiff() {
13663    let _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
13664    if (!(((_b = (_a = this.stageValue) === null || _a === void 0 ? void 0 : _a.font) === null || _b === void 0 ? void 0 : _b.weight) ===
13665    ((_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.font) === null || _d === void 0 ? void 0 : _d.weight))) {
13666      return true;
13667    }
13668    else {
13669      return !isBaseOrResourceEqual((_e = this.stageValue) === null || _e === void 0 ? void 0 : _e.color, (_f = this.value) === null ||
13670      _f === void 0 ? void 0 : _f.color) ||
13671        !isBaseOrResourceEqual((_h = (_g = this.stageValue) === null || _g === void 0 ? void 0 : _g.font) === null ||
13672         _h === void 0 ? void 0 : _h.size, (_k = (_j = this.value) === null || _j === void 0 ? void 0 : _j.font) === null ||
13673         _k === void 0 ? void 0 : _k.size);
13674    }
13675  }
13676}
13677TextStyleModifier.identity = Symbol('textStyle');
13678class EdgeAlignModifier extends ModifierWithKey {
13679  constructor(value) {
13680    super(value);
13681  }
13682  applyPeer(node, reset) {
13683    let _a, _b, _c, _d, _e, _f, _g, _h;
13684    if (reset) {
13685      getUINativeModule().calendarPicker.resetEdgeAlign(node);
13686    }
13687    else {
13688      getUINativeModule().calendarPicker.setEdgeAlign(node, (_b = (_a = this.value) === null ||
13689      _a === void 0 ? void 0 : _a.alignType) !== null && _b !== void 0 ? _b : undefined,
13690      (_e = (_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.offset) === null ||
13691      _d === void 0 ? void 0 : _d.dx) !== null && _e !== void 0 ? _e : undefined, (_h = (_g =
13692      (_f = this.value) === null || _f === void 0 ? void 0 : _f.offset) === null ||
13693      _g === void 0 ? void 0 : _g.dy) !== null && _h !== void 0 ? _h : undefined);
13694    }
13695  }
13696  checkObjectDiff() {
13697    let _a, _b, _c, _d, _e, _f, _g, _h;
13698    if (!(this.stageValue.alignType === this.value.alignType)) {
13699      return true;
13700    }
13701    else {
13702      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) ||
13703        !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);
13704    }
13705  }
13706}
13707EdgeAlignModifier.identity = Symbol('edgeAlign');
13708class CalendarPickerPaddingModifier extends ModifierWithKey {
13709  constructor(value) {
13710    super(value);
13711  }
13712  applyPeer(node, reset) {
13713    if (reset) {
13714      getUINativeModule().calendarPicker.resetCalendarPickerPadding(node);
13715    }
13716    else {
13717      getUINativeModule().calendarPicker.setCalendarPickerPadding(node, this.value.top, this.value.right, this.value.bottom, this.value.left);
13718    }
13719  }
13720  checkObjectDiff() {
13721    return !isBaseOrResourceEqual(this.stageValue.top, this.value.top) ||
13722      !isBaseOrResourceEqual(this.stageValue.right, this.value.right) ||
13723      !isBaseOrResourceEqual(this.stageValue.bottom, this.value.bottom) ||
13724      !isBaseOrResourceEqual(this.stageValue.left, this.value.left);
13725  }
13726}
13727CalendarPickerPaddingModifier.identity = Symbol('calendarPickerPadding');
13728class CalendarPickerBorderModifier extends ModifierWithKey {
13729  constructor(value) {
13730    super(value);
13731  }
13732  applyPeer(node, reset) {
13733    if (reset) {
13734      getUINativeModule().calendarPicker.resetCalendarPickerBorder(node);
13735    }
13736    else {
13737      getUINativeModule().calendarPicker.setCalendarPickerBorder(node, this.value.arkWidth.left,
13738        this.value.arkWidth.right, this.value.arkWidth.top, this.value.arkWidth.bottom,
13739        this.value.arkColor.leftColor, this.value.arkColor.rightColor, this.value.arkColor.topColor,
13740        this.value.arkColor.bottomColor, this.value.arkRadius.topLeft, this.value.arkRadius.topRight,
13741        this.value.arkRadius.bottomLeft, this.value.arkRadius.bottomRight, this.value.arkStyle.top,
13742        this.value.arkStyle.right, this.value.arkStyle.bottom, this.value.arkStyle.left);
13743    }
13744  }
13745  checkObjectDiff() {
13746    return this.value.checkObjectDiff(this.stageValue);
13747  }
13748}
13749CalendarPickerBorderModifier.identity = Symbol('calendarPickerBorder');
13750class ArkCalendarPickerComponent extends ArkComponent {
13751  constructor(nativePtr) {
13752    super(nativePtr);
13753  }
13754  edgeAlign(alignType, offset) {
13755    let arkEdgeAlign = new ArkEdgeAlign();
13756    arkEdgeAlign.alignType = alignType;
13757    arkEdgeAlign.offset = offset;
13758    modifierWithKey(this._modifiersWithKeys, EdgeAlignModifier.identity, EdgeAlignModifier, arkEdgeAlign);
13759    return this;
13760  }
13761  textStyle(value) {
13762    modifierWithKey(this._modifiersWithKeys, TextStyleModifier.identity, TextStyleModifier, value);
13763    return this;
13764  }
13765  onChange(callback) {
13766    throw new Error('Method not implemented.');
13767  }
13768  padding(value) {
13769    let arkValue = new ArkPadding();
13770    if (value !== null && value !== undefined) {
13771      if (isLengthType(value) || isResource(value)) {
13772        arkValue.top = value;
13773        arkValue.right = value;
13774        arkValue.bottom = value;
13775        arkValue.left = value;
13776      }
13777      else {
13778        arkValue.top = value.top;
13779        arkValue.right = value.right;
13780        arkValue.bottom = value.bottom;
13781        arkValue.left = value.left;
13782      }
13783      modifierWithKey(this._modifiersWithKeys, CalendarPickerPaddingModifier.identity, CalendarPickerPaddingModifier, arkValue);
13784    }
13785    else {
13786      modifierWithKey(this._modifiersWithKeys, CalendarPickerPaddingModifier.identity, CalendarPickerPaddingModifier, undefined);
13787    }
13788    return this;
13789  }
13790  border(value) {
13791    let _a, _b, _c, _d;
13792    let arkBorder = new ArkBorder();
13793    if (isUndefined(value)) {
13794      arkBorder = undefined;
13795    }
13796    if (!isUndefined(value === null || value === void 0 ? void 0 : value.width) && (value === null || value === void 0 ? void 0 : value.width) !== null) {
13797      if (isNumber(value.width) || isString(value.width) || isResource(value.width)) {
13798        arkBorder.arkWidth.left = value.width;
13799        arkBorder.arkWidth.right = value.width;
13800        arkBorder.arkWidth.top = value.width;
13801        arkBorder.arkWidth.bottom = value.width;
13802      }
13803      else {
13804        arkBorder.arkWidth.left = value.width.left;
13805        arkBorder.arkWidth.right = value.width.right;
13806        arkBorder.arkWidth.top = value.width.top;
13807        arkBorder.arkWidth.bottom = value.width.bottom;
13808      }
13809    }
13810    if (!isUndefined(value === null || value === void 0 ? void 0 : value.color) && (value === null || value === void 0 ? void 0 : value.color) !== null) {
13811      if (isNumber(value.color) || isString(value.color) || isResource(value.color)) {
13812        arkBorder.arkColor.leftColor = value.color;
13813        arkBorder.arkColor.rightColor = value.color;
13814        arkBorder.arkColor.topColor = value.color;
13815        arkBorder.arkColor.bottomColor = value.color;
13816      }
13817      else {
13818        arkBorder.arkColor.leftColor = value.color.left;
13819        arkBorder.arkColor.rightColor = value.color.right;
13820        arkBorder.arkColor.topColor = value.color.top;
13821        arkBorder.arkColor.bottomColor = value.color.bottom;
13822      }
13823    }
13824    if (!isUndefined(value === null || value === void 0 ? void 0 : value.radius) && (value === null || value === void 0 ? void 0 : value.radius) !== null) {
13825      if (isNumber(value.radius) || isString(value.radius) || isResource(value.radius)) {
13826        arkBorder.arkRadius.topLeft = value.radius;
13827        arkBorder.arkRadius.topRight = value.radius;
13828        arkBorder.arkRadius.bottomLeft = value.radius;
13829        arkBorder.arkRadius.bottomRight = value.radius;
13830      }
13831      else {
13832        arkBorder.arkRadius.topLeft = (_a = value.radius) === null || _a === void 0 ? void 0 : _a.topLeft;
13833        arkBorder.arkRadius.topRight = (_b = value.radius) === null || _b === void 0 ? void 0 : _b.topRight;
13834        arkBorder.arkRadius.bottomLeft = (_c = value.radius) === null || _c === void 0 ? void 0 : _c.bottomLeft;
13835        arkBorder.arkRadius.bottomRight = (_d = value.radius) === null || _d === void 0 ? void 0 : _d.bottomRight;
13836      }
13837    }
13838    if (!isUndefined(value === null || value === void 0 ? void 0 : value.style) && (value === null || value === void 0 ? void 0 : value.style) !== null) {
13839      let arkBorderStyle = new ArkBorderStyle();
13840      if (arkBorderStyle.parseBorderStyle(value.style)) {
13841        if (!isUndefined(arkBorderStyle.style)) {
13842          arkBorder.arkStyle.top = arkBorderStyle.style;
13843          arkBorder.arkStyle.left = arkBorderStyle.style;
13844          arkBorder.arkStyle.bottom = arkBorderStyle.style;
13845          arkBorder.arkStyle.right = arkBorderStyle.style;
13846        }
13847        else {
13848          arkBorder.arkStyle.top = arkBorderStyle.top;
13849          arkBorder.arkStyle.left = arkBorderStyle.left;
13850          arkBorder.arkStyle.bottom = arkBorderStyle.bottom;
13851          arkBorder.arkStyle.right = arkBorderStyle.right;
13852        }
13853      }
13854    }
13855    modifierWithKey(this._modifiersWithKeys, CalendarPickerBorderModifier.identity, CalendarPickerBorderModifier, arkBorder);
13856    return this;
13857  }
13858}
13859// @ts-ignore
13860globalThis.CalendarPicker.attributeModifier = function (modifier) {
13861  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
13862  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
13863  let component = this.createOrGetNode(elmtId, () => {
13864    return new ArkCalendarPickerComponent(nativeNode);
13865  });
13866  applyUIAttributes(modifier, nativeNode, component);
13867  component.applyModifierPatch();
13868};
13869
13870/// <reference path='./import.ts' />
13871class ArkDataPanelComponent extends ArkComponent {
13872  constructor(nativePtr) {
13873    super(nativePtr);
13874  }
13875  closeEffect(value) {
13876    modifierWithKey(this._modifiersWithKeys, DataPanelCloseEffectModifier.identity, DataPanelCloseEffectModifier, value);
13877    return this;
13878  }
13879  valueColors(value) {
13880    modifierWithKey(this._modifiersWithKeys, DataPanelValueColorsModifier.identity, DataPanelValueColorsModifier, value);
13881    return this;
13882  }
13883  trackBackgroundColor(value) {
13884    modifierWithKey(this._modifiersWithKeys, DataPanelTrackBackgroundColorModifier.identity, DataPanelTrackBackgroundColorModifier, value);
13885    return this;
13886  }
13887  strokeWidth(value) {
13888    modifierWithKey(this._modifiersWithKeys, DataPanelStrokeWidthModifier.identity, DataPanelStrokeWidthModifier, value);
13889    return this;
13890  }
13891  trackShadow(value) {
13892    modifierWithKey(this._modifiersWithKeys, DataPanelTrackShadowModifier.identity, DataPanelTrackShadowModifier, value);
13893    return this;
13894  }
13895}
13896class DataPanelStrokeWidthModifier extends ModifierWithKey {
13897  applyPeer(node, reset) {
13898    if (reset) {
13899      getUINativeModule().dataPanel.resetDataPanelStrokeWidth(node);
13900    }
13901    else {
13902      getUINativeModule().dataPanel.setDataPanelStrokeWidth(node, this.value);
13903    }
13904  }
13905  checkObjectDiff() {
13906    return !isBaseOrResourceEqual(this.stageValue, this.value);
13907  }
13908}
13909DataPanelStrokeWidthModifier.identity = Symbol('dataPanelStrokeWidth');
13910class DataPanelCloseEffectModifier extends ModifierWithKey {
13911  applyPeer(node, reset) {
13912    if (reset) {
13913      getUINativeModule().dataPanel.resetCloseEffect(node);
13914    }
13915    else {
13916      getUINativeModule().dataPanel.setCloseEffect(node, this.value);
13917    }
13918  }
13919  checkObjectDiff() {
13920    return !isBaseOrResourceEqual(this.stageValue, this.value);
13921  }
13922}
13923DataPanelCloseEffectModifier.identity = Symbol('dataPanelCloseEffect');
13924class DataPanelTrackBackgroundColorModifier extends ModifierWithKey {
13925  applyPeer(node, reset) {
13926    if (reset) {
13927      getUINativeModule().dataPanel.resetDataPanelTrackBackgroundColor(node);
13928    }
13929    else {
13930      getUINativeModule().dataPanel.setDataPanelTrackBackgroundColor(node, this.value);
13931    }
13932  }
13933  checkObjectDiff() {
13934    return !isBaseOrResourceEqual(this.stageValue, this.value);
13935  }
13936}
13937DataPanelTrackBackgroundColorModifier.identity = Symbol('dataPanelTrackBackgroundColorModifier');
13938class DataPanelTrackShadowModifier extends ModifierWithKey {
13939  applyPeer(node, reset) {
13940    if (reset) {
13941      if (this.value === null) {
13942        getUINativeModule().dataPanel.setDataPanelTrackShadow(node, null);
13943      }
13944      getUINativeModule().dataPanel.resetDataPanelTrackShadow(node);
13945    }
13946    else {
13947      getUINativeModule().dataPanel.setDataPanelTrackShadow(node, this.value);
13948    }
13949  }
13950  checkObjectDiff() {
13951    return true;
13952  }
13953}
13954DataPanelTrackShadowModifier.identity = Symbol('dataPanelTrackShadow');
13955class DataPanelValueColorsModifier extends ModifierWithKey {
13956  applyPeer(node, reset) {
13957    if (reset) {
13958      getUINativeModule().dataPanel.resetDataPanelValueColors(node);
13959      return;
13960    }
13961    else {
13962      getUINativeModule().dataPanel.setDataPanelValueColors(node, this.value);
13963    }
13964  }
13965  checkObjectDiff() {
13966    return true;
13967  }
13968}
13969DataPanelValueColorsModifier.identity = Symbol('dataPanelValueColors');
13970// @ts-ignore
13971globalThis.DataPanel.attributeModifier = function (modifier) {
13972  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
13973  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
13974  let component = this.createOrGetNode(elmtId, () => {
13975    return new ArkDataPanelComponent(nativeNode);
13976  });
13977  applyUIAttributes(modifier, nativeNode, component);
13978  component.applyModifierPatch();
13979};
13980
13981/// <reference path='./import.ts' />
13982class ArkDatePickerComponent extends ArkComponent {
13983  constructor(nativePtr) {
13984    super(nativePtr);
13985  }
13986  lunar(value) {
13987    modifierWithKey(this._modifiersWithKeys, DatePickerLunarModifier.identity, DatePickerLunarModifier, value);
13988    return this;
13989  }
13990  disappearTextStyle(value) {
13991    modifierWithKey(this._modifiersWithKeys, DatePickerDisappearTextStyleModifier.identity, DatePickerDisappearTextStyleModifier, value);
13992    return this;
13993  }
13994  textStyle(value) {
13995    modifierWithKey(this._modifiersWithKeys, DatePickerTextStyleModifier.identity, DatePickerTextStyleModifier, value);
13996    return this;
13997  }
13998  selectedTextStyle(value) {
13999    modifierWithKey(this._modifiersWithKeys, DatePickerSelectedTextStyleModifier.identity, DatePickerSelectedTextStyleModifier, value);
14000    return this;
14001  }
14002  onChange(callback) {
14003    throw new Error('Method not implemented.');
14004  }
14005  onDateChange(callback) {
14006    throw new Error('Method not implemented.');
14007  }
14008  backgroundColor(value) {
14009    modifierWithKey(this._modifiersWithKeys, DatePickerBackgroundColorModifier.identity, DatePickerBackgroundColorModifier, value);
14010    return this;
14011  }
14012}
14013class DatePickerLunarModifier extends ModifierWithKey {
14014  constructor(value) {
14015    super(value);
14016  }
14017  applyPeer(node, reset) {
14018    if (reset) {
14019      getUINativeModule().datePicker.resetLunar(node);
14020    }
14021    else {
14022      getUINativeModule().datePicker.setLunar(node, this.value);
14023    }
14024  }
14025}
14026DatePickerLunarModifier.identity = Symbol('lunar');
14027class DatePickerTextStyleModifier extends ModifierWithKey {
14028  constructor(value) {
14029    super(value);
14030  }
14031  applyPeer(node, reset) {
14032    let _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
14033    if (reset) {
14034      getUINativeModule().datePicker.resetTextStyle(node);
14035    }
14036    else {
14037      getUINativeModule().datePicker.setTextStyle(node, (_b = (_a = this.value) === null ||
14038      _a === void 0 ? void 0 : _a.color) !== null && _b !== void 0 ? _b : undefined, (_e = (_d = (_c = this.value) === null ||
14039      _c === void 0 ? void 0 : _c.font) === null || _d === void 0 ? void 0 : _d.size) !== null && _e !== void 0 ? _e : undefined,
14040      (_h = (_g = (_f = this.value) === null || _f === void 0 ? void 0 : _f.font) === null ||
14041      _g === void 0 ? void 0 : _g.weight) !== null && _h !== void 0 ? _h : undefined,
14042      (_l = (_k = (_j = this.value) === null || _j === void 0 ? void 0 : _j.font) === null ||
14043      _k === void 0 ? void 0 : _k.family) !== null && _l !== void 0 ? _l : undefined,
14044      (_p = (_o = (_m = this.value) === null || _m === void 0 ? void 0 : _m.font) === null ||
14045      _o === void 0 ? void 0 : _o.style) !== null && _p !== void 0 ? _p : undefined);
14046    }
14047  }
14048  checkObjectDiff() {
14049    let _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
14050    if (!(((_b = (_a = this.stageValue) === null || _a === void 0 ? void 0 : _a.font) === null || _b === void 0 ? void 0 : _b.weight) ===
14051      ((_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.font) === null || _d === void 0 ? void 0 : _d.weight) &&
14052      ((_f = (_e = this.stageValue) === null || _e === void 0 ? void 0 : _e.font) === null || _f === void 0 ? void 0 : _f.style) ===
14053      ((_h = (_g = this.value) === null || _g === void 0 ? void 0 : _g.font) === null || _h === void 0 ? void 0 : _h.style))) {
14054      return true;
14055    }
14056    else {
14057      return !isBaseOrResourceEqual((_j = this.stageValue) === null || _j === void 0 ? void 0 : _j.color, (_k = this.value) === null ||
14058      _k === void 0 ? void 0 : _k.color) ||
14059        !isBaseOrResourceEqual((_m = (_l = this.stageValue) === null || _l === void 0 ? void 0 : _l.font) === null ||
14060        _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) ||
14061        !isBaseOrResourceEqual((_r = (_q = this.stageValue) === null || _q === void 0 ? void 0 : _q.font) === null ||
14062        _r === void 0 ? void 0 : _r.family, (_t = (_s = this.value) === null || _s === void 0 ? void 0 : _s.font) === null ||
14063        _t === void 0 ? void 0 : _t.family);
14064    }
14065  }
14066}
14067DatePickerTextStyleModifier.identity = Symbol('textStyle');
14068class DatePickerSelectedTextStyleModifier extends ModifierWithKey {
14069  constructor(value) {
14070    super(value);
14071  }
14072  applyPeer(node, reset) {
14073    let _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
14074    if (reset) {
14075      getUINativeModule().datePicker.resetSelectedTextStyle(node);
14076    }
14077    else {
14078      getUINativeModule().datePicker.setSelectedTextStyle(node, (_b = (_a = this.value) === null ||
14079      _a === void 0 ? void 0 : _a.color) !== null && _b !== void 0 ? _b : undefined,
14080      (_e = (_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.font) === null ||
14081      _d === void 0 ? void 0 : _d.size) !== null && _e !== void 0 ? _e : undefined, (_h = (_g =
14082      (_f = this.value) === null || _f === void 0 ? void 0 : _f.font) === null ||
14083      _g === void 0 ? void 0 : _g.weight) !== null && _h !== void 0 ? _h : undefined,
14084      (_l = (_k = (_j = this.value) === null || _j === void 0 ? void 0 : _j.font) === null ||
14085      _k === void 0 ? void 0 : _k.family) !== null && _l !== void 0 ? _l : undefined, (_p =
14086      (_o = (_m = this.value) === null || _m === void 0 ? void 0 : _m.font) === null ||
14087      _o === void 0 ? void 0 : _o.style) !== null && _p !== void 0 ? _p : undefined);
14088    }
14089  }
14090  checkObjectDiff() {
14091    let _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
14092    if (!(((_b = (_a = this.stageValue) === null || _a === void 0 ? void 0 : _a.font) === null || _b === void 0 ? void 0 : _b.weight) ===
14093    ((_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.font) === null || _d === void 0 ? void 0 : _d.weight) &&
14094      ((_f = (_e = this.stageValue) === null || _e === void 0 ? void 0 : _e.font) === null || _f === void 0 ? void 0 : _f.style) ===
14095      ((_h = (_g = this.value) === null || _g === void 0 ? void 0 : _g.font) === null || _h === void 0 ? void 0 : _h.style))) {
14096      return true;
14097    }
14098    else {
14099      return !isBaseOrResourceEqual((_j = this.stageValue) === null || _j === void 0 ? void 0 : _j.color, (_k = this.value) === null ||
14100      _k === void 0 ? void 0 : _k.color) ||
14101        !isBaseOrResourceEqual((_m = (_l = this.stageValue) === null || _l === void 0 ? void 0 : _l.font) === null || _m ===
14102        void 0 ? void 0 : _m.size, (_p = (_o = this.value) === null || _o === void 0 ? void 0 : _o.font) === null || _p ===
14103        void 0 ? void 0 : _p.size) ||
14104        !isBaseOrResourceEqual((_r = (_q = this.stageValue) === null || _q === void 0 ? void 0 : _q.font) === null || _r ===
14105        void 0 ? void 0 : _r.family, (_t = (_s = this.value) === null || _s === void 0 ? void 0 : _s.font) === null || _t ===
14106        void 0 ? void 0 : _t.family);
14107    }
14108  }
14109}
14110DatePickerSelectedTextStyleModifier.identity = Symbol('selectedTextStyle');
14111class DatePickerDisappearTextStyleModifier extends ModifierWithKey {
14112  constructor(value) {
14113    super(value);
14114  }
14115  applyPeer(node, reset) {
14116    let _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
14117    if (reset) {
14118      getUINativeModule().datePicker.resetDisappearTextStyle(node);
14119    }
14120    else {
14121      getUINativeModule().datePicker.setDisappearTextStyle(node, (_b = (_a = this.value) === null ||
14122      _a === void 0 ? void 0 : _a.color) !== null && _b !== void 0 ? _b : undefined,
14123      (_e = (_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.font) === null ||
14124      _d === void 0 ? void 0 : _d.size) !== null && _e !== void 0 ? _e : undefined,
14125      (_h = (_g = (_f = this.value) === null || _f === void 0 ? void 0 : _f.font) === null ||
14126      _g === void 0 ? void 0 : _g.weight) !== null && _h !== void 0 ? _h : undefined,
14127      (_l = (_k = (_j = this.value) === null || _j === void 0 ? void 0 : _j.font) === null ||
14128      _k === void 0 ? void 0 : _k.family) !== null && _l !== void 0 ? _l : undefined,
14129      (_p = (_o = (_m = this.value) === null || _m === void 0 ? void 0 : _m.font) === null ||
14130      _o === void 0 ? void 0 : _o.style) !== null && _p !== void 0 ? _p : undefined);
14131    }
14132  }
14133  checkObjectDiff() {
14134    let _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
14135    if (!(((_b = (_a = this.stageValue) === null || _a === void 0 ? void 0 : _a.font) === null || _b === void 0 ? void 0 : _b.weight) ===
14136    ((_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.font) === null || _d === void 0 ? void 0 : _d.weight) &&
14137      ((_f = (_e = this.stageValue) === null || _e === void 0 ? void 0 : _e.font) === null || _f === void 0 ? void 0 : _f.style) ===
14138      ((_h = (_g = this.value) === null || _g === void 0 ? void 0 : _g.font) === null || _h === void 0 ? void 0 : _h.style))) {
14139      return true;
14140    }
14141    else {
14142      return !isBaseOrResourceEqual((_j = this.stageValue) === null || _j === void 0 ? void 0 : _j.color, (_k = this.value) === null ||
14143      _k === void 0 ? void 0 : _k.color) ||
14144        !isBaseOrResourceEqual((_m = (_l = this.stageValue) === null || _l === void 0 ? void 0 : _l.font) === null ||
14145        _m === void 0 ? void 0 : _m.size, (_p = (_o = this.value) === null || _o === void 0 ? void 0 : _o.font) === null ||
14146        _p === void 0 ? void 0 : _p.size) ||
14147        !isBaseOrResourceEqual((_r = (_q = this.stageValue) === null || _q === void 0 ? void 0 : _q.font) === null ||
14148        _r === void 0 ? void 0 : _r.family, (_t = (_s = this.value) === null ||
14149        _s === void 0 ? void 0 : _s.font) === null || _t === void 0 ? void 0 : _t.family);
14150    }
14151  }
14152}
14153DatePickerDisappearTextStyleModifier.identity = Symbol('disappearTextStyle');
14154class DatePickerBackgroundColorModifier extends ModifierWithKey {
14155  constructor(value) {
14156    super(value);
14157  }
14158  applyPeer(node, reset) {
14159    if (reset) {
14160      getUINativeModule().datePicker.resetBackgroundColor(node);
14161    }
14162    else {
14163      getUINativeModule().datePicker.setBackgroundColor(node, this.value);
14164    }
14165  }
14166  checkObjectDiff() {
14167    return !isBaseOrResourceEqual(this.stageValue, this.value);
14168  }
14169}
14170DatePickerBackgroundColorModifier.identity = Symbol('datePickerBackgroundColor');
14171//@ts-ignore
14172globalThis.DatePicker.attributeModifier = function (modifier) {
14173  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
14174  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
14175  let component = this.createOrGetNode(elmtId, () => {
14176    return new ArkDatePickerComponent(nativeNode);
14177  });
14178  applyUIAttributes(modifier, nativeNode, component);
14179  component.applyModifierPatch();
14180};
14181
14182/// <reference path='./import.ts' />
14183class ArkFormComponentComponent extends ArkComponent {
14184  constructor(nativePtr) {
14185    super(nativePtr);
14186  }
14187  size(value) {
14188    modifierWithKey(this._modifiersWithKeys, FormComponentSizeModifier.identity, FormComponentSizeModifier, value);
14189    return this;
14190  }
14191  visibility(value) {
14192    modifierWithKey(this._modifiersWithKeys, FormComponentVisibilityModifier.identity, FormComponentVisibilityModifier, value);
14193    return this;
14194  }
14195  moduleName(value) {
14196    modifierWithKey(this._modifiersWithKeys, FormComponentModuleNameModifier.identity, FormComponentModuleNameModifier, value);
14197    return this;
14198  }
14199  dimension(value) {
14200    modifierWithKey(this._modifiersWithKeys, FormComponentDimensionModifier.identity, FormComponentDimensionModifier, value);
14201    return this;
14202  }
14203  allowUpdate(value) {
14204    modifierWithKey(this._modifiersWithKeys, FormComponentAllowUpdateModifier.identity, FormComponentAllowUpdateModifier, value);
14205    return this;
14206  }
14207  onAcquired(callback) {
14208    throw new Error('Method not implemented.');
14209  }
14210  onError(callback) {
14211    throw new Error('Method not implemented.');
14212  }
14213  onRouter(callback) {
14214    throw new Error('Method not implemented.');
14215  }
14216  onUninstall(callback) {
14217    throw new Error('Method not implemented.');
14218  }
14219  onLoad(callback) {
14220    throw new Error('Method not implemented.');
14221  }
14222}
14223class FormComponentModuleNameModifier extends ModifierWithKey {
14224  constructor(value) {
14225    super(value);
14226  }
14227  applyPeer(node, reset) {
14228    if (reset) {
14229      getUINativeModule().formComponent.resetModuleName(node);
14230    }
14231    else {
14232      getUINativeModule().formComponent.setModuleName(node, this.value);
14233    }
14234  }
14235}
14236FormComponentModuleNameModifier.identity = Symbol('formComponentModuleName');
14237class FormComponentDimensionModifier extends ModifierWithKey {
14238  constructor(value) {
14239    super(value);
14240  }
14241  applyPeer(node, reset) {
14242    if (reset) {
14243      getUINativeModule().formComponent.resetDimension(node);
14244    }
14245    else {
14246      getUINativeModule().formComponent.setDimension(node, this.value);
14247    }
14248  }
14249  checkObjectDiff() {
14250    return !isBaseOrResourceEqual(this.stageValue, this.value);
14251  }
14252}
14253FormComponentDimensionModifier.identity = Symbol('formComponentDimension');
14254class FormComponentAllowUpdateModifier extends ModifierWithKey {
14255  constructor(value) {
14256    super(value);
14257  }
14258  applyPeer(node, reset) {
14259    if (reset) {
14260      getUINativeModule().formComponent.resetAllowUpdate(node);
14261    }
14262    else {
14263      getUINativeModule().formComponent.setAllowUpdate(node, this.value);
14264    }
14265  }
14266}
14267FormComponentAllowUpdateModifier.identity = Symbol('formComponentAllowUpdate');
14268class FormComponentSizeModifier extends ModifierWithKey {
14269  constructor(value) {
14270    super(value);
14271  }
14272  applyPeer(node, reset) {
14273    if (reset) {
14274      getUINativeModule().formComponent.resetSize(node);
14275    }
14276    else {
14277      getUINativeModule().formComponent.setSize(node, this.value.width, this.value.height);
14278    }
14279  }
14280  checkObjectDiff() {
14281    let widthEQ = isBaseOrResourceEqual(this.stageValue.width, this.value.width);
14282    let heightEQ = isBaseOrResourceEqual(this.stageValue.height, this.value.height);
14283    return !widthEQ || !heightEQ;
14284  }
14285}
14286FormComponentSizeModifier.identity = Symbol('formComponentSize');
14287class FormComponentVisibilityModifier extends ModifierWithKey {
14288  constructor(value) {
14289    super(value);
14290  }
14291  applyPeer(node, reset) {
14292    if (reset) {
14293      getUINativeModule().formComponent.resetVisibility(node);
14294    }
14295    else {
14296      getUINativeModule().formComponent.setVisibility(node, this.value);
14297    }
14298  }
14299}
14300FormComponentVisibilityModifier.identity = Symbol('formComponentVisibility');
14301// @ts-ignore
14302globalThis.FormComponent.attributeModifier = function (modifier) {
14303  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
14304  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
14305  let component = this.createOrGetNode(elmtId, () => {
14306    return new ArkFormComponentComponent(nativeNode);
14307  });
14308  applyUIAttributes(modifier, nativeNode, component);
14309  component.applyModifierPatch();
14310};
14311
14312/// <reference path='./import.ts' />
14313class ArkGaugeComponent extends ArkComponent {
14314  constructor(nativePtr) {
14315    super(nativePtr);
14316  }
14317  value(value) {
14318    modifierWithKey(this._modifiersWithKeys, GaugeVauleModifier.identity, GaugeVauleModifier, value);
14319    return this;
14320  }
14321  startAngle(angle) {
14322    modifierWithKey(this._modifiersWithKeys, GaugeStartAngleModifier.identity, GaugeStartAngleModifier, angle);
14323    return this;
14324  }
14325  endAngle(angle) {
14326    modifierWithKey(this._modifiersWithKeys, GaugeEndAngleModifier.identity, GaugeEndAngleModifier, angle);
14327    return this;
14328  }
14329  colors(colors) {
14330    modifierWithKey(this._modifiersWithKeys, GaugeColorsModifier.identity, GaugeColorsModifier, colors);
14331    return this;
14332  }
14333  strokeWidth(length) {
14334    modifierWithKey(this._modifiersWithKeys, GaugeStrokeWidthModifier.identity, GaugeStrokeWidthModifier, length);
14335    return this;
14336  }
14337  description(value) {
14338    throw new Error('Method not implemented.');
14339  }
14340  trackShadow(value) {
14341    modifierWithKey(this._modifiersWithKeys, GaugeTrackShadowModifier.identity, GaugeTrackShadowModifier, value);
14342    return this;
14343  }
14344  indicator(value) {
14345    modifierWithKey(this._modifiersWithKeys, GaugeIndicatorModifier.identity, GaugeIndicatorModifier, value);
14346    return this;
14347  }
14348}
14349class GaugeIndicatorModifier extends ModifierWithKey {
14350  applyPeer(node, reset) {
14351    if (reset) {
14352      getUINativeModule().gauge.resetGaugeIndicator(node, this.value);
14353    }
14354    else {
14355      getUINativeModule().gauge.setGaugeIndicator(node, this.value.icon, this.value.space);
14356    }
14357  }
14358  checkObjectDiff() {
14359    return !isBaseOrResourceEqual(this.stageValue.icon, this.value.icon) ||
14360      !isBaseOrResourceEqual(this.stageValue.space, this.value.space);
14361  }
14362}
14363GaugeIndicatorModifier.identity = Symbol('gaugeIndicator');
14364class GaugeColorsModifier extends ModifierWithKey {
14365  applyPeer(node, reset) {
14366    if (reset) {
14367      getUINativeModule().gauge.resetGaugeColors(node);
14368    }
14369    else {
14370      getUINativeModule().gauge.setGaugeColors(node, this.value);
14371    }
14372  }
14373  checkObjectDiff() {
14374    return true;
14375  }
14376}
14377GaugeColorsModifier.identity = Symbol('gaugeColors');
14378class GaugeVauleModifier extends ModifierWithKey {
14379  applyPeer(node, reset) {
14380    if (reset) {
14381      getUINativeModule().gauge.resetGaugeVaule(node);
14382    }
14383    else {
14384      getUINativeModule().gauge.setGaugeVaule(node, this.value);
14385    }
14386  }
14387  checkObjectDiff() {
14388    return !isBaseOrResourceEqual(this.stageValue, this.value);
14389  }
14390}
14391GaugeVauleModifier.identity = Symbol('gaugeVaule');
14392class GaugeStartAngleModifier extends ModifierWithKey {
14393  applyPeer(node, reset) {
14394    if (reset) {
14395      getUINativeModule().gauge.resetGaugeStartAngle(node);
14396    }
14397    else {
14398      getUINativeModule().gauge.setGaugeStartAngle(node, this.value);
14399    }
14400  }
14401  checkObjectDiff() {
14402    return !isBaseOrResourceEqual(this.stageValue, this.value);
14403  }
14404}
14405GaugeStartAngleModifier.identity = Symbol('gaugeStartAngle');
14406class GaugeEndAngleModifier extends ModifierWithKey {
14407  applyPeer(node, reset) {
14408    if (reset) {
14409      getUINativeModule().gauge.resetGaugeEndAngle(node);
14410    }
14411    else {
14412      getUINativeModule().gauge.setGaugeEndAngle(node, this.value);
14413    }
14414  }
14415  checkObjectDiff() {
14416    return !isBaseOrResourceEqual(this.stageValue, this.value);
14417  }
14418}
14419GaugeEndAngleModifier.identity = Symbol('gaugeEndAngle');
14420class GaugeStrokeWidthModifier extends ModifierWithKey {
14421  applyPeer(node, reset) {
14422    if (reset) {
14423      getUINativeModule().gauge.resetGaugeStrokeWidth(node);
14424    }
14425    else {
14426      getUINativeModule().gauge.setGaugeStrokeWidth(node, this.value);
14427    }
14428  }
14429  checkObjectDiff() {
14430    return !isBaseOrResourceEqual(this.stageValue, this.value);
14431  }
14432}
14433GaugeStrokeWidthModifier.identity = Symbol('gaugeStrokeWidth');
14434class GaugeTrackShadowModifier extends ModifierWithKey {
14435  applyPeer(node, reset) {
14436    if (reset) {
14437      getUINativeModule().gauge.resetGaugeTrackShadow(node);
14438    }
14439    else {
14440      getUINativeModule().gauge.setGaugeTrackShadow(node, this.value, this.value.radius, this.value.offsetX, this.value.offsetY);
14441    }
14442  }
14443  checkObjectDiff() {
14444    return !isBaseOrResourceEqual(this.stageValue, this.value);
14445  }
14446}
14447GaugeTrackShadowModifier.identity = Symbol('gaugeTrackShadow');
14448// @ts-ignore
14449globalThis.Gauge.attributeModifier = function (modifier) {
14450  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
14451  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
14452  let component = this.createOrGetNode(elmtId, () => {
14453    return new ArkGaugeComponent(nativeNode);
14454  });
14455  applyUIAttributes(modifier, nativeNode, component);
14456  component.applyModifierPatch();
14457};
14458
14459/// <reference path='./import.ts' />
14460class ArkMarqueeComponent extends ArkComponent {
14461  constructor(nativePtr) {
14462    super(nativePtr);
14463  }
14464  onGestureJudgeBegin(callback) {
14465    throw new Error('Method not implemented.');
14466  }
14467  fontSize(value) {
14468    modifierWithKey(this._modifiersWithKeys, MarqueeFontSizeModifier.identity, MarqueeFontSizeModifier, value);
14469    return this;
14470  }
14471  fontColor(value) {
14472    modifierWithKey(this._modifiersWithKeys, MarqueeFontColorModifier.identity, MarqueeFontColorModifier, value);
14473    return this;
14474  }
14475  allowScale(value) {
14476    modifierWithKey(this._modifiersWithKeys, MarqueeAllowScaleModifier.identity, MarqueeAllowScaleModifier, value);
14477    return this;
14478  }
14479  fontWeight(value) {
14480    modifierWithKey(this._modifiersWithKeys, MarqueeFontWeightModifier.identity, MarqueeFontWeightModifier, value);
14481    return this;
14482  }
14483  fontFamily(value) {
14484    modifierWithKey(this._modifiersWithKeys, MarqueeFontFamilyModifier.identity, MarqueeFontFamilyModifier, value);
14485    return this;
14486  }
14487  onStart(event) {
14488    throw new Error('Method not implemented.');
14489  }
14490  onBounce(event) {
14491    throw new Error('Method not implemented.');
14492  }
14493  onFinish(event) {
14494    throw new Error('Method not implemented.');
14495  }
14496}
14497class MarqueeFontColorModifier extends ModifierWithKey {
14498  constructor(value) {
14499    super(value);
14500  }
14501  applyPeer(node, reset) {
14502    if (reset) {
14503      getUINativeModule().marquee.resetFontColor(node);
14504    }
14505    else {
14506      getUINativeModule().marquee.setFontColor(node, this.value);
14507    }
14508  }
14509  checkObjectDiff() {
14510    return !isBaseOrResourceEqual(this.stageValue, this.value);
14511  }
14512}
14513MarqueeFontColorModifier.identity = Symbol('fontColor');
14514class MarqueeFontSizeModifier extends ModifierWithKey {
14515  constructor(value) {
14516    super(value);
14517  }
14518  applyPeer(node, reset) {
14519    if (reset) {
14520      getUINativeModule().marquee.resetFontSize(node);
14521    }
14522    else {
14523      getUINativeModule().marquee.setFontSize(node, this.value);
14524    }
14525  }
14526  checkObjectDiff() {
14527    return !isBaseOrResourceEqual(this.stageValue, this.value);
14528  }
14529}
14530MarqueeFontSizeModifier.identity = Symbol('fontSize');
14531class MarqueeAllowScaleModifier extends ModifierWithKey {
14532  constructor(value) {
14533    super(value);
14534  }
14535  applyPeer(node, reset) {
14536    if (reset) {
14537      getUINativeModule().marquee.resetAllowScale(node);
14538    }
14539    else {
14540      getUINativeModule().marquee.setAllowScale(node, this.value);
14541    }
14542  }
14543}
14544MarqueeAllowScaleModifier.identity = Symbol('allowScale');
14545class MarqueeFontWeightModifier extends ModifierWithKey {
14546  constructor(value) {
14547    super(value);
14548  }
14549  applyPeer(node, reset) {
14550    if (reset) {
14551      getUINativeModule().marquee.resetFontWeight(node);
14552    }
14553    else {
14554      getUINativeModule().marquee.setFontWeight(node, this.value);
14555    }
14556  }
14557  checkObjectDiff() {
14558    return this.stageValue !== this.value;
14559  }
14560}
14561MarqueeFontWeightModifier.identity = Symbol('fontWeight');
14562class MarqueeFontFamilyModifier extends ModifierWithKey {
14563  constructor(value) {
14564    super(value);
14565  }
14566  applyPeer(node, reset) {
14567    if (reset) {
14568      getUINativeModule().marquee.resetFontFamily(node);
14569    }
14570    else {
14571      getUINativeModule().marquee.setFontFamily(node, this.value);
14572    }
14573  }
14574}
14575MarqueeFontFamilyModifier.identity = Symbol('fontFamily');
14576// @ts-ignore
14577globalThis.Marquee.attributeModifier = function (modifier) {
14578  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
14579  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
14580  let component = this.createOrGetNode(elmtId, () => {
14581    return new ArkMarqueeComponent(nativeNode);
14582  });
14583  applyUIAttributes(modifier, nativeNode, component);
14584  component.applyModifierPatch();
14585};
14586
14587/// <reference path='./import.ts' />
14588class MenuFontColorModifier extends ModifierWithKey {
14589  constructor(value) {
14590    super(value);
14591  }
14592  applyPeer(node, reset) {
14593    if (reset) {
14594      getUINativeModule().menu.resetMenuFontColor(node);
14595    }
14596    else {
14597      getUINativeModule().menu.setMenuFontColor(node, this.value);
14598    }
14599  }
14600  checkObjectDiff() {
14601    return !isBaseOrResourceEqual(this.stageValue, this.value);
14602  }
14603}
14604MenuFontColorModifier.identity = Symbol('fontColor');
14605class MenuWidthModifier extends ModifierWithKey {
14606  applyPeer(node, reset) {
14607    if (reset) {
14608      getUINativeModule().menu.resetWidth(node);
14609    } else {
14610      getUINativeModule().menu.setWidth(node, this.value);
14611    }
14612  }
14613
14614  checkObjectDiff() {
14615    return !isBaseOrResourceEqual(this.stageValue, this.value);
14616  }
14617}
14618MenuWidthModifier.identity = Symbol('menuWidth');
14619class MenuFontModifier extends ModifierWithKey {
14620  constructor(value) {
14621    super(value);
14622  }
14623  applyPeer(node, reset) {
14624    if (reset || !this.value) {
14625      getUINativeModule().menu.resetFont(node);
14626    }
14627    else {
14628      getUINativeModule().menu.setFont(node, this.value.size, this.value.weight, this.value.family, this.value.style);
14629    }
14630  }
14631  checkObjectDiff() {
14632    let sizeEQ = isBaseOrResourceEqual(this.stageValue.size, this.value.size);
14633    let weightEQ = this.stageValue.weight === this.value.weight;
14634    let familyEQ = isBaseOrResourceEqual(this.stageValue.family, this.value.family);
14635    let styleEQ = this.stageValue.style === this.value.style;
14636    return !sizeEQ || !weightEQ || !familyEQ || !styleEQ;
14637  }
14638}
14639MenuFontModifier.identity = Symbol('font');
14640class RadiusModifier extends ModifierWithKey {
14641  constructor(value) {
14642    super(value);
14643  }
14644  applyPeer(node, reset) {
14645    if (reset) {
14646      getUINativeModule().menu.resetRadius(node);
14647    }
14648    else {
14649      if (isNumber(this.value) || isString(this.value) || isResource(this.value)) {
14650        getUINativeModule().menu.setRadius(node, this.value, this.value, this.value, this.value);
14651      }
14652      else {
14653        getUINativeModule().menu.setRadius(node, this.value.topLeft, this.value.topRight, this.value.bottomLeft, this.value.bottomRight);
14654      }
14655    }
14656  }
14657  checkObjectDiff() {
14658    if (isResource(this.stageValue) && isResource(this.value)) {
14659      return !isResourceEqual(this.stageValue, this.value);
14660    }
14661    else if (!isResource(this.stageValue) && !isResource(this.value)) {
14662      return !(this.stageValue.topLeft === this.value.topLeft &&
14663        this.stageValue.topRight === this.value.topRight &&
14664        this.stageValue.bottomLeft === this.value.bottomLeft &&
14665        this.stageValue.bottomRight === this.value.bottomRight);
14666    }
14667    else {
14668      return true;
14669    }
14670  }
14671}
14672RadiusModifier.identity = Symbol('radius');
14673class ArkMenuComponent extends ArkComponent {
14674  constructor(nativePtr) {
14675    super(nativePtr);
14676  }
14677  width(value) {
14678    modifierWithKey(this._modifiersWithKeys, MenuWidthModifier.identity, MenuWidthModifier, value);
14679    return this;
14680  }
14681  fontSize(value) {
14682    throw new Error('Method not implemented.');
14683  }
14684  font(value) {
14685    modifierWithKey(this._modifiersWithKeys, MenuFontModifier.identity, MenuFontModifier, value);
14686    return this;
14687  }
14688  fontColor(value) {
14689    modifierWithKey(this._modifiersWithKeys, MenuFontColorModifier.identity, MenuFontColorModifier, value);
14690    return this;
14691  }
14692  radius(value) {
14693    modifierWithKey(this._modifiersWithKeys, RadiusModifier.identity, RadiusModifier, value);
14694    return this;
14695  }
14696}
14697// @ts-ignore
14698globalThis.Menu.attributeModifier = function (modifier) {
14699  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
14700  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
14701  let component = this.createOrGetNode(elmtId, () => {
14702    return new ArkMenuComponent(nativeNode);
14703  });
14704  applyUIAttributes(modifier, nativeNode, component);
14705  component.applyModifierPatch();
14706};
14707
14708/// <reference path='./import.ts' />
14709class MenuItemSelectedModifier extends ModifierWithKey {
14710  constructor(value) {
14711    super(value);
14712  }
14713  applyPeer(node, reset) {
14714    if (reset) {
14715      getUINativeModule().menuitem.resetMenuItemSelected(node);
14716    }
14717    else {
14718      getUINativeModule().menuitem.setMenuItemSelected(node, this.value);
14719    }
14720  }
14721  checkObjectDiff() {
14722    return !isBaseOrResourceEqual(this.stageValue, this.value);
14723  }
14724}
14725MenuItemSelectedModifier.identity = Symbol('menuItemSelected');
14726class LabelFontColorModifier extends ModifierWithKey {
14727  constructor(value) {
14728    super(value);
14729  }
14730  applyPeer(node, reset) {
14731    if (reset) {
14732      getUINativeModule().menuitem.resetLabelFontColor(node);
14733    }
14734    else {
14735      getUINativeModule().menuitem.setLabelFontColor(node, this.value);
14736    }
14737  }
14738  checkObjectDiff() {
14739    return !isBaseOrResourceEqual(this.stageValue, this.value);
14740  }
14741}
14742LabelFontColorModifier.identity = Symbol('labelfontColor');
14743class ContentFontColorModifier extends ModifierWithKey {
14744  constructor(value) {
14745    super(value);
14746  }
14747  applyPeer(node, reset) {
14748    if (reset) {
14749      getUINativeModule().menuitem.resetContentFontColor(node);
14750    }
14751    else {
14752      getUINativeModule().menuitem.setContentFontColor(node, this.value);
14753    }
14754  }
14755  checkObjectDiff() {
14756    return !isBaseOrResourceEqual(this.stageValue, this.value);
14757  }
14758}
14759ContentFontColorModifier.identity = Symbol('contentfontColor');
14760class LabelFontModifier extends ModifierWithKey {
14761  constructor(value) {
14762    super(value);
14763  }
14764  applyPeer(node, reset) {
14765    if (reset || !this.value) {
14766      getUINativeModule().menuitem.resetLabelFont(node);
14767    }
14768    else {
14769      getUINativeModule().menuitem.setLabelFont(node, this.value.size, this.value.weight, this.value.family, this.value.style);
14770    }
14771  }
14772  checkObjectDiff() {
14773    let sizeEQ = isBaseOrResourceEqual(this.stageValue.size, this.value.size);
14774    let weightEQ = this.stageValue.weight === this.value.weight;
14775    let familyEQ = isBaseOrResourceEqual(this.stageValue.family, this.value.family);
14776    let styleEQ = this.stageValue.style === this.value.style;
14777    return !sizeEQ || !weightEQ || !familyEQ || !styleEQ;
14778  }
14779}
14780LabelFontModifier.identity = Symbol('labelFont');
14781class ContentFontModifier extends ModifierWithKey {
14782  constructor(value) {
14783    super(value);
14784  }
14785  applyPeer(node, reset) {
14786    if (reset || !this.value) {
14787      getUINativeModule().menuitem.resetContentFont(node);
14788    }
14789    else {
14790      getUINativeModule().menuitem.setContentFont(node, this.value.size, this.value.weight, this.value.family, this.value.style);
14791    }
14792  }
14793  checkObjectDiff() {
14794    let sizeEQ = isBaseOrResourceEqual(this.stageValue.size, this.value.size);
14795    let weightEQ = this.stageValue.weight === this.value.weight;
14796    let familyEQ = isBaseOrResourceEqual(this.stageValue.family, this.value.family);
14797    let styleEQ = this.stageValue.style === this.value.style;
14798    return !sizeEQ || !weightEQ || !familyEQ || !styleEQ;
14799  }
14800}
14801ContentFontModifier.identity = Symbol('contentFont');
14802class MenuItemSelectIconModifier extends ModifierWithKey {
14803  applyPeer(node, reset) {
14804    if (reset || !this.value) {
14805      getUINativeModule().menuitem.resetSelectIcon(node);
14806    } else {
14807      getUINativeModule().menuitem.setSelectIcon(node, this.value);
14808    }
14809  }
14810  checkObjectDiff() {
14811    return !isBaseOrResourceEqual(this.stageValue, this.value);
14812  }
14813}
14814MenuItemSelectIconModifier.identity = Symbol('selectIcon');
14815class ArkMenuItemComponent extends ArkComponent {
14816  constructor(nativePtr) {
14817    super(nativePtr);
14818  }
14819  selected(value) {
14820    modifierWithKey(this._modifiersWithKeys, MenuItemSelectedModifier.identity, MenuItemSelectedModifier, value);
14821    return this;
14822  }
14823  selectIcon(value) {
14824    modifierWithKey(this._modifiersWithKeys, MenuItemSelectIconModifier.identity, MenuItemSelectIconModifier, value);
14825    return this;
14826  }
14827  onChange(callback) {
14828    throw new Error('Method not implemented.');
14829  }
14830  contentFont(value) {
14831    modifierWithKey(this._modifiersWithKeys, ContentFontModifier.identity, ContentFontModifier, value);
14832    return this;
14833  }
14834  contentFontColor(value) {
14835    modifierWithKey(this._modifiersWithKeys, ContentFontColorModifier.identity, ContentFontColorModifier, value);
14836    return this;
14837  }
14838  labelFont(value) {
14839    modifierWithKey(this._modifiersWithKeys, LabelFontModifier.identity, LabelFontModifier, value);
14840    return this;
14841  }
14842  labelFontColor(value) {
14843    modifierWithKey(this._modifiersWithKeys, LabelFontColorModifier.identity, LabelFontColorModifier, value);
14844    return this;
14845  }
14846}
14847// @ts-ignore
14848globalThis.MenuItem.attributeModifier = function (modifier) {
14849  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
14850  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
14851  let component = this.createOrGetNode(elmtId, () => {
14852    return new ArkMenuItemComponent(nativeNode);
14853  });
14854  applyUIAttributes(modifier, nativeNode, component);
14855  component.applyModifierPatch();
14856};
14857
14858/// <reference path='./import.ts' />
14859class ArkMenuItemGroupComponent extends ArkComponent {
14860  constructor(nativePtr) {
14861    super(nativePtr);
14862  }
14863}
14864// @ts-ignore
14865globalThis.MenuItemGroup.attributeModifier = function (modifier) {
14866  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
14867  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
14868  let component = this.createOrGetNode(elmtId, () => {
14869    return new ArkMenuItemGroupComponent(nativeNode);
14870  });
14871  applyUIAttributes(modifier, nativeNode, component);
14872  component.applyModifierPatch();
14873};
14874
14875/// <reference path='./import.ts' />
14876class ArkPluginComponent extends ArkComponent {
14877  constructor(nativePtr) {
14878    super(nativePtr);
14879  }
14880  onComplete(callback) {
14881    throw new Error('Method not implemented.');
14882  }
14883  onError(callback) {
14884    throw new Error('Method not implemented.');
14885  }
14886  size(value) {
14887    modifierWithKey(this._modifiersWithKeys, PluginSizeModifier.identity, PluginSizeModifier, value);
14888    return this;
14889  }
14890  width(value) {
14891    modifierWithKey(this._modifiersWithKeys, PluginWidthModifier.identity, PluginWidthModifier, value);
14892    return this;
14893  }
14894  height(value) {
14895    modifierWithKey(this._modifiersWithKeys, PluginHeightModifier.identity, PluginHeightModifier, value);
14896    return this;
14897  }
14898}
14899class PluginWidthModifier extends ModifierWithKey {
14900  constructor(value) {
14901    super(value);
14902  }
14903  applyPeer(node, reset) {
14904    if (reset) {
14905      getUINativeModule().plugin.resetWidth(node);
14906    }
14907    else {
14908      getUINativeModule().plugin.setWidth(node, this.value);
14909    }
14910  }
14911  checkObjectDiff() {
14912    if (isResource(this.stageValue) && isResource(this.value)) {
14913      return !isResourceEqual(this.stageValue, this.value);
14914    }
14915    else {
14916      return true;
14917    }
14918  }
14919}
14920PluginWidthModifier.identity = Symbol('pluginWidth');
14921class PluginHeightModifier extends ModifierWithKey {
14922  constructor(value) {
14923    super(value);
14924  }
14925  applyPeer(node, reset) {
14926    if (reset) {
14927      getUINativeModule().plugin.resetHeight(node);
14928    }
14929    else {
14930      getUINativeModule().plugin.setHeight(node, this.value);
14931    }
14932  }
14933  checkObjectDiff() {
14934    if (isResource(this.stageValue) && isResource(this.value)) {
14935      return !isResourceEqual(this.stageValue, this.value);
14936    }
14937    else {
14938      return true;
14939    }
14940  }
14941}
14942PluginHeightModifier.identity = Symbol('pluginHeight');
14943class PluginSizeModifier extends ModifierWithKey {
14944  constructor(value) {
14945    super(value);
14946  }
14947  applyPeer(node, reset) {
14948    if (reset) {
14949      getUINativeModule().plugin.resetSize(node);
14950    }
14951    else {
14952      getUINativeModule().plugin.setSize(node, this.value.width, this.value.height);
14953    }
14954  }
14955  checkObjectDiff() {
14956    return !isBaseOrResourceEqual(this.stageValue.width, this.value.width) ||
14957      !isBaseOrResourceEqual(this.stageValue.height, this.value.height);
14958  }
14959}
14960PluginSizeModifier.identity = Symbol('size');
14961// @ts-ignore
14962globalThis.PluginComponent.attributeModifier = function (modifier) {
14963  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
14964  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
14965  let component = this.createOrGetNode(elmtId, () => {
14966    return new ArkPluginComponent(nativeNode);
14967  });
14968  applyUIAttributes(modifier, nativeNode, component);
14969  component.applyModifierPatch();
14970};
14971
14972/// <reference path='./import.ts' />
14973class ArkProgressComponent extends ArkComponent {
14974  constructor(nativePtr) {
14975    super(nativePtr);
14976  }
14977  value(value) {
14978    modifierWithKey(this._modifiersWithKeys, ProgressValueModifier.identity, ProgressValueModifier, value);
14979    return this;
14980  }
14981  color(value) {
14982    modifierWithKey(this._modifiersWithKeys, ProgressColorModifier.identity, ProgressColorModifier, value);
14983    return this;
14984  }
14985  style(value) {
14986    modifierWithKey(this._modifiersWithKeys, ProgressStyleModifier.identity, ProgressStyleModifier, value);
14987    return this;
14988  }
14989  backgroundColor(value) {
14990    modifierWithKey(this._modifiersWithKeys, ProgressBackgroundColorModifier.identity, ProgressBackgroundColorModifier, value);
14991    return this;
14992  }
14993}
14994class ProgressValueModifier extends ModifierWithKey {
14995  applyPeer(node, reset) {
14996    if (reset) {
14997      getUINativeModule().progress.ResetProgressValue(node);
14998    }
14999    else {
15000      getUINativeModule().progress.SetProgressValue(node, this.value);
15001    }
15002  }
15003  checkObjectDiff() {
15004    return true;
15005  }
15006}
15007ProgressValueModifier.identity = Symbol('value');
15008class ProgressColorModifier extends ModifierWithKey {
15009  applyPeer(node, reset) {
15010    if (reset) {
15011      getUINativeModule().progress.resetProgressColor(node);
15012    }
15013    else {
15014      getUINativeModule().progress.setProgressColor(node, this.value);
15015    }
15016  }
15017  checkObjectDiff() {
15018    return this.stageValue !== this.value;
15019  }
15020}
15021ProgressColorModifier.identity = Symbol('color');
15022class ProgressStyleModifier extends ModifierWithKey {
15023  applyPeer(node, reset) {
15024    if (reset) {
15025      getUINativeModule().progress.ResetProgressStyle(node);
15026    }
15027    else {
15028      let strokeWidth = this.value.strokeWidth;
15029      let scaleCount = this.value.scaleCount;
15030      let scaleWidth = this.value.scaleWidth;
15031      let enableSmoothEffect = this.value.enableSmoothEffect;
15032      let borderColor = this.value.borderColor;
15033      let borderWidth = this.value.borderWidth;
15034      let content = this.value.content;
15035      let fontSize;
15036      let fontWeight;
15037      let fontFamily;
15038      let fontStyle;
15039      if (this.value.font) {
15040        fontSize = this.value.font.size;
15041        fontWeight = this.value.font.weight;
15042        fontFamily = this.value.font.family;
15043        fontStyle = this.value.font.style;
15044      }
15045      let fontColor = this.value.fontColor;
15046      let enableScanEffect = this.value.enableScanEffect;
15047      let showDefaultPercentage = this.value.showDefaultPercentage;
15048      let shadow = this.value.shadow;
15049      let status = this.value.status;
15050      let strokeRadius = this.value.strokeRadius;
15051      getUINativeModule().progress.SetProgressStyle(node, strokeWidth, scaleCount,
15052        scaleWidth, enableSmoothEffect, borderColor, borderWidth, content, fontSize,
15053        fontWeight, fontFamily, fontStyle, fontColor, enableScanEffect, showDefaultPercentage,
15054        shadow, status, strokeRadius);
15055    }
15056  }
15057  checkObjectDiff() {
15058    return true;
15059  }
15060}
15061ProgressStyleModifier.identity = Symbol('style');
15062class ProgressBackgroundColorModifier extends ModifierWithKey {
15063  applyPeer(node, reset) {
15064    if (reset) {
15065      getUINativeModule().progress.resetProgressBackgroundColor(node);
15066    }
15067    else {
15068      getUINativeModule().progress.setProgressBackgroundColor(node, this.value);
15069    }
15070  }
15071  checkObjectDiff() {
15072    return !isBaseOrResourceEqual(this.stageValue, this.value);
15073  }
15074}
15075ProgressBackgroundColorModifier.identity = Symbol('progressBackgroundColor');
15076// @ts-ignore
15077globalThis.Progress.attributeModifier = function (modifier) {
15078  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
15079  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
15080  let component = this.createOrGetNode(elmtId, () => {
15081    return new ArkProgressComponent(nativeNode);
15082  });
15083  applyUIAttributes(modifier, nativeNode, component);
15084  component.applyModifierPatch();
15085};
15086
15087/// <reference path='./import.ts' />
15088class ArkQRCodeComponent extends ArkComponent {
15089  constructor(nativePtr) {
15090    super(nativePtr);
15091  }
15092  color(value) {
15093    modifierWithKey(this._modifiersWithKeys, QRColorModifier.identity, QRColorModifier, value);
15094    return this;
15095  }
15096  backgroundColor(value) {
15097    modifierWithKey(this._modifiersWithKeys, QRBackgroundColorModifier.identity, QRBackgroundColorModifier, value);
15098    return this;
15099  }
15100  contentOpacity(value) {
15101    modifierWithKey(this._modifiersWithKeys, QRContentOpacityModifier.identity, QRContentOpacityModifier, value);
15102    return this;
15103  }
15104}
15105class QRColorModifier extends ModifierWithKey {
15106  constructor(value) {
15107    super(value);
15108  }
15109  applyPeer(node, reset) {
15110    if (reset) {
15111      getUINativeModule().qrcode.resetQRColor(node);
15112    }
15113    else {
15114      getUINativeModule().qrcode.setQRColor(node, this.value);
15115    }
15116  }
15117  checkObjectDiff() {
15118    return !isBaseOrResourceEqual(this.stageValue, this.value);
15119  }
15120}
15121QRColorModifier.identity = Symbol('color');
15122class QRBackgroundColorModifier extends ModifierWithKey {
15123  constructor(value) {
15124    super(value);
15125  }
15126  applyPeer(node, reset) {
15127    if (reset) {
15128      getUINativeModule().qrcode.resetQRBackgroundColor(node);
15129    }
15130    else {
15131      getUINativeModule().qrcode.setQRBackgroundColor(node, this.value);
15132    }
15133  }
15134  checkObjectDiff() {
15135    return !isBaseOrResourceEqual(this.stageValue, this.value);
15136  }
15137}
15138QRBackgroundColorModifier.identity = Symbol('qrBackgroundColor');
15139class QRContentOpacityModifier extends ModifierWithKey {
15140  constructor(value) {
15141    super(value);
15142  }
15143  applyPeer(node, reset) {
15144    if (reset) {
15145      getUINativeModule().qrcode.resetContentOpacity(node);
15146    }
15147    else {
15148      getUINativeModule().qrcode.setContentOpacity(node, this.value);
15149    }
15150  }
15151  checkObjectDiff() {
15152    return !isBaseOrResourceEqual(this.stageValue, this.value);
15153  }
15154}
15155QRContentOpacityModifier.identity = Symbol('qrContentOpacity');
15156// @ts-ignore
15157globalThis.QRCode.attributeModifier = function (modifier) {
15158  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
15159  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
15160  let component = this.createOrGetNode(elmtId, () => {
15161    return new ArkQRCodeComponent(nativeNode);
15162  });
15163  applyUIAttributes(modifier, nativeNode, component);
15164  component.applyModifierPatch();
15165};
15166
15167/// <reference path='./import.ts' />
15168class ArkRichTextComponent extends ArkComponent {
15169  constructor(nativePtr) {
15170    super(nativePtr);
15171  }
15172  onStart(callback) {
15173    throw new Error('Method not implemented.');
15174  }
15175  onComplete(callback) {
15176    throw new Error('Method not implemented.');
15177  }
15178}
15179// @ts-ignore
15180globalThis.RichText.attributeModifier = function (modifier) {
15181  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
15182  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
15183  let component = this.createOrGetNode(elmtId, () => {
15184    return new ArkRichTextComponent(nativeNode);
15185  });
15186  applyUIAttributes(modifier, nativeNode, component);
15187  component.applyModifierPatch();
15188};
15189
15190/// <reference path='./import.ts' />
15191class ArkScrollBarComponent extends ArkComponent {
15192  constructor(nativePtr) {
15193    super(nativePtr);
15194  }
15195}
15196// @ts-ignore
15197globalThis.ScrollBar.attributeModifier = function (modifier) {
15198  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
15199  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
15200  let component = this.createOrGetNode(elmtId, () => {
15201    return new ArkScrollBarComponent(nativeNode);
15202  });
15203  applyUIAttributes(modifier, nativeNode, component);
15204  component.applyModifierPatch();
15205};
15206
15207/// <reference path='./import.ts' />
15208class ArkStepperComponent extends ArkComponent {
15209  constructor(nativePtr) {
15210    super(nativePtr);
15211  }
15212  onFinish(callback) {
15213    throw new Error('Method not implemented.');
15214  }
15215  onSkip(callback) {
15216    throw new Error('Method not implemented.');
15217  }
15218  onChange(callback) {
15219    throw new Error('Method not implemented.');
15220  }
15221  onNext(callback) {
15222    throw new Error('Method not implemented.');
15223  }
15224  onPrevious(callback) {
15225    throw new Error('Method not implemented.');
15226  }
15227}
15228// @ts-ignore
15229globalThis.Stepper.attributeModifier = function (modifier) {
15230  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
15231  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
15232  let component = this.createOrGetNode(elmtId, () => {
15233    return new ArkStepperComponent(nativeNode);
15234  });
15235  applyUIAttributes(modifier, nativeNode, component);
15236  component.applyModifierPatch();
15237};
15238
15239/// <reference path='./import.ts' />
15240class ArkStepperItemComponent extends ArkComponent {
15241  constructor(nativePtr) {
15242    super(nativePtr);
15243  }
15244  prevLabel(value) {
15245    throw new Error('Method not implemented.');
15246  }
15247  nextLabel(value) {
15248    modifierWithKey(this._modifiersWithKeys, NextLabelModifier.identity, NextLabelModifier, value);
15249    return this;
15250  }
15251  status(value) {
15252    throw new Error('Method not implemented.');
15253  }
15254}
15255class NextLabelModifier extends ModifierWithKey {
15256  constructor(value) {
15257    super(value);
15258  }
15259  applyPeer(node, reset) {
15260    if (reset) {
15261      getUINativeModule().stepperItem.resetNextLabel(node);
15262    }
15263    else {
15264      getUINativeModule().stepperItem.setNextLabel(node, this.value);
15265    }
15266  }
15267}
15268NextLabelModifier.identity = Symbol('NextLabel');
15269// @ts-ignore
15270globalThis.StepperItem.attributeModifier = function (modifier) {
15271  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
15272  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
15273  let component = this.createOrGetNode(elmtId, () => {
15274    return new ArkStepperItemComponent(nativeNode);
15275  });
15276  applyUIAttributes(modifier, nativeNode, component);
15277  component.applyModifierPatch();
15278};
15279
15280/// <reference path='./import.ts' />
15281class ArkTextClockComponent extends ArkComponent {
15282  constructor(nativePtr) {
15283    super(nativePtr);
15284  }
15285  format(value) {
15286    modifierWithKey(this._modifiersWithKeys, TextClockFormatModifier.identity, TextClockFormatModifier, value);
15287    return this;
15288  }
15289  onDateChange(event) {
15290    throw new Error('Method not implemented.');
15291  }
15292  fontColor(value) {
15293    modifierWithKey(this._modifiersWithKeys, TextClockFontColorModifier.identity, TextClockFontColorModifier, value);
15294    return this;
15295  }
15296  fontSize(value) {
15297    modifierWithKey(this._modifiersWithKeys, TextClockFontSizeModifier.identity, TextClockFontSizeModifier, value);
15298    return this;
15299  }
15300  fontStyle(value) {
15301    modifierWithKey(this._modifiersWithKeys, TextClockFontStyleModifier.identity, TextClockFontStyleModifier, value);
15302    return this;
15303  }
15304  fontWeight(value) {
15305    modifierWithKey(this._modifiersWithKeys, TextClockFontWeightModifier.identity, TextClockFontWeightModifier, value);
15306    return this;
15307  }
15308  fontFamily(value) {
15309    modifierWithKey(this._modifiersWithKeys, TextClockFontFamilyModifier.identity, TextClockFontFamilyModifier, value);
15310    return this;
15311  }
15312  textShadow(value) {
15313    throw new Error('Method not implemented.');
15314  }
15315  fontFeature(value) {
15316    throw new Error('Method not implemented.');
15317  }
15318}
15319class TextClockFormatModifier extends ModifierWithKey {
15320  constructor(value) {
15321    super(value);
15322  }
15323  applyPeer(node, reset) {
15324    if (reset) {
15325      getUINativeModule().textClock.resetFormat(node);
15326    }
15327    else {
15328      getUINativeModule().textClock.setFormat(node, this.value);
15329    }
15330  }
15331}
15332TextClockFormatModifier.identity = Symbol('textClockFormat');
15333class TextClockFontColorModifier extends ModifierWithKey {
15334  constructor(value) {
15335    super(value);
15336  }
15337  applyPeer(node, reset) {
15338    if (reset) {
15339      getUINativeModule().textClock.resetFontColor(node);
15340    }
15341    else {
15342      getUINativeModule().textClock.setFontColor(node, this.value);
15343    }
15344  }
15345  checkObjectDiff() {
15346    return !isBaseOrResourceEqual(this.stageValue, this.value);
15347  }
15348}
15349TextClockFontColorModifier.identity = Symbol('textClockFontColor');
15350class TextClockFontSizeModifier extends ModifierWithKey {
15351  constructor(value) {
15352    super(value);
15353  }
15354  applyPeer(node, reset) {
15355    if (reset) {
15356      getUINativeModule().textClock.resetFontSize(node);
15357    }
15358    else {
15359      getUINativeModule().textClock.setFontSize(node, this.value);
15360    }
15361  }
15362  checkObjectDiff() {
15363    return !isBaseOrResourceEqual(this.stageValue, this.value);
15364  }
15365}
15366TextClockFontSizeModifier.identity = Symbol('textClockFontSize');
15367class TextClockFontStyleModifier extends ModifierWithKey {
15368  constructor(value) {
15369    super(value);
15370  }
15371  applyPeer(node, reset) {
15372    if (reset) {
15373      getUINativeModule().textClock.resetFontStyle(node);
15374    }
15375    else {
15376      getUINativeModule().textClock.setFontStyle(node, this.value);
15377    }
15378  }
15379}
15380TextClockFontStyleModifier.identity = Symbol('textClockFontStyle');
15381class TextClockFontWeightModifier extends ModifierWithKey {
15382  constructor(value) {
15383    super(value);
15384  }
15385  applyPeer(node, reset) {
15386    if (reset) {
15387      getUINativeModule().textClock.resetFontWeight(node);
15388    }
15389    else {
15390      getUINativeModule().textClock.setFontWeight(node, this.value);
15391    }
15392  }
15393}
15394TextClockFontWeightModifier.identity = Symbol('textClockFontWeight');
15395class TextClockFontFamilyModifier extends ModifierWithKey {
15396  constructor(value) {
15397    super(value);
15398  }
15399  applyPeer(node, reset) {
15400    if (reset) {
15401      getUINativeModule().textClock.resetFontFamily(node);
15402    }
15403    else {
15404      getUINativeModule().textClock.setFontFamily(node, this.value);
15405    }
15406  }
15407  checkObjectDiff() {
15408    return !isBaseOrResourceEqual(this.stageValue, this.value);
15409  }
15410}
15411TextClockFontFamilyModifier.identity = Symbol('textClockFontFamily');
15412// @ts-ignore
15413globalThis.TextClock.attributeModifier = function (modifier) {
15414  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
15415  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
15416  let component = this.createOrGetNode(elmtId, () => {
15417    return new ArkTextClockComponent(nativeNode);
15418  });
15419  applyUIAttributes(modifier, nativeNode, component);
15420  component.applyModifierPatch();
15421};
15422
15423/// <reference path='./import.ts' />
15424class ArkTextTimerComponent extends ArkComponent {
15425  constructor(nativePtr) {
15426    super(nativePtr);
15427  }
15428  fontColor(value) {
15429    modifierWithKey(this._modifiersWithKeys, TextTimerFontColorModifier.identity, TextTimerFontColorModifier, value);
15430    return this;
15431  }
15432  fontSize(value) {
15433    modifierWithKey(this._modifiersWithKeys, TextTimerFontSizeModifier.identity, TextTimerFontSizeModifier, value);
15434    return this;
15435  }
15436  fontWeight(value) {
15437    modifierWithKey(this._modifiersWithKeys, TextTimerFontWeightModifier.identity, TextTimerFontWeightModifier, value);
15438    return this;
15439  }
15440  fontStyle(value) {
15441    modifierWithKey(this._modifiersWithKeys, TextTimerFontStyleModifier.identity, TextTimerFontStyleModifier, value);
15442    return this;
15443  }
15444  fontFamily(value) {
15445    modifierWithKey(this._modifiersWithKeys, TextTimerFontFamilyModifier.identity, TextTimerFontFamilyModifier, value);
15446    return this;
15447  }
15448  format(value) {
15449    modifierWithKey(this._modifiersWithKeys, TextTimerFormatModifier.identity, TextTimerFormatModifier, value);
15450    return this;
15451  }
15452  onTimer(event) {
15453    throw new Error('Method not implemented.');
15454  }
15455}
15456class TextTimerFontColorModifier extends ModifierWithKey {
15457  applyPeer(node, reset) {
15458    if (reset) {
15459      getUINativeModule().textTimer.resetFontColor(node);
15460    }
15461    else {
15462      getUINativeModule().textTimer.setFontColor(node, this.value);
15463    }
15464  }
15465  checkObjectDiff() {
15466    return !isBaseOrResourceEqual(this.stageValue, this.value);
15467  }
15468}
15469TextTimerFontColorModifier.identity = Symbol('fontColor');
15470class TextTimerFontSizeModifier extends ModifierWithKey {
15471  applyPeer(node, reset) {
15472    if (reset) {
15473      getUINativeModule().textTimer.resetFontSize(node);
15474    }
15475    else {
15476      getUINativeModule().textTimer.setFontSize(node, this.value);
15477    }
15478  }
15479  checkObjectDiff() {
15480    return !isBaseOrResourceEqual(this.stageValue, this.value);
15481  }
15482}
15483TextTimerFontSizeModifier.identity = Symbol('fontSize');
15484class TextTimerFontWeightModifier extends ModifierWithKey {
15485  applyPeer(node, reset) {
15486    if (reset) {
15487      getUINativeModule().textTimer.resetFontWeight(node);
15488    }
15489    else {
15490      getUINativeModule().textTimer.setFontWeight(node, this.value);
15491    }
15492  }
15493}
15494TextTimerFontWeightModifier.identity = Symbol('fontWeight');
15495class TextTimerFontStyleModifier extends ModifierWithKey {
15496  applyPeer(node, reset) {
15497    if (reset) {
15498      getUINativeModule().textTimer.resetFontStyle(node);
15499    }
15500    else {
15501      getUINativeModule().textTimer.setFontStyle(node, this.value);
15502    }
15503  }
15504  checkObjectDiff() {
15505    return !isBaseOrResourceEqual(this.stageValue, this.value);
15506  }
15507}
15508TextTimerFontStyleModifier.identity = Symbol('fontStyle');
15509class TextTimerFontFamilyModifier extends ModifierWithKey {
15510  applyPeer(node, reset) {
15511    if (reset) {
15512      getUINativeModule().textTimer.resetFontFamily(node);
15513    }
15514    else {
15515      getUINativeModule().textTimer.setFontFamily(node, this.value);
15516    }
15517  }
15518  checkObjectDiff() {
15519    return !isBaseOrResourceEqual(this.stageValue, this.value);
15520  }
15521}
15522TextTimerFontFamilyModifier.identity = Symbol('fontFamily');
15523class TextTimerFormatModifier extends ModifierWithKey {
15524  applyPeer(node, reset) {
15525    if (reset) {
15526      getUINativeModule().textTimer.resetFormat(node);
15527    }
15528    else {
15529      getUINativeModule().textTimer.setFormat(node, this.value);
15530    }
15531  }
15532}
15533TextTimerFormatModifier.identity = Symbol('textTimerFormat');
15534// @ts-ignore
15535globalThis.TextTimer.attributeModifier = function (modifier) {
15536  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
15537  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
15538  let component = this.createOrGetNode(elmtId, () => {
15539    return new ArkTextTimerComponent(nativeNode);
15540  });
15541  applyUIAttributes(modifier, nativeNode, component);
15542  component.applyModifierPatch();
15543};
15544
15545/// <reference path='./import.ts' />
15546class ArkWebComponent extends ArkComponent {
15547  constructor(nativePtr) {
15548    super(nativePtr);
15549  }
15550  javaScriptAccess(javaScriptAccess) {
15551    throw new Error('Method not implemented.');
15552  }
15553  fileAccess(fileAccess) {
15554    throw new Error('Method not implemented.');
15555  }
15556  onlineImageAccess(onlineImageAccess) {
15557    throw new Error('Method not implemented.');
15558  }
15559  domStorageAccess(domStorageAccess) {
15560    throw new Error('Method not implemented.');
15561  }
15562  imageAccess(imageAccess) {
15563    throw new Error('Method not implemented.');
15564  }
15565  mixedMode(mixedMode) {
15566    throw new Error('Method not implemented.');
15567  }
15568  zoomAccess(zoomAccess) {
15569    throw new Error('Method not implemented.');
15570  }
15571  geolocationAccess(geolocationAccess) {
15572    throw new Error('Method not implemented.');
15573  }
15574  javaScriptProxy(javaScriptProxy) {
15575    throw new Error('Method not implemented.');
15576  }
15577  password(password) {
15578    throw new Error('Method not implemented.');
15579  }
15580  cacheMode(cacheMode) {
15581    throw new Error('Method not implemented.');
15582  }
15583  darkMode(mode) {
15584    throw new Error('Method not implemented.');
15585  }
15586  forceDarkAccess(access) {
15587    throw new Error('Method not implemented.');
15588  }
15589  mediaOptions(options) {
15590    throw new Error('Method not implemented.');
15591  }
15592  tableData(tableData) {
15593    throw new Error('Method not implemented.');
15594  }
15595  wideViewModeAccess(wideViewModeAccess) {
15596    throw new Error('Method not implemented.');
15597  }
15598  overviewModeAccess(overviewModeAccess) {
15599    throw new Error('Method not implemented.');
15600  }
15601  overScrollMode(mode) {
15602    throw new Error('Method not implemented.');
15603  }
15604  textZoomAtio(textZoomAtio) {
15605    throw new Error('Method not implemented.');
15606  }
15607  textZoomRatio(textZoomRatio) {
15608    throw new Error('Method not implemented.');
15609  }
15610  databaseAccess(databaseAccess) {
15611    throw new Error('Method not implemented.');
15612  }
15613  initialScale(percent) {
15614    throw new Error('Method not implemented.');
15615  }
15616  userAgent(userAgent) {
15617    throw new Error('Method not implemented.');
15618  }
15619  onPageEnd(callback) {
15620    throw new Error('Method not implemented.');
15621  }
15622  onPageBegin(callback) {
15623    throw new Error('Method not implemented.');
15624  }
15625  onProgressChange(callback) {
15626    throw new Error('Method not implemented.');
15627  }
15628  onTitleReceive(callback) {
15629    throw new Error('Method not implemented.');
15630  }
15631  onGeolocationHide(callback) {
15632    throw new Error('Method not implemented.');
15633  }
15634  onGeolocationShow(callback) {
15635    throw new Error('Method not implemented.');
15636  }
15637  onRequestSelected(callback) {
15638    throw new Error('Method not implemented.');
15639  }
15640  onAlert(callback) {
15641    throw new Error('Method not implemented.');
15642  }
15643  onBeforeUnload(callback) {
15644    throw new Error('Method not implemented.');
15645  }
15646  onConfirm(callback) {
15647    throw new Error('Method not implemented.');
15648  }
15649  onPrompt(callback) {
15650    throw new Error('Method not implemented.');
15651  }
15652  onConsole(callback) {
15653    throw new Error('Method not implemented.');
15654  }
15655  onErrorReceive(callback) {
15656    throw new Error('Method not implemented.');
15657  }
15658  onHttpErrorReceive(callback) {
15659    throw new Error('Method not implemented.');
15660  }
15661  onDownloadStart(callback) {
15662    throw new Error('Method not implemented.');
15663  }
15664  onRefreshAccessedHistory(callback) {
15665    throw new Error('Method not implemented.');
15666  }
15667  onUrlLoadIntercept(callback) {
15668    throw new Error('Method not implemented.');
15669  }
15670  onSslErrorReceive(callback) {
15671    throw new Error('Method not implemented.');
15672  }
15673  onRenderExited(callback) {
15674    throw new Error('Method not implemented.');
15675  }
15676  onShowFileSelector(callback) {
15677    throw new Error('Method not implemented.');
15678  }
15679  onFileSelectorShow(callback) {
15680    throw new Error('Method not implemented.');
15681  }
15682  onResourceLoad(callback) {
15683    throw new Error('Method not implemented.');
15684  }
15685  onFullScreenExit(callback) {
15686    throw new Error('Method not implemented.');
15687  }
15688  onFullScreenEnter(callback) {
15689    throw new Error('Method not implemented.');
15690  }
15691  onScaleChange(callback) {
15692    throw new Error('Method not implemented.');
15693  }
15694  onHttpAuthRequest(callback) {
15695    throw new Error('Method not implemented.');
15696  }
15697  onInterceptRequest(callback) {
15698    throw new Error('Method not implemented.');
15699  }
15700  onPermissionRequest(callback) {
15701    throw new Error('Method not implemented.');
15702  }
15703  onScreenCaptureRequest(callback) {
15704    throw new Error('Method not implemented.');
15705  }
15706  onContextMenuShow(callback) {
15707    throw new Error('Method not implemented.');
15708  }
15709  mediaPlayGestureAccess(access) {
15710    throw new Error('Method not implemented.');
15711  }
15712  onSearchResultReceive(callback) {
15713    throw new Error('Method not implemented.');
15714  }
15715  onScroll(callback) {
15716    throw new Error('Method not implemented.');
15717  }
15718  onSslErrorEventReceive(callback) {
15719    throw new Error('Method not implemented.');
15720  }
15721  onClientAuthenticationRequest(callback) {
15722    throw new Error('Method not implemented.');
15723  }
15724  onWindowNew(callback) {
15725    throw new Error('Method not implemented.');
15726  }
15727  onWindowExit(callback) {
15728    throw new Error('Method not implemented.');
15729  }
15730  multiWindowAccess(multiWindow) {
15731    throw new Error('Method not implemented.');
15732  }
15733  onInterceptKeyEvent(callback) {
15734    throw new Error('Method not implemented.');
15735  }
15736  webStandardFont(family) {
15737    throw new Error('Method not implemented.');
15738  }
15739  webSerifFont(family) {
15740    throw new Error('Method not implemented.');
15741  }
15742  webSansSerifFont(family) {
15743    throw new Error('Method not implemented.');
15744  }
15745  webFixedFont(family) {
15746    throw new Error('Method not implemented.');
15747  }
15748  webFantasyFont(family) {
15749    throw new Error('Method not implemented.');
15750  }
15751  webCursiveFont(family) {
15752    throw new Error('Method not implemented.');
15753  }
15754  defaultFixedFontSize(size) {
15755    throw new Error('Method not implemented.');
15756  }
15757  defaultFontSize(size) {
15758    throw new Error('Method not implemented.');
15759  }
15760  minFontSize(size) {
15761    throw new Error('Method not implemented.');
15762  }
15763  minLogicalFontSize(size) {
15764    throw new Error('Method not implemented.');
15765  }
15766  blockNetwork(block) {
15767    throw new Error('Method not implemented.');
15768  }
15769  horizontalScrollBarAccess(horizontalScrollBar) {
15770    throw new Error('Method not implemented.');
15771  }
15772  verticalScrollBarAccess(verticalScrollBar) {
15773    throw new Error('Method not implemented.');
15774  }
15775  onTouchIconUrlReceived(callback) {
15776    throw new Error('Method not implemented.');
15777  }
15778  onFaviconReceived(callback) {
15779    throw new Error('Method not implemented.');
15780  }
15781  onPageVisible(callback) {
15782    throw new Error('Method not implemented.');
15783  }
15784  onDataResubmitted(callback) {
15785    throw new Error('Method not implemented.');
15786  }
15787  pinchSmooth(isEnabled) {
15788    throw new Error('Method not implemented.');
15789  }
15790  allowWindowOpenMethod(flag) {
15791    throw new Error('Method not implemented.');
15792  }
15793  onAudioStateChanged(callback) {
15794    throw new Error('Method not implemented.');
15795  }
15796  onFirstContentfulPaint(callback) {
15797    throw new Error('Method not implemented.');
15798  }
15799  onLoadIntercept(callback) {
15800    throw new Error('Method not implemented.');
15801  }
15802  onControllerAttached(callback) {
15803    throw new Error('Method not implemented.');
15804  }
15805  onOverScroll(callback) {
15806    throw new Error('Method not implemented.');
15807  }
15808  javaScriptOnDocumentStart(scripts) {
15809    throw new Error('Method not implemented.');
15810  }
15811  layoutMode(mode) {
15812    throw new Error('Method not implemented.');
15813  }
15814  nestedScroll(value) {
15815    throw new Error('Method not implemented.');
15816  }
15817}
15818// @ts-ignore
15819globalThis.Web.attributeModifier = function (modifier) {
15820  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
15821  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
15822  let component = this.createOrGetNode(elmtId, () => {
15823    return new ArkWebComponent(nativeNode);
15824  });
15825  applyUIAttributes(modifier, nativeNode, component);
15826  component.applyModifierPatch();
15827};
15828
15829/// <reference path='./import.ts' />
15830class ArkXComponentComponent {
15831  constructor(nativePtr) {
15832    this._modifiersWithKeys = new Map();
15833    this.nativePtr = nativePtr;
15834  }
15835  applyModifierPatch() {
15836    let expiringItemsWithKeys = [];
15837    this._modifiersWithKeys.forEach((value, key) => {
15838      if (value.applyStage(this.nativePtr)) {
15839        expiringItemsWithKeys.push(key);
15840      }
15841    });
15842    expiringItemsWithKeys.forEach(key => {
15843      this._modifiersWithKeys.delete(key);
15844    });
15845  }
15846  outline(value) {
15847    throw new Error('Method not implemented.');
15848  }
15849  outlineColor(value) {
15850    throw new Error('Method not implemented.');
15851  }
15852  outlineRadius(value) {
15853    throw new Error('Method not implemented.');
15854  }
15855  outlineStyle(value) {
15856    throw new Error('Method not implemented.');
15857  }
15858  outlineWidth(value) {
15859    throw new Error('Method not implemented.');
15860  }
15861  width(value) {
15862    throw new Error('Method not implemented.');
15863  }
15864  height(value) {
15865    throw new Error('Method not implemented.');
15866  }
15867  expandSafeArea(types, edges) {
15868    throw new Error('Method not implemented.');
15869  }
15870  responseRegion(value) {
15871    throw new Error('Method not implemented.');
15872  }
15873  mouseResponseRegion(value) {
15874    throw new Error('Method not implemented.');
15875  }
15876  size(value) {
15877    throw new Error('Method not implemented.');
15878  }
15879  constraintSize(value) {
15880    throw new Error('Method not implemented.');
15881  }
15882  touchable(value) {
15883    throw new Error('Method not implemented.');
15884  }
15885  hitTestBehavior(value) {
15886    throw new Error('Method not implemented.');
15887  }
15888  layoutWeight(value) {
15889    throw new Error('Method not implemented.');
15890  }
15891  padding(value) {
15892    throw new Error('Method not implemented.');
15893  }
15894  margin(value) {
15895    throw new Error('Method not implemented.');
15896  }
15897  background(builder, options) {
15898    throw new Error('Method not implemented.');
15899  }
15900  backgroundColor(value) {
15901    modifierWithKey(this._modifiersWithKeys, XComponentBackgroundColorModifier.identity, XComponentBackgroundColorModifier, value);
15902    return this;
15903  }
15904  backgroundImage(src, repeat) {
15905    let arkBackgroundImage = new ArkBackgroundImage();
15906    arkBackgroundImage.src = src;
15907    arkBackgroundImage.repeat = repeat;
15908    modifierWithKey(this._modifiersWithKeys, XComponentBackgroundImageModifier.identity, XComponentBackgroundImageModifier, arkBackgroundImage);
15909    return this;
15910  }
15911  backgroundImageSize(value) {
15912    modifierWithKey(this._modifiersWithKeys, XComponentBackgroundImageSizeModifier.identity, XComponentBackgroundImageSizeModifier, value);
15913    return this;
15914  }
15915  backgroundImagePosition(value) {
15916    modifierWithKey(this._modifiersWithKeys, XComponentBackgroundImagePositionModifier.identity, XComponentBackgroundImagePositionModifier, value);
15917    return this;
15918  }
15919  backgroundBlurStyle(value, options) {
15920    throw new Error('Method not implemented.');
15921  }
15922  foregroundBlurStyle(value, options) {
15923    throw new Error('Method not implemented.');
15924  }
15925  opacity(value) {
15926    modifierWithKey(this._modifiersWithKeys, XComponentOpacityModifier.identity, XComponentOpacityModifier, value);
15927    return this;
15928  }
15929  border(value) {
15930    throw new Error('Method not implemented.');
15931  }
15932  borderStyle(value) {
15933    throw new Error('Method not implemented.');
15934  }
15935  borderWidth(value) {
15936    throw new Error('Method not implemented.');
15937  }
15938  borderColor(value) {
15939    throw new Error('Method not implemented.');
15940  }
15941  borderRadius(value) {
15942    throw new Error('Method not implemented.');
15943  }
15944  borderImage(value) {
15945    throw new Error('Method not implemented.');
15946  }
15947  foregroundColor(value) {
15948    throw new Error('Method not implemented.');
15949  }
15950  onClick(event) {
15951    throw new Error('Method not implemented.');
15952  }
15953  onHover(event) {
15954    throw new Error('Method not implemented.');
15955  }
15956  hoverEffect(value) {
15957    throw new Error('Method not implemented.');
15958  }
15959  onMouse(event) {
15960    throw new Error('Method not implemented.');
15961  }
15962  onTouch(event) {
15963    throw new Error('Method not implemented.');
15964  }
15965  onKeyEvent(event) {
15966    throw new Error('Method not implemented.');
15967  }
15968  focusable(value) {
15969    throw new Error('Method not implemented.');
15970  }
15971  onFocus(event) {
15972    throw new Error('Method not implemented.');
15973  }
15974  onBlur(event) {
15975    throw new Error('Method not implemented.');
15976  }
15977  tabIndex(index) {
15978    throw new Error('Method not implemented.');
15979  }
15980  defaultFocus(value) {
15981    throw new Error('Method not implemented.');
15982  }
15983  groupDefaultFocus(value) {
15984    throw new Error('Method not implemented.');
15985  }
15986  focusOnTouch(value) {
15987    throw new Error('Method not implemented.');
15988  }
15989  animation(value) {
15990    throw new Error('Method not implemented.');
15991  }
15992  transition(value) {
15993    throw new Error('Method not implemented.');
15994  }
15995  gesture(gesture, mask) {
15996    throw new Error('Method not implemented.');
15997  }
15998  priorityGesture(gesture, mask) {
15999    throw new Error('Method not implemented.');
16000  }
16001  parallelGesture(gesture, mask) {
16002    throw new Error('Method not implemented.');
16003  }
16004  blur(value) {
16005    modifierWithKey(this._modifiersWithKeys, XComponentBlurModifier.identity, XComponentBlurModifier, value);
16006    return this;
16007  }
16008  linearGradientBlur(value, options) {
16009    if (isUndefined(value) || isNull(value) || isUndefined(options) || isNull(options)) {
16010      modifierWithKey(this._modifiersWithKeys, XComponentLinearGradientBlurModifier.identity, XComponentLinearGradientBlurModifier, undefined);
16011      return this;
16012    }
16013    let arkLinearGradientBlur = new ArkLinearGradientBlur();
16014    arkLinearGradientBlur.blurRadius = value;
16015    arkLinearGradientBlur.fractionStops = options.fractionStops;
16016    arkLinearGradientBlur.direction = options.direction;
16017    modifierWithKey(this._modifiersWithKeys, XComponentLinearGradientBlurModifier.identity, XComponentLinearGradientBlurModifier, arkLinearGradientBlur);
16018    return this;
16019  }
16020  brightness(value) {
16021    modifierWithKey(this._modifiersWithKeys, XComponentBrightnessModifier.identity, XComponentBrightnessModifier, value);
16022    return this;
16023  }
16024  contrast(value) {
16025    modifierWithKey(this._modifiersWithKeys, XComponentContrastModifier.identity, XComponentContrastModifier, value);
16026    return this;
16027  }
16028  grayscale(value) {
16029    modifierWithKey(this._modifiersWithKeys, XComponentGrayscaleModifier.identity, XComponentGrayscaleModifier, value);
16030    return this;
16031  }
16032  colorBlend(value) {
16033    modifierWithKey(this._modifiersWithKeys, XComponentColorBlendModifier.identity, XComponentColorBlendModifier, value);
16034    return this;
16035  }
16036  saturate(value) {
16037    modifierWithKey(this._modifiersWithKeys, XComponentSaturateModifier.identity, XComponentSaturateModifier, value);
16038    return this;
16039  }
16040  sepia(value) {
16041    modifierWithKey(this._modifiersWithKeys, XComponentSepiaModifier.identity, XComponentSepiaModifier, value);
16042    return this;
16043  }
16044  invert(value) {
16045    modifierWithKey(this._modifiersWithKeys, XComponentInvertModifier.identity, XComponentInvertModifier, value);
16046    return this;
16047  }
16048  hueRotate(value) {
16049    modifierWithKey(this._modifiersWithKeys, XComponentHueRotateModifier.identity, XComponentHueRotateModifier, value);
16050    return this;
16051  }
16052  useEffect(value) {
16053    throw new Error('Method not implemented.');
16054  }
16055  backdropBlur(value) {
16056    modifierWithKey(this._modifiersWithKeys, XComponentBackdropBlurModifier.identity, XComponentBackdropBlurModifier, value);
16057    return this;
16058  }
16059  renderGroup(value) {
16060    throw new Error('Method not implemented.');
16061  }
16062  translate(value) {
16063    throw new Error('Method not implemented.');
16064  }
16065  scale(value) {
16066    throw new Error('Method not implemented.');
16067  }
16068  gridSpan(value) {
16069    throw new Error('Method not implemented.');
16070  }
16071  gridOffset(value) {
16072    throw new Error('Method not implemented.');
16073  }
16074  rotate(value) {
16075    throw new Error('Method not implemented.');
16076  }
16077  transform(value) {
16078    throw new Error('Method not implemented.');
16079  }
16080  onAppear(event) {
16081    throw new Error('Method not implemented.');
16082  }
16083  onDisAppear(event) {
16084    throw new Error('Method not implemented.');
16085  }
16086  onAreaChange(event) {
16087    throw new Error('Method not implemented.');
16088  }
16089  visibility(value) {
16090    throw new Error('Method not implemented.');
16091  }
16092  flexGrow(value) {
16093    throw new Error('Method not implemented.');
16094  }
16095  flexShrink(value) {
16096    throw new Error('Method not implemented.');
16097  }
16098  flexBasis(value) {
16099    throw new Error('Method not implemented.');
16100  }
16101  alignSelf(value) {
16102    throw new Error('Method not implemented.');
16103  }
16104  displayPriority(value) {
16105    throw new Error('Method not implemented.');
16106  }
16107  zIndex(value) {
16108    throw new Error('Method not implemented.');
16109  }
16110  sharedTransition(id, options) {
16111    throw new Error('Method not implemented.');
16112  }
16113  direction(value) {
16114    throw new Error('Method not implemented.');
16115  }
16116  align(value) {
16117    throw new Error('Method not implemented.');
16118  }
16119  position(value) {
16120    throw new Error('Method not implemented.');
16121  }
16122  markAnchor(value) {
16123    throw new Error('Method not implemented.');
16124  }
16125  offset(value) {
16126    throw new Error('Method not implemented.');
16127  }
16128  enabled(value) {
16129    throw new Error('Method not implemented.');
16130  }
16131  useSizeType(value) {
16132    throw new Error('Method not implemented.');
16133  }
16134  alignRules(value) {
16135    throw new Error('Method not implemented.');
16136  }
16137  aspectRatio(value) {
16138    throw new Error('Method not implemented.');
16139  }
16140  clickEffect(value) {
16141    throw new Error('Method not implemented.');
16142  }
16143  onDragStart(event) {
16144    throw new Error('Method not implemented.');
16145  }
16146  onDragEnter(event) {
16147    throw new Error('Method not implemented.');
16148  }
16149  onDragMove(event) {
16150    throw new Error('Method not implemented.');
16151  }
16152  onDragLeave(event) {
16153    throw new Error('Method not implemented.');
16154  }
16155  onDrop(event) {
16156    throw new Error('Method not implemented.');
16157  }
16158  onDragEnd(event) {
16159    throw new Error('Method not implemented.');
16160  }
16161  allowDrop(value) {
16162    throw new Error('Method not implemented.');
16163  }
16164  draggable(value) {
16165    throw new Error('Method not implemented.');
16166  }
16167  overlay(value, options) {
16168    throw new Error('Method not implemented.');
16169  }
16170  linearGradient(value) {
16171    throw new Error('Method not implemented.');
16172  }
16173  sweepGradient(value) {
16174    throw new Error('Method not implemented.');
16175  }
16176  radialGradient(value) {
16177    throw new Error('Method not implemented.');
16178  }
16179  motionPath(value) {
16180    throw new Error('Method not implemented.');
16181  }
16182  shadow(value) {
16183    modifierWithKey(this._modifiersWithKeys, ShadowModifier.identity, ShadowModifier, value);
16184    return this;
16185  }
16186  blendMode(value) {
16187    throw new Error('Method not implemented.');
16188  }
16189  clip(value) {
16190    throw new Error('Method not implemented.');
16191  }
16192  mask(value) {
16193    throw new Error('Method not implemented.');
16194  }
16195  key(value) {
16196    throw new Error('Method not implemented.');
16197  }
16198  id(value) {
16199    throw new Error('Method not implemented.');
16200  }
16201  geometryTransition(id) {
16202    throw new Error('Method not implemented.');
16203  }
16204  bindPopup(show, popup) {
16205    throw new Error('Method not implemented.');
16206  }
16207  bindMenu(content, options) {
16208    throw new Error('Method not implemented.');
16209  }
16210  bindContextMenu(content, responseType, options) {
16211    throw new Error('Method not implemented.');
16212  }
16213  bindContentCover(isShow, builder, options) {
16214    throw new Error('Method not implemented.');
16215  }
16216  bindSheet(isShow, builder, options) {
16217    throw new Error('Method not implemented.');
16218  }
16219  stateStyles(value) {
16220    throw new Error('Method not implemented.');
16221  }
16222  restoreId(value) {
16223    throw new Error('Method not implemented.');
16224  }
16225  onVisibleAreaChange(ratios, event) {
16226    throw new Error('Method not implemented.');
16227  }
16228  sphericalEffect(value) {
16229    modifierWithKey(this._modifiersWithKeys, XComponentSphericalEffectModifier.identity, XComponentSphericalEffectModifier, value);
16230    return this;
16231  }
16232  lightUpEffect(value) {
16233    modifierWithKey(this._modifiersWithKeys, XComponentLightUpEffectModifier.identity, XComponentLightUpEffectModifier, value);
16234    return this;
16235  }
16236  pixelStretchEffect(options) {
16237    modifierWithKey(this._modifiersWithKeys, XComponentPixelStretchEffectModifier.identity, XComponentPixelStretchEffectModifier, options);
16238    return this;
16239  }
16240  keyboardShortcut(value, keys, action) {
16241    throw new Error('Method not implemented.');
16242  }
16243  accessibilityGroup(value) {
16244    throw new Error('Method not implemented.');
16245  }
16246  accessibilityText(value) {
16247    throw new Error('Method not implemented.');
16248  }
16249  accessibilityDescription(value) {
16250    throw new Error('Method not implemented.');
16251  }
16252  accessibilityLevel(value) {
16253    throw new Error('Method not implemented.');
16254  }
16255  obscured(reasons) {
16256    throw new Error('Method not implemented.');
16257  }
16258  reuseId(id) {
16259    throw new Error('Method not implemented.');
16260  }
16261  renderFit(fitMode) {
16262    throw new Error('Method not implemented.');
16263  }
16264  attributeModifier(modifier) {
16265    return this;
16266  }
16267  onGestureJudgeBegin(callback) {
16268    throw new Error('Method not implemented.');
16269  }
16270  onLoad(callback) {
16271    throw new Error('Method not implemented.');
16272  }
16273  onDestroy(event) {
16274    throw new Error('Method not implemented.');
16275  }
16276}
16277// @ts-ignore
16278globalThis.XComponent.attributeModifier = function (modifier) {
16279  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
16280  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
16281  let component = this.createOrGetNode(elmtId, () => {
16282    return new ArkXComponentComponent(nativeNode);
16283  });
16284  applyUIAttributes(modifier, nativeNode, component);
16285  component.applyModifierPatch();
16286};
16287class XComponentOpacityModifier extends ModifierWithKey {
16288  constructor(value) {
16289    super(value);
16290  }
16291  applyPeer(node, reset) {
16292    if (reset) {
16293      getUINativeModule().xComponent.resetOpacity(node);
16294    }
16295    else {
16296      getUINativeModule().xComponent.setOpacity(node, this.value);
16297    }
16298  }
16299  checkObjectDiff() {
16300    return !isBaseOrResourceEqual(this.stageValue, this.value);
16301  }
16302}
16303XComponentOpacityModifier.identity = Symbol('xComponentOpacity');
16304class XComponentBackgroundColorModifier extends ModifierWithKey {
16305  constructor(value) {
16306    super(value);
16307  }
16308  applyPeer(node, reset) {
16309    if (reset) {
16310      getUINativeModule().xComponent.resetBackgroundColor(node);
16311    }
16312    else {
16313      getUINativeModule().xComponent.setBackgroundColor(node, this.value);
16314    }
16315  }
16316  checkObjectDiff() {
16317    return !isBaseOrResourceEqual(this.stageValue, this.value);
16318  }
16319}
16320XComponentBackgroundColorModifier.identity = Symbol('xComponentBackgroundColor');
16321class XComponentBackgroundImageModifier extends ModifierWithKey {
16322  constructor(value) {
16323    super(value);
16324  }
16325  applyPeer(node, reset) {
16326    if (reset) {
16327      getUINativeModule().xComponent.resetBackgroundImage(node);
16328    }
16329    else {
16330      getUINativeModule().xComponent.setBackgroundImage(node, this.value.src, this.value.repeat);
16331    }
16332  }
16333  checkObjectDiff() {
16334    return !(this.stageValue.src === this.value.src &&
16335      this.stageValue.repeat === this.value.repeat);
16336  }
16337}
16338XComponentBackgroundImageModifier.identity = Symbol('xComponentBackgroundImage');
16339class XComponentBackgroundImageSizeModifier extends ModifierWithKey {
16340  constructor(value) {
16341    super(value);
16342  }
16343  applyPeer(node, reset) {
16344    let _a, _b;
16345    if (reset) {
16346      getUINativeModule().xComponent.resetBackgroundImageSize(node);
16347    }
16348    else {
16349      if (isNumber(this.value)) {
16350        getUINativeModule().xComponent.setBackgroundImageSize(node, this.value, undefined, undefined);
16351      }
16352      else {
16353        getUINativeModule().xComponent.setBackgroundImageSize(node, undefined, (_a = this.value) === null ||
16354          _a === void 0 ? void 0 : _a.width, (_b = this.value) === null || _b === void 0 ? void 0 : _b.height);
16355      }
16356    }
16357  }
16358  checkObjectDiff() {
16359    return !(this.value.width === this.stageValue.width &&
16360      this.value.height === this.stageValue.height);
16361  }
16362}
16363XComponentBackgroundImageSizeModifier.identity = Symbol('xComponentBackgroundImageSize');
16364class XComponentBackgroundImagePositionModifier extends ModifierWithKey {
16365  constructor(value) {
16366    super(value);
16367  }
16368  applyPeer(node, reset) {
16369    let _a, _b;
16370    if (reset) {
16371      getUINativeModule().xComponent.resetBackgroundImagePosition(node);
16372    }
16373    else {
16374      if (isNumber(this.value)) {
16375        getUINativeModule().xComponent.setBackgroundImagePosition(node, this.value, undefined, undefined);
16376      }
16377      else {
16378        getUINativeModule().xComponent.setBackgroundImagePosition(node, undefined, (_a = this.value) === null ||
16379          _a === void 0 ? void 0 : _a.x, (_b = this.value) === null || _b === void 0 ? void 0 : _b.y);
16380      }
16381    }
16382  }
16383  checkObjectDiff() {
16384    let _a, _b, _c, _d;
16385    return !(((_a = this.value) === null || _a === void 0 ? void 0 : _a.x) === ((_b = this.stageValue) === null || _b === void 0 ? void 0 : _b.x) &&
16386      ((_c = this.value) === null || _c === void 0 ? void 0 : _c.y) === ((_d = this.stageValue) === null || _d === void 0 ? void 0 : _d.y));
16387  }
16388}
16389XComponentBackgroundImagePositionModifier.identity = Symbol('xComponentBackgroundImagePosition');
16390class XComponentBlurModifier extends ModifierWithKey {
16391  constructor(value) {
16392    super(value);
16393  }
16394  applyPeer(node, reset) {
16395    if (reset) {
16396      getUINativeModule().xComponent.resetBlur(node);
16397    }
16398    else {
16399      getUINativeModule().xComponent.setBlur(node, this.value);
16400    }
16401  }
16402}
16403XComponentBlurModifier.identity = Symbol('xComponentBlur');
16404class XComponentBackdropBlurModifier extends ModifierWithKey {
16405  constructor(value) {
16406    super(value);
16407  }
16408  applyPeer(node, reset) {
16409    if (reset) {
16410      getUINativeModule().xComponent.resetBackdropBlur(node);
16411    }
16412    else {
16413      getUINativeModule().xComponent.setBackdropBlur(node, this.value);
16414    }
16415  }
16416}
16417XComponentBackdropBlurModifier.identity = Symbol('xComponentBackdropBlur');
16418class XComponentGrayscaleModifier extends ModifierWithKey {
16419  constructor(value) {
16420    super(value);
16421  }
16422  applyPeer(node, reset) {
16423    if (reset) {
16424      getUINativeModule().xComponent.resetGrayscale(node);
16425    }
16426    else {
16427      getUINativeModule().xComponent.setGrayscale(node, this.value);
16428    }
16429  }
16430}
16431XComponentGrayscaleModifier.identity = Symbol('xComponentGrayscale');
16432class XComponentBrightnessModifier extends ModifierWithKey {
16433  constructor(value) {
16434    super(value);
16435  }
16436  applyPeer(node, reset) {
16437    if (reset) {
16438      getUINativeModule().xComponent.resetBrightness(node);
16439    }
16440    else {
16441      getUINativeModule().xComponent.setBrightness(node, this.value);
16442    }
16443  }
16444}
16445XComponentBrightnessModifier.identity = Symbol('xComponentBrightness');
16446class XComponentSaturateModifier extends ModifierWithKey {
16447  constructor(value) {
16448    super(value);
16449  }
16450  applyPeer(node, reset) {
16451    if (reset) {
16452      getUINativeModule().xComponent.resetSaturate(node);
16453    }
16454    else {
16455      getUINativeModule().xComponent.setSaturate(node, this.value);
16456    }
16457  }
16458}
16459XComponentSaturateModifier.identity = Symbol('xComponentSaturate');
16460class XComponentContrastModifier extends ModifierWithKey {
16461  constructor(value) {
16462    super(value);
16463  }
16464  applyPeer(node, reset) {
16465    if (reset) {
16466      getUINativeModule().xComponent.resetContrast(node);
16467    }
16468    else {
16469      getUINativeModule().xComponent.setContrast(node, this.value);
16470    }
16471  }
16472}
16473XComponentContrastModifier.identity = Symbol('xComponentContrast');
16474class XComponentInvertModifier extends ModifierWithKey {
16475  constructor(value) {
16476    super(value);
16477  }
16478  applyPeer(node, reset) {
16479    if (reset) {
16480      getUINativeModule().xComponent.resetInvert(node);
16481    }
16482    else {
16483      getUINativeModule().xComponent.setInvert(node, this.value);
16484    }
16485  }
16486}
16487XComponentInvertModifier.identity = Symbol('xComponentInvert');
16488class XComponentSepiaModifier extends ModifierWithKey {
16489  constructor(value) {
16490    super(value);
16491  }
16492  applyPeer(node, reset) {
16493    if (reset) {
16494      getUINativeModule().xComponent.resetSepia(node);
16495    }
16496    else {
16497      getUINativeModule().xComponent.setSepia(node, this.value);
16498    }
16499  }
16500}
16501XComponentSepiaModifier.identity = Symbol('xComponentSepia');
16502class XComponentHueRotateModifier extends ModifierWithKey {
16503  constructor(value) {
16504    super(value);
16505  }
16506  applyPeer(node, reset) {
16507    if (reset) {
16508      getUINativeModule().xComponent.resetHueRotate(node);
16509    }
16510    else {
16511      getUINativeModule().xComponent.setHueRotate(node, this.value);
16512    }
16513  }
16514}
16515XComponentHueRotateModifier.identity = Symbol('xComponentHueRotate');
16516class XComponentColorBlendModifier extends ModifierWithKey {
16517  constructor(value) {
16518    super(value);
16519  }
16520  applyPeer(node, reset) {
16521    if (reset) {
16522      getUINativeModule().xComponent.resetColorBlend(node);
16523    }
16524    else {
16525      getUINativeModule().xComponent.setColorBlend(node, this.value);
16526    }
16527  }
16528  checkObjectDiff() {
16529    return !isBaseOrResourceEqual(this.stageValue, this.value);
16530  }
16531}
16532XComponentColorBlendModifier.identity = Symbol('xComponentColorBlend');
16533class XComponentSphericalEffectModifier extends ModifierWithKey {
16534  constructor(value) {
16535    super(value);
16536  }
16537  applyPeer(node, reset) {
16538    if (reset) {
16539      getUINativeModule().xComponent.resetSphericalEffect(node);
16540    }
16541    else {
16542      getUINativeModule().xComponent.setSphericalEffect(node, this.value);
16543    }
16544  }
16545}
16546XComponentSphericalEffectModifier.identity = Symbol('xComponentSphericalEffect');
16547class XComponentLightUpEffectModifier extends ModifierWithKey {
16548  constructor(value) {
16549    super(value);
16550  }
16551  applyPeer(node, reset) {
16552    if (reset) {
16553      getUINativeModule().xComponent.resetLightUpEffect(node);
16554    }
16555    else {
16556      getUINativeModule().xComponent.setLightUpEffect(node, this.value);
16557    }
16558  }
16559}
16560XComponentLightUpEffectModifier.identity = Symbol('xComponentLightUpEffect');
16561class XComponentPixelStretchEffectModifier extends ModifierWithKey {
16562  constructor(value) {
16563    super(value);
16564  }
16565  applyPeer(node, reset) {
16566    if (reset) {
16567      getUINativeModule().xComponent.resetPixelStretchEffect(node);
16568    }
16569    else {
16570      getUINativeModule().xComponent.setPixelStretchEffect(node, this.value.top, this.value.right, this.value.bottom, this.value.left);
16571    }
16572  }
16573  checkObjectDiff() {
16574    return !(this.stageValue.left === this.value.left &&
16575      this.stageValue.right === this.value.right &&
16576      this.stageValue.top === this.value.top &&
16577      this.stageValue.bottom === this.value.bottom);
16578  }
16579}
16580XComponentPixelStretchEffectModifier.identity = Symbol('xComponentPixelStretchEffect');
16581class XComponentLinearGradientBlurModifier extends ModifierWithKey {
16582  constructor(value) {
16583    super(value);
16584  }
16585  applyPeer(node, reset) {
16586    if (reset) {
16587      getUINativeModule().xComponent.resetLinearGradientBlur(node);
16588    }
16589    else {
16590      getUINativeModule().xComponent.setLinearGradientBlur(node, this.value.blurRadius, this.value.fractionStops, this.value.direction);
16591    }
16592  }
16593  checkObjectDiff() {
16594    return !this.value.isEqual(this.stageValue);
16595  }
16596}
16597XComponentLinearGradientBlurModifier.identity = Symbol('xComponentlinearGradientBlur');
16598/// <reference path='./import.ts' />
16599class ArkBadgeComponent extends ArkComponent {
16600  constructor(nativePtr) {
16601    super(nativePtr);
16602  }
16603}
16604// @ts-ignore
16605globalThis.Badge.attributeModifier = function (modifier) {
16606  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
16607  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
16608  let component = this.createOrGetNode(elmtId, () => {
16609    return new ArkBadgeComponent(nativeNode);
16610  });
16611  applyUIAttributes(modifier, nativeNode, component);
16612  component.applyModifierPatch();
16613};
16614
16615/// <reference path='./import.ts' />
16616class ArkFlowItemComponent extends ArkComponent {
16617  constructor(nativePtr) {
16618    super(nativePtr);
16619  }
16620}
16621// @ts-ignore
16622globalThis.FlowItem.attributeModifier = function (modifier) {
16623  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
16624  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
16625  let component = this.createOrGetNode(elmtId, () => {
16626    return new ArkFlowItemComponent(nativeNode);
16627  });
16628  applyUIAttributes(modifier, nativeNode, component);
16629  component.applyModifierPatch();
16630};
16631
16632/// <reference path='./import.ts' />
16633class ArkFormLinkComponent extends ArkComponent {
16634  constructor(nativePtr) {
16635    super(nativePtr);
16636  }
16637}
16638// @ts-ignore
16639globalThis.FormLink.attributeModifier = function (modifier) {
16640  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
16641  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
16642  let component = this.createOrGetNode(elmtId, () => {
16643    return new ArkFormLinkComponent(nativeNode);
16644  });
16645  applyUIAttributes(modifier, nativeNode, component);
16646  component.applyModifierPatch();
16647};
16648
16649/// <reference path='./import.ts' />
16650class GridItemSelectableModifier extends ModifierWithKey {
16651  applyPeer(node, reset) {
16652    if (reset) {
16653      getUINativeModule().gridItem.resetGridItemSelectable(node);
16654    }
16655    else {
16656      getUINativeModule().gridItem.setGridItemSelectable(node, this.value);
16657    }
16658  }
16659}
16660GridItemSelectableModifier.identity = Symbol('gridItemSelectable');
16661class GridItemSelectedModifier extends ModifierWithKey {
16662  applyPeer(node, reset) {
16663    if (reset) {
16664      getUINativeModule().gridItem.resetGridItemSelected(node);
16665    }
16666    else {
16667      getUINativeModule().gridItem.setGridItemSelected(node, this.value);
16668    }
16669  }
16670}
16671GridItemSelectedModifier.identity = Symbol('gridItemSelected');
16672class GridItemRowStartModifier extends ModifierWithKey {
16673  applyPeer(node, reset) {
16674    if (reset) {
16675      getUINativeModule().gridItem.resetGridItemRowStart(node);
16676    }
16677    else {
16678      getUINativeModule().gridItem.setGridItemRowStart(node, this.value);
16679    }
16680  }
16681}
16682GridItemRowStartModifier.identity = Symbol('gridItemRowStart');
16683class GridItemRowEndModifier extends ModifierWithKey {
16684  applyPeer(node, reset) {
16685    if (reset) {
16686      getUINativeModule().gridItem.resetGridItemRowEnd(node);
16687    }
16688    else {
16689      getUINativeModule().gridItem.setGridItemRowEnd(node, this.value);
16690    }
16691  }
16692}
16693GridItemRowEndModifier.identity = Symbol('gridItemRowEnd');
16694class GridItemColumnStartModifier extends ModifierWithKey {
16695  applyPeer(node, reset) {
16696    if (reset) {
16697      getUINativeModule().gridItem.resetGridItemColumnStart(node);
16698    }
16699    else {
16700      getUINativeModule().gridItem.setGridItemColumnStart(node, this.value);
16701    }
16702  }
16703}
16704GridItemColumnStartModifier.identity = Symbol('gridItemColumnStart');
16705class GridItemColumnEndModifier extends ModifierWithKey {
16706  applyPeer(node, reset) {
16707    if (reset) {
16708      getUINativeModule().gridItem.resetGridItemColumnEnd(node);
16709    }
16710    else {
16711      getUINativeModule().gridItem.setGridItemColumnEnd(node, this.value);
16712    }
16713  }
16714}
16715GridItemColumnEndModifier.identity = Symbol('gridItemColumnEnd');
16716class ArkGridItemComponent extends ArkComponent {
16717  constructor(nativePtr) {
16718    super(nativePtr);
16719  }
16720  rowStart(value) {
16721    modifierWithKey(this._modifiersWithKeys, GridItemRowStartModifier.identity, GridItemRowStartModifier, value);
16722    return this;
16723  }
16724  rowEnd(value) {
16725    modifierWithKey(this._modifiersWithKeys, GridItemRowEndModifier.identity, GridItemRowEndModifier, value);
16726    return this;
16727  }
16728  columnStart(value) {
16729    modifierWithKey(this._modifiersWithKeys, GridItemColumnStartModifier.identity, GridItemColumnStartModifier, value);
16730    return this;
16731  }
16732  columnEnd(value) {
16733    modifierWithKey(this._modifiersWithKeys, GridItemColumnEndModifier.identity, GridItemColumnEndModifier, value);
16734    return this;
16735  }
16736  forceRebuild(value) {
16737    throw new Error('Method not implemented.');
16738  }
16739  selectable(value) {
16740    modifierWithKey(this._modifiersWithKeys, GridItemSelectableModifier.identity, GridItemSelectableModifier, value);
16741    return this;
16742  }
16743  selected(value) {
16744    modifierWithKey(this._modifiersWithKeys, GridItemSelectedModifier.identity, GridItemSelectedModifier, value);
16745    return this;
16746  }
16747  onSelect(event) {
16748    throw new Error('Method not implemented.');
16749  }
16750}
16751// @ts-ignore
16752globalThis.GridItem.attributeModifier = function (modifier) {
16753  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
16754  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
16755  let component = this.createOrGetNode(elmtId, () => {
16756    return new ArkGridItemComponent(nativeNode);
16757  });
16758  applyUIAttributes(modifier, nativeNode, component);
16759  component.applyModifierPatch();
16760};
16761
16762/// <reference path='./import.ts' />
16763class ArkHyperlinkComponent extends ArkComponent {
16764  constructor(nativePtr) {
16765    super(nativePtr);
16766  }
16767  color(value) {
16768    modifierWithKey(this._modifiersWithKeys, HyperlinkColorModifier.identity, HyperlinkColorModifier, value);
16769    return this;
16770  }
16771  draggable(value) {
16772    modifierWithKey(this._modifiersWithKeys, HyperlinkDraggableModifier.identity, HyperlinkDraggableModifier, value);
16773    return this;
16774  }
16775}
16776class HyperlinkColorModifier extends ModifierWithKey {
16777  constructor(value) {
16778    super(value);
16779  }
16780  applyPeer(node, reset) {
16781    if (reset) {
16782      getUINativeModule().hyperlink.resetColor(node);
16783    }
16784    else {
16785      getUINativeModule().hyperlink.setColor(node, this.value);
16786    }
16787  }
16788  checkObjectDiff() {
16789    return !isBaseOrResourceEqual(this.stageValue, this.value);
16790  }
16791}
16792HyperlinkColorModifier.identity = Symbol('hyperlinkColor');
16793class HyperlinkDraggableModifier extends ModifierWithKey {
16794  constructor(value) {
16795    super(value);
16796  }
16797  applyPeer(node, reset) {
16798    if (reset) {
16799      getUINativeModule().hyperlink.resetDraggable(node);
16800    }
16801    else {
16802      getUINativeModule().hyperlink.setDraggable(node, this.value);
16803    }
16804  }
16805}
16806HyperlinkDraggableModifier.identity = Symbol('hyperlinkDraggable');
16807// @ts-ignore
16808globalThis.Hyperlink.attributeModifier = function (modifier) {
16809  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
16810  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
16811  let component = this.createOrGetNode(elmtId, () => {
16812    return new ArkHyperlinkComponent(nativeNode);
16813  });
16814  applyUIAttributes(modifier, nativeNode, component);
16815  component.applyModifierPatch();
16816};
16817
16818/// <reference path='./import.ts' />
16819class ListEditModeModifier extends ModifierWithKey {
16820  constructor(value) {
16821    super(value);
16822  }
16823  applyPeer(node, reset) {
16824    if (reset) {
16825      getUINativeModule().list.resetEditMode(node);
16826    }
16827    else {
16828      getUINativeModule().list.setEditMode(node, this.value);
16829    }
16830  }
16831}
16832ListEditModeModifier.identity = Symbol('editMode');
16833class ListMultiSelectableModifier extends ModifierWithKey {
16834  constructor(value) {
16835    super(value);
16836  }
16837  applyPeer(node, reset) {
16838    if (reset) {
16839      getUINativeModule().list.resetMultiSelectable(node);
16840    }
16841    else {
16842      getUINativeModule().list.setMultiSelectable(node, this.value);
16843    }
16844  }
16845}
16846ListMultiSelectableModifier.identity = Symbol('listMultiSelectable');
16847class ListAlignListItemModifier extends ModifierWithKey {
16848  constructor(value) {
16849    super(value);
16850  }
16851  applyPeer(node, reset) {
16852    if (reset) {
16853      getUINativeModule().list.resetAlignListItem(node);
16854    }
16855    else {
16856      getUINativeModule().list.setAlignListItem(node, this.value);
16857    }
16858  }
16859}
16860ListAlignListItemModifier.identity = Symbol('listAlignListItem');
16861class ListScrollSnapAlignModifier extends ModifierWithKey {
16862  constructor(value) {
16863    super(value);
16864  }
16865  applyPeer(node, reset) {
16866    if (reset) {
16867      getUINativeModule().list.resetScrollSnapAlign(node);
16868    }
16869    else {
16870      getUINativeModule().list.setScrollSnapAlign(node, this.value);
16871    }
16872  }
16873}
16874ListScrollSnapAlignModifier.identity = Symbol('listScrollSnapAlign');
16875class ContentStartOffsetModifier extends ModifierWithKey {
16876  constructor(value) {
16877    super(value);
16878  }
16879  applyPeer(node, reset) {
16880    if (reset) {
16881      getUINativeModule().list.resetContentStartOffset(node);
16882    }
16883    else {
16884      getUINativeModule().list.setContentStartOffset(node, this.value);
16885    }
16886  }
16887}
16888ContentStartOffsetModifier.identity = Symbol('contentStartOffset');
16889class ContentEndOffsetModifier extends ModifierWithKey {
16890  constructor(value) {
16891    super(value);
16892  }
16893  applyPeer(node, reset) {
16894    if (reset) {
16895      getUINativeModule().list.resetContentEndOffset(node);
16896    }
16897    else {
16898      getUINativeModule().list.setContentEndOffset(node, this.value);
16899    }
16900  }
16901}
16902ContentEndOffsetModifier.identity = Symbol('contentEndOffset');
16903class ListDividerModifier extends ModifierWithKey {
16904  constructor(value) {
16905    super(value);
16906  }
16907  applyPeer(node, reset) {
16908    let _a, _b, _c, _d;
16909    if (reset) {
16910      getUINativeModule().list.resetDivider(node);
16911    }
16912    else {
16913      getUINativeModule().list.setDivider(node, (_a = this.value) === null ||
16914      _a === void 0 ? void 0 : _a.strokeWidth, (_b = this.value) === null ||
16915      _b === void 0 ? void 0 : _b.color, (_c = this.value) === null ||
16916      _c === void 0 ? void 0 : _c.startMargin, (_d = this.value) === null ||
16917      _d === void 0 ? void 0 : _d.endMargin);
16918    }
16919  }
16920  checkObjectDiff() {
16921    let _a, _b, _c, _d, _e, _f, _g, _h;
16922    return !(((_a = this.stageValue) === null || _a === void 0 ? void 0 : _a.strokeWidth) === ((_b = this.value) === null || _b === void 0 ? void 0 : _b.strokeWidth) &&
16923      ((_c = this.stageValue) === null || _c === void 0 ? void 0 : _c.color) === ((_d = this.value) === null || _d === void 0 ? void 0 : _d.color) &&
16924      ((_e = this.stageValue) === null || _e === void 0 ? void 0 : _e.startMargin) === ((_f = this.value) === null || _f === void 0 ? void 0 : _f.startMargin) &&
16925      ((_g = this.stageValue) === null || _g === void 0 ? void 0 : _g.endMargin) === ((_h = this.value) === null || _h === void 0 ? void 0 : _h.endMargin));
16926  }
16927}
16928ListDividerModifier.identity = Symbol('listDivider');
16929class ChainAnimationOptionsModifier extends ModifierWithKey {
16930  constructor(value) {
16931    super(value);
16932  }
16933  applyPeer(node, reset) {
16934    let _a, _b, _c, _d, _e, _f, _g;
16935    if (reset) {
16936      getUINativeModule().list.resetChainAnimationOptions(node);
16937    }
16938    else {
16939      getUINativeModule().list.setChainAnimationOptions(node, (_a = this.value) === null ||
16940      _a === void 0 ? void 0 : _a.minSpace, (_b = this.value) === null ||
16941      _b === void 0 ? void 0 : _b.maxSpace, (_c = this.value) === null ||
16942      _c === void 0 ? void 0 : _c.conductivity, (_d = this.value) === null ||
16943      _d === void 0 ? void 0 : _d.intensity, (_e = this.value) === null ||
16944      _e === void 0 ? void 0 : _e.edgeEffect, (_f = this.value) === null ||
16945      _f === void 0 ? void 0 : _f.stiffness, (_g = this.value) === null ||
16946      _g === void 0 ? void 0 : _g.damping);
16947    }
16948  }
16949  checkObjectDiff() {
16950    return !(this.stageValue.minSpace === this.value.minSpace && this.stageValue.maxSpace === this.value.maxSpace &&
16951      this.stageValue.conductivity === this.value.conductivity && this.stageValue.intensity === this.value.intensity &&
16952      this.stageValue.edgeEffect === this.value.edgeEffect && this.stageValue.stiffness === this.value.stiffness &&
16953      this.stageValue.damping === this.value.damping);
16954  }
16955}
16956ChainAnimationOptionsModifier.identity = Symbol('chainAnimationOptions');
16957class ListChainAnimationModifier extends ModifierWithKey {
16958  constructor(value) {
16959    super(value);
16960  }
16961  applyPeer(node, reset) {
16962    if (reset) {
16963      getUINativeModule().list.resetChainAnimation(node);
16964    }
16965    else {
16966      getUINativeModule().list.setChainAnimation(node, this.value);
16967    }
16968  }
16969}
16970ListChainAnimationModifier.identity = Symbol('listChainAnimation');
16971class ListCachedCountModifier extends ModifierWithKey {
16972  constructor(value) {
16973    super(value);
16974  }
16975  applyPeer(node, reset) {
16976    if (reset) {
16977      getUINativeModule().list.resetCachedCount(node);
16978    }
16979    else {
16980      getUINativeModule().list.setCachedCount(node, this.value);
16981    }
16982  }
16983}
16984ListCachedCountModifier.identity = Symbol('listCachedCount');
16985class ListEnableScrollInteractionModifier extends ModifierWithKey {
16986  constructor(value) {
16987    super(value);
16988  }
16989  applyPeer(node, reset) {
16990    if (reset) {
16991      getUINativeModule().list.resetEnableScrollInteraction(node);
16992    }
16993    else {
16994      getUINativeModule().list.setEnableScrollInteraction(node, this.value);
16995    }
16996  }
16997}
16998ListEnableScrollInteractionModifier.identity = Symbol('listEnableScrollInteraction');
16999class ListStickyModifier extends ModifierWithKey {
17000  constructor(value) {
17001    super(value);
17002  }
17003  applyPeer(node, reset) {
17004    if (reset) {
17005      getUINativeModule().list.resetSticky(node);
17006    }
17007    else {
17008      getUINativeModule().list.setSticky(node, this.value);
17009    }
17010  }
17011}
17012ListStickyModifier.identity = Symbol('listSticky');
17013class ListEdgeEffectModifier extends ModifierWithKey {
17014  constructor(value) {
17015    super(value);
17016  }
17017  applyPeer(node, reset) {
17018    let _a;
17019    if (reset) {
17020      getUINativeModule().list.resetListEdgeEffect(node);
17021    }
17022    else {
17023      getUINativeModule().list.setListEdgeEffect(node, this.value.value, (_a = this.value.options) === null ||
17024      _a === void 0 ? void 0 : _a.alwaysEnabled);
17025    }
17026  }
17027  checkObjectDiff() {
17028    return !((this.stageValue.value === this.value.value) &&
17029      (this.stageValue.options === this.value.options));
17030  }
17031}
17032ListEdgeEffectModifier.identity = Symbol('listEdgeEffect');
17033class ListListDirectionModifier extends ModifierWithKey {
17034  constructor(value) {
17035    super(value);
17036  }
17037  applyPeer(node, reset) {
17038    if (reset) {
17039      getUINativeModule().list.resetListDirection(node);
17040    }
17041    else {
17042      getUINativeModule().list.setListDirection(node, this.value);
17043    }
17044  }
17045}
17046ListListDirectionModifier.identity = Symbol('listListDirection');
17047class ListFrictionModifier extends ModifierWithKey {
17048  constructor(value) {
17049    super(value);
17050  }
17051  applyPeer(node, reset) {
17052    if (reset) {
17053      getUINativeModule().list.resetListFriction(node);
17054    }
17055    else {
17056      if (!isNumber(this.value) && !isResource(this.value)) {
17057        getUINativeModule().list.resetListFriction(node);
17058      }
17059      else {
17060        getUINativeModule().list.setListFriction(node, this.value);
17061      }
17062    }
17063  }
17064  checkObjectDiff() {
17065    return !isBaseOrResourceEqual(this.stageValue, this.value);
17066  }
17067}
17068ListFrictionModifier.identity = Symbol('listFriction');
17069class ListNestedScrollModifier extends ModifierWithKey {
17070  constructor(value) {
17071    super(value);
17072  }
17073  applyPeer(node, reset) {
17074    let _a, _b;
17075    if (reset) {
17076      getUINativeModule().list.resetListNestedScroll(node);
17077    }
17078    else {
17079      getUINativeModule().list.setListNestedScroll(node, (_a = this.value) === null ||
17080      _a === void 0 ? void 0 : _a.scrollForward, (_b = this.value) === null ||
17081      _b === void 0 ? void 0 : _b.scrollBackward);
17082    }
17083  }
17084}
17085ListNestedScrollModifier.identity = Symbol('listNestedScroll');
17086class ListScrollBarModifier extends ModifierWithKey {
17087  constructor(value) {
17088    super(value);
17089  }
17090  applyPeer(node, reset) {
17091    if (reset) {
17092      getUINativeModule().list.resetListScrollBar(node);
17093    }
17094    else {
17095      getUINativeModule().list.setListScrollBar(node, this.value);
17096    }
17097  }
17098}
17099ListScrollBarModifier.identity = Symbol('listScrollBar');
17100class ListLanesModifier extends ModifierWithKey {
17101  constructor(value) {
17102    super(value);
17103  }
17104  applyPeer(node, reset) {
17105    if (reset) {
17106      getUINativeModule().list.resetListLanes(node);
17107    }
17108    else {
17109      getUINativeModule().list.setListLanes(node, this.value.lanesNum, this.value.minLength, this.value.maxLength, this.value.gutter);
17110    }
17111  }
17112  checkObjectDiff() {
17113    return true;
17114  }
17115}
17116ListLanesModifier.identity = Symbol('listLanes');
17117class ListClipModifier extends ModifierWithKey {
17118  constructor(value) {
17119    super(value);
17120  }
17121  applyPeer(node, reset) {
17122    if (reset) {
17123      getUINativeModule().common.resetClipWithEdge(node);
17124    }
17125    else {
17126      getUINativeModule().common.setClipWithEdge(node, this.value);
17127    }
17128  }
17129  checkObjectDiff() {
17130    return true;
17131  }
17132}
17133ListClipModifier.identity = Symbol('listClip');
17134class ArkListComponent extends ArkComponent {
17135  constructor(nativePtr) {
17136    super(nativePtr);
17137  }
17138  lanes(value, gutter) {
17139    let opt = new ArkLanesOpt();
17140    opt.gutter = gutter;
17141    if (isUndefined(value)) {
17142      opt.lanesNum = undefined;
17143    }
17144    else if (isNumber(value)) {
17145      opt.lanesNum = value;
17146    }
17147    else {
17148      const lc = value;
17149      opt.minLength = lc.minLength;
17150      opt.maxLength = lc.maxLength;
17151    }
17152    modifierWithKey(this._modifiersWithKeys, ListLanesModifier.identity, ListLanesModifier, opt);
17153    return this;
17154  }
17155  alignListItem(value) {
17156    modifierWithKey(this._modifiersWithKeys, ListAlignListItemModifier.identity, ListAlignListItemModifier, value);
17157    return this;
17158  }
17159  listDirection(value) {
17160    modifierWithKey(this._modifiersWithKeys, ListListDirectionModifier.identity, ListListDirectionModifier, value);
17161    return this;
17162  }
17163  scrollBar(value) {
17164    modifierWithKey(this._modifiersWithKeys, ListScrollBarModifier.identity, ListScrollBarModifier, value);
17165    return this;
17166  }
17167  edgeEffect(value, options) {
17168    let effect = new ArkListEdgeEffect();
17169    effect.value = value;
17170    effect.options = options;
17171    modifierWithKey(this._modifiersWithKeys, ListEdgeEffectModifier.identity, ListEdgeEffectModifier, effect);
17172    return this;
17173  }
17174  contentStartOffset(value) {
17175    modifierWithKey(this._modifiersWithKeys, ContentStartOffsetModifier.identity, ContentStartOffsetModifier, value);
17176    return this;
17177  }
17178  contentEndOffset(value) {
17179    modifierWithKey(this._modifiersWithKeys, ContentEndOffsetModifier.identity, ContentEndOffsetModifier, value);
17180    return this;
17181  }
17182  divider(value) {
17183    modifierWithKey(this._modifiersWithKeys, ListDividerModifier.identity, ListDividerModifier, value);
17184    return this;
17185  }
17186  editMode(value) {
17187    modifierWithKey(this._modifiersWithKeys, ListEditModeModifier.identity, ListEditModeModifier, value);
17188    return this;
17189  }
17190  multiSelectable(value) {
17191    modifierWithKey(this._modifiersWithKeys, ListMultiSelectableModifier.identity, ListMultiSelectableModifier, value);
17192    return this;
17193  }
17194  cachedCount(value) {
17195    modifierWithKey(this._modifiersWithKeys, ListCachedCountModifier.identity, ListCachedCountModifier, value);
17196    return this;
17197  }
17198  chainAnimation(value) {
17199    modifierWithKey(this._modifiersWithKeys, ListChainAnimationModifier.identity, ListChainAnimationModifier, value);
17200    return this;
17201  }
17202  chainAnimationOptions(value) {
17203    modifierWithKey(this._modifiersWithKeys, ChainAnimationOptionsModifier.identity, ChainAnimationOptionsModifier, value);
17204    return this;
17205  }
17206  sticky(value) {
17207    modifierWithKey(this._modifiersWithKeys, ListStickyModifier.identity, ListStickyModifier, value);
17208    return this;
17209  }
17210  scrollSnapAlign(value) {
17211    modifierWithKey(this._modifiersWithKeys, ListScrollSnapAlignModifier.identity, ListScrollSnapAlignModifier, value);
17212    return this;
17213  }
17214  nestedScroll(value) {
17215    modifierWithKey(this._modifiersWithKeys, ListNestedScrollModifier.identity, ListNestedScrollModifier, value);
17216    return this;
17217  }
17218  enableScrollInteraction(value) {
17219    modifierWithKey(this._modifiersWithKeys, ListEnableScrollInteractionModifier.identity, ListEnableScrollInteractionModifier, value);
17220    return this;
17221  }
17222  friction(value) {
17223    modifierWithKey(this._modifiersWithKeys, ListFrictionModifier.identity, ListFrictionModifier, value);
17224    return this;
17225  }
17226  clip(value) {
17227    modifierWithKey(this._modifiersWithKeys, ListClipModifier.identity, ListClipModifier, value);
17228    return this;
17229  }
17230  onScroll(event) {
17231    throw new Error('Method not implemented.');
17232  }
17233  onScrollIndex(event) {
17234    throw new Error('Method not implemented.');
17235  }
17236  onReachStart(event) {
17237    throw new Error('Method not implemented.');
17238  }
17239  onReachEnd(event) {
17240    throw new Error('Method not implemented.');
17241  }
17242  onScrollStart(event) {
17243    throw new Error('Method not implemented.');
17244  }
17245  onScrollStop(event) {
17246    throw new Error('Method not implemented.');
17247  }
17248  onItemDelete(event) {
17249    throw new Error('Method not implemented.');
17250  }
17251  onItemMove(event) {
17252    throw new Error('Method not implemented.');
17253  }
17254  onItemDragStart(event) {
17255    throw new Error('Method not implemented.');
17256  }
17257  onItemDragEnter(event) {
17258    throw new Error('Method not implemented.');
17259  }
17260  onItemDragMove(event) {
17261    throw new Error('Method not implemented.');
17262  }
17263  onItemDragLeave(event) {
17264    throw new Error('Method not implemented.');
17265  }
17266  onItemDrop(event) {
17267    throw new Error('Method not implemented.');
17268  }
17269  onScrollFrameBegin(event) {
17270    throw new Error('Method not implemented.');
17271  }
17272}
17273// @ts-ignore
17274globalThis.List.attributeModifier = function (modifier) {
17275  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
17276  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
17277  let component = this.createOrGetNode(elmtId, () => {
17278    return new ArkListComponent(nativeNode);
17279  });
17280  applyUIAttributes(modifier, nativeNode, component);
17281  component.applyModifierPatch();
17282};
17283
17284/// <reference path='./import.ts' />
17285class ListItemSelectedModifier extends ModifierWithKey {
17286  applyPeer(node, reset) {
17287    if (reset) {
17288      getUINativeModule().listItem.resetListItemSelected(node);
17289    }
17290    else {
17291      getUINativeModule().listItem.setListItemSelected(node, this.value);
17292    }
17293  }
17294}
17295ListItemSelectedModifier.identity = Symbol('listItemSelected');
17296class ListItemSelectableModifier extends ModifierWithKey {
17297  applyPeer(node, reset) {
17298    if (reset) {
17299      getUINativeModule().listItem.resetSelectable(node);
17300    }
17301    else {
17302      getUINativeModule().listItem.setSelectable(node, this.value);
17303    }
17304  }
17305}
17306ListItemSelectableModifier.identity = Symbol('listItemSelectable');
17307class ArkListItemComponent extends ArkComponent {
17308  constructor(nativePtr) {
17309    super(nativePtr);
17310  }
17311  sticky(value) {
17312    throw new Error('Method not implemented.');
17313  }
17314  editable(value) {
17315    throw new Error('Method not implemented.');
17316  }
17317  selectable(value) {
17318    modifierWithKey(this._modifiersWithKeys, ListItemSelectableModifier.identity, ListItemSelectableModifier, value);
17319    return this;
17320  }
17321  selected(value) {
17322    modifierWithKey(this._modifiersWithKeys, ListItemSelectedModifier.identity, ListItemSelectedModifier, value);
17323    return this;
17324  }
17325  swipeAction(value) {
17326    throw new Error('Method not implemented.');
17327  }
17328  onSelect(event) {
17329    throw new Error('Method not implemented.');
17330  }
17331}
17332// @ts-ignore
17333globalThis.ListItem.attributeModifier = function (modifier) {
17334  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
17335  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
17336  let component = this.createOrGetNode(elmtId, () => {
17337    return new ArkListItemComponent(nativeNode);
17338  });
17339  applyUIAttributes(modifier, nativeNode, component);
17340  component.applyModifierPatch();
17341};
17342
17343/// <reference path='./import.ts' />
17344class ListItemGroupDividerModifier extends ModifierWithKey {
17345  constructor(value) {
17346    super(value);
17347  }
17348  applyPeer(node, reset) {
17349    let _a, _b, _c, _d;
17350    if (reset) {
17351      getUINativeModule().listItemGroup.resetDivider(node);
17352    }
17353    else {
17354      getUINativeModule().listItemGroup.setDivider(node, (_a = this.value) === null ||
17355      _a === void 0 ? void 0 : _a.strokeWidth, (_b = this.value) === null ||
17356      _b === void 0 ? void 0 : _b.color, (_c = this.value) === null ||
17357      _c === void 0 ? void 0 : _c.startMargin, (_d = this.value) === null ||
17358      _d === void 0 ? void 0 : _d.endMargin);
17359    }
17360  }
17361  checkObjectDiff() {
17362    let _a, _b, _c, _d, _e, _f, _g, _h;
17363    return !(((_a = this.stageValue) === null || _a === void 0 ? void 0 : _a.strokeWidth) === ((_b = this.value) === null || _b === void 0 ? void 0 : _b.strokeWidth) &&
17364      ((_c = this.stageValue) === null || _c === void 0 ? void 0 : _c.color) === ((_d = this.value) === null || _d === void 0 ? void 0 : _d.color) &&
17365      ((_e = this.stageValue) === null || _e === void 0 ? void 0 : _e.startMargin) === ((_f = this.value) === null || _f === void 0 ? void 0 : _f.startMargin) &&
17366      ((_g = this.stageValue) === null || _g === void 0 ? void 0 : _g.endMargin) === ((_h = this.value) === null || _h === void 0 ? void 0 : _h.endMargin));
17367  }
17368}
17369ListItemGroupDividerModifier.identity = Symbol('listItemGroupDivider');
17370class ArkListItemGroupComponent extends ArkComponent {
17371  constructor(nativePtr) {
17372    super(nativePtr);
17373  }
17374  divider(value) {
17375    modifierWithKey(this._modifiersWithKeys, ListItemGroupDividerModifier.identity, ListItemGroupDividerModifier, value);
17376    return this;
17377  }
17378}
17379// @ts-ignore
17380globalThis.ListItemGroup.attributeModifier = function (modifier) {
17381  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
17382  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
17383  let component = this.createOrGetNode(elmtId, () => {
17384    return new ArkListItemGroupComponent(nativeNode);
17385  });
17386  applyUIAttributes(modifier, nativeNode, component);
17387  component.applyModifierPatch();
17388};
17389
17390/// <reference path='./import.ts' />
17391class ArkRelativeContainerComponent extends ArkComponent {
17392  constructor(nativePtr) {
17393    super(nativePtr);
17394  }
17395}
17396// @ts-ignore
17397globalThis.RelativeContainer.attributeModifier = function (modifier) {
17398  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
17399  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
17400  let component = this.createOrGetNode(elmtId, () => {
17401    return new ArkRelativeContainerComponent(nativeNode);
17402  });
17403  applyUIAttributes(modifier, nativeNode, component);
17404  component.applyModifierPatch();
17405};
17406
17407/// <reference path='./import.ts' />
17408class ArkSwiperComponent extends ArkComponent {
17409  constructor(nativePtr) {
17410    super(nativePtr);
17411  }
17412  index(value) {
17413    modifierWithKey(this._modifiersWithKeys, SwiperIndexModifier.identity, SwiperIndexModifier, value);
17414    return this;
17415  }
17416  autoPlay(value) {
17417    modifierWithKey(this._modifiersWithKeys, SwiperAutoPlayModifier.identity, SwiperAutoPlayModifier, value);
17418    return this;
17419  }
17420  interval(value) {
17421    modifierWithKey(this._modifiersWithKeys, SwiperIntervalModifier.identity, SwiperIntervalModifier, value);
17422    return this;
17423  }
17424  indicator(value) {
17425    modifierWithKey(this._modifiersWithKeys, SwiperIndicatorModifier.identity, SwiperIndicatorModifier, value);
17426    return this;
17427  }
17428  displayArrow(value, isHoverShow) {
17429    let arkDisplayArrow = new ArkDisplayArrow();
17430    arkDisplayArrow.value = value;
17431    arkDisplayArrow.isHoverShow = isHoverShow;
17432    modifierWithKey(this._modifiersWithKeys, SwiperDisplayArrowModifier.identity, SwiperDisplayArrowModifier, arkDisplayArrow);
17433    return this;
17434  }
17435  loop(value) {
17436    modifierWithKey(this._modifiersWithKeys, SwiperLoopModifier.identity, SwiperLoopModifier, value);
17437    return this;
17438  }
17439  duration(value) {
17440    modifierWithKey(this._modifiersWithKeys, SwiperDurationModifier.identity, SwiperDurationModifier, value);
17441    return this;
17442  }
17443  vertical(value) {
17444    modifierWithKey(this._modifiersWithKeys, SwiperVerticalModifier.identity, SwiperVerticalModifier, value);
17445    return this;
17446  }
17447  itemSpace(value) {
17448    modifierWithKey(this._modifiersWithKeys, SwiperItemSpaceModifier.identity, SwiperItemSpaceModifier, value);
17449    return this;
17450  }
17451  displayMode(value) {
17452    modifierWithKey(this._modifiersWithKeys, SwiperDisplayModeModifier.identity, SwiperDisplayModeModifier, value);
17453    return this;
17454  }
17455  cachedCount(value) {
17456    modifierWithKey(this._modifiersWithKeys, SwiperCachedCountModifier.identity, SwiperCachedCountModifier, value);
17457    return this;
17458  }
17459  displayCount(value) {
17460    modifierWithKey(this._modifiersWithKeys, SwiperDisplayCountModifier.identity, SwiperDisplayCountModifier, value);
17461    return this;
17462  }
17463  effectMode(value) {
17464    modifierWithKey(this._modifiersWithKeys, SwiperEffectModeModifier.identity, SwiperEffectModeModifier, value);
17465    return this;
17466  }
17467  disableSwipe(value) {
17468    modifierWithKey(this._modifiersWithKeys, SwiperDisableSwipeModifier.identity, SwiperDisableSwipeModifier, value);
17469    return this;
17470  }
17471  curve(value) {
17472    modifierWithKey(this._modifiersWithKeys, SwiperCurveModifier.identity, SwiperCurveModifier, value);
17473    return this;
17474  }
17475  onChange(event) {
17476    throw new Error('Method not implemented.');
17477  }
17478  indicatorStyle(value) {
17479    throw new Error('Method not implemented.');
17480  }
17481  prevMargin(value) {
17482    modifierWithKey(this._modifiersWithKeys, SwiperPrevMarginModifier.identity, SwiperPrevMarginModifier, value);
17483    return this;
17484  }
17485  nextMargin(value) {
17486    modifierWithKey(this._modifiersWithKeys, SwiperNextMarginModifier.identity, SwiperNextMarginModifier, value);
17487    return this;
17488  }
17489  enabled(value) {
17490    modifierWithKey(this._modifiersWithKeys, SwiperEnabledModifier.identity, SwiperEnabledModifier, value);
17491    return this;
17492  }
17493  onAnimationStart(event) {
17494    throw new Error('Method not implemented.');
17495  }
17496  onAnimationEnd(event) {
17497    throw new Error('Method not implemented.');
17498  }
17499  onGestureSwipe(event) {
17500    throw new Error('Method not implemented.');
17501  }
17502  nestedScroll(value) {
17503    throw new Error('Method not implemented.');
17504  }
17505}
17506class SwiperNextMarginModifier extends ModifierWithKey {
17507  applyPeer(node, reset) {
17508    if (reset) {
17509      getUINativeModule().swiper.resetSwiperNextMargin(node);
17510    }
17511    else {
17512      getUINativeModule().swiper.setSwiperNextMargin(node, this.value);
17513    }
17514  }
17515  checkObjectDiff() {
17516    return !isBaseOrResourceEqual(this.stageValue, this.value);
17517  }
17518}
17519SwiperNextMarginModifier.identity = Symbol('swiperNextMargin');
17520class SwiperPrevMarginModifier extends ModifierWithKey {
17521  applyPeer(node, reset) {
17522    if (reset) {
17523      getUINativeModule().swiper.resetSwiperPrevMargin(node);
17524    }
17525    else {
17526      getUINativeModule().swiper.setSwiperPrevMargin(node, this.value);
17527    }
17528  }
17529  checkObjectDiff() {
17530    return !isBaseOrResourceEqual(this.stageValue, this.value);
17531  }
17532}
17533SwiperPrevMarginModifier.identity = Symbol('swiperPrevMargin');
17534class SwiperDisplayCountModifier extends ModifierWithKey {
17535  applyPeer(node, reset) {
17536    if (reset) {
17537      getUINativeModule().swiper.resetSwiperDisplayCount(node);
17538    }
17539    else {
17540      if (isNull(this.value) || isUndefined(this.value)) {
17541        getUINativeModule().swiper.resetSwiperDisplayCount(node);
17542      }
17543      else if (typeof this.value === 'object') {
17544        let minSize = this.value.minSize.toString();
17545        getUINativeModule().swiper.setSwiperDisplayCount(node, minSize, typeof this.value);
17546      }
17547      else {
17548        getUINativeModule().swiper.setSwiperDisplayCount(node, this.value, typeof this.value);
17549      }
17550    }
17551  }
17552  checkObjectDiff() {
17553    if (typeof this.stageValue !== typeof this.value) {
17554      return true;
17555    }
17556    else if (typeof this.stageValue === 'object' && typeof this.stageValue === 'object') {
17557      return this.stageValue.minSize !== this.value.minSize;
17558    }
17559    else {
17560      return !isBaseOrResourceEqual(this.stageValue, this.value);
17561    }
17562  }
17563}
17564SwiperDisplayCountModifier.identity = Symbol('swiperDisplayCount');
17565class SwiperDisplayArrowModifier extends ModifierWithKey {
17566  applyPeer(node, reset) {
17567    if (reset) {
17568      getUINativeModule().swiper.resetSwiperDisplayArrow(node);
17569    }
17570    else {
17571      if (!isNull(this.value.value) && !isUndefined(this.value.value) && typeof this.value === 'object') {
17572        let displayArrowValue = 3;
17573        let showBackground;
17574        let isSidebarMiddle;
17575        let backgroundSize;
17576        let backgroundColor;
17577        let arrowSize;
17578        let arrowColor;
17579        if (typeof this.value.value === 'boolean') {
17580          if (this.value.value) {
17581            displayArrowValue = 1;
17582          }
17583          else {
17584            displayArrowValue = 0;
17585          }
17586        }
17587        else if (typeof this.value.value === 'object') {
17588          displayArrowValue = 2;
17589          showBackground = this.value.value.showBackground;
17590          isSidebarMiddle = this.value.value.isSidebarMiddle;
17591          backgroundSize = this.value.value.backgroundSize;
17592          backgroundColor = this.value.value.backgroundColor;
17593          arrowSize = this.value.value.arrowSize;
17594          arrowColor = this.value.value.arrowColor;
17595        }
17596        let isHoverShow;
17597        if (typeof this.value.isHoverShow === 'boolean') {
17598          isHoverShow = this.value.isHoverShow;
17599        }
17600        getUINativeModule().swiper.setSwiperDisplayArrow(node, displayArrowValue, showBackground,
17601          isSidebarMiddle, backgroundSize, backgroundColor, arrowSize, arrowColor, isHoverShow);
17602      }
17603      else {
17604        getUINativeModule().swiper.resetSwiperDisplayArrow(node);
17605      }
17606    }
17607  }
17608  checkObjectDiff() {
17609    if (this.stageValue.isHoverShow !== this.value.isHoverShow ||
17610      typeof this.stageValue.value !== typeof this.value.value) {
17611      return true;
17612    }
17613    if (typeof this.stageValue.value === 'boolean' &&
17614      typeof this.value.value === 'boolean' &&
17615      this.stageValue.value !== this.value.value) {
17616      return true;
17617    }
17618    else if (typeof this.stageValue.value === 'object' && typeof this.value.value === 'object') {
17619      return (!isBaseOrResourceEqual(this.stageValue.value.showBackground, this.value.value.showBackground) ||
17620        !isBaseOrResourceEqual(this.stageValue.value.isSidebarMiddle, this.value.value.isSidebarMiddle) ||
17621        !isBaseOrResourceEqual(this.stageValue.value.backgroundSize, this.value.value.backgroundSize) ||
17622        !isBaseOrResourceEqual(this.stageValue.value.backgroundColor, this.value.value.backgroundColor) ||
17623        !isBaseOrResourceEqual(this.stageValue.value.arrowSize, this.value.value.arrowSize) ||
17624        !isBaseOrResourceEqual(this.stageValue.value.arrowColor, this.value.value.arrowColor));
17625    }
17626    else {
17627      return true;
17628    }
17629  }
17630}
17631SwiperDisplayArrowModifier.identity = Symbol('swiperDisplayArrow');
17632class SwiperIndicatorModifier extends ModifierWithKey {
17633  applyPeer(node, reset) {
17634    if (reset) {
17635      getUINativeModule().swiper.resetSwiperIndicator(node);
17636    }
17637    else {
17638      let left;
17639      let top;
17640      let right;
17641      let bottom;
17642      let itemWidth;
17643      let itemHeight;
17644      let selectedItemWidth;
17645      let selectedItemHeight;
17646      let mask;
17647      let color;
17648      let selectedColor;
17649      let fontColor;
17650      let selectedFontColor;
17651      let digitFontSize;
17652      let digitFontWeight;
17653      let selectedDigitFontSize;
17654      let selectedDigitFontWeight;
17655      if (typeof this.value === 'boolean') {
17656        getUINativeModule().swiper.setSwiperIndicator(node, 'boolean', this.value);
17657      }
17658      else if (typeof this.value === 'object' && this.value.type === 'DotIndicator') {
17659        left = this.value.leftValue;
17660        top = this.value.topValue;
17661        right = this.value.rightValue;
17662        bottom = this.value.bottomValue;
17663        itemWidth = this.value.itemWidthValue;
17664        itemHeight = this.value.itemHeightValue;
17665        selectedItemWidth = this.value.selectedItemWidthValue;
17666        selectedItemHeight = this.value.selectedItemHeightValue;
17667        mask = this.value.maskValue;
17668        color = this.value.colorValue;
17669        selectedColor = this.value.selectedColorValue;
17670        getUINativeModule().swiper.setSwiperIndicator(node, 'ArkDotIndicator', itemWidth, itemHeight, selectedItemWidth,
17671          selectedItemHeight, mask, color, selectedColor, left, top, right, bottom);
17672      }
17673      else if (typeof this.value === 'object' && this.value.type === 'DigitIndicator') {
17674        left = this.value.leftValue;
17675        top = this.value.topValue;
17676        right = this.value.rightValue;
17677        bottom = this.value.bottomValue;
17678        fontColor = this.value.fontColorValue;
17679        selectedFontColor = this.value.selectedFontColorValue;
17680        let arkDigitFont = new ArkDigitFont();
17681        if (typeof this.value.digitFontValue === 'object') {
17682          digitFontSize = this.value.digitFontValue.size;
17683          digitFontWeight = arkDigitFont.parseFontWeight(this.value.digitFontValue.weight);
17684        }
17685        if (typeof this.value.selectedDigitFontValue === 'object') {
17686          selectedDigitFontSize = this.value.selectedDigitFontValue.size;
17687          selectedDigitFontWeight = arkDigitFont.parseFontWeight(this.value.selectedDigitFontValue.weight);
17688        }
17689        getUINativeModule().swiper.setSwiperIndicator(node, 'ArkDigitIndicator', fontColor, selectedFontColor, digitFontSize,
17690          digitFontWeight, selectedDigitFontSize, selectedDigitFontWeight, left, top, right, bottom);
17691      }
17692      else {
17693        getUINativeModule().swiper.setSwiperIndicator(node, 'boolean', true);
17694      }
17695    }
17696  }
17697  checkObjectDiff() {
17698    if (typeof this.stageValue !== typeof this.value) {
17699      return true;
17700    }
17701    if (typeof this.stageValue === 'boolean' && typeof this.value === 'boolean') {
17702      return this.stageValue !== this.value;
17703    }
17704    if (this.stageValue instanceof ArkDotIndicator && this.value instanceof ArkDotIndicator) {
17705      return (!isBaseOrResourceEqual(this.stageValue.itemWidthValue, this.value.itemWidthValue) ||
17706        !isBaseOrResourceEqual(this.stageValue.itemHeightValue, this.value.itemHeightValue) ||
17707        !isBaseOrResourceEqual(this.stageValue.selectedItemWidthValue, this.value.selectedItemWidthValue) ||
17708        !isBaseOrResourceEqual(this.stageValue.selectedItemHeightValue, this.value.selectedItemHeightValue) ||
17709        !isBaseOrResourceEqual(this.stageValue.maskValue, this.value.maskValue) ||
17710        !isBaseOrResourceEqual(this.stageValue.colorValue, this.value.colorValue) ||
17711        !isBaseOrResourceEqual(this.stageValue.selectedColorValue, this.value.selectedColorValue));
17712    }
17713    else if (this.stageValue instanceof ArkDigitIndicator && this.value instanceof ArkDigitIndicator) {
17714      return (!isBaseOrResourceEqual(this.stageValue.fontColorValue, this.value.fontColorValue) ||
17715        !isBaseOrResourceEqual(this.stageValue.selectedFontColorValue, this.value.selectedFontColorValue) ||
17716        !isBaseOrResourceEqual(this.stageValue.digitFontValue.size, this.value.digitFontValue.size) ||
17717        !isBaseOrResourceEqual(this.stageValue.digitFontValue.weight, this.value.digitFontValue.weight) ||
17718        !isBaseOrResourceEqual(this.stageValue.selectedDigitFontValue.size, this.value.selectedDigitFontValue.size) ||
17719        !isBaseOrResourceEqual(this.stageValue.selectedDigitFontValue.weight, this.value.selectedDigitFontValue.weight));
17720    }
17721    else {
17722      return true;
17723    }
17724  }
17725}
17726SwiperIndicatorModifier.identity = Symbol('swiperIndicator');
17727class SwiperCurveModifier extends ModifierWithKey {
17728  applyPeer(node, reset) {
17729    if (reset) {
17730      getUINativeModule().swiper.resetSwiperCurve(node);
17731    }
17732    else {
17733      const curveMap = {
17734        [0]: 'linear',
17735        [1]: 'ease',
17736        [2]: 'ease-in',
17737        [3]: 'ease-out',
17738        [4]: 'ease-in-out',
17739        [5]: 'fast-out-slow-in',
17740        [6]: 'linear-out-slow-in',
17741        [7]: 'fast-out-linear-in',
17742        [8]: 'extreme-deceleration',
17743        [9]: 'sharp',
17744        [10]: 'rhythm',
17745        [11]: 'smooth',
17746        [12]: 'friction'
17747      };
17748      if (typeof this.value === 'number') {
17749        if (this.value in curveMap) {
17750          this.value = curveMap[this.value];
17751        }
17752        else {
17753          this.value = this.value.toString();
17754        }
17755      }
17756      getUINativeModule().swiper.setSwiperCurve(node, this.value);
17757    }
17758  }
17759  checkObjectDiff() {
17760    return !isBaseOrResourceEqual(this.stageValue, this.value);
17761  }
17762}
17763SwiperCurveModifier.identity = Symbol('swiperCurve');
17764class SwiperDisableSwipeModifier extends ModifierWithKey {
17765  applyPeer(node, reset) {
17766    if (reset) {
17767      getUINativeModule().swiper.resetSwiperDisableSwipe(node);
17768    }
17769    else {
17770      getUINativeModule().swiper.setSwiperDisableSwipe(node, this.value);
17771    }
17772  }
17773  checkObjectDiff() {
17774    return !isBaseOrResourceEqual(this.stageValue, this.value);
17775  }
17776}
17777SwiperDisableSwipeModifier.identity = Symbol('swiperDisableSwipe');
17778class SwiperEffectModeModifier extends ModifierWithKey {
17779  applyPeer(node, reset) {
17780    if (reset) {
17781      getUINativeModule().swiper.resetSwiperEffectMode(node);
17782    }
17783    else {
17784      getUINativeModule().swiper.setSwiperEffectMode(node, this.value);
17785    }
17786  }
17787  checkObjectDiff() {
17788    return !isBaseOrResourceEqual(this.stageValue, this.value);
17789  }
17790}
17791SwiperEffectModeModifier.identity = Symbol('swiperEffectMode');
17792class SwiperCachedCountModifier extends ModifierWithKey {
17793  applyPeer(node, reset) {
17794    if (reset) {
17795      getUINativeModule().swiper.resetSwiperCachedCount(node);
17796    }
17797    else {
17798      getUINativeModule().swiper.setSwiperCachedCount(node, this.value);
17799    }
17800  }
17801  checkObjectDiff() {
17802    return !isBaseOrResourceEqual(this.stageValue, this.value);
17803  }
17804}
17805SwiperCachedCountModifier.identity = Symbol('swiperCachedCount');
17806class SwiperDisplayModeModifier extends ModifierWithKey {
17807  applyPeer(node, reset) {
17808    if (reset) {
17809      getUINativeModule().swiper.resetSwiperDisplayMode(node);
17810    }
17811    else {
17812      getUINativeModule().swiper.setSwiperDisplayMode(node, this.value);
17813    }
17814  }
17815  checkObjectDiff() {
17816    return !isBaseOrResourceEqual(this.stageValue, this.value);
17817  }
17818}
17819SwiperDisplayModeModifier.identity = Symbol('swiperDisplayMode');
17820class SwiperItemSpaceModifier extends ModifierWithKey {
17821  applyPeer(node, reset) {
17822    if (reset) {
17823      getUINativeModule().swiper.resetSwiperItemSpace(node);
17824    }
17825    else {
17826      getUINativeModule().swiper.setSwiperItemSpace(node, this.value);
17827    }
17828  }
17829  checkObjectDiff() {
17830    return !isBaseOrResourceEqual(this.stageValue, this.value);
17831  }
17832}
17833SwiperItemSpaceModifier.identity = Symbol('swiperItemSpace');
17834class SwiperVerticalModifier extends ModifierWithKey {
17835  applyPeer(node, reset) {
17836    if (reset) {
17837      getUINativeModule().swiper.resetSwiperVertical(node);
17838    }
17839    else {
17840      getUINativeModule().swiper.setSwiperVertical(node, this.value);
17841    }
17842  }
17843  checkObjectDiff() {
17844    return !isBaseOrResourceEqual(this.stageValue, this.value);
17845  }
17846}
17847SwiperVerticalModifier.identity = Symbol('swiperVertical');
17848class SwiperLoopModifier extends ModifierWithKey {
17849  applyPeer(node, reset) {
17850    if (reset) {
17851      getUINativeModule().swiper.resetSwiperLoop(node);
17852    }
17853    else {
17854      getUINativeModule().swiper.setSwiperLoop(node, this.value);
17855    }
17856  }
17857  checkObjectDiff() {
17858    return !isBaseOrResourceEqual(this.stageValue, this.value);
17859  }
17860}
17861SwiperLoopModifier.identity = Symbol('swiperLoop');
17862class SwiperIntervalModifier extends ModifierWithKey {
17863  applyPeer(node, reset) {
17864    if (reset) {
17865      getUINativeModule().swiper.resetSwiperInterval(node);
17866    }
17867    else {
17868      getUINativeModule().swiper.setSwiperInterval(node, this.value);
17869    }
17870  }
17871  checkObjectDiff() {
17872    return !isBaseOrResourceEqual(this.stageValue, this.value);
17873  }
17874}
17875SwiperIntervalModifier.identity = Symbol('swiperInterval');
17876class SwiperAutoPlayModifier extends ModifierWithKey {
17877  applyPeer(node, reset) {
17878    if (reset) {
17879      getUINativeModule().swiper.resetSwiperAutoPlay(node);
17880    }
17881    else {
17882      getUINativeModule().swiper.setSwiperAutoPlay(node, this.value);
17883    }
17884  }
17885  checkObjectDiff() {
17886    return !isBaseOrResourceEqual(this.stageValue, this.value);
17887  }
17888}
17889SwiperAutoPlayModifier.identity = Symbol('swiperAutoPlay');
17890class SwiperIndexModifier extends ModifierWithKey {
17891  applyPeer(node, reset) {
17892    if (reset) {
17893      getUINativeModule().swiper.resetSwiperIndex(node);
17894    }
17895    else {
17896      getUINativeModule().swiper.setSwiperIndex(node, this.value);
17897    }
17898  }
17899  checkObjectDiff() {
17900    return !isBaseOrResourceEqual(this.stageValue, this.value);
17901  }
17902}
17903SwiperIndexModifier.identity = Symbol('swiperIndex');
17904class SwiperDurationModifier extends ModifierWithKey {
17905  applyPeer(node, reset) {
17906    if (reset) {
17907      getUINativeModule().swiper.resetSwiperDuration(node);
17908    }
17909    else {
17910      getUINativeModule().swiper.setSwiperDuration(node, this.value);
17911    }
17912  }
17913  checkObjectDiff() {
17914    return !isBaseOrResourceEqual(this.stageValue, this.value);
17915  }
17916}
17917SwiperDurationModifier.identity = Symbol('swiperDuration');
17918class SwiperEnabledModifier extends ModifierWithKey {
17919  constructor(value) {
17920    super(value);
17921  }
17922  applyPeer(node, reset) {
17923    if (reset) {
17924      getUINativeModule().swiper.resetSwiperEnabled(node);
17925    }
17926    else {
17927      getUINativeModule().swiper.setSwiperEnabled(node, this.value);
17928    }
17929  }
17930}
17931SwiperEnabledModifier.identity = Symbol('swiperenabled');
17932// @ts-ignore
17933globalThis.Swiper.attributeModifier = function (modifier) {
17934  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
17935  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
17936  let component = this.createOrGetNode(elmtId, () => {
17937    return new ArkSwiperComponent(nativeNode);
17938  });
17939  applyUIAttributes(modifier, nativeNode, component);
17940  component.applyModifierPatch();
17941};
17942
17943/// <reference path='./import.ts' />
17944class ArkTabsComponent extends ArkComponent {
17945  constructor(nativePtr) {
17946    super(nativePtr);
17947  }
17948  onAnimationStart(handler) {
17949    throw new Error('Method not implemented.');
17950  }
17951  onAnimationEnd(handler) {
17952    throw new Error('Method not implemented.');
17953  }
17954  onGestureSwipe(handler) {
17955    throw new Error('Method not implemented.');
17956  }
17957  vertical(value) {
17958    modifierWithKey(this._modifiersWithKeys, TabsVerticalModifier.identity, TabsVerticalModifier, value);
17959    return this;
17960  }
17961  barPosition(value) {
17962    modifierWithKey(this._modifiersWithKeys, BarPositionModifier.identity, BarPositionModifier, value);
17963    return this;
17964  }
17965  scrollable(value) {
17966    modifierWithKey(this._modifiersWithKeys, ScrollableModifier.identity, ScrollableModifier, value);
17967    return this;
17968  }
17969  barMode(value, options) {
17970    let arkBarMode = new ArkBarMode();
17971    arkBarMode.barMode = value;
17972    arkBarMode.options = options;
17973    modifierWithKey(this._modifiersWithKeys, TabBarModeModifier.identity, TabBarModeModifier, arkBarMode);
17974    return this;
17975  }
17976  barWidth(value) {
17977    modifierWithKey(this._modifiersWithKeys, BarWidthModifier.identity, BarWidthModifier, value);
17978    return this;
17979  }
17980  barHeight(value) {
17981    if (isUndefined(value) || isNull(value)) {
17982      modifierWithKey(this._modifiersWithKeys, BarHeightModifier.identity, BarHeightModifier, undefined);
17983    }
17984    else {
17985      modifierWithKey(this._modifiersWithKeys, BarHeightModifier.identity, BarHeightModifier, value);
17986    }
17987    return this;
17988  }
17989  animationDuration(value) {
17990    modifierWithKey(this._modifiersWithKeys, AnimationDurationModifier.identity, AnimationDurationModifier, value);
17991    return this;
17992  }
17993  onChange(event) {
17994    throw new Error('Method not implemented.');
17995  }
17996  onTabBarClick(event) {
17997    throw new Error('Method not implemented.');
17998  }
17999  fadingEdge(value) {
18000    modifierWithKey(this._modifiersWithKeys, FadingEdgeModifier.identity, FadingEdgeModifier, value);
18001    return this;
18002  }
18003  divider(value) {
18004    modifierWithKey(this._modifiersWithKeys, DividerModifier.identity, DividerModifier, value);
18005    return this;
18006  }
18007  barOverlap(value) {
18008    modifierWithKey(this._modifiersWithKeys, BarOverlapModifier.identity, BarOverlapModifier, value);
18009    return this;
18010  }
18011  barBackgroundColor(value) {
18012    modifierWithKey(this._modifiersWithKeys, BarBackgroundColorModifier.identity, BarBackgroundColorModifier, value);
18013    return this;
18014  }
18015  barGridAlign(value) {
18016    modifierWithKey(this._modifiersWithKeys, BarGridAlignModifier.identity, BarGridAlignModifier, value);
18017    return this;
18018  }
18019  clip(value) {
18020    modifierWithKey(this._modifiersWithKeys, TabClipModifier.identity, TabClipModifier, value);
18021    return this;
18022  }
18023}
18024class BarGridAlignModifier extends ModifierWithKey {
18025  constructor(value) {
18026    super(value);
18027  }
18028  applyPeer(node, reset) {
18029    if (reset) {
18030      getUINativeModule().tabs.resetBarGridAlign(node);
18031    }
18032    else {
18033      getUINativeModule().tabs.setBarGridAlign(node, this.value.sm, this.value.md, this.value.lg, this.value.gutter, this.value.margin);
18034    }
18035  }
18036  checkObjectDiff() {
18037    return !(this.stageValue.sm === this.value.sm &&
18038      this.stageValue.md === this.value.md &&
18039      this.stageValue.lg === this.value.lg &&
18040      this.stageValue.gutter === this.value.gutter &&
18041      this.stageValue.margin === this.value.margin);
18042  }
18043}
18044BarGridAlignModifier.identity = Symbol('barGridAlign');
18045class DividerModifier extends ModifierWithKey {
18046  constructor(value) {
18047    super(value);
18048  }
18049  applyPeer(node, reset) {
18050    if (reset) {
18051      getUINativeModule().tabs.resetDivider(node);
18052    }
18053    else {
18054      getUINativeModule().tabs.setDivider(node, this.value.strokeWidth, this.value.color, this.value.startMargin, this.value.endMargin);
18055    }
18056  }
18057  checkObjectDiff() {
18058    return !(this.stageValue.strokeWidth === this.value.strokeWidth &&
18059      this.stageValue.color === this.value.color &&
18060      this.stageValue.startMargin === this.value.startMargin &&
18061      this.stageValue.endMargin === this.value.endMargin);
18062  }
18063}
18064DividerModifier.identity = Symbol('Divider');
18065class BarWidthModifier extends ModifierWithKey {
18066  constructor(value) {
18067    super(value);
18068  }
18069  applyPeer(node, reset) {
18070    if (reset) {
18071      getUINativeModule().tabs.resetTabBarWidth(node);
18072    }
18073    else {
18074      getUINativeModule().tabs.setTabBarWidth(node, this.value);
18075    }
18076  }
18077  checkObjectDiff() {
18078    return !isBaseOrResourceEqual(this.stageValue, this.value);
18079  }
18080}
18081BarWidthModifier.identity = Symbol('barWidth');
18082class BarAdaptiveHeightModifier extends Modifier {
18083  constructor(value) {
18084    super(value);
18085  }
18086  applyPeer(node, reset) {
18087    if (reset) {
18088      getUINativeModule().tabs.resetBarAdaptiveHeight(node);
18089    }
18090    else {
18091      getUINativeModule().tabs.setBarAdaptiveHeight(node, this.value);
18092    }
18093  }
18094}
18095BarAdaptiveHeightModifier.identity = Symbol('barAdaptiveHeight');
18096class BarHeightModifier extends ModifierWithKey {
18097  constructor(value) {
18098    super(value);
18099  }
18100  applyPeer(node, reset) {
18101    if (reset) {
18102      getUINativeModule().tabs.resetTabBarHeight(node);
18103    }
18104    else {
18105      getUINativeModule().tabs.setTabBarHeight(node, this.value);
18106    }
18107  }
18108  checkObjectDiff() {
18109    return !isBaseOrResourceEqual(this.stageValue, this.value);
18110  }
18111}
18112BarHeightModifier.identity = Symbol('barHeight');
18113class BarOverlapModifier extends ModifierWithKey {
18114  constructor(value) {
18115    super(value);
18116  }
18117  applyPeer(node, reset) {
18118    if (reset) {
18119      getUINativeModule().tabs.resetBarOverlap(node);
18120    }
18121    else {
18122      getUINativeModule().tabs.setBarOverlap(node, this.value);
18123    }
18124  }
18125}
18126BarOverlapModifier.identity = Symbol('barOverlap');
18127class TabsVerticalModifier extends ModifierWithKey {
18128  constructor(value) {
18129    super(value);
18130  }
18131  applyPeer(node, reset) {
18132    if (reset) {
18133      getUINativeModule().tabs.resetIsVertical(node);
18134    }
18135    else {
18136      getUINativeModule().tabs.setIsVertical(node, this.value);
18137    }
18138  }
18139}
18140TabsVerticalModifier.identity = Symbol('vertical');
18141class AnimationDurationModifier extends ModifierWithKey {
18142  constructor(value) {
18143    super(value);
18144  }
18145  applyPeer(node, reset) {
18146    if (reset) {
18147      getUINativeModule().tabs.resetAnimationDuration(node);
18148    }
18149    else {
18150      getUINativeModule().tabs.setAnimationDuration(node, this.value);
18151    }
18152  }
18153}
18154AnimationDurationModifier.identity = Symbol('animationduration');
18155class ScrollableModifier extends ModifierWithKey {
18156  constructor(value) {
18157    super(value);
18158  }
18159  applyPeer(node, reset) {
18160    if (reset) {
18161      getUINativeModule().tabs.resetScrollable(node);
18162    }
18163    else {
18164      getUINativeModule().tabs.setScrollable(node, this.value);
18165    }
18166  }
18167}
18168ScrollableModifier.identity = Symbol('scrollable');
18169class TabBarModeModifier extends ModifierWithKey {
18170  constructor(value) {
18171    super(value);
18172  }
18173  applyPeer(node, reset) {
18174    let _a, _b;
18175    if (reset) {
18176      getUINativeModule().tabs.resetTabBarMode(node);
18177    }
18178    else {
18179      getUINativeModule().tabs.setTabBarMode(node, this.value.barMode,
18180        (_a = this.value.options) === null || _a === void 0 ? void 0 : _a.margin,
18181        (_b = this.value.options) === null || _b === void 0 ? void 0 : _b.nonScrollableLayoutStyle);
18182    }
18183  }
18184  checkObjectDiff() {
18185    let _a, _b, _c, _d;
18186    if (isResource(this.stageValue) && isResource(this.value)) {
18187      return !isResourceEqual(this.stageValue, this.value);
18188    }
18189    else if (!isResource(this.stageValue) && !isResource(this.value)) {
18190      return !(this.value.barMode === this.stageValue.barMode &&
18191        ((_a = this.value.options) === null || _a === void 0 ? void 0 : _a.margin) === ((_b = this.stageValue.options) === null ||
18192        _b === void 0 ? void 0 : _b.margin) &&
18193        ((_c = this.value.options) === null || _c === void 0 ? void 0 : _c.nonScrollableLayoutStyle) === ((_d = this.stageValue.options) === null ||
18194        _d === void 0 ? void 0 : _d.nonScrollableLayoutStyle));
18195    }
18196    else {
18197      return true;
18198    }
18199  }
18200}
18201TabBarModeModifier.identity = Symbol('tabsbarMode');
18202class BarPositionModifier extends ModifierWithKey {
18203  constructor(value) {
18204    super(value);
18205  }
18206  applyPeer(node, reset) {
18207    if (reset) {
18208      getUINativeModule().tabs.resetTabBarPosition(node);
18209    }
18210    else {
18211      getUINativeModule().tabs.setTabBarPosition(node, this.value);
18212    }
18213  }
18214}
18215BarPositionModifier.identity = Symbol('barPosition');
18216class TabsHideTitleBarModifier extends Modifier {
18217  constructor(value) {
18218    super(value);
18219  }
18220  applyPeer(node, reset) {
18221    if (reset) {
18222      getUINativeModule().tabs.resetHideTitleBar(node);
18223    }
18224    else {
18225      getUINativeModule().tabs.setHideTitleBar(node, this.value);
18226    }
18227  }
18228}
18229TabsHideTitleBarModifier.identity = Symbol('hideTitleBar');
18230class BarBackgroundColorModifier extends ModifierWithKey {
18231  constructor(value) {
18232    super(value);
18233  }
18234  applyPeer(node, reset) {
18235    if (reset) {
18236      getUINativeModule().tabs.resetBarBackgroundColor(node);
18237    }
18238    else {
18239      getUINativeModule().tabs.setBarBackgroundColor(node, this.value);
18240    }
18241  }
18242  checkObjectDiff() {
18243    return !isBaseOrResourceEqual(this.stageValue, this.value);
18244  }
18245}
18246BarBackgroundColorModifier.identity = Symbol('barbackgroundcolor');
18247class FadingEdgeModifier extends ModifierWithKey {
18248  constructor(value) {
18249    super(value);
18250  }
18251  applyPeer(node, reset) {
18252    if (reset) {
18253      getUINativeModule().tabs.resetFadingEdge(node);
18254    }
18255    else {
18256      getUINativeModule().tabs.setFadingEdge(node, this.value);
18257    }
18258  }
18259}
18260FadingEdgeModifier.identity = Symbol('fadingedge');
18261class TabClipModifier extends ModifierWithKey {
18262  constructor(value) {
18263    super(value);
18264  }
18265  applyPeer(node, reset) {
18266    if (reset) {
18267      getUINativeModule().tabs.resetTabClip(node);
18268    }
18269    else {
18270      getUINativeModule().tabs.setTabClip(node, this.value);
18271    }
18272  }
18273  checkObjectDiff() {
18274    return true;
18275  }
18276}
18277TabClipModifier.identity = Symbol('tabclip');
18278// @ts-ignore
18279globalThis.Tabs.attributeModifier = function (modifier) {
18280  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
18281  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
18282  let component = this.createOrGetNode(elmtId, () => {
18283    return new ArkTabsComponent(nativeNode);
18284  });
18285  applyUIAttributes(modifier, nativeNode, component);
18286  component.applyModifierPatch();
18287};
18288
18289/// <reference path='./import.ts' />
18290class ArkTabContentComponent extends ArkComponent {
18291  constructor(nativePtr) {
18292    super(nativePtr);
18293  }
18294  tabBar(value) {
18295    throw new Error('Method not implemented.');
18296  }
18297  size(value) {
18298    modifierWithKey(this._modifiersWithKeys, TabContentSizeModifier.identity, TabContentSizeModifier, value);
18299    return this;
18300  }
18301  width(value) {
18302    modifierWithKey(this._modifiersWithKeys, TabContentWidthModifier.identity, TabContentWidthModifier, value);
18303    return this;
18304  }
18305  height(value) {
18306    modifierWithKey(this._modifiersWithKeys, TabContentHeightModifier.identity, TabContentHeightModifier, value);
18307    return this;
18308  }
18309}
18310class TabContentWidthModifier extends ModifierWithKey {
18311  constructor(value) {
18312    super(value);
18313  }
18314  applyPeer(node, reset) {
18315    if (reset) {
18316      getUINativeModule().tabContent.resetTabContentWidth(node);
18317    }
18318    else {
18319      getUINativeModule().tabContent.setTabContentWidth(node, this.value);
18320    }
18321  }
18322  checkObjectDiff() {
18323    return !isBaseOrResourceEqual(this.stageValue, this.value);
18324  }
18325}
18326TabContentWidthModifier.identity = Symbol('tabcontentwidth');
18327class TabContentHeightModifier extends ModifierWithKey {
18328  constructor(value) {
18329    super(value);
18330  }
18331  applyPeer(node, reset) {
18332    if (reset) {
18333      getUINativeModule().tabContent.resetTabContentHeight(node);
18334    }
18335    else {
18336      getUINativeModule().tabContent.setTabContentHeight(node, this.value);
18337    }
18338  }
18339  checkObjectDiff() {
18340    return !isBaseOrResourceEqual(this.stageValue, this.value);
18341  }
18342}
18343TabContentHeightModifier.identity = Symbol('tabcontentheight');
18344class TabContentSizeModifier extends ModifierWithKey {
18345  constructor(value) {
18346    super(value);
18347  }
18348  applyPeer(node, reset) {
18349    if (reset) {
18350      getUINativeModule().tabContent.resetTabContentSize(node);
18351    }
18352    else {
18353      getUINativeModule().tabContent.setTabContentSize(node, this.value.width, this.value.height);
18354    }
18355  }
18356  checkObjectDiff() {
18357    return !isBaseOrResourceEqual(this.stageValue.width, this.value.width) ||
18358      !isBaseOrResourceEqual(this.stageValue.height, this.value.height);
18359  }
18360}
18361TabContentSizeModifier.identity = Symbol('tabcontentsize');
18362// @ts-ignore
18363globalThis.TabContent.attributeModifier = function (modifier) {
18364  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
18365  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
18366  let component = this.createOrGetNode(elmtId, () => {
18367    return new ArkTabContentComponent(nativeNode);
18368  });
18369  applyUIAttributes(modifier, nativeNode, component);
18370  component.applyModifierPatch();
18371};
18372
18373/// <reference path='./import.ts' />
18374class ArkUIExtensionComponentComponent extends ArkComponent {
18375  constructor(nativePtr) {
18376    super(nativePtr);
18377  }
18378  onRemoteReady(callback) {
18379    throw new Error('Method not implemented.');
18380  }
18381  onReceive(callback) {
18382    throw new Error('Method not implemented.');
18383  }
18384  onResult(callback) {
18385    throw new Error('Method not implemented.');
18386  }
18387  onRelease(callback) {
18388    throw new Error('Method not implemented.');
18389  }
18390  onError(callback) {
18391    throw new Error('Method not implemented.');
18392  }
18393}
18394// @ts-ignore
18395globalThis.UIExtensionComponent.attributeModifier = function (modifier) {
18396  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
18397  let nativeNode = globalThis.getArkUINativeModule().getFrameNodeById(elmtId);
18398  let component = this.createOrGetNode(elmtId, () => {
18399    return new ArkUIExtensionComponentComponent(nativeNode);
18400  });
18401  applyUIAttributes(modifier, nativeNode, component);
18402  component.applyModifierPatch();
18403};
18404
18405/// <reference path='./import.ts' />
18406class ItemConstraintSizeModifier extends ModifierWithKey {
18407  constructor(value) {
18408    super(value);
18409  }
18410  applyPeer(node, reset) {
18411    if (reset) {
18412      getUINativeModule().waterFlow.resetItemConstraintSize(node);
18413    }
18414    else {
18415      getUINativeModule().waterFlow.setItemConstraintSize(node, this.value.minWidth, this.value.maxWidth, this.value.minHeight, this.value.maxHeight);
18416    }
18417  }
18418  checkObjectDiff() {
18419    return !isBaseOrResourceEqual(this.stageValue.minWidth, this.value.minWidth) ||
18420      !isBaseOrResourceEqual(this.stageValue.maxWidth, this.value.maxWidth) ||
18421      !isBaseOrResourceEqual(this.stageValue.minHeight, this.value.minHeight) ||
18422      !isBaseOrResourceEqual(this.stageValue.maxHeight, this.value.maxHeight);
18423  }
18424}
18425ItemConstraintSizeModifier.identity = Symbol('itemConstraintSize');
18426class ColumnsTemplateModifier extends ModifierWithKey {
18427  constructor(value) {
18428    super(value);
18429  }
18430  applyPeer(node, reset) {
18431    if (reset) {
18432      getUINativeModule().waterFlow.resetColumnsTemplate(node);
18433    }
18434    else {
18435      getUINativeModule().waterFlow.setColumnsTemplate(node, this.value);
18436    }
18437  }
18438}
18439ColumnsTemplateModifier.identity = Symbol('columnsTemplate');
18440class RowsTemplateModifier extends ModifierWithKey {
18441  constructor(value) {
18442    super(value);
18443  }
18444  applyPeer(node, reset) {
18445    if (reset) {
18446      getUINativeModule().waterFlow.resetRowsTemplate(node);
18447    }
18448    else {
18449      getUINativeModule().waterFlow.setRowsTemplate(node, this.value);
18450    }
18451  }
18452}
18453RowsTemplateModifier.identity = Symbol('rowsTemplate');
18454class EnableScrollInteractionModifier extends ModifierWithKey {
18455  constructor(value) {
18456    super(value);
18457  }
18458  applyPeer(node, reset) {
18459    if (reset) {
18460      getUINativeModule().waterFlow.resetEnableScrollInteraction(node);
18461    }
18462    else {
18463      getUINativeModule().waterFlow.setEnableScrollInteraction(node, this.value);
18464    }
18465  }
18466}
18467EnableScrollInteractionModifier.identity = Symbol('enableScrollInteraction');
18468class RowsGapModifier extends ModifierWithKey {
18469  constructor(value) {
18470    super(value);
18471  }
18472  applyPeer(node, reset) {
18473    if (reset) {
18474      getUINativeModule().waterFlow.resetRowsGap(node);
18475    }
18476    else {
18477      getUINativeModule().waterFlow.setRowsGap(node, this.value);
18478    }
18479  }
18480  checkObjectDiff() {
18481    return !isBaseOrResourceEqual(this.stageValue, this.value);
18482  }
18483}
18484RowsGapModifier.identity = Symbol('rowsGap');
18485class WaterFlowClipModifier extends ModifierWithKey {
18486  constructor(value) {
18487    super(value);
18488  }
18489  applyPeer(node, reset) {
18490    if (reset) {
18491      getUINativeModule().common.resetClipWithEdge(node);
18492    }
18493    else {
18494      getUINativeModule().common.setClipWithEdge(node, this.value);
18495    }
18496  }
18497  checkObjectDiff() {
18498    return true;
18499  }
18500}
18501WaterFlowClipModifier.identity = Symbol('waterFlowclip');
18502class ColumnsGapModifier extends ModifierWithKey {
18503  constructor(value) {
18504    super(value);
18505  }
18506  applyPeer(node, reset) {
18507    if (reset) {
18508      getUINativeModule().waterFlow.resetColumnsGap(node);
18509    }
18510    else {
18511      getUINativeModule().waterFlow.setColumnsGap(node, this.value);
18512    }
18513  }
18514  checkObjectDiff() {
18515    return !isBaseOrResourceEqual(this.stageValue, this.value);
18516  }
18517}
18518ColumnsGapModifier.identity = Symbol('columnsGap');
18519class LayoutDirectionModifier extends ModifierWithKey {
18520  constructor(value) {
18521    super(value);
18522  }
18523  applyPeer(node, reset) {
18524    if (reset) {
18525      getUINativeModule().waterFlow.resetLayoutDirection(node);
18526    }
18527    else {
18528      getUINativeModule().waterFlow.setLayoutDirection(node, this.value);
18529    }
18530  }
18531}
18532LayoutDirectionModifier.identity = Symbol('layoutDirection');
18533class NestedScrollModifier extends ModifierWithKey {
18534  constructor(value) {
18535    super(value);
18536  }
18537  applyPeer(node, reset) {
18538    if (reset) {
18539      getUINativeModule().waterFlow.resetNestedScroll(node);
18540    }
18541    else {
18542      getUINativeModule().waterFlow.setNestedScroll(node, this.value.scrollForward, this.value.scrollBackward);
18543    }
18544  }
18545}
18546NestedScrollModifier.identity = Symbol('nestedScroll');
18547class FrictionModifier extends ModifierWithKey {
18548  constructor(value) {
18549    super(value);
18550  }
18551  applyPeer(node, reset) {
18552    if (reset) {
18553      getUINativeModule().waterFlow.resetFriction(node);
18554    }
18555    else {
18556      getUINativeModule().waterFlow.setFriction(node, this.value);
18557    }
18558  }
18559  checkObjectDiff() {
18560    return !isBaseOrResourceEqual(this.stageValue, this.value);
18561  }
18562}
18563FrictionModifier.identity = Symbol('friction');
18564class ArkWaterFlowComponent extends ArkComponent {
18565  constructor(nativePtr) {
18566    super(nativePtr);
18567  }
18568  columnsTemplate(value) {
18569    modifierWithKey(this._modifiersWithKeys, ColumnsTemplateModifier.identity, ColumnsTemplateModifier, value);
18570    return this;
18571  }
18572  rowsTemplate(value) {
18573    modifierWithKey(this._modifiersWithKeys, RowsTemplateModifier.identity, RowsTemplateModifier, value);
18574    return this;
18575  }
18576  itemConstraintSize(value) {
18577    if (!value) {
18578      modifierWithKey(this._modifiersWithKeys, ItemConstraintSizeModifier.identity, ItemConstraintSizeModifier, undefined);
18579      return this;
18580    }
18581    let arkValue = new ArkConstraintSizeOptions();
18582    arkValue.minWidth = value.minWidth;
18583    arkValue.maxWidth = value.maxWidth;
18584    arkValue.minHeight = value.minHeight;
18585    arkValue.maxHeight = value.maxHeight;
18586    modifierWithKey(this._modifiersWithKeys, ItemConstraintSizeModifier.identity, ItemConstraintSizeModifier, arkValue);
18587    return this;
18588  }
18589  columnsGap(value) {
18590    modifierWithKey(this._modifiersWithKeys, ColumnsGapModifier.identity, ColumnsGapModifier, value);
18591    return this;
18592  }
18593  rowsGap(value) {
18594    modifierWithKey(this._modifiersWithKeys, RowsGapModifier.identity, RowsGapModifier, value);
18595    return this;
18596  }
18597  layoutDirection(value) {
18598    modifierWithKey(this._modifiersWithKeys, LayoutDirectionModifier.identity, LayoutDirectionModifier, value);
18599    return this;
18600  }
18601  nestedScroll(value) {
18602    let options = new ArkNestedScrollOptions();
18603    if (value) {
18604      if (value.scrollForward) {
18605        options.scrollForward = value.scrollForward;
18606      }
18607      if (value.scrollBackward) {
18608        options.scrollBackward = value.scrollBackward;
18609      }
18610      modifierWithKey(this._modifiersWithKeys, NestedScrollModifier.identity, NestedScrollModifier, options);
18611    }
18612    return this;
18613  }
18614  enableScrollInteraction(value) {
18615    modifierWithKey(this._modifiersWithKeys, EnableScrollInteractionModifier.identity, EnableScrollInteractionModifier, value);
18616    return this;
18617  }
18618  friction(value) {
18619    modifierWithKey(this._modifiersWithKeys, FrictionModifier.identity, FrictionModifier, value);
18620    return this;
18621  }
18622  cachedCount(value) {
18623    throw new Error('Method not implemented.');
18624  }
18625  onReachStart(event) {
18626    throw new Error('Method not implemented.');
18627  }
18628  onReachEnd(event) {
18629    throw new Error('Method not implemented.');
18630  }
18631  onScrollFrameBegin(event) {
18632    throw new Error('Method not implemented.');
18633  }
18634  clip(value) {
18635    modifierWithKey(this._modifiersWithKeys, WaterFlowClipModifier.identity, WaterFlowClipModifier, value);
18636    return this;
18637  }
18638}
18639// @ts-ignore
18640globalThis.WaterFlow.attributeModifier = function (modifier) {
18641  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
18642  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
18643  let component = this.createOrGetNode(elmtId, () => {
18644    return new ArkWaterFlowComponent(nativeNode);
18645  });
18646  applyUIAttributes(modifier, nativeNode, component);
18647  component.applyModifierPatch();
18648};
18649
18650/// <reference path='./import.ts' />
18651class ArkCommonShapeComponent extends ArkComponent {
18652  constructor(nativePtr) {
18653    super(nativePtr);
18654  }
18655  viewPort(value) {
18656    throw new Error('Method not implemented.');
18657  }
18658  stroke(value) {
18659    modifierWithKey(this._modifiersWithKeys, StrokeModifier.identity, StrokeModifier, value);
18660    return this;
18661  }
18662  fill(value) {
18663    modifierWithKey(this._modifiersWithKeys, FillModifier.identity, FillModifier, value);
18664    return this;
18665  }
18666  strokeDashOffset(value) {
18667    modifierWithKey(this._modifiersWithKeys, StrokeDashOffsetModifier.identity, StrokeDashOffsetModifier, value);
18668    return this;
18669  }
18670  strokeLineCap(value) {
18671    modifierWithKey(this._modifiersWithKeys, StrokeLineCapModifier.identity, StrokeLineCapModifier, value);
18672    return this;
18673  }
18674  strokeLineJoin(value) {
18675    modifierWithKey(this._modifiersWithKeys, StrokeLineJoinModifier.identity, StrokeLineJoinModifier, value);
18676    return this;
18677  }
18678  strokeMiterLimit(value) {
18679    modifierWithKey(this._modifiersWithKeys, StrokeMiterLimitModifier.identity, StrokeMiterLimitModifier, value);
18680    return this;
18681  }
18682  strokeOpacity(value) {
18683    modifierWithKey(this._modifiersWithKeys, StrokeOpacityModifier.identity, StrokeOpacityModifier, value);
18684    return this;
18685  }
18686  fillOpacity(value) {
18687    modifierWithKey(this._modifiersWithKeys, FillOpacityModifier.identity, FillOpacityModifier, value);
18688    return this;
18689  }
18690  strokeWidth(value) {
18691    modifierWithKey(this._modifiersWithKeys, StrokeWidthModifier.identity, StrokeWidthModifier, value);
18692    return this;
18693  }
18694  antiAlias(value) {
18695    modifierWithKey(this._modifiersWithKeys, AntiAliasModifier.identity, AntiAliasModifier, value);
18696    return this;
18697  }
18698  strokeDashArray(value) {
18699    modifierWithKey(this._modifiersWithKeys, StrokeDashArrayModifier.identity, StrokeDashArrayModifier, value);
18700    return this;
18701  }
18702  mesh(value, column, row) {
18703    throw new Error('Method not implemented.');
18704  }
18705  height(value) {
18706    modifierWithKey(this._modifiersWithKeys, CommonShapeHeightModifier.identity, CommonShapeHeightModifier, value);
18707    return this;
18708  }
18709  width(value) {
18710    modifierWithKey(this._modifiersWithKeys, CommonShapeWidthModifier.identity, CommonShapeWidthModifier, value);
18711    return this;
18712  }
18713  foregroundColor(value) {
18714    modifierWithKey(
18715      this._modifiersWithKeys, CommonShapeForegroundColorModifier.identity, CommonShapeForegroundColorModifier, value);
18716    return this;
18717  }
18718}
18719class StrokeDashArrayModifier extends ModifierWithKey {
18720  constructor(value) {
18721    super(value);
18722  }
18723  applyPeer(node, reset) {
18724    if (reset) {
18725      getUINativeModule().commonShape.resetStrokeDashArray(node);
18726    }
18727    else {
18728      getUINativeModule().commonShape.setStrokeDashArray(node, this.value);
18729    }
18730  }
18731  checkObjectDiff() {
18732    return !isBaseOrResourceEqual(this.stageValue, this.value);
18733  }
18734}
18735StrokeDashArrayModifier.identity = Symbol('strokeDashArray');
18736class StrokeModifier extends ModifierWithKey {
18737  constructor(value) {
18738    super(value);
18739  }
18740  applyPeer(node, reset) {
18741    if (reset) {
18742      getUINativeModule().commonShape.resetStroke(node);
18743    }
18744    else {
18745      getUINativeModule().commonShape.setStroke(node, this.value);
18746    }
18747  }
18748  checkObjectDiff() {
18749    return !isBaseOrResourceEqual(this.stageValue, this.value);
18750  }
18751}
18752StrokeModifier.identity = Symbol('stroke');
18753class FillModifier extends ModifierWithKey {
18754  constructor(value) {
18755    super(value);
18756  }
18757  applyPeer(node, reset) {
18758    if (reset) {
18759      getUINativeModule().commonShape.resetFill(node);
18760    }
18761    else {
18762      getUINativeModule().commonShape.setFill(node, this.value);
18763    }
18764  }
18765  checkObjectDiff() {
18766    return !isBaseOrResourceEqual(this.stageValue, this.value);
18767  }
18768}
18769FillModifier.identity = Symbol('fill');
18770class StrokeDashOffsetModifier extends ModifierWithKey {
18771  constructor(value) {
18772    super(value);
18773  }
18774  applyPeer(node, reset) {
18775    if (reset) {
18776      getUINativeModule().commonShape.resetStrokeDashOffset(node);
18777    }
18778    else {
18779      getUINativeModule().commonShape.setStrokeDashOffset(node, this.value);
18780    }
18781  }
18782  checkObjectDiff() {
18783    return !isBaseOrResourceEqual(this.stageValue, this.value);
18784  }
18785}
18786StrokeDashOffsetModifier.identity = Symbol('strokeDashOffset');
18787class StrokeLineCapModifier extends ModifierWithKey {
18788  constructor(value) {
18789    super(value);
18790  }
18791  applyPeer(node, reset) {
18792    if (reset) {
18793      getUINativeModule().commonShape.resetStrokeLineCap(node);
18794    }
18795    else {
18796      getUINativeModule().commonShape.setStrokeLineCap(node, this.value);
18797    }
18798  }
18799}
18800StrokeLineCapModifier.identity = Symbol('strokeLineCap');
18801class StrokeLineJoinModifier extends ModifierWithKey {
18802  constructor(value) {
18803    super(value);
18804  }
18805  applyPeer(node, reset) {
18806    if (reset) {
18807      getUINativeModule().commonShape.resetStrokeLineJoin(node);
18808    }
18809    else {
18810      getUINativeModule().commonShape.setStrokeLineJoin(node, this.value);
18811    }
18812  }
18813}
18814StrokeLineJoinModifier.identity = Symbol('strokeLineJoin');
18815class StrokeMiterLimitModifier extends ModifierWithKey {
18816  constructor(value) {
18817    super(value);
18818  }
18819  applyPeer(node, reset) {
18820    if (reset) {
18821      getUINativeModule().commonShape.resetStrokeMiterLimit(node);
18822    }
18823    else {
18824      getUINativeModule().commonShape.setStrokeMiterLimit(node, this.value);
18825    }
18826  }
18827}
18828StrokeMiterLimitModifier.identity = Symbol('strokeMiterLimit');
18829class FillOpacityModifier extends ModifierWithKey {
18830  constructor(value) {
18831    super(value);
18832  }
18833  applyPeer(node, reset) {
18834    if (reset) {
18835      getUINativeModule().commonShape.resetFillOpacity(node);
18836    }
18837    else {
18838      getUINativeModule().commonShape.setFillOpacity(node, this.value);
18839    }
18840  }
18841  checkObjectDiff() {
18842    return !isBaseOrResourceEqual(this.stageValue, this.value);
18843  }
18844}
18845FillOpacityModifier.identity = Symbol('FillOpacity');
18846class StrokeOpacityModifier extends ModifierWithKey {
18847  constructor(value) {
18848    super(value);
18849  }
18850  applyPeer(node, reset) {
18851    if (reset) {
18852      getUINativeModule().commonShape.resetStrokeOpacity(node);
18853    }
18854    else {
18855      getUINativeModule().commonShape.setStrokeOpacity(node, this.value);
18856    }
18857  }
18858  checkObjectDiff() {
18859    return !isBaseOrResourceEqual(this.stageValue, this.value);
18860  }
18861}
18862StrokeOpacityModifier.identity = Symbol('StrokeOpacity');
18863class StrokeWidthModifier extends ModifierWithKey {
18864  constructor(value) {
18865    super(value);
18866  }
18867  applyPeer(node, reset) {
18868    if (reset) {
18869      getUINativeModule().commonShape.resetStrokeWidth(node);
18870    }
18871    else {
18872      getUINativeModule().commonShape.setStrokeWidth(node, this.value);
18873    }
18874  }
18875}
18876StrokeWidthModifier.identity = Symbol('strokeWidth');
18877class AntiAliasModifier extends ModifierWithKey {
18878  constructor(value) {
18879    super(value);
18880  }
18881  applyPeer(node, reset) {
18882    if (reset) {
18883      getUINativeModule().commonShape.resetAntiAlias(node);
18884    }
18885    else {
18886      getUINativeModule().commonShape.setAntiAlias(node, this.value);
18887    }
18888  }
18889}
18890AntiAliasModifier.identity = Symbol('antiAlias');
18891class CommonShapeHeightModifier extends ModifierWithKey {
18892  constructor(value) {
18893    super(value);
18894  }
18895  applyPeer(node, reset) {
18896    if (reset) {
18897      getUINativeModule().commonShape.resetHeight(node);
18898    }
18899    else {
18900      getUINativeModule().commonShape.setHeight(node, this.value);
18901    }
18902  }
18903  checkObjectDiff() {
18904    return !isBaseOrResourceEqual(this.stageValue, this.value);
18905  }
18906}
18907CommonShapeHeightModifier.identity = Symbol('commonShapeHeight');
18908class CommonShapeWidthModifier extends ModifierWithKey {
18909  constructor(value) {
18910    super(value);
18911  }
18912  applyPeer(node, reset) {
18913    if (reset) {
18914      getUINativeModule().commonShape.resetWidth(node);
18915    }
18916    else {
18917      getUINativeModule().commonShape.setWidth(node, this.value);
18918    }
18919  }
18920  checkObjectDiff() {
18921    return !isBaseOrResourceEqual(this.stageValue, this.value);
18922  }
18923}
18924CommonShapeWidthModifier.identity = Symbol('commonShapeWidth');
18925class CommonShapeForegroundColorModifier extends ModifierWithKey {
18926  constructor(value) {
18927    super(value);
18928  }
18929  applyPeer(node, reset) {
18930    if (reset) {
18931      getUINativeModule().commonShape.resetForegroundColor(node);
18932    }
18933    else {
18934      getUINativeModule().commonShape.setForegroundColor(node, this.value);
18935    }
18936  }
18937  checkObjectDiff() {
18938    return !isBaseOrResourceEqual(this.stageValue, this.value);
18939  }
18940}
18941CommonShapeForegroundColorModifier.identity = Symbol('commonShapeForegroundColor');
18942
18943/// <reference path='./import.ts' />
18944class ArkCircleComponent extends ArkCommonShapeComponent {
18945}
18946// @ts-ignore
18947globalThis.Circle.attributeModifier = function (modifier) {
18948  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
18949  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
18950  let component = this.createOrGetNode(elmtId, () => {
18951    return new ArkCircleComponent(nativeNode);
18952  });
18953  applyUIAttributes(modifier, nativeNode, component);
18954  component.applyModifierPatch();
18955};
18956
18957/// <reference path='./import.ts' />
18958class ArkEllipseComponent extends ArkCommonShapeComponent {
18959}
18960// @ts-ignore
18961globalThis.Ellipse.attributeModifier = function (modifier) {
18962  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
18963  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
18964  let component = this.createOrGetNode(elmtId, () => {
18965    return new ArkEllipseComponent(nativeNode);
18966  });
18967  applyUIAttributes(modifier, nativeNode, component);
18968  component.applyModifierPatch();
18969};
18970
18971/// <reference path='./import.ts' />
18972/// <reference path='./ArkCommonShape.ts' />
18973class ArkLineComponent extends ArkCommonShapeComponent {
18974  constructor(nativePtr) {
18975    super(nativePtr);
18976  }
18977  startPoint(value) {
18978    modifierWithKey(this._modifiersWithKeys, LineStartPointModifier.identity, LineStartPointModifier, value);
18979    return this;
18980  }
18981  endPoint(value) {
18982    modifierWithKey(this._modifiersWithKeys, LineEndPointModifier.identity, LineEndPointModifier, value);
18983    return this;
18984  }
18985}
18986class LineStartPointModifier extends ModifierWithKey {
18987  constructor(value) {
18988    super(value);
18989  }
18990  applyPeer(node, reset) {
18991    if (reset) {
18992      getUINativeModule().line.resetStartPoint(node);
18993    }
18994    else {
18995      getUINativeModule().line.setStartPoint(node, this.value);
18996    }
18997  }
18998  checkObjectDiff() {
18999    return this.stageValue !== this.value;
19000  }
19001}
19002LineStartPointModifier.identity = Symbol('startPoint');
19003class LineEndPointModifier extends ModifierWithKey {
19004  constructor(value) {
19005    super(value);
19006  }
19007  applyPeer(node, reset) {
19008    if (reset) {
19009      getUINativeModule().line.resetEndPoint(node);
19010    }
19011    else {
19012      getUINativeModule().line.setEndPoint(node, this.value);
19013    }
19014  }
19015  checkObjectDiff() {
19016    return this.stageValue !== this.value;
19017  }
19018}
19019LineEndPointModifier.identity = Symbol('endPoint');
19020// @ts-ignore
19021globalThis.Line.attributeModifier = function (modifier) {
19022  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
19023  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
19024  let component = this.createOrGetNode(elmtId, () => {
19025    return new ArkLineComponent(nativeNode);
19026  });
19027  applyUIAttributes(modifier, nativeNode, component);
19028  component.applyModifierPatch();
19029};
19030
19031/// <reference path='./import.ts' />
19032/// <reference path='./ArkCommonShape.ts' />
19033const ARRAY_LENGTH = 2;
19034class ArkPolylineComponent extends ArkCommonShapeComponent {
19035  constructor(nativePtr) {
19036    super(nativePtr);
19037  }
19038  points(value) {
19039    modifierWithKey(this._modifiersWithKeys, PolylinePointsModifier.identity, PolylinePointsModifier, value);
19040    return this;
19041  }
19042}
19043class PolylinePointsModifier extends ModifierWithKey {
19044  constructor(value) {
19045    super(value);
19046  }
19047  applyPeer(node, reset) {
19048    let xPoint = [];
19049    let yPoint = [];
19050    if (Array.isArray(this.value)) {
19051      for (let i = 0; i <= this.value.length; i++) {
19052        let item = this.value[i];
19053        if (!Array.isArray(item)) {
19054          continue;
19055        }
19056        if (item.length < ARRAY_LENGTH || isUndefined(item[0]) || isUndefined(item[1])) {
19057          reset = true;
19058          break;
19059        }
19060        xPoint.push(item[0]);
19061        yPoint.push(item[1]);
19062      }
19063    }
19064    else {
19065      reset = true;
19066    }
19067    if (reset) {
19068      getUINativeModule().polyline.resetPoints(node);
19069    }
19070    else {
19071      getUINativeModule().polyline.setPoints(node, xPoint, yPoint);
19072    }
19073  }
19074  checkObjectDiff() {
19075    return this.stageValue !== this.value;
19076  }
19077}
19078PolylinePointsModifier.identity = Symbol('points');
19079// @ts-ignore
19080globalThis.Polyline.attributeModifier = function (modifier) {
19081  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
19082  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
19083  let component = this.createOrGetNode(elmtId, () => {
19084    return new ArkPolylineComponent(nativeNode);
19085  });
19086  applyUIAttributes(modifier, nativeNode, component);
19087  component.applyModifierPatch();
19088};
19089
19090/// <reference path='./import.ts' />
19091class ArkPolygonComponent extends ArkCommonShapeComponent {
19092  points(value) {
19093    modifierWithKey(this._modifiersWithKeys, PolygonPointsModifier.identity, PolygonPointsModifier, value);
19094    return this;
19095  }
19096}
19097class PolygonPointsModifier extends ModifierWithKey {
19098  constructor(value) {
19099    super(value);
19100  }
19101  applyPeer(node, reset) {
19102    let xPoint = [];
19103    let yPoint = [];
19104    if (Array.isArray(this.value)) {
19105      for (let i = 0; i <= this.value.length; i++) {
19106        let item = this.value[i];
19107        if (!Array.isArray(item)) {
19108          continue;
19109        }
19110        if (item.length < ARRAY_LENGTH || isUndefined(item[0]) || isUndefined(item[1])) {
19111          reset = true;
19112          break;
19113        }
19114        xPoint.push(item[0]);
19115        yPoint.push(item[1]);
19116      }
19117    }
19118    else {
19119      reset = true;
19120    }
19121    if (reset) {
19122      getUINativeModule().polygon.resetPolygonPoints(node);
19123    }
19124    else {
19125      getUINativeModule().polygon.setPolygonPoints(node, xPoint, yPoint);
19126    }
19127  }
19128  checkObjectDiff() {
19129    return this.stageValue !== this.value;
19130  }
19131}
19132PolygonPointsModifier.identity = Symbol('polygonPoints');
19133// @ts-ignore
19134globalThis.Polygon.attributeModifier = function (modifier) {
19135  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
19136  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
19137  let component = this.createOrGetNode(elmtId, () => {
19138    return new ArkPolygonComponent(nativeNode);
19139  });
19140  applyUIAttributes(modifier, nativeNode, component);
19141  component.applyModifierPatch();
19142};
19143
19144/// <reference path='./import.ts' />
19145class ArkPathComponent extends ArkCommonShapeComponent {
19146  constructor(nativePtr) {
19147    super(nativePtr);
19148  }
19149  commands(value) {
19150    modifierWithKey(this._modifiersWithKeys, CommandsModifier.identity, CommandsModifier, value);
19151    return this;
19152  }
19153}
19154class CommandsModifier extends ModifierWithKey {
19155  constructor(value) {
19156    super(value);
19157  }
19158  applyPeer(node, reset) {
19159    if (reset) {
19160      getUINativeModule().path.resetPathCommands(node);
19161    }
19162    else {
19163      getUINativeModule().path.setPathCommands(node, this.value);
19164    }
19165  }
19166  checkObjectDiff() {
19167    if (isString(this.stageValue) && isString(this.value)) {
19168      return this.stageValue !== this.value;
19169    }
19170    else {
19171      return true;
19172    }
19173  }
19174}
19175CommandsModifier.identity = Symbol('commands');
19176// @ts-ignore
19177globalThis.Path.attributeModifier = function (modifier) {
19178  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
19179  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
19180  let component = this.createOrGetNode(elmtId, () => {
19181    return new ArkPathComponent(nativeNode);
19182  });
19183  applyUIAttributes(modifier, nativeNode, component);
19184  component.applyModifierPatch();
19185};
19186
19187/// <reference path='./import.ts' />
19188/// <reference path='./ArkCommonShape.ts' />
19189class RectRadiusWidthModifier extends ModifierWithKey {
19190  constructor(value) {
19191    super(value);
19192  }
19193  applyPeer(node, reset) {
19194    if (reset) {
19195      getUINativeModule().rect.resetRectRadiusWidth(node);
19196    }
19197    else {
19198      getUINativeModule().rect.setRectRadiusWidth(node, this.value);
19199    }
19200  }
19201}
19202RectRadiusWidthModifier.identity = Symbol('rectRadiusWidth');
19203class RectRadiusHeightModifier extends ModifierWithKey {
19204  constructor(value) {
19205    super(value);
19206  }
19207  applyPeer(node, reset) {
19208    if (reset) {
19209      getUINativeModule().rect.resetRectRadiusHeight(node);
19210    }
19211    else {
19212      getUINativeModule().rect.setRectRadiusHeight(node, this.value);
19213    }
19214  }
19215}
19216RectRadiusHeightModifier.identity = Symbol('rectRadiusHeight');
19217class RectRadiusModifier extends ModifierWithKey {
19218  constructor(value) {
19219    super(value);
19220  }
19221  applyPeer(node, reset) {
19222    if (reset) {
19223      getUINativeModule().rect.resetRectRadius(node);
19224    }
19225    else {
19226      getUINativeModule().rect.setRectRadius(node, this.value);
19227    }
19228  }
19229  checkObjectDiff() {
19230    return !(this.stageValue === this.value);
19231  }
19232}
19233RectRadiusModifier.identity = Symbol('rectRadius');
19234class ArkRectComponent extends ArkCommonShapeComponent {
19235  constructor(nativePtr) {
19236    super(nativePtr);
19237  }
19238  radiusWidth(value) {
19239    modifierWithKey(this._modifiersWithKeys, RectRadiusWidthModifier.identity, RectRadiusWidthModifier, value);
19240    return this;
19241  }
19242  radiusHeight(value) {
19243    modifierWithKey(this._modifiersWithKeys, RectRadiusHeightModifier.identity, RectRadiusHeightModifier, value);
19244    return this;
19245  }
19246  radius(value) {
19247    modifierWithKey(this._modifiersWithKeys, RectRadiusModifier.identity, RectRadiusModifier, value);
19248    return this;
19249  }
19250}
19251// @ts-ignore
19252globalThis.Rect.attributeModifier = function (modifier) {
19253  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
19254  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
19255  let component = this.createOrGetNode(elmtId, () => {
19256    return new ArkRectComponent(nativeNode);
19257  });
19258  applyUIAttributes(modifier, nativeNode, component);
19259  component.applyModifierPatch();
19260};
19261
19262/// <reference path='./import.ts' />
19263/// <reference path='./ArkCommonShape.ts' />
19264class ShapeViewPortModifier extends ModifierWithKey {
19265  constructor(value) {
19266    super(value);
19267  }
19268  applyPeer(node, reset) {
19269    if (reset) {
19270      getUINativeModule().shape.resetShapeViewPort(node);
19271    }
19272    else {
19273      getUINativeModule().shape.setShapeViewPort(node, this.value.x, this.value.y, this.value.width, this.value.height);
19274    }
19275  }
19276  checkObjectDiff() {
19277    return !(this.stageValue.x === this.value.x && this.stageValue.y === this.value.y &&
19278      this.stageValue.width === this.value.width && this.stageValue.height === this.value.height);
19279  }
19280}
19281ShapeViewPortModifier.identity = Symbol('shapeViewPort');
19282class ShapeMeshModifier extends ModifierWithKey {
19283  constructor(value) {
19284    super(value);
19285  }
19286  applyPeer(node, reset) {
19287    if (reset) {
19288      getUINativeModule().shape.resetShapeMesh(node);
19289    }
19290    else {
19291      getUINativeModule().shape.setShapeMesh(node, this.value.value, this.value.column, this.value.row);
19292    }
19293  }
19294  checkObjectDiff() {
19295    return !this.stageValue.isEqual(this.value);
19296  }
19297}
19298ShapeMeshModifier.identity = Symbol('shapeMesh');
19299class ShapeHeightModifier extends ModifierWithKey {
19300  constructor(value) {
19301    super(value);
19302  }
19303  applyPeer(node, reset) {
19304    if (reset) {
19305      getUINativeModule().common.resetHeight(node);
19306    }
19307    else {
19308      getUINativeModule().common.setHeight(node, this.value);
19309    }
19310  }
19311  checkObjectDiff() {
19312    return !isBaseOrResourceEqual(this.stageValue, this.value);
19313  }
19314}
19315ShapeHeightModifier.identity = Symbol('shapeHeight');
19316class ShapeWidthModifier extends ModifierWithKey {
19317  constructor(value) {
19318    super(value);
19319  }
19320  applyPeer(node, reset) {
19321    if (reset) {
19322      getUINativeModule().common.resetWidth(node);
19323    }
19324    else {
19325      getUINativeModule().common.setWidth(node, this.value);
19326    }
19327  }
19328  checkObjectDiff() {
19329    return !isBaseOrResourceEqual(this.stageValue, this.value);
19330  }
19331}
19332ShapeWidthModifier.identity = Symbol('shapeWidth');
19333class ArkShapeComponent extends ArkCommonShapeComponent {
19334  constructor(nativePtr) {
19335    super(nativePtr);
19336  }
19337  viewPort(value) {
19338    if (value === null) {
19339      value = undefined;
19340    }
19341    modifierWithKey(this._modifiersWithKeys, ShapeViewPortModifier.identity, ShapeViewPortModifier, value);
19342    return this;
19343  }
19344  mesh(value, column, row) {
19345    let arkMesh = new ArkMesh();
19346    if (value !== null && column !== null && row !== null) {
19347      arkMesh.value = value;
19348      arkMesh.column = column;
19349      arkMesh.row = row;
19350    }
19351    modifierWithKey(this._modifiersWithKeys, ShapeMeshModifier.identity, ShapeMeshModifier, arkMesh);
19352    return this;
19353  }
19354  height(value) {
19355    modifierWithKey(this._modifiersWithKeys, ShapeHeightModifier.identity, ShapeHeightModifier, value);
19356    return this;
19357  }
19358  width(value) {
19359    modifierWithKey(this._modifiersWithKeys, ShapeWidthModifier.identity, ShapeWidthModifier, value);
19360    return this;
19361  }
19362}
19363// @ts-ignore
19364globalThis.Shape.attributeModifier = function (modifier) {
19365  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
19366  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
19367  let component = this.createOrGetNode(elmtId, () => {
19368    return new ArkShapeComponent(nativeNode);
19369  });
19370  applyUIAttributes(modifier, nativeNode, component);
19371  component.applyModifierPatch();
19372};
19373
19374/// <reference path='./import.ts' />
19375class ArkCanvasComponent extends ArkComponent {
19376  constructor(nativePtr) {
19377    super(nativePtr);
19378  }
19379  onReady(event) {
19380    throw new Error('Method not implemented.');
19381  }
19382}
19383// @ts-ignore
19384globalThis.Canvas.attributeModifier = function (modifier) {
19385  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
19386  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
19387  let component = this.createOrGetNode(elmtId, () => {
19388    return new ArkCanvasComponent(nativeNode);
19389  });
19390  applyUIAttributes(modifier, nativeNode, component);
19391  component.applyModifierPatch();
19392};
19393
19394/// <reference path='./import.ts' />
19395class ArkGridContainerComponent extends ArkComponent {
19396  constructor(nativePtr) {
19397    super(nativePtr);
19398  }
19399  alignItems(value) {
19400    throw new Error('Method not implemented.');
19401  }
19402  justifyContent(value) {
19403    throw new Error('Method not implemented.');
19404  }
19405  pointLight(value) {
19406    throw new Error('Method not implemented.');
19407  }
19408}
19409// @ts-ignore
19410globalThis.GridContainer.attributeModifier = function (modifier) {
19411  const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
19412  let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
19413  let component = this.createOrGetNode(elmtId, () => {
19414    return new ArkGridContainerComponent(nativeNode);
19415  });
19416  applyUIAttributes(modifier, nativeNode, component);
19417  component.applyModifierPatch();
19418};
19419
19420/// <reference path='./import.ts' />
19421class ArkEffectComponentComponent extends ArkComponent {
19422}
19423// @ts-ignore
19424if (globalThis.EffectComponent !== undefined) {
19425  // @ts-ignore
19426  globalThis.EffectComponent.attributeModifier = function (modifier) {
19427    const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
19428    let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
19429    let component = this.createOrGetNode(elmtId, () => {
19430      return new ArkEffectComponentComponent(nativeNode);
19431    });
19432    modifier.applyNormalAttribute(component);
19433    component.applyModifierPatch();
19434  };
19435}
19436
19437/// <reference path='./import.ts' />
19438class ArkRemoteWindowComponent extends ArkComponent {
19439}
19440// @ts-ignore
19441if (globalThis.RemoteWindow !== undefined) {
19442  // @ts-ignore
19443  globalThis.RemoteWindow.attributeModifier = function (modifier) {
19444    const elmtId = ViewStackProcessor.GetElmtIdToAccountFor();
19445    let nativeNode = getUINativeModule().getFrameNodeById(elmtId);
19446    let component = this.createOrGetNode(elmtId, () => {
19447      return new ArkRemoteWindowComponent(nativeNode);
19448    });
19449    modifier.applyNormalAttribute(component);
19450    component.applyModifierPatch();
19451  };
19452}
19453