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A0B,EAAE,CAAC;QAC7C,CAAC;QAED,iBAAiB;YACb,IAAI,CAAC,MAAM,CAAC,yBAAyB,EAAE,CAAC;QAC5C,CAAC;QAED,sBAAsB;YAClB,IAAI,CAAC,MAAM,CAAC,8BAA8B,EAAE,CAAC;QACjD,CAAC;QAED,kBAAkB;YACd,IAAI,CAAC,MAAM,CAAC,0BAA0B,EAAE,CAAC;QAC7C,CAAC;KACJ,CAAA;IA7GG;QADC,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC;kEAC4B;IAEhD;QADC,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC;8DACwB;IAE5C;QADC,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC;8DACwB;IAE5C;QADC,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC;+DACyB;IAE7C;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;kEAC0B;IAE5C;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;qEAC6B;IAE/C;QADC,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC;8DACwB;IAE5C;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;mEAC2B;IAjBpC,sBAAsB;QAFlC,OAAO;QACP,mCAAU,CAAC,2CAAsB,CAAC;OACtB,sBAAsB,CAgHlC;IAAD,6BAAC;KAAA;AAhHY,wDAAsB","file":"","sourceRoot":"/","sourcesContent":["import { ListSubviewImpl } from \"../../../baseview/impl/ListSubviewImpl\";\nimport { DatingEventItemProps, DatingEventSubviewProps, DatingEventSubviewType } from \"../../type/DatingEventSubview\";\nimport { DatingEventItemViewImpl } from \"./DatingEventItemViewImpl\";\nimport { RegSubview } from \"../../../PresenterCCViewFactory\";\nimport { DummyButton, DummyNode, DummyPrefab } from \"../../../../../common/CCDummyObjects\";\nimport { GameModelManager } from \"../../../../model/GameModelManager\";\n\nconst { ccclass, property } = cc._decorator;\n\n@ccclass\n@RegSubview(DatingEventSubviewType)\nexport class DatingEventSubviewImpl extends ListSubviewImpl<DatingEventItemProps, DatingEventSubviewProps> {\n\n @property(cc.Prefab)\n private listItemPrefab: cc.Prefab = DummyPrefab;\n @property(cc.Button)\n private leftButton: cc.Button = DummyButton;\n @property(cc.Button)\n private nameButton: cc.Button = DummyButton;\n @property(cc.Button)\n private rightButton: cc.Button = DummyButton;\n @property(cc.Node)\n private scrollViewRoot: cc.Node = DummyNode;\n @property(cc.Node)\n private scrollViewContent: cc.Node = DummyNode;\n @property(cc.Prefab)\n private sectionBtn: cc.Prefab = DummyPrefab;\n @property(cc.Node)\n private extraPlotButton: cc.Node = DummyNode;\n\n // private _scrollViewOffsetY: number;\n onLoad() {\n super.onLoad();\n }\n\n protected createListItemView(index: number) {\n let node = cc.instantiate(this.listItemPrefab);\n return Promise.resolve(node.getComponent(DatingEventItemViewImpl));\n }\n\n onRefreshListEnd() {\n this.scheduleOnce(() => {\n this.scheduleOnce(() => { // 延迟两帧更新布局\n this.contentLayout.updateLayout();\n // if (this._scrollViewOffsetY) {\n // this.scrollView.scrollToOffset(new cc.Vec2(0, this._scrollViewOffsetY));\n // this._scrollViewOffsetY = 0;\n // } else {\n this.scrollToTop();\n // }\n GameModelManager.CheckDateGuide.emit();\n });\n });\n }\n\n getItemNode = (k: string): cc.Node | undefined => {\n let ret: cc.Node | undefined = undefined;\n let v = this._itemViews[k];\n if (v) {\n ret = v.node;\n }\n return ret;\n }\n\n onScrollEvent(scrollview, eventType, customEventData) {\n if (cc.ScrollView.EventType.SCROLL_BEGAN === eventType) {\n this._props.onScrollBegin();\n } else if (cc.ScrollView.EventType.SCROLL_ENDED === eventType) {\n this._props.onScrollEnd();\n }\n }\n\n // setCurrEventId(id: number) {\n // this._scrollViewOffsetY = this.scrollView.content.height - (250 * id) - (250 / 2);\n // }\n\n getLeftButton(): cc.Button {\n return this.leftButton;\n }\n\n getNameButton(): cc.Button {\n return this.nameButton;\n }\n \n getRightButton(): cc.Button {\n return this.rightButton;\n }\n\n getScrollViewRoot(): cc.Node {\n return this.scrollViewRoot;\n }\n\n getScrollViewContent(): cc.Node {\n return this.scrollViewContent\n }\n\n getSectionBtn(): cc.Prefab {\n return this.sectionBtn;\n }\n\n getExtraPlotButton(): cc.Node {\n return this.extraPlotButton;\n }\n\n onLeftButtonClick() {\n this._props.onLeftButtonClickCallback();\n }\n\n onRightButtonClick() {\n this._props.onRightButtonClickCallback();\n }\n\n onNameButtonClick() {\n this._props.onNameButtonClickCallback();\n }\n\n onExtraPlotButtonClick() {\n this._props.onExtraPlotButtonClickCallback();\n }\n\n onCloseSectionView() {\n this._props.onCloseSectionViewCallBack();\n }\n}"]}