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IAAI,eAAe,GAAG,IAAI,CAAC,gBAAgB,CAAC;YAC5C,IAAI,GAAG,GAAG,mCAAgB,CAAC,6BAA6B,EAAE,CAAC;YAC3D,IAAI,GAAG,IAAI,GAAG,CAAC,MAAM,EAAE;gBACnB,IAAI,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;gBACjC,IAAI,GAAG,GAAG,oCAAa,CAAC,SAAS,CAAC,iCAAe,EAAE,GAAG,CAAC,CAAC;gBACxD,IAAI,CAAC,gBAAgB,GAAG,GAAG,CAAC,aAAa,CAAC;aAC7C;YACD,IAAI,CAAC,mBAAmB,GAAG,eAAe,IAAI,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;QACvF,CAAC;KAyBJ,CAAA;IAlUY,oCAAoC;QADhD,wCAAe,CAAC,6DAA+B,CAAC;OACpC,oCAAoC,CAkUhD;IAAD,2CAAC;KAAA;AAlUY,oFAAoC","file":"","sourceRoot":"/","sourcesContent":["import { ConfigManager } from \"simba-config-manager\";\nimport { GameRecord, getPlot } from \"../../../avg/AVG\";\nimport { DateType } from \"../../../avg/EditorEnums\";\nimport { Presenter, Subpresenter } from \"../../../common/classbase/PresenterBase\";\nimport { GameTextData } from \"../../../common/gameplay/gamedata/GameTextData\";\nimport { UIManager } from \"../../../common/gameplay/managers/UIManager\";\nimport { StringUtils } from \"../../../common/utils/StringUtils\";\nimport { dateSceneConfig } from \"../../../config/DateSceneConfig\";\nimport { CommonLocation, DatePrefabDirectType, DirectionType, EventLocation, EventOperationType, GuideLocation, GuideOperationType, GuideState, StepType } from \"../../Enums\";\nimport GameDotMgr from \"../../GameDotMgr\";\nimport CDKeyEventManager from \"../../model/CDKeyEventManager\";\nimport { DatingEventSceneModel, DatingEventStatus } from \"../../model/DatingEventSceneModel\";\nimport { ExtraStoryModelManager } from \"../../model/ExtraStoryModelManager\";\nimport { GameModelManager } from \"../../model/GameModelManager\";\nimport { RegPresenter, RegSubpresenter } from \"../PresenterCCViewFactory\";\nimport { AlertDialogViewProps } from \"../view/type/AlertDialogView\";\nimport { ExtraPlotDatingEventItemProps, ExtraPlotDatingEventSubView, ExtraPlotDatingEventSubViewType } from \"../view/type/ExtraPlotDatingEventSubView\";\nimport AlertDialogViewPresenter from \"./AlertDialogViewPresenter\";\nimport { DatingScenePresenter } from \"./DatingScenePresenter\";\nimport GuideViewPresenter, { GuideViewParamModel } from \"./GuideViewPresenter\";\n\n@RegSubpresenter(ExtraPlotDatingEventSubViewType)\nexport class ExtraPlotDatingEventSubViewPresenter extends Subpresenter<ExtraPlotDatingEventSubView> {\n private _modelMap: { [key: string]: DatingEventSceneModel } = {};\n private _dailySceneNum: number = -1;\n private _curChapterIndex: number = 1;\n private _maxChapterIndex: number = 1;\n private _maxChapterIsChange: boolean = false;\n isReview: boolean;\n\n private sceneModelToViewModel(item: DatingEventSceneModel, index: number): ExtraPlotDatingEventItemProps {\n this._modelMap[item.id.toString()] = item;\n let direct = DatePrefabDirectType.Left;\n if (this._curChapterIndex % 2 === 1) {\n direct = (index + 1) % 2 === 1 ? DatePrefabDirectType.Left : DatePrefabDirectType.Right;\n } else {\n direct = (index + 1) % 2 === 0 ? DatePrefabDirectType.Left : DatePrefabDirectType.Right;\n }\n return {\n key: item.id + \"\",\n title: GameModelManager.getConfigLanguageTxt(item.config.name),\n status: item.status,\n coverImage: \"textures/dating_event/cover/\" + item.config.background,\n itype: direct\n }\n }\n\n // async refreshItems() {\n // let items: ExtraDateItemViewProps[] = [];\n // let cfgIdArr: number[] = this.getCfgIdArr();\n // let role = GameModelManager.getRoleData(this._viewProps.roleId);\n // for (let i = 0; i < cfgIdArr.length; i++) {\n // let cfg = ConfigManager.getConfig(extraSceneConfig, cfgIdArr[i]);\n // if (role && role.getRelationValue() >= cfg.relationCondition) {\n // await ExtraStoryModelManager.startBranches([cfg.start_plot_id]);\n // }\n // let sceneModel = new DatingEventSceneModel(cfg.id, false);\n // await sceneModel.initFromRecords();\n // if (sceneModel.status === DatingEventStatus.Locked && role!.getRelationValue() >= cfg.relationCondition) {\n // sceneModel.status = DatingEventStatus.New;\n // }\n // let p = this.sceneModelToViewModel(sceneModel);\n // p.showLine = i !== cfgIdArr.length - 1;\n // items.push(p);\n // }\n // this._viewProps.items = items;\n // }\n\n async refreshItems() {\n let items: ExtraPlotDatingEventItemProps[] = [];\n let srcModels: DatingEventSceneModel[] = [];\n let cfg = ConfigManager.getAllConfig(dateSceneConfig);\n for (const id in cfg) {\n if (cfg[id].DateType == DateType.Date_Sp && cfg[id].chapter_index == this._curChapterIndex) {\n await ExtraStoryModelManager.startBranches([cfg[id].start_plot_id]);\n let plot = await getPlot(cfg[id].start_plot_id);\n let model = new DatingEventSceneModel(Number(id));\n // model.status = ExtraStoryModelManager.getBranchStatus(model.id, model.config.start_plot_id);\n await model.initFromRecords();\n if (model.status === DatingEventStatus.Locked) {\n model.status = DatingEventStatus.New;\n }\n // model.firstPlot = plot;\n model.isExtra = true;\n srcModels.push(model);\n }\n }\n for (let i = srcModels.length - 1; i >= 0; i--) {\n items.push(this.sceneModelToViewModel(srcModels[i], i));\n }\n if (this._dailySceneNum == -1) {\n let maxItemsNum: number = 0;\n let cfg = ConfigManager.getAllConfig(dateSceneConfig);\n for (let id in cfg) {\n let c = cfg[id];\n if (c) {\n maxItemsNum++;\n }\n }\n this._dailySceneNum = maxItemsNum;\n }\n let showContinue = false;\n if (srcModels.length !== 0) {\n let c = 0;\n let cfgs = ConfigManager.getAllConfig(dateSceneConfig);\n for (let id in cfgs) {\n let cfg = cfgs[id];\n if (cfg) {\n c++;\n }\n }\n let last = srcModels[srcModels.length - 1];\n showContinue = last.id === c;\n }\n this.view.setProps({\n items,\n onItemClick: this.onItemAdModeClick,\n showContinue: showContinue,\n chapterName: this.getChapterName(this._curChapterIndex),\n showLeft: this._curChapterIndex !== 1,\n showRight: this._curChapterIndex !== this._maxChapterIndex,\n showChapterClear: this.checkChapterClear(items, this._curChapterIndex),\n onOptionChapter: this.onOptionChapter,\n chapterIndex: this._curChapterIndex\n });\n }\n\n checkChapterClear(items: ExtraPlotDatingEventItemProps[], chapterIndex: number): boolean {\n let showClear: boolean = true;\n let cfg = ConfigManager.getAllConfig(dateSceneConfig);\n let cnt = 0;\n for (let id in cfg) {\n let c = cfg[id]\n if (c && c.chapter_index === chapterIndex) {\n cnt++;\n }\n }\n if (cnt !== items.length) {\n return false;\n }\n return showClear;\n }\n\n getChapterName(chapterIndex: number): string {\n chapterIndex -= 1;\n let nameArr: string[] =\n [\n \"一\", \"二\", \"三\", \"四\", \"五\", \"六\", \"七\", \"八\", \"九\", \"十\",\n \"十一\", \"十二\", \"十三\", \"十四\", \"十五\", \"十六\", \"十七\", \"十八\", \"十九\", \"二十\"\n ];\n let name = StringUtils.format(GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_CHAPTER_NAME), nameArr[chapterIndex]);\n return name\n }\n\n onItemAdModeClick = (key: string) => {\n GameModelManager.setGuideEventItemRecord(key, GuideState.Complete);\n let m = this._modelMap[key];\n let hasRecord = this.checkIsSceneHasAdRecord(m.id);\n CDKeyEventManager.getInstance().shiftCDKeyRemovePlotAD();\n let removeAdCardNum: number = CDKeyEventManager.getInstance().checkCDKeyRemovePlotAD();\n if (m.status !== DatingEventStatus.Completed) {\n GameDotMgr.getInstance().dotClickUI(\"click_date_card\" + m.config.id);\n }\n let showAdAlert: boolean = !(removeAdCardNum > 0) && !hasRecord && m.config.ads === 1 && m.status == DatingEventStatus.New;\n if (showAdAlert) {\n let temp: AlertDialogViewProps =\n {\n dataptr: { key },\n titlecontent: GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_WAIT_VALUE),\n content: GameModelManager.getLanguageTxt(GameTextData.GAME_TEXT_SHOW_AD_UNLOCK_DATE_VALUE),\n ishasad: true,\n istwobtn: true,\n adconfig: \"inject_fruit\",\n location: CommonLocation.Event,\n callback: this.showAdCallBack,\n hasBanner: false,\n isthreebtn: true\n };\n console.log(\"Push AlertDialogViewPros data end\");\n UIManager.pushPresenter(AlertDialogViewPresenter, temp);\n console.log(\"pushPresenter=========\");\n } else {\n this.enterDatingScene(key);\n }\n }\n\n showAdCallBack = (type, ret: boolean, param: any) => {\n if (ret) {\n if (true) {\n let key = param[\"key\"] as string;\n let m = this._modelMap[key];\n this.pushSceneAdToRecord(m.id);\n setTimeout(() => {\n this.enterDatingScene(key);\n }, 300);\n }\n }\n }\n\n checkIsSceneHasAdRecord(id: number): boolean {\n let ret: boolean = false;\n let record = GameRecord.globalVariables[\"date_ad_arr\"] as string;\n if (record) {\n let a: number[] = JSON.parse(record);\n let i = a.findIndex((v) => v === id);\n ret = i !== -1;\n }\n return ret;\n }\n\n pushSceneAdToRecord(id: number) {\n let record = GameRecord.globalVariables[\"date_ad_arr\"] as string;\n let a: number[] = [];\n let isExsit: boolean = false;\n if (record) {\n a = JSON.parse(record);\n let i = a.findIndex((v) => v === id);\n if (i >= 0) {\n isExsit = true;\n }\n }\n if (!isExsit) {\n a.push(id);\n a.reverse();\n GameRecord.globalVariables[\"date_ad_arr\"] = JSON.stringify(a);\n GameRecord.autoSave();\n }\n }\n\n enterDatingScene(key: string) {\n ExtraStoryModelManager.enterExtraStoryByStartPlotId(this._modelMap[key].config.start_plot_id);\n GameModelManager.ShowDatingEventArrowGuide.emit(false);\n UIManager.pushPresenter(DatingScenePresenter, this._modelMap[key], true);\n }\n\n onOwnerShow() {\n if (!this.view.isHidden) {\n this.selectCurChapter();\n this.refreshMaxChapterIndex();\n // this.refreshItems();\n }\n }\n\n onOwnerEnterForeground() {\n if (!this.view.isHidden) {\n this.refreshMaxChapterIndex();\n this.refreshItems();\n }\n if (this._maxChapterIsChange) {\n this.selectCurChapter();\n }\n }\n\n onOpen() {\n super.onOpen();\n this._disposable.add(GameModelManager.CheckDateGuide.on(this.checkGuideItem));\n this._disposable.add(GameModelManager.RefreshDateSceneProgress.on(this.onRefreshDateSceneProgress));\n this._disposable.add(GameModelManager.ForceClickDatingItem.on(this.onForceClickItem));\n this._disposable.add(GameModelManager.RefreshExtraPlotByType.on(this.onRefreshExtraPlotByType));\n this.selectCurChapter();\n if (!this.view.isHidden) {\n this.refreshMaxChapterIndex();\n this.onShow();\n }\n }\n\n onShow() {\n this.refreshMaxChapterIndex();\n // this.refreshItems();\n this.checkGuideItem();\n }\n\n onHide() {\n\n }\n\n selectCurChapter() {\n let models = GameModelManager.getMainDatingEventScenesModel();\n if (models && models.length) {\n let last = models[models.length - 1];\n this._curChapterIndex = last.config.chapter_index;\n if (this._curChapterIndex !== 1) {\n GameModelManager.setNotNeedEnterCurDateChapter();\n }\n }\n }\n\n checkGuideItem = () => {\n let k = GameModelManager.getEventItemGuideKey();\n if (k && \"\" !== k) {\n let node = this.view.getItemNode(k);\n if (node) {\n let wp = node.convertToWorldSpaceAR(cc.v2(0, 0));\n let m: GuideViewParamModel = {\n x: wp.x,\n y: wp.y,\n w: node.width,\n h: node.height,\n d: DirectionType.DOWM,\n call: () => {\n this.onItemAdModeClick(k);\n // this.onItemEnergyCostClick(k);\n GameModelManager.setGuideEventItemRecord(k, GuideState.Complete);\n }\n }\n UIManager.pushPresenter(GuideViewPresenter, m);\n }\n }\n }\n\n refreshMaxChapterIndex() {\n let maxChapterIndex = this._maxChapterIndex;\n let arr = GameModelManager.getMainDatingEventScenesModel();\n if (arr && arr.length) {\n let dId = arr[arr.length - 1].id;\n let cfg = ConfigManager.getConfig(dateSceneConfig, dId);\n this._maxChapterIndex = cfg.chapter_index;\n }\n this._maxChapterIsChange = maxChapterIndex == this._maxChapterIndex ? false : true;\n }\n\n onOptionChapter = (stepType: StepType) => {\n let tempIndex = stepType === StepType.Add ? this._curChapterIndex + 1 : this._curChapterIndex - 1;\n this._curChapterIndex = tempIndex >= 1 && tempIndex <= this._maxChapterIndex ? tempIndex : this._curChapterIndex;\n this.refreshItems();\n }\n\n onRefreshDateSceneProgress = () => {\n this.refreshItems();\n }\n\n onForceClickItem = (id: number) => {\n console.log(\"DatingEventSubpresenter onForceClickItem id = \", id);\n let k = id + \"\";\n if (!this._modelMap || !this._modelMap[k]) {\n return;\n }\n this.onItemAdModeClick(k);\n }\n\n onRefreshExtraPlotByType = (id: number) => {\n this._curChapterIndex = id;\n this.refreshItems();\n }\n}"]}