(function(){"use strict";function e(e,i){this.MobileWidget(e,i);this._create()}e.prototype={_create:function(){var e=$(this.element);var i=e.find("[type='checkbox']");i.on("change",function(){var t=$(this).is(":checked")?true:false;e.find("[type='hidden']").val(t);i.parent().focus()});e.find("div").on("click",function(e){if(this!=e.target){return}i.prop("checked",!i.is(":checked"))})}};e.makeClass({name:"BooleanField",deriveFrom:u8.Mobile.Widgets.MobileWidget})})();