83983ea7-5e6e-4eda-b421-1ac148711443.js 1.93 KB
"use strict";
cc._RF.push(module, '839836nXm5O2rQhGsFIcRRD', 'AlertDialogViewPresenter');
// script/game/ui/presenter/AlertDialogViewPresenter.ts

"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
const PresenterCCViewFactory_1 = require("../PresenterCCViewFactory");
const AlertDialogView_1 = require("../view/type/AlertDialogView");
const PresenterBase_1 = require("../../../common/classbase/PresenterBase");
const simba_sdk_1 = require("simba-sdk");
let AlertDialogViewPresenter = /** @class */ (() => {
    let AlertDialogViewPresenter = class AlertDialogViewPresenter extends PresenterBase_1.Presenter {
        constructor() {
            super();
        }
        onOpen(props) {
            super.onOpen(props);
            this._viewProps = props;
            this.view.setProps(this._viewProps);
            this.onShow();
        }
        onShow() {
            super.onShow();
            this.view.showView(this._viewProps);
        }
        onClose() {
            super.onClose();
            simba_sdk_1.SDK.hideBannerAd();
        }
    };
    AlertDialogViewPresenter.uuid = "AlertDialogView";
    AlertDialogViewPresenter = __decorate([
        PresenterCCViewFactory_1.RegPresenter(AlertDialogView_1.AlertDialogViewType)
    ], AlertDialogViewPresenter);
    return AlertDialogViewPresenter;
})();
exports.default = AlertDialogViewPresenter;

cc._RF.pop();