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C,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAC7D,CAAC,CAAC,CAAC;QACP,CAAC;KAEJ,CAAA;IAtCG;QADC,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC;+DACa;IAEjC;QADC,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC;+DACa;IAEjC;QADC,QAAQ,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC;+DACe;IAPjC,uBAAuB;QAFnC,OAAO;QACP,gCAAO,CAAC,6CAAuB,EAAE,gCAAgC,CAAC;OACtD,uBAAuB,CAyCnC;IAAD,8BAAC;KAAA;AAzCY,0DAAuB","file":"","sourceRoot":"/","sourcesContent":["import { RegView } from \"../../../PresenterCCViewFactory\";\nimport { DiscoverSettingViewType, DiscoverSettingViewProps, DiscoverSettingView } from \"../../type/discover/DiscoverSettingView\";\nimport { CCPureView } from \"../../../../../common/classbase/CCViewBase\";\nimport { DummyButton, DummySprite } from \"../../../../../common/CCDummyObjects\";\n\nconst { ccclass, property } = cc._decorator;\n\n@ccclass\n@RegView(DiscoverSettingViewType, \"prefab/ui/discover/SettingView\")\nexport class DiscoverSettingViewImpl extends CCPureView<DiscoverSettingViewProps> implements DiscoverSettingView {\n //#region editor bindgins\n @property(cc.Sprite)\n private soundBtnBg = DummySprite;\n @property(cc.Sprite)\n private musicBtnBg = DummySprite;\n @property([cc.SpriteFrame])\n private onOffBtnSf: cc.SpriteFrame[] = [];\n\n toggleSound() {\n this._props.onToggleSound();\n }\n\n toggleMusic() {\n this._props.onToggleMusic();\n }\n\n onToggleNotice() {\n this._props.onToggleNotice();\n }\n\n\n onToggleExchangeCode() {\n this._props.onToggleExchangeCode();\n }\n\n closeAction() {\n this.close(true);\n }\n //#endregion\n\n onLoad() {\n super.onLoad();\n this.bindProp(\"musicEnabled\", v => {\n this.musicBtnBg.spriteFrame = this.onOffBtnSf[v ? 1 : 0];\n });\n this.bindProp(\"soundEnabled\", v => {\n this.soundBtnBg.spriteFrame = this.onOffBtnSf[v ? 1 : 0];\n });\n }\n \n}"]}