{
  "code": "import { ui } from \"../ui/layaMaxUI\";\r\nimport { ViewManager, ViewType } from \"./ViewManager\";\r\nimport { EventManager, StageMode } from \"../Tool/EventManager\";\r\nexport default class ReviveView extends ui.ReviveViewUI {\r\n    constructor() {\r\n        super();\r\n        this.time = 9;\r\n        this.count = false;\r\n        this.fuhuo = false;\r\n    }\r\n    static get Instance() {\r\n        if (ReviveView.ins) {\r\n            return ReviveView.ins;\r\n        }\r\n        else {\r\n            return new ReviveView();\r\n        }\r\n    }\r\n    Show() {\r\n        this.VideoBtn.clickHandler = Laya.Handler.create(this, this.VideoRevive);\r\n        this.NoBtn.visible = false;\r\n        Laya.timer.once(1000, this, () => {\r\n            this.NoBtn.visible = true;\r\n            this.NoBtn.clickHandler = Laya.Handler.create(this, this.DontRevive, null, false);\r\n        });\r\n        this.count = true;\r\n        Laya.timer.loop(1000, this, this.CountTime);\r\n        this.height = Laya.stage.height;\r\n        this.BG.height = Laya.stage.height;\r\n        Laya.stage.on(Laya.Event.RESIZE, this, () => {\r\n            this.height = Laya.stage.height;\r\n            this.BG.height = Laya.stage.height;\r\n        });\r\n    }\r\n    CountTime() {\r\n        if (this.count && this.time > 0) {\r\n            this.time -= 1;\r\n            this.Time.text = this.time.toString();\r\n            if (this.time < 1) {\r\n                Laya.timer.clear(this, this.CountTime);\r\n                this.DontRevive();\r\n            }\r\n        }\r\n    }\r\n    DontRevive() {\r\n        Laya.timer.clear(this, this.CountTime);\r\n        this.count = false;\r\n        ViewManager.Instance.ClosePopView(ViewType.ReviveView);\r\n        ViewManager.Instance.OpenPopView(ViewType.FailureView);\r\n    }\r\n    VideoRevive() {\r\n        Laya.timer.clear(this, this.CountTime);\r\n        this.count = false;\r\n        EventManager.StageTrigger(StageMode.Revive);\r\n        ViewManager.Instance.ClearPopViews();\r\n    }\r\n    Close() {\r\n        Laya.timer.clearAll(this);\r\n    }\r\n}\r\n//# sourceMappingURL=ReviveView.js.map",
  "references": [
    "E:/LayaProject/2048_laya/src/ui/layaMaxUI.ts",
    "E:/LayaProject/2048_laya/src/View/ViewManager.ts",
    "E:/LayaProject/2048_laya/src/Tool/EventManager.ts"
  ],
  "map": "{\"version\":3,\"file\":\"ReviveView.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/View/ReviveView.ts\"],\"names\":[],\"mappings\":\"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAM,WAAW,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAE/D,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,EAAE,CAAC,YAAY;IAEnD;QACI,KAAK,EAAE,CAAC;QA2BX,SAAI,GAAG,CAAC,CAAC;QACT,UAAK,GAAG,KAAK,CAAC;QACd,UAAK,GAAG,KAAK,CAAC;IA5Bf,CAAC;IACM,MAAM,KAAK,QAAQ;QACtB,IAAG,UAAU,CAAC,GAAG,EAAC;YACd,OAAO,UAAU,CAAC,GAAG,CAAA;SACxB;aACG;YACA,OAAO,IAAI,UAAU,EAAE,CAAC;SAC3B;IACL,CAAC;IACD,IAAI;QACA,IAAI,CAAC,QAAQ,CAAC,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,EAAC,IAAI,CAAC,WAAW,CAAC,CAAA;QACvE,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;QAC3B,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAC,IAAI,EAAC,GAAE,EAAE;YAC1B,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC;YAC1B,IAAI,CAAC,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,EAAC,IAAI,CAAC,UAAU,EAAC,IAAI,EAAC,KAAK,CAAC,CAAC;QACnF,CAAC,CAAC,CAAA;QACF,IAAI,CAAC,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