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EAAE;oBAC3E,IAAI,CAAC,SAAS,CAAC,WAAW,GAAG,KAAK,CAAC;gBACvC,CAAC,CAAC,CAAC;gBAEH,IAAI,CAAC,UAAU,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;aAC5C;YAED,IAAI,IAAI,CAAC,UAAU,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,EAAE;gBACvC,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;gBACjC,IAAI,CAAC,UAAU,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;aACxC;YAED,IAAI,IAAI,CAAC,UAAU,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,EAAE;gBAC3C,IAAI,CAAC,SAAS,CAAC,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC;gBACtC,IAAI,CAAC,UAAU,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;aAC5C;QAEL,CAAC;KAGJ,CAAA;IA5CG;QADC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC;wDACe;IAGlC;QADC,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC;uDACe;IAGnC;QADC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC;oDACW;IAG9B;QADC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;uDACa;IAzBd,gBAAgB;QADpC,OAAO;OACa,gBAAgB,CA4DpC;IAAD,uBAAC;KAAA;kBA5DoB,gBAAgB","file":"","sourceRoot":"/","sourcesContent":["import { DummyLabel, DummySprite, DummyNode } from \"../../../../common/CCDummyObjects\";\r\nimport { SininDayItemProps } from \"../type/SininSevenDayView\";\r\nimport { ResUtils } from \"../../../../common/utils/ResUtils\";\r\n\r\nconst { ccclass, property } = cc._decorator;\r\n\r\n@ccclass\r\nexport default class SininDayItemImpl extends cc.Component {\r\n\r\n // LIFE-CYCLE CALLBACKS:\r\n\r\n // onLoad () {}\r\n\r\n private _viewProps: SininDayItemProps =\r\n {\r\n key: \"\",\r\n titlecontent: \"\",\r\n itemicon: \"\",\r\n number: \"\",\r\n itemmask: true\r\n };\r\n\r\n @property(cc.Label)\r\n item_title: cc.Label = DummyLabel;\r\n\r\n @property(cc.Sprite)\r\n item_icon: cc.Sprite = DummySprite;\r\n\r\n @property(cc.Label)\r\n number: cc.Label = DummyLabel;\r\n\r\n @property(cc.Node)\r\n item_mask: cc.Node = DummyNode;\r\n\r\n setSininDayItem(item: SininDayItemProps) {\r\n if (this._viewProps.key != item.key) {\r\n this._viewProps.key = item.key;\r\n }\r\n\r\n\r\n if (this._viewProps.titlecontent != item.titlecontent) {\r\n this._viewProps.titlecontent = item.titlecontent;\r\n this.item_title.string = item.titlecontent;\r\n }\r\n\r\n\r\n if (this._viewProps.itemicon != item.itemicon) {\r\n ResUtils.loadRes<cc.SpriteFrame>(item.itemicon, cc.SpriteFrame).then((value) => {\r\n this.item_icon.spriteFrame = value;\r\n });\r\n\r\n this._viewProps.itemicon = item.itemicon;\r\n }\r\n\r\n if (this._viewProps.number != item.number) {\r\n this.number.string = item.number;\r\n this._viewProps.number = item.number;\r\n }\r\n\r\n if (this._viewProps.itemmask != item.itemmask) {\r\n this.item_mask.active = item.itemmask;\r\n this._viewProps.itemmask = item.itemmask;\r\n }\r\n\r\n }\r\n\r\n // update (dt) {}\r\n}\r\n"]}