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BO,EAAOpD,EAAWoD,IAGb7B,EAAKrB,QAAQ,IAAIsD,OAAOJ,EAAM,KAAMP,GAI/C,IAAK,IAAIvO,EAAIqO,EAAUvE,OAAiB9J,EAAH,IACnCsO,EAAaD,EAAUrO,EAAI,GAC3B8O,EAAOR,EAAW,IAEdQ,EAAKE,KAAK/B,IAJiCjN,KAgBjD,OAPAsO,EAAaA,GAAc,GAE3BQ,EAAOR,EAAW,GAClBC,EAAeD,EAAW,GAE1BE,EAASvB,EAAKrB,QAAQkD,EAAMP,GAErBC,CACT,GAGFlC,EAAUtB,aAAeA,EACzBsB,EAAUS,UAAY,IAAIT,EAAUtB,E","sources":["./logins/edit/template.hbs","./logins/index/template.hbs","src/components/row-item.hbs","src/components/row-item.ts","./assets/_route_/logins.js","./logins/edit/controller.ts","./logins/edit/route.ts","./logins/index/controller.ts","./logins/index/route.ts","./logins/route.ts","src/lib/system/inflections.js","src/lib/system/inflector.js","src/lib/system/string.js"],"sourcesContent":["import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:default as |data|>\\n \\n <:roles>\\n {{#if (is-pending this.resolvedModel.assignableLoginRoles)}}\\n \\n \\n \\n {{else}}\\n
\\n
{{tc this \\\"rolesTitle\\\"}}
\\n
{{tc this \\\"rolesDescription\\\"}}
\\n
\\n \\n \\n
\\n
{{item.props.name}}
\\n
{{item.props.description}}
\\n
\\n \\n
\\n \\n {{!-- @glint-expect-error The extraRoleInformation can be undefined, which is invalid. Please fix this. --}}\\n
{{tc this this.extraRoleInformation}}
\\n
\\n {{/if}}\\n \\n \\n \\n\\n\",{ moduleName: \"customer-site/logins/edit/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:toolbar as |api|>\\n \\n {{#if @model.hasSingleSystemManageLoginsWriteAccess}}\\n \\n {{/if}}\\n \\n \\n\\n <:default as |PageViewContainer|>\\n \\n {{#if this.hasNoLogins}}\\n

\\n {{t \\\"classes.enterprise.logins.index.noResultsFound\\\"}}\\n

\\n {{/if}}\\n\\n {{#if this.loadLogins.isRunning}}\\n \\n {{else}}\\n {{!-- @glint-expect-error The class property should be a component property, not an html property. Please fix this. --}}\\n \\n
  • \\n \\n
  • \\n \\n {{/if}}\\n \\n \\n
    \",{ moduleName: \"customer-site/logins/index/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
    \\n {{#if @onRowClick}}\\n \\n {{yield}}\\n \\n {{else}}\\n
    \\n {{yield}}\\n
    \\n {{/if}}\\n\\n \\n {{#if @collapse}}\\n {{#if (or this.showEllipsis items.length)}}\\n \\n \\n \\n {{/if}}\\n {{else if items.length}}\\n
    \\n {{#each items as |item|}}\\n {{#if item.visible}}\\n \\n {{/if}}\\n {{/each}}\\n
    \\n {{/if}}\\n
    \\n
    \")","import Component from '@glimmer/component';\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport { DeleteActionItem, EditActionItem, ActionItem } from '../utils/action-item.js';\n\nimport type { Registry as ServiceRegistry } from '@ember/service';\n\ntype Item = Omit & {\n icon: string;\n text: string;\n};\n\nexport interface RowItemSignature {\n Element: HTMLDivElement;\n Args: {\n /** The actions to show (could be dropdown actions or toolbar buttons). */\n items?: ActionItem[] | Promise;\n /** Called when the user interacts with the row-item content (not actions). */\n onRowClick?: VoidFunction;\n /** Indicates whether the row item should have a minimum height of 64px. */\n compact?: boolean;\n /** Indicates the items should be displayed within a dropdown-actions menu. */\n collapse?: boolean;\n /** Indicates dropdown-actions button or individual toolbar buttons should all be disabled. */\n areActionsDisabled?: boolean;\n /** Indicates whether the dropdown-actions button should be visible even when items are empty. */\n showEllipsis?: boolean;\n /** CSS class applied to the row-item content node. */\n rowContentClass?: string;\n /** Indicates whether to row should have a CSS class of `highlight-row`. */\n highlightRow?: boolean;\n };\n Blocks: {\n default: [];\n };\n}\n\nexport default class RowItem extends Component {\n @service declare intl: ServiceRegistry['adc-intl'];\n\n get showEllipsis(): boolean {\n return this.args.showEllipsis ?? true;\n }\n\n get highlightRow(): boolean {\n return this.args.highlightRow ?? true;\n }\n\n private updateDefaultActionProps(\n items: ActionItem[],\n defaultTextKey: string,\n type: new () => T\n ): void {\n const item = items.find((item) => item instanceof type);\n if (item) {\n const defaultText = this.intl.t(`@adc/ui-components.${defaultTextKey}`);\n\n // Add default text and icon title if it was not defined.\n item.text = item.text || defaultText;\n item.iconTitle = item.iconTitle || defaultText;\n }\n }\n\n get items(): Item[] | Promise {\n const { items } = this.args;\n if (!items) {\n return [];\n }\n\n return (async () => {\n const resolvedItems = await items;\n\n this.updateDefaultActionProps(resolvedItems, 'edit', EditActionItem);\n this.updateDefaultActionProps(resolvedItems, 'delete', DeleteActionItem);\n\n return (\n resolvedItems.filter((item) => {\n if (!item || !item.visible) {\n return false;\n }\n\n if (!(item instanceof ActionItem)) {\n console.error(\n `[@adc/ui-components/row-item]: The item ${item} must be an instance of ActionItem.`\n );\n return false;\n }\n\n if (!item.icon || !item.text) {\n console.error(`[@adc/ui-components/row-item]: The item ${item} must have an icon and text.`);\n return false;\n }\n\n return true;\n }) as Item[]\n ).sort((a, b) => (a instanceof DeleteActionItem ? 1 : b instanceof DeleteActionItem ? -1 : 0));\n })();\n }\n\n @action clickRow(): void {\n this.args.onRowClick?.();\n }\n\n @action async clickButton(item: ActionItem): Promise {\n await item.action?.();\n }\n}\n","\nimport { importSync as i } from '@embroider/macros';\nlet d = window.define;\nd(\"customer-site/logins/route\", function(){ return i(\"customer-site/logins/route.ts\");});\nd(\"customer-site/logins/edit/template\", function(){ return i(\"customer-site/logins/edit/template.hbs\");});\nd(\"customer-site/logins/edit/controller\", function(){ return i(\"customer-site/logins/edit/controller.ts\");});\nd(\"customer-site/logins/edit/route\", function(){ return i(\"customer-site/logins/edit/route.ts\");});\nd(\"customer-site/logins/index/template\", function(){ return i(\"customer-site/logins/index/template.hbs\");});\nd(\"customer-site/logins/index/controller\", function(){ return i(\"customer-site/logins/index/controller.ts\");});\nd(\"customer-site/logins/index/route\", function(){ return i(\"customer-site/logins/index/route.ts\");});\n","import { tracked } from '@glimmer/tracking';\nimport { action, setProperties, set, computed } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport BaseEditLoginController from 'customer-site/classes/logins/edit/controller';\nimport { English_US } from 'customer-site/enums/Culture';\nimport { EmberSingleSystemManageLogins } from 'customer-site/enums/CustomerPageUrl';\nimport {\n MasterControl,\n FullControl,\n ReadOnly,\n Custom,\n RestrictedDeviceAccess,\n Owner\n} from 'customer-site/enums/CustomerRole';\nimport CustomerLoginModel from 'customer-site/models/logins/customer-login';\nimport {\n LoginRoleOnSystemOrGroup,\n NO_DIRECT_ACCESS_LOGIN_ROLE_ID\n} from 'customer-site/transforms/system-group-login-roles-list';\nimport { processValidationErrorsFromResponse } from '@adc/ajax/utils/validation-error-processing';\nimport { BinaryListItem } from '@adc/ui-components/components/simple-binary/list';\n\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type { LoginRoleItem } from 'customer-site/logins/edit/route';\nimport type { ModelFrom, ResolvedModelFrom } from 'customer-site/utils/type-utils';\nimport type Route from './route';\n\n/**\n * @classdesc\n *\n * The controller of the page to edit a login's access on a single system.\n */\nexport default class SingleSystemEditLoginController extends BaseEditLoginController {\n @service declare intl: ADCIntlService;\n\n loginIndexRouteId = EmberSingleSystemManageLogins;\n\n /**\n * The currently clicked role for the login.\n */\n @tracked clickedRoleId: string | undefined;\n\n /**\n * Description of roles that can't be set on mobile.\n */\n @tracked extraRoleInformation: string | undefined;\n\n declare model: ModelFrom;\n\n /**\n * The action to take once all of the data has been successfully loaded.\n *\n * @param model\n */\n @action\n dataLoaded(model: ResolvedModelFrom): void {\n setProperties(this.resolvedModel, {\n login: model.login,\n assignableLoginRoles: model.assignableLoginRoles\n });\n set(this, 'cultureIdSelection', this.resolvedModel.login?.cultureId ?? English_US);\n }\n\n /**\n * Saves the customerlogin.\n * @override\n */\n @action\n async save(): Promise {\n const {\n resolvedModel: { login }\n } = this;\n\n // If the login is undefined, return.\n if (!login) {\n return;\n }\n if (login instanceof CustomerLoginModel) {\n await this.saveLogin(login).catch((error) => {\n processValidationErrorsFromResponse.call(this, error);\n throw error;\n });\n }\n }\n\n /**\n * Undoes all of the role selections the end-user has done on this page for this login.\n * @override\n */\n @action\n resetSelection(): void {\n // Update the UI so that it reflects undoing all role selections and hide the reset button.\n this.rolesChanged = false;\n }\n\n /**\n * Updates clickedRoleId when selected option on the simple button list is changed.\n * @param items\n */\n @action\n onChange(items: SingleSystemEditLoginController['rolesBinaryListItem']): void {\n const {\n resolvedModel: { login }\n } = this,\n { loginRolesItems } = login || {},\n identifierId = Number(this.model.systemId);\n\n // Disable update if there are no loginRolesItems or if this is a primary login\n if (!loginRolesItems || this.isSelectedLoginRoleOwner) {\n return;\n }\n\n this.clickedRoleId = items.find((binaryListItem) => binaryListItem.state)?.props.id ?? '';\n\n // If we're on a new login selecting our first role, we won't have any items at the start\n if (!loginRolesItems[identifierId]) {\n loginRolesItems[identifierId] = new LoginRoleOnSystemOrGroup(null);\n }\n\n const customerLoginRoleToModify = loginRolesItems[identifierId];\n\n // First, remove the previous role.\n customerLoginRoleToModify.removeRole();\n // Append or remove the role for this login.\n customerLoginRoleToModify.addRole(this.clickedRoleId);\n\n this.rolesChanged = true;\n }\n\n /**\n * Converts the loginRolesItems to BinaryListItem[] to be display as a simple button list.\n */\n get rolesBinaryListItem(): BinaryListItem<{ id: string; name: string; description: string; icon: string }>[] {\n this.extraRoleInformation = 'extraInformationDefault';\n const assignableLoginRoles = this.resolvedModel.assignableLoginRoles as LoginRoleItem[],\n login = this.resolvedModel?.login,\n { intl } = this;\n\n // Special case for a primary login\n if (this.isSelectedLoginRoleOwner) {\n return [\n new BinaryListItem<{ id: string; name: string; description: string; icon: string }>({\n state: true,\n props: {\n id: 'Owner',\n name: intl.t('logins.edit.primaryLogin.name'),\n description: intl.t('logins.edit.primaryLogin.description'),\n icon: 'favorite'\n }\n })\n ];\n }\n\n // Only show non-disabled roles if it is the selected role. If the login can't be edited only show the selected role.\n return assignableLoginRoles\n .filter(({ id, disabled }) => id == this.selectedRole || (login?.canBeEdited && !disabled))\n .map(({ id, name, description }) => {\n // Set proper icon based on role.\n let icon = '';\n switch (Number(id)) {\n case MasterControl: {\n icon = 'favorite';\n break;\n }\n case FullControl: {\n icon = 'user';\n break;\n }\n case ReadOnly: {\n icon = 'circle-dash';\n break;\n }\n case Custom: {\n this.extraRoleInformation = 'extraInformationCustom';\n icon = 'schedule-custom';\n break;\n }\n case RestrictedDeviceAccess: {\n this.extraRoleInformation = 'extraInformationLDA';\n icon = 'schedule-custom';\n break;\n }\n default:\n icon = 'schedule-custom';\n }\n\n return new BinaryListItem<{ id: string; name: string; description: string; icon: string }>({\n state: id === this.selectedRole,\n props: {\n id,\n name,\n description,\n icon: icon\n }\n });\n });\n }\n\n /**\n * @override\n *\n * Determines which role to select for the location in the button-list.\n *\n */\n @computed('model.systemId')\n get selectedRole(): string | undefined {\n const {\n resolvedModel: { login }\n } = this,\n { loginRolesItems } = login || {},\n identifierId = Number(this.model.systemId);\n\n if (!loginRolesItems || !identifierId) {\n return NO_DIRECT_ACCESS_LOGIN_ROLE_ID;\n }\n\n // Now, get the role that this login has on the group or location.\n return loginRolesItems[identifierId]?.role || NO_DIRECT_ACCESS_LOGIN_ROLE_ID;\n }\n\n /**\n * Helper method for figuring out if a login is the primary login (owner)\n */\n @computed('model.systemId', 'resolvedModel.login.loginRolesItems')\n get isSelectedLoginRoleOwner(): boolean {\n // Note: \"login role\" on a single system login is actually CustomerRoleEnum, NOT LoginRoleEnum\n return Number(this.resolvedModel.login?.loginRolesItems?.[Number(this.model.systemId)]?.role) === Owner;\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 'logins/edit': SingleSystemEditLoginController;\n }\n}\n","import { action, setProperties } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport AdcBaseRoute from 'customer-site/classes/base-route';\nimport { EmberSingleSystemManageLoginsEdit } from 'customer-site/enums/CustomerPageUrl';\n\nimport type Store from '@ember-data/store';\nimport type EditLoginController from 'customer-site/logins/edit/controller';\nimport type CustomerLoginModel from 'customer-site/models/logins/customer-login';\nimport type IdentityManager from 'customer-site/services/identity-manager';\nimport type { ModelFrom } from 'customer-site/utils/type-utils';\n\nexport interface LoginRoleItem {\n id: string;\n name: string;\n description: string;\n identifierId: number;\n disabled: boolean;\n}\n\n/**\n * @classdesc\n *\n * Edit single system login.\n */\nexport default class Route extends AdcBaseRoute {\n @service declare identityManager: IdentityManager;\n @service declare store: Store;\n\n /** @override */\n routeId = EmberSingleSystemManageLoginsEdit;\n\n /** @override */\n model({ id_login }: { id_login: string }): {\n login: Promise | CustomerLoginModel;\n assignableLoginRoles: Promise | LoginRoleItem[];\n systemId: string;\n } {\n const isNew = id_login === 'new';\n // Gets information about the login we are editing: its name, email, and customer roles (permissions)\n return {\n login: isNew\n ? this.store.createRecord(`logins/customer-login`, {\n reload: true,\n canBeEdited: true,\n canBeDeleted: true,\n loginRolesItems: {}\n })\n : this.store.findRecord(`logins/customer-login`, id_login, { reload: true }),\n assignableLoginRoles: this.ajax.apiRequestForValue(\n 'logins/customerLogins/getLoginRolesOnCustomer'\n ),\n systemId: this.contextManager.getSelectedSystemId()\n };\n }\n\n async afterModel(model: ModelFrom): Promise {\n model.login = await model.login;\n model.assignableLoginRoles = await model.assignableLoginRoles;\n }\n\n /** @override */\n async rollbackModelOnTransition(): Promise {\n const { login } = this.modelFor(this.routeName) as ModelFrom,\n resolvedLogin = await login;\n\n // If we're not saving the login, rollback any changes\n if (!resolvedLogin.isNew) {\n resolvedLogin.rollback();\n }\n }\n\n /**\n * If we are exiting the single system edit login route, set the displayResetButton property to false.\n */\n @action willTransition(): void {\n setProperties(this.controller as EditLoginController, {\n rolesChanged: false,\n cultureIdChanged: false\n });\n }\n}\n","import { tracked } from '@glimmer/tracking';\nimport { action } from '@ember/object';\nimport { task } from 'ember-concurrency';\nimport { BaseLoginsIndexController } from 'customer-site/classes/logins/index/controller';\nimport { EmberSingleSystemManageLoginsEdit } from 'customer-site/enums/CustomerPageUrl';\n\nimport type BaseLogin from 'customer-site/models/logins/base-login';\nimport type CustomerLoginModel from 'customer-site/models/logins/customer-login';\nimport type { ModelFrom } from 'customer-site/utils/type-utils';\nimport type Route from './route';\n\n/**\n * @classdesc\n * The single system manage logins page, listing all logins on the selected customer.\n */\nexport default class ManageLoginsIndexController extends BaseLoginsIndexController {\n declare model: ModelFrom;\n\n isSingleSystem = true;\n\n /**\n * Holds the logic for transitioning to our edit single system login route\n */\n navigateToEditLoginsRoute(loginId: string): void {\n const { contextManager, navigation } = this;\n\n // On mobile, our routestack will get cleared if we don't override isNavigationItem\n if (contextManager.isMobileApp) {\n const editRouteItem = this.navigation.getRouteItem(EmberSingleSystemManageLoginsEdit);\n if (editRouteItem) {\n editRouteItem.isNavigationItem = false;\n navigation.transitionToRoute(editRouteItem, loginId);\n }\n } else {\n navigation.transitionToRouteId(EmberSingleSystemManageLoginsEdit, loginId);\n }\n }\n\n @tracked items: CustomerLoginModel[] | ADCStoreQuery = [];\n\n loadLogins = task({ restartable: true }, async () => {\n this.items = await this.store.query('logins/customer-login', {\n searchString: this.searchString\n });\n\n this.loginsCountChanged(this.items.length);\n });\n\n @action\n addNewLogin(): void {\n this.navigateToEditLoginsRoute('new');\n }\n\n @action\n editLogin(login: BaseLogin): void {\n this.navigateToEditLoginsRoute(login.id);\n }\n\n /**\n * Should we show a login's ellipsis with the dropdown options?\n */\n showDropdownOptions(login: CustomerLoginModel): boolean {\n return login.canBeEdited || !login.hasSystemGroupAccess;\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 'logins/index': ManageLoginsIndexController;\n }\n}\n","import { inject as service } from '@ember/service';\nimport { finishAppLoad } from 'customer-site/application/route';\nimport AdcBaseRoute from 'customer-site/classes/base-route';\nimport { EmberSingleSystemManageLogins } from 'customer-site/enums/CustomerPageUrl';\n\nimport type LoginPermissionsCollection from 'customer-site/models/logins/login-permissions-collection';\nimport type IdentityManager from 'customer-site/services/identity-manager';\n\n/**\n * @classdesc\n *\n * Manage single system logins page.\n */\nexport default class Route extends AdcBaseRoute {\n @service declare identityManager: IdentityManager;\n\n routeId = EmberSingleSystemManageLogins;\n\n /** @override */\n model(): Promise {\n return this.store.findRecord(\n 'logins/login-permissions-collection',\n this.identityManager.getSelectedSystemId() ?? 0\n );\n }\n\n afterModel(): void {\n finishAppLoad();\n }\n}\n","import AdcBaseRoute from 'customer-site/classes/base-route';\nimport { EmberSingleSystemManageLogins } from 'customer-site/enums/CustomerPageUrl';\n\n/**\n * @classdesc\n *\n * Manage single system logins page.\n */\nexport default class Route extends AdcBaseRoute {\n routeId = EmberSingleSystemManageLogins;\n}\n","export default {\n plurals: [\n [/$/, 's'],\n [/s$/i, 's'],\n [/^(ax|test)is$/i, '$1es'],\n [/(octop|vir)us$/i, '$1i'],\n [/(octop|vir)i$/i, '$1i'],\n [/(alias|status|bonus)$/i, '$1es'],\n [/(bu)s$/i, '$1ses'],\n [/(buffal|tomat)o$/i, '$1oes'],\n [/([ti])um$/i, '$1a'],\n [/([ti])a$/i, '$1a'],\n [/sis$/i, 'ses'],\n [/(?:([^f])fe|([lr])f)$/i, '$1$2ves'],\n [/(hive)$/i, '$1s'],\n [/([^aeiouy]|qu)y$/i, '$1ies'],\n [/(x|ch|ss|sh)$/i, '$1es'],\n [/(matr|vert|ind)(?:ix|ex)$/i, '$1ices'],\n [/^(m|l)ouse$/i, '$1ice'],\n [/^(m|l)ice$/i, '$1ice'],\n [/^(ox)$/i, '$1en'],\n [/^(oxen)$/i, '$1'],\n [/(quiz)$/i, '$1zes'],\n ],\n\n singular: [\n [/s$/i, ''],\n [/(ss)$/i, '$1'],\n [/(n)ews$/i, '$1ews'],\n [/([ti])a$/i, '$1um'],\n [\n /((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)(sis|ses)$/i,\n '$1sis',\n ],\n [/(^analy)(sis|ses)$/i, '$1sis'],\n [/([^f])ves$/i, '$1fe'],\n [/(hive)s$/i, '$1'],\n [/(tive)s$/i, '$1'],\n [/([lr])ves$/i, '$1f'],\n [/([^aeiouy]|qu)ies$/i, '$1y'],\n [/(s)eries$/i, '$1eries'],\n [/(m)ovies$/i, '$1ovie'],\n [/(x|ch|ss|sh)es$/i, '$1'],\n [/^(m|l)ice$/i, '$1ouse'],\n [/(bus)(es)?$/i, '$1'],\n [/(o)es$/i, '$1'],\n [/(shoe)s$/i, '$1'],\n [/(cris|test)(is|es)$/i, '$1is'],\n [/^(a)x[ie]s$/i, '$1xis'],\n [/(octop|vir)(us|i)$/i, '$1us'],\n [/(alias|status|bonus)(es)?$/i, '$1'],\n [/^(ox)en/i, '$1'],\n [/(vert|ind)ices$/i, '$1ex'],\n [/(matr)ices$/i, '$1ix'],\n [/(quiz)zes$/i, '$1'],\n [/(database)s$/i, '$1'],\n ],\n\n irregularPairs: [\n ['person', 'people'],\n ['man', 'men'],\n ['child', 'children'],\n ['sex', 'sexes'],\n ['move', 'moves'],\n ['cow', 'kine'],\n ['zombie', 'zombies'],\n ],\n\n uncountable: [\n 'equipment',\n 'information',\n 'rice',\n 'money',\n 'species',\n 'series',\n 'fish',\n 'sheep',\n 'jeans',\n 'police',\n ],\n};\n","/* eslint-disable import/extensions, prettier/prettier */\nimport defaultRules from './inflections';\n\nconst BLANK_REGEX = /^\\s*$/;\nconst LAST_WORD_DASHED_REGEX = /([\\w/-]+[_/\\s-])([a-z\\d]+$)/;\nconst LAST_WORD_CAMELIZED_REGEX = /([\\w/\\s-]+)([A-Z][a-z\\d]*$)/;\nconst CAMELIZED_REGEX = /[A-Z][a-z\\d]*$/;\nconst CAPITALIZE_REGEX = /(^|\\/)([a-z\\u00C0-\\u024F])/g;\n\nfunction capitalize(str) {\n return str.replace(CAPITALIZE_REGEX, (match) => match.toUpperCase());\n}\n\nfunction loadUncountable(rules, uncountable) {\n for (let i = 0, length = uncountable.length; i < length; i++) {\n rules.uncountable[uncountable[i].toLowerCase()] = true;\n }\n}\n\nfunction loadIrregular(rules, irregularPairs) {\n let pair;\n\n for (let i = 0, length = irregularPairs.length; i < length; i++) {\n pair = irregularPairs[i];\n\n //pluralizing\n rules.irregular[pair[0].toLowerCase()] = pair[1];\n rules.irregular[pair[1].toLowerCase()] = pair[1];\n\n //singularizing\n rules.irregularInverse[pair[1].toLowerCase()] = pair[0];\n rules.irregularInverse[pair[0].toLowerCase()] = pair[0];\n }\n}\n\n/**\n Inflector.Ember provides a mechanism for supplying inflection rules for your\n application. Ember includes a default set of inflection rules, and provides an\n API for providing additional rules.\n\n Examples:\n\n Creating an inflector with no rules.\n\n ```js\n var inflector = new Ember.Inflector();\n ```\n\n Creating an inflector with the default ember ruleset.\n\n ```js\n var inflector = new Ember.Inflector(Ember.Inflector.defaultRules);\n\n inflector.pluralize('cow'); //=> 'kine'\n inflector.singularize('kine'); //=> 'cow'\n ```\n\n Creating an inflector and adding rules later.\n\n ```javascript\n var inflector = Ember.Inflector.inflector;\n\n inflector.pluralize('advice'); // => 'advices'\n inflector.uncountable('advice');\n inflector.pluralize('advice'); // => 'advice'\n\n inflector.pluralize('formula'); // => 'formulas'\n inflector.irregular('formula', 'formulae');\n inflector.pluralize('formula'); // => 'formulae'\n\n // you would not need to add these as they are the default rules\n inflector.plural(/$/, 's');\n inflector.singular(/s$/i, '');\n ```\n\n Creating an inflector with a nondefault ruleset.\n\n ```javascript\n var rules = {\n plurals: [\n [ /$/, 's' ]\n ],\n singular: [\n [ /\\s$/, '' ]\n ],\n irregularPairs: [\n [ 'cow', 'kine' ]\n ],\n uncountable: [ 'fish' ]\n };\n\n var inflector = new Ember.Inflector(rules);\n ```\n\n @class Inflector\n @namespace Ember\n*/\nfunction Inflector(ruleSet) {\n ruleSet = ruleSet || {};\n ruleSet.uncountable = ruleSet.uncountable || makeDictionary();\n ruleSet.irregularPairs = ruleSet.irregularPairs || makeDictionary();\n\n const rules = (this.rules = {\n plurals: ruleSet.plurals || [],\n singular: ruleSet.singular || [],\n irregular: makeDictionary(),\n irregularInverse: makeDictionary(),\n uncountable: makeDictionary(),\n });\n\n loadUncountable(rules, ruleSet.uncountable);\n loadIrregular(rules, ruleSet.irregularPairs);\n\n this.enableCache();\n}\n\nif (!Object.create && !Object.create(null).hasOwnProperty) {\n throw new Error(\n 'This browser does not support Object.create(null), please polyfil with es5-sham: http://git.io/yBU2rg'\n );\n}\n\nfunction makeDictionary() {\n var cache = Object.create(null);\n cache['_dict'] = null;\n delete cache['_dict'];\n return cache;\n}\n\nInflector.prototype = {\n /**\n @public\n\n As inflections can be costly, and commonly the same subset of words are repeatedly\n inflected an optional cache is provided.\n\n @method enableCache\n */\n enableCache() {\n this.purgeCache();\n\n this.singularize = function (word) {\n this._cacheUsed = true;\n return (\n this._sCache[word] || (this._sCache[word] = this._singularize(word))\n );\n };\n\n this.pluralize = function (numberOrWord, word, options = {}) {\n this._cacheUsed = true;\n var cacheKey = [numberOrWord, word, options.withoutCount];\n return (\n this._pCache[cacheKey] ||\n (this._pCache[cacheKey] = this._pluralize(numberOrWord, word, options))\n );\n };\n },\n\n /**\n @public\n\n @method purgeCache\n */\n purgeCache() {\n this._cacheUsed = false;\n this._sCache = makeDictionary();\n this._pCache = makeDictionary();\n },\n\n /**\n @public\n disable caching\n\n @method disableCache;\n */\n disableCache() {\n this._sCache = null;\n this._pCache = null;\n this.singularize = function (word) {\n return this._singularize(word);\n };\n\n this.pluralize = function () {\n return this._pluralize(...arguments);\n };\n },\n\n /**\n @method plural\n @param {RegExp} regex\n @param {String} string\n */\n plural(regex, string) {\n if (this._cacheUsed) {\n this.purgeCache();\n }\n this.rules.plurals.push([regex, string.toLowerCase()]);\n },\n\n /**\n @method singular\n @param {RegExp} regex\n @param {String} string\n */\n singular(regex, string) {\n if (this._cacheUsed) {\n this.purgeCache();\n }\n this.rules.singular.push([regex, string.toLowerCase()]);\n },\n\n /**\n @method uncountable\n @param {String} regex\n */\n uncountable(string) {\n if (this._cacheUsed) {\n this.purgeCache();\n }\n loadUncountable(this.rules, [string.toLowerCase()]);\n },\n\n /**\n @method irregular\n @param {String} singular\n @param {String} plural\n */\n irregular(singular, plural) {\n if (this._cacheUsed) {\n this.purgeCache();\n }\n loadIrregular(this.rules, [[singular, plural]]);\n },\n\n /**\n @method pluralize\n @param {String} word\n */\n pluralize() {\n return this._pluralize(...arguments);\n },\n\n _pluralize(wordOrCount, word, options = {}) {\n if (word === undefined) {\n return this.inflect(\n wordOrCount,\n this.rules.plurals,\n this.rules.irregular\n );\n }\n\n if (parseFloat(wordOrCount) !== 1) {\n word = this.inflect(word, this.rules.plurals, this.rules.irregular);\n }\n\n return options.withoutCount ? word : `${wordOrCount} ${word}`;\n },\n\n /**\n @method singularize\n @param {String} word\n */\n singularize(word) {\n return this._singularize(word);\n },\n\n _singularize(word) {\n return this.inflect(word, this.rules.singular, this.rules.irregularInverse);\n },\n\n /**\n @protected\n\n @method inflect\n @param {String} word\n @param {Object} typeRules\n @param {Object} irregular\n */\n inflect(word, typeRules, irregular) {\n let inflection,\n substitution,\n result,\n lowercase,\n wordSplit,\n lastWord,\n isBlank,\n isCamelized,\n rule,\n isUncountable;\n\n isBlank = !word || BLANK_REGEX.test(word);\n isCamelized = CAMELIZED_REGEX.test(word);\n\n if (isBlank) {\n return word;\n }\n\n lowercase = word.toLowerCase();\n wordSplit =\n LAST_WORD_DASHED_REGEX.exec(word) || LAST_WORD_CAMELIZED_REGEX.exec(word);\n\n if (wordSplit) {\n lastWord = wordSplit[2].toLowerCase();\n }\n\n isUncountable =\n this.rules.uncountable[lowercase] || this.rules.uncountable[lastWord];\n\n if (isUncountable) {\n return word;\n }\n\n for (rule in irregular) {\n if (lowercase.match(rule + '$')) {\n substitution = irregular[rule];\n\n if (isCamelized && irregular[lastWord]) {\n substitution = capitalize(substitution);\n rule = capitalize(rule);\n }\n\n return word.replace(new RegExp(rule, 'i'), substitution);\n }\n }\n\n for (var i = typeRules.length, min = 0; i > min; i--) {\n inflection = typeRules[i - 1];\n rule = inflection[0];\n\n if (rule.test(word)) {\n break;\n }\n }\n\n inflection = inflection || [];\n\n rule = inflection[0];\n substitution = inflection[1];\n\n result = word.replace(rule, substitution);\n\n return result;\n },\n};\n\nInflector.defaultRules = defaultRules;\nInflector.inflector = new Inflector(defaultRules);\n\nexport default Inflector;\n","/* eslint-disable import/extensions */\nimport Inflector from './inflector';\n\nfunction pluralize() {\n return Inflector.inflector.pluralize(...arguments);\n}\n\nfunction singularize(word) {\n return Inflector.inflector.singularize(word);\n}\n\nexport { pluralize, singularize };\n"],"names":["createTemplateFactory","scope","pageViewEdit_","promiseHashTracked_","hash","fn","not_","loginsEditItem_","tc_","isPending_","spinnerSvg_","t_","tc_0","simpleBinaryButtonList_","svgSymbol_","pageView_","loginsIndexToolbar_","buttonNative_","media_","didInsert_","didUpdate_","t_0","verticalCollection_","loginsListLoginItem_","TEMPLATE","coalesce_","on","preventDefault_","asyncLoader_","or_","dropdownActions_","buttonIcon_","buttonAsync_","_intl","WeakMap","RowItem","Component","constructor","arguments","_classPrivateFieldInitSpec","i","showEllipsis","_this$args$showEllips","this","args","highlightRow","_this$args$highlightR","updateDefaultActionProps","items","defaultTextKey","type","item","find","defaultText","intl","t","concat","text","iconTitle","resolvedItems","EditActionItem","DeleteActionItem","filter","visible","ActionItem","icon","console","error","sort","a","b","clickRow","_this$args$onRowClick","_this$args","onRowClick","call","clickButton","_item$action","action","_RowItem","g","prototype","service","n","setComponentTemplate","d","window","define","esc","require","SingleSystemEditLoginController","_dec","computed","_dec2","_class","BaseEditLoginController","_initializerDefineProperty","_descriptor","_defineProperty","EmberSingleSystemManageLogins","_descriptor2","_descriptor3","dataLoaded","model","_this$resolvedModel$l","_this$resolvedModel$l2","setProperties","resolvedModel","login","assignableLoginRoles","set","cultureId","English_US","save","CustomerLoginModel","saveLogin","catch","processValidationErrorsFromResponse","resetSelection","rolesChanged","onChange","_items$find$props$id","_items$find","loginRolesItems","identifierId","Number","systemId","isSelectedLoginRoleOwner","clickedRoleId","binaryListItem","state","props","id","LoginRoleOnSystemOrGroup","customerLoginRoleToModify","removeRole","addRole","rolesBinaryListItem","_this$resolvedModel","extraRoleInformation","BinaryListItem","name","description","_ref","disabled","selectedRole","canBeEdited","map","_ref2","MasterControl","FullControl","ReadOnly","Custom","RestrictedDeviceAccess","_loginRolesItems$iden","role","NO_DIRECT_ACCESS_LOGIN_ROLE_ID","_this$resolvedModel$l3","Owner","_applyDecoratedDescriptor","configurable","enumerable","writable","initializer","tracked","Object","getOwnPropertyDescriptor","Route","AdcBaseRoute","EmberSingleSystemManageLoginsEdit","id_login","store","createRecord","reload","canBeDeleted","findRecord","ajax","apiRequestForValue","contextManager","getSelectedSystemId","afterModel","rollbackModelOnTransition","modelFor","routeName","resolvedLogin","isNew","rollback","willTransition","controller","cultureIdChanged","ManageLoginsIndexController","BaseLoginsIndexController","_buildTask","context","generator","query","searchString","loginsCountChanged","length","restartable","navigateToEditLoginsRoute","loginId","navigation","isMobileApp","editRouteItem","getRouteItem","isNavigationItem","transitionToRoute","transitionToRouteId","addNewLogin","editLogin","showDropdownOptions","hasSystemGroupAccess","_this$identityManager","identityManager","finishAppLoad","defaultRules","plurals","singular","irregularPairs","uncountable","BLANK_REGEX","LAST_WORD_DASHED_REGEX","LAST_WORD_CAMELIZED_REGEX","CAMELIZED_REGEX","CAPITALIZE_REGEX","capitalize","str","replace","match","toUpperCase","loadUncountable","rules","toLowerCase","loadIrregular","pair","irregular","irregularInverse","Inflector","ruleSet","makeDictionary","enableCache","create","hasOwnProperty","Error","cache","pluralize","inflector","singularize","word","purgeCache","_cacheUsed","_sCache","_singularize","numberOrWord","options","undefined","cacheKey","withoutCount","_pCache","_pluralize","disableCache","plural","regex","string","push","wordOrCount","inflect","parseFloat","typeRules","inflection","substitution","result","lowercase","wordSplit","lastWord","isBlank","isCamelized","rule","isUncountable","test","exec","RegExp"],"sourceRoot":""}