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Label, DummyNode, DummySprite } from \"../../../../../common/CCDummyObjects\";\nimport { ListItemImpl } from \"../../../baseview/impl/ListItemImpl\";\nimport { ResUtils } from \"../../../../../common/utils/ResUtils\";\nimport { DatingEventStatus } from \"../../../../model/DatingEventSceneModel\";\n\nconst { ccclass, property } = cc._decorator;\n\n@ccclass\nexport class DatingEventItemViewImpl extends ListItemImpl<DatingEventItemProps> {\n //#region editor bindings\n @property([cc.Node])\n private jointLines: cc.Node[] = [];\n @property(cc.Label)\n private titleLabel = DummyLabel;\n @property(cc.Label)\n private dateLabel = DummyLabel;\n @property(cc.Label)\n private timeLabel = DummyLabel;\n @property(cc.Node)\n private newNode = DummyNode;\n @property(cc.Sprite)\n private coverSprite = DummySprite;\n @property(cc.Label)\n private lockText = DummyLabel;\n @property([cc.SpriteFrame])\n private statusIcons: cc.SpriteFrame[] = [];\n @property(cc.Sprite)\n private statusSprite = DummySprite;\n //#endregion\n\n onLoad() {\n super.onLoad();\n\n this.bindProp(\"title\", this.titleLabel, \"string\");\n this.bindProp(\"date\", this.dateLabel, \"string\");\n this.bindProp(\"time\", this.timeLabel, \"string\");\n this.bindProp(\"coverImage\", (value) => {\n if (value) {\n ResUtils.loadRes(value, cc.SpriteFrame).then((sf) => {\n this.coverSprite.spriteFrame = sf;\n });\n }\n });\n this.bindProp(\"lockText\", this.lockText, \"string\");\n this.bindProp(\"status\", (status) => {\n if (status === DatingEventStatus.Locked) {\n this.coverSprite.node.active = false;\n this.lockText.node.parent.active = true;\n } else {\n this.coverSprite.node.active = true;\n this.lockText.node.parent.active = false;\n if (status === DatingEventStatus.New || status === DatingEventStatus.InProgress) {\n this.newNode.active = true;\n } else {\n this.newNode.active = false;\n }\n if (status === DatingEventStatus.New) {\n this.statusSprite.spriteFrame = this.statusIcons[0];\n } else if (status === DatingEventStatus.InProgress) {\n this.statusSprite.spriteFrame = this.statusIcons[1];\n } else if (status === DatingEventStatus.Completed) {\n this.statusSprite.spriteFrame = this.statusIcons[2];\n }\n }\n });\n\n this.bindProp(\"lineStyle\", (value) => {\n if (value === \"none\") {\n this.jointLines[0].parent.active = false;\n } else {\n this.jointLines[0].parent.active = true;\n this.jointLines[value].active = true;\n this.jointLines[(value + 1) % 2].active = false;\n }\n });\n }\n}"]}