define(["tiny"],function(a){$(".api-checkbox").length>0&&($(document).off("click",".api-checkbox"),$(document).on("click",".api-checkbox",function(){var a=$(this),b=a.data("confirm"),c=a.prop("checked")?a.attr("value")||1:0,d=a.attr("name");handler=function(){$.showIndicator(),api.isetPrefs(d,c),$.hideIndicator()},b?$.confirm(b,handler):handler()}),$.showIndicator(),$(".api-checkbox").each(function(){var a=$(this),b=a.attr("name"),c=a.attr("value")||1;api.igetPrefs(b)==c&&a.prop("checked",!0)}),$.hideIndicator()),$(document).off("click",".api-radio"),$(document).on("click",".api-radio",function(){var a=$(this),c=a.data("confirm"),d=a.prop("checked")?a.attr("value")||1:0,e=a.attr("name");handler=function(){$.showIndicator(),api.isetPrefs(e,d),$.hideIndicator()},c?$.confirm(c,handler):handler(),b.init()}),$(".api-radio").length>0&&$(".api-radio").each(function(){var a=$(this),b=a.attr("name"),c=a.attr("value")||1;api.igetPrefs(b)==c&&a.prop("checked",!0)});var b={new:{times:{three:"播放3遍",loop:"循环播放"}},remind:{times:{three:"播放3遍",loop:"循环播放"}},refund:{times:{three:"播放3遍",loop:"循环播放"}},init:function(){var a=["new","remind","refund"],c=api.igetPrefs("phonic");$.each(a,function(a,d){var e=c[d].times;$(".phonic-times-"+d+" .item-after").html(b[d].times[e]),$(".phonic-times-"+d).data("value",e)})}};b.init()});