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,IAAI,MAAM,KAAK,yCAAiB,CAAC,GAAG,IAAI,MAAM,KAAK,yCAAiB,CAAC,UAAU,EAAE;wBAC7E,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;qBAC9B;yBAAM;wBACH,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,KAAK,CAAC;qBAC/B;oBACD,IAAI,MAAM,KAAK,yCAAiB,CAAC,GAAG,EAAE;wBAClC,IAAI,CAAC,YAAY,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;qBACvD;yBAAM,IAAI,MAAM,KAAK,yCAAiB,CAAC,UAAU,EAAE;wBAChD,IAAI,CAAC,YAAY,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;qBACvD;yBAAM,IAAI,MAAM,KAAK,yCAAiB,CAAC,SAAS,EAAE;wBAC/C,IAAI,CAAC,YAAY,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;qBACvD;iBACJ;YACL,CAAC,CAAC,CAAC;QACP,CAAC;KACJ,CAAA;IAxCG;QADC,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC;kEACgB;IAEtC;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;4DACU;IAE5B;QADC,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC;kEACgB;IAEpC;QADC,QAAQ,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC;gEACgB;IAE3C;QADC,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC;iEACe;IAX1B,uBAAuB;QADnC,OAAO;OACK,uBAAuB,CA2CnC;IAAD,8BAAC;KAAA;AA3CY,0DAAuB","file":"","sourceRoot":"/","sourcesContent":["import { DatingEventItemProps } from \"../../type/DatingEventSubview\";\nimport { DummyLabel, DummyNode, DummyRichText, DummySprite } from \"../../../../../common/CCDummyObjects\";\nimport { ListItemImpl } from \"../../../baseview/impl/ListItemImpl\";\nimport { ResUtils } from \"simba-cc-resutils\";\nimport { DatingEventStatus } from \"../../../../model/DatingEventSceneModel\";\n\nconst { ccclass, property } = cc._decorator;\n\n@ccclass\nexport class DatingEventItemViewImpl extends ListItemImpl<DatingEventItemProps> {\n\n @property(cc.RichText)\n private titleRichText = DummyRichText;\n @property(cc.Node)\n private newNode = DummyNode;\n @property(cc.Sprite)\n private contentSprite = DummySprite;\n @property([cc.SpriteFrame])\n private statusIcons: cc.SpriteFrame[] = [];\n @property(cc.Sprite)\n private statusSprite = DummySprite;\n\n onLoad() {\n super.onLoad();\n this.bindProp(\"title\", this.titleRichText, \"string\"); \n this.bindProp(\"coverImage\", (value) => {\n if (value) {\n ResUtils.loadRes(value, cc.SpriteFrame).then((sf) => {\n this.contentSprite.spriteFrame = sf;\n });\n }\n });\n this.bindProp(\"status\", (status) => {\n if (status === DatingEventStatus.Locked) {\n this.contentSprite.node.active = false;\n } else {\n this.contentSprite.node.active = true;\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}"]}