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,CAAC;iEAC2B;IAG7C;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;yDACmB;IAGrC;QADC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC;4DACuB;IAG1C;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;4DACc;IArBvB,oBAAoB;QADhC,OAAO;OACK,oBAAoB,CAyDhC;IAAD,2BAAC;KAAA;AAzDY,oDAAoB","file":"","sourceRoot":"/","sourcesContent":["import { MessageEntryItemProps } from \"../type/MessageView\";\nimport { DummyLabel, DummyNode, DummyRichText, DummySprite } from \"../../../../common/CCDummyObjects\";\nimport { ListItemImpl } from \"../../baseview/impl/ListItemImpl\";\nimport { ResUtils } from \"simba-cc-resutils\";\n\nconst { ccclass, property } = cc._decorator;\n\n@ccclass\nexport class MessageEntryItemImpl extends ListItemImpl<MessageEntryItemProps> {\n\n @property({ type: cc.RichText })\n protected lastMsgLabel: cc.RichText = DummyRichText;\n\n @property(cc.Sprite)\n protected iconSprite: cc.Sprite = DummySprite;\n\n @property(cc.Sprite)\n protected nameSprite: cc.Sprite = DummySprite;\n\n @property(cc.Node)\n private addGraceBtnNode: cc.Node = DummyNode;\n\n @property(cc.Node)\n private addNode: cc.Node = DummyNode;\n\n @property(cc.Label)\n private graceLevel: cc.Label = DummyLabel;\n\n @property(cc.Node)\n redDotNode: cc.Node = DummyNode;\n\n\n onLoad() {\n this.bindProp(\"nameSpr\", async (value) => {\n if (value && \"\" !== value.trim()) {\n this.nameSprite.spriteFrame = await ResUtils.loadRes(value, cc.SpriteFrame);\n }\n });\n this.bindProp(\"lastMsg\", this.lastMsgLabel, \"string\");\n this.bindProp(\"redDot\", this.redDotNode, \"active\");\n this.bindProp(\"icons\", async (value) => {\n if (value.length == 1) {\n this.iconSprite.spriteFrame = await ResUtils.loadRes(value[0], cc.SpriteFrame);\n }\n });\n\n this.bindProp(\"level\", (v) => {\n this.graceLevel.string = v + \"\";\n });\n this.bindProp(\"isShowAddGrace\", async (value) => {\n this.addNode.active = value;\n if (value) {\n cc.tween(this.addGraceBtnNode)\n .repeatForever(cc.tween()\n .to(0.8, { scale: 1.15 }, { easing: 'sineInOut' })\n .to(0.8, { scale: 1 }, { easing: 'sineInOut' }))\n .start();\n }\n });\n this.bindProp(\"isShowGrace\", this.addGraceBtnNode, \"active\");\n }\n\n onAddGraceClickCallBack() {\n this._props.addGraceClickCallBack(this._props.roleId);\n }\n}"]}