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AAE,QAAQ,CAAC,CAAC;YAC/D,IAAI,CAAC,QAAQ,CAAC,kBAAkB,EAAE,IAAI,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;QACnE,CAAC;KACJ,CAAA;IAnCG;QADC,QAAQ,CAAC,CAAC,+CAAsB,CAAC,CAAC;yDACa;IAGhD;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;4DACc;IAEhC;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;4DACc;IAEhC;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;6DACe;IAEjC;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;6DACe;IAdxB,mBAAmB;QAF/B,OAAO;QACP,gCAAO,CAAC,qCAAmB,EAAE,2BAA2B,CAAC;OAC7C,mBAAmB,CAwC/B;IAAD,0BAAC;KAAA;AAxCY,kDAAmB","file":"","sourceRoot":"/","sourcesContent":["import { CCPureView } from \"../../../../common/classbase/CCViewBase\";\nimport { RegView } from \"../../PresenterCCViewFactory\";\nimport { DatingEventViewType, DatingEventViewProps, DatingEventView } from \"../type/DatingEventView\";\nimport { View } from \"../../../../common/classbase/ViewBase\";\nimport { DatingEventSubviewImpl } from \"./dating/DatingEventSubviewImpl\";\nimport { DummyNode } from \"../../../../common/CCDummyObjects\";\n\nconst { ccclass, property } = cc._decorator;\n\n@ccclass\n@RegView(DatingEventViewType, \"prefab/ui/DatingEventView\")\nexport class DatingEventViewImpl extends CCPureView<DatingEventViewProps> implements DatingEventView {\n private _activeIndex = 0;\n\n //#region edntor bindings\n @property([DatingEventSubviewImpl])\n private subviews: DatingEventSubviewImpl[] = [];\n\n @property(cc.Node)\n private mainRedDot0 = DummyNode;\n @property(cc.Node)\n private mainRedDot1 = DummyNode;\n @property(cc.Node)\n private extraRedDot0 = DummyNode;\n @property(cc.Node)\n private extraRedDot1 = DummyNode;\n\n onTabChange(_: any, index: string) {\n this.subviews[this._activeIndex].hide();\n this._activeIndex = parseInt(index);\n this.subviews[this._activeIndex].show();\n }\n //#endregion\n\n\n private _tabGiftContentContainer: View;\n private _tabClothContentContainer: View;\n public getGiftContentContainer(): View {\n return this._tabGiftContentContainer;\n }\n\n public getClothContentContainer(): View {\n return this._tabClothContentContainer;\n }\n\n onLoad() {\n this.bindProp(\"mainEventRedDot\", this.mainRedDot0, \"active\");\n this.bindProp(\"mainEventRedDot\", this.mainRedDot1, \"active\");\n this.bindProp(\"extraEventRedDot\", this.extraRedDot0, \"active\");\n this.bindProp(\"extraEventRedDot\", this.extraRedDot1, \"active\");\n }\n}"]}