function LocationStatus(){function n(){e={status:"notDetermined"},t=isIOS&&compareVersions(osversion,"13")>=0,l()&&funcObj.appcomm.appSend({method:"getLocationStatus",params:null},function(t){e=t})}function r(t){e=t}function i(){return e}function s(){return e.status==="allowed"}function o(){return e.status==="denied"}function u(){l()&&!s()&&!o()&&funcObj.appcomm.appSend({method:"requestLocationPermission",params:null})}function a(){if(t){var n=$("#wizard_progress_button_proceed_with_wifisetup");e.status==="denied"?n.addClass("disabled"):n.removeClass("disabled")}}function f(){t&&funcObj.appcomm.appSend({method:"getLocationStatus",params:null},function(e){showDebug==2&&console.log("getLocationStatus response: "+JSON.stringify(e)),r(e);var t=funcObj.setupWizard.get_page_name();switch(t){case"gabbo_permission_notification":funcObj.locationStatus.update_location_permission_page(),funcObj.locationStatus.allowed_location_permission()&&funcObj.setupWizard.set_page("gabbo_manual_settings");break;case"gabbo_manual_settings":var n=i().status;switch(n){case"notDetermined":u();break;case"denied":funcObj.setupWizard.set_page("gabbo_permission_notification")}}})}function l(){return t}var e,t;this.get_location_status=i,this.set_location_status=r,this.prompt_location_access=u,this.allowed_location_permission=s,this.denied_location_permission=o,this.requires_location_permission=l,this.update_location_permission_page=a,this.get_updated_location_status=f,n()};