
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


/**
 * AUTO-GENERATED FILE. DO NOT MODIFY.
 */

import { __extends } from "tslib";
import ComponentModel from '../../model/Component.js';
var PlaybackSelectModel = /** @class */function (_super) {
  __extends(PlaybackSelectModel, _super);
  function PlaybackSelectModel() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.type = PlaybackSelectModel.type;
    _this.layoutMode = {
      type: 'box',
      ignoreSize: true
    };
    return _this;
  }
  PlaybackSelectModel.prototype.setPlaybackSelect = function (payload) {
    this.option.startIndex = payload.startIndex;
    this.option.yData = payload.uid === this.uid ? payload.yData : void 0;
    if (payload.show !== undefined) {
      this.option.show = payload.show;
    }
  };
  PlaybackSelectModel.type = 'playbackSelect';
  PlaybackSelectModel.defaultOption = {
    zlevel: 1,
    z: 2,
    show: false,
    color: 'rgb(41,98,255)',
    bgColor: 'rgb(255,255,255)',
    startIndex: 0,
    icon: 'image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAABYlAAAWJQFJUiTwAAAD/UlEQVRYhb1ZjXWbMBCWO0BNJ7A7QRiBDcoIjMAIZANvUHsDugHZAG/ACHiBXN+HOeU4nQQkfb337gUL6fTp/kUcEW3hgohaetKViM4b1zFnYv1ARPU8Zs1dcDBg8Pn9/f1BIZU7AHbBaqJxC8hgwOCGJdZ1TX3f79qAiCpe0DTNJENQbczfDXA6fdd15JyjPM/lBq0xX/Mg14PFIS/G/A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