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EAAAA,EAAAA,GAAAS,EAAAR,UAAA,WA4BPsD,EAAAA,QAAMhD,OAAAC,yBAAAC,EAAAR,UAAA,WAAAQ,EAAAR,WAAAQ,E,sEC1DJ,SAASyD,EAAOC,EAASC,GAC9B,OAAOD,EAAQE,eAGjB,SAAiCD,GAE/B,IAEIE,EAFAC,GADJH,EAASA,EAAOI,SACaC,QACzBC,EAAYN,EAAOA,EAAOO,OAAS,GAQvC,OALEL,EADEI,GAAaA,EAAUE,cACXR,EAAOS,MAAMC,OAEb,CAAC,EAGV,CAACP,EADKH,EACoBE,EACnC,CAfgCS,CAAwBX,GACxD,CAgBe,MAAMY,UAAqBC,KACxC,WAAId,GACF,OAAOe,EAAAA,EAAAA,UAAShG,MAAMiG,OAAO,mBAC/B,CAEA,UAAIC,GACF,OAAOF,EAAAA,EAAAA,UAAShG,MAAMiG,OAAO,iBAC/B,CAEAE,IAAAA,GACEC,MAAMD,OAEFnG,KAAKkG,QAAUlG,KAAKkG,OAAOhI,IAC7B8B,KAAKkG,OAAOhI,GAAG,iBAAkB8B,KAAKqG,UAAUC,KAAKtG,MAEzD,CAEAuG,OAAAA,CAAQrB,EAAQsB,GACd,OAAIA,EAAUtB,OACLF,EAAOhF,KAAKiF,QAASuB,EAAUtB,QAE/BF,EAAOhF,KAAKiF,QAASC,EAEhC,E","sources":["./components/settings/panel-wifi/network-info/index.hbs","./components/settings/panel-wifi/network-info/index.ts","./components/settings/panel-wifi/network-list/index.hbs","./components/settings/panel-wifi/network-list/index.ts","./settings/panel-wifi/config/controller.ts","../rewritten-packages/ember-href-to.757a6976/node_modules/ember-href-to/helpers/href-to.js"],"sourcesContent":["import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n
\\n
\\n \\n \\n
\\n {{@networkItem.network.ssid}}\\n
\\n
\\n {{#unless (media \\'isMobile\\')}}\\n {{this.encryptionTypeDescriptor}}\\n {{/unless}}\\n
\\n
\\n \\n\\n
\\n
\\n {{#if this.showPasswordBox}}\\n
\\n \\n \\n \\n {{#unless (media \\'isMobile\\')}}\\n {{tc this \\'passwordDesc\\'}}\\n {{/unless}}\\n
\\n {{/if}}\\n {{#if this.hasDevicesAttached}}\\n
\\n

{{tc this \\'devicesInNetwork\\'}}

\\n {{@networkItem.network.devicesAttached}}\\n
\\n {{/if}}\\n
\\n\",{ moduleName: \"customer-site/components/settings/panel-wifi/network-info/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { computed, get } from '@ember/object';\nimport { notEmpty, and } from '@ember/object/computed';\nimport { inject as service } from '@ember/service';\nimport { getEncryptionDescriptors } from 'customer-site/settings/panel-wifi/config/controller';\nimport { intlPath } from '@adc/i18n/path';\n\nimport './_style.scss';\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type { NetworkRow } from '../network-list/index';\n\ninterface NetworkInfoSignature {\n Args: {\n networkItem: NetworkRow;\n setSelectedItem: (row: NetworkRow) => void;\n };\n}\n\n/**\n * Using the input signal strength integer, computes the signal strength file name svg\n * and returns the name as a string\n */\nexport function getSignalStrengthSvgName(signalStrength: number): string {\n let iconName = 'wifi';\n\n if (signalStrength < 90 && signalStrength >= 70) {\n iconName += '-good';\n } else if (signalStrength < 70 && signalStrength >= 45) {\n iconName += '-weak';\n } else if (signalStrength < 45) {\n iconName += '-poor';\n }\n\n return iconName;\n}\n\n/**\n * @classdesc\n * Network information component.\n */\n@intlPath({ path: 'settings/panel-wifi/network-info' })\nexport default class NetworkInfoComponent extends Component {\n @service declare intl: ADCIntlService;\n\n /**\n * Determines if the network has any devices attached to it to know if we should show them.\n */\n @notEmpty('args.networkItem.network.devicesAttached')\n declare hasDevicesAttached: boolean;\n\n /**\n * Returns a label for the radio button. If the network does not need a password\n * we show \"Ready to Connect\". Otherwise, we don't show anything.\n */\n @computed('args.networkItem.network.needsPassword')\n get labelMessage(): string {\n return get(this.args.networkItem.network, 'needsPassword') ? '' : this.intl.tc(this, 'readyToConnect');\n }\n\n /**\n * Determines if we should show the password box. We only show the password box if the network\n * requires a password to connect and the row is selected.\n */\n @and('args.networkItem.{network.needsPassword,isRowSelected}')\n declare showPasswordBox: boolean;\n\n /**\n * Returns the icon name of the icon we show for signal strength.\n */\n @computed('args.networkItem.network.signalStrength')\n get icon(): string {\n const signalStrength = get(this.args.networkItem.network, 'signalStrength');\n return getSignalStrengthSvgName(signalStrength);\n }\n\n /**\n * The encryption type description for this network.\n */\n @computed('args.networkItem.network.encryptionType')\n get encryptionTypeDescriptor(): string {\n return (\n getEncryptionDescriptors(this.intl.t('generic.none')).findBy(\n 'value',\n get(this.args.networkItem.network, 'encryptionType')\n )?.name ?? ''\n );\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Settings::PanelWifi::NetworkInfo': typeof NetworkInfoComponent;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
\\n {{#each this.sortedNetworks as |networkItem|}}\\n \\n\\n {{#if networkItem.isRowSelected}}\\n \\n {{/if}}\\n {{/each}}\\n
\",{ moduleName: \"customer-site/components/settings/panel-wifi/network-list/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { action } from '@ember/object';\nimport { sort } from '@ember/object/computed';\nimport { inject as service } from '@ember/service';\nimport { EmberPartitions, EmberPanelWifi } from 'customer-site/enums/CustomerPageUrl';\nimport { intlPath } from '@adc/i18n/path';\n\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type { ActionButtonsSignature } from '@adc/ui-components/components/action-buttons';\nimport type NotificationManager from '@adc/ui-components/services/notification-manager';\nimport type ContextManager from 'customer-site/services/context-manager';\nimport type IdentityManager from 'customer-site/services/identity-manager';\n\nexport interface NetworkRow {\n isRowSelected: boolean;\n network: Network;\n password: string;\n passwordValidation?: string;\n}\n\ninterface Network {\n deviceIdsAttachedToNetwork: string[];\n devicesAttached: string;\n encryptionType: number;\n needsPassword: boolean;\n signalStrength: number;\n ssid: string;\n id: string;\n}\n\ninterface NetworkListSignature {\n Args: Pick & {\n networks: NetworkRow[];\n setSelectedRow: (row: NetworkRow) => void;\n selectedNetworkRow: NetworkRow;\n waitForValidation: boolean;\n };\n}\n\nexport async function connectToWifi(\n networkId: string,\n ssid: string,\n password: string,\n encryptionType: number,\n wait: boolean,\n contextManager: ContextManager,\n identityManager: IdentityManager,\n notificationManager: NotificationManager,\n intl: ADCIntlService\n): Promise {\n // Get the system so we can call the custom api.\n const system = await identityManager.getSelectedSystem(),\n isMobileApp = identityManager.identityModel?.isMobileApp;\n\n // Call the custom api.\n system.isSystemConnectingToWifi = true;\n await system\n .connectPanelToWifi(networkId, ssid, password, encryptionType, wait)\n .then(() => {\n // Display toast message when credentials are sent to the panel.\n if (wait) {\n contextManager.replaceRouteWithNativeRoute(EmberPanelWifi);\n notificationManager.addSuccess(\n intl.t('components.settings.panel-wifi.network-list.connected', { networkName: ssid })\n );\n } else {\n if (isMobileApp) {\n contextManager.transitionToUrl(window.location.href + '?AppAction=1');\n } else {\n // TODO: This ignore is an existing deprecation that must be refactored, do not copy this usage\n // eslint-disable-next-line @adc/ember/no-context-manager-transition\n contextManager.transitionToRouteId(EmberPartitions);\n }\n\n notificationManager.addNotification(\n intl.t('components.settings.panel-wifi.network-list.connectionInProgress', { networkName: ssid }),\n 'info',\n [],\n 0,\n false\n );\n }\n\n system.isSystemConnectingToWifi = false;\n })\n .catch(() => {\n system.isSystemConnectingToWifi = false;\n });\n}\n\n/**\n * @classdesc\n * Network List component handles connecting and showing the list of networks that are avaiable to a given partition.\n */\n@intlPath({ path: 'settings/panel-wifi/network-list' })\nexport default class NetworkList extends Component {\n @service declare contextManager: ContextManager;\n @service declare identityManager: IdentityManager;\n @service declare notificationManager: NotificationManager;\n @service declare intl: ADCIntlService;\n\n /**\n * Return networks sorted from strongest to least\n */\n @sort('args.networks', function (netA: NetworkRow, netB: NetworkRow) {\n return Number(netB.network.signalStrength) - Number(netA.network.signalStrength);\n })\n declare sortedNetworks: NetworkRow[];\n\n /**\n * Connects to the panel using the selected item and password input.\n */\n @action\n async connect(): Promise {\n const { network } = this.args.selectedNetworkRow;\n await connectToWifi(\n network.id,\n network.ssid,\n this.args.selectedNetworkRow.password,\n network.encryptionType,\n this.args.waitForValidation,\n this.contextManager,\n this.identityManager,\n this.notificationManager,\n this.intl\n );\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Settings::PanelWifi::NetworkList': typeof NetworkList;\n }\n}\n","import { tracked } from '@glimmer/tracking';\nimport Controller from '@ember/controller';\nimport { computed, action } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { connectToWifi } from 'customer-site/components/settings/panel-wifi/network-list/index';\n\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type NotificationManager from '@adc/ui-components/services/notification-manager';\nimport type AjaxService from 'customer-site/services/ajax';\nimport type ContextManager from 'customer-site/services/context-manager';\nimport type IdentityManager from 'customer-site/services/identity-manager';\nimport type { ResolvedModelFrom } from 'customer-site/utils/type-utils';\nimport type Route from './route';\n\n/**\n * Generates an array of the encryption types as name value pairs.\n */\nexport function getEncryptionDescriptors(noneText: string): { name: string; value: number }[] {\n return [noneText, 'WEP', 'WPA', 'WPA2', 'WPA2-Enterprise'].map((name, value) => ({ name, value }));\n}\n\n/**\n * @classdesc\n * Controller for the manual wifi configuration page\n */\nexport default class PanelWifiConfigController extends Controller {\n @service declare ajax: AjaxService;\n @service declare contextManager: ContextManager;\n @service declare identityManager: IdentityManager;\n @service declare notificationManager: NotificationManager;\n @service declare intl: ADCIntlService;\n\n declare model: ResolvedModelFrom;\n @tracked resolvedModel?: ResolvedModelFrom;\n\n /**\n * The SSID of the network typed in by the user.\n */\n ssid = '';\n\n /**\n * The password for the network typed in by the user.\n */\n password = '';\n\n /**\n * The encryption type for the network typed in by the user.\n */\n encryptionType = 0;\n\n /**\n * The encryption types for the dropdown.\n */\n @computed()\n get encryptionTypes(): { name: string; value: number }[] {\n return getEncryptionDescriptors(this.intl.t('generic.none'));\n }\n\n /**\n * Sends the request to panel to connect to wifi.\n */\n @action\n async connect(): Promise {\n const system = await this.identityManager.getSelectedSystem(false);\n\n await connectToWifi(\n '',\n this.ssid,\n this.password,\n this.encryptionType,\n system.canWaitForWifiValidation,\n this.contextManager,\n this.identityManager,\n this.notificationManager,\n this.intl\n );\n }\n}\n\n// DO NOT DELETE: this is how TypeScript knows how to look up your controllers.\ndeclare module '@ember/controller' {\n interface Registry {\n 'settings/panel-wifi/config': PanelWifiConfigController;\n }\n}\n","import Helper from \"@ember/component/helper\";\nimport { getOwner } from \"@ember/application\";\n\nexport function hrefTo(routing, params) {\n return routing.generateURL(...getParamsForGenerateURL(params));\n}\n\nfunction getParamsForGenerateURL(params) {\n params = params.slice(); // create a copy\n let targetRouteName = params.shift(); // the first param is always the target route name\n let lastParam = params[params.length - 1]; // the last param might be queryParams\n let queryParams;\n if (lastParam && lastParam.isQueryParams) {\n queryParams = params.pop().values;\n } else {\n queryParams = {};\n }\n let models = params; // the remainder are the models\n return [targetRouteName, models, queryParams];\n}\n\nexport default class HrefToHelper extends Helper {\n get routing() {\n return getOwner(this).lookup(\"service:-routing\");\n }\n\n get router() {\n return getOwner(this).lookup(\"service:router\");\n }\n\n init() {\n super.init();\n\n if (this.router && this.router.on) { // skip if the router service is mocked\n this.router.on(\"routeDidChange\", this.recompute.bind(this));\n }\n }\n\n compute(params, namedArgs) {\n if (namedArgs.params) {\n return hrefTo(this.routing, namedArgs.params);\n } else {\n return hrefTo(this.routing, params);\n }\n }\n}\n"],"names":["createTemplateFactory","scope","rowItem_","fn","svgSymbol_","media_","simpleBinary_","on","formGroup_","t_","passwordInput_","tc_","getSignalStrengthSvgName","signalStrength","iconName","NetworkInfoComponent","_dec","intlPath","path","_dec2","notEmpty","_dec3","computed","_dec4","and","_dec5","_dec6","_class2","Component","constructor","arguments","_initializerDefineProperty","_descriptor","_descriptor2","_descriptor3","labelMessage","get","this","args","networkItem","network","intl","tc","icon","encryptionTypeDescriptor","_getEncryptionDescrip","_getEncryptionDescrip2","getEncryptionDescriptors","t","findBy","name","_applyDecoratedDescriptor","prototype","service","configurable","enumerable","writable","initializer","Object","getOwnPropertyDescriptor","_class","setComponentTemplate","TEMPLATE","settingsPanelWifiNetworkInfo_","actionButtons_","async","connectToWifi","networkId","ssid","password","encryptionType","wait","contextManager","identityManager","notificationManager","_identityManager$iden","system","getSelectedSystem","isMobileApp","identityModel","isSystemConnectingToWifi","connectPanelToWifi","then","replaceRouteWithNativeRoute","EmberPanelWifi","addSuccess","networkName","transitionToUrl","window","location","href","transitionToRouteId","EmberPartitions","addNotification","catch","NetworkList","sort","netA","netB","Number","_descriptor4","_descriptor5","connect","selectedNetworkRow","id","waitForValidation","action","noneText","map","value","PanelWifiConfigController","Controller","_descriptor6","_defineProperty","encryptionTypes","canWaitForWifiValidation","tracked","hrefTo","routing","params","generateURL","queryParams","targetRouteName","slice","shift","lastParam","length","isQueryParams","pop","values","getParamsForGenerateURL","HrefToHelper","Helper","getOwner","lookup","router","init","super","recompute","bind","compute","namedArgs"],"sourceRoot":""}