text: define(["service","configPath"],function(s,t){function i(s){o(s),e("SSID24g",s),e("SSID5g",s),e("SSID24g_guest",s),e("SSID5g_guest",s),"1"==s.AccessPointSwitchStatus_1_1?c("SSID24g"):"1"==s.AccessPointSwitchStatus_2_1?c("SSID5g"):"1"==s.AccessPointSwitchStatus_1_2?c("SSID24g_guest"):"1"==s.AccessPointSwitchStatus_2_2&&c("SSID5g_guest")}function e(s,t){var i={SSID24g:"_1_1",SSID24g_guest:"_1_2",SSID5g:"_2_1",SSID5g_guest:"_2_2"},e=i[s];w[s]={ssid:t["SSID"+e],securityMode:t["AuthMode"+e],password:t["Password"+e],broadcast:"1"==t["ApBroadcastDisabled"+e]?"1":"0",apIsolation:"1"==t["ApIsolate"+e]?"1":"0",selectedStation:t["ApMaxStationNumber"+e]}}function o(s){"1"==s.wifiSwitch?("1"==s.AccessPointSwitchStatus_1_1&&f.append('<option value="SSID24g" data-trans="wifi_ssid1"></option>'),t.WIFI_DOUBLE_CHIP&&"1"==s.AccessPointSwitchStatus_2_1&&f.append('<option value="SSID5g" data-trans="wifi_ssid2"></option>'),t.HAS_MULTI_SSID&&("1"==s.AccessPointSwitchStatus_1_2&&f.append('<option value="SSID24g_guest" data-trans="wifi_guest_24g"></option>'),t.WIFI_DOUBLE_CHIP&&"1"==s.AccessPointSwitchStatus_2_2&&f.append('<option value="SSID5g_guest" data-trans="wifi_guest_5g"></option>'))):f.append('<option value="SSID24g" data-trans="wifi_ssid1"></option>'),f.translate()}function a(){var s=d();return"0"==s.wifiSwitch?(showAlert("wps_wifi_off"),!0):-1!=f.val().indexOf("SSID24g")&&"1"==s.WpsStatus_1?(showAlert("wps_on_info"),!0):-1!=f.val().indexOf("SSID5g")&&"1"==s.WpsStatus_2?(showAlert("wps_on_info"),!0):void showConfirm("wifi_disconnect_confirm",function(){"SSID24g"==f.val()?n("0","SSID24g"):"SSID24g_guest"==f.val()?n("1","SSID24g_guest"):"SSID5g"==f.val()?S("0","SSID5g"):S("1","SSID5g_guest")})}function n(t,i){showLoading();var e={};w[i].ssid=p.val(),w[i].securityMode=g.val(),w[i].password=l.val(),e.ChipIndex="0",e.AccessPointIndex=t,e.AuthMode=w[i].securityMode,e.Password=w[i].password,e.SSID=w[i].ssid,e.ApBroadcastDisabled=w[i].broadcast,e.ApMaxStationNumber=w[i].selectedStation,e.cipher="WPA2PSK"==e.AuthMode?"CCMP":"TKIPCCMP",e.ApIsolate=w[i].apIsolation,s.setWifiAccessPointInfo(e,function(s){"success"==s.result?successOverlay():errorOverlay()})}function S(t,i){showLoading();var e={};w[i].ssid=p.val(),w[i].securityMode=g.val(),w[i].password=l.val(),e.ChipIndex="1",e.AccessPointIndex=t,e.AuthMode=w[i].securityMode,e.Password=w[i].password,e.SSID=w[i].ssid,e.ApBroadcastDisabled=w[i].broadcast,e.ApMaxStationNumber=w[i].selectedStation,e.cipher="WPA2PSK"==e.AuthMode?"CCMP":"TKIPCCMP",e.ApIsolate=w[i].apIsolation,s.setWifiAccessPointInfo(e,function(s){"success"==s.result?successOverlay():errorOverlay()})}function c(s){p.val(w[s].ssid),g.val(w[s].securityMode).trigger("change"),l.val(w[s].password)}function u(s){f.off("change").on("change",function(){c($(this).val())}),g.off("change").on("change",function(){var s=$(this).val(),t=$("#passContainer"),i=$("#openInfo");"OPEN"==s?(t.hide(),i.show(),l.val("")):(t.show(),i.hide())})}function r(){var i=s.getWifiModuleSwitchStatus(),e=s.getWifiAccessPointInfo();return wifiFilterAPInfo(i,e,t.WIFICHIPINDEX.FIRST,t.ACCESSPOINTINDEX.FIRST,t.WIFICHIPINDEX,t.ACCESSPOINTINDEX)}function d(){var t,i=s.getWifiModuleSwitchStatus(),e=s.getWifiWpsStatus();return t=wifiWPSActiveInfo(e),t.wifiSwitch=i.WiFiModuleSwitch,t}function I(){var s=r();_=$("#ssidTypeContainer"),f=$("#ssidType"),g=$("#securityMode"),p=$("#ssid"),l=$("#pass"),t.WIFI_DOUBLE_CHIP||t.HAS_MULTI_SSID?_.show():_.hide(),u(s),i(s);var e=$("#frmWifi");$("#wifiSave").click(function(){e.submit()}),e.validate({submitHandler:function(){a()},rules:{ssid:"ssid",pass:"wifi_password_check"}})}var _,f,g,p,l,w={};return{init:I}});
  //# sourceMappingURL=../../../sourcemaps/m/wifi/wifi_setting.js.map
  