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
16const TAG = 'avcastpickerparam_component ';
17
18export let AVCastPickerState;
19!function(e) {
20  e[e.STATE_APPEARING = 0] = 'STATE_APPEARING';
21  e[e.STATE_DISAPPEARING = 1] = 'STATE_DISAPPEARING';
22}(AVCastPickerState || (AVCastPickerState = {}));
23
24export class AVCastPickerParam extends ViewPU {
25  constructor(e, t, o, n = -1, m = undefined) {
26    super(e, o, n);
27    if (typeof m === 'funcation') {
28        this.paramsGenerator_ = m;
29    }
30    this.setInitiallyProvidedValue(t);
31  }
32
33  setInitiallyProvidedValue(e) {
34  }
35
36  updateStateVars(g) {
37  }
38
39  purgeVariableDependenciesOnElmtId(e) {
40  }
41
42  aboutToBeDeleted() {
43    SubscriberManager.Get().delete(this.id__());
44    this.aboutToBeDeletedInternal();
45  }
46
47  initialRender() {
48    this.observeComponentCreation2(((e, t) => {
49      Column.create();
50      Column.size({ width: '100%', height: '100%' });
51    }), Column);
52    this.observeComponentCreation2(((e, t) => {
53      Text.create();
54      Text.size({ width: '100%', height: '100%' });
55    }), Text);
56    Column.pop();
57  }
58
59  rerender() {
60    this.updateDirtyElements();
61  }
62}
63export default {AVCastPickerState};
64