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AAI,CAAC,MAAM,CAAC,yBAAyB,EAAE,CAAC;QAC5C,CAAC;KACJ,CAAA;IAxDG;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,WAAW,CAAC,EAAE,WAAW,EAAE,4BAA4B,EAAE,CAAC;iEACtC;IAE1C;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,gBAAgB,EAAE,CAAC;4DAC/B;IAEhC;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC;0DAC/B;IAE5B;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,QAAQ,EAAE,WAAW,EAAE,kBAAkB,EAAE,CAAC;8DACpB;IAE7C;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,yBAAyB,EAAE,CAAC;oEACzB;IAE3C;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,+BAA+B,EAAE,CAAC;mEAC9B;IAE9C;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC;yDACpC;IAEtB;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,CAAC;6DACpC;IAjBhB,iBAAiB;QAF7B,OAAO;QACP,gCAAO,CAAC,iCAAiB,EAAE,gCAAgC,CAAC;OAChD,iBAAiB,CA2D7B;IAAD,wBAAC;KAAA;AA3DY,8CAAiB","file":"","sourceRoot":"/","sourcesContent":["import { DummyNode, DummyPrefab, DummyRichText } from \"../../../../../common/CCDummyObjects\";\r\nimport { CCPureView } from \"../../../../../common/classbase/CCViewBase\";\r\nimport { RegView } from \"../../../PresenterCCViewFactory\";\r\nimport { NewNoticeViewType, NewNoticeViewProps, NewNoticeView } from \"../../type/notice/NewNoticeView\";\r\n\r\nconst { ccclass, property } = cc._decorator;\r\n@ccclass\r\n@RegView(NewNoticeViewType, \"prefab/ui/notice/NewNoticeView\")\r\nexport class NewNoticeViewImpl extends CCPureView<NewNoticeViewProps> implements NewNoticeView {\r\n\r\n @property({ type: [cc.SpriteFrame], displayName: \"Notice button spriteFrames\" })\r\n buttonSpriteFrames: cc.SpriteFrame[] = [];\r\n @property({ type: [cc.Button], displayName: \"Notice buttons\" })\r\n noticeButtons: cc.Button[] = [];\r\n @property({ type: [cc.Node], displayName: \"Notice nodes\" })\r\n noticeNodes: cc.Node[] = [];\r\n @property({ type: cc.RichText, displayName: \"Content richtext\" })\r\n contentRichText: cc.RichText = DummyRichText;\r\n @property({ type: cc.Node, displayName: \"Activities content node\" })\r\n activitiesContentNode: cc.Node = DummyNode;\r\n @property({ type: cc.Prefab, displayName: \"Activities notice item prefab\" })\r\n activitiesItemPrefab: cc.Prefab = DummyPrefab;\r\n @property({ type: cc.Toggle, displayName: \"Tips toggle\" })\r\n tipsToggle: cc.Toggle;\r\n @property({ type: cc.Label, displayName: \"CloseTips label\" })\r\n closeTipsLabel: cc.Label;\r\n\r\n getButtonSpriteFrames(): cc.SpriteFrame[] {\r\n return this.buttonSpriteFrames;\r\n }\r\n\r\n getNoticeButtons(): cc.Button[] {\r\n return this.noticeButtons;\r\n }\r\n\r\n getNoticeNodes(): cc.Node[] {\r\n return this.noticeNodes;\r\n }\r\n\r\n getContentRichText(): cc.RichText {\r\n return this.contentRichText;\r\n }\r\n\r\n getActivitiesContentNode(): cc.Node {\r\n return this.activitiesContentNode;\r\n }\r\n\r\n getActivitiesItemPrefab(): cc.Prefab {\r\n return this.activitiesItemPrefab;\r\n }\r\n\r\n getTipsToggle(): cc.Toggle {\r\n return this.tipsToggle;\r\n }\r\n\r\n getCloseTipsLabel(): cc.Label {\r\n return this.closeTipsLabel;\r\n }\r\n\r\n onNoticeButtonClick(event, customEventData) {\r\n let index = Number(customEventData);\r\n this._props.onNoticeButtonClickCallback(index);\r\n }\r\n\r\n onCloseButtonClick() {\r\n this._props.onCloseButtonClickCalback();\r\n }\r\n}"]}